diff --git a/src/index.ts b/src/index.ts index f61139a..46bbbe6 100644 --- a/src/index.ts +++ b/src/index.ts @@ -66,7 +66,7 @@ export class DecoderError extends SyntaxError { } } -const forceDecodeWithPath = (decoder: Decoder, data: unknown, pathPart: string): T => { +export const forceDecodeWithPath = (decoder: Decoder, data: unknown, pathPart: string): T => { try { return decoder.forceDecode(data) } catch (e) {