Skip to content

Commit 348c289

Browse files
committed
fix ts
1 parent d16b7fd commit 348c289

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

examples/typescript/documentation/functions.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,10 @@ export class FunctionsStack extends TerraformStack {
4747
// DOCS_BLOCK_START:conditional
4848
new Instance(this, "web", {
4949
ami: "ami-2757f631",
50-
count: Token.as_number(
51-
Fn.conditional(Op.eq(Token.as_any("terraform.workspace"), "prod"), 2, 1)
50+
count: Token.asNumber(
51+
Fn.conditional(Op.eq(Token.asAny("terraform.workspace"), "prod"), 2, 1)
5252
),
53-
instance_type: "t2.micro",
53+
instanceType: "t2.micro",
5454
});
5555
// DOCS_BLOCK_END:conditional
5656

0 commit comments

Comments
 (0)