Skip to content

Commit

Permalink
docs: use namespace import in attest docs to avoid name collision (#946)
Browse files Browse the repository at this point in the history
  • Loading branch information
ahrjarrett authored May 6, 2024
1 parent 2c6dd54 commit 08b151e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ark/attest/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,12 @@ export default defineConfig({
`setupVitest.ts`

```ts
import { setup, teardown } from "@arktype/attest"
import * as attest from "@arktype/attest"

// config options can be passed here
export const setup = () => setup({})
export const setup = () => attest.setup({})

export const teardown = teardown
export const teardown = attest.teardown
```

### Mocha
Expand Down

0 comments on commit 08b151e

Please sign in to comment.