MCPcopy
hub / github.com/open-telemetry/opentelemetry-demo / create

Function create

src/frontend/protos/demo.ts:353–355  ·  view source on GitHub ↗
(base?: I)

Source from the content-addressed store, hash-verified

351 },
352
353 create<I extends Exact<DeepPartial<CartItem>, I>>(base?: I): CartItem {
354 return CartItem.fromPartial(base ?? ({} as any));
355 },
356 fromPartial<I extends Exact<DeepPartial<CartItem>, I>>(object: I): CartItem {
357 const message = createBaseCartItem();
358 message.productId = object.productId ?? "";

Callers

nothing calls this directly

Calls 1

fromPartialMethod · 0.80

Tested by

no test coverage detected