docs/libs/typescript.js
function isIndependentType(node) {
            switch (node.kind) {
                case 117 /* AnyKeyword */:
                case 132 /* StringKeyword */:
                case 130 /* NumberKeyword */:
                case 120 /* BooleanKeyword */:
                case 133 /* SymbolKeyword */:
                case 103 /* VoidKeyword */:
                case 135 /* UndefinedKeyword */:
                case 93 /* NullKeyword */:
                case 127 /* NeverKeyword */:
                case 166 /* LiteralType */:
                    return true;
                case 160 /* ArrayType */:
                    return isIndependentType(node.elementType);
                case 155 /* TypeReference */:
                    return isIndependentTypeReference(node);
            }
            return false;
        }
function isIndependentType(node) {
            switch (node.kind) {
                case 117 /* AnyKeyword */:
                case 132 /* StringKeyword */:
                case 130 /* NumberKeyword */:
                case 120 /* BooleanKeyword */:
                case 133 /* SymbolKeyword */:
                case 103 /* VoidKeyword */:
                case 135 /* UndefinedKeyword */:
                case 93 /* NullKeyword */:
                case 127 /* NeverKeyword */:
                case 166 /* LiteralType */:
                    return true;
                case 160 /* ArrayType */:
                    return isIndependentType(node.elementType);
                case 155 /* TypeReference */:
                    return isIndependentTypeReference(node);
            }
            return false;
        }
function isIndependentType ( node ) { switch ( node . kind ) { case 117 /* AnyKeyword */ : case 132 /* StringKeyword */ : case 130 /* NumberKeyword */ : case 120 /* BooleanKeyword */ : case 133 /* SymbolKeyword */ : case 103 /* VoidKeyword */ : case 135 /* UndefinedKeyword */ : case 93 /* NullKeyword */ : case 127 /* NeverKeyword */ : case 166 /* LiteralType */ : return true ; case 160 /* ArrayType */ : return isIndependentType ( node . elementType ) ; case 155 /* TypeReference */ : return isIndependentTypeReference ( node ) ; } return false ; }
A type is considered independent if it the any, string, number, boolean, symbol, or void keyword, a string literal type, an array with an element type that is considered independent, or a type reference that is considered independent.
A type is considered independent if it the any string number boolean symbol or void keyword a string literal type an array with an element type that is considered independent or a type reference that is considered independent .