Skip to content

What import attribute types are available? #23696

Answered by bartlomieju
justinmchase asked this question in Q&A
Discussion options

You must be logged in to vote

But I am wondering what types are available other than "json"? The intellisense in vscode just says any for the whole with block and I can't seem to find the docs, which all seem to focus heavily on just importing json.

Currently only "json" type is supported. We did a bunch of preliminary work to support text, bytes and wasm types as well (eg. denoland/deno_core#402) but they are not yet available.

I really have no idea if the above is possible, or if anyone is even thinking along these lines as an eventually feature?

There was talks about this in the team, especially @piscisaureus wanted such a feature, but so far there's been no consensus and we don't plan doing that in the forseea…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@justinmchase
Comment options

Answer selected by justinmchase
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants