-
Notifications
You must be signed in to change notification settings - Fork 10.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(gatsby): migrate static-query-components reducer to TypeScript (#…
…23475) This commit migrates the `static-query-components` reducer to TypeScript with few adjustments to the existing IGatsbyState interface. The main adjustment is the update of the type of the key used for the map storing each static query from `number` to `string`. This change reflect the fact that the key is described as being the `id` field of the interface, and this field is described as a `string` in the object definition.
- Loading branch information
Showing
3 changed files
with
34 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 6 additions & 1 deletion
7
...redux/reducers/static-query-components.js → ...redux/reducers/static-query-components.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters