createDeepLinkString

See source code

Converts 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

NameDescription

deepLink

the deep link descriptor

Returns

string

a url-safe string

Prev
counterClockwiseAngleDist
Next
createSessionStateSnapshotSignal