import { exitCode as originalExitCode } from '@sse-editor/pm/commands' import { RawCommands } from '../types.js' declare module '@sse-editor/core' { interface Commands { exitCode: { /** * Exit from a code block. */ exitCode: () => ReturnType } } } export const exitCode: RawCommands['exitCode'] = () => ({ state, dispatch }) => { return originalExitCode(state, dispatch) }