From 469b02d1cbf512cc44957e7e5ac2b7f577ba1f28 Mon Sep 17 00:00:00 2001 From: Deep Singhvi Date: Thu, 17 Oct 2024 14:41:55 -0400 Subject: [PATCH] chore: update readme with awaits --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 2220032..ba5eb16 100644 --- a/README.md +++ b/README.md @@ -58,7 +58,7 @@ const template = await fern.templates.get({ // Build a snippet with a payload, this happens on the client side, // without need for another API call, improving latency dramatically. -const snippet1 = template.resolve({ +const snippet1 = await template.resolve({ pathParameters: [{ name: "someFilter", value: "test1" @@ -69,7 +69,7 @@ const snippet1 = template.resolve({ }) // You can build as many snippets as you'd like! -const snippet2 = template.resolve({ +const snippet2 = await template.resolve({ pathParameters: [{ name: "someFilter", value: "anotherTest"