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>; |