Skip to main content

OmitReadOnly

객체에서 읽기 전용 속성을 제거합니다

Signature

type OmitReadOnly<T extends Obj> = Omit<T, ReadonlyKeysOf<T>>;

References

Obj, ReadonlyKeysOf

Example

type Example = OmitReadOnly<{
readonly a: number;
b: string;
readonly c: string;
}>;

// type Example = { b : string; }