TypeScript/tests/cases/compiler/parameterDestructuringObjectLiteral.ts
2018-03-17 12:23:45 -07:00

10 lines
202 B
TypeScript

// @declaration: true
// Repro from #22644
const fn1 = (options: { headers?: {} }) => { };
fn1({ headers: { foo: 1 } });
const fn2 = ({ headers = {} }) => { };
fn2({ headers: { foo: 1 } });