MCPcopy
hub / github.com/udecode/plate / noop

Function noop

packages/slate/src/create-editor.ts:139–147  ·  view source on GitHub ↗
(name: string, returnValue?: T)

Source from the content-addressed store, hash-verified

137 <T>(name: string, returnValue: T): () => T;
138} =
139 <T>(name: string, returnValue?: T) =>
140 () => {
141 console.warn(
142 `[OVERRIDE_MISSING] The method editor.${name}() has not been implemented or overridden. ` +
143 'This may cause unexpected behavior. Please ensure that all required editor methods are properly defined.'
144 );
145
146 return returnValue;
147 };
148
149export const createEditor = <V extends Value>({
150 children,

Callers 1

createEditorFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…