From 50267157bd0685fa745c1c56d3685f1cd2d45e92 Mon Sep 17 00:00:00 2001 From: Sindre Sorhus Date: Mon, 7 Aug 2023 02:48:47 +0200 Subject: [PATCH] Update readme.md --- readme.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/readme.md b/readme.md index 587bdb0..bec206c 100644 --- a/readme.md +++ b/readme.md @@ -54,11 +54,11 @@ assert.string(foo); // `foo` is now typed as a `string`. ``` -## Named Exports +### Named exports Named exports allow tooling to perform tree-shaking, potentially reducing bundle size by including only code from the methods that are used. -Every method listed above is available as a named export. Each method is prefixed by either `is` or `assert` depending on usage. +Every method listed below is available as a named export. Each method is prefixed by either `is` or `assert` depending on usage. For example: