mirror of
https://gitee.com/element-plus/element-plus.git
synced 2024-12-15 18:01:24 +08:00
7 lines
234 B
TypeScript
7 lines
234 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
|