Skip to content

Conversation

Meldiron
Copy link
Contributor

@Meldiron Meldiron commented Feb 23, 2022

Snippets from generated SDK:

export type UploadProgress = {
    $id: string;
    progress: number;
    sizeUploaded: number;
    chunksTotal: number;
    chunksUploaded: number;
}
createTag: async (functionId: string, command: string, code: File, onProgress = (progress: UploadProgress) => {}): Promise<Models.Tag> => {
                if (onProgress) {
                    onProgress({
                        $id: response.$id,
                        progress: Math.min((counter + 1) * Appwrite.CHUNK_SIZE, size) / size * 100,
                        sizeUploaded: end+1,
                        chunksTotal: response.chunksTotal,
                        chunksUploaded: response.chunksUploaded
                    });
                }

Copy link
Member

@lohanidamodar lohanidamodar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@lohanidamodar lohanidamodar merged commit b3813a4 into feat-preps-for-0.13 Feb 23, 2022
@lohanidamodar lohanidamodar deleted the fix-web-types branch February 23, 2022 11:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants