Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit d007a3f

Browse filesBrowse files
In aspnet-prerendering, fix type definitions to satisfy TypeScript 2.4.0. Fixes aspnet#1034
1 parent fcd3cf9 commit d007a3f
Copy full SHA for d007a3f

File tree

Expand file treeCollapse file tree

2 files changed

+5
-5
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

2 files changed

+5
-5
lines changed
Open diff view settings
Collapse file

‎src/Microsoft.AspNetCore.SpaServices/npm/aspnet-prerendering/src/PrerenderingInterfaces.ts‎

Copy file name to clipboardExpand all lines: src/Microsoft.AspNetCore.SpaServices/npm/aspnet-prerendering/src/PrerenderingInterfaces.ts
+4-2Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ export interface RenderToStringFunc {
33
}
44

55
export interface RenderToStringCallback {
6-
(error: any, result?: RenderToStringResult): void;
6+
(error: any, result?: RenderResult): void;
77
}
88

99
export interface RenderToStringResult {
@@ -16,8 +16,10 @@ export interface RedirectResult {
1616
redirectUrl: string;
1717
}
1818

19+
export type RenderResult = RenderToStringResult | RedirectResult;
20+
1921
export interface BootFunc {
20-
(params: BootFuncParams): Promise<RenderToStringResult>;
22+
(params: BootFuncParams): Promise<RenderResult>;
2123
}
2224

2325
export interface BootFuncParams {
Collapse file
+1-3Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,2 @@
1-
import { RenderToStringResult, RedirectResult } from './PrerenderingInterfaces';
21
export * from './Prerendering';
3-
4-
export type RenderResult = RenderToStringResult | RedirectResult;
2+
export * from './PrerenderingInterfaces';

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.