Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/netzo/deps/@tiptap/react.ts>getSchemaTypeNameByName

Full-stack Deno framework for building business web apps like internal tools, dashboards, admin panels and automated workflows.
Go to Latest
function getSchemaTypeNameByName
import { getSchemaTypeNameByName } from "https://deno.land/x/netzo@0.5.106/deps/@tiptap/react.ts";

Get the type of a schema item by its name.

Parameters

name: string

The name of the schema item

schema: Schema

The Prosemiror schema to search in

Returns

"node" | "mark" | null

The type of the schema item (node or mark), or null if it doesn't exist