File tree Expand file tree Collapse file tree 4 files changed +19
-14
lines changed Expand file tree Collapse file tree 4 files changed +19
-14
lines changed Original file line number Diff line number Diff line change @@ -9,20 +9,20 @@ import { JikeUser } from './user'
9
9
import { fetchPaginated } from './utils/paginate'
10
10
import { AuthorizationError } from './errors/AuthorizationError'
11
11
import { JikePost } from './post'
12
- import type { PersonalUpdate } from '.. /types/api-responses '
12
+ import type { FollowingUpdatesMoreKey , JikeClientJSON } from './types'
13
13
import type { CreatePostOption , PostType } from '../types/options'
14
14
import type { FollowingUpdate , Notification } from '../types/entity'
15
15
import type { BeforeRetryState } from 'ky/distribution/types/hooks'
16
16
import type { PaginatedFetcher , PaginatedOption } from './utils/paginate'
17
17
import type { Api } from '../api'
18
18
import type { ApiConfig , ApiConfigResolved } from '../request'
19
19
20
- type FollowingUpdatesMoreKey = PersonalUpdate . FollowingUpdatesResponseMoreKey
21
-
22
20
interface EventMap {
23
21
renewToken : ( ) => void
24
22
}
25
23
24
+ export type { JikeClientJSON }
25
+
26
26
export class JikeClient extends EventEmitter < EventMap > {
27
27
#refreshToken: string
28
28
#config: ApiConfigResolved
@@ -335,10 +335,3 @@ export class JikeClient extends EventEmitter<EventMap> {
335
335
return this . fromJSON ( json )
336
336
}
337
337
}
338
-
339
- export interface JikeClientJSON extends Omit < ApiConfigResolved , 'beforeRetry' > {
340
- refreshToken : string
341
- userId : string
342
- username : string
343
- screenName : string
344
- }
Original file line number Diff line number Diff line change
1
+ import type { ApiConfigResolved } from '../request'
2
+ import type { PersonalUpdate } from '../types/api-responses'
3
+
4
+ export interface JikeClientJSON extends Omit < ApiConfigResolved , 'beforeRetry' > {
5
+ refreshToken : string
6
+ userId : string
7
+ username : string
8
+ screenName : string
9
+ }
10
+
11
+ export type FollowingUpdatesMoreKey =
12
+ PersonalUpdate . FollowingUpdatesResponseMoreKey
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ export interface CommonImage {
3
3
smallPicUrl : string
4
4
middlePicUrl : string
5
5
picUrl : string
6
- /** 格式,如 `jpeg` */
6
+ /** 格式,如 `jpeg`, `heic` */
7
7
format : string
8
8
}
9
9
Original file line number Diff line number Diff line change @@ -24,9 +24,9 @@ export interface PostDetail {
24
24
commentCount : number
25
25
repostCount : number
26
26
shareCount : number
27
- pictures : any [ ]
27
+ pictures : Picture [ ]
28
28
collected : boolean
29
- collectTime ?: any
29
+ collectTime ?: string
30
30
user : User
31
31
createdAt : string
32
32
isFeatured : boolean
@@ -58,7 +58,7 @@ export interface Target {
58
58
likeCount : number
59
59
shareCount : number
60
60
rootType : string
61
- pictures : any [ ]
61
+ pictures : Picture [ ]
62
62
createdAt : string
63
63
liked : boolean
64
64
collected : boolean
You can’t perform that action at this time.
0 commit comments