type-fest icon indicating copy to clipboard operation
type-fest copied to clipboard

A collection of essential TypeScript types

Results 242 type-fest issues
Sort by recently updated
recently updated
newest added

# Problem Unable to use `prototype` property of type constructed with `Class` utility. # Example ```ts import { Class } from 'type-fest'; class Test { public property = 'value'; }...

It caught me by surprise that the built-in `Required` only removes the optional operator, but doesn't explicitly excludes `undefined` if the value includes that. For naming, I am thinking of...

TypeScript 4.1 will bring a lot of cool abilities: https://devblogs.microsoft.com/typescript/announcing-typescript-4-1-beta/ Let's brainstorm some ideas. --- For example, some ideas from [this playground](https://www.typescriptlang.org/play?ts=4.1.0-dev.20200920#code/C4TwDgpgBAymA2BLYAeGUIA9gQHYBMBnKQ4AJ0VwHMAaKAEQ2zyJPMqoD4oBeWJnAWIADACQBvSgDMIZKABUAvhPrLJuGXICqi4VAD8UANry6AOgtwkqLXXqcAulABcxmA4DcAKFCQFAQwBrCAAZf1IUADVuPkiBFmIjJ0NcCAA3WRcoOKxBViNSCmpk7KMABidXHOYhY0KOcwtpTIAlEvkg0PDUFu5XVIyyb19oeQoAWxCIKVRqvOJ66hjs+Nq9CWa5Ft0DBQmpmZRerMjh8FGJlsQqAAtZ1dZFrl4V3ISoMXVNKG2P3bHEOMrrcen1smc-ADxlEHgt2EsXlCDqgocC7lFOJwIdAYOwwABZAD2+EQUkQshhb1qTzo+NhbCKz1i9M+mygITU+LUbIAgjtDCETtjYHiiSSybJCJSao94UyRRQCcTSeSyGhRcqJWrcYqxSqKTrEErxaqonQAORmc2cC0AYmtFqMDqg5uc1uFHWCYVIPJmsnkhOCuGl8wZDQU9Key0Nxv1ZClnq6ESsyBQUIxdHkmKxPnOUAA4hBgN7gABReAQcZ4YAAOX8VZD7yjiM6Jd9ODIAaDadb3Xb-sDeDNLpdNtH7tzfkLZf8AGMbuXK9W6w3InRBVTZYyki8kssvFBD68ZYknAejxeBVBzxfD1V6QU5Wfb0fDEYLGYQnRpyXF1XcLW9YQFE5QOI414vnex6ho+jKNGYbJtBBkGGNOpZzguFb-oBDYtHQ74WF+BZFr+WHLkBIEVI43A3rerhJMKaFkQBK4QFKcxNnKyxoRhf7kQ2KazBaNDWjmIxQHxAEAEIgKxjbUlxLy0RxtTBCAhJSFAAAS8j4iEknAB0VCsfi-hgMhL6GDpekGUZJlmUYkTPpB96bsQakabAkT5rZ-jGUBpnmbRl5eT5zGGX59lgI5zkvq4BnCqZwDzuhKXhcOG4nhJ4VQAAPlAuAAK7wPALxFSV+4Xip+SxbeV7BUerlZbBHC1SFgr5QZMlyZEoE0ZBJwPjSUAfohbWvlASUpbx6V4eyeXZUu0myRRvVUf1Lnst4k7QAAioVsggC0bHFSikaKXwU0LjNS2oExt2sQmmLbQA9AAVG9B5vRJmD1ggEBfS9Xj4BAs7wP4ZDQFIhW4LOwCIISuBQAAjgdZAgDAEAVnDhJqvI52MpwAAUqOHa48gAJSuPth3HYQp1pjmXizojpBQP4Lyk+jmPY8AuNE+aJJpGYABG-i4KkcjcP4Zizv4JUALR8wrc7w4j5oU1AL0vQr3DWSEPKwzcuMGczrPAFAIuc2jGNY6DfNkALlBgIVwB0ELGtazreu6SEACSuAu2WOX5fr9CIGkpss7gbOztbh08-b-PmrOiBkGDEBGLOmA8AARAAjAArGUucOJ72u66FADCacZ1H5tQPg8fc3bOOO+aIuu3zuC2p3IAK7ghIAO7l972m+1JXeI-XMcW9AfBc7bvPJ4Q9sI0jYDOGS8bAArGlK+cGseF7lf6wAChDflkGZmG3V4QA); ```ts type Split = S extends `${infer T}${D}${infer...

help wanted
question

Returns `T` if `T` is a literal type belonging to `U`. ```ts type IsLiteral = T extends U ? (U extends T ? never : T) : never; ``` ```ts...

https://github.com/sindresorhus/type-fest/blob/02849add1fa7e4b0a65c0b8071d3821b12d71933/source/internal.d.ts#L1-L11 I needs better docs and usage example. Read: https://github.com/sindresorhus/type-fest/blob/main/.github/contributing.md#submitting-a-new-type

help wanted
type addition

In my codebase we ended up with a type like this: ```ts props: Omit< FilterableSelectProps, "useComboboxProps" > & { useComboboxProps: Omit< FilterableSelectProps["useComboboxProps"], "itemToString" >; }; ``` The idea is to...

help wanted
type addition

I remember seeing this type somewhere, but I can't find it. Does it exist? Is it native?

Hi, I have recently stumbled upon an issue with the `ReadonlyDeep` type. I have a type which has both members as well as call signatures (in my case the `JQueryStatic`...

bug
help wanted

For example, if I have these functions: ```ts import type { Float, Integer } from 'type-fest' function setYear(length: Integer): void { ... } function setPrice(length: Float): void { ... }...

The new `Float` type does not type-check with values like `1.0`, `2.0`, etc. Is this the intended behavior? It appears that these values are being converted to integers and therefore...