define object properties typescript

Solutions on MaxInterview for define object properties typescript by the best coders in the world

showing results for - "define object properties typescript"
Caroline
24 Jun 2017
1interface ISomeObject {
2  subPropertie1: string,
3  subPropertie2: number,
4}
5
6interface IProperties {
7  property1: string,
8  property2: boolean,
9  property3: number[],
10  property4: ISomeObject,
11  property5: ISomeObject[],
12}
13
14function (args:IProperties): void {		// Sample Usage
15  console.log(args.property1);
16}