Skip to content

Commit

Permalink
fix RailsContext type (#1585)
Browse files Browse the repository at this point in the history
* fix: fix RailsContext type
  • Loading branch information
kotarella1110 authored Nov 21, 2023
1 parent 8897fcc commit bd26432
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ Changes since the last non-beta release.
### [13.4.1]
#### Fixed
- Fixed Typescript types for ServerRenderResult, ReactComponent, and RenderFunction interfaces. [PR 1582](https://github.com/shakacode/react_on_rails/pull/1582) by [kotarella1110](https://github.com/kotarella1110)
- Fixed Typescript types for RailsContext interfaces. [PR 1585](https://github.com/shakacode/react_on_rails/pull/1585) by [kotarella1110](https://github.com/kotarella1110)

- Removed a workaround in `JsonOutput#escape` for an no-longer supported Rails version. Additionally, removed `Utils.rails_version_less_than_4_1_1`
which was only used in the workaround. [PR 1580](https://github.com/shakacode/react_on_rails/pull/1580) by [wwahammy](https://github.com/wwahammy)
Expand Down
5 changes: 2 additions & 3 deletions node_package/src/types/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,13 @@ export interface RailsContext {
rorPro: boolean;
rorProVersion?: string;
serverSide: boolean;
originalUrl: string;
href: string;
location: string;
scheme: string;
host: string;
port: string;
port: number | null;
pathname: string;
search: string;
search: string | null;
httpAcceptLanguage: string;
}

Expand Down

0 comments on commit bd26432

Please sign in to comment.