Add regression test
This commit is contained in:
parent
eab5b9f20c
commit
979bda484c
|
@ -0,0 +1,9 @@
|
|||
// @declaration: true
|
||||
|
||||
// Repro from #22644
|
||||
|
||||
const fn1 = (options: { headers?: {} }) => { };
|
||||
fn1({ headers: { foo: 1 } });
|
||||
|
||||
const fn2 = ({ headers = {} }) => { };
|
||||
fn2({ headers: { foo: 1 } });
|
Loading…
Reference in a new issue