Retrieves the keys that are immutable (readonly) from an object of type T.
type ExampleType = { a: number; readonly b: string; c: { a: string; d: { readonly x: Nullable; v: Maybe<Newable> }; };}; type ImmutableKeysOfExampleType = ImmutableKeys<ExampleType>;// Result: 'b' Copy
type ExampleType = { a: number; readonly b: string; c: { a: string; d: { readonly x: Nullable; v: Maybe<Newable> }; };}; type ImmutableKeysOfExampleType = ImmutableKeys<ExampleType>;// Result: 'b'
Retrieves the keys that are immutable (readonly) from an object of type T.