createFunction<TFunction>
Creates a function from the provided parameters.
Import:
import { createFunction } from '@mnaoumov/typescript-lib/function';Signature:
function createFunction(params: CreateFunctionArgumentlessParams & Partial<CreateFunctionParams<TFunction>>): TFunctionParameters:
| Parameter | Type | Description |
|---|---|---|
params |
CreateFunctionArgumentlessParams & Partial<CreateFunctionParams<TFunction>> | The parameters to create the function with. |
Returns: TFunction — A function created from the provided parameters.