We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7e6f5a3 commit f553ab4Copy full SHA for f553ab4
1 file changed
README.md
@@ -50,11 +50,11 @@ export { bar } from './path/to/bar.mjs'
50
Or collect the AST nodes:
51
52
```ts
53
-import type { Spec } from '@knighted/specifier'
+import { type Spec, specifier } from '@knighted/specifier'
54
55
const nodes: { node: Spec['node']; parent: Spec['parent'] }[] = []
56
57
-await specifier.update(resolve('file.ts'), ({ parent }) => {
+await specifier.update('file.ts', ({ parent, node }) => {
58
nodes.push({ node, parent })
59
})
60
0 commit comments