mirror of
https://github.com/outline/outline.git
synced 2026-06-13 03:14:59 +03:00
04c3d81b1f
* shared * server * app * remove vestigial eslintrc files * update comment directives
12 lines
352 B
TypeScript
12 lines
352 B
TypeScript
const Deprecated =
|
|
(message?: string) => (_target: object, propertyKey: string) => {
|
|
if (process.env[propertyKey]) {
|
|
// oxlint-disable-next-line no-console
|
|
console.warn(
|
|
`The environment variable ${propertyKey} is deprecated and will be removed in a future release. ${message}`
|
|
);
|
|
}
|
|
};
|
|
|
|
export default Deprecated;
|