- u<T>(type: T): {
type: T;
}
-
Returns {
type: T;
}
- u<T, P>(type: T, props: P): {
type: T;
} & P
-
Type Parameters
-
T extends string
-
P extends Record<string, unknown>
Returns {
type: T;
} & P
- u<T>(type: T, value: string): {
type: T;
value: string;
}
-
Returns {
type: T;
value: string;
}
- u<T, P>(type: T, props: P, value: string): {
type: T;
value: string;
} & P
-
Type Parameters
-
T extends string
-
P extends Record<string, unknown>
Parameters
-
type: T
-
props: P
-
value: string
Returns {
type: T;
value: string;
} & P
- u<T, C>(type: T, children: C): {
children: C;
type: T;
}
-
Type Parameters
-
T extends string
-
C extends Node<Data>[]
Returns {
children: C;
type: T;
}
- u<T, P, C>(type: T, props: P, children: C): {
children: C;
type: T;
} & P
-
Type Parameters
-
T extends string
-
P extends Record<string, unknown>
-
C extends Node<Data>[]
Parameters
-
type: T
-
props: P
-
children: C
Returns {
children: C;
type: T;
} & P