createDeepLinkString
See source codeConverts a deep link descriptor to a url-safe string
function createDeepLinkString(deepLink: TLDeepLink): string
Example
const url = `https://example.com?d=${createDeepLinkString({ type: 'shapes', shapeIds: ['shape:1', 'shape:2'] })}`
navigator.clipboard.writeText(url)
Parameters
Name | Description |
---|---|
| the deep link descriptor |
Returns
string
a url-safe string
Prev
counterClockwiseAngleDistNext
createSessionStateSnapshotSignal