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