import { TsAutoMockCacheOptions } from './cache' ; import { TsAutoMockDebugOptions } from './debug' ; import { defaultOptions } from './default' ; import { TsAutoMockFeaturesOption } from './features' ; import { TsAutoMockFilesOption } from './files' ; export interface TsAutoMockOptions { debug : TsAutoMockDebugOptions ; cacheBetweenTests : TsAutoMockCacheOptions ; features : TsAutoMockFeaturesOption [ ] ; files : TsAutoMockFilesOption ; } let tsAutoMockOptions = defaultOptions ; export function SetTsAutoMockOptions ( options ) { tsAutoMockOptions = { ... defaultOptions , ... options , } ; } export function GetOptionByKey < T extends keyof TsAutoMockOptions > ( optionKey ) { return tsAutoMockOptions [ optionKey ] ; }