Actualizacion maquina principal
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-prettier / node_modules / tsutils / typeguard / 2.8 / type.js
1 "use strict";
2 Object.defineProperty(exports, "__esModule", { value: true });
3 const ts = require("typescript");
4 function isConditionalType(type) {
5     return (type.flags & ts.TypeFlags.Conditional) !== 0;
6 }
7 exports.isConditionalType = isConditionalType;
8 function isEnumType(type) {
9     return (type.flags & ts.TypeFlags.Enum) !== 0;
10 }
11 exports.isEnumType = isEnumType;
12 function isGenericType(type) {
13     return (type.flags & ts.TypeFlags.Object) !== 0 &&
14         (type.objectFlags & ts.ObjectFlags.ClassOrInterface) !== 0 &&
15         (type.objectFlags & ts.ObjectFlags.Reference) !== 0;
16 }
17 exports.isGenericType = isGenericType;
18 function isIndexedAccessType(type) {
19     return (type.flags & ts.TypeFlags.IndexedAccess) !== 0;
20 }
21 exports.isIndexedAccessType = isIndexedAccessType;
22 function isIndexedAccessype(type) {
23     return (type.flags & ts.TypeFlags.Index) !== 0;
24 }
25 exports.isIndexedAccessype = isIndexedAccessype;
26 function isInstantiableType(type) {
27     return (type.flags & ts.TypeFlags.Instantiable) !== 0;
28 }
29 exports.isInstantiableType = isInstantiableType;
30 function isInterfaceType(type) {
31     return (type.flags & ts.TypeFlags.Object) !== 0 &&
32         (type.objectFlags & ts.ObjectFlags.ClassOrInterface) !== 0;
33 }
34 exports.isInterfaceType = isInterfaceType;
35 function isIntersectionType(type) {
36     return (type.flags & ts.TypeFlags.Intersection) !== 0;
37 }
38 exports.isIntersectionType = isIntersectionType;
39 function isLiteralType(type) {
40     return (type.flags & (ts.TypeFlags.StringOrNumberLiteral | ts.TypeFlags.BigIntLiteral)) !== 0;
41 }
42 exports.isLiteralType = isLiteralType;
43 function isObjectType(type) {
44     return (type.flags & ts.TypeFlags.Object) !== 0;
45 }
46 exports.isObjectType = isObjectType;
47 function isSubstitutionType(type) {
48     return (type.flags & ts.TypeFlags.Substitution) !== 0;
49 }
50 exports.isSubstitutionType = isSubstitutionType;
51 function isTypeParameter(type) {
52     return (type.flags & ts.TypeFlags.TypeParameter) !== 0;
53 }
54 exports.isTypeParameter = isTypeParameter;
55 function isTypeReference(type) {
56     return (type.flags & ts.TypeFlags.Object) !== 0 &&
57         (type.objectFlags & ts.ObjectFlags.Reference) !== 0;
58 }
59 exports.isTypeReference = isTypeReference;
60 function isTypeVariable(type) {
61     return (type.flags & ts.TypeFlags.TypeVariable) !== 0;
62 }
63 exports.isTypeVariable = isTypeVariable;
64 function isUnionOrIntersectionType(type) {
65     return (type.flags & ts.TypeFlags.UnionOrIntersection) !== 0;
66 }
67 exports.isUnionOrIntersectionType = isUnionOrIntersectionType;
68 function isUnionType(type) {
69     return (type.flags & ts.TypeFlags.Union) !== 0;
70 }
71 exports.isUnionType = isUnionType;
72 function isUniqueESSymbolType(type) {
73     return (type.flags & ts.TypeFlags.UniqueESSymbol) !== 0;
74 }
75 exports.isUniqueESSymbolType = isUniqueESSymbolType;