Skip to content

Commit 4897e7c

Browse files
committed
chore(ui): use any instead of null when no form-control
1 parent 0eb6d6d commit 4897e7c

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

packages/ui/src/components/form/form-group.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,16 @@ type Mutable<T> = {
1010
type GetFormControlPropertyFromArray<T, A> = Mutable<A> extends [infer K, ...infer R]
1111
? K extends keyof T
1212
? GetFormControlPropertyFromArray<T[K], R>
13-
: null
13+
: any
1414
: T;
1515

1616
type GetFormControlProperty<T, S> = S extends `${infer K}.${infer R}`
1717
? K extends keyof T
1818
? GetFormControlProperty<T[K], R>
19-
: null
19+
: any
2020
: S extends keyof T
2121
? T[S]
22-
: null;
22+
: any;
2323

2424
function find(control: AbstractControl, path: string[] | string, delimiter: string) {
2525
if (path == null) return null;

0 commit comments

Comments
 (0)