UNPKG

@lifi/composer-sdk

Version:

Public Composer SDK for building and submitting flows

22 lines 594 B
const ref = (path) => ( // The brand is phantom, so the runtime value is the bare wire ref. This is // the only place a `TypedRef` is minted; the cast is what the brand buys. { $ref: path } ); const literal = (kind, value) => ({ kind, value }); const rawGuard = (kind, config = {}) => { if ("kind" in config) { throw new Error( `rawGuard: 'kind' must not appear in config (got "${String( config.kind )}"). Pass it as the first argument instead.` ); } return { ...config, kind }; }; export { literal, rawGuard, ref }; //# sourceMappingURL=raw.js.map