Comments (2)
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.
👍
from putio-js.
Related Issues (9)
- upload method doesn't work without filename parameter HOT 5
- Not a constructor error with ES6 Module import HOT 3
- Files.Upload with magnet file always results in 401 HOT 2
- Not matching current API spec
- Add Filter by file type HOT 2
- typescript compiler error HOT 1
- PutioAPI.Files.Upload 401 but PutioAPI.Account.Info() works HOT 2
- Upload Method HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from putio-js.