@procedures/quantity 0.0.0-stage → 0.62.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/src/module.ts ADDED
@@ -0,0 +1,27 @@
1
+ /**
2
+ * The procedures of `@mark1russell7/quantity` as data. An import of this file registers nothing.
3
+ *
4
+ * The manifest comes from the types of the home: `node scripts/wraps.ts generate` writes
5
+ * `src/manifest.ts`. No procedure is written by hand, so no procedure can drift from its function.
6
+ */
7
+
8
+ import * as quantity from "@mark1russell7/quantity";
9
+ import { registerModules, PROCEDURE_REGISTRY, type ProcedureModule, type ProcedureRegistry } from "@procedures/client";
10
+ import { exportsModule } from "@procedures/compiler";
11
+ import { manifest } from "./manifest.js";
12
+
13
+ /** The manifest of the procedures: the names, the schemas, the effects and each exemption with its reason. */
14
+ export { manifest as quantityManifest };
15
+
16
+ /** The procedures `quantity.*`: one for each function of the home with JSON inputs and a JSON output. */
17
+ export const quantityModule: ProcedureModule = exportsModule(manifest, quantity, { name: "@procedures/quantity" });
18
+
19
+ export default quantityModule;
20
+
21
+ /**
22
+ * This function registers the procedures of `@procedures/quantity` in a registry. The default is
23
+ * the global registry.
24
+ */
25
+ export function registerQuantityProcedures(registry: ProcedureRegistry = PROCEDURE_REGISTRY): void {
26
+ registerModules(registry, [quantityModule]);
27
+ }
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Importing this file registers the procedures of @procedures/quantity in the global registry:
3
+ * `import "@procedures/quantity/register"`. The package root registers nothing.
4
+ */
5
+
6
+ import { registerQuantityProcedures } from "./module.js";
7
+
8
+ export * from "./module.js";
9
+
10
+ registerQuantityProcedures();