Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Commit d457966

Browse files
committed
fix: types
1 parent bce8893 commit d457966

File tree

5 files changed

+105
-103
lines changed

5 files changed

+105
-103
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@
1010
"rest-client"
1111
],
1212
"main": "dist/index.js",
13+
"types": "dist/index.d.ts",
1314
"files": [
1415
"**/dist/**"
1516
],
16-
"types": "dist/index.d.ts",
1717
"dependencies": {
1818
"axios": "^0.24.0",
1919
"uuid": "^8.3.2"

src/TDSClient.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import {
66
comment,
77
extras,
88
} from "./submodules/index.js";
9-
import { ClientConstructor, TDSClient } from "./definitions/index.js";
9+
import { ClientConstructor, TDSClient } from "./definitions";
1010

1111
const TDSClientConstructor: ClientConstructor = (apiToken): TDSClient => {
1212
if (!apiToken) throw new Error("Missing api token");

src/definitions/index.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
export * from "./Client.js";
2-
export * from "./Projects.js";
3-
export * from "./Tasks.js";
4-
export * from "./Sections.js";
5-
export * from "./Labels.js";
6-
export * from "./Comments.js";
7-
export * from "./Extras.js";
1+
export * from "./Client";
2+
export * from "./Projects";
3+
export * from "./Tasks";
4+
export * from "./Sections";
5+
export * from "./Labels";
6+
export * from "./Comments";
7+
export * from "./Extras";

src/index.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import TDSClient from "./TDSClient.js";
2-
32
export * from "./resources/index.js";
4-
export * as Types from "./definitions/index.js";
3+
54
export default TDSClient;

0 commit comments

Comments
 (0)