diff --git a/docs/sp/files.md b/docs/sp/files.md index cd46ec7be..92e636809 100644 --- a/docs/sp/files.md +++ b/docs/sp/files.md @@ -333,18 +333,15 @@ Both the addChunked and setContentChunked methods support options beyond just su A method that is called each time a chunk is uploaded and provides enough information to report progress or update a progress bar easily. The method has the signature: -`(data: ChunkedFileUploadProgressData) => void` +`(data: IFileUploadProgressData) => void` The data interface is: ```typescript -export interface ChunkedFileUploadProgressData { +export interface IFileUploadProgressData { + uploadId: string; stage: "starting" | "continue" | "finishing"; - blockNumber: number; - totalBlocks: number; - chunkSize: number; - currentPointer: number; - fileSize: number; + offset: number; } ``` diff --git a/docs/sp/lists.md b/docs/sp/lists.md index 286c2fd87..4eb0484c7 100644 --- a/docs/sp/lists.md +++ b/docs/sp/lists.md @@ -70,7 +70,7 @@ console.log(r.Title); }); ``` -You can also provide other (optional) parameters like description, template and enableContentTypes. If that is not enough for you, you can use the parameter named 'additionalSettings' which is just a TypedHash, meaning you can sent whatever properties you'd like in the body (provided that the property is supported by the SharePoint API). You can find a [listing of list template codes](https://docs.microsoft.com/en-us/dotnet/api/microsoft.sharepoint.splisttemplatetype?view=sharepoint-server) in the official docs. +You can also provide other (optional) parameters like description, template and enableContentTypes. If that is not enough for you, you can use the parameter named 'additionalSettings' which is just a TypedHash, meaning you can sent whatever properties you'd like in the body (provided that the property is supported by the SharePoint API). You can find a [listing of list template codes](https://learn.microsoft.com/en-us/openspecs/sharepoint_protocols/ms-wssts/8bf797af-288c-4a1d-a14b-cf5394e636cf) in the official docs. ```TypeScript // this will create a list with template 101 (Document library), content types enabled and show it on the quick launch (using additionalSettings)