Skip to content

Commit d27668b

Browse files
authored
Update typed-napi.md (ast-grep#620)
Remove the duplicate line in `RefineNode` example
1 parent 6463b4a commit d27668b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

website/blog/typed-napi.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,6 @@ if (union.kind === 'expression') {
242242
To bridge this gap, we introduced the `RefineNode` type:
243243

244244
```typescript
245-
type RefineNode<M, K extends Kinds<M>> =
246245
type RefineNode<M, K> = string extends K ? SgNode<M, K> : // one SgNode
247246
K extends keyof M ? SgNode<M, K> : never // distribute over union
248247
```
@@ -440,4 +439,4 @@ As [Theo](https://x.com/theo) aptly puts it in [his video](https://www.youtube.c
440439

441440
> There are very few devs that understand Rust deeply enough and compiler deeply enough that also care about TypeScript in web dev enough to build something for web devs in Rust
442441
443-
ast-grep is determined to bridge that gap between Rust and TypeScript!
442+
ast-grep is determined to bridge that gap between Rust and TypeScript!

0 commit comments

Comments
 (0)