@dmno/configraph
Advanced tools
Comparing version 0.0.3 to 0.0.4
@@ -304,2 +304,7 @@ import graphlib from '@dagrejs/graphlib'; | ||
type ConfigValueResolverDef = { | ||
/** | ||
* internal id used for the type of the resolver | ||
* @internal | ||
*/ | ||
_typeId?: string; | ||
createdByPluginId?: string; | ||
@@ -362,3 +367,3 @@ /** set a specific icon for the resolver, will default to the plugin's icon if set */ | ||
process(item: ConfigraphNode): void | Array<() => void>; | ||
resolve(ctx: ResolverContext): Promise<void>; | ||
resolve(ctx: ResolverContext): Promise<false | undefined>; | ||
toJSON(): SerializedResolver; | ||
@@ -507,3 +512,3 @@ } | ||
get ui(): ConfigraphDataTypeDefinition<InstanceOptions, Metadata>["ui"] | undefined; | ||
get required(): ConfigraphDataTypeDefinition<InstanceOptions, Metadata>["required"] | undefined; | ||
get required(): true | (ConfigraphDataTypeDefinition<InstanceOptions, Metadata>["required"] & {}) | undefined; | ||
getMetadata<K extends keyof Metadata>(key: K): Metadata[K] | undefined; | ||
@@ -787,2 +792,7 @@ get injectable(): ConfigraphDataTypeDefinition<InstanceOptions, Metadata>["injectable"] | undefined; | ||
declare function switchBy(switchByKey: string, branches: SwitchByResolverOptions): ConfigValueResolver; | ||
/** | ||
* @deprecated better to use switchBy with a custom env flag | ||
* | ||
* @see https://dmno.dev/docs/guides/multi-env/ | ||
* */ | ||
declare const switchByNodeEnv: (branches: SwitchByResolverOptions) => ConfigValueResolver; | ||
@@ -789,0 +799,0 @@ declare const switchByDmnoEnv: (branches: SwitchByResolverOptions) => ConfigValueResolver; |
{ | ||
"name": "@dmno/configraph", | ||
"version": "0.0.3", | ||
"version": "0.0.4", | ||
"description": "reactive configuration graph - core that powers DMNO", | ||
@@ -5,0 +5,0 @@ "author": "dmno-dev", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
351367
3200