New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@types/draggabilly

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/draggabilly - npm Package Compare versions

Comparing version
2.1.2
to
2.1.3
+4
-4
draggabilly/index.d.ts

@@ -13,6 +13,6 @@ // Type definitions for draggabilly 2.1

export interface DraggabillyOptions {
axis?: 'x' | 'y';
containment?: Element | string | boolean;
grid?: [number, number];
handle?: string;
axis?: 'x' | 'y' | undefined;
containment?: Element | string | boolean | undefined;
grid?: [number, number] | undefined;
handle?: string | undefined;
}

@@ -19,0 +19,0 @@

MIT License
Copyright (c) Microsoft Corporation. All rights reserved.
Copyright (c) Microsoft Corporation.

@@ -5,0 +5,0 @@ Permission is hereby granted, free of charge, to any person obtaining a copy

{
"name": "@types/draggabilly",
"version": "2.1.2",
"version": "2.1.3",
"description": "TypeScript definitions for draggabilly",
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/draggabilly",
"license": "MIT",

@@ -14,11 +15,12 @@ "contributors": [

"main": "",
"types": "index",
"types": "index.d.ts",
"repository": {
"type": "git",
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git"
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git",
"directory": "types/draggabilly"
},
"scripts": {},
"dependencies": {},
"typesPublisherContentHash": "2134073ec0bb28ea1a33e9daf49785dbf73a61a34875aedefe65b02352b2e3e4",
"typeScriptVersion": "2.3"
"typesPublisherContentHash": "cfca28db9ba961daf638f5f455c69d8cd88fc3534792c76decb82cf1f674ebbf",
"typeScriptVersion": "3.6"
}

@@ -5,9 +5,58 @@ # Installation

# Summary
This package contains type definitions for draggabilly ( https://draggabilly.desandro.com ).
This package contains type definitions for draggabilly (https://draggabilly.desandro.com).
# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/draggabilly
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/draggabilly.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/draggabilly/index.d.ts)
````ts
// Type definitions for draggabilly 2.1
// Project: https://draggabilly.desandro.com
// Definitions by: Jason Wu <https://github.com/jaydubu>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.3
Additional Details
* Last updated: Wed, 13 Feb 2019 18:07:37 GMT
export interface Position {
x: number;
y: number;
}
export interface DraggabillyOptions {
axis?: 'x' | 'y' | undefined;
containment?: Element | string | boolean | undefined;
grid?: [number, number] | undefined;
handle?: string | undefined;
}
export type DraggabillyClickEventName = 'dragStart' | 'dragEnd' | 'pointerDown' | 'pointerUp' | 'staticClick';
export type DraggabillyMoveEventName = 'dragMove' | 'pointerMove';
export default class Draggabilly {
position: Position;
constructor(element: Element | string, options?: DraggabillyOptions);
on(eventName: DraggabillyClickEventName, listener: (event: Event, pointer: MouseEvent | Touch) => void): Draggabilly;
on(eventName: DraggabillyMoveEventName, listener: (event: Event, pointer: MouseEvent | Touch, moveVector: Position) => void): Draggabilly;
off(eventName: DraggabillyClickEventName, listener: (event: Event, pointer: MouseEvent | Touch) => void): Draggabilly;
off(eventName: DraggabillyMoveEventName, listener: (event: Event, pointer: MouseEvent | Touch, moveVector: Position) => void): Draggabilly;
once(eventName: DraggabillyClickEventName, listener: (event: Event, pointer: MouseEvent | Touch) => void): Draggabilly;
once(eventName: DraggabillyMoveEventName, listener: (event: Event, pointer: MouseEvent | Touch, moveVector: Position) => void): Draggabilly;
enable(): void;
disable(): void;
destroy(): void;
}
````
### Additional Details
* Last updated: Thu, 08 Jul 2021 09:08:54 GMT
* Dependencies: none

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

# Credits
These definitions were written by Jason Wu <https://github.com/jaydubu>.
These definitions were written by [Jason Wu](https://github.com/jaydubu).