@mapwhit/style-expressions
Version:
Process expressions in map style.
15 lines (12 loc) • 361 B
JavaScript
/**
* A type used for returning and propagating errors. The first element of the union
* represents success and contains a value, and the second represents an error and
* contains an error value.
* @private
*/
export function success(value) {
return { result: 'success', value };
}
export function error(value) {
return { result: 'error', value };
}