@compass-framework/plugin 1.0.6 → 1.0.8

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.
@@ -1,11 +1,9 @@
1
- export declare class Identifier<API = void> {
1
+ import {Specification} from "./Specification";
2
+
3
+ export declare class Identifier<API> {
2
4
  groupId: string;
3
5
  name: string;
4
6
  artifactId: string;
5
7
 
6
- public constructor({groupId, name, artifactId,}: {
7
- groupId: string
8
- name: string
9
- artifactId: string
10
- });
8
+ public constructor({groupId, name, artifactId,}: Specification);
11
9
  }
@@ -2,9 +2,9 @@ import {Environment} from "./Environment";
2
2
  import {Identifier} from "./Identifier";
3
3
 
4
4
  export declare abstract class Plugin {
5
- public abstract onInstall<T>(env: Environment<T>): void;
5
+ public abstract onInstall<Property>(env: Environment<Property>): void;
6
6
 
7
7
  public abstract onUninstall(): void;
8
8
 
9
- public abstract getIdentifier(): Identifier;
9
+ public abstract getIdentifier(): Identifier<void>;
10
10
  }
@@ -0,0 +1,5 @@
1
+ export interface Specification {
2
+ groupId: string;
3
+ name: string;
4
+ artifactId: string;
5
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@compass-framework/plugin",
3
- "version": "1.0.6",
3
+ "version": "1.0.8",
4
4
  "description": "@compass-framework/plugin public api",
5
5
  "types": "./index.d.ts",
6
6
  "main": "./index.js",