Skip to content

Commit f69822c

Browse files
committed
queryParams -> QueryParams
1 parent a960705 commit f69822c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

codegen/codegentemplates/uiroutes.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ func RegisterUIRoutes(routes *http.ServeMux, uiHandler http.HandlerFunc) { {{ran
1717
const FrontendUiRoutes = `// tslint:disable
1818
// WARNING: generated file
1919
20-
import { parseQueryParams, queryParams, makeQueryParams } from 'f61ui/httputil';
20+
import { parseQueryParams, QueryParams, makeQueryParams } from 'f61ui/httputil';
2121
2222
export interface RouteHandlers { {{range .Module.UiRoutes}}
2323
{{.Id}}: ({{if .HasOpts}}opts: {{.TsOptsName}}{{end}}) => JSX.Element;{{end}}
@@ -32,7 +32,7 @@ export interface RouteHandlers { {{range .Module.UiRoutes}}
3232
3333
// {{.Path}}
3434
export function {{.Id}}Url({{if .HasOpts}}opts: {{.TsOptsName}}{{end}}): string {
35-
const query: queryParams = {};
35+
const query: QueryParams = {};
3636
{{range .QueryParams}}
3737
{{if .Type.Nullable}} if (opts.{{.Key}} !== undefined) {
3838
{{end}} query.{{.Key}} = opts.{{.Key}}{{if eq .Type.NameRaw "integer"}}.toString(){{end}};{{if .Type.Nullable}}
@@ -42,7 +42,7 @@ export function {{.Id}}Url({{if .HasOpts}}opts: {{.TsOptsName}}{{end}}): string
4242
return makeQueryParams(` + "`{{.TsPath}}`" + `, query);
4343
}
4444
45-
export function {{.Id}}Match(path: string, query: queryParams): {{if .HasOpts}}{{.TsOptsName}}{{else}}{}{{end}} | null {
45+
export function {{.Id}}Match(path: string, query: QueryParams): {{if .HasOpts}}{{.TsOptsName}}{{else}}{}{{end}} | null {
4646
const matches = {{.PathReJavaScript}}.exec(path);
4747
if (matches == null) {
4848
return null;

0 commit comments

Comments
 (0)