UNPKG

stackexchange-api

Version:
17 lines (16 loc) 1 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); /** * The equivalent of [Type privilege](https://api.stackexchange.com/docs/types/privilege).<br> * Represents a Privilege a User may have on a [Stack Exchange site](https://stackexchange.com/sites).<br> * Applications should be aware of, and be able to deal with, the possibility of new Privileges being introduced and old ones being removed. */ class Privilege { constructor(privilege) { var _a, _b, _c, _d, _e, _f; this.description = (_b = (_a = privilege) === null || _a === void 0 ? void 0 : _a.description, (_b !== null && _b !== void 0 ? _b : null)); this.reputation = (_d = (_c = privilege) === null || _c === void 0 ? void 0 : _c.reputation, (_d !== null && _d !== void 0 ? _d : null)); this.shortDescription = (_f = (_e = privilege) === null || _e === void 0 ? void 0 : _e.short_description, (_f !== null && _f !== void 0 ? _f : null)); } } exports.Privilege = Privilege;