Comparing version 0.0.42 to 0.0.43
{ | ||
"name": "mobidic", | ||
"version": "0.0.42", | ||
"version": "0.0.43", | ||
"keywords": [], | ||
@@ -5,0 +5,0 @@ "author": "js2me", |
import { Class } from 'yummies/utils/types'; | ||
import { Container } from './container.js'; | ||
import { TagConfig, TagScope, TagStrategy } from './tag.types.js'; | ||
import { AnyTag, TagConfig, TagScope, TagStrategy } from './tag.types.js'; | ||
import { Destroyable } from './types.js'; | ||
@@ -24,2 +24,3 @@ export declare class Tag<TTarget, TArgs extends any[] = []> implements Destroyable, Disposable { | ||
static search<TTarget = any>(tag: Tag<TTarget>): Tag<TTarget> | null; | ||
static readonly tagsSet: WeakSet<AnyTag>; | ||
static create<TTarget, TArgs extends any[] = []>(config: TagConfig<TTarget, TArgs>): Tag<TTarget, TArgs>; | ||
@@ -26,0 +27,0 @@ } |
@@ -17,2 +17,3 @@ import { tagMark } from './constants.js'; | ||
this.processConfig(); | ||
Tag.tagsSet.add(this); | ||
} | ||
@@ -107,2 +108,3 @@ createValue(args) { | ||
} | ||
static tagsSet = new WeakSet(); | ||
static create(config) { | ||
@@ -109,0 +111,0 @@ return new this(config); |
Sorry, the diff of this file is not supported yet
33064
613