Skip to content

Commit 3f6b714

Browse files
committed
Update AppOptions to include script* attributes referenced by AppForServer
1 parent bcdbeac commit 3f6b714

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

src/App.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,11 @@ export function createAppPage(derby): typeof Page {
3939

4040
export interface AppOptions {
4141
appMetadata?: Record<string, string>,
42-
scriptHash?: string,
42+
scriptBaseUrl?: string,
43+
scriptCrossOrigin?: boolean,
44+
scriptHash?: string;
45+
scriptMapBaseUrl?: string,
46+
[key: string]: unknown,
4347
}
4448

4549
type OnRouteCallback = (this: Page, page: Page, model: Model, params: PageParams, done?: () => void) => void;

src/AppForServer.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
import * as racer from 'racer';
1010

11-
import { App } from './App';
11+
import { App, AppOptions } from './App';
1212
import { type Derby } from './Derby';
1313
import { type StyleCompilerOptions } from './files';
1414
import { PageForServer } from './PageForServer';
@@ -79,7 +79,7 @@ export class AppForServer extends App {
7979
watchFiles: boolean;
8080
router: any;
8181

82-
constructor(derby: Derby, name: string, filename: string, options) {
82+
constructor(derby: Derby, name: string, filename: string, options?: AppOptions) {
8383
super(derby, name, filename, options);
8484
this._init(options);
8585
}

0 commit comments

Comments
 (0)