@types/popper.js
Advanced tools
Comparing version 1.8.0 to 1.8.1
@@ -1,8 +0,8 @@ | ||
// Type definitions for popper.js v1.8.5 | ||
// Type definitions for popper.js 1.8 | ||
// Project: https://github.com/FezVrasta/popper.js/ | ||
// Definitions by: rhysd <https://rhysd.github.io>, joscha <https://github.com/joscha> | ||
// Definitions by: rhysd <https://rhysd.github.io>, joscha <https://github.com/joscha>, seckardt <https://github.com/seckardt> | ||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped | ||
declare namespace Popper { | ||
export interface PopperOptions { | ||
interface PopperOptions { | ||
placement?: string; | ||
@@ -17,14 +17,14 @@ boundariesPadding?: number; | ||
applyStyle?: { | ||
gpuAcceleration?: boolean, | ||
gpuAcceleration?: boolean | ||
}, | ||
preventOverflow?: { | ||
boundariesElement?: string | Element, | ||
priority?: ('left' | 'right' | 'top' | 'bottom')[], | ||
priority?: Array<'left' | 'right' | 'top' | 'bottom'> | ||
}, | ||
offset?: { | ||
offset?: number, | ||
offset?: number | string | ||
}, | ||
flip?: { | ||
behavior?: string | string[], | ||
boundariesElement?: string | Element, | ||
boundariesElement?: string | Element | ||
}, | ||
@@ -38,3 +38,3 @@ }; | ||
} | ||
export class Modifiers { | ||
class Modifiers { | ||
applyStyle(data: Object): Object; | ||
@@ -48,3 +48,3 @@ shift(data: Object): Object; | ||
} | ||
export interface Data { | ||
interface Data { | ||
placement: string; | ||
@@ -62,4 +62,4 @@ offsets: { | ||
declare class Popper { | ||
public modifiers: Popper.Modifiers; | ||
public placement: string; | ||
modifiers: Popper.Modifiers; | ||
placement: string; | ||
@@ -66,0 +66,0 @@ constructor(reference: Element, popper: Element | Object, options?: Popper.PopperOptions); |
{ | ||
"name": "@types/popper.js", | ||
"version": "1.8.0", | ||
"version": "1.8.1", | ||
"description": "TypeScript definitions for popper.js", | ||
@@ -14,2 +14,6 @@ "license": "MIT", | ||
"url": "https://github.com/joscha" | ||
}, | ||
{ | ||
"name": "seckardt", | ||
"url": "https://github.com/seckardt" | ||
} | ||
@@ -25,4 +29,4 @@ ], | ||
"peerDependencies": {}, | ||
"typesPublisherContentHash": "9e115abdec5205ec264053b9bafcefe2478c0d1193f8482bfe0061fed23665d3", | ||
"typesPublisherContentHash": "53f76bf69fe5def8a22ec48e7b3bb91fd9574a4d00165831d25cc478bb4e0a5a", | ||
"typeScriptVersion": "2.0" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
Additional Details | ||
* Last updated: Fri, 28 Apr 2017 17:53:26 GMT | ||
* Last updated: Thu, 18 May 2017 23:47:10 GMT | ||
* Dependencies: none | ||
@@ -17,2 +17,2 @@ * Global values: Popper | ||
# Credits | ||
These definitions were written by rhysd <https://rhysd.github.io>, joscha <https://github.com/joscha>. | ||
These definitions were written by rhysd <https://rhysd.github.io>, joscha <https://github.com/joscha>, seckardt <https://github.com/seckardt>. |
4578