# GlobalProviderRegistry Class

Module
import { GlobalProviderRegistry } from "@tsed/di"
Source/packages/di/src/registries/GlobalProviders.ts

# Overview

class GlobalProviderRegistry extends Registry<Provider<any>, IProvider<any>> {
    /**
     * Internal Map
     * @type {Array}
     */
<span class="token keyword">constructor</span><span class="token punctuation">(</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
/**
 *
 * @param <span class="token punctuation">{</span><span class="token keyword">string</span><span class="token punctuation">}</span> type
 * @param <span class="token punctuation">{</span><a href="/api/core/interfaces/Type.html"><span class="token">Type</span></a>&lt;<a href="/api/di/class/Provider.html"><span class="token">Provider</span></a>&lt;<span class="token keyword">any</span>&gt;&gt;<span class="token punctuation">}</span> model
 * @param options
 * @returns <span class="token punctuation">{</span><a href="/api/core/class/Registry.html"><span class="token">Registry</span></a>&lt;<a href="/api/di/class/Provider.html"><span class="token">Provider</span></a>&lt;<span class="token keyword">any</span>&gt;<span class="token punctuation">,</span> <a href="/api/di/interfaces/IProvider.html"><span class="token">IProvider</span></a>&lt;<span class="token keyword">any</span>&gt;&gt;<span class="token punctuation">}</span>
 */
<span class="token function">createRegistry</span><span class="token punctuation">(</span>type<span class="token punctuation">:</span> <span class="token keyword">string</span><span class="token punctuation">,</span> model<span class="token punctuation">:</span> <a href="/api/core/interfaces/Type.html"><span class="token">Type</span></a>&lt;<a href="/api/di/class/Provider.html"><span class="token">Provider</span></a>&lt;<span class="token keyword">any</span>&gt;&gt;<span class="token punctuation">,</span> options?<span class="token punctuation">:</span> Partial&lt;<a href="/api/di/interfaces/RegistrySettings.html"><span class="token">RegistrySettings</span></a>&gt;<span class="token punctuation">)</span><span class="token punctuation">:</span> <a href="/api/di/interfaces/TypedProvidersRegistry.html"><span class="token">TypedProvidersRegistry</span></a><span class="token punctuation">;</span>
/**
 *
 * @param <span class="token punctuation">{</span><span class="token keyword">string</span> | <a href="/api/di/interfaces/TokenProvider.html"><span class="token">TokenProvider</span></a><span class="token punctuation">}</span> target
 * @returns <span class="token punctuation">{</span><a href="/api/di/interfaces/RegistrySettings.html"><span class="token">RegistrySettings</span></a> | undefined<span class="token punctuation">}</span>
 */
<span class="token function">getRegistrySettings</span><span class="token punctuation">(</span>target<span class="token punctuation">:</span> <span class="token keyword">string</span> | <a href="/api/di/interfaces/TokenProvider.html"><span class="token">TokenProvider</span></a><span class="token punctuation">)</span><span class="token punctuation">:</span> <a href="/api/di/interfaces/RegistrySettings.html"><span class="token">RegistrySettings</span></a><span class="token punctuation">;</span>
/**
 *
 * @returns <span class="token punctuation">{</span><span class="token punctuation">(</span>provider<span class="token punctuation">:</span> <span class="token punctuation">(</span><span class="token keyword">any</span> | <a href="/api/di/interfaces/IProvider.html"><span class="token">IProvider</span></a>&lt;<span class="token keyword">any</span>&gt;<span class="token punctuation">)</span><span class="token punctuation">,</span> instance?<span class="token punctuation">:</span> <span class="token keyword">any</span><span class="token punctuation">)</span> =&gt; <span class="token keyword">void</span><span class="token punctuation">}</span>
 */
<span class="token function">createRegisterFn</span><span class="token punctuation">(</span>type<span class="token punctuation">:</span> <span class="token keyword">string</span><span class="token punctuation">)</span><span class="token punctuation">:</span> <span class="token punctuation">(</span>provider<span class="token punctuation">:</span> <span class="token keyword">any</span><span class="token punctuation">,</span> instance?<span class="token punctuation">:</span> <span class="token keyword">any</span><span class="token punctuation">)</span> =&gt; <span class="token keyword">void</span><span class="token punctuation">;</span>
/**
 *
 * @param <span class="token punctuation">{</span><span class="token keyword">string</span> | <a href="/api/di/interfaces/TokenProvider.html"><span class="token">TokenProvider</span></a><span class="token punctuation">}</span> target
 * @returns <span class="token punctuation">{</span><a href="/api/core/class/Registry.html"><span class="token">Registry</span></a>&lt;<a href="/api/di/class/Provider.html"><span class="token">Provider</span></a>&lt;<span class="token keyword">any</span>&gt;<span class="token punctuation">,</span> <a href="/api/di/interfaces/IProvider.html"><span class="token">IProvider</span></a>&lt;<span class="token keyword">any</span>&gt;&gt;<span class="token punctuation">}</span>
 */
<span class="token function">getRegistry</span><span class="token punctuation">(</span>target<span class="token punctuation">:</span> <span class="token keyword">string</span> | <a href="/api/di/interfaces/TokenProvider.html"><span class="token">TokenProvider</span></a><span class="token punctuation">)</span><span class="token punctuation">:</span> <a href="/api/di/interfaces/TypedProvidersRegistry.html"><span class="token">TypedProvidersRegistry</span></a><span class="token punctuation">;</span>

} /** *