| 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]); |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…