@sanity/default-layout
Version:
The default layout components for Sanity
29 lines • 824 B
TypeScript
import { Observable } from 'rxjs';
interface SnapshotStateEvent {
type: 'snapshot';
intent: {
name: string;
params: {
[key: string]: string;
};
};
isNotFound: boolean;
state: Record<string, unknown>;
}
interface StateChangeEvent {
type: 'change';
state: Record<string, unknown>;
isNotFound: boolean;
}
interface ErrorStateEvent {
type: 'error';
error: Error;
}
declare type StateEvent = SnapshotStateEvent | ErrorStateEvent | StateChangeEvent;
export declare function navigate(newUrl: string, options: {
replace: boolean;
}): void;
export declare const state: Observable<StateEvent>;
export declare function isStateUpdateEvent(event: StateEvent): event is SnapshotStateEvent | StateChangeEvent;
export {};
//# sourceMappingURL=urlState.d.ts.map