From 0f797c07f1717ba445da44724f9270cffe7d58be Mon Sep 17 00:00:00 2001 From: Paul Cowan Date: Tue, 20 Dec 2022 10:23:38 +0000 Subject: [PATCH] fix next/router tests to use FormProps Signed-off-by: Paul Cowan --- plugins/scaffolder/api-report.md | 5 ++++- plugins/scaffolder/src/next/types.ts | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/plugins/scaffolder/api-report.md b/plugins/scaffolder/api-report.md index 7611e952dc..3fe1208ba9 100644 --- a/plugins/scaffolder/api-report.md +++ b/plugins/scaffolder/api-report.md @@ -168,7 +168,10 @@ export interface FieldSchema { } // @alpha -export type FormProps = Pick; +export type FormProps = Pick< + FormProps_3, + 'transformErrors' | 'noHtml5Validate' +>; // @public export type LayoutComponent<_TInputProps> = () => null; diff --git a/plugins/scaffolder/src/next/types.ts b/plugins/scaffolder/src/next/types.ts index d0d3ed1011..32d0fe85f0 100644 --- a/plugins/scaffolder/src/next/types.ts +++ b/plugins/scaffolder/src/next/types.ts @@ -20,4 +20,7 @@ import type { FormProps as SchemaFormProps } from '@rjsf/core-v5'; * * @alpha */ -export type FormProps = Pick; +export type FormProps = Pick< + SchemaFormProps, + 'transformErrors' | 'noHtml5Validate' +>;