spws
Version:
SharePoint Web Services Wrapper
23 lines (22 loc) • 760 B
TypeScript
import { ListCollection, SpwsResponse } from "../../types";
interface Operation extends SpwsResponse {
data: ListCollection;
}
/**
* Returns the names and GUIDs for all lists in the site.
*
* @link https://docs.microsoft.com/en-us/previous-versions/office/developer/sharepoint-services/ms774663(v=office.12)?redirectedfrom=MSDN
* @example
* ```
* // Get list collection for current site
* const res = await getListCollection()
*
* // Get list collection for another site
* const res = await getListCollection({ webURL: "/sites/other" })
* ```
*/
declare const getListCollection: ({ webURL, }?: {
/** The SharePoint webURL */
webURL?: string | undefined;
}) => Promise<Operation>;
export default getListCollection;