From d3b4c1b1812377c85da414ce296b0a3a43265fc9 Mon Sep 17 00:00:00 2001 From: Tycho Date: Mon, 23 Dec 2024 17:07:15 +0800 Subject: [PATCH] Update typed-napi.md Remove the duplicate line in `RefineNode` example --- website/blog/typed-napi.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/website/blog/typed-napi.md b/website/blog/typed-napi.md index 7a3ca1ca..369ba829 100644 --- a/website/blog/typed-napi.md +++ b/website/blog/typed-napi.md @@ -242,7 +242,6 @@ if (union.kind === 'expression') { To bridge this gap, we introduced the `RefineNode` type: ```typescript -type RefineNode> = type RefineNode = string extends K ? SgNode : // one SgNode K extends keyof M ? SgNode : never // distribute over union ``` @@ -440,4 +439,4 @@ As [Theo](https://x.com/theo) aptly puts it in [his video](https://www.youtube.c > 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 -ast-grep is determined to bridge that gap between Rust and TypeScript! \ No newline at end of file +ast-grep is determined to bridge that gap between Rust and TypeScript! pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy