Home
last modified time | relevance | path

Searched refs:createSquare (Results 1 – 2 of 2) sorted by relevance

/arkcompiler/ets_frontend/arkguard/test/grammar/interface_validation/
Dinterface_optional_attributes.ts23 function createSquare(config: SquareConfig): { color: string; area: number } { function
34 let mySquare = createSquare({color: 'black'});
36 assert(createSquare({color: 'black'}).color === 'black', 'success');
38 assert(createSquare({color: 'black'}).area === 100, 'success');
Dinterface_index_signature.ts25 function createSquare(config: SquareConfig): { color: string; area: number } { function
36 let mySquare = createSquare({colr: 'red', width: 100});