UNPKG

294 BTypeScriptView Raw
1import { ReadonlyKeys } from "../readonly-keys";
2import { Writable } from "../writable";
3export type MarkReadonly<Type, Keys extends keyof Type> = Type extends Type ? Readonly<Type> & Writable<Pick<Type, Exclude<keyof Type, Keys | (Type extends object ? ReadonlyKeys<Type> : never)>>> : never;