Skip to content

MichaelHirn/esm-issue-274

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Reproducing issues related to #286 (io-ts)

Introduction

The ESM test io-ts.test.ts shows that this now works import * as IO from 'https://esm.sh/io-ts.

However, due to the architecture of io-ts in almost all cases it is necessary to import sub-modules directly, e.g. import * as T from 'https://esm.sh/io-ts/Types, which does not yet work as demonstrated by io-ts-schemable.test.ts (a slight modification from the original test).

On a high-level, the issue is that most of io-ts's sub-modules depend on io-ts/Schemable which, for some reason, cannot be compiled and throws with TS2370 [ERROR]: A rest parameter must be of an array type..

Why it cannot be compiled is unexpected, because if we reproduce the io-ts/Schemable types directly (see io-ts-rest-parameter.test.ts) it does not throw any errors as one would expect.

Associated issue: #286, #274

Usage

  1. clone repo
  2. run deno test

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published