Erster Commit

This commit is contained in:
2026-08-22 08:40:29 +02:00
commit 875477d425
1961 changed files with 930336 additions and 0 deletions
+24
View File
@@ -0,0 +1,24 @@
import type { FieldInfo } from "./field.js";
import type { AnyMessage, Message } from "./message.js";
import type { MessageType } from "./message-type.js";
import type { ProtoRuntime } from "./private/proto-runtime.js";
export interface Extension<E extends Message<E> = AnyMessage, V = unknown> {
/**
* The fully qualified name of the extension.
*/
readonly typeName: string;
/**
* The message extended by this extension.
*/
readonly extendee: MessageType<E>;
/**
* Field information for this extension. Note that required fields, maps,
* oneof are not allowed in extensions. Behavior of "localName" property is
* undefined and must not be relied upon.
*/
readonly field: FieldInfo;
/**
* Provides serialization and other functionality.
*/
readonly runtime: ProtoRuntime;
}