UNPKG

@googleforcreators/media

Version:

Functionality for creating and working with media resources in the Web Stories editor.

15 lines 552 B
/** * Internal dependencies */ import type { Resource } from './types'; /** * Choose the source URL of the smallest available size image / video wider than * minWidth, according to the device pixel ratio. * * @param minWidth The minimum width of the thumbnail to return. * @param resource The resource. * @return Source URL of the smallest available size media. */ declare function getSmallestUrlForWidth(minWidth: number, resource: Resource): string; export default getSmallestUrlForWidth; //# sourceMappingURL=getSmallestUrlForWidth.d.ts.map