Beignet API reference
    Preparing search index...

    Interface CreateUseCaseOptions<Ctx>

    Options for createUseCase(...).

    interface CreateUseCaseOptions<Ctx> {
        onRun?: (event: UseCaseRunEvent<Ctx>) => void;
        validate?: boolean | { input?: boolean; output?: boolean };
    }

    Type Parameters

    • Ctx
    Index

    Properties

    Properties

    onRun?: (event: UseCaseRunEvent<Ctx>) => void

    Optional instrumentation hook called on use case start, end, and error.

    validate?: boolean | { input?: boolean; output?: boolean }

    Enable or disable schema validation for use case boundaries.

    Defaults to validating both input and output. Pass false to opt out, or configure phases independently with { input: boolean, output: boolean }.