diff --git a/tests/typescript/declare/__snapshots__/jsfmt.spec.js.snap b/tests/typescript/declare/__snapshots__/jsfmt.spec.js.snap index 82d434d08950..fba2ff4d264e 100644 --- a/tests/typescript/declare/__snapshots__/jsfmt.spec.js.snap +++ b/tests/typescript/declare/__snapshots__/jsfmt.spec.js.snap @@ -50,6 +50,8 @@ declare namespace A { function y(): void; } +declare function f([]?) + =====================================output===================================== declare function x(); declare function y(): void; @@ -59,6 +61,8 @@ declare namespace A { function y(): void; } +declare function f([]?); + ================================================================================ `; diff --git a/tests/typescript/declare/declare_function.ts b/tests/typescript/declare/declare_function.ts index 67710eb24f78..d6b56a0c2c05 100644 --- a/tests/typescript/declare/declare_function.ts +++ b/tests/typescript/declare/declare_function.ts @@ -5,3 +5,5 @@ declare namespace A { function x(); function y(): void; } + +declare function f([]?)