Skip to content

Commit

Permalink
fix(vega-typings): narrow response type when using custom data fetcher
Browse files Browse the repository at this point in the history
  • Loading branch information
hydrosquall committed Sep 29, 2021
1 parent 774165e commit 15578e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vega-typings/types/runtime/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export function parse(spec: Spec, config?: Config, opt?: { ast?: boolean }): Run
export interface Loader {
load: (uri: string, options?: any) => Promise<string>;
sanitize: (uri: string, options: any) => Promise<{ href: string }>;
http: (uri: string, options: any) => Promise<string>;
http: (uri: string, options: any) => Promise<Response>;
file: (filename: string) => Promise<string>;
}

Expand Down

0 comments on commit 15578e3

Please sign in to comment.