Actualizacion maquina principal
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-prettier / node_modules / @typescript-eslint / experimental-utils / _ts3.4 / dist / ast-utils / predicates.d.ts
diff --git a/.config/coc/extensions/node_modules/coc-prettier/node_modules/@typescript-eslint/experimental-utils/_ts3.4/dist/ast-utils/predicates.d.ts b/.config/coc/extensions/node_modules/coc-prettier/node_modules/@typescript-eslint/experimental-utils/_ts3.4/dist/ast-utils/predicates.d.ts
new file mode 100644 (file)
index 0000000..fb25732
--- /dev/null
@@ -0,0 +1,58 @@
+import { TSESTree } from '../ts-estree';\r
+declare function isOptionalChainPunctuator(token: TSESTree.Token | TSESTree.Comment): token is TSESTree.PunctuatorToken & {\r
+    value: '?.';\r
+};\r
+declare function isNotOptionalChainPunctuator(token: TSESTree.Token | TSESTree.Comment): boolean;\r
+declare function isNonNullAssertionPunctuator(token: TSESTree.Token | TSESTree.Comment): token is TSESTree.PunctuatorToken & {\r
+    value: '!';\r
+};\r
+declare function isNotNonNullAssertionPunctuator(token: TSESTree.Token | TSESTree.Comment): boolean;\r
+/**\r
+ * Returns true if and only if the node represents: foo?.() or foo.bar?.()\r
+ */\r
+declare function isOptionalOptionalCallExpression(node: TSESTree.Node): node is TSESTree.OptionalCallExpression & {\r
+    optional: true;\r
+};\r
+/**\r
+ * Returns true if and only if the node represents logical OR\r
+ */\r
+declare function isLogicalOrOperator(node: TSESTree.Node): node is TSESTree.LogicalExpression & {\r
+    operator: '||';\r
+};\r
+/**\r
+ * Checks if a node is a type assertion:\r
+ * ```\r
+ * x as foo\r
+ * <foo>x\r
+ * ```\r
+ */\r
+declare function isTypeAssertion(node: TSESTree.Node | undefined | null): node is TSESTree.TSAsExpression | TSESTree.TSTypeAssertion;\r
+declare function isVariableDeclarator(node: TSESTree.Node | undefined): node is TSESTree.VariableDeclarator;\r
+declare function isFunction(node: TSESTree.Node | undefined): node is TSESTree.ArrowFunctionExpression | TSESTree.FunctionDeclaration | TSESTree.FunctionExpression;\r
+declare function isFunctionType(node: TSESTree.Node | undefined): node is TSESTree.TSCallSignatureDeclaration | TSESTree.TSConstructorType | TSESTree.TSConstructSignatureDeclaration | TSESTree.TSEmptyBodyFunctionExpression | TSESTree.TSFunctionType | TSESTree.TSMethodSignature;\r
+declare function isFunctionOrFunctionType(node: TSESTree.Node | undefined): node is TSESTree.ArrowFunctionExpression | TSESTree.FunctionDeclaration | TSESTree.FunctionExpression | TSESTree.TSCallSignatureDeclaration | TSESTree.TSConstructorType | TSESTree.TSConstructSignatureDeclaration | TSESTree.TSEmptyBodyFunctionExpression | TSESTree.TSFunctionType | TSESTree.TSMethodSignature;\r
+declare function isTSFunctionType(node: TSESTree.Node | undefined): node is TSESTree.TSFunctionType;\r
+declare function isTSConstructorType(node: TSESTree.Node | undefined): node is TSESTree.TSConstructorType;\r
+declare function isClassOrTypeElement(node: TSESTree.Node | undefined): node is TSESTree.ClassElement | TSESTree.TypeElement;\r
+/**\r
+ * Checks if a node is a constructor method.\r
+ */\r
+declare function isConstructor(node: TSESTree.Node | undefined): node is TSESTree.MethodDefinition;\r
+/**\r
+ * Checks if a node is a setter method.\r
+ */\r
+declare function isSetter(node: TSESTree.Node | undefined): node is TSESTree.MethodDefinition | TSESTree.Property;\r
+declare function isIdentifier(node: TSESTree.Node | undefined): node is TSESTree.Identifier;\r
+/**\r
+ * Checks if a node represents an `await …` expression.\r
+ */\r
+declare function isAwaitExpression(node: TSESTree.Node | undefined | null): node is TSESTree.AwaitExpression;\r
+/**\r
+ * Checks if a possible token is the `await` keyword.\r
+ */\r
+declare function isAwaitKeyword(node: TSESTree.Token | TSESTree.Comment | undefined | null): node is TSESTree.KeywordToken & {\r
+    value: 'await';\r
+};\r
+declare function isMemberOrOptionalMemberExpression(node: TSESTree.Node): node is TSESTree.MemberExpression | TSESTree.OptionalMemberExpression;\r
+export { isAwaitExpression, isAwaitKeyword, isConstructor, isClassOrTypeElement, isFunction, isFunctionOrFunctionType, isFunctionType, isIdentifier, isLogicalOrOperator, isMemberOrOptionalMemberExpression, isNonNullAssertionPunctuator, isNotNonNullAssertionPunctuator, isNotOptionalChainPunctuator, isOptionalChainPunctuator, isOptionalOptionalCallExpression, isSetter, isTSConstructorType, isTSFunctionType, isTypeAssertion, isVariableDeclarator, };\r
+//# sourceMappingURL=predicates.d.ts.map\r