@nexim/upload-types
Version:
TypeScript types and interfaces for Nexim Media Upload Service, including image preset configurations and file handling types
57 lines (40 loc) • 1.45 kB
Markdown
# @nexim/upload-types





## Overview
`@nexim/upload-types` provides TypeScript type definitions and interfaces for the Nexim Media Upload ecosystem. It includes types for image preset configurations, file handling, and common interfaces used across the SDK and service.
## Features
- 📝 TypeScript type definitions
- 🎯 Image preset configurations
- 📦 File handling types
- 🔄 State machine types
- 🛠️ Utility types
## Installation
```sh
npm install @nexim/upload-types
# Or using yarn
yarn add @nexim/upload-types
```
## Usage
```typescript
import type { FileDetail, UploadImagePreset } from '@nexim/upload-types';
// Use preset types
const preset: UploadImagePreset = {
format: 'webp',
width: 800,
quality: 80,
};
// Work with file details
const fileInfo: FileDetail = {
name: 'image.jpg',
size: 1024,
type: 'image/jpeg',
};
```
## Documentation
For detailed type documentation and definitions, please refer to the [documentation](./docs/README.md).
## License
This project is licensed under the [AGPL-3.0 License](LICENSE).