I program in LiveScript and use the external module prelude-ls
to do things as chaining, mapping, folding, grep or other functional concepts.
In LiveScript, I can do
_ = require 'prelude-ls'
[1 2 3] |> map (*2) |> filter (> 4) |> fold (+)
But if I do, in TypeScript
import _ = require('prelude-ls');
I receive the following error:
# => Cannot find external module 'prelude-ls'
But I have this module installed and I use it with LiveScript. Is there any way or any similar library to use within TypeScript?