From 54ca869ee0441983ea21d23b1a33e484b62542b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20Jano=C4=8Dko?= Date: Sat, 8 May 2021 14:42:29 -0500 Subject: [PATCH] =?UTF-8?q?=F0=9F=A9=B9=20Fix=20Output=20type?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/index.ts b/src/index.ts index 73df866..98d23dd 100644 --- a/src/index.ts +++ b/src/index.ts @@ -9,7 +9,7 @@ export interface Decoder { readonly andThen: (transformer: (data: D) => T) => Decoder } -export type Output> = ReturnType +export type Output> = ReturnType export const createDecoder = (decoder: Decode): Decoder => ({ ...decoder, @@ -100,7 +100,7 @@ export const literal = (literal: D): Decode checkDefined(data) if (data !== literal) { throw new DecoderError( - `Data does not match the literal. Expected: '${literal as string}', actual: '${show(data)}'` + `Data does not match the literal. Expected: '${literal as string}', actual: '${show(data)}'` ) } return data as D