mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-24 05:06:02 +08:00
Add prosemirror-schema-basic 0.21 (#16831)
This commit is contained in:
committed by
Mohamed Hegazy
parent
a8dca3c8f5
commit
412030b795
27
types/prosemirror-schema-basic/index.d.ts
vendored
Normal file
27
types/prosemirror-schema-basic/index.d.ts
vendored
Normal 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;
|
||||
@@ -0,0 +1,5 @@
|
||||
import { nodes, marks, schema } from 'prosemirror-schema-basic';
|
||||
|
||||
nodes.blockquote;
|
||||
marks.code;
|
||||
schema.mark;
|
||||
22
types/prosemirror-schema-basic/tsconfig.json
Normal file
22
types/prosemirror-schema-basic/tsconfig.json
Normal 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"
|
||||
]
|
||||
}
|
||||
1
types/prosemirror-schema-basic/tslint.json
Normal file
1
types/prosemirror-schema-basic/tslint.json
Normal file
@@ -0,0 +1 @@
|
||||
{ "extends": "dtslint/dt.json" }
|
||||
Reference in New Issue
Block a user