-
Notifications
You must be signed in to change notification settings - Fork 88
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
thjs-63: * fix shared workspace linter
- Loading branch information
1 parent
f883416
commit 8dabef9
Showing
29 changed files
with
63 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
shared/src/libs/exceptions/invalid-credentials-error/invalid-credentials-error.exception.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
import { dayjs } from '../dayjs/dayjs.js'; | ||
|
||
const getDiff = (a, b) => dayjs(a).diff(b); | ||
const getDiff = (a: Date | string, b: Date | string): number => { | ||
return dayjs(a).diff(b); | ||
}; | ||
|
||
export { getDiff }; |
2 changes: 1 addition & 1 deletion
2
shared/src/libs/helpers/date/get-from-now-time/get-from-now-time.helper.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
import { dayjs } from '../dayjs/dayjs.js'; | ||
|
||
const getFromNowTime = date => dayjs(date).fromNow(); | ||
const getFromNowTime = (date: Date): string => dayjs(date).fromNow(); | ||
|
||
export { getFromNowTime }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
export { CommentPayloadKey, CommentsApiPath } from './libs/enums/enums.js'; | ||
export { | ||
type CommentWithUserNestedRelations, | ||
type Comment, | ||
type CommentWithUserNestedRelations, | ||
type CreateCommentRequestDto, | ||
type GetCommentByIdResponseDto | ||
} from './libs/types/types.js'; |
5 changes: 3 additions & 2 deletions
5
shared/src/packages/comment/libs/types/comment-with-user-nested-relations.type.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
shared/src/packages/comment/libs/types/create-comment-request-dto.type.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
shared/src/packages/comment/libs/types/get-comment-by-id-response-dto.type.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
export { type CommentWithUserNestedRelations } from './comment-with-user-nested-relations.type.js'; | ||
export { type Comment } from './comment.type.js'; | ||
export { type GetCommentByIdResponseDto } from './get-comment-by-id-response-dto.type.js'; | ||
export { type CommentWithUserNestedRelations } from './comment-with-user-nested-relations.type.js'; | ||
export { type CreateCommentRequestDto } from './create-comment-request-dto.type.js'; | ||
export { type GetCommentByIdResponseDto } from './get-comment-by-id-response-dto.type.js'; |
2 changes: 1 addition & 1 deletion
2
shared/src/packages/image/libs/types/upload-image-response-dto.type.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
shared/src/packages/post/libs/types/create-post-reaction-request-dto.type.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
shared/src/packages/post/libs/types/create-post-reaction-response-dto.type.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
shared/src/packages/post/libs/types/create-post-request-dto.type.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
shared/src/packages/post/libs/types/get-posts-by-filter-request-dto.type.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
shared/src/packages/post/libs/types/get-posts-by-filter-response-dto.type.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 3 additions & 2 deletions
5
shared/src/packages/post/libs/types/post-reaction-with-post-relation.type.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 3 additions & 2 deletions
5
...packages/post/libs/types/post-with-comment-image-user-nested-relations-with-count.type.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 4 additions & 3 deletions
7
shared/src/packages/post/libs/types/post-with-image-user-nested-relations-with-count.type.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
export { type CreatePostReactionRequestDto } from './create-post-reaction-request-dto.type.js'; | ||
export { type CreatePostReactionResponseDto } from './create-post-reaction-response-dto.type.js'; | ||
export { type CreatePostRequestDto } from './create-post-request-dto.type.js'; | ||
export { type GetPostByIdResponseDto } from './get-post-by-id-response-dto.type.js'; | ||
export { type GetPostsByFilterRequestDto } from './get-posts-by-filter-request-dto.type.js'; | ||
export { type GetPostsByFilterResponseDto } from './get-posts-by-filter-response-dto.type.js'; | ||
export { type Post } from './post.type.js'; | ||
export { type PostReactionWithPostRelation } from './post-reaction-with-post-relation.type.js'; | ||
export { type PostFilter } from './post-filter.type.js'; | ||
export { type PostReaction } from './post-reaction.type.js'; | ||
export { type PostWithImageUserNestedRelationsWithCount } from './post-with-image-user-nested-relations-with-count.type.js'; | ||
export { type PostReactionWithPostRelation } from './post-reaction-with-post-relation.type.js'; | ||
export { type PostWithCommentImageUserNestedRelationsWithCount } from './post-with-comment-image-user-nested-relations-with-count.type.js'; | ||
export { type PostFilter } from './post-filter.type.js'; | ||
export { type GetPostsByFilterRequestDto } from './get-posts-by-filter-request-dto.type.js'; | ||
export { type GetPostsByFilterResponseDto } from './get-posts-by-filter-response-dto.type.js'; | ||
export { type GetPostByIdResponseDto } from './get-post-by-id-response-dto.type.js'; | ||
export { type CreatePostRequestDto } from './create-post-request-dto.type.js'; | ||
export { type CreatePostReactionRequestDto } from './create-post-reaction-request-dto.type.js'; | ||
export { type CreatePostReactionResponseDto } from './create-post-reaction-response-dto.type.js'; | ||
export { type PostWithImageUserNestedRelationsWithCount } from './post-with-image-user-nested-relations-with-count.type.js'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
export { type User } from './user.type.js'; | ||
export { type UserAuthResponse } from './user-auth-response.type.js'; | ||
export { type UserLoginRequestDto } from './user-login-request-dto.type.js'; | ||
export { type UserRegisterRequestDto } from './user-register-request-dto.type.js'; | ||
export { type UserLoginResponseDto } from './user-login-response-dto.type.js'; | ||
export { type UserRegisterRequestDto } from './user-register-request-dto.type.js'; | ||
export { type UserRegisterResponseDto } from './user-register-response-dto.type.js'; | ||
export { type UserWithImageRelation } from './user-with-image-relation.type.js'; | ||
export { type User } from './user.type.js'; | ||
export { type UserWithPassword } from './user-with-password.type.js'; | ||
export { type UserRegisterResponseDto } from './user-register-response-dto.type.js'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
shared/src/packages/user/libs/types/user-login-response-dto.type.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
shared/src/packages/user/libs/types/user-register-response-dto.type.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 3 additions & 2 deletions
5
shared/src/packages/user/libs/types/user-with-image-relation.type.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters