1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2025-04-26 17:48:30 -04:00

add types for fonts imported by webpack

This commit is contained in:
Jake Jarvis 2022-03-27 11:23:42 -04:00
parent 8b3d6f712b
commit ff6e417889
Signed by: jake
GPG Key ID: 2B0C9CF251E69A39
8 changed files with 20 additions and 15 deletions

View File

@ -1,5 +1,3 @@
// @ts-nocheck
// Legacy
import comicNeueLatin400NormalWoff from "@fontsource/comic-neue/files/comic-neue-latin-400-normal.woff";
import comicNeueLatin400NormalWoff2 from "@fontsource/comic-neue/files/comic-neue-latin-400-normal.woff2";

View File

@ -1,5 +1,3 @@
// @ts-nocheck
// Legacy
import interLatin400NormalWoff from "@fontsource/inter/files/inter-latin-400-normal.woff";
import interLatin400NormalWoff2 from "@fontsource/inter/files/inter-latin-400-normal.woff2";

View File

@ -1,5 +1,3 @@
// @ts-nocheck
// Legacy
import robotoMonoLatin400NormalWoff from "@fontsource/roboto-mono/files/roboto-mono-latin-400-normal.woff";
import robotoMonoLatin400NormalWoff2 from "@fontsource/roboto-mono/files/roboto-mono-latin-400-normal.woff2";

View File

@ -134,7 +134,6 @@ export const globalStyles = globalCss(
},
// variable font support?
// @ts-ignore
"@supports (font-variation-settings: normal)": {
body: {
fontFamily: "$sansVar",

View File

@ -66,7 +66,7 @@
"remark-gfm": "^3.0.1",
"remove-markdown": "^0.3.0",
"sanitize-html": "^2.7.0",
"simple-icons": "^6.15.0",
"simple-icons": "^6.16.0",
"stitches-normalize": "^2.0.0",
"swr": "^1.2.2"
},

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;
}

View File

@ -2545,9 +2545,9 @@ eastasianwidth@^0.2.0:
integrity sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA==
electron-to-chromium@^1.4.84:
version "1.4.94"
resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.4.94.tgz#f19206c977361264a51d53a7ea7ef861a94baa10"
integrity sha512-CoOKsuACoa0PAG3hQXxbh/XDiFcjGuSyGKUi09cjMHOt6RCi7/EXgXhaFF3I+aC89Omudqmkzd0YOQKxwtf/Bg==
version "1.4.96"
resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.4.96.tgz#a97438a01d5db1460343fea4a344960b09330990"
integrity sha512-DPNjvNGPabv6FcyjzLAN4C0psN/GgD9rSGvMTuv81SeXG/EX3mCz0wiw9N1tUEnfQXYCJi3H8M0oFPRziZh7rw==
emoji-regex@^8.0.0:
version "8.0.0"
@ -5433,10 +5433,10 @@ simple-git-hooks@^2.7.0:
resolved "https://registry.yarnpkg.com/simple-git-hooks/-/simple-git-hooks-2.7.0.tgz#121a5c3023663b8abcc5648c8bfe8619dc263705"
integrity sha512-nQe6ASMO9zn5/htIrU37xEIHGr9E6wikXelLbOeTcfsX2O++DHaVug7RSQoq+kO7DvZTH37WA5gW49hN9HTDmQ==
simple-icons@^6.15.0:
version "6.15.0"
resolved "https://registry.yarnpkg.com/simple-icons/-/simple-icons-6.15.0.tgz#2a7e7f8d8a3e5c2f430fba364db1f0fe1520abb9"
integrity sha512-/JxA/vKsDiHrY16FZF1qJXdSrMqGR8knkmMex/8oJ8P3vv3sj2zxs/6Ky8tiGGgFonG8XUSCNeb3RACgGVMemQ==
simple-icons@^6.16.0:
version "6.16.0"
resolved "https://registry.yarnpkg.com/simple-icons/-/simple-icons-6.16.0.tgz#1f98839215a9578af701fe3810bf7eb57d2c5ac8"
integrity sha512-CCZ8xUgTJa+aJtj8+qBmMkWRJyv/0xinBA9Ypbq65pyz5tWmeA7n9IGtQIOqb7rOxJNxPuo9ddn4vFcRQZIFlQ==
sirv@^1.0.7:
version "1.0.19"