File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -429,9 +429,9 @@ await db.migrate({
429429})
430430```
431431
432- ### Typescript tricks
432+ ## Typescript tricks
433433
434- #### Specify typings for a specific database driver
434+ ### Specify typings for a specific database driver
435435
436436``` typescript
437437import sqlite3 from ' sqlite3'
@@ -442,13 +442,13 @@ await open<sqlite3.Database, sqlite3.Statement>({
442442})
443443```
444444
445- #### Use generics to get better typings on your rows
445+ ### Use generics to get better typings on your rows
446446
447447Most methods allow for the use of [ generics] ( https://www.typescriptlang.org/docs/handbook/generics.html )
448448to specify the data type of your returned data. This allows your IDE to perform better autocomplete
449449and the typescript compiler to perform better static type analysis.
450450
451- ##### Get example
451+ #### Get example
452452
453453``` typescript
454454
@@ -460,7 +460,7 @@ interface Row {
460460const result = await db .get <Row >(' SELECT col FROM tbl WHERE col = ?' , ' test' )
461461```
462462
463- ##### All example
463+ #### All example
464464
465465``` typescript
466466interface Row {
You can’t perform that action at this time.
0 commit comments