Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@types/quill

Package Overview
Dependencies
Maintainers
1
Versions
42
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/quill - npm Package Compare versions

Comparing version 2.0.6 to 2.0.7

59

quill/index.d.ts

@@ -9,7 +9,8 @@ // Type definitions for Quill 2.0

// Marco Mantovani <https://github.com/TheLand>
// Ameer Hamoodi <https://github.com/AmeerHamoodi>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.9
import { Blot } from 'parchment/dist/src/blot/abstract/blot';
import Delta = require('quill-delta');
import { Blot } from "parchment/src/blot/abstract/blot";
import Delta = require("quill-delta");

@@ -25,11 +26,15 @@ /**

interface SourceMap {
API: 'api';
SILENT: 'silent';
USER: 'user';
API: "api";
SILENT: "silent";
USER: "user";
}
export type Sources = 'api' | 'user' | 'silent';
export type Sources = "api" | "user" | "silent";
export interface Key {
key: string | number;
shortKey?: boolean;
shortKey?: boolean | null;
shiftKey?: boolean | null;
altKey?: boolean | null;
metaKey?: boolean | null;
ctrlKey?: boolean | null;
}

@@ -48,4 +53,4 @@

export type EditorChangeHandler =
| ((name: 'text-change', delta: Delta, oldContents: Delta, source: Sources) => any)
| ((name: 'selection-change', range: RangeStatic, oldRange: RangeStatic, source: Sources) => any);
| ((name: "text-change", delta: Delta, oldContents: Delta, source: Sources) => any)
| ((name: "selection-change", range: RangeStatic, oldRange: RangeStatic, source: Sources) => any);

@@ -101,11 +106,11 @@ export interface KeyboardStatic {

export interface EventEmitter {
on(eventName: 'text-change', handler: TextChangeHandler): EventEmitter;
on(eventName: 'selection-change', handler: SelectionChangeHandler): EventEmitter;
on(eventName: 'editor-change', handler: EditorChangeHandler): EventEmitter;
once(eventName: 'text-change', handler: TextChangeHandler): EventEmitter;
once(eventName: 'selection-change', handler: SelectionChangeHandler): EventEmitter;
once(eventName: 'editor-change', handler: EditorChangeHandler): EventEmitter;
off(eventName: 'text-change', handler: TextChangeHandler): EventEmitter;
off(eventName: 'selection-change', handler: SelectionChangeHandler): EventEmitter;
off(eventName: 'editor-change', handler: EditorChangeHandler): EventEmitter;
on(eventName: "text-change", handler: TextChangeHandler): EventEmitter;
on(eventName: "selection-change", handler: SelectionChangeHandler): EventEmitter;
on(eventName: "editor-change", handler: EditorChangeHandler): EventEmitter;
once(eventName: "text-change", handler: TextChangeHandler): EventEmitter;
once(eventName: "selection-change", handler: SelectionChangeHandler): EventEmitter;
once(eventName: "editor-change", handler: EditorChangeHandler): EventEmitter;
off(eventName: "text-change", handler: TextChangeHandler): EventEmitter;
off(eventName: "selection-change", handler: SelectionChangeHandler): EventEmitter;
off(eventName: "editor-change", handler: EditorChangeHandler): EventEmitter;
}

@@ -188,13 +193,13 @@

// EventEmitter methods
on(eventName: 'text-change', handler: TextChangeHandler): EventEmitter;
on(eventName: 'selection-change', handler: SelectionChangeHandler): EventEmitter;
on(eventName: 'editor-change', handler: EditorChangeHandler): EventEmitter;
once(eventName: 'text-change', handler: TextChangeHandler): EventEmitter;
once(eventName: 'selection-change', handler: SelectionChangeHandler): EventEmitter;
once(eventName: 'editor-change', handler: EditorChangeHandler): EventEmitter;
off(eventName: 'text-change', handler: TextChangeHandler): EventEmitter;
off(eventName: 'selection-change', handler: SelectionChangeHandler): EventEmitter;
off(eventName: 'editor-change', handler: EditorChangeHandler): EventEmitter;
on(eventName: "text-change", handler: TextChangeHandler): EventEmitter;
on(eventName: "selection-change", handler: SelectionChangeHandler): EventEmitter;
on(eventName: "editor-change", handler: EditorChangeHandler): EventEmitter;
once(eventName: "text-change", handler: TextChangeHandler): EventEmitter;
once(eventName: "selection-change", handler: SelectionChangeHandler): EventEmitter;
once(eventName: "editor-change", handler: EditorChangeHandler): EventEmitter;
off(eventName: "text-change", handler: TextChangeHandler): EventEmitter;
off(eventName: "selection-change", handler: SelectionChangeHandler): EventEmitter;
off(eventName: "editor-change", handler: EditorChangeHandler): EventEmitter;
}
export default Quill;
{
"name": "@types/quill",
"version": "2.0.6",
"version": "2.0.7",
"description": "TypeScript definitions for Quill",

@@ -36,2 +36,7 @@ "license": "MIT",

"githubUsername": "TheLand"
},
{
"name": "Ameer Hamoodi",
"url": "https://github.com/AmeerHamoodi",
"githubUsername": "AmeerHamoodi"
}

@@ -51,4 +56,4 @@ ],

},
"typesPublisherContentHash": "78c9f69191da36ed78f798c5b16d26fb2b9b481485e6fea59d9499dd266a0245",
"typesPublisherContentHash": "6351a18ea5c004fa602334eccaa93d275ebab86a01436db84b58b3e014d488d3",
"typeScriptVersion": "3.5"
}

@@ -11,3 +11,3 @@ # Installation

### Additional Details
* Last updated: Thu, 25 Mar 2021 20:01:08 GMT
* Last updated: Sat, 22 May 2021 16:01:20 GMT
* Dependencies: [@types/parchment](https://npmjs.com/package/@types/parchment), [@types/quill-delta](https://npmjs.com/package/@types/quill-delta)

@@ -17,2 +17,2 @@ * Global values: none

# Credits
These definitions were written by [Sumit](https://github.com/sumitkm), [Guillaume](https://github.com/guillaume-ro-fr), [James Garbutt](https://github.com/43081j), [Aniello Falcone](https://github.com/AnielloFalcone), [Mohammad Hossein Amri](https://github.com/mhamri), and [Marco Mantovani](https://github.com/TheLand).
These definitions were written by [Sumit](https://github.com/sumitkm), [Guillaume](https://github.com/guillaume-ro-fr), [James Garbutt](https://github.com/43081j), [Aniello Falcone](https://github.com/AnielloFalcone), [Mohammad Hossein Amri](https://github.com/mhamri), [Marco Mantovani](https://github.com/TheLand), and [Ameer Hamoodi](https://github.com/AmeerHamoodi).
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc