UNPKG

spws

Version:

SharePoint Web Services Wrapper

26 lines (25 loc) 891 B
import { ExpandedUserGroup } from "../../utils/parseUserGroupValue"; type Version<Field extends string> = { Modified: string; Editor: ExpandedUserGroup; } & Record<Field, string>; type Params<Field extends string> = { ID: string; listName: string; field: Field; webURL?: string; }; /** * Gets the versions for a field in an item. * * @link https://learn.microsoft.com/en-us/previous-versions/office/developer/sharepoint-services/ms774544(v=office.12) * @example * ``` * Returns version information for the specified field in a SharePoint list. * const res = await addList("Announcements", { webURL: "/sites/other", templateId: 100, description: "Demo List" }) * ``` */ declare const getVersionCollection: <Field extends string>(params: Params<Field>) => Promise<{ data: Version<Field>[]; }>; export default getVersionCollection;