I am trying to revert a branch commit by using the Revert.revert() and trying to pass in the RevertOptions, but I am unable to create that instance to give it the necessary values. I get a "Property 'RevertOptions' does not exist on type 'typeof'...".
I am using Typescript. I wrote it as:
const revertOpts = new NodeGit.RevertOptions();
and get that error, however I have no problems when creating an instance of MergeOptions. Also noticed that RevertOptions is also an interface while MergeOptions is a class
Am I doing this correctly?
I am trying to revert a branch commit by using the Revert.revert() and trying to pass in the RevertOptions, but I am unable to create that instance to give it the necessary values. I get a "Property 'RevertOptions' does not exist on type 'typeof'...".
I am using Typescript. I wrote it as:
const revertOpts = new NodeGit.RevertOptions();
and get that error, however I have no problems when creating an instance of MergeOptions. Also noticed that RevertOptions is also an interface while MergeOptions is a class
Am I doing this correctly?