millsp / ts-toolbelt

πŸ‘· TypeScript's largest type utility library

Home Page:https://millsp.github.io/ts-toolbelt/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Any.Compute changes empty tuple type

jasonkuhrt opened this issue Β· comments

🐞 Bug Report

Describe the bug

type x = Any.Compute<{ aliases: {short:[],long:[]}}>

// expected
type x = {
  aliases: {
    short: []
    long: []
  }
}
// actual
type x = {
  aliases: {
    short: {}[]
    long: {}[]
  }
}

Reproduce the bug

// REPL or a link to your repository if applicable.
// A *self-contained* demonstration of the problem.

see above

Expected behavior

see above

Possible Solution

Haven't invested yet