@softfix/shared-types

v1.0.1

Published

A collection of shared TypeScript types for use across multiple projects.

Readme

@softfix/shared-types

A collection of shared TypeScript types for use across multiple projects.

Installation

Install the package using npm or Yarn:

npm install @softfix/shared-types

or

yarn add @softfix/shared-types

Usage

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: "[email protected]",
};