Open e1um opened 5 years ago
const emailData = { payload: { headers: [{ name: "header1", value: "value1" }, { name: "header2", value: "value2" }] } } const headers = R.path(['payload', 'headers'], emailData) //[{ name: "header1", value: "value1" }, { name: "header2", value: "value2" }]
This returns a type of 'path_11<{}>' when it should be typed with a 'path_11<List<{}>>'. When I try and call R.find() on 'headers' I get an error
**Apologies if I'm not using the right lingo... fairly new to typescript.
This returns a type of 'path_11<{}>' when it should be typed with a 'path_11<List<{}>>'. When I try and call R.find() on 'headers' I get an error
**Apologies if I'm not using the right lingo... fairly new to typescript.