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

    Variable isSymbolFlagSetConst

    isSymbolFlagSet: (symbol: ts.Symbol, flag: ts.SymbolFlags) => boolean = isFlagSetOnObject

    Test if the given node has the given SymbolFlags set.

    Type Declaration

      • (symbol: ts.Symbol, flag: ts.SymbolFlags): boolean
      • Parameters

        • symbol: ts.Symbol
        • flag: ts.SymbolFlags

        Returns boolean

    declare const symbol: ts.Symbol;

    if (isSymbolFlagSet(symbol, ts.SymbolFlags.Accessor)) {
    // ...
    }