securityos/node_modules/next/font/index.d.ts

31 lines
634 B
TypeScript
Raw Normal View History

2024-09-06 15:32:35 +00:00
export type AdjustFontFallback = {
fallbackFont: string
ascentOverride?: string
descentOverride?: string
lineGapOverride?: string
sizeAdjust?: string
}
export type FontLoader = (options: {
functionName: string
variableName: string
data: any[]
emitFontFile: (
content: Buffer,
ext: string,
preload: boolean,
isUsingSizeAdjust?: boolean
) => string
resolve: (src: string) => string
isDev: boolean
isServer: boolean
loaderContext: any
}) => Promise<{
css: string
fallbackFonts?: string[]
variable?: string
adjustFontFallback?: AdjustFontFallback
weight?: string
style?: string
}>