Skip to content

FluidHandler

Defined in: adapters/fluidFramework.ts:17

A FluidFramework build-tools policy handler interface.

This interface matches the Handler interface from @fluidframework/build-tools.

handler: (file, root) => Promise<string | undefined>

Defined in: adapters/fluidFramework.ts:35

The handler function that checks a file against the policy.

string

Absolute path to the file.

string

Path to the repo root.

Promise<string | undefined>

undefined if the check passes, otherwise an error message string.


match: RegExp

Defined in: adapters/fluidFramework.ts:26

A regex pattern that determines which files this handler applies to.


name: string

Defined in: adapters/fluidFramework.ts:21

The name of the handler, used for filtering and display.


optional resolver?: (file, root) => Promise<{ message?: string; resolved: boolean; }> | { message?: string; resolved: boolean; }

Defined in: adapters/fluidFramework.ts:44

Optional resolver function that attempts to fix policy violations.

string

Absolute path to the file.

string

Path to the repo root.

An object indicating whether the fix was successful.

Promise<{ message?: string; resolved: boolean; }>


{ message?: string; resolved: boolean; }

optional message?: string

Optional explanation of the fix result.

resolved: boolean

Whether the violation was fixed.