Debian Codegraph @

node/@bufbuild/protobuf/dist/esm/create.d.ts

raw
1 import { type DescMessage } from "./descriptors.js";
2 import type { MessageInitShape, MessageShape } from "./types.js";
3 /**
4 * Create a new message instance.
5 *
6 * The second argument is an optional initializer object, where all fields are
7 * optional.
8 */
9 export declare function create<Desc extends DescMessage>(schema: Desc, init?: MessageInitShape<Desc>): MessageShape<Desc>;