/** * @since 0.4.5 */ import * as t from 'io-ts' /** * @since 0.4.5 */ export interface NonEmptyStringBrand { readonly NonEmptyString: unique symbol } /** * @since 0.4.5 */ export declare type NonEmptyString = t.Branded /** * @since 0.4.5 */ export interface NonEmptyStringC extends t.Type {} /** * A codec that succeeds if a string is not empty * * @example * import { NonEmptyString } from 'io-ts-types/lib/NonEmptyString' * import { right } from 'fp-ts/lib/Either' * import { PathReporter } from 'io-ts/lib/PathReporter' * * assert.deepStrictEqual(NonEmptyString.decode('a'), right('a')) * assert.deepStrictEqual(PathReporter.report(NonEmptyString.decode('')), ['Invalid value "" supplied to : NonEmptyString']) * * @since 0.4.5 */ export declare const NonEmptyString: NonEmptyStringC