Before:
After:
import type Resource from https://...
export async function main(db: Resource<'postgresql'>)import type Resource from https://...
export async function main(db: Resource<'postgresql'>)After:
type Postgresql = {
host: string,
port: number,
user: string,
dbname: string,
sslmode: string,
password: string
}
OR
type Postgresql = object
export async function main(db: Postgresql) type Postgresql = {
host: string,
port: number,
user: string,
dbname: string,
sslmode: string,
password: string
}
OR
type Postgresql = object
export async function main(db: Postgresql)