Repository URL to install this package:
|
Version:
1.0.0 ▾
|
@truesparrow/common-js
/
dev-only.d.ts
|
|---|
import { Env } from './env';
/**
* An annotation for methods which should only be called in a dev-context,
* as identified by {@link isForDevelopment}.
* @note Assumes that the environment is some static application-level configuration, such as
* a constant read from a config file or from the environment.
* @param env - the current environment the system is running in.
*/
export declare function devOnly(env: Env): (_target: any, _propertyKey: string, descriptor: PropertyDescriptor) => PropertyDescriptor;