Skip to content

Commit

Permalink
Ref: naming.
Browse files Browse the repository at this point in the history
  • Loading branch information
RobinTail committed Apr 1, 2024
1 parent 7f78950 commit af3aa08
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/documentation-helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import {
both,
complement,
concat,
type as detectType,
filter,
fromPairs,
has,
Expand All @@ -33,7 +34,6 @@ import {
range,
reject,
toLower,
type,
union,
when,
xprod,
Expand Down Expand Up @@ -264,7 +264,7 @@ export const depictNullable: Depicter<z.ZodNullable<z.ZodTypeAny>> = ({
* @link https://github.com/ramda/types/pull/116/files
* */
const getSupportedType = (value: unknown): SchemaObjectType | undefined => {
const detected = toLower(type(value)); // toLower is typed well unlike .toLowerCase()
const detected = toLower(detectType(value)); // toLower is typed well unlike .toLowerCase()
const isUnsupported =
detected === "symbol" ||
detected === "undefined" ||
Expand Down

0 comments on commit af3aa08

Please sign in to comment.