Skip to content

basalt / ai/src / DoctorRule

Interface: DoctorRule ​

Defined in: ai/src/doctor/types.ts:32

Properties ​

category ​

> category: DiagnosticCategory

Defined in: ai/src/doctor/types.ts:34


id ​

> id: string

Defined in: ai/src/doctor/types.ts:33

Methods ​

check() ​

> check(ctx): Diagnostic | null

Defined in: ai/src/doctor/types.ts:36

Returns a diagnostic when the rule fires, else null.

Parameters ​

ctx ​

ProjectContext

Returns ​

Diagnostic | null

Released under the MIT License.