Sanity Library Reference Docs
    Preparing search index...
    • Parse a GDR URI, returning undefined instead of throwing when the string is not a GDR (or is malformed). The "is this a GDR, and if so its parts" primitive — every "parse a ref, treat unparseable as not-a-GDR" call site routes through this rather than re-spelling the try/catch.

      Parameters

      • uri: string

      Returns ParsedGdr | undefined