@koishijs/core
Advanced tools
Comparing version 4.9.4 to 4.9.5
@@ -195,3 +195,3 @@ import * as utils from '@koishijs/utils'; | ||
export type OptionType<S extends string> = ExtractFirst<Replace<S, '>', ']'>, any>; | ||
export type Type = DomainType | RegExp | string[] | Transform<any>; | ||
export type Type = DomainType | RegExp | readonly string[] | Transform<any>; | ||
export interface Declaration { | ||
@@ -215,4 +215,2 @@ name?: string; | ||
type?: T; | ||
/** hide the option by default */ | ||
hidden?: boolean | ((session: Session) => boolean); | ||
authority?: number; | ||
@@ -224,6 +222,10 @@ descPath?: string; | ||
} | ||
export interface OptionDeclaration extends Declaration, OptionConfig { | ||
export interface OptionVariant extends OptionConfig { | ||
syntax: string; | ||
} | ||
export interface OptionDeclaration extends Declaration, OptionVariant { | ||
values: Dict<any>; | ||
/** @deprecated */ | ||
valuesSyntax: Dict<string>; | ||
variants: Dict<OptionVariant>; | ||
} | ||
@@ -313,6 +315,2 @@ type OptionDeclarationMap = Dict<OptionDeclaration>; | ||
interface Config { | ||
/** hide all options by default */ | ||
hideOptions?: boolean; | ||
/** hide command */ | ||
hidden?: boolean; | ||
/** min authority */ | ||
@@ -319,0 +317,0 @@ authority?: Computed<number>; |
{ | ||
"name": "@koishijs/core", | ||
"description": "Core Features for Koishi", | ||
"version": "4.9.4", | ||
"version": "4.9.5", | ||
"main": "lib/index.cjs", | ||
@@ -33,7 +33,7 @@ "module": "lib/index.mjs", | ||
"dependencies": { | ||
"@koishijs/utils": "^6.2.2", | ||
"@koishijs/utils": "^6.2.3", | ||
"@minatojs/core": "^1.3.1", | ||
"@satorijs/core": "^1.1.11", | ||
"cordis": "^2.4.4" | ||
"@satorijs/core": "^1.2.1", | ||
"cordis": "^2.5.0" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
443597
4505
Updated@koishijs/utils@^6.2.3
Updated@satorijs/core@^1.2.1
Updatedcordis@^2.5.0