Skip to content

Commit 996dd59

Browse files
committed
refactor: utils
1 parent 72e44e5 commit 996dd59

File tree

13 files changed

+15
-11
lines changed

13 files changed

+15
-11
lines changed

src/api/media-meta.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { request, toResponse } from '../request'
2-
import type { LiteralUnion } from '../utils/typings'
2+
import type { LiteralUnion } from '../utils'
33
import type { InteractiveResponse } from '../types/api-responses'
44

55
/**

src/client/client.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { HTTPError } from 'ky'
22
import EventEmitter from 'eventemitter3'
33
import { resolveApiConfig } from '../request'
44
import { ApiClient } from '../api-client'
5-
import { objectPick } from '../utils/objects'
5+
import { objectPick } from '../utils'
66
import { isSuccess, throwRequestFailureError } from './utils/response'
77
import { resolveAreaCode } from './utils/user'
88
import { JikeUser } from './user'

src/types/api-responses.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
/* eslint-disable @typescript-eslint/no-namespace */
2-
import type { LiteralUnion } from '../utils/typings'
2+
3+
import type { LiteralUnion } from '../utils'
34
import type {
45
Comment,
56
FollowingUpdate,

src/types/entity/common.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { LiteralUnion } from '../../utils/typings'
1+
import type { LiteralUnion } from '../../utils'
22

33
export interface CommonImage {
44
thumbnailUrl: string

src/types/entity/notification.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import type { Picture, PostStatus, PostType } from './post'
22
import type { User } from './user'
3-
import type { LiteralUnion } from '../../utils/typings'
3+
import type { LiteralUnion } from '../../utils'
44

55
export interface Notification {
66
id: string

src/types/entity/post.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import type { CommonImage } from './common'
22
import type { Topic } from '.'
33
import type { User } from './user'
4-
import type { LiteralUnion } from '../../utils/typings'
4+
import type { LiteralUnion } from '../../utils'
55

66
export type PostType = 'ORIGINAL_POST' | 'REPOST' | 'STORY'
77
export type StoryStatus = 'NONE' | 'READ' | 'PICTURE'

src/types/entity/profile.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import type { StoryStatus } from './post'
2-
import type { LiteralUnion } from '../../utils/typings'
2+
import type { LiteralUnion } from '../../utils'
33
import type { AvatarImage, BackgroundImage, StatsCount, User } from './user'
44

55
/**

src/types/entity/story.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import type { CommonImage } from './common'
2-
import type { LiteralUnion } from '../../utils/typings'
2+
import type { LiteralUnion } from '../../utils'
33
import type { User } from './user'
44

55
export interface StoryPicture extends CommonImage {

src/types/entity/topic.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { LiteralUnion } from '../../utils/typings'
1+
import type { LiteralUnion } from '../../utils'
22
import type { CommonImage, Ref } from './common'
33

44
export interface Topic {

src/types/entity/user.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { LiteralUnion } from '../../utils/typings'
1+
import type { LiteralUnion } from '../../utils'
22
import type { StoryStatus } from './post'
33
import type { CommonImage, Ref } from './common'
44

0 commit comments

Comments
 (0)