Dev Build / cleanup (push) Canceled after 0s
Dev Build / typecheck (push) Canceled after 0s
Dev Build / build (linux-arm64, ubuntu-24.04-arm, linux-arm64) (push) Canceled after 0s
Dev Build / build (linux-x64, ubuntu-latest, linux-x64) (push) Canceled after 0s
Dev Build / build (win-x64, windows-latest, win32-x64) (push) Canceled after 0s
Dev Build / dispatch-dev-docker (push) Canceled after 0s
18 lines
786 B
Plaintext
18 lines
786 B
Plaintext
import * as ts from 'typescript';
|
|
/**
|
|
* Gets all of the type flags in a type, iterating through unions automatically.
|
|
*/
|
|
export declare function getTypeFlags(type: ts.Type): ts.TypeFlags;
|
|
/**
|
|
* @param flagsToCheck The composition of one or more `ts.TypeFlags`.
|
|
* @param isReceiver Whether the type is a receiving type (e.g. the type of a
|
|
* called function's parameter).
|
|
* @remarks
|
|
* Note that if the type is a union, this function will decompose it into the
|
|
* parts and get the flags of every union constituent. If this is not desired,
|
|
* use the `isTypeFlag` function from tsutils.
|
|
*/
|
|
export declare function isTypeFlagSet(type: ts.Type, flagsToCheck: ts.TypeFlags,
|
|
/** @deprecated This params is not used and will be removed in the future.*/
|
|
isReceiver?: boolean): boolean;
|