Skip to content

Commit f553ab4

Browse files
docs: fix typos. (#27)
1 parent 7e6f5a3 commit f553ab4

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,11 @@ export { bar } from './path/to/bar.mjs'
5050
Or collect the AST nodes:
5151

5252
```ts
53-
import type { Spec } from '@knighted/specifier'
53+
import { type Spec, specifier } from '@knighted/specifier'
5454

5555
const nodes: { node: Spec['node']; parent: Spec['parent'] }[] = []
5656

57-
await specifier.update(resolve('file.ts'), ({ parent }) => {
57+
await specifier.update('file.ts', ({ parent, node }) => {
5858
nodes.push({ node, parent })
5959
})
6060

0 commit comments

Comments
 (0)