quasar-ui-example-viewer
Version:
Display Vue code examples with template, script and style parts with optional source and codepen links
15 lines (12 loc) • 414 B
TypeScript
export type LooseDictionary = { [index in string]: any };
export type StringDictionary<T extends string> = Required<
{ [index in T]: string }
>;
// See: https://stackoverflow.com/a/49936686/7931540
export type DeepPartial<T> = {
[P in keyof T]?: T[P] extends Array<infer U>
? Array<DeepPartial<U>>
: T[P] extends ReadonlyArray<infer U>
? ReadonlyArray<DeepPartial<U>>
: DeepPartial<T[P]>;
};