Skip to content

Vault.on('raw') method

Vault › on(‘raw’)

Unofficial

Triggered whenever a file gets loaded internally

Signature:

on(name: "raw", callback: (path: string) => void, ctx?: unknown): EventRef

Parameters:

ParameterTypeDescription
name"raw"Should be 'raw'.
callback(path: string) => voidThe callback function.
ctx?unknownThe context passed as this to the callback function.

Returns: EventRefThe event reference.