Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion src/App.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,11 @@ export function createAppPage(derby): typeof Page {

export interface AppOptions {
appMetadata?: Record<string, string>,
scriptHash?: string,
scriptBaseUrl?: string,
scriptCrossOrigin?: boolean,
scriptHash?: string;
scriptMapBaseUrl?: string,
[key: string]: unknown,
}

type OnRouteCallback = (this: Page, page: Page, model: Model, params: PageParams, done?: () => void) => void;
Expand Down
4 changes: 2 additions & 2 deletions src/AppForServer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

import * as racer from 'racer';

import { App } from './App';
import { App, AppOptions } from './App';
import { type Derby } from './Derby';
import { type StyleCompilerOptions } from './files';
import { PageForServer } from './PageForServer';
Expand Down Expand Up @@ -79,7 +79,7 @@ export class AppForServer extends App {
watchFiles: boolean;
router: any;

constructor(derby: Derby, name: string, filename: string, options) {
constructor(derby: Derby, name: string, filename: string, options?: AppOptions) {
super(derby, name, filename, options);
this._init(options);
}
Expand Down
Loading