MCPcopy
hub / github.com/miragejs/miragejs / FactoryDefinition

Interface FactoryDefinition

types/index.d.ts:179–183  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

177
178 // Captures the result of a `Factory.extend()` call
179 interface FactoryDefinition<Data extends {} = {}> {
180 extend<NewData>(
181 data: WithFactoryMethods<NewData>
182 ): FactoryDefinition<Assign<Data, FlattenFactoryMethods<NewData>>>;
183 }
184
185 type WithFactoryMethods<T> = {
186 [K in keyof T]: T[K] | ((n: number) => T[K]);

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…