Typescript@next is stricter about type parameters constrained to any;
they are default to unknown instead of any during inference for consistency with other
type parameters.
This means that the easiest workaround is to give a type parameter
constrained to `any` a default of `any` so that they once again
default to `any`.
That's what this PR does; it also has to give the subsequent type
parameter a default as well.
This is minor change:
- add missing `hasErrroLabel` method to the MongoError
- mark `create` static method as deprecated
- updates JSDoc for error classes to use 3.5 version
Thanks!
* Add type IdleState to chrome.idle
The chrome.idle API should use an IdleState type (https://developer.chrome.com/apps/idle) and like it's already used in chrome-apps (types/chrome-apps/index.d.ts).
* Remove trailing whitespace
* [@types/frida-gum]: update: make `Java.Wrapper` more generic
* [@types/frida-gum]: update: bump version
* [@types/frida-gum]: update: improved generic types
1. more generics, like `Java.cast`, `Java.Field`, etc.
2. `this` of `Java.MethodImplementation` is now strictly typed so it's no longer necessary to specify the generic type of implementations explicitly
3. rename `Properties` to `Members`
4. fix JSDoc of `Java.retain` and `Java.ClassFactory.retain`
* [@types/marked] adjust `marked` function return types and callback being optional
* [@types/marked] update marked.MarkedOptions.highlight to reflect possible callback return types
* [@types/marked] add a test for the fixed edge case
* [@types/marked] add overloads to `marked` type definition to indicate sync/async functionality & return types
* [@marked/marked] update `marked.MarkedOptions.highlight` description to indicate sync/async functionality and intended return types
* [@types/marked] fix failing tests -- combine two overloads of `marked` default export
* [@types/marked] fix failing tests -- don't try to use a `void` return type
* [@types/marked] add description to overload; remove `return` from descriptions for synchronous overloads
* fix(jsdoc-to-markdown): correct module definition and update to v5
- update module definition fixing errors like:
```bash
TSError: ⨯ Unable to compile TypeScript:
index.ts:3:10 - error TS2339: Property 'render' does not exist on type
'typeof import("../node_modules/@types/jsdoc-to-markdown/index")'.
3 jsdoc2md.render({ files: 'src/*.js' }).then(...)
```
After this change the module is exported as regular CommonJS module
- update version to v5
- create backward compatible v4
- rewrite tests to match CommonJS module exports
https://github.com/jsdoc2md/jsdoc-to-markdown/blob/master/docs/API.md#jsdoc-to-markdown
Thanks!
* Fix v4 module definition as per PR comment
- module exports correct also for v4
- tests corrected for v4
/cc @amcasey
* [cesium] add constructor definition for PropertyBag
* Cesium - add removeProperty to PropertyBag
* Add return type to removeProperty
* Make constructor value optional
* Don't make parameters on callback optional
* fix bugs with types
* fixed type errors
* more type errors fixed
* fixed errors and added missing type definitions
* fix all typos and added all missing ones
* change inappropriate names
* Updated names to be more accurate.
* adds EnumDWT_ConvertMode to make compatible with the old enum
* update to 14.2
* add v13
* delete v13 for test not pass
* remove base64
* fixed conflict
* add back GetLicenseInfo
* change header version to 14.2
* Added definitions for new APIs as well as APIs whose definitions were missing before. Also adding APIs for addons
* remove unused file
* adding types for barcode reader and changing the copyright year
* comment change, TS to 3.2.2
* adds more definitions to dwt barcode reader
* rollback
* update
* update index.d.ts
* Update Dynamsoft.d.ts
It's ok
* Update index.d.ts
1. update 2017 -> 2019
2. update parameters
* Update index.d.ts
rollback
* Update index.d.ts
rollback
* Update addon.pdf.ts
rollback
* Update index.d.ts
rollback
* Update index.d.ts
rollback
* Update index.d.ts
rollback
* Update index.d.ts
rollback
* Update index.d.ts
no changes but whites
* Update index.d.ts
TypeScript Version can be 3.2
2017 => 2019
* Update index.d.ts
rollback
* update
* Update index.d.ts
start new request
* Update index.d.ts
delete this file
* Update
delete this file
* a
a
* rollback
* update
* remove package.json
* add current version to v13
* 1) update to version 14.3.1
2) change index.d.ts declare Dynamsoft
* update comments
* remove WebTWAIN.d.ts
* change v13 tsconfig.json
* change to v14.3.1
* change to v14.3.1
* change to version 14.3
* change to version 14.3
* update
* update
* Update index.d.ts
* Update index.d.ts
* Update tsconfig.json
* Update tsconfig.json
* update
* update
* aa
* a
* a
* update
* remove dwt.d.ts
* remove v12
* update1
* update
* update
* a
* a
* a
* a
* a
* a
* a
* a
* d
* a
* a
* b
* d
* d
* d
* d
* d
* d
* d
* d
* d
* d
* d
* d
* d
* d
* d
* d
* d
* d
* d
* d
* d
* d
* d
* d
* d
* d
* d
* d
* d
* d
* d
* d
* change to v15
* add enums
* remove enums
* Updating to v15.0.2
* roll back to 1 previous version
* add back v15 APIs
* fix errors
* fix errors attempt 2
* update to 15.1
* upgrade to v15.2
add tag image
* fixed a few bugs
* fix grammar errors
* update a definition
* Fixed bug 'missing whitespace'
* update 15.3
* remove
remove
* remove blank line
remove blank line
Co-authored-by: Tom Kent <Tom-Dynamsoft@users.noreply.github.com>
Co-authored-by: Xiao Ling <lingxiao1002@gmail.com>
* [react-table]: V7 upgrade to support rc-16
Support the changes in
https://github.com/tannerlinsley/react-table/blob/master/CHANGELOG.md
Most of this in internal, by far the biggest user facing ripple is
flatColumns -> allColumns.
* add selectSubRows option
* remove column.show - no longer supported
* add className to TableCommonProps
* fix missing import, doh
* remove afters from ensurePluginOrder, it's effectively removed
* Update Hook definitions as well as address review comments
I've made a good effort to fix the types for the hooks, they look right,
but right now I have no code that uses them so they are at best
theoretical based on how they appear to be used in the code.
* add type definitions for https://www.npmjs.com/package/rtp-parser
* added test for payloadTypesHash
* make a generic version of the parseRtpPayloadType
* fixed some typos
* add test for generic number payload types
* use-generics-for-express-response-type: Use generics for Response in express
* use-generics-for-express-response-type: fixing ghost-storage-base-tests