Skip to content

Commit

Permalink
chore(typings): add *.svg to global ts extensions
Browse files Browse the repository at this point in the history
  • Loading branch information
Hotell committed Aug 11, 2021
1 parent 72d9d6f commit 69c2535
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion typings/custom-global/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
/**
* Generic typings for sass files.
* Generic typings for non typescript/javascript.
*/
declare module '*.scss' {
const styles: { [className: string]: string };
export default styles;
}
declare module '*.svg' {
const svgPath: string;
export default svgPath;
}

// These declarations are meant to represent the parts of Map/WeakMap/Set that exist in IE 11.
// Therefore, some functionality (such as constructor parameters) is intentionally missing.
Expand Down

0 comments on commit 69c2535

Please sign in to comment.