Stone.js API
    Preparing search index...

    Variable isConstructorConst

    isConstructor: <ClassType = any>(
        value: unknown,
    ) => value is new (...args: any[]) => ClassType

    Checks if the given value is a constructor function.

    Type Declaration

      • <ClassType = any>(value: unknown): value is new (...args: any[]) => ClassType
      • Type Parameters

        • ClassType = any

        Parameters

        • value: unknown

          The value to be checked.

        Returns value is new (...args: any[]) => ClassType

        True if the value is a constructor function, false otherwise.