Skip to content

Commit 0b4393b

Browse files
committed
test: fix type test
1 parent 194ac43 commit 0b4393b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/util.test.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ describe('function createDataType', () => {
225225
}
226226
)
227227
expectTypeOf(dataType).toEqualTypeOf<{
228-
is:(value: unknown, path: Path) => value is string
228+
is:(value: unknown, path: Path) => boolean
229229
Component: ComponentType<DataItemProps<string>>
230230
}>()
231231
expectTypeOf(dataType.is).returns.toBeBoolean()
@@ -248,7 +248,7 @@ describe('function createDataType', () => {
248248
}
249249
)
250250
expectTypeOf(dataType).toEqualTypeOf<{
251-
is:(value: unknown, path: Path) => value is string
251+
is:(value: unknown, path: Path) => boolean
252252
Component: ComponentType<DataItemProps<string>>
253253
Editor: ComponentType<DataItemProps<string>>
254254
}>()
@@ -278,7 +278,7 @@ describe('function createDataType', () => {
278278
}
279279
)
280280
expectTypeOf(dataType).toEqualTypeOf<{
281-
is:(value: unknown, path: Path) => value is string
281+
is:(value: unknown, path: Path) => boolean
282282
Component: ComponentType<DataItemProps<string>>
283283
PreComponent: ComponentType<DataItemProps<string>>
284284
PostComponent: ComponentType<DataItemProps<string>>
@@ -314,7 +314,7 @@ describe('function createDataType', () => {
314314
}
315315
)
316316
expectTypeOf(dataType).toEqualTypeOf<{
317-
is:(value: unknown, path: Path) => value is string
317+
is:(value: unknown, path: Path) => boolean
318318
Component: ComponentType<DataItemProps<string>>
319319
Editor: ComponentType<DataItemProps<string>>
320320
PreComponent: ComponentType<DataItemProps<string>>

0 commit comments

Comments
 (0)