sass-references/angular-material/material/form-field/form-field-errors.ts

23 lines
700 B
TypeScript
Raw Normal View History

2024-12-06 10:42:08 +08:00
/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.dev/license
*/
/** @docs-private */
export function getMatFormFieldPlaceholderConflictError(): Error {
return Error('Placeholder attribute and child element were both specified.');
}
/** @docs-private */
export function getMatFormFieldDuplicatedHintError(align: string): Error {
return Error(`A hint was already declared for 'align="${align}"'.`);
}
/** @docs-private */
export function getMatFormFieldMissingControlError(): Error {
return Error('mat-form-field must contain a MatFormFieldControl.');
}