All files Decoder.ts

100% Statements 4/4
100% Branches 0/0
100% Functions 2/2
100% Lines 4/4
1 2 3 4 5 6 7 8 9 10 11      2x 2x 1x   2x      
import { NonEmptyArray } from 'fp-ts/lib/NonEmptyArray';
import { Validation } from 'fp-ts/lib/Validation';
 
export default class Decoder<a> {
  public run(value: unknown): Decoded<a> {
    throw new Error('This method has to be implemented');
  }
}
 
export type Decoded<a> = Validation<NonEmptyArray<string>, a>;