Beignet API reference
    Preparing search index...

    Type Alias CreateContractOptions<TMethod, TPath>

    Options for creating one contract with createContract(...).

    type CreateContractOptions<
        TMethod extends HttpMethod = HttpMethod,
        TPath extends string = string,
    > = {
        method: TMethod;
        name?: string;
        path: TPath;
    }

    Type Parameters

    Index

    Properties

    Properties

    method: TMethod

    HTTP method (GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS)

    name?: string

    Optional contract name (auto-generated from method + path if not provided)

    path: TPath

    URL path template (e.g., "/api/users/:id")