diff options
| author | Akshay Nair <phenax5@gmail.com> | 2023-01-14 18:16:41 +0530 |
|---|---|---|
| committer | Akshay Nair <phenax5@gmail.com> | 2023-01-14 18:16:41 +0530 |
| commit | e75a5a15912b8f297fe9c9747f574486d6c4e334 (patch) | |
| tree | 603cd3b9fa68e6e0bd700fe66fede80e9ae657c9 /docs/interfaces/util.ConstK.md | |
| parent | 78e384c2f32996478edced59c837a348dec77e57 (diff) | |
| download | ts-types-lang-e75a5a15912b8f297fe9c9747f574486d6c4e334.tar.gz ts-types-lang-e75a5a15912b8f297fe9c9747f574486d6c4e334.zip | |
chore: adds some docs
Diffstat (limited to 'docs/interfaces/util.ConstK.md')
| -rw-r--r-- | docs/interfaces/util.ConstK.md | 26 |
1 files changed, 21 insertions, 5 deletions
diff --git a/docs/interfaces/util.ConstK.md b/docs/interfaces/util.ConstK.md index d75c33a..71db6c3 100644 --- a/docs/interfaces/util.ConstK.md +++ b/docs/interfaces/util.ConstK.md @@ -4,11 +4,27 @@ [util](../modules/util.md).ConstK +An implementation of `* -> *` higher-kinded type + +**`Example`** + +You can define a return property for the function body + and use `this['input']` to access the argument + Uses - [ApplyK](../modules/util.md#applyk) + +```ts +interface SomeFunc extends Kind1<number, string> { + return: `Your number is ${this['input']}`, +} + +type result = ApplyK<SomeFunc, 200> +``` + ## Type parameters -| Name | -| :------ | -| `Val` | +| Name | Description | +| :------ | :------ | +| `Val` | The input type | ## Hierarchy @@ -35,7 +51,7 @@ #### Defined in -[effect.ts:6](https://github.com/phenax/ts-types-runtime-environment/blob/6c7b4f3/stdlib/effect.ts#L6) +[effect.ts:35](https://github.com/phenax/ts-types-runtime-environment/blob/78e384c/stdlib/effect.ts#L35) ___ @@ -49,4 +65,4 @@ ___ #### Defined in -[util.ts:13](https://github.com/phenax/ts-types-runtime-environment/blob/6c7b4f3/stdlib/util.ts#L13) +[util.ts:13](https://github.com/phenax/ts-types-runtime-environment/blob/78e384c/stdlib/util.ts#L13) |
