UNPKG

@arthurgubaidullin/nx-embed-dependencies

Version:

This plugin for [Nx](https://nx.dev) helps injecting local dependencies into a package.

22 lines (21 loc) 506 B
/** * @since 0.4.4 */ import * as t from 'io-ts' /** * @since 0.4.4 */ export interface RegExpC extends t.Type<RegExp, RegExp, unknown> {} /** * @example * import { regexp } from 'io-ts-types/es6/regexp' * import { right } from 'fp-ts/es6/Either' * * const input1 = /\w+/ * const input2 = new RegExp('\\w+') * assert.deepStrictEqual(regexp.decode(input1), right(input1)) * assert.deepStrictEqual(regexp.decode(input2), right(input2)) * * @since 0.4.4 */ export declare const regexp: RegExpC