Filters Update
Features
- Filters:
- Filters are a new complex feature, that corresponds to Custom Filters
- They can be used inside any request method, by providing a
filter
property as an option. Thefilter
property can be aFilter
object or a string (Filter.filter
/'default'
/'withbody'
/'none'
/'total'
) - More documentation and examples can be found on the wiki: Filters
- New methods on the
StackExchange
class:createFilter()
decodeFilters()
- Made all methods on the
StackExchange
class filterable
- Post:
- Added a
Post
class, corresponding to Type post - New methods on the
StackExchange
class:getPosts()
getPostsByIds()
- Added a
Bug Fixes
- Fixed issue badge and CircleCI status badge in README.md
Refactoring
- All class properties are now required, because they are set to
null
if missing - All interface properties are now optional, because they can be filtered out from requests
- Made all properties of result-types interfaces
readonly
- Enabled
strict
and other stricter compiler options in tsconfig.json
Dependencies
- Updated to TypeScript Version 3.7.2
- Updated Dependencies
Documentation
- Added documentation for classes