Skip to content

Commit 7460c2f

Browse files
committed
Bugfix
1 parent 2adc749 commit 7460c2f

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# @total-typescript/ts-reset
22

3+
## 0.3.1
4+
5+
### Patch Changes
6+
7+
- Fixed a bug where Array.includes was returning a predicate, which gave false positives.
8+
39
## 0.3.0
410

511
### Minor Changes

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@total-typescript/ts-reset",
3-
"version": "0.3.0",
3+
"version": "0.3.1",
44
"description": "A CSS reset for TypeScript, improving types for common JavaScript API's",
55
"private": false,
66
"repository": "https://github.com/total-typescript/ts-reset",

src/entrypoints/array-includes.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@ interface Array<T> {
1111
includes(
1212
searchElement: T | (TSReset.WidenLiteral<T> & {}),
1313
fromIndex?: number,
14-
): searchElement is T;
14+
): boolean;
1515
}

0 commit comments

Comments
 (0)