Skip to content

Commit

Permalink
fix: use | null to match other type defs for FormalParameterRest
Browse files Browse the repository at this point in the history
  • Loading branch information
overlookmotel committed Oct 19, 2024
1 parent b78e854 commit 7639831
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/oxc_ast/src/serialize.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
"#;
Expand Down

0 comments on commit 7639831

Please sign in to comment.