Skip to content

Commit df74488

Browse files
committed
refactor: improve entity
1 parent 2a64b4e commit df74488

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/types/entity/common.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
1+
import type { LiteralUnion } from '../../utils/typings'
2+
13
export interface CommonImage {
24
thumbnailUrl: string
35
smallPicUrl: string
46
middlePicUrl: string
57
picUrl: string
68
/** 格式,如 `jpeg`, `heic` */
7-
format: string
9+
format: LiteralUnion<'jpeg'>
810
}
911

1012
export type Ref =

0 commit comments

Comments
 (0)