Skip to content

Official TypeScript type definitions for VTubers.TV services. This package provides essential type definitions and utilities for type-safe development across the VTubers.TV ecosystem.

License

AGPL-3.0, Unknown licenses found

Licenses found

AGPL-3.0
LICENSE
Unknown
LICENSE-VCL.md
Notifications You must be signed in to change notification settings

VTubersTV/types

@vtubers.tv/types

Official TypeScript type definitions for VTubers.TV services. This package provides essential type definitions and utilities for type-safe development across the VTubers.TV ecosystem.

Features

  • 🎯 Comprehensive type definitions
  • 🔧 Utility types for common patterns
  • 🛡️ Type-safe event handling
  • 📦 Zero dependencies
  • 📚 Well-documented with examples

Installation

Since this is an internal package, install it directly from the GitHub repository:

npm install git://github.com/vtuberstv/types.git
# or
yarn add git://github.com/vtuberstv/types.git
# or
pnpm add git://github.com/vtuberstv/types.git

Quick Start

import type { Result, APIResponse, UUID } from '@vtubers.tv/types'

// Use Result type for operations that can fail
async function fetchUser(id: UUID): Promise<Result<User>> {
  // Implementation
}

// Use APIResponse for standardized API responses
const response: APIResponse<User> = {
  status: 200,
  data: { id: "123", name: "John" },
  timestamp: "2024-03-20T15:30:00Z"
}

Documentation

The package includes comprehensive documentation for all type definitions:

See the full documentation for detailed examples and usage guidelines.

Type Categories

Core Types

  • Primitive type aliases (UUID, ISO8601DateTime, etc.)
  • Nullability helpers (Nullable, Optional, etc.)
  • Promise & Async helpers
  • Readonly & Mutable transforms

API Types

  • Result pattern for operation results
  • API response wrappers
  • Pagination types

Event System

  • Type-safe event emitter
  • Event handler types
  • Event map definitions

Data Structures

  • Tuple operations
  • Array utilities
  • Dictionary types
  • Union and intersection operations

Requirements

  • TypeScript >= 4.5
  • Node.js >= 16.0.0

Contributing

  1. Fork the repository
  2. Create your feature branch
  3. Add your changes
  4. Update documentation
  5. Submit a pull request

License

This project is licensed under the AGPL-3.0 License and the VTubers.TV Commercial License (VCL) v1.0. See the LICENSE and LICENSE-VCL file for details.

(Or view the LICENSES.md file for a complete list of licenses)

Support

For support, please open an issue in the GitHub repository.

About

Official TypeScript type definitions for VTubers.TV services. This package provides essential type definitions and utilities for type-safe development across the VTubers.TV ecosystem.

Resources

License

AGPL-3.0, Unknown licenses found

Licenses found

AGPL-3.0
LICENSE
Unknown
LICENSE-VCL.md

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

 

Packages

No packages published