> ## Documentation Index
> Fetch the complete documentation index at: https://docs-dev-actions-triggers-prototype.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# UsernameValidationResult

The result of validating a username against one or more rules.

```ts Example theme={null}
export interface UsernameValidationResult {
  /**
   * Indicates whether the username passed all validation rules.
   */
  isValid: boolean;

  /**
   * An array of {@link UsernameValidationError} objects representing
   * the individual rules that failed, if any.
   *
   * This array is empty if {@link UsernameValidationResult.isValid} is `true`.
   */
  errors: UsernameValidationError[];
}
```

## Properties

<ParamField body="errors" type={<span><a href="/docs/libraries/acul/js-sdk/Screens/interfaces/UsernameValidationError">UsernameValidationError</a></span>}>
  An array of [UsernameValidationError](/docs/libraries/acul/js-sdk/Screens/interfaces/UsernameValidationError) objects representing
  the individual rules that failed, if any.

  This array is empty if [UsernameValidationResult.isValid](#isvalid) is `true`.
</ParamField>

<ParamField body="isValid" type="boolean">
  Indicates whether the username passed all validation rules.
</ParamField>
