UNPKG

spws

Version:

SharePoint Web Services Wrapper

22 lines (21 loc) 694 B
import { SpwsResponse, ListTemplateId, List } from "../../types"; interface Operation extends SpwsResponse { data: List; } type Params = { templateId?: ListTemplateId; description?: string; webURL?: string; }; /** * Creates a new list. * * @link https://learn.microsoft.com/en-us/previous-versions/office/developer/sharepoint-services/ms772560(v=office.12) * @example * ``` * // Get list collection for current site * const res = await addList("Announcements", { webURL: "/sites/other", templateId: 100, description: "Demo List" }) * ``` */ declare const addList: (listName: string, options?: Params) => Promise<Operation>; export default addList;