import { InputSignal, InputSignalWithTransform, ModelSignal } from '@angular/core';
/**
 * Utility Type: Bóc tách kiểu dữ liệu gốc từ Angular Signal Inputs & Models
 */
export type SdUnwrapSignal<T> = T extends InputSignalWithTransform<any, infer WriteT> ? WriteT : T extends InputSignal<infer ReadT> ? ReadT : T extends ModelSignal<infer ModelT> ? ModelT : T;
export type SdUnwrapSafe<T> = SdUnwrapSignal<NonNullable<T>>;
