examples: fixing imports due to 0.16 (#226)

This commit is contained in:
dswbx
2025-08-06 08:19:29 +02:00
committed by GitHub
parent bd48bb7a18
commit aa0e6f90d9
6 changed files with 21 additions and 23 deletions

View File

@@ -1,6 +1,6 @@
import type { AstroBkndConfig } from "bknd/adapter/astro";
import { registerLocalMediaAdapter } from "bknd/adapter/node";
import { boolean, em, entity, text } from "bknd/data";
import { boolean, em, entity, text } from "bknd";
import { secureRandomString } from "bknd/utils";
// since we're running in node, we can register the local media adapter
@@ -16,7 +16,7 @@ const schema = em({
// register your schema to get automatic type completion
type Database = (typeof schema)["DB"];
declare module "bknd/core" {
declare module "bknd" {
interface DB extends Database {}
}