UNPKG

241 BTypeScriptView Raw
1import { IsFullyWritable } from "../is-fully-writable";
2export type ReadonlyKeys<Type extends object> = Type extends unknown ? keyof {
3 [Key in keyof Type as IsFullyWritable<Pick<Type, Key>> extends true ? never : Key]: never;
4} : never;