diff --git a/types/ome.ts b/src/types.ts similarity index 100% rename from types/ome.ts rename to src/types.ts diff --git a/tsconfig.json b/tsconfig.json index feac920..e376c89 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,5 +1,4 @@ { - "include": ["src", "types", "main.ts"], "compilerOptions": { "module": "esnext", "target": "esnext", @@ -12,6 +11,7 @@ "jsx": "preserve", "paths": { "*": ["./node_modules/@danmarshall/deckgl-typings/*"] - } + }, + "types": ["vite/client"] } } diff --git a/types/static.d.ts b/types/static.d.ts deleted file mode 100644 index 50a4803..0000000 --- a/types/static.d.ts +++ /dev/null @@ -1,59 +0,0 @@ -/* Use this file to declare any custom file extensions for importing */ -/* Use this folder to also add/extend a package d.ts file, if needed. */ - -/* CSS MODULES */ -declare module "*.module.css" { - const classes: { [key: string]: string }; - export default classes; -} -declare module "*.module.scss" { - const classes: { [key: string]: string }; - export default classes; -} -declare module "*.module.sass" { - const classes: { [key: string]: string }; - export default classes; -} -declare module "*.module.less" { - const classes: { [key: string]: string }; - export default classes; -} -declare module "*.module.styl" { - const classes: { [key: string]: string }; - export default classes; -} - -/* CSS */ -declare module "*.css"; -declare module "*.scss"; -declare module "*.sass"; -declare module "*.less"; -declare module "*.styl"; - -/* IMAGES */ -declare module "*.svg" { - const ref: string; - export default ref; -} -declare module "*.bmp" { - const ref: string; - export default ref; -} -declare module "*.gif" { - const ref: string; - export default ref; -} -declare module "*.jpg" { - const ref: string; - export default ref; -} -declare module "*.jpeg" { - const ref: string; - export default ref; -} -declare module "*.png" { - const ref: string; - export default ref; -} - -/* CUSTOM: ADD YOUR OWN HERE */