@react-foundry/types-helpers
v0.2.4
Published
Types to aid in defining other types.
Readme
React Foundry - Types-Helpers
Types to aid in defining other types.
Using this package
First install the package into your project:
npm install -S -D @react-foundry/types-helpersThen use it in your code as follows:
import type { Maybe, Promised } from '@react-foundry/types-helpers';
const foo = (): Maybe<string> => {
if (something) {
return 'yes';
}
};
type Fn = (): Promised<string>;
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:
pnpm installBuilding
Build the package by compiling the source code.
npm run buildClean-up
Remove any previously built files.
npm run clean