bknd is dead long live userbase
Run Tests / test (pull_request) Successful in 4m57s

This commit is contained in:
2026-09-27 19:34:06 +05:30
parent 05e0086fcd
commit 0bfcb5ad71
529 changed files with 2385 additions and 2924 deletions
+6 -6
View File
@@ -1,8 +1,8 @@
/// <reference types="./worker-configuration.d.ts" />
import type { CloudflareBkndConfig } from "bknd/adapter/cloudflare";
import { code } from "bknd/modes";
import { boolean, em, entity, text } from "bknd";
import type { CloudflareUserbaseConfig } from "userbase/adapter/cloudflare";
import { code } from "userbase/modes";
import { boolean, em, entity, text } from "userbase";
const schema = em({
todos: entity("todos", {
@@ -13,13 +13,13 @@ const schema = em({
// register your schema to get automatic type completion
// alternatively, you can use the CLI to generate types
// learn more at https://docs.bknd.io/usage/cli/#generating-types-types
// learn more at https://docs.userbase.io/usage/cli/#generating-types-types
type Database = (typeof schema)["DB"];
declare module "bknd" {
declare module "userbase" {
interface DB extends Database {}
}
export default code<CloudflareBkndConfig>({
export default code<CloudflareUserbaseConfig>({
app: (env) => ({
config: {
data: schema.toJSON(),