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

@types/virtual-dom

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/virtual-dom - npm Package Compare versions

Comparing version 2.0.27 to 2.1.0

virtual-dom/LICENSE

51

virtual-dom/index.d.ts

@@ -1,2 +0,2 @@

// Type definitions for virtual-dom 2.0.1
// Type definitions for virtual-dom 2.1.1
// Project: https://github.com/Matt-Esch/virtual-dom

@@ -45,5 +45,8 @@ // Definitions by: Christopher Brown <https://github.com/chbrown>

interface VNodeConstructor {
new (tagName: string, properties: VProperties, children: VTree[], key?: string, namespace?: string): VNode;
}
interface VText {
text: string;
new(text: any): VText;
version: string;

@@ -53,2 +56,6 @@ type: string; // 'VirtualText'

interface VTextConstructor {
new (text: string): VText;
}
interface Widget {

@@ -83,3 +90,2 @@ type: string; // 'Widget'

patch: any;
new(type: number, vNode: VNode, patch: any): VPatch;
version: string;

@@ -93,2 +99,8 @@ /**

type PatchFn<T extends Element> = (rootNode: T, patches: VPatch[], renderOptions: VPatchOptions<T>) => T;
interface VPatchOptions<T extends Element> {
patch?: PatchFn<T>;
}
interface createProperties extends VProperties {

@@ -114,3 +126,8 @@ key?: string;

*/
function patch<T extends Element>(rootNode: T, patches: VPatch[], renderOptions?: any): T;
function patch<T extends Element>(rootNode: T, patches: VPatch[], renderOptions?: VPatchOptions<T>): T;
function isVNode(vTree: VTree): vTree is VNode;
function isVText(vTree: VTree): vTree is VText;
function isWidget(vTree: VTree): vTree is Widget;
function isThunk(vTree: VTree): vTree is Thunk;
}

@@ -138,1 +155,27 @@

}
declare module "virtual-dom/vnode/vnode" {
import VNodeConstructor = VirtualDOM.VNodeConstructor;
const VNode: VNodeConstructor;
export = VNode;
}
declare module "virtual-dom/vnode/vtext" {
import VTextConstructor = VirtualDOM.VTextConstructor;
const VText: VTextConstructor;
export = VText;
}
declare module "virtual-dom/vnode/is-vnode" {
import isVNode = VirtualDOM.isVNode;
export = isVNode;
}
declare module "virtual-dom/vnode/is-vtext" {
import isVText = VirtualDOM.isVText;
export = isVText;
}
declare module "virtual-dom/vnode/is-widget" {
import isWidget = VirtualDOM.isWidget;
export = isWidget;
}
declare module "virtual-dom/vnode/is-thunk" {
import isThunk = VirtualDOM.isThunk;
export = isThunk;
}

18

virtual-dom/package.json
{
"name": "@types/virtual-dom",
"version": "2.0.27",
"description": "TypeScript definitions for virtual-dom 2.0.1",
"version": "2.1.0",
"description": "TypeScript definitions for virtual-dom",
"license": "MIT",
"author": "Christopher Brown <https://github.com/chbrown>",
"contributors": [
{
"name": "Christopher Brown",
"url": "https://github.com/chbrown",
"githubUsername": "chbrown"
}
],
"main": "",
"repository": {
"type": "git",
"url": "https://www.github.com/DefinitelyTyped/DefinitelyTyped.git"
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git"
},
"scripts": {},
"dependencies": {},
"typings": "index.d.ts",
"typesPublisherContentHash": "83f7da91e511e5b4778ffc11b43408380940467dc382637c529d4ad76e1c2d7f"
"typesPublisherContentHash": "ac72a5deaeed68030ef726aea00b107bd5ef3a4f1f83ed811a6d776e2fcee7ba",
"typeScriptVersion": "2.0"
}

@@ -5,12 +5,10 @@ # Installation

# Summary
This package contains type definitions for virtual-dom 2.0.1 (https://github.com/Matt-Esch/virtual-dom).
This package contains type definitions for virtual-dom (https://github.com/Matt-Esch/virtual-dom).
# Details
Files were exported from https://www.github.com/DefinitelyTyped/DefinitelyTyped/tree/types-2.0/virtual-dom
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/virtual-dom
Additional Details
* Last updated: Mon, 19 Sep 2016 17:28:59 GMT
* File structure: MultipleModules
* Library Dependencies: none
* Module Dependencies: none
* Last updated: Mon, 09 Jul 2018 20:32:27 GMT
* Dependencies: none
* Global values: VirtualDOM

@@ -17,0 +15,0 @@

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