UNPKG
@rsc-labs/nocto-plugin-system
Version:
latest (0.1.5)
0.1.5
0.1.4
0.1.3
0.1.2
0.1.1
0.1.0
0.0.7
0.0.6
0.0.5
0.0.4
0.0.3
0.0.1
Pluggable registry system for Nocto plugins
@rsc-labs/nocto-plugin-system
/
dist
/
registries
/
plugin-config-registry.d.ts
9 lines
(8 loc)
•
288 B
TypeScript
View Raw
1
2
3
4
5
6
7
8
9
import
{ z }
from
"zod"
;
declare
class
PluginConfigReg
{
private
configs; register<T>(
pluginId
:
string
,
schema
: z.
ZodType
<T>,
rawConfig
:
Record
<
string
,
any
>): T; get<T>(
pluginId
:
string
): T |
undefined
; }
export
declare
const
PluginConfigRegistry
:
PluginConfigReg
;
export
{};