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

*.json imports get cast to strings #142

Closed
holic opened this issue May 6, 2021 · 1 comment
Closed

*.json imports get cast to strings #142

holic opened this issue May 6, 2021 · 1 comment
Labels
bug Something isn't working package:dev

Comments

@holic
Copy link

holic commented May 6, 2021

declare module "*.json" {
const asset: string;
export default asset;
}

I believe if we just remove this and add resolveJsonModule: true to tsconfig.json, we'll get the right types for these imports.

I'm happy to open a PR if this seems reasonable!

@mcansh
Copy link
Collaborator

mcansh commented Mar 30, 2022

sorry for the delay on replying to this! this was fixed in #314 and released in 0.20.0

@mcansh mcansh closed this as completed Mar 30, 2022
@MichaelDeBoey MichaelDeBoey added bug Something isn't working package:dev labels Mar 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working package:dev
Projects
None yet
Development

No branches or pull requests

3 participants