Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
webpro committed Nov 28, 2024
1 parent 5a0ed83 commit 204ce6d
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions packages/docs/src/content/docs/guides/namespace-imports.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,14 @@ export { NS };

If this all usage of the `NS` namespace object, we also don't know whether
individual exports like `version` or `getRocket` will be used. However, if at
least one reference to a property such as `NS.end` is found, then the individual
exports are considered separately again and `start` will be marked as unused:
least one reference to a property such as `NS.version` is found, then the
individual exports are considered separately again and `getRocket` will be
marked as unused:

```ts title="index.ts"
import { NS } from './my-module.js';

const finish = NS.end;
const version = NS.version;
```

## The default heuristic
Expand Down

0 comments on commit 204ce6d

Please sign in to comment.