mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-12-03 19:51:53 +00:00
Merge remote-tracking branch 'origin/master' into restify-v5
This commit is contained in:
@@ -306,3 +306,5 @@ $.parseHTML(html, null, true);
|
||||
* Not in doc
|
||||
*/
|
||||
$el.toArray();
|
||||
|
||||
cheerio.html($el);
|
||||
|
||||
Vendored
+1
-1
@@ -263,7 +263,7 @@ interface CheerioElement {
|
||||
nodeValue: string;
|
||||
}
|
||||
|
||||
interface CheerioAPI extends CheerioSelector {
|
||||
interface CheerioAPI extends CheerioSelector, CheerioStatic {
|
||||
load(html: string, options?: CheerioOptionsInterface): CheerioStatic;
|
||||
load(element: CheerioElement, options?: CheerioOptionsInterface): CheerioStatic;
|
||||
}
|
||||
|
||||
Vendored
+2
@@ -2449,6 +2449,7 @@ declare namespace Ember {
|
||||
function observersFor(obj: any, path: string): any[];
|
||||
function onLoad(name: string, callback: Function): void;
|
||||
const onError: Error;
|
||||
function onerror(error: any): void;
|
||||
function overrideChains(obj: any, keyName: string, m: any): boolean;
|
||||
// ReSharper disable once DuplicatingLocalDeclaration
|
||||
const platform: {
|
||||
@@ -2480,6 +2481,7 @@ declare namespace Ember {
|
||||
throttle(target: any, method: Function | string, ...args: any[]): void;
|
||||
queues: any[];
|
||||
};
|
||||
function runInDebug(fn: Function): void;
|
||||
function runLoadHooks(name: string, object: any): void;
|
||||
function sendEvent(obj: any, eventName: string, params?: any[], actions?: any[]): boolean;
|
||||
function set(obj: any, keyName: string, value: any): any;
|
||||
|
||||
Vendored
+1
-1
@@ -47,7 +47,7 @@ declare namespace gapi.auth2 {
|
||||
/**
|
||||
* Get permission from the user to access the specified scopes offline.
|
||||
*/
|
||||
grantOfflineAccess(options: {
|
||||
grantOfflineAccess(options?: {
|
||||
scope?: string;
|
||||
prompt?: "select_account" | "consent";
|
||||
app_package_name?: string;
|
||||
|
||||
Vendored
+7
-7
@@ -40,35 +40,35 @@ declare namespace L {
|
||||
*
|
||||
* Default value: {}
|
||||
*/
|
||||
polyline?: DrawOptions.PolylineOptions;
|
||||
polyline?: DrawOptions.PolylineOptions | false;
|
||||
|
||||
/**
|
||||
* Polygon draw handler options. Set to false to disable handler.
|
||||
*
|
||||
* Default value: {}
|
||||
*/
|
||||
polygon?: DrawOptions.PolygonOptions;
|
||||
polygon?: DrawOptions.PolygonOptions | false;
|
||||
|
||||
/**
|
||||
* Rectangle draw handler options. Set to false to disable handler.
|
||||
*
|
||||
* Default value: {}
|
||||
*/
|
||||
rectangle?: DrawOptions.RectangleOptions;
|
||||
rectangle?: DrawOptions.RectangleOptions | false;
|
||||
|
||||
/**
|
||||
* Circle draw handler options. Set to false to disable handler.
|
||||
*
|
||||
* Default value: {}
|
||||
*/
|
||||
circle?: DrawOptions.CircleOptions;
|
||||
circle?: DrawOptions.CircleOptions | false;
|
||||
|
||||
/**
|
||||
* Marker draw handler options. Set to false to disable handler.
|
||||
*
|
||||
* Default value: {}
|
||||
*/
|
||||
marker?: DrawOptions.MarkerOptions;
|
||||
marker?: DrawOptions.MarkerOptions | false;
|
||||
}
|
||||
|
||||
interface EditOptions {
|
||||
@@ -85,14 +85,14 @@ declare namespace L {
|
||||
*
|
||||
* Default value: null
|
||||
*/
|
||||
edit?: DrawOptions.EditHandlerOptions;
|
||||
edit?: DrawOptions.EditHandlerOptions | false;
|
||||
|
||||
/**
|
||||
* Delete handler options. Set to false to disable handler.
|
||||
*
|
||||
* Default value: null
|
||||
*/
|
||||
remove?: DrawOptions.DeleteHandlerOptions;
|
||||
remove?: DrawOptions.DeleteHandlerOptions | false;
|
||||
}
|
||||
|
||||
interface Draw extends Control {
|
||||
|
||||
@@ -45,3 +45,27 @@ map.on(L.Draw.Event.CREATED, (e: L.DrawEvents.Created) => {
|
||||
let examplePolygon: L.LatLngLiteral[] = [{lng: 0, lat: 0}, {lng: 10, lat: 0}, {lng: 10, lat: 10}, {lng: 0, lat: 10}, {lng: 0, lat: 0}];
|
||||
let examplePolygonArea: number = L.GeometryUtil.geodesicArea(examplePolygon);
|
||||
L.GeometryUtil.readableArea(examplePolygonArea, true);
|
||||
|
||||
function testBooleanControlOptions() {
|
||||
const drawControl = new L.Control.Draw({
|
||||
position: 'topleft' ,
|
||||
draw: {
|
||||
polygon: {
|
||||
allowIntersection: false,
|
||||
drawError: {
|
||||
color: '#b00b00',
|
||||
timeout: 1000
|
||||
},
|
||||
shapeOptions: {
|
||||
color: '#bada55'
|
||||
},
|
||||
showArea: true
|
||||
},
|
||||
polyline: {},
|
||||
circle: false
|
||||
},
|
||||
edit: {
|
||||
featureGroup: drawnItems
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Vendored
+1
-1
@@ -399,7 +399,7 @@ declare namespace L {
|
||||
|
||||
class Layer extends Evented {
|
||||
constructor(options?: LayerOptions);
|
||||
addTo(map: Map): this;
|
||||
addTo(map: Map|LayerGroup): this;
|
||||
remove(): this;
|
||||
removeFrom(map: Map): this;
|
||||
getPane(name?: string): HTMLElement | undefined;
|
||||
|
||||
Vendored
+3
@@ -4,6 +4,7 @@
|
||||
// Hans Bakker <https://github.com/wind-rider>
|
||||
// Shantanu Bhadoria <https://github.com/shantanubhadoria>
|
||||
// Luke Libraro <https://github.com/lukel99>
|
||||
// Dan Chao <https://github.com/bioball>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
/// <reference types="node" />
|
||||
@@ -88,6 +89,8 @@ export declare class Characteristic extends events.EventEmitter {
|
||||
notify(notify: boolean, callback?: (error: string) => void): void;
|
||||
discoverDescriptors(callback?: (error: string, descriptors: Descriptor[]) => void): void;
|
||||
toString(): string;
|
||||
subscribe(callback?: (error: string) => void): void;
|
||||
unsubscribe(callback?: (error: string) => void): void;
|
||||
|
||||
on(event: string, listener: Function): this;
|
||||
on(event: string, option: boolean, listener: Function): this;
|
||||
|
||||
@@ -87,6 +87,10 @@ characteristic.on("write", true, (error: string): void => {});
|
||||
characteristic.on("broadcast", (state: string): void => {});
|
||||
characteristic.on("notify", (state: string): void => {});
|
||||
characteristic.on("descriptorsDiscover", (descriptors: noble.Descriptor[]): void => {});
|
||||
characteristic.subscribe();
|
||||
characteristic.subscribe((error: string) => {});
|
||||
characteristic.unsubscribe();
|
||||
characteristic.unsubscribe((error: string) => {});
|
||||
|
||||
var descriptor: noble.Descriptor = new noble.Descriptor();
|
||||
descriptor.uuid = "";
|
||||
|
||||
Vendored
+6
@@ -3514,6 +3514,12 @@ declare module 'paper' {
|
||||
* @param highlight [optional] -
|
||||
*/
|
||||
constructor(color: Gradient, origin: Point, destination: Point, highlight?: Point);
|
||||
|
||||
/**
|
||||
* Creates a RGB Color object.
|
||||
* @param hex - the RGB color in hex, i.e. #000000
|
||||
*/
|
||||
constructor(hex: string);
|
||||
|
||||
/**
|
||||
* The type of the color as a string.
|
||||
|
||||
+2
-2
@@ -19,8 +19,8 @@ declare module 'mongoose' {
|
||||
// statics
|
||||
interface PassportLocalModel<T extends Document> extends Model<T> {
|
||||
authenticate(): (username: string, password: string, cb: (err: any, res: T, error: any) => void) => void;
|
||||
serializeUser(): (user: PassportLocalModel<T>, cb: (err: any) => void) => void;
|
||||
deserializeUser(): (username: string, cb: (err: any) => void) => void;
|
||||
serializeUser(): (user: PassportLocalModel<T>, cb: (err: any, id?: any) => void) => void;
|
||||
deserializeUser(): (username: string, cb: (err: any, user?: any) => void) => void;
|
||||
register(user: T, password: string, cb: (err: any, account: any) => void): void;
|
||||
findByUsername(username: string, selectHashSaltFields: boolean, cb: (err: any, account: any) => void): any;
|
||||
createStrategy(): passportLocal.Strategy;
|
||||
|
||||
Vendored
+1
-1
@@ -71,7 +71,7 @@ export declare class Pool extends events.EventEmitter {
|
||||
connect(): Promise<Client>;
|
||||
connect(callback: (err: Error, client: Client, done: () => void) => void): void;
|
||||
|
||||
end(): Promise<void>;
|
||||
end(callback?: () => void): Promise<void>;
|
||||
|
||||
query(queryStream: QueryConfig & stream.Readable): stream.Readable;
|
||||
query(queryTextOrConfig: string | QueryConfig): Promise<QueryResult>;
|
||||
|
||||
@@ -74,3 +74,8 @@ pool.connect((err, client, done) => {
|
||||
pool.on('error', (err, client) => {
|
||||
console.error('idle client error', err.message, err.stack)
|
||||
})
|
||||
|
||||
pool.end();
|
||||
pool.end(() => {
|
||||
console.log("pool is closed");
|
||||
});
|
||||
|
||||
Vendored
+4
-1
@@ -1,9 +1,10 @@
|
||||
// Type definitions for qs 6.4.0
|
||||
// Type definitions for qs 6.5.0
|
||||
// Project: https://github.com/ljharb/qs
|
||||
// Definitions by: Roman Korneev <https://github.com/RWander>
|
||||
// Leon Yu <https://github.com/leonyu>
|
||||
// Belinda Teh <https://github.com/tehbelinda>
|
||||
// Melvin Lee <https://github.com/zyml>
|
||||
// Arturs Vonda <https://github.com/artursvonda>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
export = QueryString;
|
||||
@@ -23,6 +24,7 @@ declare namespace QueryString {
|
||||
serializeDate?: (d: Date) => string;
|
||||
format?: 'RFC1738' | 'RFC3986';
|
||||
encodeValuesOnly?: boolean;
|
||||
addQueryPrefix?: boolean;
|
||||
}
|
||||
|
||||
interface IParseOptions {
|
||||
@@ -36,6 +38,7 @@ declare namespace QueryString {
|
||||
allowPrototypes?: boolean;
|
||||
parameterLimit?: number;
|
||||
strictNullHandling?: boolean;
|
||||
ignoreQueryPrefix?: boolean;
|
||||
}
|
||||
|
||||
function stringify(obj: any, options?: IStringifyOptions): string;
|
||||
|
||||
@@ -233,6 +233,11 @@ qs.parse('a=b&c=d', { delimiter: '&' });
|
||||
assert.deepEqual(parsedStrictNull, { a: null, b: '' });
|
||||
}
|
||||
|
||||
() => {
|
||||
var parsedQueryPrefix = qs.parse('?a&b=', { ignoreQueryPrefix: true });
|
||||
assert.deepEqual(parsedQueryPrefix, { a: '', b: '' });
|
||||
}
|
||||
|
||||
() => {
|
||||
var nullsSkipped = qs.stringify({ a: 'b', c: null }, { skipNulls: true });
|
||||
assert.equal(nullsSkipped, 'a=b');
|
||||
@@ -278,3 +283,7 @@ qs.parse('a=b&c=d', { delimiter: '&' });
|
||||
);
|
||||
assert.equal(encodedValues,'a=b&c[0]=d&c[1]=e%3Df&f[0][0]=g&f[1][0]=h');
|
||||
}
|
||||
|
||||
() => {
|
||||
assert.equal(qs.stringify({ a: 'b' }, { addQueryPrefix: true }), '?a=b');
|
||||
}
|
||||
|
||||
Vendored
+155
-144
@@ -1,154 +1,165 @@
|
||||
// Type definitions for rc-slider 6.1
|
||||
// Type definitions for rc-slider 8.1
|
||||
// Project: https://github.com/react-component/slider
|
||||
// Definitions by: Marcinkus Mantas <https://github.com/mantasmarcinkus/>
|
||||
// Definitions by: Marcinkus Mantas <https://github.com/mantasmarcinkus/>, Alexander Mattoni <https://github.com/mattoni/>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.3
|
||||
|
||||
import * as React from 'react';
|
||||
import * as React from "react";
|
||||
|
||||
declare namespace RcSliderClass {
|
||||
interface Marks {
|
||||
[number: number]: JSX.Element | string | { style: any, label: string | JSX.Element };
|
||||
}
|
||||
|
||||
interface CommonApiProps {
|
||||
/**
|
||||
* Additional CSS class for the root DOM node
|
||||
* @default ''
|
||||
*/
|
||||
className?: string;
|
||||
/**
|
||||
* The minimum value of the slider
|
||||
* @default 0
|
||||
*/
|
||||
min?: number;
|
||||
/**
|
||||
* The maximum value of the slider
|
||||
* @default 100
|
||||
*/
|
||||
max?: number;
|
||||
/**
|
||||
* Marks on the slider. The key determines the position, and the value determines what will show.
|
||||
* If you want to set the style of a specific mark point, the value should be an object which contains style and label properties.
|
||||
* @default '{}' | {number: { style, label }}
|
||||
*/
|
||||
marks?: Marks;
|
||||
/**
|
||||
* Value to be added or subtracted on each step the slider makes. Must be greater than zero, and max - min should be evenly divisible by the step value.
|
||||
* @default 1
|
||||
*/
|
||||
step?: number;
|
||||
/**
|
||||
* If vertical is true, the slider will be vertical.
|
||||
* @default false
|
||||
*/
|
||||
vertical?: boolean;
|
||||
/**
|
||||
* A handle generator which could be used to customized handle.
|
||||
*/
|
||||
handle?(props: any): React.ReactNode;
|
||||
/**
|
||||
* If the value is true, it means a continuous value interval, otherwise, it is a independent value.
|
||||
* @default true
|
||||
*/
|
||||
included?: boolean;
|
||||
/**
|
||||
* If true, handles can't be moved.
|
||||
* @default false
|
||||
*/
|
||||
disabled?: boolean;
|
||||
/**
|
||||
* When the step value is greater than 1, you can set the dots to true if you want to render the slider with dots.
|
||||
* @default false
|
||||
*/
|
||||
dots?: boolean;
|
||||
/**
|
||||
* onBeforeChange will be triggered when ontouchstart or onmousedown is triggered.
|
||||
*/
|
||||
onBeforeChange?(value: any): any | undefined;
|
||||
/**
|
||||
* onChange will be triggered while the value of Slider changing.
|
||||
*/
|
||||
onChange?(value: any): any | undefined;
|
||||
/**
|
||||
* onAfterChange will be triggered when ontouchend or onmouseup is triggered.
|
||||
*/
|
||||
onAfterChange?(value: any): any | undefined;
|
||||
|
||||
/**
|
||||
* @deprecated in version ^6.0.0. Use rc-tooltip
|
||||
* Tooltip transition class name
|
||||
*/
|
||||
tipTransitionName?: string;
|
||||
|
||||
/**
|
||||
* @deprecated in version ^6.0.0. Use rc-tooltip
|
||||
* Tooltip formatter
|
||||
*/
|
||||
tipFormatter?: ((value: any) => any | undefined) | null;
|
||||
}
|
||||
|
||||
interface SliderProps extends CommonApiProps {
|
||||
/**
|
||||
* Set initial value of slider.
|
||||
* @default 0
|
||||
*/
|
||||
defaultValue?: number;
|
||||
/**
|
||||
* Set current value of slider.
|
||||
*/
|
||||
value?: number;
|
||||
}
|
||||
|
||||
interface RangeProps extends CommonApiProps {
|
||||
/**
|
||||
* Set initial positions of handles.
|
||||
* @default [0,0]
|
||||
*/
|
||||
defaultValue?: number[];
|
||||
/**
|
||||
* Set current positions of handles.
|
||||
*/
|
||||
value?: number[];
|
||||
/**
|
||||
* Determine how many ranges to render, and multiple handles will be rendered (number + 1).
|
||||
* @default 1
|
||||
*/
|
||||
count?: number;
|
||||
/**
|
||||
* allowCross could be set as true to allow those handles to cross.
|
||||
* @default true
|
||||
*/
|
||||
allowCross?: boolean;
|
||||
/**
|
||||
* pushable could be set as true to allow pushing of surrounding handles when moving an handle. When set to a number, the number will be the minimum ensured distance between handles.
|
||||
* @default true
|
||||
*/
|
||||
pushable?: boolean;
|
||||
}
|
||||
|
||||
interface HandleProps extends CommonApiProps {
|
||||
/**
|
||||
* Class name
|
||||
*/
|
||||
className: string;
|
||||
/**
|
||||
* Styling if true, then bottom: {offset} else left: {offset}
|
||||
* @default False
|
||||
*/
|
||||
vertical: boolean;
|
||||
/**
|
||||
* Styling option offset
|
||||
*/
|
||||
offset: number;
|
||||
}
|
||||
export interface Marks {
|
||||
[number: number]:
|
||||
| JSX.Element
|
||||
| string
|
||||
| { style: any; label: string | JSX.Element };
|
||||
}
|
||||
|
||||
declare class RcSliderClass extends React.Component<RcSliderClass.SliderProps> { }
|
||||
export interface CommonApiProps {
|
||||
/**
|
||||
* Additional CSS class for the root DOM node
|
||||
* @default ''
|
||||
*/
|
||||
className?: string;
|
||||
/**
|
||||
* The minimum value of the slider
|
||||
* @default 0
|
||||
*/
|
||||
min?: number;
|
||||
/**
|
||||
* The maximum value of the slider
|
||||
* @default 100
|
||||
*/
|
||||
max?: number;
|
||||
/**
|
||||
* Marks on the slider. The key determines the position, and the value determines what will show.
|
||||
* If you want to set the style of a specific mark point, the value should be an object which contains style and label properties.
|
||||
* @default '{}' | {number: { style, label }}
|
||||
*/
|
||||
marks?: Marks;
|
||||
/**
|
||||
* Value to be added or subtracted on each step the slider makes. Must be greater than zero, and max - min should be evenly divisible by the step value.
|
||||
* @default 1
|
||||
*/
|
||||
step?: number;
|
||||
/**
|
||||
* If vertical is true, the slider will be vertical.
|
||||
* @default false
|
||||
*/
|
||||
vertical?: boolean;
|
||||
/**
|
||||
* A handle generator which could be used to customized handle.
|
||||
*/
|
||||
handle?(props: any): React.ReactNode;
|
||||
/**
|
||||
* If the value is true, it means a continuous value interval, otherwise, it is a independent value.
|
||||
* @default true
|
||||
*/
|
||||
included?: boolean;
|
||||
/**
|
||||
* If true, handles can't be moved.
|
||||
* @default false
|
||||
*/
|
||||
disabled?: boolean;
|
||||
/**
|
||||
* When the step value is greater than 1, you can set the dots to true if you want to render the slider with dots.
|
||||
* @default false
|
||||
*/
|
||||
dots?: boolean;
|
||||
/**
|
||||
* onBeforeChange will be triggered when ontouchstart or onmousedown is triggered.
|
||||
*/
|
||||
onBeforeChange?(value: any): any | undefined;
|
||||
/**
|
||||
* onChange will be triggered while the value of Slider changing.
|
||||
*/
|
||||
onChange?(value: any): any | undefined;
|
||||
/**
|
||||
* onAfterChange will be triggered when ontouchend or onmouseup is triggered.
|
||||
*/
|
||||
onAfterChange?(value: any): any | undefined;
|
||||
|
||||
declare namespace RcSliderClass {
|
||||
class Range extends React.Component<RcSliderClass.RangeProps> { }
|
||||
class Handle extends React.Component<RcSliderClass.HandleProps> { }
|
||||
/**
|
||||
* @deprecated in version ^6.0.0. Use rc-tooltip
|
||||
* Tooltip transition class name
|
||||
*/
|
||||
tipTransitionName?: string;
|
||||
|
||||
/**
|
||||
* @deprecated in version ^6.0.0. Use rc-tooltip
|
||||
* Tooltip formatter
|
||||
*/
|
||||
tipFormatter?: ((value: any) => any | undefined) | null;
|
||||
|
||||
/**
|
||||
* The style used for handle. (both for slider(Object) and range(Array of Object), the array will be used for mutli handle follow element order)
|
||||
*/
|
||||
handleStyle?: React.CSSProperties[] | React.CSSProperties;
|
||||
|
||||
/**
|
||||
* The style used for track. (both for slider(Object) and range(Array of Object), the array will be used for mutli track follow element order)
|
||||
*/
|
||||
trackStyle?: React.CSSProperties[] | React.CSSProperties;
|
||||
|
||||
/**
|
||||
* The style used for the track base color.
|
||||
*/
|
||||
railStyle?: React.CSSProperties;
|
||||
}
|
||||
|
||||
export = RcSliderClass;
|
||||
export interface SliderProps extends CommonApiProps {
|
||||
/**
|
||||
* Set initial value of slider.
|
||||
* @default 0
|
||||
*/
|
||||
defaultValue?: number;
|
||||
/**
|
||||
* Set current value of slider.
|
||||
*/
|
||||
value?: number;
|
||||
}
|
||||
|
||||
export interface RangeProps extends CommonApiProps {
|
||||
/**
|
||||
* Set initial positions of handles.
|
||||
* @default [0,0]
|
||||
*/
|
||||
defaultValue?: number[];
|
||||
/**
|
||||
* Set current positions of handles.
|
||||
*/
|
||||
value?: number[];
|
||||
/**
|
||||
* Determine how many ranges to render, and multiple handles will be rendered (number + 1).
|
||||
* @default 1
|
||||
*/
|
||||
count?: number;
|
||||
/**
|
||||
* allowCross could be set as true to allow those handles to cross.
|
||||
* @default true
|
||||
*/
|
||||
allowCross?: boolean;
|
||||
/**
|
||||
* pushable could be set as true to allow pushing of surrounding handles when moving an handle. When set to a number, the number will be the minimum ensured distance between handles.
|
||||
* @default true
|
||||
*/
|
||||
pushable?: boolean;
|
||||
}
|
||||
|
||||
export interface HandleProps extends CommonApiProps {
|
||||
/**
|
||||
* Class name
|
||||
*/
|
||||
className: string;
|
||||
/**
|
||||
* Styling if true, then bottom: {offset} else left: {offset}
|
||||
* @default False
|
||||
*/
|
||||
vertical: boolean;
|
||||
/**
|
||||
* Styling option offset
|
||||
*/
|
||||
offset: number;
|
||||
}
|
||||
|
||||
export default class Slider extends React.Component<SliderProps> { }
|
||||
export class Range extends React.Component<RangeProps> { }
|
||||
export class Handle extends React.Component<HandleProps> { }
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
import * as React from 'react';
|
||||
import * as ReactDOM from 'react-dom';
|
||||
import * as Slider from 'rc-slider';
|
||||
import { Range, Handle } from 'rc-slider';
|
||||
import Slider, { Range, Handle } from 'rc-slider';
|
||||
|
||||
ReactDOM.render(
|
||||
<Slider defaultValue={1} max={2} step={0.01} min={0.01} />,
|
||||
|
||||
+166
@@ -0,0 +1,166 @@
|
||||
// Type definitions for react-native-elements 0.13
|
||||
// Project: https://github.com/react-native-training/react-native-elements#readme
|
||||
// Definitions by: Kyle Roach <https://github.com/iRoachie>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.3
|
||||
|
||||
import * as React from 'react';
|
||||
import { ViewStyle, TextStyle } from 'react-native';
|
||||
|
||||
export interface ButtonIcon {
|
||||
name?: string;
|
||||
color?: string;
|
||||
size?: number;
|
||||
type?: 'material' | 'material-community' | 'simple-line-icon' | 'zocial' | 'font-awesome' | 'octicon' | 'ionicon' | 'foundation' | 'evilicon' | 'entypo';
|
||||
buttonStyle?: TextStyle;
|
||||
}
|
||||
|
||||
export interface ButtonProperties {
|
||||
/**
|
||||
* Specify other component such as TouchableOpacity or other
|
||||
*
|
||||
* @default TouchableHighlight (iOS), TouchableNativeFeedback (android)
|
||||
*/
|
||||
Component?: JSX.Element;
|
||||
|
||||
/**
|
||||
* Additional styling for button component
|
||||
*
|
||||
* @default null
|
||||
*/
|
||||
buttonStyle?: ViewStyle;
|
||||
|
||||
/**
|
||||
* Button title
|
||||
*/
|
||||
title: string;
|
||||
|
||||
/**
|
||||
* Makes button large
|
||||
*
|
||||
* @default false
|
||||
*/
|
||||
large?: boolean;
|
||||
|
||||
/**
|
||||
* Specify different font family
|
||||
*
|
||||
* @default System font (iOS), Sans Serif (android)
|
||||
*/
|
||||
fontFamily?: string;
|
||||
|
||||
/**
|
||||
* Specify font weight for title
|
||||
*
|
||||
* @default null
|
||||
*/
|
||||
fontWeight?: string;
|
||||
|
||||
/**
|
||||
* Moves icon to right of title
|
||||
*
|
||||
* @default false
|
||||
*/
|
||||
iconRight?: boolean;
|
||||
|
||||
/**
|
||||
* onPress method
|
||||
*/
|
||||
onPress(): void;
|
||||
|
||||
/**
|
||||
* onLongPress method
|
||||
*/
|
||||
onLongPress?(): void;
|
||||
|
||||
/**
|
||||
* Icon configuration
|
||||
*/
|
||||
icon?: ButtonIcon;
|
||||
|
||||
/**
|
||||
* Specify other icon component instead of default. The component will have all values from the icon prop
|
||||
*
|
||||
* @default MaterialIcon
|
||||
* @see https://github.com/oblador/react-native-vector-icons#icon-component
|
||||
*/
|
||||
iconComponent?: JSX.Element;
|
||||
|
||||
/**
|
||||
* Background color of button
|
||||
*
|
||||
* @default #397af8
|
||||
*/
|
||||
backgroundColor?: string;
|
||||
|
||||
/**
|
||||
* Adds border radius to button
|
||||
* (Note: if you set this, don't forget to also set borderRadius to containerViewStyle prop, otherwise unexpected behaviour might occur)
|
||||
*
|
||||
* @default 0
|
||||
*/
|
||||
borderRadius?: number;
|
||||
|
||||
/**
|
||||
* Font color
|
||||
*
|
||||
* @default #fff
|
||||
*/
|
||||
color?: string;
|
||||
|
||||
/**
|
||||
* Text styling
|
||||
*
|
||||
* @default null
|
||||
*/
|
||||
textStyle?: TextStyle;
|
||||
|
||||
/**
|
||||
* Font size
|
||||
*
|
||||
* @default 18
|
||||
*/
|
||||
fontSize?: number;
|
||||
|
||||
/**
|
||||
* Underlay color for button press
|
||||
*
|
||||
* @default transparent
|
||||
*/
|
||||
underlayColor?: string;
|
||||
|
||||
/**
|
||||
* Flag to add raised button styling
|
||||
*
|
||||
* @default false
|
||||
*/
|
||||
raised?: boolean;
|
||||
|
||||
/**
|
||||
* Indicates button is disabled
|
||||
*
|
||||
* @default false
|
||||
*/
|
||||
disabled?: boolean;
|
||||
|
||||
/**
|
||||
* Disabled button styling
|
||||
*
|
||||
* @default null
|
||||
*/
|
||||
disabledStyle?: ViewStyle;
|
||||
|
||||
/**
|
||||
* Styling for Component container
|
||||
*
|
||||
* @default null
|
||||
*/
|
||||
containerViewStyle?: ViewStyle;
|
||||
}
|
||||
|
||||
/**
|
||||
* Button component
|
||||
*
|
||||
* @desc https://react-native-training.github.io/react-native-elements/API/buttons/
|
||||
*/
|
||||
export class Button extends React.Component<ButtonProperties, any> {}
|
||||
@@ -0,0 +1,44 @@
|
||||
import * as React from 'react';
|
||||
import { View, StyleSheet } from 'react-native';
|
||||
import { Button } from 'react-native-elements';
|
||||
|
||||
class ButtonTest extends React.Component<any, any> {
|
||||
handleButtonPress() {
|
||||
console.log('I got pressed');
|
||||
}
|
||||
|
||||
render() {
|
||||
return (
|
||||
<View>
|
||||
<Button title='BUTTON' onPress={() => this.handleButtonPress()} />
|
||||
|
||||
<Button
|
||||
raised
|
||||
icon={{name: 'cached'}}
|
||||
title='BUTTON WITH ICON' onPress={() => this.handleButtonPress()} />
|
||||
|
||||
<Button
|
||||
large
|
||||
iconRight
|
||||
icon={{name: 'code'}}
|
||||
title='LARGE WITH RIGHT ICON' onPress={() => this.handleButtonPress()} />
|
||||
|
||||
<Button
|
||||
large
|
||||
icon={{name: 'envira', type: 'font-awesome'}}
|
||||
title='LARGE WITH RIGHT ICON' onPress={() => this.handleButtonPress()} />
|
||||
|
||||
<Button
|
||||
large
|
||||
icon={{name: 'squirrel', type: 'octicon', buttonStyle: styles.someButtonStyle }}
|
||||
title='OCTICON' onPress={() => this.handleButtonPress()} />
|
||||
</View>
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
const styles = StyleSheet.create({
|
||||
someButtonStyle: {
|
||||
color: 'pink'
|
||||
}
|
||||
});
|
||||
@@ -0,0 +1,24 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"lib": [
|
||||
"es6",
|
||||
"dom"
|
||||
],
|
||||
"noImplicitAny": true,
|
||||
"noImplicitThis": true,
|
||||
"strictNullChecks": true,
|
||||
"baseUrl": "../",
|
||||
"typeRoots": [
|
||||
"../"
|
||||
],
|
||||
"types": [],
|
||||
"noEmit": true,
|
||||
"forceConsistentCasingInFileNames": true,
|
||||
"jsx": "react"
|
||||
},
|
||||
"files": [
|
||||
"index.d.ts",
|
||||
"react-native-elements-tests.tsx"
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
{ "extends": "dtslint/dt.json" }
|
||||
+18
@@ -0,0 +1,18 @@
|
||||
// Type definitions for react-native-touch-id 3.0.0
|
||||
// Project: https://github.com/naoufal/react-native-touch-id
|
||||
// Definitions by: huhuanming <https://github.com/huhuanming>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
declare module 'react-native-touch-id' {
|
||||
|
||||
class TouchIDError {
|
||||
name: 'LAErrorAuthenticationFailed' | 'LAErrorUserCancel' | 'LAErrorUserFallback' | 'LAErrorSystemCancel'
|
||||
| 'LAErrorPasscodeNotSet' | 'LAErrorTouchIDNotAvailable' | 'LAErrorTouchIDNotEnrolled'
|
||||
| 'LAErrorTouchIDNotEnrolled' | 'RCTTouchIDUnknownError' | 'RCTTouchIDNotSupported';
|
||||
message: string;
|
||||
details: any;
|
||||
}
|
||||
|
||||
export const isSupported: () => Promise<boolean | TouchIDError>;
|
||||
export const authenticate: (reason: string) => Promise<boolean | TouchIDError>;
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
import { isSupported, authenticate, TouchIDError } from 'react-native-touch-id';
|
||||
|
||||
isSupported().then((isOk: boolean) => {}).catch((error: TouchIDError) => {});
|
||||
|
||||
authenticate('reason').then((isOk: boolean) => {}).catch((error: TouchIDError) => {});
|
||||
@@ -0,0 +1,22 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"lib": [
|
||||
"es6"
|
||||
],
|
||||
"noImplicitAny": true,
|
||||
"noImplicitThis": true,
|
||||
"strictNullChecks": true,
|
||||
"baseUrl": "../",
|
||||
"typeRoots": [
|
||||
"../"
|
||||
],
|
||||
"types": [],
|
||||
"noEmit": true,
|
||||
"forceConsistentCasingInFileNames": true
|
||||
},
|
||||
"files": [
|
||||
"index.d.ts",
|
||||
"react-native-touch-id-tests.ts"
|
||||
]
|
||||
}
|
||||
Vendored
+5
-6
@@ -3,7 +3,6 @@
|
||||
// Definitions by: Eloy Durán <https://github.com/alloy>
|
||||
// Fedor Nezhivoi <https://github.com/gyzerok>
|
||||
// HuHuanming <https://github.com/huhuanming>
|
||||
// Jeremi Stadler <https://github.com/jeremistadler>
|
||||
// Kyle Roach <https://github.com/iRoachie>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.3
|
||||
@@ -336,7 +335,7 @@ export interface NativeMethodsMixinStatic {
|
||||
blur(): void;
|
||||
|
||||
refs: {
|
||||
[key: string]: React.Component<any>
|
||||
[key: string]: React.Component<any, any>
|
||||
};
|
||||
}
|
||||
|
||||
@@ -3444,17 +3443,17 @@ export interface FlatListProperties<ItemT> extends ScrollViewProperties {
|
||||
/**
|
||||
* Rendered when the list is empty.
|
||||
*/
|
||||
ListEmptyComponent?: React.ComponentClass<any> | null
|
||||
ListEmptyComponent?: React.ComponentClass<any> | React.ReactElement<any> | (() => React.ReactElement<any>) | null
|
||||
|
||||
/**
|
||||
* Rendered at the very end of the list.
|
||||
*/
|
||||
ListFooterComponent?: React.ComponentClass<any> | (() => React.ReactElement<any>) | null
|
||||
ListFooterComponent?: React.ComponentClass<any> | React.ReactElement<any> | (() => React.ReactElement<any>) | null
|
||||
|
||||
/**
|
||||
* Rendered at the very beginning of the list.
|
||||
*/
|
||||
ListHeaderComponent?: React.ComponentClass<any> | (() => React.ReactElement<any>) | null
|
||||
ListHeaderComponent?: React.ComponentClass<any> | React.ReactElement<any> | (() => React.ReactElement<any>) | null
|
||||
|
||||
/**
|
||||
* Optional custom style for multi-item rows generated when numColumns > 1
|
||||
@@ -8858,7 +8857,7 @@ export function requireNativeComponent<P>(
|
||||
extraConfig?: {nativeOnly?: any}
|
||||
): React.ComponentClass<P>;
|
||||
|
||||
export function findNodeHandle(componentOrHandle: null | number | React.Component<any> | React.ComponentClass<any>): null | number;
|
||||
export function findNodeHandle(componentOrHandle: null | number | React.Component<any, any> | React.ComponentClass<any>): null | number;
|
||||
|
||||
export function processColor(color: any): number;
|
||||
|
||||
|
||||
Vendored
+25
@@ -5,6 +5,7 @@
|
||||
// fangpenlin <https://github.com/fangpenlin>
|
||||
// abrahambotros <https://github.com/abrahambotros>
|
||||
// petejkim <https://github.com/petejkim>
|
||||
// Kyle Roach <https://github.com/iRoachie>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.3
|
||||
|
||||
@@ -633,6 +634,30 @@ export class Transitioner extends React.Component<
|
||||
TransitionerState
|
||||
> { }
|
||||
|
||||
|
||||
/**
|
||||
* Tab Router
|
||||
*
|
||||
* @desc from react-navigation/src/routers/TabRouter.js
|
||||
* @param routeConfigs
|
||||
* @param config
|
||||
*/
|
||||
export function TabRouter(
|
||||
routeConfigs: NavigationRouteConfigMap,
|
||||
config: NavigationTabRouterConfig
|
||||
): NavigationRouter<any, any, any>
|
||||
|
||||
/**
|
||||
* Stack Router
|
||||
*
|
||||
* @desc from react-navigation/src/routers/StackRouter.js
|
||||
* @param routeConfigs
|
||||
* @param config
|
||||
*/
|
||||
export function StackRouter(
|
||||
routeConfigs: NavigationRouteConfigMap,
|
||||
config: NavigationTabRouterConfig
|
||||
): NavigationRouter<any, any, any>
|
||||
/**
|
||||
* END MANUAL DEFINITIONS OUTSIDE OF TYPEDEFINITION.JS
|
||||
*/
|
||||
|
||||
Vendored
+34
@@ -0,0 +1,34 @@
|
||||
// Type definitions for react-swipe 5.0
|
||||
// Project: https://github.com/voronianski/react-swipe
|
||||
// Definitions by: Deividas Bakanas <https://github.com/DeividasBakanas>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.3
|
||||
|
||||
/// <reference types="swipe" />
|
||||
|
||||
import * as React from "react";
|
||||
|
||||
declare class ReactSwipe extends React.Component<ReactSwipe.Props, {}> {
|
||||
prev(): void;
|
||||
next(): void;
|
||||
getPos(): number;
|
||||
getNumSlides(): number;
|
||||
slide(index: number, duration: number): void;
|
||||
}
|
||||
|
||||
declare namespace ReactSwipe {
|
||||
interface Style {
|
||||
container: React.CSSProperties;
|
||||
wrapper: React.CSSProperties;
|
||||
child: React.CSSProperties;
|
||||
}
|
||||
|
||||
interface Props {
|
||||
id?: string;
|
||||
swipeOptions?: SwipeOptions;
|
||||
style?: Style;
|
||||
className?: string;
|
||||
}
|
||||
}
|
||||
|
||||
export = ReactSwipe;
|
||||
@@ -0,0 +1,75 @@
|
||||
import * as React from "react";
|
||||
import * as ReactSwipe from "react-swipe";
|
||||
|
||||
class ReactSwipeTest extends React.PureComponent {
|
||||
private swipeComponent: ReactSwipe | null = null;
|
||||
|
||||
private onPrev: React.MouseEventHandler<HTMLButtonElement> = () => {
|
||||
if (this.swipeComponent != null) {
|
||||
this.swipeComponent.prev();
|
||||
}
|
||||
}
|
||||
|
||||
private onNext: React.MouseEventHandler<HTMLButtonElement> = () => {
|
||||
if (this.swipeComponent != null) {
|
||||
this.swipeComponent.next();
|
||||
}
|
||||
}
|
||||
|
||||
private onSlideToStart: React.MouseEventHandler<HTMLButtonElement> = () => {
|
||||
if (this.swipeComponent != null) {
|
||||
const lastSlide = this.swipeComponent.getNumSlides() - 1;
|
||||
this.swipeComponent.slide(lastSlide, 1000);
|
||||
}
|
||||
}
|
||||
|
||||
private onGetCurrentPosition: React.MouseEventHandler<HTMLButtonElement> = () => {
|
||||
let currentPosition: number;
|
||||
|
||||
if (this.swipeComponent != null) {
|
||||
currentPosition = this.swipeComponent.getPos();
|
||||
} else {
|
||||
currentPosition = 0;
|
||||
}
|
||||
|
||||
alert(currentPosition);
|
||||
}
|
||||
|
||||
render() {
|
||||
const swipeOptions: SwipeOptions = {
|
||||
auto: 12,
|
||||
disableScroll: true,
|
||||
stopPropagation: true
|
||||
};
|
||||
|
||||
const style: ReactSwipe.Style = {
|
||||
child: {
|
||||
backgroundColor: "yellow"
|
||||
},
|
||||
container: {
|
||||
backgroundColor: "green"
|
||||
},
|
||||
wrapper: {
|
||||
backgroundColor: "red"
|
||||
}
|
||||
};
|
||||
|
||||
return <div>
|
||||
<ReactSwipe
|
||||
className="carousel"
|
||||
id="test-carousel"
|
||||
swipeOptions={swipeOptions}
|
||||
style={style}
|
||||
ref={(swipeComponent) => { this.swipeComponent = swipeComponent; }}
|
||||
>
|
||||
<div>PANE 1</div>
|
||||
<div>PANE 2</div>
|
||||
<div>PANE 3</div>
|
||||
</ReactSwipe>
|
||||
<button onClick={this.onPrev}>Prev</button>
|
||||
<button onClick={this.onNext}>Next</button>
|
||||
<button onClick={this.onSlideToStart}>Slide to end</button>
|
||||
<button onClick={this.onGetCurrentPosition}>Get current position</button>
|
||||
</div>;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"lib": [
|
||||
"es6",
|
||||
"dom"
|
||||
],
|
||||
"jsx": "react",
|
||||
"noImplicitAny": true,
|
||||
"noImplicitThis": true,
|
||||
"strictNullChecks": true,
|
||||
"baseUrl": "../",
|
||||
"typeRoots": [
|
||||
"../"
|
||||
],
|
||||
"types": [
|
||||
],
|
||||
"noEmit": true,
|
||||
"forceConsistentCasingInFileNames": true
|
||||
},
|
||||
"files": [
|
||||
"index.d.ts",
|
||||
"react-swipe-tests.tsx"
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
{ "extends": "dtslint/dt.json" }
|
||||
Vendored
+55
@@ -0,0 +1,55 @@
|
||||
// Type definitions for react-tooltip 3.3
|
||||
// Project: https://github.com/wwayne/react-tooltip
|
||||
// Definitions by: Deividas Bakanas <https://github.com/DeividasBakanas>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.3
|
||||
|
||||
import * as React from "react";
|
||||
|
||||
declare class ReactTooltip extends React.Component<ReactTooltip.Props> { }
|
||||
|
||||
declare namespace ReactTooltip {
|
||||
interface Offset {
|
||||
top?: number;
|
||||
right?: number;
|
||||
left?: number;
|
||||
bottom?: number;
|
||||
}
|
||||
|
||||
type ElementEvents = keyof HTMLElementEventMap;
|
||||
type WindowEvents = keyof WindowEventMap;
|
||||
|
||||
type GetContentCallback = () => React.ReactNode;
|
||||
type GetContent = GetContentCallback | [GetContentCallback, number];
|
||||
|
||||
interface Props {
|
||||
id?: string;
|
||||
place?: "top" | "right" | "bottom" | "left";
|
||||
type?: "success" | "warning" | "error" | "info" | "light";
|
||||
effect?: "float" | "solid";
|
||||
event?: ElementEvents;
|
||||
eventOff?: ElementEvents;
|
||||
globalEventOff?: WindowEvents;
|
||||
isCapture?: boolean;
|
||||
offset?: Offset;
|
||||
multiline?: boolean;
|
||||
className?: string;
|
||||
html?: boolean;
|
||||
delayHide?: number;
|
||||
delayShow?: number;
|
||||
insecure?: boolean;
|
||||
border?: boolean;
|
||||
getContent?: GetContent;
|
||||
afterShow?(): void;
|
||||
afterHide?(): void;
|
||||
disable?: boolean;
|
||||
scrollHide?: boolean;
|
||||
resizeHide?: boolean;
|
||||
wrapper?: "div" | "span";
|
||||
role?: string;
|
||||
class?: string;
|
||||
watchWindow?: boolean;
|
||||
}
|
||||
}
|
||||
|
||||
export = ReactTooltip;
|
||||
@@ -0,0 +1,79 @@
|
||||
import * as React from "react";
|
||||
import * as ReactTooltip from "react-tooltip";
|
||||
|
||||
export class ReactTooltipTest extends React.PureComponent {
|
||||
render() {
|
||||
const getContent: ReactTooltip.GetContent = [() => Math.floor(Math.random() * 100), 30];
|
||||
|
||||
return <div>
|
||||
<a data-tip data-for="happyFace"> d(`・∀・)b </a>
|
||||
<ReactTooltip id="happyFace" type="error">
|
||||
<span>Show happy face</span>
|
||||
</ReactTooltip>
|
||||
|
||||
<a data-tip data-for="sadFace"> இдஇ </a>
|
||||
<ReactTooltip id="sadFace" type="warning" effect="solid" afterHide={() => { console.log("afterHide"); }}>
|
||||
<span>Show sad face</span>
|
||||
</ReactTooltip>
|
||||
|
||||
<a data-tip data-for="global"> σ`∀´)σ </a>
|
||||
<a data-tip data-for="global"> (〃∀〃) </a>
|
||||
<ReactTooltip id="global" aria-haspopup="true" role="example" afterShow={() => { console.log("afterShow"); }}>
|
||||
<p>This is a global react component tooltip</p>
|
||||
<p>You can put every thing here</p>
|
||||
<ul>
|
||||
<li>Word</li>
|
||||
<li>Chart</li>
|
||||
<li>Else</li>
|
||||
</ul>
|
||||
</ReactTooltip>
|
||||
|
||||
<a data-tip="custom show" data-event="click focus">( •̀д•́)</a>
|
||||
<ReactTooltip globalEventOff="click" place="top" />
|
||||
|
||||
<a data-tip="custom show and hide" data-event="click" data-event-off="dblclick">( •̀д•́)</a>
|
||||
<ReactTooltip />
|
||||
|
||||
<a data-tip="hover on me will keep the tootlip">(・ω´・ )́)</a>
|
||||
<ReactTooltip class="extraClass" delayHide={1000} effect="solid" />
|
||||
|
||||
<a data-for="getContent" data-tip>=( •̀д•́)</a>
|
||||
<ReactTooltip id="getContent" getContent={getContent} />
|
||||
|
||||
<a data-for="overTime" data-tip>=( •̀д•́)</a>
|
||||
<ReactTooltip id="overTime" wrapper="span" getContent={[() => new Date().toISOString(), 1000]} />
|
||||
|
||||
<a data-tip data-for="happyFace"> d(`・∀・)b </a>
|
||||
<ReactTooltip
|
||||
id="happyFace"
|
||||
type="error"
|
||||
event="click"
|
||||
eventOff="dblclick"
|
||||
globalEventOff="dblclick"
|
||||
isCapture={true}
|
||||
offset={{
|
||||
left: 100,
|
||||
bottom: 30
|
||||
}}
|
||||
multiline={true}
|
||||
className="custom-class-name"
|
||||
html={true}
|
||||
delayShow={100}
|
||||
delayHide={100}
|
||||
insecure={true}
|
||||
disable={false}
|
||||
scrollHide={true}
|
||||
resizeHide={true}
|
||||
watchWindow={true}
|
||||
>
|
||||
<span>
|
||||
Show happy face
|
||||
</span>
|
||||
<br />
|
||||
<span>
|
||||
Show happy face
|
||||
</span>
|
||||
</ReactTooltip>
|
||||
</div>;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"lib": [
|
||||
"es6",
|
||||
"dom",
|
||||
"dom.iterable"
|
||||
],
|
||||
"jsx": "react",
|
||||
"noImplicitAny": true,
|
||||
"noImplicitThis": true,
|
||||
"strictNullChecks": true,
|
||||
"baseUrl": "../",
|
||||
"typeRoots": [
|
||||
"../"
|
||||
],
|
||||
"types": [],
|
||||
"noEmit": true,
|
||||
"forceConsistentCasingInFileNames": true
|
||||
},
|
||||
"files": [
|
||||
"index.d.ts",
|
||||
"react-tooltip-tests.tsx"
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
{ "extends": "dtslint/dt.json" }
|
||||
Vendored
+1
-1
@@ -197,7 +197,7 @@ declare namespace send {
|
||||
/**
|
||||
* Pipe to `res`.
|
||||
*/
|
||||
pipe(res: stream.Writable): stream.Writable;
|
||||
pipe<T extends NodeJS.WritableStream>(res: T): T;
|
||||
|
||||
/**
|
||||
* Transfer `path`.
|
||||
|
||||
Vendored
+5
@@ -1353,6 +1353,11 @@ declare namespace sequelize {
|
||||
*/
|
||||
otherKey?: string | AssociationForeignKeyOptions;
|
||||
|
||||
/**
|
||||
* Should the join model have timestamps
|
||||
*/
|
||||
timestamps?: boolean;
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Vendored
+6
@@ -193,6 +193,10 @@ interface SwiperOptions {
|
||||
onLazyImageLoad?(swiper: Swiper, slide: any, image: any): void;
|
||||
onLazyImageReady?(swiper: Swiper, slide: any, image: any): void;
|
||||
onPaginationRendered?(swiper: Swiper, paginationContainer: any): void;
|
||||
onScroll?(swiper: Swiper, event: Event): void;
|
||||
onBeforeResize?(swiper: Swiper): void;
|
||||
onAfterResize?(swiper: Swiper): void;
|
||||
onKeyPress?(swiper: Swiper, kc: any): void;
|
||||
|
||||
// Namespace
|
||||
slideClass?: string;
|
||||
@@ -237,6 +241,8 @@ declare class Swiper {
|
||||
height: number;
|
||||
params: any;
|
||||
positions: any;
|
||||
wrapper: any;
|
||||
virtualSize: number;
|
||||
|
||||
// Feature detection
|
||||
support: {
|
||||
|
||||
Reference in New Issue
Block a user