denoland / docland

The documentation generation website for Deno
https://doc.deno.land
MIT License
119 stars 29 forks source link

`export { default as random } from 'https://cdn.skypack.dev/lodash@4.17.21/random?dts'` failed #194

Closed masx200 closed 1 year ago

masx200 commented 1 year ago

export { default as random } from 'https://cdn.skypack.dev/lodash@4.17.21/random?dts' failed

https://cdn.jsdelivr.net/gh/masx200/leetcode-test@10.7.2/deps.ts

https://doc.deno.land/https://cdn.jsdelivr.net/gh/masx200/leetcode-test@10.7.2/deps.ts

https://doc.deno.land/https://cdn.skypack.dev/lodash@4.17.21/random?dts

masx200 commented 1 year ago
import { random } from "./index.d.ts";
export = random;
masx200 commented 1 year ago

https://cdn.skypack.dev/-/lodash@v4.17.21-K6GEbP02mWFnLA45zAmi/dist=es2019,mode=types/random.d.ts

https://esm.sh/v96/@types/lodash@4.14.186/random~.d.ts

https://doc.deno.land/https://esm.sh/v96/@types/lodash@4.14.186/random~.d.ts

https://doc.deno.land/https://cdn.skypack.dev/-/lodash@v4.17.21-K6GEbP02mWFnLA45zAmi/dist=es2019,mode=types/random.d.ts

kitsonk commented 1 year ago

These type definitions use export = which is not "valid" from the perspective of Deno CLI (it is incompatible with ES modules and therefore incompatible with Deno) nor for documentation purposes.

It is currently a design limitation.