@sanity/desk-tool
Version:
Tool for managing all sorts of content in a structured manner
10 lines • 640 B
TypeScript
import { Observable } from 'rxjs';
import { PaneNode, RouterPaneSiblingContext, UnresolvedPaneNode } from '../types';
/**
* The signature of the function used to take an `UnresolvedPaneNode` and turn
* it into an `Observable<PaneNode>`.
*/
export declare type PaneResolver = (unresolvedPane: UnresolvedPaneNode | undefined, context: RouterPaneSiblingContext, flatIndex: number) => Observable<PaneNode>;
export declare type PaneResolverMiddleware = (paneResolveFn: PaneResolver) => PaneResolver;
export declare function createPaneResolver(middleware: PaneResolverMiddleware): PaneResolver;
//# sourceMappingURL=createPaneResolver.d.ts.map