From b76a84aec99a74f4ca876235d07e8f0f598f9afa Mon Sep 17 00:00:00 2001 From: Dionisie Covaliuc Date: Wed, 11 Oct 2023 22:09:15 +0300 Subject: [PATCH] Update index.md we need to add import of the declaration file itself in order to make interface overriding work in the app ref https://github.com/knex/knex/issues/5156#issuecomment-1116276793 --- src/guide/index.md | 1 + 1 file changed, 1 insertion(+) diff --git a/src/guide/index.md b/src/guide/index.md index 222674d0..2cd80031 100644 --- a/src/guide/index.md +++ b/src/guide/index.md @@ -533,6 +533,7 @@ Many of the APIs accept `TRecord` and `TResult` type parameters, using which we To reduce boilerplate and add inferred types, you can augment `Tables` interface in `'knex/types/tables'` module. ```ts +import "knex/types/tables"; import { Knex } from 'knex'; declare module 'knex/types/tables' {