uni-types 1.10.0 → 1.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +172 -1
- package/dist/index.d.cts +4441 -297
- package/dist/index.d.mts +4441 -297
- package/package.json +9 -9
package/README.md
CHANGED
|
@@ -18,7 +18,7 @@ A comprehensive collection of type helpers for TypeScript development
|
|
|
18
18
|
|
|
19
19
|
## Features
|
|
20
20
|
|
|
21
|
-
- 🎯 **
|
|
21
|
+
- 🎯 **2500+ Type Utilities** - Comprehensive type helpers for every use case
|
|
22
22
|
- 🔒 **Type Safe** - Full TypeScript support with strict type checking
|
|
23
23
|
- 📦 **Zero Dependencies** - Lightweight and tree-shakeable
|
|
24
24
|
- 🚀 **TypeScript 5.x** - Built with the latest TypeScript features
|
|
@@ -1449,6 +1449,177 @@ type Result = If<true, 'success', 'error'> // 'success'
|
|
|
1449
1449
|
| `IsUnion<T>`, `IsIntersection<T>`, `IsOptional<T, K>`, `IsReadonly<T, K>` | Type utilities |
|
|
1450
1450
|
| `Equals<T, U>`, `Extends<T, U>`, `HasKey<T, K>`, `HasKeys<T, K>` | Type comparisons |
|
|
1451
1451
|
|
|
1452
|
+
### Experimental v2 Features *(v1.12.0)*
|
|
1453
|
+
|
|
1454
|
+
| Type | Description |
|
|
1455
|
+
|------|-------------|
|
|
1456
|
+
| `Experimental<T>`, `Unstable<T>`, `Preview<T>`, `Beta<T>` | Stability markers |
|
|
1457
|
+
| `V2_Preview<T>`, `V2_Experimental<T>`, `V2_Alpha<T>`, `V2_Beta<T>` | v2.0.0 preview features |
|
|
1458
|
+
| `FeatureFlag<T, Flag>`, `FeatureGate<T, Condition>`, `ConditionalFeature<T, Condition>` | Feature flags |
|
|
1459
|
+
| `TryFeature<T, Available>`, `OptInFeature<T, OptedIn>` | Experimental utilities |
|
|
1460
|
+
| `StabilityLevel`, `StableFeature<T>`, `BetaFeature<T>`, `AlphaFeature<T>` | Stability levels |
|
|
1461
|
+
|
|
1462
|
+
### Unified Type System Preview *(v1.12.0)*
|
|
1463
|
+
|
|
1464
|
+
| Type | Description |
|
|
1465
|
+
|------|-------------|
|
|
1466
|
+
| `TypeV2<T>`, `OpsV2<T>`, `ExtV2<T>`, `UtilV2<T>` | Core v2 wrappers |
|
|
1467
|
+
| `PickRequiredV2<T, K>`, `DeepPartialV2<T>`, `DeepReadonlyV2<T>`, `DeepRequiredV2<T>` | V2 implementations |
|
|
1468
|
+
| `UnifiedPick<T, K>`, `UnifiedOmit<T, K>`, `UnifiedPartial<T>`, `UnifiedRequired<T>` | Unified operations |
|
|
1469
|
+
| `UnifiedMerge<T, U>`, `UnifiedDeepMerge<T, U>` | Unified merging |
|
|
1470
|
+
| `IsEqualV2<T, U>`, `IsSubtypeV2<T, U>`, `IsSupertypeV2<T, U>` | V2 type predicates |
|
|
1471
|
+
| `TypeBuilderV2<T>`, `V1Compat<T>`, `V2Migration<T, U>` | Migration helpers |
|
|
1472
|
+
|
|
1473
|
+
### HKT Preview *(v1.12.0)*
|
|
1474
|
+
|
|
1475
|
+
| Type | Description |
|
|
1476
|
+
|------|-------------|
|
|
1477
|
+
| `HKTV2<F, A>`, `KindV2<F, A>`, `ApplyV2<F, A>` | HKT primitives |
|
|
1478
|
+
| `TypeConstructorV2<F>`, `ConstructV2<F, Args>` | Type constructors |
|
|
1479
|
+
| `FunctorV2<F>`, `FunctorMap<F, A, B>` | Functor preview |
|
|
1480
|
+
| `MonadV2<M>`, `MonadPure<M, A>`, `MonadChain<M, A, B>` | Monad preview |
|
|
1481
|
+
| `ApplicativeV2<F>`, `ApplicativeLift2<F, A, B, C>` | Applicative preview |
|
|
1482
|
+
| `HKTIdentity<A>`, `HKTConst<A>`, `HKTCompose<F, G, A>` | HKT utilities |
|
|
1483
|
+
|
|
1484
|
+
### Effect System Preview *(v1.12.0)*
|
|
1485
|
+
|
|
1486
|
+
| Type | Description |
|
|
1487
|
+
|------|-------------|
|
|
1488
|
+
| `EffectV2<T, E>`, `PureV2<T>`, `IOV2<T>` | Core effect types |
|
|
1489
|
+
| `TrackEffect<T, E>`, `EffectList<T>`, `EffectSafe<T>` | Effect tracking |
|
|
1490
|
+
| `HandlerV2<E, T>`, `HandleV2<T, E>`, `HandleAllV2<T>` | Effect handlers |
|
|
1491
|
+
| `EffectMap<T, F>`, `EffectFlatMap<T, F>` | Effect composition |
|
|
1492
|
+
| `EffectType`, `IOEffect`, `AsyncEffect`, `StateEffect<S>`, `ErrorEffect<E>` | Effect type markers |
|
|
1493
|
+
|
|
1494
|
+
### Plugin System Preview *(v1.12.0)*
|
|
1495
|
+
|
|
1496
|
+
| Type | Description |
|
|
1497
|
+
|------|-------------|
|
|
1498
|
+
| `PluginV2<T>`, `PluginAPIV2<T>`, `PluginContextV2<T>` | Plugin core |
|
|
1499
|
+
| `PluginHookV2<T>`, `HookTypeV2`, `HookHandlerV2<T>` | Plugin hooks |
|
|
1500
|
+
| `PluginInitV2<T>`, `PluginLoadV2<T>`, `PluginConfigV2<T>` | Plugin lifecycle |
|
|
1501
|
+
| `PluginRegistryV2<T>`, `RegisteredPlugin<T>` | Plugin registry |
|
|
1502
|
+
| `PluginMetadataV2`, `PluginServicesV2` | Plugin metadata |
|
|
1503
|
+
|
|
1504
|
+
### Interop Enhancements *(v1.12.0)*
|
|
1505
|
+
|
|
1506
|
+
| Type | Description |
|
|
1507
|
+
|------|-------------|
|
|
1508
|
+
| `Interop<T, Library>`, `ConvertTo<T, Target>`, `ConvertFrom<T, Source>` | Library interop |
|
|
1509
|
+
| `ToZodSchema<T>`, `FromZodSchema<T>`, `ToYupSchema<T>`, `FromYupSchema<T>` | Schema interop |
|
|
1510
|
+
| `ToJSONSchema<T>`, `FromJSONSchema<T>` | JSON Schema interop |
|
|
1511
|
+
| `ToReact<T>`, `ToVue<T>`, `ToSvelte<T>`, `ToAngular<T>` | Framework interop |
|
|
1512
|
+
| `ToTypeFest<T>`, `FromTypeFest<T>`, `ToTsToolbelt<T>`, `FromTsToolbelt<T>` | Type library interop |
|
|
1513
|
+
|
|
1514
|
+
### Developer Tools Integration *(v1.12.0)*
|
|
1515
|
+
|
|
1516
|
+
| Type | Description |
|
|
1517
|
+
|------|-------------|
|
|
1518
|
+
| `IDEIntegration<T>`, `LanguageServer<T>`, `ServerCapabilities` | IDE integration |
|
|
1519
|
+
| `CodeAction<T>`, `CodeActionKind`, `CodeLens<T>` | Code actions |
|
|
1520
|
+
| `CompletionItem<T>`, `CompletionProvider<T>`, `SmartCompletion<T>` | Auto-completion |
|
|
1521
|
+
| `RefactorAction<T>`, `RefactorSuggestion<T>`, `RefactorPreview<T>` | Refactoring |
|
|
1522
|
+
| `SnippetTemplate<T>`, `SafeRefactor<T>` | Snippets & safe refactoring |
|
|
1523
|
+
|
|
1524
|
+
### Documentation Generation v2 *(v1.12.0)*
|
|
1525
|
+
|
|
1526
|
+
| Type | Description |
|
|
1527
|
+
|------|-------------|
|
|
1528
|
+
| `V2TypeDocumentation<T>`, `AutoDoc<T>`, `DocTemplate<T>`, `DocExample<T>` | Documentation types |
|
|
1529
|
+
| `GenerateJSDoc<T>`, `JSDocTagV2`, `JSDocTemplate<T>` | JSDoc generation |
|
|
1530
|
+
| `APIDocumentation<T>`, `EndpointDoc<T>`, `ParameterDoc<T>` | API documentation |
|
|
1531
|
+
| `DocRenderOptions`, `DocRenderResult` | Documentation rendering |
|
|
1532
|
+
|
|
1533
|
+
### Community Feedback System *(v1.12.0)*
|
|
1534
|
+
|
|
1535
|
+
| Type | Description |
|
|
1536
|
+
|------|-------------|
|
|
1537
|
+
| `FeatureFeedback<T>`, `BugReport<T>`, `FeatureRequest<T>` | Feedback types |
|
|
1538
|
+
| `BugSeverity`, `FeaturePriority`, `FeatureCategory` | Classification |
|
|
1539
|
+
| `Survey<T>`, `SurveyQuestion<T>`, `SurveyResult<T>` | Survey types |
|
|
1540
|
+
| `FeedbackAnalysis<T>`, `SentimentResult` | Analysis |
|
|
1541
|
+
| `IssueCategory`, `IssueTemplate<T>`, `IssueTrackingConfig` | Issue tracking |
|
|
1542
|
+
|
|
1543
|
+
### RC Quality Gates *(v1.12.0)*
|
|
1544
|
+
|
|
1545
|
+
| Type | Description |
|
|
1546
|
+
|------|-------------|
|
|
1547
|
+
| `QualityGate<T>`, `GateCondition<T>`, `GateResult`, `GateSeverity` | Quality gates |
|
|
1548
|
+
| `ValidateRC<T>`, `RCValidationReport<T>`, `RCReadiness` | RC validation |
|
|
1549
|
+
| `ReleaseCriteria<T>`, `ReleaseCriteriaType`, `ReleaseBlocker` | Release criteria |
|
|
1550
|
+
| `RCConfig`, `NotificationConfig`, `NotificationChannel` | RC configuration |
|
|
1551
|
+
|
|
1552
|
+
### Migration Utilities *(v1.11.0)*
|
|
1553
|
+
|
|
1554
|
+
| Type | Description |
|
|
1555
|
+
|------|-------------|
|
|
1556
|
+
| `MigrationStatus`, `MigrationResult<T>`, `MigrationChange` | Migration helpers |
|
|
1557
|
+
| `MigrationWarning`, `MigrationError`, `MigrationMap<T>`, `MigrationRule<T>` | Migration tracking |
|
|
1558
|
+
| `MigrateToV2<T>`, `MigrateFromV1<T>` | Version migration |
|
|
1559
|
+
| `TransformType<T, Rules>`, `RenameType<T, From, To>`, `RestructureType<T, Schema>` | Type transformation |
|
|
1560
|
+
| `FlattenNamespace<T>` | Namespace flattening |
|
|
1561
|
+
| `CompatV1<T>`, `CompatV2<T>`, `Backport<T, Version>`, `ForwardPort<T, Version>` | Compatibility layer |
|
|
1562
|
+
| `ValidateMigration<T, U>`, `MigrationDiff<T, U>`, `BreakingChanges<T, U>` | Migration validation |
|
|
1563
|
+
| `MigrationReport`, `MigrationComplexity` | Migration reporting |
|
|
1564
|
+
| `Codemod<T>`, `CodemodResult<T>`, `CodemodRule<T>` | Codemod types |
|
|
1565
|
+
| `MigrationStep<T>`, `MigrationPath<T, U>`, `MigrationConfig` | Migration execution |
|
|
1566
|
+
|
|
1567
|
+
### Deprecation Management *(v1.11.0)*
|
|
1568
|
+
|
|
1569
|
+
| Type | Description |
|
|
1570
|
+
|------|-------------|
|
|
1571
|
+
| `Deprecated<T, Message>`, `DeprecatedSince<T, Version>`, `WillBeRemoved<T, Version>` | Deprecation markers |
|
|
1572
|
+
| `Replacement<T, New>`, `DeprecationInfo`, `DeprecationLevel` | Replacement types |
|
|
1573
|
+
| `Legacy<T>`, `LegacyAlias<T, New>`, `BackwardsCompatible<T, Old>` | Legacy support |
|
|
1574
|
+
| `Warning<T>`, `WarningLevel`, `DeprecationWarning<T>`, `DeprecationMigrationWarning<T>` | Warning types |
|
|
1575
|
+
| `VersionGate<T, Min, Max>`, `RemovedIn<T, Version>`, `IntroducedIn<T, Version>` | Version gates |
|
|
1576
|
+
| `VersionedAPI<T, V>`, `VersionRange`, `VersionConstraint` | Version utilities |
|
|
1577
|
+
| `Sunset<T>`, `SunsetSchedule<T>`, `EndOfLife<T>`, `SunsetPolicy` | Sunset utilities |
|
|
1578
|
+
| `DeprecationTracker`, `DeprecationRegistry`, `DeprecationCheckResult` | Deprecation tracking |
|
|
1579
|
+
|
|
1580
|
+
### Performance Optimization *(v1.11.0)*
|
|
1581
|
+
|
|
1582
|
+
| Type | Description |
|
|
1583
|
+
|------|-------------|
|
|
1584
|
+
| `Fast<T>`, `Optimized<T>`, `CachedCompute<T>`, `LazyCompute<T>` | Performance types |
|
|
1585
|
+
| `ReduceComplexity<T>`, `SimplifyForCompiler<T>`, `OptimizeInference<T>` | Compilation optimization |
|
|
1586
|
+
| `ReduceRecursion<T, Depth>`, `RecursionLimit<T, Depth>`, `TailRecursive<T>` | Recursion optimization |
|
|
1587
|
+
| `LightWeight<T>`, `Minimal<T>`, `CompactRepresentation<T>` | Memory optimization |
|
|
1588
|
+
| `Precompute<T>`, `PrecomputedValue<T, V>`, `DeferredEvaluation<T>` | Build performance |
|
|
1589
|
+
| `BuildHint<T>`, `BuildHintType`, `SkipCheck<T>` | Build hints |
|
|
1590
|
+
| `TypeComplexityMetrics<T>`, `CompilationTime<T>`, `TypeSize<T>` | Performance monitoring |
|
|
1591
|
+
| `PerformanceHint<T>`, `PerformanceOptimizationSuggestion` | Performance hints |
|
|
1592
|
+
| `TypeProfilerConfig`, `TypeProfilerResult`, `HotPath` | Type profiler |
|
|
1593
|
+
| `OptimizationStrategy`, `OptimizationLevel`, `OptimizationConfig` | Optimization config |
|
|
1594
|
+
|
|
1595
|
+
### Enhanced Error Messages *(v1.11.0)*
|
|
1596
|
+
|
|
1597
|
+
| Type | Description |
|
|
1598
|
+
|------|-------------|
|
|
1599
|
+
| `DetailedError<T>`, `ErrorDetails`, `ErrorCategory` | Error enhancement |
|
|
1600
|
+
| `TypedError<T>`, `ErrorContext<T>`, `ErrorSuggestion<T>` | Error context |
|
|
1601
|
+
| `Diagnostic<T>`, `DiagnosticInfo`, `DiagnosticSeverity` | Diagnostic types |
|
|
1602
|
+
| `TypeMismatch<T, Expected>`, `MissingProperty<T, K>`, `InvalidType<T, Valid>` | Type errors |
|
|
1603
|
+
| `RecoverableError<T>`, `ErrorRecovery<T>`, `RecoveryStrategy` | Error recovery |
|
|
1604
|
+
| `FallbackType<T, Fallback>`, `GracefulDegradation<T>` | Fallback types |
|
|
1605
|
+
| `HelpMessage<T>`, `HelpInfo`, `DocumentationLink<T>`, `QuickFix<T>` | Help messages |
|
|
1606
|
+
| `ErrorReport`, `ReportedError`, `ReportedWarning`, `ErrorReporterConfig` | Error reporting |
|
|
1607
|
+
| `CommonErrorType`, `ErrorCatalogEntry`, `ErrorCatalog` | Error catalog |
|
|
1608
|
+
|
|
1609
|
+
### Breaking Change Detection *(v1.11.0)*
|
|
1610
|
+
|
|
1611
|
+
| Type | Description |
|
|
1612
|
+
|------|-------------|
|
|
1613
|
+
| `BreakingChangeReport<T>`, `BreakingChange`, `BreakingChangeType` | Breaking change types |
|
|
1614
|
+
| `BreakingChangeSummary`, `MigrationEffort` | Breaking change summary |
|
|
1615
|
+
| `APIDiff<T, U>`, `AddedAPI<T>`, `RemovedAPI<T>`, `ChangedAPI<T, U>` | API diff |
|
|
1616
|
+
| `CompatibilityCheck<T, U>`, `BreakingChangeCompatibilityReport<T>` | Compatibility check |
|
|
1617
|
+
| `BreakingChangeMigrationPath<T, U>`, `BreakingChangeMigrationStep<T>` | Migration path |
|
|
1618
|
+
| `ChangeDetectionOptions`, `ChangeDetectionResult<T>`, `Change` | Change detection |
|
|
1619
|
+
| `VersionComparison`, `VersionChangelog`, `DeprecationChange` | Version comparison |
|
|
1620
|
+
| `ImpactAnalysis`, `AffectedComponent`, `RiskLevel`, `MitigationStrategy` | Impact analysis |
|
|
1621
|
+
| `BreakingChangeRule`, `BreakingChangeGuard`, `BreakingChangePreventionConfig` | Prevention |
|
|
1622
|
+
|
|
1452
1623
|
## Examples
|
|
1453
1624
|
|
|
1454
1625
|
```typescript
|