UNPKG

460 BJavaScriptView Raw
1/**
2 * Decorator used to specify the default path for SPQueryable objects
3 *
4 * @param path
5 */
6export function defaultPath(path) {
7 // eslint-disable-next-line @typescript-eslint/ban-types
8 return function (target) {
9 return class extends target {
10 constructor(...args) {
11 super(args[0], args.length > 1 && args[1] !== undefined ? args[1] : path);
12 }
13 };
14 };
15}
16//# sourceMappingURL=decorators.js.map
\No newline at end of file