diff --git a/src/index.d.ts b/src/index.d.ts index c6fd8b0..3d4bcfa 100644 --- a/src/index.d.ts +++ b/src/index.d.ts @@ -334,13 +334,13 @@ interface ProducerImpl { */ observe( selector: (state: State) => T, - observer: (item: Values, index: Keys) => (() => void) | void, + observer: (item: NonNullable>, index: Keys) => (() => void) | void, ): () => void; observe( selector: (state: State) => T, - discriminator: ((item: Values, index: Keys) => defined) | undefined, - observer: (item: Values, index: Keys) => (() => void) | void, + discriminator: ((item: NonNullable>, index: Keys) => defined) | undefined, + observer: (item: NonNullable>, index: Keys) => (() => void) | void, ): () => void; /**