function deprecate(fn, validator) {
	return (input, keypath) => {
		if (input !== undefined) warn_once(fn);
		return validator(input, keypath);
	};
}
@param {(node: null) => void} fn
@param {Validator} validator
@returns {Validator}