UNPKG
@derivate/io-ts-deriver
Version:
latest (0.1.3-alpha.0)
0.1.3-alpha.0
@derivate/io-ts-deriver
/
src
/
io-ts-type.ts
8 lines
(7 loc)
•
208 B
text/typescript
View Raw
1
2
3
4
5
6
7
8
import
*
as
t
from
'io-ts'
;
export
const
__deriveIO = {
derive
:
function
<T>(): t.
Type
<T> {
throw
new
Error
(
"Cant derive type instance, this function must be transformed by the transformer"
) }, t, }