fix: change <unknown> generic to using <State> (#7)

This commit is contained in:
duck.__index 2024-06-13 03:49:45 -07:00 • committed by GitHub
parent 5b6431ac62
commit 8a35fce65d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

2
src/index.d.ts vendored
View file

@ -127,7 +127,7 @@ declare namespace Charm {
*
* @param atom The atom to notify.
*/
function notify(atom: Atom<unknown>): void;
function notify<State>(atom: Atom<State>): void;
/**
* Creates an instance of `factory` for each item in the atom's state, and