ts-api-utils - v3.0.0-rc.1
    Preparing search index...

    Variable isTypeFlagSetConst

    isTypeFlagSet: (type: ts.Type, flag: ts.TypeFlags) => boolean = isFlagSetOnObject

    Test if the given node has the given TypeFlags set.

    Type Declaration

      • (type: ts.Type, flag: ts.TypeFlags): boolean
      • Parameters

        • type: ts.Type
        • flag: ts.TypeFlags

        Returns boolean

    declare const type: ts.Type;

    if (isTypeFlagSet(type, ts.TypeFlags.Any)) {
    // ...
    }