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
+12
View File
@@ -0,0 +1,12 @@
import { Message } from "./message.js";
import type { PlainMessage } from "./message.js";
/**
* toPlainMessage returns a new object by stripping
* all methods from a message, leaving only fields and
* oneof groups. It is recursive, meaning it applies this
* same logic to all nested message fields as well.
*
* If the argument is already a plain message, it is
* returned as-is.
*/
export declare function toPlainMessage<T extends Message<T>>(message: T | PlainMessage<T>): PlainMessage<T>;