windmill-ts 0.4.1 → 0.4.2
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/package.json
CHANGED
|
@@ -4,8 +4,11 @@ const preamble = dedent `
|
|
|
4
4
|
// This file is auto-generated by windmill-ts, do not modify it manually
|
|
5
5
|
import { z } from 'zod';
|
|
6
6
|
import * as wmill from 'windmill-client';
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
${
|
|
8
|
+
/* NOTE: Windmill has JSX enabled, so <T> is illegal.
|
|
9
|
+
The usual way to fix this is <T,>, but some formatters/editors
|
|
10
|
+
remove it, hence why a random constraint is used instead. */ ""}
|
|
11
|
+
const lazyObject = <T extends unknown>(fn: () => T) => {
|
|
9
12
|
let instance: T | null = null;
|
|
10
13
|
return new Proxy({}, {
|
|
11
14
|
get(_target, prop) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"preamble.js","sourceRoot":"","sources":["../../../src/generator/preamble.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE1C,MAAM,QAAQ,GAAG,MAAM,CAAA
|
|
1
|
+
{"version":3,"file":"preamble.js","sourceRoot":"","sources":["../../../src/generator/preamble.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE1C,MAAM,QAAQ,GAAG,MAAM,CAAA;;;;IAInB;AACA;;qEAEqE,CAAC,EACxE;;;;;;;;;;;;;;;;;;CAkBD,CAAC;AAEF,MAAM,CAAC,MAAM,aAAa,GAAG,KAAK,IAAI,EAAE;IACtC,MAAM,EAAE,KAAK,EAAE,GAAG,UAAU,EAAG,CAAC;IAEhC,MAAM,KAAK,CAAC,QAAQ,CAAC,CAAC;AACxB,CAAC,CAAC"}
|