Skip to content

ehmpathy/procedure-fns

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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');