diff --git a/plugins/api-docs/src/components/AsyncApiDefinitionWidget/AsyncApiDefinitionWidget.tsx b/plugins/api-docs/src/components/AsyncApiDefinitionWidget/AsyncApiDefinitionWidget.tsx
index 2e8710b008..7089143610 100644
--- a/plugins/api-docs/src/components/AsyncApiDefinitionWidget/AsyncApiDefinitionWidget.tsx
+++ b/plugins/api-docs/src/components/AsyncApiDefinitionWidget/AsyncApiDefinitionWidget.tsx
@@ -25,9 +25,18 @@ const LazyAsyncApiDefinition = React.lazy(() =>
})),
);
+/** @public */
+export type AsyncApiResolver = {
+ schema: string;
+ order: number;
+ canRead: boolean;
+ read(uri: any): Promise
;
+};
+
/** @public */
export type AsyncApiDefinitionWidgetProps = {
definition: string;
+ resolvers?: AsyncApiResolver[];
};
/** @public */
diff --git a/plugins/api-docs/src/components/AsyncApiDefinitionWidget/index.ts b/plugins/api-docs/src/components/AsyncApiDefinitionWidget/index.ts
index 7cc49e3138..116eb81295 100644
--- a/plugins/api-docs/src/components/AsyncApiDefinitionWidget/index.ts
+++ b/plugins/api-docs/src/components/AsyncApiDefinitionWidget/index.ts
@@ -15,4 +15,7 @@
*/
export { AsyncApiDefinitionWidget } from './AsyncApiDefinitionWidget';
-export type { AsyncApiDefinitionWidgetProps } from './AsyncApiDefinitionWidget';
+export type {
+ AsyncApiDefinitionWidgetProps,
+ AsyncApiResolver,
+} from './AsyncApiDefinitionWidget';