wire
functionConstructs a component OUTSIDE a tree — a script or a test that wants the class with
its fields supplied by hand. The fields are assigned as the booter would inject them;
nothing is checked, and create() is not called.
Declaration
export function wire<T extends object>(cls: new () => T, fields: Record<string, any>): TParameters & Return
cls
new () => Tfields
Record<string, any>@returns
T