Shared TypeScript type definitions for the StreamFarm project ecosystem.
This package contains data types and interfaces that are used across multiple StreamFarm projects and services.
It helps ensure type safety and consistency between backend and frontend code.
bash npm install @streamfarm/types
or
yarn add @streamfarm/types
Import types into your TypeScript code:
typescript import type { UserProfile, CommentEvent, VideoMeta } from '@streamfarm/types';
// Example usage function handleComment(event: CommentEvent) { // your logic here }```
See the src directory for full list of available types.
- Fork or clone this repository.
- Add or modify types in
src/. - Run
npm run lintandnpm run typecheckbefore submitting a PR. - Document major changes in this README if needed.
- Open a pull request!
To publish a new version (requires npm org permissions):
bash npm version patch|minor|major npm publish --access public
MIT
- Alexander S and the StreamFarm Team
- Thanks to all contributors.
Actively maintained. Contributions and suggestions welcome!