UNPKG

@raona/sp

Version:

Raona utilities to work with Sharepoint using pnp/sp

22 lines (21 loc) 962 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var sp_core_library_1 = require("@microsoft/sp-core-library"); var EnvironmentService = /** @class */ (function () { function EnvironmentService() { } EnvironmentService.isLocal = function () { return sp_core_library_1.Environment.type === sp_core_library_1.EnvironmentType.Local; }; EnvironmentService.isTest = function () { return sp_core_library_1.Environment.type === sp_core_library_1.EnvironmentType.Local; }; EnvironmentService.isModernSP = function () { return sp_core_library_1.Environment.type === sp_core_library_1.EnvironmentType.SharePoint; }; EnvironmentService.isClassicSP = function () { return sp_core_library_1.Environment.type === sp_core_library_1.EnvironmentType.ClassicSharePoint; }; return EnvironmentService; }()); exports.EnvironmentService = EnvironmentService;