Skip to content

Commit

Permalink
fix(v2): Add all webpack module aliases to type declaration file
Browse files Browse the repository at this point in the history
  • Loading branch information
SamChou19815 committed Apr 28, 2020
1 parent b94b218 commit f1242b1
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions packages/docusaurus-module-type-aliases/src/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,15 @@ declare module '@theme/*' {
const component: any;
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;
}

0 comments on commit f1242b1

Please sign in to comment.