Last active
August 18, 2020 18:10
-
-
Save kitsonk/7c2c2d331dccb13f25c931ca6be9a40a to your computer and use it in GitHub Desktop.
An example of using lodash under Deno in a type safe way.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// @deno-types="https://unpkg.com/@types/[email protected]/index.d.ts" | |
import * as lodash from "https://cdn.pika.dev/lodash-es@^4.17.15"; | |
console.log(Object.keys(lodash)); |
Removing the deno-types line causes it to work but I don't know why.
Yeah it does not work :/
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Trying with the latest deno release 0.41 I get the following error trying to run this:
Error:
Full output: