@drovp/types
Advanced tools
Comparing version 4.8.0 to 4.9.0
@@ -100,3 +100,6 @@ /** | ||
export interface ProcessorConfig<Payload extends AnyPayload = AnyPayload> { | ||
export interface ProcessorConfig< | ||
Payload extends AnyPayload = AnyPayload, | ||
Dependencies extends DependenciesData = DependenciesData | ||
> { | ||
main: string; | ||
@@ -117,3 +120,3 @@ description?: string; | ||
payload: Pick<Payload, 'id' | 'options' | 'input' | 'inputs'>, | ||
utils: PreparatorUtils | ||
utils: PreparatorUtils<Dependencies> | ||
) => Payload | null | undefined | false | void | Promise<Payload | null | undefined | false | void>; | ||
@@ -412,2 +415,4 @@ progressFormatter?: 'bytes' | ((progress: ProgressData) => string); // HTML | ||
export type DependenciesData = {[key: string]: unknown}; | ||
export type OutputMeta<T = {}> = T & { | ||
@@ -438,9 +443,10 @@ flair?: Flair; | ||
export type PreparatorUtils = CommonModals & { | ||
export interface PreparatorUtils<D extends DependenciesData = DependenciesData> extends CommonModals { | ||
modifiers: string; | ||
action: 'drop' | 'paste'; | ||
title(value: string | undefined | null): void; | ||
dependencies: {[key: string]: unknown}; | ||
dependencies: D; | ||
settings: AppSettings; | ||
}; | ||
nodePath: string; | ||
} | ||
@@ -447,0 +453,0 @@ export interface AppSettings { |
{ | ||
"name": "@drovp/types", | ||
"version": "4.8.0", | ||
"version": "4.9.0", | ||
"description": "Drovp plugin API definitions", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
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
22993
619