File tree 1 file changed +5
-5
lines changed
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -135,8 +135,9 @@ export class GClient<Ready extends boolean = boolean> extends Client<Ready> {
135
135
}
136
136
137
137
/**
138
- * The method that returns original types from {@link GClientOptions.database}
139
- * @param {any } _ Prototype of your class to get types.
138
+ /**
139
+ * The method that returns the database option provided in {@link GClientOptions }
140
+ * @param {any } _ Used for typings
140
141
* @returns {Database }
141
142
* @example TypeScript example
142
143
* ```typescript
@@ -148,7 +149,7 @@ export class GClient<Ready extends boolean = boolean> extends Client<Ready> {
148
149
* })
149
150
*
150
151
* const db = client.getDatabase(MongoDBProvider.prototype);
151
- * // Types working in `db`
152
+ * // returns <MongoDBProvider>
152
153
* ```
153
154
* @example JavaScript example
154
155
* ```javascript
@@ -160,10 +161,9 @@ export class GClient<Ready extends boolean = boolean> extends Client<Ready> {
160
161
* })
161
162
*
162
163
* const db = client.getDatabase(MongoDBProvider.prototype);
163
- * // Types working in `db`
164
+ * // returns <MongoDBProvider>
164
165
* ```
165
166
*/
166
- // eslint-disable-next-line @typescript-eslint/no-unused-vars
167
167
public getDatabase < Database > ( _ ?: Database ) : Database {
168
168
return this . options . database ;
169
169
}
You can’t perform that action at this time.
0 commit comments