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