1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2025-06-30 22:46:39 -04:00

add types for fonts imported by webpack

This commit is contained in:
2022-03-27 11:23:42 -04:00
parent 8b3d6f712b
commit ff6e417889
8 changed files with 20 additions and 15 deletions

1
types/index.d.ts vendored
View File

@ -1,2 +1,3 @@
export * from "./note";
export * from "./repository";
export * from "./webpack";

11
types/webpack.d.ts vendored Normal file
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;
}