UNPKG

@wise-community/angular-password-strength-meter

Version:

[![CI](https://github.com/antoantonyk/password-strength-meter/actions/workflows/ci-workflow.yml/badge.svg)](https://github.com/antoantonyk/password-strength-meter/actions/workflows/ci-workflow.yml) [![npm version](https://badge.fury.io/js/angular-password

15 lines (14 loc) 494 B
export interface FeedbackResult { score: number | null; feedback: Feedback | null; } export interface Feedback { warning: string | null; suggestions: string[]; } export declare abstract class IPasswordStrengthMeterService { abstract score(password: string): number; abstract scoreWithFeedback(password: string): FeedbackResult; abstract scoreAsync(password: string): Promise<number>; abstract scoreWithFeedbackAsync(password: string): Promise<FeedbackResult>; }