MCPcopy Create free account
hub / github.com/WinterTC55/iter-streams / constructor

Method constructor

samples/01-basic-creation.ts:187–187  ·  view source on GitHub ↗
(private data: object)

Source from the content-addressed store, hash-verified

185 // Define a class that implements the ToStreamable protocol
186 class JsonMessage {
187 constructor(private data: object) {}
188
189 // The protocol method - returns sync streamable yield
190 [Stream.toStreamable](): string {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected