mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-06-28 14:20:12 +00:00
Add typings for @guardian/prosemirror-invisibles
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
import invisibles, { hardBreak, paragraph, space } from 'guardian__prosemirror-invisibles';
|
||||
|
||||
const plugin = invisibles([hardBreak, paragraph, space]);
|
||||
17
types/guardian__prosemirror-invisibles/index.d.ts
vendored
Normal file
17
types/guardian__prosemirror-invisibles/index.d.ts
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
// Type definitions for @guardian/prosemirror-invisibles 0.1
|
||||
// Project: https://github.com/guardian/prosemirror-invisibles
|
||||
// Definitions by: Daniil Dotsev <https://github.com/dddotsev>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.3
|
||||
|
||||
import { Node } from 'prosemirror-model';
|
||||
import { DecorationSet } from "prosemirror-view";
|
||||
import { Plugin } from 'prosemirror-state';
|
||||
|
||||
export type Builder = (from: number, to: number, doc: Node, decos: DecorationSet) => DecorationSet;
|
||||
|
||||
export default function(builders: Builder[]): Plugin;
|
||||
|
||||
export const hardBreak: Builder;
|
||||
export const paragraph: Builder;
|
||||
export const space: Builder;
|
||||
24
types/guardian__prosemirror-invisibles/tsconfig.json
Normal file
24
types/guardian__prosemirror-invisibles/tsconfig.json
Normal file
@@ -0,0 +1,24 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"lib": [
|
||||
"es6",
|
||||
"dom"
|
||||
],
|
||||
"noImplicitAny": true,
|
||||
"noImplicitThis": true,
|
||||
"strictNullChecks": true,
|
||||
"strictFunctionTypes": true,
|
||||
"baseUrl": "../",
|
||||
"typeRoots": [
|
||||
"../"
|
||||
],
|
||||
"types": [],
|
||||
"noEmit": true,
|
||||
"forceConsistentCasingInFileNames": true
|
||||
},
|
||||
"files": [
|
||||
"index.d.ts",
|
||||
"guardian__prosemirror-invisibles-tests.ts"
|
||||
]
|
||||
}
|
||||
3
types/guardian__prosemirror-invisibles/tslint.json
Normal file
3
types/guardian__prosemirror-invisibles/tslint.json
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"extends": "dtslint/dt.json"
|
||||
}
|
||||
Reference in New Issue
Block a user