Skip to content

Commit 107028b

Browse files
committed
Patch to repair the type inference of isExactly
1 parent cc256eb commit 107028b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "strontium",
3-
"version": "2.4.11",
3+
"version": "2.4.12",
44
"description": "Strontium is a TypeScript toolkit for High Performance API servers built for Production not Projects.",
55
"main": "lib/src/index.js",
66
"types": "lib/src/index.d.ts",

src/validation/drivers/validators/isExactly.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { ValidationError } from "../../../errors"
22

3-
export const isExactly = <V extends Array<O>, O>(values: V) => (
3+
export const isExactly = <O>(values: Array<O>) => (
44
i: unknown
55
): O => {
66
for (let value of values) {

0 commit comments

Comments
 (0)