UNPKG

@googleforcreators/media

Version:

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

14 lines 418 B
/** * Internal dependencies */ import type { Resource } from './types'; /** * Returns a valid srcSet attribute value for the given media resource. * * @param resource The resource. * @return The srcSet value, or null if the resource has no `sizes` * attribute. */ declare function calculateSrcSet(resource: Resource): string | null; export default calculateSrcSet; //# sourceMappingURL=calculateSrcSet.d.ts.map