mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-08 02:46:15 -05:00
Add regression test
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
// @declaration: true
|
||||
|
||||
// Repro from #22644
|
||||
|
||||
const fn1 = (options: { headers?: {} }) => { };
|
||||
fn1({ headers: { foo: 1 } });
|
||||
|
||||
const fn2 = ({ headers = {} }) => { };
|
||||
fn2({ headers: { foo: 1 } });
|
||||
Reference in New Issue
Block a user