Add prosemirror-schema-basic 0.21 (#16831)

This commit is contained in:
Bradley Ayers
2017-06-01 15:15:35 +10:00
committed by Mohamed Hegazy
parent a8dca3c8f5
commit 412030b795
4 changed files with 55 additions and 0 deletions

View File

@@ -0,0 +1,27 @@
// Type definitions for prosemirror-schema-basic 0.21
// Project: https://github.com/ProseMirror/prosemirror-schema-basic
// Definitions by: Bradley Ayers <https://github.com/bradleyayers>
// David Hahn <https://github.com/davidka>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.1
import { MarkSpec, NodeSpec, Schema } from 'prosemirror-model';
export let nodes: {
doc: NodeSpec,
paragraph: NodeSpec,
blockquote: NodeSpec,
horizontal_rule: NodeSpec,
heading: NodeSpec,
code_block: NodeSpec,
text: NodeSpec,
image: NodeSpec,
hard_break: NodeSpec
};
export let marks: {
link: MarkSpec,
em: MarkSpec,
strong: MarkSpec,
code: MarkSpec
};
export let schema: Schema;

View File

@@ -0,0 +1,5 @@
import { nodes, marks, schema } from 'prosemirror-schema-basic';
nodes.blockquote;
marks.code;
schema.mark;

View File

@@ -0,0 +1,22 @@
{
"compilerOptions": {
"module": "commonjs",
"lib": [
"es6"
],
"noImplicitAny": true,
"noImplicitThis": true,
"strictNullChecks": true,
"baseUrl": "../",
"typeRoots": [
"../"
],
"types": [],
"noEmit": true,
"forceConsistentCasingInFileNames": true
},
"files": [
"index.d.ts",
"prosemirror-schema-basic-tests.ts"
]
}

View File

@@ -0,0 +1 @@
{ "extends": "dtslint/dt.json" }