property GrpcServiceDefinition.method

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.

Type

Readonly<Record<string, TMethod>>

Usage

import { type GrpcServiceDefinition } from "common/src/index.ts";