mirror of
https://github.com/LemmyNet/lemmy-js-client.git
synced 2024-11-22 20:31:12 +00:00
Remove pointless integer annotations. #190
This commit is contained in:
parent
d53af8c1cc
commit
3bc73ac7b4
32 changed files with 73 additions and 73 deletions
|
@ -28,7 +28,7 @@ popd
|
||||||
rm src/types/Sensitive.ts
|
rm src/types/Sensitive.ts
|
||||||
|
|
||||||
# Change all the bigints to numbers
|
# Change all the bigints to numbers
|
||||||
find src/types -type f -name '*.ts' -exec sed -i 's/bigint/\/* integer *\/ number/g' {} +
|
find src/types -type f -name '*.ts' -exec sed -i 's/bigint/number/g' {} +
|
||||||
|
|
||||||
node putTypesInIndex.js
|
node putTypesInIndex.js
|
||||||
|
|
||||||
|
|
|
@ -35,7 +35,7 @@
|
||||||
"typedoc": "^0.25.8",
|
"typedoc": "^0.25.8",
|
||||||
"typescript": "^5.3.3"
|
"typescript": "^5.3.3"
|
||||||
},
|
},
|
||||||
"packageManager": "pnpm@9.0.1+sha256.46d50ee2afecb42b185ebbd662dc7bdd52ef5be56bf035bb615cab81a75345df",
|
"packageManager": "pnpm@9.0.6+sha256.0624e30eff866cdeb363b15061bdb7fd9425b17bc1bb42c22f5f4efdea21f6b3",
|
||||||
"types": "./dist/index.d.ts",
|
"types": "./dist/index.d.ts",
|
||||||
"lint-staged": {
|
"lint-staged": {
|
||||||
"*.{ts,tsx,js}": [
|
"*.{ts,tsx,js}": [
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||||
|
|
||||||
export type ActivityId = /* integer */ number;
|
export type ActivityId = number;
|
||||||
|
|
|
@ -8,5 +8,5 @@ export interface BanFromCommunity {
|
||||||
ban: boolean;
|
ban: boolean;
|
||||||
remove_data?: boolean;
|
remove_data?: boolean;
|
||||||
reason?: string;
|
reason?: string;
|
||||||
expires?: /* integer */ number;
|
expires?: number;
|
||||||
}
|
}
|
||||||
|
|
|
@ -6,5 +6,5 @@ export interface BanPerson {
|
||||||
ban: boolean;
|
ban: boolean;
|
||||||
remove_data?: boolean;
|
remove_data?: boolean;
|
||||||
reason?: string;
|
reason?: string;
|
||||||
expires?: /* integer */ number;
|
expires?: number;
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,9 +3,9 @@ import type { CommentId } from "./CommentId";
|
||||||
|
|
||||||
export interface CommentAggregates {
|
export interface CommentAggregates {
|
||||||
comment_id: CommentId;
|
comment_id: CommentId;
|
||||||
score: /* integer */ number;
|
score: number;
|
||||||
upvotes: /* integer */ number;
|
upvotes: number;
|
||||||
downvotes: /* integer */ number;
|
downvotes: number;
|
||||||
published: string;
|
published: string;
|
||||||
child_count: number;
|
child_count: number;
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,13 +3,13 @@ import type { CommunityId } from "./CommunityId";
|
||||||
|
|
||||||
export interface CommunityAggregates {
|
export interface CommunityAggregates {
|
||||||
community_id: CommunityId;
|
community_id: CommunityId;
|
||||||
subscribers: /* integer */ number;
|
subscribers: number;
|
||||||
posts: /* integer */ number;
|
posts: number;
|
||||||
comments: /* integer */ number;
|
comments: number;
|
||||||
published: string;
|
published: string;
|
||||||
users_active_day: /* integer */ number;
|
users_active_day: number;
|
||||||
users_active_week: /* integer */ number;
|
users_active_week: number;
|
||||||
users_active_month: /* integer */ number;
|
users_active_month: number;
|
||||||
users_active_half_year: /* integer */ number;
|
users_active_half_year: number;
|
||||||
subscribers_local: /* integer */ number;
|
subscribers_local: number;
|
||||||
}
|
}
|
||||||
|
|
|
@ -9,8 +9,8 @@ export interface GetComments {
|
||||||
type_?: ListingType;
|
type_?: ListingType;
|
||||||
sort?: CommentSortType;
|
sort?: CommentSortType;
|
||||||
max_depth?: number;
|
max_depth?: number;
|
||||||
page?: /* integer */ number;
|
page?: number;
|
||||||
limit?: /* integer */ number;
|
limit?: number;
|
||||||
community_id?: CommunityId;
|
community_id?: CommunityId;
|
||||||
community_name?: string;
|
community_name?: string;
|
||||||
post_id?: PostId;
|
post_id?: PostId;
|
||||||
|
|
|
@ -8,8 +8,8 @@ import type { PostId } from "./PostId";
|
||||||
export interface GetModlog {
|
export interface GetModlog {
|
||||||
mod_person_id?: PersonId;
|
mod_person_id?: PersonId;
|
||||||
community_id?: CommunityId;
|
community_id?: CommunityId;
|
||||||
page?: /* integer */ number;
|
page?: number;
|
||||||
limit?: /* integer */ number;
|
limit?: number;
|
||||||
type_?: ModlogActionType;
|
type_?: ModlogActionType;
|
||||||
other_person_id?: PersonId;
|
other_person_id?: PersonId;
|
||||||
post_id?: PostId;
|
post_id?: PostId;
|
||||||
|
|
|
@ -7,8 +7,8 @@ export interface GetPersonDetails {
|
||||||
person_id?: PersonId;
|
person_id?: PersonId;
|
||||||
username?: string;
|
username?: string;
|
||||||
sort?: SortType;
|
sort?: SortType;
|
||||||
page?: /* integer */ number;
|
page?: number;
|
||||||
limit?: /* integer */ number;
|
limit?: number;
|
||||||
community_id?: CommunityId;
|
community_id?: CommunityId;
|
||||||
saved_only?: boolean;
|
saved_only?: boolean;
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,7 +3,7 @@ import type { CommentSortType } from "./CommentSortType";
|
||||||
|
|
||||||
export interface GetPersonMentions {
|
export interface GetPersonMentions {
|
||||||
sort?: CommentSortType;
|
sort?: CommentSortType;
|
||||||
page?: /* integer */ number;
|
page?: number;
|
||||||
limit?: /* integer */ number;
|
limit?: number;
|
||||||
unread_only?: boolean;
|
unread_only?: boolean;
|
||||||
}
|
}
|
||||||
|
|
|
@ -7,8 +7,8 @@ import type { SortType } from "./SortType";
|
||||||
export interface GetPosts {
|
export interface GetPosts {
|
||||||
type_?: ListingType;
|
type_?: ListingType;
|
||||||
sort?: SortType;
|
sort?: SortType;
|
||||||
page?: /* integer */ number;
|
page?: number;
|
||||||
limit?: /* integer */ number;
|
limit?: number;
|
||||||
community_id?: CommunityId;
|
community_id?: CommunityId;
|
||||||
community_name?: string;
|
community_name?: string;
|
||||||
saved_only?: boolean;
|
saved_only?: boolean;
|
||||||
|
|
|
@ -3,7 +3,7 @@ import type { PersonId } from "./PersonId";
|
||||||
|
|
||||||
export interface GetPrivateMessages {
|
export interface GetPrivateMessages {
|
||||||
unread_only?: boolean;
|
unread_only?: boolean;
|
||||||
page?: /* integer */ number;
|
page?: number;
|
||||||
limit?: /* integer */ number;
|
limit?: number;
|
||||||
creator_id?: PersonId;
|
creator_id?: PersonId;
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,7 +3,7 @@ import type { CommentSortType } from "./CommentSortType";
|
||||||
|
|
||||||
export interface GetReplies {
|
export interface GetReplies {
|
||||||
sort?: CommentSortType;
|
sort?: CommentSortType;
|
||||||
page?: /* integer */ number;
|
page?: number;
|
||||||
limit?: /* integer */ number;
|
limit?: number;
|
||||||
unread_only?: boolean;
|
unread_only?: boolean;
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,7 +3,7 @@ import type { CommunityId } from "./CommunityId";
|
||||||
|
|
||||||
export interface GetReportCountResponse {
|
export interface GetReportCountResponse {
|
||||||
community_id?: CommunityId;
|
community_id?: CommunityId;
|
||||||
comment_reports: /* integer */ number;
|
comment_reports: number;
|
||||||
post_reports: /* integer */ number;
|
post_reports: number;
|
||||||
private_message_reports?: /* integer */ number;
|
private_message_reports?: number;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||||
|
|
||||||
export interface GetUnreadCountResponse {
|
export interface GetUnreadCountResponse {
|
||||||
replies: /* integer */ number;
|
replies: number;
|
||||||
mentions: /* integer */ number;
|
mentions: number;
|
||||||
private_messages: /* integer */ number;
|
private_messages: number;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||||
|
|
||||||
export interface GetUnreadRegistrationApplicationCountResponse {
|
export interface GetUnreadRegistrationApplicationCountResponse {
|
||||||
registration_applications: /* integer */ number;
|
registration_applications: number;
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,6 +3,6 @@ import type { CommentId } from "./CommentId";
|
||||||
|
|
||||||
export interface ListCommentLikes {
|
export interface ListCommentLikes {
|
||||||
comment_id: CommentId;
|
comment_id: CommentId;
|
||||||
page?: /* integer */ number;
|
page?: number;
|
||||||
limit?: /* integer */ number;
|
limit?: number;
|
||||||
}
|
}
|
||||||
|
|
|
@ -4,8 +4,8 @@ import type { CommunityId } from "./CommunityId";
|
||||||
|
|
||||||
export interface ListCommentReports {
|
export interface ListCommentReports {
|
||||||
comment_id?: CommentId;
|
comment_id?: CommentId;
|
||||||
page?: /* integer */ number;
|
page?: number;
|
||||||
limit?: /* integer */ number;
|
limit?: number;
|
||||||
unresolved_only?: boolean;
|
unresolved_only?: boolean;
|
||||||
community_id?: CommunityId;
|
community_id?: CommunityId;
|
||||||
}
|
}
|
||||||
|
|
|
@ -6,6 +6,6 @@ export interface ListCommunities {
|
||||||
type_?: ListingType;
|
type_?: ListingType;
|
||||||
sort?: SortType;
|
sort?: SortType;
|
||||||
show_nsfw?: boolean;
|
show_nsfw?: boolean;
|
||||||
page?: /* integer */ number;
|
page?: number;
|
||||||
limit?: /* integer */ number;
|
limit?: number;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||||
|
|
||||||
export interface ListMedia {
|
export interface ListMedia {
|
||||||
page?: /* integer */ number;
|
page?: number;
|
||||||
limit?: /* integer */ number;
|
limit?: number;
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,6 +3,6 @@ import type { PostId } from "./PostId";
|
||||||
|
|
||||||
export interface ListPostLikes {
|
export interface ListPostLikes {
|
||||||
post_id: PostId;
|
post_id: PostId;
|
||||||
page?: /* integer */ number;
|
page?: number;
|
||||||
limit?: /* integer */ number;
|
limit?: number;
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,8 +3,8 @@ import type { CommunityId } from "./CommunityId";
|
||||||
import type { PostId } from "./PostId";
|
import type { PostId } from "./PostId";
|
||||||
|
|
||||||
export interface ListPostReports {
|
export interface ListPostReports {
|
||||||
page?: /* integer */ number;
|
page?: number;
|
||||||
limit?: /* integer */ number;
|
limit?: number;
|
||||||
unresolved_only?: boolean;
|
unresolved_only?: boolean;
|
||||||
community_id?: CommunityId;
|
community_id?: CommunityId;
|
||||||
post_id?: PostId;
|
post_id?: PostId;
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||||
|
|
||||||
export interface ListPrivateMessageReports {
|
export interface ListPrivateMessageReports {
|
||||||
page?: /* integer */ number;
|
page?: number;
|
||||||
limit?: /* integer */ number;
|
limit?: number;
|
||||||
unresolved_only?: boolean;
|
unresolved_only?: boolean;
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,6 +2,6 @@
|
||||||
|
|
||||||
export interface ListRegistrationApplications {
|
export interface ListRegistrationApplications {
|
||||||
unread_only?: boolean;
|
unread_only?: boolean;
|
||||||
page?: /* integer */ number;
|
page?: number;
|
||||||
limit?: /* integer */ number;
|
limit?: number;
|
||||||
}
|
}
|
||||||
|
|
|
@ -10,7 +10,7 @@ export interface ModlogListParams {
|
||||||
other_person_id?: PersonId;
|
other_person_id?: PersonId;
|
||||||
post_id?: PostId;
|
post_id?: PostId;
|
||||||
comment_id?: CommentId;
|
comment_id?: CommentId;
|
||||||
page?: /* integer */ number;
|
page?: number;
|
||||||
limit?: /* integer */ number;
|
limit?: number;
|
||||||
hide_modlog_names: boolean;
|
hide_modlog_names: boolean;
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,6 +3,6 @@ import type { PersonId } from "./PersonId";
|
||||||
|
|
||||||
export interface PersonAggregates {
|
export interface PersonAggregates {
|
||||||
person_id: PersonId;
|
person_id: PersonId;
|
||||||
post_count: /* integer */ number;
|
post_count: number;
|
||||||
comment_count: /* integer */ number;
|
comment_count: number;
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,10 +3,10 @@ import type { PostId } from "./PostId";
|
||||||
|
|
||||||
export interface PostAggregates {
|
export interface PostAggregates {
|
||||||
post_id: PostId;
|
post_id: PostId;
|
||||||
comments: /* integer */ number;
|
comments: number;
|
||||||
score: /* integer */ number;
|
score: number;
|
||||||
upvotes: /* integer */ number;
|
upvotes: number;
|
||||||
downvotes: /* integer */ number;
|
downvotes: number;
|
||||||
published: string;
|
published: string;
|
||||||
newest_comment_time: string;
|
newest_comment_time: string;
|
||||||
}
|
}
|
||||||
|
|
|
@ -21,7 +21,7 @@ export interface PostReportView {
|
||||||
hidden: boolean;
|
hidden: boolean;
|
||||||
creator_blocked: boolean;
|
creator_blocked: boolean;
|
||||||
my_vote?: number;
|
my_vote?: number;
|
||||||
unread_comments: /* integer */ number;
|
unread_comments: number;
|
||||||
counts: PostAggregates;
|
counts: PostAggregates;
|
||||||
resolver?: Person;
|
resolver?: Person;
|
||||||
}
|
}
|
||||||
|
|
|
@ -20,5 +20,5 @@ export interface PostView {
|
||||||
hidden: boolean;
|
hidden: boolean;
|
||||||
creator_blocked: boolean;
|
creator_blocked: boolean;
|
||||||
my_vote?: number;
|
my_vote?: number;
|
||||||
unread_comments: /* integer */ number;
|
unread_comments: number;
|
||||||
}
|
}
|
||||||
|
|
|
@ -13,6 +13,6 @@ export interface Search {
|
||||||
type_?: SearchType;
|
type_?: SearchType;
|
||||||
sort?: SortType;
|
sort?: SortType;
|
||||||
listing_type?: ListingType;
|
listing_type?: ListingType;
|
||||||
page?: /* integer */ number;
|
page?: number;
|
||||||
limit?: /* integer */ number;
|
limit?: number;
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,12 +3,12 @@ import type { SiteId } from "./SiteId";
|
||||||
|
|
||||||
export interface SiteAggregates {
|
export interface SiteAggregates {
|
||||||
site_id: SiteId;
|
site_id: SiteId;
|
||||||
users: /* integer */ number;
|
users: number;
|
||||||
posts: /* integer */ number;
|
posts: number;
|
||||||
comments: /* integer */ number;
|
comments: number;
|
||||||
communities: /* integer */ number;
|
communities: number;
|
||||||
users_active_day: /* integer */ number;
|
users_active_day: number;
|
||||||
users_active_week: /* integer */ number;
|
users_active_week: number;
|
||||||
users_active_month: /* integer */ number;
|
users_active_month: number;
|
||||||
users_active_half_year: /* integer */ number;
|
users_active_half_year: number;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue