← All procedures

quantity.isUnbounded

No description.

CLI
Package
@procedures/quantity · README
Path
["quantity","isUnbounded"]
CLI
mark quantity isUnbounded --extent <object | object>
As data
{"$proc":["quantity","isUnbounded"],"input":{}}

Use it

In TypeScript

import { Client, LocalTransport, PROCEDURE_REGISTRY } from "@procedures/client";
import "@procedures/quantity/register"; // registers its procedures

const client = new Client(new LocalTransport({ registry: PROCEDURE_REGISTRY }));
const result = await client.exec(["quantity","isUnbounded"], { extent: "<extent>" });
console.log(JSON.stringify(result));

From the command line

$ mark quantity isUnbounded --extent <object | object>

As data, in a program

{
  "$proc": ["quantity", "isUnbounded"],
  "input": { "extent": "<extent>" }
}

Input

FieldTypeRequiredDefaultDescription
extentobject | objectyes

Output

The schema does not list fields (boolean).

JSON Schemas
{
  "input": {
    "type": "object",
    "properties": {
      "extent": {
        "anyOf": [
          {
            "type": "object",
            "properties": {
              "value": {
                "type": "number"
              },
              "unit": {
                "type": "string"
              }
            },
            "required": [
              "value",
              "unit"
            ],
            "additionalProperties": {}
          },
          {
            "type": "object",
            "properties": {
              "value": {
                "type": "string",
                "const": "infinite"
              },
              "unit": {
                "type": "string"
              }
            },
            "required": [
              "value",
              "unit"
            ],
            "additionalProperties": {}
          }
        ]
      }
    },
    "required": [
      "extent"
    ],
    "additionalProperties": false
  },
  "output": {
    "type": "boolean"
  }
}