mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-03-15 05:41:51 +00:00
revert
Signed-off-by: GitHub <noreply@github.com>
This commit is contained in:
parent
6aab399173
commit
8590263c35
1 changed files with 3 additions and 3 deletions
|
@ -8,7 +8,7 @@ import {
|
|||
globalPlugin,
|
||||
guildPlugin,
|
||||
} from "knub";
|
||||
import { ConfigParserFn, PluginOptions } from "knub/dist/config/configTypes";
|
||||
import { PluginOptions } from "knub/dist/config/configTypes";
|
||||
import { Awaitable } from "knub/dist/utils";
|
||||
import { getPluginConfigParser } from "../pluginUtils";
|
||||
import { TMarkdown } from "../types";
|
||||
|
@ -30,7 +30,7 @@ export interface ZeppelinGuildPluginBlueprint<TPluginData extends GuildPluginDat
|
|||
legacy?: boolean | string;
|
||||
};
|
||||
|
||||
configParser: (
|
||||
configParser?: (
|
||||
options: TPluginData["_pluginType"]["config"],
|
||||
strict?: boolean,
|
||||
) => Awaitable<PluginOptions<TPluginData["_pluginType"]>>;
|
||||
|
@ -67,7 +67,7 @@ export function zeppelinGuildPlugin(...args) {
|
|||
export interface ZeppelinGlobalPluginBlueprint<TPluginType extends BasePluginType = BasePluginType>
|
||||
extends GlobalPluginBlueprint<GlobalPluginData<TPluginType>> {
|
||||
configSchema: t.TypeC<any>;
|
||||
configParser: (options: TPluginType["config"], strict?: boolean) => Awaitable<PluginOptions<TPluginType>>;
|
||||
configParser?: (options: TPluginType["config"], strict?: boolean) => Awaitable<PluginOptions<TPluginType>>;
|
||||
}
|
||||
|
||||
export function zeppelinGlobalPlugin<TBlueprint extends ZeppelinGlobalPluginBlueprint>(
|
||||
|
|
Loading…
Add table
Reference in a new issue