File tree 17 files changed +23
-23
lines changed
17 files changed +23
-23
lines changed Original file line number Diff line number Diff line change @@ -7,9 +7,9 @@ import type {
7
7
ServerPricing ,
8
8
ServerError ,
9
9
PostData
10
- } from "./types" ;
11
- import type { WhatsAppAPI } from "./index" ;
12
- import type { MaybePromise } from "./utils" ;
10
+ } from "./types.d.ts " ;
11
+ import type { WhatsAppAPI } from "./index.d.ts " ;
12
+ import type { MaybePromise } from "./utils.d.ts " ;
13
13
14
14
/**
15
15
* Callback for "sent" event
Original file line number Diff line number Diff line change 14
14
15
15
// This import makes the docs' links work
16
16
// eslint-disable-next-line @typescript-eslint/no-unused-vars
17
- import type { WhatsAppAPI } from "./index" ;
17
+ import type { WhatsAppAPI } from "./index.d.ts " ;
18
18
19
19
/**
20
20
* The library's base exception class.
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ import type {
23
23
OnSentArgs ,
24
24
OnStatus ,
25
25
OnStatusArgs
26
- } from "./emitters" ;
26
+ } from "./emitters.d.ts " ;
27
27
28
28
import { escapeUnicode , MaybePromise } from "./utils.js" ;
29
29
import { DEFAULT_API_VERSION } from "./types.js" ;
Original file line number Diff line number Diff line change 4
4
ContactUniqueComponent ,
5
5
ContactMultipleComponent
6
6
} from "../types.js" ;
7
- import type { AtLeastOne } from "../utils" ;
7
+ import type { AtLeastOne } from "../utils.d.ts " ;
8
8
9
9
/**
10
10
* @group Contacts
Original file line number Diff line number Diff line change 1
1
import { Section , type ClientTypedMessageComponent } from "../types.js" ;
2
- import type { AtLeastOne } from "../utils" ;
2
+ import type { AtLeastOne } from "../utils.d.ts " ;
3
3
4
4
/**
5
5
* TS knowledge intensifies
Original file line number Diff line number Diff line change 4
4
Section ,
5
5
type InteractiveAction
6
6
} from "../types.js" ;
7
- import type { AtLeastOne } from "../utils" ;
7
+ import type { AtLeastOne } from "../utils.d.ts " ;
8
8
9
- import type { Document , Image , Video } from "./media" ;
9
+ import type { Document , Image , Video } from "./media.d.ts " ;
10
10
11
11
import { CatalogProduct , Product , ProductSection } from "./globals.js" ;
12
12
Original file line number Diff line number Diff line change @@ -5,10 +5,10 @@ import {
5
5
type ClientTypedMessageComponent ,
6
6
type TemplateComponent
7
7
} from "../types.js" ;
8
- import type { AtLeastOne , XOR } from "../utils" ;
8
+ import type { AtLeastOne , XOR } from "../utils.d.ts " ;
9
9
10
- import type { Location } from "./location" ;
11
- import type { Document , Image , Video } from "./media" ;
10
+ import type { Location } from "./location.d.ts " ;
11
+ import type { Document , Image , Video } from "./media.d.ts " ;
12
12
13
13
import { CatalogProduct , Product , ProductSection } from "./globals.js" ;
14
14
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ import { WhatsAppAPIMiddleware } from "./globals.js";
2
2
import { WhatsAppAPIError } from "../errors.js" ;
3
3
4
4
import type { Request } from "@adonisjs/http-server" ;
5
- import type { GetParams , PostData } from "../types" ;
5
+ import type { GetParams , PostData } from "../types.d.ts " ;
6
6
7
7
/**
8
8
* AdonisJS middleware for WhatsAppAPI
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ import { WhatsAppAPIMiddleware } from "./globals.js";
2
2
import { WhatsAppAPIError } from "../errors.js" ;
3
3
4
4
import type { Request } from "express" ;
5
- import type { GetParams } from "../types" ;
5
+ import type { GetParams } from "../types.d.ts " ;
6
6
7
7
/**
8
8
* Express.js middleware for WhatsAppAPI
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ import { WhatsAppAPIError } from "../errors.js";
4
4
import type { IncomingMessage } from "node:http" ;
5
5
import type { Readable } from "node:stream" ;
6
6
7
- import type { GetParams } from "../types" ;
7
+ import type { GetParams } from "../types.d.ts " ;
8
8
9
9
/**
10
10
* node:http server middleware for WhatsAppAPI
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ import { WhatsAppAPI as NodeHTTPMiddleware } from "./node-http.js";
2
2
import { WhatsAppAPIError } from "../errors.js" ;
3
3
4
4
import type { VercelRequest } from "@vercel/node" ;
5
- import type { GetParams } from "../types.js " ;
5
+ import type { GetParams } from "../types.d.ts " ;
6
6
7
7
/**
8
8
* Vercel serverless functions middleware for WhatsAppAPI (Node/Next.js)
Original file line number Diff line number Diff line change 1
1
import { WhatsAppAPIMiddleware } from "./globals.js" ;
2
2
import { WhatsAppAPIError } from "../errors.js" ;
3
3
4
- import type { GetParams } from "../types" ;
4
+ import type { GetParams } from "../types.d.ts " ;
5
5
6
6
/**
7
7
* Web Standard API http server middleware for WhatsAppAPI (deno/bun/SvelteKit/NextJS/Hono)
Original file line number Diff line number Diff line change 1
- import type { WhatsAppAPIConstructorArguments } from "../types" ;
1
+ import type { WhatsAppAPIConstructorArguments } from "../types.d.ts " ;
2
2
3
3
/**
4
4
* A Bun quick setup for the WhatsAppAPI
Original file line number Diff line number Diff line change 1
- import type { WhatsAppAPIConstructorArguments } from "../types" ;
1
+ import type { WhatsAppAPIConstructorArguments } from "../types.d.ts " ;
2
2
3
3
/**
4
4
* A Deno quick setup for the WhatsAppAPI
Original file line number Diff line number Diff line change 1
- import type { WhatsAppAPIConstructorArguments } from "../types" ;
1
+ import type { WhatsAppAPIConstructorArguments } from "../types.d.ts " ;
2
2
3
3
// If this line of code didn't exist,
4
4
// setup would be a single file rather than a folder
Original file line number Diff line number Diff line change 1
- import type { WhatsAppAPIConstructorArguments } from "../types" ;
1
+ import type { WhatsAppAPIConstructorArguments } from "../types.d.ts " ;
2
2
3
3
/**
4
4
* A Web quick setup for the WhatsAppAPI
Original file line number Diff line number Diff line change @@ -19,8 +19,8 @@ import type {
19
19
Template ,
20
20
Reaction ,
21
21
Contacts
22
- } from "./messages" ;
23
- import type { AtLeastOne } from "./utils" ;
22
+ } from "./messages/index.d.ts " ;
23
+ import type { AtLeastOne } from "./utils.d.ts " ;
24
24
25
25
export const DEFAULT_API_VERSION = "v21.0" ;
26
26
You can’t perform that action at this time.
0 commit comments