MCPcopy Index your code
hub / github.com/resend/react-email / create

Method create

packages/editor/src/core/serializer/email-mark.ts:53–58  ·  view source on GitHub ↗

* Create a new Mark instance * @param config - Mark configuration object or a function that returns a configuration object

(
    config: ConfigParameter<O, S> | (() => ConfigParameter<O, S>),
  )

Source from the content-addressed store, hash-verified

51 * @param config - Mark configuration object or a function that returns a configuration object
52 */
53 static create<O = Record<string, never>, S = Record<string, never>>(
54 config: ConfigParameter<O, S> | (() => ConfigParameter<O, S>),
55 ) {
56 const resolvedConfig = typeof config === 'function' ? config() : config;
57 return new EmailMark<O, S>(resolvedConfig);
58 }
59
60 static from<O, S>(
61 mark: Mark<O, S>,

Callers 15

email-mark.spec.tsFile · 0.45
fromMethod · 0.45
customUpdateAttributesFunction · 0.45
customUpdateStylesFunction · 0.45
createImageExtensionFunction · 0.45
transformToCssJsFunction · 0.45
mergeCssJsFunction · 0.45
extension.tsxFile · 0.45
getDecorationsFunction · 0.45
wrapInContainerFunction · 0.45

Calls

no outgoing calls

Tested by 4

onCreateFunction · 0.36
selectSectionNodeFunction · 0.36
selectFirstParagraphTextFunction · 0.36