Skip to content

Commit

Permalink
docs: fix wrong type annotation in API docs
Browse files Browse the repository at this point in the history
  • Loading branch information
yujiosaka committed Oct 29, 2023
1 parent ccc34ad commit 76bcde6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/API.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,13 +109,13 @@ Connect to a MongoDB server.
#### `connect`

```ts
static connect(url: string, options: MongoClientOptions): Promise<MongodbJobStore>
static connect(url: string, options: ConnectOptions): Promise<MongodbJobStore>
```

**Parameters**:

- `url`: [string] - MongoDB connection URL.
- `options`: [MongoClientOptions] - Options for MongoDB connection.
- `options`: [ConnectOptions] - Options for MongoDB connection.

#### Methods

Expand Down Expand Up @@ -237,7 +237,7 @@ close(): Promise<Job>
[Date]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/Date "Date"
[Duration]: https://date-fns.org/v2.30.0/docs/Duration "Duration"
[BaseJobStore]: https://github.com/yujiosaka/Cronyx/blob/main/docs/API.md#class-basejobstore "BaseJobStore"
[MongoClientOptions]: https://www.mongodb.com/docs/drivers/node/current/fundamentals/connection/connection-options/ "MongoClientOptions"
[ConnectOptions]: https://mongoosejs.com/docs/connections.html#options "ConnectOptions"
[RedisClientOptions]: https://github.com/redis/node-redis/blob/master/docs/client-configuration.md "RedisClientOptions"
[MysqlConnectionOptions]: https://typeorm.delightful.studio/interfaces/_driver_mysql_mysqlconnectionoptions_.mysqlconnectionoptions.html "MysqlConnectionOptions"
[PostgresConnectionOptions]: https://typeorm.delightful.studio/interfaces/_driver_postgres_postgresconnectionoptions_.postgresconnectionoptions "PostgresConnectionOptions"
Expand Down

0 comments on commit 76bcde6

Please sign in to comment.