Skip to content

Commit

Permalink
refactor: use LibraryAssetResponse type in getXBlockAssets
Browse files Browse the repository at this point in the history
  • Loading branch information
dcoa committed Nov 13, 2024
1 parent 66c9418 commit 93c20c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/library-authoring/data/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -445,7 +445,7 @@ export async function publishXBlock(usageKey: string) {
* Fetch the asset (static file) list for the given XBlock.
*/
// istanbul ignore next
export async function getXBlockAssets(usageKey: string): Promise<{ path: string; url: string; size: number }[]> {
export async function getXBlockAssets(usageKey: string): Promise<LibraryAssetResponse[]> {
const { data } = await getAuthenticatedHttpClient().get(getXBlockAssetsApiUrl(usageKey));
return data.files;
}
Expand Down

0 comments on commit 93c20c9

Please sign in to comment.