FuncType - v0.20.0
    Preparing search index...

    Type Alias CompanionMethods<T>

    CompanionMethods: T extends (...args: never[]) => unknown & infer C ? C : never

    Extracts the companion methods type from a Companion object

    Type Parameters

    • T

      The Companion type

    type OptionCompanionMethods = CompanionMethods<typeof Option>
    // { from: ..., none: ..., fromJSON: ..., etc. }