/
githubmirror
/
angular
Обзор
Документация
Войти
/
githubmirror
/
angular
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
packages/forms/signals/src/field/debounce.ts
22 строки
698 B
Leon Senft
refactor(forms): add validation rules for date constraints (#68001)
06 май 2026, 21:59
06 май 2026, 21:59
276c917
Код
Авторство
О чём код?
/** * @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 */ import type {Signal} from '@angular/core'; import {createMetadataKey, MetadataKey} from '../api/rules/metadata'; import {Debouncer} from '../api/types'; /** * A private {@link MetadataKey} used to aggregate `debounce()` rules. * * This will pick the last `debounce()` rule on a field that is currently applied, if conditional. */ export const DEBOUNCER: MetadataKey< Signal<Debouncer<any> | undefined> | undefined, Debouncer<any>, Debouncer<any> | undefined > = createMetadataKey();