Skip to content

Commit

Permalink
fix(v2): Add all webpack module aliases to type declaration file (#2687)
Browse files Browse the repository at this point in the history
  • Loading branch information
SamChou19815 authored Apr 28, 2020
1 parent f8f6478 commit 94b712d
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 94b712d

Please sign in to comment.