Skip to content

Interface: DataOrPathProps ​

Reusable optional data/path fields. Use DataOrPathRequiredProps for APIs that require at least one source.

Extended by ​

Properties ​

data? ​

optional data?: string

base64-encoded string

  • Useful for avoiding potential path/server issues

Example ​

ts
'image/png;base64,iVtDafDrBF[...]=' // pre-encoded image in base-64

path? ​

optional path?: string

URL or relative path

Example ​

ts
'https://onedrives.com/myimg.png` // retrieve image via URL
@example '/home/user/images/myimg.png` // retrieve image via local path