function f(num: number) {console.log(num);}console.log(f(1))function f2(matrix: number[][], stringMatrix: string[]) {console.log(matrix, stringMatrix)}f2([[1]], ["1"])type C = { a: string, b?: number }function f3({ a, b }: C): void {// ...}console.log(f3)
type CC = {name: string,age: number}const obj1: CC = {name: "lisi", age: 10}const obj2: { name: string, age: number } = {name: "lisi", age: 10}
