我在 LiveScript 中编程并使用外部模块prelude-ls
来执行链接、映射、折叠、grep 或其他功能概念的操作。
在 LiveScript 中,我可以做到
_ = require 'prelude-ls'
[1 2 3] |> map (*2) |> filter (> 4) |> fold (+)
但如果我这样做了,在 TypeScript 中
import _ = require('prelude-ls');
我收到以下错误:
# => Cannot find external module 'prelude-ls'
但我已经安装了这个模块,并将它与 LiveScript 一起使用。在 TypeScript 中是否有任何方法或类似的库可以使用?