Skip to content

Commit 317630a

Browse files
committed
Update readme
1 parent 1d74add commit 317630a

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff 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
437437
import 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

447447
Most methods allow for the use of [generics](https://www.typescriptlang.org/docs/handbook/generics.html)
448448
to specify the data type of your returned data. This allows your IDE to perform better autocomplete
449449
and 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 {
460460
const result = await db.get<Row>('SELECT col FROM tbl WHERE col = ?', 'test')
461461
```
462462

463-
##### All example
463+
#### All example
464464

465465
```typescript
466466
interface Row {

0 commit comments

Comments
 (0)