mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-17 22:44:18 +08:00
Fix typo in #24560
This commit is contained in:
@@ -51,8 +51,8 @@ promise2 = d3Fetch.tsv<MyType>(url, parseRow);
|
||||
promise2 = d3Fetch.tsv<MyType>(url, init, parseRow);
|
||||
|
||||
let docPromise: Promise<Document>;
|
||||
docPromise = d3Fetch.hmtl(url);
|
||||
docPromise = d3Fetch.hmtl(url, init);
|
||||
docPromise = d3Fetch.html(url);
|
||||
docPromise = d3Fetch.html(url, init);
|
||||
|
||||
docPromise = d3Fetch.svg(url);
|
||||
docPromise = d3Fetch.svg(url, init);
|
||||
|
||||
2
types/d3-fetch/index.d.ts
vendored
2
types/d3-fetch/index.d.ts
vendored
@@ -154,7 +154,7 @@ export function dsv<ParsedRow extends DSVRowAny>(
|
||||
* @param url A valid URL string.
|
||||
* @param init An optional request initialization object.
|
||||
*/
|
||||
export function hmtl(url: string, init?: RequestInit): Promise<Document>;
|
||||
export function html(url: string, init?: RequestInit): Promise<Document>;
|
||||
|
||||
/**
|
||||
* Fetches the image at the specified input URL and returns a promise of an HTML image element.
|
||||
|
||||
Reference in New Issue
Block a user