1.0.1 • Published 10 months ago

procedure-fns v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago

procedure-fns

test publish

easily create procedures within a pit-of-success

install

npm install

use

for example

const procedure: Procedure<{ exid: string }, { dbConnection: DatabaseConnection }, { flag: Flag } | null> = (input, context) => {...}

const input: ProcedureInput<typeof procedure> = { exid: '__exid__' };

const procedureWithExpect = withExpectOutkey(procedure);

const { flag } = await procedureWithExpect({ exid: 'usa' }, context).expect('flag', 'isPresent');
1.0.1

10 months ago

1.0.0

11 months ago