From 72491811f2dda9d6340389e4cb707f6bd73fbdb4 Mon Sep 17 00:00:00 2001 From: ahuglajbclajep Date: Fri, 28 Feb 2020 04:01:31 +0900 Subject: [PATCH 1/2] fix README --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 8a0cebd..f0a3dda 100644 --- a/README.md +++ b/README.md @@ -110,7 +110,7 @@ Now, let's write a simple module that we're going to load in a Worker: **greetings.worker.ts**: ```ts -export async function greet(subject: string): string { +export async function greet(subject: string): Promise { return `Hello, ${subject}!`; } ``` From ace5062be09029990b7347106cff5d06f9ea91ba Mon Sep 17 00:00:00 2001 From: ahuglajbclajep Date: Fri, 28 Feb 2020 04:15:09 +0900 Subject: [PATCH 2/2] fix import --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index f0a3dda..923fd85 100644 --- a/README.md +++ b/README.md @@ -120,7 +120,7 @@ We can import our the above module, and since the filename includes `.worker.ts` **index.ts**: ```ts -import { greet } from './greetings.worker.ts'; +import { greet } from './greetings.worker'; async function demo() { console.log(await greet('dog'));