Types to aid in defining other types.
npm install @react-foundry/types-helpersReact Foundry - Types-Helpers
=============================
Types to aid in defining other types.
Using this package
------------------
First install the package into your project:
``shell`
npm install -S -D @react-foundry/types-helpers
Then use it in your code as follows:
`ts
import type { Maybe, Promised } from '@react-foundry/types-helpers';
const foo = (): Maybe
if (something) {
return 'yes';
}
};
type Fn = (): Promised
const bar: Fn = async () => 'result';
const baz: Fn = () => 'result';
`
Working on this package
-----------------------
Before working on this package you must install its dependencies using
the following command:
`shell`
pnpm install
Build the package by compiling the source code.
`shell`
npm run build
Remove any previously built files.
`shell``
npm run clean