Download wp-calypso/client/lib/media-serialization/strategies/unknown.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 295 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/lib/media-serialization/strategies/unknown.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/wp-calypso/client/lib/media-serialization/strategies/unknown.js
-
curl -L -o unknown.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/lib/media-serialization/strategies/unknown.js
295 Bytes
| import { MediaTypes } from '../constants'; | |
| /** | |
| * Given an unknown media object, returns an object with empty attributes. | |
| * @returns {Object} Normalized object with empty attributes | |
| */ | |
| export function deserialize() { | |
| return { | |
| type: MediaTypes.UNKNOWN, | |
| media: {}, | |
| appearance: {}, | |
| }; | |
| } | |