How to use the isExternalModule function from typescript

Find comprehensive JavaScript typescript.isExternalModule code examples handpicked from public code repositorys.

30
31
32
33
34
35
36
37
38
39
var BlockScopeAwareRuleWalker = /** @class */ (function (_super) {
    tslib_1.__extends(BlockScopeAwareRuleWalker, _super);
    function BlockScopeAwareRuleWalker(sourceFile, options) {
        var _this = _super.call(this, sourceFile, options) || this;
        // initialize with global scope if file is not a module
        _this.blockScopeStack = ts.isExternalModule(sourceFile)
            ? []
            : [_this.createBlockScope(sourceFile)];
        return _this;
    }
fork icon0
star icon0
watch icon1

Other functions in typescript

Sorted by popularity

function icon

typescript.SyntaxKind is the most popular function in typescript (82777 examples)