diff --git a/src/documentation-helpers.ts b/src/documentation-helpers.ts index 8ebd8406c..0a0ea9840 100644 --- a/src/documentation-helpers.ts +++ b/src/documentation-helpers.ts @@ -18,6 +18,7 @@ import { both, complement, concat, + type as detectType, filter, fromPairs, has, @@ -33,7 +34,6 @@ import { range, reject, toLower, - type, union, when, xprod, @@ -264,7 +264,7 @@ export const depictNullable: Depicter> = ({ * @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" ||