Skip to content

Commit

Permalink
require url when only format is specified
Browse files Browse the repository at this point in the history
Signed-off-by: eternal-flame-AD <[email protected]>
  • Loading branch information
eternal-flame-AD committed Sep 3, 2024
1 parent 45916a8 commit bfe3eec
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion js/igv.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ export type TypeFormatPair<T extends TrackType> = {
type?: T;
// if we know the format, type is not required
format: TrackFormatOf<T>;
url?: string;
// in this case URL can be anything
url: Deferrable<string>;
} | {
type?: T;
format?: TrackFormatOf<T>;
Expand Down

0 comments on commit bfe3eec

Please sign in to comment.