mirror of
https://github.com/aspnet/JavaScriptServices.git
synced 2025-12-22 17:47:53 +00:00
In aspnet-prerendering, fix type definitions to satisfy TypeScript 2.4.0. Fixes #1034
This commit is contained in:
@@ -3,7 +3,7 @@ export interface RenderToStringFunc {
|
||||
}
|
||||
|
||||
export interface RenderToStringCallback {
|
||||
(error: any, result?: RenderToStringResult): void;
|
||||
(error: any, result?: RenderResult): void;
|
||||
}
|
||||
|
||||
export interface RenderToStringResult {
|
||||
@@ -16,8 +16,10 @@ export interface RedirectResult {
|
||||
redirectUrl: string;
|
||||
}
|
||||
|
||||
export type RenderResult = RenderToStringResult | RedirectResult;
|
||||
|
||||
export interface BootFunc {
|
||||
(params: BootFuncParams): Promise<RenderToStringResult>;
|
||||
(params: BootFuncParams): Promise<RenderResult>;
|
||||
}
|
||||
|
||||
export interface BootFuncParams {
|
||||
|
||||
@@ -1,4 +1,2 @@
|
||||
import { RenderToStringResult, RedirectResult } from './PrerenderingInterfaces';
|
||||
export * from './Prerendering';
|
||||
|
||||
export type RenderResult = RenderToStringResult | RedirectResult;
|
||||
export * from './PrerenderingInterfaces';
|
||||
|
||||
Reference in New Issue
Block a user