broccoli-node-api
Advanced tools
Comparing version 1.6.0 to 1.7.0
@@ -27,2 +27,6 @@ /** | ||
export interface BuildChangeObject { | ||
changedNodes: boolean[]; | ||
} | ||
/** | ||
@@ -139,2 +143,8 @@ The Broccoli Node API | ||
volatile: boolean; | ||
/** | ||
If true, a change object will be passed to the build method which contains | ||
information about which input has changed since the last build. Defaults to false. | ||
*/ | ||
trackInputChanges: boolean; | ||
} | ||
@@ -196,7 +206,9 @@ | ||
The `build` function is responsible for performing the node's main work. | ||
BuildChangeObject is only passed if trackInputChanges is true. | ||
*/ | ||
export interface CallbackObject { | ||
build(): Promise<void> | void; | ||
build(buildChangeObject?: BuildChangeObject): Promise<void> | void; | ||
} | ||
export type InputNode = Node | string; |
{ | ||
"name": "broccoli-node-api", | ||
"version": "1.6.0", | ||
"version": "1.7.0", | ||
"description": "Broccoli Plugin API Types", | ||
@@ -5,0 +5,0 @@ "repository": "github:broccolijs/broccoli-node-api", |
@@ -145,2 +145,3 @@ # `broccoli-node-api` | ||
volatile: boolean; | ||
trackInputChanges: boolean; | ||
} | ||
@@ -157,3 +158,3 @@ ``` | ||
interface CallbackObject { | ||
build(): Promise<void> | void; | ||
build(buildChangeObject?: BuildChangeObject): Promise<void> | void; | ||
} | ||
@@ -164,2 +165,12 @@ ``` | ||
### BuildChangeObject | ||
```ts | ||
interface BuildChangeObject { | ||
changedNodes: boolean[]; | ||
} | ||
``` | ||
--- | ||
### SourceNodeInfo | ||
@@ -166,0 +177,0 @@ |
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
11683
176
183