// WARN; Cannot download dependency modules from internet during sandbox testing! // import { toWords } from "number-to-words@1" // 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 export async function main( a: number, b: "my" | "enum", //c: Postgresql, //d: wmill.S3Object, // https://www.windmill.dev/docs/core_concepts/persistent_storage/large_data_files //d: DynSelect_foo, // https://www.windmill.dev/docs/core_concepts/json_schema_and_parsing#dynamic-select e = "inferred type string from default arg", f = { nested: "object" }, g: { label: "Variant 1", foo: string } | { label: "Variant 2", bar: number } ) { // let x = await wmill.getVariable('u/user/foo') return { foo: a }; }