UNPKG

piral-core

Version:

The core library for creating a Piral instance.

6 lines (5 loc) 505 B
import { PageRegistration, ExtensionRegistration, GlobalStateContext } from '../types'; export declare function registerPage(ctx: GlobalStateContext, name: string, value: PageRegistration): void; export declare function unregisterPage(ctx: GlobalStateContext, name: string): void; export declare function registerExtension(ctx: GlobalStateContext, name: string, value: ExtensionRegistration): void; export declare function unregisterExtension(ctx: GlobalStateContext, name: string, reference: any): void;