devtypes - v1.1.0
    Preparing search index...

    Type Alias PartialClass<T>

    PartialClass: Partial<Omit<T, MethodNames<T>>>

    Make all properties of a class optional for partial construction.

    Type Parameters

    • T

      The class type

    Useful for factory functions, builder patterns, or when only a subset of properties needs to be provided at initialization.

    class User { id: number; name: string; email: string; }
    type PartialUser = PartialClass< User >;
    // { id?: number; name?: string; email?: string; }