mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-08-22 08:02:19 +00:00
clarify //nobundling
This commit is contained in:
@@ -57,17 +57,22 @@ export async function main(
|
||||
}
|
||||
`
|
||||
|
||||
export const BUN_INIT_CODE = `// import { toWords } from "number-to-words@1"
|
||||
export const BUN_INIT_CODE = `// there are multiple modes to add as header: //nobundling //native //npm //nodejs
|
||||
// https://www.windmill.dev/docs/getting_started/scripts_quickstart/typescript#modes
|
||||
|
||||
// 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, // for large files backed by S3 (https://www.windmill.dev/docs/core_concepts/persistent_storage/large_data_files)
|
||||
//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: {
|
||||
|
||||
Reference in New Issue
Block a user