Skip to content

type error #91

@makslevental

Description

@makslevental
max@max-Inspiron-5577:~/dev_projects/argon-app$ tns build android
Executing before-prepare hook from /home/max/dev_projects/argon-app/hooks/before-prepare/nativescript-dev-typescript.js
Found peer TypeScript 2.4.2
app/components/common/argon-vuforia-provider.ts(432,52): error TS2345: Argument of type 'Promise<string | undefined>' is not assignable to parameter of type 'Promise<string>'.
  Type 'string | undefined' is not assignable to type 'string'.
    Type 'undefined' is not assignable to type 'string'.

plugins/argon-web-view/argon-web-view-common.ts(7,23): error TS2420: Class 'ArgonWebView' incorrectly implements interface 'ArgonWebView'.
  Types of property 'on' are incompatible.
    Type '{ (eventNames: string, callback: (data: EventData) => void, thisArg?: any): any; (event: "loadFin...' is not assignable to type '{ (event: "session", callback: (args: SessionEventData) => void, thisArg?: any): any; (event: str...'.
      Types of parameters 'callback' and 'callback' are incompatible.
        Types of parameters 'args' and 'data' are incompatible.
          Type 'EventData' is not assignable to type 'SessionEventData'.
            Property 'session' is missing in type 'EventData'.

TypeScript compiler failed with exit code 1

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