Skip to content

Commit d337b4a

Browse files
committed
chore: fix formatting
1 parent 674d71a commit d337b4a

File tree

3 files changed

+16
-8
lines changed

3 files changed

+16
-8
lines changed

packages/oidc-http-server-pages/src/create-templates.ts

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,10 @@ function getPageTemplates<TParameters extends Record<string, string>>({
6767
}
6868

6969
export function generateTemplates<
70-
TPageParameters extends Record<string, Record<string, string>> =
71-
HttpServerPageProps,
70+
TPageParameters extends Record<
71+
string,
72+
Record<string, string>
73+
> = HttpServerPageProps,
7274
TPage extends string & keyof TPageParameters = string & keyof TPageParameters,
7375
>(
7476
pages: Record<
@@ -122,8 +124,10 @@ function generateJS(data: string): void {
122124
}
123125

124126
export function generateCompressedTemplates<
125-
TPageParameters extends Record<string, Record<string, string>> =
126-
HttpServerPageProps,
127+
TPageParameters extends Record<
128+
string,
129+
Record<string, string>
130+
> = HttpServerPageProps,
127131
TPage extends string & keyof TPageParameters = string & keyof TPageParameters,
128132
>(
129133
pages: Record<

packages/oidc-http-server-pages/src/get-static-page.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,10 @@ function escapeHTML(str: string): string {
3535
}
3636

3737
export function getStaticPage<
38-
TPageParameters extends Record<string, Record<string, string>> =
39-
HttpServerPageProps,
38+
TPageParameters extends Record<
39+
string,
40+
Record<string, string>
41+
> = HttpServerPageProps,
4042
TPage extends string & keyof TPageParameters = string & keyof TPageParameters,
4143
>(
4244
page: TPage,

packages/oidc-http-server-pages/src/types.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,10 @@ export type HttpServerPageProps = {
2323
};
2424

2525
export type PageTemplates<
26-
TPageProps extends Record<string, Record<string, string>> =
27-
HttpServerPageProps,
26+
TPageProps extends Record<
27+
string,
28+
Record<string, string>
29+
> = HttpServerPageProps,
2830
> = {
2931
[Key in keyof TPageProps]: ITemplate<TPageProps[Key]>[];
3032
};

0 commit comments

Comments
 (0)