gcanti / io-ts

Runtime type system for IO decoding/encoding
https://gcanti.github.io/io-ts/
MIT License
6.68k stars 331 forks source link

Is it possible to use it with typescript without `nodenex` config option? #714

Open al6x opened 2 months ago

al6x commented 2 months ago

The basic example fails, is it possible to use io-ts without altering tsconfig and setting nodenex?

import * as t from 'io-ts'

const User = t.type({
  userId: t.number,
  name: t.string
})
Cannot find module 'io-ts'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option?
gcanti commented 2 months ago

The nodenext option is not required to use io-ts.