(s: Self)
| 477 | schema.pipe(S.withConstructorDefault(Effect.sync(() => new Set()))) |
| 478 | |
| 479 | export const withDefaultMake = <Self extends S.Top>(s: Self) => { |
| 480 | const a = Object.assign(S.decodeSync(s as any) as WithDefaults<Self>, s) |
| 481 | Object.setPrototypeOf(a, s) |
| 482 | return a |
| 483 | |
| 484 | // return s as Self & WithDefaults<Self> |
| 485 | } |
| 486 | |
| 487 | export type WithDefaults<Self extends S.Top> = ( |
| 488 | i: Self["Encoded"], |
no outgoing calls
no test coverage detected
searching dependent graphs…