@cordisjs/core
Advanced tools
Comparing version 3.13.4 to 3.13.5
@@ -20,3 +20,3 @@ import { Awaitable, Promisify, Dict } from 'cosmokit'; | ||
protected [symbols.setup](): void; | ||
protected [symbols.extend](props?: any): any; | ||
protected [symbols.extend](props?: any): this; | ||
static [Symbol.hasInstance](instance: any): boolean; | ||
@@ -344,3 +344,3 @@ } | ||
alias(name: string, aliases: string[]): void; | ||
mixin(name: string, mixins: string[]): void; | ||
mixin(name: string, mixins: string[] | Dict<string>): void; | ||
extend(meta?: {}): this; | ||
@@ -347,0 +347,0 @@ isolate(name: string, label?: symbol): this; |
{ | ||
"name": "@cordisjs/core", | ||
"description": "Meta-Framework for Modern JavaScript Applications", | ||
"version": "3.13.4", | ||
"version": "3.13.5", | ||
"sideEffects": false, | ||
@@ -35,4 +35,4 @@ "type": "module", | ||
"dependencies": { | ||
"cosmokit": "^1.5.2" | ||
"cosmokit": "^1.6.2" | ||
} | ||
} |
@@ -287,5 +287,6 @@ import { defineProperty, Dict, isNullable } from 'cosmokit' | ||
mixin(name: string, mixins: string[]) { | ||
for (const key of mixins) { | ||
this.accessor(key, { | ||
mixin(name: string, mixins: string[] | Dict<string>) { | ||
const entries = Array.isArray(mixins) ? mixins.map(key => [key, key]) : Object.entries(mixins) | ||
for (const [key, value] of entries) { | ||
this.accessor(value, { | ||
get() { | ||
@@ -292,0 +293,0 @@ const service = this[name] |
@@ -90,3 +90,3 @@ import { Awaitable, defineProperty } from 'cosmokit' | ||
defineProperty(self, symbols.origin, caller) | ||
return Context.associate(Object.assign(self, props), this.name) | ||
return Context.associate<this>(Object.assign(self, props), this.name) | ||
} | ||
@@ -93,0 +93,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
201434
3640
Updatedcosmokit@^1.6.2