workclock 0.0.0-stage → 0.1.1

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.
@@ -0,0 +1,560 @@
1
+ /* @ts-self-types="./workclock.d.ts" */
2
+
3
+ /**
4
+ * Working time defined by rules, evaluated in IANA time zones.
5
+ *
6
+ * Instants are `Date`s or ISO 8601 strings with a UTC offset, and durations
7
+ * are numbers of milliseconds. Results are exact to the millisecond.
8
+ */
9
+ class Schedule {
10
+ __destroy_into_raw() {
11
+ const ptr = this.__wbg_ptr;
12
+ this.__wbg_ptr = 0;
13
+ ScheduleFinalization.unregister(this);
14
+ return ptr;
15
+ }
16
+ free() {
17
+ const ptr = this.__destroy_into_raw();
18
+ wasm.__wbg_schedule_free(ptr, 0);
19
+ }
20
+ /**
21
+ * Returns `add` for each instant in `t`.
22
+ *
23
+ * @throws {RangeError} If `t` and `ms` differ in length.
24
+ * @throws What `add` throws, with the failing item's index in the
25
+ * message.
26
+ * @param {any} t
27
+ * @param {any} ms
28
+ * @returns {any}
29
+ */
30
+ addMany(t, ms) {
31
+ const ret = wasm.schedule_addMany(this.__wbg_ptr, t, ms);
32
+ if (ret[2]) {
33
+ throw takeFromExternrefTable0(ret[1]);
34
+ }
35
+ return takeFromExternrefTable0(ret[0]);
36
+ }
37
+ /**
38
+ * Finds the instant a given amount of working time after another.
39
+ *
40
+ * @param t The instant to count from.
41
+ * @param ms Working time in milliseconds; a negative amount counts back.
42
+ * @returns The earliest instant with `ms` of working time after `t`, or
43
+ * `t` itself when `ms` is zero.
44
+ * @throws {NoWorkingTimeError} If no working time is found within 366
45
+ * days, plus seven days per holiday date.
46
+ * @throws {OutOfRangeError} If `t` or the result is outside the supported
47
+ * range.
48
+ * @throws {TypeError} If `t` is neither a `Date` nor a string, or `ms` is
49
+ * not a number.
50
+ * @throws {RangeError} If `t` is malformed, or `ms` is not a whole number
51
+ * within ±`Number.MAX_SAFE_INTEGER`.
52
+ * @example
53
+ * ```js
54
+ * const due = support.add("2026-12-24T16:30:00Z", 8 * 3_600_000);
55
+ * due.toISOString(); // "2026-12-30T09:30:00.000Z"
56
+ * ```
57
+ * @param {Instant} t
58
+ * @param {number} ms
59
+ * @returns {Date}
60
+ */
61
+ add(t, ms) {
62
+ const ret = wasm.schedule_add(this.__wbg_ptr, t, ms);
63
+ if (ret[2]) {
64
+ throw takeFromExternrefTable0(ret[1]);
65
+ }
66
+ return takeFromExternrefTable0(ret[0]);
67
+ }
68
+ /**
69
+ * Returns `between` for each pair of `a` and `b`.
70
+ *
71
+ * @throws {RangeError} If `a` and `b` differ in length.
72
+ * @throws What `between` throws, with the failing item's index in the
73
+ * message.
74
+ * @param {any} a
75
+ * @param {any} b
76
+ * @returns {any}
77
+ */
78
+ betweenMany(a, b) {
79
+ const ret = wasm.schedule_betweenMany(this.__wbg_ptr, a, b);
80
+ if (ret[2]) {
81
+ throw takeFromExternrefTable0(ret[1]);
82
+ }
83
+ return takeFromExternrefTable0(ret[0]);
84
+ }
85
+ /**
86
+ * Measures the working time between two instants.
87
+ *
88
+ * @param a The start.
89
+ * @param b The end.
90
+ * @returns The working time in milliseconds; negative when `b` is before
91
+ * `a`.
92
+ * @throws {OutOfRangeError} If an instant is outside the supported range.
93
+ * @throws {TypeError} If an instant is neither a `Date` nor a string.
94
+ * @throws {RangeError} If an instant is an invalid `Date` or a string
95
+ * without a UTC offset.
96
+ * @example
97
+ * ```js
98
+ * support.between("2026-01-05T09:00:00Z", "2026-01-06T09:00:00Z"); // 25200000, 7 hours
99
+ * ```
100
+ * @param {Instant} a
101
+ * @param {Instant} b
102
+ * @returns {number}
103
+ */
104
+ between(a, b) {
105
+ const ret = wasm.schedule_between(this.__wbg_ptr, a, b);
106
+ if (ret[2]) {
107
+ throw takeFromExternrefTable0(ret[1]);
108
+ }
109
+ return ret[0];
110
+ }
111
+ /**
112
+ * Builds a schedule from its rules.
113
+ *
114
+ * @param options The default time zone and the rules.
115
+ * @throws {UnknownZoneError} If a time zone is not in the IANA database.
116
+ * @throws {NoWorkingTimeError} If the working hours minus the breaks are
117
+ * empty.
118
+ * @throws {TypeError} If `options` or a rule has the wrong shape; the
119
+ * message names the rule, such as `rules[1]`.
120
+ * @throws {RangeError} If a time, day or date cannot be read.
121
+ * @example
122
+ * ```js
123
+ * const support = new Schedule({
124
+ * timeZone: "Europe/London",
125
+ * rules: [
126
+ * { type: "workday", start: "09:00", end: "17:00" },
127
+ * { type: "break", start: "12:00", end: "13:00" },
128
+ * { type: "holidays", dates: ["2026-12-25", "2026-12-28"] },
129
+ * ],
130
+ * });
131
+ * ```
132
+ * @param {ScheduleOptions} options
133
+ */
134
+ constructor(options) {
135
+ const ret = wasm.schedule_new(options);
136
+ if (ret[2]) {
137
+ throw takeFromExternrefTable0(ret[1]);
138
+ }
139
+ this.__wbg_ptr = ret[0];
140
+ ScheduleFinalization.register(this, this.__wbg_ptr, this);
141
+ return this;
142
+ }
143
+ /**
144
+ * Finds the period of working time at or after an instant.
145
+ *
146
+ * @param t The instant to search from.
147
+ * @returns The period that contains `t`, starting at `t`, or else the
148
+ * first one after it.
149
+ * @throws {NoWorkingTimeError} If no working time is found within 366
150
+ * days, plus seven days per holiday date.
151
+ * @throws {OutOfRangeError} If `t` is outside the supported range, or the
152
+ * search reaches its end.
153
+ * @throws {TypeError} If `t` is neither a `Date` nor a string.
154
+ * @throws {RangeError} If `t` is malformed.
155
+ * @param {Instant} t
156
+ * @returns {Period}
157
+ */
158
+ nextPeriod(t) {
159
+ const ret = wasm.schedule_nextPeriod(this.__wbg_ptr, t);
160
+ if (ret[2]) {
161
+ throw takeFromExternrefTable0(ret[1]);
162
+ }
163
+ return takeFromExternrefTable0(ret[0]);
164
+ }
165
+ /**
166
+ * Finds the period of working time at or before an instant.
167
+ *
168
+ * @param t The instant to search back from.
169
+ * @returns The period that contains `t`, ending at `t`, or else the last
170
+ * one before it.
171
+ * @throws {NoWorkingTimeError} If no working time is found within 366
172
+ * days, plus seven days per holiday date.
173
+ * @throws {OutOfRangeError} If `t` is outside the supported range, or the
174
+ * search reaches its start.
175
+ * @throws {TypeError} If `t` is neither a `Date` nor a string.
176
+ * @throws {RangeError} If `t` is malformed.
177
+ * @param {Instant} t
178
+ * @returns {Period}
179
+ */
180
+ previousPeriod(t) {
181
+ const ret = wasm.schedule_previousPeriod(this.__wbg_ptr, t);
182
+ if (ret[2]) {
183
+ throw takeFromExternrefTable0(ret[1]);
184
+ }
185
+ return takeFromExternrefTable0(ret[0]);
186
+ }
187
+ /**
188
+ * Returns `sub` for each instant in `t`.
189
+ *
190
+ * @throws {RangeError} If `t` and `ms` differ in length.
191
+ * @throws What `sub` throws, with the failing item's index in the
192
+ * message.
193
+ * @param {any} t
194
+ * @param {any} ms
195
+ * @returns {any}
196
+ */
197
+ subMany(t, ms) {
198
+ const ret = wasm.schedule_subMany(this.__wbg_ptr, t, ms);
199
+ if (ret[2]) {
200
+ throw takeFromExternrefTable0(ret[1]);
201
+ }
202
+ return takeFromExternrefTable0(ret[0]);
203
+ }
204
+ /**
205
+ * Finds the instant a given amount of working time before another.
206
+ *
207
+ * @param t The instant to count back from.
208
+ * @param ms Working time in milliseconds; a negative amount counts
209
+ * forward.
210
+ * @returns The latest instant with `ms` of working time before `t`, or
211
+ * `t` itself when `ms` is zero.
212
+ * @throws {NoWorkingTimeError} If no working time is found within 366
213
+ * days, plus seven days per holiday date.
214
+ * @throws {OutOfRangeError} If `t` or the result is outside the supported
215
+ * range.
216
+ * @throws {TypeError} If `t` is neither a `Date` nor a string, or `ms` is
217
+ * not a number.
218
+ * @throws {RangeError} If `t` is malformed, or `ms` is not a whole number
219
+ * within ±`Number.MAX_SAFE_INTEGER`.
220
+ * @param {Instant} t
221
+ * @param {number} ms
222
+ * @returns {Date}
223
+ */
224
+ sub(t, ms) {
225
+ const ret = wasm.schedule_sub(this.__wbg_ptr, t, ms);
226
+ if (ret[2]) {
227
+ throw takeFromExternrefTable0(ret[1]);
228
+ }
229
+ return takeFromExternrefTable0(ret[0]);
230
+ }
231
+ }
232
+ if (Symbol.dispose) Schedule.prototype[Symbol.dispose] = Schedule.prototype.free;
233
+ exports.Schedule = Schedule;
234
+
235
+ /**
236
+ * Returns the version of workclock this module was built from, such as
237
+ * `"0.1.0"`.
238
+ * @returns {string}
239
+ */
240
+ function version() {
241
+ let deferred1_0;
242
+ let deferred1_1;
243
+ try {
244
+ const ret = wasm.version();
245
+ deferred1_0 = ret[0];
246
+ deferred1_1 = ret[1];
247
+ return getStringFromWasm0(ret[0], ret[1]);
248
+ } finally {
249
+ wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
250
+ }
251
+ }
252
+ exports.version = version;
253
+ function __wbg_get_imports() {
254
+ const import0 = {
255
+ __proto__: null,
256
+ __wbg___wbindgen_is_bigint_b123553bed3bb382: function(arg0) {
257
+ const ret = typeof(arg0) === 'bigint';
258
+ return ret;
259
+ },
260
+ __wbg___wbindgen_is_object_3c45d4f2dde4e749: function(arg0) {
261
+ const val = arg0;
262
+ const ret = typeof(val) === 'object' && val !== null;
263
+ return ret;
264
+ },
265
+ __wbg___wbindgen_is_undefined_8865fb403f8fe9d8: function(arg0) {
266
+ const ret = arg0 === undefined;
267
+ return ret;
268
+ },
269
+ __wbg___wbindgen_number_get_2e0e7dee9f701a71: function(arg0, arg1) {
270
+ const obj = arg1;
271
+ const ret = typeof(obj) === 'number' ? obj : undefined;
272
+ getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
273
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
274
+ },
275
+ __wbg___wbindgen_string_get_0380ccaa2f57f0d9: function(arg0, arg1) {
276
+ const obj = arg1;
277
+ const ret = typeof(obj) === 'string' ? obj : undefined;
278
+ var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
279
+ var len1 = WASM_VECTOR_LEN;
280
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
281
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
282
+ },
283
+ __wbg___wbindgen_throw_41e9ee4f547fc59a: function(arg0, arg1) {
284
+ throw new Error(getStringFromWasm0(arg0, arg1));
285
+ },
286
+ __wbg___wbindgen_typeof_e777a26e115d416b: function(arg0) {
287
+ const ret = typeof arg0;
288
+ return ret;
289
+ },
290
+ __wbg_from_296ca31f8d0f1c52: function(arg0) {
291
+ const ret = Array.from(arg0);
292
+ return ret;
293
+ },
294
+ __wbg_getTime_f5a55efff2585d5d: function(arg0) {
295
+ const ret = arg0.getTime();
296
+ return ret;
297
+ },
298
+ __wbg_get_31af05bd4842a84f: function() { return handleError(function (arg0, arg1) {
299
+ const ret = Reflect.get(arg0, arg1);
300
+ return ret;
301
+ }, arguments); },
302
+ __wbg_get_unchecked_288889d017702237: function(arg0, arg1) {
303
+ const ret = arg0[arg1 >>> 0];
304
+ return ret;
305
+ },
306
+ __wbg_instanceof_Date_31bc0134230c39be: function(arg0) {
307
+ let result;
308
+ try {
309
+ result = arg0 instanceof Date;
310
+ } catch (_) {
311
+ result = false;
312
+ }
313
+ const ret = result;
314
+ return ret;
315
+ },
316
+ __wbg_instanceof_Error_80a725f81f2e102d: function(arg0) {
317
+ let result;
318
+ try {
319
+ result = arg0 instanceof Error;
320
+ } catch (_) {
321
+ result = false;
322
+ }
323
+ const ret = result;
324
+ return ret;
325
+ },
326
+ __wbg_instanceof_Float64Array_8a59377f9eec1b8b: function(arg0) {
327
+ let result;
328
+ try {
329
+ result = arg0 instanceof Float64Array;
330
+ } catch (_) {
331
+ result = false;
332
+ }
333
+ const ret = result;
334
+ return ret;
335
+ },
336
+ __wbg_isArray_e15a2ff68ffdbef2: function(arg0) {
337
+ const ret = Array.isArray(arg0);
338
+ return ret;
339
+ },
340
+ __wbg_length_b5f0008bbf60cf59: function(arg0) {
341
+ const ret = arg0.length;
342
+ return ret;
343
+ },
344
+ __wbg_length_d4bdea10311bd9cf: function(arg0) {
345
+ const ret = arg0.length;
346
+ return ret;
347
+ },
348
+ __wbg_message_5f8387f0c32b90a7: function(arg0) {
349
+ const ret = arg0.message;
350
+ return ret;
351
+ },
352
+ __wbg_new_2bdcdfcebdfc34d2: function(arg0, arg1) {
353
+ const ret = new TypeError(getStringFromWasm0(arg0, arg1));
354
+ return ret;
355
+ },
356
+ __wbg_new_343a093a3c2ffb4e: function(arg0, arg1) {
357
+ const ret = new Error(getStringFromWasm0(arg0, arg1));
358
+ return ret;
359
+ },
360
+ __wbg_new_34e56228080aa9f8: function(arg0) {
361
+ const ret = new Date(arg0);
362
+ return ret;
363
+ },
364
+ __wbg_new_617a8cdb8bb1130e: function() {
365
+ const ret = new Object();
366
+ return ret;
367
+ },
368
+ __wbg_new_6ab88fbe741af6b5: function(arg0, arg1) {
369
+ const ret = new RangeError(getStringFromWasm0(arg0, arg1));
370
+ return ret;
371
+ },
372
+ __wbg_new_ee2291f50781bf1d: function() {
373
+ const ret = new Array();
374
+ return ret;
375
+ },
376
+ __wbg_new_from_slice_f545fd22ddc142b8: function(arg0, arg1) {
377
+ const ret = new Float64Array(getArrayF64FromWasm0(arg0, arg1));
378
+ return ret;
379
+ },
380
+ __wbg_prototypesetcall_d49a4fab5ca427bc: function(arg0, arg1, arg2) {
381
+ Float64Array.prototype.set.call(getArrayF64FromWasm0(arg0, arg1), arg2);
382
+ },
383
+ __wbg_push_2baf45db356cf468: function(arg0, arg1) {
384
+ const ret = arg0.push(arg1);
385
+ return ret;
386
+ },
387
+ __wbg_set_145a351398b48c65: function() { return handleError(function (arg0, arg1, arg2) {
388
+ const ret = Reflect.set(arg0, arg1, arg2);
389
+ return ret;
390
+ }, arguments); },
391
+ __wbg_set_message_db0b496321654368: function(arg0, arg1, arg2) {
392
+ arg0.message = getStringFromWasm0(arg1, arg2);
393
+ },
394
+ __wbg_set_name_2c630595dc90a7aa: function(arg0, arg1, arg2) {
395
+ arg0.name = getStringFromWasm0(arg1, arg2);
396
+ },
397
+ __wbg_stringify_52ff602c1cc4fbb6: function() { return handleError(function (arg0) {
398
+ const ret = JSON.stringify(arg0);
399
+ return ret;
400
+ }, arguments); },
401
+ __wbg_toISOString_3217c36cf55f719b: function(arg0) {
402
+ const ret = arg0.toISOString();
403
+ return ret;
404
+ },
405
+ __wbg_toString_3e46331018353800: function() { return handleError(function (arg0, arg1) {
406
+ const ret = arg0.toString(arg1);
407
+ return ret;
408
+ }, arguments); },
409
+ __wbindgen_generic_0000000000000001: function(arg0) {
410
+ // Cast intrinsic for `F64 -> Externref`.
411
+ const ret = arg0;
412
+ return ret;
413
+ },
414
+ __wbindgen_generic_0000000000000002: function(arg0, arg1) {
415
+ // Cast intrinsic for `Ref(String) -> Externref`.
416
+ const ret = getStringFromWasm0(arg0, arg1);
417
+ return ret;
418
+ },
419
+ __wbindgen_init_externref_table: function() {
420
+ const table = wasm.__wbindgen_externrefs;
421
+ const offset = table.grow(4);
422
+ table.set(0, undefined);
423
+ table.set(offset + 0, undefined);
424
+ table.set(offset + 1, null);
425
+ table.set(offset + 2, true);
426
+ table.set(offset + 3, false);
427
+ },
428
+ };
429
+ return {
430
+ __proto__: null,
431
+ "./workclock_bg.js": import0,
432
+ };
433
+ }
434
+
435
+ const ScheduleFinalization = (typeof FinalizationRegistry === 'undefined')
436
+ ? { register: () => {}, unregister: () => {} }
437
+ : new FinalizationRegistry(ptr => wasm.__wbg_schedule_free(ptr, 1));
438
+
439
+ function addToExternrefTable0(obj) {
440
+ const idx = wasm.__externref_table_alloc();
441
+ wasm.__wbindgen_externrefs.set(idx, obj);
442
+ return idx;
443
+ }
444
+
445
+ function getArrayF64FromWasm0(ptr, len) {
446
+ ptr = ptr >>> 0;
447
+ return getFloat64ArrayMemory0().subarray(ptr / 8, ptr / 8 + len);
448
+ }
449
+
450
+ let cachedDataViewMemory0 = null;
451
+ function getDataViewMemory0() {
452
+ if (cachedDataViewMemory0 === null || cachedDataViewMemory0.buffer.detached === true || (cachedDataViewMemory0.buffer.detached === undefined && cachedDataViewMemory0.buffer !== wasm.memory.buffer)) {
453
+ cachedDataViewMemory0 = new DataView(wasm.memory.buffer);
454
+ }
455
+ return cachedDataViewMemory0;
456
+ }
457
+
458
+ let cachedFloat64ArrayMemory0 = null;
459
+ function getFloat64ArrayMemory0() {
460
+ if (cachedFloat64ArrayMemory0 === null || cachedFloat64ArrayMemory0.byteLength === 0) {
461
+ cachedFloat64ArrayMemory0 = new Float64Array(wasm.memory.buffer);
462
+ }
463
+ return cachedFloat64ArrayMemory0;
464
+ }
465
+
466
+ function getStringFromWasm0(ptr, len) {
467
+ return decodeText(ptr >>> 0, len);
468
+ }
469
+
470
+ let cachedUint8ArrayMemory0 = null;
471
+ function getUint8ArrayMemory0() {
472
+ if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.byteLength === 0) {
473
+ cachedUint8ArrayMemory0 = new Uint8Array(wasm.memory.buffer);
474
+ }
475
+ return cachedUint8ArrayMemory0;
476
+ }
477
+
478
+ function handleError(f, args) {
479
+ try {
480
+ return f.apply(this, args);
481
+ } catch (e) {
482
+ const idx = addToExternrefTable0(e);
483
+ wasm.__wbindgen_exn_store(idx);
484
+ }
485
+ }
486
+
487
+ function isLikeNone(x) {
488
+ return x === undefined || x === null;
489
+ }
490
+
491
+ function passStringToWasm0(arg, malloc, realloc) {
492
+ if (realloc === undefined) {
493
+ const buf = cachedTextEncoder.encode(arg);
494
+ const ptr = malloc(buf.length, 1) >>> 0;
495
+ getUint8ArrayMemory0().subarray(ptr, ptr + buf.length).set(buf);
496
+ WASM_VECTOR_LEN = buf.length;
497
+ return ptr;
498
+ }
499
+
500
+ let len = arg.length;
501
+ let ptr = malloc(len, 1) >>> 0;
502
+
503
+ const mem = getUint8ArrayMemory0();
504
+
505
+ let offset = 0;
506
+
507
+ for (; offset < len; offset++) {
508
+ const code = arg.charCodeAt(offset);
509
+ if (code > 0x7F) break;
510
+ mem[ptr + offset] = code;
511
+ }
512
+ if (offset !== len) {
513
+ if (offset !== 0) {
514
+ arg = arg.slice(offset);
515
+ }
516
+ ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;
517
+ const view = getUint8ArrayMemory0().subarray(ptr + offset, ptr + len);
518
+ const ret = cachedTextEncoder.encodeInto(arg, view);
519
+
520
+ offset += ret.written;
521
+ ptr = realloc(ptr, len, offset, 1) >>> 0;
522
+ }
523
+
524
+ WASM_VECTOR_LEN = offset;
525
+ return ptr;
526
+ }
527
+
528
+ function takeFromExternrefTable0(idx) {
529
+ const value = wasm.__wbindgen_externrefs.get(idx);
530
+ wasm.__externref_table_dealloc(idx);
531
+ return value;
532
+ }
533
+
534
+ let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
535
+ cachedTextDecoder.decode();
536
+ function decodeText(ptr, len) {
537
+ return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
538
+ }
539
+
540
+ const cachedTextEncoder = new TextEncoder();
541
+
542
+ if (!('encodeInto' in cachedTextEncoder)) {
543
+ cachedTextEncoder.encodeInto = function (arg, view) {
544
+ const buf = cachedTextEncoder.encode(arg);
545
+ view.set(buf);
546
+ return {
547
+ read: arg.length,
548
+ written: buf.length
549
+ };
550
+ };
551
+ }
552
+
553
+ let WASM_VECTOR_LEN = 0;
554
+
555
+ const wasmPath = `${__dirname}/workclock_bg.wasm`;
556
+ const wasmBytes = require('fs').readFileSync(wasmPath);
557
+ const wasmModule = new WebAssembly.Module(wasmBytes);
558
+ let wasmInstance = new WebAssembly.Instance(wasmModule, __wbg_get_imports());
559
+ let wasm = wasmInstance.exports;
560
+ wasm.__wbindgen_start();
Binary file
@@ -0,0 +1,22 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ export const memory: WebAssembly.Memory;
4
+ export const __wbg_schedule_free: (a: number, b: number) => void;
5
+ export const schedule_add: (a: number, b: any, c: any) => [number, number, number];
6
+ export const schedule_addMany: (a: number, b: any, c: any) => [number, number, number];
7
+ export const schedule_between: (a: number, b: any, c: any) => [number, number, number];
8
+ export const schedule_betweenMany: (a: number, b: any, c: any) => [number, number, number];
9
+ export const schedule_new: (a: any) => [number, number, number];
10
+ export const schedule_nextPeriod: (a: number, b: any) => [number, number, number];
11
+ export const schedule_previousPeriod: (a: number, b: any) => [number, number, number];
12
+ export const schedule_sub: (a: number, b: any, c: any) => [number, number, number];
13
+ export const schedule_subMany: (a: number, b: any, c: any) => [number, number, number];
14
+ export const version: () => [number, number];
15
+ export const __wbindgen_malloc: (a: number, b: number) => number;
16
+ export const __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
17
+ export const __wbindgen_exn_store: (a: number) => void;
18
+ export const __externref_table_alloc: () => number;
19
+ export const __wbindgen_externrefs: WebAssembly.Table;
20
+ export const __externref_table_dealloc: (a: number) => void;
21
+ export const __wbindgen_free: (a: number, b: number, c: number) => void;
22
+ export const __wbindgen_start: () => void;
@@ -0,0 +1,20 @@
1
+ {
2
+ "name": "workclock-wasm",
3
+ "type": "module",
4
+ "version": "0.1.1",
5
+ "license": "MIT",
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "https://github.com/Karthik-beta/workclock"
9
+ },
10
+ "files": [
11
+ "workclock_bg.wasm",
12
+ "workclock.js",
13
+ "workclock.d.ts"
14
+ ],
15
+ "main": "workclock.js",
16
+ "types": "workclock.d.ts",
17
+ "sideEffects": [
18
+ "./snippets/*"
19
+ ]
20
+ }