diff --git a/js/igv.d.ts b/js/igv.d.ts index 4f3f03d8a..70664c9d7 100644 --- a/js/igv.d.ts +++ b/js/igv.d.ts @@ -2,6 +2,9 @@ // allow extra keys type ExtraKeys = T & { [key: string]: any }; +declare class Opaque { + private readonly __opaque_brand: N; +} // TODO: Unworked types for placeholder purposes type Track = any; @@ -74,6 +77,8 @@ export interface ReferenceGenome { * only true is allowed in the type definition. * * @type {boolean=} + * + * @deprecated */ indexed?: true; /** @@ -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; }