Skip to content

Commit

Permalink
fix: remove "*.json" module definition (#314)
Browse files Browse the repository at this point in the history
  • Loading branch information
jacob-ebey authored Oct 13, 2021
1 parent 0c2c94a commit 5cb74fc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 4 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

## Unreleased

### Improvements

- Removed `*.json` module type to allow TS to auto-type `.json` imports

### Breaking Changes

- Several users felt that the `remix dev` command did not behave as expected. The CLI command `remix dev` has been changed to `remix watch`, and `remix run` has been changed to `remix dev` to hopefully make the CLI a bit more intuitive. Please note that `remix dev` requires that `@remix-run/serve` is installed as a dependency, just as `remix run` did before.
Expand Down
4 changes: 0 additions & 4 deletions packages/remix-dev/modules.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,6 @@ declare module "*.jpg" {
const asset: string;
export default asset;
}
declare module "*.json" {
const asset: string;
export default asset;
}
declare module "*.md" {
import type { ComponentType as MdComponentType } from "react";
export const attributes: any;
Expand Down

0 comments on commit 5cb74fc

Please sign in to comment.