diff --git a/src/shared/types/types.d.ts b/src/shared/types/types.d.ts new file mode 100644 index 0000000..6be5bca --- /dev/null +++ b/src/shared/types/types.d.ts @@ -0,0 +1,5 @@ +declare module 'island:site-data' { + import type { UserConfig } from 'shared/types' + const siteData: UserConfig + export default siteData +} diff --git a/tsconfig.json b/tsconfig.json index ac2440b..e801ef3 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -4,6 +4,7 @@ "target": "ESNext" /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */, "module": "commonjs" /* Specify what module code is generated. */, "rootDir": "." /* Specify the root folder within your source files. */, + "baseUrl": "src", "jsx": "react-jsx" /* Specify what JSX code is generated. */, "resolveJsonModule": true, "esModuleInterop": true, /* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */