, {}>
function test_find() {
elementWrapper = cheerioWrapper.find('.selector');
diff --git a/enzyme/index.d.ts b/enzyme/index.d.ts
index 3966e1cb14..5d3b55ed0b 100644
--- a/enzyme/index.d.ts
+++ b/enzyme/index.d.ts
@@ -29,7 +29,7 @@ interface CommonWrapper {
*/
find(component: ComponentClass): CommonWrapper;
find(statelessComponent: StatelessComponent): CommonWrapper;
- find(selector: string): CommonWrapper;
+ find(selector: string): CommonWrapper, any>;
/**
* Finds every node in the render tree that returns true for the provided predicate function.
@@ -43,7 +43,7 @@ interface CommonWrapper {
*/
filter(component: ComponentClass): CommonWrapper;
filter(statelessComponent: StatelessComponent): CommonWrapper;
- filter(selector: string): CommonWrapper;
+ filter(selector: string): CommonWrapper, any>;
/**
* Returns a new wrapper with only the nodes of the current wrapper that, when passed into the provided predicate function, return true.
@@ -83,7 +83,7 @@ interface CommonWrapper {
*/
children(component: ComponentClass): CommonWrapper;
children(statelessComponent: StatelessComponent): CommonWrapper;
- children(selector: string): CommonWrapper;
+ children(selector: string): CommonWrapper, any>;
children(): CommonWrapper;
/**
@@ -95,7 +95,7 @@ interface CommonWrapper {
*/
parents(component: ComponentClass): CommonWrapper;
parents(statelessComponent: StatelessComponent): CommonWrapper;
- parents(selector: string): CommonWrapper;
+ parents(selector: string): CommonWrapper, any>;
parents(): CommonWrapper;
/**
@@ -112,7 +112,7 @@ interface CommonWrapper {
*/
closest(component: ComponentClass): CommonWrapper;
closest(statelessComponent: StatelessComponent): CommonWrapper;
- closest(selector: string): CommonWrapper;
+ closest(selector: string): CommonWrapper, any>;
/**
* Returns a string of the rendered text of the current render tree. This function should be looked at with
@@ -320,7 +320,7 @@ export interface ShallowWrapper extends CommonWrapper
{
*/
find(component: ComponentClass): ShallowWrapper;
find(statelessComponent: (props: P2) => JSX.Element): ShallowWrapper;
- find(selector: string): ShallowWrapper;
+ find(selector: string): ShallowWrapper, any>;
/**
* Removes nodes in the current wrapper that do not match the provided selector.
@@ -328,7 +328,7 @@ export interface ShallowWrapper extends CommonWrapper
{
*/
filter(component: ComponentClass): ShallowWrapper;
filter(statelessComponent: StatelessComponent): ShallowWrapper;
- filter(selector: string): ShallowWrapper;
+ filter(selector: string): ShallowWrapper, any>;
/**
* Finds every node in the render tree that returns true for the provided predicate function.
@@ -343,7 +343,7 @@ export interface ShallowWrapper extends CommonWrapper
{
*/
children(component: ComponentClass): ShallowWrapper;
children(statelessComponent: StatelessComponent): ShallowWrapper;
- children(selector: string): ShallowWrapper;
+ children(selector: string): ShallowWrapper, any>;
children(): ShallowWrapper;
/**
@@ -355,7 +355,7 @@ export interface ShallowWrapper extends CommonWrapper
{
*/
parents(component: ComponentClass): ShallowWrapper;
parents(statelessComponent: StatelessComponent): ShallowWrapper;
- parents(selector: string): ShallowWrapper;
+ parents(selector: string): ShallowWrapper, any>;
parents(): ShallowWrapper;
/**
@@ -367,7 +367,7 @@ export interface ShallowWrapper extends CommonWrapper
{
*/
closest(component: ComponentClass): ShallowWrapper;
closest(statelessComponent: StatelessComponent): ShallowWrapper;
- closest(selector: string): ShallowWrapper;
+ closest(selector: string): ShallowWrapper, any>;
/**
* Returns a wrapper with the direct parent of the node in the current wrapper.
diff --git a/eonasdan-bootstrap-datetimepicker/eonasdan-bootstrap-datetimepicker-tests.ts b/eonasdan-bootstrap-datetimepicker/eonasdan-bootstrap-datetimepicker-tests.ts
index d84c6cd5a6..bf66b7b657 100644
--- a/eonasdan-bootstrap-datetimepicker/eonasdan-bootstrap-datetimepicker-tests.ts
+++ b/eonasdan-bootstrap-datetimepicker/eonasdan-bootstrap-datetimepicker-tests.ts
@@ -1,5 +1,3 @@
-import * as moment from 'moment';
-
// Minimum Setup
$("#datetimepicker1").datetimepicker();
diff --git a/falcor/falcor-tests.ts b/falcor/falcor-tests.ts
index 35cf7810ba..4fdba89022 100644
--- a/falcor/falcor-tests.ts
+++ b/falcor/falcor-tests.ts
@@ -1,5 +1,3 @@
-
-
import falcor = require('falcor');
let dataSource: falcor.DataSource;
@@ -58,7 +56,7 @@ const model = new falcor.Model({
model.get('items[0].name');
model.get(['items', 0, 'name']);
model.get(['items', {from: 0, to: 1}, 'name']);
-model.get(['items', {from: 0, length: 2, hoge: 3}, 'name']);
+model.get(['items', {from: 0, length: 2 }, 'name']);
model.get('items[0].name', 'items[1].name');
model.set({path: 'items[0].name', value: 'ITEM 01'}, {path: ['items', 1, 'name'], value: 'ITEM 27'});
diff --git a/filewriter/index.d.ts b/filewriter/index.d.ts
index e16dc97792..376d94b481 100644
--- a/filewriter/index.d.ts
+++ b/filewriter/index.d.ts
@@ -1,7 +1,7 @@
// Type definitions for File API: Writer
// Project: http://www.w3.org/TR/file-writer-api/
-// Definitions by: Kon
-// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
+// Definitions by: Kon
+// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/**
* This interface provides methods to monitor the asynchronous writing of blobs to disk using progress events [PROGRESS-EVENTS] and event handler attributes.
@@ -21,25 +21,25 @@ interface FileSaver extends EventTarget {
* Terminate this algorithm.
*
*/
- abort():void;
+ abort(): void;
/**
* The blob is being written.
* @readonly
*/
- INIT:number;
+ INIT: number;
/**
* The object has been constructed, but there is no pending write.
* @readonly
*/
- WRITING:number;
+ WRITING: number;
/**
* The entire Blob has been written to the file, an error occurred during the write, or the write was aborted using abort(). The FileSaver is no longer writing the blob.
* @readonly
*/
- DONE:number;
+ DONE: number;
/**
* The FileSaver object can be in one of 3 states. The readyState attribute, on getting, must return the current state, which must be one of the following values:
@@ -50,43 +50,43 @@ interface FileSaver extends EventTarget {
*
* @readonly
*/
- readyState:number;
+ readyState: number;
/**
* The last error that occurred on the FileSaver.
- * @readonly
+ * @readonly
*/
- error:DOMError;
+ error: Error;
/**
* Handler for writestart events
*/
- onwritestart:Function;
+ onwritestart: (event: ProgressEvent) => void;
/**
* Handler for progress events.
*/
- onprogress:Function;
+ onprogress: (event: ProgressEvent) => void;
/**
* Handler for write events.
*/
- onwrite:Function;
+ onwrite: (event: ProgressEvent) => void;
/**
* Handler for abort events.
*/
- onabort:Function;
+ onabort: (event: ProgressEvent) => void;
/**
* Handler for error events.
*/
- onerror:Function;
+ onerror: (event: ProgressEvent) => void;
/**
* Handler for writeend events.
*/
- onwriteend:Function;
+ onwriteend: (event: ProgressEvent) => void;
}
declare var FileSaver: {
@@ -113,7 +113,7 @@ interface FileWriter extends FileSaver {
length:number;
/**
- * Write the supplied data to the file at position.
+ * Write the supplied data to the file at position.
* @param data The blob to write.
*/
write(data:Blob):void;
@@ -171,6 +171,6 @@ interface FileWriterSync {
*
*
* @param size The size to which the length of the file is to be adjusted, measured in bytes.
- */
+ */
truncate(size:number):void;
}
diff --git a/fixed-data-table/fixed-data-table-tests.tsx b/fixed-data-table/fixed-data-table-tests.tsx
index 918ef29350..7dfac22230 100644
--- a/fixed-data-table/fixed-data-table-tests.tsx
+++ b/fixed-data-table/fixed-data-table-tests.tsx
@@ -174,11 +174,11 @@ class MyTable5 extends React.Component<{}, {}> {
onScrollStart={(x: number, y: number) => {}}
onScrollEnd={(x: number, y: number) => {}}
onContentHeightChange={(newHeight: number) => {}}
- onRowClick={(event: React.SyntheticEvent, rowIndex: number) => {}}
- onRowDoubleClick={(event: React.SyntheticEvent, rowIndex: number) => {}}
- onRowMouseDown={(event: React.SyntheticEvent, rowIndex: number) => {}}
- onRowMouseEnter={(event: React.SyntheticEvent, rowIndex: number) => {}}
- onRowMouseLeave={(event: React.SyntheticEvent, rowIndex: number) => {}}
+ onRowClick={(event: React.SyntheticEvent, rowIndex: number) => {}}
+ onRowDoubleClick={(event: React.SyntheticEvent, rowIndex: number) => {}}
+ onRowMouseDown={(event: React.SyntheticEvent, rowIndex: number) => {}}
+ onRowMouseEnter={(event: React.SyntheticEvent, rowIndex: number) => {}}
+ onRowMouseLeave={(event: React.SyntheticEvent, rowIndex: number) => {}}
onColumnResizeEndCallback={(newColumnWidth: number, columnKey: string) => {}}>
// add columns
diff --git a/fixed-data-table/index.d.ts b/fixed-data-table/index.d.ts
index d7eba851c1..cb5809bf5a 100644
--- a/fixed-data-table/index.d.ts
+++ b/fixed-data-table/index.d.ts
@@ -212,30 +212,30 @@ declare namespace FixedDataTable {
/**
* Callback that is called when a row is clicked.
*/
- onRowClick?: (event: React.SyntheticEvent, rowIndex: number) => void;
+ onRowClick?: (event: React.SyntheticEvent, rowIndex: number) => void;
/**
* Callback that is called when a row is double clicked.
*/
- onRowDoubleClick?: (event: React.SyntheticEvent, rowIndex: number) => void;
+ onRowDoubleClick?: (event: React.SyntheticEvent, rowIndex: number) => void;
/**
* Callback that is called when a mouse-down event happens
* on a row.
*/
- onRowMouseDown?: (event: React.SyntheticEvent, rowIndex: number) => void;
+ onRowMouseDown?: (event: React.SyntheticEvent, rowIndex: number) => void;
/**
* Callback that is called when a mouse-enter event happens
* on a row.
*/
- onRowMouseEnter?: (event: React.SyntheticEvent, rowIndex: number) => void;
+ onRowMouseEnter?: (event: React.SyntheticEvent, rowIndex: number) => void;
/**
* Callback that is called when a mouse-leave event happens
* on a row.
*/
- onRowMouseLeave?: (event: React.SyntheticEvent, rowIndex: number) => void;
+ onRowMouseLeave?: (event: React.SyntheticEvent, rowIndex: number) => void;
/**
* Callback that is called when resizer has been released
@@ -464,7 +464,7 @@ declare namespace FixedDataTable {
* />
* );
*/
- export interface CellProps extends React.HTMLAttributes {
+ export interface CellProps extends React.HTMLAttributes| {
/**
* The row index of the cell.
*/
diff --git a/google-apps-script/index.d.ts b/google-apps-script/index.d.ts
index 9f60a23b2a..76a3bbec61 100644
--- a/google-apps-script/index.d.ts
+++ b/google-apps-script/index.d.ts
@@ -1,4 +1,8 @@
// Type definitions for google-apps-script
+// Project: https://developers.google.com/apps-script/
+// Definitions by: motemen
+// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
+
///
///
diff --git a/highcharts-ng/highcharts-ng-tests.ts b/highcharts-ng/highcharts-ng-tests.ts
index 925d398fb5..0bf559061b 100644
--- a/highcharts-ng/highcharts-ng-tests.ts
+++ b/highcharts-ng/highcharts-ng-tests.ts
@@ -1,5 +1,4 @@
-
-///
+///
var app = angular.module('app', ['highcharts-ng']);
diff --git a/highcharts/index.d.ts b/highcharts/index.d.ts
index 16151be327..b3dd4c6f28 100644
--- a/highcharts/index.d.ts
+++ b/highcharts/index.d.ts
@@ -724,6 +724,9 @@ interface HighchartsAxisOptions {
* @since 1.2.0
*/
startOnTick?: boolean;
+
+ stops?: [number, string][];
+
/**
* The amount of ticks to draw on the axis. This opens up for aligning the ticks of multiple charts or panes within
* a chart. This option overrides the tickPixelInterval option.
@@ -5456,6 +5459,7 @@ interface HighchartsOptions {
* lineWidth is specified in plotOptions.series, an individual lineWidth can be specified for each series.
*/
series?: HighchartsIndividualSeriesOptions[];
+
/**
* The chart's subtitle
*/
@@ -5478,6 +5482,7 @@ interface HighchartsOptions {
* horizontal axis. In case of multiple axes, the yAxis node is an array of configuration objects.
*/
yAxis?: HighchartsAxisOptions | HighchartsAxisOptions[];
+
}
interface HighchartsGlobalOptions extends HighchartsOptions {
diff --git a/js-data-angular/js-data-angular-tests.ts b/js-data-angular/js-data-angular-tests.ts
index 4e0293f4a1..13aff12d37 100644
--- a/js-data-angular/js-data-angular-tests.ts
+++ b/js-data-angular/js-data-angular-tests.ts
@@ -1,4 +1,6 @@
import * as JSData from 'js-data';
+import * as ng from 'angular';
+import * as angular from 'angular';
interface IUser {
diff --git a/jsnox/index.d.ts b/jsnox/index.d.ts
index 118ea364e7..f49cef58c4 100644
--- a/jsnox/index.d.ts
+++ b/jsnox/index.d.ts
@@ -40,7 +40,7 @@ interface CreateElement {
* @param children A single React node (string or ReactElement) or array of nodes.
* Note that unlike with React itself, multiple children must be placed into an array.
*/
- (specString: string, props?: React.HTMLAttributes, children?: React.ReactNode): React.DOMElement
+ (specString: string, props?: React.HTMLAttributes<{}>, children?: React.ReactNode): React.DOMElement
/**
diff --git a/jsnox/jsnox-tests.ts b/jsnox/jsnox-tests.ts
index 05c8a81cb4..5d7440e315 100644
--- a/jsnox/jsnox-tests.ts
+++ b/jsnox/jsnox-tests.ts
@@ -15,7 +15,7 @@ var Person = React.createClass({
var PersonTag = React.createFactory(Person);
-var clickHandler: React.MouseEventHandler
+var clickHandler: React.MouseEventHandler<{}>;
// Tests with spec string
function spec_string () {
diff --git a/json-patch/json-patch-tests.ts b/json-patch/json-patch-tests.ts
index b57f1d6fe0..3c3ff51f22 100644
--- a/json-patch/json-patch-tests.ts
+++ b/json-patch/json-patch-tests.ts
@@ -1,5 +1,4 @@
-
-
+import jsonpatch = require("json-patch");
import jp = require("json-patch");
// Add property, result: {foo: 'bar'}
diff --git a/karma-coverage/index.d.ts b/karma-coverage/index.d.ts
index dd6a382239..20ee56f43c 100644
--- a/karma-coverage/index.d.ts
+++ b/karma-coverage/index.d.ts
@@ -29,6 +29,7 @@ declare namespace karmaCoverage {
includeAllSources?: boolean;
sourceStore?: istanbul.Store;
instrumenter?: any;
+ [moreSettings: string]: any;
}
}
diff --git a/karma-coverage/karma-coverage-tests.ts b/karma-coverage/karma-coverage-tests.ts
index a59ca7cdea..4f0b187a7a 100644
--- a/karma-coverage/karma-coverage-tests.ts
+++ b/karma-coverage/karma-coverage-tests.ts
@@ -1,7 +1,5 @@
-
import * as karma from 'karma-coverage';
-
// See https://github.com/karma-runner/karma-coverage/blob/v0.5.3/README.md#basic
module.exports = function(config: karma.Config) {
config.set({
diff --git a/material-ui/index.d.ts b/material-ui/index.d.ts
index 00080d39a6..84b42a1b9c 100644
--- a/material-ui/index.d.ts
+++ b/material-ui/index.d.ts
@@ -103,7 +103,7 @@ declare namespace __MaterialUI {
}
// What's common between React.TouchEvent and React.MouseEvent
- interface TouchTapEvent extends React.SyntheticEvent {
+ interface TouchTapEvent extends React.SyntheticEvent<{}> {
altKey: boolean;
ctrlKey: boolean;
getModifierState(key: string): boolean;
@@ -554,11 +554,11 @@ declare namespace __MaterialUI {
focusRippleOpacity?: number;
keyboardFocused?: boolean;
linkButton?: boolean;
- onBlur?: React.FocusEventHandler;
- onFocus?: React.FocusEventHandler;
- onKeyboardFocus?: (e: React.FocusEvent, isKeyboardFocused: boolean) => void;
- onKeyDown?: React.KeyboardEventHandler;
- onKeyUp?: React.KeyboardEventHandler;
+ onBlur?: React.FocusEventHandler<{}>;
+ onFocus?: React.FocusEventHandler<{}>;
+ onKeyboardFocus?: (e: React.FocusEvent<{}>, isKeyboardFocused: boolean) => void;
+ onKeyDown?: React.KeyboardEventHandler<{}>;
+ onKeyUp?: React.KeyboardEventHandler<{}>;
onTouchTap?: TouchTapEventHandler;
style?: React.CSSProperties;
tabIndex?: number;
@@ -567,7 +567,7 @@ declare namespace __MaterialUI {
type?: string;
}
- interface EnhancedButtonProps extends React.HTMLAttributes, SharedEnhancedButtonProps {
+ interface EnhancedButtonProps extends React.HTMLAttributes<{}>, SharedEnhancedButtonProps {
// container element, , or (if disabled link) is the element that get the 'other' properties
containerElement?: React.ReactNode | string;
disabled?: boolean;
@@ -575,7 +575,7 @@ declare namespace __MaterialUI {
export class EnhancedButton extends React.Component {
}
- interface FlatButtonProps extends React.DOMAttributes, SharedEnhancedButtonProps {
+ interface FlatButtonProps extends React.DOMAttributes<{}>, SharedEnhancedButtonProps {
// is the element that get the 'other' properties
backgroundColor?: string;
disabled?: boolean;
@@ -586,10 +586,10 @@ declare namespace __MaterialUI {
labelPosition?: string; // oneOf(['left', 'right'])
labelStyle?: React.CSSProperties;
linkButton?: boolean;
- onKeyboardFocus?: (e: React.FocusEvent, isKeyboardFocused: boolean) => void;
- onMouseEnter?: React.MouseEventHandler;
- onMouseLeave?: React.MouseEventHandler;
- onTouchStart?: React.TouchEventHandler;
+ onKeyboardFocus?: (e: React.FocusEvent<{}>, isKeyboardFocused: boolean) => void;
+ onMouseEnter?: React.MouseEventHandler<{}>;
+ onMouseLeave?: React.MouseEventHandler<{}>;
+ onTouchStart?: React.TouchEventHandler<{}>;
primary?: boolean;
rippleColor?: string;
secondary?: boolean;
@@ -613,12 +613,12 @@ declare namespace __MaterialUI {
labelPosition?: string; // oneOf(['left', 'right'])
labelStyle?: React.CSSProperties;
linkButton?: boolean;
- onMouseDown?: React.MouseEventHandler;
- onMouseEnter?: React.MouseEventHandler;
- onMouseLeave?: React.MouseEventHandler;
- onMouseUp?: React.MouseEventHandler;
- onTouchEnd?: React.TouchEventHandler;
- onTouchStart?: React.TouchEventHandler;
+ onMouseDown?: React.MouseEventHandler<{}>;
+ onMouseEnter?: React.MouseEventHandler<{}>;
+ onMouseLeave?: React.MouseEventHandler<{}>;
+ onMouseUp?: React.MouseEventHandler<{}>;
+ onTouchEnd?: React.TouchEventHandler<{}>;
+ onTouchStart?: React.TouchEventHandler<{}>;
primary?: boolean;
rippleStyle?: React.CSSProperties;
secondary?: boolean;
@@ -627,7 +627,7 @@ declare namespace __MaterialUI {
export class RaisedButton extends React.Component {
}
- interface FloatingActionButtonProps extends React.HTMLAttributes, SharedEnhancedButtonProps {
+ interface FloatingActionButtonProps extends React.HTMLAttributes<{}>, SharedEnhancedButtonProps {
// is the element that get the 'other' properties
backgroundColor?: string;
className?: string;
@@ -638,12 +638,12 @@ declare namespace __MaterialUI {
iconStyle?: React.CSSProperties;
linkButton?: boolean;
mini?: boolean;
- onMouseDown?: React.MouseEventHandler;
- onMouseEnter?: React.MouseEventHandler;
- onMouseLeave?: React.MouseEventHandler;
- onMouseUp?: React.MouseEventHandler;
- onTouchEnd?: React.TouchEventHandler;
- onTouchStart?: React.TouchEventHandler;
+ onMouseDown?: React.MouseEventHandler<{}>;
+ onMouseEnter?: React.MouseEventHandler<{}>;
+ onMouseLeave?: React.MouseEventHandler<{}>;
+ onMouseUp?: React.MouseEventHandler<{}>;
+ onTouchEnd?: React.TouchEventHandler<{}>;
+ onTouchStart?: React.TouchEventHandler<{}>;
secondary?: boolean;
style?: React.CSSProperties;
zDepth?: number;
@@ -651,17 +651,17 @@ declare namespace __MaterialUI {
export class FloatingActionButton extends React.Component {
}
- interface IconButtonProps extends React.HTMLAttributes, SharedEnhancedButtonProps {
+ interface IconButtonProps extends React.HTMLAttributes<{}>, SharedEnhancedButtonProps {
// is the element that get the 'other' properties
className?: string;
disabled?: boolean;
iconClassName?: string;
iconStyle?: React.CSSProperties;
- onBlur?: React.FocusEventHandler;
- onFocus?: React.FocusEventHandler;
- onKeyboardFocus?: (e: React.FocusEvent, isKeyboardFocused: boolean) => void;
- onMouseEnter?: React.MouseEventHandler;
- onMouseLeave?: React.MouseEventHandler;
+ onBlur?: React.FocusEventHandler<{}>;
+ onFocus?: React.FocusEventHandler<{}>;
+ onKeyboardFocus?: (e: React.FocusEvent<{}>, isKeyboardFocused: boolean) => void;
+ onMouseEnter?: React.MouseEventHandler<{}>;
+ onMouseLeave?: React.MouseEventHandler<{}>;
style?: React.CSSProperties;
tooltip?: string;
tooltipPosition?: string;
@@ -773,9 +773,9 @@ declare namespace __MaterialUI {
mode?: string;
onChange?: (e: any, date: Date) => void; // e is always null
onDismiss?: () => void;
- onFocus?: React.FocusEventHandler;
+ onFocus?: React.FocusEventHandler<{}>;
onShow?: () => void;
- onTouchTap?: React.TouchEventHandler;
+ onTouchTap?: React.TouchEventHandler<{}>;
shouldDisableDate?: (day: Date) => boolean;
/** @deprecated use noFilter instead */
showYearSelector?: boolean;
@@ -797,8 +797,8 @@ declare namespace __MaterialUI {
hintText?: React.ReactNode;
id?: string;
inputStyle?: React.CSSProperties;
- onBlur?: React.FocusEventHandler;
- onKeyDown?: React.KeyboardEventHandler;
+ onBlur?: React.FocusEventHandler<{}>;
+ onKeyDown?: React.KeyboardEventHandler<{}>;
rows?: number,
rowsMax?: number,
type?: string;
@@ -837,12 +837,12 @@ declare namespace __MaterialUI {
/** @deprecated use array of components instead */
export interface DialogAction {
id?: string;
- onClick?: React.MouseEventHandler;
+ onClick?: React.MouseEventHandler<{}>;
onTouchTap?: TouchTapEventHandler;
ref?: string;
text: string;
}
- interface DialogProps extends React.DOMAttributes, React.Props |