UNPKG

typescript-closure-tools

Version:

Command-line tools to convert closure-style JSDoc annotations to typescript, and to convert typescript sources to closure externs files

53 lines (51 loc) 1.72 kB
// Type definitions for jQuery tinyscrollbar 1.8 // Project: http://baijs.nl/tinyscrollbar/ // Definitions by: Christiaan Rakowski <https://github.com/csrakowski/> // Definitions: https://github.com/borisyankov/DefinitelyTyped /// <reference path="../jquery/jquery.d.ts" /> declare module JQueryTinyScrollbar { export interface JQueryTinyScrollbarOptions { /** * Enable mobile invert style scrolling. (default: false) */ invertscroll?: boolean; /** * Vertical or horizontal scroller? 'x' or 'y'. (default: 'x') */ axis?: string; /** * How many pixels must the mouswheel scrolls at a time. (default: 40) */ wheel?: number; /** * Enable or disable the mousewheel. (default: true) */ scroll?: boolean; /** * Return scrollwheel event to browser if there is no more content. (default: true) */ lockscroll?: boolean; /** * Set the size of the scrollbar to auto or a fixed number. (default: 'auto') */ size?: any; /** * Set the size of the thumb to auto or a fixed number. (default: 'auto') */ sizethumb?: any; } } interface JQuery { /** * Creates a new tinyscrollbar with the specified, or default, options. * * @param options The options */ tinyscrollbar(options?: JQueryTinyScrollbar.JQueryTinyScrollbarOptions): JQuery; /** * Updates an existing tinyscrollbar with the specified, or default, options. * * @param options The options */ tinyscrollbar_update(options?: any): JQuery; }