Index > utils

Namespace: utils

Miscellaneous utilities for Grit workflows.

Functions

getPatternDescription

getPatternDescription(pattern): string

Given a pattern definition, compute an optimized description

Parameters

ParameterType
patternPick< ResolvedGritPattern, "localName" | "description" >

Returns

string


getPatternTitle

getPatternTitle(pattern): string

Given a pattern definition, compute a title

Parameters

ParameterType
patternPick< ResolvedGritPattern, "title" | "localName" >

Returns

string


getRootWorkflowId

getRootWorkflowId(workflowId): undefined | string

Given a workflow ID, get the root workflow ID.

Parameters

ParameterType
workflowIdstring

Returns

undefined | string


uuid

uuid(): string

Generate a pseudo-random UUID. NOTE: This function is not cryptographically secure.

Returns

string


Generated using TypeDoc and typedoc-plugin-markdown