mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
* Added forEach and changed signatures for existing T[] functions T becomes Immutable<T>, T[] becomes Immutable<T[]>. * Corrected whitespace * More whitespace.. * asMutable, concat, isImmutable signatures Expanded asMutable to have 3x options with the same signature, allowing correct typed result when possible. * Further improvements to concat * Further addition of Immutable<T> to concat * Fixing up errors from automated tests around complex Array types * Travis CI objected to default generic parameters being included - fixed * Edit as review feedback (TDeep) and corrected array indexer Changed TDepthBoolean to TDeep as suggested. Removed mutable indexer and added immutable accessor for ImmutableArray - note that adding this directly into * Reverting indexer changes that broke tslinting.. * Reverting indexer changes that broke tslinting... * Re-adding indexer tweaks Linter seems happy when not running Indexer through Readonly<T>. While I was at it, I removed the Readonly<T> from Additions and Overrides given that they are specified immediately below and are completely readonly.. * Corrected default asMutable, added some tests Responded to PR feedback about asMutable with no parameters. Added a few test cases for asMutable to ensure that cases have correct result type. Fixed an incorrect previous test. * Removing 'number' seems necessary as the result type differs * Updated tests to use $ExpectsError (or not) to check immutability of results * Update seamless-immutable-tests.ts Added additional test. Cleaned up some comments. |
||
|---|---|---|
| .. | ||
| index.d.ts | ||
| seamless-immutable-tests.ts | ||
| tsconfig.json | ||
| tslint.json | ||