valToResource | @tomic

Function valToResource

  • valToResource(val: JSONValue): string | Resource
  • Returns either the URL of the resource, or the NestedResource itself.

    Parameters

    Returns string | Resource