Appearance
Interface: DataOrPathProps ​
Reusable optional data/path fields. Use DataOrPathRequiredProps for APIs that require at least one source.
Extended by ​
Properties ​
data? ​
optionaldata?:string
base64-encoded string
- Useful for avoiding potential path/server issues
Example ​
ts
'image/png;base64,iVtDafDrBF[...]=' // pre-encoded image in base-64path? ​
optionalpath?: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