Skip to content

Commit

Permalink
fix: allow accepting partial options to resolveFont
Browse files Browse the repository at this point in the history
  • Loading branch information
danielroe committed Oct 8, 2024
1 parent e268a24 commit cae0e2c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ export interface UnifontOptions {
}

export interface Unifont {
resolveFont: (fontFamily: string, options?: ResolveFontOptions, providers?: string[]) => Promise<ResolveFontResult & {
resolveFont: (fontFamily: string, options?: Partial<ResolveFontOptions>, providers?: string[]) => Promise<ResolveFontResult & {
provider?: string
}>
/** @deprecated use `resolveFont` */
resolveFontFace: (fontFamily: string, options?: ResolveFontOptions, providers?: string[]) => Promise<ResolveFontResult & {
resolveFontFace: (fontFamily: string, options?: Partial<ResolveFontOptions>, providers?: string[]) => Promise<ResolveFontResult & {
provider?: string
}>
}
Expand Down

0 comments on commit cae0e2c

Please sign in to comment.