Skip to content

Commit

Permalink
chore: add typing.d.ts, update tsconfig
Browse files Browse the repository at this point in the history
  • Loading branch information
Aarebecca committed Jan 8, 2025
1 parent 5604575 commit d4c839c
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 3 deletions.
10 changes: 7 additions & 3 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,20 @@
{
"include": ["site", ".dumi/theme/slots/components"],
"include": ["site", ".dumi/theme", ".dumi/pages", "./typing.d.ts"],
"compilerOptions": {
"target": "esnext",
"module": "commonjs",
"lib": ["dom", "es2017"],
"jsx": "react",
"strict": true,
"strict": false,
"esModuleInterop": true,
"experimentalDecorators": true,
"emitDecoratorMetadata": true,
"noEmit": true,
"resolveJsonModule": true,
"skipLibCheck": true
"skipLibCheck": true,
"baseUrl": ".",
"paths": {
"site/*": ["./site/*"]
}
}
}
24 changes: 24 additions & 0 deletions typing.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
declare module '@antv/dumi-theme-antv' {
const exports: any;
export = exports;
}

declare module '@antv/dumi-theme-antv/*' {
const exports: {
useChinaMirrorHost: any;
Header: any;
Footer: any;
[key: string]: any;
};
export = exports;
}

declare module '@antv/dumi-theme-antv/dist/common/SEO' {
const SEO: any;
export default SEO;
}

declare module '@antv/dumi-theme-antv/dist/slots/Article' {
const Article: any;
export default Article;
}

0 comments on commit d4c839c

Please sign in to comment.