From d1292b1ee323fa3f1d00d4fa4db6af2e325c889d Mon Sep 17 00:00:00 2001 From: Dillon Curry Date: Mon, 17 Apr 2023 11:16:39 -0400 Subject: [PATCH 1/2] Fix misspelling `poision` -> `position` --- text/0227-server-module-conventions.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/text/0227-server-module-conventions.md b/text/0227-server-module-conventions.md index ac9518e5..b67994b2 100644 --- a/text/0227-server-module-conventions.md +++ b/text/0227-server-module-conventions.md @@ -17,7 +17,7 @@ We also propose using package.json conditional exports to allow an import to for - No more file extension conventions. - A `"use client"` directive at the top of a file defines that it's a boundary between server and client. - Server and Client Components no longer have to explicitly state so. Everything is implicitly Shared until proven otherwise, and then the build errors. -- `import "server-only"` and `import "client-only"` can be used to poision a module so it can only be imported in that environment. +- `import "server-only"` and `import "client-only"` can be used to position a module so it can only be imported in that environment. - TypeScript Convention for enforcing serializable boundaries. # Basic example From 769b399caf859b5da157f7bec65d4a21141e80d6 Mon Sep 17 00:00:00 2001 From: Dillon Curry Date: Mon, 17 Apr 2023 11:26:28 -0400 Subject: [PATCH 2/2] Update 0227-server-module-conventions.md --- text/0227-server-module-conventions.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/text/0227-server-module-conventions.md b/text/0227-server-module-conventions.md index b67994b2..b46b6b2f 100644 --- a/text/0227-server-module-conventions.md +++ b/text/0227-server-module-conventions.md @@ -17,7 +17,7 @@ We also propose using package.json conditional exports to allow an import to for - No more file extension conventions. - A `"use client"` directive at the top of a file defines that it's a boundary between server and client. - Server and Client Components no longer have to explicitly state so. Everything is implicitly Shared until proven otherwise, and then the build errors. -- `import "server-only"` and `import "client-only"` can be used to position a module so it can only be imported in that environment. +- `import "server-only"` and `import "client-only"` can be used to poison a module so it can only be imported in that environment. - TypeScript Convention for enforcing serializable boundaries. # Basic example