Closed gRoussac closed 1 year ago
Hi, those lines in DeployUtil
export declare const deployFromJson: (json: any) => Result<Deploy, Error>; export declare const validateDeploy: (deploy: Deploy) => Result<Deploy, string>;
return Result as type
Result
and this type is not exported so in my app if I need to do
const signedDeploy: Result<DeployUtil.Deploy, Error> = DeployUtil.deployFromJson(signedDeployToJson);
then I need to import in my app
"ts-results": "npm:@casperlabs/ts-results@^3.3.4",
which is not ideal.
It's a bit sensitive, please check that it does not break anything.
Hi, those lines in DeployUtil
return
Result
as typeand this type is not exported so in my app if I need to do
const signedDeploy: Result<DeployUtil.Deploy, Error> = DeployUtil.deployFromJson(signedDeployToJson);
then I need to import in my app
"ts-results": "npm:@casperlabs/ts-results@^3.3.4",
which is not ideal.
It's a bit sensitive, please check that it does not break anything.