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:

Parameter Type Description
name "raw" Should be 'raw'.
callback (path: string) => void The callback function.
ctx? unknown The context passed as this to the callback function.

Returns: EventRefThe event reference.