WindmillWWindmill
Powered by
aurelienbrabantA
Windmillโ€ข3y agoโ€ข
11 replies
aurelienbrabant

Object destructuring unparsable in main function

export interface ConfigType {
  key: string;
}

export async function main({ key }: ConfigType) {
}
export interface ConfigType {
  key: string;
}

export async function main({ key }: ConfigType) {
}


The following code causes windmill to error since it's unable to parse the main function's signature.
This happens because of the object destructuring that's taking place.

Probably a rightful wontdo but felt like I should also report this one.
WindmillJoin
3,362Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?
Recent Announcements
henri-c

Weekly kenote to tell you about our latest updates https://discord.com/channels/930051556043276338/1278977038430240813 https://youtube.com/live/2dGd9TdT8xs?feature=share

henri-c ยท 4d ago

Pyra

### HTTP tracing (EE) Capture HTTP requests made by job scripts as observability spans Features: - View HTTP request traces (method, URL, status, timing) in the job details UI - Auto-instrumentation for Native TypeScript, MITM proxy for other languages - Integrates with external OpenTelemetry collectors changelog: https://www.windmill.dev/changelog/http-tracing docs: https://www.windmill.dev/docs/advanced/instance_settings#http-tracing Additionally jobs memory metrics are now fully OSS!

Pyra ยท 2w ago

henri-c

First keynote of the year here https://discord.com/channels/930051556043276338/1278977038430240813 ๐Ÿ™‚

henri-c ยท 4w ago

Similar Threads

Can I use async main function in python?
Dylan ParkDDylan Park / help
3y ago
Typescript error main.main
Murilo SilvaMMurilo Silva / help
16mo ago
Nested flows/scripts logs in main flow
PankajMahatoPPankajMahato / help
7mo ago
Multiple main in bundle relative path for preview
AzaroxAAzarox / help
16mo ago