Skip to content

Conversation

dsherret
Copy link
Member


fn get_extension(url: &Url, content_type: Option<&str>) -> &'static str {
MediaType::from_specifier_and_content_type(url, content_type)
.as_ts_extension()
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Caused because .wasm was getting converted to .d.mts for typescript here:

https://github.com/denoland/deno_media_type/blob/abf2b6808bdff4cd6f01ec2acf51955956956792/src/lib.rs#L60

Copy link
Member

@nathanwhit nathanwhit left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants