#714·io-ts

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

Author: al6xCreated Jul 6, 2024Updated Jul 6, 2024

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?