mirror of
https://github.com/tale/headplane.git
synced 2026-07-26 07:48:14 +00:00
11 lines
256 B
TypeScript
11 lines
256 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;
|
|
};
|
|
}
|