Skip to content
This repository has been archived by the owner on Sep 30, 2024. It is now read-only.

Commit

Permalink
fix(isprimitivevaluetype): cd '/Users/aloysberger/FOSS/data'
Browse files Browse the repository at this point in the history
node 'node_modules/.bin/jest' '/Users/aloysberger/FOSS/data/test/model/create.test.ts' -c
'/Users/aloysberger/FOSS/data/test/jest.config.ts' -t 'supports nested nullable object' --runInBand

re mswjs#203
  • Loading branch information
Aloys Berger committed May 22, 2022
1 parent 9f9c1a6 commit 6d19c2c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/utils/isModelValueType.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,9 @@ function isPrimitiveValueType(value: any): value is PrimitiveValueType {
}

export function isModelValueType(value: any): value is ModelValueType {
return isPrimitiveValueType(value) || Array.isArray(value)
return (
isPrimitiveValueType(value) ||
Array.isArray(value) ||
typeof value === 'object'
)
}

0 comments on commit 6d19c2c

Please sign in to comment.