Skip to content

Commit 3789fe6

Browse files
committed
adding dhi
1 parent 0dec170 commit 3789fe6

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

cases/dhi.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
import { z } from 'dhi/schema';
22
import { createCase } from '../benchmarks';
33

4+
// Note: dhi doesn't support .strict() or .passthrough() yet
5+
// All cases use the same validation (which is the default behavior)
6+
47
createCase('dhi', 'parseSafe', () => {
58
const dataType = z.object({
69
number: z.number(),
@@ -58,7 +61,6 @@ createCase('dhi', 'assertLoose', () => {
5861

5962
return data => {
6063
dataType.parse(data);
61-
6264
return true;
6365
};
6466
});
@@ -80,7 +82,6 @@ createCase('dhi', 'assertStrict', () => {
8082

8183
return data => {
8284
dataType.parse(data);
83-
8485
return true;
8586
};
8687
});

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@
5959
"computed-types": "1.11.2",
6060
"csv-stringify": "6.6.0",
6161
"decoders": "1.25.5",
62+
"dhi": "0.3.0",
6263
"fp-ts": "2.16.11",
6364
"io-ts": "2.2.22",
6465
"jet-schema": "1.4.3",

0 commit comments

Comments
 (0)