diff --git a/.changeset/mean-fireants-shop.md b/.changeset/mean-fireants-shop.md new file mode 100644 index 0000000..3b3ddae --- /dev/null +++ b/.changeset/mean-fireants-shop.md @@ -0,0 +1,5 @@ +--- +"@gw2api/types": patch +--- + +Enable `verbatimModuleSyntax` diff --git a/packages/types/data/account-wizardsvault.ts b/packages/types/data/account-wizardsvault.ts index 7513595..9aba8ff 100644 --- a/packages/types/data/account-wizardsvault.ts +++ b/packages/types/data/account-wizardsvault.ts @@ -1,4 +1,4 @@ -import { WizardsVaultListingType, WizardsVaultTrack } from './wizardsvault'; +import type { WizardsVaultListingType, WizardsVaultTrack } from './wizardsvault'; /** * Accounts wizards-vault listings. diff --git a/packages/types/data/account.ts b/packages/types/data/account.ts index a05de89..cd99522 100644 --- a/packages/types/data/account.ts +++ b/packages/types/data/account.ts @@ -1,4 +1,4 @@ -import { SchemaAfter, SchemaVersion } from "../schema"; +import type { SchemaAfter, SchemaVersion } from "../schema"; export type Account = Schema extends SchemaAfter<'2019-12-19T00:00:00.000Z'> | 'latest' ? Account_2019_12_19 : diff --git a/packages/types/data/item.ts b/packages/types/data/item.ts index 1d5e89b..f025740 100644 --- a/packages/types/data/item.ts +++ b/packages/types/data/item.ts @@ -1,4 +1,4 @@ -import { SchemaAfter, SchemaVersion } from "../schema"; +import type { SchemaAfter, SchemaVersion } from "../schema"; export type Item = Schema extends SchemaAfter<'2020-11-17T00:30:00.000Z'> | 'latest' ? Item_2020_11_17 : diff --git a/packages/types/data/tokeninfo.ts b/packages/types/data/tokeninfo.ts index 21d87b5..5064162 100644 --- a/packages/types/data/tokeninfo.ts +++ b/packages/types/data/tokeninfo.ts @@ -1,4 +1,4 @@ -import { SchemaAfter, SchemaVersion } from "../schema"; +import type { SchemaAfter, SchemaVersion } from "../schema"; export type Tokeninfo = Schema extends SchemaAfter<'2019-05-22T00:00:00.000Z'> | 'latest' ? Tokeninfo_2019_05_22 : diff --git a/packages/types/endpoints.ts b/packages/types/endpoints.ts index d2e9bf9..a7222b3 100644 --- a/packages/types/endpoints.ts +++ b/packages/types/endpoints.ts @@ -1,14 +1,14 @@ -import { Account } from './data/account'; -import { AccountAchievement } from './data/account-achievements'; -import { AccountWallet } from './data/account-wallet'; -import { AccountWizardsVaultListing, AccountWizardsVaultMetaObjectives, AccountWizardsVaultSpecialObjectives } from './data/account-wizardsvault'; -import { Listing, Price, TransactionCurrent, TransactionHistoric } from './data/commerce'; -import { Createsubtoken } from './data/createsubtoken'; -import { Item } from './data/item'; -import { Quaggan } from './data/quaggan'; -import { Tokeninfo } from './data/tokeninfo'; -import { WizardsVault, WizardsVaultListing, WizardsVaultObjective } from './data/wizardsvault'; -import { SchemaVersion } from './schema'; +import type { Account } from './data/account'; +import type { AccountAchievement } from './data/account-achievements'; +import type { AccountWallet } from './data/account-wallet'; +import type { AccountWizardsVaultListing, AccountWizardsVaultMetaObjectives, AccountWizardsVaultSpecialObjectives } from './data/account-wizardsvault'; +import type { Listing, Price, TransactionCurrent, TransactionHistoric } from './data/commerce'; +import type { Createsubtoken } from './data/createsubtoken'; +import type { Item } from './data/item'; +import type { Quaggan } from './data/quaggan'; +import type { Tokeninfo } from './data/tokeninfo'; +import type { WizardsVault, WizardsVaultListing, WizardsVaultObjective } from './data/wizardsvault'; +import type { SchemaVersion } from './schema'; export type KnownAuthenticatedEndpoint = | '/v2/account' diff --git a/packages/types/tsconfig.json b/packages/types/tsconfig.json index 86f6023..46fecb7 100644 --- a/packages/types/tsconfig.json +++ b/packages/types/tsconfig.json @@ -1,6 +1,7 @@ { "compilerOptions": { - "noEmit": true + "noEmit": true, + "verbatimModuleSyntax": true }, "exclude": ["node_modules"] }