@umah-creative/browser-native-types
v0.1.0
Published
Shared TypeScript types for @umah-creative/browser-native packages.
Maintainers
Readme
@umah-creative/browser-native-types
A shared TypeScript types package for the @umah-creative/browser-native ecosystem. Provides type definitions for the core APIs and React hooks, allowing strong typing across packages without duplicating code.
Installation
pnpm add @umah-creative/browser-native-typesNote: This package provides shared TypeScript types used across the
@umah-creative/browser-nativeecosystem. Direct imports are generally only needed if you want types without importing the actual functionality.
Usage
import type {
ClipboardOptions,
NotificationOptions,
} from '@umah-creative/browser-native-types';
function example(options: ClipboardOptions) {
// Strongly typed clipboard options
}import type { UseClipboardReturn } from '@umah-creative/browser-native-types';
// Use with React hooks
const result: UseClipboardReturn = { copy: () => {}, isCopied: false };Contributing
- Fork the repository
- Run
pnpm install - Make your changes in
packages/types - Run
pnpm buildandpnpm test - Submit a pull request
License
MIT © Umah Creative
