Skip to content

Feature

Feature represents a named boolean feature flag supported by CEL.

new Feature(name, enabled): Feature

Constructor creates a new feature flag with a boolean enablement flag.

string

boolean

Feature

enabled: boolean


name: string

validate(): Error | undefined

Validate validates whether the feature is well-configured.

Error | undefined