mirror of
https://github.com/littensy/charm.git
synced 2026-10-20 17:51:37 +00:00
fix: change <unknown> generic to using <State> (#7)
This commit is contained in:
parent
5b6431ac62
commit
8a35fce65d
1 changed files with 1 additions and 1 deletions
2
src/index.d.ts
vendored
2
src/index.d.ts
vendored
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue