docs/libs/typescript.js
function maybeTypeOfKind(type, kind) {
            if (type.flags & kind) {
                return true;
            }
            if (type.flags & 1572864 /* UnionOrIntersection */) {
                var types = type.types;
                for (var _i = 0, types_13 = types; _i < types_13.length; _i++) {
                    var t = types_13[_i];
                    if (maybeTypeOfKind(t, kind)) {
                        return true;
                    }
                }
            }
            return false;
        }
function maybeTypeOfKind(type, kind) {
            if (type.flags & kind) {
                return true;
            }
            if (type.flags & 1572864 /* UnionOrIntersection */) {
                var types = type.types;
                for (var _i = 0, types_13 = types; _i < types_13.length; _i++) {
                    var t = types_13[_i];
                    if (maybeTypeOfKind(t, kind)) {
                        return true;
                    }
                }
            }
            return false;
        }
function maybeTypeOfKind ( type , kind ) { if ( type . flags & kind ) { return true ; } if ( type . flags & 1572864 /* UnionOrIntersection */ ) { var types = type . types ; for ( var _i = 0 , types_13 = types ; _i < types_13 . length ; _i ++ ) { var t = types_13 [ _i ] ; if ( maybeTypeOfKind ( t , kind ) ) { return true ; } } } return false ; }
Return true if type might be of the given kind. A union or intersection type might be of a given kind if at least one constituent type is of the given kind.
Return true if type might be of the given kind . A union or intersection type might be of a given kind if at least one constituent type is of the given kind .