devtypes - v1.1.0
    Preparing search index...

    Type Alias WritableProperties<T>

    WritableProperties: Pick<T, WritablePropertyNames<T>>

    Extract writable (mutable) properties from a class as an object.

    Type Parameters

    • T

      A class or object type

    Returns an object type containing all writable properties. Useful for state updates, patches, or builders.

    class Profile { readonly id: number; bio: string; avatarUrl: string; }
    type WritablePropsObj = WritablePropertiesObject< Profile >;
    // { bio: string; avatarUrl: string; }