Giter VIP home page Giter VIP logo

Comments (2)

cenkalti avatar cenkalti commented on September 24, 2024

These are the errors when strict flag is set to true:

src/client.ts:45:10 - error TS2564: Property 'token' has no initializer and is not definitely assigned in the constructor.

45   public token: string
            ~~~~~

src/client.ts:47:10 - error TS2564: Property 'emit' has no initializer and is not definitely assigned in the constructor.

47   public emit: (event: PutioAPIClientEventTypes, ...args: any[]) => void
            ~~~~

src/client.ts:48:10 - error TS2416: Property 'once' in type 'PutioAPIClient' is not assignable to the same property in base type 'Emitter'.
  Type '(event: PutioAPIClientEventTypes, listener: EventListener) => void' is not assignable to type 'EmitterMethod'.
    Types of parameters 'event' and 'type' are incompatible.
      Type 'string' is not assignable to type 'PutioAPIClientEventTypes'.

48   public once: (
            ~~~~

src/client.ts:48:10 - error TS2564: Property 'once' has no initializer and is not definitely assigned in the constructor.

48   public once: (
            ~~~~

src/client.ts:52:10 - error TS2416: Property 'on' in type 'PutioAPIClient' is not assignable to the same property in base type 'Emitter'.
  Type '(event: PutioAPIClientEventTypes, listener: EventListener) => void' is not assignable to type 'EmitterMethod'.
    Types of parameters 'event' and 'type' are incompatible.
      Type 'string' is not assignable to type 'PutioAPIClientEventTypes'.

52   public on: (event: PutioAPIClientEventTypes, listener: EventListener) => void
            ~~

src/client.ts:52:10 - error TS2564: Property 'on' has no initializer and is not definitely assigned in the constructor.

52   public on: (event: PutioAPIClientEventTypes, listener: EventListener) => void
            ~~

src/client.ts:53:10 - error TS2416: Property 'off' in type 'PutioAPIClient' is not assignable to the same property in base type 'Emitter'.
  Type '(event: PutioAPIClientEventTypes, listener: EventListener) => void' is not assignable to type 'EmitterMethod'.
    Types of parameters 'event' and 'type' are incompatible.
      Type 'string' is not assignable to type 'PutioAPIClientEventTypes'.

53   public off: (event: PutioAPIClientEventTypes, listener: EventListener) => void
            ~~~

src/client.ts:53:10 - error TS2564: Property 'off' has no initializer and is not definitely assigned in the constructor.

53   public off: (event: PutioAPIClientEventTypes, listener: EventListener) => void
            ~~~

src/client.ts:57:10 - error TS2564: Property 'Account' has no initializer and is not definitely assigned in the constructor.

57   public Account: Account
            ~~~~~~~

src/resources/Auth.ts:49:41 - error TS2532: Object is possibly 'undefined'.

49       `/oauth2/authorizations/clients/${app.client_id}?client_secret=${app.client_secret}`,
                                           ~~~

src/resources/Auth.ts:49:72 - error TS2532: Object is possibly 'undefined'.

49       `/oauth2/authorizations/clients/${app.client_id}?client_secret=${app.client_secret}`,
                                                                          ~~~

src/resources/Payment/Payment.ts:67:21 - error TS7006: Parameter 'args' implicitly has an 'any' type.

67   public ChangePlan(args) {
                       ~~~~

src/resources/Payment/Payment.ts:113:28 - error TS7006: Parameter 'data' implicitly has an 'any' type.

113   public AddWaitingPayment(data) {
                               ~~~~

src/utils/index.ts:8:44 - error TS2769: No overload matches this call.
  Overload 1 of 2, '(o: {}): string[]', gave the following error.
    Argument of type 'object | null' is not assignable to parameter of type '{}'.
      Type 'null' is not assignable to type '{}'.
  Overload 2 of 2, '(o: object): string[]', gave the following error.
    Argument of type 'object | null' is not assignable to parameter of type 'object'.
      Type 'null' is not assignable to type 'object'.

8   typeof input === 'object' && Object.keys(input).includes('error_type')
                                             ~~~~~



Found 14 errors.

from putio-js.

altaywtf avatar altaywtf commented on September 24, 2024

👍

from putio-js.

Related Issues (9)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.