From 7639831457d05401863ca8846599d81aa0e8da0a Mon Sep 17 00:00:00 2001 From: overlookmotel Date: Sat, 19 Oct 2024 09:06:08 +0100 Subject: [PATCH] fix: use `| null` to match other type defs for `FormalParameterRest` --- crates/oxc_ast/src/serialize.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/oxc_ast/src/serialize.rs b/crates/oxc_ast/src/serialize.rs index 4e3adacd49733..a797dfdd2c05c 100644 --- a/crates/oxc_ast/src/serialize.rs +++ b/crates/oxc_ast/src/serialize.rs @@ -165,7 +165,7 @@ const TS_APPEND_CONTENT: &'static str = r#" export type FormalParameterRest = ({ type: "RestElement", argument: BindingPatternKind, - typeAnnotation?: TSTypeAnnotation, + typeAnnotation: TSTypeAnnotation | null, optional: boolean, }) & Span; "#;