.gitignore added
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-prettier / node_modules / tsutils / util / type.d.ts
diff --git a/.config/coc/extensions/node_modules/coc-prettier/node_modules/tsutils/util/type.d.ts b/.config/coc/extensions/node_modules/coc-prettier/node_modules/tsutils/util/type.d.ts
new file mode 100644 (file)
index 0000000..64d17fe
--- /dev/null
@@ -0,0 +1,35 @@
+import * as ts from 'typescript';\r
+import { PropertyName } from './util';\r
+export declare function isEmptyObjectType(type: ts.Type): type is ts.ObjectType;\r
+export declare function removeOptionalityFromType(checker: ts.TypeChecker, type: ts.Type): ts.Type;\r
+export declare function removeOptionalChainingUndefinedMarkerType(checker: ts.TypeChecker, type: ts.Type): ts.Type;\r
+export declare function isOptionalChainingUndefinedMarkerType(checker: ts.TypeChecker, t: ts.Type): boolean;\r
+export declare function isTypeAssignableToNumber(checker: ts.TypeChecker, type: ts.Type): boolean;\r
+export declare function isTypeAssignableToString(checker: ts.TypeChecker, type: ts.Type): boolean;\r
+export declare function getCallSignaturesOfType(type: ts.Type): ReadonlyArray<ts.Signature>;\r
+/** Returns all types of a union type or an array containing `type` itself if it's no union type. */\r
+export declare function unionTypeParts(type: ts.Type): ts.Type[];\r
+/** Returns all types of a intersection type or an array containing `type` itself if it's no intersection type. */\r
+export declare function intersectionTypeParts(type: ts.Type): ts.Type[];\r
+export declare function someTypePart(type: ts.Type, predicate: (t: ts.Type) => t is ts.UnionOrIntersectionType, cb: (t: ts.Type) => boolean): boolean;\r
+/** Determines if a type thenable and can be used with `await`. */\r
+export declare function isThenableType(checker: ts.TypeChecker, node: ts.Node, type: ts.Type): boolean;\r
+/** Determines if a type thenable and can be used with `await`. */\r
+export declare function isThenableType(checker: ts.TypeChecker, node: ts.Expression, type?: ts.Type): boolean;\r
+/** Determine if a type is definitely falsy. This function doesn't unwrap union types. */\r
+export declare function isFalsyType(type: ts.Type): boolean;\r
+/** Determines whether the given type is a boolean literal type and matches the given boolean literal (true or false). */\r
+export declare function isBooleanLiteralType(type: ts.Type, literal: boolean): boolean;\r
+export declare function getPropertyOfType(type: ts.Type, name: ts.__String): ts.Symbol | undefined;\r
+export declare function getWellKnownSymbolPropertyOfType(type: ts.Type, wellKnownSymbolName: string, checker: ts.TypeChecker): ts.Symbol | undefined;\r
+/** Determines if writing to a certain property of a given type is allowed. */\r
+export declare function isPropertyReadonlyInType(type: ts.Type, name: ts.__String, checker: ts.TypeChecker): boolean;\r
+export declare function symbolHasReadonlyDeclaration(symbol: ts.Symbol, checker: ts.TypeChecker): boolean;\r
+/** Returns the the literal name or unique symbol name from a given type. Doesn't unwrap union types. */\r
+export declare function getPropertyNameFromType(type: ts.Type): PropertyName | undefined;\r
+export declare function getSymbolOfClassLikeDeclaration(node: ts.ClassLikeDeclaration, checker: ts.TypeChecker): ts.Symbol;\r
+export declare function getConstructorTypeOfClassLikeDeclaration(node: ts.ClassLikeDeclaration, checker: ts.TypeChecker): ts.Type;\r
+export declare function getInstanceTypeOfClassLikeDeclaration(node: ts.ClassLikeDeclaration, checker: ts.TypeChecker): ts.Type;\r
+export declare function getIteratorYieldResultFromIteratorResult(type: ts.Type, node: ts.Node, checker: ts.TypeChecker): ts.Type;\r
+/** Lookup the declaration of a class member in the super class. */\r
+export declare function getBaseClassMemberOfClassElement(node: ts.PropertyDeclaration | ts.MethodDeclaration | ts.AccessorDeclaration, checker: ts.TypeChecker): ts.Symbol | undefined;\r