@getcronit/pylon-builder
Version:
17 lines (16 loc) • 924 B
TypeScript
import ts from 'typescript';
export declare const isEmptyObject: (type: ts.Type) => boolean | 0;
export declare const isList: (checker: ts.TypeChecker, type: ts.Type) => boolean;
export declare const isBoolean: (type: ts.Type) => boolean;
export declare const isPrimitive: (type: ts.Type) => number;
export declare const isFunction: (type: ts.Type) => boolean;
export declare const isPrimitiveUnion: (type: ts.Type) => boolean;
export declare const isPromise: (type: ts.Type) => boolean;
export declare const getPromiseType: (type: ts.Type) => ts.Type | undefined;
export declare const excludeNullUndefinedFromType: (type: ts.Type) => {
type: ts.Type;
wasOptional: boolean;
};
export declare function getPublicPropertiesOfType(checker: ts.TypeChecker, _type: ts.Type): ts.Symbol[];
export declare const safeTypeName: (name: string) => string;
export declare const isSubscriptionRepeater: (type: ts.Type) => boolean;