fix: change <unknown> generic to using <State>

This commit is contained in:
NormalDuck 2024-06-12 17:01:35 -07:00
parent 5b6431ac62
commit 70fd517fd7

2
src/index.d.ts vendored
View file

@ -127,7 +127,7 @@ declare namespace Charm {
* *
* @param atom The atom to notify. * @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 * Creates an instance of `factory` for each item in the atom's state, and