A collection of shared TypeScript types for use across multiple projects.
Install the package using npm or Yarn:
npm install @softfix/shared-types
or
yarn add @softfix/shared-types
Import and use the shared types in your TypeScript project:
import { AddressType, UserType } from "@softfix/shared-types";
const address: AddressType = {
street: "123 Main St",
city: "New York",
country: "USA",
};
const user: UserType = {
id: "123",
name: "John Doe",
email: "john@example.com",
};