How to use the __importDefault function from tslib

Find comprehensive JavaScript tslib.__importDefault code examples handpicked from public code repositorys.

-1
fork icon1
star icon4
watch icon2

+ 26 other calls in file

-1
fork icon1
star icon0
watch icon1

+ 4 other calls in file

-1
fork icon0
star icon2
watch icon1

+ 88 other calls in file

3
4
5
6
7
8
9
10
11
12
const tslib_1 = require("tslib");
const fslib_1 = require("@yarnpkg/fslib");
const https_1 = require("https");
const http_1 = require("http");
const micromatch_1 = tslib_1.__importDefault(require("micromatch"));
const tunnel_1 = tslib_1.__importDefault(require("tunnel"));
const url_1 = require("url");
const MessageName_1 = require("./MessageName");
const Report_1 = require("./Report");
const formatUtils = tslib_1.__importStar(require("./formatUtils"));
fork icon0
star icon0
watch icon3

0
1
2
3
4
5
6
7
8
9
"use strict";;
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = require("tslib");
var es_proposals_1 = tslib_1.__importDefault(require("./es-proposals"));
var type_annotations_1 = tslib_1.__importDefault(require("./type-annotations"));
var types_1 = tslib_1.__importDefault(require("../lib/types"));
var shared_1 = tslib_1.__importDefault(require("../lib/shared"));
function default_1(fork) {
    fork.use(es_proposals_1.default);
    fork.use(type_annotations_1.default);
fork icon0
star icon0
watch icon2

+ 7 other calls in file

-2
fork icon0
star icon0
watch icon2

+ 11 other calls in file

950
951
952
953
954
955
956
957
958
959
const tslib_1 = require("tslib");
const BulletType_1 = require("../Contracts/BulletType");
const Explosion_1 = require("../Effects/Explosion");
const index_1 = require("../index");
const Utils_1 = tslib_1.__importDefault(require("../Utils/Utils"));
const GameModel_1 = tslib_1.__importDefault(require("./GameModel"));
const GameUnit_1 = tslib_1.__importDefault(require("./GameUnit"));
class Bullet extends GameUnit_1.default {
    constructor(ownerX, ownerY, origin, container) {
        super(container);
fork icon0
star icon0
watch icon1

+ 151 other calls in file

0
1
2
3
4
5
6
7
8
9
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.resolveDefaultsModeConfig = void 0;
const tslib_1 = require("tslib");
const property_provider_1 = require("@aws-sdk/property-provider");
const bowser_1 = tslib_1.__importDefault(require("bowser"));
const constants_1 = require("./constants");
const resolveDefaultsModeConfig = ({ defaultsMode, } = {}) => (0, property_provider_1.memoize)(async () => {
    const mode = typeof defaultsMode === "function" ? await defaultsMode() : defaultsMode;
    switch (mode === null || mode === void 0 ? void 0 : mode.toLowerCase()) {
fork icon0
star icon0
watch icon1

-1
fork icon0
star icon0
watch icon1

+ 3 other calls in file

1
2
3
4
5
6
7
8
9
10
Object.defineProperty(exports, "__esModule", { value: true });
exports.validateOptions = void 0;
const tslib_1 = require("tslib");
const fs_1 = tslib_1.__importDefault(require("fs"));
const path_1 = tslib_1.__importDefault(require("path"));
const util_1 = tslib_1.__importDefault(require("util"));
const utils_validation_1 = require("@docusaurus/utils-validation");
const parse_1 = require("./parse");
const logger_1 = tslib_1.__importDefault(require("./logger"));
const lunr = require("../lunr.js");
fork icon0
star icon0
watch icon1

+ 7 other calls in file