Skip to content

Final Stability & Polish ​

Final stability improvements and polish for production readiness.

StabilityReport ​

Comprehensive report on the stability of all types.

typescript
import type { StabilityReport } from 'uni-types'

type Report = StabilityReport<{
	version: '1.13.0'
	totalTypes: 2500
	stableTypes: 2450
	betaTypes: 30
	experimentalTypes: 20
	overallStability: 'production-ready'
	typeCoverage: 99.5
	testPassRate: 100
}>

StabilityLevel ​

Defines the stability classification of a type.

typescript
import type { StabilityLevel } from 'uni-types'

type Stable = StabilityLevel<'stable'>
type Beta = StabilityLevel<'beta'>
type Experimental = StabilityLevel<'experimental'>
type Deprecated = StabilityLevel<'deprecated'>
type Alpha = StabilityLevel<'alpha'>

PolishResult ​

Result of applying final polish to a type.

typescript
import type { PolishResult } from 'uni-types'

type Result = PolishResult<{
	originalType: { a?: string | null; b: number | undefined }
	polishedType: { a: string; b: number }
	changes: ['stripped nullish', 'made required', 'simplified union']
	improvements: 3
	backwardsCompatible: true
}>

RegressionTest ​

Type-level regression test definition.

typescript
import type { RegressionTest } from 'uni-types'

type Test = RegressionTest<{
	name: 'DeepPartial-nested-arrays'
	input: { a: { b: string[] } }
	expected: { a?: { b?: string[] } }
	version: '1.13.0'
	status: 'passing'
	lastRun: string
}>

EdgeCase ​

Documents and handles edge cases in type behavior.

typescript
import type { EdgeCase } from 'uni-types'

type Case = EdgeCase<{
	name: 'DeepPartial-with-never'
	input: never
	expected: never
	handled: true
	documented: true
	test: 'passing'
}>

TypeAudit ​

Audit results for type quality and consistency.

typescript
import type { TypeAudit } from 'uni-types'

type Audit = TypeAudit<{
	version: '1.13.0'
	auditedTypes: 2500
	issues: 0
	warnings: 5
	suggestions: 12
	consistencyScore: 98
	namingConventions: 'consistent'
	documentationCoverage: 95
}>

ProductionReadiness ​

Final assessment of production readiness.

typescript
import type { ProductionReadiness } from 'uni-types'

type Ready = ProductionReadiness<{
	version: '1.13.0'
	criteria: {
		typeSafety: 'passed'
		performance: 'passed'
		documentation: 'passed'
		testing: 'passed'
		migration: 'passed'
		betaFeedback: 'passed'
	}
	overallStatus: 'ready'
	recommended: true
}>

QualityScore ​

Composite quality score across multiple dimensions.

typescript
import type { QualityScore } from 'uni-types'

type Score = QualityScore<{
	typeSafety: 99
	performance: 95
	documentation: 95
	testing: 98
	developerExperience: 97
	compatibility: 100
	overall: 97
}>

Released under the MIT License.