Fixed interface not being correctly exported

Signed-off-by: Avior <florian.bouillon@delta-wings.net>
This commit is contained in:
Florian Bouillon 2021-04-20 10:07:10 +02:00
parent 3b6c5886ea
commit 00e61b370f
Signed by: Florian Bouillon
GPG Key ID: 50BD648F12C86AB6
4 changed files with 6 additions and 2 deletions

1
.gitignore vendored
View File

@ -4,4 +4,5 @@ node_modules
*.js
*.d.ts
!interfaces.d.ts
!main.d.ts
test.ts

4
main.d.ts vendored Normal file
View File

@ -0,0 +1,4 @@
import TCGdex from './tcgdex'
export * from './interfaces'
export default TCGdex

View File

@ -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": {

View File

@ -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"