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