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

@types/react-codemirror

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/react-codemirror - npm Package Compare versions

Comparing version 1.0.4 to 1.0.5

28

react-codemirror/index.d.ts

@@ -14,29 +14,29 @@ // Type definitions for React Codemirror v1.0.0

/** Automatically focuses the editor when it is mounted (default false) */
autoFocus?: boolean;
autoFocus?: boolean | undefined;
/** Automatically persist changes to underlying textarea (default false) */
autoSave?: boolean;
autoSave?: boolean | undefined;
/** Adds a custom CSS class to the editor */
className?: string;
className?: string | undefined;
/** Provides a specific CodeMirror instance (defaults to `require('codemirror')`) */
codeMirrorInstance?: (host: any, options?: CodeMirror.EditorConfiguration) => CodeMirror.Editor;
codeMirrorInstance?: ((host: any, options?: CodeMirror.EditorConfiguration) => CodeMirror.Editor) | undefined;
/** Provides the default (not changed tracked) value to the editor */
defaultValue?: string;
defaultValue?: string | undefined;
/** Set the name of the editor input field */
name?: string;
name?: string | undefined;
/** Called when a change is made */
onChange?: (newValue: string, change: CodeMirror.EditorChange) => any;
onChange?: ((newValue: string, change: CodeMirror.EditorChange) => any) | undefined;
/** Called when the cursor is moved */
onCursorActivity?: (codemirror: CodeMirror.Editor) => any;
onCursorActivity?: ((codemirror: CodeMirror.Editor) => any) | undefined;
/** Called when the editor is focused or loses focus */
onFocusChange?: (focused: boolean) => any;
onFocusChange?: ((focused: boolean) => any) | undefined;
/** Called when the editor is scrolled */
onScroll?: (scrollInfo: CodeMirror.ScrollInfo) => any;
onScroll?: ((scrollInfo: CodeMirror.ScrollInfo) => any) | undefined;
/** Options passed to the CodeMirror instance */
options?: CodeMirror.EditorConfiguration;
options?: CodeMirror.EditorConfiguration | undefined;
/** (DEPRECATED), use `name` */
path?: string;
path?: string | undefined;
/** Preserve previous scroll position after updating value */
preserveScrollPosition?: boolean
preserveScrollPosition?: boolean | undefined
/** The editor value */
value?: string;
value?: string | undefined;
}

@@ -43,0 +43,0 @@

{
"name": "@types/react-codemirror",
"version": "1.0.4",
"version": "1.0.5",
"description": "TypeScript definitions for React Codemirror",
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-codemirror",
"license": "MIT",

@@ -30,4 +31,4 @@ "contributors": [

},
"typesPublisherContentHash": "fde46b91ac2d78c6b1fa5a35741a0afda0ac3688631638ed98b5eab89462bc5d",
"typesPublisherContentHash": "a7b6c1a27e91591de98c5ef6220fb6e7f6135e73e24b97aef1fddf5e05bf9162",
"typeScriptVersion": "3.8"
}

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

### Additional Details
* Last updated: Wed, 05 May 2021 19:01:26 GMT
* Last updated: Thu, 08 Jul 2021 20:20:31 GMT
* Dependencies: [@types/react](https://npmjs.com/package/@types/react), [@types/codemirror](https://npmjs.com/package/@types/codemirror)

@@ -14,0 +14,0 @@ * Global values: none

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