@mocanvas/editor · function

parseDeepLinkString

declare function parseDeepLinkString(str: string): TLDeepLink

Decode a string produced by createDeepLinkString.

Throws on anything it does not understand rather than guessing: a link that silently decodes to the wrong place is worse than one that visibly fails, and the caller (a router) is the only code able to decide what to show instead.

Mentioned here

mocanvas is built by Symbio. Free for non-commercial, non-profit and development use; commercial use needs an agreement. Not affiliated with or endorsed by tldraw.