UNPKG

322 BTypeScriptView Raw
1/**
2 * @since 0.4.3
3 */
4import * as t from 'io-ts'
5/**
6 * Returns a clone of the given codec
7 *
8 * @example
9 * import { clone } from 'io-ts-types/lib/clone'
10 * import * as t from 'io-ts'
11 *
12 * assert.deepStrictEqual(clone(t.string), t.string)
13 *
14 * @since 0.4.3
15 */
16export declare function clone<C extends t.Any>(t: C): C
17
\No newline at end of file