node-apple-weatherkit
Version:
Apple WeatherKit API node.js implementation
12 lines • 329 B
JavaScript
/*
* Copyright (c) 2022 RainMachine - Green Electronics LLC
* Author: Nicu Pavel
* License: MIT
*/
export function Err(message, code) {
return { isErr: true, error: message, code: code };
}
export function isErr(err) {
return typeof err === 'object' && err != null && 'isErr' in err;
}
//# sourceMappingURL=Err.js.map