Setu-TS
    Preparing search index...

    Interface GrpcServiceDefinition<TMethod>

    A gRPC service definition that satisfies the plugin's expectations. This is a structural constraint satisfied by generated descriptor objects from @bufbuild/protobuf. It contains only the fields the plugin needs to route requests and build reflection data.

    0.3.0

    interface GrpcServiceDefinition<TMethod = unknown> {
        method: Readonly<Record<string, TMethod>>;
        typeName: string;
    }

    Type Parameters

    • TMethod = unknown
    Index
    method: Readonly<Record<string, TMethod>>

    Methods keyed by their camelCase local name.

    This is deliberately method (singular), matching the record a Protobuf-ES DescService exposes alongside its methods ARRAY. The array form is not assignable to Record<string, TMethod>, so constraining on methods would reject every real generated descriptor and force callers into a cast — the opposite of what this structural constraint exists for.

    typeName: string

    The fully qualified name of the service, e.g. "package.ServiceName".