uni-types 1.8.0 → 1.10.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 +302 -1
- package/dist/index.cjs +14 -0
- package/dist/index.d.cts +23000 -12628
- package/dist/index.d.mts +23000 -12628
- package/dist/index.mjs +12 -1
- package/package.json +1 -1
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
|
+
- 🎯 **2000+ 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
|
|
@@ -1148,6 +1148,307 @@ type Result = If<true, 'success', 'error'> // 'success'
|
|
|
1148
1148
|
| `Flatten<T>` | Flatten nested tuples |
|
|
1149
1149
|
| `MinElement<T>`, `MaxElement<T>` | Min/Max element |
|
|
1150
1150
|
|
|
1151
|
+
### Quantum Computing *(v1.9.0)*
|
|
1152
|
+
|
|
1153
|
+
| Type | Description |
|
|
1154
|
+
|------|-------------|
|
|
1155
|
+
| `Qubit<T>`, `QubitState`, `QubitArray<N, T>` | Qubit types |
|
|
1156
|
+
| `QuantumGate`, `Hadamard`, `PauliX/Y/Z` | Quantum gates |
|
|
1157
|
+
| `CNOT`, `Toffoli`, `PhaseGate` | Multi-qubit gates |
|
|
1158
|
+
| `QuantumCircuit<N>`, `CircuitGate<T>` | Circuit types |
|
|
1159
|
+
| `QuantumRegister<N>`, `ClassicalRegister<N>` | Register types |
|
|
1160
|
+
| `QuantumState<N>`, `StateVector<N>` | State representation |
|
|
1161
|
+
| `BellState`, `GHZState<N>`, `EntangledPair` | Entanglement types |
|
|
1162
|
+
| `Grover<T>`, `Shor`, `QFT<N>`, `VQE`, `QAOA` | Quantum algorithms |
|
|
1163
|
+
| `QuantumHardware`, `QuantumBackend` | Hardware types |
|
|
1164
|
+
|
|
1165
|
+
### Game Development *(v1.9.0)*
|
|
1166
|
+
|
|
1167
|
+
| Type | Description |
|
|
1168
|
+
|------|-------------|
|
|
1169
|
+
| `Entity<T>`, `EntityId`, `EntityComponent<T>` | Entity types |
|
|
1170
|
+
| `Component`, `Position2D/3D`, `Velocity` | Component types |
|
|
1171
|
+
| `GameState<T>`, `GameAction<T>`, `GameStore<T>` | State management |
|
|
1172
|
+
| `InputState`, `KeyboardState`, `MouseState`, `GamepadState` | Input handling |
|
|
1173
|
+
| `PhysicsBody<T>`, `ColliderShape`, `Collision<T>` | Physics types |
|
|
1174
|
+
| `Scene<T>`, `SceneNode<T>`, `Camera<T>` | Scene graph |
|
|
1175
|
+
| `Material`, `Shader`, `Texture`, `Mesh` | Rendering types |
|
|
1176
|
+
| `AudioClip`, `AudioSource`, `AudioListener` | Audio types |
|
|
1177
|
+
| `Level`, `SpawnPoint`, `Checkpoint`, `Objective` | Level design |
|
|
1178
|
+
|
|
1179
|
+
### Blockchain *(v1.9.0)*
|
|
1180
|
+
|
|
1181
|
+
| Type | Description |
|
|
1182
|
+
|------|-------------|
|
|
1183
|
+
| `Block<T>`, `BlockHeader`, `BlockBody` | Block types |
|
|
1184
|
+
| `Transaction`, `LegacyTransaction`, `EIP1559Transaction` | Transaction types |
|
|
1185
|
+
| `SmartContract<A>`, `ContractABI` | Smart contract types |
|
|
1186
|
+
| `Address`, `PublicKey`, `PrivateKey`, `Signature` | Address/crypto types |
|
|
1187
|
+
| `TokenInfo`, `FungibleTokenBalance`, `NonFungibleToken` | Token types |
|
|
1188
|
+
| `WalletAccount`, `WalletConnection`, `WalletProvider` | Wallet types |
|
|
1189
|
+
| `Chain`, `ChainId`, `NetworkConfig` | Network types |
|
|
1190
|
+
| `GasEstimate`, `GasPrice`, `GasFees` | Gas types |
|
|
1191
|
+
| `JsonRpcProvider`, `JsonRpcRequest` | JSON-RPC types |
|
|
1192
|
+
|
|
1193
|
+
### Language Processing *(v1.9.0)*
|
|
1194
|
+
|
|
1195
|
+
| Type | Description |
|
|
1196
|
+
|------|-------------|
|
|
1197
|
+
| `Token<T>`, `TokenType`, `TokenStream<T>` | Tokenization |
|
|
1198
|
+
| `Sentence<T>`, `Paragraph<S>`, `Document<P>` | Document structure |
|
|
1199
|
+
| `ParseTree`, `ParseNode<T>`, `Grammar` | Parsing types |
|
|
1200
|
+
| `LanguageModel<T>`, `Vocabulary<T>`, `Embedding<T>` | Language models |
|
|
1201
|
+
| `SemanticRole`, `SemanticFrame`, `EntityMention` | Semantic analysis |
|
|
1202
|
+
| `Morpheme`, `PartOfSpeech`, `MorphologicalFeatures` | Morphology |
|
|
1203
|
+
| `SentimentResult`, `EmotionResult` | Sentiment analysis |
|
|
1204
|
+
| `TranslationResult`, `Locale`, `LanguagePair` | Translation types |
|
|
1205
|
+
| `ClassificationResult`, `TopicInfo`, `QAResult` | Classification/QA |
|
|
1206
|
+
|
|
1207
|
+
### Graphics *(v1.9.0)*
|
|
1208
|
+
|
|
1209
|
+
| Type | Description |
|
|
1210
|
+
|------|-------------|
|
|
1211
|
+
| `Color`, `RGB`, `RGBA`, `HSL`, `HexColor` | Color types |
|
|
1212
|
+
| `Vector2/3/4`, `Point2D/3D`, `Size2D/3D` | Vector types |
|
|
1213
|
+
| `Matrix2x2`, `Matrix3x3`, `Matrix4x4`, `Quaternion` | Matrix types |
|
|
1214
|
+
| `Transform`, `Translation`, `Rotation`, `Scale` | Transform types |
|
|
1215
|
+
| `Point`, `Line`, `Triangle`, `Quad`, `Polygon` | Primitive types |
|
|
1216
|
+
| `Circle`, `Rectangle`, `Sphere`, `Box` | Shape types |
|
|
1217
|
+
| `VertexBuffer`, `IndexBuffer`, `UniformBuffer` | Buffer types |
|
|
1218
|
+
| `VertexShader`, `FragmentShader`, `ComputeShader` | Shader types |
|
|
1219
|
+
| `Texture`, `SamplerDescriptor`, `TextureFormat` | Texture types |
|
|
1220
|
+
| `RenderPipeline`, `ComputePipeline` | Pipeline types |
|
|
1221
|
+
| `Light`, `DirectionalLight`, `PointLight`, `SpotLight` | Light types |
|
|
1222
|
+
|
|
1223
|
+
### Audio Processing *(v1.9.0)*
|
|
1224
|
+
|
|
1225
|
+
| Type | Description |
|
|
1226
|
+
|------|-------------|
|
|
1227
|
+
| `AudioSample`, `AudioBufferData`, `AudioChannel` | Audio data |
|
|
1228
|
+
| `SampleRate`, `BitDepth`, `SampleFormat` | Format types |
|
|
1229
|
+
| `WaveformType`, `ADSREnvelope`, `Envelope` | Waveform/envelope |
|
|
1230
|
+
| `Frequency`, `NoteName`, `Octave`, `NotePitch` | Musical pitch |
|
|
1231
|
+
| `ReverbEffect`, `DelayEffect`, `FilterEffect` | Audio effects |
|
|
1232
|
+
| `CompressorEffect`, `EqualizerEffect`, `DistortionEffect` | More effects |
|
|
1233
|
+
| `MIDINote`, `MIDIEvent`, `MIDISequence`, `MIDITrack` | MIDI types |
|
|
1234
|
+
| `OscillatorOptions`, `LFOOptions`, `SynthesizerPatch` | Synthesizer types |
|
|
1235
|
+
| `FFTResult`, `Spectrum`, `Spectrogram` | Analysis types |
|
|
1236
|
+
| `AudioFormat`, `AudioEncodingOptions`, `AudioMetadata` | Encoding types |
|
|
1237
|
+
|
|
1238
|
+
### Animation *(v1.9.0)*
|
|
1239
|
+
|
|
1240
|
+
| Type | Description |
|
|
1241
|
+
|------|-------------|
|
|
1242
|
+
| `Animation<T>`, `AnimationFrame<T>`, `AnimationTimeline<T>` | Animation core |
|
|
1243
|
+
| `Keyframe<T>`, `KeyframeSequence<T>`, `KeyframeInterpolation` | Keyframe types |
|
|
1244
|
+
| `EasingType`, `EasingPreset`, `CubicBezier`, `StepsEasing` | Easing types |
|
|
1245
|
+
| `Transition<T>`, `TransitionShorthand` | CSS transitions |
|
|
1246
|
+
| `SpringConfig`, `SpringState`, `SpringPreset` | Spring physics |
|
|
1247
|
+
| `SpriteSheet`, `SpriteFrame`, `SpriteAnimation` | Sprite animation |
|
|
1248
|
+
| `MorphTarget`, `MorphWeights`, `MorphAnimation` | Morph targets |
|
|
1249
|
+
| `Skeleton`, `Bone`, `Joint`, `Pose` | Skeletal animation |
|
|
1250
|
+
| `AnimationState`, `AnimationTransition`, `AnimationLayer` | State machine |
|
|
1251
|
+
| `IKChain`, `IKTarget`, `IKSolverType` | Inverse kinematics |
|
|
1252
|
+
| `AnimationTrack`, `AnimationClip`, `AnimationEvent` | Timeline types |
|
|
1253
|
+
|
|
1254
|
+
### Error Handling *(v1.9.0)*
|
|
1255
|
+
|
|
1256
|
+
| Type | Description |
|
|
1257
|
+
|------|-------------|
|
|
1258
|
+
| `Result<T, E>`, `Success<T>`, `Failure<E>` | Result type |
|
|
1259
|
+
| `Ok<T>`, `Err<E>`, `AsyncResult<T, E>` | Result helpers |
|
|
1260
|
+
| `Try<T, E>`, `TryResult<T>`, `CatchHandler<T, E>` | Try-catch types |
|
|
1261
|
+
| `Either<L, R>`, `Left<L>`, `Right<R>` | Either type |
|
|
1262
|
+
| `Option<T>`, `Some<T>`, `None` | Option type |
|
|
1263
|
+
| `ErrorChain<T>`, `ChainLink<T>` | Error chain |
|
|
1264
|
+
| `RecoveryStrategy`, `RecoveryOptions<T>`, `RetryConfig` | Recovery types |
|
|
1265
|
+
| `ValidationError<T>`, `FieldError<T>`, `ValidationResult<T>` | Validation errors |
|
|
1266
|
+
| `NetworkError`, `AuthenticationError`, `NotFoundError` | Domain errors |
|
|
1267
|
+
| `Panic`, `FatalError`, `BusinessError`, `SystemError` | Error categories |
|
|
1268
|
+
|
|
1269
|
+
### Event System *(v1.9.0)*
|
|
1270
|
+
|
|
1271
|
+
| Type | Description |
|
|
1272
|
+
|------|-------------|
|
|
1273
|
+
| `Event<T>`, `TypedEvent<K, V>`, `EventMap` | Event types |
|
|
1274
|
+
| `EventEmitter<T>`, `EventHandler<T>` | Emitter types |
|
|
1275
|
+
| `EventBus<T>`, `BusEvent<T>`, `EventBusMiddleware` | Event bus |
|
|
1276
|
+
| `EventDispatcher<T>`, `DispatchResult<T>` | Dispatcher types |
|
|
1277
|
+
| `EventQueue<T>`, `QueuedEvent<T>`, `QueuePriority` | Queue types |
|
|
1278
|
+
| `Subscription`, `SubscriptionOptions<T>`, `SubscriptionFilter<T>` | Subscription |
|
|
1279
|
+
| `EventPattern`, `PatternMatch<T>`, `PatternResult<T>` | Pattern matching |
|
|
1280
|
+
| `EventAggregator<T>`, `AggregatedEvent<T>` | Aggregation types |
|
|
1281
|
+
| `EventHistory<T>`, `ReplayOptions<T>` | History types |
|
|
1282
|
+
| `DomainEvent<A, T>`, `EventSourcedAggregate<I>` | Domain events |
|
|
1283
|
+
|
|
1284
|
+
### Reactive Programming *(v1.9.0)*
|
|
1285
|
+
|
|
1286
|
+
| Type | Description |
|
|
1287
|
+
|------|-------------|
|
|
1288
|
+
| `Observable<T>`, `Observer<T>`, `Subscription` | Observable pattern |
|
|
1289
|
+
| `Subject<T>`, `BehaviorSubject<T>`, `ReplaySubject<T>` | Subject types |
|
|
1290
|
+
| `OperatorFunction<T, R>`, `MapOperator`, `FilterOperator` | Operators |
|
|
1291
|
+
| `DebounceOptions`, `ThrottleOptions`, `RetryOptions` | Operator options |
|
|
1292
|
+
| `Stream<T>`, `StreamValue<T>`, `StreamError` | Stream types |
|
|
1293
|
+
| `Signal<T>`, `WritableSignal<T>`, `Computed<T>` | Signal types |
|
|
1294
|
+
| `Effect`, `EffectCallback`, `SignalOptions<T>` | Effect types |
|
|
1295
|
+
| `Scheduler`, `SchedulerAction<T>`, `SchedulerLike` | Scheduler types |
|
|
1296
|
+
| `BackpressureStrategy`, `BackpressureConfig` | Backpressure |
|
|
1297
|
+
| `Flow<T>`, `FlowState`, `FlowController<T>` | Flow types |
|
|
1298
|
+
| `Channel<T>`, `BufferedChannel<T>`, `ChannelConfig<T>` | Channel types |
|
|
1299
|
+
| `CombineLatest<T>`, `Zip<T>`, `ForkJoinResult<T>` | Combinators |
|
|
1300
|
+
|
|
1301
|
+
### Ultimate Type Utilities *(v1.10.0)*
|
|
1302
|
+
|
|
1303
|
+
| Type | Description |
|
|
1304
|
+
|------|-------------|
|
|
1305
|
+
| `Perfect<T>`, `Complete<T>`, `Final<T>`, `Ultimate<T>` | Ultimate type constraints |
|
|
1306
|
+
| `PerfectPick<T, K>`, `PerfectOmit<T, K>`, `PerfectPartial<T>`, `PerfectRequired<T>` | Perfect operations |
|
|
1307
|
+
| `CompleteKeys<T>`, `CompleteValues<T>`, `CompleteEntries<T>` | Completeness types |
|
|
1308
|
+
| `Finalize<T>`, `Frozen<T>`, `Sealed<T>`, `Locked<T>` | Finalization types |
|
|
1309
|
+
| `Validate<T, Schema>`, `Validated<T, Schema>`, `ValidationResult<T>` | Type validation |
|
|
1310
|
+
| `AssertType<T, U>`, `AssertShape<T, Shape>`, `AssertKeys<T, K>` | Type assertions |
|
|
1311
|
+
|
|
1312
|
+
### Higher-Kinded Types *(v1.10.0)*
|
|
1313
|
+
|
|
1314
|
+
| Type | Description |
|
|
1315
|
+
|------|-------------|
|
|
1316
|
+
| `HKT<F, A>`, `Kind<F, A>`, `Kind2<F, A, B>`, `Kind3<F, A, B, C>` | Higher-kinded types |
|
|
1317
|
+
| `Recurse<T, N>`, `RecurseWhile<T, Cond, F>`, `RecurseUntil<T, Cond, F>` | Type recursion |
|
|
1318
|
+
| `Memoize<T>`, `Memoized<T>`, `CacheKey<T>`, `CacheValue<T>` | Type memoization |
|
|
1319
|
+
| `PartialApply<F, Args>`, `Curried<F>`, `Uncurried<F>`, `FlipArgs<F>` | Partial application |
|
|
1320
|
+
| `Compose<F, G>`, `Pipe<F, G>`, `ComposeAll<Fs>`, `PipeAll<Fs>` | Type composition |
|
|
1321
|
+
| `Fix<F>`, `Unfix<F, T>`, `Mu<F>`, `Nu<F>` | Fixpoint types |
|
|
1322
|
+
| `ChurchNumeral`, `ChurchBoolean`, `ChurchList<T>`, `ChurchPair<A, B>` | Church encoding |
|
|
1323
|
+
| `Functor<F>`, `Apply<F>`, `Applicative<F>`, `Monad<F>` | Type classes |
|
|
1324
|
+
| `Either<L, R>`, `Maybe<T>`, `Left<L>`, `Right<R>`, `Just<T>`, `Nothing` | Algebraic types |
|
|
1325
|
+
|
|
1326
|
+
### Framework Integrations *(v1.10.0)*
|
|
1327
|
+
|
|
1328
|
+
| Type | Description |
|
|
1329
|
+
|------|-------------|
|
|
1330
|
+
| `AngularComponent<T>`, `AngularService<T>`, `AngularPipe<I, O>`, `AngularDirective<T>` | Angular types |
|
|
1331
|
+
| `AngularModule`, `AngularSignal<T>`, `AngularComputed<T>`, `AngularEffect` | Angular utilities |
|
|
1332
|
+
| `SvelteComponent<P, E, S>`, `SvelteStore<T>`, `SvelteAction<E, P>`, `SvelteTransition` | Svelte types |
|
|
1333
|
+
| `EmberComponent<A>`, `EmberService<T>`, `EmberRoute<M, P>`, `EmberController<M, Q>` | Ember types |
|
|
1334
|
+
| `BackboneModel<A>`, `BackboneCollection<M>`, `BackboneView<M, E>`, `BackboneRouter` | Backbone types |
|
|
1335
|
+
| `PreactComponent<P, S>`, `PreactFC<P>`, `PreactHooks`, `PreactContext<T>` | Preact types |
|
|
1336
|
+
| `SolidComponent<P>`, `SolidSignal<T>`, `SolidResource<T>`, `SolidMemo<T>` | Solid types |
|
|
1337
|
+
| `LitElement<P>`, `LitPropertyConfig<T>`, `LitDecorator`, `LitCustomElement<T>` | Lit types |
|
|
1338
|
+
| `StencilComponent<P, S>`, `StencilProp<T>`, `StencilEvent<T>`, `StencilEventEmitter<T>` | Stencil types |
|
|
1339
|
+
| `AlpineComponent<D, M>`, `AlpineStore<S>`, `AlpineMagic<T>`, `AlpineReactive<T>` | Alpine.js types |
|
|
1340
|
+
|
|
1341
|
+
### Build Tools *(v1.10.0)*
|
|
1342
|
+
|
|
1343
|
+
| Type | Description |
|
|
1344
|
+
|------|-------------|
|
|
1345
|
+
| `WebpackConfig`, `WebpackModule`, `WebpackPlugin`, `WebpackLoader` | Webpack types |
|
|
1346
|
+
| `WebpackDevServer`, `WebpackOptimization`, `WebpackSplitChunks` | Webpack utilities |
|
|
1347
|
+
| `ViteConfig`, `VitePlugin`, `ViteBuild`, `ViteServer`, `ViteDevServer` | Vite types |
|
|
1348
|
+
| `RollupConfig`, `RollupOutput`, `RollupPlugin`, `RollupBuild` | Rollup types |
|
|
1349
|
+
| `ESBuildOptions`, `ESBuildPlugin`, `ESBuildResult`, `ESBuildMessage` | esbuild types |
|
|
1350
|
+
| `ParcelConfig`, `ParcelTransformer`, `ParcelNamer` | Parcel types |
|
|
1351
|
+
| `TurbopackConfig`, `TurbopackLoader`, `TurbopackPlugin` | Turbopack types |
|
|
1352
|
+
| `BabelConfig`, `BabelPreset<T>`, `BabelPlugin<T>`, `BabelTransformResult` | Babel types |
|
|
1353
|
+
| `SWCConfig`, `SWCParser`, `SWCTransform`, `SWCMinifyOptions` | SWC types |
|
|
1354
|
+
|
|
1355
|
+
### DevOps *(v1.10.0)*
|
|
1356
|
+
|
|
1357
|
+
| Type | Description |
|
|
1358
|
+
|------|-------------|
|
|
1359
|
+
| `Dockerfile`, `DockerImage`, `DockerContainer`, `DockerCompose` | Docker types |
|
|
1360
|
+
| `DockerComposeService`, `DockerComposeBuild`, `DockerComposeDeploy` | Docker Compose |
|
|
1361
|
+
| `K8sDeployment`, `K8sService`, `K8sPod`, `K8sConfigMap`, `K8sSecret`, `K8sIngress` | Kubernetes types |
|
|
1362
|
+
| `K8sContainer`, `K8sVolume`, `K8sProbe`, `K8sAffinity`, `K8sToleration` | K8s utilities |
|
|
1363
|
+
| `TerraformResource<T>`, `TerraformModule<T>`, `TerraformProvider<T>` | Terraform types |
|
|
1364
|
+
| `TerraformVariable<T>`, `TerraformOutput`, `TerraformConfig` | Terraform utilities |
|
|
1365
|
+
| `AnsiblePlaybook`, `AnsibleTask`, `AnsibleRole`, `AnsibleInventory` | Ansible types |
|
|
1366
|
+
| `GitHubWorkflow`, `GitHubJob`, `GitHubStep` | GitHub Actions |
|
|
1367
|
+
| `GitLabPipeline`, `GitLabJob`, `GitLabCache`, `GitLabArtifacts` | GitLab CI |
|
|
1368
|
+
| `JenkinsPipeline`, `JenkinsStage`, `JenkinsStep` | Jenkins types |
|
|
1369
|
+
| `CircleCIConfig`, `CircleCIJob`, `CircleCIStep` | CircleCI types |
|
|
1370
|
+
| `AWSResource<T>`, `AzureResource<T>`, `GCPResource<T>`, `CloudFormation` | Cloud types |
|
|
1371
|
+
| `HelmChart`, `HelmRelease`, `HelmValues` | Helm types |
|
|
1372
|
+
|
|
1373
|
+
### Quality Assurance *(v1.10.0)*
|
|
1374
|
+
|
|
1375
|
+
| Type | Description |
|
|
1376
|
+
|------|-------------|
|
|
1377
|
+
| `ESLintConfig`, `ESLintRule`, `ESLintPlugin`, `ESLintResult` | ESLint types |
|
|
1378
|
+
| `PrettierConfig`, `FormatOptions`, `FormatResult` | Prettier types |
|
|
1379
|
+
| `CodeAnalysis<T>`, `ComplexityReport`, `CodeMetrics` | Code analysis |
|
|
1380
|
+
| `MaintainabilityIndex`, `TechnicalDebt<T>`, `DebtItem` | Code quality |
|
|
1381
|
+
| `SecurityAudit<T>`, `Vulnerability`, `SecurityReport<T>` | Security types |
|
|
1382
|
+
| `DependencyAudit<T>`, `OutdatedPackage`, `LicenseCheck<T>` | Dependency types |
|
|
1383
|
+
| `PerformanceAudit<T>`, `BundleAnalysis<T>`, `PerformanceMetric` | Performance types |
|
|
1384
|
+
| `LighthouseScore`, `QualityGate<T>`, `GateCondition`, `GateResult` | Quality gates |
|
|
1385
|
+
| `TestCoverage`, `TestResult`, `TestSummary`, `TestPerformance` | Testing types |
|
|
1386
|
+
| `CodeQualityMetrics`, `MaintainabilityMetrics`, `SecurityMetrics` | Quality metrics |
|
|
1387
|
+
|
|
1388
|
+
### Architecture Patterns *(v1.10.0)*
|
|
1389
|
+
|
|
1390
|
+
| Type | Description |
|
|
1391
|
+
|------|-------------|
|
|
1392
|
+
| `Layer<T>`, `PresentationLayer<T>`, `BusinessLayer<T>`, `DataAccessLayer<T>` | Layered architecture |
|
|
1393
|
+
| `Entity<T>`, `UseCase<I, O>`, `Gateway<T>`, `Presenter<I, O>` | Clean architecture |
|
|
1394
|
+
| `Port<M>`, `InboundPort<I, O>`, `OutboundPort<I, O>`, `Adapter<P>` | Hexagonal architecture |
|
|
1395
|
+
| `Hexagon<D, I, O>`, `Core<D>` | Hexagonal core |
|
|
1396
|
+
| `Aggregate<E, Es>`, `ValueObject<T>`, `DomainEvent<D>`, `Repository<E, I>` | DDD types |
|
|
1397
|
+
| `DomainService<I, O>`, `BoundedContext<A, R, S, E>`, `ContextMap<C>` | DDD utilities |
|
|
1398
|
+
| `ContextRelationship`, `ContextBoundary` | Bounded context |
|
|
1399
|
+
| `Command<T, P>`, `Query<T, P>`, `CommandHandler<C>`, `QueryHandler<Q>` | CQRS types |
|
|
1400
|
+
| `CommandBus`, `QueryBus` | CQRS bus |
|
|
1401
|
+
| `EventStream<E>`, `EventStore<E>`, `Projection<E, S>`, `Saga<S>` | Event sourcing |
|
|
1402
|
+
| `CoreSystem<F>`, `PluginInterface<P>`, `ExtensionPoint<E>` | Microkernel |
|
|
1403
|
+
| `ProcessingUnit<D>`, `VirtualizedMiddleware<P>`, `DataGrid<D>` | Space-based |
|
|
1404
|
+
|
|
1405
|
+
### Data Formats *(v1.10.0)*
|
|
1406
|
+
|
|
1407
|
+
| Type | Description |
|
|
1408
|
+
|------|-------------|
|
|
1409
|
+
| `JSONValue`, `JSONSchema<T>`, `JSONPath<T>`, `JSONPatch<T>` | JSON types |
|
|
1410
|
+
| `XMLNode<T>`, `XMLAttribute<T>`, `XMLSchema<T>`, `XPath<T>` | XML types |
|
|
1411
|
+
| `YAMLValue<T>`, `YAMLNode<T>`, `YAMLPath<T>` | YAML types |
|
|
1412
|
+
| `CSVRow<T>`, `CSVHeader`, `CSVConfig<T>` | CSV types |
|
|
1413
|
+
| `TOMLValue<T>`, `TOMLTable<T>`, `TOMLKey` | TOML types |
|
|
1414
|
+
| `ProtoMessage<T>`, `ProtoField<T>`, `ProtoEnum<T>`, `ProtoService<T>` | Protocol Buffers |
|
|
1415
|
+
| `MessagePackValue<T>`, `MessagePackType` | MessagePack |
|
|
1416
|
+
| `AvroSchema<T>`, `AvroRecord<T>`, `AvroField<T>` | Avro types |
|
|
1417
|
+
| `BSONValue<T>`, `BSONDocument<T>` | BSON types |
|
|
1418
|
+
|
|
1419
|
+
### Accessibility *(v1.10.0)*
|
|
1420
|
+
|
|
1421
|
+
| Type | Description |
|
|
1422
|
+
|------|-------------|
|
|
1423
|
+
| `ARIARole`, `ARIARoleCategory`, `ARIAProperty`, `ARIAState` | ARIA core types |
|
|
1424
|
+
| `AccessibilityProps`, `ButtonAccessibilityProps`, `InputAccessibilityProps` | Accessibility props |
|
|
1425
|
+
| `FocusState`, `FocusTrap<T>`, `FocusManager<T>`, `FocusableElement` | Focus types |
|
|
1426
|
+
| `ScreenReaderAnnouncement`, `LiveRegion<T>`, `VisuallyHiddenProps` | Screen reader |
|
|
1427
|
+
| `KeyboardNavigation<T>`, `KeyHandler<T>`, `KeyBinding`, `KeyCode` | Keyboard navigation |
|
|
1428
|
+
| `ContrastRatio`, `WCAGLevel`, `ColorContrast<T>`, `ColorContrastResult` | Color contrast |
|
|
1429
|
+
| `MotionPreference`, `AnimationOptions<T>`, `MotionSafeAnimation<T>` | Motion sensitivity |
|
|
1430
|
+
| `AccessibilityNode<T>`, `AccessibilityTree<T>` | Accessibility tree |
|
|
1431
|
+
| `AccessibilityViolation`, `AccessibilityCheckResult`, `WCAGCriterion` | Accessibility check |
|
|
1432
|
+
| `FormFieldAccessibility`, `LandmarkType`, `AltText`, `AccessibleName` | Form & landmarks |
|
|
1433
|
+
|
|
1434
|
+
### Final Polish *(v1.10.0)*
|
|
1435
|
+
|
|
1436
|
+
| Type | Description |
|
|
1437
|
+
|------|-------------|
|
|
1438
|
+
| `Optimize<T>`, `OptimizeDeep<T>`, `OptimizeFor<T, Target>` | Type optimization |
|
|
1439
|
+
| `SimplifyAll<T>`, `FlattenAll<T>`, `NormalizeAll<T>`, `CleanAll<T>` | Simplification |
|
|
1440
|
+
| `Deduplicate<T>`, `RemoveDuplicates<T>`, `Unique<T, S>` | Deduplication |
|
|
1441
|
+
| `Minify<T>`, `Shorten<T>`, `Compact<T>`, `CompactDeep<T>` | Minification |
|
|
1442
|
+
| `DebugType<T>`, `ExplainType<T>`, `PrettyType<T>`, `ShowType<T>` | Debugging |
|
|
1443
|
+
| `TypeInfo<T>`, `TypeStructure<T>`, `TypePath<T, P>`, `TypeAtPath<T, P>` | Type analysis |
|
|
1444
|
+
| `ValidateAll<T, S>`, `CheckAll<T, C>`, `VerifyAll<T, S>`, `TestAll<T, P>` | Validation |
|
|
1445
|
+
| `Document<T, M>`, `Describe<T, D>`, `Example<T, E>`, `Annotate<T, A>` | Documentation |
|
|
1446
|
+
| `Finalize<T>`, `Freeze<T>`, `Lock<T>`, `Seal<T>`, `Immutable<T>` | Finalization |
|
|
1447
|
+
| `IsAny<T>`, `IsNever<T>`, `IsUnknown<T>`, `IsNullable<T>` | Type checks |
|
|
1448
|
+
| `IsArray<T>`, `IsObject<T>`, `IsFunction<T>`, `IsPrimitive<T>` | Type guards |
|
|
1449
|
+
| `IsUnion<T>`, `IsIntersection<T>`, `IsOptional<T, K>`, `IsReadonly<T, K>` | Type utilities |
|
|
1450
|
+
| `Equals<T, U>`, `Extends<T, U>`, `HasKey<T, K>`, `HasKeys<T, K>` | Type comparisons |
|
|
1451
|
+
|
|
1151
1452
|
## Examples
|
|
1152
1453
|
|
|
1153
1454
|
```typescript
|
package/dist/index.cjs
CHANGED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
+
|
|
3
|
+
//#region src/accessibility/index.ts
|
|
4
|
+
/**
|
|
5
|
+
* WCAG touch target requirements
|
|
6
|
+
*/
|
|
7
|
+
const WCAGTouchTargetRequirements = {
|
|
8
|
+
minWidth: 44,
|
|
9
|
+
minHeight: 44,
|
|
10
|
+
minSpacing: 0
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
//#endregion
|
|
14
|
+
exports.WCAGTouchTargetRequirements = WCAGTouchTargetRequirements;
|