diff --git a/packages/editor/src/components/approvalDialog.tsx b/packages/editor/src/components/approvalDialog.tsx index 0f4bb9ae..022dbb4d 100644 --- a/packages/editor/src/components/approvalDialog.tsx +++ b/packages/editor/src/components/approvalDialog.tsx @@ -16,7 +16,6 @@ const numberFormatter = Intl.NumberFormat( 'en', { style: 'unit', unit: 'byte', unitDisplay: 'narrow', - // @ts-ignore -- TODO: Update types somehow. roundingPriority: 'lessPrecision', maximumSignificantDigits: 2, maximumFractionDigits: 2, diff --git a/packages/upload-media/src/store/actions.ts b/packages/upload-media/src/store/actions.ts index 8d03bfb1..376aff12 100644 --- a/packages/upload-media/src/store/actions.ts +++ b/packages/upload-media/src/store/actions.ts @@ -460,13 +460,7 @@ export function optimizeExistingItem( { generatedPosterId, startTime, }: OptimizeExistingItemArgs ) { - return async ( { - dispatch, - registry, - }: { - dispatch: ActionCreators; - registry: WPDataRegistry; - } ) => { + return async ( { dispatch, registry }: ThunkArgs ) => { fileName = fileName || getFileNameFromUrl( url ); const baseName = getFileBasename( fileName ); const newFileName = fileName.replace( diff --git a/packages/upload-media/src/store/private-actions.ts b/packages/upload-media/src/store/private-actions.ts index 88e717bd..65c23d19 100644 --- a/packages/upload-media/src/store/private-actions.ts +++ b/packages/upload-media/src/store/private-actions.ts @@ -185,13 +185,7 @@ export function addItem( { abortController, operations, }: AddItemArgs ) { - return async ( { - dispatch, - registry, - }: { - dispatch: ActionCreators; - registry: WPDataRegistry; - } ) => { + return async ( { dispatch, registry }: ThunkArgs ) => { const thumbnailGeneration: ThumbnailGeneration = registry .select( preferencesStore ) .get( PREFERENCES_NAME, 'thumbnailGeneration' ); @@ -612,13 +606,7 @@ export function finishOperation( * @param id Item ID. */ export function addPosterForItem( id: QueueItemId ) { - return async ( { - select, - dispatch, - }: { - select: Selectors; - dispatch: ActionCreators; - } ) => { + return async ( { select, dispatch }: ThunkArgs ) => { const item = select.getItem( id ) as QueueItem; // Bail early if the video already has a poster.