Fix
All checks were successful
Lint / lint (push) Successful in 11s

This commit is contained in:
Julien Valverdé
2026-03-03 16:48:27 +01:00
parent 8dd40d3365
commit 355e179fbd

View File

@@ -50,7 +50,11 @@ export const AsyncPrototype: AsyncPrototype = Object.freeze({
export const isAsync = (u: unknown): u is Async => Predicate.hasProperty(u, AsyncTypeId)
export const async = <T extends Component.Component<any, any, any, any>>(
self: T
self: T & (
"promise" extends keyof Component.Component.Props<T>
? "'promise' prop name is reserved for Async components. Please rename the 'promise' prop to something else."
: T
)
): (
& Omit<T, keyof Component.Component.AsComponent<T>>
& Component.Component<