mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-04 04:37:28 +02:00
fix(v2): Add all webpack module aliases to type declaration file (#2687)
This commit is contained in:
parent
f8f6478c36
commit
94b712d4fd
1 changed files with 12 additions and 0 deletions
|
@ -41,3 +41,15 @@ declare module '@theme/*' {
|
||||||
const component: any;
|
const component: any;
|
||||||
export default component;
|
export default component;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
declare module '@docusaurus/*';
|
||||||
|
|
||||||
|
declare module '*.module.css' {
|
||||||
|
const classes: {readonly [key: string]: string};
|
||||||
|
export default classes;
|
||||||
|
}
|
||||||
|
|
||||||
|
declare module '*.css' {
|
||||||
|
const src: string;
|
||||||
|
export default src;
|
||||||
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue