mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-06-05 14:59:37 +08:00
Merge pull request #21038 from jimthedev/master
fontfaceobserver: First argument in load should be a union of null and string
This commit is contained in:
2
types/fontfaceobserver/index.d.ts
vendored
2
types/fontfaceobserver/index.d.ts
vendored
@@ -25,7 +25,7 @@ declare class FontFaceObserver {
|
||||
* @param testString If your font doesn't contain latin characters you can pass a custom test string.
|
||||
* @param timeout The default timeout for giving up on font loading is 3 seconds. You can increase or decrease this by passing a number of milliseconds.
|
||||
*/
|
||||
load(testString?: string, timeout?: number): Promise<void>;
|
||||
load(testString?: string | null, timeout?: number): Promise<void>;
|
||||
}
|
||||
|
||||
declare module "fontfaceobserver" {
|
||||
|
||||
Reference in New Issue
Block a user