diff --git a/docs/docs/09-typescript/02-inflights.md b/docs/docs/09-typescript/02-inflights.md index 2dc92cb3490..1f628a7237b 100644 --- a/docs/docs/09-typescript/02-inflights.md +++ b/docs/docs/09-typescript/02-inflights.md @@ -116,7 +116,7 @@ import { main, cloud, inflight, lift } from "@wingcloud/framework"; import assert from "node:assert"; main((root, test) => { - const fn = cloud.Function( + const fn = new cloud.Function( root, "MyFn", inflight(async () => {