Skip to content

Commit

Permalink
#664 📝 added documentation for wlsException typeguard
Browse files Browse the repository at this point in the history
  • Loading branch information
vjohnslhm committed Dec 16, 2024
1 parent c89d35e commit 958ce6a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions wls-gui-wahllokalsystem/src/api/WLSError.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,11 @@ export default class WLSError extends Error {
this.service = service;
}

/**
* Type guard to check if an object is a WLSException
* @param obj - The object to check
* @returns True if the object has all required WLSEexception properties with correct types
*/
static isWLSException(obj: any): obj is WLSError {
return (
obj &&
Expand Down

0 comments on commit 958ce6a

Please sign in to comment.