Interface: ImageSlotHandlers
@faeyumbrea/obs-utils-api-types
@faeyumbrea/obs-utils-api-types / ImageSlotHandlers
Defined in: api.d.ts:200
Public compile-time contract for modules integrating with OBS Utils.
Properties
Section titled “Properties”extract
Section titled “extract”extract: (
data) =>string[]
Defined in: api.d.ts:202
Extract all image-ref strings from a component’s data field.
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”string[]
rewrite
Section titled “rewrite”rewrite: (
data,pathMap) =>string
Defined in: api.d.ts:204
Rewrite all image refs in data using the path-map. Return the new data string.
Parameters
Section titled “Parameters”string
pathMap
Section titled “pathMap”ReadonlyMap<string, string>
Returns
Section titled “Returns”string