sindresorhus/
A collection of essential TypeScript types
USD raised
Recent activities
DistributedOmit may not need to constraint the second type argument
`Paths` is unable to escape dots in property names
Unify `Get` and `Paths` / `PickDeep` etc
`Proposal`: add option with exclude/keep specified type on deep type
Exclude / Pick type in Paths / only add leaf nodes
OverrideProperties changes undefined as optional
Type for serializable objects?
Use `NoInfer`?
Make the second argument to RequireAllOrNone optional
IfAny circular constraint in TS 5.4+
Run `tsc` on all test files
`RepeatString` type
ReadonlyDeep: add test for function or method returning an object?
Questions about the types located in the file `/source/basic.d.ts`
Proposal: `ValueOfDeep<Type, 'key.deepKey'>`
`NonEmptyObject` fails for objects with dynamic properties
`UnionToUnorderedTuple` type
CamelCasedObjectDeep breaks tuple-types into array-types
`JsonValue` can receive `type` but not `interface`
OptionalExcept type
Update Merge type to accept N type arguments
Weird bug report - RangeError: Maximum call stack size exceeded when building
IntRange Inclusive
Weekdays include weekends
Feature Request (or bug report?) - Get the last key of a record
SetRequiredDeep - is it possible?
NonNullableDeep
Add ConditionalKeys variation where Condition matches any in a union rather than all
[Feature Request] Enforce Casing
IfType type guards
Nested structure without index signature is not assignable to `Jsonifiable`
Proposal: `PickNonNever<Type>`
`ConditionalSimplifyDeep` is not exported from root
Audit all types for whether they need `readonly` modifier
`PartialDeep` make `Date` internal structure partial
Writable doesn't only strip readonly from the keys
`PartialOnUndefined` with only 1 level deep
Creating an exhaustive array from a union type
Unable to use `Opaque<Record<a, b>, c>`
Suggestion: Jsonifiable<OrType = never>
Extract `ReplaceDeep` function into a separate module
Label<Type, Token>
[FR] SetNullable
RecordToMap type
Opposite of Simplify?
MemberOfUnion
Proposal: `SetRequired`, `SetNonNullable`, `Schema` based on nested key path
`JsonObject` not limit object keys type
`RequiredDeep` silently erases types past a depth of 3 as a side-effect
Expose more internal types
Jsonify makes Record<string, any> disappear
SingleOrArray - Add type for a single value or an array of values
Check if we need to reduce "excessively deep error" on WritableDeep too
`Destructurable` type
Expose `NonEmptyTuple`
Proposal: `TupleOf`
PartialDeep should skip HTMLCanvasElement
`Entries` don't works like `ObjectEntries`
Proposal: `RecordOf`
Utility Type Request: DeepUndefinedToNull
`Immutable` type
`Integer<1e+100>` should be `1e+100`, but it is `never`
`Indices` type
`FlattenedRecordDeep` type
Is there a way to check that a key conforms to a base type without using an interface?
KeysOfType
Helper for `fn(...rest, extra)` ("A rest parameter must be last in a parameter list.")
OrderedKeysOf and OrderedValuesOf
Would be good to have DeepUndefinable
MergeUnion
Proposal: Modify, a slightly modified version of Merge
Proposal: NullToUndefined and UndefinedToNull
Opaque not working correctly?
[MergeDeep] No attempt merge on Destination + Source types
Changes in Except from v3.7.0 generates a huge declaration output truncated by TypeScript v4.9.5
`Escape` type
How to have unknown keys return `never` with `Get` type?
Add a `PromisableFields` type
`OverloadParameters` and `OverloadReturnType`
Jsonify breaks down with JsonValue, JsonObject
How do I use ConditionalPickDeep with PartialDeep?
Allow `SetRequired` to specify internal properties (aka optic)
NonNegativeInteger doesn't work
Feature request: Support variables in Get paths
Tuple alias for FixedLengthArray
3.5.4 breaks Array.isArray on JsonValue through #549
PackageJson type: Scripts can't be assigned
`IsEqual` identity issues
IndexOf - Find the index of a type in a tuple
`UnionToArray` type
Suggestion: Merge Compatible Deep
Suggestion: DiscriminateUnion
Conditional pick deep not compiling, internal?
Suggestion: type for Object.fromEntries
Suggestion: URL params
`PartialDeep`: recurse into objects in array without changing the array itself
Use the new `satisfies` operator?
`KebabCase` and `SnakeCase` insert additional delimiters when there is an Uppercase character after a `WordSeparator`
Require parameters in functions
A bug with Exact<>, optional fields, and classes
Rename `ReadonlyDeep` to `Immutable`
`MinimumN` type
`NonEmptyTuple` type
`type ExtendsFrom<Type, Subtype extends Parent> = Subtype;`
type-fest@3 - How to declare optional properties in JsonObject?
Add `SimplifyDeep` type
`Type instantiation is excessively deep` in `ReadonlyDeep`
Proposal Inferred Partial type
OmitValues type
Proposal: `readme.md` builder with examples links to TS Playground
v5
ParseInteger and ParseBoolean
Provide playground link in readme and new issues
Suggestion: `PropagateNever`
Require at least one element in arrays or function arguments (`RequireAtLeastOne`)
Add `Not<string, 'not me'>`
Proposal: Remove numbers at the end of string
`NaN` problems
`JsonValue` should be super set of `PackageJson`
Add `Truthy` and `Falsy` types
Add type for union joins
Proposal: NonDiscriminatedUnion
Proposal: KeysOfUnion, `keyof` Union type
[Feature] ReturnTypeWithGenerics
SetRequired not allowing other optional fields
Is there any runtime function for `CamelCasedPropertiesDeep`
Add `Set` type
ValueType
Add `ArrayAt` type for stricter `Array.prototype.at()` with tuples
MergeExclusive with more than two types
MaybeUndefined (Partial - but with required properties)
feat: Sister of Except, stricter version of Required
snakeCasedProperties and camelCasedProperties have different behaviours when parsing numbers
How to use `Float`/`Integer`?
Float type does not allow whole number floats
Cannot copy Date type via CamelCasedPropertiesDeep
Proposal | Add an Paths type thats returns all valid paths to JSON like values
Add an IfElse type to make a nested or long ternary expression more concise, clear, easier to write, and also maintain
Improve `Opaque` type to encapsulate unique symbol tag
Proposed paradigm (functional assertions)
Stricter `FixedLengthArray`
Discussion/proposal: better typed decorators
Like `Promisable<X>` but for arrays: `X | X[]`
Proposal: `IsUnion`
`RequireAtLeastOne`: Type does not narrow as expected
Add `SetNonNullable` type
Add `Passthrough` type
`keyof` for Map
SnakeCaseProperties doesn't handle PascalCase and UPPERCASE
Strict versions of Extract and Exclude
Proposal: PickOptionalKeys
Proposal: `AppendKeys` `PrependKeys`
Question: Is it possible to get compile error with "Get"?
Support array for `Writable` type?
Add IsUnion<T>
[Proposal] Tagged Union To Intersection
Improve `Simplify` type?
Rename `SetOptional` and `SetRequired`?
[Proposal] Adding in my types
ConditionalKeys didn't work fine as expected
Proposal: `Exact` and `ExactDeep`
[Proposal] allow SetRequired to return the original type
SetRequired unable to infer type
Proposal: `ArrayTail`
Template literal type ideas
Proposal: TypeToJSObject
Proposal: `AsyncFunction`
PartialDeep to allow overriding Object prototype properties
Bug: ConditionalKeys<Base, Condition> fails when used on Arrays
Proposal: ArrayItem
Proposal: `Must`
@ReadonlyDeep generic type
Question: is there any way to get the advantages of opaque and other options at the same time?
Proposal: `PlainObject`
Documentation improvement request: Merge versus intersection
Proposal for ModifyType ?
Optional Values of Type
Add links to try them in the TypeScript Playground
Proposal: OneOrMore
Proposal: PartialExcept
Proposal: FlipOptional
Proposal: Partial/Complete
Add `Optional` type
Add `bigint` primitive
Add `RequireOnlyOne` type
Possible improvement of Omit
Proposal: ExcludeProps
PackageJson - recommendation for extending the interface
How to use `JsonObject`?
Improve documentation and tests
Add `Diff` and `Spread` types
Add `JustProps` and `JustMethods` types
Š 2019 BoostIO, Inc.