Closed koistya closed 2 years ago
web
Route<Component, Query>
3.2.0-rc.15
8.9.0
import { graphql } from "relay-runtime"; import type { Route } from "../core"; - import type { SettingsQueryResponse } from "../queries/SettingsQuery.graphql"; + import type { SettingsQuery } from "../queries/SettingsQuery.graphql"; import type Settings from "./Settings"; export default { path: "/settings", query: graphql` query SettingsQuery { me { id name email } } `, authorize: true, component: () => import(/* webpackChunkName: "settings" */ "./Settings"), response: (data) => ({ title: "Account Settings", props: data, }), - } as Route<typeof Settings, SettingsQueryResponse>; + } as Route<typeof Settings, SettingsQuery>;
web
] UpdateRoute<Component, Query>
TypeScript definition3.2.0-rc.15
; ESLint to8.9.0
Application Route (example)