The function exports a Lists object with methods for getting, creating, updating, and deleting lists in a SharePoint site.

  • Parameters

    • baseUrl: string
    • clientId: TClientId

      The clientId parameter is the unique identifier for the client. It is of type TClientId.

    • siteId: string

      The siteId parameter represents the ID of the site where the list is located.

    • OptionallistId: string = null

      The listId parameter is the unique identifier of a specific list. It is optional and can be set to null if you want to perform operations on all lists within a site.

    Returns IQueryLists

    The function Lists returns an object with four properties: get, create, update, and delete.