From a009d89f6f7c72f1c50f19de539c85258d92dd21 Mon Sep 17 00:00:00 2001 From: gvergnaud Date: Sat, 14 Dec 2024 19:14:28 -0500 Subject: [PATCH] feat(P.Pattern): support no type param --- src/types/Pattern.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/types/Pattern.ts b/src/types/Pattern.ts index 47e124d3..6fecf1fa 100644 --- a/src/types/Pattern.ts +++ b/src/types/Pattern.ts @@ -145,7 +145,9 @@ export type UnknownPattern = * @example * const pattern: P.Pattern = { name: P.stringĀ } */ -export type Pattern = unknown extends a ? UnknownPattern : KnownPattern; +export type Pattern = unknown extends a + ? UnknownPattern + : KnownPattern; type KnownPattern = KnownPatternInternal;