MCPcopy Create free account
hub / github.com/codesandbox/sandpack / SandpackCodeOptions

Interface SandpackCodeOptions

sandpack-react/src/types.ts:657–673  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

655 * @hidden
656 */
657export interface SandpackCodeOptions {
658 /**
659 * CodeMirror extensions for the editor state, which can
660 * provide extra features and functionalities to the editor component.
661 */
662 extensions?: CodeEditorProps["extensions"];
663 /**
664 * Property to register CodeMirror extension keymap.
665 */
666 extensionsKeymap?: CodeEditorProps["extensionsKeymap"];
667 /**
668 * Provides a way to add custom language modes by supplying a language
669 * type, applicable file extensions, and a LanguageSupport instance
670 * for that syntax mode
671 */
672 additionalLanguages?: CodeEditorProps["additionalLanguages"];
673}
674
675export type DeepPartial<Type> = {
676 [Property in keyof Type]?: DeepPartial<Type[Property]>;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected