@koishijs/core
Advanced tools
Comparing version 4.14.1 to 4.14.2
@@ -47,4 +47,2 @@ /// <reference types="node" /> | ||
type Observed<K extends Field = Field> = utils.Observed<Pick<User, K>, Promise<void>>; | ||
interface Prelude extends Pick<User, 'id' | 'authority' | 'permissions' | 'locales'> { | ||
} | ||
} | ||
@@ -74,4 +72,2 @@ export interface Binding { | ||
type Observed<K extends Field = Field> = utils.Observed<Pick<Channel, K>, Promise<void>>; | ||
interface Prelude extends Pick<Channel, 'assignee' | 'guildId' | 'permissions' | 'locales'> { | ||
} | ||
} | ||
@@ -376,3 +372,3 @@ export interface Tables { | ||
static readonly [Context.expose] = "i18n"; | ||
_data: Dict<I18n.Store>; | ||
_data: Dict<Dict<string>>; | ||
_presets: Dict<I18n.Renderer>; | ||
@@ -383,2 +379,3 @@ locales: LocaleTree; | ||
compare(expect: string, actual: string, options?: CompareOptions): number; | ||
get(key: string, locales?: string[]): Dict<string>; | ||
private set; | ||
@@ -402,3 +399,3 @@ define(locale: string, dict: I18n.Store): void; | ||
declare module '@satorijs/core' { | ||
interface Session<U extends User.Field = keyof User.Prelude, G extends Channel.Field = keyof Channel.Prelude> { | ||
interface Session<U extends User.Field = never, G extends Channel.Field = never> { | ||
argv?: Argv<U, G>; | ||
@@ -744,3 +741,3 @@ user?: User.Observed<U>; | ||
list(): string[]; | ||
test(x: string[], y: Iterable<string>, session?: Partial<Session>): Promise<boolean>; | ||
test(y: Iterable<string>, session?: Partial<Session>): Promise<boolean>; | ||
} | ||
@@ -747,0 +744,0 @@ export * from '@koishijs/utils'; |
{ | ||
"name": "@koishijs/core", | ||
"description": "Core Features for Koishi", | ||
"version": "4.14.1", | ||
"version": "4.14.2", | ||
"main": "lib/index.cjs", | ||
@@ -34,9 +34,9 @@ "module": "lib/index.mjs", | ||
"@koishijs/i18n-utils": "^1.0.0", | ||
"@koishijs/utils": "^7.0.4", | ||
"@koishijs/utils": "^7.0.5", | ||
"@minatojs/core": "^2.3.2", | ||
"@satorijs/core": "^2.6.1", | ||
"@satorijs/core": "^2.6.2", | ||
"cordis": "^2.8.7", | ||
"cosmokit": "^1.4.4", | ||
"cosmokit": "^1.4.5", | ||
"fastest-levenshtein": "^1.0.16" | ||
} | ||
} |
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
584289
5735
Updated@koishijs/utils@^7.0.5
Updated@satorijs/core@^2.6.2
Updatedcosmokit@^1.4.5