UNPKG

spws

Version:

SharePoint Web Services Wrapper

20 lines (19 loc) 879 B
import { SpwsResponse, ListView } from "../../types"; interface Operation extends SpwsResponse { data: ListView; } /** * Returns the schema of the specified view for the specified list. * @link https://docs.microsoft.com/en-us/previous-versions/office/developer/sharepoint-services/ms772612(v=office.12)?redirectedfrom=MSDN * @param {string} listName A string that contains the internal name of the list. * @param {string} [viewName=""] A string that contains the GUID for the view. If the view name is blank, the default view is returned. * @example * ``` * const res = await getView("Announcements", "{397586A7-1738-4837-9F5D-4F6D54B4FB39}") * ``` */ declare const getView: (listName: string, viewName?: string, { webURL, }?: { /** The SharePoint webURL */ webURL?: string | undefined; }) => Promise<Operation>; export default getView;