Skip to content

yaamwebsolutions/tchomb-shared-types

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

@tchomb/shared-types

Shared TypeScript types and DTOs for the Tchomb video platform ecosystem.

Installation

npm install @tchomb/shared-types

Types

Type Description
FeedVideo Video/image in the feed with creator info and stats
FeedResponse Paginated feed (videos + cursor)
ProfileSummary Compact profile for search results and suggestions
ProfileFull Full profile with stats
TrendingTag Hashtag with post count
UploadResult Upload response (video ID + message)
PlayerSource Media asset descriptor for the player

Usage

import type { FeedVideo, FeedResponse } from '@tchomb/shared-types';

const response: FeedResponse = await fetchFeed();
const video: FeedVideo = response.videos[0];

Part of Tchomb

This package is part of the Tchomb open-source ecosystem:

Package Description
@tchomb/shared-types Shared TypeScript types and DTOs
@tchomb/ui Design system — components + tokens
@tchomb/api-client Typed HTTP client
@tchomb/upload Upload state machine
@tchomb/player Vertical video player

License

MIT

About

Tchomb shared TypeScript types and DTOs for the video platform ecosystem

Resources

License

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors