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

Type Error on ContactsMock #24

Open
asofyan opened this issue Jul 12, 2018 · 1 comment
Open

Type Error on ContactsMock #24

asofyan opened this issue Jul 12, 2018 · 1 comment

Comments

@asofyan
Copy link

asofyan commented Jul 12, 2018

Typescript Error Class 'ContactsMock' incorrectly extends base class 'Contacts'. Types of property 'find' are incompatible. Type '(fields: ContactFieldType[], options?: IContactFindOptions) => Promise<any[]>' is not assignable to type '(fields: ContactFieldType[], options?: IContactFindOptions) => Promise<Contact[]>'. Types of parameters 'fields' and 'fields' are incompatible. Type 'ContactFieldType[]' is not assignable to type 'ContactFieldType[]'. Two different types with this name exist, but they are unrelated. Type 'ContactFieldType' is not assignable to type 'ContactFieldType'. Two different types with this name exist, but they are unrelated. Type '"name.familyName"' is not assignable to type 'ContactFieldType'.

I am using latest @ionic-native/contacts module. Here is my environment:

  • Ionic Framework: 3.9.2
  • Ionic App Scripts: 3.1.8
  • Angular Core: 5.2.9
  • Angular Compiler CLI: 5.2.9
  • Node: 9.8.0
@chrisgriffith
Copy link
Owner

Thanks. I will take a look.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants