UNPKG

@swizzyweb/swizzy-web-service

Version:

Web service framework for swizzy dyn serve

17 lines (16 loc) 428 B
/** * Directly returns the input state, no validation. */ export async function DefaultStateExporter(inState) { const { state } = inState; return state; } /** * Simple state converter that directly translates the input to output * with mathing parameters. * ie: {a: 1, b: 2, c: 3} -> {a: 1, c: 3} */ export async function InheritedStateExporter(inState) { const { state } = inState; return { ...state }; }