tm-shared
v0.1.6
Published
Shared API client, types, utils and constants for tm projects
Readme
tm-shared
Shared library for tm projects — API client, TypeScript types, utilities and constants.
Install
npm install tm-sharedUsage
import { initApiClient, getUser } from 'tm-shared/api'
import type { User } from 'tm-shared/types'
import { formatDate } from 'tm-shared/utils'
import { displayDateFormat } from 'tm-shared/constants'Subpath imports
| Import | Description |
| --------------------- | ---------------------- |
| tm-shared/api | API client and methods |
| tm-shared/types | TypeScript types |
| tm-shared/utils | Utility functions |
| tm-shared/constants | Constants |
Peer dependencies
- axios ^1.0.0
- dayjs ^1.0.0
- @reduxjs/toolkit" "^2.0.0
