Interface RegistryInterface<RegistryMap, M>
Type Parameters
-
RegistryMap extends object
-
Methods
addReplacer
- addReplacer<K>(name, replacer): void
-
Type Parameters
-
K extends string | number | symbol
Parameters
-
name: K
-
replacer: Replacer<NonNullable<M[K]>>
Returns void
delete
- delete<K>(name): boolean
-
Type Parameters
-
K extends string | number | symbol
Returns boolean
get
- get<K>(name): NonNullable<M[K]>
-
Type Parameters
-
K extends string | number | symbol
Returns NonNullable<M[K]>
has
- has<K>(name): boolean
-
Type Parameters
-
K extends string | number | symbol
Returns boolean
maybeSet
- maybeSet<K>(name, instance): void
-
Type Parameters
-
K extends string | number | symbol
Parameters
-
name: K
-
instance: NonNullable<M[K]>
Returns void
maybeSetAndGet
- maybeSetAndGet<K>(name, defaultValue): NonNullable<M[K]>
-
Type Parameters
-
K extends string | number | symbol
Parameters
-
name: K
-
defaultValue: NonNullable<M[K]>
Returns NonNullable<M[K]>
set
- set<K>(name, instance): void
-
Type Parameters
-
K extends string | number | symbol
Parameters
-
name: K
-
instance: NonNullable<M[K]>
Returns void