Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

can't reexport modules typed by X-TypeScript-Types custom header #5935

Closed
fjc0k opened this issue May 29, 2020 · 2 comments
Closed

can't reexport modules typed by X-TypeScript-Types custom header #5935

fjc0k opened this issue May 29, 2020 · 2 comments
Assignees
Labels
bug Something isn't working correctly cli related to cli/ dir

Comments

@fjc0k
Copy link

fjc0k commented May 29, 2020

// mod.ts
export * from 'https://cdn.pika.dev/vtils@3.0.1-beta.2'
// a.ts
import * as vtils from './mod.ts'

console.log(Object.keys(vtils).includes('isNumber'))

deno run -A -r a.ts:

image

// b.ts
import * as vtils from './mod.ts'

console.log(vtils.isNumber)

deno run -A -r b.ts:

image

// c.ts
import * as vtils from 'https://cdn.pika.dev/vtils@3.0.1-beta.2'

console.log(vtils.isNumber)

deno run -A -r c.ts:

image

@ry ry added bug Something isn't working correctly cli related to cli/ dir labels May 29, 2020
@marcushultman
Copy link
Contributor

I see a similar effect when using @deno-types and re-export

@kitsonk
Copy link
Contributor

kitsonk commented Oct 16, 2020

Need to try to address in #7225.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working correctly cli related to cli/ dir
Projects
None yet
Development

No branches or pull requests

4 participants