@foxpage/foxpage-types
Version:
foxpage sdk types
31 lines (30 loc) • 831 B
TypeScript
import { SSRConfig } from '../ssr';
import { ApplicationResource } from './resource';
import { FoxRoute } from './route';
import { SecurityConfig } from './security';
export interface AppConfig {
'schedule.enable'?: boolean;
'schedule.interval'?: number;
package?: {
loadStrategy?: 'all' | 'loadOnIgnite';
version?: string;
};
plugins?: string[];
virtualPath?: string;
debugger?: {
enable?: boolean;
host?: string;
url?: string | ((req: any) => string);
};
visualEditor?: {
enable?: boolean;
host?: string;
url?: string | ((req: any) => string);
};
ssr?: SSRConfig;
locale?: string;
routes?: FoxRoute[];
security?: SecurityConfig;
resources?: AppResource[];
}
export type AppResource = ApplicationResource;