File tree Expand file tree Collapse file tree 2 files changed +3
-0
lines changed
tools/public_api_guard/cdk Expand file tree Collapse file tree 2 files changed +3
-0
lines changed Original file line number Diff line number Diff line change 77 */
88
99/** Wraps the provided value in an array, unless the provided value is an array. */
10+ export function coerceArray < T > ( value : T | T [ ] ) : T [ ] ;
11+ export function coerceArray < T > ( value : T | readonly T [ ] ) : readonly T [ ] ;
1012export function coerceArray < T > ( value : T | T [ ] ) : T [ ] {
1113 return Array . isArray ( value ) ? value : [ value ] ;
1214}
Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ export declare function _isNumberValue(value: any): boolean;
33export declare type BooleanInput = string | boolean | null | undefined ;
44
55export declare function coerceArray < T > ( value : T | T [ ] ) : T [ ] ;
6+ export declare function coerceArray < T > ( value : T | readonly T [ ] ) : readonly T [ ] ;
67
78export declare function coerceBooleanProperty ( value : any ) : boolean ;
89
You can’t perform that action at this time.
0 commit comments