diff --git a/plugins/scaffolder/api-report.md b/plugins/scaffolder/api-report.md index 1865d28578..07b60c67db 100644 --- a/plugins/scaffolder/api-report.md +++ b/plugins/scaffolder/api-report.md @@ -37,7 +37,7 @@ export function createScaffolderFieldExtension< TInputProps = unknown, >( options: FieldExtensionOptions, -): Extension; +): Extension null)>; // @public export type CustomFieldValidator = ( @@ -54,7 +54,8 @@ export type CustomFieldValidator = ( export const EntityNamePickerFieldExtension: FieldExtensionComponentProps< string, {} ->; +> & + (() => null); // Warning: (ae-missing-release-tag) "EntityPickerFieldExtension" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal) // @@ -62,7 +63,8 @@ export const EntityNamePickerFieldExtension: FieldExtensionComponentProps< export const EntityPickerFieldExtension: FieldExtensionComponentProps< string, EntityPickerUiOptions ->; +> & + (() => null); // Warning: (ae-missing-release-tag) "EntityPickerUiOptions" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal) // @@ -80,7 +82,8 @@ export interface EntityPickerUiOptions { export const EntityTagsPickerFieldExtension: FieldExtensionComponentProps< string[], EntityTagsPickerUiOptions ->; +> & + (() => null); // Warning: (ae-missing-release-tag) "EntityTagsPickerUiOptions" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal) // @@ -123,7 +126,8 @@ export type FieldExtensionOptions< export const OwnedEntityPickerFieldExtension: FieldExtensionComponentProps< string, OwnedEntityPickerUiOptions ->; +> & + (() => null); // Warning: (ae-missing-release-tag) "OwnedEntityPickerUiOptions" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal) // @@ -141,7 +145,8 @@ export interface OwnedEntityPickerUiOptions { export const OwnerPickerFieldExtension: FieldExtensionComponentProps< string, OwnerPickerUiOptions ->; +> & + (() => null); // Warning: (ae-missing-release-tag) "OwnerPickerUiOptions" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal) // @@ -157,7 +162,8 @@ export interface OwnerPickerUiOptions { export const RepoUrlPickerFieldExtension: FieldExtensionComponentProps< string, RepoUrlPickerUiOptions ->; +> & + (() => null); // Warning: (ae-missing-release-tag) "RepoUrlPickerUiOptions" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal) // diff --git a/plugins/scaffolder/src/extensions/index.tsx b/plugins/scaffolder/src/extensions/index.tsx index ad8177ef65..55be17cb77 100644 --- a/plugins/scaffolder/src/extensions/index.tsx +++ b/plugins/scaffolder/src/extensions/index.tsx @@ -30,7 +30,8 @@ export function createScaffolderFieldExtension< TInputProps = unknown, >( options: FieldExtensionOptions, -): Extension { + // TODO: need know how to embed these types nicely so the api report looks nice. +): Extension null)> { return { expose() { const FieldExtensionDataHolder: any = () => null;