TypeScript/tests/cases/conformance/es6/destructuring/optionalBindingParameters2.ts
Daniel Rosenwasser dafe7c8958 Added tests.
2015-01-14 17:02:31 -08:00

8 lines
146 B
TypeScript

function foo({ x, y, z }?: { x: string; y: number; z: boolean }) {
}
foo({ x: "", y: 0, z: false });
foo({ x: false, y: 0, z: "" });