Skip to content

Commit

Permalink
Small fixes
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 Jul 14, 2024
1 parent 56d479e commit ba11cb7
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions js/igv.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
// allow extra keys
type ExtraKeys<T> = T & { [key: string]: any };

declare class Opaque<N extends string> {
private readonly __opaque_brand: N;
}

// TODO: Unworked types for placeholder purposes
type Track = any;
Expand Down Expand Up @@ -74,6 +77,8 @@ export interface ReferenceGenome {
* only true is allowed in the type definition.
*
* @type {boolean=}
*
* @deprecated
*/
indexed?: true;
/**
Expand Down Expand Up @@ -145,7 +150,11 @@ interface CreateOptExtras {

export type CreateOpt = GenomeOpt & CreateOptExtras;


declare class _Browser {
// this forces the user to cast the return value to acknowledge this is not stable
toJSON(): Opaque<'igv.js session JSON'>;
compressedSession(): string;
toSVG(): string;
}

Expand Down

0 comments on commit ba11cb7

Please sign in to comment.