chore: fix the typings
Signed-off-by: blam <ben@blam.sh> Signed-off-by: blam <ben@blam.sh>
This commit is contained in:
@@ -71,7 +71,7 @@ export function createNextScaffolderFieldExtension<
|
||||
TReturnValue = unknown,
|
||||
TInputProps extends UIOptionsType = {},
|
||||
>(
|
||||
options: FieldExtensionOptions<TReturnValue, TInputProps>,
|
||||
options: NextFieldExtensionOptions<TReturnValue, TInputProps>,
|
||||
): Extension<NextFieldExtensionComponentProps<TReturnValue, TInputProps>> {
|
||||
return {
|
||||
expose() {
|
||||
|
||||
@@ -73,7 +73,7 @@ export const Router = (props: PropsWithChildren<NextRouterProps>) => {
|
||||
customFieldExtension => customFieldExtension.name === name,
|
||||
),
|
||||
),
|
||||
] as NextFieldExtensionOptions[]; // here just to coerce the default extensions to the correct type
|
||||
] as NextFieldExtensionOptions[];
|
||||
|
||||
return (
|
||||
<Routes>
|
||||
|
||||
Reference in New Issue
Block a user