Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error with typescript - bad types #154

Closed
jasir opened this issue Apr 20, 2020 · 1 comment
Closed

Error with typescript - bad types #154

jasir opened this issue Apr 20, 2020 · 1 comment
Labels
bug Something isn't working

Comments

@jasir
Copy link

jasir commented Apr 20, 2020

Error:(245, 3) TS2416: Property 'toJSON' in type 'Document' is not assignable to the same property in base type 'Collection'.
  Type '(arg?: string | undefined, onAnchor?: ((value: any, count: number) => void) | undefined) => any' is not assignable to type '(arg?: any, ctx?: NodeToJsonContext | undefined) => any'.
    Types of parameters 'onAnchor' and 'ctx' are incompatible.
      Type 'NodeToJsonContext | undefined' is not assignable to type '((value: any, count: number) => void) | undefined'.
        Type 'NodeToJsonContext' is not assignable to type '(value: any, count: number) => void'.
          Type 'NodeToJsonContext' provides no match for the signature '(value: any, count: number): void'.
@eemeli eemeli added the bug Something isn't working label Apr 20, 2020
@eemeli eemeli closed this as completed in 31c3b32 Apr 20, 2020
@eemeli
Copy link
Owner

eemeli commented Apr 20, 2020

This is fixed in patch release 1.9.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants