UNPKG

@jbrowse/core

Version:

JBrowse 2 core libraries used by plugins

11 lines (10 loc) 1.13 kB
import type { AnyConfigurationModel, AnyConfigurationSchemaType, ConfigurationSchemaForModel, ConfigurationSlotName } from './types'; export declare function readConfObject<CONFMODEL extends AnyConfigurationModel>(confObject: CONFMODEL, slotPath?: ConfigurationSlotName<ConfigurationSchemaForModel<CONFMODEL>> | string[], args?: Record<string, unknown>): any; export declare function getConf<CONFMODEL extends AnyConfigurationModel>(model: { configuration: CONFMODEL; }, slotPath?: Parameters<typeof readConfObject<CONFMODEL>>[1], args?: Parameters<typeof readConfObject<CONFMODEL>>[2]): any; export declare function getTypeNamesFromExplicitlyTypedUnion(maybeUnionType: unknown): string[]; export declare function isBareConfigurationSchemaType(thing: unknown): thing is AnyConfigurationSchemaType; export declare function isConfigurationSchemaType(thing: unknown): thing is AnyConfigurationSchemaType; export declare function isConfigurationModel(thing: unknown): thing is AnyConfigurationModel; export declare function isConfigurationSlotType(thing: unknown): thing is object & Record<"isJBrowseConfigurationSlot", unknown>;