@testplane/storybook
Version:
Testplane plugin that enables runtime screenshot storybook tests autogeneration
4 lines (3 loc) • 348 B
TypeScript
export type Inheritable<T extends Record<any, any>> = T | ((baseValue: T) => T);
export declare function inheritValue<T extends Record<any, any>>(...values: Array<undefined | Inheritable<T>>): undefined | Inheritable<T>;
export declare function extractInheritedValue<T extends Record<any, any>>(value: undefined | Inheritable<T>, baseValue: T): T;