Skip to content

Commit 262e3bb

Browse files
committed
chore: types update
1 parent 87463c7 commit 262e3bb

File tree

9 files changed

+11
-14
lines changed

9 files changed

+11
-14
lines changed

app/(payload)/api/[...slug]/route.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/* THIS FILE WAS GENERATED AUTOMATICALLY BY PAYLOAD. */
22
/* DO NOT MODIFY it because it could be re-written at any time. */
33
import config from '@payload-config'
4-
import { REST_GET, REST_DELETE, REST_PATCH, REST_POST } from '@payloadcms/next/routes'
4+
import { REST_DELETE, REST_GET, REST_PATCH, REST_POST } from '@payloadcms/next/routes'
55

66
export const GET = REST_GET(config)
77
export const POST = REST_POST(config)

app/my-route/route.ts

+1-6
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,4 @@
1-
export const GET = async () => {
2-
console.log('1')
3-
console.log('1')
4-
console.log('1')
5-
console.log('1')
6-
console.log('1')
1+
export const GET = () => {
72
return Response.json({
83
hello: 'elliot',
94
})

packages/richtext-lexical/src/field/features/blocks/component/BlockContent.tsx

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import type { SanitizedClientEditorConfig } from '@payloadcms/richtext-lexical'
2-
import type { FieldMap, FormFieldBase, FormState } from '@payloadcms/ui'
2+
import type { FieldMap, FormFieldBase } from '@payloadcms/ui'
33
import type { ReducedBlock } from '@payloadcms/ui/types'
4+
import type { FormState } from 'payload/types'
45
import type { Data } from 'payload/types'
56

67
import { useLexicalComposerContext } from '@lexical/react/LexicalComposerContext'

packages/richtext-lexical/src/field/features/blocks/component/FormSavePlugin.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { FormState } from '@payloadcms/ui'
1+
import type { FormState } from 'payload/types'
22
import type { Data } from 'payload/types'
33
import type React from 'react'
44

packages/richtext-lexical/src/field/features/link/drawer/types.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { FormState } from '@payloadcms/ui'
1+
import type { FormState } from 'payload/types'
22

33
import type { LinkPayload } from '../plugins/floatingLinkEditor/types'
44

packages/richtext-lexical/src/field/features/link/plugins/floatingLinkEditor/LinkEditor/index.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
'use client'
2-
import type { FormState } from '@payloadcms/ui'
2+
import type { FormState } from 'payload/types'
33
import type { Data } from 'payload/types'
44

55
import { useModal } from '@faceless-ui/modal'

packages/richtext-slate/src/field/elements/link/Button/index.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
'use client'
22

3-
import type { FormState } from '@payloadcms/ui'
3+
import type { FormState } from 'payload/types'
44

55
import { useModal } from '@faceless-ui/modal'
66
import {

packages/richtext-slate/src/field/elements/link/Element/index.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
'use client'
22

3-
import type { FormState } from '@payloadcms/ui'
3+
import type { FormState } from 'payload/types'
44

55
import { useModal } from '@faceless-ui/modal'
66
import { getTranslation } from '@payloadcms/translations'

packages/richtext-slate/src/field/elements/link/LinkDrawer/types.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
import type { FieldMap, FormState } from '@payloadcms/ui'
1+
import type { FieldMap } from '@payloadcms/ui'
2+
import type { FormState } from 'payload/types'
23

34
export type Props = {
45
drawerSlug: string

0 commit comments

Comments
 (0)