function update(source, d = 1) {
	var value = get(source);
	var result = d === 1 ? value++ : value--;

	set(source, value);

	// @ts-expect-error
	return result;
}
@template {number | bigint} T
@param {Source<T>} source
@param {1 | -1} [d]
@returns {T}