clone overview
Added in v0.4.3
Table of contents
clone
Returns a clone of the given codec
Signature
export function clone<C extends t.Any>(t: C): C { ... }
Example
import { clone } from 'io-ts-types/lib/clone'
import * as t from 'io-ts'
assert.deepStrictEqual(clone(t.string), t.string)
Added in v0.4.3