mirror of
https://github.com/tale/headplane.git
synced 2026-07-26 15:58:14 +00:00
10 lines
249 B
TypeScript
10 lines
249 B
TypeScript
import type { Traversal } from 'arktype';
|
|
import log from '~/utils/log';
|
|
|
|
export function deprecatedField() {
|
|
return (_: unknown, ctx: Traversal) => {
|
|
log.warn('config', `${ctx.propString} is deprecated and has no effect.`);
|
|
return true;
|
|
};
|
|
}
|