From c3a23e9151d417a00c197ed3c453d96ee3cfd9bd Mon Sep 17 00:00:00 2001 From: NightScript Date: Wed, 19 Jan 2022 15:29:49 -0500 Subject: [PATCH 1/2] Deno-Compatibility with Types --- .vscode/settings.json | 5 +++++ types/Auth.ts | 2 +- types/Bots.ts | 6 +++--- types/Channels.ts | 6 +++--- types/Invites.ts | 4 ++-- types/Servers.ts | 4 ++-- types/Sync.ts | 8 ++++---- types/Users.ts | 4 ++-- 8 files changed, 22 insertions(+), 17 deletions(-) create mode 100644 .vscode/settings.json diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..d76b357 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,5 @@ +{ + "deno.enable": true, + "deno.lint": true, + "deno.unstable": true +} \ No newline at end of file diff --git a/types/Auth.ts b/types/Auth.ts index a10e8c5..f694325 100644 --- a/types/Auth.ts +++ b/types/Auth.ts @@ -1,4 +1,4 @@ -import type { Id } from "./_common"; +import type { Id } from "./_common.ts"; export interface Account { /** diff --git a/types/Bots.ts b/types/Bots.ts index d14fc07..f5532f9 100644 --- a/types/Bots.ts +++ b/types/Bots.ts @@ -1,6 +1,6 @@ -import type { Attachment } from "./Autumn"; -import type { Username } from "./Users"; -import type { Id } from "./_common"; +import type { Attachment } from "./Autumn.ts"; +import type { Username } from "./Users.ts"; +import type { Id } from "./_common.ts"; export interface Bot { /** diff --git a/types/Channels.ts b/types/Channels.ts index 602c98e..87e96fa 100644 --- a/types/Channels.ts +++ b/types/Channels.ts @@ -1,6 +1,6 @@ -import type { Attachment } from "./Autumn" -import type { Id, Nonce } from "./_common" -import type { JanuaryEmbed } from "./January" +import type { Attachment } from "./Autumn.ts" +import type { Id, Nonce } from "./_common.ts" +import type { JanuaryEmbed } from "./January.ts" /** * Saved Messages channel has only one participant, the user who created it. diff --git a/types/Invites.ts b/types/Invites.ts index e79febd..964bdf8 100644 --- a/types/Invites.ts +++ b/types/Invites.ts @@ -1,5 +1,5 @@ -import type { Attachment } from "./Autumn"; -import type { Id } from "./_common"; +import type { Attachment } from "./Autumn.ts"; +import type { Id } from "./_common.ts"; export type ServerInvite = { type: 'Server' diff --git a/types/Servers.ts b/types/Servers.ts index 74c1f46..b80983a 100644 --- a/types/Servers.ts +++ b/types/Servers.ts @@ -1,5 +1,5 @@ -import type { Attachment } from './Autumn'; -import type { Id } from './_common'; +import type { Attachment } from './Autumn.ts'; +import type { Id } from './_common.ts'; export type MemberCompositeKey = { server: Id diff --git a/types/Sync.ts b/types/Sync.ts index 97412ac..0739922 100644 --- a/types/Sync.ts +++ b/types/Sync.ts @@ -1,4 +1,4 @@ -import type { Id } from "./_common" +import type { Id } from "./_common.ts" export type UserSettings = { [key: string]: [ number, string ] @@ -17,7 +17,7 @@ export interface ChannelUnread { } export interface WebPushSubscription { - endpoint: String, - p256dh: String, - auth: String, + endpoint: string, + p256dh: string, + auth: string, } diff --git a/types/Users.ts b/types/Users.ts index 93cfe93..9a04da2 100644 --- a/types/Users.ts +++ b/types/Users.ts @@ -1,5 +1,5 @@ -import type { Attachment } from './Autumn'; -import type { Id } from './_common'; +import type { Attachment } from './Autumn.ts'; +import type { Id } from './_common.ts'; /** * Username From 98a637e1811596938860a11c477c587967551e17 Mon Sep 17 00:00:00 2001 From: NightScript Date: Wed, 19 Jan 2022 15:33:39 -0500 Subject: [PATCH 2/2] Make semicolon consistent --- types/Channels.ts | 6 +++--- types/Sync.ts | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/types/Channels.ts b/types/Channels.ts index 87e96fa..ec731ce 100644 --- a/types/Channels.ts +++ b/types/Channels.ts @@ -1,6 +1,6 @@ -import type { Attachment } from "./Autumn.ts" -import type { Id, Nonce } from "./_common.ts" -import type { JanuaryEmbed } from "./January.ts" +import type { Attachment } from "./Autumn.ts"; +import type { Id, Nonce } from "./_common.ts"; +import type { JanuaryEmbed } from "./January.ts"; /** * Saved Messages channel has only one participant, the user who created it. diff --git a/types/Sync.ts b/types/Sync.ts index 0739922..d7b046b 100644 --- a/types/Sync.ts +++ b/types/Sync.ts @@ -1,4 +1,4 @@ -import type { Id } from "./_common.ts" +import type { Id } from "./_common.ts"; export type UserSettings = { [key: string]: [ number, string ]