mirror of
https://github.com/angular/angular
synced 2026-05-24 09:28:37 +00:00
refactor(core): remove unused type
Removes the `ExtractFromControlValue` type since it won't be necessary anymore.
(cherry picked from commit 14152f69b9)
This commit is contained in:
parent
4d8b97627c
commit
afda85f24c
5 changed files with 0 additions and 16 deletions
|
|
@ -489,7 +489,6 @@ export class Identifiers {
|
|||
// type-checking
|
||||
static InputSignalBrandWriteType = {name: 'ɵINPUT_SIGNAL_BRAND_WRITE_TYPE', moduleName: CORE};
|
||||
static UnwrapDirectiveSignalInputs = {name: 'ɵUnwrapDirectiveSignalInputs', moduleName: CORE};
|
||||
static ExtractFormControlValue = {name: 'ɵExtractFormControlValue', moduleName: CORE};
|
||||
static unwrapWritableSignal = {name: 'ɵunwrapWritableSignal', moduleName: CORE};
|
||||
static assertType = {name: 'ɵassertType', moduleName: CORE};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -95,7 +95,6 @@ export {
|
|||
ɵɵcontentQuerySignal,
|
||||
ɵɵcontrol,
|
||||
ɵɵcontrolCreate,
|
||||
ɵExtractFormControlValue,
|
||||
ɵɵcomponentInstance,
|
||||
ɵɵdefineComponent,
|
||||
ɵɵdefineDirective,
|
||||
|
|
|
|||
|
|
@ -96,7 +96,6 @@ export {
|
|||
ɵɵproperty,
|
||||
ɵɵcontrol,
|
||||
ɵɵcontrolCreate,
|
||||
ɵExtractFormControlValue,
|
||||
ɵɵcontentQuery,
|
||||
ɵɵcontentQuerySignal,
|
||||
ɵɵloadQuery,
|
||||
|
|
|
|||
|
|
@ -33,18 +33,6 @@ import {listenToOutput} from '../view/directive_outputs';
|
|||
import {listenToDomEvent, wrapListener} from '../view/listeners';
|
||||
import {setPropertyAndInputs, storePropertyBindingMetadata} from './shared';
|
||||
import {writeToDirectiveInput} from './write_to_directive_input';
|
||||
import {ModelSignal} from '../../authoring/model/model_signal';
|
||||
|
||||
/**
|
||||
* Used during template type checking to extract the type of a custom form control.
|
||||
*
|
||||
* @codeGenApi
|
||||
*/
|
||||
export type ɵExtractFormControlValue<T> = T extends {value: ModelSignal<infer V>}
|
||||
? V
|
||||
: T extends {checked: ModelSignal<boolean>}
|
||||
? boolean
|
||||
: unknown;
|
||||
|
||||
/**
|
||||
* Possibly sets up a {@link ɵControl} to manage a native or custom form control.
|
||||
|
|
|
|||
|
|
@ -38,7 +38,6 @@ const AOT_ONLY = new Set<string>([
|
|||
|
||||
// used in type-checking.
|
||||
'ɵINPUT_SIGNAL_BRAND_WRITE_TYPE',
|
||||
'ɵExtractFormControlValue',
|
||||
'ɵUnwrapDirectiveSignalInputs',
|
||||
'ɵunwrapWritableSignal',
|
||||
'ɵassertType',
|
||||
|
|
|
|||
Loading…
Reference in a new issue