From 7460c2ffaffe202e44e698c1613ebbf214b1b0ce Mon Sep 17 00:00:00 2001 From: Matt Pocock Date: Sun, 19 Feb 2023 21:13:02 +0000 Subject: [PATCH] Bugfix --- CHANGELOG.md | 6 ++++++ package.json | 2 +- src/entrypoints/array-includes.d.ts | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b985645..77ca869 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ # @total-typescript/ts-reset +## 0.3.1 + +### Patch Changes + +- Fixed a bug where Array.includes was returning a predicate, which gave false positives. + ## 0.3.0 ### Minor Changes diff --git a/package.json b/package.json index b2729fc..b3e1403 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@total-typescript/ts-reset", - "version": "0.3.0", + "version": "0.3.1", "description": "A CSS reset for TypeScript, improving types for common JavaScript API's", "private": false, "repository": "https://github.com/total-typescript/ts-reset", diff --git a/src/entrypoints/array-includes.d.ts b/src/entrypoints/array-includes.d.ts index 03a456a..f50b61f 100644 --- a/src/entrypoints/array-includes.d.ts +++ b/src/entrypoints/array-includes.d.ts @@ -11,5 +11,5 @@ interface Array { includes( searchElement: T | (TSReset.WidenLiteral & {}), fromIndex?: number, - ): searchElement is T; + ): boolean; }