Correctly type api.query.*.* (#1406)

* v1, very wip

* Refactor file arch

* Clean some code

* Make it work for all methods

* Have correct typings!

* Add similar types

* Fix missing imports

* Move function order

* Put any for now

* Make api.queryMulti work

* Add override check

* Fix typings to make it better

* Uncomment code

* Fix lint

* Fix lint

* Put checkTypes into correct place in file

* Spaces...

* Add multi test

* Use interface instead of type alias

* Add comment

* Fix indentation

* Ignore query.types.ts
This commit is contained in:
Amaury Martiny
2019-09-23 16:46:35 +02:00
committed by GitHub
parent 84b9b8dc09
commit 00d86011a7
45 changed files with 1361 additions and 797 deletions
+1
View File
@@ -4,5 +4,6 @@ exclude_patterns:
- "**/*.test.js"
- "**/*.test.ts"
- "docs/**/*.js"
- "packages/api/src/query.types.ts"
- "packages/types/src/interfaces/"
- "packages/types/src/scripts/"