@gesslar/bedoc 1.4.4 → 1.4.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -21,13 +21,15 @@ export type MetaType = ParseMetaDefinition | PrintMetaDefinition
|
|
|
21
21
|
|
|
22
22
|
export interface ActionDefinition {
|
|
23
23
|
meta: MetaType
|
|
24
|
+
setup?: (params: { parent: ActionManager; log: Logger }) => void
|
|
25
|
+
run({ module, content }: { module: string; content: object }): Promise<string>
|
|
24
26
|
}
|
|
25
27
|
|
|
26
|
-
export interface PrintActionDefinition {
|
|
28
|
+
export interface PrintActionDefinition extends ActionDefinition {
|
|
27
29
|
meta: PrintMetaDefinition
|
|
28
30
|
}
|
|
29
31
|
|
|
30
|
-
export interface ParseActionDefinition {
|
|
32
|
+
export interface ParseActionDefinition extends ActionDefinition {
|
|
31
33
|
meta: ParseMetaDefinition
|
|
32
34
|
}
|
|
33
35
|
|
|
@@ -48,4 +50,6 @@ export default class ActionManager {
|
|
|
48
50
|
toString(): string
|
|
49
51
|
#private
|
|
50
52
|
}
|
|
53
|
+
|
|
54
|
+
export type ActionContract = string
|
|
51
55
|
//# sourceMappingURL=ActionManager.d.ts.map
|