This repository was archived by the owner on Jul 23, 2021. It is now read-only.
This repository was archived by the owner on Jul 23, 2021. It is now read-only.
Type safe getIn/setIn (TypeScript) #64
Open
Description
From @dinony on Tue, 19 Dec 2017 11:15:48 GMT
I'm using v4.0.0-rc.9
with TypeScript a lot.
I wonder if it would be possible to preserve type information when using getIn
or setIn
.
const r = nested.getIn(['some', 'long', 'path']) // r: any :'(
Any TS pros out there, who could help with the TS declarations?
Copied from original issue: immutable-js#1462