Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: "string" types should be string #38

Merged
merged 1 commit into from
Apr 7, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions lib/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ declare module "smtp-tester" {
* @param id The internal ID of the email.
* @param email The email being received.
*/
type Handler = (recipient: "string", id: number, email: EmailInfo) => void
type Handler = (recipient: string, id: number, email: EmailInfo) => void

/**
* A catch-all handler that triggers when any email is received.
Expand All @@ -35,7 +35,7 @@ declare module "smtp-tester" {
* @param email The email being received.
*/
interface CaptureOneResult {
address: "string"
address: string
id: number
email: EmailInfo
}
Expand Down Expand Up @@ -132,12 +132,12 @@ declare module "smtp-tester" {
/**
* The sender of the email.
*/
sender: "string"
sender: string

/**
* The receivers of the email.
*/
receivers: Record<"string", true>
receivers: Record<string, true>

/**
* The raw data of the email.
Expand Down
Loading