Comparing version 1.1.0 to 1.1.1
@@ -7,7 +7,7 @@ import { Awaitable, Promisify } from 'cosmokit'; | ||
type Constructor<T = any> = new (ctx: Context, options: T) => void; | ||
interface Object<T = any> { | ||
interface Object<S = any, T = any> { | ||
name?: string; | ||
apply: Function<T>; | ||
Config?: (config: T) => any; | ||
schema?: (config: T) => any; | ||
Config?: (config?: S) => T; | ||
schema?: (config?: S) => T; | ||
using?: readonly string[]; | ||
@@ -89,3 +89,3 @@ } | ||
parallel(...args: any[]): Promise<void>; | ||
emit(...args: [any, ...any[]]): void; | ||
emit(...args: any[]): void; | ||
waterfall(...args: [any, ...any[]]): Promise<any>; | ||
@@ -92,0 +92,0 @@ chain(...args: [any, ...any[]]): any; |
{ | ||
"name": "cordis", | ||
"description": "Infrastructure for Modern JavaScript Frameworks", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"main": "lib/index.cjs", | ||
@@ -6,0 +6,0 @@ "module": "lib/index.ejs", |
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
99736