UNPKG

@enonic/mock-xp

Version:

Mock Enonic XP API JavaScript Library

11 lines (10 loc) 358 B
import type { Context as ContextInterface, ContextParams } from '@enonic-types/lib-context'; import { Server } from '../implementation/Server'; export declare class LibContext { readonly server: Server; constructor({ server }: { server: Server; }); get(): ContextInterface; run<T>(context: ContextParams, callback: () => T): T; }