@@ -123,6 +123,7 @@ You'll also need to install the specific database driver or ORM you plan to use.
123
123
<summary ><b >Basic Usage</b ></summary >
124
124
125
125
``` typescript
126
+ import type { PluginSchema } from ' unadapter/types'
126
127
import { createAdapter , createTable , mergePluginSchemas } from ' unadapter'
127
128
import { memoryAdapter } from ' unadapter/memory'
128
129
@@ -231,7 +232,8 @@ const foundUsers = await adapter.findMany({
231
232
<summary ><b >Using Custom Schema and Plugins</b ></summary >
232
233
233
234
``` typescript
234
- import { createAdapter , createTable , mergePluginSchemas , type PluginSchema } from ' unadapter'
235
+ import type { PluginSchema } from ' unadapter/types'
236
+ import { createAdapter , createTable , mergePluginSchemas } from ' unadapter'
235
237
import { memoryAdapter } from ' unadapter/memory'
236
238
237
239
// Create an in-memory database for testing
@@ -382,7 +384,8 @@ const product = await adapter.create({
382
384
<summary ><b >MongoDB Adapter Example</b ></summary >
383
385
384
386
``` typescript
385
- import { createAdapter , createTable , mergePluginSchemas , type PluginSchema } from ' unadapter'
387
+ import type { PluginSchema } from ' unadapter/types'
388
+ import { createAdapter , createTable , mergePluginSchemas } from ' unadapter'
386
389
import { MongoClient } from ' mongodb'
387
390
import { mongodbAdapter } from ' unadapter/mongodb'
388
391
@@ -463,7 +466,8 @@ const user = await adapter.create({
463
466
<summary ><b >Prisma Adapter Example</b ></summary >
464
467
465
468
``` typescript
466
- import { createAdapter , createTable , mergePluginSchemas , type PluginSchema } from ' unadapter'
469
+ import type { PluginSchema } from ' unadapter/types'
470
+ import { createAdapter , createTable , mergePluginSchemas } from ' unadapter'
467
471
import { PrismaClient } from ' @prisma/client'
468
472
import { prismaAdapter } from ' unadapter/prisma'
469
473
@@ -583,7 +587,8 @@ const user = await adapter.create({
583
587
<summary ><b >Drizzle Adapter Example</b ></summary >
584
588
585
589
``` typescript
586
- import { createAdapter , createTable , mergePluginSchemas , type PluginSchema } from ' unadapter'
590
+ import type { PluginSchema } from ' unadapter/types'
591
+ import { createAdapter , createTable , mergePluginSchemas } from ' unadapter'
587
592
import { drizzle } from ' drizzle-orm/mysql2'
588
593
import mysql from ' mysql2/promise'
589
594
import { drizzleAdapter } from ' unadapter/drizzle'
@@ -705,7 +710,8 @@ const user = await adapter.create({
705
710
<summary ><b >Kysely Adapter Example</b ></summary >
706
711
707
712
``` typescript
708
- import { createAdapter , createTable , mergePluginSchemas , type PluginSchema } from ' unadapter'
713
+ import type { PluginSchema } from ' unadapter/types'
714
+ import { createAdapter , createTable , mergePluginSchemas } from ' unadapter'
709
715
import { Kysely , PostgresDialect } from ' kysely'
710
716
import pg from ' pg'
711
717
import { kyselyAdapter } from ' unadapter/kysely'
0 commit comments