mirror of
https://github.com/swc-project/swc.git
synced 2024-12-29 00:23:10 +03:00
17 lines
199 B
TypeScript
17 lines
199 B
TypeScript
// #23734
|
|
type ObjType = {
|
|
foo: string
|
|
baz: string
|
|
quux: string
|
|
}
|
|
|
|
const obj: Readonly<ObjType> = {
|
|
foo: 'bar',
|
|
baz: 'qux',
|
|
quux: 'quuz',
|
|
}
|
|
|
|
const { foo, ...rest } = obj
|
|
|
|
delete rest.baz
|