Skip to content

Commit

Permalink
Implement the fix in the other pr
Browse files Browse the repository at this point in the history
  • Loading branch information
OIRNOIR committed Jul 4, 2023
1 parent 26e3a21 commit 4219d85
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/kiai.js/src/KiaiClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export class KiaiClient {
* @param options.debug Whether to enable debug mode
* @constructor
*/
constructor(apiKey: string, options?: { baseURL?: string; version: `v${number}`; debug?: boolean; fetchFunction: ((url: URL | RequestInfo, init?: RequestInit | undefined) => Promise<Response>) }) {
constructor(apiKey: string, options?: { baseURL?: string; version?: `v${number}`; debug?: boolean; fetchFunction: ((url: URL | RequestInfo, init?: RequestInit | undefined) => Promise<Response>) }) {
this.apiKey = apiKey
this.version = options?.version || "v1"
this.baseURL = options?.baseURL || `https://api.kiaibot.com/${this.version}`
Expand Down

0 comments on commit 4219d85

Please sign in to comment.