mirror of
https://github.com/tenrok/OverlayScrollbars.git
synced 2026-06-09 15:22:27 +03:00
18 lines
543 B
TypeScript
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';
|