UNPKG

@wepublish/api

Version:
8 lines (7 loc) 492 B
import { SettingName } from './setting'; export declare const SETTINGS_METADATA_KEY = "settings"; /** * Causes the method/class to require a setting to be truthy to be called. * This uses the `OneOf` decorator, so if there are multiple guards attached, only one has to return true. */ export declare const Settings: (...settings: SettingName[]) => <TFunction extends Function, Y>(target: object | TFunction, propertyKey?: string | symbol, descriptor?: TypedPropertyDescriptor<Y>) => void;