UNPKG

ts-mls

Version:

[![CI](https://github.com/LukaJCB/ts-mls/actions/workflows/ci.yml/badge.svg)](https://github.com/LukaJCB/ts-mls/actions/workflows/ci.yml) [![npm version](https://badge.fury.io/js/ts-mls.svg)](https://badge.fury.io/js/ts-mls) [![Coverage Status](https://co

5 lines (4 loc) 281 B
import { Decoder } from "./tlsDecoder.js"; import { BufferEncoder } from "./tlsEncoder.js"; export declare function optionalEncoder<T>(encodeT: BufferEncoder<T>): BufferEncoder<T | undefined>; export declare function decodeOptional<T>(decodeT: Decoder<T>): Decoder<T | undefined>;