Skip to content

Commit fef2cdb

Browse files
authored
Merge pull request #548 from devforth/feature/AdminForth/1387/seems-like-this-commit-is-not-
Feature/admin forth/1387/seems like this commit is not
2 parents 086b005 + 7308838 commit fef2cdb

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1-
export interface PluginOptions {
1+
import {type PluginsCommonOptions } from "adminforth";
2+
3+
export interface PluginOptions extends PluginsCommonOptions {
24

35
}

adminforth/documentation/docs/tutorial/09-Advanced/01-plugin-development.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff 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

adminforth/types/Back.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2153,6 +2153,7 @@ export interface IWebSocketBroker {
21532153

21542154
registerWsClient: (client: IWebSocketClient) => void;
21552155
}
2156+
21562157
export interface PluginsCommonOptions {
21572158
/**
21582159
* Id of the plugin. It should be unique across all plugins.

0 commit comments

Comments
 (0)