UNPKG

560 BTypeScriptView Raw
1import { LocationConfig } from '../common/coreservices';
2import { noop } from '../common/common';
3/** A `LocationConfig` mock that gets/sets all config from an in-memory object */
4export declare class MemoryLocationConfig implements LocationConfig {
5 dispose: typeof noop;
6 _baseHref: string;
7 _port: number;
8 _protocol: string;
9 _host: string;
10 _hashPrefix: string;
11 port: () => number;
12 protocol: () => string;
13 host: () => string;
14 baseHref: () => string;
15 html5Mode: () => boolean;
16 hashPrefix: (newval?: any) => any;
17}