UNPKG

quasar-json-api

Version:

Normalizes and validates JSON API for 3rd-party Quasar Components, Directives, Mixins and Plugins using the Quasar UI Kit

15 lines (12 loc) 414 B
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]>; };