The collector now collects the body of functions that return an expression as a symbolic 'function'. The static reflector supports expanding these functions statically to allow provider macros. Also added support for the array spread operator in both the collector and the static reflector.
3 lines
68 B
TypeScript
3 lines
68 B
TypeScript
export function wrapInArray(value: any): any[] {
|
|
return [value];
|
|
} |