@fathym-deno/common
Advanced tools
Comparing version 0.0.34 to 0.0.35-eac
@@ -0,1 +1,4 @@ | ||
/** | ||
* The status is a common object for passing more details back than standard boolean. | ||
*/ | ||
export declare class Status { | ||
@@ -5,2 +8,8 @@ Code?: number; | ||
} | ||
/** | ||
* Check to see if a status is successful (code 0). | ||
* | ||
* @param status The status to check for success. | ||
* @returns If the status is successful. | ||
*/ | ||
export declare function isStatusSuccess(status: Status): boolean; |
@@ -0,1 +1,4 @@ | ||
/** | ||
* The status is a common object for passing more details back than standard boolean. | ||
*/ | ||
export class Status { | ||
@@ -19,4 +22,10 @@ constructor() { | ||
} | ||
/** | ||
* Check to see if a status is successful (code 0). | ||
* | ||
* @param status The status to check for success. | ||
* @returns If the status is successful. | ||
*/ | ||
export function isStatusSuccess(status) { | ||
return status && status.Code === 0; | ||
} |
/** | ||
* Determine if a path exists. | ||
* | ||
* @param path The path to check for existence. | ||
@@ -4,0 +5,0 @@ * @returns If the path exists. |
@@ -5,3 +5,3 @@ { | ||
"name": "@fathym-deno/common", | ||
"version": "0.0.34", | ||
"version": "0.0.35-eac", | ||
"description": "Fathym's ES6 based common library.", | ||
@@ -8,0 +8,0 @@ "license": "MIT", |
@@ -0,1 +1,4 @@ | ||
/** | ||
* The status is a common object for passing more details back than standard boolean. | ||
*/ | ||
export declare class Status { | ||
@@ -5,2 +8,8 @@ Code?: number; | ||
} | ||
/** | ||
* Check to see if a status is successful (code 0). | ||
* | ||
* @param status The status to check for success. | ||
* @returns If the status is successful. | ||
*/ | ||
export declare function isStatusSuccess(status: Status): boolean; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.isStatusSuccess = exports.Status = void 0; | ||
/** | ||
* The status is a common object for passing more details back than standard boolean. | ||
*/ | ||
class Status { | ||
@@ -23,2 +26,8 @@ constructor() { | ||
exports.Status = Status; | ||
/** | ||
* Check to see if a status is successful (code 0). | ||
* | ||
* @param status The status to check for success. | ||
* @returns If the status is successful. | ||
*/ | ||
function isStatusSuccess(status) { | ||
@@ -25,0 +34,0 @@ return status && status.Code === 0; |
@@ -29,2 +29,3 @@ "use strict"; | ||
* Determine if a path exists. | ||
* | ||
* @param path The path to check for existence. | ||
@@ -31,0 +32,0 @@ * @returns If the path exists. |
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
14313
379