chore: comments

Signed-off-by: blam <ben@blam.sh>
This commit is contained in:
blam
2024-12-10 12:34:30 +01:00
parent 3562d2b111
commit 71ff6bd7dd
2 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -550,7 +550,7 @@ export const useCustomFieldExtensions: <
TComponentDataType = FieldExtensionOptions,
>(
outlet: React.ReactNode,
) => (TComponentDataType | FieldExtensionOptions)[];
) => TComponentDataType[];
// @public
export const useCustomLayouts: <TComponentDataType = LayoutOptions<any>>(
@@ -27,6 +27,7 @@ import {
* @public
*/
export const useCustomFieldExtensions = <
// todo(blam): this shouldn't be here, should remove this, but this is a breaking change to remove the generic.
TComponentDataType = FieldExtensionOptions,
>(
outlet: React.ReactNode,
@@ -62,5 +63,5 @@ export const useCustomFieldExtensions = <
}),
);
return [...blueprintsToLegacy, ...outletFields];
return [...blueprintsToLegacy, ...outletFields] as TComponentDataType[];
};