chore: explicit definition for error properties
fix: lint issue with rest plugin