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

`If` file exists but method is not exported

ThomasAribart opened this issue Β· comments

🐞 Bug Report

Describe the bug

The Any.If method is described in the documentation: https://millsp.github.io/ts-toolbelt/modules/any_if.html

However, when I try to use it I get a not exported error. When I look in the node_modules, I see that the file exists, but the method is simply not exported.

Reproduce the bug

import { A } from "ts-toolbelt";

export type Test = A.If<1, true, false> // <= Errors

Expected behavior

No Error, type Test is equal to true.

Possible Solution

Export the If method ^^

Screenshots

Additional context

Version: 9.6.0

Hello ? It's been 7 months already