MCPcopy
hub / github.com/stampit-org/stampit / Initializer

Interface Initializer

stampit.ts:61–63  ·  view source on GitHub ↗

* A function used as an `.init()` / `.initializers()` argument. * @template I The instance type (`this` and the produced object). * @template O The options object this initializer reads (the factory's 1st arg). * Captured from the `initializers` so the produced factory's options type can be *

Source from the content-addressed store, hash-verified

59 * built from them.
60 */
61interface Initializer<I = any, O = any> {
62 (this: I, options: O, context: InitializerContext<I>): void | I;
63}
64
65/**
66 * An initializer as it is written *inside a descriptor literal*

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…