Skip to content

Commit c453025

Browse files
Merge pull request #4 from danteissaias/patch-1
Create inbox options should be optional
2 parents e1911e7 + a30f4ed commit c453025

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ export class TempMail {
5454
* @param domain {string} the specific domain to use.
5555
* @returns {Inbox} the Inbox object with the address and token.
5656
*/
57-
async createInbox(options: CreateInboxOptions): Promise<Inbox> {
57+
async createInbox(options?: CreateInboxOptions): Promise<Inbox> {
5858
let url = "/inbox/create";
5959

6060
const r = await this.makeRequest(url, options);

0 commit comments

Comments
 (0)