add types for fonts imported by webpack

This commit is contained in:
jake committed 2022-03-27 11:23:42 -04:00
1 parent 8b3d6f712b
commit ff6e417889
8 files changed
+20 -15

No files matched your search

+1
View File
@@ -1,2 +1,3 @@
export * from "./note";
export * from "./repository";
export * from "./webpack";
+11
View File
@@ -0,0 +1,11 @@
// support webfonts statically imported by webpack via custom config in next.config.js:
declare module "*.woff" {
const content: string;
export default content;
}
declare module "*.woff2" {
const content: string;
export default content;
}