-
Notifications
You must be signed in to change notification settings - Fork 17
Add typescript support for Index and Collection controllers #531
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
Conversation
Codecov Report
@@ Coverage Diff @@
## 7-dev #531 +/- ##
==========================================
- Coverage 89.68% 88.50% -1.18%
==========================================
Files 32 32
Lines 1406 1427 +21
Branches 225 242 +17
==========================================
+ Hits 1261 1263 +2
- Misses 99 117 +18
- Partials 46 47 +1
Continue to review full report at Codecov.
|
src/utils/interfaces.ts
Outdated
* | ||
* @see https://docs.kuzzle.io/core/2/guides/essentials/database-mappings/#dynamic-mapping-policy | ||
*/ | ||
dynamic?: 'true' | 'false' | 'strict' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As per kuzzleio/kuzzle#1745, shouldn't we also accept boolean values?
Co-authored-by: Sébastien Cottinet <scottinet@protonmail.com>
…kuzzleio/sdk-javascript into add-typescript-support-index-collection
Co-authored-by: Sébastien Cottinet <scottinet@protonmail.com>
## Usage | ||
|
||
:::: tabs | ||
::: tab yourTabName |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
does this really render to yourTabName
and anotherTab
, or is this just a copy-paste error?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It was an experiment to include TS snippet but it will be done later since it's a lot of work
(removed)
…kuzzleio/sdk-javascript into add-typescript-support-index-collection
# [7.4.0](https://github.com/kuzzleio/sdk-javascript/releases/tag/7.4.0) (2020-08-18) #### New features - [ [#542](#542) ] Finalize typescript support ([Aschen](https://github.com/Aschen)) - [ [#529](#529) ] Add typescript support for protocols ([Aschen](https://github.com/Aschen)) #### Enhancements - [ [#541](#541) ] Add meaningful stacktrace ([Aschen](https://github.com/Aschen)) - [ [#537](#537) ] Add typescript support realtime ([Aschen](https://github.com/Aschen)) - [ [#531](#531) ] Add typescript support for Index and Collection controllers ([Aschen](https://github.com/Aschen)) - [ [#530](#530) ] Add typescript support for search results ([Aschen](https://github.com/Aschen)) - [ [#523](#523) ] Add support for the collection:delete API action ([morgandruesne](https://github.com/morgandruesne)) ---
What does this PR do?
Add typescript support for Index and Collection controllers
Other changes
collection:update
andcollection:create
methods (new syntax withmappings
andsettings
)undefined
instead of some useless{ acknowledged: true }
. Since this was undocumented it's not a breaking changeBoyscout