Skip to content

Commit

Permalink
fix: fix typo (Capcha -> Captcha)
Browse files Browse the repository at this point in the history
BREAKING CHANGE: Renamed type `Capcha` -> `Captcha` (fixed typo).
  • Loading branch information
thislooksfun committed Mar 5, 2022
1 parent 56fa7f4 commit 774866d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/reddit/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export { ReplyableControls } from "./replyable/controls";
export { Replyable } from "./replyable/object";
export type {
BanOptions,
Capcha,
Captcha,
LinkPostOptions,
TextPostOptions,
} from "./subreddit/controls";
Expand Down
14 changes: 7 additions & 7 deletions src/reddit/subreddit/controls.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@ import { PostOrCommentListing } from "../post-or-comment/listing";
import { Subreddit } from "../subreddit/object";
import { assertKind, fromRedditData } from "../util";

/** A single capcha identifier and response. */
export interface Capcha {
/** The identifier of the capcha. */
/** A single captcha identifier and response. */
export interface Captcha {
/** The identifier of the captcha. */
iden: string;
/** The response to the capcha. */
/** The response to the captcha. */
response: string;
}

Expand Down Expand Up @@ -58,10 +58,10 @@ export interface TextPostOptions {
sendReplies?: boolean;

/**
* The capcha information. This is only necessary if the authenticated account
* The captcha information. This is only necessary if the authenticated account
* requires a captcha to submit posts and comments.
*/
captcha?: Capcha;
captcha?: Captcha;

/** Whether or not this post is NSFW (defaults to `false`). */
nsfw?: boolean;
Expand All @@ -87,7 +87,7 @@ interface PostOptions {
url?: string;
crosspostFullname?: string;
sendReplies: boolean;
captcha?: Capcha;
captcha?: Captcha;
nsfw: boolean;
spoiler: boolean;
// This only applies to link and cross posts
Expand Down

0 comments on commit 774866d

Please sign in to comment.