UNPKG

next-sanity

Version:
33 lines (29 loc) 1.1 kB
import {VisualEditingOptions} from '@sanity/visual-editing/react' declare function VisualEditingLazyClientComponent(props: VisualEditingProps): React.ReactNode export default VisualEditingLazyClientComponent /** * @public */ export declare interface VisualEditingProps extends Omit<VisualEditingOptions, 'history'> { /** * @deprecated The histoy adapter is already implemented */ history?: never /** * If next.config.ts is configured with a basePath we try to configure it automatically, * you can disable this by setting basePath to ''. * @example basePath="/my-custom-base-path" * @alpha experimental and may change without notice * @defaultValue process.env.__NEXT_ROUTER_BASEPATH || '' */ basePath?: string /** * If next.config.ts is configured with a `trailingSlash` we try to detect it automatically, * it can be controlled manually by passing a boolean. * @example trailingSlash={true} * @alpha experimental and may change without notice * @defaultValue Boolean(process.env.__NEXT_TRAILING_SLASH) */ trailingSlash?: boolean } export {}