Enabling shorter import paths [automatic]

This commit is contained in:
ts_ci
2021-03-02 22:51:05 +00:00
parent 2f592ab38c
commit fb148fe56d
108 changed files with 21065 additions and 223 deletions

View File

@ -0,0 +1,2 @@
import "minimal-polyfills/Object.fromEntries";
export declare function allPropertiesValuesToUndefined<T extends Record<string, unknown>>(obj: T): Record<keyof T, undefined>;

View File

@ -0,0 +1,29 @@
"use strict";
var __read = (this && this.__read) || function (o, n) {
var m = typeof Symbol === "function" && o[Symbol.iterator];
if (!m) return o;
var i = m.call(o), r, ar = [], e;
try {
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
}
catch (error) { e = { error: error }; }
finally {
try {
if (r && !r.done && (m = i["return"])) m.call(i);
}
finally { if (e) throw e.error; }
}
return ar;
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.allPropertiesValuesToUndefined = void 0;
require("minimal-polyfills/Object.fromEntries");
function allPropertiesValuesToUndefined(obj) {
return Object.fromEntries(Object.entries(obj)
.map(function (_a) {
var _b = __read(_a, 1), key = _b[0];
return [key, undefined];
}));
}
exports.allPropertiesValuesToUndefined = allPropertiesValuesToUndefined;
//# sourceMappingURL=allPropertiesValuesToUndefined.js.map

View File

@ -0,0 +1 @@
{"version":3,"file":"allPropertiesValuesToUndefined.js","sourceRoot":"","sources":["../../src/lib/tools/allPropertiesValuesToUndefined.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;AAEA,gDAA8C;AAE9C,SAAgB,8BAA8B,CAAoC,GAAM;IACpF,OAAO,MAAM,CAAC,WAAW,CACrB,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC;SACd,GAAG,CAAC,UAAC,EAAK;YAAL,KAAA,aAAK,EAAJ,GAAG,QAAA;QAAM,OAAA,CAAC,GAAG,EAAE,SAAS,CAAC;IAAhB,CAAgB,CAAC,CACjC,CAAC;AACb,CAAC;AALD,wEAKC"}

3
lib/tools/appendLinkInHead.d.ts vendored Normal file
View File

@ -0,0 +1,3 @@
export declare function appendLinkInHead(props: {
href: string;
}): void;

View File

@ -0,0 +1,16 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.appendLinkInHead = void 0;
function appendLinkInHead(props) {
var href = props.href;
var link = document.createElement("link");
Object.assign(link, {
href: href,
"type": "text/css",
"rel": "stylesheet",
"media": "screen,print"
});
document.getElementsByTagName("head")[0].appendChild(link);
}
exports.appendLinkInHead = appendLinkInHead;
//# sourceMappingURL=appendLinkInHead.js.map

View File

@ -0,0 +1 @@
{"version":3,"file":"appendLinkInHead.js","sourceRoot":"","sources":["../../src/lib/tools/appendLinkInHead.ts"],"names":[],"mappings":";;;AACA,SAAgB,gBAAgB,CAC5B,KAEC;IAGO,IAAA,IAAI,GAAK,KAAK,KAAV,CAAW;IAEvB,IAAI,IAAI,GAAG,QAAQ,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC;IAE1C,MAAM,CAAC,MAAM,CACT,IAAI,EACJ;QACI,IAAI,MAAA;QACJ,MAAM,EAAE,UAAU;QAClB,KAAK,EAAE,YAAY;QACnB,OAAO,EAAE,cAAc;KAC1B,CACJ,CAAC;IAEF,QAAQ,CAAC,oBAAoB,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;AAE/D,CAAC;AAtBD,4CAsBC"}

3
lib/tools/appendScriptInHead.d.ts vendored Normal file
View File

@ -0,0 +1,3 @@
export declare function appendScriptInHead(props: {
src: string;
}): void;

View File

@ -0,0 +1,14 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.appendScriptInHead = void 0;
function appendScriptInHead(props) {
var src = props.src;
var script = document.createElement("script");
Object.assign(script, {
src: src,
"type": "text/javascript",
});
document.getElementsByTagName("head")[0].appendChild(script);
}
exports.appendScriptInHead = appendScriptInHead;
//# sourceMappingURL=appendScriptInHead.js.map

View File

@ -0,0 +1 @@
{"version":3,"file":"appendScriptInHead.js","sourceRoot":"","sources":["../../src/lib/tools/appendScriptInHead.ts"],"names":[],"mappings":";;;AACA,SAAgB,kBAAkB,CAC9B,KAEC;IAGO,IAAA,GAAG,GAAK,KAAK,IAAV,CAAW;IAEtB,IAAI,MAAM,GAAG,QAAQ,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAC;IAE9C,MAAM,CAAC,MAAM,CACT,MAAM,EACN;QACI,GAAG,KAAA;QACH,MAAM,EAAE,iBAAiB;KAC5B,CACJ,CAAC;IAEF,QAAQ,CAAC,oBAAoB,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC;AAEjE,CAAC;AApBD,gDAoBC"}