Skip to content

Commit 260a187

Browse files
author
Maya Shavin
committed
chore: documentation and add Asset type
1 parent 753bc7c commit 260a187

File tree

3 files changed

+36
-0
lines changed

3 files changed

+36
-0
lines changed

packages/types/lib/asset/Asset.ts

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
2+
import { ResourceType } from '../cloud/ResourceType'
3+
import { StorageType } from '../cloud/StorageType'
4+
5+
export interface Asset {
6+
publicId: string,
7+
assetId: string,
8+
format: string,
9+
secureUrl: string,
10+
type: StorageType,
11+
version: string | number,
12+
height: number,
13+
width: number,
14+
eager?: Object[],
15+
placeholder?: boolean,
16+
tags?: string[],
17+
originalFilename: string,
18+
overwritten?: boolean,
19+
resourceType: ResourceType
20+
}

packages/types/lib/index.d.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,3 +34,5 @@ export {
3434
export {
3535
SocialCard, SocialImage, SocialText, TextArea
3636
} from './options/TextOptions'
37+
38+
export { Asset } from './asset/Asset'
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,23 @@
11
# `vue-cli-plugin-cloudinary-api`
22

3+
[![npm version][npm-version-src]][npm-version-href]
4+
[![npm downloads][npm-downloads-src]][npm-downloads-href]
5+
[![License][license-src]][license-href]
6+
37
> Vue-cli plugin for installing Cloudinary light APIs in Vue project.
48
59
## Usage
610

711
```bash
812
vue add cloudinary-api
913
```
14+
15+
<!-- Badges -->
16+
[npm-version-src]: https://img.shields.io/npm/v/vue-cli-plugin-cloudinary-api/latest.svg
17+
[npm-version-href]: https://npmjs.com/package/vue-cli-plugin-cloudinary-api
18+
19+
[npm-downloads-src]: https://img.shields.io/npm/dt/vue-cli-plugin-cloudinary-api.svg
20+
[npm-downloads-href]: https://npmjs.com/package/vue-cli-plugin-cloudinary-api
21+
22+
[license-src]: https://img.shields.io/npm/l/vue-cli-plugin-cloudinary-api.svg
23+
[license-href]: https://npmjs.com/package/vue-cli-plugin-cloudinary-api

0 commit comments

Comments
 (0)