fix(common): add PopStateEvent interface (#13400)
Closes #13378 PR Close #13400
This commit is contained in:

committed by
Miško Hevery

parent
f89d004c51
commit
fe441186e7
9
tools/public_api_guard/common/index.d.ts
vendored
9
tools/public_api_guard/common/index.d.ts
vendored
@ -74,7 +74,7 @@ export declare class Location {
|
||||
path(includeHash?: boolean): string;
|
||||
prepareExternalUrl(url: string): string;
|
||||
replaceState(path: string, query?: string): void;
|
||||
subscribe(onNext: (value: any) => void, onThrow?: (exception: any) => void, onReturn?: () => void): Object;
|
||||
subscribe(onNext: (value: PopStateEvent) => void, onThrow?: (exception: any) => void, onReturn?: () => void): Object;
|
||||
static joinWithSlash(start: string, end: string): string;
|
||||
static normalizeQueryParams(params: string): string;
|
||||
static stripTrailingSlash(url: string): string;
|
||||
@ -239,6 +239,13 @@ export declare abstract class PlatformLocation {
|
||||
abstract replaceState(state: any, title: string, url: string): void;
|
||||
}
|
||||
|
||||
/** @experimental */
|
||||
export interface PopStateEvent {
|
||||
pop?: boolean;
|
||||
type?: string;
|
||||
url?: string;
|
||||
}
|
||||
|
||||
/** @stable */
|
||||
export declare class SlicePipe implements PipeTransform {
|
||||
transform(value: any, start: number, end?: number): any;
|
||||
|
Reference in New Issue
Block a user