Files
memecoin-botV2/.pnpm-store/v10/files/eb/df211d927afc7ec7d4bc2323e9ef7425a4699c2a48a2e2036c86a6d8095a2c937c8c0340687ad808967aaa5828b942fdef1d842777e7afc72b00d0c3fd4096

13 lines
487 B
Plaintext

import type * as ts from 'typescript';
export declare enum AnyType {
Any = 0,
PromiseAny = 1,
AnyArray = 2,
Safe = 3
}
/**
* @returns `AnyType.Any` if the type is `any`, `AnyType.AnyArray` if the type is `any[]` or `readonly any[]`, `AnyType.PromiseAny` if the type is `Promise<any>`,
* otherwise it returns `AnyType.Safe`.
*/
export declare function discriminateAnyType(type: ts.Type, checker: ts.TypeChecker, program: ts.Program, tsNode: ts.Node): AnyType;