| 2 | import type { DerivedOptions } from './derived' |
| 3 | |
| 4 | interface EffectOptions |
| 5 | extends Omit< |
| 6 | DerivedOptions<unknown>, |
| 7 | 'onUpdate' | 'onSubscribe' | 'lazy' | 'fn' |
| 8 | > { |
| 9 | /** |
| 10 | * Should the effect trigger immediately? |
| 11 | * @default false |
| 12 | */ |
| 13 | eager?: boolean |
| 14 | fn: () => void |
| 15 | } |
| 16 | |
| 17 | export class Effect { |
| 18 | /** |
nothing calls this directly
no outgoing calls
no test coverage detected