JSPM

domain-glossary-procedure

1.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 16
  • Score
    100M100P100Q64521F
  • License MIT

A declaration of intuitive and unambiguous **Procedure** resources and mechanisms.

Package Exports

  • domain-glossary-procedure
  • domain-glossary-procedure/dist/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (domain-glossary-procedure) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

domain-glossary-procedure

test publish

A declaration of intuitive and unambiguous Procedure resources and mechanisms.

purpose

declare a ubiquitious language for

  • resources related to Procedures

    • Procedure
  • mechanisms related to Procedures

    • etc

install

npm install domain-glossary-procedure

use

ProcedureInput

  // given: a simple procedure
  const doIt: Procedure<{ reason: string }, void, { done: true }> = (input: {
    reason: string;
  }) => {
    return { done: true };
  };

  // then: can extract the output type
  const reason: ProcedureInput<typeof doIt>['reason'] = '821'; // ✅ knows that reason is a string
  const reason: ProcedureInput<typeof doIt>['reason'] = 821; // 🛑 errors that reason is not a number