Appearance
Types 💅 ​
Types allows developers to lift all type definitions to a stand alone package. This comes in handy when you have shared configs/payloads/etc... between different applications.
Usage ​
ts
import { SaveOrderPayload } from '@fingermarkglobal/types';
const saveOrder = async (payload: SaveOrderPayload): Promise<unknown> => {
//..
};Gotcha's ​
Typescript:
This package can only be imported in .ts files and will not work with vanilla JS.
Structure:
The package should definitely be considered a "living package" and might need some fine tuning in terms of structure and patterns.