FuncType - v0.20.0
    Preparing search index...

    Type Alias InstanceType<T>

    InstanceType: T extends (...args: infer Args) => infer R
        ? R extends (...args: unknown[]) => unknown ? ReturnType<R> : R
        : never

    Extracts the instance type from a constructor function

    Type Parameters

    • T

      The constructor function type

    type OptionInstance = InstanceType<typeof Option>
    // Option<T>