Skip to content

Commit

Permalink
feat: added helper type
Browse files Browse the repository at this point in the history
  • Loading branch information
mbret committed Nov 18, 2023
1 parent aa1a0ad commit 849e5f9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/lib/state/signal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,3 +73,5 @@ export function signal<T = undefined>(
subject
}
}

export type SignalValue<S extends Signal<any, any, any>> = ReturnType<S["getValue"]>

0 comments on commit 849e5f9

Please sign in to comment.