New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@types/bootstrap

Package Overview
Dependencies
Maintainers
1
Versions
91
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/bootstrap - npm Package Compare versions

Comparing version 3.3.39 to 3.3.40

150

bootstrap v3/index.d.ts

@@ -1,19 +0,47 @@

// Type definitions for Bootstrap 3.3.5
// Type definitions for Bootstrap 3.3
// Project: http://twitter.github.com/bootstrap/
// Definitions by: Boris Yankov <https://github.com/borisyankov>
// denisname <https://github.com/denisname>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.3
/// <reference types="jquery"/>
interface ModalOptions {
backdrop?: boolean|string;
keyboard?: boolean;
show?: boolean;
remote?: string;
// --------------------------------------------------------------------------
// Some Types and Interfaces
// --------------------------------------------------------------------------
type BootstrapPlacement = "auto" | "top" | "bottom" | "left" | "right";
type BootstrapTrigger = "click" | "hover" | "focus" | "manual" |
"click hover" | "click focus" | "hover focus" |
"click hover focus";
type BootstrapDynamicOffset = (elem: JQuery) => number;
interface BootstrapDelay {
show?: number;
hide?: number;
}
interface ModalOptionsBackdropString {
backdrop?: string; // for "static"
interface BootstrapOffset {
top?: number | BootstrapDynamicOffset;
bottom?: number | BootstrapDynamicOffset;
}
interface BootstrapViewport {
padding?: number;
selector: string;
}
interface TooltipInstance<T extends TooltipOptions> {
options: T;
}
// --------------------------------------------------------------------------------------
// Options Interfaces
// --------------------------------------------------------------------------------------
interface ModalOptions {
backdrop?: boolean | "static";
keyboard?: boolean;

@@ -31,29 +59,19 @@ show?: boolean;

animation?: boolean;
container?: string | false;
delay?: number | BootstrapDelay;
html?: boolean;
placement?: string | Function;
placement?: BootstrapPlacement | ((this: TooltipInstance<this>, tooltip: HTMLElement, trigger: Element) => BootstrapPlacement);
selector?: string;
title?: string | Function;
trigger?: string;
template?: string;
delay?: number | Object;
container?: string | boolean;
viewport?: string | Function | Object;
title?: string | ((this: Element) => string);
trigger?: BootstrapTrigger;
viewport?: string | BootstrapViewport;
}
interface PopoverOptions {
animation?: boolean;
html?: boolean;
placement?: string | Function;
selector?: string;
trigger?: string;
title?: string | Function;
template?: string;
content?: any;
delay?: number | Object;
container?: string | boolean;
viewport?: string | Function | Object;
interface PopoverOptions extends TooltipOptions {
content?: string | ((this: Element) => string);
}
interface CollapseOptions {
parent?: any;
parent?: string | false;
toggle?: boolean;

@@ -63,4 +81,4 @@ }

interface CarouselOptions {
interval?: number;
pause?: string;
interval?: number | false;
pause?: "hover" | null;
wrap?: boolean;

@@ -70,62 +88,52 @@ keyboard?: boolean;

interface TypeaheadOptions {
source?: any;
items?: number;
minLength?: number;
matcher?: (item: any) => boolean;
sorter?: (items: any[]) => any[];
updater?: (item: any) => any;
highlighter?: (item: any) => string;
}
interface AffixOptions {
offset?: number | Function | Object;
target?: any;
offset?: number | BootstrapOffset;
target?: string | Node | JQuery | Window;
}
interface TransitionEventNames {
end: string;
}
// --------------------------------------------------------------------------------------
// jQuery
// --------------------------------------------------------------------------------------
interface JQuery {
modal(options?: ModalOptions): JQuery;
modal(options?: ModalOptionsBackdropString): JQuery;
modal(command: string, relatedTarget?: Element): JQuery;
modal(action?: "toggle" | "show" | "hide" | "handleUpdate"): JQuery;
modal(options: ModalOptions): JQuery;
dropdown(): JQuery;
dropdown(command: string): JQuery;
dropdown(action?: "toggle"): JQuery;
scrollspy(command: string): JQuery;
scrollspy(options?: ScrollSpyOptions): JQuery;
scrollspy(action?: "refresh"): JQuery;
scrollspy(options: ScrollSpyOptions): JQuery;
tab(): JQuery;
tab(command: string): JQuery;
tab(action?: "show"): JQuery;
tooltip(options?: TooltipOptions): JQuery;
tooltip(command: string): JQuery;
tooltip(action?: "show" | "hide" | "toggle" | "destroy"): JQuery;
tooltip(options: TooltipOptions): JQuery;
popover(options?: PopoverOptions): JQuery;
popover(command: string): JQuery;
popover(action?: "show" | "hide" | "toggle" | "destroy"): JQuery;
popover(options: PopoverOptions): JQuery;
alert(): JQuery;
alert(command: string): JQuery;
alert(action?: "close"): JQuery;
button(): JQuery;
button(command: string): JQuery;
button(action?: "toggle" | "reset" | string): JQuery;
collapse(options?: CollapseOptions): JQuery;
collapse(command: string): JQuery;
collapse(action?: "toggle" | "show" | "hide"): JQuery;
collapse(options: CollapseOptions): JQuery;
carousel(options?: CarouselOptions): JQuery;
carousel(command: string): JQuery;
carousel(index: number): JQuery;
carousel(action?: "cycle" | "pause" | number | "prev" | "next"): JQuery;
carousel(options: CarouselOptions): JQuery;
typeahead(options?: TypeaheadOptions): JQuery;
affix(action?: "checkPosition"): JQuery;
affix(options: AffixOptions): JQuery;
affix(options?: AffixOptions): JQuery;
affix(command: string): JQuery;
emulateTransitionEnd(duration: number): JQuery;
}
// --------------------------------------------------------------------------------------
// Other
// --------------------------------------------------------------------------------------
interface TransitionEventNames {
end: string;
}
interface JQuerySupport {

@@ -132,0 +140,0 @@ transition: boolean | TransitionEventNames;

{
"name": "@types/bootstrap",
"version": "3.3.39",
"version": "3.3.40",
"description": "TypeScript definitions for Bootstrap",

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

"githubUsername": "borisyankov"
},
{
"name": "denisname",
"url": "https://github.com/denisname",
"githubUsername": "denisname"
}

@@ -17,3 +22,3 @@ ],

"type": "git",
"url": "https://www.github.com/DefinitelyTyped/DefinitelyTyped.git"
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git"
},

@@ -24,4 +29,4 @@ "scripts": {},

},
"typesPublisherContentHash": "cd895a03bcce62a48080e7667cafc2339bdb1fd8a9bdde3d926cad0a388a4eb7",
"typesPublisherContentHash": "c0e95f4115633455f60980ce79a3c80a3b12cf270c419b7f1fafcf59656866d7",
"typeScriptVersion": "2.3"
}

@@ -8,6 +8,6 @@ # Installation

# Details
Files were exported from https://www.github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/bootstrap/v3
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/bootstrap/v3
Additional Details
* Last updated: Thu, 01 Mar 2018 22:15:31 GMT
* Last updated: Thu, 04 Oct 2018 19:09:29 GMT
* Dependencies: jquery

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

# Credits
These definitions were written by Boris Yankov <https://github.com/borisyankov>.
These definitions were written by Boris Yankov <https://github.com/borisyankov>, denisname <https://github.com/denisname>.
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