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