Files
OverlayScrollbars/packages/overlayscrollbars/src/typings.ts
T
2022-07-27 11:48:34 +02:00

18 lines
543 B
TypeScript

export type DeepPartial<T> = {
[P in keyof T]?: T[P] extends Record<string, unknown> ? DeepPartial<T[P]> : T[P];
};
export type DeepReadonly<T> = {
readonly [P in keyof T]: T[P] extends Record<string, unknown> ? DeepReadonly<T[P]> : T[P];
};
export type PlainObject<T = any> = { [name: string]: T };
export type StyleObject<CustomCssProps = ''> = {
[Key in keyof CSSStyleDeclaration | (CustomCssProps extends string ? CustomCssProps : '')]?:
| string
| number;
};
export type OverflowStyle = 'scroll' | 'hidden' | 'visible';