oak-domain/lib/types/Context.d.ts

8 lines
229 B
TypeScript

export interface Context {
getCurrentTxnId(): string | undefined;
getCurrentUserId(allowUnloggedIn?: boolean): string | undefined;
isRoot(): boolean;
allowUserUpdate(): boolean;
toString(): Promise<string>;
}