@mekari/pixel3-utils 0.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/array.d.mts +9 -0
- package/dist/array.d.ts +9 -0
- package/dist/array.js +39 -0
- package/dist/array.mjs +7 -0
- package/dist/chunk-2UGMOMBN.mjs +43 -0
- package/dist/chunk-555RL46T.mjs +18 -0
- package/dist/chunk-65WDFMBW.mjs +71 -0
- package/dist/chunk-HXLTBFWE.mjs +16 -0
- package/dist/chunk-PLTSXP5P.mjs +35 -0
- package/dist/chunk-QZ7VFGWC.mjs +6 -0
- package/dist/chunk-TJIIVYQV.mjs +31 -0
- package/dist/chunk-VSOR555U.mjs +31 -0
- package/dist/chunk-WBQAMGXK.mjs +0 -0
- package/dist/context.d.mts +4 -0
- package/dist/context.d.ts +4 -0
- package/dist/context.js +37 -0
- package/dist/context.mjs +7 -0
- package/dist/dom.d.mts +14 -0
- package/dist/dom.d.ts +14 -0
- package/dist/dom.js +53 -0
- package/dist/dom.mjs +9 -0
- package/dist/generators.d.mts +7 -0
- package/dist/generators.d.ts +7 -0
- package/dist/generators.js +54 -0
- package/dist/generators.mjs +11 -0
- package/dist/index.d.mts +10 -0
- package/dist/index.d.ts +10 -0
- package/dist/index.js +263 -0
- package/dist/index.mjs +58 -0
- package/dist/metafile-cjs.json +1 -0
- package/dist/metafile-esm.json +1 -0
- package/dist/object.d.mts +15 -0
- package/dist/object.d.ts +15 -0
- package/dist/object.js +59 -0
- package/dist/object.mjs +13 -0
- package/dist/performance.d.mts +3 -0
- package/dist/performance.d.ts +3 -0
- package/dist/performance.js +92 -0
- package/dist/performance.mjs +7 -0
- package/dist/types.d.mts +17 -0
- package/dist/types.d.ts +17 -0
- package/dist/types.js +18 -0
- package/dist/types.mjs +1 -0
- package/dist/validators.d.mts +15 -0
- package/dist/validators.d.ts +15 -0
- package/dist/validators.js +66 -0
- package/dist/validators.mjs +11 -0
- package/package.json +42 -0
package/dist/index.js
ADDED
|
@@ -0,0 +1,263 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
20
|
+
|
|
21
|
+
// src/index.ts
|
|
22
|
+
var src_exports = {};
|
|
23
|
+
__export(src_exports, {
|
|
24
|
+
declareEmit: () => declareEmit,
|
|
25
|
+
getChildren: () => getChildren,
|
|
26
|
+
getUniqueId: () => getUniqueId,
|
|
27
|
+
groupBy: () => groupBy,
|
|
28
|
+
isDef: () => isDef,
|
|
29
|
+
isElementVisible: () => isElementVisible,
|
|
30
|
+
isEqual: () => isEqual,
|
|
31
|
+
isObject: () => isObject,
|
|
32
|
+
isUndef: () => isUndef,
|
|
33
|
+
objectFilter: () => objectFilter,
|
|
34
|
+
objectFilterUndefined: () => objectFilterUndefined,
|
|
35
|
+
onClickOutside: () => import_core.onClickOutside,
|
|
36
|
+
onKeyStroke: () => import_core.onKeyStroke,
|
|
37
|
+
scrollToTargetElement: () => scrollToTargetElement,
|
|
38
|
+
unrefElement: () => import_core.unrefElement,
|
|
39
|
+
useId: () => useId,
|
|
40
|
+
useInfiniteScroll: () => import_core.useInfiniteScroll,
|
|
41
|
+
useIntersectionObserver: () => import_core.useIntersectionObserver,
|
|
42
|
+
usePerformanceObserver: () => usePerformanceObserver,
|
|
43
|
+
usePixelCreateContext: () => usePixelCreateContext,
|
|
44
|
+
useStorage: () => import_core.useStorage,
|
|
45
|
+
useVirtualList: () => import_core.useVirtualList
|
|
46
|
+
});
|
|
47
|
+
module.exports = __toCommonJS(src_exports);
|
|
48
|
+
|
|
49
|
+
// src/performance.ts
|
|
50
|
+
var import_vue = require("vue");
|
|
51
|
+
var usePerformanceObserver = /* @__PURE__ */ __name((label) => {
|
|
52
|
+
const startTime = (0, import_vue.ref)(performance.now());
|
|
53
|
+
const state = (0, import_vue.ref)({
|
|
54
|
+
timeToRender: 0,
|
|
55
|
+
firstInputDelay: 0,
|
|
56
|
+
timeToUpdate: 0,
|
|
57
|
+
numberOfData: 0,
|
|
58
|
+
startBenchmark: 0,
|
|
59
|
+
lifecycle: 0
|
|
60
|
+
});
|
|
61
|
+
(0, import_vue.onBeforeMount)(() => {
|
|
62
|
+
});
|
|
63
|
+
(0, import_vue.onBeforeUpdate)(() => {
|
|
64
|
+
state.value.startBenchmark = window.performance.now();
|
|
65
|
+
});
|
|
66
|
+
(0, import_vue.onMounted)(() => {
|
|
67
|
+
perfObserver();
|
|
68
|
+
(0, import_vue.nextTick)(() => {
|
|
69
|
+
state.value.lifecycle = performance.now() - startTime.value;
|
|
70
|
+
});
|
|
71
|
+
});
|
|
72
|
+
(0, import_vue.onUpdated)(() => {
|
|
73
|
+
domBenchmark();
|
|
74
|
+
});
|
|
75
|
+
function perfObserver() {
|
|
76
|
+
new PerformanceObserver((entryList) => {
|
|
77
|
+
for (const entry of entryList.getEntries()) {
|
|
78
|
+
state.value.timeToRender = entry.loadEventEnd - entry.responseEnd;
|
|
79
|
+
showConsole();
|
|
80
|
+
}
|
|
81
|
+
}).observe({
|
|
82
|
+
type: "navigation",
|
|
83
|
+
buffered: true
|
|
84
|
+
});
|
|
85
|
+
new PerformanceObserver((entryList) => {
|
|
86
|
+
for (const entry of entryList.getEntries()) {
|
|
87
|
+
state.value.firstInputDelay = entry.processingStart - entry.startTime;
|
|
88
|
+
showConsole();
|
|
89
|
+
}
|
|
90
|
+
}).observe({
|
|
91
|
+
type: "first-input",
|
|
92
|
+
buffered: true
|
|
93
|
+
});
|
|
94
|
+
}
|
|
95
|
+
__name(perfObserver, "perfObserver");
|
|
96
|
+
function domBenchmark() {
|
|
97
|
+
const end = window.performance.now();
|
|
98
|
+
state.value.timeToUpdate = end - state.value.startBenchmark;
|
|
99
|
+
showConsole();
|
|
100
|
+
}
|
|
101
|
+
__name(domBenchmark, "domBenchmark");
|
|
102
|
+
function showConsole() {
|
|
103
|
+
console.group(label);
|
|
104
|
+
console.log("LIFECYCLE", state.value.lifecycle);
|
|
105
|
+
console.log("TIME TO RENDER", state.value.timeToRender);
|
|
106
|
+
console.log("TIME TO INTERACTIVE", state.value.firstInputDelay);
|
|
107
|
+
console.log("TIME TO UPDATE", state.value.timeToUpdate);
|
|
108
|
+
console.groupEnd();
|
|
109
|
+
}
|
|
110
|
+
__name(showConsole, "showConsole");
|
|
111
|
+
}, "usePerformanceObserver");
|
|
112
|
+
|
|
113
|
+
// src/validators.ts
|
|
114
|
+
function isUndef(v) {
|
|
115
|
+
return v === void 0 || v === null;
|
|
116
|
+
}
|
|
117
|
+
__name(isUndef, "isUndef");
|
|
118
|
+
function isDef(v) {
|
|
119
|
+
return v !== void 0 && v !== null;
|
|
120
|
+
}
|
|
121
|
+
__name(isDef, "isDef");
|
|
122
|
+
var isEqual = /* @__PURE__ */ __name((x, y) => {
|
|
123
|
+
if (Object.is(x, y))
|
|
124
|
+
return true;
|
|
125
|
+
if (x instanceof Date && y instanceof Date) {
|
|
126
|
+
return x.getTime() === y.getTime();
|
|
127
|
+
}
|
|
128
|
+
if (x instanceof RegExp && y instanceof RegExp) {
|
|
129
|
+
return x.toString() === y.toString();
|
|
130
|
+
}
|
|
131
|
+
if (typeof x !== "object" || x === null || typeof y !== "object" || y === null) {
|
|
132
|
+
return false;
|
|
133
|
+
}
|
|
134
|
+
const keysX = Reflect.ownKeys(x);
|
|
135
|
+
const keysY = Reflect.ownKeys(y);
|
|
136
|
+
if (keysX.length !== keysY.length)
|
|
137
|
+
return false;
|
|
138
|
+
for (let i = 0; i < keysX.length; i++) {
|
|
139
|
+
if (!Reflect.has(y, keysX[i]))
|
|
140
|
+
return false;
|
|
141
|
+
if (!isEqual(x[keysX[i]], y[keysX[i]]))
|
|
142
|
+
return false;
|
|
143
|
+
}
|
|
144
|
+
return true;
|
|
145
|
+
}, "isEqual");
|
|
146
|
+
|
|
147
|
+
// src/generators.ts
|
|
148
|
+
var import_vue2 = require("vue");
|
|
149
|
+
var increment = 0;
|
|
150
|
+
var getUniqueId = /* @__PURE__ */ __name((id, prefix) => {
|
|
151
|
+
const initial = id || ++increment;
|
|
152
|
+
const unique = (0, import_vue2.ref)(initial);
|
|
153
|
+
return (0, import_vue2.computed)(() => {
|
|
154
|
+
const result = unique.value !== null ? unique.value.toString() : void 0;
|
|
155
|
+
return prefix ? `mpx-${prefix}-${result}` : result;
|
|
156
|
+
});
|
|
157
|
+
}, "getUniqueId");
|
|
158
|
+
function useId(size = 3) {
|
|
159
|
+
let uuid = "";
|
|
160
|
+
const dictionary = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
|
|
161
|
+
for (let i = 0; i < size; i++) {
|
|
162
|
+
uuid += dictionary.charAt(Math.floor(Math.random() * dictionary.length));
|
|
163
|
+
}
|
|
164
|
+
return uuid;
|
|
165
|
+
}
|
|
166
|
+
__name(useId, "useId");
|
|
167
|
+
var declareEmit = /* @__PURE__ */ __name((value) => value, "declareEmit");
|
|
168
|
+
|
|
169
|
+
// src/object.ts
|
|
170
|
+
var import_vue3 = require("vue");
|
|
171
|
+
function isObject(obj) {
|
|
172
|
+
return Object.prototype.toString.call(obj) === "[object Object]";
|
|
173
|
+
}
|
|
174
|
+
__name(isObject, "isObject");
|
|
175
|
+
function objectFilter(object, fn) {
|
|
176
|
+
const result = {};
|
|
177
|
+
Object.keys(object).forEach((key) => {
|
|
178
|
+
const value = object[key];
|
|
179
|
+
const shouldPass = fn(value, key, object);
|
|
180
|
+
if (shouldPass)
|
|
181
|
+
result[key] = value;
|
|
182
|
+
});
|
|
183
|
+
return result;
|
|
184
|
+
}
|
|
185
|
+
__name(objectFilter, "objectFilter");
|
|
186
|
+
var objectFilterUndefined = /* @__PURE__ */ __name((object) => objectFilter(object, (value) => value !== null && value !== void 0), "objectFilterUndefined");
|
|
187
|
+
function getChildren(slots) {
|
|
188
|
+
var _a;
|
|
189
|
+
const slot = ((_a = slots == null ? void 0 : slots.default) == null ? void 0 : _a.call(slots)) || [];
|
|
190
|
+
return slot.filter((value) => (0, import_vue3.isVNode)(value));
|
|
191
|
+
}
|
|
192
|
+
__name(getChildren, "getChildren");
|
|
193
|
+
|
|
194
|
+
// src/context.ts
|
|
195
|
+
var import_vue4 = require("vue");
|
|
196
|
+
var usePixelCreateContext = /* @__PURE__ */ __name((id) => {
|
|
197
|
+
const contextId = Symbol(id);
|
|
198
|
+
const provider = /* @__PURE__ */ __name((value) => (0, import_vue4.provide)(contextId, value), "provider");
|
|
199
|
+
const consumer = /* @__PURE__ */ __name((fallback) => (0, import_vue4.inject)(contextId, fallback), "consumer");
|
|
200
|
+
return [provider, consumer, contextId];
|
|
201
|
+
}, "usePixelCreateContext");
|
|
202
|
+
|
|
203
|
+
// src/dom.ts
|
|
204
|
+
function isElementVisible(domElement) {
|
|
205
|
+
return new Promise((resolve) => {
|
|
206
|
+
const o = new IntersectionObserver(([entry]) => {
|
|
207
|
+
resolve(entry.intersectionRatio === 1);
|
|
208
|
+
o.disconnect();
|
|
209
|
+
});
|
|
210
|
+
o.observe(domElement);
|
|
211
|
+
});
|
|
212
|
+
}
|
|
213
|
+
__name(isElementVisible, "isElementVisible");
|
|
214
|
+
function scrollToTargetElement(target, containerEl, position) {
|
|
215
|
+
const isElement = target && target.nodeType === 1;
|
|
216
|
+
if (isElement && !position) {
|
|
217
|
+
containerEl.scrollTop = target.offsetTop;
|
|
218
|
+
} else if (position === "bottom") {
|
|
219
|
+
containerEl.scrollTop = containerEl.scrollHeight - containerEl.offsetHeight;
|
|
220
|
+
} else if (position === "top") {
|
|
221
|
+
containerEl.scrollTop = 0;
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
__name(scrollToTargetElement, "scrollToTargetElement");
|
|
225
|
+
|
|
226
|
+
// src/array.ts
|
|
227
|
+
function groupBy(arr, key) {
|
|
228
|
+
const initialValue = {};
|
|
229
|
+
return arr.reduce((acc, cval) => {
|
|
230
|
+
const myAttribute = cval[key];
|
|
231
|
+
acc[myAttribute] = [...acc[myAttribute] || [], cval];
|
|
232
|
+
return acc;
|
|
233
|
+
}, initialValue);
|
|
234
|
+
}
|
|
235
|
+
__name(groupBy, "groupBy");
|
|
236
|
+
|
|
237
|
+
// src/index.ts
|
|
238
|
+
var import_core = require("@vueuse/core");
|
|
239
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
240
|
+
0 && (module.exports = {
|
|
241
|
+
declareEmit,
|
|
242
|
+
getChildren,
|
|
243
|
+
getUniqueId,
|
|
244
|
+
groupBy,
|
|
245
|
+
isDef,
|
|
246
|
+
isElementVisible,
|
|
247
|
+
isEqual,
|
|
248
|
+
isObject,
|
|
249
|
+
isUndef,
|
|
250
|
+
objectFilter,
|
|
251
|
+
objectFilterUndefined,
|
|
252
|
+
onClickOutside,
|
|
253
|
+
onKeyStroke,
|
|
254
|
+
scrollToTargetElement,
|
|
255
|
+
unrefElement,
|
|
256
|
+
useId,
|
|
257
|
+
useInfiniteScroll,
|
|
258
|
+
useIntersectionObserver,
|
|
259
|
+
usePerformanceObserver,
|
|
260
|
+
usePixelCreateContext,
|
|
261
|
+
useStorage,
|
|
262
|
+
useVirtualList
|
|
263
|
+
});
|
package/dist/index.mjs
ADDED
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import {
|
|
2
|
+
isDef,
|
|
3
|
+
isEqual,
|
|
4
|
+
isUndef
|
|
5
|
+
} from "./chunk-2UGMOMBN.mjs";
|
|
6
|
+
import {
|
|
7
|
+
groupBy
|
|
8
|
+
} from "./chunk-555RL46T.mjs";
|
|
9
|
+
import {
|
|
10
|
+
usePixelCreateContext
|
|
11
|
+
} from "./chunk-HXLTBFWE.mjs";
|
|
12
|
+
import {
|
|
13
|
+
isElementVisible,
|
|
14
|
+
scrollToTargetElement
|
|
15
|
+
} from "./chunk-VSOR555U.mjs";
|
|
16
|
+
import {
|
|
17
|
+
declareEmit,
|
|
18
|
+
getUniqueId,
|
|
19
|
+
useId
|
|
20
|
+
} from "./chunk-TJIIVYQV.mjs";
|
|
21
|
+
import {
|
|
22
|
+
getChildren,
|
|
23
|
+
isObject,
|
|
24
|
+
objectFilter,
|
|
25
|
+
objectFilterUndefined
|
|
26
|
+
} from "./chunk-PLTSXP5P.mjs";
|
|
27
|
+
import {
|
|
28
|
+
usePerformanceObserver
|
|
29
|
+
} from "./chunk-65WDFMBW.mjs";
|
|
30
|
+
import "./chunk-QZ7VFGWC.mjs";
|
|
31
|
+
import "./chunk-WBQAMGXK.mjs";
|
|
32
|
+
|
|
33
|
+
// src/index.ts
|
|
34
|
+
import { onClickOutside, onKeyStroke, useInfiniteScroll, useVirtualList, useIntersectionObserver, unrefElement, useStorage } from "@vueuse/core";
|
|
35
|
+
export {
|
|
36
|
+
declareEmit,
|
|
37
|
+
getChildren,
|
|
38
|
+
getUniqueId,
|
|
39
|
+
groupBy,
|
|
40
|
+
isDef,
|
|
41
|
+
isElementVisible,
|
|
42
|
+
isEqual,
|
|
43
|
+
isObject,
|
|
44
|
+
isUndef,
|
|
45
|
+
objectFilter,
|
|
46
|
+
objectFilterUndefined,
|
|
47
|
+
onClickOutside,
|
|
48
|
+
onKeyStroke,
|
|
49
|
+
scrollToTargetElement,
|
|
50
|
+
unrefElement,
|
|
51
|
+
useId,
|
|
52
|
+
useInfiniteScroll,
|
|
53
|
+
useIntersectionObserver,
|
|
54
|
+
usePerformanceObserver,
|
|
55
|
+
usePixelCreateContext,
|
|
56
|
+
useStorage,
|
|
57
|
+
useVirtualList
|
|
58
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"inputs":{"src/array.ts":{"bytes":479,"imports":[{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/context.ts":{"bytes":493,"imports":[{"path":"vue","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/dom.ts":{"bytes":975,"imports":[{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/generators.ts":{"bytes":778,"imports":[{"path":"vue","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/performance.ts":{"bytes":2091,"imports":[{"path":"vue","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/validators.ts":{"bytes":1193,"imports":[{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/object.ts":{"bytes":918,"imports":[{"path":"vue","kind":"import-statement","external":true},{"path":"./types","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/types.ts":{"bytes":773,"imports":[{"path":"vue","kind":"import-statement","external":true}],"format":"esm"},"src/index.ts":{"bytes":472,"imports":[{"path":"src/performance.ts","kind":"import-statement","original":"./performance"},{"path":"src/validators.ts","kind":"import-statement","original":"./validators"},{"path":"src/generators.ts","kind":"import-statement","original":"./generators"},{"path":"src/object.ts","kind":"import-statement","original":"./object"},{"path":"src/context.ts","kind":"import-statement","original":"./context"},{"path":"src/dom.ts","kind":"import-statement","original":"./dom"},{"path":"src/types.ts","kind":"import-statement","original":"./types"},{"path":"src/array.ts","kind":"import-statement","original":"./array"},{"path":"src/types.ts","kind":"import-statement","original":"./types"},{"path":"@vueuse/core","kind":"import-statement","external":true}],"format":"esm"}},"outputs":{"dist/array.js":{"imports":[],"exports":[],"entryPoint":"src/array.ts","inputs":{"src/array.ts":{"bytesInOutput":377}},"bytes":1384},"dist/context.js":{"imports":[{"path":"vue","kind":"require-call","external":true}],"exports":[],"entryPoint":"src/context.ts","inputs":{"src/context.ts":{"bytesInOutput":579}},"bytes":1602},"dist/dom.js":{"imports":[],"exports":[],"entryPoint":"src/dom.ts","inputs":{"src/dom.ts":{"bytesInOutput":920}},"bytes":1959},"dist/generators.js":{"imports":[{"path":"vue","kind":"require-call","external":true}],"exports":[],"entryPoint":"src/generators.ts","inputs":{"src/generators.ts":{"bytesInOutput":953}},"bytes":1993},"dist/index.js":{"imports":[{"path":"vue","kind":"require-call","external":true},{"path":"vue","kind":"require-call","external":true},{"path":"vue","kind":"require-call","external":true},{"path":"vue","kind":"require-call","external":true},{"path":"@vueuse/core","kind":"require-call","external":true}],"exports":[],"entryPoint":"src/index.ts","inputs":{"src/index.ts":{"bytesInOutput":1056},"src/performance.ts":{"bytesInOutput":1935},"src/validators.ts":{"bytesInOutput":880},"src/generators.ts":{"bytesInOutput":752},"src/object.ts":{"bytesInOutput":851},"src/context.ts":{"bytesInOutput":423},"src/dom.ts":{"bytesInOutput":729},"src/array.ts":{"bytesInOutput":252}},"bytes":8401},"dist/object.js":{"imports":[{"path":"vue","kind":"require-call","external":true}],"exports":[],"entryPoint":"src/object.ts","inputs":{"src/object.ts":{"bytesInOutput":1103}},"bytes":2168},"dist/performance.js":{"imports":[{"path":"vue","kind":"require-call","external":true}],"exports":[],"entryPoint":"src/performance.ts","inputs":{"src/performance.ts":{"bytesInOutput":2108}},"bytes":3136},"dist/types.js":{"imports":[],"exports":[],"entryPoint":"src/types.ts","inputs":{"src/types.ts":{"bytesInOutput":70}},"bytes":758},"dist/validators.js":{"imports":[],"exports":[],"entryPoint":"src/validators.ts","inputs":{"src/validators.ts":{"bytesInOutput":1068}},"bytes":2100}}}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"inputs":{"src/array.ts":{"bytes":479,"imports":[{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/context.ts":{"bytes":493,"imports":[{"path":"vue","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/dom.ts":{"bytes":975,"imports":[{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/generators.ts":{"bytes":778,"imports":[{"path":"vue","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/performance.ts":{"bytes":2091,"imports":[{"path":"vue","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/validators.ts":{"bytes":1193,"imports":[{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/object.ts":{"bytes":918,"imports":[{"path":"vue","kind":"import-statement","external":true},{"path":"./types","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/types.ts":{"bytes":773,"imports":[{"path":"vue","kind":"import-statement","external":true}],"format":"esm"},"src/index.ts":{"bytes":472,"imports":[{"path":"src/performance.ts","kind":"import-statement","original":"./performance"},{"path":"src/validators.ts","kind":"import-statement","original":"./validators"},{"path":"src/generators.ts","kind":"import-statement","original":"./generators"},{"path":"src/object.ts","kind":"import-statement","original":"./object"},{"path":"src/context.ts","kind":"import-statement","original":"./context"},{"path":"src/dom.ts","kind":"import-statement","original":"./dom"},{"path":"src/types.ts","kind":"import-statement","original":"./types"},{"path":"src/array.ts","kind":"import-statement","original":"./array"},{"path":"src/types.ts","kind":"import-statement","original":"./types"},{"path":"@vueuse/core","kind":"import-statement","external":true}],"format":"esm"}},"outputs":{"dist/validators.mjs":{"imports":[{"path":"dist/chunk-2UGMOMBN.mjs","kind":"import-statement"},{"path":"dist/chunk-QZ7VFGWC.mjs","kind":"import-statement"}],"exports":["isDef","isEqual","isUndef"],"entryPoint":"src/validators.ts","inputs":{},"bytes":143},"dist/array.mjs":{"imports":[{"path":"dist/chunk-555RL46T.mjs","kind":"import-statement"},{"path":"dist/chunk-QZ7VFGWC.mjs","kind":"import-statement"}],"exports":["groupBy"],"entryPoint":"src/array.ts","inputs":{},"bytes":103},"dist/context.mjs":{"imports":[{"path":"dist/chunk-HXLTBFWE.mjs","kind":"import-statement"},{"path":"dist/chunk-QZ7VFGWC.mjs","kind":"import-statement"}],"exports":["usePixelCreateContext"],"entryPoint":"src/context.ts","inputs":{},"bytes":131},"dist/dom.mjs":{"imports":[{"path":"dist/chunk-VSOR555U.mjs","kind":"import-statement"},{"path":"dist/chunk-QZ7VFGWC.mjs","kind":"import-statement"}],"exports":["isElementVisible","scrollToTargetElement"],"entryPoint":"src/dom.ts","inputs":{},"bytes":171},"dist/generators.mjs":{"imports":[{"path":"dist/chunk-TJIIVYQV.mjs","kind":"import-statement"},{"path":"dist/chunk-QZ7VFGWC.mjs","kind":"import-statement"}],"exports":["declareEmit","getUniqueId","useId"],"entryPoint":"src/generators.ts","inputs":{},"bytes":159},"dist/index.mjs":{"imports":[{"path":"dist/chunk-2UGMOMBN.mjs","kind":"import-statement"},{"path":"dist/chunk-555RL46T.mjs","kind":"import-statement"},{"path":"dist/chunk-HXLTBFWE.mjs","kind":"import-statement"},{"path":"dist/chunk-VSOR555U.mjs","kind":"import-statement"},{"path":"dist/chunk-TJIIVYQV.mjs","kind":"import-statement"},{"path":"dist/chunk-PLTSXP5P.mjs","kind":"import-statement"},{"path":"dist/chunk-65WDFMBW.mjs","kind":"import-statement"},{"path":"dist/chunk-QZ7VFGWC.mjs","kind":"import-statement"},{"path":"dist/chunk-WBQAMGXK.mjs","kind":"import-statement"},{"path":"@vueuse/core","kind":"import-statement","external":true}],"exports":["declareEmit","getChildren","getUniqueId","groupBy","isDef","isElementVisible","isEqual","isObject","isUndef","objectFilter","objectFilterUndefined","onClickOutside","onKeyStroke","scrollToTargetElement","unrefElement","useId","useInfiniteScroll","useIntersectionObserver","usePerformanceObserver","usePixelCreateContext","useStorage","useVirtualList"],"entryPoint":"src/index.ts","inputs":{"src/index.ts":{"bytesInOutput":146}},"bytes":1128},"dist/chunk-2UGMOMBN.mjs":{"imports":[{"path":"dist/chunk-QZ7VFGWC.mjs","kind":"import-statement"}],"exports":["isDef","isEqual","isUndef"],"inputs":{"src/validators.ts":{"bytesInOutput":880}},"bytes":994},"dist/chunk-555RL46T.mjs":{"imports":[{"path":"dist/chunk-QZ7VFGWC.mjs","kind":"import-statement"}],"exports":["groupBy"],"inputs":{"src/array.ts":{"bytesInOutput":252}},"bytes":341},"dist/chunk-HXLTBFWE.mjs":{"imports":[{"path":"dist/chunk-QZ7VFGWC.mjs","kind":"import-statement"},{"path":"vue","kind":"import-statement","external":true}],"exports":["usePixelCreateContext"],"inputs":{"src/context.ts":{"bytesInOutput":394}},"bytes":499},"dist/chunk-VSOR555U.mjs":{"imports":[{"path":"dist/chunk-QZ7VFGWC.mjs","kind":"import-statement"}],"exports":["isElementVisible","scrollToTargetElement"],"inputs":{"src/dom.ts":{"bytesInOutput":729}},"bytes":850},"dist/chunk-TJIIVYQV.mjs":{"imports":[{"path":"dist/chunk-QZ7VFGWC.mjs","kind":"import-statement"},{"path":"vue","kind":"import-statement","external":true}],"exports":["declareEmit","getUniqueId","useId"],"inputs":{"src/generators.ts":{"bytesInOutput":721}},"bytes":843},"dist/object.mjs":{"imports":[{"path":"dist/chunk-PLTSXP5P.mjs","kind":"import-statement"},{"path":"dist/chunk-QZ7VFGWC.mjs","kind":"import-statement"}],"exports":["getChildren","isObject","objectFilter","objectFilterUndefined"],"entryPoint":"src/object.ts","inputs":{},"bytes":217},"dist/chunk-PLTSXP5P.mjs":{"imports":[{"path":"dist/chunk-QZ7VFGWC.mjs","kind":"import-statement"},{"path":"vue","kind":"import-statement","external":true}],"exports":["getChildren","isObject","objectFilter","objectFilterUndefined"],"inputs":{"src/object.ts":{"bytesInOutput":831}},"bytes":978},"dist/performance.mjs":{"imports":[{"path":"dist/chunk-65WDFMBW.mjs","kind":"import-statement"},{"path":"dist/chunk-QZ7VFGWC.mjs","kind":"import-statement"}],"exports":["usePerformanceObserver"],"entryPoint":"src/performance.ts","inputs":{},"bytes":133},"dist/chunk-65WDFMBW.mjs":{"imports":[{"path":"dist/chunk-QZ7VFGWC.mjs","kind":"import-statement"},{"path":"vue","kind":"import-statement","external":true}],"exports":["usePerformanceObserver"],"inputs":{"src/performance.ts":{"bytesInOutput":1880}},"bytes":1990},"dist/chunk-QZ7VFGWC.mjs":{"imports":[],"exports":["__name"],"inputs":{},"bytes":151},"dist/types.mjs":{"imports":[{"path":"dist/chunk-WBQAMGXK.mjs","kind":"import-statement"}],"exports":[],"entryPoint":"src/types.ts","inputs":{},"bytes":31},"dist/chunk-WBQAMGXK.mjs":{"imports":[],"exports":[],"inputs":{"src/types.ts":{"bytesInOutput":0}},"bytes":0}}}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Slots, VNode } from 'vue';
|
|
2
|
+
import { Dict, FilterFn } from './types.mjs';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* isObject
|
|
6
|
+
* @param {*} obj
|
|
7
|
+
* @returns {Boolean}
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
declare function isObject(obj: unknown): boolean;
|
|
11
|
+
declare function objectFilter<T extends Dict>(object: T, fn: FilterFn<T>): Dict;
|
|
12
|
+
declare const objectFilterUndefined: (object: Dict) => Dict;
|
|
13
|
+
declare function getChildren(slots: Slots | null): VNode[];
|
|
14
|
+
|
|
15
|
+
export { getChildren, isObject, objectFilter, objectFilterUndefined };
|
package/dist/object.d.ts
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Slots, VNode } from 'vue';
|
|
2
|
+
import { Dict, FilterFn } from './types.js';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* isObject
|
|
6
|
+
* @param {*} obj
|
|
7
|
+
* @returns {Boolean}
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
declare function isObject(obj: unknown): boolean;
|
|
11
|
+
declare function objectFilter<T extends Dict>(object: T, fn: FilterFn<T>): Dict;
|
|
12
|
+
declare const objectFilterUndefined: (object: Dict) => Dict;
|
|
13
|
+
declare function getChildren(slots: Slots | null): VNode[];
|
|
14
|
+
|
|
15
|
+
export { getChildren, isObject, objectFilter, objectFilterUndefined };
|
package/dist/object.js
ADDED
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
20
|
+
|
|
21
|
+
// src/object.ts
|
|
22
|
+
var object_exports = {};
|
|
23
|
+
__export(object_exports, {
|
|
24
|
+
getChildren: () => getChildren,
|
|
25
|
+
isObject: () => isObject,
|
|
26
|
+
objectFilter: () => objectFilter,
|
|
27
|
+
objectFilterUndefined: () => objectFilterUndefined
|
|
28
|
+
});
|
|
29
|
+
module.exports = __toCommonJS(object_exports);
|
|
30
|
+
var import_vue = require("vue");
|
|
31
|
+
function isObject(obj) {
|
|
32
|
+
return Object.prototype.toString.call(obj) === "[object Object]";
|
|
33
|
+
}
|
|
34
|
+
__name(isObject, "isObject");
|
|
35
|
+
function objectFilter(object, fn) {
|
|
36
|
+
const result = {};
|
|
37
|
+
Object.keys(object).forEach((key) => {
|
|
38
|
+
const value = object[key];
|
|
39
|
+
const shouldPass = fn(value, key, object);
|
|
40
|
+
if (shouldPass)
|
|
41
|
+
result[key] = value;
|
|
42
|
+
});
|
|
43
|
+
return result;
|
|
44
|
+
}
|
|
45
|
+
__name(objectFilter, "objectFilter");
|
|
46
|
+
var objectFilterUndefined = /* @__PURE__ */ __name((object) => objectFilter(object, (value) => value !== null && value !== void 0), "objectFilterUndefined");
|
|
47
|
+
function getChildren(slots) {
|
|
48
|
+
var _a;
|
|
49
|
+
const slot = ((_a = slots == null ? void 0 : slots.default) == null ? void 0 : _a.call(slots)) || [];
|
|
50
|
+
return slot.filter((value) => (0, import_vue.isVNode)(value));
|
|
51
|
+
}
|
|
52
|
+
__name(getChildren, "getChildren");
|
|
53
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
54
|
+
0 && (module.exports = {
|
|
55
|
+
getChildren,
|
|
56
|
+
isObject,
|
|
57
|
+
objectFilter,
|
|
58
|
+
objectFilterUndefined
|
|
59
|
+
});
|
package/dist/object.mjs
ADDED
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
7
|
+
var __export = (target, all) => {
|
|
8
|
+
for (var name in all)
|
|
9
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
10
|
+
};
|
|
11
|
+
var __copyProps = (to, from, except, desc) => {
|
|
12
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
+
for (let key of __getOwnPropNames(from))
|
|
14
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
15
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
16
|
+
}
|
|
17
|
+
return to;
|
|
18
|
+
};
|
|
19
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
20
|
+
|
|
21
|
+
// src/performance.ts
|
|
22
|
+
var performance_exports = {};
|
|
23
|
+
__export(performance_exports, {
|
|
24
|
+
usePerformanceObserver: () => usePerformanceObserver
|
|
25
|
+
});
|
|
26
|
+
module.exports = __toCommonJS(performance_exports);
|
|
27
|
+
var import_vue = require("vue");
|
|
28
|
+
var usePerformanceObserver = /* @__PURE__ */ __name((label) => {
|
|
29
|
+
const startTime = (0, import_vue.ref)(performance.now());
|
|
30
|
+
const state = (0, import_vue.ref)({
|
|
31
|
+
timeToRender: 0,
|
|
32
|
+
firstInputDelay: 0,
|
|
33
|
+
timeToUpdate: 0,
|
|
34
|
+
numberOfData: 0,
|
|
35
|
+
startBenchmark: 0,
|
|
36
|
+
lifecycle: 0
|
|
37
|
+
});
|
|
38
|
+
(0, import_vue.onBeforeMount)(() => {
|
|
39
|
+
});
|
|
40
|
+
(0, import_vue.onBeforeUpdate)(() => {
|
|
41
|
+
state.value.startBenchmark = window.performance.now();
|
|
42
|
+
});
|
|
43
|
+
(0, import_vue.onMounted)(() => {
|
|
44
|
+
perfObserver();
|
|
45
|
+
(0, import_vue.nextTick)(() => {
|
|
46
|
+
state.value.lifecycle = performance.now() - startTime.value;
|
|
47
|
+
});
|
|
48
|
+
});
|
|
49
|
+
(0, import_vue.onUpdated)(() => {
|
|
50
|
+
domBenchmark();
|
|
51
|
+
});
|
|
52
|
+
function perfObserver() {
|
|
53
|
+
new PerformanceObserver((entryList) => {
|
|
54
|
+
for (const entry of entryList.getEntries()) {
|
|
55
|
+
state.value.timeToRender = entry.loadEventEnd - entry.responseEnd;
|
|
56
|
+
showConsole();
|
|
57
|
+
}
|
|
58
|
+
}).observe({
|
|
59
|
+
type: "navigation",
|
|
60
|
+
buffered: true
|
|
61
|
+
});
|
|
62
|
+
new PerformanceObserver((entryList) => {
|
|
63
|
+
for (const entry of entryList.getEntries()) {
|
|
64
|
+
state.value.firstInputDelay = entry.processingStart - entry.startTime;
|
|
65
|
+
showConsole();
|
|
66
|
+
}
|
|
67
|
+
}).observe({
|
|
68
|
+
type: "first-input",
|
|
69
|
+
buffered: true
|
|
70
|
+
});
|
|
71
|
+
}
|
|
72
|
+
__name(perfObserver, "perfObserver");
|
|
73
|
+
function domBenchmark() {
|
|
74
|
+
const end = window.performance.now();
|
|
75
|
+
state.value.timeToUpdate = end - state.value.startBenchmark;
|
|
76
|
+
showConsole();
|
|
77
|
+
}
|
|
78
|
+
__name(domBenchmark, "domBenchmark");
|
|
79
|
+
function showConsole() {
|
|
80
|
+
console.group(label);
|
|
81
|
+
console.log("LIFECYCLE", state.value.lifecycle);
|
|
82
|
+
console.log("TIME TO RENDER", state.value.timeToRender);
|
|
83
|
+
console.log("TIME TO INTERACTIVE", state.value.firstInputDelay);
|
|
84
|
+
console.log("TIME TO UPDATE", state.value.timeToUpdate);
|
|
85
|
+
console.groupEnd();
|
|
86
|
+
}
|
|
87
|
+
__name(showConsole, "showConsole");
|
|
88
|
+
}, "usePerformanceObserver");
|
|
89
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
90
|
+
0 && (module.exports = {
|
|
91
|
+
usePerformanceObserver
|
|
92
|
+
});
|
package/dist/types.d.mts
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { AllowedComponentProps, ComponentCustomProps, VNodeProps } from 'vue';
|
|
2
|
+
|
|
3
|
+
type Optional<T, K extends keyof T> = Pick<Partial<T>, K> & Omit<T, K>;
|
|
4
|
+
type Dict<T = any> = Record<string, T>;
|
|
5
|
+
type FilterFn<T> = (value: any, key: string, object: T) => boolean;
|
|
6
|
+
type PropTypes<T = Dict> = Record<'button' | 'label' | 'input' | 'img' | 'output' | 'element' | 'select' | 'style', T>;
|
|
7
|
+
type ComponentWithProps<P> = {
|
|
8
|
+
new (): {
|
|
9
|
+
$props: AllowedComponentProps & ComponentCustomProps & VNodeProps & {
|
|
10
|
+
props?: Record<keyof P, any>;
|
|
11
|
+
} & P & {
|
|
12
|
+
[key: string]: unknown;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
export { ComponentWithProps, Dict, FilterFn, Optional, PropTypes };
|
package/dist/types.d.ts
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { AllowedComponentProps, ComponentCustomProps, VNodeProps } from 'vue';
|
|
2
|
+
|
|
3
|
+
type Optional<T, K extends keyof T> = Pick<Partial<T>, K> & Omit<T, K>;
|
|
4
|
+
type Dict<T = any> = Record<string, T>;
|
|
5
|
+
type FilterFn<T> = (value: any, key: string, object: T) => boolean;
|
|
6
|
+
type PropTypes<T = Dict> = Record<'button' | 'label' | 'input' | 'img' | 'output' | 'element' | 'select' | 'style', T>;
|
|
7
|
+
type ComponentWithProps<P> = {
|
|
8
|
+
new (): {
|
|
9
|
+
$props: AllowedComponentProps & ComponentCustomProps & VNodeProps & {
|
|
10
|
+
props?: Record<keyof P, any>;
|
|
11
|
+
} & P & {
|
|
12
|
+
[key: string]: unknown;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
export { ComponentWithProps, Dict, FilterFn, Optional, PropTypes };
|
package/dist/types.js
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __copyProps = (to, from, except, desc) => {
|
|
7
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
|
+
for (let key of __getOwnPropNames(from))
|
|
9
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
10
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
11
|
+
}
|
|
12
|
+
return to;
|
|
13
|
+
};
|
|
14
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
15
|
+
|
|
16
|
+
// src/types.ts
|
|
17
|
+
var types_exports = {};
|
|
18
|
+
module.exports = __toCommonJS(types_exports);
|
package/dist/types.mjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "./chunk-WBQAMGXK.mjs";
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Checks if a value is undefined
|
|
3
|
+
* @param {*} v
|
|
4
|
+
* @returns {Boolean}
|
|
5
|
+
*/
|
|
6
|
+
declare function isUndef(v: unknown): boolean;
|
|
7
|
+
/**
|
|
8
|
+
* Checks if a value is defined
|
|
9
|
+
* @param {*} v
|
|
10
|
+
* @returns {Boolean}
|
|
11
|
+
*/
|
|
12
|
+
declare function isDef(v: unknown): boolean;
|
|
13
|
+
declare const isEqual: <TType>(x: TType, y: TType) => boolean;
|
|
14
|
+
|
|
15
|
+
export { isDef, isEqual, isUndef };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Checks if a value is undefined
|
|
3
|
+
* @param {*} v
|
|
4
|
+
* @returns {Boolean}
|
|
5
|
+
*/
|
|
6
|
+
declare function isUndef(v: unknown): boolean;
|
|
7
|
+
/**
|
|
8
|
+
* Checks if a value is defined
|
|
9
|
+
* @param {*} v
|
|
10
|
+
* @returns {Boolean}
|
|
11
|
+
*/
|
|
12
|
+
declare function isDef(v: unknown): boolean;
|
|
13
|
+
declare const isEqual: <TType>(x: TType, y: TType) => boolean;
|
|
14
|
+
|
|
15
|
+
export { isDef, isEqual, isUndef };
|