get fix()
The get accessor obtains a possible solution to the described problem
CommonError.prototype.fix
CommonError.prototype.fix
The get
accessor obtains a possible solution to the described problem by returning the #fix
property of a specified object.
public get fix(): string {
return this.#fix;
}
Return type
Returns
The return value is the fix of a string
type.
Example usage
// Example usage.
import { CommonError } from '@angular-package/error';
// Extend the `CommonError` class.
class TestError<Id extends string> extends CommonError<Id> {}
// Returns "Fix accessor."
new TestError('problem', 'Fix accessor.', '(AE:427)').fix;
Last updated
Was this helpful?