@metreeca/blue - v0.13.1
    Preparing search index...

    Function getStateId

    • Retrieves the identifier of a state.

      Type Parameters

      Parameters

      • shape: S

        The resource shape state conforms to, possibly deferred to break definition cycles

      • state: State<S>

        The state to read

      Returns Optional<string>

      The identifier state states, or undefined where shape declares no id member or state states none

      TraceError Where state doesn't conform to shape, where a deferred definition reaches itself with no link to break the cycle, or where it states a target that doesn't narrow the one the link it is reached through overrides, as a re-pointed target must extend the one it replaces