UNPKG

@rxap/ngx-utilities

Version:
34 lines (17 loc) 764 B
[@rxap/ngx-utilities](../wiki/globals) / ToMethodWithInjectionContext # Function: ToMethodWithInjectionContext() > **ToMethodWithInjectionContext**\<`ReturnType`, `Parameter`, `MethodType`\>(`call`, `injector`, `metadata`): `MethodType` Defined in: [to-method.ts:8](https://gitlab.com/rxap/packages/-/blob/3eebed1be2bbb37bc0d65959f8fecbb850c0b8aa/packages/angular/utilities/src/lib/to-method.ts#L8) ## Type Parameters • **ReturnType** = `any` • **Parameter** = `any` • **MethodType** *extends* `Method`\<`ReturnType`, `Parameter`\> = `Method`\<`ReturnType`, `Parameter`\> ## Parameters ### call (`parameters`?, ...`args`) => `ReturnType` \| `Promise`\<`ReturnType`\> ### injector `Injector` ### metadata `any` = `...` ## Returns `MethodType`