Skip to content

Commit

Permalink
allow ops to be passed in constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
rjawesome committed Mar 8, 2024
1 parent 3c4da6c commit c30a949
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ export default class MetaKG {
/**
* constructor to build meta knowledge graph from SmartAPI Specifications
*/
constructor(path: string = undefined, predicates_path: string = undefined) {
constructor(path: string = undefined, predicates_path: string = undefined, ops: SmartAPIKGOperationObject[] = []) {
// store all meta-kg operations
this._ops = [];
this._ops = ops;
this.path = path;
this.predicates_path = predicates_path;
}
Expand Down

0 comments on commit c30a949

Please sign in to comment.