Skip to content

Commit b4213d6

Browse files
itsme-toMajored
authored andcommitted
Added imports to fix the types
1 parent 28ce37a commit b4213d6

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+61
-25
lines changed

src/SortOptions.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class SortOptions {
2929

3030
/** Returns whether or not any sort options have been set.
3131
*
32-
* @returns {bool} Whether or not any sort options have been set.
32+
* @returns {boolean} Whether or not any sort options have been set.
3333
*/
3434
isSet() {
3535
return this.sort || this.order || this.page;

src/Token.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
// Copyright (c) 2021-2022 BuiltByBit (Mick Capital Pty. Ltd.)
22
// MIT License (https://github.com/BuiltByBit/js-api-wrapper/blob/main/LICENSE)
33

4+
const { TokenType } = require("./TokenType");
5+
46
/** A type representing an API authentication token. */
57
class Token {
68
#type;

src/Wrapper.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33

44
const axios = require("axios");
55

6+
const { Token } = require("./Token");
67
const { Http } = require("./Http.js");
78
const { APIError } = require("./APIError.js");
89
const { Throttler } = require("./Throttler.js");

src/helpers/ConversationsHelper.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
// Copyright (c) 2021-2022 BuiltByBit (Mick Capital Pty. Ltd.)
22
// MIT License (https://github.com/BuiltByBit/js-api-wrapper/blob/main/LICENSE)
33

4+
const { SortOptions } = require("../SortOptions");
5+
46
/**
57
* @typedef {object} Conversation
68
* @property {number} conversation_id
@@ -9,7 +11,7 @@
911
* @property {number} creator_id
1012
* @property {number} last_message_date
1113
* @property {number} last_read_date
12-
* @property {bool} open
14+
* @property {boolean} open
1315
* @property {number} reply_count
1416
* @property {Array<number>} recipient_ids
1517
*/

src/helpers/ThreadsHelper.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
// Copyright (c) 2021-2022 BuiltByBit (Mick Capital Pty. Ltd.)
22
// MIT License (https://github.com/BuiltByBit/js-api-wrapper/blob/main/LICENSE)
33

4+
const { SortOptions } = require("../SortOptions");
5+
46
/**
57
* @typedef {object} BasicThread
68
* @property {number} thread_id

src/helpers/members/ProfilePostsHelper.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
// Copyright (c) 2021-2022 BuiltByBit (Mick Capital Pty. Ltd.)
22
// MIT License (https://github.com/BuiltByBit/js-api-wrapper/blob/main/LICENSE)
33

4+
const { SortOptions } = require("../../SortOptions");
5+
46
/**
57
* @typedef {object} ProfilePost
68
* @property {number} profile_post_id

src/helpers/resources/DownloadsHelper.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
// Copyright (c) 2021-2022 BuiltByBit (Mick Capital Pty. Ltd.)
22
// MIT License (https://github.com/BuiltByBit/js-api-wrapper/blob/main/LICENSE)
33

4+
const { SortOptions } = require("../../SortOptions");
5+
46
/**
57
* @typedef {object} Download
68
* @property {number} download_id

src/helpers/resources/LicensesHelper.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
// Copyright (c) 2021-2022 BuiltByBit (Mick Capital Pty. Ltd.)
22
// MIT License (https://github.com/BuiltByBit/js-api-wrapper/blob/main/LICENSE)
33

4+
const { SortOptions } = require("../../SortOptions");
5+
46
/**
57
* @typedef {object} License
68
* @property {number} license_id

src/helpers/resources/PurchasesHelper.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
// Copyright (c) 2021-2022 BuiltByBit (Mick Capital Pty. Ltd.)
22
// MIT License (https://github.com/BuiltByBit/js-api-wrapper/blob/main/LICENSE)
33

4+
const { SortOptions } = require("../../SortOptions");
5+
46
/**
57
* @typedef {object} Purchase
68
* @property {number} purchase_id

src/helpers/resources/ResourcesHelper.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ const { ReviewsHelper } = require("./ReviewsHelper.js");
88
const { UpdatesHelper } = require("./UpdatesHelper.js");
99
const { VersionsHelper } = require("./VersionsHelper.js");
1010

11+
const { SortOptions } = require("../../SortOptions");
12+
1113
/**
1214
* @typedef {object} BasicResource
1315
* @property {number} resource_id

0 commit comments

Comments
 (0)