Given the example below.
import { QueryClientContract, TransactionClientContract } from '@ioc:Adonis/Lucid/Database'
The use of the colon has confused me and never understood where the imported files could be referenced from.
Given the example below.
import { QueryClientContract, TransactionClientContract } from '@ioc:Adonis/Lucid/Database'
The use of the colon has confused me and never understood where the imported files could be referenced from.
In import statement you are importing ambient module. I recommend you to read following documentation for more details.
https://www.typescriptlang.org/docs/handbook/modules.html#ambient-modules