UNPKG

next-sanity

Version:
29 lines 1.13 kB
import { VisualEditingOptions } from "@sanity/visual-editing/react"; /** * @public */ 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; } declare function VisualEditingLazyClientComponent(props: VisualEditingProps): React.ReactNode; export { type VisualEditingProps, VisualEditingLazyClientComponent as default }; //# sourceMappingURL=index.d.ts.map