Skip to content

Commit

Permalink
Merge pull request #38 from matthieu-foucault/fix/string-type
Browse files Browse the repository at this point in the history
fix: `"string"` types should be `string`
  • Loading branch information
deitch authored Apr 7, 2024
2 parents c3dc767 + 8c0fcda commit 7158b89
Showing 1 changed file with 4 additions and 4 deletions.
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

0 comments on commit 7158b89

Please sign in to comment.