Skip to content

Commit 3badcb8

Browse files
committed
style: add spaces around string literal types
1 parent 576aaf3 commit 3badcb8

3 files changed

Lines changed: 11 additions & 11 deletions

File tree

docs/content/3.providers/twicpics.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ More informations [about `crop` here](https://www.twicpics.com/docs/api/transfor
221221

222222
`flip` will invert the image horizontally, vertically or both depending on the expression provided.
223223

224-
Syntax: `{ flip: 'both'|'x'|'y' }`
224+
Syntax: `{ flip: 'both' | 'x' | 'y' }`
225225

226226
```html
227227
<NuxtImg
@@ -307,7 +307,7 @@ More informations [about `truecolor` here](https://www.twicpics.com/docs/api/tra
307307

308308
`turn` will change the orientation of the image. It accepts an angle in degrees or an expression. Angles will be rounded to the closest multiple of 90°.
309309

310-
Syntax: `{ turn: `[`number`](https://www.twicpics.com/docs/api/manipulations/?utm_source=nuxt&utm_medium=organic&utm_campaign=provider#number)`|'flip'|'left'|'right' }`
310+
Syntax: `{ turn: `[`number`](https://www.twicpics.com/docs/api/manipulations/?utm_source=nuxt&utm_medium=organic&utm_campaign=provider#number)` | 'flip' | 'left' | 'right' }`
311311

312312
```html
313313
<NuxtImg

docs/content/3.providers/uploadcare.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@ To see all possible modifiers and their options, check out the [image transforma
2323
Types are provided for the following modifiers:
2424
```ts [src/types/module.ts]
2525
// Image Compression
26-
format: 'jpeg'|'png'|'webp'|'auto'
27-
quality: 'smart'|'smart_retina'|'normal'|'better'|'best'|'lighter'|'lightest'
28-
progressive: 'yes'|'no'
29-
strip_meta: 'all'|'none'|'sensitive'
26+
format: 'jpeg' | 'png' | 'webp' | 'auto'
27+
quality: 'smart' | 'smart_retina' | 'normal' | 'better' | 'best' | 'lighter' | 'lightest'
28+
progressive: 'yes' | 'no'
29+
strip_meta: 'all' | 'none' | 'sensitive'
3030

3131
// Image Geometry
3232
preview: `${number}x${number}` // Height x Width
@@ -55,4 +55,4 @@ export default defineNuxtConfig({
5555
}
5656
}
5757
})
58-
```
58+
```

src/types/module.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,10 @@ export interface CloudinaryOptions {
4343

4444
export interface UploadcareModifiers extends ImageModifiers{
4545
// Image Compression
46-
format: 'jpeg'|'png'|'webp'|'auto'
47-
quality: 'smart'|'smart_retina'|'normal'|'better'|'best'|'lighter'|'lightest'
48-
progressive: 'yes'|'no'
49-
strip_meta: 'all'|'none'|'sensitive'
46+
format: 'jpeg' | 'png' | 'webp' | 'auto'
47+
quality: 'smart' | 'smart_retina' | 'normal' | 'better' | 'best' | 'lighter' | 'lightest'
48+
progressive: 'yes' | 'no'
49+
strip_meta: 'all' | 'none' | 'sensitive'
5050
// Image Geometry
5151
preview: `${number}x${number}`
5252
resize: `${number}x${number}` | `${number}x`| `x${number}`

0 commit comments

Comments
 (0)