@wise/dynamic-flow-types 2.10.0 → 2.11.0-experimental-ed080a1

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/build/main.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/index.ts
17
+ var src_exports = {};
18
+ module.exports = __toCommonJS(src_exports);
@@ -0,0 +1 @@
1
+ "use strict";var m=Object.defineProperty;var f=Object.getOwnPropertyDescriptor;var x=Object.getOwnPropertyNames;var a=Object.prototype.hasOwnProperty;var c=(r,o,t,p)=>{if(o&&typeof o=="object"||typeof o=="function")for(let e of x(o))!a.call(r,e)&&e!==t&&m(r,e,{get:()=>o[e],enumerable:!(p=f(o,e))||p.enumerable});return r};var i=r=>c(m({},"__esModule",{value:!0}),r);var l={};module.exports=i(l);
package/build/main.mjs ADDED
File without changes
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Unfortunately we need this because ts-to-zod can't generate a valid
3
+ * schema for our exported version of this type. So, we add this manually
4
+ * during the schema generation because it is equivalent, but can be converted
5
+ * by ts-to-zod. (We can't use this type anywhere else because we get infinitely
6
+ * nesting types.)
7
+ */
8
+ export type JsonElement = string | number | boolean | null | {
9
+ [x: string]: JsonElement;
10
+ } | JsonElement[];