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:
1
types/index.d.ts
vendored
1
types/index.d.ts
vendored
@ -1,2 +1,3 @@
|
||||
export * from "./note";
|
||||
export * from "./repository";
|
||||
export * from "./webpack";
|
||||
|
11
types/webpack.d.ts
vendored
Normal file
11
types/webpack.d.ts
vendored
Normal 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;
|
||||
}
|
Reference in New Issue
Block a user