How to use the @ephox/boulder.ValueSchema.asRaw function in @ephox/boulder

To help you get started, we’ve selected a few @ephox/boulder examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github tinymce / tinymce / modules / bridge / src / main / ts / ephox / bridge / components / toolbar / ContextToolbar.ts View on Github external
export const createContextForm = (spec: ContextFormApi): Result> => {
  return ValueSchema.asRaw('ContextForm', contextFormSchema, spec);
};
github tinymce / tinymce / modules / bridge / src / main / ts / ephox / bridge / components / dialog / Input.ts View on Github external
export const createInput = (spec: InputApi): Result> => {
  return ValueSchema.asRaw<input>('input', inputSchema, spec);
};
github tinymce / tinymce / modules / bridge / src / main / ts / ephox / bridge / components / dialog / ToggleMenuItem.ts View on Github external
export const createToggleMenuItem = (spec: DialogToggleMenuItemApi): Result&gt; =&gt; {
  return ValueSchema.asRaw('togglemenuitem', dialogToggleMenuItemSchema, spec);
};
github tinymce / tinymce / modules / bridge / src / main / ts / ephox / bridge / components / toolbar / ContextToolbar.ts View on Github external
export const createContextToolbar = (spec: ContextToolbarApi): Result&gt; =&gt; {
  return ValueSchema.asRaw('ContextToolbar', contextToolbarSchema, spec);
};