A read action whose item type the caller chooses. The type parameter is an unchecked assertion — SharePoint's JSON is not validated against T.
T
type Task = { Id: number; Title: string }const res = await connection.getListContents<Task>({ listName: 'Tasks' })if (res.success) res.data[0].Title // string Copy
type Task = { Id: number; Title: string }const res = await connection.getListContents<Task>({ listName: 'Tasks' })if (res.success) res.data[0].Title // string
A read action whose item type the caller chooses. The type parameter is an unchecked assertion — SharePoint's JSON is not validated against
T.