From 00e61b370f795ecf3820edced92d1560d4b4b34a Mon Sep 17 00:00:00 2001 From: Avior Date: Tue, 20 Apr 2021 10:07:10 +0200 Subject: [PATCH] Fixed interface not being correctly exported Signed-off-by: Avior --- .gitignore | 1 + main.d.ts | 4 ++++ package.json | 2 +- tcgdex.ts | 1 - 4 files changed, 6 insertions(+), 2 deletions(-) create mode 100644 main.d.ts diff --git a/.gitignore b/.gitignore index e329e5d..3776b6d 100644 --- a/.gitignore +++ b/.gitignore @@ -4,4 +4,5 @@ node_modules *.js *.d.ts !interfaces.d.ts +!main.d.ts test.ts diff --git a/main.d.ts b/main.d.ts new file mode 100644 index 0000000..2b835b9 --- /dev/null +++ b/main.d.ts @@ -0,0 +1,4 @@ +import TCGdex from './tcgdex' +export * from './interfaces' + +export default TCGdex diff --git a/package.json b/package.json index cb9b337..0049142 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "@tcgdex/sdk", "version": "2.0.0-beta", "main": "./tcgdex.js", - "types": "./tcgdex.d.ts", + "types": "./main.d.ts", "repository": "https://github.com/tcgdex/javascript-sdk.git", "license": "MIT", "devDependencies": { diff --git a/tcgdex.ts b/tcgdex.ts index e50f2ad..ed24a3c 100644 --- a/tcgdex.ts +++ b/tcgdex.ts @@ -1,6 +1,5 @@ import RequestWrapper from './Request' import { Serie, Set, Card, CardResume, SerieList, SetList, SupportedLanguages } from './interfaces' -export * from './interfaces' export default class TCGdex { public static defaultLang: SupportedLanguages = "en"