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 7
7
*/
8
8
9
9
/** 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 [ ] ;
10
12
export function coerceArray < T > ( value : T | T [ ] ) : T [ ] {
11
13
return Array . isArray ( value ) ? value : [ value ] ;
12
14
}
Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ export declare function _isNumberValue(value: any): boolean;
3
3
export declare type BooleanInput = string | boolean | null | undefined ;
4
4
5
5
export declare function coerceArray < T > ( value : T | T [ ] ) : T [ ] ;
6
+ export declare function coerceArray < T > ( value : T | readonly T [ ] ) : readonly T [ ] ;
6
7
7
8
export declare function coerceBooleanProperty ( value : any ) : boolean ;
8
9
You can’t perform that action at this time.
0 commit comments