mirror of
https://gitee.com/element-plus/element-plus.git
synced 2024-12-14 09:20:51 +08:00
e083447b48
* refactor(components): [collapse] refactor * refactor(components): [collapse] refactor * refactor: rename Co-authored-by: 三咲智子 <sxzz@sxzz.moe>
15 lines
413 B
TypeScript
15 lines
413 B
TypeScript
export const mutable = <T extends readonly any[] | Record<string, unknown>>(
|
|
val: T
|
|
) => val as Mutable<typeof val>
|
|
export type Mutable<T> = { -readonly [P in keyof T]: T[P] }
|
|
|
|
export type HTMLElementCustomized<T> = HTMLElement & T
|
|
|
|
/**
|
|
* @deprecated stop to use null
|
|
* @see {@link https://github.com/sindresorhus/meta/discussions/7}
|
|
*/
|
|
export type Nullable<T> = T | null
|
|
|
|
export type Arrayable<T> = T | T[]
|