@yookue/ts-lang-utils
Version:
Common lang utilities for typescript
57 lines (55 loc) • 2.09 kB
JavaScript
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __export = (target, all) => {
for (var name in all)
__defProp(target, name, { get: all[name], enumerable: true });
};
var __copyProps = (to, from, except, desc) => {
if (from && typeof from === "object" || typeof from === "function") {
for (let key of __getOwnPropNames(from))
if (!__hasOwnProp.call(to, key) && key !== except)
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
}
return to;
};
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
// src/web/LocalStorage/index.ts
var LocalStorage_exports = {};
__export(LocalStorage_exports, {
clear: () => import_clear.clear,
forEach: () => import_forEach.forEach,
forEachBreakable: () => import_forEachBreakable.forEachBreakable,
forEachIndexing: () => import_forEachIndexing.forEachIndexing,
getKey: () => import_getKey.getKey,
getLength: () => import_getLength.getLength,
getValue: () => import_getValue.getValue,
hasKey: () => import_hasKey.hasKey,
removeItem: () => import_removeItem.removeItem,
setItem: () => import_setItem.setItem
});
module.exports = __toCommonJS(LocalStorage_exports);
var import_clear = require("./clear");
var import_forEach = require("./forEach");
var import_forEachBreakable = require("./forEachBreakable");
var import_forEachIndexing = require("./forEachIndexing");
var import_getKey = require("./getKey");
var import_getLength = require("./getLength");
var import_getValue = require("./getValue");
var import_hasKey = require("./hasKey");
var import_removeItem = require("./removeItem");
var import_setItem = require("./setItem");
// Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = {
clear,
forEach,
forEachBreakable,
forEachIndexing,
getKey,
getLength,
getValue,
hasKey,
removeItem,
setItem
});