Skip to content
This repository was archived by the owner on May 26, 2023. It is now read-only.
This repository was archived by the owner on May 26, 2023. It is now read-only.

Property 'onNextChange' is missing in type #26

@lifeeric

Description

@lifeeric

I'm getting the below error don't know why and what's happening, how get over it? I'm using TS

/test/ac3-state-management-examples/apollo-local-state/src/tests/createMockReactiveVar.ts
TypeScript error in /test/ac3-state-management-examples/apollo-local-state/src/tests/createMockReactiveVar.ts(11,3):
Property 'onNextChange' is missing in type '(newValue?: T | undefined) => T' but required in type 'ReactiveVar<T>'.  TS2741

     9 |   let currentValue: T | undefined = defaultValue;
    10 | 
  > 11 |   return function mockReactiveVar (
       |   ^
    12 |     newValue?: T
    13 |   ) : T {
    14 |     if (newValue) {

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions