chore: types update

This commit is contained in:
James
2024-03-04 12:25:38 -05:00
parent 87463c7e70
commit 262e3bbee2
9 changed files with 11 additions and 14 deletions

View File

@@ -1,7 +1,7 @@
/* THIS FILE WAS GENERATED AUTOMATICALLY BY PAYLOAD. */
/* DO NOT MODIFY it because it could be re-written at any time. */
import config from '@payload-config'
import { REST_GET, REST_DELETE, REST_PATCH, REST_POST } from '@payloadcms/next/routes'
import { REST_DELETE, REST_GET, REST_PATCH, REST_POST } from '@payloadcms/next/routes'
export const GET = REST_GET(config)
export const POST = REST_POST(config)

View File

@@ -1,9 +1,4 @@
export const GET = async () => {
console.log('1')
console.log('1')
console.log('1')
console.log('1')
console.log('1')
export const GET = () => {
return Response.json({
hello: 'elliot',
})

View File

@@ -1,6 +1,7 @@
import type { SanitizedClientEditorConfig } from '@payloadcms/richtext-lexical'
import type { FieldMap, FormFieldBase, FormState } from '@payloadcms/ui'
import type { FieldMap, FormFieldBase } from '@payloadcms/ui'
import type { ReducedBlock } from '@payloadcms/ui/types'
import type { FormState } from 'payload/types'
import type { Data } from 'payload/types'
import { useLexicalComposerContext } from '@lexical/react/LexicalComposerContext'

View File

@@ -1,4 +1,4 @@
import type { FormState } from '@payloadcms/ui'
import type { FormState } from 'payload/types'
import type { Data } from 'payload/types'
import type React from 'react'

View File

@@ -1,4 +1,4 @@
import type { FormState } from '@payloadcms/ui'
import type { FormState } from 'payload/types'
import type { LinkPayload } from '../plugins/floatingLinkEditor/types'

View File

@@ -1,5 +1,5 @@
'use client'
import type { FormState } from '@payloadcms/ui'
import type { FormState } from 'payload/types'
import type { Data } from 'payload/types'
import { useModal } from '@faceless-ui/modal'

View File

@@ -1,6 +1,6 @@
'use client'
import type { FormState } from '@payloadcms/ui'
import type { FormState } from 'payload/types'
import { useModal } from '@faceless-ui/modal'
import {

View File

@@ -1,6 +1,6 @@
'use client'
import type { FormState } from '@payloadcms/ui'
import type { FormState } from 'payload/types'
import { useModal } from '@faceless-ui/modal'
import { getTranslation } from '@payloadcms/translations'

View File

@@ -1,4 +1,5 @@
import type { FieldMap, FormState } from '@payloadcms/ui'
import type { FieldMap } from '@payloadcms/ui'
import type { FormState } from 'payload/types'
export type Props = {
drawerSlug: string