From 46491517ec85246dd4a9c22b1d0d1076408d50d5 Mon Sep 17 00:00:00 2001 From: ruben Date: Sun, 26 Jan 2025 09:08:07 +0000 Subject: [PATCH] [WM] Script 'f/c/trusted_script' deployed --- f/c/trusted_script.script.lock | 2 +- f/c/trusted_script.script.yaml | 5 ++++- f/c/trusted_script.ts | 4 ++-- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/f/c/trusted_script.script.lock b/f/c/trusted_script.script.lock index 789f01c..c24eb1c 100644 --- a/f/c/trusted_script.script.lock +++ b/f/c/trusted_script.script.lock @@ -1,5 +1,5 @@ { "dependencies": {} } -//bun.lockb +//bun.lock \ No newline at end of file diff --git a/f/c/trusted_script.script.yaml b/f/c/trusted_script.script.yaml index 1de471d..c416e07 100644 --- a/f/c/trusted_script.script.yaml +++ b/f/c/trusted_script.script.yaml @@ -15,12 +15,14 @@ schema: description: '' default: null enum: - - my + - myyy - enum + originalType: enum e: type: string description: '' default: inferred type string from default arg + originalType: string f: type: object description: '' @@ -29,6 +31,7 @@ schema: properties: nested: type: string + originalType: string required: - a - b diff --git a/f/c/trusted_script.ts b/f/c/trusted_script.ts index 6ef274d..6d5085e 100644 --- a/f/c/trusted_script.ts +++ b/f/c/trusted_script.ts @@ -3,10 +3,10 @@ import * as wmill from "windmill-client" // fill the type, or use the +Resource type to get a type-safe reference to a resource // type Postgresql = object - +//f export async function main( a: number, - b: "my" | "enum", + b: "myyy" | "enum", //c: Postgresql, //d: wmill.S3Object, // for large files backed by S3 (https://www.windmill.dev/docs/core_concepts/persistent_storage/large_data_files) e = "inferred type string from default arg",