Skip to content

Commit 23a1af0

Browse files
chore: update import statements for PluginSchema type in examples
1 parent cad556e commit 23a1af0

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

README.md

+11-5
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,7 @@ You'll also need to install the specific database driver or ORM you plan to use.
123123
<summary><b>Basic Usage</b></summary>
124124

125125
```typescript
126+
import type { PluginSchema } from 'unadapter/types'
126127
import { createAdapter, createTable, mergePluginSchemas } from 'unadapter'
127128
import { memoryAdapter } from 'unadapter/memory'
128129

@@ -231,7 +232,8 @@ const foundUsers = await adapter.findMany({
231232
<summary><b>Using Custom Schema and Plugins</b></summary>
232233

233234
```typescript
234-
import { createAdapter, createTable, mergePluginSchemas, type PluginSchema } from 'unadapter'
235+
import type { PluginSchema } from 'unadapter/types'
236+
import { createAdapter, createTable, mergePluginSchemas } from 'unadapter'
235237
import { memoryAdapter } from 'unadapter/memory'
236238

237239
// Create an in-memory database for testing
@@ -382,7 +384,8 @@ const product = await adapter.create({
382384
<summary><b>MongoDB Adapter Example</b></summary>
383385

384386
```typescript
385-
import { createAdapter, createTable, mergePluginSchemas, type PluginSchema } from 'unadapter'
387+
import type { PluginSchema } from 'unadapter/types'
388+
import { createAdapter, createTable, mergePluginSchemas } from 'unadapter'
386389
import { MongoClient } from 'mongodb'
387390
import { mongodbAdapter } from 'unadapter/mongodb'
388391

@@ -463,7 +466,8 @@ const user = await adapter.create({
463466
<summary><b>Prisma Adapter Example</b></summary>
464467

465468
```typescript
466-
import { createAdapter, createTable, mergePluginSchemas, type PluginSchema } from 'unadapter'
469+
import type { PluginSchema } from 'unadapter/types'
470+
import { createAdapter, createTable, mergePluginSchemas } from 'unadapter'
467471
import { PrismaClient } from '@prisma/client'
468472
import { prismaAdapter } from 'unadapter/prisma'
469473

@@ -583,7 +587,8 @@ const user = await adapter.create({
583587
<summary><b>Drizzle Adapter Example</b></summary>
584588

585589
```typescript
586-
import { createAdapter, createTable, mergePluginSchemas, type PluginSchema } from 'unadapter'
590+
import type { PluginSchema } from 'unadapter/types'
591+
import { createAdapter, createTable, mergePluginSchemas } from 'unadapter'
587592
import { drizzle } from 'drizzle-orm/mysql2'
588593
import mysql from 'mysql2/promise'
589594
import { drizzleAdapter } from 'unadapter/drizzle'
@@ -705,7 +710,8 @@ const user = await adapter.create({
705710
<summary><b>Kysely Adapter Example</b></summary>
706711

707712
```typescript
708-
import { createAdapter, createTable, mergePluginSchemas, type PluginSchema } from 'unadapter'
713+
import type { PluginSchema } from 'unadapter/types'
714+
import { createAdapter, createTable, mergePluginSchemas } from 'unadapter'
709715
import { Kysely, PostgresDialect } from 'kysely'
710716
import pg from 'pg'
711717
import { kyselyAdapter } from 'unadapter/kysely'

0 commit comments

Comments
 (0)