import SPPermission from './SPPermission'; import { Guid } from '@microsoft/sp-core-library'; import type { IODataBasePermission } from '@microsoft/sp-odata-types'; /** * Object that represents the data necessary to build an `SPList` object. * * @internal */ export interface ISPListData { /** * @alpha */ baseTemplate: number; id: string; permissions: IODataBasePermission; serverRelativeUrl: string; title: string; } /** * This class is primarily used with the `PageContext` class. It provides contextual * information for the SharePoint list that hosts the page. * * @public */ export default class SPList { /** * The GUID that identifies the SPList on the server. This property could be undefined * if the information isn't available. */ readonly id: Guid; /** * Return the SPPermission object that represents the set of permissions that the * current user has for interacting with the list. */ readonly permissions: SPPermission; /** * Returns the server-relative URL for this `SPList`. * * @remarks * Example: "/sites/PubSite" */ readonly serverRelativeUrl: string; /** * Returns the title for this `SPList`. */ readonly title: string; /** * @internal */ constructor(data: ISPListData); } //# sourceMappingURL=SPList.d.ts.map