UNPKG

@clerk/clerk-js

Version:
10 lines (9 loc) 501 B
import type { ClerkAPIError, UsernameSettingsData } from '@clerk/types'; import { type LocalizationKey } from '../localization'; type LocalizationConfigProps = { t: (localizationKey: LocalizationKey | string | undefined) => string; locale: string; usernameSettings: Pick<UsernameSettingsData, 'max_length' | 'min_length'>; }; export declare const createUsernameError: (errors: ClerkAPIError[], localizationConfig: LocalizationConfigProps) => ClerkAPIError | string | undefined; export {};