]> BookStack Code Mirror - bookstack/blobdiff - resources/js/editor/schema.js
Added jsdoc types for prosemirror
[bookstack] / resources / js / editor / schema.js
index 6aa230b218fe458b6ab80437b8d4585857bd51c7..e0cd2522248a40ace21229054047fdf601b2e3ae 100644 (file)
@@ -3,9 +3,10 @@ import {Schema} from "prosemirror-model";
 import nodes from "./schema-nodes";
 import marks from "./schema-marks";
 
-const index = new Schema({
+/** @var {PmSchema} schema */
+const schema = new Schema({
     nodes,
     marks,
 });
 
-export default index;
\ No newline at end of file
+export default schema;
\ No newline at end of file