Skip to content

Commit a30f4ed

Browse files
authored
Create inbox options should be optional
1 parent e1911e7 commit a30f4ed

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)