persona-community-5/.pnpm-store/v3/files/d3/ce8a2050c05bd51fa72f6b125e3c4e7ad4429418a50fd519a456d1a65b182693bfeeccdf24f29634f8d0754200f0f754c91b2b12336f9a39dc998ccf5b5d4c
rdev-worker a1d0d1bf1c
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
build: /implement-feature community-ui --requirements 'Build the React commu...
2026-02-24 08:22:30 +00:00

58 lines
2.2 KiB
Plaintext

import * as ts from 'typescript';
export interface IsNullableTypeOptions {
/**
* @deprecated - this flag no longer does anything and will be removed in the next major
*/
isReceiver?: boolean;
/**
* @deprecated - this flag no longer does anything and will be removed in the next major
*/
allowUndefined?: boolean;
}
/**
* Checks if the given type is (or accepts) nullable
*/
export declare function isNullableType(type: ts.Type, _deprecated?: IsNullableTypeOptions): boolean;
/**
* Checks if the given type is either an array type,
* or a union made up solely of array types.
*/
export declare function isTypeArrayTypeOrUnionOfArrayTypes(type: ts.Type, checker: ts.TypeChecker): boolean;
/**
* @returns true if the type is `never`
*/
export declare function isTypeNeverType(type: ts.Type): boolean;
/**
* @returns true if the type is `unknown`
*/
export declare function isTypeUnknownType(type: ts.Type): boolean;
export declare function isTypeReferenceType(type: ts.Type): type is ts.TypeReference;
/**
* @returns true if the type is `any`
*/
export declare function isTypeAnyType(type: ts.Type): boolean;
/**
* @returns true if the type is `any[]`
*/
export declare function isTypeAnyArrayType(type: ts.Type, checker: ts.TypeChecker): boolean;
/**
* @returns true if the type is `unknown[]`
*/
export declare function isTypeUnknownArrayType(type: ts.Type, checker: ts.TypeChecker): boolean;
export declare enum AnyType {
Any = 0,
AnyArray = 1,
Safe = 2
}
/**
* @returns `AnyType.Any` if the type is `any`, `AnyType.AnyArray` if the type is `any[]` or `readonly any[]`,
* otherwise it returns `AnyType.Safe`.
*/
export declare function isAnyOrAnyArrayTypeDiscriminated(node: ts.Node, checker: ts.TypeChecker): AnyType;
/**
* @returns Whether a type is an instance of the parent type, including for the parent's base types.
*/
export declare function typeIsOrHasBaseType(type: ts.Type, parentType: ts.Type): boolean;
export declare function isTypeBigIntLiteralType(type: ts.Type): type is ts.BigIntLiteralType;
export declare function isTypeTemplateLiteralType(type: ts.Type): type is ts.TemplateLiteralType;
//# sourceMappingURL=predicates.d.ts.map