@mysetup/types
v2.0.14
Published
Shared TypeScript types for client and server applications.
Downloads
96
Maintainers
Readme
@mysetup/types
Shared TypeScript types, enums, and constants used across applications.
Installation
pnpm add @mysetup/typesSupported libraries and runtimes
| Supported | Notes | | --------- | --------------------------------------------- | | Vite | Full support | | Next.js | Full support | | Node.js | Full support | | React | Works in React apps that consume shared types |
Usage
import { Breakpoint, BreakpointSize } from "@mysetup/types";
import type { AlertType } from "@mysetup/types";
const alert: AlertType = "success";
const mobile = Breakpoint.Small;
const mediumWidth = BreakpointSize.md;Exports
- alert and brand types
- breakpoint enums and sizes
- client and service context types
- environment helpers
- database and size helpers
