* [amap-js-api] update to v1.4.14
* Add definition for non npm package: amap-js-api-district-search
* Add type definition for non npm-package amap-js-api-line-search
* Add type definition of non npm package amap-js-api-arrival-range
* WIP updating oracledb typings to 3.1.2
* WIP
* SODA WIP
* .d.ts done. Needs tests writing
* Finished
* Added pool stats methods. Fixed bug with BindParameter being string or number
* Making _enableStats optional
* Allow parameters to be nulled
* Capitalise namespace
* Updated "delaunator" typings to version 3.0
* delaunator: fix wrong $ExpectType in test
* delaunator: export class -> export default class
* delaunator: handle both: UMD & ES module files.
* TypeScript >= 2.7 required
* flag 'esModuleInterop' in tsconfig required
* thanks @weswigham for the help
This PR makes suggestions a `ReadonlyArray`. This is a less strict requirement and should be a backwards-compatible change. The suggestions property is not modified in the component.
This change allows usage in components that themselves only have access to a `ReadonlyArray`.
in the source code, there are conditional checks for both of these props. mask is not required for this to work and if you don't pass a mask prop, the extracted argument of the onChangeText callback is not sent
* Overhauled the line-by-line package to be accurate.
The prior version of @types/line-by-line did not properly represent the
options used in creating a LineByLineReader and did not represent the
stream compatibility the package has. This overhauls the declaration
file to represent the package in both its use case of reading files and
readable streams, as well as supplying documentation as found on the
package's README.md.
* Overhauled the line-by-line package to be accurate
The prior version of @types/line-by-line did not properly represent the
options used in creating a LineByLineReader and did not represent the
stream compatibility the package has. This overhauls the declaration
file to represent the package in both its use case of reading files and
readable streams, as well as supplying documentation as found on the
package's README.md.
* Fixed code to conform to dtslint
* Fix a type overload
* Add matching test
* Re-enable underscore linter rules that weren't violated
* Add myself to the list of underscore contributors
* fix(pdfmake) style must be a string
* fix(pdfmake) content can be an array
* fix(pdfmake) add myself as author
* fix(pdfmake) use Array<> instead of []
Both `keyFromPrivate` and `keyFromPublic` work with Uint8Array. `keyFromPublic` accepts anything with a length and an indexer, though I'm not sure how to correctly setup the types for that. `keyFromPrivate` works with anything that `BN` works with as input, which includes `Uint8Array`s.
The only valid value for `enc` in `getPublic` and `getPrivate` is `hex`, so I narrowed the type on those to only support that instead of `string`.
The `compact` boolean on `getPublic` with an `enc` parameter set to anything other than `hex` will yield `[ this.getY().isEven() ? 0x02 : 0x03 ].concat(x)`. I chose the string 'array' as an opinion here so at least future readers of code written to use that overload of `getPublic` can have an idea of what they are getting out when they pass something besides `'hex'` in. (note: if nothing is a falsy value for `enc` is provided when `concat` is truthy, the function will behave the same as if no parameters were passed).
* feat(types): add sylvester-es6
* refactor(types): readonly array
* chore(tsconfig): strict function types
* refactor(types): type fixes
* refactor(types): use the old github project url
because seems like it is the one that it supports
* refactor(types): typo
* refactor(types): some more typos
* refactor(types): use a non-readonly array
as it turns out, the array does get modified in the code or when using it
* refactor(types): linting
* MINIFY
* MINIFY 2
* MINIFY 3
* MINIFY 4
* switch to unknown (-3500 types)
* Switch to built-in Omit
* Simplify differenceBy/differenceWith
I only changed the Imp/Exp overloads, because those are the ones that
create significant numbers of types.
The normal case is still fully typed, but when passing multiple
comparison arrays, they are all typed as `List<unknown>`, and the
iteratee is not checked for compatibility with their types.
You should never use multiple comparison arrays.
Brings type count down 18k, from 452k to 434k.
* Simplify fill
Again, only touches Imp/Exp.
The only semantic difference is that, for the uncommon case that you
fill an array of type T with elements of type U, the special-case for
filling the whole array is gone. You get Array<T | U> now, not Array<U>.
You should never change the type of an array with _.fill.
* Simplify union/intersection[By/With]
In the same way as difference.
Saves 15k, from 426k to 411k.
* Simplify pullAll/xor[By/With]
411k -> 408k
* Simplify zip[By/With]
408 -> 381k types
* each[Right] is a synonym for forEach[Right]
Doesn't make a significant difference in the number of types though.
* MINIFY 5
* Simplify List | NumericDictionary unions by removing List
They are almost the same type.
381k -> 380k
* Clean up function overloads
381k -> 328k
Still not enough for dtslint to succeed in 1.4 GB of memory. :(
* clean up lang.d.ts
* I don't even know what's happening.
Large swatchs of functions are disabled. The conversion of methods to
list-only seems to help, but I'm not sure this will hold for other
methods that apply to other types.
* fix type parameter name
* Reform array
Things are moving in the right direction!
2,351k types
* Better type parameters on Imp/Exp subtypes
2,329k types
* Actually correct base type parameters for ImpL/ExpL
* every/filter/find/findLast
2,037k types
* flatMap[Deep/Depth]
1,865k types
* forEach[Right], groupBy
1,822k types
* includes, keyBy, map
1,653k types
* fix wrapper constructors; add partition,orderBy
back up to 1,733k types :(
* Finish collection.d.ts
1,424k types
I'm not sure this thing is going to converge at a lower value than the
old code.
* Update ImpF interface and some of function.d.ts
1382k types
* clone, castArray to base, ImpU<T> is now generic
1,412k types, which moves backward a bit actually.
* Rest of lang.d.ts
1,378k types
* Finish math.d.ts
1337k types
* Restore commented-out functions
Still kind of broken though. More updates tomorrow.
* Fix definition of Imp/ExpO
* any out really big overload sets
down to 385k types
* Lots more fixed
272k types
* omit, pick[By], others
181k types
* Reenable some things, fix transforms types, fix values[In]
157k types
* Fix rest of errors
Doesn't fix $Expect assertions yet!
165k types
* Remove more this-types
94k types
* Remove rest of this types
Well, almost all. There are still a few ones that didn't save much or
any perf.
75k types
* Better backward compatibility
* Fix lots of lint
Lots of lint to go!
* Fix more lints
Still about 2500 to go!
* Fix ExpectType, part 1
13% done
* More fixes from ExpectType
33% done
* More fixes
41% done or so?
* Done up to curry
49%
* More expect rule fixes
71% done
* Done through mapValues
80% done
* Partly done pickyBy
82% done, almost
* Restore partial/partialRight
and get rid of rest of `this` parameters
* More fixes
87% done
* More test fixes
97% done
* Last round of test fixes
...Maybe. There are some weird failures on my laptop that don't match
what my language service is telling me.
* Final round of test fixes
Fixes Partial<T> from yesterday plus a couple that cropped up afterward.
* Get rid of bare Imp/Exp returns
Add ImpChain/ExpChain, but it's expensive so shouldn't be used much.
* Make object methods specific to object.
Saves about 8000 types.
* Start converting remain Exp uses
So far a few of them need to be ExpChain.
* Remove rest of Exp<T> returns
Not all are gone, but most are. A few explode performance, and a few
don't have a sensible replacement.
* Move changes into ts3.1 and revert to old top-level
* Rename to old names
* Fix test resolution
With absolute paths, module resolution picks up types/lodash/fp.d.ts
instead of types/lodash/ts3.1/fp.d.ts.
* Update fp.d.ts
* Add tslint and rename expectrule assertions
* Remove lowdb codegen
Use a worse type for `write` instead. It is not worth the complexity for a
rarely-used package, and the return type is rarely used, except to await
it.
* Remove list methods that should not be on ExpU
* Change names to match Lodash module names
* Update names in lowdb too
* Restore trivial jsdocs
Which is the majority of them.
I still need to restore
1. All the specific jsdocs on LodashStatic functions.
2. All the jsdocs in common.d.ts
3. All the jsdocs on various non-function properties in various files.
* Restore jsdoc to common.d.ts
* Restore head jsdocs
* Improve `any` handling and pop's type
The latter is a bit expensive but probably worth it?
* Update tests
* Add StringNullableChain and more ExpChain returns
* Update lowdb tests
They need a cast now that nullability is tracked correctly!
* First round of review changes
* Remove generate-lowdb, fix Object.iteratee type
* Update test assertion
* Update test again
Not sure why this didn't fail on the previous run
* Adding in Spell Checker Pro Plugin settings
* Adding in tests for Spell Checker Pro settings
* Missing whitespace & line length test failure fixes
* Adding own name to contributors
* Adding a number of missing tinymce functions
* Resolving lint issues with added functions
* Bumped ver to 10.0.1
nock.activeMocks() is missing => added function activeMocks(): string[]; to the nock namespace.
nock( 'https://api.github.com' , {"encodedQueryParams":true}) => added encodedQueryParams: boolean to the Options interface.
* Updated per previous comments
However, I don't know what this error is that is causing Travis CI to fail???
```
Error: ../node/v7/index.d.ts: Definitions must use global references to other packages, not parent ("../xxx") references.(Based on reference 'base.d.ts')
```
* Update tests for activeNocks
* Dedent/remove 'function' from activeMocks in Scope interface
* linter changes
* Added partial definition for React-Big-Scheduler
* Removed invalid package.json file
* Updated TS version to match React dependency
* Fixed errors from test