@mikuroxina/mini-fn
    Preparing search index...

    Interface Model<T>

    A combinator to model business data type.

    interface Model<T> {
        clone: (value: T) => T;
        decoder: Decoder<T>;
        encoder: Encoder<T>;
        validate: (value: unknown) => value is T;
    }

    Type Parameters

    • T
    Index

    Properties

    clone: (value: T) => T
    decoder: Decoder<T>
    encoder: Encoder<T>
    validate: (value: unknown) => value is T