File tree Expand file tree Collapse file tree 3 files changed +8
-4
lines changed
commands/createPlugin/templates
documentation/docs/tutorial/09-Advanced Expand file tree Collapse file tree 3 files changed +8
-4
lines changed Original file line number Diff line number Diff line change 1- export interface PluginOptions {
1+ import {type PluginsCommonOptions } from "adminforth";
2+
3+ export interface PluginOptions extends PluginsCommonOptions {
24
35}
Original file line number Diff line number Diff line change @@ -60,8 +60,9 @@ In plugin options we will pass field name and `OPENAI_API_KEY`.
6060
6161
6262``` ts title='./af-plugin-chatgpt/types.ts'
63+ import {type PluginsCommonOptions } from " adminforth" ;
6364
64- export interface PluginOptions {
65+ export interface PluginOptions extends PluginsCommonOptions {
6566
6667// diff-add
6768 /**
@@ -557,9 +558,9 @@ To use adapter in plugin you should define it in plugin options:
557558
558559` ` ` ts title= ' ./af-plugin-any-complete/types.ts'
559560
560- import { CompletionAdapter } from " adminforth" ;
561+ import { CompletionAdapter , type PluginsCommonOptions } from " adminforth" ;
561562
562- export interface PluginOptions {
563+ export interface PluginOptions extends PluginsCommonOptions {
563564 ...
564565
565566// diff-add
Original file line number Diff line number Diff line change @@ -2153,6 +2153,7 @@ export interface IWebSocketBroker {
21532153
21542154 registerWsClient : ( client : IWebSocketClient ) => void ;
21552155}
2156+
21562157export interface PluginsCommonOptions {
21572158 /**
21582159 * Id of the plugin. It should be unique across all plugins.
You can’t perform that action at this time.
0 commit comments