blob: 71db6c303bd4b894808427db614a345027fb1ff9 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
|
[ts-types-lang](../README.md) / [Modules](../modules.md) / [util](../modules/util.md) / ConstK
# Interface: ConstK<Val\>
[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 | Description |
| :------ | :------ |
| `Val` | The input type |
## Hierarchy
- [`Kind1`](effect.Kind1.md)<`unknown`, `Val`\>
↳ **`ConstK`**
## Table of contents
### Properties
- [input](util.ConstK.md#input)
- [return](util.ConstK.md#return)
## Properties
### input
• **input**: `unknown`
#### Inherited from
[Kind1](effect.Kind1.md).[input](effect.Kind1.md#input)
#### Defined in
[effect.ts:35](https://github.com/phenax/ts-types-runtime-environment/blob/78e384c/stdlib/effect.ts#L35)
___
### return
• **return**: `Val`
#### Overrides
[Kind1](effect.Kind1.md).[return](effect.Kind1.md#return)
#### Defined in
[util.ts:13](https://github.com/phenax/ts-types-runtime-environment/blob/78e384c/stdlib/util.ts#L13)
|