UNPKG
hkt-toolbelt
Version:
latest (0.26.0)
1.0.0
0.26.0
0.25.2
0.25.1
0.25.0
0.24.11
0.24.10
0.24.9
0.24.8
0.24.7
0.24.6
0.24.5
0.24.4
0.24.3
0.24.2
0.24.1
0.24.0
0.23.1
0.23.0
0.22.2
0.22.1
0.22.0
0.22.0-beta.1
0.21.1
0.21.0
0.20.1
0.20.0
0.19.3
0.19.2
0.19.1
0.19.0
0.18.1
0.18.0
0.17.1
0.17.0
0.16.1
0.15.1
0.15.0
0.14.0
0.13.2
0.13.1
0.13.0
0.12.0
0.11.0
0.10.0
0.9.0
0.8.1
0.8.0
0.7.0
0.6.1
0.6.0
0.5.1
0.5.0
0.4.1
0.4.0
0.3.0
0.2.0
0.1.0
Functional and composable type utilities
github.com/poteat/hkt-toolbelt
poteat/hkt-toolbelt
hkt-toolbelt
/
object
/
keys.d.ts
6 lines
(5 loc)
•
245 B
TypeScript
View Raw
1
2
3
4
5
6
import
{
Kind
,
Type
,
Union
}
from
'..'
;
export
type
_$keys<T
extends
Record
<
string
,
unknown
>> =
Union
.
_$toList
<keyof T>;
export
interface
Keys
extends
Kind
.
Kind
{
f
(
x
:
Type
.
_$cast
<
this
[
Kind
.
_
],
Record
<
string
,
unknown
>>): _$keys<
typeof
x>; }