From a16ca5d33c4447e5e6fedd92959fcace9dfae418 Mon Sep 17 00:00:00 2001 From: Karol Janyst Date: Fri, 4 Aug 2017 16:57:37 +0900 Subject: [PATCH 001/103] Quick fix exports to match transpiled code of the library --- .../react-transition-group/CSSTransition.d.ts | 66 ++++++++++--------- .../TransitionGroup.d.ts | 23 ++++--- types/react-transition-group/index.d.ts | 4 +- .../react-transition-group-tests.tsx | 5 +- 4 files changed, 52 insertions(+), 46 deletions(-) diff --git a/types/react-transition-group/CSSTransition.d.ts b/types/react-transition-group/CSSTransition.d.ts index 67b869edf6..259857ca3e 100644 --- a/types/react-transition-group/CSSTransition.d.ts +++ b/types/react-transition-group/CSSTransition.d.ts @@ -1,38 +1,40 @@ import { Component } from "react"; import { TransitionProps } from "react-transition-group/Transition"; -export interface CSSTransitionClassNames { - appear?: string; - appearActive?: string; - enter?: string; - enterActive?: string; - exit?: string; - exitActive?: string; +declare namespace CSSTransition { + interface CSSTransitionClassNames { + appear?: string; + appearActive?: string; + enter?: string; + enterActive?: string; + exit?: string; + exitActive?: string; + } + + /** + * The animation classNames applied to the component as it enters or exits. + * A single name can be provided and it will be suffixed for each stage: e.g. + * + * `classNames="fade"` applies `fade-enter`, `fade-enter-active`, + * `fade-exit`, `fade-exit-active`, `fade-appear`, and `fade-appear-active`. + * Each individual classNames can also be specified independently like: + * + * ```js + * classNames={{ + * appear: 'my-appear', + * appearActive: 'my-active-appear', + * enter: 'my-enter', + * enterActive: 'my-active-enter', + * exit: 'my-exit', + * exitActive: 'my-active-exit', + * }} + * ``` + */ + interface CSSTransitionProps extends TransitionProps { + classNames: string | CSSTransitionClassNames; + } } -/** - * The animation classNames applied to the component as it enters or exits. - * A single name can be provided and it will be suffixed for each stage: e.g. - * - * `classNames="fade"` applies `fade-enter`, `fade-enter-active`, - * `fade-exit`, `fade-exit-active`, `fade-appear`, and `fade-appear-active`. - * Each individual classNames can also be specified independently like: - * - * ```js - * classNames={{ - * appear: 'my-appear', - * appearActive: 'my-active-appear', - * enter: 'my-enter', - * enterActive: 'my-active-enter', - * exit: 'my-exit', - * exitActive: 'my-active-exit', - * }} - * ``` - */ -export interface CSSTransitionProps extends TransitionProps { - classNames: string | CSSTransitionClassNames; -} +declare class CSSTransition extends Component {} -declare class CSSTransition extends Component {} - -export default CSSTransition; +export = CSSTransition; diff --git a/types/react-transition-group/TransitionGroup.d.ts b/types/react-transition-group/TransitionGroup.d.ts index 3f04332bc8..801ed2acaf 100644 --- a/types/react-transition-group/TransitionGroup.d.ts +++ b/types/react-transition-group/TransitionGroup.d.ts @@ -1,18 +1,21 @@ import { Component, ReactType, HTMLProps, ReactElement } from "react"; import { TransitionActions, TransitionProps } from "react-transition-group/Transition"; -export interface IntrinsicTransitionGroupProps extends TransitionActions { - component?: T; -} +declare namespace TransitionGroup { + interface IntrinsicTransitionGroupProps extends TransitionActions { + component?: T; + } -export interface ComponentTransitionGroupProps extends TransitionActions { - component: T; -} + interface ComponentTransitionGroupProps extends TransitionActions { + component: T; + } -export type TransitionGroupProps = - (IntrinsicTransitionGroupProps & JSX.IntrinsicElements[T]) | (ComponentTransitionGroupProps) & { + type TransitionGroupProps = + (IntrinsicTransitionGroupProps & JSX.IntrinsicElements[T]) | (ComponentTransitionGroupProps) & { children?: ReactElement | Array>; + childFactory?(child: ReactElement): ReactElement; }; +} /** * The `` component manages a set of `` components @@ -71,6 +74,6 @@ export type TransitionGroupProps {} +declare class TransitionGroup extends Component {} -export default TransitionGroup; +export = TransitionGroup; diff --git a/types/react-transition-group/index.d.ts b/types/react-transition-group/index.d.ts index 35c130595c..7150ea56ad 100644 --- a/types/react-transition-group/index.d.ts +++ b/types/react-transition-group/index.d.ts @@ -4,9 +4,9 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 -import CSSTransition from "react-transition-group/CSSTransition"; +import * as CSSTransition from "react-transition-group/CSSTransition"; import Transition from "react-transition-group/Transition"; -import TransitionGroup from "react-transition-group/TransitionGroup"; +import * as TransitionGroup from "react-transition-group/TransitionGroup"; export = { CSSTransition, diff --git a/types/react-transition-group/react-transition-group-tests.tsx b/types/react-transition-group/react-transition-group-tests.tsx index 333ab59810..48bfdd655b 100644 --- a/types/react-transition-group/react-transition-group-tests.tsx +++ b/types/react-transition-group/react-transition-group-tests.tsx @@ -1,7 +1,7 @@ import * as React from "react"; -import CSSTransition from "react-transition-group/CSSTransition"; +import * as CSSTransition from "react-transition-group/CSSTransition"; import Transition from "react-transition-group/Transition"; -import TransitionGroup from "react-transition-group/TransitionGroup"; +import * as TransitionGroup from "react-transition-group/TransitionGroup"; import Components = require("react-transition-group"); const Test: React.StatelessComponent = () => { @@ -17,6 +17,7 @@ const Test: React.StatelessComponent = () => { ) => child } > Date: Tue, 8 Aug 2017 19:41:28 -0400 Subject: [PATCH 002/103] Add htmlbars-inline-precompile definition. --- .../htmlbars-inline-precompile-tests.ts | 3 +++ types/htmlbars-inline-precompile/index.d.ts | 13 +++++++++++ .../htmlbars-inline-precompile/tsconfig.json | 22 +++++++++++++++++++ types/htmlbars-inline-precompile/tslint.json | 1 + 4 files changed, 39 insertions(+) create mode 100644 types/htmlbars-inline-precompile/htmlbars-inline-precompile-tests.ts create mode 100644 types/htmlbars-inline-precompile/index.d.ts create mode 100644 types/htmlbars-inline-precompile/tsconfig.json create mode 100644 types/htmlbars-inline-precompile/tslint.json diff --git a/types/htmlbars-inline-precompile/htmlbars-inline-precompile-tests.ts b/types/htmlbars-inline-precompile/htmlbars-inline-precompile-tests.ts new file mode 100644 index 0000000000..1fa13cd72f --- /dev/null +++ b/types/htmlbars-inline-precompile/htmlbars-inline-precompile-tests.ts @@ -0,0 +1,3 @@ +import hbs from 'htmlbars-inline-precompile'; + +hbs`this is allowed`; diff --git a/types/htmlbars-inline-precompile/index.d.ts b/types/htmlbars-inline-precompile/index.d.ts new file mode 100644 index 0000000000..f8bf17f3ea --- /dev/null +++ b/types/htmlbars-inline-precompile/index.d.ts @@ -0,0 +1,13 @@ +// Type definitions for htmlbars-inline-precompile 1.0 +// Project: ember-cli-htmlbars-inline-precompile +// Definitions by: Chris Krycho +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +// This is a bit of a funky one: it's from a [Babel plugin], but is exported for +// Ember applications as the module `"htmlbars-incline-precompile"`. It acts +// like a tagged string from the perspective of consumers, but is actually an +// AST transformation which generates a function as its output. +// +// [Babel plugin]: https://github.com/ember-cli/babel-plugin-htmlbars-inline-precompile#babel-plugin-htmlbars-inline-precompile- + +export default function hbs(tagged: TemplateStringsArray): () => {}; diff --git a/types/htmlbars-inline-precompile/tsconfig.json b/types/htmlbars-inline-precompile/tsconfig.json new file mode 100644 index 0000000000..32ad3d22fb --- /dev/null +++ b/types/htmlbars-inline-precompile/tsconfig.json @@ -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", + "htmlbars-inline-precompile-tests.ts" + ] +} diff --git a/types/htmlbars-inline-precompile/tslint.json b/types/htmlbars-inline-precompile/tslint.json new file mode 100644 index 0000000000..3db14f85ea --- /dev/null +++ b/types/htmlbars-inline-precompile/tslint.json @@ -0,0 +1 @@ +{ "extends": "dtslint/dt.json" } From 0527bc3489bd1a4f1e33de059690f1b3551a25dd Mon Sep 17 00:00:00 2001 From: Chris Krycho Date: Tue, 8 Aug 2017 20:18:00 -0400 Subject: [PATCH 003/103] Fix typo in htmlbars-inline-precompile comments. --- types/htmlbars-inline-precompile/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/htmlbars-inline-precompile/index.d.ts b/types/htmlbars-inline-precompile/index.d.ts index f8bf17f3ea..31e21b2576 100644 --- a/types/htmlbars-inline-precompile/index.d.ts +++ b/types/htmlbars-inline-precompile/index.d.ts @@ -4,7 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // This is a bit of a funky one: it's from a [Babel plugin], but is exported for -// Ember applications as the module `"htmlbars-incline-precompile"`. It acts +// Ember applications as the module `"htmlbars-inline-precompile"`. It acts // like a tagged string from the perspective of consumers, but is actually an // AST transformation which generates a function as its output. // From 66f2c7e249c6c7b2734247ab7a32747dfaf6e86e Mon Sep 17 00:00:00 2001 From: Chris Krycho Date: Tue, 8 Aug 2017 20:56:08 -0400 Subject: [PATCH 004/103] Update htmlbars-inline-precompile given Ember `this.render()`. --- .../htmlbars-inline-precompile-tests.ts | 4 +++- types/htmlbars-inline-precompile/index.d.ts | 7 +++++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/types/htmlbars-inline-precompile/htmlbars-inline-precompile-tests.ts b/types/htmlbars-inline-precompile/htmlbars-inline-precompile-tests.ts index 1fa13cd72f..3a8d722db6 100644 --- a/types/htmlbars-inline-precompile/htmlbars-inline-precompile-tests.ts +++ b/types/htmlbars-inline-precompile/htmlbars-inline-precompile-tests.ts @@ -1,3 +1,5 @@ import hbs from 'htmlbars-inline-precompile'; -hbs`this is allowed`; +const likeThisDotRender = (s: string | Array) => {}; + +likeThisDotRender(hbs`this is allowed`); diff --git a/types/htmlbars-inline-precompile/index.d.ts b/types/htmlbars-inline-precompile/index.d.ts index 31e21b2576..db03d2fad1 100644 --- a/types/htmlbars-inline-precompile/index.d.ts +++ b/types/htmlbars-inline-precompile/index.d.ts @@ -6,8 +6,11 @@ // This is a bit of a funky one: it's from a [Babel plugin], but is exported for // Ember applications as the module `"htmlbars-inline-precompile"`. It acts // like a tagged string from the perspective of consumers, but is actually an -// AST transformation which generates a function as its output. +// AST transformation which generates a function as its output. That function in +// turn [generates a string or array of strings][output] to use with the Ember +// testing helper `this.render()`. // // [Babel plugin]: https://github.com/ember-cli/babel-plugin-htmlbars-inline-precompile#babel-plugin-htmlbars-inline-precompile- +// [output]: https://github.com/emberjs/ember-test-helpers/blob/77f9a53da9d8c19a85b3122788caadbcc59274c2/lib/ember-test-helpers/-legacy-overrides.js#L17-L42 -export default function hbs(tagged: TemplateStringsArray): () => {}; +export default function hbs(tagged: TemplateStringsArray): string | Array; From 503c81ae213b63712bec94fc07c0977667cdddf2 Mon Sep 17 00:00:00 2001 From: Chris Krycho Date: Tue, 8 Aug 2017 20:59:01 -0400 Subject: [PATCH 005/103] Fix array lint in htmlbars-inline-precompile. --- .../htmlbars-inline-precompile-tests.ts | 2 +- types/htmlbars-inline-precompile/index.d.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/types/htmlbars-inline-precompile/htmlbars-inline-precompile-tests.ts b/types/htmlbars-inline-precompile/htmlbars-inline-precompile-tests.ts index 3a8d722db6..c8adb26d1a 100644 --- a/types/htmlbars-inline-precompile/htmlbars-inline-precompile-tests.ts +++ b/types/htmlbars-inline-precompile/htmlbars-inline-precompile-tests.ts @@ -1,5 +1,5 @@ import hbs from 'htmlbars-inline-precompile'; -const likeThisDotRender = (s: string | Array) => {}; +const likeThisDotRender = (s: string | string[]) => {}; likeThisDotRender(hbs`this is allowed`); diff --git a/types/htmlbars-inline-precompile/index.d.ts b/types/htmlbars-inline-precompile/index.d.ts index db03d2fad1..21bbe63545 100644 --- a/types/htmlbars-inline-precompile/index.d.ts +++ b/types/htmlbars-inline-precompile/index.d.ts @@ -13,4 +13,4 @@ // [Babel plugin]: https://github.com/ember-cli/babel-plugin-htmlbars-inline-precompile#babel-plugin-htmlbars-inline-precompile- // [output]: https://github.com/emberjs/ember-test-helpers/blob/77f9a53da9d8c19a85b3122788caadbcc59274c2/lib/ember-test-helpers/-legacy-overrides.js#L17-L42 -export default function hbs(tagged: TemplateStringsArray): string | Array; +export default function hbs(tagged: TemplateStringsArray): string | string[]; From 1d8a7055cf825e3a2b63147f4186e359e5b23acd Mon Sep 17 00:00:00 2001 From: Egor Shulga Date: Wed, 9 Aug 2017 15:03:53 +0300 Subject: [PATCH 006/103] add withRouter decorator --- types/react-router/index.d.ts | 2 ++ .../react-router/test/WithRouterDecorator.tsx | 19 +++++++++++++++++++ types/react-router/tsconfig.json | 6 ++++-- 3 files changed, 25 insertions(+), 2 deletions(-) create mode 100644 types/react-router/test/WithRouterDecorator.tsx diff --git a/types/react-router/index.d.ts b/types/react-router/index.d.ts index 82811fadfb..a15005bc78 100644 --- a/types/react-router/index.d.ts +++ b/types/react-router/index.d.ts @@ -13,6 +13,7 @@ // Huy Nguyen // Jérémy Fauvel // Daniel Roth +// Egor Shulga // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 @@ -100,3 +101,4 @@ export interface match

{ export function matchPath

(pathname: string, props: RouteProps): match

| null; export function withRouter

(component: React.ComponentType & P>): React.ComponentClass

; +export function withRouter>(target: TFunction): TFunction; // decorator signature diff --git a/types/react-router/test/WithRouterDecorator.tsx b/types/react-router/test/WithRouterDecorator.tsx new file mode 100644 index 0000000000..6d87de2e6b --- /dev/null +++ b/types/react-router/test/WithRouterDecorator.tsx @@ -0,0 +1,19 @@ +import * as React from 'react'; +import { withRouter, RouteComponentProps } from 'react-router-dom'; + +interface TOwnProps { + username: string; +} + +@withRouter +class Component extends React.Component { + render() { + return ( +

Welcome {this.props.username}

+ ); + } +} + +const WithRouterTest = () => (); + +export default WithRouterTest; diff --git a/types/react-router/tsconfig.json b/types/react-router/tsconfig.json index 7e6466a83c..f609cbf859 100644 --- a/types/react-router/tsconfig.json +++ b/types/react-router/tsconfig.json @@ -10,7 +10,8 @@ "noImplicitAny": true, "noImplicitThis": true, "forceConsistentCasingInFileNames": true, - "noEmit": true + "noEmit": true, + "experimentalDecorators": true }, "files": [ "index.d.ts", @@ -34,6 +35,7 @@ "test/MemoryRouter.tsx", "test/Switch.tsx", "test/InheritingRoute.tsx", - "test/WithRouter.tsx" + "test/WithRouter.tsx", + "test/WithRouterDecorator.tsx" ] } From b102312ac99faed18dde95f5b5cca898625398d4 Mon Sep 17 00:00:00 2001 From: Chris Krycho Date: Wed, 9 Aug 2017 13:41:47 -0400 Subject: [PATCH 007/103] Change project to URL for htmlbars-inline-precompile. --- types/htmlbars-inline-precompile/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/htmlbars-inline-precompile/index.d.ts b/types/htmlbars-inline-precompile/index.d.ts index 21bbe63545..ab4bf9a1b7 100644 --- a/types/htmlbars-inline-precompile/index.d.ts +++ b/types/htmlbars-inline-precompile/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for htmlbars-inline-precompile 1.0 -// Project: ember-cli-htmlbars-inline-precompile +// Project: https://github.com/ember-cli/ember-cli-htmlbars-inline-precompile // Definitions by: Chris Krycho // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped From 34bff710dfc9a7fb788e8cb1d47bf28e5a8c0b27 Mon Sep 17 00:00:00 2001 From: sanjaymadane Date: Thu, 10 Aug 2017 15:57:21 +0800 Subject: [PATCH 008/103] types support added for openstack-wrapper package --- openstack-wrapper/index.d.ts | 270 +++++++++++++++++++ openstack-wrapper/openstack-wrapper-tests.ts | 3 + 2 files changed, 273 insertions(+) create mode 100644 openstack-wrapper/index.d.ts create mode 100644 openstack-wrapper/openstack-wrapper-tests.ts diff --git a/openstack-wrapper/index.d.ts b/openstack-wrapper/index.d.ts new file mode 100644 index 0000000000..e2c41db48f --- /dev/null +++ b/openstack-wrapper/index.d.ts @@ -0,0 +1,270 @@ +// Type definitions for openstack-wrapper 2.1.6 +// Project: https://www.npmjs.com/package/openstack-wrapper +// Definitions by: Sanjay Madane +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.3 +export interface RequestOption{ + uri?: string; + headers?: any, + json?: any, + timeout?: any, + metricRequestID?: string, + metricUserName?: string, + metricLogger?: any +} + +export class Glance { + request: any; + mangler:any; + mangleObject:any; + url:any; + token:any; + timeout:any; + request_id:any; + user_name:any; + logger:any; + + constructor(endpoint_url: string, auth_token: string); + setTimeout(new_timeout: any); + setRequestID(request_id: any); + setUserName(user_name: string); + setLogger(logger: any); + setRequest(request_lib: any); + setMangler(mangle_lib: any); + getRequestOptions(path: string, json_value: any, extra_headers: any):RequestOption; + listImages(cb: Function); + getImage(id: any, cb: Function); + queueImage(data: any, cb: Function); + uploadImage(id: any, stream: any, cb: Function); + updateImage(id: any, data: any, cb: Function); + removeImage(id: any, cb: Function); +} + +export class Keystone { + request: any; + mangler:any; + mangleObject:any; + url:any; + timeout:any; + request_id:any; + user_name:any; + logger:any; + + constructor(endpoint_url: string); + + setTimeout(new_timeout: any); + setRequestID(request_id: any); + setUserName(user_name: string); + setLogger(logger: any); + setRequest(request_lib: any); + setMangler(mangle_lib: any); + getRequestOptions(path: string, json_value: any, extra_headers: any):RequestOption; + getToken(username: string, password: string, cb: Function); + getProjectTokenForReal(auth_data: any, cb: Function); + getProjectToken(access_token:any, project_id:any, cb: Function); + getProjectTokenByName(access_token:any, domain_id:any, project_name:string, cb: Function); + listProjects(admin_access_token: any, cb: Function); + listUserProjects(username:any, access_token: any, cb: Function); + getProjectByName(admin_access_token: any, project_name:any, cb: Function); + listRoles(project_token:any, cb: Function); + listRoleAssignments(project_token:any, project_id:any, cb: Function); + addRoleAssignment(project_token:any, project_id:any, entry_id:any, entry_type:any, role_id: any, cb: Function); + removeRoleAssignment(project_token:any, project_id:any, entry_id:any, entry_type:any, role_id: any, cb: Function); + listMetaEnvironments(auth_token:any, cb: Function); + listMetaOwningGroups(auth_token:any, cb: Function); + listProjectMeta(project_token:any, project_id:any, cb: Function); + updateProjectMeta(project_token:any, project_id:any,new_meta:any, cb: Function); +} + +export class Neutron { + request: any; + mangler:any; + mangleObject:any; + url:any; + token:any; + timeout:any; + request_id:any; + user_name:any; + logger:any; + + constructor(endpoint_url: string, auth_token: string); + setTimeout(new_timeout: any); + setRequestID(request_id: any); + setUserName(user_name: string); + setLogger(logger: any); + setRequest(request_lib: any); + setMangler(mangle_lib: any); + getRequestOptions(path: string, json_value: any, extra_headers: any):RequestOption; + listNetworks(cb: Function); + getNetwork(network_id:string, cb: Function); + listSubnets(cb: Function); + getSubnet(subnet_id:any, cb: Function); + listRouters(cb: Function); + getRouter(router_id:any, cb: Function); + createFloatingIp(floating_network_id:any, cb: Function); + listFloatingIps(options:any, cb: Function); + getFloatingIp(ip_id:any, cb: Function); + updateFloatingIp(ip_id:any, port_id:any,cb: Function); + removeFloatingIp(ip_id:any, cb: Function); + listPorts(options:any, cb: Function); + getPort(port_id:any,cb: Function); + updatePort(port_id:any, data:any, cb: Function); + listSecurityGroups(project_id:any, cb: Function); + getSecurityGroup(group_id:any, cb: Function); + createSecurityGroup(group_name:any, data:any, cb: Function); + updateSecurityGroup(group_id:any, data:any, cb: Function); + removeSecurityGroup(group_id:any, cb: Function); + listSecurityGroupRules(cb: Function); + getSecurityGroupRule(rule_id:any, cb: Function); + createSecurityGroupRule(group_id:any, data:any, cb: Function); + removeSecurityGroupRule(rule_id:any, cb: Function); + listLoadBalancers(cb: Function); + getLoadBalancer(lb_id:any, cb: Function); + createLoadBalancer(tenant_id:any, vip_subnet_id:any, cb: Function); + updateLoadBalancer(lb_id:any, data:any, cb: Function); + removeLoadBalancer(lb_id:any, cb: Function); + listLBListeners(cb: Function); + getLBListener(lb_id:any, cb: Function); + createLBListener(tenant_id:any, loadbalancer_id:any, description:any, protocol:any, data:any, cb: Function); + updateLBListener(listener_id:any, data:any, cb: Function); + removeLBListener(listener_id:any, cb: Function); + listLBPools(cb: Function); + getLBPool(pool_id:any, cb: Function); + createLBPool(tenant_id:any, protocol:any, lb_algorithm:any, listener_id:any, data:any, cb: Function); + updateLBPool(pool_id:any, data:any, cb: Function); + removeLBPool(pool_id:any, cb: Function); + listLBPoolMembers(pool_id:any, cb: Function); + getLBPoolMember(pool_id:any, member_id:any, cb: Function); + createLBPoolMember(pool_id:any, tenant_id:any, address:any, protocol_port:any, data:any, cb: Function); + updateLBPoolMember(pool_id:any, member_id:any, data:any, cb: Function); + removeLBPoolMember(pool_id:any, member_id:any, cb: Function); + listLBHealthMonitors(cb: Function); + getLBHealthMonitor(health_monitor_id:any, cb: Function); + createLBHealthMonitor(tenant_id:any, type:any, delay:any, timeout:any, max_retries:any, pool_id:any, data:any, cb: Function); + updateLBHealthMonitor(health_monitor_id:any, data:any, cb: Function); + removeLBHealthMonitor(health_monitor_id:any, cb: Function); + getLBStats(lb_id:any, cb: Function); +} + +export class Octavia { + url:any; + token:any; + timeout:any; + request_id:any; + user_name:string; + logger:any; + retries: number; + retry_delay: number; + + constructor(endpoint_url: string, auth_token: string); + setTimeout(new_timeout: any); + setRequestID(request_id: any); + setUserName(user_name: string); + setLogger(logger: any); + setRequest(request_lib: any); + setRetries(retries:number); + setRetryDelay(retry_delay:number); + getRequestOptions(path: string, json_value:any):RequestOption; + listLoadBalancers(cb:Function); + getLoadBalancer(lb_id: string, cb:Function); + createLoadBalancer(project_id:string, data:any,cb:Function); + updateLoadBalancer(lb_id:string, data:any,cb:Function); + removeLoadBalancer(lb_id:string, cb:Function); + listLBListeners(cb:Function); + getLBListener(listener_id: string, cb:Function); + createLBListener(loadbalancer_id:string, protocol:any, data:any,cb:Function); + updateLBListener(listener_id:string, data:any,cb:Function); + removeLBListener(listener_id: string, cb:Function); + listLBPools(cb:Function); + getLBPool(pool_id: string, cb:Function); + createLBPool(protocol:any, lb_algorithm:any, data:any,cb:Function); + updateLBPool(pool_id:string, data:any,cb:Function); + removeLBPool(pool_id:string, cb:Function); + listLBPoolMembers(pool_id:string, cb:Function); + getLBPoolMember(pool_id:string, member_id:string,cb:Function); + createLBPoolMember(pool_id:string, address:any, protocol_port:any, data:any,cb:Function); + updateLBPoolMember(pool_id:string, member_id:string, data:any,cb:Function); + removeLBPoolMember(pool_id:string, member_id:string,cb:Function); + listLBHealthMonitors(cb:Function); + getLBHealthMonitor(health_monitor_id:string,cb:Function); + createLBHealthMonitor(pool_id:string, type:any, delay:number, timeout:number, max_retries:number, data:any,cb:Function); + updateLBHealthMonitor(health_monitor_id:string, data:any,cb:Function); + removeLBHealthMonitor(health_monitor_id:string,cb:Function); + getLBStats(lb_id:string,cb:Function); +} + +export class Nova { + request: any; + mangler:any; + mangleObject:any; + url:any; + token:any; + timeout:any; + request_id:any; + user_name:any; + logger:any; + + constructor(endpoint_url: string, auth_token: string); + setTimeout(new_timeout: any); + setRequestID(request_id: any); + setUserName(user_name: string); + setLogger(logger: any); + setRequest(request_lib: any); + setMangler(mangle_lib: any); + getRequestOptions(path: string, json_value: any, extra_headers: any):RequestOption; + listServers(cb:Function); + getServer(id:string, cb:Function); + createServer(data:any, cb:Function); + renameServer(id:string, name:string, cb:Function); + resizeServer(id:string, flavor:any,cb:Function); + confirmResizeServer(id: string, cb:Function); + revertResizeServer(id:string, cb:Function); + removeServer(id:string,cb:Function); + rebootServer(id:string, cb:Function); + forceRebootServer(id: string, cb:Function); + stopServer(id: string, cb:Function); + startServer(id: string, cb:Function); + pauseServer(id: string, cb:Function); + suspendServer(id: string, cb:Function); + resumeServer(is: string, cb:Function); + getServerConsoleURL(type: any, id: string, cb:Function); + getServerLog(id: string, length: any, cb:Function); + createServerImage(id: string , data: any,cb:Function); + setServerMetadata(id: string , data: any,cb:Function); + listFlavors(cb:Function); + getFlavor(id: string ,cb:Function); + listFloatingIps(cb:Function); + getFloatingIp(id: string, cb:Function); + createFloatingIp(data: any,cb:Function); + removeFloatingIp(id: string, cb:Function); + associateFloatingIp(instance_id:any, ip_address: any,cb:Function); + disassociateFloatingIp(instance_id:any, ip_address: any,cb:Function); + listFloatingIpPools(cb:Function); + getFloatingIpPool(id: string, cb:Function); + listAvailabilityZones(cb:Function); + getAvailabilityZone(id: string, cb:Function); + listKeyPairs(cb:Function); + getKeyPair(id: string, cb:Function); + createKeyPair(name:string, public_key: any,cb:Function); + removeKeyPair(id:string,cb:Function); + getQuotaSet(project_id:string, cb:Function); + setQuotaSet(project_id:string, data: any,cb:Function); + getTenantUsage(project_id:string, start_date_obj:any, end_date_obj: any,cb:Function); + assignSecurityGroup(security_group_name:string, instance_id:string, cb:Function); + removeSecurityGroup(security_group_name: string, instance_id:string, cb:Function); + getImageMetaData(id:string, cb:Function); + setImageMetaData(id:string, data:any, cb:Function); +} + +export interface Project{ + general_token: string; + project_token: string; + glance: Glance; + neutron: Neutron; + nova: Nova; + octavia: Octavia; +} + +export class getSimpleProject{ + constructor(username: string, password: string, project_id: string, keystone_url: string, cb: Function); +} \ No newline at end of file diff --git a/openstack-wrapper/openstack-wrapper-tests.ts b/openstack-wrapper/openstack-wrapper-tests.ts new file mode 100644 index 0000000000..467948047c --- /dev/null +++ b/openstack-wrapper/openstack-wrapper-tests.ts @@ -0,0 +1,3 @@ +import * as openstack from 'openstack-wrapper'; + +const nova = new Glance("",""); \ No newline at end of file From 0f5e343c1365189253af81552541bd53420054fe Mon Sep 17 00:00:00 2001 From: sanjaymadane Date: Thu, 10 Aug 2017 16:12:03 +0800 Subject: [PATCH 009/103] added ts config and ts lint files --- openstack-wrapper/tsconfig.json | 0 openstack-wrapper/tslint.json | 0 2 files changed, 0 insertions(+), 0 deletions(-) create mode 100644 openstack-wrapper/tsconfig.json create mode 100644 openstack-wrapper/tslint.json diff --git a/openstack-wrapper/tsconfig.json b/openstack-wrapper/tsconfig.json new file mode 100644 index 0000000000..e69de29bb2 diff --git a/openstack-wrapper/tslint.json b/openstack-wrapper/tslint.json new file mode 100644 index 0000000000..e69de29bb2 From 411f3efe54047f425feae8b69c493f3b3ee99cb2 Mon Sep 17 00:00:00 2001 From: Josh Abernathy Date: Thu, 10 Aug 2017 07:31:57 -0400 Subject: [PATCH 010/103] Replace `protocol` and `protocolName` with `protocols` The CLI accepts the former, while the programatic interface accepts the latter. https://github.com/electron-userland/electron-packager/blob/93523ba8dbe8626906a6ef51db3ee02d54e19ad0/common.js#L44-L51 --- types/electron-packager/index.d.ts | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/types/electron-packager/index.d.ts b/types/electron-packager/index.d.ts index 7a4504c386..fce952641e 100644 --- a/types/electron-packager/index.d.ts +++ b/types/electron-packager/index.d.ts @@ -185,15 +185,12 @@ declare namespace electronPackager { * If present, signs OS X target apps when the host platform is OS X and XCode is installed. */ osxSign?: boolean | ElectronOsXSignOptions; - /** - * The URL protocol scheme(s) to associate the app with - */ - protocol?: string[]; - /** - * The descriptive name(s) of the URL protocol scheme(s) specified via the protocol option. - * Maps to the CFBundleURLName metadata property. - */ - protocolName?: string[]; + + /** The URL protocol schemes the app supports. */ + protocols: Array<{ + name: string + schemes: string[] + }>; /** * Windows targets only From 08996b5553e1e8c85799273f07759045e95ccac0 Mon Sep 17 00:00:00 2001 From: Josh Abernathy Date: Thu, 10 Aug 2017 07:39:05 -0400 Subject: [PATCH 011/103] Make it optional --- types/electron-packager/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/electron-packager/index.d.ts b/types/electron-packager/index.d.ts index fce952641e..df5a10eb92 100644 --- a/types/electron-packager/index.d.ts +++ b/types/electron-packager/index.d.ts @@ -187,7 +187,7 @@ declare namespace electronPackager { osxSign?: boolean | ElectronOsXSignOptions; /** The URL protocol schemes the app supports. */ - protocols: Array<{ + protocols?: Array<{ name: string schemes: string[] }>; From 642948e9842bab5aa305c6db0980ed0b6f64f980 Mon Sep 17 00:00:00 2001 From: Paul Sachs Date: Thu, 10 Aug 2017 23:28:26 -0400 Subject: [PATCH 012/103] Update definitions to v4 Definition now matches supported noParse of webpack@3 --- types/webpack-chain/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/webpack-chain/index.d.ts b/types/webpack-chain/index.d.ts index fc9e2e158c..f3e761c36a 100644 --- a/types/webpack-chain/index.d.ts +++ b/types/webpack-chain/index.d.ts @@ -83,7 +83,7 @@ declare namespace Config { class Module extends ChainedMap { rules: TypedChainedMap; rule(name: string): Rule; - noParse: TypedChainedSet; + noParse(noParse: RegExp | RegExp[] | ((contentPath: string) => boolean )): this; } class Output extends ChainedMap { From 7e72aeec97e15a336bc8d3ea61b40a48dae3182d Mon Sep 17 00:00:00 2001 From: psachs Date: Thu, 10 Aug 2017 23:44:31 -0400 Subject: [PATCH 013/103] Tests to confirm v4 API --- types/webpack-chain/index.d.ts | 2 +- types/webpack-chain/webpack-chain-tests.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/types/webpack-chain/index.d.ts b/types/webpack-chain/index.d.ts index f3e761c36a..b062c42548 100644 --- a/types/webpack-chain/index.d.ts +++ b/types/webpack-chain/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for webpack-chain 3.0 // Project: https://github.com/mozilla-neutrino/webpack-chain -// Definitions by: Eirikur Nilsson +// Definitions by: Eirikur Nilsson , Paul Sachs // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped import * as webpack from 'webpack'; diff --git a/types/webpack-chain/webpack-chain-tests.ts b/types/webpack-chain/webpack-chain-tests.ts index ac40e70624..1118fe0d26 100644 --- a/types/webpack-chain/webpack-chain-tests.ts +++ b/types/webpack-chain/webpack-chain-tests.ts @@ -83,7 +83,7 @@ config .end() .module - .noParse.add(/.min.js$/).end() + .noParse(/.min.js$/) .rule('compile') .test(/.js$/) .include From aa596d8723ba0277ed14d83862724448892478b4 Mon Sep 17 00:00:00 2001 From: Egor Shulga Date: Fri, 11 Aug 2017 17:22:56 +0300 Subject: [PATCH 014/103] Move decorator signature comment to the top of the line. --- types/react-router/index.d.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/types/react-router/index.d.ts b/types/react-router/index.d.ts index a15005bc78..bfb5f16e7b 100644 --- a/types/react-router/index.d.ts +++ b/types/react-router/index.d.ts @@ -101,4 +101,5 @@ export interface match

{ export function matchPath

(pathname: string, props: RouteProps): match

| null; export function withRouter

(component: React.ComponentType & P>): React.ComponentClass

; -export function withRouter>(target: TFunction): TFunction; // decorator signature +// decorator signature +export function withRouter>(target: TFunction): TFunction; From b51a8da34bd7b724123e0490fc083353c6ef8d9e Mon Sep 17 00:00:00 2001 From: Egor Shulga Date: Fri, 11 Aug 2017 17:44:07 +0300 Subject: [PATCH 015/103] Add dtslint type assertion test. --- types/react-router/test/WithRouterDecorator.tsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/types/react-router/test/WithRouterDecorator.tsx b/types/react-router/test/WithRouterDecorator.tsx index 6d87de2e6b..2eb6bd2335 100644 --- a/types/react-router/test/WithRouterDecorator.tsx +++ b/types/react-router/test/WithRouterDecorator.tsx @@ -5,6 +5,7 @@ interface TOwnProps { username: string; } +// $ExpectType Component @withRouter class Component extends React.Component { render() { @@ -16,4 +17,7 @@ class Component extends React.Component { const WithRouterTest = () => (); +// $ExpectType Element +WithRouterTest(); + export default WithRouterTest; From a57d336c019ff9bcd83ac5618e55345335b36f58 Mon Sep 17 00:00:00 2001 From: sanjaymadane Date: Mon, 14 Aug 2017 11:57:10 +0800 Subject: [PATCH 016/103] openstack-wrapper types added --- openstack-wrapper/index.d.ts | 270 ----------------- openstack-wrapper/openstack-wrapper-tests.ts | 3 - openstack-wrapper/tsconfig.json | 0 openstack-wrapper/tslint.json | 0 types/openstack-wrapper/index.d.ts | 274 ++++++++++++++++++ .../openstack-wrapper-tests.ts | 7 + types/openstack-wrapper/tsconfig.json | 22 ++ 7 files changed, 303 insertions(+), 273 deletions(-) delete mode 100644 openstack-wrapper/index.d.ts delete mode 100644 openstack-wrapper/openstack-wrapper-tests.ts delete mode 100644 openstack-wrapper/tsconfig.json delete mode 100644 openstack-wrapper/tslint.json create mode 100644 types/openstack-wrapper/index.d.ts create mode 100644 types/openstack-wrapper/openstack-wrapper-tests.ts create mode 100644 types/openstack-wrapper/tsconfig.json diff --git a/openstack-wrapper/index.d.ts b/openstack-wrapper/index.d.ts deleted file mode 100644 index e2c41db48f..0000000000 --- a/openstack-wrapper/index.d.ts +++ /dev/null @@ -1,270 +0,0 @@ -// Type definitions for openstack-wrapper 2.1.6 -// Project: https://www.npmjs.com/package/openstack-wrapper -// Definitions by: Sanjay Madane -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -// TypeScript Version: 2.3 -export interface RequestOption{ - uri?: string; - headers?: any, - json?: any, - timeout?: any, - metricRequestID?: string, - metricUserName?: string, - metricLogger?: any -} - -export class Glance { - request: any; - mangler:any; - mangleObject:any; - url:any; - token:any; - timeout:any; - request_id:any; - user_name:any; - logger:any; - - constructor(endpoint_url: string, auth_token: string); - setTimeout(new_timeout: any); - setRequestID(request_id: any); - setUserName(user_name: string); - setLogger(logger: any); - setRequest(request_lib: any); - setMangler(mangle_lib: any); - getRequestOptions(path: string, json_value: any, extra_headers: any):RequestOption; - listImages(cb: Function); - getImage(id: any, cb: Function); - queueImage(data: any, cb: Function); - uploadImage(id: any, stream: any, cb: Function); - updateImage(id: any, data: any, cb: Function); - removeImage(id: any, cb: Function); -} - -export class Keystone { - request: any; - mangler:any; - mangleObject:any; - url:any; - timeout:any; - request_id:any; - user_name:any; - logger:any; - - constructor(endpoint_url: string); - - setTimeout(new_timeout: any); - setRequestID(request_id: any); - setUserName(user_name: string); - setLogger(logger: any); - setRequest(request_lib: any); - setMangler(mangle_lib: any); - getRequestOptions(path: string, json_value: any, extra_headers: any):RequestOption; - getToken(username: string, password: string, cb: Function); - getProjectTokenForReal(auth_data: any, cb: Function); - getProjectToken(access_token:any, project_id:any, cb: Function); - getProjectTokenByName(access_token:any, domain_id:any, project_name:string, cb: Function); - listProjects(admin_access_token: any, cb: Function); - listUserProjects(username:any, access_token: any, cb: Function); - getProjectByName(admin_access_token: any, project_name:any, cb: Function); - listRoles(project_token:any, cb: Function); - listRoleAssignments(project_token:any, project_id:any, cb: Function); - addRoleAssignment(project_token:any, project_id:any, entry_id:any, entry_type:any, role_id: any, cb: Function); - removeRoleAssignment(project_token:any, project_id:any, entry_id:any, entry_type:any, role_id: any, cb: Function); - listMetaEnvironments(auth_token:any, cb: Function); - listMetaOwningGroups(auth_token:any, cb: Function); - listProjectMeta(project_token:any, project_id:any, cb: Function); - updateProjectMeta(project_token:any, project_id:any,new_meta:any, cb: Function); -} - -export class Neutron { - request: any; - mangler:any; - mangleObject:any; - url:any; - token:any; - timeout:any; - request_id:any; - user_name:any; - logger:any; - - constructor(endpoint_url: string, auth_token: string); - setTimeout(new_timeout: any); - setRequestID(request_id: any); - setUserName(user_name: string); - setLogger(logger: any); - setRequest(request_lib: any); - setMangler(mangle_lib: any); - getRequestOptions(path: string, json_value: any, extra_headers: any):RequestOption; - listNetworks(cb: Function); - getNetwork(network_id:string, cb: Function); - listSubnets(cb: Function); - getSubnet(subnet_id:any, cb: Function); - listRouters(cb: Function); - getRouter(router_id:any, cb: Function); - createFloatingIp(floating_network_id:any, cb: Function); - listFloatingIps(options:any, cb: Function); - getFloatingIp(ip_id:any, cb: Function); - updateFloatingIp(ip_id:any, port_id:any,cb: Function); - removeFloatingIp(ip_id:any, cb: Function); - listPorts(options:any, cb: Function); - getPort(port_id:any,cb: Function); - updatePort(port_id:any, data:any, cb: Function); - listSecurityGroups(project_id:any, cb: Function); - getSecurityGroup(group_id:any, cb: Function); - createSecurityGroup(group_name:any, data:any, cb: Function); - updateSecurityGroup(group_id:any, data:any, cb: Function); - removeSecurityGroup(group_id:any, cb: Function); - listSecurityGroupRules(cb: Function); - getSecurityGroupRule(rule_id:any, cb: Function); - createSecurityGroupRule(group_id:any, data:any, cb: Function); - removeSecurityGroupRule(rule_id:any, cb: Function); - listLoadBalancers(cb: Function); - getLoadBalancer(lb_id:any, cb: Function); - createLoadBalancer(tenant_id:any, vip_subnet_id:any, cb: Function); - updateLoadBalancer(lb_id:any, data:any, cb: Function); - removeLoadBalancer(lb_id:any, cb: Function); - listLBListeners(cb: Function); - getLBListener(lb_id:any, cb: Function); - createLBListener(tenant_id:any, loadbalancer_id:any, description:any, protocol:any, data:any, cb: Function); - updateLBListener(listener_id:any, data:any, cb: Function); - removeLBListener(listener_id:any, cb: Function); - listLBPools(cb: Function); - getLBPool(pool_id:any, cb: Function); - createLBPool(tenant_id:any, protocol:any, lb_algorithm:any, listener_id:any, data:any, cb: Function); - updateLBPool(pool_id:any, data:any, cb: Function); - removeLBPool(pool_id:any, cb: Function); - listLBPoolMembers(pool_id:any, cb: Function); - getLBPoolMember(pool_id:any, member_id:any, cb: Function); - createLBPoolMember(pool_id:any, tenant_id:any, address:any, protocol_port:any, data:any, cb: Function); - updateLBPoolMember(pool_id:any, member_id:any, data:any, cb: Function); - removeLBPoolMember(pool_id:any, member_id:any, cb: Function); - listLBHealthMonitors(cb: Function); - getLBHealthMonitor(health_monitor_id:any, cb: Function); - createLBHealthMonitor(tenant_id:any, type:any, delay:any, timeout:any, max_retries:any, pool_id:any, data:any, cb: Function); - updateLBHealthMonitor(health_monitor_id:any, data:any, cb: Function); - removeLBHealthMonitor(health_monitor_id:any, cb: Function); - getLBStats(lb_id:any, cb: Function); -} - -export class Octavia { - url:any; - token:any; - timeout:any; - request_id:any; - user_name:string; - logger:any; - retries: number; - retry_delay: number; - - constructor(endpoint_url: string, auth_token: string); - setTimeout(new_timeout: any); - setRequestID(request_id: any); - setUserName(user_name: string); - setLogger(logger: any); - setRequest(request_lib: any); - setRetries(retries:number); - setRetryDelay(retry_delay:number); - getRequestOptions(path: string, json_value:any):RequestOption; - listLoadBalancers(cb:Function); - getLoadBalancer(lb_id: string, cb:Function); - createLoadBalancer(project_id:string, data:any,cb:Function); - updateLoadBalancer(lb_id:string, data:any,cb:Function); - removeLoadBalancer(lb_id:string, cb:Function); - listLBListeners(cb:Function); - getLBListener(listener_id: string, cb:Function); - createLBListener(loadbalancer_id:string, protocol:any, data:any,cb:Function); - updateLBListener(listener_id:string, data:any,cb:Function); - removeLBListener(listener_id: string, cb:Function); - listLBPools(cb:Function); - getLBPool(pool_id: string, cb:Function); - createLBPool(protocol:any, lb_algorithm:any, data:any,cb:Function); - updateLBPool(pool_id:string, data:any,cb:Function); - removeLBPool(pool_id:string, cb:Function); - listLBPoolMembers(pool_id:string, cb:Function); - getLBPoolMember(pool_id:string, member_id:string,cb:Function); - createLBPoolMember(pool_id:string, address:any, protocol_port:any, data:any,cb:Function); - updateLBPoolMember(pool_id:string, member_id:string, data:any,cb:Function); - removeLBPoolMember(pool_id:string, member_id:string,cb:Function); - listLBHealthMonitors(cb:Function); - getLBHealthMonitor(health_monitor_id:string,cb:Function); - createLBHealthMonitor(pool_id:string, type:any, delay:number, timeout:number, max_retries:number, data:any,cb:Function); - updateLBHealthMonitor(health_monitor_id:string, data:any,cb:Function); - removeLBHealthMonitor(health_monitor_id:string,cb:Function); - getLBStats(lb_id:string,cb:Function); -} - -export class Nova { - request: any; - mangler:any; - mangleObject:any; - url:any; - token:any; - timeout:any; - request_id:any; - user_name:any; - logger:any; - - constructor(endpoint_url: string, auth_token: string); - setTimeout(new_timeout: any); - setRequestID(request_id: any); - setUserName(user_name: string); - setLogger(logger: any); - setRequest(request_lib: any); - setMangler(mangle_lib: any); - getRequestOptions(path: string, json_value: any, extra_headers: any):RequestOption; - listServers(cb:Function); - getServer(id:string, cb:Function); - createServer(data:any, cb:Function); - renameServer(id:string, name:string, cb:Function); - resizeServer(id:string, flavor:any,cb:Function); - confirmResizeServer(id: string, cb:Function); - revertResizeServer(id:string, cb:Function); - removeServer(id:string,cb:Function); - rebootServer(id:string, cb:Function); - forceRebootServer(id: string, cb:Function); - stopServer(id: string, cb:Function); - startServer(id: string, cb:Function); - pauseServer(id: string, cb:Function); - suspendServer(id: string, cb:Function); - resumeServer(is: string, cb:Function); - getServerConsoleURL(type: any, id: string, cb:Function); - getServerLog(id: string, length: any, cb:Function); - createServerImage(id: string , data: any,cb:Function); - setServerMetadata(id: string , data: any,cb:Function); - listFlavors(cb:Function); - getFlavor(id: string ,cb:Function); - listFloatingIps(cb:Function); - getFloatingIp(id: string, cb:Function); - createFloatingIp(data: any,cb:Function); - removeFloatingIp(id: string, cb:Function); - associateFloatingIp(instance_id:any, ip_address: any,cb:Function); - disassociateFloatingIp(instance_id:any, ip_address: any,cb:Function); - listFloatingIpPools(cb:Function); - getFloatingIpPool(id: string, cb:Function); - listAvailabilityZones(cb:Function); - getAvailabilityZone(id: string, cb:Function); - listKeyPairs(cb:Function); - getKeyPair(id: string, cb:Function); - createKeyPair(name:string, public_key: any,cb:Function); - removeKeyPair(id:string,cb:Function); - getQuotaSet(project_id:string, cb:Function); - setQuotaSet(project_id:string, data: any,cb:Function); - getTenantUsage(project_id:string, start_date_obj:any, end_date_obj: any,cb:Function); - assignSecurityGroup(security_group_name:string, instance_id:string, cb:Function); - removeSecurityGroup(security_group_name: string, instance_id:string, cb:Function); - getImageMetaData(id:string, cb:Function); - setImageMetaData(id:string, data:any, cb:Function); -} - -export interface Project{ - general_token: string; - project_token: string; - glance: Glance; - neutron: Neutron; - nova: Nova; - octavia: Octavia; -} - -export class getSimpleProject{ - constructor(username: string, password: string, project_id: string, keystone_url: string, cb: Function); -} \ No newline at end of file diff --git a/openstack-wrapper/openstack-wrapper-tests.ts b/openstack-wrapper/openstack-wrapper-tests.ts deleted file mode 100644 index 467948047c..0000000000 --- a/openstack-wrapper/openstack-wrapper-tests.ts +++ /dev/null @@ -1,3 +0,0 @@ -import * as openstack from 'openstack-wrapper'; - -const nova = new Glance("",""); \ No newline at end of file diff --git a/openstack-wrapper/tsconfig.json b/openstack-wrapper/tsconfig.json deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/openstack-wrapper/tslint.json b/openstack-wrapper/tslint.json deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/types/openstack-wrapper/index.d.ts b/types/openstack-wrapper/index.d.ts new file mode 100644 index 0000000000..584b5a57c2 --- /dev/null +++ b/types/openstack-wrapper/index.d.ts @@ -0,0 +1,274 @@ +// Type definitions for openstack-wrapper 2.1.6 +// Project: https://www.npmjs.com/package/openstack-wrapper +// Definitions by: Sanjay Madane +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.3 + +declare module "openstack-wrapper" { + export interface RequestOption{ + uri?: string; + headers?: any, + json?: any, + timeout?: any, + metricRequestID?: string, + metricUserName?: string, + metricLogger?: any + } + + export class Glance { + request: any; + mangler:any; + mangleObject:any; + url:any; + token:any; + timeout:any; + request_id:any; + user_name:any; + logger:any; + + constructor(endpoint_url: string, auth_token: string); + setTimeout(new_timeout: any):void; + setRequestID(request_id: any):void; + setUserName(user_name: string):void; + setLogger(logger: any):void; + setRequest(request_lib: any):void; + setMangler(mangle_lib: any):void; + getRequestOptions(path: string, json_value: any, extra_headers: any):RequestOption; + listImages(cb: Function):any; + getImage(id: any, cb: Function):any; + queueImage(data: any, cb: Function):any; + uploadImage(id: any, stream: any, cb: Function):any; + updateImage(id: any, data: any, cb: Function):any; + removeImage(id: any, cb: Function):any; + } + + export class Keystone { + request: any; + mangler:any; + mangleObject:any; + url:any; + timeout:any; + request_id:any; + user_name:any; + logger:any; + + constructor(endpoint_url: string); + + setTimeout(new_timeout: any):void; + setRequestID(request_id: any):void; + setUserName(user_name: string):void; + setLogger(logger: any):void; + setRequest(request_lib: any):void; + setMangler(mangle_lib: any):void; + getRequestOptions(path: string, json_value: any, extra_headers: any):RequestOption; + getToken(username: string, password: string, cb: Function):any; + getProjectTokenForReal(auth_data: any, cb: Function):any; + getProjectToken(access_token:any, project_id:any, cb: Function):any; + getProjectTokenByName(access_token:any, domain_id:any, project_name:string, cb: Function):any; + listProjects(admin_access_token: any, cb: Function):any; + listUserProjects(username:any, access_token: any, cb: Function):any; + getProjectByName(admin_access_token: any, project_name:any, cb: Function):any; + listRoles(project_token:any, cb: Function):any; + listRoleAssignments(project_token:any, project_id:any, cb: Function):any; + addRoleAssignment(project_token:any, project_id:any, entry_id:any, entry_type:any, role_id: any, cb: Function):any; + removeRoleAssignment(project_token:any, project_id:any, entry_id:any, entry_type:any, role_id: any, cb: Function):any; + listMetaEnvironments(auth_token:any, cb: Function):any; + listMetaOwningGroups(auth_token:any, cb: Function):any; + listProjectMeta(project_token:any, project_id:any, cb: Function):any; + updateProjectMeta(project_token:any, project_id:any,new_meta:any, cb: Function):any; + } + + export class Neutron { + request: any; + mangler:any; + mangleObject:any; + url:any; + token:any; + timeout:any; + request_id:any; + user_name:any; + logger:any; + + constructor(endpoint_url: string, auth_token: string); + setTimeout(new_timeout: any):void; + setRequestID(request_id: any):void; + setUserName(user_name: string):void; + setLogger(logger: any):void; + setRequest(request_lib: any):void; + setMangler(mangle_lib: any):void; + getRequestOptions(path: string, json_value: any, extra_headers: any):RequestOption; + listNetworks(cb: Function):any; + getNetwork(network_id:string, cb: Function):any; + listSubnets(cb: Function):any; + getSubnet(subnet_id:any, cb: Function):any; + listRouters(cb: Function):any; + getRouter(router_id:any, cb: Function):any; + createFloatingIp(floating_network_id:any, cb: Function):any; + listFloatingIps(options:any, cb: Function):any; + getFloatingIp(ip_id:any, cb: Function):any; + updateFloatingIp(ip_id:any, port_id:any,cb: Function):any; + removeFloatingIp(ip_id:any, cb: Function):any; + listPorts(options:any, cb: Function):any; + getPort(port_id:any,cb: Function):any; + updatePort(port_id:any, data:any, cb: Function):any; + listSecurityGroups(project_id:any, cb: Function):any; + getSecurityGroup(group_id:any, cb: Function):any; + createSecurityGroup(group_name:any, data:any, cb: Function):any; + updateSecurityGroup(group_id:any, data:any, cb: Function):any; + removeSecurityGroup(group_id:any, cb: Function):any; + listSecurityGroupRules(cb: Function):any; + getSecurityGroupRule(rule_id:any, cb: Function):any; + createSecurityGroupRule(group_id:any, data:any, cb: Function):any; + removeSecurityGroupRule(rule_id:any, cb: Function):any; + listLoadBalancers(cb: Function):any; + getLoadBalancer(lb_id:any, cb: Function):any; + createLoadBalancer(tenant_id:any, vip_subnet_id:any, cb: Function):any; + updateLoadBalancer(lb_id:any, data:any, cb: Function):any; + removeLoadBalancer(lb_id:any, cb: Function):any; + listLBListeners(cb: Function):any; + getLBListener(lb_id:any, cb: Function):any; + createLBListener(tenant_id:any, loadbalancer_id:any, description:any, protocol:any, data:any, cb: Function):any; + updateLBListener(listener_id:any, data:any, cb: Function):any; + removeLBListener(listener_id:any, cb: Function):any; + listLBPools(cb: Function):any; + getLBPool(pool_id:any, cb: Function):any; + createLBPool(tenant_id:any, protocol:any, lb_algorithm:any, listener_id:any, data:any, cb: Function):any; + updateLBPool(pool_id:any, data:any, cb: Function):any; + removeLBPool(pool_id:any, cb: Function):any; + listLBPoolMembers(pool_id:any, cb: Function):any; + getLBPoolMember(pool_id:any, member_id:any, cb: Function):any; + createLBPoolMember(pool_id:any, tenant_id:any, address:any, protocol_port:any, data:any, cb: Function):any; + updateLBPoolMember(pool_id:any, member_id:any, data:any, cb: Function):any; + removeLBPoolMember(pool_id:any, member_id:any, cb: Function):any; + listLBHealthMonitors(cb: Function):any; + getLBHealthMonitor(health_monitor_id:any, cb: Function):any; + createLBHealthMonitor(tenant_id:any, type:any, delay:any, timeout:any, max_retries:any, pool_id:any, data:any, cb: Function):any; + updateLBHealthMonitor(health_monitor_id:any, data:any, cb: Function):any; + removeLBHealthMonitor(health_monitor_id:any, cb: Function):any; + getLBStats(lb_id:any, cb: Function):any; + } + + export class Octavia { + url:any; + token:any; + timeout:any; + request_id:any; + user_name:string; + logger:any; + retries: number; + retry_delay: number; + + constructor(endpoint_url: string, auth_token: string); + setTimeout(new_timeout: any):void; + setRequestID(request_id: any):void; + setUserName(user_name: string):void; + setLogger(logger: any):void; + setRequest(request_lib: any):void; + setRetries(retries:number):void; + setRetryDelay(retry_delay:number):void; + getRequestOptions(path: string, json_value:any):RequestOption; + listLoadBalancers(cb:Function):any; + getLoadBalancer(lb_id: string, cb:Function):any; + createLoadBalancer(project_id:string, data:any,cb:Function):any; + updateLoadBalancer(lb_id:string, data:any,cb:Function):any; + removeLoadBalancer(lb_id:string, cb:Function):any; + listLBListeners(cb:Function):any; + getLBListener(listener_id: string, cb:Function):any; + createLBListener(loadbalancer_id:string, protocol:any, data:any,cb:Function):any; + updateLBListener(listener_id:string, data:any,cb:Function):any; + removeLBListener(listener_id: string, cb:Function):any; + listLBPools(cb:Function):any; + getLBPool(pool_id: string, cb:Function):any; + createLBPool(protocol:any, lb_algorithm:any, data:any,cb:Function):any; + updateLBPool(pool_id:string, data:any,cb:Function):any; + removeLBPool(pool_id:string, cb:Function):any; + listLBPoolMembers(pool_id:string, cb:Function):any; + getLBPoolMember(pool_id:string, member_id:string,cb:Function):any; + createLBPoolMember(pool_id:string, address:any, protocol_port:any, data:any,cb:Function):any; + updateLBPoolMember(pool_id:string, member_id:string, data:any,cb:Function):any; + removeLBPoolMember(pool_id:string, member_id:string,cb:Function):any; + listLBHealthMonitors(cb:Function):any; + getLBHealthMonitor(health_monitor_id:string,cb:Function):any; + createLBHealthMonitor(pool_id:string, type:any, delay:number, timeout:number, max_retries:number, data:any,cb:Function):any; + updateLBHealthMonitor(health_monitor_id:string, data:any,cb:Function):any; + removeLBHealthMonitor(health_monitor_id:string,cb:Function):any; + getLBStats(lb_id:string,cb:Function):any; + } + + export class Nova { + request: any; + mangler:any; + mangleObject:any; + url:any; + token:any; + timeout:any; + request_id:any; + user_name:any; + logger:any; + + constructor(endpoint_url: string, auth_token: string); + setTimeout(new_timeout: any):void; + setRequestID(request_id: any):void; + setUserName(user_name: string):void; + setLogger(logger: any):void; + setRequest(request_lib: any):void; + setMangler(mangle_lib: any):void; + getRequestOptions(path: string, json_value: any, extra_headers: any):RequestOption; + listServers(cb:Function):any; + getServer(id:string, cb:Function):any; + createServer(data:any, cb:Function):any; + renameServer(id:string, name:string, cb:Function):any; + resizeServer(id:string, flavor:any,cb:Function):any; + confirmResizeServer(id: string, cb:Function):any; + revertResizeServer(id:string, cb:Function):any; + removeServer(id:string,cb:Function):any; + rebootServer(id:string, cb:Function):any; + forceRebootServer(id: string, cb:Function):any; + stopServer(id: string, cb:Function):any; + startServer(id: string, cb:Function):any; + pauseServer(id: string, cb:Function):any; + suspendServer(id: string, cb:Function):any; + resumeServer(is: string, cb:Function):any; + getServerConsoleURL(type: any, id: string, cb:Function):any; + getServerLog(id: string, length: any, cb:Function):any; + createServerImage(id: string , data: any,cb:Function):any; + setServerMetadata(id: string , data: any,cb:Function):any; + listFlavors(cb:Function):any; + getFlavor(id: string ,cb:Function):any; + listFloatingIps(cb:Function):any; + getFloatingIp(id: string, cb:Function):any; + createFloatingIp(data: any,cb:Function):any; + removeFloatingIp(id: string, cb:Function):any; + associateFloatingIp(instance_id:any, ip_address: any,cb:Function):any; + disassociateFloatingIp(instance_id:any, ip_address: any,cb:Function):any; + listFloatingIpPools(cb:Function):any; + getFloatingIpPool(id: string, cb:Function):any; + listAvailabilityZones(cb:Function):any; + getAvailabilityZone(id: string, cb:Function):any; + listKeyPairs(cb:Function):any; + getKeyPair(id: string, cb:Function):any; + createKeyPair(name:string, public_key: any,cb:Function):any; + removeKeyPair(id:string,cb:Function):any; + getQuotaSet(project_id:string, cb:Function):any; + setQuotaSet(project_id:string, data: any,cb:Function):any; + getTenantUsage(project_id:string, start_date_obj:any, end_date_obj: any,cb:Function):any; + assignSecurityGroup(security_group_name:string, instance_id:string, cb:Function):any; + removeSecurityGroup(security_group_name: string, instance_id:string, cb:Function):any; + getImageMetaData(id:string, cb:Function):any; + setImageMetaData(id:string, data:any, cb:Function):any; + } + + export interface Project{ + general_token: string; + project_token: string; + glance: Glance; + neutron: Neutron; + nova: Nova; + octavia: Octavia; + } + + export class getSimpleProject{ + constructor(username: string, password: string, project_id: string, keystone_url: string, cb: Function); + } +} +export default "openstack-wrapper" \ No newline at end of file diff --git a/types/openstack-wrapper/openstack-wrapper-tests.ts b/types/openstack-wrapper/openstack-wrapper-tests.ts new file mode 100644 index 0000000000..a64dabcef8 --- /dev/null +++ b/types/openstack-wrapper/openstack-wrapper-tests.ts @@ -0,0 +1,7 @@ +import * as OSWrap from 'openstack-wrapper'; + +const keystone = new OSWrap.Keystone("endpoint-url"); +const glance = new OSWrap.Glance("endpoint-url","auth-token"); +const neutron = new OSWrap.Neutron("endpoint-url","auth-token"); +const octavia = new OSWrap.Octavia("endpoint-url","auth-token"); +const nova = new OSWrap.Nova("endpoint-url","auth-token"); \ No newline at end of file diff --git a/types/openstack-wrapper/tsconfig.json b/types/openstack-wrapper/tsconfig.json new file mode 100644 index 0000000000..0ccc091222 --- /dev/null +++ b/types/openstack-wrapper/tsconfig.json @@ -0,0 +1,22 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es6" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": false, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "openstack-wrapper-tests.ts" + ] +} \ No newline at end of file From c4cb5120f07a7d845c9ea9454800b8a7fe0af058 Mon Sep 17 00:00:00 2001 From: Karol Janyst Date: Tue, 15 Aug 2017 08:55:16 +0900 Subject: [PATCH 017/103] Revert changes from #18637 --- types/react-transition-group/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/react-transition-group/index.d.ts b/types/react-transition-group/index.d.ts index 9f3102fcdb..7150ea56ad 100644 --- a/types/react-transition-group/index.d.ts +++ b/types/react-transition-group/index.d.ts @@ -8,7 +8,7 @@ import * as CSSTransition from "react-transition-group/CSSTransition"; import Transition from "react-transition-group/Transition"; import * as TransitionGroup from "react-transition-group/TransitionGroup"; -export { +export = { CSSTransition, Transition, TransitionGroup From 0380922eb54535208a8d6f3c65a58c57f2394820 Mon Sep 17 00:00:00 2001 From: Danny Cochran Date: Mon, 14 Aug 2017 17:52:23 -0700 Subject: [PATCH 018/103] update react-redux connect options The existing Options had a redundant "withRef" parameter (it was already inheriting from ConnectOptions), and were missing some helper functions for diffing state and props: https://github.com/reactjs/react-redux/blob/fd81f1812c2420aa72805b61f1d06754cb5bfb43/docs/api.md#arguments --- types/react-redux/index.d.ts | 35 +++++++++++++++++++++++++++-------- 1 file changed, 27 insertions(+), 8 deletions(-) diff --git a/types/react-redux/index.d.ts b/types/react-redux/index.d.ts index fc3c54bef1..904b6083d0 100644 --- a/types/react-redux/index.d.ts +++ b/types/react-redux/index.d.ts @@ -109,28 +109,28 @@ export declare function connect( mapStateToProps: MapStateToPropsParam, mapDispatchToProps: null | undefined, mergeProps: null | undefined, - options: Options + options: Options ): InferableComponentEnhancerWithProps & TStateProps, TOwnProps>; export declare function connect( mapStateToProps: null | undefined, mapDispatchToProps: MapDispatchToPropsParam, mergeProps: null | undefined, - options: Options + options: Options ): InferableComponentEnhancerWithProps; export declare function connect( mapStateToProps: MapStateToPropsParam, mapDispatchToProps: MapDispatchToPropsParam, mergeProps: null | undefined, - options: Options + options: Options ): InferableComponentEnhancerWithProps; export declare function connect( mapStateToProps: MapStateToPropsParam, mapDispatchToProps: MapDispatchToPropsParam, mergeProps: MergeProps, - options: Options + options: Options ): InferableComponentEnhancerWithProps; interface MapStateToProps { @@ -164,7 +164,7 @@ interface MergeProps { (stateProps: TStateProps, dispatchProps: TDispatchProps, ownProps: TOwnProps): TMergedProps; } -interface Options extends ConnectOptions { +interface Options extends ConnectOptions { /** * If true, implements shouldComponentUpdate and shallowly compares the result of mergeProps, * preventing unnecessary updates, assuming that the component is a “pure” component @@ -173,11 +173,30 @@ interface Options extends ConnectOptions { * @default true */ pure?: boolean; + /** - * If true, stores a ref to the wrapped component instance and makes it available via - * getWrappedInstance() method. Defaults to false. + * When pure, compares incoming store state to its previous value. + * @default strictEqual */ - withRef?: boolean; + areStatesEqual?: (nextState: any, prevState: any) => boolean; + + /** + * When pure, compares incoming store state to its previous value. + * @default shallowEqual + */ + areOwnPropsEqual?: (nextOwnProps: TOwnProps, prevOwnProps: TOwnProps) => boolean; + + /** + * When pure, compares the result of mapStateToProps to its previous value. + * @default shallowEqual + */ + areStatePropsEqual?: (nextStateProps: TStateProps, prevStateProps: TStateProps) => boolean; + + /** + * When pure, compares the result of mergeProps to its previous value. + * @default shallowEqual + */ + areMergedPropsEqual?: (nextMergedProps: TMergedProps, prevMergedProps: TMergedProps) => boolean; } /** From 3342c4d8793008674506d5474479e5be84fd91aa Mon Sep 17 00:00:00 2001 From: Danny Cochran Date: Mon, 14 Aug 2017 17:55:53 -0700 Subject: [PATCH 019/103] remove trailing white space --- types/react-redux/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/react-redux/index.d.ts b/types/react-redux/index.d.ts index 904b6083d0..7b983b71b6 100644 --- a/types/react-redux/index.d.ts +++ b/types/react-redux/index.d.ts @@ -196,7 +196,7 @@ interface Options extends ConnectOpt * When pure, compares the result of mergeProps to its previous value. * @default shallowEqual */ - areMergedPropsEqual?: (nextMergedProps: TMergedProps, prevMergedProps: TMergedProps) => boolean; + areMergedPropsEqual?: (nextMergedProps: TMergedProps, prevMergedProps: TMergedProps) => boolean; } /** From d8356c7e970b881034a05fae17111f4088a2fbc8 Mon Sep 17 00:00:00 2001 From: sanjaymadane Date: Tue, 15 Aug 2017 11:20:21 +0800 Subject: [PATCH 020/103] Review comments addressed --- types/openstack-wrapper/index.d.ts | 528 ++++++++++++++--------------- 1 file changed, 261 insertions(+), 267 deletions(-) diff --git a/types/openstack-wrapper/index.d.ts b/types/openstack-wrapper/index.d.ts index 584b5a57c2..e656e25d4a 100644 --- a/types/openstack-wrapper/index.d.ts +++ b/types/openstack-wrapper/index.d.ts @@ -4,271 +4,265 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 -declare module "openstack-wrapper" { - export interface RequestOption{ - uri?: string; - headers?: any, - json?: any, - timeout?: any, - metricRequestID?: string, - metricUserName?: string, - metricLogger?: any - } - - export class Glance { - request: any; - mangler:any; - mangleObject:any; - url:any; - token:any; - timeout:any; - request_id:any; - user_name:any; - logger:any; - - constructor(endpoint_url: string, auth_token: string); - setTimeout(new_timeout: any):void; - setRequestID(request_id: any):void; - setUserName(user_name: string):void; - setLogger(logger: any):void; - setRequest(request_lib: any):void; - setMangler(mangle_lib: any):void; - getRequestOptions(path: string, json_value: any, extra_headers: any):RequestOption; - listImages(cb: Function):any; - getImage(id: any, cb: Function):any; - queueImage(data: any, cb: Function):any; - uploadImage(id: any, stream: any, cb: Function):any; - updateImage(id: any, data: any, cb: Function):any; - removeImage(id: any, cb: Function):any; - } - - export class Keystone { - request: any; - mangler:any; - mangleObject:any; - url:any; - timeout:any; - request_id:any; - user_name:any; - logger:any; - - constructor(endpoint_url: string); - - setTimeout(new_timeout: any):void; - setRequestID(request_id: any):void; - setUserName(user_name: string):void; - setLogger(logger: any):void; - setRequest(request_lib: any):void; - setMangler(mangle_lib: any):void; - getRequestOptions(path: string, json_value: any, extra_headers: any):RequestOption; - getToken(username: string, password: string, cb: Function):any; - getProjectTokenForReal(auth_data: any, cb: Function):any; - getProjectToken(access_token:any, project_id:any, cb: Function):any; - getProjectTokenByName(access_token:any, domain_id:any, project_name:string, cb: Function):any; - listProjects(admin_access_token: any, cb: Function):any; - listUserProjects(username:any, access_token: any, cb: Function):any; - getProjectByName(admin_access_token: any, project_name:any, cb: Function):any; - listRoles(project_token:any, cb: Function):any; - listRoleAssignments(project_token:any, project_id:any, cb: Function):any; - addRoleAssignment(project_token:any, project_id:any, entry_id:any, entry_type:any, role_id: any, cb: Function):any; - removeRoleAssignment(project_token:any, project_id:any, entry_id:any, entry_type:any, role_id: any, cb: Function):any; - listMetaEnvironments(auth_token:any, cb: Function):any; - listMetaOwningGroups(auth_token:any, cb: Function):any; - listProjectMeta(project_token:any, project_id:any, cb: Function):any; - updateProjectMeta(project_token:any, project_id:any,new_meta:any, cb: Function):any; - } - - export class Neutron { - request: any; - mangler:any; - mangleObject:any; - url:any; - token:any; - timeout:any; - request_id:any; - user_name:any; - logger:any; - - constructor(endpoint_url: string, auth_token: string); - setTimeout(new_timeout: any):void; - setRequestID(request_id: any):void; - setUserName(user_name: string):void; - setLogger(logger: any):void; - setRequest(request_lib: any):void; - setMangler(mangle_lib: any):void; - getRequestOptions(path: string, json_value: any, extra_headers: any):RequestOption; - listNetworks(cb: Function):any; - getNetwork(network_id:string, cb: Function):any; - listSubnets(cb: Function):any; - getSubnet(subnet_id:any, cb: Function):any; - listRouters(cb: Function):any; - getRouter(router_id:any, cb: Function):any; - createFloatingIp(floating_network_id:any, cb: Function):any; - listFloatingIps(options:any, cb: Function):any; - getFloatingIp(ip_id:any, cb: Function):any; - updateFloatingIp(ip_id:any, port_id:any,cb: Function):any; - removeFloatingIp(ip_id:any, cb: Function):any; - listPorts(options:any, cb: Function):any; - getPort(port_id:any,cb: Function):any; - updatePort(port_id:any, data:any, cb: Function):any; - listSecurityGroups(project_id:any, cb: Function):any; - getSecurityGroup(group_id:any, cb: Function):any; - createSecurityGroup(group_name:any, data:any, cb: Function):any; - updateSecurityGroup(group_id:any, data:any, cb: Function):any; - removeSecurityGroup(group_id:any, cb: Function):any; - listSecurityGroupRules(cb: Function):any; - getSecurityGroupRule(rule_id:any, cb: Function):any; - createSecurityGroupRule(group_id:any, data:any, cb: Function):any; - removeSecurityGroupRule(rule_id:any, cb: Function):any; - listLoadBalancers(cb: Function):any; - getLoadBalancer(lb_id:any, cb: Function):any; - createLoadBalancer(tenant_id:any, vip_subnet_id:any, cb: Function):any; - updateLoadBalancer(lb_id:any, data:any, cb: Function):any; - removeLoadBalancer(lb_id:any, cb: Function):any; - listLBListeners(cb: Function):any; - getLBListener(lb_id:any, cb: Function):any; - createLBListener(tenant_id:any, loadbalancer_id:any, description:any, protocol:any, data:any, cb: Function):any; - updateLBListener(listener_id:any, data:any, cb: Function):any; - removeLBListener(listener_id:any, cb: Function):any; - listLBPools(cb: Function):any; - getLBPool(pool_id:any, cb: Function):any; - createLBPool(tenant_id:any, protocol:any, lb_algorithm:any, listener_id:any, data:any, cb: Function):any; - updateLBPool(pool_id:any, data:any, cb: Function):any; - removeLBPool(pool_id:any, cb: Function):any; - listLBPoolMembers(pool_id:any, cb: Function):any; - getLBPoolMember(pool_id:any, member_id:any, cb: Function):any; - createLBPoolMember(pool_id:any, tenant_id:any, address:any, protocol_port:any, data:any, cb: Function):any; - updateLBPoolMember(pool_id:any, member_id:any, data:any, cb: Function):any; - removeLBPoolMember(pool_id:any, member_id:any, cb: Function):any; - listLBHealthMonitors(cb: Function):any; - getLBHealthMonitor(health_monitor_id:any, cb: Function):any; - createLBHealthMonitor(tenant_id:any, type:any, delay:any, timeout:any, max_retries:any, pool_id:any, data:any, cb: Function):any; - updateLBHealthMonitor(health_monitor_id:any, data:any, cb: Function):any; - removeLBHealthMonitor(health_monitor_id:any, cb: Function):any; - getLBStats(lb_id:any, cb: Function):any; - } - - export class Octavia { - url:any; - token:any; - timeout:any; - request_id:any; - user_name:string; - logger:any; - retries: number; - retry_delay: number; - - constructor(endpoint_url: string, auth_token: string); - setTimeout(new_timeout: any):void; - setRequestID(request_id: any):void; - setUserName(user_name: string):void; - setLogger(logger: any):void; - setRequest(request_lib: any):void; - setRetries(retries:number):void; - setRetryDelay(retry_delay:number):void; - getRequestOptions(path: string, json_value:any):RequestOption; - listLoadBalancers(cb:Function):any; - getLoadBalancer(lb_id: string, cb:Function):any; - createLoadBalancer(project_id:string, data:any,cb:Function):any; - updateLoadBalancer(lb_id:string, data:any,cb:Function):any; - removeLoadBalancer(lb_id:string, cb:Function):any; - listLBListeners(cb:Function):any; - getLBListener(listener_id: string, cb:Function):any; - createLBListener(loadbalancer_id:string, protocol:any, data:any,cb:Function):any; - updateLBListener(listener_id:string, data:any,cb:Function):any; - removeLBListener(listener_id: string, cb:Function):any; - listLBPools(cb:Function):any; - getLBPool(pool_id: string, cb:Function):any; - createLBPool(protocol:any, lb_algorithm:any, data:any,cb:Function):any; - updateLBPool(pool_id:string, data:any,cb:Function):any; - removeLBPool(pool_id:string, cb:Function):any; - listLBPoolMembers(pool_id:string, cb:Function):any; - getLBPoolMember(pool_id:string, member_id:string,cb:Function):any; - createLBPoolMember(pool_id:string, address:any, protocol_port:any, data:any,cb:Function):any; - updateLBPoolMember(pool_id:string, member_id:string, data:any,cb:Function):any; - removeLBPoolMember(pool_id:string, member_id:string,cb:Function):any; - listLBHealthMonitors(cb:Function):any; - getLBHealthMonitor(health_monitor_id:string,cb:Function):any; - createLBHealthMonitor(pool_id:string, type:any, delay:number, timeout:number, max_retries:number, data:any,cb:Function):any; - updateLBHealthMonitor(health_monitor_id:string, data:any,cb:Function):any; - removeLBHealthMonitor(health_monitor_id:string,cb:Function):any; - getLBStats(lb_id:string,cb:Function):any; - } - - export class Nova { - request: any; - mangler:any; - mangleObject:any; - url:any; - token:any; - timeout:any; - request_id:any; - user_name:any; - logger:any; - - constructor(endpoint_url: string, auth_token: string); - setTimeout(new_timeout: any):void; - setRequestID(request_id: any):void; - setUserName(user_name: string):void; - setLogger(logger: any):void; - setRequest(request_lib: any):void; - setMangler(mangle_lib: any):void; - getRequestOptions(path: string, json_value: any, extra_headers: any):RequestOption; - listServers(cb:Function):any; - getServer(id:string, cb:Function):any; - createServer(data:any, cb:Function):any; - renameServer(id:string, name:string, cb:Function):any; - resizeServer(id:string, flavor:any,cb:Function):any; - confirmResizeServer(id: string, cb:Function):any; - revertResizeServer(id:string, cb:Function):any; - removeServer(id:string,cb:Function):any; - rebootServer(id:string, cb:Function):any; - forceRebootServer(id: string, cb:Function):any; - stopServer(id: string, cb:Function):any; - startServer(id: string, cb:Function):any; - pauseServer(id: string, cb:Function):any; - suspendServer(id: string, cb:Function):any; - resumeServer(is: string, cb:Function):any; - getServerConsoleURL(type: any, id: string, cb:Function):any; - getServerLog(id: string, length: any, cb:Function):any; - createServerImage(id: string , data: any,cb:Function):any; - setServerMetadata(id: string , data: any,cb:Function):any; - listFlavors(cb:Function):any; - getFlavor(id: string ,cb:Function):any; - listFloatingIps(cb:Function):any; - getFloatingIp(id: string, cb:Function):any; - createFloatingIp(data: any,cb:Function):any; - removeFloatingIp(id: string, cb:Function):any; - associateFloatingIp(instance_id:any, ip_address: any,cb:Function):any; - disassociateFloatingIp(instance_id:any, ip_address: any,cb:Function):any; - listFloatingIpPools(cb:Function):any; - getFloatingIpPool(id: string, cb:Function):any; - listAvailabilityZones(cb:Function):any; - getAvailabilityZone(id: string, cb:Function):any; - listKeyPairs(cb:Function):any; - getKeyPair(id: string, cb:Function):any; - createKeyPair(name:string, public_key: any,cb:Function):any; - removeKeyPair(id:string,cb:Function):any; - getQuotaSet(project_id:string, cb:Function):any; - setQuotaSet(project_id:string, data: any,cb:Function):any; - getTenantUsage(project_id:string, start_date_obj:any, end_date_obj: any,cb:Function):any; - assignSecurityGroup(security_group_name:string, instance_id:string, cb:Function):any; - removeSecurityGroup(security_group_name: string, instance_id:string, cb:Function):any; - getImageMetaData(id:string, cb:Function):any; - setImageMetaData(id:string, data:any, cb:Function):any; - } - - export interface Project{ - general_token: string; - project_token: string; - glance: Glance; - neutron: Neutron; - nova: Nova; - octavia: Octavia; - } - - export class getSimpleProject{ - constructor(username: string, password: string, project_id: string, keystone_url: string, cb: Function); - } +export interface RequestOption{ + uri?: string; + headers?: any, + json?: any, + timeout?: any, + metricRequestID?: string, + metricUserName?: string, + metricLogger?: any } -export default "openstack-wrapper" \ No newline at end of file +export interface Project{ + general_token: string; + project_token: string; + glance: Glance; + neutron: Neutron; + nova: Nova; + octavia: Octavia; +} + +export function getSimpleProject(username: string, password: string, project_id: string, keystone_url: string, cb: Function):void; + +export class Nova { + request: any; + mangler:any; + mangleObject:any; + url:any; + token:any; + timeout:any; + request_id:any; + user_name:any; + logger:any; + + constructor(endpoint_url: string, auth_token: string); + setTimeout(new_timeout: any):void; + setRequestID(request_id: any):void; + setUserName(user_name: string):void; + setLogger(logger: any):void; + setRequest(request_lib: any):void; + setMangler(mangle_lib: any):void; + getRequestOptions(path: string, json_value: any, extra_headers: any):RequestOption; + listServers(cb:Function):any; + getServer(id:string, cb:Function):any; + createServer(data:any, cb:Function):any; + renameServer(id:string, name:string, cb:Function):any; + resizeServer(id:string, flavor:any,cb:Function):any; + confirmResizeServer(id: string, cb:Function):any; + revertResizeServer(id:string, cb:Function):any; + removeServer(id:string,cb:Function):any; + rebootServer(id:string, cb:Function):any; + forceRebootServer(id: string, cb:Function):any; + stopServer(id: string, cb:Function):any; + startServer(id: string, cb:Function):any; + pauseServer(id: string, cb:Function):any; + suspendServer(id: string, cb:Function):any; + resumeServer(is: string, cb:Function):any; + getServerConsoleURL(type: any, id: string, cb:Function):any; + getServerLog(id: string, length: any, cb:Function):any; + createServerImage(id: string , data: any,cb:Function):any; + setServerMetadata(id: string , data: any,cb:Function):any; + listFlavors(cb:Function):any; + getFlavor(id: string ,cb:Function):any; + listFloatingIps(cb:Function):any; + getFloatingIp(id: string, cb:Function):any; + createFloatingIp(data: any,cb:Function):any; + removeFloatingIp(id: string, cb:Function):any; + associateFloatingIp(instance_id:any, ip_address: any,cb:Function):any; + disassociateFloatingIp(instance_id:any, ip_address: any,cb:Function):any; + listFloatingIpPools(cb:Function):any; + getFloatingIpPool(id: string, cb:Function):any; + listAvailabilityZones(cb:Function):any; + getAvailabilityZone(id: string, cb:Function):any; + listKeyPairs(cb:Function):any; + getKeyPair(id: string, cb:Function):any; + createKeyPair(name:string, public_key: any,cb:Function):any; + removeKeyPair(id:string,cb:Function):any; + getQuotaSet(project_id:string, cb:Function):any; + setQuotaSet(project_id:string, data: any,cb:Function):any; + getTenantUsage(project_id:string, start_date_obj:any, end_date_obj: any,cb:Function):any; + assignSecurityGroup(security_group_name:string, instance_id:string, cb:Function):any; + removeSecurityGroup(security_group_name: string, instance_id:string, cb:Function):any; + getImageMetaData(id:string, cb:Function):any; + setImageMetaData(id:string, data:any, cb:Function):any; +} + +export class Glance { + request: any; + mangler:any; + mangleObject:any; + url:any; + token:any; + timeout:any; + request_id:any; + user_name:any; + logger:any; + + constructor(endpoint_url: string, auth_token: string); + setTimeout(new_timeout: any):void; + setRequestID(request_id: any):void; + setUserName(user_name: string):void; + setLogger(logger: any):void; + setRequest(request_lib: any):void; + setMangler(mangle_lib: any):void; + getRequestOptions(path: string, json_value: any, extra_headers: any):RequestOption; + listImages(cb: Function):any; + getImage(id: any, cb: Function):any; + queueImage(data: any, cb: Function):any; + uploadImage(id: any, stream: any, cb: Function):any; + updateImage(id: any, data: any, cb: Function):any; + removeImage(id: any, cb: Function):any; +} + +export class Keystone { + request: any; + mangler:any; + mangleObject:any; + url:any; + timeout:any; + request_id:any; + user_name:any; + logger:any; + + constructor(endpoint_url: string); + + setTimeout(new_timeout: any):void; + setRequestID(request_id: any):void; + setUserName(user_name: string):void; + setLogger(logger: any):void; + setRequest(request_lib: any):void; + setMangler(mangle_lib: any):void; + getRequestOptions(path: string, json_value: any, extra_headers: any):RequestOption; + getToken(username: string, password: string, cb: Function):any; + getProjectTokenForReal(auth_data: any, cb: Function):any; + getProjectToken(access_token:any, project_id:any, cb: Function):any; + getProjectTokenByName(access_token:any, domain_id:any, project_name:string, cb: Function):any; + listProjects(admin_access_token: any, cb: Function):any; + listUserProjects(username:any, access_token: any, cb: Function):any; + getProjectByName(admin_access_token: any, project_name:any, cb: Function):any; + listRoles(project_token:any, cb: Function):any; + listRoleAssignments(project_token:any, project_id:any, cb: Function):any; + addRoleAssignment(project_token:any, project_id:any, entry_id:any, entry_type:any, role_id: any, cb: Function):any; + removeRoleAssignment(project_token:any, project_id:any, entry_id:any, entry_type:any, role_id: any, cb: Function):any; + listMetaEnvironments(auth_token:any, cb: Function):any; + listMetaOwningGroups(auth_token:any, cb: Function):any; + listProjectMeta(project_token:any, project_id:any, cb: Function):any; + updateProjectMeta(project_token:any, project_id:any,new_meta:any, cb: Function):any; +} + +export class Neutron { + request: any; + mangler:any; + mangleObject:any; + url:any; + token:any; + timeout:any; + request_id:any; + user_name:any; + logger:any; + + constructor(endpoint_url: string, auth_token: string); + setTimeout(new_timeout: any):void; + setRequestID(request_id: any):void; + setUserName(user_name: string):void; + setLogger(logger: any):void; + setRequest(request_lib: any):void; + setMangler(mangle_lib: any):void; + getRequestOptions(path: string, json_value: any, extra_headers: any):RequestOption; + listNetworks(cb: Function):any; + getNetwork(network_id:string, cb: Function):any; + listSubnets(cb: Function):any; + getSubnet(subnet_id:any, cb: Function):any; + listRouters(cb: Function):any; + getRouter(router_id:any, cb: Function):any; + createFloatingIp(floating_network_id:any, cb: Function):any; + listFloatingIps(options:any, cb: Function):any; + getFloatingIp(ip_id:any, cb: Function):any; + updateFloatingIp(ip_id:any, port_id:any,cb: Function):any; + removeFloatingIp(ip_id:any, cb: Function):any; + listPorts(options:any, cb: Function):any; + getPort(port_id:any,cb: Function):any; + updatePort(port_id:any, data:any, cb: Function):any; + listSecurityGroups(project_id:any, cb: Function):any; + getSecurityGroup(group_id:any, cb: Function):any; + createSecurityGroup(group_name:any, data:any, cb: Function):any; + updateSecurityGroup(group_id:any, data:any, cb: Function):any; + removeSecurityGroup(group_id:any, cb: Function):any; + listSecurityGroupRules(cb: Function):any; + getSecurityGroupRule(rule_id:any, cb: Function):any; + createSecurityGroupRule(group_id:any, data:any, cb: Function):any; + removeSecurityGroupRule(rule_id:any, cb: Function):any; + listLoadBalancers(cb: Function):any; + getLoadBalancer(lb_id:any, cb: Function):any; + createLoadBalancer(tenant_id:any, vip_subnet_id:any, cb: Function):any; + updateLoadBalancer(lb_id:any, data:any, cb: Function):any; + removeLoadBalancer(lb_id:any, cb: Function):any; + listLBListeners(cb: Function):any; + getLBListener(lb_id:any, cb: Function):any; + createLBListener(tenant_id:any, loadbalancer_id:any, description:any, protocol:any, data:any, cb: Function):any; + updateLBListener(listener_id:any, data:any, cb: Function):any; + removeLBListener(listener_id:any, cb: Function):any; + listLBPools(cb: Function):any; + getLBPool(pool_id:any, cb: Function):any; + createLBPool(tenant_id:any, protocol:any, lb_algorithm:any, listener_id:any, data:any, cb: Function):any; + updateLBPool(pool_id:any, data:any, cb: Function):any; + removeLBPool(pool_id:any, cb: Function):any; + listLBPoolMembers(pool_id:any, cb: Function):any; + getLBPoolMember(pool_id:any, member_id:any, cb: Function):any; + createLBPoolMember(pool_id:any, tenant_id:any, address:any, protocol_port:any, data:any, cb: Function):any; + updateLBPoolMember(pool_id:any, member_id:any, data:any, cb: Function):any; + removeLBPoolMember(pool_id:any, member_id:any, cb: Function):any; + listLBHealthMonitors(cb: Function):any; + getLBHealthMonitor(health_monitor_id:any, cb: Function):any; + createLBHealthMonitor(tenant_id:any, type:any, delay:any, timeout:any, max_retries:any, pool_id:any, data:any, cb: Function):any; + updateLBHealthMonitor(health_monitor_id:any, data:any, cb: Function):any; + removeLBHealthMonitor(health_monitor_id:any, cb: Function):any; + getLBStats(lb_id:any, cb: Function):any; +} + +export class Octavia { + url:any; + token:any; + timeout:any; + request_id:any; + user_name:string; + logger:any; + retries: number; + retry_delay: number; + + constructor(endpoint_url: string, auth_token: string); + setTimeout(new_timeout: any):void; + setRequestID(request_id: any):void; + setUserName(user_name: string):void; + setLogger(logger: any):void; + setRequest(request_lib: any):void; + setRetries(retries:number):void; + setRetryDelay(retry_delay:number):void; + getRequestOptions(path: string, json_value:any):RequestOption; + listLoadBalancers(cb:Function):any; + getLoadBalancer(lb_id: string, cb:Function):any; + createLoadBalancer(project_id:string, data:any,cb:Function):any; + updateLoadBalancer(lb_id:string, data:any,cb:Function):any; + removeLoadBalancer(lb_id:string, cb:Function):any; + listLBListeners(cb:Function):any; + getLBListener(listener_id: string, cb:Function):any; + createLBListener(loadbalancer_id:string, protocol:any, data:any,cb:Function):any; + updateLBListener(listener_id:string, data:any,cb:Function):any; + removeLBListener(listener_id: string, cb:Function):any; + listLBPools(cb:Function):any; + getLBPool(pool_id: string, cb:Function):any; + createLBPool(protocol:any, lb_algorithm:any, data:any,cb:Function):any; + updateLBPool(pool_id:string, data:any,cb:Function):any; + removeLBPool(pool_id:string, cb:Function):any; + listLBPoolMembers(pool_id:string, cb:Function):any; + getLBPoolMember(pool_id:string, member_id:string,cb:Function):any; + createLBPoolMember(pool_id:string, address:any, protocol_port:any, data:any,cb:Function):any; + updateLBPoolMember(pool_id:string, member_id:string, data:any,cb:Function):any; + removeLBPoolMember(pool_id:string, member_id:string,cb:Function):any; + listLBHealthMonitors(cb:Function):any; + getLBHealthMonitor(health_monitor_id:string,cb:Function):any; + createLBHealthMonitor(pool_id:string, type:any, delay:number, timeout:number, max_retries:number, data:any,cb:Function):any; + updateLBHealthMonitor(health_monitor_id:string, data:any,cb:Function):any; + removeLBHealthMonitor(health_monitor_id:string,cb:Function):any; + getLBStats(lb_id:string,cb:Function):any; +} \ No newline at end of file From 90868bf24a438a1da4ba57045e99f0004b408e33 Mon Sep 17 00:00:00 2001 From: Chuang Yu Date: Tue, 15 Aug 2017 11:38:57 +0800 Subject: [PATCH 021/103] update @types/react-test-renderer index.d.ts fix #18953 --- types/react-test-renderer/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/react-test-renderer/index.d.ts b/types/react-test-renderer/index.d.ts index a7eb0bf739..974c86da6f 100644 --- a/types/react-test-renderer/index.d.ts +++ b/types/react-test-renderer/index.d.ts @@ -14,7 +14,7 @@ export interface ReactTestInstance { } export interface ReactTestRendererJSON { type: string; - props: { [propName: string]: string }; + props: { [propName: string]: any }; children: null | Array; $$typeof?: any; } From 911957ebf4de5226cc748eb6cbeb7daefc9e23ad Mon Sep 17 00:00:00 2001 From: Dimitri Benin Date: Tue, 15 Aug 2017 10:22:47 +0200 Subject: [PATCH 022/103] [on-finished] improve typings, enable strict null checks & linting --- types/on-finished/index.d.ts | 19 +++++++++---------- types/on-finished/on-finished-tests.ts | 24 +++++++++++++++--------- types/on-finished/tsconfig.json | 4 ++-- types/on-finished/tslint.json | 1 + 4 files changed, 27 insertions(+), 21 deletions(-) create mode 100644 types/on-finished/tslint.json diff --git a/types/on-finished/index.d.ts b/types/on-finished/index.d.ts index ec07267131..2f2eec1075 100644 --- a/types/on-finished/index.d.ts +++ b/types/on-finished/index.d.ts @@ -1,17 +1,16 @@ -// Type definitions for on-finished v2.2.0 +// Type definitions for on-finished 2.3 // Project: https://github.com/jshttp/on-finished // Definitions by: Honza Dvorsky +// BendingBender // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// - - - - -declare function onFinished(msg: NodeJS.EventEmitter, listener: Function): NodeJS.EventEmitter; - -declare namespace onFinished { - export function isFinished(msg: NodeJS.EventEmitter): boolean; -} +import { IncomingMessage, OutgoingMessage } from 'http'; export = onFinished; + +declare function onFinished(msg: T, listener: (err: Error | null, msg: T) => void): T; + +declare namespace onFinished { + function isFinished(msg: IncomingMessage | OutgoingMessage): boolean; +} diff --git a/types/on-finished/on-finished-tests.ts b/types/on-finished/on-finished-tests.ts index 081e2cd37b..4177c48b5b 100644 --- a/types/on-finished/on-finished-tests.ts +++ b/types/on-finished/on-finished-tests.ts @@ -1,13 +1,19 @@ -import events = require('events'); import onFinished = require('on-finished'); +import { createServer } from 'http'; -function test_finished() { +createServer((req, res) => { + onFinished(req, (err, req) => { + err; // $ExpectType Error | null + req; // $ExpectType IncomingMessage + }); - var e = new events.EventEmitter(); + onFinished(res, (err, res) => { + err; // $ExpectType Error | null + res; // $ExpectType ServerResponse + }); - var ret: NodeJS.EventEmitter = onFinished(e, () => { - //callback - }); - - var finished: boolean = onFinished.isFinished(e); -} + // $ExpectType boolean + onFinished.isFinished(req); + // $ExpectType boolean + onFinished.isFinished(res); +}); diff --git a/types/on-finished/tsconfig.json b/types/on-finished/tsconfig.json index eef95ef71e..9bf39ded15 100644 --- a/types/on-finished/tsconfig.json +++ b/types/on-finished/tsconfig.json @@ -6,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -19,4 +19,4 @@ "index.d.ts", "on-finished-tests.ts" ] -} \ No newline at end of file +} diff --git a/types/on-finished/tslint.json b/types/on-finished/tslint.json new file mode 100644 index 0000000000..3db14f85ea --- /dev/null +++ b/types/on-finished/tslint.json @@ -0,0 +1 @@ +{ "extends": "dtslint/dt.json" } From ad093c1036cddba570f886bc0ca25f684cee49fa Mon Sep 17 00:00:00 2001 From: Marc Ghorayeb Date: Wed, 9 Aug 2017 11:27:54 +0200 Subject: [PATCH 023/103] [node] homogenize zlib input to Buffer or string and results to Buffer --- types/node/index.d.ts | 30 +++++++++++++++--------------- types/node/node-tests.ts | 16 ++++++++++++++++ types/node/v0/index.d.ts | 28 ++++++++++++++-------------- types/node/v0/node-tests.ts | 16 ++++++++++++++++ types/node/v4/index.d.ts | 28 ++++++++++++++-------------- types/node/v6/index.d.ts | 20 ++++++++++---------- types/node/v6/node-tests.ts | 16 ++++++++++++++++ types/node/v7/index.d.ts | 30 +++++++++++++++--------------- types/node/v7/node-tests.ts | 16 ++++++++++++++++ 9 files changed, 132 insertions(+), 68 deletions(-) diff --git a/types/node/index.d.ts b/types/node/index.d.ts index 52186217bd..72071c7c56 100644 --- a/types/node/index.d.ts +++ b/types/node/index.d.ts @@ -1278,21 +1278,21 @@ declare module "zlib" { export function deflateRaw(buf: Buffer | string, callback: (error: Error, result: Buffer) => void): void; export function deflateRaw(buf: Buffer | string, options: ZlibOptions, callback: (error: Error, result: Buffer) => void): void; export function deflateRawSync(buf: Buffer | string, options?: ZlibOptions): Buffer; - export function gzip(buf: Buffer, callback: (error: Error, result: Buffer) => void): void; - export function gzip(buf: Buffer, options: ZlibOptions, callback: (error: Error, result: Buffer) => void): void; - export function gzipSync(buf: Buffer, options?: ZlibOptions): Buffer; - export function gunzip(buf: Buffer, callback: (error: Error, result: Buffer) => void): void; - export function gunzip(buf: Buffer, options: ZlibOptions, callback: (error: Error, result: Buffer) => void): void; - export function gunzipSync(buf: Buffer, options?: ZlibOptions): Buffer; - export function inflate(buf: Buffer, callback: (error: Error, result: Buffer) => void): void; - export function inflate(buf: Buffer, options: ZlibOptions, callback: (error: Error, result: Buffer) => void): void; - export function inflateSync(buf: Buffer, options?: ZlibOptions): Buffer; - export function inflateRaw(buf: Buffer, callback: (error: Error, result: Buffer) => void): void; - export function inflateRaw(buf: Buffer, options: ZlibOptions, callback: (error: Error, result: Buffer) => void): void; - export function inflateRawSync(buf: Buffer, options?: ZlibOptions): Buffer; - export function unzip(buf: Buffer, callback: (error: Error, result: Buffer) => void): void; - export function unzip(buf: Buffer, options: ZlibOptions, callback: (error: Error, result: Buffer) => void): void; - export function unzipSync(buf: Buffer, options?: ZlibOptions): Buffer; + export function gzip(buf: Buffer | string, callback: (error: Error, result: Buffer) => void): void; + export function gzip(buf: Buffer | string, options: ZlibOptions, callback: (error: Error, result: Buffer) => void): void; + export function gzipSync(buf: Buffer | string, options?: ZlibOptions): Buffer; + export function gunzip(buf: Buffer | string, callback: (error: Error, result: Buffer) => void): void; + export function gunzip(buf: Buffer | string, options: ZlibOptions, callback: (error: Error, result: Buffer) => void): void; + export function gunzipSync(buf: Buffer | string, options?: ZlibOptions): Buffer; + export function inflate(buf: Buffer | string, callback: (error: Error, result: Buffer) => void): void; + export function inflate(buf: Buffer | string, options: ZlibOptions, callback: (error: Error, result: Buffer) => void): void; + export function inflateSync(buf: Buffer | string, options?: ZlibOptions): Buffer; + export function inflateRaw(buf: Buffer | string, callback: (error: Error, result: Buffer) => void): void; + export function inflateRaw(buf: Buffer | string, options: ZlibOptions, callback: (error: Error, result: Buffer) => void): void; + export function inflateRawSync(buf: Buffer | string, options?: ZlibOptions): Buffer; + export function unzip(buf: Buffer | string, callback: (error: Error, result: Buffer) => void): void; + export function unzip(buf: Buffer | string, options: ZlibOptions, callback: (error: Error, result: Buffer) => void): void; + export function unzipSync(buf: Buffer | string, options?: ZlibOptions): Buffer; export namespace constants { // Allowed flush values. diff --git a/types/node/node-tests.ts b/types/node/node-tests.ts index ecd315eee9..7fab05644f 100644 --- a/types/node/node-tests.ts +++ b/types/node/node-tests.ts @@ -2820,3 +2820,19 @@ namespace async_hooks_tests { const tId: number = async_hooks.triggerAsyncId(); const eId: number = async_hooks.executionAsyncId(); } + +//////////////////////////////////////////////////// +/// zlib tests : http://nodejs.org/api/zlib.html /// +//////////////////////////////////////////////////// + +namespace zlib_tests { + { + const gzipped = zlib.gzipSync('test'); + const unzipped = zlib.gunzipSync(gzipped.toString()); + } + + { + const deflate = zlib.deflateSync('test'); + const inflate = zlib.inflateSync(deflate.toString()); + } +} diff --git a/types/node/v0/index.d.ts b/types/node/v0/index.d.ts index fdbf9dd518..aa7996021c 100644 --- a/types/node/v0/index.d.ts +++ b/types/node/v0/index.d.ts @@ -664,20 +664,20 @@ declare module "zlib" { export function createInflateRaw(options?: ZlibOptions): InflateRaw; export function createUnzip(options?: ZlibOptions): Unzip; - export function deflate(buf: Buffer, callback: (error: Error, result: any) =>void ): void; - export function deflateSync(buf: Buffer, options?: ZlibOptions): any; - export function deflateRaw(buf: Buffer, callback: (error: Error, result: any) =>void ): void; - export function deflateRawSync(buf: Buffer, options?: ZlibOptions): any; - export function gzip(buf: Buffer, callback: (error: Error, result: any) =>void ): void; - export function gzipSync(buf: Buffer, options?: ZlibOptions): any; - export function gunzip(buf: Buffer, callback: (error: Error, result: any) =>void ): void; - export function gunzipSync(buf: Buffer, options?: ZlibOptions): any; - export function inflate(buf: Buffer, callback: (error: Error, result: any) =>void ): void; - export function inflateSync(buf: Buffer, options?: ZlibOptions): any; - export function inflateRaw(buf: Buffer, callback: (error: Error, result: any) =>void ): void; - export function inflateRawSync(buf: Buffer, options?: ZlibOptions): any; - export function unzip(buf: Buffer, callback: (error: Error, result: any) =>void ): void; - export function unzipSync(buf: Buffer, options?: ZlibOptions): any; + export function deflate(buf: Buffer | string, callback: (error: Error, result: Buffer) => void): void; + export function deflateSync(buf: Buffer | string, options?: ZlibOptions): Buffer; + export function deflateRaw(buf: Buffer | string, callback: (error: Error, result: Buffer) => void): void; + export function deflateRawSync(buf: Buffer | string, options?: ZlibOptions): Buffer; + export function gzip(buf: Buffer | string, callback: (error: Error, result: Buffer) => void): void; + export function gzipSync(buf: Buffer | string, options?: ZlibOptions): Buffer; + export function gunzip(buf: Buffer | string, callback: (error: Error, result: Buffer) => void): void; + export function gunzipSync(buf: Buffer | string, options?: ZlibOptions): Buffer; + export function inflate(buf: Buffer | string, callback: (error: Error, result: Buffer) => void): void; + export function inflateSync(buf: Buffer | string, options?: ZlibOptions): Buffer; + export function inflateRaw(buf: Buffer | string, callback: (error: Error, result: Buffer) => void): void; + export function inflateRawSync(buf: Buffer | string, options?: ZlibOptions): Buffer; + export function unzip(buf: Buffer | string, callback: (error: Error, result: Buffer) => void): void; + export function unzipSync(buf: Buffer | string, options?: ZlibOptions): Buffer; // Constants export var Z_NO_FLUSH: number; diff --git a/types/node/v0/node-tests.ts b/types/node/v0/node-tests.ts index 6c94757bf7..91e85f5a0c 100644 --- a/types/node/v0/node-tests.ts +++ b/types/node/v0/node-tests.ts @@ -448,3 +448,19 @@ namespace string_decoder_tests { childProcess.exec("echo test"); childProcess.spawnSync("echo test"); + +//////////////////////////////////////////////////// +/// zlib tests : http://nodejs.org/api/zlib.html /// +//////////////////////////////////////////////////// + +namespace zlib_tests { + { + const gzipped = zlib.gzipSync('test'); + const unzipped = zlib.gunzipSync(gzipped.toString()); + } + + { + const deflate = zlib.deflateSync('test'); + const inflate = zlib.inflateSync(deflate.toString()); + } +} diff --git a/types/node/v4/index.d.ts b/types/node/v4/index.d.ts index ad9f022b84..5e7bfd2926 100644 --- a/types/node/v4/index.d.ts +++ b/types/node/v4/index.d.ts @@ -802,20 +802,20 @@ declare module "zlib" { export function createInflateRaw(options?: ZlibOptions): InflateRaw; export function createUnzip(options?: ZlibOptions): Unzip; - export function deflate(buf: Buffer | string, callback: (error: Error, result: any) =>void ): void; - export function deflateSync(buf: Buffer | string, options?: ZlibOptions): any; - export function deflateRaw(buf: Buffer | string, callback: (error: Error, result: any) =>void ): void; - export function deflateRawSync(buf: Buffer | string, options?: ZlibOptions): any; - export function gzip(buf: Buffer | string, callback: (error: Error, result: any) =>void ): void; - export function gzipSync(buf: Buffer | string, options?: ZlibOptions): any; - export function gunzip(buf: Buffer | string, callback: (error: Error, result: any) =>void ): void; - export function gunzipSync(buf: Buffer | string, options?: ZlibOptions): any; - export function inflate(buf: Buffer | string, callback: (error: Error, result: any) =>void ): void; - export function inflateSync(buf: Buffer | string, options?: ZlibOptions): any; - export function inflateRaw(buf: Buffer | string, callback: (error: Error, result: any) =>void ): void; - export function inflateRawSync(buf: Buffer | string, options?: ZlibOptions): any; - export function unzip(buf: Buffer | string, callback: (error: Error, result: any) =>void ): void; - export function unzipSync(buf: Buffer | string, options?: ZlibOptions): any; + export function deflate(buf: Buffer | string, callback: (error: Error, result: Buffer) => void): void; + export function deflateSync(buf: Buffer | string, options?: ZlibOptions): Buffer; + export function deflateRaw(buf: Buffer | string, callback: (error: Error, result: Buffer) => void): void; + export function deflateRawSync(buf: Buffer | string, options?: ZlibOptions): Buffer; + export function gzip(buf: Buffer | string, callback: (error: Error, result: Buffer) => void): void; + export function gzipSync(buf: Buffer | string, options?: ZlibOptions): Buffer; + export function gunzip(buf: Buffer | string, callback: (error: Error, result: Buffer) => void): void; + export function gunzipSync(buf: Buffer | string, options?: ZlibOptions): Buffer; + export function inflate(buf: Buffer | string, callback: (error: Error, result: Buffer) => void): void; + export function inflateSync(buf: Buffer | string, options?: ZlibOptions): Buffer; + export function inflateRaw(buf: Buffer | string, callback: (error: Error, result: Buffer) => void): void; + export function inflateRawSync(buf: Buffer | string, options?: ZlibOptions): Buffer; + export function unzip(buf: Buffer | string, callback: (error: Error, result: Buffer) => void): void; + export function unzipSync(buf: Buffer | string, options?: ZlibOptions): Buffer; // Constants export var Z_NO_FLUSH: number; diff --git a/types/node/v6/index.d.ts b/types/node/v6/index.d.ts index cbf93b8361..38b6d41798 100644 --- a/types/node/v6/index.d.ts +++ b/types/node/v6/index.d.ts @@ -1092,16 +1092,16 @@ declare module "zlib" { export function deflateSync(buf: Buffer | string, options?: ZlibOptions): Buffer; export function deflateRaw(buf: Buffer | string, callback: (error: Error, result: Buffer) => void): void; export function deflateRawSync(buf: Buffer | string, options?: ZlibOptions): Buffer; - export function gzip(buf: Buffer, callback: (error: Error, result: Buffer) => void): void; - export function gzipSync(buf: Buffer, options?: ZlibOptions): Buffer; - export function gunzip(buf: Buffer, callback: (error: Error, result: Buffer) => void): void; - export function gunzipSync(buf: Buffer, options?: ZlibOptions): Buffer; - export function inflate(buf: Buffer, callback: (error: Error, result: Buffer) => void): void; - export function inflateSync(buf: Buffer, options?: ZlibOptions): Buffer; - export function inflateRaw(buf: Buffer, callback: (error: Error, result: Buffer) => void): void; - export function inflateRawSync(buf: Buffer, options?: ZlibOptions): Buffer; - export function unzip(buf: Buffer, callback: (error: Error, result: Buffer) => void): void; - export function unzipSync(buf: Buffer, options?: ZlibOptions): Buffer; + export function gzip(buf: Buffer | string, callback: (error: Error, result: Buffer) => void): void; + export function gzipSync(buf: Buffer | string, options?: ZlibOptions): Buffer; + export function gunzip(buf: Buffer | string, callback: (error: Error, result: Buffer) => void): void; + export function gunzipSync(buf: Buffer | string, options?: ZlibOptions): Buffer; + export function inflate(buf: Buffer | string, callback: (error: Error, result: Buffer) => void): void; + export function inflateSync(buf: Buffer | string, options?: ZlibOptions): Buffer; + export function inflateRaw(buf: Buffer | string, callback: (error: Error, result: Buffer) => void): void; + export function inflateRawSync(buf: Buffer | string, options?: ZlibOptions): Buffer; + export function unzip(buf: Buffer | string, callback: (error: Error, result: Buffer) => void): void; + export function unzipSync(buf: Buffer | string, options?: ZlibOptions): Buffer; // Constants export var Z_NO_FLUSH: number; diff --git a/types/node/v6/node-tests.ts b/types/node/v6/node-tests.ts index 6e5901541e..3607a5bec2 100644 --- a/types/node/v6/node-tests.ts +++ b/types/node/v6/node-tests.ts @@ -2366,3 +2366,19 @@ client.connect(8888, 'localhost'); client.listbreakpoints((err, body, packet) => { }); + +//////////////////////////////////////////////////// +/// zlib tests : http://nodejs.org/api/zlib.html /// +//////////////////////////////////////////////////// + +namespace zlib_tests { + { + const gzipped = zlib.gzipSync('test'); + const unzipped = zlib.gunzipSync(gzipped.toString()); + } + + { + const deflate = zlib.deflateSync('test'); + const inflate = zlib.inflateSync(deflate.toString()); + } +} diff --git a/types/node/v7/index.d.ts b/types/node/v7/index.d.ts index ffc19c34b1..4f40de2d58 100644 --- a/types/node/v7/index.d.ts +++ b/types/node/v7/index.d.ts @@ -1123,21 +1123,21 @@ declare module "zlib" { export function deflateRaw(buf: Buffer | string, callback: (error: Error, result: Buffer) => void): void; export function deflateRaw(buf: Buffer | string, options: ZlibOptions, callback: (error: Error, result: Buffer) => void): void; export function deflateRawSync(buf: Buffer | string, options?: ZlibOptions): Buffer; - export function gzip(buf: Buffer, callback: (error: Error, result: Buffer) => void): void; - export function gzip(buf: Buffer, options: ZlibOptions, callback: (error: Error, result: Buffer) => void): void; - export function gzipSync(buf: Buffer, options?: ZlibOptions): Buffer; - export function gunzip(buf: Buffer, callback: (error: Error, result: Buffer) => void): void; - export function gunzip(buf: Buffer, options: ZlibOptions, callback: (error: Error, result: Buffer) => void): void; - export function gunzipSync(buf: Buffer, options?: ZlibOptions): Buffer; - export function inflate(buf: Buffer, callback: (error: Error, result: Buffer) => void): void; - export function inflate(buf: Buffer, options: ZlibOptions, callback: (error: Error, result: Buffer) => void): void; - export function inflateSync(buf: Buffer, options?: ZlibOptions): Buffer; - export function inflateRaw(buf: Buffer, callback: (error: Error, result: Buffer) => void): void; - export function inflateRaw(buf: Buffer, options: ZlibOptions, callback: (error: Error, result: Buffer) => void): void; - export function inflateRawSync(buf: Buffer, options?: ZlibOptions): Buffer; - export function unzip(buf: Buffer, callback: (error: Error, result: Buffer) => void): void; - export function unzip(buf: Buffer, options: ZlibOptions, callback: (error: Error, result: Buffer) => void): void; - export function unzipSync(buf: Buffer, options?: ZlibOptions): Buffer; + export function gzip(buf: Buffer | string, callback: (error: Error, result: Buffer) => void): void; + export function gzip(buf: Buffer | string, options: ZlibOptions, callback: (error: Error, result: Buffer) => void): void; + export function gzipSync(buf: Buffer | string, options?: ZlibOptions): Buffer; + export function gunzip(buf: Buffer | string, callback: (error: Error, result: Buffer) => void): void; + export function gunzip(buf: Buffer | string, options: ZlibOptions, callback: (error: Error, result: Buffer) => void): void; + export function gunzipSync(buf: Buffer | string, options?: ZlibOptions): Buffer; + export function inflate(buf: Buffer | string, callback: (error: Error, result: Buffer) => void): void; + export function inflate(buf: Buffer | string, options: ZlibOptions, callback: (error: Error, result: Buffer) => void): void; + export function inflateSync(buf: Buffer | string, options?: ZlibOptions): Buffer; + export function inflateRaw(buf: Buffer | string, callback: (error: Error, result: Buffer) => void): void; + export function inflateRaw(buf: Buffer | string, options: ZlibOptions, callback: (error: Error, result: Buffer) => void): void; + export function inflateRawSync(buf: Buffer | string, options?: ZlibOptions): Buffer; + export function unzip(buf: Buffer | string, callback: (error: Error, result: Buffer) => void): void; + export function unzip(buf: Buffer | string, options: ZlibOptions, callback: (error: Error, result: Buffer) => void): void; + export function unzipSync(buf: Buffer | string, options?: ZlibOptions): Buffer; export namespace constants { // Allowed flush values. diff --git a/types/node/v7/node-tests.ts b/types/node/v7/node-tests.ts index 60118e5eac..860a4dc56b 100644 --- a/types/node/v7/node-tests.ts +++ b/types/node/v7/node-tests.ts @@ -2510,3 +2510,19 @@ client.connect(8888, 'localhost'); client.listbreakpoints((err, body, packet) => { }); + +//////////////////////////////////////////////////// +/// zlib tests : http://nodejs.org/api/zlib.html /// +//////////////////////////////////////////////////// + +namespace zlib_tests { + { + const gzipped = zlib.gzipSync('test'); + const unzipped = zlib.gunzipSync(gzipped.toString()); + } + + { + const deflate = zlib.deflateSync('test'); + const inflate = zlib.inflateSync(deflate.toString()); + } +} From 2da9431df154a0725fbe7d637ee2a604c84f6d63 Mon Sep 17 00:00:00 2001 From: Danny Cochran Date: Tue, 15 Aug 2017 07:47:06 -0700 Subject: [PATCH 024/103] Make all arguments for Options optional next-redux-wrapper uses Options -- a separate PR can add arguments there. --- types/react-redux/index.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/types/react-redux/index.d.ts b/types/react-redux/index.d.ts index 7b983b71b6..3dce0d9bdf 100644 --- a/types/react-redux/index.d.ts +++ b/types/react-redux/index.d.ts @@ -164,7 +164,7 @@ interface MergeProps { (stateProps: TStateProps, dispatchProps: TDispatchProps, ownProps: TOwnProps): TMergedProps; } -interface Options extends ConnectOptions { +interface Options extends ConnectOptions { /** * If true, implements shouldComponentUpdate and shallowly compares the result of mergeProps, * preventing unnecessary updates, assuming that the component is a “pure” component @@ -181,7 +181,7 @@ interface Options extends ConnectOpt areStatesEqual?: (nextState: any, prevState: any) => boolean; /** - * When pure, compares incoming store state to its previous value. + * When pure, compares incoming props to its previous value. * @default shallowEqual */ areOwnPropsEqual?: (nextOwnProps: TOwnProps, prevOwnProps: TOwnProps) => boolean; From b68c87fee6212713e97c11eb713fb6c476778ab9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marco=20Aur=C3=A9lio?= Date: Tue, 15 Aug 2017 12:53:34 -0300 Subject: [PATCH 025/103] react-redux: Make dispatch property optional That way the function returned by `connect()` (when no `mapDispatchToProps` function is specified) can also take React classes that don't have a `dispatch` prop declared. (But we get to keep the type checking for the classes that do) --- types/react-redux/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/react-redux/index.d.ts b/types/react-redux/index.d.ts index fc3c54bef1..017c674da0 100644 --- a/types/react-redux/index.d.ts +++ b/types/react-redux/index.d.ts @@ -24,7 +24,7 @@ type Diff = ({ [P in T]: P } & { [P in U]: n type Omit = Pick>; export interface DispatchProp { - dispatch: Dispatch; + dispatch?: Dispatch; } interface AdvancedComponentDecorator { From 9b9631b4df52d55498bbcf8e01bbbc6ba3ed3abc Mon Sep 17 00:00:00 2001 From: Dimitri Benin Date: Tue, 15 Aug 2017 18:54:01 +0200 Subject: [PATCH 026/103] [http-errors] upgrade to v1.6, enable strict null checks & linting --- types/http-errors/http-errors-tests.ts | 82 +++++------ types/http-errors/index.d.ts | 189 +++++++++++++------------ types/http-errors/tsconfig.json | 4 +- types/http-errors/tslint.json | 1 + 4 files changed, 139 insertions(+), 137 deletions(-) create mode 100644 types/http-errors/tslint.json diff --git a/types/http-errors/http-errors-tests.ts b/types/http-errors/http-errors-tests.ts index 51017828a1..080ac3b61e 100644 --- a/types/http-errors/http-errors-tests.ts +++ b/types/http-errors/http-errors-tests.ts @@ -1,86 +1,74 @@ - import * as createError from 'http-errors'; import * as express from 'express'; -var app = express(); +const app = express(); -declare global { - namespace Express { - export interface Request { - user?: any - } - } -} - -app.use(function (req, res, next) { - if (!req.user) return next(createError(401, 'Please login to view this page.')); +app.use((req, res, next) => { + if (!req) return next(createError('Please login to view this page.', 401)); next(); }); /* Examples taken from https://github.com/jshttp/http-errors/blob/1.3.1/test/test.js */ // createError(status) -var err = createError(404); -console.log(err.name); -console.log(err.message); -console.log(err.status); -console.log(err.statusCode); -console.log(err.expose); -console.log(err.headers); +let err = createError(404); +err; // $ExpectType HttpError +err.name; // $ExpectType string +err.message; // $ExpectType string +err.status; // $ExpectType number +err.statusCode; // $ExpectType number +err.expose; // $ExpectType boolean +err.headers; // $ExpectType { [key: string]: string; } | undefined // createError(status, msg) -var err = createError(404, 'LOL'); +err = createError(404, 'LOL'); // createError(status, props) -var err = createError(404, {id: 1}); +err = createError(404, {id: 1}); // createError(props) -var err = createError({id: 1}); -console.log(( err).id); +err = createError({id: 1}); +// $ExpectType any +err.id; // createError(msg, status) -var err = createError('LOL', 404); +err = createError('LOL', 404); // createError(msg) -var err = createError('LOL'); +err = createError('LOL'); // createError(msg, props) -var err = createError('LOL', {id: 1}); +err = createError('LOL', {id: 1}); // createError(err) -var err = createError(new Error('LOL')); +err = createError(new Error('LOL')); // createError(err, props) -var err = createError(new Error('LOL'), {id: 1}); +err = createError(new Error('LOL'), {id: 1}); // createError(status, err, props) -var err = createError(404, new Error('LOL'), {id: 1}); +err = createError(404, new Error('LOL'), {id: 1}); // createError(status, msg, props) -var err = createError(404, 'LOL', {id: 1}); +err = createError(404, 'LOL', {id: 1}); // createError(status, msg, { expose: false }) -var err = createError(404, 'LOL', {expose: false}) +err = createError(404, 'LOL', {expose: false}); -// new createError.NotFound() -var err = new createError.NotFound(); +err = new createError.NotFound(); +err = new createError.InternalServerError(); +err = new createError[404](); -// new createError.InternalServerError() -var err = new createError.InternalServerError(); - -// new createError['404']() -var err = new createError['404'](); - -//createError['404'](); // TypeScript should fail with "Did you mean to include 'new'?" -//new createError(); // TypeScript should fail with "Only a void function can be called with the 'new' keyword" +createError['404'](); // $ExpectError +new createError(); // $ExpectError // Error messages can have custom messages -var err = new createError.NotFound('This might be a problem'); -var err = new createError['404']('This might be a problem'); +err = new createError.NotFound('This might be a problem'); +err = new createError[404]('This might be a problem'); // 1.5.0 supports 421 - Misdirected Request -var err = new createError.MisdirectedRequest(); -var err = new createError.MisdirectedRequest('Where should this go?'); +err = new createError.MisdirectedRequest(); +err = new createError.MisdirectedRequest('Where should this go?'); -let error: createError.HttpError; -console.log(error instanceof createError.HttpError); +// $ExpectType boolean +new Error() instanceof createError.HttpError; diff --git a/types/http-errors/index.d.ts b/types/http-errors/index.d.ts index aff5b312dd..96688f4f10 100644 --- a/types/http-errors/index.d.ts +++ b/types/http-errors/index.d.ts @@ -1,97 +1,110 @@ -// Type definitions for http-errors v1.5.0 +// Type definitions for http-errors 1.6 // Project: https://github.com/jshttp/http-errors // Definitions by: Tanguy Krotoff +// BendingBender // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.3 -declare module 'http-errors' { - namespace createHttpError { +export = createHttpError; - // See https://github.com/jshttp/http-errors/blob/1.3.1/index.js#L42 - interface HttpError extends Error { - status: number; - statusCode: number; - expose: boolean; - headers?: { - [key: string]: string - }; - } +declare const createHttpError: createHttpError.CreateHttpError & createHttpError.NamedConstructors; - type HttpErrorConstructor = new(msg?: string) => HttpError; - - interface CreateHttpError { - // See https://github.com/Microsoft/TypeScript/issues/227#issuecomment-50092674 - [code: string]: new (msg?: string) => HttpError; - - (...args: Array): HttpError; - - HttpError: HttpErrorConstructor; - - Continue: HttpErrorConstructor; - SwitchingProtocols: HttpErrorConstructor; - Processing: HttpErrorConstructor; - OK: HttpErrorConstructor; - Created: HttpErrorConstructor; - Accepted: HttpErrorConstructor; - NonAuthoritativeInformation: HttpErrorConstructor; - NoContent: HttpErrorConstructor; - ResetContent: HttpErrorConstructor; - PartialContent: HttpErrorConstructor; - MultiStatus: HttpErrorConstructor; - AlreadyReported: HttpErrorConstructor; - IMUsed: HttpErrorConstructor; - MultipleChoices: HttpErrorConstructor; - MovedPermanently: HttpErrorConstructor; - Found: HttpErrorConstructor; - SeeOther: HttpErrorConstructor; - NotModified: HttpErrorConstructor; - UseProxy: HttpErrorConstructor; - Unused: HttpErrorConstructor; - TemporaryRedirect: HttpErrorConstructor; - PermanentRedirect: HttpErrorConstructor; - BadRequest: HttpErrorConstructor; - Unauthorized: HttpErrorConstructor; - PaymentRequired: HttpErrorConstructor; - Forbidden: HttpErrorConstructor; - NotFound: HttpErrorConstructor; - MethodNotAllowed: HttpErrorConstructor; - NotAcceptable: HttpErrorConstructor; - ProxyAuthenticationRequired: HttpErrorConstructor; - RequestTimeout: HttpErrorConstructor; - Conflict: HttpErrorConstructor; - Gone: HttpErrorConstructor; - LengthRequired: HttpErrorConstructor; - PreconditionFailed: HttpErrorConstructor; - PayloadTooLarge: HttpErrorConstructor; - URITooLong: HttpErrorConstructor; - UnsupportedMediaType: HttpErrorConstructor; - RangeNotSatisfiable: HttpErrorConstructor; - ExpectationFailed: HttpErrorConstructor; - ImATeapot: HttpErrorConstructor; - MisdirectedRequest: HttpErrorConstructor; - UnprocessableEntity: HttpErrorConstructor; - Locked: HttpErrorConstructor; - FailedDependency: HttpErrorConstructor; - UnorderedCollection: HttpErrorConstructor; - UpgradeRequired: HttpErrorConstructor; - PreconditionRequired: HttpErrorConstructor; - TooManyRequests: HttpErrorConstructor; - RequestHeaderFieldsTooLarge: HttpErrorConstructor; - UnavailableForLegalReasons: HttpErrorConstructor; - InternalServerError: HttpErrorConstructor; - NotImplemented: HttpErrorConstructor; - BadGateway: HttpErrorConstructor; - ServiceUnavailable: HttpErrorConstructor; - GatewayTimeout: HttpErrorConstructor; - HTTPVersionNotSupported: HttpErrorConstructor; - VariantAlsoNegotiates: HttpErrorConstructor; - InsufficientStorage: HttpErrorConstructor; - LoopDetected: HttpErrorConstructor; - BandwidthLimitExceeded: HttpErrorConstructor; - NotExtended: HttpErrorConstructor; - NetworkAuthenticationRequired: HttpErrorConstructor; - } +declare namespace createHttpError { + interface HttpError extends Error { + status: number; + statusCode: number; + expose: boolean; + headers?: { + [key: string]: string; + }; + [key: string]: any; } - var createHttpError: createHttpError.CreateHttpError; - export = createHttpError; + type HttpErrorConstructor = new (msg?: string) => HttpError; + + type CreateHttpError = (...args: Array) => HttpError; + + type NamedConstructors = { [code: string]: HttpErrorConstructor } & Record<'HttpError' | + 'BadRequest' | + 'Unauthorized' | + 'PaymentRequired' | + 'Forbidden' | + 'NotFound' | + 'MethodNotAllowed' | + 'NotAcceptable' | + 'ProxyAuthenticationRequired' | + 'RequestTimeout' | + 'Conflict' | + 'Gone' | + 'LengthRequired' | + 'PreconditionFailed' | + 'PayloadTooLarge' | + 'URITooLong' | + 'UnsupportedMediaType' | + 'RangeNotSatisfiable' | + 'ExpectationFailed' | + 'ImATeapot' | + 'MisdirectedRequest' | + 'UnprocessableEntity' | + 'Locked' | + 'FailedDependency' | + 'UnorderedCollection' | + 'UpgradeRequired' | + 'PreconditionRequired' | + 'TooManyRequests' | + 'RequestHeaderFieldsTooLarge' | + 'UnavailableForLegalReasons' | + 'InternalServerError' | + 'NotImplemented' | + 'BadGateway' | + 'ServiceUnavailable' | + 'GatewayTimeout' | + 'HTTPVersionNotSupported' | + 'VariantAlsoNegotiates' | + 'InsufficientStorage' | + 'LoopDetected' | + 'BandwidthLimitExceeded' | + 'NotExtended' | + 'NetworkAuthenticationRequire' | + '400' | + '401' | + '402' | + '403' | + '404' | + '405' | + '406' | + '407' | + '408' | + '409' | + '410' | + '411' | + '412' | + '413' | + '414' | + '415' | + '416' | + '417' | + '418' | + '421' | + '422' | + '423' | + '424' | + '425' | + '426' | + '428' | + '429' | + '431' | + '451' | + '500' | + '501' | + '502' | + '503' | + '504' | + '505' | + '506' | + '507' | + '508' | + '509' | + '510' | + '511', HttpErrorConstructor>; } diff --git a/types/http-errors/tsconfig.json b/types/http-errors/tsconfig.json index 7b2948b792..6067e7af56 100644 --- a/types/http-errors/tsconfig.json +++ b/types/http-errors/tsconfig.json @@ -6,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -19,4 +19,4 @@ "index.d.ts", "http-errors-tests.ts" ] -} \ No newline at end of file +} diff --git a/types/http-errors/tslint.json b/types/http-errors/tslint.json new file mode 100644 index 0000000000..3db14f85ea --- /dev/null +++ b/types/http-errors/tslint.json @@ -0,0 +1 @@ +{ "extends": "dtslint/dt.json" } From 53266428eb0fc507f29267db33c1a14fa019f33d Mon Sep 17 00:00:00 2001 From: Marco Buono Date: Tue, 15 Aug 2017 14:53:42 -0300 Subject: [PATCH 027/103] react-redux: Add test for optional dispatch prop --- types/react-redux/react-redux-tests.tsx | 35 +++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/types/react-redux/react-redux-tests.tsx b/types/react-redux/react-redux-tests.tsx index 1bf9dae4f2..1fd52f9732 100644 --- a/types/react-redux/react-redux-tests.tsx +++ b/types/react-redux/react-redux-tests.tsx @@ -514,3 +514,38 @@ namespace RemoveInjectedAndPassOnRest { } + +namespace TestControlledComponentWithoutDispatchProp { + + interface MyState { + count: number; + } + + interface MyProps { + label: string; + // `dispatch` is optional, but setting it to anything + // other than Dispatch will cause an error + // + // dispatch: Dispatch; // OK + // dispatch: number; // ERROR + } + + function mapStateToProps(state: MyState) { + return { + label: `The count is ${state.count}`, + } + } + + class MyComponent extends React.Component { + render() { + return {this.props.label}; + } + } + + const MyFuncComponent = (props: MyProps) => ( + {props.label} + ); + + const MyControlledComponent = connect(mapStateToProps)(MyComponent); + const MyControlledFuncComponent = connect(mapStateToProps)(MyFuncComponent); +} From 58ad862cee25112615a68894dcc75a5a372c2f5c Mon Sep 17 00:00:00 2001 From: Mattias Holmlund Date: Tue, 15 Aug 2017 20:00:11 +0200 Subject: [PATCH 028/103] node: Add scopeid for IPv6 interfaces The scopeid field only exists if the interface is of family IPv6 https://nodejs.org/dist/latest-v6.x/docs/api/os.html#os_os_networkinterfaces --- types/node/index.d.ts | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/types/node/index.d.ts b/types/node/index.d.ts index 52186217bd..99ca87cd46 100644 --- a/types/node/index.d.ts +++ b/types/node/index.d.ts @@ -1379,14 +1379,25 @@ declare module "os" { }; } - export interface NetworkInterfaceInfo { + export interface NetworkInterfaceInfoIPv4 { address: string; netmask: string; - family: string; + family: "IPv4"; mac: string; internal: boolean; } + export interface NetworkInterfaceInfoIPv6 { + address: string; + netmask: string; + family: "IPv6"; + mac: string; + internal: boolean; + scopeid: number; + } + + export type NetworkInterfaceInfo = NetworkInterfaceInfoIPv4 | NetworkInterfaceInfoIPv6; + export function hostname(): string; export function loadavg(): number[]; export function uptime(): number; From 894adbc6fdccd58313123a48dcd889be54035b1a Mon Sep 17 00:00:00 2001 From: Daniel Rosenwasser Date: Tue, 15 Aug 2017 11:29:16 -0700 Subject: [PATCH 029/103] Correct test to use require imports instead of namespace imports. --- types/client-sessions/client-sessions-tests.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/types/client-sessions/client-sessions-tests.ts b/types/client-sessions/client-sessions-tests.ts index f53407a69c..7498aac12d 100644 --- a/types/client-sessions/client-sessions-tests.ts +++ b/types/client-sessions/client-sessions-tests.ts @@ -1,5 +1,5 @@ -import * as express from "express"; -import * as session from "client-sessions"; +import express = require("express"); +import session = require("client-sessions"); const secret = "yolo"; const app = express(); From 6ad38fb8c7d38561eb6df11fabfaed4708283b8d Mon Sep 17 00:00:00 2001 From: Dimitri Benin Date: Tue, 15 Aug 2017 21:14:12 +0200 Subject: [PATCH 030/103] [http-errors] update tests --- types/http-errors/http-errors-tests.ts | 115 +++++++++++++++++-------- types/http-errors/index.d.ts | 6 +- 2 files changed, 82 insertions(+), 39 deletions(-) diff --git a/types/http-errors/http-errors-tests.ts b/types/http-errors/http-errors-tests.ts index 080ac3b61e..cfe399de9e 100644 --- a/types/http-errors/http-errors-tests.ts +++ b/types/http-errors/http-errors-tests.ts @@ -1,17 +1,18 @@ -import * as createError from 'http-errors'; +import * as create from 'http-errors'; import * as express from 'express'; +import * as util from 'util'; const app = express(); app.use((req, res, next) => { - if (!req) return next(createError('Please login to view this page.', 401)); + if (!req) return next(create('Please login to view this page.', 401)); next(); }); -/* Examples taken from https://github.com/jshttp/http-errors/blob/1.3.1/test/test.js */ +/* Examples taken from https://github.com/jshttp/http-errors/blob/1.6.2/test/test.js */ -// createError(status) -let err = createError(404); +// create(status) +let err = create(404); err; // $ExpectType HttpError err.name; // $ExpectType string err.message; // $ExpectType string @@ -20,55 +21,95 @@ err.statusCode; // $ExpectType number err.expose; // $ExpectType boolean err.headers; // $ExpectType { [key: string]: string; } | undefined -// createError(status, msg) -err = createError(404, 'LOL'); +// create(status, msg) +err = create(404, 'LOL'); -// createError(status, props) -err = createError(404, {id: 1}); +// create(status, props) +err = create(404, {id: 1}); -// createError(props) -err = createError({id: 1}); +// create(status, props) with status prop +err = create(404, { + id: 1, + status: 500 +}); + +// create(status, props) with statusCode prop +err = create(404, { + id: 1, + statusCode: 500 +}); + +// create(props) +err = create({id: 1}); // $ExpectType any err.id; -// createError(msg, status) -err = createError('LOL', 404); +// create(msg, status) +err = create('LOL', 404); -// createError(msg) -err = createError('LOL'); +// create(msg) +err = create('LOL'); -// createError(msg, props) -err = createError('LOL', {id: 1}); +// create(msg, props) +err = create('LOL', {id: 1}); -// createError(err) -err = createError(new Error('LOL')); +// create(err) +err = create(new Error('LOL')); -// createError(err, props) -err = createError(new Error('LOL'), {id: 1}); +// create(err, props) +err = create(new Error('LOL'), {id: 1}); -// createError(status, err, props) -err = createError(404, new Error('LOL'), {id: 1}); +// create(status, err, props) +err = create(404, new Error('LOL'), {id: 1}); -// createError(status, msg, props) -err = createError(404, 'LOL', {id: 1}); +// create(status, msg, props) +err = create(404, 'LOL', {id: 1}); -// createError(status, msg, { expose: false }) -err = createError(404, 'LOL', {expose: false}); +// create(status, msg, { expose: false }) +err = create(404, 'LOL', {expose: false}); -err = new createError.NotFound(); -err = new createError.InternalServerError(); -err = new createError[404](); +// new create.HttpError() should throw: cannot construct abstract class +// $ExpectType never +new create.HttpError(); -createError['404'](); // $ExpectError -new createError(); // $ExpectError +err = new create.NotFound(); +err = new create.InternalServerError(); +err = new create[404](); +err = new create['404'](); + +create['404'](); // $ExpectError +new create(); // $ExpectError // Error messages can have custom messages -err = new createError.NotFound('This might be a problem'); -err = new createError[404]('This might be a problem'); +err = new create.NotFound('This might be a problem'); +err = new create[404]('This might be a problem'); // 1.5.0 supports 421 - Misdirected Request -err = new createError.MisdirectedRequest(); -err = new createError.MisdirectedRequest('Where should this go?'); +err = new create.MisdirectedRequest(); +err = new create.MisdirectedRequest('Where should this go?'); // $ExpectType boolean -new Error() instanceof createError.HttpError; +new Error() instanceof create.HttpError; + +// should support err instanceof Error +create(404) instanceof Error; +(new create['404']()) instanceof Error; +(new create['500']()) instanceof Error; + +// should support err instanceof exposed constructor +create(404) instanceof create.NotFound; +create(500) instanceof create.InternalServerError; +(new create['404']()) instanceof create.NotFound; +(new create['500']()) instanceof create.InternalServerError; +(new create.NotFound()) instanceof create.NotFound; +(new create.InternalServerError()) instanceof create.InternalServerError; + +// should support err instanceof HttpError +create(404) instanceof create.HttpError; +(new create['404']()) instanceof create.HttpError; +(new create['500']()) instanceof create.HttpError; + +// should support util.isError() +util.isError(create(404)); +util.isError(new create['404']()); +util.isError(new create['500']()); diff --git a/types/http-errors/index.d.ts b/types/http-errors/index.d.ts index 96688f4f10..5db6e497e7 100644 --- a/types/http-errors/index.d.ts +++ b/types/http-errors/index.d.ts @@ -24,8 +24,10 @@ declare namespace createHttpError { type CreateHttpError = (...args: Array) => HttpError; - type NamedConstructors = { [code: string]: HttpErrorConstructor } & Record<'HttpError' | - 'BadRequest' | + type NamedConstructors = { + [code: string]: HttpErrorConstructor; + HttpError: new (msg?: string) => never; + } & Record<'BadRequest' | 'Unauthorized' | 'PaymentRequired' | 'Forbidden' | From baacececc1cdd340e0a8585effaec3f0c060d224 Mon Sep 17 00:00:00 2001 From: Martin Donkersloot Date: Tue, 15 Aug 2017 21:36:07 +0200 Subject: [PATCH 031/103] TelegramBot now properly extends EventEmitter. --- types/node-telegram-bot-api/index.d.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/types/node-telegram-bot-api/index.d.ts b/types/node-telegram-bot-api/index.d.ts index 1a7d15ec34..a727e6f3c4 100644 --- a/types/node-telegram-bot-api/index.d.ts +++ b/types/node-telegram-bot-api/index.d.ts @@ -3,8 +3,11 @@ // Definitions by: Alex Muench // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.1 +/// -declare class TelegramBot { +import { EventEmitter } from 'events'; + +declare class TelegramBot extends EventEmitter { constructor(token: string, opts?: any); startPolling(options?: any): Promise; From 54cf4c673bf6db59b41321867da76f93321b450b Mon Sep 17 00:00:00 2001 From: "Bernard, Nicholas (ETW - FLEX)" Date: Tue, 15 Aug 2017 12:37:17 -0700 Subject: [PATCH 032/103] Add getLineTokens method --- types/codemirror/index.d.ts | 33 +++++++++++++++++++-------------- 1 file changed, 19 insertions(+), 14 deletions(-) diff --git a/types/codemirror/index.d.ts b/types/codemirror/index.d.ts index 960f293656..f6c40a99c2 100644 --- a/types/codemirror/index.d.ts +++ b/types/codemirror/index.d.ts @@ -1,6 +1,7 @@ // Type definitions for CodeMirror // Project: https://github.com/marijnh/CodeMirror // Definitions by: mihailik +// nrbernard // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped export = CodeMirror; @@ -104,6 +105,19 @@ declare namespace CodeMirror { type DOMEvent = 'mousedown' | 'dblclick' | 'touchstart' | 'contextmenu' | 'keydown' | 'keypress' | 'keyup' | 'cut' | 'copy' | 'paste' | 'dragstart' | 'dragenter' | 'dragover' | 'dragleave' | 'drop'; + interface Token { + /** The character(on the given line) at which the token starts. */ + start: number; + /** The character at which the token ends. */ + end: number; + /** The token's string. */ + string: string; + /** The token type the mode assigned to the token, such as "keyword" or "comment" (may also be null). */ + type: string | null; + /** The mode's state at the end of this token. */ + state: any; + } + interface Editor { /** Tells you whether the editor currently has focus. */ @@ -289,20 +303,11 @@ declare namespace CodeMirror { you should probably follow up by calling this method to ensure CodeMirror is still looking as intended. */ refresh(): void; - /** Retrieves information about the token the current mode found before the given position (a {line, ch} object). */ - getTokenAt(pos: CodeMirror.Position): { - /** The character(on the given line) at which the token starts. */ - start: number; - /** The character at which the token ends. */ - end: number; - /** The token's string. */ - string: string; - /** The token type the mode assigned to the token, such as "keyword" or "comment" (may also be null). */ - type: string | null; - /** The mode's state at the end of this token. */ - state: any; - }; + getTokenAt(pos: CodeMirror.Position): Token; + + /** This is similar to getTokenAt, but collects all tokens for a given line into an array. */ + getLineTokens(line: number, precise?: boolean): Token[]; /** Returns the mode's parser state, if any, at the end of the given line number. If no line number is given, the state at the end of the document is returned. @@ -410,7 +415,7 @@ declare namespace CodeMirror { /** Fires when one of the DOM events fires. */ on(eventName: DOMEvent, handler: (instance: CodeMirror.Editor, event: Event) => void ): void; off(eventName: DOMEvent, handler: (instance: CodeMirror.Editor, event: Event) => void ): void; - + /** Expose the state object, so that the Editor.state.completionActive property is reachable*/ state: any; } From d38522bd7241b16c24f60a593357cc8bf1e477a5 Mon Sep 17 00:00:00 2001 From: Danny Cochran Date: Tue, 15 Aug 2017 12:47:50 -0700 Subject: [PATCH 033/103] make default arguments {} instead of any --- types/react-redux/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/react-redux/index.d.ts b/types/react-redux/index.d.ts index 3dce0d9bdf..1cf2169388 100644 --- a/types/react-redux/index.d.ts +++ b/types/react-redux/index.d.ts @@ -164,7 +164,7 @@ interface MergeProps { (stateProps: TStateProps, dispatchProps: TDispatchProps, ownProps: TOwnProps): TMergedProps; } -interface Options extends ConnectOptions { +interface Options extends ConnectOptions { /** * If true, implements shouldComponentUpdate and shallowly compares the result of mergeProps, * preventing unnecessary updates, assuming that the component is a “pure” component From 90629e8c50b79bcb5287fe056fb29e73a1bf416a Mon Sep 17 00:00:00 2001 From: Cameron Little Date: Tue, 15 Aug 2017 13:53:31 -0700 Subject: [PATCH 034/103] storybook__react: Remove dependency on @types/node Including `@types/node` is problematic because the storybook react api runs in a browser context. `@types/node` defines several globals that are incompatible with common browser contexts (such as `require` and `global` --- types/storybook__react/index.d.ts | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/types/storybook__react/index.d.ts b/types/storybook__react/index.d.ts index 7a52903bc7..d9b5f9dbce 100644 --- a/types/storybook__react/index.d.ts +++ b/types/storybook__react/index.d.ts @@ -4,11 +4,9 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 -/// - import * as React from 'react'; -export type Renderable = React.StatelessComponent | React.ComponentClass | JSX.Element; +export type Renderable = React.ComponentType | JSX.Element; export type RenderFunction = () => Renderable; export type StoryDecorator = (story: RenderFunction, context: { kind: string, story: string }) => Renderable | null; @@ -22,8 +20,8 @@ export interface Story { export function addDecorator(decorator: StoryDecorator): void; export function configure(fn: () => void, module: any): void; export function setAddon(addon: object): void; -export function storiesOf(name: string, module: NodeModule): Story; -export function storiesOf(name: string, module: NodeModule): Story & T; +export function storiesOf(name: string, module: any): Story; +export function storiesOf(name: string, module: any): Story & T; export interface StoryObject { name: string; From fdeb1336e3d7a96fccfe6343bb8fdd2184db47c0 Mon Sep 17 00:00:00 2001 From: IAMtheIAM Date: Tue, 15 Aug 2017 14:18:16 -0700 Subject: [PATCH 035/103] fix typo --- types/webpack/webpack-tests.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/webpack/webpack-tests.ts b/types/webpack/webpack-tests.ts index 7db91f59d9..a95cb4ef86 100644 --- a/types/webpack/webpack-tests.ts +++ b/types/webpack/webpack-tests.ts @@ -611,7 +611,7 @@ function loader(this: webpack.loader.LoaderContext, source: string, sourcemap: s this.resolve('context', 'request', ( err: Error, result: string) => {}); - this.emitError('wraning'); + this.emitError('warning'); this.callback(null, source); } From d65fe3323d4ae296df1ac8204b4a40cba6ea003f Mon Sep 17 00:00:00 2001 From: "John M. Wright" Date: Tue, 15 Aug 2017 16:46:52 -0500 Subject: [PATCH 036/103] allowing ComponentRestrictions as string|string[] Google API allows the Autocomplete ComponentRestrictions to be either a single string (`{'country': 'us'}`) or a string array (`{'country': ['us','gb','fr']}`) Reference: Single value: https://developers.google.com/maps/documentation/javascript/examples/places-autocomplete-hotelsearch Multiple values: https://developers.google.com/maps/documentation/javascript/examples/places-autocomplete-multiple-countries ( --- types/googlemaps/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/googlemaps/index.d.ts b/types/googlemaps/index.d.ts index 8fc613a426..fc39130ed1 100644 --- a/types/googlemaps/index.d.ts +++ b/types/googlemaps/index.d.ts @@ -2518,7 +2518,7 @@ declare namespace google.maps { } export interface ComponentRestrictions { - country: string; + country: string|string[]; } export interface PlaceAspectRating { From 1f1de1f591301c4d39274c1e3aa8abf6a594e78e Mon Sep 17 00:00:00 2001 From: amikhalev Date: Tue, 15 Aug 2017 16:04:30 -0600 Subject: [PATCH 037/103] Updated reactstrap DropdownMenu className type --- types/reactstrap/lib/DropdownMenu.d.ts | 2 +- types/reactstrap/reactstrap-tests.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/types/reactstrap/lib/DropdownMenu.d.ts b/types/reactstrap/lib/DropdownMenu.d.ts index 05e93babef..7fae41b04b 100644 --- a/types/reactstrap/lib/DropdownMenu.d.ts +++ b/types/reactstrap/lib/DropdownMenu.d.ts @@ -3,7 +3,7 @@ import { CSSModule } from '../index'; interface Props { tag?: React.ReactType; right?: boolean; - className?: boolean; + className?: string; cssModule?: CSSModule; } diff --git a/types/reactstrap/reactstrap-tests.tsx b/types/reactstrap/reactstrap-tests.tsx index 3e310c3f5e..9605fe3174 100644 --- a/types/reactstrap/reactstrap-tests.tsx +++ b/types/reactstrap/reactstrap-tests.tsx @@ -3265,7 +3265,7 @@ function Example105() { Toggle - +

Item
From 3d96784a56cb5ba4824aefc82eaf1aa15e4647ea Mon Sep 17 00:00:00 2001 From: Cameron Little Date: Tue, 15 Aug 2017 15:28:15 -0700 Subject: [PATCH 038/103] Use `webpack-env` instead of `node` --- types/storybook__react/index.d.ts | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/types/storybook__react/index.d.ts b/types/storybook__react/index.d.ts index d9b5f9dbce..5ae3616760 100644 --- a/types/storybook__react/index.d.ts +++ b/types/storybook__react/index.d.ts @@ -4,9 +4,11 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 +/// + import * as React from 'react'; -export type Renderable = React.ComponentType | JSX.Element; +export type Renderable = React.StatelessComponent | React.ComponentClass | JSX.Element; export type RenderFunction = () => Renderable; export type StoryDecorator = (story: RenderFunction, context: { kind: string, story: string }) => Renderable | null; @@ -20,8 +22,8 @@ export interface Story { export function addDecorator(decorator: StoryDecorator): void; export function configure(fn: () => void, module: any): void; export function setAddon(addon: object): void; -export function storiesOf(name: string, module: any): Story; -export function storiesOf(name: string, module: any): Story & T; +export function storiesOf(name: string, module: NodeModule): Story; +export function storiesOf(name: string, module: NodeModule): Story & T; export interface StoryObject { name: string; From 07cc1518c5d834cd646b64620154c31a2021d2d6 Mon Sep 17 00:00:00 2001 From: Cameron Little Date: Tue, 15 Aug 2017 15:29:47 -0700 Subject: [PATCH 039/103] Update index.d.ts --- types/storybook__react/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/storybook__react/index.d.ts b/types/storybook__react/index.d.ts index 5ae3616760..b6f47e499f 100644 --- a/types/storybook__react/index.d.ts +++ b/types/storybook__react/index.d.ts @@ -8,7 +8,7 @@ import * as React from 'react'; -export type Renderable = React.StatelessComponent | React.ComponentClass | JSX.Element; +export type Renderable = React.ComponentType | JSX.Element; export type RenderFunction = () => Renderable; export type StoryDecorator = (story: RenderFunction, context: { kind: string, story: string }) => Renderable | null; From 791bfc6d506c08731948117150c03bd796ca0110 Mon Sep 17 00:00:00 2001 From: Dimitri Benin Date: Wed, 16 Aug 2017 02:39:28 +0200 Subject: [PATCH 040/103] [content-type] improve typings, enable strict null checks & linting --- types/content-type/content-type-tests.ts | 29 ++++++++++++------------ types/content-type/index.d.ts | 29 ++++++++++++++---------- types/content-type/tsconfig.json | 4 ++-- 3 files changed, 34 insertions(+), 28 deletions(-) diff --git a/types/content-type/content-type-tests.ts b/types/content-type/content-type-tests.ts index 0705d440c1..4be9519a94 100644 --- a/types/content-type/content-type-tests.ts +++ b/types/content-type/content-type-tests.ts @@ -1,18 +1,19 @@ -import contentType = require('content-type'); -import express = require('express'); +/// -let obj = contentType.parse('image/svg+xml; charset=utf-8'); +import * as contentType from 'content-type'; +import * as http from 'http'; -console.log(obj.type); // => 'image/svg+xml' -console.log(obj.parameters.charset); // => 'utf-8' +const mediaType = contentType.parse('image/svg+xml; charset=utf-8'); +mediaType; // $ExpectType ParsedMediaType +mediaType.type; // $ExpectType string +mediaType.parameters; // $ExpectType { [key: string]: string; } -let req: express.Request; -obj = contentType.parse(req); +http.createServer((req, res) => { + contentType.parse(req); + contentType.parse(res); +}); -let res: express.Response; -obj = contentType.parse(res); - -let str: string = contentType.format({type: 'image/svg+xml'}); - -let media: contentType.MediaType; -contentType.format(media); +// $ExpectType string +contentType.format({type: 'image/svg+xml'}); +contentType.format({type: 'image/svg+xml', parameters: {charset: 'utf-8'}}); +contentType.format(mediaType); diff --git a/types/content-type/index.d.ts b/types/content-type/index.d.ts index ec60de446f..3842dd3a47 100644 --- a/types/content-type/index.d.ts +++ b/types/content-type/index.d.ts @@ -1,21 +1,26 @@ // Type definitions for content-type 1.1 // Project: https://www.npmjs.com/package/content-type // Definitions by: Hiroki Horiuchi +// BendingBender // Definitions: https://github.com/borisyankov/DefinitelyTyped -import * as express from 'express'; +export function parse(input: ReqLike | ResLike | string): ParsedMediaType; +export function format(obj: MediaType): string; -declare var ct: ct.StaticFunctions; -export = ct; +export interface ParsedMediaType { + type: string; + parameters: {[key: string]: string}; +} -declare namespace ct { - interface StaticFunctions { - parse(input: express.Request | express.Response | string): MediaType; - format(obj: MediaType): string; - } +export interface MediaType { + type: string; + parameters?: {[key: string]: string}; +} - interface MediaType { - type: string; - parameters?: any; - } +export interface ReqLike { + headers: {[header: string]: string | string[]}; +} + +export interface ResLike { + getHeader(name: string): number | string | string[] | undefined; } diff --git a/types/content-type/tsconfig.json b/types/content-type/tsconfig.json index 4eaa2f42f4..3361989225 100644 --- a/types/content-type/tsconfig.json +++ b/types/content-type/tsconfig.json @@ -6,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -19,4 +19,4 @@ "index.d.ts", "content-type-tests.ts" ] -} \ No newline at end of file +} From 0dfb13e10f2c6e59a64eb4b73be2e87d2b435f6e Mon Sep 17 00:00:00 2001 From: Cameron Little Date: Tue, 15 Aug 2017 18:11:31 -0700 Subject: [PATCH 041/103] remove any --- types/storybook__react/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/storybook__react/index.d.ts b/types/storybook__react/index.d.ts index b6f47e499f..d21c649d23 100644 --- a/types/storybook__react/index.d.ts +++ b/types/storybook__react/index.d.ts @@ -20,7 +20,7 @@ export interface Story { } export function addDecorator(decorator: StoryDecorator): void; -export function configure(fn: () => void, module: any): void; +export function configure(fn: () => void, module: NodeModule): void; export function setAddon(addon: object): void; export function storiesOf(name: string, module: NodeModule): Story; export function storiesOf(name: string, module: NodeModule): Story & T; From b0dc5d6b26823fe2e334121fc2964d6d36a3663a Mon Sep 17 00:00:00 2001 From: Cameron Little Date: Tue, 15 Aug 2017 18:51:10 -0700 Subject: [PATCH 042/103] Remove last any --- types/storybook__react/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/storybook__react/index.d.ts b/types/storybook__react/index.d.ts index d21c649d23..1228124376 100644 --- a/types/storybook__react/index.d.ts +++ b/types/storybook__react/index.d.ts @@ -8,7 +8,7 @@ import * as React from 'react'; -export type Renderable = React.ComponentType | JSX.Element; +export type Renderable = React.ComponentType | JSX.Element; export type RenderFunction = () => Renderable; export type StoryDecorator = (story: RenderFunction, context: { kind: string, story: string }) => Renderable | null; From 1c5b20f0540af0fe974943acb244e4ec66096bdb Mon Sep 17 00:00:00 2001 From: Kyle Roach Date: Fri, 21 Jul 2017 14:40:36 -0400 Subject: [PATCH 043/103] Defintions for react-native-material-ui --- types/react-native-material-ui/index.d.ts | 657 ++++++++++++++++++ .../react-native-material-ui-tests.tsx | 115 +++ types/react-native-material-ui/tsconfig.json | 24 + types/react-native-material-ui/tslint.json | 1 + 4 files changed, 797 insertions(+) create mode 100644 types/react-native-material-ui/index.d.ts create mode 100644 types/react-native-material-ui/react-native-material-ui-tests.tsx create mode 100644 types/react-native-material-ui/tsconfig.json create mode 100644 types/react-native-material-ui/tslint.json diff --git a/types/react-native-material-ui/index.d.ts b/types/react-native-material-ui/index.d.ts new file mode 100644 index 0000000000..93eb00a1ab --- /dev/null +++ b/types/react-native-material-ui/index.d.ts @@ -0,0 +1,657 @@ +// Type definitions for react-native-material-ui 1.12 +// Project: https://github.com/xotahal/react-native-material-ui +// Definitions by: Kyle Roach +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.3 + +import { Component } from 'react'; +import { ViewStyle, TextStyle, Image } from 'react-native'; + +export interface ActionButtonProps { + actions?: string[] | JSX.Element[] | Array<{ + icon: string | JSX.Element + label: string + name: string + }>; + hidden?: boolean; + icon?: string; + style?: { + container?: ViewStyle + icon?: TextStyle + }; + transition?: 'toolbar' | 'speedDial'; + onPress?(): void; + onLongPress?(): void; +} + +/** + * Action Button + * + * @export + * @class ActionButton + * @extends {Component} + * @see https://github.com/xotahal/react-native-material-ui/blob/master/src/ActionButton/ActionButton.react.js + */ +export class ActionButton extends Component {} + +export interface AvatarProps { + image?: Image; + icon?: string; + iconColor?: string; + iconSize?: number; + text?: string; + size?: number; + style?: { + container?: ViewStyle + content?: ViewStyle + }; +} + +/** + * Avatar + * + * @export + * @class Avatar + * @extends {Component} + * @see https://github.com/xotahal/react-native-material-ui/blob/master/src/Avatar/Avatar.react.js + */ +export class Avatar extends Component {} + +export interface BadgeProps { + children?: JSX.Element; + text?: string; + icon?: string | { name: string, color: string, size: string }; + size?: number; + stroke?: number; + accent?: boolean; + style?: { + container?: ViewStyle + content?: ViewStyle + strokeContainer?: ViewStyle + }; +} + +/** + * Badge + * + * @export + * @class Badge + * @extends {Component} + * @see https://github.com/xotahal/react-native-material-ui/blob/master/src/Badge/Badge.react.js + */ +export class Badge extends Component {} + +export interface BottomNavigationProps { + active?: string; + children: JSX.Element | JSX.Element[]; + hidden?: boolean; + style?: { + container?: ViewStyle + }; +} + +/** + * Bottom Navigation + * + * @export + * @class BottomNavigation + * @extends {Component} + * @see https://github.com/xotahal/react-native-material-ui/blob/master/src/BottomNavigation/BottomNavigation.react.js + */ +export class BottomNavigation extends Component {} + +export interface BottomNavigationAction { + icon: JSX.Element | string; + label?: string; + key?: string; + active: boolean; + disabled?: boolean; + style?: { + container?: ViewStyle + active?: TextStyle + disabled?: TextStyle + }; + onPress?(): void; +} + +export namespace BottomNavigation { + class Action extends Component {} +} + +export interface ButtonProps { + text: string; + primary?: boolean; + accent?: boolean; + disabled?: boolean; + raised?: boolean; + upperCase?: boolean; + icon?: string | JSX.Element; + style?: { + container?: ViewStyle + text?: TextStyle + }; + onPress?(): void; + onLongPress?(): void; +} + +/** + * Button + * + * @export + * @class Button + * @extends {Component} + * @see https://github.com/xotahal/react-native-material-ui/blob/master/src/Button/Button.react.js + */ +export class Button extends Component {} + +export interface CardProps { + children?: JSX.Element; + style?: { + container?: ViewStyle + }; + onPress?(): void; +} + +/** + * Card + * + * @export + * @class Card + * @extends {Component} + * @see https://github.com/xotahal/react-native-material-ui/blob/master/src/Card/Card.react.js + */ +export class Card extends Component {} + +export interface CheckBoxProps { + label: string; + value: string | number; + checked?: boolean; + disabled?: boolean; + uncheckedIcon?: string; + checkedIcon?: string; + style?: { + icon?: ViewStyle + container?: ViewStyle + label?: TextStyle + }; + onCheck(checked: boolean): void; +} + +/** + * Checkbox + * + * @export + * @class Checkbox + * @extends {Component} + * @see https://github.com/xotahal/react-native-material-ui/blob/master/src/Checkbox/Checkbox.react.js + */ +export class Checkbox extends Component {} + +export interface DialogProps { + children: JSX.Element | JSX.Element[]; + style?: { + container?: ViewStyle + }; + onPress?(): void; +} + +/** + * Dialog + * + * @export + * @class Dialog + * @extends {Component} + * @see https://github.com/xotahal/react-native-material-ui/blob/master/src/Dialog/Dialog.react.js + */ +export class Dialog extends Component {} + +export interface DialogTitleProps { + children: JSX.Element; + style?: { + titleContainer?: ViewStyle + titleText?: TextStyle + }; +} + +export interface DialogContentProps { + children: JSX.Element; + style?: { + contentContainer?: ViewStyle + }; +} + +export interface DialogActionsProps { + children: JSX.Element; + style?: { + actionsContainer?: ViewStyle + }; +} + +export namespace Dialog { + class Title extends Component {} + class Content extends Component {} + class Actions extends Component {} +} + +export interface DialogDefaultActionsProps { + actions: string[]; + style?: { + defaultActionsContainer?: ViewStyle + }; + onActionPress(action: string): void; +} + +/** + * Dialog Default Actions + * + * @export + * @class DialogDefaultActions + * @extends {Component} + * @see https://github.com/xotahal/react-native-material-ui/blob/master/src/Dialog/DialogDefaultActions.react.js + */ +export class DialogDefaultActions extends Component {} + +export interface DialogStackedActionsProps { + actions: string[]; + style?: { + stackedActionsContainer?: ViewStyle + }; + onActionPress(action: string): void; +} + +/** + * Dialog Stacked Actions + * + * @export + * @class DialogStackedActions + * @extends {Component} + * @see https://github.com/xotahal/react-native-material-ui/blob/master/src/Dialog/DialogStackedActions.react.js + */ +export class DialogStackedActions extends Component {} + +export interface DividerProps { + inset?: boolean; + style?: { + container?: ViewStyle + }; +} + +/** + * Divider; + * + * @export + * @class Divider + * @extends {Component} + * @see https://github.com/xotahal/react-native-material-ui/blob/master/src/Divider/Divider.react.js + */ +export class Divider extends Component {} + +export interface DrawerProps { + children: JSX.Element; + style?: { + container?: ViewStyle + }; +} + +export interface DrawerHeaderProps { + image?: Image[]; + backgroundColor?: string; + children?: JSX.Element; + style?: { + container?: ViewStyle + contentContainer?: ViewStyle + }; +} + +export interface DrawerSectionItem { + icon?: string; + value?: string | JSX.Element; + label?: string; + active?: boolean; + disabled?: boolean; + onPress?(): void; + onLongPress?(): void; +} + +export interface DrawerSectionProps { + title?: string; + items: DrawerSectionItem[]; + divider?: boolean; + style?: { + container?: ViewStyle + item?: ViewStyle + subheader?: TextStyle + icon?: ViewStyle + value?: TextStyle + label?: TextStyle + }; +} + +export interface DrawerHeaderAccountProps { + avatar?: JSX.Element; + accounts?: Array<{ + avatar?: JSX.Element + onPress?(): void + }>; + footer?: {}; + style?: { + container?: ViewStyle + accountContainer?: ViewStyle + topContainer?: ViewStyle + avatarsContainer?: ViewStyle + activeAvatarContainer?: ViewStyle + inactiveAvatarContainer?: ViewStyle + }; +} + +/** + * Drawer + * + * @export + * @class Drawer + * @extends {Component} + * @see https://github.com/xotahal/react-native-material-ui/blob/master/src/Drawer/Drawer.react.js + */ +export class Drawer extends Component {} +export namespace Drawer { + class Header extends Component {} + namespace Header { + class Account extends Component {} + } + class Section extends Component {} +} + +export interface IconProps { + name: string; + style?: ViewStyle | ViewStyle[]; + size?: number; + color?: string; +} + +/** + * Icon + * + * @export + * @class Icon + * @extends {Component} + * @see https://github.com/xotahal/react-native-material-ui/blob/master/src/Icon/index.js + */ +export class Icon extends Component {} + +export interface IconToggleProps { + color?: string; + underlayColor?: string; + maxOpacity?: number; + percent?: number; + disabled?: boolean; + size?: number; + name: string; + children?: JSX.Element; + style?: { + container?: ViewStyle + icon?: ViewStyle + }; + onPress?(): void; +} + +/** + * Icon Toggle + * + * @export + * @class IconToggle + * @extends {Component} + * @see https://github.com/xotahal/react-native-material-ui/blob/master/src/IconToggle/IconToggle.react.js + */ +export class IconToggle extends Component {} + +export interface ListItemCenterElement { + primaryText: string; + secondaryText?: string; + tertiaryText?: string; +} + +export interface ListItemStyle { + container?: ViewStyle; + content?: ViewStyle; + contentViewContainer?: ViewStyle; + leftElementContainer?: ViewStyle; + centerElementContainer?: ViewStyle; + textViewContainer?: ViewStyle; + primaryText?: TextStyle; + firstLine?: TextStyle; + primaryTextContainer?: ViewStyle; + secondaryText?: TextStyle; + tertiaryText?: TextStyle; + rightElementContainer?: ViewStyle; + rightElement?: TextStyle; + LeftElement?: TextStyle; +} + +export interface ListItemProps { + numberOfLines?: 1 | 2 | 3 | 'dynamic'; + leftElement?: JSX.Element | string; + rightElement?: JSX.Element | string; + centerElement: JSX.Element | string | ListItemCenterElement; + style?: ListItemStyle; + dense?: boolean; + divider?: boolean; + onPressValue?: any; + onPress?(): void; + onRightElementPress?(): void; +} + +/** + * List Item + * + * @export + * @class ListItem + * @extends {Component} + * @see https://github.com/xotahal/react-native-material-ui/blob/master/src/ListItem/ListItem.react.js + */ +export class ListItem extends Component {} + +export interface RadioButtonProps { + label: string; + value: string | number; + checked?: boolean; + disabled?: boolean; + theme?: string; + onSelect(value: string): void; +} + +/** + * Radio Button + * + * @export + * @class RadioButton + * @extends {Component} + * @see https://github.com/xotahal/react-native-material-ui/blob/master/src/RadioButton/RadioButton.react.js + */ +export class RadioButton extends Component {} + +export interface SubheaderProps { + text: string; + inset?: boolean; + lines?: number; + style?: { + container?: ViewStyle + text?: TextStyle + }; +} + +/** + * Subheader + * + * @export + * @class Subheader + * @extends {Component} + * @see https://github.com/xotahal/react-native-material-ui/blob/master/src/Subheader/Subheader.react.js + */ +export class Subheader extends Component {} + +export interface ToolbarStyle { + container?: ViewStyle; + leftElementContainer?: ViewStyle; + leftElement?: TextStyle; + centerElementContainer?: ViewStyle; + titleText?: TextStyle; + rightElementContainer?: ViewStyle; + rightElement?: TextStyle; +} + +export interface Searchable { + placeholder?: string; + autoFocus?: boolean; + autoCapitalize?: 'none' | 'sentences' | 'words' | 'characters'; + autoCorrect?: boolean; + onChangeText?(text: string): void; + onSearchClosed?(): void; + onSearchPressed?(): void; + onSubmitEditing?(): void; +} + +export interface ToolBarRightElement { + actions?: Array; + menu?: {icon: string, labels: string[]}; +} + +export interface ToolbarProps { + isSearchActive?: boolean; + size?: number; + hidden?: boolean; + leftElement?: JSX.Element | string; + rightElement?: JSX.Element | string | string[] | ToolBarRightElement; + centerElement?: JSX.Element | string; + style?: ToolbarStyle; + searchable?: Searchable; + onPress?(): void; + onLeftElementPress?(): void; + onRightElementPress?(): void; +} + +/** + * Toolbar + * + * @export + * @class Toolbar + * @extends {Component} + * @see https://github.com/xotahal/react-native-material-ui/blob/master/src/Toolbar/Toolbar.react.js + */ +export class Toolbar extends Component {} + +export interface SnackbarProps { + message: string; + visible: boolean; + timeout: number; + bottomNavigation: boolean; + actionText?: string; + button?: ButtonProps; + style?: { + container?: ViewStyle + message?: ViewStyle + }; + onRequestClose(): void; + onActionPress?(): void; +} + +/** + * Snackbar + * + * @export + * @class Snackbar + * @extends {Component} + * @see https://github.com/xotahal/react-native-material-ui/blob/master/src/Snackbar/Snackbar.react.js + */ +export class Snackbar extends Component {} + +export interface RippleFeedbackProps { + color?: string; + borderless?: boolean; + children: JSX.Element; +} + +/** + * Ripple Feedback + * + * @export + * @class RippleFeedback + * @extends {Component} + * @see https://github.com/xotahal/react-native-material-ui/blob/master/src/RippleFeedback/RippleFeedback.react.js + */ +export class RippleFeedback extends Component {} + +export interface ThemeProviderProps { + uiTheme: {}; + children: JSX.Element; +} + +/** + * ThemeProvider + * + * @export + * @class ThemeProvider + * @extends {Component} + * @see https://github.com/xotahal/react-native-material-ui/blob/master/src/styles/ThemeProvider.react.js + */ +export class ThemeProvider extends Component {} + +export interface MKColorStatic { + Amber: string; + Blue: string; + BlueGrey: string; + Brown: string; + Cyan: string; + DeepOrange: string; + DeepPurple: string; + Green: string; + Grey: string; + Indigo: string; + LightBlue: string; + LightGreen: string; + Lime: string; + Orange: string; + Pink: string; + Purple: string; + RGBIndigo: string; + RGBPink: string; + RGBPurple: string; + RGBTeal: string; + Red: string; + Silver: string; + Teal: string; + Transparent: string; + Yellow: string; + default: { + Amber: string; + Blue: string; + BlueGrey: string; + Brown: string; + Cyan: string; + DeepOrange: string; + DeepPurple: string; + Green: string; + Grey: string; + Indigo: string; + LightBlue: string; + LightGreen: string; + Lime: string; + Orange: string; + Pink: string; + Purple: string; + RGBIndigo: string; + RGBPink: string; + RGBPurple: string; + RGBTeal: string; + Red: string; + Silver: string; + Teal: string; + Transparent: string; + Yellow: string; + }; + palette_blue_400: string; + palette_green_500: string; + palette_red_500: string; + palette_yellow_600: string; + } + +export const MKColor: MKColorStatic; diff --git a/types/react-native-material-ui/react-native-material-ui-tests.tsx b/types/react-native-material-ui/react-native-material-ui-tests.tsx new file mode 100644 index 0000000000..1e534e0e71 --- /dev/null +++ b/types/react-native-material-ui/react-native-material-ui-tests.tsx @@ -0,0 +1,115 @@ +import * as React from 'react'; +import { View, Text } from 'react-native'; +import { + ActionButton, + Avatar, + ThemeProvider, + MKColor, + Badge, + Button, + Card, + Checkbox, + Dialog, + DialogDefaultActions, + BottomNavigation +} from 'react-native-material-ui'; + +const theme = { + palette: { + accentColor: MKColor.Amber, + primaryColor: MKColor.Indigo, + }, + fontFamily: 'System' +}; + +const Example = () => + + + + + + + + + + + + + + ; return ( - - -

Pseudo Modal

-

This react component is appended to the document body.

-
-
+
+ {}} + beforeClose={(node: HTMLDivElement, resetPortalState) => resetPortalState()} + onClose={() => {}} + onUpdate={() => {}} + > + +

Pseudo Modal

+

This react component is appended to the document body.

+
+
+ +
); } } -export class PseudoModal extends React.Component<{ closePortal?(): {} }> { +export class PseudoModal extends React.Component<{ closePortal?(): void }> { render() { return (
diff --git a/types/react-sidebar/index.d.ts b/types/react-sidebar/index.d.ts index b73863a079..9701c09d78 100644 --- a/types/react-sidebar/index.d.ts +++ b/types/react-sidebar/index.d.ts @@ -10,7 +10,7 @@ export interface SidebarProps { contentClassName?: string; docked?: boolean; dragToggleDistance?: number; - onSetOpen?(): {}; + onSetOpen?(): void; open?: boolean; overlayClassName?: string; pullRight?: boolean; diff --git a/types/react-sidebar/react-sidebar-tests.tsx b/types/react-sidebar/react-sidebar-tests.tsx index 4b6dfd593e..491bd3fb4f 100644 --- a/types/react-sidebar/react-sidebar-tests.tsx +++ b/types/react-sidebar/react-sidebar-tests.tsx @@ -7,6 +7,14 @@ const sidebarStyle: SidebarStyles = { content: { width: "300px" } }; -const sidebar1 = -

Content

-
; +const sidebar1 = ( + {}} + > +

Content

+
+); From 7842fff1b235af695a67386396a69951d1a42c2c Mon Sep 17 00:00:00 2001 From: Kyle Roach Date: Wed, 16 Aug 2017 16:54:50 -0400 Subject: [PATCH 067/103] [rn] Adds imageStyle prop to ImageBackground --- types/react-native/index.d.ts | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/types/react-native/index.d.ts b/types/react-native/index.d.ts index 848f4f4d2d..6a434c159d 100644 --- a/types/react-native/index.d.ts +++ b/types/react-native/index.d.ts @@ -3430,6 +3430,23 @@ export interface ImageStatic extends NativeMethodsMixin, React.ComponentClass> } +export interface ImageBackgroundProperties extends ImageProperties { + style?: StyleProp + imageStyle?: StyleProp +} + +export interface ImageBackgroundStatic extends NativeMethodsMixin, React.ComponentClass { + resizeMode: ImageResizeMode + getSize( + uri: string, + success: (width: number, height: number) => void, + failure: (error: any) => void + ): any + prefetch(url: string): any + abortPrefetch?(requestId: number): void + queryCache?(urls: string[]): Promise> +} + export interface ViewToken { item: any; key: string; @@ -8851,8 +8868,8 @@ export type DrawerLayoutAndroid = DrawerLayoutAndroidStatic export var Image: ImageStatic export type Image = ImageStatic -export var ImageBackground: ImageStatic -export type ImageBackground = ImageStatic +export var ImageBackground: ImageBackgroundStatic +export type ImageBackground = ImageBackgroundStatic export var ImagePickerIOS: ImagePickerIOSStatic export type ImagePickerIOS = ImagePickerIOSStatic From 6bcca4d5b64e5680a9fde37a64599ce8682eb768 Mon Sep 17 00:00:00 2001 From: cezaryrk Date: Wed, 16 Aug 2017 23:52:18 +0200 Subject: [PATCH 068/103] Definitions for nsqjs (#19033) * Definitions for nsqjs * change strictNullChecks to true --- types/nsqjs/index.d.ts | 144 +++++++++++++++++++++++++++++++++++++ types/nsqjs/nsqjs-tests.ts | 52 ++++++++++++++ types/nsqjs/tsconfig.json | 22 ++++++ 3 files changed, 218 insertions(+) create mode 100644 types/nsqjs/index.d.ts create mode 100644 types/nsqjs/nsqjs-tests.ts create mode 100644 types/nsqjs/tsconfig.json diff --git a/types/nsqjs/index.d.ts b/types/nsqjs/index.d.ts new file mode 100644 index 0000000000..fa04d0b78a --- /dev/null +++ b/types/nsqjs/index.d.ts @@ -0,0 +1,144 @@ +// Type definitions for nsqjs 0.8.4 +// Project: https://github.com/dudleycarr/nsqjs +// Definitions by: Robert Kania +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +/// + +import * as events from 'events'; + +export = nsqjs + + +declare namespace nsqjs { + + + export enum RESPONSE_TYPE { + FINISH = 0, + REQUEUE = 1, + TOUCH = 2 + } + + export class Message extends events.EventEmitter { + + static BACKOFF: string; + static RESPOND: string; + static FINISH: number; + static REQUEUE: number; + static TOUCH: number; + + readonly id: string; + body: any; + hasResponded: boolean; + timestamp: number; + + + constructor(id: string, timestamp: number, attempts: number, body: any, + requeueDelay: number, msgTimeout: number, maxMsgTimeout: number); + + json(): any; + + timeUntilTimeout(hard?: boolean): number; + + finish(): any; + + requeue(delay: number, backoff: string): any; + + touch(): any; + + respond(responseType: RESPONSE_TYPE, wireData: any): any; + + } + + export class Writer extends events.EventEmitter { + + readonly nsqdHost: string + readonly nsqdPort: number + + static READY: string; + static CLOSED: string; + static ERROR: string; + + constructor(nsqdHost: string, nsqdPort: number, options?: IConnectionConfigOptions); + + connect(): any; + + publish(topic: string, msgs: any, listener?: (err: Error) => void): any; + + close(): any; + + on(event: string, listener: Function): this; + on(event: "ready", listener: () => void): void; + on(event: "closed", listener: () => void): void; + on(event: "error", listener: (err: Error) => void): void; + on(event: "connection_error", listener: (err: Error) => void): void; + + } + + export class Reader extends events.EventEmitter { + + static ERROR: string; + static MESSAGE: string; + static DISCARD: string; + static NSQD_CONNECTED: string; + static NSQD_CLOSED: string; + + constructor(topic: string, channel: any, options?: IReaderConnectionConfigOptions); + + connect(): any; + + close(): any; + + pause(): any; + + unpause(): any; + + isPaused(): boolean; + + queryLookupd(): any; + + connectToNSQD(host: string, port: number): any; + + handleMessage(message: any): any; + + on(event: string, listener: Function): this; + on(event: "nsqd_connected", listener: (host: string, port: number) => void): void; + on(event: "nsqd_closed", listener: (host: string, port: number) => void): void; + on(event: "message", listener: (message: Message) => void): void; + on(event: "discard", listener: (message: Message) => void): void; + on(event: "error", listener: (err: Error) => void): void; + on(event: "connection_error", listener: (err: Error) => void): void; + + + } + + + interface IConnectionConfigOptions { + authSecret?: string, + clientId?: string, + deflate?: boolean, + deflateLevel?: number, + heartbeatInterval?: number, + maxInFlight?: number, + messageTimeout?: number, + outputBufferSize?: number, + outputBufferTimeout?: number, + requeueDelay?: number, + sampleRate?: number, + snappy?: boolean, + tls?: boolean, + tlsVerification?: boolean + } + + interface IReaderConnectionConfigOptions extends IConnectionConfigOptions { + lookupdHTTPAddresses?: string | string[], + lookupdPollInterval?: number, + lookupdPollJitter?: number, + name?: string, + nsqdTCPAddresses?: string | string[], + maxAttempts?: number, + maxBackoffDuration?: number + } + + +} diff --git a/types/nsqjs/nsqjs-tests.ts b/types/nsqjs/nsqjs-tests.ts new file mode 100644 index 0000000000..3a20471181 --- /dev/null +++ b/types/nsqjs/nsqjs-tests.ts @@ -0,0 +1,52 @@ +import nsqjs = require("nsqjs") + + +/* + * Enable reader + */ + +let reader = new nsqjs.Reader("sample_topic", 'test_channel', { + nsqdTCPAddresses: '127.0.0.1:4150', + //lookupdHTTPAddresses: ['127.0.0.1:4161'] +}) +reader.connect() + + +reader.on("nsqd_connected", function (err: Error) { + console.log('reader connected => ', err) +}) + +reader.on('message', function (msg: nsqjs.Message) { + console.log('Received message [%s]: %s', msg.id, msg.body.toString()); + msg.finish(); +}); + + +/* + * Enable writer + */ + +let writer = new nsqjs.Writer("127.0.0.1", 4150) +writer.connect(); + +writer.on('ready', function () { + console.log('writer ready') + writer.publish('sample_topic', 'it really tied the room together'); + writer.publish('sample_topic', [ + 'Uh, excuse me. Mark it zero. Next frame.', + 'Smokey, this is not \'Nam. This is bowling. There are rules.' + ]); + writer.publish('sample_topic', 'Wu?', function (err: Error) { + if (err) { + return console.error(err.message); + } + console.log('Message sent successfully'); + writer.close(); + }); +}); + +writer.on('closed', function () { + console.log('Writer closed'); +}); + + diff --git a/types/nsqjs/tsconfig.json b/types/nsqjs/tsconfig.json new file mode 100644 index 0000000000..418c3a8170 --- /dev/null +++ b/types/nsqjs/tsconfig.json @@ -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", + "nsqjs-tests.ts" + ] +} From 328aec4c8baf506cd1b5440c40703e4d2f3c20d5 Mon Sep 17 00:00:00 2001 From: Tomohiko Ozawa Date: Thu, 17 Aug 2017 07:36:56 +0900 Subject: [PATCH 069/103] [paper] fixed typing (#19044) * fixed * update version --- types/paper/index.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/types/paper/index.d.ts b/types/paper/index.d.ts index bce11df130..0db2b5a773 100644 --- a/types/paper/index.d.ts +++ b/types/paper/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for Paper.js v0.9.22 +// Type definitions for Paper.js v0.9.23 // Project: http://paperjs.org/ // Definitions by: Clark Stevenson // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped @@ -3009,7 +3009,7 @@ declare module 'paper' { * @param offset - the offset on the curve, or the curve time parameter if isParameter is true * @param isParameter [optional] - pass true if offset is a curve time parameter. default: false */ - getLocationAt(offset: Point, isParameter?: boolean): CurveLocation; + getLocationAt(offset: number, isParameter?: boolean): CurveLocation; /** * Returns the curve location of the specified point if it lies on the curve, null otherwise. From f455e81db0bcde01eed54ed3c82a1701279096df Mon Sep 17 00:00:00 2001 From: seyfert Date: Wed, 16 Aug 2017 17:37:26 -0500 Subject: [PATCH 070/103] @google-cloud/storage - createResumableUpload and custom file metadata (#19006) * @google-cloud/storage - createResumableUpload and custom file metadata Add typings for File.createResumableUpload and the ability to define custom metadata on files. * Moved createResumeableUpload to File. Added test for createResumableUpload. --- .../google-cloud__storage-tests.ts | 11 ++++++++++ types/google-cloud__storage/index.d.ts | 20 +++++++++++++++++++ 2 files changed, 31 insertions(+) diff --git a/types/google-cloud__storage/google-cloud__storage-tests.ts b/types/google-cloud__storage/google-cloud__storage-tests.ts index 590953fa6a..00f85ff3d0 100644 --- a/types/google-cloud__storage/google-cloud__storage-tests.ts +++ b/types/google-cloud__storage/google-cloud__storage-tests.ts @@ -19,6 +19,7 @@ import { FileMetadata, FilePrivateOptions, ReadStreamOptions, + ResumableUploadOptions, SignedPolicy, SignedPolicyOptions, SignedUrlConfig, @@ -247,6 +248,16 @@ export class TestFile { return this.file.copy(destination); } + /** + * Create a unique resumable upload session URI. This is the first step when performing a resumable upload. + * @method createResumableUpload + * @param {ResumableUploadOptions} options + * @return {Promise<[string]} + */ + createResumableUpload(options?: ResumableUploadOptions): Promise<[string]> { + return this.file.createResumableUpload(options); + } + /** * Create a readable stream to read the contents of the remote file. * It can be piped to a writable stream or listened to for 'data' events to read a file's contents. diff --git a/types/google-cloud__storage/index.d.ts b/types/google-cloud__storage/index.d.ts index bee7c5de87..1d6bde527a 100644 --- a/types/google-cloud__storage/index.d.ts +++ b/types/google-cloud__storage/index.d.ts @@ -121,6 +121,7 @@ declare namespace Storage { acl: Acl; copy(destination: string | Bucket | File): Promise<[File, ApiResponse]>; createReadStream(options?: ReadStreamOptions): ReadStream; + createResumableUpload(options?: ResumableUploadOptions): Promise<[string]>; createWriteStream(options?: WriteStreamOptions): WriteStream; delete(): Promise<[ApiResponse]>; download(options?: DownloadOptions): Promise<[Buffer]>; @@ -139,11 +140,19 @@ declare namespace Storage { metadata?: FileMetadata; } + /** + * User-defined metadata. + */ + interface CustomFileMetadata { + [key: string]: boolean | number | string | null; + } + /** * File metadata. */ interface FileMetadata { contentType?: string; + metadata?: CustomFileMetadata; } /** @@ -192,6 +201,17 @@ declare namespace Storage { responseType?: string; } + /** + * Options when obtaining a resumable upload URI. + */ + interface ResumableUploadOptions { + metadata?: FileMetadata; + origin?: string; + predefinedAcl?: string; + private?: boolean; + public?: boolean; + } + /** * Access control list for storage buckets and files. */ From e3cd24ccb2bb91548337c8d59be3dc483a9e3756 Mon Sep 17 00:00:00 2001 From: sanjaymadane Date: Thu, 17 Aug 2017 09:34:23 +0800 Subject: [PATCH 071/103] strictNullChecks turn on --- types/openstack-wrapper/tsconfig.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/openstack-wrapper/tsconfig.json b/types/openstack-wrapper/tsconfig.json index 0ccc091222..07feed0989 100644 --- a/types/openstack-wrapper/tsconfig.json +++ b/types/openstack-wrapper/tsconfig.json @@ -6,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" From f80a0dc0d99660ee400e588ff35fda2aeb57f0ae Mon Sep 17 00:00:00 2001 From: Anatoly Demidovich Date: Thu, 17 Aug 2017 09:35:06 +0300 Subject: [PATCH 072/103] Add connect() and ObjectId --- types/mongodb/index.d.ts | 2494 +++++++++++++++++++------------------- 1 file changed, 1251 insertions(+), 1243 deletions(-) diff --git a/types/mongodb/index.d.ts b/types/mongodb/index.d.ts index 0105c6104d..07b501f062 100644 --- a/types/mongodb/index.d.ts +++ b/types/mongodb/index.d.ts @@ -15,1257 +15,1265 @@ import { ObjectID } from 'bson'; import { EventEmitter } from 'events'; import { Readable, Writable } from "stream"; -export { Binary, Double, Long, Decimal128, MaxKey, MinKey, ObjectID, Timestamp } from 'bson'; - -// Class documentation : http://mongodb.github.io/node-mongodb-native/2.1/api/MongoClient.html -export class MongoClient { - constructor(); - - static connect(uri: string, callback: MongoCallback): void; - static connect(uri: string, options?: MongoClientOptions): Promise; - static connect(uri: string, options: MongoClientOptions, callback: MongoCallback): void; - - connect(uri: string, callback: MongoCallback): void; - connect(uri: string, options?: MongoClientOptions): Promise; - connect(uri: string, options: MongoClientOptions, callback: MongoCallback): void; -} - -export interface MongoCallback { - (error: MongoError, result: T): void; -} - -// http://mongodb.github.io/node-mongodb-native/2.1/api/MongoError.html -export class MongoError extends Error { - constructor(message: string); - static create(options: Object): MongoError; - code?: number; -} - -// http://mongodb.github.io/node-mongodb-native/2.2/api/MongoClient.html#.connect -export interface MongoClientOptions extends - DbCreateOptions, - ServerOptions, - MongosOptions, - ReplSetOptions, - SocketOptions, - SSLOptions, - HighAvailabilityOptions { - // The logging level (error/warn/info/debug) - loggerLevel?: string; - // Custom logger object - logger?: Object; - // Default: false; - validateOptions?: Object; -} - -export interface SSLOptions { - // Default:5; Number of connections for each server instance - poolSize?: number; - // Use ssl connection (needs to have a mongod server with ssl support) - ssl?: boolean; - // Default: true; Validate mongod server certificate against ca (mongod server >=2.4 with ssl support required) - sslValidate?: Object; - // Default: true; Server identity checking during SSL - checkServerIdentity?: boolean | Function; - // Array of valid certificates either as Buffers or Strings - sslCA?: Array; - // SSL Certificate revocation list binary buffer - sslCRL?: Buffer; - // SSL Certificate binary buffer - sslCert?: Buffer | string; - // SSL Key file binary buffer - sslKey?: Buffer | string; - // SSL Certificate pass phrase - sslPass?: Buffer | string; - // String containing the server name requested via TLS SNI. - servername?: string; -} - -export interface HighAvailabilityOptions { - // Default: true; Turn on high availability monitoring. - ha?: boolean; - // Default: 10000; The High availability period for replicaset inquiry - haInterval?: number; - // Default: false; - domainsEnabled?: boolean; -} - -// See http://mongodb.github.io/node-mongodb-native/2.2/api/ReadPreference.html -export class ReadPreference { - constructor(mode: string, tags: Object); - mode: string; - tags: any; - options: { maxStalenessSeconds?: number }; // Max Secondary Read Stalleness in Seconds - static PRIMARY: string; - static PRIMARY_PREFERRED: string; - static SECONDARY: string; - static SECONDARY_PREFERRED: string; - static NEAREST: string; - isValid(mode: string): boolean; - static isValid(mode: string): boolean; -} - -// http://mongodb.github.io/node-mongodb-native/2.2/api/Db.html -export interface DbCreateOptions { - - // If the database authentication is dependent on another databaseName. - authSource?: string; - // Default: null;https://docs.mongodb.com/manual/reference/write-concern/#write-concern - w?: number | string; - // The write concern timeout to finish (combining with w option). - wtimeout?: number; - // Specify a journal write concern. - j?: boolean; - // Default: false; Force server to create _id fields instead of client. - forceServerObjectId?: boolean; - // Default: false; Use c++ bson parser. - native_parser?: boolean; - // Serialize functions on any object. - serializeFunctions?: boolean; - // Specify if the BSON serializer should ignore undefined fields. - ignoreUndefined?: boolean; - // Return document results as raw BSON buffers. - raw?: boolean; - // Default: true; Promotes Long values to number if they fit inside the 53 bits resolution. - promoteLongs?: boolean; - // Default: -1 (unlimited); Amount of operations the driver buffers up untill discard any new ones - promoteBuffers?: number; - // the prefered read preference. use 'ReadPreference' class. - readPreference?: ReadPreference | string; - // Default: true; Promotes BSON values to native types where possible, set to false to only receive wrapper types. - promoteValues?: Object; - // Custom primary key factory to generate _id values (see Custom primary keys). - pkFactory?: Object; - // ES6 compatible promise constructor - promiseLibrary?: Object; - // https://docs.mongodb.com/manual/reference/read-concern/#read-concern - readConcern?: { level?: Object }; -} - -// http://mongodb.github.io/node-mongodb-native/2.2/api/Server.html -export interface SocketOptions { - // Reconnect on error. default:false - autoReconnect?: boolean; - // TCP Socket NoDelay option. default:true - noDelay?: boolean; - // TCP KeepAlive on the socket with a X ms delay before start. default:0 - keepAlive?: number; - // TCP Connection timeout setting. default 0 - connectTimeoutMS?: number; - // TCP Socket timeout setting. default 0 - socketTimeoutMS?: number; -} - -// http://mongodb.github.io/node-mongodb-native/2.2/api/Server.html -export interface ServerOptions extends SSLOptions { - // Default: 30; - reconnectTries?: number; - // Default: 1000; - reconnectInterval?: number; - // Default: true; - monitoring?: boolean - socketOptions?: SocketOptions; - // Default: 10000; The High availability period for replicaset inquiry - haInterval?: number; - // Default: false; - domainsEnabled?: boolean; -} - -// http://mongodb.github.io/node-mongodb-native/2.2/api/Mongos.html -export interface MongosOptions extends SSLOptions, HighAvailabilityOptions { - // Default: 15; Cutoff latency point in MS for MongoS proxy selection - acceptableLatencyMS?: number; - socketOptions?: SocketOptions; -} - -// http://mongodb.github.io/node-mongodb-native/2.2/api/ReplSet.html -export interface ReplSetOptions extends SSLOptions, HighAvailabilityOptions { - // The max staleness to secondary reads (values under 10 seconds cannot be guaranteed); - maxStalenessSeconds?: number; - // The name of the replicaset to connect to. - replicaSet?: string; - // Default: 15 ; Range of servers to pick when using NEAREST (lowest ping ms + the latency fence, ex: range of 1 to (1 + 15) ms) - secondaryAcceptableLatencyMS?: number; - connectWithNoPrimary?: boolean; - socketOptions?: SocketOptions; -} - -// Class documentation : http://mongodb.github.io/node-mongodb-native/2.1/api/Db.html -export class Db extends EventEmitter { - constructor(databaseName: string, serverConfig: Server | ReplSet | Mongos, options?: DbCreateOptions); - - serverConfig: Server | ReplSet | Mongos; - bufferMaxEntries: number; - databaseName: string; - options: any; - native_parser: boolean; - slaveOk: boolean; - writeConcern: any; - +namespace MongoDB { + export function connect(uri: string, callback: MongoCallback): void; + export function connect(uri: string, options?: MongoClientOptions): Promise; + export function connect(uri: string, options: MongoClientOptions, callback: MongoCallback): void; + + export { Binary, Double, Long, Decimal128, MaxKey, MinKey, ObjectID, ObjectId, Timestamp } from 'bson'; + + // Class documentation : http://mongodb.github.io/node-mongodb-native/2.1/api/MongoClient.html + export class MongoClient { + constructor(); + + static connect(uri: string, callback: MongoCallback): void; + static connect(uri: string, options?: MongoClientOptions): Promise; + static connect(uri: string, options: MongoClientOptions, callback: MongoCallback): void; + + connect(uri: string, callback: MongoCallback): void; + connect(uri: string, options?: MongoClientOptions): Promise; + connect(uri: string, options: MongoClientOptions, callback: MongoCallback): void; + } + + export interface MongoCallback { + (error: MongoError, result: T): void; + } + + // http://mongodb.github.io/node-mongodb-native/2.1/api/MongoError.html + export class MongoError extends Error { + constructor(message: string); + static create(options: Object): MongoError; + code?: number; + } + + // http://mongodb.github.io/node-mongodb-native/2.2/api/MongoClient.html#.connect + export interface MongoClientOptions extends + DbCreateOptions, + ServerOptions, + MongosOptions, + ReplSetOptions, + SocketOptions, + SSLOptions, + HighAvailabilityOptions { + // The logging level (error/warn/info/debug) + loggerLevel?: string; + // Custom logger object + logger?: Object; + // Default: false; + validateOptions?: Object; + } + + export interface SSLOptions { + // Default:5; Number of connections for each server instance + poolSize?: number; + // Use ssl connection (needs to have a mongod server with ssl support) + ssl?: boolean; + // Default: true; Validate mongod server certificate against ca (mongod server >=2.4 with ssl support required) + sslValidate?: Object; + // Default: true; Server identity checking during SSL + checkServerIdentity?: boolean | Function; + // Array of valid certificates either as Buffers or Strings + sslCA?: Array; + // SSL Certificate revocation list binary buffer + sslCRL?: Buffer; + // SSL Certificate binary buffer + sslCert?: Buffer | string; + // SSL Key file binary buffer + sslKey?: Buffer | string; + // SSL Certificate pass phrase + sslPass?: Buffer | string; + // String containing the server name requested via TLS SNI. + servername?: string; + } + + export interface HighAvailabilityOptions { + // Default: true; Turn on high availability monitoring. + ha?: boolean; + // Default: 10000; The High availability period for replicaset inquiry + haInterval?: number; + // Default: false; + domainsEnabled?: boolean; + } + + // See http://mongodb.github.io/node-mongodb-native/2.2/api/ReadPreference.html + export class ReadPreference { + constructor(mode: string, tags: Object); + mode: string; + tags: any; + options: { maxStalenessSeconds?: number }; // Max Secondary Read Stalleness in Seconds + static PRIMARY: string; + static PRIMARY_PREFERRED: string; + static SECONDARY: string; + static SECONDARY_PREFERRED: string; + static NEAREST: string; + isValid(mode: string): boolean; + static isValid(mode: string): boolean; + } + + // http://mongodb.github.io/node-mongodb-native/2.2/api/Db.html + export interface DbCreateOptions { + + // If the database authentication is dependent on another databaseName. + authSource?: string; + // Default: null;https://docs.mongodb.com/manual/reference/write-concern/#write-concern + w?: number | string; + // The write concern timeout to finish (combining with w option). + wtimeout?: number; + // Specify a journal write concern. + j?: boolean; + // Default: false; Force server to create _id fields instead of client. + forceServerObjectId?: boolean; + // Default: false; Use c++ bson parser. + native_parser?: boolean; + // Serialize functions on any object. + serializeFunctions?: boolean; + // Specify if the BSON serializer should ignore undefined fields. + ignoreUndefined?: boolean; + // Return document results as raw BSON buffers. + raw?: boolean; + // Default: true; Promotes Long values to number if they fit inside the 53 bits resolution. + promoteLongs?: boolean; + // Default: -1 (unlimited); Amount of operations the driver buffers up untill discard any new ones + promoteBuffers?: number; + // the prefered read preference. use 'ReadPreference' class. + readPreference?: ReadPreference | string; + // Default: true; Promotes BSON values to native types where possible, set to false to only receive wrapper types. + promoteValues?: Object; + // Custom primary key factory to generate _id values (see Custom primary keys). + pkFactory?: Object; + // ES6 compatible promise constructor + promiseLibrary?: Object; + // https://docs.mongodb.com/manual/reference/read-concern/#read-concern + readConcern?: { level?: Object }; + } + + // http://mongodb.github.io/node-mongodb-native/2.2/api/Server.html + export interface SocketOptions { + // Reconnect on error. default:false + autoReconnect?: boolean; + // TCP Socket NoDelay option. default:true + noDelay?: boolean; + // TCP KeepAlive on the socket with a X ms delay before start. default:0 + keepAlive?: number; + // TCP Connection timeout setting. default 0 + connectTimeoutMS?: number; + // TCP Socket timeout setting. default 0 + socketTimeoutMS?: number; + } + + // http://mongodb.github.io/node-mongodb-native/2.2/api/Server.html + export interface ServerOptions extends SSLOptions { + // Default: 30; + reconnectTries?: number; + // Default: 1000; + reconnectInterval?: number; + // Default: true; + monitoring?: boolean + socketOptions?: SocketOptions; + // Default: 10000; The High availability period for replicaset inquiry + haInterval?: number; + // Default: false; + domainsEnabled?: boolean; + } + + // http://mongodb.github.io/node-mongodb-native/2.2/api/Mongos.html + export interface MongosOptions extends SSLOptions, HighAvailabilityOptions { + // Default: 15; Cutoff latency point in MS for MongoS proxy selection + acceptableLatencyMS?: number; + socketOptions?: SocketOptions; + } + + // http://mongodb.github.io/node-mongodb-native/2.2/api/ReplSet.html + export interface ReplSetOptions extends SSLOptions, HighAvailabilityOptions { + // The max staleness to secondary reads (values under 10 seconds cannot be guaranteed); + maxStalenessSeconds?: number; + // The name of the replicaset to connect to. + replicaSet?: string; + // Default: 15 ; Range of servers to pick when using NEAREST (lowest ping ms + the latency fence, ex: range of 1 to (1 + 15) ms) + secondaryAcceptableLatencyMS?: number; + connectWithNoPrimary?: boolean; + socketOptions?: SocketOptions; + } + + // Class documentation : http://mongodb.github.io/node-mongodb-native/2.1/api/Db.html + export class Db extends EventEmitter { + constructor(databaseName: string, serverConfig: Server | ReplSet | Mongos, options?: DbCreateOptions); + + serverConfig: Server | ReplSet | Mongos; + bufferMaxEntries: number; + databaseName: string; + options: any; + native_parser: boolean; + slaveOk: boolean; + writeConcern: any; + + // http://mongodb.github.io/node-mongodb-native/2.1/api/Db.html#addUser + addUser(username: string, password: string, callback: MongoCallback): void; + addUser(username: string, password: string, options?: DbAddUserOptions): Promise; + addUser(username: string, password: string, options: DbAddUserOptions, callback: MongoCallback): void; + //http://mongodb.github.io/node-mongodb-native/2.1/api/Db.html#admin + admin(): Admin; + // http://mongodb.github.io/node-mongodb-native/2.1/api/Db.html#authenticate + authenticate(userName: string, password: string, callback: MongoCallback): void; + authenticate(userName: string, password: string, options?: { authMechanism: string }): Promise; + authenticate(userName: string, password: string, options: { authMechanism: string }, callback: MongoCallback): void; + // http://mongodb.github.io/node-mongodb-native/2.1/api/Db.html#close + close(callback: MongoCallback): void; + close(forceClose?: boolean): Promise; + close(forceClose: boolean, callback: MongoCallback): void; + // http://mongodb.github.io/node-mongodb-native/2.1/api/Db.html#collection + collection(name: string): Collection; + collection(name: string, callback: MongoCallback>): Collection; + collection(name: string, options: DbCollectionOptions, callback: MongoCallback>): Collection; + //http://mongodb.github.io/node-mongodb-native/2.1/api/Db.html#collections + collections(): Promise[]>; + collections(callback: MongoCallback[]>): void; + //http://mongodb.github.io/node-mongodb-native/2.1/api/Db.html#command + command(command: Object, callback: MongoCallback): void; + command(command: Object, options?: { readPreference: ReadPreference | string }): Promise; + command(command: Object, options: { readPreference: ReadPreference | string }, callback: MongoCallback): void; + //http://mongodb.github.io/node-mongodb-native/2.1/api/Db.html#createCollection + createCollection(name: string, callback: MongoCallback>): void; + createCollection(name: string, options?: CollectionCreateOptions): Promise>; + createCollection(name: string, options: CollectionCreateOptions, callback: MongoCallback>): void; + //http://mongodb.github.io/node-mongodb-native/2.1/api/Db.html#createIndex + createIndex(name: string, fieldOrSpec: string | Object, callback: MongoCallback): void; + createIndex(name: string, fieldOrSpec: string | Object, options?: IndexOptions): Promise; + createIndex(name: string, fieldOrSpec: string | Object, options: IndexOptions, callback: MongoCallback): void; + //http://mongodb.github.io/node-mongodb-native/2.1/api/Db.html#db + db(dbName: string): Db; + db(dbName: string, options: { noListener?: boolean, returnNonCachedInstance?: boolean }): Db; + //http://mongodb.github.io/node-mongodb-native/2.1/api/Db.html#dropCollection + dropCollection(name: string): Promise; + dropCollection(name: string, callback: MongoCallback): void; + // http://mongodb.github.io/node-mongodb-native/2.1/api/Db.html#dropDatabase + dropDatabase(): Promise; + dropDatabase(callback: MongoCallback): void; + + //deprecated http://mongodb.github.io/node-mongodb-native/2.1/api/Db.html#ensureIndex + // ensureIndex(collectionName: any, fieldOrSpec: any, options: IndexOptions, callback: Function): void; + //deprecated http://mongodb.github.io/node-mongodb-native/2.1/api/Db.html#eval + // eval(code: any, parameters: any[], options?: any, callback?: MongoCallback): void; + + //http://mongodb.github.io/node-mongodb-native/2.1/api/Db.html#executeDbAdminCommand + executeDbAdminCommand(command: Object, callback: MongoCallback): void; + executeDbAdminCommand(command: Object, options?: { readPreference?: ReadPreference | string, maxTimeMS?: number }): Promise; + executeDbAdminCommand(command: Object, options: { readPreference?: ReadPreference | string, maxTimeMS?: number }, callback: MongoCallback): void; + // http://mongodb.github.io/node-mongodb-native/2.1/api/Db.html#indexInformation + indexInformation(name: string, callback: MongoCallback): void; + indexInformation(name: string, options?: { full?: boolean, readPreference?: ReadPreference | string }): Promise; + indexInformation(name: string, options: { full?: boolean, readPreference?: ReadPreference | string }, callback: MongoCallback): void; + //http://mongodb.github.io/node-mongodb-native/2.1/api/Db.html#listCollections + listCollections(filter: Object, options?: { batchSize?: number, readPreference?: ReadPreference | string }): CommandCursor; + //http://mongodb.github.io/node-mongodb-native/2.1/api/Db.html#logout + logout(callback: MongoCallback): void; + logout(options?: { dbName?: string }): Promise; + logout(options: { dbName?: string }, callback: MongoCallback): void; + //http://mongodb.github.io/node-mongodb-native/2.1/api/Db.html#open + open(): Promise; + open(callback: MongoCallback): void; + //http://mongodb.github.io/node-mongodb-native/2.1/api/Db.html#removeUser + removeUser(username: string, callback: MongoCallback): void; + removeUser(username: string, options?: { w?: number | string, wtimeout?: number, j?: boolean }): Promise; + removeUser(username: string, options: { w?: number | string, wtimeout?: number, j?: boolean }, callback: MongoCallback): void; + // http://mongodb.github.io/node-mongodb-native/2.1/api/Db.html#renameCollection + renameCollection(fromCollection: string, toCollection: string, callback: MongoCallback>): void; + renameCollection(fromCollection: string, toCollection: string, options?: { dropTarget?: boolean }): Promise>; + renameCollection(fromCollection: string, toCollection: string, options: { dropTarget?: boolean }, callback: MongoCallback>): void; + //http://mongodb.github.io/node-mongodb-native/2.1/api/Db.html#stats + stats(callback: MongoCallback): void; + stats(options?: { scale?: number }): Promise; + stats(options: { scale?: number }, callback: MongoCallback): void; + } + + // Deprecated http://mongodb.github.io/node-mongodb-native/2.1/api/Server.html + export class Server extends EventEmitter { + constructor(host: string, port: number, options?: ServerOptions); + + connections(): Array; + } + + // Deprecated http://mongodb.github.io/node-mongodb-native/2.1/api/ReplSet.html + export class ReplSet extends EventEmitter { + constructor(servers: Array, options?: ReplSetOptions); + + connections(): Array; + } + + // Deprecated http://mongodb.github.io/node-mongodb-native/2.1/api/ReplSet.html + export class Mongos extends EventEmitter { + constructor(servers: Array, options?: MongosOptions); + + connections(): Array; + } + // http://mongodb.github.io/node-mongodb-native/2.1/api/Db.html#addUser - addUser(username: string, password: string, callback: MongoCallback): void; - addUser(username: string, password: string, options?: DbAddUserOptions): Promise; - addUser(username: string, password: string, options: DbAddUserOptions, callback: MongoCallback): void; - //http://mongodb.github.io/node-mongodb-native/2.1/api/Db.html#admin - admin(): Admin; - // http://mongodb.github.io/node-mongodb-native/2.1/api/Db.html#authenticate - authenticate(userName: string, password: string, callback: MongoCallback): void; - authenticate(userName: string, password: string, options?: { authMechanism: string }): Promise; - authenticate(userName: string, password: string, options: { authMechanism: string }, callback: MongoCallback): void; - // http://mongodb.github.io/node-mongodb-native/2.1/api/Db.html#close - close(callback: MongoCallback): void; - close(forceClose?: boolean): Promise; - close(forceClose: boolean, callback: MongoCallback): void; - // http://mongodb.github.io/node-mongodb-native/2.1/api/Db.html#collection - collection(name: string): Collection; - collection(name: string, callback: MongoCallback>): Collection; - collection(name: string, options: DbCollectionOptions, callback: MongoCallback>): Collection; - //http://mongodb.github.io/node-mongodb-native/2.1/api/Db.html#collections - collections(): Promise[]>; - collections(callback: MongoCallback[]>): void; - //http://mongodb.github.io/node-mongodb-native/2.1/api/Db.html#command - command(command: Object, callback: MongoCallback): void; - command(command: Object, options?: { readPreference: ReadPreference | string }): Promise; - command(command: Object, options: { readPreference: ReadPreference | string }, callback: MongoCallback): void; + export interface DbAddUserOptions { + w?: string | number; + wtimeout?: number; + j?: boolean; + customData?: Object; + roles?: Object[]; + } + //http://mongodb.github.io/node-mongodb-native/2.1/api/Db.html#createCollection - createCollection(name: string, callback: MongoCallback>): void; - createCollection(name: string, options?: CollectionCreateOptions): Promise>; - createCollection(name: string, options: CollectionCreateOptions, callback: MongoCallback>): void; - //http://mongodb.github.io/node-mongodb-native/2.1/api/Db.html#createIndex - createIndex(name: string, fieldOrSpec: string | Object, callback: MongoCallback): void; - createIndex(name: string, fieldOrSpec: string | Object, options?: IndexOptions): Promise; - createIndex(name: string, fieldOrSpec: string | Object, options: IndexOptions, callback: MongoCallback): void; - //http://mongodb.github.io/node-mongodb-native/2.1/api/Db.html#db - db(dbName: string): Db; - db(dbName: string, options: { noListener?: boolean, returnNonCachedInstance?: boolean }): Db; - //http://mongodb.github.io/node-mongodb-native/2.1/api/Db.html#dropCollection - dropCollection(name: string): Promise; - dropCollection(name: string, callback: MongoCallback): void; - // http://mongodb.github.io/node-mongodb-native/2.1/api/Db.html#dropDatabase - dropDatabase(): Promise; - dropDatabase(callback: MongoCallback): void; - - //deprecated http://mongodb.github.io/node-mongodb-native/2.1/api/Db.html#ensureIndex - // ensureIndex(collectionName: any, fieldOrSpec: any, options: IndexOptions, callback: Function): void; - //deprecated http://mongodb.github.io/node-mongodb-native/2.1/api/Db.html#eval - // eval(code: any, parameters: any[], options?: any, callback?: MongoCallback): void; - - //http://mongodb.github.io/node-mongodb-native/2.1/api/Db.html#executeDbAdminCommand - executeDbAdminCommand(command: Object, callback: MongoCallback): void; - executeDbAdminCommand(command: Object, options?: { readPreference?: ReadPreference | string, maxTimeMS?: number }): Promise; - executeDbAdminCommand(command: Object, options: { readPreference?: ReadPreference | string, maxTimeMS?: number }, callback: MongoCallback): void; - // http://mongodb.github.io/node-mongodb-native/2.1/api/Db.html#indexInformation - indexInformation(name: string, callback: MongoCallback): void; - indexInformation(name: string, options?: { full?: boolean, readPreference?: ReadPreference | string }): Promise; - indexInformation(name: string, options: { full?: boolean, readPreference?: ReadPreference | string }, callback: MongoCallback): void; - //http://mongodb.github.io/node-mongodb-native/2.1/api/Db.html#listCollections - listCollections(filter: Object, options?: { batchSize?: number, readPreference?: ReadPreference | string }): CommandCursor; - //http://mongodb.github.io/node-mongodb-native/2.1/api/Db.html#logout - logout(callback: MongoCallback): void; - logout(options?: { dbName?: string }): Promise; - logout(options: { dbName?: string }, callback: MongoCallback): void; - //http://mongodb.github.io/node-mongodb-native/2.1/api/Db.html#open - open(): Promise; - open(callback: MongoCallback): void; - //http://mongodb.github.io/node-mongodb-native/2.1/api/Db.html#removeUser - removeUser(username: string, callback: MongoCallback): void; - removeUser(username: string, options?: { w?: number | string, wtimeout?: number, j?: boolean }): Promise; - removeUser(username: string, options: { w?: number | string, wtimeout?: number, j?: boolean }, callback: MongoCallback): void; - // http://mongodb.github.io/node-mongodb-native/2.1/api/Db.html#renameCollection - renameCollection(fromCollection: string, toCollection: string, callback: MongoCallback>): void; - renameCollection(fromCollection: string, toCollection: string, options?: { dropTarget?: boolean }): Promise>; - renameCollection(fromCollection: string, toCollection: string, options: { dropTarget?: boolean }, callback: MongoCallback>): void; - //http://mongodb.github.io/node-mongodb-native/2.1/api/Db.html#stats - stats(callback: MongoCallback): void; - stats(options?: { scale?: number }): Promise; - stats(options: { scale?: number }, callback: MongoCallback): void; -} - -// Deprecated http://mongodb.github.io/node-mongodb-native/2.1/api/Server.html -export class Server extends EventEmitter { - constructor(host: string, port: number, options?: ServerOptions); - - connections(): Array; -} - -// Deprecated http://mongodb.github.io/node-mongodb-native/2.1/api/ReplSet.html -export class ReplSet extends EventEmitter { - constructor(servers: Array, options?: ReplSetOptions); - - connections(): Array; -} - -// Deprecated http://mongodb.github.io/node-mongodb-native/2.1/api/ReplSet.html -export class Mongos extends EventEmitter { - constructor(servers: Array, options?: MongosOptions); - - connections(): Array; -} - -// http://mongodb.github.io/node-mongodb-native/2.1/api/Db.html#addUser -export interface DbAddUserOptions { - w?: string | number; - wtimeout?: number; - j?: boolean; - customData?: Object; - roles?: Object[]; -} - -//http://mongodb.github.io/node-mongodb-native/2.1/api/Db.html#createCollection -export interface CollectionCreateOptions { - w?: number | string; - wtimeout?: number; - j?: boolean; - raw?: boolean; - pkFactory?: Object; - readPreference?: ReadPreference | string; - serializeFunctions?: boolean; - strict?: boolean; - capped?: boolean; - size?: number; - max?: number; - autoIndexId?: boolean; -} - -// http://mongodb.github.io/node-mongodb-native/2.1/api/Db.html#collection -export interface DbCollectionOptions { - w?: number | string; - wtimeout?: number; - j?: boolean; - raw?: boolean; - pkFactory?: Object; - readPreference?: ReadPreference | string; - serializeFunctions?: boolean; - strict?: boolean; - readConcern?: { level: Object }; -} - -//http://mongodb.github.io/node-mongodb-native/2.2/api/Db.html#createIndex -export interface IndexOptions { - // The write concern. - w?: number | string; - // The write concern timeout. - wtimeout?: number; - // Specify a journal write concern. - j?: boolean; - // Creates an unique index. - unique?: boolean; - // Creates a sparse index. - sparse?: boolean; - // Creates the index in the background, yielding whenever possible. - background?: boolean; - // A unique index cannot be created on a key that has pre-existing duplicate values. - // If you would like to create the index anyway, keeping the first document the database indexes and - // deleting all subsequent documents that have duplicate value - dropDups?: boolean; - // For geo spatial indexes set the lower bound for the co-ordinates. - min?: number; - // For geo spatial indexes set the high bound for the co-ordinates. - max?: number; - // Specify the format version of the indexes. - v?: number; - // Allows you to expire data on indexes applied to a data (MongoDB 2.2 or higher) - expireAfterSeconds?: number; - // Override the auto generated index name (useful if the resulting name is larger than 128 bytes) - name?: string; - // Creates a partial index based on the given filter object (MongoDB 3.2 or higher) - partialFilterExpression?: any; -} - -// http://mongodb.github.io/node-mongodb-native/2.1/api/Admin.html -export interface Admin { - // http://mongodb.github.io/node-mongodb-native/2.1/api/Admin.html#addUser - addUser(username: string, password: string, callback: MongoCallback): void; - addUser(username: string, password: string, options?: AddUserOptions): Promise; - addUser(username: string, password: string, options: AddUserOptions, callback: MongoCallback): void; - //http://mongodb.github.io/node-mongodb-native/2.1/api/Admin.html#authenticate - authenticate(username: string, callback: MongoCallback): void; - authenticate(username: string, password?: string): Promise; - authenticate(username: string, password: string, callback: MongoCallback): void; - //http://mongodb.github.io/node-mongodb-native/2.1/api/Admin.html#buildInfo - buildInfo(): Promise; - buildInfo(callback: MongoCallback): void; - //http://mongodb.github.io/node-mongodb-native/2.1/api/Admin.html#command - command(command: Object, callback: MongoCallback): void; - command(command: Object, options?: { readPreference?: ReadPreference | string, maxTimeMS?: number }): Promise; - command(command: Object, options: { readPreference?: ReadPreference | string, maxTimeMS?: number }, callback: MongoCallback): void; - //http://mongodb.github.io/node-mongodb-native/2.1/api/Admin.html#listDatabases - listDatabases(): Promise; - listDatabases(callback: MongoCallback): void; - //http://mongodb.github.io/node-mongodb-native/2.1/api/Admin.html#logout - logout(): Promise; - logout(callback: MongoCallback): void; - //http://mongodb.github.io/node-mongodb-native/2.1/api/Admin.html#ping - ping(): Promise; - ping(callback: MongoCallback): void; - //http://mongodb.github.io/node-mongodb-native/2.1/api/Admin.html#profilingInfo - profilingInfo(): Promise; - profilingInfo(callback: MongoCallback): void; - //http://mongodb.github.io/node-mongodb-native/2.1/api/Admin.html#profilingLevel - profilingLevel(): Promise; - profilingLevel(callback: MongoCallback): void; + export interface CollectionCreateOptions { + w?: number | string; + wtimeout?: number; + j?: boolean; + raw?: boolean; + pkFactory?: Object; + readPreference?: ReadPreference | string; + serializeFunctions?: boolean; + strict?: boolean; + capped?: boolean; + size?: number; + max?: number; + autoIndexId?: boolean; + } + + // http://mongodb.github.io/node-mongodb-native/2.1/api/Db.html#collection + export interface DbCollectionOptions { + w?: number | string; + wtimeout?: number; + j?: boolean; + raw?: boolean; + pkFactory?: Object; + readPreference?: ReadPreference | string; + serializeFunctions?: boolean; + strict?: boolean; + readConcern?: { level: Object }; + } + + //http://mongodb.github.io/node-mongodb-native/2.2/api/Db.html#createIndex + export interface IndexOptions { + // The write concern. + w?: number | string; + // The write concern timeout. + wtimeout?: number; + // Specify a journal write concern. + j?: boolean; + // Creates an unique index. + unique?: boolean; + // Creates a sparse index. + sparse?: boolean; + // Creates the index in the background, yielding whenever possible. + background?: boolean; + // A unique index cannot be created on a key that has pre-existing duplicate values. + // If you would like to create the index anyway, keeping the first document the database indexes and + // deleting all subsequent documents that have duplicate value + dropDups?: boolean; + // For geo spatial indexes set the lower bound for the co-ordinates. + min?: number; + // For geo spatial indexes set the high bound for the co-ordinates. + max?: number; + // Specify the format version of the indexes. + v?: number; + // Allows you to expire data on indexes applied to a data (MongoDB 2.2 or higher) + expireAfterSeconds?: number; + // Override the auto generated index name (useful if the resulting name is larger than 128 bytes) + name?: string; + // Creates a partial index based on the given filter object (MongoDB 3.2 or higher) + partialFilterExpression?: any; + } + + // http://mongodb.github.io/node-mongodb-native/2.1/api/Admin.html + export interface Admin { + // http://mongodb.github.io/node-mongodb-native/2.1/api/Admin.html#addUser + addUser(username: string, password: string, callback: MongoCallback): void; + addUser(username: string, password: string, options?: AddUserOptions): Promise; + addUser(username: string, password: string, options: AddUserOptions, callback: MongoCallback): void; + //http://mongodb.github.io/node-mongodb-native/2.1/api/Admin.html#authenticate + authenticate(username: string, callback: MongoCallback): void; + authenticate(username: string, password?: string): Promise; + authenticate(username: string, password: string, callback: MongoCallback): void; + //http://mongodb.github.io/node-mongodb-native/2.1/api/Admin.html#buildInfo + buildInfo(): Promise; + buildInfo(callback: MongoCallback): void; + //http://mongodb.github.io/node-mongodb-native/2.1/api/Admin.html#command + command(command: Object, callback: MongoCallback): void; + command(command: Object, options?: { readPreference?: ReadPreference | string, maxTimeMS?: number }): Promise; + command(command: Object, options: { readPreference?: ReadPreference | string, maxTimeMS?: number }, callback: MongoCallback): void; + //http://mongodb.github.io/node-mongodb-native/2.1/api/Admin.html#listDatabases + listDatabases(): Promise; + listDatabases(callback: MongoCallback): void; + //http://mongodb.github.io/node-mongodb-native/2.1/api/Admin.html#logout + logout(): Promise; + logout(callback: MongoCallback): void; + //http://mongodb.github.io/node-mongodb-native/2.1/api/Admin.html#ping + ping(): Promise; + ping(callback: MongoCallback): void; + //http://mongodb.github.io/node-mongodb-native/2.1/api/Admin.html#profilingInfo + profilingInfo(): Promise; + profilingInfo(callback: MongoCallback): void; + //http://mongodb.github.io/node-mongodb-native/2.1/api/Admin.html#profilingLevel + profilingLevel(): Promise; + profilingLevel(callback: MongoCallback): void; + //http://mongodb.github.io/node-mongodb-native/2.1/api/Admin.html#removeUser + removeUser(username: string, callback: MongoCallback): void; + removeUser(username: string, options?: FSyncOptions): Promise; + removeUser(username: string, options: FSyncOptions, callback: MongoCallback): void; + //http://mongodb.github.io/node-mongodb-native/2.1/api/Admin.html#replSetGetStatus + replSetGetStatus(): Promise; + replSetGetStatus(callback: MongoCallback): void; + //http://mongodb.github.io/node-mongodb-native/2.1/api/Admin.html#serverInfo + serverInfo(): Promise; + serverInfo(callback: MongoCallback): void; + //http://mongodb.github.io/node-mongodb-native/2.1/api/Admin.html#serverStatus + serverStatus(): Promise; + serverStatus(callback: MongoCallback): void; + //http://mongodb.github.io/node-mongodb-native/2.1/api/Admin.html#setProfilingLevel + setProfilingLevel(level: string): Promise; + setProfilingLevel(level: string, callback: MongoCallback): void; + // http://mongodb.github.io/node-mongodb-native/2.1/api/Admin.html#validateCollection + validateCollection(collectionNme: string, callback: MongoCallback): void; + validateCollection(collectionNme: string, options?: Object): Promise; + validateCollection(collectionNme: string, options: Object, callback: MongoCallback): void; + } + + //http://mongodb.github.io/node-mongodb-native/2.1/api/Admin.html#addUser + export interface AddUserOptions { + w?: number | string; + wtimeout?: number; + j?: boolean; + fsync: boolean; + customData?: Object; + roles?: Object[] + } + //http://mongodb.github.io/node-mongodb-native/2.1/api/Admin.html#removeUser - removeUser(username: string, callback: MongoCallback): void; - removeUser(username: string, options?: FSyncOptions): Promise; - removeUser(username: string, options: FSyncOptions, callback: MongoCallback): void; - //http://mongodb.github.io/node-mongodb-native/2.1/api/Admin.html#replSetGetStatus - replSetGetStatus(): Promise; - replSetGetStatus(callback: MongoCallback): void; - //http://mongodb.github.io/node-mongodb-native/2.1/api/Admin.html#serverInfo - serverInfo(): Promise; - serverInfo(callback: MongoCallback): void; - //http://mongodb.github.io/node-mongodb-native/2.1/api/Admin.html#serverStatus - serverStatus(): Promise; - serverStatus(callback: MongoCallback): void; - //http://mongodb.github.io/node-mongodb-native/2.1/api/Admin.html#setProfilingLevel - setProfilingLevel(level: string): Promise; - setProfilingLevel(level: string, callback: MongoCallback): void; - // http://mongodb.github.io/node-mongodb-native/2.1/api/Admin.html#validateCollection - validateCollection(collectionNme: string, callback: MongoCallback): void; - validateCollection(collectionNme: string, options?: Object): Promise; - validateCollection(collectionNme: string, options: Object, callback: MongoCallback): void; -} - -//http://mongodb.github.io/node-mongodb-native/2.1/api/Admin.html#addUser -export interface AddUserOptions { - w?: number | string; - wtimeout?: number; - j?: boolean; - fsync: boolean; - customData?: Object; - roles?: Object[] -} - -//http://mongodb.github.io/node-mongodb-native/2.1/api/Admin.html#removeUser -export interface FSyncOptions { - w?: number | string; - wtimeout?: number; - j?: boolean; - fsync?: boolean -} - -// Documentation : http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html -export interface Collection { - // Get the collection name. - collectionName: string; - // Get the full collection namespace. - namespace: string; - // The current write concern values. - writeConcern: any; - // The current read concern values. - readConcern: any; - // Get current index hint for collection. - hint: any; + export interface FSyncOptions { + w?: number | string; + wtimeout?: number; + j?: boolean; + fsync?: boolean + } + + // Documentation : http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html + export interface Collection { + // Get the collection name. + collectionName: string; + // Get the full collection namespace. + namespace: string; + // The current write concern values. + writeConcern: any; + // The current read concern values. + readConcern: any; + // Get current index hint for collection. + hint: any; + //http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#aggregate + aggregate(pipeline: Object[], callback: MongoCallback): AggregationCursor; + aggregate(pipeline: Object[], options?: CollectionAggregationOptions, callback?: MongoCallback): AggregationCursor; + //http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#bulkWrite + bulkWrite(operations: Object[], callback: MongoCallback): void; + bulkWrite(operations: Object[], options?: CollectionBluckWriteOptions): Promise; + bulkWrite(operations: Object[], options: CollectionBluckWriteOptions, callback: MongoCallback): void; + //http://mongodb.github.io/node-mongodb-native/2.2/api/Collection.html#count + count(query: Object, callback: MongoCallback): void; + count(query: Object, options?: MongoCountPreferences): Promise; + count(query: Object, options: MongoCountPreferences, callback: MongoCallback): void; + //http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#createIndex + createIndex(fieldOrSpec: string | any, callback: MongoCallback): void; + createIndex(fieldOrSpec: string | any, options?: IndexOptions): Promise; + createIndex(fieldOrSpec: string | any, options: IndexOptions, callback: MongoCallback): void; + //http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#createIndexes and http://docs.mongodb.org/manual/reference/command/createIndexes/ + createIndexes(indexSpecs: Object[]): Promise; + createIndexes(indexSpecs: Object[], callback: MongoCallback): void; + //http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#deleteMany + deleteMany(filter: Object, callback: MongoCallback): void; + deleteMany(filter: Object, options?: CollectionOptions): Promise; + deleteMany(filter: Object, options: CollectionOptions, callback: MongoCallback): void; + //http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#deleteOne + deleteOne(filter: Object, callback: MongoCallback): void; + deleteOne(filter: Object, options?: { w?: number | string, wtimmeout?: number, j?: boolean, bypassDocumentValidation?: boolean }): Promise; + deleteOne(filter: Object, options: { w?: number | string, wtimmeout?: number, j?: boolean, bypassDocumentValidation?: boolean }, callback: MongoCallback): void; + //http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#distinct + distinct(key: string, query: Object, callback: MongoCallback): void; + distinct(key: string, query: Object, options?: { readPreference?: ReadPreference | string }): Promise; + distinct(key: string, query: Object, options: { readPreference?: ReadPreference | string }, callback: MongoCallback): void; + //http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#drop + drop(): Promise; + drop(callback: MongoCallback): void; + //http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#dropIndex + dropIndex(indexName: string, callback: MongoCallback): void; + dropIndex(indexName: string, options?: CollectionOptions): Promise; + dropIndex(indexName: string, options: CollectionOptions, callback: MongoCallback): void; + // http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#dropIndexes + dropIndexes(): Promise; + dropIndexes(callback?: MongoCallback): void; + //http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#find + find(query?: Object): Cursor; + /** @deprecated */ + find(query: Object, fields?: Object, skip?: number, limit?: number, timeout?: number): Cursor; + //http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#findOne + findOne(filter: Object, callback: MongoCallback): void; + findOne(filter: Object, options?: FindOneOptions): Promise; + findOne(filter: Object, options: FindOneOptions, callback: MongoCallback): void; + //http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#findOneAndDelete + findOneAndDelete(filter: Object, callback: MongoCallback>): void; + findOneAndDelete(filter: Object, options?: { projection?: Object, sort?: Object, maxTimeMS?: number }): Promise>; + findOneAndDelete(filter: Object, options: { projection?: Object, sort?: Object, maxTimeMS?: number }, callback: MongoCallback>): void; + //http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#findOneAndReplace + findOneAndReplace(filter: Object, replacement: Object, callback: MongoCallback>): void; + findOneAndReplace(filter: Object, replacement: Object, options?: FindOneAndReplaceOption): Promise>; + findOneAndReplace(filter: Object, replacement: Object, options: FindOneAndReplaceOption, callback: MongoCallback>): void; + //http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#findOneAndUpdate + findOneAndUpdate(filter: Object, update: Object, callback: MongoCallback>): void; + findOneAndUpdate(filter: Object, update: Object, options?: FindOneAndReplaceOption): Promise>; + findOneAndUpdate(filter: Object, update: Object, options: FindOneAndReplaceOption, callback: MongoCallback>): void; + //http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#geoHaystackSearch + geoHaystackSearch(x: number, y: number, callback: MongoCallback): void; + geoHaystackSearch(x: number, y: number, options?: GeoHaystackSearchOptions): Promise; + geoHaystackSearch(x: number, y: number, options: GeoHaystackSearchOptions, callback: MongoCallback): void; + //http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#geoNear + geoNear(x: number, y: number, callback: MongoCallback): void; + geoNear(x: number, y: number, options?: GeoNearOptions): Promise; + geoNear(x: number, y: number, options: GeoNearOptions, callback: MongoCallback): void; + //http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#group + group(keys: Object | Array | Function | Code, condition: Object, initial: Object, reduce: Function | Code, finalize: Function | Code, command: boolean, callback: MongoCallback): void; + group(keys: Object | Array | Function | Code, condition: Object, initial: Object, reduce: Function | Code, finalize: Function | Code, command: boolean, options?: { readPreference?: ReadPreference | string }): Promise; + group(keys: Object | Array | Function | Code, condition: Object, initial: Object, reduce: Function | Code, finalize: Function | Code, command: boolean, options: { readPreference?: ReadPreference | string }, callback: MongoCallback): void; + //http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#indexes + indexes(): Promise; + indexes(callback: MongoCallback): void; + //http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#indexExists + indexExists(indexes: string | string[]): Promise; + indexExists(indexes: string | string[], callback: MongoCallback): void; + //http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#indexInformation + indexInformation(callback: MongoCallback): void; + indexInformation(options?: { full: boolean }): Promise; + indexInformation(options: { full: boolean }, callback: MongoCallback): void; + //http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#initializeOrderedBulkOp + initializeOrderedBulkOp(options?: CollectionOptions): OrderedBulkOperation; + //http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#initializeUnorderedBulkOp + initializeUnorderedBulkOp(options?: CollectionOptions): UnorderedBulkOperation; + //http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#insertOne + /** @deprecated Use insertOne, insertMany or bulkWrite */ + insert(docs: Object, callback: MongoCallback): void; + /** @deprecated Use insertOne, insertMany or bulkWrite */ + insert(docs: Object, options?: CollectionInsertOneOptions): Promise; + /** @deprecated Use insertOne, insertMany or bulkWrite */ + insert(docs: Object, options: CollectionInsertOneOptions, callback: MongoCallback): void; + //http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#insertMany + insertMany(docs: Object[], callback: MongoCallback): void; + insertMany(docs: Object[], options?: CollectionInsertManyOptions): Promise; + insertMany(docs: Object[], options: CollectionInsertManyOptions, callback: MongoCallback): void; + //http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#insertOne + insertOne(docs: Object, callback: MongoCallback): void; + insertOne(docs: Object, options?: CollectionInsertOneOptions): Promise; + insertOne(docs: Object, options: CollectionInsertOneOptions, callback: MongoCallback): void; + //http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#isCapped + isCapped(): Promise; + isCapped(callback: MongoCallback): void; + //http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#listIndexes + listIndexes(options?: { batchSize?: number, readPreference?: ReadPreference | string }): CommandCursor; + //http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#mapReduce + mapReduce(map: Function | string, reduce: Function | string, callback: MongoCallback): void; + mapReduce(map: Function | string, reduce: Function | string, options?: MapReduceOptions): Promise; + mapReduce(map: Function | string, reduce: Function | string, options: MapReduceOptions, callback: MongoCallback): void; + //http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#options + options(): Promise; + options(callback: MongoCallback): void; + //http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#parallelCollectionScan + parallelCollectionScan(callback: MongoCallback[]>): void; + parallelCollectionScan(options?: ParallelCollectionScanOptions): Promise[]>; + parallelCollectionScan(options: ParallelCollectionScanOptions, callback: MongoCallback[]>): void; + //http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#reIndex + reIndex(): Promise; + reIndex(callback: MongoCallback): void; + //http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#remove + /** @deprecated Use use deleteOne, deleteMany or bulkWrite */ + remove(selector: Object, callback: MongoCallback): void; + /** @deprecated Use use deleteOne, deleteMany or bulkWrite */ + remove(selector: Object, options?: CollectionOptions & { single?: boolean }): Promise; + /** @deprecated Use use deleteOne, deleteMany or bulkWrite */ + remove(selector: Object, options?: CollectionOptions & { single?: boolean }, callback?: MongoCallback): void; + //http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#rename + rename(newName: string, callback: MongoCallback>): void; + rename(newName: string, options?: { dropTarget?: boolean }): Promise>; + rename(newName: string, options: { dropTarget?: boolean }, callback: MongoCallback>): void; + //http://mongodb.github.io/node-mongodb-native/2.2/api/Collection.html#replaceOne + replaceOne(filter: Object, doc: Object, callback: MongoCallback }>): void; + replaceOne(filter: Object, doc: Object, options?: ReplaceOneOptions): Promise }>; + replaceOne(filter: Object, doc: Object, options: ReplaceOneOptions, callback: MongoCallback }>): void; + //http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#save + /** @deprecated Use insertOne, insertMany, updateOne or updateMany */ + save(doc: Object, callback: MongoCallback): void; + /** @deprecated Use insertOne, insertMany, updateOne or updateMany */ + save(doc: Object, options?: CollectionOptions): Promise; + /** @deprecated Use insertOne, insertMany, updateOne or updateMany */ + save(doc: Object, options: CollectionOptions, callback: MongoCallback): void; + //http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#stats + stats(callback: MongoCallback): void; + stats(options?: { scale: number }): Promise; + stats(options: { scale: number }, callback: MongoCallback): void; + // http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#update + /** @deprecated use updateOne, updateMany or bulkWrite */ + update(filter: Object, update: Object, callback: MongoCallback): void; + /** @deprecated use updateOne, updateMany or bulkWrite */ + update(filter: Object, update: Object, options?: ReplaceOneOptions & { multi?: boolean }): Promise; + /** @deprecated use updateOne, updateMany or bulkWrite */ + update(filter: Object, update: Object, options: ReplaceOneOptions & { multi?: boolean }, callback: MongoCallback): void; + //http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#updateMany + updateMany(filter: Object, update: Object, callback: MongoCallback): void; + updateMany(filter: Object, update: Object, options?: { upsert?: boolean; w?: any; wtimeout?: number; j?: boolean; }): Promise; + updateMany(filter: Object, update: Object, options: { upsert?: boolean; w?: any; wtimeout?: number; j?: boolean; }, callback: MongoCallback): void; + //http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#updateOne + updateOne(filter: Object, update: Object, callback: MongoCallback): void; + updateOne(filter: Object, update: Object, options?: ReplaceOneOptions): Promise; + updateOne(filter: Object, update: Object, options: ReplaceOneOptions, callback: MongoCallback): void; + } + + // Documentation: http://docs.mongodb.org/manual/reference/command/collStats/ + //TODO complete this + export interface CollStats { + // Namespace. + ns: string; + // Number of documents. + count: number; + // Collection size in bytes. + size: number; + // Average object size in bytes. + avgObjSize: number; + // (Pre)allocated space for the collection in bytes. + storageSize: number; + // Number of extents (contiguously allocated chunks of datafile space). + numExtents: number; + // Number of indexes. + nindexes: number; + // Size of the most recently created extent in bytes. + lastExtentSize: number; + // Padding can speed up updates if documents grow. + paddingFactor: number; + userFlags: number; + // Total index size in bytes. + totalIndexSize: number; + // Size of specific indexes in bytes. + indexSizes: { + _id_: number; + username: number; + }; + capped: boolean; + maxSize: boolean; + wiredTiger: any; + indexDetails: any; + ok: number; + } + //http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#aggregate - aggregate(pipeline: Object[], callback: MongoCallback): AggregationCursor; - aggregate(pipeline: Object[], options?: CollectionAggregationOptions, callback?: MongoCallback): AggregationCursor; + export interface CollectionAggregationOptions { + readPreference?: ReadPreference | string; + // Return the query as cursor, on 2.6 > it returns as a real cursor + // on pre 2.6 it returns as an emulated cursor. + cursor?: { batchSize: number }; + // Explain returns the aggregation execution plan (requires mongodb 2.6 >). + explain?: boolean; + // lets the server know if it can use disk to store + // temporary results for the aggregation (requires mongodb 2.6 >). + allowDiskUse?: boolean; + // specifies a cumulative time limit in milliseconds for processing operations + // on the cursor. MongoDB interrupts the operation at the earliest following interrupt point. + maxTimeMS?: number; + // Allow driver to bypass schema validation in MongoDB 3.2 or higher. + bypassDocumentValidation?: boolean; + } + + //http://mongodb.github.io/node-mongodb-native/2.2/api/Collection.html#insertMany + export interface CollectionInsertManyOptions { + // The write concern. + w?: number | string; + // The write concern timeout. + wtimeout?: number; + // Specify a journal write concern. + j?: boolean; + // Serialize functions on any object. + serializeFunctions?: boolean; + //Force server to assign _id values instead of driver. + forceServerObjectId?: boolean; + // Allow driver to bypass schema validation in MongoDB 3.2 or higher. + bypassDocumentValidation?: boolean; + // If true, when an insert fails, don't execute the remaining writes. If false, continue with remaining inserts when one fails. + ordered?: boolean; + } + //http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#bulkWrite - bulkWrite(operations: Object[], callback: MongoCallback): void; - bulkWrite(operations: Object[], options?: CollectionBluckWriteOptions): Promise; - bulkWrite(operations: Object[], options: CollectionBluckWriteOptions, callback: MongoCallback): void; - //http://mongodb.github.io/node-mongodb-native/2.2/api/Collection.html#count - count(query: Object, callback: MongoCallback): void; - count(query: Object, options?: MongoCountPreferences): Promise; - count(query: Object, options: MongoCountPreferences, callback: MongoCallback): void; - //http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#createIndex - createIndex(fieldOrSpec: string | any, callback: MongoCallback): void; - createIndex(fieldOrSpec: string | any, options?: IndexOptions): Promise; - createIndex(fieldOrSpec: string | any, options: IndexOptions, callback: MongoCallback): void; - //http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#createIndexes and http://docs.mongodb.org/manual/reference/command/createIndexes/ - createIndexes(indexSpecs: Object[]): Promise; - createIndexes(indexSpecs: Object[], callback: MongoCallback): void; - //http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#deleteMany - deleteMany(filter: Object, callback: MongoCallback): void; - deleteMany(filter: Object, options?: CollectionOptions): Promise; - deleteMany(filter: Object, options: CollectionOptions, callback: MongoCallback): void; - //http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#deleteOne - deleteOne(filter: Object, callback: MongoCallback): void; - deleteOne(filter: Object, options?: { w?: number | string, wtimmeout?: number, j?: boolean, bypassDocumentValidation?: boolean }): Promise; - deleteOne(filter: Object, options: { w?: number | string, wtimmeout?: number, j?: boolean, bypassDocumentValidation?: boolean }, callback: MongoCallback): void; - //http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#distinct - distinct(key: string, query: Object, callback: MongoCallback): void; - distinct(key: string, query: Object, options?: { readPreference?: ReadPreference | string }): Promise; - distinct(key: string, query: Object, options: { readPreference?: ReadPreference | string }, callback: MongoCallback): void; - //http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#drop - drop(): Promise; - drop(callback: MongoCallback): void; - //http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#dropIndex - dropIndex(indexName: string, callback: MongoCallback): void; - dropIndex(indexName: string, options?: CollectionOptions): Promise; - dropIndex(indexName: string, options: CollectionOptions, callback: MongoCallback): void; - // http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#dropIndexes - dropIndexes(): Promise; - dropIndexes(callback?: MongoCallback): void; - //http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#find - find(query?: Object): Cursor; - /** @deprecated */ - find(query: Object, fields?: Object, skip?: number, limit?: number, timeout?: number): Cursor; - //http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#findOne - findOne(filter: Object, callback: MongoCallback): void; - findOne(filter: Object, options?: FindOneOptions): Promise; - findOne(filter: Object, options: FindOneOptions, callback: MongoCallback): void; - //http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#findOneAndDelete - findOneAndDelete(filter: Object, callback: MongoCallback>): void; - findOneAndDelete(filter: Object, options?: { projection?: Object, sort?: Object, maxTimeMS?: number }): Promise>; - findOneAndDelete(filter: Object, options: { projection?: Object, sort?: Object, maxTimeMS?: number }, callback: MongoCallback>): void; - //http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#findOneAndReplace - findOneAndReplace(filter: Object, replacement: Object, callback: MongoCallback>): void; - findOneAndReplace(filter: Object, replacement: Object, options?: FindOneAndReplaceOption): Promise>; - findOneAndReplace(filter: Object, replacement: Object, options: FindOneAndReplaceOption, callback: MongoCallback>): void; - //http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#findOneAndUpdate - findOneAndUpdate(filter: Object, update: Object, callback: MongoCallback>): void; - findOneAndUpdate(filter: Object, update: Object, options?: FindOneAndReplaceOption): Promise>; - findOneAndUpdate(filter: Object, update: Object, options: FindOneAndReplaceOption, callback: MongoCallback>): void; - //http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#geoHaystackSearch - geoHaystackSearch(x: number, y: number, callback: MongoCallback): void; - geoHaystackSearch(x: number, y: number, options?: GeoHaystackSearchOptions): Promise; - geoHaystackSearch(x: number, y: number, options: GeoHaystackSearchOptions, callback: MongoCallback): void; - //http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#geoNear - geoNear(x: number, y: number, callback: MongoCallback): void; - geoNear(x: number, y: number, options?: GeoNearOptions): Promise; - geoNear(x: number, y: number, options: GeoNearOptions, callback: MongoCallback): void; - //http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#group - group(keys: Object | Array | Function | Code, condition: Object, initial: Object, reduce: Function | Code, finalize: Function | Code, command: boolean, callback: MongoCallback): void; - group(keys: Object | Array | Function | Code, condition: Object, initial: Object, reduce: Function | Code, finalize: Function | Code, command: boolean, options?: { readPreference?: ReadPreference | string }): Promise; - group(keys: Object | Array | Function | Code, condition: Object, initial: Object, reduce: Function | Code, finalize: Function | Code, command: boolean, options: { readPreference?: ReadPreference | string }, callback: MongoCallback): void; - //http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#indexes - indexes(): Promise; - indexes(callback: MongoCallback): void; - //http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#indexExists - indexExists(indexes: string | string[]): Promise; - indexExists(indexes: string | string[], callback: MongoCallback): void; - //http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#indexInformation - indexInformation(callback: MongoCallback): void; - indexInformation(options?: { full: boolean }): Promise; - indexInformation(options: { full: boolean }, callback: MongoCallback): void; - //http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#initializeOrderedBulkOp - initializeOrderedBulkOp(options?: CollectionOptions): OrderedBulkOperation; - //http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#initializeUnorderedBulkOp - initializeUnorderedBulkOp(options?: CollectionOptions): UnorderedBulkOperation; - //http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#insertOne - /** @deprecated Use insertOne, insertMany or bulkWrite */ - insert(docs: Object, callback: MongoCallback): void; - /** @deprecated Use insertOne, insertMany or bulkWrite */ - insert(docs: Object, options?: CollectionInsertOneOptions): Promise; - /** @deprecated Use insertOne, insertMany or bulkWrite */ - insert(docs: Object, options: CollectionInsertOneOptions, callback: MongoCallback): void; - //http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#insertMany - insertMany(docs: Object[], callback: MongoCallback): void; - insertMany(docs: Object[], options?: CollectionInsertManyOptions): Promise; - insertMany(docs: Object[], options: CollectionInsertManyOptions, callback: MongoCallback): void; - //http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#insertOne - insertOne(docs: Object, callback: MongoCallback): void; - insertOne(docs: Object, options?: CollectionInsertOneOptions): Promise; - insertOne(docs: Object, options: CollectionInsertOneOptions, callback: MongoCallback): void; - //http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#isCapped - isCapped(): Promise; - isCapped(callback: MongoCallback): void; - //http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#listIndexes - listIndexes(options?: { batchSize?: number, readPreference?: ReadPreference | string }): CommandCursor; - //http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#mapReduce - mapReduce(map: Function | string, reduce: Function | string, callback: MongoCallback): void; - mapReduce(map: Function | string, reduce: Function | string, options?: MapReduceOptions): Promise; - mapReduce(map: Function | string, reduce: Function | string, options: MapReduceOptions, callback: MongoCallback): void; - //http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#options - options(): Promise; - options(callback: MongoCallback): void; - //http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#parallelCollectionScan - parallelCollectionScan(callback: MongoCallback[]>): void; - parallelCollectionScan(options?: ParallelCollectionScanOptions): Promise[]>; - parallelCollectionScan(options: ParallelCollectionScanOptions, callback: MongoCallback[]>): void; - //http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#reIndex - reIndex(): Promise; - reIndex(callback: MongoCallback): void; - //http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#remove - /** @deprecated Use use deleteOne, deleteMany or bulkWrite */ - remove(selector: Object, callback: MongoCallback): void; - /** @deprecated Use use deleteOne, deleteMany or bulkWrite */ - remove(selector: Object, options?: CollectionOptions & { single?: boolean }): Promise; - /** @deprecated Use use deleteOne, deleteMany or bulkWrite */ - remove(selector: Object, options?: CollectionOptions & { single?: boolean }, callback?: MongoCallback): void; - //http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#rename - rename(newName: string, callback: MongoCallback>): void; - rename(newName: string, options?: { dropTarget?: boolean }): Promise>; - rename(newName: string, options: { dropTarget?: boolean }, callback: MongoCallback>): void; - //http://mongodb.github.io/node-mongodb-native/2.2/api/Collection.html#replaceOne - replaceOne(filter: Object, doc: Object, callback: MongoCallback }>): void; - replaceOne(filter: Object, doc: Object, options?: ReplaceOneOptions): Promise }>; - replaceOne(filter: Object, doc: Object, options: ReplaceOneOptions, callback: MongoCallback }>): void; - //http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#save - /** @deprecated Use insertOne, insertMany, updateOne or updateMany */ - save(doc: Object, callback: MongoCallback): void; - /** @deprecated Use insertOne, insertMany, updateOne or updateMany */ - save(doc: Object, options?: CollectionOptions): Promise; - /** @deprecated Use insertOne, insertMany, updateOne or updateMany */ - save(doc: Object, options: CollectionOptions, callback: MongoCallback): void; - //http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#stats - stats(callback: MongoCallback): void; - stats(options?: { scale: number }): Promise; - stats(options: { scale: number }, callback: MongoCallback): void; - // http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#update - /** @deprecated use updateOne, updateMany or bulkWrite */ - update(filter: Object, update: Object, callback: MongoCallback): void; - /** @deprecated use updateOne, updateMany or bulkWrite */ - update(filter: Object, update: Object, options?: ReplaceOneOptions & { multi?: boolean }): Promise; - /** @deprecated use updateOne, updateMany or bulkWrite */ - update(filter: Object, update: Object, options: ReplaceOneOptions & { multi?: boolean }, callback: MongoCallback): void; - //http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#updateMany - updateMany(filter: Object, update: Object, callback: MongoCallback): void; - updateMany(filter: Object, update: Object, options?: { upsert?: boolean; w?: any; wtimeout?: number; j?: boolean; }): Promise; - updateMany(filter: Object, update: Object, options: { upsert?: boolean; w?: any; wtimeout?: number; j?: boolean; }, callback: MongoCallback): void; - //http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#updateOne - updateOne(filter: Object, update: Object, callback: MongoCallback): void; - updateOne(filter: Object, update: Object, options?: ReplaceOneOptions): Promise; - updateOne(filter: Object, update: Object, options: ReplaceOneOptions, callback: MongoCallback): void; -} - -// Documentation: http://docs.mongodb.org/manual/reference/command/collStats/ -//TODO complete this -export interface CollStats { - // Namespace. - ns: string; - // Number of documents. - count: number; - // Collection size in bytes. - size: number; - // Average object size in bytes. - avgObjSize: number; - // (Pre)allocated space for the collection in bytes. - storageSize: number; - // Number of extents (contiguously allocated chunks of datafile space). - numExtents: number; - // Number of indexes. - nindexes: number; - // Size of the most recently created extent in bytes. - lastExtentSize: number; - // Padding can speed up updates if documents grow. - paddingFactor: number; - userFlags: number; - // Total index size in bytes. - totalIndexSize: number; - // Size of specific indexes in bytes. - indexSizes: { - _id_: number; - username: number; - }; - capped: boolean; - maxSize: boolean; - wiredTiger: any; - indexDetails: any; - ok: number; -} - -//http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#aggregate -export interface CollectionAggregationOptions { - readPreference?: ReadPreference | string; - // Return the query as cursor, on 2.6 > it returns as a real cursor - // on pre 2.6 it returns as an emulated cursor. - cursor?: { batchSize: number }; - // Explain returns the aggregation execution plan (requires mongodb 2.6 >). - explain?: boolean; - // lets the server know if it can use disk to store - // temporary results for the aggregation (requires mongodb 2.6 >). - allowDiskUse?: boolean; - // specifies a cumulative time limit in milliseconds for processing operations - // on the cursor. MongoDB interrupts the operation at the earliest following interrupt point. - maxTimeMS?: number; - // Allow driver to bypass schema validation in MongoDB 3.2 or higher. - bypassDocumentValidation?: boolean; -} - -//http://mongodb.github.io/node-mongodb-native/2.2/api/Collection.html#insertMany -export interface CollectionInsertManyOptions { - // The write concern. - w?: number | string; - // The write concern timeout. - wtimeout?: number; - // Specify a journal write concern. - j?: boolean; - // Serialize functions on any object. - serializeFunctions?: boolean; - //Force server to assign _id values instead of driver. - forceServerObjectId?: boolean; - // Allow driver to bypass schema validation in MongoDB 3.2 or higher. - bypassDocumentValidation?: boolean; - // If true, when an insert fails, don't execute the remaining writes. If false, continue with remaining inserts when one fails. - ordered?: boolean; -} - -//http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#bulkWrite -export interface CollectionBluckWriteOptions { - // The write concern. - w?: number | string; - // The write concern timeout. - wtimeout?: number; - // Specify a journal write concern. - j?: boolean; - // Serialize functions on any object. - serializeFunctions?: boolean; - // Execute write operation in ordered or unordered fashion. - ordered?: boolean; - // Allow driver to bypass schema validation in MongoDB 3.2 or higher. - bypassDocumentValidation?: boolean; -} - -//http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#~BulkWriteOpResult -export interface BulkWriteOpResultObject { - insertedCount?: number; - matchedCount?: number; - modifiedCount?: number; - deletedCount?: number; - upsertedCount?: number; - insertedIds?: any; - upsertedIds?: any; - result?: any; -} - -//http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#count -export interface MongoCountPreferences { - // The limit of documents to count. - limit?: number; - // The number of documents to skip for the count. - skip?: boolean; - // An index name hint for the query. - hint?: string; - // The preferred read preference - readPreference?: ReadPreference | string; -} - -//http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#~deleteWriteOpResult -export interface DeleteWriteOpResultObject { - //The raw result returned from MongoDB, field will vary depending on server version. - result: { + export interface CollectionBluckWriteOptions { + // The write concern. + w?: number | string; + // The write concern timeout. + wtimeout?: number; + // Specify a journal write concern. + j?: boolean; + // Serialize functions on any object. + serializeFunctions?: boolean; + // Execute write operation in ordered or unordered fashion. + ordered?: boolean; + // Allow driver to bypass schema validation in MongoDB 3.2 or higher. + bypassDocumentValidation?: boolean; + } + + //http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#~BulkWriteOpResult + export interface BulkWriteOpResultObject { + insertedCount?: number; + matchedCount?: number; + modifiedCount?: number; + deletedCount?: number; + upsertedCount?: number; + insertedIds?: any; + upsertedIds?: any; + result?: any; + } + + //http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#count + export interface MongoCountPreferences { + // The limit of documents to count. + limit?: number; + // The number of documents to skip for the count. + skip?: boolean; + // An index name hint for the query. + hint?: string; + // The preferred read preference + readPreference?: ReadPreference | string; + } + + //http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#~deleteWriteOpResult + export interface DeleteWriteOpResultObject { + //The raw result returned from MongoDB, field will vary depending on server version. + result: { + //Is 1 if the command executed correctly. + ok?: number; + //The total count of documents deleted. + n?: number; + } + //The connection object used for the operation. + connection?: any; + //The number of documents deleted. + deletedCount?: number; + } + + //http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#~findAndModifyWriteOpResult + export interface FindAndModifyWriteOpResultObject { + //Document returned from findAndModify command. + value?: TSchema; + //The raw lastErrorObject returned from the command. + lastErrorObject?: any; //Is 1 if the command executed correctly. ok?: number; - //The total count of documents deleted. - n?: number; } - //The connection object used for the operation. - connection?: any; - //The number of documents deleted. - deletedCount?: number; -} - -//http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#~findAndModifyWriteOpResult -export interface FindAndModifyWriteOpResultObject { - //Document returned from findAndModify command. - value?: TSchema; - //The raw lastErrorObject returned from the command. - lastErrorObject?: any; - //Is 1 if the command executed correctly. - ok?: number; -} - -//http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#findOneAndReplace -export interface FindOneAndReplaceOption { - projection?: Object; - sort?: Object; - maxTimeMS?: number; - upsert?: boolean; - returnOriginal?: boolean; -} - -//http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#geoHaystackSearch -export interface GeoHaystackSearchOptions { - readPreference?: ReadPreference | string; - maxDistance?: number; - search?: Object; - limit?: number; -} - -//http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#geoNear -export interface GeoNearOptions { - readPreference?: ReadPreference | string; - num?: number; - minDistance?: number; - maxDistance?: number; - distanceMultiplier?: number; - query?: Object; - spherical?: boolean; - uniqueDocs?: boolean; - includeLocs?: boolean; -} - -//http://mongodb.github.io/node-mongodb-native/2.1/api/Code.html -export class Code { - constructor(code: string | Function, scope?: Object) - code: string | Function; - scope: any; -} - -//http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#deleteMany -export interface CollectionOptions { - //The write concern. - w?: number | string; - //The write concern timeout. - wtimeout?: number; - //Specify a journal write concern. - j?: boolean; -} - -//http://mongodb.github.io/node-mongodb-native/2.1/api/OrderedBulkOperation.html -export interface OrderedBulkOperation { - length: number; - //http://mongodb.github.io/node-mongodb-native/2.1/api/OrderedBulkOperation.html#execute - execute(callback: MongoCallback): void; - execute(options?: FSyncOptions): Promise; - execute(options: FSyncOptions, callback: MongoCallback): void; - //http://mongodb.github.io/node-mongodb-native/2.1/api/OrderedBulkOperation.html#find - find(selector: Object): FindOperatorsOrdered; - //http://mongodb.github.io/node-mongodb-native/2.1/api/OrderedBulkOperation.html#insert - insert(doc: Object): OrderedBulkOperation; -} - -//http://mongodb.github.io/node-mongodb-native/2.1/api/BulkWriteResult.html -export interface BulkWriteResult { - ok: number; - nInserted: number; - nUpdated: number; - nUpserted: number; - nModified: number; - nRemoved: number; - - getInsertedIds(): Array; - getLastOp(): Object; - getRawResponse(): Object; - getUpsertedIdAt(index: number): Object; - getUpsertedIds(): Array; - getWriteConcernError(): WriteConcernError; - getWriteErrorAt(index: number): WriteError; - getWriteErrorCount(): number; - getWriteErrors(): Array; - hasWriteErrors(): boolean; -} - -//http://mongodb.github.io/node-mongodb-native/2.1/api/WriteError.html -export interface WriteError { - //Write concern error code. - code: number; - //Write concern error original bulk operation index. - index: number; - //Write concern error message. - errmsg: string; -} - -//http://mongodb.github.io/node-mongodb-native/2.1/api/WriteConcernError.html -export interface WriteConcernError { - //Write concern error code. - code: number; - //Write concern error message. - errmsg: string; -} - -//http://mongodb.github.io/node-mongodb-native/2.1/api/FindOperatorsOrdered.html -export interface FindOperatorsOrdered { - delete(): OrderedBulkOperation; - deleteOne(): OrderedBulkOperation; - replaceOne(doc: Object): OrderedBulkOperation; - update(doc: Object): OrderedBulkOperation; - updateOne(doc: Object): OrderedBulkOperation; - upsert(): FindOperatorsOrdered; -} - -//http://mongodb.github.io/node-mongodb-native/2.1/api/UnorderedBulkOperation.html -export interface UnorderedBulkOperation { - //http://mongodb.github.io/node-mongodb-native/2.1/api/lib_bulk_unordered.js.html line 339 - length: number; - //http://mongodb.github.io/node-mongodb-native/2.1/api/UnorderedBulkOperation.html#execute - execute(callback: MongoCallback): void; - execute(options?: FSyncOptions): Promise; - execute(options: FSyncOptions, callback: MongoCallback): void; - //http://mongodb.github.io/node-mongodb-native/2.1/api/UnorderedBulkOperation.html#find - find(selector: Object): FindOperatorsUnordered; - //http://mongodb.github.io/node-mongodb-native/2.1/api/UnorderedBulkOperation.html#insert - insert(doc: Object): UnorderedBulkOperation; -} - -//http://mongodb.github.io/node-mongodb-native/2.1/api/FindOperatorsUnordered.html -export interface FindOperatorsUnordered { - length: number; - remove(): UnorderedBulkOperation; - removeOne(): UnorderedBulkOperation; - replaceOne(doc: Object): UnorderedBulkOperation; - update(doc: Object): UnorderedBulkOperation; - updateOne(doc: Object): UnorderedBulkOperation; - upsert(): FindOperatorsUnordered; -} - -//http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#findOne -export interface FindOneOptions { - limit?: number, - sort?: Array | Object, - fields?: Object, - skip?: number, - hint?: Object, - explain?: boolean, - snapshot?: boolean, - timeout?: boolean, - tailable?: boolean, - batchSize?: number, - returnKey?: boolean, - maxScan?: number, - min?: number, - max?: number, - showDiskLoc?: boolean, - comment?: string, - raw?: boolean, - readPreference?: ReadPreference | string, - partial?: boolean, - maxTimeMs?: number -} - -//http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#~insertWriteOpResult -export interface InsertWriteOpResult { - insertedCount: number; - ops: Array; - insertedIds: Array; - connection: any; - result: { ok: number, n: number } -} - -//http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#insertOne -export interface CollectionInsertOneOptions { - // The write concern. - w?: number | string; - // The write concern timeout. - wtimeout?: number; - // Specify a journal write concern. - j?: boolean; - // Serialize functions on any object. - serializeFunctions?: boolean; - //Force server to assign _id values instead of driver. - forceServerObjectId?: boolean; - //Allow driver to bypass schema validation in MongoDB 3.2 or higher. - bypassDocumentValidation?: boolean -} - -//http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#~insertOneWriteOpResult -export interface InsertOneWriteOpResult { - insertedCount: number; - ops: Array; - insertedId: ObjectID; - connection: any; - result: { ok: number, n: number } -} - -//http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#parallelCollectionScan -export interface ParallelCollectionScanOptions { - readPreference?: ReadPreference | string; - batchSize?: number; - numCursors?: number; - raw?: boolean; -} - -//http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#replaceOne -export interface ReplaceOneOptions { - upsert?: boolean; - w?: number | string; - wtimeout?: number; - j?: boolean; - bypassDocumentValidation?: boolean; -} - -//http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#~updateWriteOpResult -export interface UpdateWriteOpResult { - result: { ok: number, n: number, nModified: number }; - connection: any; - matchedCount: number; - modifiedCount: number; - upsertedCount: number; - upsertedId: { _id: ObjectID }; -} - -//http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#mapReduce -export interface MapReduceOptions { - readPreference?: ReadPreference | string; - out?: Object; - query?: Object; - sort?: Object; - limit?: number; - keeptemp?: boolean; - finalize?: Function | string; - scope?: Object; - jsMode?: boolean; - verbose?: boolean; - bypassDocumentValidation?: boolean -} - -//http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#~WriteOpResult -export interface WriteOpResult { - ops: Array; - connection: any; - result: any; -} - -//http://mongodb.github.io/node-mongodb-native/2.1/api/Cursor.html#~resultCallback -export type CursorResult = any | void | boolean; - -type Default = any; - -//http://mongodb.github.io/node-mongodb-native/2.1/api/Cursor.html -export class Cursor extends Readable { - - sortValue: string; - timeout: boolean; - readPreference: ReadPreference; - //http://mongodb.github.io/node-mongodb-native/2.1/api/Cursor.html#addCursorFlag - addCursorFlag(flag: string, value: boolean): Cursor; - // http://mongodb.github.io/node-mongodb-native/2.1/api/Cursor.html#addQueryModifier - addQueryModifier(name: string, value: boolean): Cursor; - // http://mongodb.github.io/node-mongodb-native/2.1/api/Cursor.html#batchSize - batchSize(value: number): Cursor; - // http://mongodb.github.io/node-mongodb-native/2.1/api/Cursor.html#clone - clone(): Cursor; // still returns the same type - // http://mongodb.github.io/node-mongodb-native/2.1/api/Cursor.html#close - close(): Promise; - close(callback: MongoCallback): void; - // http://mongodb.github.io/node-mongodb-native/2.1/api/Cursor.html#comment - comment(value: string): Cursor; - // http://mongodb.github.io/node-mongodb-native/2.2/api/Cursor.html#count - count(callback: MongoCallback): void; - count(applySkipLimit: boolean, callback: MongoCallback): void; - count(options: CursorCommentOptions, callback: MongoCallback): void; - count(applySkipLimit: boolean, options: CursorCommentOptions, callback: MongoCallback): void; - count(applySkipLimit?: boolean, options?: CursorCommentOptions): Promise; - // http://mongodb.github.io/node-mongodb-native/2.1/api/Cursor.html#explain - explain(): Promise; - explain(callback: MongoCallback): void; - //http://mongodb.github.io/node-mongodb-native/2.1/api/Cursor.html#filter - filter(filter: Object): Cursor; - // http://mongodb.github.io/node-mongodb-native/2.1/api/Cursor.html#forEach - forEach(iterator: IteratorCallback, callback: EndCallback): void; - // http://mongodb.github.io/node-mongodb-native/2.1/api/Cursor.html#hasNext - hasNext(): Promise; - hasNext(callback: MongoCallback): void; - // http://mongodb.github.io/node-mongodb-native/2.1/api/Cursor.html#hint - hint(hint: Object): Cursor; - // http://mongodb.github.io/node-mongodb-native/2.1/api/Cursor.html#isClosed - isClosed(): boolean; - // http://mongodb.github.io/node-mongodb-native/2.1/api/Cursor.html#limit - limit(value: number): Cursor; - // http://mongodb.github.io/node-mongodb-native/2.1/api/Cursor.html#map - map(transform: Function): Cursor; - // http://mongodb.github.io/node-mongodb-native/2.1/api/Cursor.html#max - max(max: number): Cursor; - //http://mongodb.github.io/node-mongodb-native/2.1/api/Cursor.html#maxAwaitTimeMS - maxAwaitTimeMS(value: number): Cursor; - // http://mongodb.github.io/node-mongodb-native/2.1/api/Cursor.html#maxScan - maxScan(maxScan: Object): Cursor; - // http://mongodb.github.io/node-mongodb-native/2.1/api/Cursor.html#maxTimeMS - maxTimeMS(value: number): Cursor; - // http://mongodb.github.io/node-mongodb-native/2.1/api/Cursor.html#min - min(min: number): Cursor; - // http://mongodb.github.io/node-mongodb-native/2.1/api/Cursor.html#next - next(): Promise; - next(callback: MongoCallback): void; - //http://mongodb.github.io/node-mongodb-native/2.1/api/Cursor.html#project - project(value: Object): Cursor; - //http://mongodb.github.io/node-mongodb-native/2.1/api/Cursor.html#read - read(size: number): string | Buffer | void; - // http://mongodb.github.io/node-mongodb-native/2.1/api/Cursor.html#next - returnKey(returnKey: Object): Cursor; - //http://mongodb.github.io/node-mongodb-native/2.1/api/Cursor.html#rewind - rewind(): void; - // http://mongodb.github.io/node-mongodb-native/2.1/api/Cursor.html#setCursorOption - setCursorOption(field: string, value: Object): Cursor; - // http://mongodb.github.io/node-mongodb-native/2.1/api/Cursor.html#setReadPreference - setReadPreference(readPreference: string | ReadPreference): Cursor; - // http://mongodb.github.io/node-mongodb-native/2.1/api/Cursor.html#showRecordId - showRecordId(showRecordId: Object): Cursor; - // http://mongodb.github.io/node-mongodb-native/2.1/api/Cursor.html#skip - skip(value: number): Cursor; - // http://mongodb.github.io/node-mongodb-native/2.1/api/Cursor.html#snapshot - snapshot(snapshot: Object): Cursor; - // http://mongodb.github.io/node-mongodb-native/2.1/api/Cursor.html#sort - sort(keyOrList: string | Object[] | Object, direction?: number): Cursor; - // http://mongodb.github.io/node-mongodb-native/2.1/api/Cursor.html#stream - stream(options?: { transform?: Function }): Cursor; - // http://mongodb.github.io/node-mongodb-native/2.1/api/Cursor.html#toArray - toArray(): Promise; - toArray(callback: MongoCallback): void; - //http://mongodb.github.io/node-mongodb-native/2.1/api/Cursor.html#unshift - unshift(stream: Buffer | string): void; -} - -//http://mongodb.github.io/node-mongodb-native/2.1/api/Cursor.html#count -export interface CursorCommentOptions { - skip?: number; - limit?: number; - maxTimeMS?: number; - hint?: string; - readPreference?: ReadPreference | string; -} - -//http://mongodb.github.io/node-mongodb-native/2.1/api/Cursor.html#~iteratorCallback -export interface IteratorCallback { - (doc: T): void; -} - -//http://mongodb.github.io/node-mongodb-native/2.1/api/Cursor.html#~endCallback -export interface EndCallback { - (error: MongoError): void; -} - -//http://mongodb.github.io/node-mongodb-native/2.1/api/AggregationCursor.html#~resultCallback -export type AggregationCursorResult = any | void; -//http://mongodb.github.io/node-mongodb-native/2.1/api/AggregationCursor.html -export class AggregationCursor extends Readable { - // http://mongodb.github.io/node-mongodb-native/2.1/api/AggregationCursor.html#batchSize - batchSize(value: number): AggregationCursor; - // http://mongodb.github.io/node-mongodb-native/2.1/api/AggregationCursor.html#clone - clone(): AggregationCursor; - // http://mongodb.github.io/node-mongodb-native/2.1/api/AggregationCursor.html#close - close(): Promise; - close(callback: MongoCallback): void; - //http://mongodb.github.io/node-mongodb-native/2.1/api/AggregationCursor.html#each - each(callback: MongoCallback): void; - // http://mongodb.github.io/node-mongodb-native/2.1/api/AggregationCursor.html#explain - explain(): Promise; - explain(callback: MongoCallback): void; - //http://mongodb.github.io/node-mongodb-native/2.1/api/AggregationCursor.html#geoNear - geoNear(document: Object): AggregationCursor; - //http://mongodb.github.io/node-mongodb-native/2.1/api/AggregationCursor.html#group - group(document: Object): AggregationCursor; - // http://mongodb.github.io/node-mongodb-native/2.1/api/AggregationCursor.html#isClosed - isClosed(): boolean; - // http://mongodb.github.io/node-mongodb-native/2.1/api/AggregationCursor.html#limit - limit(value: number): AggregationCursor; - //http://mongodb.github.io/node-mongodb-native/2.1/api/AggregationCursor.html#match - match(document: Object): AggregationCursor; - // http://mongodb.github.io/node-mongodb-native/2.1/api/AggregationCursor.html#maxTimeMS - maxTimeMS(value: number): AggregationCursor; - // http://mongodb.github.io/node-mongodb-native/2.1/api/AggregationCursor.html#next - next(): Promise; - next(callback: MongoCallback): void; - // http://mongodb.github.io/node-mongodb-native/2.1/api/AggregationCursor.html#out - out(destination: string): AggregationCursor; - //http://mongodb.github.io/node-mongodb-native/2.1/api/AggregationCursor.html#project - project(document: Object): AggregationCursor; - //http://mongodb.github.io/node-mongodb-native/2.1/api/AggregationCursor.html#read - read(size: number): string | Buffer | void; - //http://mongodb.github.io/node-mongodb-native/2.1/api/AggregationCursor.html#redact - redact(document: Object): AggregationCursor; - //http://mongodb.github.io/node-mongodb-native/2.1/api/AggregationCursor.html#rewind - rewind(): AggregationCursor; - //http://mongodb.github.io/node-mongodb-native/2.1/api/AggregationCursor.html#setEncoding - skip(value: number): AggregationCursor; - // http://mongodb.github.io/node-mongodb-native/2.1/api/AggregationCursor.html#sort - sort(document: Object): AggregationCursor; - // http://mongodb.github.io/node-mongodb-native/2.1/api/AggregationCursor.html#toArray - toArray(): Promise; - toArray(callback: MongoCallback): void; - //http://mongodb.github.io/node-mongodb-native/2.1/api/AggregationCursor.html#unshift - unshift(stream: Buffer | string): void; - //http://mongodb.github.io/node-mongodb-native/2.1/api/AggregationCursor.html#unwind - unwind(field: string): AggregationCursor; -} - -//http://mongodb.github.io/node-mongodb-native/2.1/api/CommandCursor.html -export class CommandCursor extends Readable { - // http://mongodb.github.io/node-mongodb-native/2.1/api/CommandCursor.html#batchSize - batchSize(value: number): CommandCursor; - // http://mongodb.github.io/node-mongodb-native/2.1/api/CommandCursor.html#clone - clone(): CommandCursor; - // http://mongodb.github.io/node-mongodb-native/2.1/api/CommandCursor.html#close - close(): Promise; - close(callback: MongoCallback): void; - //http://mongodb.github.io/node-mongodb-native/2.1/api/CommandCursor.html#each - each(callback: MongoCallback): void; - // http://mongodb.github.io/node-mongodb-native/2.1/api/CommandCursor.html#isClosed - isClosed(): boolean; - // http://mongodb.github.io/node-mongodb-native/2.1/api/CommandCursor.html#maxTimeMS - maxTimeMS(value: number): CommandCursor; - // http://mongodb.github.io/node-mongodb-native/2.1/api/CommandCursor.html#next - next(): Promise; - next(callback: MongoCallback): void; - //http://mongodb.github.io/node-mongodb-native/2.1/api/CommandCursor.html#read - read(size: number): string | Buffer | void; - //http://mongodb.github.io/node-mongodb-native/2.1/api/CommandCursor.html#rewind - rewind(): CommandCursor; - // http://mongodb.github.io/node-mongodb-native/2.1/api/CommandCursor.html#setReadPreference - setReadPreference(readPreference: string | ReadPreference): CommandCursor; - // http://mongodb.github.io/node-mongodb-native/2.1/api/CommandCursor.html#toArray - toArray(): Promise; - toArray(callback: MongoCallback): void; - //http://mongodb.github.io/node-mongodb-native/2.1/api/CommandCursor.html#unshift - unshift(stream: Buffer | string): void; -} - -// http://mongodb.github.io/node-mongodb-native/2.1/api/GridFSBucket.html -export class GridFSBucket { - constructor(db: Db, options?: GridFSBucketOptions); - // http://mongodb.github.io/node-mongodb-native/2.1/api/GridFSBucket.html#delete - delete(id: ObjectID, callback?: GridFSBucketErrorCallback): void; - // http://mongodb.github.io/node-mongodb-native/2.1/api/GridFSBucket.html#drop - drop(callback?: GridFSBucketErrorCallback): void; + + //http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#findOneAndReplace + export interface FindOneAndReplaceOption { + projection?: Object; + sort?: Object; + maxTimeMS?: number; + upsert?: boolean; + returnOriginal?: boolean; + } + + //http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#geoHaystackSearch + export interface GeoHaystackSearchOptions { + readPreference?: ReadPreference | string; + maxDistance?: number; + search?: Object; + limit?: number; + } + + //http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#geoNear + export interface GeoNearOptions { + readPreference?: ReadPreference | string; + num?: number; + minDistance?: number; + maxDistance?: number; + distanceMultiplier?: number; + query?: Object; + spherical?: boolean; + uniqueDocs?: boolean; + includeLocs?: boolean; + } + + //http://mongodb.github.io/node-mongodb-native/2.1/api/Code.html + export class Code { + constructor(code: string | Function, scope?: Object) + code: string | Function; + scope: any; + } + + //http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#deleteMany + export interface CollectionOptions { + //The write concern. + w?: number | string; + //The write concern timeout. + wtimeout?: number; + //Specify a journal write concern. + j?: boolean; + } + + //http://mongodb.github.io/node-mongodb-native/2.1/api/OrderedBulkOperation.html + export interface OrderedBulkOperation { + length: number; + //http://mongodb.github.io/node-mongodb-native/2.1/api/OrderedBulkOperation.html#execute + execute(callback: MongoCallback): void; + execute(options?: FSyncOptions): Promise; + execute(options: FSyncOptions, callback: MongoCallback): void; + //http://mongodb.github.io/node-mongodb-native/2.1/api/OrderedBulkOperation.html#find + find(selector: Object): FindOperatorsOrdered; + //http://mongodb.github.io/node-mongodb-native/2.1/api/OrderedBulkOperation.html#insert + insert(doc: Object): OrderedBulkOperation; + } + + //http://mongodb.github.io/node-mongodb-native/2.1/api/BulkWriteResult.html + export interface BulkWriteResult { + ok: number; + nInserted: number; + nUpdated: number; + nUpserted: number; + nModified: number; + nRemoved: number; + + getInsertedIds(): Array; + getLastOp(): Object; + getRawResponse(): Object; + getUpsertedIdAt(index: number): Object; + getUpsertedIds(): Array; + getWriteConcernError(): WriteConcernError; + getWriteErrorAt(index: number): WriteError; + getWriteErrorCount(): number; + getWriteErrors(): Array; + hasWriteErrors(): boolean; + } + + //http://mongodb.github.io/node-mongodb-native/2.1/api/WriteError.html + export interface WriteError { + //Write concern error code. + code: number; + //Write concern error original bulk operation index. + index: number; + //Write concern error message. + errmsg: string; + } + + //http://mongodb.github.io/node-mongodb-native/2.1/api/WriteConcernError.html + export interface WriteConcernError { + //Write concern error code. + code: number; + //Write concern error message. + errmsg: string; + } + + //http://mongodb.github.io/node-mongodb-native/2.1/api/FindOperatorsOrdered.html + export interface FindOperatorsOrdered { + delete(): OrderedBulkOperation; + deleteOne(): OrderedBulkOperation; + replaceOne(doc: Object): OrderedBulkOperation; + update(doc: Object): OrderedBulkOperation; + updateOne(doc: Object): OrderedBulkOperation; + upsert(): FindOperatorsOrdered; + } + + //http://mongodb.github.io/node-mongodb-native/2.1/api/UnorderedBulkOperation.html + export interface UnorderedBulkOperation { + //http://mongodb.github.io/node-mongodb-native/2.1/api/lib_bulk_unordered.js.html line 339 + length: number; + //http://mongodb.github.io/node-mongodb-native/2.1/api/UnorderedBulkOperation.html#execute + execute(callback: MongoCallback): void; + execute(options?: FSyncOptions): Promise; + execute(options: FSyncOptions, callback: MongoCallback): void; + //http://mongodb.github.io/node-mongodb-native/2.1/api/UnorderedBulkOperation.html#find + find(selector: Object): FindOperatorsUnordered; + //http://mongodb.github.io/node-mongodb-native/2.1/api/UnorderedBulkOperation.html#insert + insert(doc: Object): UnorderedBulkOperation; + } + + //http://mongodb.github.io/node-mongodb-native/2.1/api/FindOperatorsUnordered.html + export interface FindOperatorsUnordered { + length: number; + remove(): UnorderedBulkOperation; + removeOne(): UnorderedBulkOperation; + replaceOne(doc: Object): UnorderedBulkOperation; + update(doc: Object): UnorderedBulkOperation; + updateOne(doc: Object): UnorderedBulkOperation; + upsert(): FindOperatorsUnordered; + } + + //http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#findOne + export interface FindOneOptions { + limit?: number, + sort?: Array | Object, + fields?: Object, + skip?: number, + hint?: Object, + explain?: boolean, + snapshot?: boolean, + timeout?: boolean, + tailable?: boolean, + batchSize?: number, + returnKey?: boolean, + maxScan?: number, + min?: number, + max?: number, + showDiskLoc?: boolean, + comment?: string, + raw?: boolean, + readPreference?: ReadPreference | string, + partial?: boolean, + maxTimeMs?: number + } + + //http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#~insertWriteOpResult + export interface InsertWriteOpResult { + insertedCount: number; + ops: Array; + insertedIds: Array; + connection: any; + result: { ok: number, n: number } + } + + //http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#insertOne + export interface CollectionInsertOneOptions { + // The write concern. + w?: number | string; + // The write concern timeout. + wtimeout?: number; + // Specify a journal write concern. + j?: boolean; + // Serialize functions on any object. + serializeFunctions?: boolean; + //Force server to assign _id values instead of driver. + forceServerObjectId?: boolean; + //Allow driver to bypass schema validation in MongoDB 3.2 or higher. + bypassDocumentValidation?: boolean + } + + //http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#~insertOneWriteOpResult + export interface InsertOneWriteOpResult { + insertedCount: number; + ops: Array; + insertedId: ObjectID; + connection: any; + result: { ok: number, n: number } + } + + //http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#parallelCollectionScan + export interface ParallelCollectionScanOptions { + readPreference?: ReadPreference | string; + batchSize?: number; + numCursors?: number; + raw?: boolean; + } + + //http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#replaceOne + export interface ReplaceOneOptions { + upsert?: boolean; + w?: number | string; + wtimeout?: number; + j?: boolean; + bypassDocumentValidation?: boolean; + } + + //http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#~updateWriteOpResult + export interface UpdateWriteOpResult { + result: { ok: number, n: number, nModified: number }; + connection: any; + matchedCount: number; + modifiedCount: number; + upsertedCount: number; + upsertedId: { _id: ObjectID }; + } + + //http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#mapReduce + export interface MapReduceOptions { + readPreference?: ReadPreference | string; + out?: Object; + query?: Object; + sort?: Object; + limit?: number; + keeptemp?: boolean; + finalize?: Function | string; + scope?: Object; + jsMode?: boolean; + verbose?: boolean; + bypassDocumentValidation?: boolean + } + + //http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#~WriteOpResult + export interface WriteOpResult { + ops: Array; + connection: any; + result: any; + } + + //http://mongodb.github.io/node-mongodb-native/2.1/api/Cursor.html#~resultCallback + export type CursorResult = any | void | boolean; + + type Default = any; + + //http://mongodb.github.io/node-mongodb-native/2.1/api/Cursor.html + export class Cursor extends Readable { + + sortValue: string; + timeout: boolean; + readPreference: ReadPreference; + //http://mongodb.github.io/node-mongodb-native/2.1/api/Cursor.html#addCursorFlag + addCursorFlag(flag: string, value: boolean): Cursor; + // http://mongodb.github.io/node-mongodb-native/2.1/api/Cursor.html#addQueryModifier + addQueryModifier(name: string, value: boolean): Cursor; + // http://mongodb.github.io/node-mongodb-native/2.1/api/Cursor.html#batchSize + batchSize(value: number): Cursor; + // http://mongodb.github.io/node-mongodb-native/2.1/api/Cursor.html#clone + clone(): Cursor; // still returns the same type + // http://mongodb.github.io/node-mongodb-native/2.1/api/Cursor.html#close + close(): Promise; + close(callback: MongoCallback): void; + // http://mongodb.github.io/node-mongodb-native/2.1/api/Cursor.html#comment + comment(value: string): Cursor; + // http://mongodb.github.io/node-mongodb-native/2.2/api/Cursor.html#count + count(callback: MongoCallback): void; + count(applySkipLimit: boolean, callback: MongoCallback): void; + count(options: CursorCommentOptions, callback: MongoCallback): void; + count(applySkipLimit: boolean, options: CursorCommentOptions, callback: MongoCallback): void; + count(applySkipLimit?: boolean, options?: CursorCommentOptions): Promise; + // http://mongodb.github.io/node-mongodb-native/2.1/api/Cursor.html#explain + explain(): Promise; + explain(callback: MongoCallback): void; + //http://mongodb.github.io/node-mongodb-native/2.1/api/Cursor.html#filter + filter(filter: Object): Cursor; + // http://mongodb.github.io/node-mongodb-native/2.1/api/Cursor.html#forEach + forEach(iterator: IteratorCallback, callback: EndCallback): void; + // http://mongodb.github.io/node-mongodb-native/2.1/api/Cursor.html#hasNext + hasNext(): Promise; + hasNext(callback: MongoCallback): void; + // http://mongodb.github.io/node-mongodb-native/2.1/api/Cursor.html#hint + hint(hint: Object): Cursor; + // http://mongodb.github.io/node-mongodb-native/2.1/api/Cursor.html#isClosed + isClosed(): boolean; + // http://mongodb.github.io/node-mongodb-native/2.1/api/Cursor.html#limit + limit(value: number): Cursor; + // http://mongodb.github.io/node-mongodb-native/2.1/api/Cursor.html#map + map(transform: Function): Cursor; + // http://mongodb.github.io/node-mongodb-native/2.1/api/Cursor.html#max + max(max: number): Cursor; + //http://mongodb.github.io/node-mongodb-native/2.1/api/Cursor.html#maxAwaitTimeMS + maxAwaitTimeMS(value: number): Cursor; + // http://mongodb.github.io/node-mongodb-native/2.1/api/Cursor.html#maxScan + maxScan(maxScan: Object): Cursor; + // http://mongodb.github.io/node-mongodb-native/2.1/api/Cursor.html#maxTimeMS + maxTimeMS(value: number): Cursor; + // http://mongodb.github.io/node-mongodb-native/2.1/api/Cursor.html#min + min(min: number): Cursor; + // http://mongodb.github.io/node-mongodb-native/2.1/api/Cursor.html#next + next(): Promise; + next(callback: MongoCallback): void; + //http://mongodb.github.io/node-mongodb-native/2.1/api/Cursor.html#project + project(value: Object): Cursor; + //http://mongodb.github.io/node-mongodb-native/2.1/api/Cursor.html#read + read(size: number): string | Buffer | void; + // http://mongodb.github.io/node-mongodb-native/2.1/api/Cursor.html#next + returnKey(returnKey: Object): Cursor; + //http://mongodb.github.io/node-mongodb-native/2.1/api/Cursor.html#rewind + rewind(): void; + // http://mongodb.github.io/node-mongodb-native/2.1/api/Cursor.html#setCursorOption + setCursorOption(field: string, value: Object): Cursor; + // http://mongodb.github.io/node-mongodb-native/2.1/api/Cursor.html#setReadPreference + setReadPreference(readPreference: string | ReadPreference): Cursor; + // http://mongodb.github.io/node-mongodb-native/2.1/api/Cursor.html#showRecordId + showRecordId(showRecordId: Object): Cursor; + // http://mongodb.github.io/node-mongodb-native/2.1/api/Cursor.html#skip + skip(value: number): Cursor; + // http://mongodb.github.io/node-mongodb-native/2.1/api/Cursor.html#snapshot + snapshot(snapshot: Object): Cursor; + // http://mongodb.github.io/node-mongodb-native/2.1/api/Cursor.html#sort + sort(keyOrList: string | Object[] | Object, direction?: number): Cursor; + // http://mongodb.github.io/node-mongodb-native/2.1/api/Cursor.html#stream + stream(options?: { transform?: Function }): Cursor; + // http://mongodb.github.io/node-mongodb-native/2.1/api/Cursor.html#toArray + toArray(): Promise; + toArray(callback: MongoCallback): void; + //http://mongodb.github.io/node-mongodb-native/2.1/api/Cursor.html#unshift + unshift(stream: Buffer | string): void; + } + + //http://mongodb.github.io/node-mongodb-native/2.1/api/Cursor.html#count + export interface CursorCommentOptions { + skip?: number; + limit?: number; + maxTimeMS?: number; + hint?: string; + readPreference?: ReadPreference | string; + } + + //http://mongodb.github.io/node-mongodb-native/2.1/api/Cursor.html#~iteratorCallback + export interface IteratorCallback { + (doc: T): void; + } + + //http://mongodb.github.io/node-mongodb-native/2.1/api/Cursor.html#~endCallback + export interface EndCallback { + (error: MongoError): void; + } + + //http://mongodb.github.io/node-mongodb-native/2.1/api/AggregationCursor.html#~resultCallback + export type AggregationCursorResult = any | void; + //http://mongodb.github.io/node-mongodb-native/2.1/api/AggregationCursor.html + export class AggregationCursor extends Readable { + // http://mongodb.github.io/node-mongodb-native/2.1/api/AggregationCursor.html#batchSize + batchSize(value: number): AggregationCursor; + // http://mongodb.github.io/node-mongodb-native/2.1/api/AggregationCursor.html#clone + clone(): AggregationCursor; + // http://mongodb.github.io/node-mongodb-native/2.1/api/AggregationCursor.html#close + close(): Promise; + close(callback: MongoCallback): void; + //http://mongodb.github.io/node-mongodb-native/2.1/api/AggregationCursor.html#each + each(callback: MongoCallback): void; + // http://mongodb.github.io/node-mongodb-native/2.1/api/AggregationCursor.html#explain + explain(): Promise; + explain(callback: MongoCallback): void; + //http://mongodb.github.io/node-mongodb-native/2.1/api/AggregationCursor.html#geoNear + geoNear(document: Object): AggregationCursor; + //http://mongodb.github.io/node-mongodb-native/2.1/api/AggregationCursor.html#group + group(document: Object): AggregationCursor; + // http://mongodb.github.io/node-mongodb-native/2.1/api/AggregationCursor.html#isClosed + isClosed(): boolean; + // http://mongodb.github.io/node-mongodb-native/2.1/api/AggregationCursor.html#limit + limit(value: number): AggregationCursor; + //http://mongodb.github.io/node-mongodb-native/2.1/api/AggregationCursor.html#match + match(document: Object): AggregationCursor; + // http://mongodb.github.io/node-mongodb-native/2.1/api/AggregationCursor.html#maxTimeMS + maxTimeMS(value: number): AggregationCursor; + // http://mongodb.github.io/node-mongodb-native/2.1/api/AggregationCursor.html#next + next(): Promise; + next(callback: MongoCallback): void; + // http://mongodb.github.io/node-mongodb-native/2.1/api/AggregationCursor.html#out + out(destination: string): AggregationCursor; + //http://mongodb.github.io/node-mongodb-native/2.1/api/AggregationCursor.html#project + project(document: Object): AggregationCursor; + //http://mongodb.github.io/node-mongodb-native/2.1/api/AggregationCursor.html#read + read(size: number): string | Buffer | void; + //http://mongodb.github.io/node-mongodb-native/2.1/api/AggregationCursor.html#redact + redact(document: Object): AggregationCursor; + //http://mongodb.github.io/node-mongodb-native/2.1/api/AggregationCursor.html#rewind + rewind(): AggregationCursor; + //http://mongodb.github.io/node-mongodb-native/2.1/api/AggregationCursor.html#setEncoding + skip(value: number): AggregationCursor; + // http://mongodb.github.io/node-mongodb-native/2.1/api/AggregationCursor.html#sort + sort(document: Object): AggregationCursor; + // http://mongodb.github.io/node-mongodb-native/2.1/api/AggregationCursor.html#toArray + toArray(): Promise; + toArray(callback: MongoCallback): void; + //http://mongodb.github.io/node-mongodb-native/2.1/api/AggregationCursor.html#unshift + unshift(stream: Buffer | string): void; + //http://mongodb.github.io/node-mongodb-native/2.1/api/AggregationCursor.html#unwind + unwind(field: string): AggregationCursor; + } + + //http://mongodb.github.io/node-mongodb-native/2.1/api/CommandCursor.html + export class CommandCursor extends Readable { + // http://mongodb.github.io/node-mongodb-native/2.1/api/CommandCursor.html#batchSize + batchSize(value: number): CommandCursor; + // http://mongodb.github.io/node-mongodb-native/2.1/api/CommandCursor.html#clone + clone(): CommandCursor; + // http://mongodb.github.io/node-mongodb-native/2.1/api/CommandCursor.html#close + close(): Promise; + close(callback: MongoCallback): void; + //http://mongodb.github.io/node-mongodb-native/2.1/api/CommandCursor.html#each + each(callback: MongoCallback): void; + // http://mongodb.github.io/node-mongodb-native/2.1/api/CommandCursor.html#isClosed + isClosed(): boolean; + // http://mongodb.github.io/node-mongodb-native/2.1/api/CommandCursor.html#maxTimeMS + maxTimeMS(value: number): CommandCursor; + // http://mongodb.github.io/node-mongodb-native/2.1/api/CommandCursor.html#next + next(): Promise; + next(callback: MongoCallback): void; + //http://mongodb.github.io/node-mongodb-native/2.1/api/CommandCursor.html#read + read(size: number): string | Buffer | void; + //http://mongodb.github.io/node-mongodb-native/2.1/api/CommandCursor.html#rewind + rewind(): CommandCursor; + // http://mongodb.github.io/node-mongodb-native/2.1/api/CommandCursor.html#setReadPreference + setReadPreference(readPreference: string | ReadPreference): CommandCursor; + // http://mongodb.github.io/node-mongodb-native/2.1/api/CommandCursor.html#toArray + toArray(): Promise; + toArray(callback: MongoCallback): void; + //http://mongodb.github.io/node-mongodb-native/2.1/api/CommandCursor.html#unshift + unshift(stream: Buffer | string): void; + } + + // http://mongodb.github.io/node-mongodb-native/2.1/api/GridFSBucket.html + export class GridFSBucket { + constructor(db: Db, options?: GridFSBucketOptions); + // http://mongodb.github.io/node-mongodb-native/2.1/api/GridFSBucket.html#delete + delete(id: ObjectID, callback?: GridFSBucketErrorCallback): void; + // http://mongodb.github.io/node-mongodb-native/2.1/api/GridFSBucket.html#drop + drop(callback?: GridFSBucketErrorCallback): void; + // http://mongodb.github.io/node-mongodb-native/2.1/api/GridFSBucket.html#find + find(filter?: Object, options?: GridFSBucketFindOptions): Cursor; + // http://mongodb.github.io/node-mongodb-native/2.1/api/GridFSBucket.html#openDownloadStream + openDownloadStream(id: ObjectID, options?: { start: number, end: number }): GridFSBucketReadStream; + // http://mongodb.github.io/node-mongodb-native/2.1/api/GridFSBucket.html#openDownloadStreamByName + openDownloadStreamByName(filename: string, options?: { revision: number, start: number, end: number }): GridFSBucketReadStream; + // http://mongodb.github.io/node-mongodb-native/2.1/api/GridFSBucket.html#openUploadStream + openUploadStream(filename: string, options?: GridFSBucketOpenUploadStreamOptions): GridFSBucketWriteStream; + // http://mongodb.github.io/node-mongodb-native/2.1/api/GridFSBucket.html#openUploadStreamWithId + openUploadStreamWithId(id: string | number | Object, filename: string, options?: GridFSBucketOpenUploadStreamOptions): GridFSBucketWriteStream; + // http://mongodb.github.io/node-mongodb-native/2.1/api/GridFSBucket.html#rename + rename(id: ObjectID, filename: string, callback?: GridFSBucketErrorCallback): void; + } + + // http://mongodb.github.io/node-mongodb-native/2.1/api/GridFSBucket.html + export interface GridFSBucketOptions { + bucketName?: string; + chunkSizeBytes?: number; + writeConcern?: Object; + ReadPreference?: Object; + } + + // http://mongodb.github.io/node-mongodb-native/2.1/api/GridFSBucket.html#~errorCallback + export interface GridFSBucketErrorCallback { + (err?: MongoError): void; + } + // http://mongodb.github.io/node-mongodb-native/2.1/api/GridFSBucket.html#find - find(filter?: Object, options?: GridFSBucketFindOptions): Cursor; - // http://mongodb.github.io/node-mongodb-native/2.1/api/GridFSBucket.html#openDownloadStream - openDownloadStream(id: ObjectID, options?: { start: number, end: number }): GridFSBucketReadStream; - // http://mongodb.github.io/node-mongodb-native/2.1/api/GridFSBucket.html#openDownloadStreamByName - openDownloadStreamByName(filename: string, options?: { revision: number, start: number, end: number }): GridFSBucketReadStream; - // http://mongodb.github.io/node-mongodb-native/2.1/api/GridFSBucket.html#openUploadStream - openUploadStream(filename: string, options?: GridFSBucketOpenUploadStreamOptions): GridFSBucketWriteStream; - // http://mongodb.github.io/node-mongodb-native/2.1/api/GridFSBucket.html#openUploadStreamWithId - openUploadStreamWithId(id: string | number | Object, filename: string, options?: GridFSBucketOpenUploadStreamOptions): GridFSBucketWriteStream; - // http://mongodb.github.io/node-mongodb-native/2.1/api/GridFSBucket.html#rename - rename(id: ObjectID, filename: string, callback?: GridFSBucketErrorCallback): void; + export interface GridFSBucketFindOptions { + batchSize?: number; + limit?: number; + maxTimeMS?: number; + noCursorTimeout?: boolean; + skip?: number; + sort?: Object; + } + + // https://mongodb.github.io/node-mongodb-native/2.1/api/GridFSBucket.html#openUploadStream + export interface GridFSBucketOpenUploadStreamOptions { + chunkSizeBytes?: number, + metadata?: Object, + contentType?: string, + aliases?: Array + } + + // https://mongodb.github.io/node-mongodb-native/2.1/api/GridFSBucketReadStream.html + export class GridFSBucketReadStream extends Readable { + constructor(chunks: Collection, files: Collection, readPreference: Object, filter: Object, options?: GridFSBucketReadStreamOptions); + } + + // https://mongodb.github.io/node-mongodb-native/2.1/api/GridFSBucketReadStream.html + export interface GridFSBucketReadStreamOptions { + sort?: number, + skip?: number, + start?: number, + end?: number + } + + // https://mongodb.github.io/node-mongodb-native/2.1/api/GridFSBucketWriteStream.html + export class GridFSBucketWriteStream extends Writable { + constructor(bucket: GridFSBucket, filename: string, options?: GridFSBucketWriteStreamOptions); + } + + // https://mongodb.github.io/node-mongodb-native/2.1/api/GridFSBucketWriteStream.html + export interface GridFSBucketWriteStreamOptions { + id?: string | number | Object, + chunkSizeBytes?: number, + w?: number, + wtimeout?: number, + j?: number + } } -// http://mongodb.github.io/node-mongodb-native/2.1/api/GridFSBucket.html -export interface GridFSBucketOptions { - bucketName?: string; - chunkSizeBytes?: number; - writeConcern?: Object; - ReadPreference?: Object; -} - -// http://mongodb.github.io/node-mongodb-native/2.1/api/GridFSBucket.html#~errorCallback -export interface GridFSBucketErrorCallback { - (err?: MongoError): void; -} - -// http://mongodb.github.io/node-mongodb-native/2.1/api/GridFSBucket.html#find -export interface GridFSBucketFindOptions { - batchSize?: number; - limit?: number; - maxTimeMS?: number; - noCursorTimeout?: boolean; - skip?: number; - sort?: Object; -} - -// https://mongodb.github.io/node-mongodb-native/2.1/api/GridFSBucket.html#openUploadStream -export interface GridFSBucketOpenUploadStreamOptions { - chunkSizeBytes?: number, - metadata?: Object, - contentType?: string, - aliases?: Array -} - -// https://mongodb.github.io/node-mongodb-native/2.1/api/GridFSBucketReadStream.html -export class GridFSBucketReadStream extends Readable { - constructor(chunks: Collection, files: Collection, readPreference: Object, filter: Object, options?: GridFSBucketReadStreamOptions); -} - -// https://mongodb.github.io/node-mongodb-native/2.1/api/GridFSBucketReadStream.html -export interface GridFSBucketReadStreamOptions { - sort?: number, - skip?: number, - start?: number, - end?: number -} - -// https://mongodb.github.io/node-mongodb-native/2.1/api/GridFSBucketWriteStream.html -export class GridFSBucketWriteStream extends Writable { - constructor(bucket: GridFSBucket, filename: string, options?: GridFSBucketWriteStreamOptions); -} - -// https://mongodb.github.io/node-mongodb-native/2.1/api/GridFSBucketWriteStream.html -export interface GridFSBucketWriteStreamOptions { - id?: string | number | Object, - chunkSizeBytes?: number, - w?: number, - wtimeout?: number, - j?: number -} +export = MongoDB; From b10b81eb212cc994ad3f43c6517b3bcdcc17747f Mon Sep 17 00:00:00 2001 From: Anatoly Demidovich Date: Thu, 17 Aug 2017 10:17:25 +0300 Subject: [PATCH 073/103] Fix top level declaration --- types/mongodb/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/mongodb/index.d.ts b/types/mongodb/index.d.ts index 07b501f062..9709b724c3 100644 --- a/types/mongodb/index.d.ts +++ b/types/mongodb/index.d.ts @@ -15,7 +15,7 @@ import { ObjectID } from 'bson'; import { EventEmitter } from 'events'; import { Readable, Writable } from "stream"; -namespace MongoDB { +declare namespace MongoDB { export function connect(uri: string, callback: MongoCallback): void; export function connect(uri: string, options?: MongoClientOptions): Promise; export function connect(uri: string, options: MongoClientOptions, callback: MongoCallback): void; From c4d8f8c49c9da49a1fe61c9ac17c3e07d4fec853 Mon Sep 17 00:00:00 2001 From: Anatoly Demidovich Date: Thu, 17 Aug 2017 10:44:40 +0300 Subject: [PATCH 074/103] Fix namespace --- types/mongodb/index.d.ts | 2516 +++++++++++++++++++------------------- 1 file changed, 1256 insertions(+), 1260 deletions(-) diff --git a/types/mongodb/index.d.ts b/types/mongodb/index.d.ts index 9709b724c3..acfbe62a00 100644 --- a/types/mongodb/index.d.ts +++ b/types/mongodb/index.d.ts @@ -15,1265 +15,1261 @@ import { ObjectID } from 'bson'; import { EventEmitter } from 'events'; import { Readable, Writable } from "stream"; -declare namespace MongoDB { - export function connect(uri: string, callback: MongoCallback): void; - export function connect(uri: string, options?: MongoClientOptions): Promise; - export function connect(uri: string, options: MongoClientOptions, callback: MongoCallback): void; - - export { Binary, Double, Long, Decimal128, MaxKey, MinKey, ObjectID, ObjectId, Timestamp } from 'bson'; - - // Class documentation : http://mongodb.github.io/node-mongodb-native/2.1/api/MongoClient.html - export class MongoClient { - constructor(); - - static connect(uri: string, callback: MongoCallback): void; - static connect(uri: string, options?: MongoClientOptions): Promise; - static connect(uri: string, options: MongoClientOptions, callback: MongoCallback): void; - - connect(uri: string, callback: MongoCallback): void; - connect(uri: string, options?: MongoClientOptions): Promise; - connect(uri: string, options: MongoClientOptions, callback: MongoCallback): void; - } - - export interface MongoCallback { - (error: MongoError, result: T): void; - } - - // http://mongodb.github.io/node-mongodb-native/2.1/api/MongoError.html - export class MongoError extends Error { - constructor(message: string); - static create(options: Object): MongoError; - code?: number; - } - - // http://mongodb.github.io/node-mongodb-native/2.2/api/MongoClient.html#.connect - export interface MongoClientOptions extends - DbCreateOptions, - ServerOptions, - MongosOptions, - ReplSetOptions, - SocketOptions, - SSLOptions, - HighAvailabilityOptions { - // The logging level (error/warn/info/debug) - loggerLevel?: string; - // Custom logger object - logger?: Object; - // Default: false; - validateOptions?: Object; - } - - export interface SSLOptions { - // Default:5; Number of connections for each server instance - poolSize?: number; - // Use ssl connection (needs to have a mongod server with ssl support) - ssl?: boolean; - // Default: true; Validate mongod server certificate against ca (mongod server >=2.4 with ssl support required) - sslValidate?: Object; - // Default: true; Server identity checking during SSL - checkServerIdentity?: boolean | Function; - // Array of valid certificates either as Buffers or Strings - sslCA?: Array; - // SSL Certificate revocation list binary buffer - sslCRL?: Buffer; - // SSL Certificate binary buffer - sslCert?: Buffer | string; - // SSL Key file binary buffer - sslKey?: Buffer | string; - // SSL Certificate pass phrase - sslPass?: Buffer | string; - // String containing the server name requested via TLS SNI. - servername?: string; - } - - export interface HighAvailabilityOptions { - // Default: true; Turn on high availability monitoring. - ha?: boolean; - // Default: 10000; The High availability period for replicaset inquiry - haInterval?: number; - // Default: false; - domainsEnabled?: boolean; - } - - // See http://mongodb.github.io/node-mongodb-native/2.2/api/ReadPreference.html - export class ReadPreference { - constructor(mode: string, tags: Object); - mode: string; - tags: any; - options: { maxStalenessSeconds?: number }; // Max Secondary Read Stalleness in Seconds - static PRIMARY: string; - static PRIMARY_PREFERRED: string; - static SECONDARY: string; - static SECONDARY_PREFERRED: string; - static NEAREST: string; - isValid(mode: string): boolean; - static isValid(mode: string): boolean; - } - - // http://mongodb.github.io/node-mongodb-native/2.2/api/Db.html - export interface DbCreateOptions { - - // If the database authentication is dependent on another databaseName. - authSource?: string; - // Default: null;https://docs.mongodb.com/manual/reference/write-concern/#write-concern - w?: number | string; - // The write concern timeout to finish (combining with w option). - wtimeout?: number; - // Specify a journal write concern. - j?: boolean; - // Default: false; Force server to create _id fields instead of client. - forceServerObjectId?: boolean; - // Default: false; Use c++ bson parser. - native_parser?: boolean; - // Serialize functions on any object. - serializeFunctions?: boolean; - // Specify if the BSON serializer should ignore undefined fields. - ignoreUndefined?: boolean; - // Return document results as raw BSON buffers. - raw?: boolean; - // Default: true; Promotes Long values to number if they fit inside the 53 bits resolution. - promoteLongs?: boolean; - // Default: -1 (unlimited); Amount of operations the driver buffers up untill discard any new ones - promoteBuffers?: number; - // the prefered read preference. use 'ReadPreference' class. - readPreference?: ReadPreference | string; - // Default: true; Promotes BSON values to native types where possible, set to false to only receive wrapper types. - promoteValues?: Object; - // Custom primary key factory to generate _id values (see Custom primary keys). - pkFactory?: Object; - // ES6 compatible promise constructor - promiseLibrary?: Object; - // https://docs.mongodb.com/manual/reference/read-concern/#read-concern - readConcern?: { level?: Object }; - } - - // http://mongodb.github.io/node-mongodb-native/2.2/api/Server.html - export interface SocketOptions { - // Reconnect on error. default:false - autoReconnect?: boolean; - // TCP Socket NoDelay option. default:true - noDelay?: boolean; - // TCP KeepAlive on the socket with a X ms delay before start. default:0 - keepAlive?: number; - // TCP Connection timeout setting. default 0 - connectTimeoutMS?: number; - // TCP Socket timeout setting. default 0 - socketTimeoutMS?: number; - } - - // http://mongodb.github.io/node-mongodb-native/2.2/api/Server.html - export interface ServerOptions extends SSLOptions { - // Default: 30; - reconnectTries?: number; - // Default: 1000; - reconnectInterval?: number; - // Default: true; - monitoring?: boolean - socketOptions?: SocketOptions; - // Default: 10000; The High availability period for replicaset inquiry - haInterval?: number; - // Default: false; - domainsEnabled?: boolean; - } - - // http://mongodb.github.io/node-mongodb-native/2.2/api/Mongos.html - export interface MongosOptions extends SSLOptions, HighAvailabilityOptions { - // Default: 15; Cutoff latency point in MS for MongoS proxy selection - acceptableLatencyMS?: number; - socketOptions?: SocketOptions; - } - - // http://mongodb.github.io/node-mongodb-native/2.2/api/ReplSet.html - export interface ReplSetOptions extends SSLOptions, HighAvailabilityOptions { - // The max staleness to secondary reads (values under 10 seconds cannot be guaranteed); - maxStalenessSeconds?: number; - // The name of the replicaset to connect to. - replicaSet?: string; - // Default: 15 ; Range of servers to pick when using NEAREST (lowest ping ms + the latency fence, ex: range of 1 to (1 + 15) ms) - secondaryAcceptableLatencyMS?: number; - connectWithNoPrimary?: boolean; - socketOptions?: SocketOptions; - } - - // Class documentation : http://mongodb.github.io/node-mongodb-native/2.1/api/Db.html - export class Db extends EventEmitter { - constructor(databaseName: string, serverConfig: Server | ReplSet | Mongos, options?: DbCreateOptions); - - serverConfig: Server | ReplSet | Mongos; - bufferMaxEntries: number; - databaseName: string; - options: any; - native_parser: boolean; - slaveOk: boolean; - writeConcern: any; - - // http://mongodb.github.io/node-mongodb-native/2.1/api/Db.html#addUser - addUser(username: string, password: string, callback: MongoCallback): void; - addUser(username: string, password: string, options?: DbAddUserOptions): Promise; - addUser(username: string, password: string, options: DbAddUserOptions, callback: MongoCallback): void; - //http://mongodb.github.io/node-mongodb-native/2.1/api/Db.html#admin - admin(): Admin; - // http://mongodb.github.io/node-mongodb-native/2.1/api/Db.html#authenticate - authenticate(userName: string, password: string, callback: MongoCallback): void; - authenticate(userName: string, password: string, options?: { authMechanism: string }): Promise; - authenticate(userName: string, password: string, options: { authMechanism: string }, callback: MongoCallback): void; - // http://mongodb.github.io/node-mongodb-native/2.1/api/Db.html#close - close(callback: MongoCallback): void; - close(forceClose?: boolean): Promise; - close(forceClose: boolean, callback: MongoCallback): void; - // http://mongodb.github.io/node-mongodb-native/2.1/api/Db.html#collection - collection(name: string): Collection; - collection(name: string, callback: MongoCallback>): Collection; - collection(name: string, options: DbCollectionOptions, callback: MongoCallback>): Collection; - //http://mongodb.github.io/node-mongodb-native/2.1/api/Db.html#collections - collections(): Promise[]>; - collections(callback: MongoCallback[]>): void; - //http://mongodb.github.io/node-mongodb-native/2.1/api/Db.html#command - command(command: Object, callback: MongoCallback): void; - command(command: Object, options?: { readPreference: ReadPreference | string }): Promise; - command(command: Object, options: { readPreference: ReadPreference | string }, callback: MongoCallback): void; - //http://mongodb.github.io/node-mongodb-native/2.1/api/Db.html#createCollection - createCollection(name: string, callback: MongoCallback>): void; - createCollection(name: string, options?: CollectionCreateOptions): Promise>; - createCollection(name: string, options: CollectionCreateOptions, callback: MongoCallback>): void; - //http://mongodb.github.io/node-mongodb-native/2.1/api/Db.html#createIndex - createIndex(name: string, fieldOrSpec: string | Object, callback: MongoCallback): void; - createIndex(name: string, fieldOrSpec: string | Object, options?: IndexOptions): Promise; - createIndex(name: string, fieldOrSpec: string | Object, options: IndexOptions, callback: MongoCallback): void; - //http://mongodb.github.io/node-mongodb-native/2.1/api/Db.html#db - db(dbName: string): Db; - db(dbName: string, options: { noListener?: boolean, returnNonCachedInstance?: boolean }): Db; - //http://mongodb.github.io/node-mongodb-native/2.1/api/Db.html#dropCollection - dropCollection(name: string): Promise; - dropCollection(name: string, callback: MongoCallback): void; - // http://mongodb.github.io/node-mongodb-native/2.1/api/Db.html#dropDatabase - dropDatabase(): Promise; - dropDatabase(callback: MongoCallback): void; - - //deprecated http://mongodb.github.io/node-mongodb-native/2.1/api/Db.html#ensureIndex - // ensureIndex(collectionName: any, fieldOrSpec: any, options: IndexOptions, callback: Function): void; - //deprecated http://mongodb.github.io/node-mongodb-native/2.1/api/Db.html#eval - // eval(code: any, parameters: any[], options?: any, callback?: MongoCallback): void; - - //http://mongodb.github.io/node-mongodb-native/2.1/api/Db.html#executeDbAdminCommand - executeDbAdminCommand(command: Object, callback: MongoCallback): void; - executeDbAdminCommand(command: Object, options?: { readPreference?: ReadPreference | string, maxTimeMS?: number }): Promise; - executeDbAdminCommand(command: Object, options: { readPreference?: ReadPreference | string, maxTimeMS?: number }, callback: MongoCallback): void; - // http://mongodb.github.io/node-mongodb-native/2.1/api/Db.html#indexInformation - indexInformation(name: string, callback: MongoCallback): void; - indexInformation(name: string, options?: { full?: boolean, readPreference?: ReadPreference | string }): Promise; - indexInformation(name: string, options: { full?: boolean, readPreference?: ReadPreference | string }, callback: MongoCallback): void; - //http://mongodb.github.io/node-mongodb-native/2.1/api/Db.html#listCollections - listCollections(filter: Object, options?: { batchSize?: number, readPreference?: ReadPreference | string }): CommandCursor; - //http://mongodb.github.io/node-mongodb-native/2.1/api/Db.html#logout - logout(callback: MongoCallback): void; - logout(options?: { dbName?: string }): Promise; - logout(options: { dbName?: string }, callback: MongoCallback): void; - //http://mongodb.github.io/node-mongodb-native/2.1/api/Db.html#open - open(): Promise; - open(callback: MongoCallback): void; - //http://mongodb.github.io/node-mongodb-native/2.1/api/Db.html#removeUser - removeUser(username: string, callback: MongoCallback): void; - removeUser(username: string, options?: { w?: number | string, wtimeout?: number, j?: boolean }): Promise; - removeUser(username: string, options: { w?: number | string, wtimeout?: number, j?: boolean }, callback: MongoCallback): void; - // http://mongodb.github.io/node-mongodb-native/2.1/api/Db.html#renameCollection - renameCollection(fromCollection: string, toCollection: string, callback: MongoCallback>): void; - renameCollection(fromCollection: string, toCollection: string, options?: { dropTarget?: boolean }): Promise>; - renameCollection(fromCollection: string, toCollection: string, options: { dropTarget?: boolean }, callback: MongoCallback>): void; - //http://mongodb.github.io/node-mongodb-native/2.1/api/Db.html#stats - stats(callback: MongoCallback): void; - stats(options?: { scale?: number }): Promise; - stats(options: { scale?: number }, callback: MongoCallback): void; - } - - // Deprecated http://mongodb.github.io/node-mongodb-native/2.1/api/Server.html - export class Server extends EventEmitter { - constructor(host: string, port: number, options?: ServerOptions); - - connections(): Array; - } - - // Deprecated http://mongodb.github.io/node-mongodb-native/2.1/api/ReplSet.html - export class ReplSet extends EventEmitter { - constructor(servers: Array, options?: ReplSetOptions); - - connections(): Array; - } - - // Deprecated http://mongodb.github.io/node-mongodb-native/2.1/api/ReplSet.html - export class Mongos extends EventEmitter { - constructor(servers: Array, options?: MongosOptions); - - connections(): Array; - } - - // http://mongodb.github.io/node-mongodb-native/2.1/api/Db.html#addUser - export interface DbAddUserOptions { - w?: string | number; - wtimeout?: number; - j?: boolean; - customData?: Object; - roles?: Object[]; - } - - //http://mongodb.github.io/node-mongodb-native/2.1/api/Db.html#createCollection - export interface CollectionCreateOptions { - w?: number | string; - wtimeout?: number; - j?: boolean; - raw?: boolean; - pkFactory?: Object; - readPreference?: ReadPreference | string; - serializeFunctions?: boolean; - strict?: boolean; - capped?: boolean; - size?: number; - max?: number; - autoIndexId?: boolean; - } - - // http://mongodb.github.io/node-mongodb-native/2.1/api/Db.html#collection - export interface DbCollectionOptions { - w?: number | string; - wtimeout?: number; - j?: boolean; - raw?: boolean; - pkFactory?: Object; - readPreference?: ReadPreference | string; - serializeFunctions?: boolean; - strict?: boolean; - readConcern?: { level: Object }; - } - - //http://mongodb.github.io/node-mongodb-native/2.2/api/Db.html#createIndex - export interface IndexOptions { - // The write concern. - w?: number | string; - // The write concern timeout. - wtimeout?: number; - // Specify a journal write concern. - j?: boolean; - // Creates an unique index. - unique?: boolean; - // Creates a sparse index. - sparse?: boolean; - // Creates the index in the background, yielding whenever possible. - background?: boolean; - // A unique index cannot be created on a key that has pre-existing duplicate values. - // If you would like to create the index anyway, keeping the first document the database indexes and - // deleting all subsequent documents that have duplicate value - dropDups?: boolean; - // For geo spatial indexes set the lower bound for the co-ordinates. - min?: number; - // For geo spatial indexes set the high bound for the co-ordinates. - max?: number; - // Specify the format version of the indexes. - v?: number; - // Allows you to expire data on indexes applied to a data (MongoDB 2.2 or higher) - expireAfterSeconds?: number; - // Override the auto generated index name (useful if the resulting name is larger than 128 bytes) - name?: string; - // Creates a partial index based on the given filter object (MongoDB 3.2 or higher) - partialFilterExpression?: any; - } - - // http://mongodb.github.io/node-mongodb-native/2.1/api/Admin.html - export interface Admin { - // http://mongodb.github.io/node-mongodb-native/2.1/api/Admin.html#addUser - addUser(username: string, password: string, callback: MongoCallback): void; - addUser(username: string, password: string, options?: AddUserOptions): Promise; - addUser(username: string, password: string, options: AddUserOptions, callback: MongoCallback): void; - //http://mongodb.github.io/node-mongodb-native/2.1/api/Admin.html#authenticate - authenticate(username: string, callback: MongoCallback): void; - authenticate(username: string, password?: string): Promise; - authenticate(username: string, password: string, callback: MongoCallback): void; - //http://mongodb.github.io/node-mongodb-native/2.1/api/Admin.html#buildInfo - buildInfo(): Promise; - buildInfo(callback: MongoCallback): void; - //http://mongodb.github.io/node-mongodb-native/2.1/api/Admin.html#command - command(command: Object, callback: MongoCallback): void; - command(command: Object, options?: { readPreference?: ReadPreference | string, maxTimeMS?: number }): Promise; - command(command: Object, options: { readPreference?: ReadPreference | string, maxTimeMS?: number }, callback: MongoCallback): void; - //http://mongodb.github.io/node-mongodb-native/2.1/api/Admin.html#listDatabases - listDatabases(): Promise; - listDatabases(callback: MongoCallback): void; - //http://mongodb.github.io/node-mongodb-native/2.1/api/Admin.html#logout - logout(): Promise; - logout(callback: MongoCallback): void; - //http://mongodb.github.io/node-mongodb-native/2.1/api/Admin.html#ping - ping(): Promise; - ping(callback: MongoCallback): void; - //http://mongodb.github.io/node-mongodb-native/2.1/api/Admin.html#profilingInfo - profilingInfo(): Promise; - profilingInfo(callback: MongoCallback): void; - //http://mongodb.github.io/node-mongodb-native/2.1/api/Admin.html#profilingLevel - profilingLevel(): Promise; - profilingLevel(callback: MongoCallback): void; - //http://mongodb.github.io/node-mongodb-native/2.1/api/Admin.html#removeUser - removeUser(username: string, callback: MongoCallback): void; - removeUser(username: string, options?: FSyncOptions): Promise; - removeUser(username: string, options: FSyncOptions, callback: MongoCallback): void; - //http://mongodb.github.io/node-mongodb-native/2.1/api/Admin.html#replSetGetStatus - replSetGetStatus(): Promise; - replSetGetStatus(callback: MongoCallback): void; - //http://mongodb.github.io/node-mongodb-native/2.1/api/Admin.html#serverInfo - serverInfo(): Promise; - serverInfo(callback: MongoCallback): void; - //http://mongodb.github.io/node-mongodb-native/2.1/api/Admin.html#serverStatus - serverStatus(): Promise; - serverStatus(callback: MongoCallback): void; - //http://mongodb.github.io/node-mongodb-native/2.1/api/Admin.html#setProfilingLevel - setProfilingLevel(level: string): Promise; - setProfilingLevel(level: string, callback: MongoCallback): void; - // http://mongodb.github.io/node-mongodb-native/2.1/api/Admin.html#validateCollection - validateCollection(collectionNme: string, callback: MongoCallback): void; - validateCollection(collectionNme: string, options?: Object): Promise; - validateCollection(collectionNme: string, options: Object, callback: MongoCallback): void; - } - - //http://mongodb.github.io/node-mongodb-native/2.1/api/Admin.html#addUser - export interface AddUserOptions { - w?: number | string; - wtimeout?: number; - j?: boolean; - fsync: boolean; - customData?: Object; - roles?: Object[] - } - - //http://mongodb.github.io/node-mongodb-native/2.1/api/Admin.html#removeUser - export interface FSyncOptions { - w?: number | string; - wtimeout?: number; - j?: boolean; - fsync?: boolean - } - - // Documentation : http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html - export interface Collection { - // Get the collection name. - collectionName: string; - // Get the full collection namespace. - namespace: string; - // The current write concern values. - writeConcern: any; - // The current read concern values. - readConcern: any; - // Get current index hint for collection. - hint: any; - //http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#aggregate - aggregate(pipeline: Object[], callback: MongoCallback): AggregationCursor; - aggregate(pipeline: Object[], options?: CollectionAggregationOptions, callback?: MongoCallback): AggregationCursor; - //http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#bulkWrite - bulkWrite(operations: Object[], callback: MongoCallback): void; - bulkWrite(operations: Object[], options?: CollectionBluckWriteOptions): Promise; - bulkWrite(operations: Object[], options: CollectionBluckWriteOptions, callback: MongoCallback): void; - //http://mongodb.github.io/node-mongodb-native/2.2/api/Collection.html#count - count(query: Object, callback: MongoCallback): void; - count(query: Object, options?: MongoCountPreferences): Promise; - count(query: Object, options: MongoCountPreferences, callback: MongoCallback): void; - //http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#createIndex - createIndex(fieldOrSpec: string | any, callback: MongoCallback): void; - createIndex(fieldOrSpec: string | any, options?: IndexOptions): Promise; - createIndex(fieldOrSpec: string | any, options: IndexOptions, callback: MongoCallback): void; - //http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#createIndexes and http://docs.mongodb.org/manual/reference/command/createIndexes/ - createIndexes(indexSpecs: Object[]): Promise; - createIndexes(indexSpecs: Object[], callback: MongoCallback): void; - //http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#deleteMany - deleteMany(filter: Object, callback: MongoCallback): void; - deleteMany(filter: Object, options?: CollectionOptions): Promise; - deleteMany(filter: Object, options: CollectionOptions, callback: MongoCallback): void; - //http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#deleteOne - deleteOne(filter: Object, callback: MongoCallback): void; - deleteOne(filter: Object, options?: { w?: number | string, wtimmeout?: number, j?: boolean, bypassDocumentValidation?: boolean }): Promise; - deleteOne(filter: Object, options: { w?: number | string, wtimmeout?: number, j?: boolean, bypassDocumentValidation?: boolean }, callback: MongoCallback): void; - //http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#distinct - distinct(key: string, query: Object, callback: MongoCallback): void; - distinct(key: string, query: Object, options?: { readPreference?: ReadPreference | string }): Promise; - distinct(key: string, query: Object, options: { readPreference?: ReadPreference | string }, callback: MongoCallback): void; - //http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#drop - drop(): Promise; - drop(callback: MongoCallback): void; - //http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#dropIndex - dropIndex(indexName: string, callback: MongoCallback): void; - dropIndex(indexName: string, options?: CollectionOptions): Promise; - dropIndex(indexName: string, options: CollectionOptions, callback: MongoCallback): void; - // http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#dropIndexes - dropIndexes(): Promise; - dropIndexes(callback?: MongoCallback): void; - //http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#find - find(query?: Object): Cursor; - /** @deprecated */ - find(query: Object, fields?: Object, skip?: number, limit?: number, timeout?: number): Cursor; - //http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#findOne - findOne(filter: Object, callback: MongoCallback): void; - findOne(filter: Object, options?: FindOneOptions): Promise; - findOne(filter: Object, options: FindOneOptions, callback: MongoCallback): void; - //http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#findOneAndDelete - findOneAndDelete(filter: Object, callback: MongoCallback>): void; - findOneAndDelete(filter: Object, options?: { projection?: Object, sort?: Object, maxTimeMS?: number }): Promise>; - findOneAndDelete(filter: Object, options: { projection?: Object, sort?: Object, maxTimeMS?: number }, callback: MongoCallback>): void; - //http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#findOneAndReplace - findOneAndReplace(filter: Object, replacement: Object, callback: MongoCallback>): void; - findOneAndReplace(filter: Object, replacement: Object, options?: FindOneAndReplaceOption): Promise>; - findOneAndReplace(filter: Object, replacement: Object, options: FindOneAndReplaceOption, callback: MongoCallback>): void; - //http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#findOneAndUpdate - findOneAndUpdate(filter: Object, update: Object, callback: MongoCallback>): void; - findOneAndUpdate(filter: Object, update: Object, options?: FindOneAndReplaceOption): Promise>; - findOneAndUpdate(filter: Object, update: Object, options: FindOneAndReplaceOption, callback: MongoCallback>): void; - //http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#geoHaystackSearch - geoHaystackSearch(x: number, y: number, callback: MongoCallback): void; - geoHaystackSearch(x: number, y: number, options?: GeoHaystackSearchOptions): Promise; - geoHaystackSearch(x: number, y: number, options: GeoHaystackSearchOptions, callback: MongoCallback): void; - //http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#geoNear - geoNear(x: number, y: number, callback: MongoCallback): void; - geoNear(x: number, y: number, options?: GeoNearOptions): Promise; - geoNear(x: number, y: number, options: GeoNearOptions, callback: MongoCallback): void; - //http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#group - group(keys: Object | Array | Function | Code, condition: Object, initial: Object, reduce: Function | Code, finalize: Function | Code, command: boolean, callback: MongoCallback): void; - group(keys: Object | Array | Function | Code, condition: Object, initial: Object, reduce: Function | Code, finalize: Function | Code, command: boolean, options?: { readPreference?: ReadPreference | string }): Promise; - group(keys: Object | Array | Function | Code, condition: Object, initial: Object, reduce: Function | Code, finalize: Function | Code, command: boolean, options: { readPreference?: ReadPreference | string }, callback: MongoCallback): void; - //http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#indexes - indexes(): Promise; - indexes(callback: MongoCallback): void; - //http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#indexExists - indexExists(indexes: string | string[]): Promise; - indexExists(indexes: string | string[], callback: MongoCallback): void; - //http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#indexInformation - indexInformation(callback: MongoCallback): void; - indexInformation(options?: { full: boolean }): Promise; - indexInformation(options: { full: boolean }, callback: MongoCallback): void; - //http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#initializeOrderedBulkOp - initializeOrderedBulkOp(options?: CollectionOptions): OrderedBulkOperation; - //http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#initializeUnorderedBulkOp - initializeUnorderedBulkOp(options?: CollectionOptions): UnorderedBulkOperation; - //http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#insertOne - /** @deprecated Use insertOne, insertMany or bulkWrite */ - insert(docs: Object, callback: MongoCallback): void; - /** @deprecated Use insertOne, insertMany or bulkWrite */ - insert(docs: Object, options?: CollectionInsertOneOptions): Promise; - /** @deprecated Use insertOne, insertMany or bulkWrite */ - insert(docs: Object, options: CollectionInsertOneOptions, callback: MongoCallback): void; - //http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#insertMany - insertMany(docs: Object[], callback: MongoCallback): void; - insertMany(docs: Object[], options?: CollectionInsertManyOptions): Promise; - insertMany(docs: Object[], options: CollectionInsertManyOptions, callback: MongoCallback): void; - //http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#insertOne - insertOne(docs: Object, callback: MongoCallback): void; - insertOne(docs: Object, options?: CollectionInsertOneOptions): Promise; - insertOne(docs: Object, options: CollectionInsertOneOptions, callback: MongoCallback): void; - //http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#isCapped - isCapped(): Promise; - isCapped(callback: MongoCallback): void; - //http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#listIndexes - listIndexes(options?: { batchSize?: number, readPreference?: ReadPreference | string }): CommandCursor; - //http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#mapReduce - mapReduce(map: Function | string, reduce: Function | string, callback: MongoCallback): void; - mapReduce(map: Function | string, reduce: Function | string, options?: MapReduceOptions): Promise; - mapReduce(map: Function | string, reduce: Function | string, options: MapReduceOptions, callback: MongoCallback): void; - //http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#options - options(): Promise; - options(callback: MongoCallback): void; - //http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#parallelCollectionScan - parallelCollectionScan(callback: MongoCallback[]>): void; - parallelCollectionScan(options?: ParallelCollectionScanOptions): Promise[]>; - parallelCollectionScan(options: ParallelCollectionScanOptions, callback: MongoCallback[]>): void; - //http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#reIndex - reIndex(): Promise; - reIndex(callback: MongoCallback): void; - //http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#remove - /** @deprecated Use use deleteOne, deleteMany or bulkWrite */ - remove(selector: Object, callback: MongoCallback): void; - /** @deprecated Use use deleteOne, deleteMany or bulkWrite */ - remove(selector: Object, options?: CollectionOptions & { single?: boolean }): Promise; - /** @deprecated Use use deleteOne, deleteMany or bulkWrite */ - remove(selector: Object, options?: CollectionOptions & { single?: boolean }, callback?: MongoCallback): void; - //http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#rename - rename(newName: string, callback: MongoCallback>): void; - rename(newName: string, options?: { dropTarget?: boolean }): Promise>; - rename(newName: string, options: { dropTarget?: boolean }, callback: MongoCallback>): void; - //http://mongodb.github.io/node-mongodb-native/2.2/api/Collection.html#replaceOne - replaceOne(filter: Object, doc: Object, callback: MongoCallback }>): void; - replaceOne(filter: Object, doc: Object, options?: ReplaceOneOptions): Promise }>; - replaceOne(filter: Object, doc: Object, options: ReplaceOneOptions, callback: MongoCallback }>): void; - //http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#save - /** @deprecated Use insertOne, insertMany, updateOne or updateMany */ - save(doc: Object, callback: MongoCallback): void; - /** @deprecated Use insertOne, insertMany, updateOne or updateMany */ - save(doc: Object, options?: CollectionOptions): Promise; - /** @deprecated Use insertOne, insertMany, updateOne or updateMany */ - save(doc: Object, options: CollectionOptions, callback: MongoCallback): void; - //http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#stats - stats(callback: MongoCallback): void; - stats(options?: { scale: number }): Promise; - stats(options: { scale: number }, callback: MongoCallback): void; - // http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#update - /** @deprecated use updateOne, updateMany or bulkWrite */ - update(filter: Object, update: Object, callback: MongoCallback): void; - /** @deprecated use updateOne, updateMany or bulkWrite */ - update(filter: Object, update: Object, options?: ReplaceOneOptions & { multi?: boolean }): Promise; - /** @deprecated use updateOne, updateMany or bulkWrite */ - update(filter: Object, update: Object, options: ReplaceOneOptions & { multi?: boolean }, callback: MongoCallback): void; - //http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#updateMany - updateMany(filter: Object, update: Object, callback: MongoCallback): void; - updateMany(filter: Object, update: Object, options?: { upsert?: boolean; w?: any; wtimeout?: number; j?: boolean; }): Promise; - updateMany(filter: Object, update: Object, options: { upsert?: boolean; w?: any; wtimeout?: number; j?: boolean; }, callback: MongoCallback): void; - //http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#updateOne - updateOne(filter: Object, update: Object, callback: MongoCallback): void; - updateOne(filter: Object, update: Object, options?: ReplaceOneOptions): Promise; - updateOne(filter: Object, update: Object, options: ReplaceOneOptions, callback: MongoCallback): void; - } - - // Documentation: http://docs.mongodb.org/manual/reference/command/collStats/ - //TODO complete this - export interface CollStats { - // Namespace. - ns: string; - // Number of documents. - count: number; - // Collection size in bytes. - size: number; - // Average object size in bytes. - avgObjSize: number; - // (Pre)allocated space for the collection in bytes. - storageSize: number; - // Number of extents (contiguously allocated chunks of datafile space). - numExtents: number; - // Number of indexes. - nindexes: number; - // Size of the most recently created extent in bytes. - lastExtentSize: number; - // Padding can speed up updates if documents grow. - paddingFactor: number; - userFlags: number; - // Total index size in bytes. - totalIndexSize: number; - // Size of specific indexes in bytes. - indexSizes: { - _id_: number; - username: number; - }; - capped: boolean; - maxSize: boolean; - wiredTiger: any; - indexDetails: any; - ok: number; - } - - //http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#aggregate - export interface CollectionAggregationOptions { - readPreference?: ReadPreference | string; - // Return the query as cursor, on 2.6 > it returns as a real cursor - // on pre 2.6 it returns as an emulated cursor. - cursor?: { batchSize: number }; - // Explain returns the aggregation execution plan (requires mongodb 2.6 >). - explain?: boolean; - // lets the server know if it can use disk to store - // temporary results for the aggregation (requires mongodb 2.6 >). - allowDiskUse?: boolean; - // specifies a cumulative time limit in milliseconds for processing operations - // on the cursor. MongoDB interrupts the operation at the earliest following interrupt point. - maxTimeMS?: number; - // Allow driver to bypass schema validation in MongoDB 3.2 or higher. - bypassDocumentValidation?: boolean; - } - - //http://mongodb.github.io/node-mongodb-native/2.2/api/Collection.html#insertMany - export interface CollectionInsertManyOptions { - // The write concern. - w?: number | string; - // The write concern timeout. - wtimeout?: number; - // Specify a journal write concern. - j?: boolean; - // Serialize functions on any object. - serializeFunctions?: boolean; - //Force server to assign _id values instead of driver. - forceServerObjectId?: boolean; - // Allow driver to bypass schema validation in MongoDB 3.2 or higher. - bypassDocumentValidation?: boolean; - // If true, when an insert fails, don't execute the remaining writes. If false, continue with remaining inserts when one fails. - ordered?: boolean; - } - - //http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#bulkWrite - export interface CollectionBluckWriteOptions { - // The write concern. - w?: number | string; - // The write concern timeout. - wtimeout?: number; - // Specify a journal write concern. - j?: boolean; - // Serialize functions on any object. - serializeFunctions?: boolean; - // Execute write operation in ordered or unordered fashion. - ordered?: boolean; - // Allow driver to bypass schema validation in MongoDB 3.2 or higher. - bypassDocumentValidation?: boolean; - } - - //http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#~BulkWriteOpResult - export interface BulkWriteOpResultObject { - insertedCount?: number; - matchedCount?: number; - modifiedCount?: number; - deletedCount?: number; - upsertedCount?: number; - insertedIds?: any; - upsertedIds?: any; - result?: any; - } - - //http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#count - export interface MongoCountPreferences { - // The limit of documents to count. - limit?: number; - // The number of documents to skip for the count. - skip?: boolean; - // An index name hint for the query. - hint?: string; - // The preferred read preference - readPreference?: ReadPreference | string; - } - - //http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#~deleteWriteOpResult - export interface DeleteWriteOpResultObject { - //The raw result returned from MongoDB, field will vary depending on server version. - result: { - //Is 1 if the command executed correctly. - ok?: number; - //The total count of documents deleted. - n?: number; - } - //The connection object used for the operation. - connection?: any; - //The number of documents deleted. - deletedCount?: number; - } - - //http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#~findAndModifyWriteOpResult - export interface FindAndModifyWriteOpResultObject { - //Document returned from findAndModify command. - value?: TSchema; - //The raw lastErrorObject returned from the command. - lastErrorObject?: any; - //Is 1 if the command executed correctly. - ok?: number; - } - - //http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#findOneAndReplace - export interface FindOneAndReplaceOption { - projection?: Object; - sort?: Object; - maxTimeMS?: number; - upsert?: boolean; - returnOriginal?: boolean; - } - - //http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#geoHaystackSearch - export interface GeoHaystackSearchOptions { - readPreference?: ReadPreference | string; - maxDistance?: number; - search?: Object; - limit?: number; - } - - //http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#geoNear - export interface GeoNearOptions { - readPreference?: ReadPreference | string; - num?: number; - minDistance?: number; - maxDistance?: number; - distanceMultiplier?: number; - query?: Object; - spherical?: boolean; - uniqueDocs?: boolean; - includeLocs?: boolean; - } - - //http://mongodb.github.io/node-mongodb-native/2.1/api/Code.html - export class Code { - constructor(code: string | Function, scope?: Object) - code: string | Function; - scope: any; - } - - //http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#deleteMany - export interface CollectionOptions { - //The write concern. - w?: number | string; - //The write concern timeout. - wtimeout?: number; - //Specify a journal write concern. - j?: boolean; - } - - //http://mongodb.github.io/node-mongodb-native/2.1/api/OrderedBulkOperation.html - export interface OrderedBulkOperation { - length: number; - //http://mongodb.github.io/node-mongodb-native/2.1/api/OrderedBulkOperation.html#execute - execute(callback: MongoCallback): void; - execute(options?: FSyncOptions): Promise; - execute(options: FSyncOptions, callback: MongoCallback): void; - //http://mongodb.github.io/node-mongodb-native/2.1/api/OrderedBulkOperation.html#find - find(selector: Object): FindOperatorsOrdered; - //http://mongodb.github.io/node-mongodb-native/2.1/api/OrderedBulkOperation.html#insert - insert(doc: Object): OrderedBulkOperation; - } - - //http://mongodb.github.io/node-mongodb-native/2.1/api/BulkWriteResult.html - export interface BulkWriteResult { - ok: number; - nInserted: number; - nUpdated: number; - nUpserted: number; - nModified: number; - nRemoved: number; - - getInsertedIds(): Array; - getLastOp(): Object; - getRawResponse(): Object; - getUpsertedIdAt(index: number): Object; - getUpsertedIds(): Array; - getWriteConcernError(): WriteConcernError; - getWriteErrorAt(index: number): WriteError; - getWriteErrorCount(): number; - getWriteErrors(): Array; - hasWriteErrors(): boolean; - } - - //http://mongodb.github.io/node-mongodb-native/2.1/api/WriteError.html - export interface WriteError { - //Write concern error code. - code: number; - //Write concern error original bulk operation index. - index: number; - //Write concern error message. - errmsg: string; - } - - //http://mongodb.github.io/node-mongodb-native/2.1/api/WriteConcernError.html - export interface WriteConcernError { - //Write concern error code. - code: number; - //Write concern error message. - errmsg: string; - } - - //http://mongodb.github.io/node-mongodb-native/2.1/api/FindOperatorsOrdered.html - export interface FindOperatorsOrdered { - delete(): OrderedBulkOperation; - deleteOne(): OrderedBulkOperation; - replaceOne(doc: Object): OrderedBulkOperation; - update(doc: Object): OrderedBulkOperation; - updateOne(doc: Object): OrderedBulkOperation; - upsert(): FindOperatorsOrdered; - } - - //http://mongodb.github.io/node-mongodb-native/2.1/api/UnorderedBulkOperation.html - export interface UnorderedBulkOperation { - //http://mongodb.github.io/node-mongodb-native/2.1/api/lib_bulk_unordered.js.html line 339 - length: number; - //http://mongodb.github.io/node-mongodb-native/2.1/api/UnorderedBulkOperation.html#execute - execute(callback: MongoCallback): void; - execute(options?: FSyncOptions): Promise; - execute(options: FSyncOptions, callback: MongoCallback): void; - //http://mongodb.github.io/node-mongodb-native/2.1/api/UnorderedBulkOperation.html#find - find(selector: Object): FindOperatorsUnordered; - //http://mongodb.github.io/node-mongodb-native/2.1/api/UnorderedBulkOperation.html#insert - insert(doc: Object): UnorderedBulkOperation; - } - - //http://mongodb.github.io/node-mongodb-native/2.1/api/FindOperatorsUnordered.html - export interface FindOperatorsUnordered { - length: number; - remove(): UnorderedBulkOperation; - removeOne(): UnorderedBulkOperation; - replaceOne(doc: Object): UnorderedBulkOperation; - update(doc: Object): UnorderedBulkOperation; - updateOne(doc: Object): UnorderedBulkOperation; - upsert(): FindOperatorsUnordered; - } - - //http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#findOne - export interface FindOneOptions { - limit?: number, - sort?: Array | Object, - fields?: Object, - skip?: number, - hint?: Object, - explain?: boolean, - snapshot?: boolean, - timeout?: boolean, - tailable?: boolean, - batchSize?: number, - returnKey?: boolean, - maxScan?: number, - min?: number, - max?: number, - showDiskLoc?: boolean, - comment?: string, - raw?: boolean, - readPreference?: ReadPreference | string, - partial?: boolean, - maxTimeMs?: number - } - - //http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#~insertWriteOpResult - export interface InsertWriteOpResult { - insertedCount: number; - ops: Array; - insertedIds: Array; - connection: any; - result: { ok: number, n: number } - } - - //http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#insertOne - export interface CollectionInsertOneOptions { - // The write concern. - w?: number | string; - // The write concern timeout. - wtimeout?: number; - // Specify a journal write concern. - j?: boolean; - // Serialize functions on any object. - serializeFunctions?: boolean; - //Force server to assign _id values instead of driver. - forceServerObjectId?: boolean; - //Allow driver to bypass schema validation in MongoDB 3.2 or higher. - bypassDocumentValidation?: boolean - } - - //http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#~insertOneWriteOpResult - export interface InsertOneWriteOpResult { - insertedCount: number; - ops: Array; - insertedId: ObjectID; - connection: any; - result: { ok: number, n: number } - } - - //http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#parallelCollectionScan - export interface ParallelCollectionScanOptions { - readPreference?: ReadPreference | string; - batchSize?: number; - numCursors?: number; - raw?: boolean; - } - - //http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#replaceOne - export interface ReplaceOneOptions { - upsert?: boolean; - w?: number | string; - wtimeout?: number; - j?: boolean; - bypassDocumentValidation?: boolean; - } - - //http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#~updateWriteOpResult - export interface UpdateWriteOpResult { - result: { ok: number, n: number, nModified: number }; - connection: any; - matchedCount: number; - modifiedCount: number; - upsertedCount: number; - upsertedId: { _id: ObjectID }; - } - - //http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#mapReduce - export interface MapReduceOptions { - readPreference?: ReadPreference | string; - out?: Object; - query?: Object; - sort?: Object; - limit?: number; - keeptemp?: boolean; - finalize?: Function | string; - scope?: Object; - jsMode?: boolean; - verbose?: boolean; - bypassDocumentValidation?: boolean - } - - //http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#~WriteOpResult - export interface WriteOpResult { - ops: Array; - connection: any; - result: any; - } - - //http://mongodb.github.io/node-mongodb-native/2.1/api/Cursor.html#~resultCallback - export type CursorResult = any | void | boolean; - - type Default = any; - - //http://mongodb.github.io/node-mongodb-native/2.1/api/Cursor.html - export class Cursor extends Readable { - - sortValue: string; - timeout: boolean; - readPreference: ReadPreference; - //http://mongodb.github.io/node-mongodb-native/2.1/api/Cursor.html#addCursorFlag - addCursorFlag(flag: string, value: boolean): Cursor; - // http://mongodb.github.io/node-mongodb-native/2.1/api/Cursor.html#addQueryModifier - addQueryModifier(name: string, value: boolean): Cursor; - // http://mongodb.github.io/node-mongodb-native/2.1/api/Cursor.html#batchSize - batchSize(value: number): Cursor; - // http://mongodb.github.io/node-mongodb-native/2.1/api/Cursor.html#clone - clone(): Cursor; // still returns the same type - // http://mongodb.github.io/node-mongodb-native/2.1/api/Cursor.html#close - close(): Promise; - close(callback: MongoCallback): void; - // http://mongodb.github.io/node-mongodb-native/2.1/api/Cursor.html#comment - comment(value: string): Cursor; - // http://mongodb.github.io/node-mongodb-native/2.2/api/Cursor.html#count - count(callback: MongoCallback): void; - count(applySkipLimit: boolean, callback: MongoCallback): void; - count(options: CursorCommentOptions, callback: MongoCallback): void; - count(applySkipLimit: boolean, options: CursorCommentOptions, callback: MongoCallback): void; - count(applySkipLimit?: boolean, options?: CursorCommentOptions): Promise; - // http://mongodb.github.io/node-mongodb-native/2.1/api/Cursor.html#explain - explain(): Promise; - explain(callback: MongoCallback): void; - //http://mongodb.github.io/node-mongodb-native/2.1/api/Cursor.html#filter - filter(filter: Object): Cursor; - // http://mongodb.github.io/node-mongodb-native/2.1/api/Cursor.html#forEach - forEach(iterator: IteratorCallback, callback: EndCallback): void; - // http://mongodb.github.io/node-mongodb-native/2.1/api/Cursor.html#hasNext - hasNext(): Promise; - hasNext(callback: MongoCallback): void; - // http://mongodb.github.io/node-mongodb-native/2.1/api/Cursor.html#hint - hint(hint: Object): Cursor; - // http://mongodb.github.io/node-mongodb-native/2.1/api/Cursor.html#isClosed - isClosed(): boolean; - // http://mongodb.github.io/node-mongodb-native/2.1/api/Cursor.html#limit - limit(value: number): Cursor; - // http://mongodb.github.io/node-mongodb-native/2.1/api/Cursor.html#map - map(transform: Function): Cursor; - // http://mongodb.github.io/node-mongodb-native/2.1/api/Cursor.html#max - max(max: number): Cursor; - //http://mongodb.github.io/node-mongodb-native/2.1/api/Cursor.html#maxAwaitTimeMS - maxAwaitTimeMS(value: number): Cursor; - // http://mongodb.github.io/node-mongodb-native/2.1/api/Cursor.html#maxScan - maxScan(maxScan: Object): Cursor; - // http://mongodb.github.io/node-mongodb-native/2.1/api/Cursor.html#maxTimeMS - maxTimeMS(value: number): Cursor; - // http://mongodb.github.io/node-mongodb-native/2.1/api/Cursor.html#min - min(min: number): Cursor; - // http://mongodb.github.io/node-mongodb-native/2.1/api/Cursor.html#next - next(): Promise; - next(callback: MongoCallback): void; - //http://mongodb.github.io/node-mongodb-native/2.1/api/Cursor.html#project - project(value: Object): Cursor; - //http://mongodb.github.io/node-mongodb-native/2.1/api/Cursor.html#read - read(size: number): string | Buffer | void; - // http://mongodb.github.io/node-mongodb-native/2.1/api/Cursor.html#next - returnKey(returnKey: Object): Cursor; - //http://mongodb.github.io/node-mongodb-native/2.1/api/Cursor.html#rewind - rewind(): void; - // http://mongodb.github.io/node-mongodb-native/2.1/api/Cursor.html#setCursorOption - setCursorOption(field: string, value: Object): Cursor; - // http://mongodb.github.io/node-mongodb-native/2.1/api/Cursor.html#setReadPreference - setReadPreference(readPreference: string | ReadPreference): Cursor; - // http://mongodb.github.io/node-mongodb-native/2.1/api/Cursor.html#showRecordId - showRecordId(showRecordId: Object): Cursor; - // http://mongodb.github.io/node-mongodb-native/2.1/api/Cursor.html#skip - skip(value: number): Cursor; - // http://mongodb.github.io/node-mongodb-native/2.1/api/Cursor.html#snapshot - snapshot(snapshot: Object): Cursor; - // http://mongodb.github.io/node-mongodb-native/2.1/api/Cursor.html#sort - sort(keyOrList: string | Object[] | Object, direction?: number): Cursor; - // http://mongodb.github.io/node-mongodb-native/2.1/api/Cursor.html#stream - stream(options?: { transform?: Function }): Cursor; - // http://mongodb.github.io/node-mongodb-native/2.1/api/Cursor.html#toArray - toArray(): Promise; - toArray(callback: MongoCallback): void; - //http://mongodb.github.io/node-mongodb-native/2.1/api/Cursor.html#unshift - unshift(stream: Buffer | string): void; - } - - //http://mongodb.github.io/node-mongodb-native/2.1/api/Cursor.html#count - export interface CursorCommentOptions { - skip?: number; - limit?: number; - maxTimeMS?: number; - hint?: string; - readPreference?: ReadPreference | string; - } - - //http://mongodb.github.io/node-mongodb-native/2.1/api/Cursor.html#~iteratorCallback - export interface IteratorCallback { - (doc: T): void; - } - - //http://mongodb.github.io/node-mongodb-native/2.1/api/Cursor.html#~endCallback - export interface EndCallback { - (error: MongoError): void; - } - - //http://mongodb.github.io/node-mongodb-native/2.1/api/AggregationCursor.html#~resultCallback - export type AggregationCursorResult = any | void; - //http://mongodb.github.io/node-mongodb-native/2.1/api/AggregationCursor.html - export class AggregationCursor extends Readable { - // http://mongodb.github.io/node-mongodb-native/2.1/api/AggregationCursor.html#batchSize - batchSize(value: number): AggregationCursor; - // http://mongodb.github.io/node-mongodb-native/2.1/api/AggregationCursor.html#clone - clone(): AggregationCursor; - // http://mongodb.github.io/node-mongodb-native/2.1/api/AggregationCursor.html#close - close(): Promise; - close(callback: MongoCallback): void; - //http://mongodb.github.io/node-mongodb-native/2.1/api/AggregationCursor.html#each - each(callback: MongoCallback): void; - // http://mongodb.github.io/node-mongodb-native/2.1/api/AggregationCursor.html#explain - explain(): Promise; - explain(callback: MongoCallback): void; - //http://mongodb.github.io/node-mongodb-native/2.1/api/AggregationCursor.html#geoNear - geoNear(document: Object): AggregationCursor; - //http://mongodb.github.io/node-mongodb-native/2.1/api/AggregationCursor.html#group - group(document: Object): AggregationCursor; - // http://mongodb.github.io/node-mongodb-native/2.1/api/AggregationCursor.html#isClosed - isClosed(): boolean; - // http://mongodb.github.io/node-mongodb-native/2.1/api/AggregationCursor.html#limit - limit(value: number): AggregationCursor; - //http://mongodb.github.io/node-mongodb-native/2.1/api/AggregationCursor.html#match - match(document: Object): AggregationCursor; - // http://mongodb.github.io/node-mongodb-native/2.1/api/AggregationCursor.html#maxTimeMS - maxTimeMS(value: number): AggregationCursor; - // http://mongodb.github.io/node-mongodb-native/2.1/api/AggregationCursor.html#next - next(): Promise; - next(callback: MongoCallback): void; - // http://mongodb.github.io/node-mongodb-native/2.1/api/AggregationCursor.html#out - out(destination: string): AggregationCursor; - //http://mongodb.github.io/node-mongodb-native/2.1/api/AggregationCursor.html#project - project(document: Object): AggregationCursor; - //http://mongodb.github.io/node-mongodb-native/2.1/api/AggregationCursor.html#read - read(size: number): string | Buffer | void; - //http://mongodb.github.io/node-mongodb-native/2.1/api/AggregationCursor.html#redact - redact(document: Object): AggregationCursor; - //http://mongodb.github.io/node-mongodb-native/2.1/api/AggregationCursor.html#rewind - rewind(): AggregationCursor; - //http://mongodb.github.io/node-mongodb-native/2.1/api/AggregationCursor.html#setEncoding - skip(value: number): AggregationCursor; - // http://mongodb.github.io/node-mongodb-native/2.1/api/AggregationCursor.html#sort - sort(document: Object): AggregationCursor; - // http://mongodb.github.io/node-mongodb-native/2.1/api/AggregationCursor.html#toArray - toArray(): Promise; - toArray(callback: MongoCallback): void; - //http://mongodb.github.io/node-mongodb-native/2.1/api/AggregationCursor.html#unshift - unshift(stream: Buffer | string): void; - //http://mongodb.github.io/node-mongodb-native/2.1/api/AggregationCursor.html#unwind - unwind(field: string): AggregationCursor; - } - - //http://mongodb.github.io/node-mongodb-native/2.1/api/CommandCursor.html - export class CommandCursor extends Readable { - // http://mongodb.github.io/node-mongodb-native/2.1/api/CommandCursor.html#batchSize - batchSize(value: number): CommandCursor; - // http://mongodb.github.io/node-mongodb-native/2.1/api/CommandCursor.html#clone - clone(): CommandCursor; - // http://mongodb.github.io/node-mongodb-native/2.1/api/CommandCursor.html#close - close(): Promise; - close(callback: MongoCallback): void; - //http://mongodb.github.io/node-mongodb-native/2.1/api/CommandCursor.html#each - each(callback: MongoCallback): void; - // http://mongodb.github.io/node-mongodb-native/2.1/api/CommandCursor.html#isClosed - isClosed(): boolean; - // http://mongodb.github.io/node-mongodb-native/2.1/api/CommandCursor.html#maxTimeMS - maxTimeMS(value: number): CommandCursor; - // http://mongodb.github.io/node-mongodb-native/2.1/api/CommandCursor.html#next - next(): Promise; - next(callback: MongoCallback): void; - //http://mongodb.github.io/node-mongodb-native/2.1/api/CommandCursor.html#read - read(size: number): string | Buffer | void; - //http://mongodb.github.io/node-mongodb-native/2.1/api/CommandCursor.html#rewind - rewind(): CommandCursor; - // http://mongodb.github.io/node-mongodb-native/2.1/api/CommandCursor.html#setReadPreference - setReadPreference(readPreference: string | ReadPreference): CommandCursor; - // http://mongodb.github.io/node-mongodb-native/2.1/api/CommandCursor.html#toArray - toArray(): Promise; - toArray(callback: MongoCallback): void; - //http://mongodb.github.io/node-mongodb-native/2.1/api/CommandCursor.html#unshift - unshift(stream: Buffer | string): void; - } - - // http://mongodb.github.io/node-mongodb-native/2.1/api/GridFSBucket.html - export class GridFSBucket { - constructor(db: Db, options?: GridFSBucketOptions); - // http://mongodb.github.io/node-mongodb-native/2.1/api/GridFSBucket.html#delete - delete(id: ObjectID, callback?: GridFSBucketErrorCallback): void; - // http://mongodb.github.io/node-mongodb-native/2.1/api/GridFSBucket.html#drop - drop(callback?: GridFSBucketErrorCallback): void; - // http://mongodb.github.io/node-mongodb-native/2.1/api/GridFSBucket.html#find - find(filter?: Object, options?: GridFSBucketFindOptions): Cursor; - // http://mongodb.github.io/node-mongodb-native/2.1/api/GridFSBucket.html#openDownloadStream - openDownloadStream(id: ObjectID, options?: { start: number, end: number }): GridFSBucketReadStream; - // http://mongodb.github.io/node-mongodb-native/2.1/api/GridFSBucket.html#openDownloadStreamByName - openDownloadStreamByName(filename: string, options?: { revision: number, start: number, end: number }): GridFSBucketReadStream; - // http://mongodb.github.io/node-mongodb-native/2.1/api/GridFSBucket.html#openUploadStream - openUploadStream(filename: string, options?: GridFSBucketOpenUploadStreamOptions): GridFSBucketWriteStream; - // http://mongodb.github.io/node-mongodb-native/2.1/api/GridFSBucket.html#openUploadStreamWithId - openUploadStreamWithId(id: string | number | Object, filename: string, options?: GridFSBucketOpenUploadStreamOptions): GridFSBucketWriteStream; - // http://mongodb.github.io/node-mongodb-native/2.1/api/GridFSBucket.html#rename - rename(id: ObjectID, filename: string, callback?: GridFSBucketErrorCallback): void; - } - - // http://mongodb.github.io/node-mongodb-native/2.1/api/GridFSBucket.html - export interface GridFSBucketOptions { - bucketName?: string; - chunkSizeBytes?: number; - writeConcern?: Object; - ReadPreference?: Object; - } - - // http://mongodb.github.io/node-mongodb-native/2.1/api/GridFSBucket.html#~errorCallback - export interface GridFSBucketErrorCallback { - (err?: MongoError): void; - } - - // http://mongodb.github.io/node-mongodb-native/2.1/api/GridFSBucket.html#find - export interface GridFSBucketFindOptions { - batchSize?: number; - limit?: number; - maxTimeMS?: number; - noCursorTimeout?: boolean; - skip?: number; - sort?: Object; - } - - // https://mongodb.github.io/node-mongodb-native/2.1/api/GridFSBucket.html#openUploadStream - export interface GridFSBucketOpenUploadStreamOptions { - chunkSizeBytes?: number, - metadata?: Object, - contentType?: string, - aliases?: Array - } - - // https://mongodb.github.io/node-mongodb-native/2.1/api/GridFSBucketReadStream.html - export class GridFSBucketReadStream extends Readable { - constructor(chunks: Collection, files: Collection, readPreference: Object, filter: Object, options?: GridFSBucketReadStreamOptions); - } - - // https://mongodb.github.io/node-mongodb-native/2.1/api/GridFSBucketReadStream.html - export interface GridFSBucketReadStreamOptions { - sort?: number, - skip?: number, - start?: number, - end?: number - } - - // https://mongodb.github.io/node-mongodb-native/2.1/api/GridFSBucketWriteStream.html - export class GridFSBucketWriteStream extends Writable { - constructor(bucket: GridFSBucket, filename: string, options?: GridFSBucketWriteStreamOptions); - } - - // https://mongodb.github.io/node-mongodb-native/2.1/api/GridFSBucketWriteStream.html - export interface GridFSBucketWriteStreamOptions { - id?: string | number | Object, - chunkSizeBytes?: number, - w?: number, - wtimeout?: number, - j?: number - } +export function connect(uri: string, callback: MongoCallback): void; +export function connect(uri: string, options?: MongoClientOptions): Promise; +export function connect(uri: string, options: MongoClientOptions, callback: MongoCallback): void; + +export { Binary, Double, Long, Decimal128, MaxKey, MinKey, ObjectID, ObjectId, Timestamp } from 'bson'; + +// Class documentation : http://mongodb.github.io/node-mongodb-native/2.1/api/MongoClient.html +export class MongoClient { + constructor(); + + static connect(uri: string, callback: MongoCallback): void; + static connect(uri: string, options?: MongoClientOptions): Promise; + static connect(uri: string, options: MongoClientOptions, callback: MongoCallback): void; + + connect(uri: string, callback: MongoCallback): void; + connect(uri: string, options?: MongoClientOptions): Promise; + connect(uri: string, options: MongoClientOptions, callback: MongoCallback): void; } -export = MongoDB; +export interface MongoCallback { + (error: MongoError, result: T): void; +} + +// http://mongodb.github.io/node-mongodb-native/2.1/api/MongoError.html +export class MongoError extends Error { + constructor(message: string); + static create(options: Object): MongoError; + code?: number; +} + +// http://mongodb.github.io/node-mongodb-native/2.2/api/MongoClient.html#.connect +export interface MongoClientOptions extends + DbCreateOptions, + ServerOptions, + MongosOptions, + ReplSetOptions, + SocketOptions, + SSLOptions, + HighAvailabilityOptions { + // The logging level (error/warn/info/debug) + loggerLevel?: string; + // Custom logger object + logger?: Object; + // Default: false; + validateOptions?: Object; +} + +export interface SSLOptions { + // Default:5; Number of connections for each server instance + poolSize?: number; + // Use ssl connection (needs to have a mongod server with ssl support) + ssl?: boolean; + // Default: true; Validate mongod server certificate against ca (mongod server >=2.4 with ssl support required) + sslValidate?: Object; + // Default: true; Server identity checking during SSL + checkServerIdentity?: boolean | Function; + // Array of valid certificates either as Buffers or Strings + sslCA?: Array; + // SSL Certificate revocation list binary buffer + sslCRL?: Buffer; + // SSL Certificate binary buffer + sslCert?: Buffer | string; + // SSL Key file binary buffer + sslKey?: Buffer | string; + // SSL Certificate pass phrase + sslPass?: Buffer | string; + // String containing the server name requested via TLS SNI. + servername?: string; +} + +export interface HighAvailabilityOptions { + // Default: true; Turn on high availability monitoring. + ha?: boolean; + // Default: 10000; The High availability period for replicaset inquiry + haInterval?: number; + // Default: false; + domainsEnabled?: boolean; +} + +// See http://mongodb.github.io/node-mongodb-native/2.2/api/ReadPreference.html +export class ReadPreference { + constructor(mode: string, tags: Object); + mode: string; + tags: any; + options: { maxStalenessSeconds?: number }; // Max Secondary Read Stalleness in Seconds + static PRIMARY: string; + static PRIMARY_PREFERRED: string; + static SECONDARY: string; + static SECONDARY_PREFERRED: string; + static NEAREST: string; + isValid(mode: string): boolean; + static isValid(mode: string): boolean; +} + +// http://mongodb.github.io/node-mongodb-native/2.2/api/Db.html +export interface DbCreateOptions { + + // If the database authentication is dependent on another databaseName. + authSource?: string; + // Default: null;https://docs.mongodb.com/manual/reference/write-concern/#write-concern + w?: number | string; + // The write concern timeout to finish (combining with w option). + wtimeout?: number; + // Specify a journal write concern. + j?: boolean; + // Default: false; Force server to create _id fields instead of client. + forceServerObjectId?: boolean; + // Default: false; Use c++ bson parser. + native_parser?: boolean; + // Serialize functions on any object. + serializeFunctions?: boolean; + // Specify if the BSON serializer should ignore undefined fields. + ignoreUndefined?: boolean; + // Return document results as raw BSON buffers. + raw?: boolean; + // Default: true; Promotes Long values to number if they fit inside the 53 bits resolution. + promoteLongs?: boolean; + // Default: -1 (unlimited); Amount of operations the driver buffers up untill discard any new ones + promoteBuffers?: number; + // the prefered read preference. use 'ReadPreference' class. + readPreference?: ReadPreference | string; + // Default: true; Promotes BSON values to native types where possible, set to false to only receive wrapper types. + promoteValues?: Object; + // Custom primary key factory to generate _id values (see Custom primary keys). + pkFactory?: Object; + // ES6 compatible promise constructor + promiseLibrary?: Object; + // https://docs.mongodb.com/manual/reference/read-concern/#read-concern + readConcern?: { level?: Object }; +} + +// http://mongodb.github.io/node-mongodb-native/2.2/api/Server.html +export interface SocketOptions { + // Reconnect on error. default:false + autoReconnect?: boolean; + // TCP Socket NoDelay option. default:true + noDelay?: boolean; + // TCP KeepAlive on the socket with a X ms delay before start. default:0 + keepAlive?: number; + // TCP Connection timeout setting. default 0 + connectTimeoutMS?: number; + // TCP Socket timeout setting. default 0 + socketTimeoutMS?: number; +} + +// http://mongodb.github.io/node-mongodb-native/2.2/api/Server.html +export interface ServerOptions extends SSLOptions { + // Default: 30; + reconnectTries?: number; + // Default: 1000; + reconnectInterval?: number; + // Default: true; + monitoring?: boolean + socketOptions?: SocketOptions; + // Default: 10000; The High availability period for replicaset inquiry + haInterval?: number; + // Default: false; + domainsEnabled?: boolean; +} + +// http://mongodb.github.io/node-mongodb-native/2.2/api/Mongos.html +export interface MongosOptions extends SSLOptions, HighAvailabilityOptions { + // Default: 15; Cutoff latency point in MS for MongoS proxy selection + acceptableLatencyMS?: number; + socketOptions?: SocketOptions; +} + +// http://mongodb.github.io/node-mongodb-native/2.2/api/ReplSet.html +export interface ReplSetOptions extends SSLOptions, HighAvailabilityOptions { + // The max staleness to secondary reads (values under 10 seconds cannot be guaranteed); + maxStalenessSeconds?: number; + // The name of the replicaset to connect to. + replicaSet?: string; + // Default: 15 ; Range of servers to pick when using NEAREST (lowest ping ms + the latency fence, ex: range of 1 to (1 + 15) ms) + secondaryAcceptableLatencyMS?: number; + connectWithNoPrimary?: boolean; + socketOptions?: SocketOptions; +} + +// Class documentation : http://mongodb.github.io/node-mongodb-native/2.1/api/Db.html +export class Db extends EventEmitter { + constructor(databaseName: string, serverConfig: Server | ReplSet | Mongos, options?: DbCreateOptions); + + serverConfig: Server | ReplSet | Mongos; + bufferMaxEntries: number; + databaseName: string; + options: any; + native_parser: boolean; + slaveOk: boolean; + writeConcern: any; + + // http://mongodb.github.io/node-mongodb-native/2.1/api/Db.html#addUser + addUser(username: string, password: string, callback: MongoCallback): void; + addUser(username: string, password: string, options?: DbAddUserOptions): Promise; + addUser(username: string, password: string, options: DbAddUserOptions, callback: MongoCallback): void; + //http://mongodb.github.io/node-mongodb-native/2.1/api/Db.html#admin + admin(): Admin; + // http://mongodb.github.io/node-mongodb-native/2.1/api/Db.html#authenticate + authenticate(userName: string, password: string, callback: MongoCallback): void; + authenticate(userName: string, password: string, options?: { authMechanism: string }): Promise; + authenticate(userName: string, password: string, options: { authMechanism: string }, callback: MongoCallback): void; + // http://mongodb.github.io/node-mongodb-native/2.1/api/Db.html#close + close(callback: MongoCallback): void; + close(forceClose?: boolean): Promise; + close(forceClose: boolean, callback: MongoCallback): void; + // http://mongodb.github.io/node-mongodb-native/2.1/api/Db.html#collection + collection(name: string): Collection; + collection(name: string, callback: MongoCallback>): Collection; + collection(name: string, options: DbCollectionOptions, callback: MongoCallback>): Collection; + //http://mongodb.github.io/node-mongodb-native/2.1/api/Db.html#collections + collections(): Promise[]>; + collections(callback: MongoCallback[]>): void; + //http://mongodb.github.io/node-mongodb-native/2.1/api/Db.html#command + command(command: Object, callback: MongoCallback): void; + command(command: Object, options?: { readPreference: ReadPreference | string }): Promise; + command(command: Object, options: { readPreference: ReadPreference | string }, callback: MongoCallback): void; + //http://mongodb.github.io/node-mongodb-native/2.1/api/Db.html#createCollection + createCollection(name: string, callback: MongoCallback>): void; + createCollection(name: string, options?: CollectionCreateOptions): Promise>; + createCollection(name: string, options: CollectionCreateOptions, callback: MongoCallback>): void; + //http://mongodb.github.io/node-mongodb-native/2.1/api/Db.html#createIndex + createIndex(name: string, fieldOrSpec: string | Object, callback: MongoCallback): void; + createIndex(name: string, fieldOrSpec: string | Object, options?: IndexOptions): Promise; + createIndex(name: string, fieldOrSpec: string | Object, options: IndexOptions, callback: MongoCallback): void; + //http://mongodb.github.io/node-mongodb-native/2.1/api/Db.html#db + db(dbName: string): Db; + db(dbName: string, options: { noListener?: boolean, returnNonCachedInstance?: boolean }): Db; + //http://mongodb.github.io/node-mongodb-native/2.1/api/Db.html#dropCollection + dropCollection(name: string): Promise; + dropCollection(name: string, callback: MongoCallback): void; + // http://mongodb.github.io/node-mongodb-native/2.1/api/Db.html#dropDatabase + dropDatabase(): Promise; + dropDatabase(callback: MongoCallback): void; + + //deprecated http://mongodb.github.io/node-mongodb-native/2.1/api/Db.html#ensureIndex + // ensureIndex(collectionName: any, fieldOrSpec: any, options: IndexOptions, callback: Function): void; + //deprecated http://mongodb.github.io/node-mongodb-native/2.1/api/Db.html#eval + // eval(code: any, parameters: any[], options?: any, callback?: MongoCallback): void; + + //http://mongodb.github.io/node-mongodb-native/2.1/api/Db.html#executeDbAdminCommand + executeDbAdminCommand(command: Object, callback: MongoCallback): void; + executeDbAdminCommand(command: Object, options?: { readPreference?: ReadPreference | string, maxTimeMS?: number }): Promise; + executeDbAdminCommand(command: Object, options: { readPreference?: ReadPreference | string, maxTimeMS?: number }, callback: MongoCallback): void; + // http://mongodb.github.io/node-mongodb-native/2.1/api/Db.html#indexInformation + indexInformation(name: string, callback: MongoCallback): void; + indexInformation(name: string, options?: { full?: boolean, readPreference?: ReadPreference | string }): Promise; + indexInformation(name: string, options: { full?: boolean, readPreference?: ReadPreference | string }, callback: MongoCallback): void; + //http://mongodb.github.io/node-mongodb-native/2.1/api/Db.html#listCollections + listCollections(filter: Object, options?: { batchSize?: number, readPreference?: ReadPreference | string }): CommandCursor; + //http://mongodb.github.io/node-mongodb-native/2.1/api/Db.html#logout + logout(callback: MongoCallback): void; + logout(options?: { dbName?: string }): Promise; + logout(options: { dbName?: string }, callback: MongoCallback): void; + //http://mongodb.github.io/node-mongodb-native/2.1/api/Db.html#open + open(): Promise; + open(callback: MongoCallback): void; + //http://mongodb.github.io/node-mongodb-native/2.1/api/Db.html#removeUser + removeUser(username: string, callback: MongoCallback): void; + removeUser(username: string, options?: { w?: number | string, wtimeout?: number, j?: boolean }): Promise; + removeUser(username: string, options: { w?: number | string, wtimeout?: number, j?: boolean }, callback: MongoCallback): void; + // http://mongodb.github.io/node-mongodb-native/2.1/api/Db.html#renameCollection + renameCollection(fromCollection: string, toCollection: string, callback: MongoCallback>): void; + renameCollection(fromCollection: string, toCollection: string, options?: { dropTarget?: boolean }): Promise>; + renameCollection(fromCollection: string, toCollection: string, options: { dropTarget?: boolean }, callback: MongoCallback>): void; + //http://mongodb.github.io/node-mongodb-native/2.1/api/Db.html#stats + stats(callback: MongoCallback): void; + stats(options?: { scale?: number }): Promise; + stats(options: { scale?: number }, callback: MongoCallback): void; +} + +// Deprecated http://mongodb.github.io/node-mongodb-native/2.1/api/Server.html +export class Server extends EventEmitter { + constructor(host: string, port: number, options?: ServerOptions); + + connections(): Array; +} + +// Deprecated http://mongodb.github.io/node-mongodb-native/2.1/api/ReplSet.html +export class ReplSet extends EventEmitter { + constructor(servers: Array, options?: ReplSetOptions); + + connections(): Array; +} + +// Deprecated http://mongodb.github.io/node-mongodb-native/2.1/api/ReplSet.html +export class Mongos extends EventEmitter { + constructor(servers: Array, options?: MongosOptions); + + connections(): Array; +} + +// http://mongodb.github.io/node-mongodb-native/2.1/api/Db.html#addUser +export interface DbAddUserOptions { + w?: string | number; + wtimeout?: number; + j?: boolean; + customData?: Object; + roles?: Object[]; +} + +//http://mongodb.github.io/node-mongodb-native/2.1/api/Db.html#createCollection +export interface CollectionCreateOptions { + w?: number | string; + wtimeout?: number; + j?: boolean; + raw?: boolean; + pkFactory?: Object; + readPreference?: ReadPreference | string; + serializeFunctions?: boolean; + strict?: boolean; + capped?: boolean; + size?: number; + max?: number; + autoIndexId?: boolean; +} + +// http://mongodb.github.io/node-mongodb-native/2.1/api/Db.html#collection +export interface DbCollectionOptions { + w?: number | string; + wtimeout?: number; + j?: boolean; + raw?: boolean; + pkFactory?: Object; + readPreference?: ReadPreference | string; + serializeFunctions?: boolean; + strict?: boolean; + readConcern?: { level: Object }; +} + +//http://mongodb.github.io/node-mongodb-native/2.2/api/Db.html#createIndex +export interface IndexOptions { + // The write concern. + w?: number | string; + // The write concern timeout. + wtimeout?: number; + // Specify a journal write concern. + j?: boolean; + // Creates an unique index. + unique?: boolean; + // Creates a sparse index. + sparse?: boolean; + // Creates the index in the background, yielding whenever possible. + background?: boolean; + // A unique index cannot be created on a key that has pre-existing duplicate values. + // If you would like to create the index anyway, keeping the first document the database indexes and + // deleting all subsequent documents that have duplicate value + dropDups?: boolean; + // For geo spatial indexes set the lower bound for the co-ordinates. + min?: number; + // For geo spatial indexes set the high bound for the co-ordinates. + max?: number; + // Specify the format version of the indexes. + v?: number; + // Allows you to expire data on indexes applied to a data (MongoDB 2.2 or higher) + expireAfterSeconds?: number; + // Override the auto generated index name (useful if the resulting name is larger than 128 bytes) + name?: string; + // Creates a partial index based on the given filter object (MongoDB 3.2 or higher) + partialFilterExpression?: any; +} + +// http://mongodb.github.io/node-mongodb-native/2.1/api/Admin.html +export interface Admin { + // http://mongodb.github.io/node-mongodb-native/2.1/api/Admin.html#addUser + addUser(username: string, password: string, callback: MongoCallback): void; + addUser(username: string, password: string, options?: AddUserOptions): Promise; + addUser(username: string, password: string, options: AddUserOptions, callback: MongoCallback): void; + //http://mongodb.github.io/node-mongodb-native/2.1/api/Admin.html#authenticate + authenticate(username: string, callback: MongoCallback): void; + authenticate(username: string, password?: string): Promise; + authenticate(username: string, password: string, callback: MongoCallback): void; + //http://mongodb.github.io/node-mongodb-native/2.1/api/Admin.html#buildInfo + buildInfo(): Promise; + buildInfo(callback: MongoCallback): void; + //http://mongodb.github.io/node-mongodb-native/2.1/api/Admin.html#command + command(command: Object, callback: MongoCallback): void; + command(command: Object, options?: { readPreference?: ReadPreference | string, maxTimeMS?: number }): Promise; + command(command: Object, options: { readPreference?: ReadPreference | string, maxTimeMS?: number }, callback: MongoCallback): void; + //http://mongodb.github.io/node-mongodb-native/2.1/api/Admin.html#listDatabases + listDatabases(): Promise; + listDatabases(callback: MongoCallback): void; + //http://mongodb.github.io/node-mongodb-native/2.1/api/Admin.html#logout + logout(): Promise; + logout(callback: MongoCallback): void; + //http://mongodb.github.io/node-mongodb-native/2.1/api/Admin.html#ping + ping(): Promise; + ping(callback: MongoCallback): void; + //http://mongodb.github.io/node-mongodb-native/2.1/api/Admin.html#profilingInfo + profilingInfo(): Promise; + profilingInfo(callback: MongoCallback): void; + //http://mongodb.github.io/node-mongodb-native/2.1/api/Admin.html#profilingLevel + profilingLevel(): Promise; + profilingLevel(callback: MongoCallback): void; + //http://mongodb.github.io/node-mongodb-native/2.1/api/Admin.html#removeUser + removeUser(username: string, callback: MongoCallback): void; + removeUser(username: string, options?: FSyncOptions): Promise; + removeUser(username: string, options: FSyncOptions, callback: MongoCallback): void; + //http://mongodb.github.io/node-mongodb-native/2.1/api/Admin.html#replSetGetStatus + replSetGetStatus(): Promise; + replSetGetStatus(callback: MongoCallback): void; + //http://mongodb.github.io/node-mongodb-native/2.1/api/Admin.html#serverInfo + serverInfo(): Promise; + serverInfo(callback: MongoCallback): void; + //http://mongodb.github.io/node-mongodb-native/2.1/api/Admin.html#serverStatus + serverStatus(): Promise; + serverStatus(callback: MongoCallback): void; + //http://mongodb.github.io/node-mongodb-native/2.1/api/Admin.html#setProfilingLevel + setProfilingLevel(level: string): Promise; + setProfilingLevel(level: string, callback: MongoCallback): void; + // http://mongodb.github.io/node-mongodb-native/2.1/api/Admin.html#validateCollection + validateCollection(collectionNme: string, callback: MongoCallback): void; + validateCollection(collectionNme: string, options?: Object): Promise; + validateCollection(collectionNme: string, options: Object, callback: MongoCallback): void; +} + +//http://mongodb.github.io/node-mongodb-native/2.1/api/Admin.html#addUser +export interface AddUserOptions { + w?: number | string; + wtimeout?: number; + j?: boolean; + fsync: boolean; + customData?: Object; + roles?: Object[] +} + +//http://mongodb.github.io/node-mongodb-native/2.1/api/Admin.html#removeUser +export interface FSyncOptions { + w?: number | string; + wtimeout?: number; + j?: boolean; + fsync?: boolean +} + +// Documentation : http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html +export interface Collection { + // Get the collection name. + collectionName: string; + // Get the full collection namespace. + namespace: string; + // The current write concern values. + writeConcern: any; + // The current read concern values. + readConcern: any; + // Get current index hint for collection. + hint: any; + //http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#aggregate + aggregate(pipeline: Object[], callback: MongoCallback): AggregationCursor; + aggregate(pipeline: Object[], options?: CollectionAggregationOptions, callback?: MongoCallback): AggregationCursor; + //http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#bulkWrite + bulkWrite(operations: Object[], callback: MongoCallback): void; + bulkWrite(operations: Object[], options?: CollectionBluckWriteOptions): Promise; + bulkWrite(operations: Object[], options: CollectionBluckWriteOptions, callback: MongoCallback): void; + //http://mongodb.github.io/node-mongodb-native/2.2/api/Collection.html#count + count(query: Object, callback: MongoCallback): void; + count(query: Object, options?: MongoCountPreferences): Promise; + count(query: Object, options: MongoCountPreferences, callback: MongoCallback): void; + //http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#createIndex + createIndex(fieldOrSpec: string | any, callback: MongoCallback): void; + createIndex(fieldOrSpec: string | any, options?: IndexOptions): Promise; + createIndex(fieldOrSpec: string | any, options: IndexOptions, callback: MongoCallback): void; + //http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#createIndexes and http://docs.mongodb.org/manual/reference/command/createIndexes/ + createIndexes(indexSpecs: Object[]): Promise; + createIndexes(indexSpecs: Object[], callback: MongoCallback): void; + //http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#deleteMany + deleteMany(filter: Object, callback: MongoCallback): void; + deleteMany(filter: Object, options?: CollectionOptions): Promise; + deleteMany(filter: Object, options: CollectionOptions, callback: MongoCallback): void; + //http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#deleteOne + deleteOne(filter: Object, callback: MongoCallback): void; + deleteOne(filter: Object, options?: { w?: number | string, wtimmeout?: number, j?: boolean, bypassDocumentValidation?: boolean }): Promise; + deleteOne(filter: Object, options: { w?: number | string, wtimmeout?: number, j?: boolean, bypassDocumentValidation?: boolean }, callback: MongoCallback): void; + //http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#distinct + distinct(key: string, query: Object, callback: MongoCallback): void; + distinct(key: string, query: Object, options?: { readPreference?: ReadPreference | string }): Promise; + distinct(key: string, query: Object, options: { readPreference?: ReadPreference | string }, callback: MongoCallback): void; + //http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#drop + drop(): Promise; + drop(callback: MongoCallback): void; + //http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#dropIndex + dropIndex(indexName: string, callback: MongoCallback): void; + dropIndex(indexName: string, options?: CollectionOptions): Promise; + dropIndex(indexName: string, options: CollectionOptions, callback: MongoCallback): void; + // http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#dropIndexes + dropIndexes(): Promise; + dropIndexes(callback?: MongoCallback): void; + //http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#find + find(query?: Object): Cursor; + /** @deprecated */ + find(query: Object, fields?: Object, skip?: number, limit?: number, timeout?: number): Cursor; + //http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#findOne + findOne(filter: Object, callback: MongoCallback): void; + findOne(filter: Object, options?: FindOneOptions): Promise; + findOne(filter: Object, options: FindOneOptions, callback: MongoCallback): void; + //http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#findOneAndDelete + findOneAndDelete(filter: Object, callback: MongoCallback>): void; + findOneAndDelete(filter: Object, options?: { projection?: Object, sort?: Object, maxTimeMS?: number }): Promise>; + findOneAndDelete(filter: Object, options: { projection?: Object, sort?: Object, maxTimeMS?: number }, callback: MongoCallback>): void; + //http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#findOneAndReplace + findOneAndReplace(filter: Object, replacement: Object, callback: MongoCallback>): void; + findOneAndReplace(filter: Object, replacement: Object, options?: FindOneAndReplaceOption): Promise>; + findOneAndReplace(filter: Object, replacement: Object, options: FindOneAndReplaceOption, callback: MongoCallback>): void; + //http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#findOneAndUpdate + findOneAndUpdate(filter: Object, update: Object, callback: MongoCallback>): void; + findOneAndUpdate(filter: Object, update: Object, options?: FindOneAndReplaceOption): Promise>; + findOneAndUpdate(filter: Object, update: Object, options: FindOneAndReplaceOption, callback: MongoCallback>): void; + //http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#geoHaystackSearch + geoHaystackSearch(x: number, y: number, callback: MongoCallback): void; + geoHaystackSearch(x: number, y: number, options?: GeoHaystackSearchOptions): Promise; + geoHaystackSearch(x: number, y: number, options: GeoHaystackSearchOptions, callback: MongoCallback): void; + //http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#geoNear + geoNear(x: number, y: number, callback: MongoCallback): void; + geoNear(x: number, y: number, options?: GeoNearOptions): Promise; + geoNear(x: number, y: number, options: GeoNearOptions, callback: MongoCallback): void; + //http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#group + group(keys: Object | Array | Function | Code, condition: Object, initial: Object, reduce: Function | Code, finalize: Function | Code, command: boolean, callback: MongoCallback): void; + group(keys: Object | Array | Function | Code, condition: Object, initial: Object, reduce: Function | Code, finalize: Function | Code, command: boolean, options?: { readPreference?: ReadPreference | string }): Promise; + group(keys: Object | Array | Function | Code, condition: Object, initial: Object, reduce: Function | Code, finalize: Function | Code, command: boolean, options: { readPreference?: ReadPreference | string }, callback: MongoCallback): void; + //http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#indexes + indexes(): Promise; + indexes(callback: MongoCallback): void; + //http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#indexExists + indexExists(indexes: string | string[]): Promise; + indexExists(indexes: string | string[], callback: MongoCallback): void; + //http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#indexInformation + indexInformation(callback: MongoCallback): void; + indexInformation(options?: { full: boolean }): Promise; + indexInformation(options: { full: boolean }, callback: MongoCallback): void; + //http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#initializeOrderedBulkOp + initializeOrderedBulkOp(options?: CollectionOptions): OrderedBulkOperation; + //http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#initializeUnorderedBulkOp + initializeUnorderedBulkOp(options?: CollectionOptions): UnorderedBulkOperation; + //http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#insertOne + /** @deprecated Use insertOne, insertMany or bulkWrite */ + insert(docs: Object, callback: MongoCallback): void; + /** @deprecated Use insertOne, insertMany or bulkWrite */ + insert(docs: Object, options?: CollectionInsertOneOptions): Promise; + /** @deprecated Use insertOne, insertMany or bulkWrite */ + insert(docs: Object, options: CollectionInsertOneOptions, callback: MongoCallback): void; + //http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#insertMany + insertMany(docs: Object[], callback: MongoCallback): void; + insertMany(docs: Object[], options?: CollectionInsertManyOptions): Promise; + insertMany(docs: Object[], options: CollectionInsertManyOptions, callback: MongoCallback): void; + //http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#insertOne + insertOne(docs: Object, callback: MongoCallback): void; + insertOne(docs: Object, options?: CollectionInsertOneOptions): Promise; + insertOne(docs: Object, options: CollectionInsertOneOptions, callback: MongoCallback): void; + //http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#isCapped + isCapped(): Promise; + isCapped(callback: MongoCallback): void; + //http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#listIndexes + listIndexes(options?: { batchSize?: number, readPreference?: ReadPreference | string }): CommandCursor; + //http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#mapReduce + mapReduce(map: Function | string, reduce: Function | string, callback: MongoCallback): void; + mapReduce(map: Function | string, reduce: Function | string, options?: MapReduceOptions): Promise; + mapReduce(map: Function | string, reduce: Function | string, options: MapReduceOptions, callback: MongoCallback): void; + //http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#options + options(): Promise; + options(callback: MongoCallback): void; + //http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#parallelCollectionScan + parallelCollectionScan(callback: MongoCallback[]>): void; + parallelCollectionScan(options?: ParallelCollectionScanOptions): Promise[]>; + parallelCollectionScan(options: ParallelCollectionScanOptions, callback: MongoCallback[]>): void; + //http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#reIndex + reIndex(): Promise; + reIndex(callback: MongoCallback): void; + //http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#remove + /** @deprecated Use use deleteOne, deleteMany or bulkWrite */ + remove(selector: Object, callback: MongoCallback): void; + /** @deprecated Use use deleteOne, deleteMany or bulkWrite */ + remove(selector: Object, options?: CollectionOptions & { single?: boolean }): Promise; + /** @deprecated Use use deleteOne, deleteMany or bulkWrite */ + remove(selector: Object, options?: CollectionOptions & { single?: boolean }, callback?: MongoCallback): void; + //http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#rename + rename(newName: string, callback: MongoCallback>): void; + rename(newName: string, options?: { dropTarget?: boolean }): Promise>; + rename(newName: string, options: { dropTarget?: boolean }, callback: MongoCallback>): void; + //http://mongodb.github.io/node-mongodb-native/2.2/api/Collection.html#replaceOne + replaceOne(filter: Object, doc: Object, callback: MongoCallback }>): void; + replaceOne(filter: Object, doc: Object, options?: ReplaceOneOptions): Promise }>; + replaceOne(filter: Object, doc: Object, options: ReplaceOneOptions, callback: MongoCallback }>): void; + //http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#save + /** @deprecated Use insertOne, insertMany, updateOne or updateMany */ + save(doc: Object, callback: MongoCallback): void; + /** @deprecated Use insertOne, insertMany, updateOne or updateMany */ + save(doc: Object, options?: CollectionOptions): Promise; + /** @deprecated Use insertOne, insertMany, updateOne or updateMany */ + save(doc: Object, options: CollectionOptions, callback: MongoCallback): void; + //http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#stats + stats(callback: MongoCallback): void; + stats(options?: { scale: number }): Promise; + stats(options: { scale: number }, callback: MongoCallback): void; + // http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#update + /** @deprecated use updateOne, updateMany or bulkWrite */ + update(filter: Object, update: Object, callback: MongoCallback): void; + /** @deprecated use updateOne, updateMany or bulkWrite */ + update(filter: Object, update: Object, options?: ReplaceOneOptions & { multi?: boolean }): Promise; + /** @deprecated use updateOne, updateMany or bulkWrite */ + update(filter: Object, update: Object, options: ReplaceOneOptions & { multi?: boolean }, callback: MongoCallback): void; + //http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#updateMany + updateMany(filter: Object, update: Object, callback: MongoCallback): void; + updateMany(filter: Object, update: Object, options?: { upsert?: boolean; w?: any; wtimeout?: number; j?: boolean; }): Promise; + updateMany(filter: Object, update: Object, options: { upsert?: boolean; w?: any; wtimeout?: number; j?: boolean; }, callback: MongoCallback): void; + //http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#updateOne + updateOne(filter: Object, update: Object, callback: MongoCallback): void; + updateOne(filter: Object, update: Object, options?: ReplaceOneOptions): Promise; + updateOne(filter: Object, update: Object, options: ReplaceOneOptions, callback: MongoCallback): void; +} + +// Documentation: http://docs.mongodb.org/manual/reference/command/collStats/ +//TODO complete this +export interface CollStats { + // Namespace. + ns: string; + // Number of documents. + count: number; + // Collection size in bytes. + size: number; + // Average object size in bytes. + avgObjSize: number; + // (Pre)allocated space for the collection in bytes. + storageSize: number; + // Number of extents (contiguously allocated chunks of datafile space). + numExtents: number; + // Number of indexes. + nindexes: number; + // Size of the most recently created extent in bytes. + lastExtentSize: number; + // Padding can speed up updates if documents grow. + paddingFactor: number; + userFlags: number; + // Total index size in bytes. + totalIndexSize: number; + // Size of specific indexes in bytes. + indexSizes: { + _id_: number; + username: number; + }; + capped: boolean; + maxSize: boolean; + wiredTiger: any; + indexDetails: any; + ok: number; +} + +//http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#aggregate +export interface CollectionAggregationOptions { + readPreference?: ReadPreference | string; + // Return the query as cursor, on 2.6 > it returns as a real cursor + // on pre 2.6 it returns as an emulated cursor. + cursor?: { batchSize: number }; + // Explain returns the aggregation execution plan (requires mongodb 2.6 >). + explain?: boolean; + // lets the server know if it can use disk to store + // temporary results for the aggregation (requires mongodb 2.6 >). + allowDiskUse?: boolean; + // specifies a cumulative time limit in milliseconds for processing operations + // on the cursor. MongoDB interrupts the operation at the earliest following interrupt point. + maxTimeMS?: number; + // Allow driver to bypass schema validation in MongoDB 3.2 or higher. + bypassDocumentValidation?: boolean; +} + +//http://mongodb.github.io/node-mongodb-native/2.2/api/Collection.html#insertMany +export interface CollectionInsertManyOptions { + // The write concern. + w?: number | string; + // The write concern timeout. + wtimeout?: number; + // Specify a journal write concern. + j?: boolean; + // Serialize functions on any object. + serializeFunctions?: boolean; + //Force server to assign _id values instead of driver. + forceServerObjectId?: boolean; + // Allow driver to bypass schema validation in MongoDB 3.2 or higher. + bypassDocumentValidation?: boolean; + // If true, when an insert fails, don't execute the remaining writes. If false, continue with remaining inserts when one fails. + ordered?: boolean; +} + +//http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#bulkWrite +export interface CollectionBluckWriteOptions { + // The write concern. + w?: number | string; + // The write concern timeout. + wtimeout?: number; + // Specify a journal write concern. + j?: boolean; + // Serialize functions on any object. + serializeFunctions?: boolean; + // Execute write operation in ordered or unordered fashion. + ordered?: boolean; + // Allow driver to bypass schema validation in MongoDB 3.2 or higher. + bypassDocumentValidation?: boolean; +} + +//http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#~BulkWriteOpResult +export interface BulkWriteOpResultObject { + insertedCount?: number; + matchedCount?: number; + modifiedCount?: number; + deletedCount?: number; + upsertedCount?: number; + insertedIds?: any; + upsertedIds?: any; + result?: any; +} + +//http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#count +export interface MongoCountPreferences { + // The limit of documents to count. + limit?: number; + // The number of documents to skip for the count. + skip?: boolean; + // An index name hint for the query. + hint?: string; + // The preferred read preference + readPreference?: ReadPreference | string; +} + +//http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#~deleteWriteOpResult +export interface DeleteWriteOpResultObject { + //The raw result returned from MongoDB, field will vary depending on server version. + result: { + //Is 1 if the command executed correctly. + ok?: number; + //The total count of documents deleted. + n?: number; + } + //The connection object used for the operation. + connection?: any; + //The number of documents deleted. + deletedCount?: number; +} + +//http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#~findAndModifyWriteOpResult +export interface FindAndModifyWriteOpResultObject { + //Document returned from findAndModify command. + value?: TSchema; + //The raw lastErrorObject returned from the command. + lastErrorObject?: any; + //Is 1 if the command executed correctly. + ok?: number; +} + +//http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#findOneAndReplace +export interface FindOneAndReplaceOption { + projection?: Object; + sort?: Object; + maxTimeMS?: number; + upsert?: boolean; + returnOriginal?: boolean; +} + +//http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#geoHaystackSearch +export interface GeoHaystackSearchOptions { + readPreference?: ReadPreference | string; + maxDistance?: number; + search?: Object; + limit?: number; +} + +//http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#geoNear +export interface GeoNearOptions { + readPreference?: ReadPreference | string; + num?: number; + minDistance?: number; + maxDistance?: number; + distanceMultiplier?: number; + query?: Object; + spherical?: boolean; + uniqueDocs?: boolean; + includeLocs?: boolean; +} + +//http://mongodb.github.io/node-mongodb-native/2.1/api/Code.html +export class Code { + constructor(code: string | Function, scope?: Object) + code: string | Function; + scope: any; +} + +//http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#deleteMany +export interface CollectionOptions { + //The write concern. + w?: number | string; + //The write concern timeout. + wtimeout?: number; + //Specify a journal write concern. + j?: boolean; +} + +//http://mongodb.github.io/node-mongodb-native/2.1/api/OrderedBulkOperation.html +export interface OrderedBulkOperation { + length: number; + //http://mongodb.github.io/node-mongodb-native/2.1/api/OrderedBulkOperation.html#execute + execute(callback: MongoCallback): void; + execute(options?: FSyncOptions): Promise; + execute(options: FSyncOptions, callback: MongoCallback): void; + //http://mongodb.github.io/node-mongodb-native/2.1/api/OrderedBulkOperation.html#find + find(selector: Object): FindOperatorsOrdered; + //http://mongodb.github.io/node-mongodb-native/2.1/api/OrderedBulkOperation.html#insert + insert(doc: Object): OrderedBulkOperation; +} + +//http://mongodb.github.io/node-mongodb-native/2.1/api/BulkWriteResult.html +export interface BulkWriteResult { + ok: number; + nInserted: number; + nUpdated: number; + nUpserted: number; + nModified: number; + nRemoved: number; + + getInsertedIds(): Array; + getLastOp(): Object; + getRawResponse(): Object; + getUpsertedIdAt(index: number): Object; + getUpsertedIds(): Array; + getWriteConcernError(): WriteConcernError; + getWriteErrorAt(index: number): WriteError; + getWriteErrorCount(): number; + getWriteErrors(): Array; + hasWriteErrors(): boolean; +} + +//http://mongodb.github.io/node-mongodb-native/2.1/api/WriteError.html +export interface WriteError { + //Write concern error code. + code: number; + //Write concern error original bulk operation index. + index: number; + //Write concern error message. + errmsg: string; +} + +//http://mongodb.github.io/node-mongodb-native/2.1/api/WriteConcernError.html +export interface WriteConcernError { + //Write concern error code. + code: number; + //Write concern error message. + errmsg: string; +} + +//http://mongodb.github.io/node-mongodb-native/2.1/api/FindOperatorsOrdered.html +export interface FindOperatorsOrdered { + delete(): OrderedBulkOperation; + deleteOne(): OrderedBulkOperation; + replaceOne(doc: Object): OrderedBulkOperation; + update(doc: Object): OrderedBulkOperation; + updateOne(doc: Object): OrderedBulkOperation; + upsert(): FindOperatorsOrdered; +} + +//http://mongodb.github.io/node-mongodb-native/2.1/api/UnorderedBulkOperation.html +export interface UnorderedBulkOperation { + //http://mongodb.github.io/node-mongodb-native/2.1/api/lib_bulk_unordered.js.html line 339 + length: number; + //http://mongodb.github.io/node-mongodb-native/2.1/api/UnorderedBulkOperation.html#execute + execute(callback: MongoCallback): void; + execute(options?: FSyncOptions): Promise; + execute(options: FSyncOptions, callback: MongoCallback): void; + //http://mongodb.github.io/node-mongodb-native/2.1/api/UnorderedBulkOperation.html#find + find(selector: Object): FindOperatorsUnordered; + //http://mongodb.github.io/node-mongodb-native/2.1/api/UnorderedBulkOperation.html#insert + insert(doc: Object): UnorderedBulkOperation; +} + +//http://mongodb.github.io/node-mongodb-native/2.1/api/FindOperatorsUnordered.html +export interface FindOperatorsUnordered { + length: number; + remove(): UnorderedBulkOperation; + removeOne(): UnorderedBulkOperation; + replaceOne(doc: Object): UnorderedBulkOperation; + update(doc: Object): UnorderedBulkOperation; + updateOne(doc: Object): UnorderedBulkOperation; + upsert(): FindOperatorsUnordered; +} + +//http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#findOne +export interface FindOneOptions { + limit?: number, + sort?: Array | Object, + fields?: Object, + skip?: number, + hint?: Object, + explain?: boolean, + snapshot?: boolean, + timeout?: boolean, + tailable?: boolean, + batchSize?: number, + returnKey?: boolean, + maxScan?: number, + min?: number, + max?: number, + showDiskLoc?: boolean, + comment?: string, + raw?: boolean, + readPreference?: ReadPreference | string, + partial?: boolean, + maxTimeMs?: number +} + +//http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#~insertWriteOpResult +export interface InsertWriteOpResult { + insertedCount: number; + ops: Array; + insertedIds: Array; + connection: any; + result: { ok: number, n: number } +} + +//http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#insertOne +export interface CollectionInsertOneOptions { + // The write concern. + w?: number | string; + // The write concern timeout. + wtimeout?: number; + // Specify a journal write concern. + j?: boolean; + // Serialize functions on any object. + serializeFunctions?: boolean; + //Force server to assign _id values instead of driver. + forceServerObjectId?: boolean; + //Allow driver to bypass schema validation in MongoDB 3.2 or higher. + bypassDocumentValidation?: boolean +} + +//http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#~insertOneWriteOpResult +export interface InsertOneWriteOpResult { + insertedCount: number; + ops: Array; + insertedId: ObjectID; + connection: any; + result: { ok: number, n: number } +} + +//http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#parallelCollectionScan +export interface ParallelCollectionScanOptions { + readPreference?: ReadPreference | string; + batchSize?: number; + numCursors?: number; + raw?: boolean; +} + +//http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#replaceOne +export interface ReplaceOneOptions { + upsert?: boolean; + w?: number | string; + wtimeout?: number; + j?: boolean; + bypassDocumentValidation?: boolean; +} + +//http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#~updateWriteOpResult +export interface UpdateWriteOpResult { + result: { ok: number, n: number, nModified: number }; + connection: any; + matchedCount: number; + modifiedCount: number; + upsertedCount: number; + upsertedId: { _id: ObjectID }; +} + +//http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#mapReduce +export interface MapReduceOptions { + readPreference?: ReadPreference | string; + out?: Object; + query?: Object; + sort?: Object; + limit?: number; + keeptemp?: boolean; + finalize?: Function | string; + scope?: Object; + jsMode?: boolean; + verbose?: boolean; + bypassDocumentValidation?: boolean +} + +//http://mongodb.github.io/node-mongodb-native/2.1/api/Collection.html#~WriteOpResult +export interface WriteOpResult { + ops: Array; + connection: any; + result: any; +} + +//http://mongodb.github.io/node-mongodb-native/2.1/api/Cursor.html#~resultCallback +export type CursorResult = any | void | boolean; + +type Default = any; + +//http://mongodb.github.io/node-mongodb-native/2.1/api/Cursor.html +export class Cursor extends Readable { + + sortValue: string; + timeout: boolean; + readPreference: ReadPreference; + //http://mongodb.github.io/node-mongodb-native/2.1/api/Cursor.html#addCursorFlag + addCursorFlag(flag: string, value: boolean): Cursor; + // http://mongodb.github.io/node-mongodb-native/2.1/api/Cursor.html#addQueryModifier + addQueryModifier(name: string, value: boolean): Cursor; + // http://mongodb.github.io/node-mongodb-native/2.1/api/Cursor.html#batchSize + batchSize(value: number): Cursor; + // http://mongodb.github.io/node-mongodb-native/2.1/api/Cursor.html#clone + clone(): Cursor; // still returns the same type + // http://mongodb.github.io/node-mongodb-native/2.1/api/Cursor.html#close + close(): Promise; + close(callback: MongoCallback): void; + // http://mongodb.github.io/node-mongodb-native/2.1/api/Cursor.html#comment + comment(value: string): Cursor; + // http://mongodb.github.io/node-mongodb-native/2.2/api/Cursor.html#count + count(callback: MongoCallback): void; + count(applySkipLimit: boolean, callback: MongoCallback): void; + count(options: CursorCommentOptions, callback: MongoCallback): void; + count(applySkipLimit: boolean, options: CursorCommentOptions, callback: MongoCallback): void; + count(applySkipLimit?: boolean, options?: CursorCommentOptions): Promise; + // http://mongodb.github.io/node-mongodb-native/2.1/api/Cursor.html#explain + explain(): Promise; + explain(callback: MongoCallback): void; + //http://mongodb.github.io/node-mongodb-native/2.1/api/Cursor.html#filter + filter(filter: Object): Cursor; + // http://mongodb.github.io/node-mongodb-native/2.1/api/Cursor.html#forEach + forEach(iterator: IteratorCallback, callback: EndCallback): void; + // http://mongodb.github.io/node-mongodb-native/2.1/api/Cursor.html#hasNext + hasNext(): Promise; + hasNext(callback: MongoCallback): void; + // http://mongodb.github.io/node-mongodb-native/2.1/api/Cursor.html#hint + hint(hint: Object): Cursor; + // http://mongodb.github.io/node-mongodb-native/2.1/api/Cursor.html#isClosed + isClosed(): boolean; + // http://mongodb.github.io/node-mongodb-native/2.1/api/Cursor.html#limit + limit(value: number): Cursor; + // http://mongodb.github.io/node-mongodb-native/2.1/api/Cursor.html#map + map(transform: Function): Cursor; + // http://mongodb.github.io/node-mongodb-native/2.1/api/Cursor.html#max + max(max: number): Cursor; + //http://mongodb.github.io/node-mongodb-native/2.1/api/Cursor.html#maxAwaitTimeMS + maxAwaitTimeMS(value: number): Cursor; + // http://mongodb.github.io/node-mongodb-native/2.1/api/Cursor.html#maxScan + maxScan(maxScan: Object): Cursor; + // http://mongodb.github.io/node-mongodb-native/2.1/api/Cursor.html#maxTimeMS + maxTimeMS(value: number): Cursor; + // http://mongodb.github.io/node-mongodb-native/2.1/api/Cursor.html#min + min(min: number): Cursor; + // http://mongodb.github.io/node-mongodb-native/2.1/api/Cursor.html#next + next(): Promise; + next(callback: MongoCallback): void; + //http://mongodb.github.io/node-mongodb-native/2.1/api/Cursor.html#project + project(value: Object): Cursor; + //http://mongodb.github.io/node-mongodb-native/2.1/api/Cursor.html#read + read(size: number): string | Buffer | void; + // http://mongodb.github.io/node-mongodb-native/2.1/api/Cursor.html#next + returnKey(returnKey: Object): Cursor; + //http://mongodb.github.io/node-mongodb-native/2.1/api/Cursor.html#rewind + rewind(): void; + // http://mongodb.github.io/node-mongodb-native/2.1/api/Cursor.html#setCursorOption + setCursorOption(field: string, value: Object): Cursor; + // http://mongodb.github.io/node-mongodb-native/2.1/api/Cursor.html#setReadPreference + setReadPreference(readPreference: string | ReadPreference): Cursor; + // http://mongodb.github.io/node-mongodb-native/2.1/api/Cursor.html#showRecordId + showRecordId(showRecordId: Object): Cursor; + // http://mongodb.github.io/node-mongodb-native/2.1/api/Cursor.html#skip + skip(value: number): Cursor; + // http://mongodb.github.io/node-mongodb-native/2.1/api/Cursor.html#snapshot + snapshot(snapshot: Object): Cursor; + // http://mongodb.github.io/node-mongodb-native/2.1/api/Cursor.html#sort + sort(keyOrList: string | Object[] | Object, direction?: number): Cursor; + // http://mongodb.github.io/node-mongodb-native/2.1/api/Cursor.html#stream + stream(options?: { transform?: Function }): Cursor; + // http://mongodb.github.io/node-mongodb-native/2.1/api/Cursor.html#toArray + toArray(): Promise; + toArray(callback: MongoCallback): void; + //http://mongodb.github.io/node-mongodb-native/2.1/api/Cursor.html#unshift + unshift(stream: Buffer | string): void; +} + +//http://mongodb.github.io/node-mongodb-native/2.1/api/Cursor.html#count +export interface CursorCommentOptions { + skip?: number; + limit?: number; + maxTimeMS?: number; + hint?: string; + readPreference?: ReadPreference | string; +} + +//http://mongodb.github.io/node-mongodb-native/2.1/api/Cursor.html#~iteratorCallback +export interface IteratorCallback { + (doc: T): void; +} + +//http://mongodb.github.io/node-mongodb-native/2.1/api/Cursor.html#~endCallback +export interface EndCallback { + (error: MongoError): void; +} + +//http://mongodb.github.io/node-mongodb-native/2.1/api/AggregationCursor.html#~resultCallback +export type AggregationCursorResult = any | void; +//http://mongodb.github.io/node-mongodb-native/2.1/api/AggregationCursor.html +export class AggregationCursor extends Readable { + // http://mongodb.github.io/node-mongodb-native/2.1/api/AggregationCursor.html#batchSize + batchSize(value: number): AggregationCursor; + // http://mongodb.github.io/node-mongodb-native/2.1/api/AggregationCursor.html#clone + clone(): AggregationCursor; + // http://mongodb.github.io/node-mongodb-native/2.1/api/AggregationCursor.html#close + close(): Promise; + close(callback: MongoCallback): void; + //http://mongodb.github.io/node-mongodb-native/2.1/api/AggregationCursor.html#each + each(callback: MongoCallback): void; + // http://mongodb.github.io/node-mongodb-native/2.1/api/AggregationCursor.html#explain + explain(): Promise; + explain(callback: MongoCallback): void; + //http://mongodb.github.io/node-mongodb-native/2.1/api/AggregationCursor.html#geoNear + geoNear(document: Object): AggregationCursor; + //http://mongodb.github.io/node-mongodb-native/2.1/api/AggregationCursor.html#group + group(document: Object): AggregationCursor; + // http://mongodb.github.io/node-mongodb-native/2.1/api/AggregationCursor.html#isClosed + isClosed(): boolean; + // http://mongodb.github.io/node-mongodb-native/2.1/api/AggregationCursor.html#limit + limit(value: number): AggregationCursor; + //http://mongodb.github.io/node-mongodb-native/2.1/api/AggregationCursor.html#match + match(document: Object): AggregationCursor; + // http://mongodb.github.io/node-mongodb-native/2.1/api/AggregationCursor.html#maxTimeMS + maxTimeMS(value: number): AggregationCursor; + // http://mongodb.github.io/node-mongodb-native/2.1/api/AggregationCursor.html#next + next(): Promise; + next(callback: MongoCallback): void; + // http://mongodb.github.io/node-mongodb-native/2.1/api/AggregationCursor.html#out + out(destination: string): AggregationCursor; + //http://mongodb.github.io/node-mongodb-native/2.1/api/AggregationCursor.html#project + project(document: Object): AggregationCursor; + //http://mongodb.github.io/node-mongodb-native/2.1/api/AggregationCursor.html#read + read(size: number): string | Buffer | void; + //http://mongodb.github.io/node-mongodb-native/2.1/api/AggregationCursor.html#redact + redact(document: Object): AggregationCursor; + //http://mongodb.github.io/node-mongodb-native/2.1/api/AggregationCursor.html#rewind + rewind(): AggregationCursor; + //http://mongodb.github.io/node-mongodb-native/2.1/api/AggregationCursor.html#setEncoding + skip(value: number): AggregationCursor; + // http://mongodb.github.io/node-mongodb-native/2.1/api/AggregationCursor.html#sort + sort(document: Object): AggregationCursor; + // http://mongodb.github.io/node-mongodb-native/2.1/api/AggregationCursor.html#toArray + toArray(): Promise; + toArray(callback: MongoCallback): void; + //http://mongodb.github.io/node-mongodb-native/2.1/api/AggregationCursor.html#unshift + unshift(stream: Buffer | string): void; + //http://mongodb.github.io/node-mongodb-native/2.1/api/AggregationCursor.html#unwind + unwind(field: string): AggregationCursor; +} + +//http://mongodb.github.io/node-mongodb-native/2.1/api/CommandCursor.html +export class CommandCursor extends Readable { + // http://mongodb.github.io/node-mongodb-native/2.1/api/CommandCursor.html#batchSize + batchSize(value: number): CommandCursor; + // http://mongodb.github.io/node-mongodb-native/2.1/api/CommandCursor.html#clone + clone(): CommandCursor; + // http://mongodb.github.io/node-mongodb-native/2.1/api/CommandCursor.html#close + close(): Promise; + close(callback: MongoCallback): void; + //http://mongodb.github.io/node-mongodb-native/2.1/api/CommandCursor.html#each + each(callback: MongoCallback): void; + // http://mongodb.github.io/node-mongodb-native/2.1/api/CommandCursor.html#isClosed + isClosed(): boolean; + // http://mongodb.github.io/node-mongodb-native/2.1/api/CommandCursor.html#maxTimeMS + maxTimeMS(value: number): CommandCursor; + // http://mongodb.github.io/node-mongodb-native/2.1/api/CommandCursor.html#next + next(): Promise; + next(callback: MongoCallback): void; + //http://mongodb.github.io/node-mongodb-native/2.1/api/CommandCursor.html#read + read(size: number): string | Buffer | void; + //http://mongodb.github.io/node-mongodb-native/2.1/api/CommandCursor.html#rewind + rewind(): CommandCursor; + // http://mongodb.github.io/node-mongodb-native/2.1/api/CommandCursor.html#setReadPreference + setReadPreference(readPreference: string | ReadPreference): CommandCursor; + // http://mongodb.github.io/node-mongodb-native/2.1/api/CommandCursor.html#toArray + toArray(): Promise; + toArray(callback: MongoCallback): void; + //http://mongodb.github.io/node-mongodb-native/2.1/api/CommandCursor.html#unshift + unshift(stream: Buffer | string): void; +} + +// http://mongodb.github.io/node-mongodb-native/2.1/api/GridFSBucket.html +export class GridFSBucket { + constructor(db: Db, options?: GridFSBucketOptions); + // http://mongodb.github.io/node-mongodb-native/2.1/api/GridFSBucket.html#delete + delete(id: ObjectID, callback?: GridFSBucketErrorCallback): void; + // http://mongodb.github.io/node-mongodb-native/2.1/api/GridFSBucket.html#drop + drop(callback?: GridFSBucketErrorCallback): void; + // http://mongodb.github.io/node-mongodb-native/2.1/api/GridFSBucket.html#find + find(filter?: Object, options?: GridFSBucketFindOptions): Cursor; + // http://mongodb.github.io/node-mongodb-native/2.1/api/GridFSBucket.html#openDownloadStream + openDownloadStream(id: ObjectID, options?: { start: number, end: number }): GridFSBucketReadStream; + // http://mongodb.github.io/node-mongodb-native/2.1/api/GridFSBucket.html#openDownloadStreamByName + openDownloadStreamByName(filename: string, options?: { revision: number, start: number, end: number }): GridFSBucketReadStream; + // http://mongodb.github.io/node-mongodb-native/2.1/api/GridFSBucket.html#openUploadStream + openUploadStream(filename: string, options?: GridFSBucketOpenUploadStreamOptions): GridFSBucketWriteStream; + // http://mongodb.github.io/node-mongodb-native/2.1/api/GridFSBucket.html#openUploadStreamWithId + openUploadStreamWithId(id: string | number | Object, filename: string, options?: GridFSBucketOpenUploadStreamOptions): GridFSBucketWriteStream; + // http://mongodb.github.io/node-mongodb-native/2.1/api/GridFSBucket.html#rename + rename(id: ObjectID, filename: string, callback?: GridFSBucketErrorCallback): void; +} + +// http://mongodb.github.io/node-mongodb-native/2.1/api/GridFSBucket.html +export interface GridFSBucketOptions { + bucketName?: string; + chunkSizeBytes?: number; + writeConcern?: Object; + ReadPreference?: Object; +} + +// http://mongodb.github.io/node-mongodb-native/2.1/api/GridFSBucket.html#~errorCallback +export interface GridFSBucketErrorCallback { + (err?: MongoError): void; +} + +// http://mongodb.github.io/node-mongodb-native/2.1/api/GridFSBucket.html#find +export interface GridFSBucketFindOptions { + batchSize?: number; + limit?: number; + maxTimeMS?: number; + noCursorTimeout?: boolean; + skip?: number; + sort?: Object; +} + +// https://mongodb.github.io/node-mongodb-native/2.1/api/GridFSBucket.html#openUploadStream +export interface GridFSBucketOpenUploadStreamOptions { + chunkSizeBytes?: number, + metadata?: Object, + contentType?: string, + aliases?: Array +} + +// https://mongodb.github.io/node-mongodb-native/2.1/api/GridFSBucketReadStream.html +export class GridFSBucketReadStream extends Readable { + constructor(chunks: Collection, files: Collection, readPreference: Object, filter: Object, options?: GridFSBucketReadStreamOptions); +} + +// https://mongodb.github.io/node-mongodb-native/2.1/api/GridFSBucketReadStream.html +export interface GridFSBucketReadStreamOptions { + sort?: number, + skip?: number, + start?: number, + end?: number +} + +// https://mongodb.github.io/node-mongodb-native/2.1/api/GridFSBucketWriteStream.html +export class GridFSBucketWriteStream extends Writable { + constructor(bucket: GridFSBucket, filename: string, options?: GridFSBucketWriteStreamOptions); +} + +// https://mongodb.github.io/node-mongodb-native/2.1/api/GridFSBucketWriteStream.html +export interface GridFSBucketWriteStreamOptions { + id?: string | number | Object, + chunkSizeBytes?: number, + w?: number, + wtimeout?: number, + j?: number +} From a18173b40c26f85ed6b146039f8982c85fe57105 Mon Sep 17 00:00:00 2001 From: Dimitri Benin Date: Thu, 17 Aug 2017 11:32:00 +0200 Subject: [PATCH 075/103] [content-type] rename interfaces --- types/content-type/index.d.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/types/content-type/index.d.ts b/types/content-type/index.d.ts index 3842dd3a47..5ff4ae7ff1 100644 --- a/types/content-type/index.d.ts +++ b/types/content-type/index.d.ts @@ -4,7 +4,7 @@ // BendingBender // Definitions: https://github.com/borisyankov/DefinitelyTyped -export function parse(input: ReqLike | ResLike | string): ParsedMediaType; +export function parse(input: RequestLike | ResponseLike | string): ParsedMediaType; export function format(obj: MediaType): string; export interface ParsedMediaType { @@ -17,10 +17,10 @@ export interface MediaType { parameters?: {[key: string]: string}; } -export interface ReqLike { +export interface RequestLike { headers: {[header: string]: string | string[]}; } -export interface ResLike { +export interface ResponseLike { getHeader(name: string): number | string | string[] | undefined; } From 026c2aba52530bad6422cb68bb10bbbe3318cdcb Mon Sep 17 00:00:00 2001 From: Malte Modrow Date: Thu, 17 Aug 2017 12:49:49 +0200 Subject: [PATCH 076/103] refactor(googlemaps): update drivingOptions and transitOptions --- types/googlemaps/index.d.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/types/googlemaps/index.d.ts b/types/googlemaps/index.d.ts index fc39130ed1..b86057d5b6 100644 --- a/types/googlemaps/index.d.ts +++ b/types/googlemaps/index.d.ts @@ -1317,8 +1317,8 @@ declare namespace google.maps { export interface TransitOptions { arrivalTime?: Date; departureTime?: Date; - modes: TransitMode[]; - routingPreference: TransitRoutePreference; + modes?: TransitMode[]; + routingPreference?: TransitRoutePreference; } export enum TransitMode { @@ -1339,7 +1339,7 @@ declare namespace google.maps { export interface DrivingOptions { departureTime: Date; - trafficModel: TrafficModel + trafficModel?: TrafficModel } export enum TrafficModel From b7a2c9431326f0d4eea10dc801279a7852889696 Mon Sep 17 00:00:00 2001 From: Dimitri Benin Date: Thu, 17 Aug 2017 14:22:50 +0200 Subject: [PATCH 077/103] [minipass] add typings --- types/minipass/index.d.ts | 68 ++++++++++++++++++++++++++++++++ types/minipass/minipass-tests.ts | 52 ++++++++++++++++++++++++ types/minipass/tsconfig.json | 22 +++++++++++ types/minipass/tslint.json | 1 + 4 files changed, 143 insertions(+) create mode 100644 types/minipass/index.d.ts create mode 100644 types/minipass/minipass-tests.ts create mode 100644 types/minipass/tsconfig.json create mode 100644 types/minipass/tslint.json diff --git a/types/minipass/index.d.ts b/types/minipass/index.d.ts new file mode 100644 index 0000000000..33077b4df6 --- /dev/null +++ b/types/minipass/index.d.ts @@ -0,0 +1,68 @@ +// Type definitions for minipass 2.2 +// Project: https://github.com/isaacs/minipass#readme +// Definitions by: BendingBender +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +/// +import { EventEmitter } from 'events'; + +export = MiniPass; + +declare class MiniPass extends EventEmitter implements NodeJS.WritableStream { + readonly bufferLength: number; + readonly flowing: boolean; + readonly emittedEnd: boolean; + encoding: string | null; + readable: boolean; + writable: boolean; + pipes: any; + buffer: any; + + constructor(options?: MiniPass.Options); + + setEncoding(encoding: string | null): void; + read(size?: number): any; + write(chunk: any, cb?: () => void): boolean; + write(chunk: any, encoding?: string | null, cb?: () => void): boolean; + end(cb?: () => void): void; + end(chunk: any, cb?: () => void): void; + end(chunk: any, encoding?: string | null, cb?: () => void): void; + resume(): void; + pause(): void; + pipe(destination: T, options?: { end?: boolean; }): T; + + addEventHandler(event: string, listener: (...args: any[]) => void): this; + addEventHandler(event: 'data', listener: (chunk: any) => void): this; + addEventHandler(event: 'readable' | 'drain' | 'resume' | 'end' | 'prefinish' | 'finish' | 'close', listener: () => void): this; + + on(event: string, listener: (...args: any[]) => void): this; + on(event: 'data', listener: (chunk: any) => void): this; + on(event: 'readable' | 'drain' | 'resume' | 'end' | 'prefinish' | 'finish' | 'close', listener: () => void): this; + + once(event: string, listener: (...args: any[]) => void): this; + once(event: 'data', listener: (chunk: any) => void): this; + once(event: 'readable' | 'drain' | 'resume' | 'end' | 'prefinish' | 'finish' | 'close', listener: () => void): this; + + prependListener(event: string, listener: (...args: any[]) => void): this; + prependListener(event: 'data', listener: (chunk: any) => void): this; + prependListener(event: 'readable' | 'drain' | 'resume' | 'end' | 'prefinish' | 'finish' | 'close', listener: () => void): this; + + prependOnceListener(event: string, listener: (...args: any[]) => void): this; + prependOnceListener(event: 'data', listener: (chunk: any) => void): this; + prependOnceListener(event: 'readable' | 'drain' | 'resume' | 'end' | 'prefinish' | 'finish' | 'close', listener: () => void): this; + + removeListener(event: string, listener: (...args: any[]) => void): this; + removeListener(event: 'data', listener: (chunk: any) => void): this; + removeListener(event: 'readable' | 'drain' | 'resume' | 'end' | 'prefinish' | 'finish' | 'close', listener: () => void): this; + + emit(event: string, ...args: any[]): boolean; + emit(event: 'data', chunk: any): boolean; + emit(event: 'readable' | 'drain' | 'resume' | 'end' | 'prefinish' | 'finish' | 'close'): boolean; +} + +declare namespace MiniPass { + interface Options { + objectMode?: boolean; + encoding?: string | null; + } +} diff --git a/types/minipass/minipass-tests.ts b/types/minipass/minipass-tests.ts new file mode 100644 index 0000000000..9839087540 --- /dev/null +++ b/types/minipass/minipass-tests.ts @@ -0,0 +1,52 @@ +import MiniPass = require('minipass'); + +let encoding: string | null = null; + +new MiniPass(); +new MiniPass({objectMode: true}); +const mp = new MiniPass({encoding: 'utf8'}); + +mp.flowing; // $ExpectType boolean +mp.flowing = true; // $ExpectError +mp.bufferLength; // $ExpectType number +mp.bufferLength = 1; // $ExpectError +mp.emittedEnd; // $ExpectType boolean +mp.emittedEnd = true; // $ExpectError +mp.encoding = encoding; +mp.readable; // $ExpectType boolean +mp.writable; // $ExpectType boolean +mp.buffer; // $ExpectType any +mp.pipes; // $ExpectType any + +mp.setEncoding(encoding); +mp.read(); // $ExpectType any +mp.read(1); +mp.write('foo'); // $ExpectType boolean +mp.write('foo', () => {}); +mp.write('foo', encoding); +mp.write('foo', encoding, () => {}); +mp.end(); +mp.end(() => {}); +mp.end('bar'); +mp.end(new Buffer('bar')); +mp.end('bar', () => {}); +mp.end(new Buffer('bar'), () => {}); +mp.end('bar', encoding); +mp.end('bar', encoding, () => {}); +mp.resume(); +mp.pause(); +mp.pipe(process.stdout); // $ExpectType WriteStream + +mp.on('data', chunk => { + chunk; // $ExpectType any +}); +mp.on('readable', () => {}); +mp.on('drain', () => {}); +mp.on('resume', () => {}); +mp.on('end', () => {}); +mp.on('prefinish', () => {}); +mp.on('finish', () => {}); +mp.on('close', () => {}); +mp.on('foo', (a, b, c) => {}); + +process.stdin.pipe(mp).pipe(process.stdout); diff --git a/types/minipass/tsconfig.json b/types/minipass/tsconfig.json new file mode 100644 index 0000000000..0bf9d66580 --- /dev/null +++ b/types/minipass/tsconfig.json @@ -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", + "minipass-tests.ts" + ] +} diff --git a/types/minipass/tslint.json b/types/minipass/tslint.json new file mode 100644 index 0000000000..3db14f85ea --- /dev/null +++ b/types/minipass/tslint.json @@ -0,0 +1 @@ +{ "extends": "dtslint/dt.json" } From aae738d68c512883a1a06535966a94aeda495a4c Mon Sep 17 00:00:00 2001 From: Dimitri Benin Date: Thu, 17 Aug 2017 14:46:06 +0200 Subject: [PATCH 078/103] [stream-to-array] update typings to v2.3, enable strict null checks and linting --- types/stream-to-array/index.d.ts | 9 ++++--- .../stream-to-array/stream-to-array-tests.ts | 26 ++++++++++++++++--- types/stream-to-array/tsconfig.json | 4 +-- types/stream-to-array/tslint.json | 1 + types/stream-to-array/v0/index.d.ts | 9 +++++++ .../v0/stream-to-array-tests.ts | 5 ++++ types/stream-to-array/v0/tsconfig.json | 25 ++++++++++++++++++ types/stream-to-array/v0/tslint.json | 1 + 8 files changed, 70 insertions(+), 10 deletions(-) create mode 100644 types/stream-to-array/tslint.json create mode 100644 types/stream-to-array/v0/index.d.ts create mode 100644 types/stream-to-array/v0/stream-to-array-tests.ts create mode 100644 types/stream-to-array/v0/tsconfig.json create mode 100644 types/stream-to-array/v0/tslint.json diff --git a/types/stream-to-array/index.d.ts b/types/stream-to-array/index.d.ts index c61e61ea4e..ec7ca8db9a 100644 --- a/types/stream-to-array/index.d.ts +++ b/types/stream-to-array/index.d.ts @@ -1,11 +1,12 @@ -// Type definitions for stream-to-array +// Type definitions for stream-to-array 2.3 // Project: https://github.com/stream-utils/stream-to-array // Definitions by: Bart van der Schoor +// BendingBender // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - /// - -declare function toArray(stream: NodeJS.ReadableStream, callback: (err: any, arr: any[]) => void): NodeJS.ReadWriteStream; export = toArray; + +declare function toArray(this: NodeJS.ReadableStream, callback?: (err: any, arr: any[]) => void): Promise; +declare function toArray(stream: NodeJS.ReadableStream, callback?: (err: any, arr: any[]) => void): Promise; diff --git a/types/stream-to-array/stream-to-array-tests.ts b/types/stream-to-array/stream-to-array-tests.ts index 6b3ccc84fb..d6315d7eba 100644 --- a/types/stream-to-array/stream-to-array-tests.ts +++ b/types/stream-to-array/stream-to-array-tests.ts @@ -1,7 +1,25 @@ import toArray = require('stream-to-array'); +import * as stream from 'stream'; +import * as util from 'util'; -var rs: NodeJS.ReadableStream; - -toArray(rs, (err, arr) => { - +const stream1 = new stream.Readable(); +toArray(stream1); // $ExpectType Promise +toArray(stream1, (err, arr) => { + err; // $ExpectType any + arr; // $ExpectType any[] }); + +const stream2: stream.Readable & { toArray?: typeof toArray } = new stream.Readable(); +stream2.toArray = toArray; +stream2.toArray(); // $ExpectType Promise +stream2.toArray((err, arr) => { + err; // $ExpectType any + arr; // $ExpectType any[] +}); + +toArray(stream1) + .then(parts => { + const buffers = parts + .map(part => util.isBuffer(part) ? part : Buffer.from(part)); + return Buffer.concat(buffers); + }); diff --git a/types/stream-to-array/tsconfig.json b/types/stream-to-array/tsconfig.json index 0d517fe75f..e15304e25e 100644 --- a/types/stream-to-array/tsconfig.json +++ b/types/stream-to-array/tsconfig.json @@ -6,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -19,4 +19,4 @@ "index.d.ts", "stream-to-array-tests.ts" ] -} \ No newline at end of file +} diff --git a/types/stream-to-array/tslint.json b/types/stream-to-array/tslint.json new file mode 100644 index 0000000000..3db14f85ea --- /dev/null +++ b/types/stream-to-array/tslint.json @@ -0,0 +1 @@ +{ "extends": "dtslint/dt.json" } diff --git a/types/stream-to-array/v0/index.d.ts b/types/stream-to-array/v0/index.d.ts new file mode 100644 index 0000000000..f6ca8d2a72 --- /dev/null +++ b/types/stream-to-array/v0/index.d.ts @@ -0,0 +1,9 @@ +// Type definitions for stream-to-array 0.x +// Project: https://github.com/stream-utils/stream-to-array +// Definitions by: Bart van der Schoor +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +/// + +declare function toArray(stream: NodeJS.ReadableStream, callback: (err: any, arr: any[]) => void): NodeJS.ReadWriteStream; +export = toArray; diff --git a/types/stream-to-array/v0/stream-to-array-tests.ts b/types/stream-to-array/v0/stream-to-array-tests.ts new file mode 100644 index 0000000000..6d3cd527ac --- /dev/null +++ b/types/stream-to-array/v0/stream-to-array-tests.ts @@ -0,0 +1,5 @@ +import toArray = require('stream-to-array'); + +const rs: NodeJS.ReadableStream = process.stdin; + +toArray(rs, (err, arr) => {}); diff --git a/types/stream-to-array/v0/tsconfig.json b/types/stream-to-array/v0/tsconfig.json new file mode 100644 index 0000000000..66a88dbd4b --- /dev/null +++ b/types/stream-to-array/v0/tsconfig.json @@ -0,0 +1,25 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es6" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "baseUrl": "../../", + "typeRoots": [ + "../../" + ], + "paths": { + "stream-to-array": ["stream-to-array/v0"] + }, + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "stream-to-array-tests.ts" + ] +} diff --git a/types/stream-to-array/v0/tslint.json b/types/stream-to-array/v0/tslint.json new file mode 100644 index 0000000000..3db14f85ea --- /dev/null +++ b/types/stream-to-array/v0/tslint.json @@ -0,0 +1 @@ +{ "extends": "dtslint/dt.json" } From cc8d975e43b06f5432acb49eb8d54c1bd5d8f237 Mon Sep 17 00:00:00 2001 From: Kyle Roach Date: Thu, 17 Aug 2017 10:03:37 -0400 Subject: [PATCH 079/103] [react-native-modalbox] Correct author url --- types/react-native-modalbox/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/react-native-modalbox/index.d.ts b/types/react-native-modalbox/index.d.ts index 57b8ddeff1..33f3c84e1b 100644 --- a/types/react-native-modalbox/index.d.ts +++ b/types/react-native-modalbox/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for react-native-modalbox 1.4 // Project: https://github.com/maxs15/react-native-modalbox#readme -// Definitions by: Kyle Roach +// Definitions by: Kyle Roach // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 From 193d9dc3bf35df5e54e8ce865a06ceb82e68a996 Mon Sep 17 00:00:00 2001 From: Daisuke Mino Date: Thu, 17 Aug 2017 23:58:09 +0900 Subject: [PATCH 080/103] [material-ui] Update svg-icons (#18931) * [material-ui] Update svg-icons * Update mark for code generation * Add a code generation script for material-ui * Remove .js in ./scripts --- scripts/material-ui/README.md | 15 + scripts/material-ui/generate.js | 147 + types/material-ui/index.d.ts | 7686 ++++++++++++----------- types/material-ui/material-ui-tests.tsx | 2036 +++++- 4 files changed, 6091 insertions(+), 3793 deletions(-) create mode 100644 scripts/material-ui/README.md create mode 100644 scripts/material-ui/generate.js diff --git a/scripts/material-ui/README.md b/scripts/material-ui/README.md new file mode 100644 index 0000000000..8fe5206a81 --- /dev/null +++ b/scripts/material-ui/README.md @@ -0,0 +1,15 @@ +# Generator for material-ui + +## Usage + +```sh +node scripts/material-ui/generate.js +``` + +### GitHub API Limitation + +The error `GitHub response: 401 Unauthorized` is due to [Rate Limiting | GitHub API v3 \| GitHub Developer Guide](https://developer.github.com/v3/#rate-limiting). In order to avoid this, it is necessary to publish [Personal access token](https://github.com/settings/tokens) and specify it as an environment variable. + +```sh +GITHUB_ACCESS_TOKEN=XXXXX node scripts/material-ui/generate.js +``` diff --git a/scripts/material-ui/generate.js b/scripts/material-ui/generate.js new file mode 100644 index 0000000000..06e6983a44 --- /dev/null +++ b/scripts/material-ui/generate.js @@ -0,0 +1,147 @@ +const {get} = require('https') +const {readdir, readFile, writeFile} = require('fs') +const {join, extname, basename, dirname, relative} = require('path') + +const token = process.env.GITHUB_ACCESS_TOKEN || '' + +const toMixedCase = (name) => { + let dist = name[0].toUpperCase() + for (let i = 1; i < name.length; i++) { + const c = name[i] + if (c !== '-') { + dist += c + continue + } + i++ + dist += name[i].toUpperCase() + } + return dist +} + +const github = (path) => new Promise((resolve, reject) => { + get({ + headers: {'user-agent': 'DefinitelyTyped/material-ui/generate'}, + host: 'api.github.com', + path, + }, (res) => { + if ((res.statusCode / 100 >> 0) != 2) { + reject(`GitHub response: ${res.statusCode} ${res.statusMessage}`) + return + } + let data = ''; + res + .on('data', (chunk) => data += chunk) + .on('end', () => resolve(JSON.parse(data))) + }).on('error', reject) +}) + +const categories = () => github(`/repos/callemall/material-ui/contents/src/svg-icons?ref=master&access_token=${token}`) + +const contents = (path) => github(`/repos/callemall/material-ui/contents/${path}?ref=master&access_token=${token}`) + +const collator = new Intl.Collator() + +const resolvePath = (filename) => join(__dirname, '../../types/material-ui', filename) + +const readText = (filename) => new Promise((resolve, reject) => { + readFile(resolvePath(filename), 'utf8', (err, data) => { + if (err != null) { + reject(err) + return + } + resolve(data) + }) +}) + +const writeText = (filename, text) => new Promise((resolve, reject) => { + writeFile(resolvePath(filename), text, 'utf8', (err) => { + if (err != null) { + reject(err) + return + } + resolve() + }) +}) + +const inject = (content) => { + content.category = this.name + return content +} + +const rMark = /(\/{2} \{{3})[\s\S]*?(\/{2} \}{3})/g + +categories() + .then((cats) => Promise.all(Array.prototype.map.call(cats, (cat) => contents(cat.path) + .then((cons) => Array.prototype.map.call(cons, (con) => { + con.category = cat.name + return con + })) + ))) + .then((contentsList) => Array.prototype.concat.apply([], contentsList) + .map((content) => { + const {path} = content + const name = basename(path, extname(path)) + content.id = join(relative('src', dirname(path)), name) + content.className = toMixedCase(content.category) + toMixedCase(name) + return content + }) + .sort((a, b) => collator.compare(a.id, b.id)) + .reduce((prev, content) => { + const {dts, test} = prev + dts.individuals.push(`declare module 'material-ui/${content.id}' { + export import ${content.className} = __MaterialUI.SvgIcon; + export default ${content.className}; +}`) + dts.summarizeds.push(` export import ${content.className} = __MaterialUI.SvgIcon; // require('material-ui/${content.id}');`) + + test.individuals.push(`import _${content.className} from 'material-ui/${content.id}';`) + test.summarizeds.push(` ${content.className},`) + return prev + }, { + dts: {individuals: [], summarizeds: []}, + test: {individuals: [], summarizeds: []}, + }) +) + .then(({dts, test}) => { + return Promise.all([ + (() => { + const {individuals, summarizeds} = dts + const file = 'index.d.ts' + let index = 0 + return readText(file) + .then((script) => writeText(file, script.replace(rMark, (_, p1, p2) => { + let text = '' + switch (index) { + case 0: + text = individuals.join('\n\n') + break + case 1: + text = summarizeds.join('\n') + break + } + index++ + return p1 + '\n' + text + '\n' + p2 + }))) + })(), + (() => { + const {individuals, summarizeds} = test + const file = join('material-ui-tests.tsx') + let index = 0 + return readText(file) + .then((script) => writeText(file, script.replace(rMark, (_, p1, p2) => { + let text = '' + switch (index) { + case 0: + text = individuals.join('\n') + break + case 1: + text = summarizeds.join('\n') + break + } + index++ + return p1 + '\n' + text + '\n' + p2 + }))) + })(), + ]) + }) + .catch((err) => console.error(err)) diff --git a/types/material-ui/index.d.ts b/types/material-ui/index.d.ts index 6d417a8dd8..4fa9df7ea7 100644 --- a/types/material-ui/index.d.ts +++ b/types/material-ui/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for material-ui v0.17.51 +// Type definitions for material-ui v0.18.17 // Project: https://github.com/callemall/material-ui // Definitions by: Nathan Brown // Igor Beagorudsky @@ -2356,204 +2356,12 @@ declare module 'material-ui/SvgIcon' { export default SvgIcon; } -declare module 'material-ui/svg-icons/action/work' { - export import ActionWork = __MaterialUI.SvgIcon; - export default ActionWork; -} - -declare module 'material-ui/svg-icons/action/camera-enhance' { - export import ActionCameraEnhance = __MaterialUI.SvgIcon; - export default ActionCameraEnhance; -} - -declare module 'material-ui/svg-icons/action/flip-to-back' { - export import ActionFlipToBack = __MaterialUI.SvgIcon; - export default ActionFlipToBack; -} - -declare module 'material-ui/svg-icons/action/feedback' { - export import ActionFeedback = __MaterialUI.SvgIcon; - export default ActionFeedback; -} - -declare module 'material-ui/svg-icons/action/assignment-turned-in' { - export import ActionAssignmentTurnedIn = __MaterialUI.SvgIcon; - export default ActionAssignmentTurnedIn; -} - -declare module 'material-ui/svg-icons/action/track-changes' { - export import ActionTrackChanges = __MaterialUI.SvgIcon; - export default ActionTrackChanges; -} - -declare module 'material-ui/svg-icons/action/view-stream' { - export import ActionViewStream = __MaterialUI.SvgIcon; - export default ActionViewStream; -} - -declare module 'material-ui/svg-icons/action/open-in-browser' { - export import ActionOpenInBrowser = __MaterialUI.SvgIcon; - export default ActionOpenInBrowser; -} - -declare module 'material-ui/svg-icons/action/view-headline' { - export import ActionViewHeadline = __MaterialUI.SvgIcon; - export default ActionViewHeadline; -} - -declare module 'material-ui/svg-icons/action/alarm-add' { - export import ActionAlarmAdd = __MaterialUI.SvgIcon; - export default ActionAlarmAdd; -} - -declare module 'material-ui/svg-icons/action/history' { - export import ActionHistory = __MaterialUI.SvgIcon; - export default ActionHistory; -} - -declare module 'material-ui/svg-icons/action/perm-device-information' { - export import ActionPermDeviceInformation = __MaterialUI.SvgIcon; - export default ActionPermDeviceInformation; -} - -declare module 'material-ui/svg-icons/action/reorder' { - export import ActionReorder = __MaterialUI.SvgIcon; - export default ActionReorder; -} - -declare module 'material-ui/svg-icons/action/assignment' { - export import ActionAssignment = __MaterialUI.SvgIcon; - export default ActionAssignment; -} - -declare module 'material-ui/svg-icons/action/shopping-cart' { - export import ActionShoppingCart = __MaterialUI.SvgIcon; - export default ActionShoppingCart; -} - -declare module 'material-ui/svg-icons/action/face' { - export import ActionFace = __MaterialUI.SvgIcon; - export default ActionFace; -} - -declare module 'material-ui/svg-icons/action/event' { - export import ActionEvent = __MaterialUI.SvgIcon; - export default ActionEvent; -} - -declare module 'material-ui/svg-icons/action/view-week' { - export import ActionViewWeek = __MaterialUI.SvgIcon; - export default ActionViewWeek; -} - -declare module 'material-ui/svg-icons/action/rounded-corner' { - export import ActionRoundedCorner = __MaterialUI.SvgIcon; - export default ActionRoundedCorner; -} - -declare module 'material-ui/svg-icons/action/view-carousel' { - export import ActionViewCarousel = __MaterialUI.SvgIcon; - export default ActionViewCarousel; -} - -declare module 'material-ui/svg-icons/action/toll' { - export import ActionToll = __MaterialUI.SvgIcon; - export default ActionToll; -} - -declare module 'material-ui/svg-icons/action/home' { - export import ActionHome = __MaterialUI.SvgIcon; - export default ActionHome; -} - -declare module 'material-ui/svg-icons/action/subject' { - export import ActionSubject = __MaterialUI.SvgIcon; - export default ActionSubject; -} - -declare module 'material-ui/svg-icons/action/lock' { - export import ActionLock = __MaterialUI.SvgIcon; - export default ActionLock; -} - -declare module 'material-ui/svg-icons/action/visibility-off' { - export import ActionVisibilityOff = __MaterialUI.SvgIcon; - export default ActionVisibilityOff; -} - -declare module 'material-ui/svg-icons/action/opacity' { - export import ActionOpacity = __MaterialUI.SvgIcon; - export default ActionOpacity; -} - -declare module 'material-ui/svg-icons/action/dns' { - export import ActionDns = __MaterialUI.SvgIcon; - export default ActionDns; -} - -declare module 'material-ui/svg-icons/action/open-with' { - export import ActionOpenWith = __MaterialUI.SvgIcon; - export default ActionOpenWith; -} - -declare module 'material-ui/svg-icons/action/system-update-alt' { - export import ActionSystemUpdateAlt = __MaterialUI.SvgIcon; - export default ActionSystemUpdateAlt; -} - -declare module 'material-ui/svg-icons/action/picture-in-picture-alt' { - export import ActionPictureInPictureAlt = __MaterialUI.SvgIcon; - export default ActionPictureInPictureAlt; -} - -declare module 'material-ui/svg-icons/action/bookmark-border' { - export import ActionBookmarkBorder = __MaterialUI.SvgIcon; - export default ActionBookmarkBorder; -} - -declare module 'material-ui/svg-icons/action/settings' { - export import ActionSettings = __MaterialUI.SvgIcon; - export default ActionSettings; -} - -declare module 'material-ui/svg-icons/action/dashboard' { - export import ActionDashboard = __MaterialUI.SvgIcon; - export default ActionDashboard; -} - -declare module 'material-ui/svg-icons/action/done-all' { - export import ActionDoneAll = __MaterialUI.SvgIcon; - export default ActionDoneAll; -} - -declare module 'material-ui/svg-icons/action/aspect-ratio' { - export import ActionAspectRatio = __MaterialUI.SvgIcon; - export default ActionAspectRatio; -} - -declare module 'material-ui/svg-icons/action/verified-user' { - export import ActionVerifiedUser = __MaterialUI.SvgIcon; - export default ActionVerifiedUser; -} - -declare module 'material-ui/svg-icons/action/update' { - export import ActionUpdate = __MaterialUI.SvgIcon; - export default ActionUpdate; -} - -declare module 'material-ui/svg-icons/action/query-builder' { - export import ActionQueryBuilder = __MaterialUI.SvgIcon; - export default ActionQueryBuilder; -} - -declare module 'material-ui/svg-icons/action/supervisor-account' { - export import ActionSupervisorAccount = __MaterialUI.SvgIcon; - export default ActionSupervisorAccount; -} - -declare module 'material-ui/svg-icons/action/polymer' { - export import ActionPolymer = __MaterialUI.SvgIcon; - export default ActionPolymer; +// DO NOT EDIT +// This code is generated by scripts/material-ui/generate.js +// {{{ +declare module 'material-ui/svg-icons/action/accessibility' { + export import ActionAccessibility = __MaterialUI.SvgIcon; + export default ActionAccessibility; } declare module 'material-ui/svg-icons/action/accessible' { @@ -2561,79 +2369,9 @@ declare module 'material-ui/svg-icons/action/accessible' { export default ActionAccessible; } -declare module 'material-ui/svg-icons/action/highlight-off' { - export import ActionHighlightOff = __MaterialUI.SvgIcon; - export default ActionHighlightOff; -} - -declare module 'material-ui/svg-icons/action/power-settings-new' { - export import ActionPowerSettingsNew = __MaterialUI.SvgIcon; - export default ActionPowerSettingsNew; -} - -declare module 'material-ui/svg-icons/action/chrome-reader-mode' { - export import ActionChromeReaderMode = __MaterialUI.SvgIcon; - export default ActionChromeReaderMode; -} - -declare module 'material-ui/svg-icons/action/perm-camera-mic' { - export import ActionPermCameraMic = __MaterialUI.SvgIcon; - export default ActionPermCameraMic; -} - -declare module 'material-ui/svg-icons/action/touch-app' { - export import ActionTouchApp = __MaterialUI.SvgIcon; - export default ActionTouchApp; -} - -declare module 'material-ui/svg-icons/action/receipt' { - export import ActionReceipt = __MaterialUI.SvgIcon; - export default ActionReceipt; -} - -declare module 'material-ui/svg-icons/action/assignment-late' { - export import ActionAssignmentLate = __MaterialUI.SvgIcon; - export default ActionAssignmentLate; -} - -declare module 'material-ui/svg-icons/action/alarm-off' { - export import ActionAlarmOff = __MaterialUI.SvgIcon; - export default ActionAlarmOff; -} - -declare module 'material-ui/svg-icons/action/toc' { - export import ActionToc = __MaterialUI.SvgIcon; - export default ActionToc; -} - -declare module 'material-ui/svg-icons/action/settings-bluetooth' { - export import ActionSettingsBluetooth = __MaterialUI.SvgIcon; - export default ActionSettingsBluetooth; -} - -declare module 'material-ui/svg-icons/action/settings-brightness' { - export import ActionSettingsBrightness = __MaterialUI.SvgIcon; - export default ActionSettingsBrightness; -} - -declare module 'material-ui/svg-icons/action/donut-small' { - export import ActionDonutSmall = __MaterialUI.SvgIcon; - export default ActionDonutSmall; -} - -declare module 'material-ui/svg-icons/action/zoom-out' { - export import ActionZoomOut = __MaterialUI.SvgIcon; - export default ActionZoomOut; -} - -declare module 'material-ui/svg-icons/action/loyalty' { - export import ActionLoyalty = __MaterialUI.SvgIcon; - export default ActionLoyalty; -} - -declare module 'material-ui/svg-icons/action/search' { - export import ActionSearch = __MaterialUI.SvgIcon; - export default ActionSearch; +declare module 'material-ui/svg-icons/action/account-balance' { + export import ActionAccountBalance = __MaterialUI.SvgIcon; + export default ActionAccountBalance; } declare module 'material-ui/svg-icons/action/account-balance-wallet' { @@ -2641,494 +2379,14 @@ declare module 'material-ui/svg-icons/action/account-balance-wallet' { export default ActionAccountBalanceWallet; } -declare module 'material-ui/svg-icons/action/date-range' { - export import ActionDateRange = __MaterialUI.SvgIcon; - export default ActionDateRange; +declare module 'material-ui/svg-icons/action/account-box' { + export import ActionAccountBox = __MaterialUI.SvgIcon; + export default ActionAccountBox; } -declare module 'material-ui/svg-icons/action/alarm-on' { - export import ActionAlarmOn = __MaterialUI.SvgIcon; - export default ActionAlarmOn; -} - -declare module 'material-ui/svg-icons/action/view-quilt' { - export import ActionViewQuilt = __MaterialUI.SvgIcon; - export default ActionViewQuilt; -} - -declare module 'material-ui/svg-icons/action/launch' { - export import ActionLaunch = __MaterialUI.SvgIcon; - export default ActionLaunch; -} - -declare module 'material-ui/svg-icons/action/visibility' { - export import ActionVisibility = __MaterialUI.SvgIcon; - export default ActionVisibility; -} - -declare module 'material-ui/svg-icons/action/flight-land' { - export import ActionFlightLand = __MaterialUI.SvgIcon; - export default ActionFlightLand; -} - -declare module 'material-ui/svg-icons/action/card-travel' { - export import ActionCardTravel = __MaterialUI.SvgIcon; - export default ActionCardTravel; -} - -declare module 'material-ui/svg-icons/action/get-app' { - export import ActionGetApp = __MaterialUI.SvgIcon; - export default ActionGetApp; -} - -declare module 'material-ui/svg-icons/action/markunread-mailbox' { - export import ActionMarkunreadMailbox = __MaterialUI.SvgIcon; - export default ActionMarkunreadMailbox; -} - -declare module 'material-ui/svg-icons/action/view-agenda' { - export import ActionViewAgenda = __MaterialUI.SvgIcon; - export default ActionViewAgenda; -} - -declare module 'material-ui/svg-icons/action/timeline' { - export import ActionTimeline = __MaterialUI.SvgIcon; - export default ActionTimeline; -} - -declare module 'material-ui/svg-icons/action/settings-remote' { - export import ActionSettingsRemote = __MaterialUI.SvgIcon; - export default ActionSettingsRemote; -} - -declare module 'material-ui/svg-icons/action/input' { - export import ActionInput = __MaterialUI.SvgIcon; - export default ActionInput; -} - -declare module 'material-ui/svg-icons/action/record-voice-over' { - export import ActionRecordVoiceOver = __MaterialUI.SvgIcon; - export default ActionRecordVoiceOver; -} - -declare module 'material-ui/svg-icons/action/backup' { - export import ActionBackup = __MaterialUI.SvgIcon; - export default ActionBackup; -} - -declare module 'material-ui/svg-icons/action/language' { - export import ActionLanguage = __MaterialUI.SvgIcon; - export default ActionLanguage; -} - -declare module 'material-ui/svg-icons/action/play-for-work' { - export import ActionPlayForWork = __MaterialUI.SvgIcon; - export default ActionPlayForWork; -} - -declare module 'material-ui/svg-icons/action/gif' { - export import ActionGif = __MaterialUI.SvgIcon; - export default ActionGif; -} - -declare module 'material-ui/svg-icons/action/theaters' { - export import ActionTheaters = __MaterialUI.SvgIcon; - export default ActionTheaters; -} - -declare module 'material-ui/svg-icons/action/offline-pin' { - export import ActionOfflinePin = __MaterialUI.SvgIcon; - export default ActionOfflinePin; -} - -declare module 'material-ui/svg-icons/action/assignment-return' { - export import ActionAssignmentReturn = __MaterialUI.SvgIcon; - export default ActionAssignmentReturn; -} - -declare module 'material-ui/svg-icons/action/print' { - export import ActionPrint = __MaterialUI.SvgIcon; - export default ActionPrint; -} - -declare module 'material-ui/svg-icons/action/settings-overscan' { - export import ActionSettingsOverscan = __MaterialUI.SvgIcon; - export default ActionSettingsOverscan; -} - -declare module 'material-ui/svg-icons/action/store' { - export import ActionStore = __MaterialUI.SvgIcon; - export default ActionStore; -} - -declare module 'material-ui/svg-icons/action/exit-to-app' { - export import ActionExitToApp = __MaterialUI.SvgIcon; - export default ActionExitToApp; -} - -declare module 'material-ui/svg-icons/action/account-balance' { - export import ActionAccountBalance = __MaterialUI.SvgIcon; - export default ActionAccountBalance; -} - -declare module 'material-ui/svg-icons/action/grade' { - export import ActionGrade = __MaterialUI.SvgIcon; - export default ActionGrade; -} - -declare module 'material-ui/svg-icons/action/picture-in-picture' { - export import ActionPictureInPicture = __MaterialUI.SvgIcon; - export default ActionPictureInPicture; -} - -declare module 'material-ui/svg-icons/action/copyright' { - export import ActionCopyright = __MaterialUI.SvgIcon; - export default ActionCopyright; -} - -declare module 'material-ui/svg-icons/action/donut-large' { - export import ActionDonutLarge = __MaterialUI.SvgIcon; - export default ActionDonutLarge; -} - -declare module 'material-ui/svg-icons/action/lock-open' { - export import ActionLockOpen = __MaterialUI.SvgIcon; - export default ActionLockOpen; -} - -declare module 'material-ui/svg-icons/action/perm-media' { - export import ActionPermMedia = __MaterialUI.SvgIcon; - export default ActionPermMedia; -} - -declare module 'material-ui/svg-icons/action/all-out' { - export import ActionAllOut = __MaterialUI.SvgIcon; - export default ActionAllOut; -} - -declare module 'material-ui/svg-icons/action/check-circle' { - export import ActionCheckCircle = __MaterialUI.SvgIcon; - export default ActionCheckCircle; -} - -declare module 'material-ui/svg-icons/action/swap-vertical-circle' { - export import ActionSwapVerticalCircle = __MaterialUI.SvgIcon; - export default ActionSwapVerticalCircle; -} - -declare module 'material-ui/svg-icons/action/settings-input-svideo' { - export import ActionSettingsInputSvideo = __MaterialUI.SvgIcon; - export default ActionSettingsInputSvideo; -} - -declare module 'material-ui/svg-icons/action/watch-later' { - export import ActionWatchLater = __MaterialUI.SvgIcon; - export default ActionWatchLater; -} - -declare module 'material-ui/svg-icons/action/question-answer' { - export import ActionQuestionAnswer = __MaterialUI.SvgIcon; - export default ActionQuestionAnswer; -} - -declare module 'material-ui/svg-icons/action/assignment-ind' { - export import ActionAssignmentInd = __MaterialUI.SvgIcon; - export default ActionAssignmentInd; -} - -declare module 'material-ui/svg-icons/action/code' { - export import ActionCode = __MaterialUI.SvgIcon; - export default ActionCode; -} - -declare module 'material-ui/svg-icons/action/turned-in-not' { - export import ActionTurnedInNot = __MaterialUI.SvgIcon; - export default ActionTurnedInNot; -} - -declare module 'material-ui/svg-icons/action/line-weight' { - export import ActionLineWeight = __MaterialUI.SvgIcon; - export default ActionLineWeight; -} - -declare module 'material-ui/svg-icons/action/restore' { - export import ActionRestore = __MaterialUI.SvgIcon; - export default ActionRestore; -} - -declare module 'material-ui/svg-icons/action/tab' { - export import ActionTab = __MaterialUI.SvgIcon; - export default ActionTab; -} - -declare module 'material-ui/svg-icons/action/open-in-new' { - export import ActionOpenInNew = __MaterialUI.SvgIcon; - export default ActionOpenInNew; -} - -declare module 'material-ui/svg-icons/action/turned-in' { - export import ActionTurnedIn = __MaterialUI.SvgIcon; - export default ActionTurnedIn; -} - -declare module 'material-ui/svg-icons/action/settings-input-hdmi' { - export import ActionSettingsInputHdmi = __MaterialUI.SvgIcon; - export default ActionSettingsInputHdmi; -} - -declare module 'material-ui/svg-icons/action/favorite-border' { - export import ActionFavoriteBorder = __MaterialUI.SvgIcon; - export default ActionFavoriteBorder; -} - -declare module 'material-ui/svg-icons/action/done' { - export import ActionDone = __MaterialUI.SvgIcon; - export default ActionDone; -} - -declare module 'material-ui/svg-icons/action/payment' { - export import ActionPayment = __MaterialUI.SvgIcon; - export default ActionPayment; -} - -declare module 'material-ui/svg-icons/action/announcement' { - export import ActionAnnouncement = __MaterialUI.SvgIcon; - export default ActionAnnouncement; -} - -declare module 'material-ui/svg-icons/action/find-in-page' { - export import ActionFindInPage = __MaterialUI.SvgIcon; - export default ActionFindInPage; -} - -declare module 'material-ui/svg-icons/action/thumbs-up-down' { - export import ActionThumbsUpDown = __MaterialUI.SvgIcon; - export default ActionThumbsUpDown; -} - -declare module 'material-ui/svg-icons/action/explore' { - export import ActionExplore = __MaterialUI.SvgIcon; - export default ActionExplore; -} - -declare module 'material-ui/svg-icons/action/today' { - export import ActionToday = __MaterialUI.SvgIcon; - export default ActionToday; -} - -declare module 'material-ui/svg-icons/action/settings-power' { - export import ActionSettingsPower = __MaterialUI.SvgIcon; - export default ActionSettingsPower; -} - -declare module 'material-ui/svg-icons/action/gavel' { - export import ActionGavel = __MaterialUI.SvgIcon; - export default ActionGavel; -} - -declare module 'material-ui/svg-icons/action/build' { - export import ActionBuild = __MaterialUI.SvgIcon; - export default ActionBuild; -} - -declare module 'material-ui/svg-icons/action/rowing' { - export import ActionRowing = __MaterialUI.SvgIcon; - export default ActionRowing; -} - -declare module 'material-ui/svg-icons/action/label' { - export import ActionLabel = __MaterialUI.SvgIcon; - export default ActionLabel; -} - -declare module 'material-ui/svg-icons/action/card-giftcard' { - export import ActionCardGiftcard = __MaterialUI.SvgIcon; - export default ActionCardGiftcard; -} - -declare module 'material-ui/svg-icons/action/thumb-up' { - export import ActionThumbUp = __MaterialUI.SvgIcon; - export default ActionThumbUp; -} - -declare module 'material-ui/svg-icons/action/shopping-basket' { - export import ActionShoppingBasket = __MaterialUI.SvgIcon; - export default ActionShoppingBasket; -} - -declare module 'material-ui/svg-icons/action/swap-horiz' { - export import ActionSwapHoriz = __MaterialUI.SvgIcon; - export default ActionSwapHoriz; -} - -declare module 'material-ui/svg-icons/action/help-outline' { - export import ActionHelpOutline = __MaterialUI.SvgIcon; - export default ActionHelpOutline; -} - -declare module 'material-ui/svg-icons/action/pregnant-woman' { - export import ActionPregnantWoman = __MaterialUI.SvgIcon; - export default ActionPregnantWoman; -} - -declare module 'material-ui/svg-icons/action/help' { - export import ActionHelp = __MaterialUI.SvgIcon; - export default ActionHelp; -} - -declare module 'material-ui/svg-icons/action/settings-input-antenna' { - export import ActionSettingsInputAntenna = __MaterialUI.SvgIcon; - export default ActionSettingsInputAntenna; -} - -declare module 'material-ui/svg-icons/action/find-replace' { - export import ActionFindReplace = __MaterialUI.SvgIcon; - export default ActionFindReplace; -} - -declare module 'material-ui/svg-icons/action/shop' { - export import ActionShop = __MaterialUI.SvgIcon; - export default ActionShop; -} - -declare module 'material-ui/svg-icons/action/change-history' { - export import ActionChangeHistory = __MaterialUI.SvgIcon; - export default ActionChangeHistory; -} - -declare module 'material-ui/svg-icons/action/info' { - export import ActionInfo = __MaterialUI.SvgIcon; - export default ActionInfo; -} - -declare module 'material-ui/svg-icons/action/trending-down' { - export import ActionTrendingDown = __MaterialUI.SvgIcon; - export default ActionTrendingDown; -} - -declare module 'material-ui/svg-icons/action/flight-takeoff' { - export import ActionFlightTakeoff = __MaterialUI.SvgIcon; - export default ActionFlightTakeoff; -} - -declare module 'material-ui/svg-icons/action/alarm' { - export import ActionAlarm = __MaterialUI.SvgIcon; - export default ActionAlarm; -} - -declare module 'material-ui/svg-icons/action/spellcheck' { - export import ActionSpellcheck = __MaterialUI.SvgIcon; - export default ActionSpellcheck; -} - -declare module 'material-ui/svg-icons/action/settings-input-component' { - export import ActionSettingsInputComponent = __MaterialUI.SvgIcon; - export default ActionSettingsInputComponent; -} - -declare module 'material-ui/svg-icons/action/settings-applications' { - export import ActionSettingsApplications = __MaterialUI.SvgIcon; - export default ActionSettingsApplications; -} - -declare module 'material-ui/svg-icons/action/room' { - export import ActionRoom = __MaterialUI.SvgIcon; - export default ActionRoom; -} - -declare module 'material-ui/svg-icons/action/book' { - export import ActionBook = __MaterialUI.SvgIcon; - export default ActionBook; -} - -declare module 'material-ui/svg-icons/action/class' { - export import ActionClass = __MaterialUI.SvgIcon; - export default ActionClass; -} - -declare module 'material-ui/svg-icons/action/group-work' { - export import ActionGroupWork = __MaterialUI.SvgIcon; - export default ActionGroupWork; -} - -declare module 'material-ui/svg-icons/action/hourglass-full' { - export import ActionHourglassFull = __MaterialUI.SvgIcon; - export default ActionHourglassFull; -} - -declare module 'material-ui/svg-icons/action/assessment' { - export import ActionAssessment = __MaterialUI.SvgIcon; - export default ActionAssessment; -} - -declare module 'material-ui/svg-icons/action/youtube-searched-for' { - export import ActionYoutubeSearchedFor = __MaterialUI.SvgIcon; - export default ActionYoutubeSearchedFor; -} - -declare module 'material-ui/svg-icons/action/eject' { - export import ActionEject = __MaterialUI.SvgIcon; - export default ActionEject; -} - -declare module 'material-ui/svg-icons/action/trending-up' { - export import ActionTrendingUp = __MaterialUI.SvgIcon; - export default ActionTrendingUp; -} - -declare module 'material-ui/svg-icons/action/http' { - export import ActionHttp = __MaterialUI.SvgIcon; - export default ActionHttp; -} - -declare module 'material-ui/svg-icons/action/stars' { - export import ActionStars = __MaterialUI.SvgIcon; - export default ActionStars; -} - -declare module 'material-ui/svg-icons/action/autorenew' { - export import ActionAutorenew = __MaterialUI.SvgIcon; - export default ActionAutorenew; -} - -declare module 'material-ui/svg-icons/action/settings-ethernet' { - export import ActionSettingsEthernet = __MaterialUI.SvgIcon; - export default ActionSettingsEthernet; -} - -declare module 'material-ui/svg-icons/action/label-outline' { - export import ActionLabelOutline = __MaterialUI.SvgIcon; - export default ActionLabelOutline; -} - -declare module 'material-ui/svg-icons/action/settings-phone' { - export import ActionSettingsPhone = __MaterialUI.SvgIcon; - export default ActionSettingsPhone; -} - -declare module 'material-ui/svg-icons/action/info-outline' { - export import ActionInfoOutline = __MaterialUI.SvgIcon; - export default ActionInfoOutline; -} - -declare module 'material-ui/svg-icons/action/lock-outline' { - export import ActionLockOutline = __MaterialUI.SvgIcon; - export default ActionLockOutline; -} - -declare module 'material-ui/svg-icons/action/settings-input-composite' { - export import ActionSettingsInputComposite = __MaterialUI.SvgIcon; - export default ActionSettingsInputComposite; -} - -declare module 'material-ui/svg-icons/action/invert-colors' { - export import ActionInvertColors = __MaterialUI.SvgIcon; - export default ActionInvertColors; -} - -declare module 'material-ui/svg-icons/action/bookmark' { - export import ActionBookmark = __MaterialUI.SvgIcon; - export default ActionBookmark; +declare module 'material-ui/svg-icons/action/account-circle' { + export import ActionAccountCircle = __MaterialUI.SvgIcon; + export default ActionAccountCircle; } declare module 'material-ui/svg-icons/action/add-shopping-cart' { @@ -3136,59 +2394,69 @@ declare module 'material-ui/svg-icons/action/add-shopping-cart' { export default ActionAddShoppingCart; } -declare module 'material-ui/svg-icons/action/bug-report' { - export import ActionBugReport = __MaterialUI.SvgIcon; - export default ActionBugReport; +declare module 'material-ui/svg-icons/action/alarm' { + export import ActionAlarm = __MaterialUI.SvgIcon; + export default ActionAlarm; } -declare module 'material-ui/svg-icons/action/cached' { - export import ActionCached = __MaterialUI.SvgIcon; - export default ActionCached; +declare module 'material-ui/svg-icons/action/alarm-add' { + export import ActionAlarmAdd = __MaterialUI.SvgIcon; + export default ActionAlarmAdd; } -declare module 'material-ui/svg-icons/action/view-day' { - export import ActionViewDay = __MaterialUI.SvgIcon; - export default ActionViewDay; +declare module 'material-ui/svg-icons/action/alarm-off' { + export import ActionAlarmOff = __MaterialUI.SvgIcon; + export default ActionAlarmOff; } -declare module 'material-ui/svg-icons/action/fingerprint' { - export import ActionFingerprint = __MaterialUI.SvgIcon; - export default ActionFingerprint; +declare module 'material-ui/svg-icons/action/alarm-on' { + export import ActionAlarmOn = __MaterialUI.SvgIcon; + export default ActionAlarmOn; } -declare module 'material-ui/svg-icons/action/accessibility' { - export import ActionAccessibility = __MaterialUI.SvgIcon; - export default ActionAccessibility; +declare module 'material-ui/svg-icons/action/all-out' { + export import ActionAllOut = __MaterialUI.SvgIcon; + export default ActionAllOut; } -declare module 'material-ui/svg-icons/action/perm-data-setting' { - export import ActionPermDataSetting = __MaterialUI.SvgIcon; - export default ActionPermDataSetting; +declare module 'material-ui/svg-icons/action/android' { + export import ActionAndroid = __MaterialUI.SvgIcon; + export default ActionAndroid; } -declare module 'material-ui/svg-icons/action/settings-backup-restore' { - export import ActionSettingsBackupRestore = __MaterialUI.SvgIcon; - export default ActionSettingsBackupRestore; +declare module 'material-ui/svg-icons/action/announcement' { + export import ActionAnnouncement = __MaterialUI.SvgIcon; + export default ActionAnnouncement; } -declare module 'material-ui/svg-icons/action/zoom-in' { - export import ActionZoomIn = __MaterialUI.SvgIcon; - export default ActionZoomIn; +declare module 'material-ui/svg-icons/action/aspect-ratio' { + export import ActionAspectRatio = __MaterialUI.SvgIcon; + export default ActionAspectRatio; } -declare module 'material-ui/svg-icons/action/perm-identity' { - export import ActionPermIdentity = __MaterialUI.SvgIcon; - export default ActionPermIdentity; +declare module 'material-ui/svg-icons/action/assessment' { + export import ActionAssessment = __MaterialUI.SvgIcon; + export default ActionAssessment; } -declare module 'material-ui/svg-icons/action/favorite' { - export import ActionFavorite = __MaterialUI.SvgIcon; - export default ActionFavorite; +declare module 'material-ui/svg-icons/action/assignment' { + export import ActionAssignment = __MaterialUI.SvgIcon; + export default ActionAssignment; } -declare module 'material-ui/svg-icons/action/thumb-down' { - export import ActionThumbDown = __MaterialUI.SvgIcon; - export default ActionThumbDown; +declare module 'material-ui/svg-icons/action/assignment-ind' { + export import ActionAssignmentInd = __MaterialUI.SvgIcon; + export default ActionAssignmentInd; +} + +declare module 'material-ui/svg-icons/action/assignment-late' { + export import ActionAssignmentLate = __MaterialUI.SvgIcon; + export default ActionAssignmentLate; +} + +declare module 'material-ui/svg-icons/action/assignment-return' { + export import ActionAssignmentReturn = __MaterialUI.SvgIcon; + export default ActionAssignmentReturn; } declare module 'material-ui/svg-icons/action/assignment-returned' { @@ -3196,39 +2464,129 @@ declare module 'material-ui/svg-icons/action/assignment-returned' { export default ActionAssignmentReturned; } -declare module 'material-ui/svg-icons/action/account-box' { - export import ActionAccountBox = __MaterialUI.SvgIcon; - export default ActionAccountBox; +declare module 'material-ui/svg-icons/action/assignment-turned-in' { + export import ActionAssignmentTurnedIn = __MaterialUI.SvgIcon; + export default ActionAssignmentTurnedIn; } -declare module 'material-ui/svg-icons/action/extension' { - export import ActionExtension = __MaterialUI.SvgIcon; - export default ActionExtension; +declare module 'material-ui/svg-icons/action/autorenew' { + export import ActionAutorenew = __MaterialUI.SvgIcon; + export default ActionAutorenew; } -declare module 'material-ui/svg-icons/action/pageview' { - export import ActionPageview = __MaterialUI.SvgIcon; - export default ActionPageview; +declare module 'material-ui/svg-icons/action/backup' { + export import ActionBackup = __MaterialUI.SvgIcon; + export default ActionBackup; } -declare module 'material-ui/svg-icons/action/https' { - export import ActionHttps = __MaterialUI.SvgIcon; - export default ActionHttps; +declare module 'material-ui/svg-icons/action/book' { + export import ActionBook = __MaterialUI.SvgIcon; + export default ActionBook; } -declare module 'material-ui/svg-icons/action/translate' { - export import ActionTranslate = __MaterialUI.SvgIcon; - export default ActionTranslate; +declare module 'material-ui/svg-icons/action/bookmark' { + export import ActionBookmark = __MaterialUI.SvgIcon; + export default ActionBookmark; } -declare module 'material-ui/svg-icons/action/three-d-rotation' { - export import ActionThreeDRotation = __MaterialUI.SvgIcon; - export default ActionThreeDRotation; +declare module 'material-ui/svg-icons/action/bookmark-border' { + export import ActionBookmarkBorder = __MaterialUI.SvgIcon; + export default ActionBookmarkBorder; } -declare module 'material-ui/svg-icons/action/tab-unselected' { - export import ActionTabUnselected = __MaterialUI.SvgIcon; - export default ActionTabUnselected; +declare module 'material-ui/svg-icons/action/bug-report' { + export import ActionBugReport = __MaterialUI.SvgIcon; + export default ActionBugReport; +} + +declare module 'material-ui/svg-icons/action/build' { + export import ActionBuild = __MaterialUI.SvgIcon; + export default ActionBuild; +} + +declare module 'material-ui/svg-icons/action/cached' { + export import ActionCached = __MaterialUI.SvgIcon; + export default ActionCached; +} + +declare module 'material-ui/svg-icons/action/camera-enhance' { + export import ActionCameraEnhance = __MaterialUI.SvgIcon; + export default ActionCameraEnhance; +} + +declare module 'material-ui/svg-icons/action/card-giftcard' { + export import ActionCardGiftcard = __MaterialUI.SvgIcon; + export default ActionCardGiftcard; +} + +declare module 'material-ui/svg-icons/action/card-membership' { + export import ActionCardMembership = __MaterialUI.SvgIcon; + export default ActionCardMembership; +} + +declare module 'material-ui/svg-icons/action/card-travel' { + export import ActionCardTravel = __MaterialUI.SvgIcon; + export default ActionCardTravel; +} + +declare module 'material-ui/svg-icons/action/change-history' { + export import ActionChangeHistory = __MaterialUI.SvgIcon; + export default ActionChangeHistory; +} + +declare module 'material-ui/svg-icons/action/check-circle' { + export import ActionCheckCircle = __MaterialUI.SvgIcon; + export default ActionCheckCircle; +} + +declare module 'material-ui/svg-icons/action/chrome-reader-mode' { + export import ActionChromeReaderMode = __MaterialUI.SvgIcon; + export default ActionChromeReaderMode; +} + +declare module 'material-ui/svg-icons/action/class' { + export import ActionClass = __MaterialUI.SvgIcon; + export default ActionClass; +} + +declare module 'material-ui/svg-icons/action/code' { + export import ActionCode = __MaterialUI.SvgIcon; + export default ActionCode; +} + +declare module 'material-ui/svg-icons/action/compare-arrows' { + export import ActionCompareArrows = __MaterialUI.SvgIcon; + export default ActionCompareArrows; +} + +declare module 'material-ui/svg-icons/action/copyright' { + export import ActionCopyright = __MaterialUI.SvgIcon; + export default ActionCopyright; +} + +declare module 'material-ui/svg-icons/action/credit-card' { + export import ActionCreditCard = __MaterialUI.SvgIcon; + export default ActionCreditCard; +} + +declare module 'material-ui/svg-icons/action/dashboard' { + export import ActionDashboard = __MaterialUI.SvgIcon; + export default ActionDashboard; +} + +declare module 'material-ui/svg-icons/action/date-range' { + export import ActionDateRange = __MaterialUI.SvgIcon; + export default ActionDateRange; +} + +declare module 'material-ui/svg-icons/action/delete' { + export import ActionDelete = __MaterialUI.SvgIcon; + export default ActionDelete; +} + +declare module 'material-ui/svg-icons/action/delete-forever' { + export import ActionDeleteForever = __MaterialUI.SvgIcon; + export default ActionDeleteForever; } declare module 'material-ui/svg-icons/action/description' { @@ -3236,11 +2594,371 @@ declare module 'material-ui/svg-icons/action/description' { export default ActionDescription; } +declare module 'material-ui/svg-icons/action/dns' { + export import ActionDns = __MaterialUI.SvgIcon; + export default ActionDns; +} + +declare module 'material-ui/svg-icons/action/done' { + export import ActionDone = __MaterialUI.SvgIcon; + export default ActionDone; +} + +declare module 'material-ui/svg-icons/action/done-all' { + export import ActionDoneAll = __MaterialUI.SvgIcon; + export default ActionDoneAll; +} + +declare module 'material-ui/svg-icons/action/donut-large' { + export import ActionDonutLarge = __MaterialUI.SvgIcon; + export default ActionDonutLarge; +} + +declare module 'material-ui/svg-icons/action/donut-small' { + export import ActionDonutSmall = __MaterialUI.SvgIcon; + export default ActionDonutSmall; +} + +declare module 'material-ui/svg-icons/action/eject' { + export import ActionEject = __MaterialUI.SvgIcon; + export default ActionEject; +} + +declare module 'material-ui/svg-icons/action/euro-symbol' { + export import ActionEuroSymbol = __MaterialUI.SvgIcon; + export default ActionEuroSymbol; +} + +declare module 'material-ui/svg-icons/action/event' { + export import ActionEvent = __MaterialUI.SvgIcon; + export default ActionEvent; +} + +declare module 'material-ui/svg-icons/action/event-seat' { + export import ActionEventSeat = __MaterialUI.SvgIcon; + export default ActionEventSeat; +} + +declare module 'material-ui/svg-icons/action/exit-to-app' { + export import ActionExitToApp = __MaterialUI.SvgIcon; + export default ActionExitToApp; +} + +declare module 'material-ui/svg-icons/action/explore' { + export import ActionExplore = __MaterialUI.SvgIcon; + export default ActionExplore; +} + +declare module 'material-ui/svg-icons/action/extension' { + export import ActionExtension = __MaterialUI.SvgIcon; + export default ActionExtension; +} + +declare module 'material-ui/svg-icons/action/face' { + export import ActionFace = __MaterialUI.SvgIcon; + export default ActionFace; +} + +declare module 'material-ui/svg-icons/action/favorite' { + export import ActionFavorite = __MaterialUI.SvgIcon; + export default ActionFavorite; +} + +declare module 'material-ui/svg-icons/action/favorite-border' { + export import ActionFavoriteBorder = __MaterialUI.SvgIcon; + export default ActionFavoriteBorder; +} + +declare module 'material-ui/svg-icons/action/feedback' { + export import ActionFeedback = __MaterialUI.SvgIcon; + export default ActionFeedback; +} + +declare module 'material-ui/svg-icons/action/find-in-page' { + export import ActionFindInPage = __MaterialUI.SvgIcon; + export default ActionFindInPage; +} + +declare module 'material-ui/svg-icons/action/find-replace' { + export import ActionFindReplace = __MaterialUI.SvgIcon; + export default ActionFindReplace; +} + +declare module 'material-ui/svg-icons/action/fingerprint' { + export import ActionFingerprint = __MaterialUI.SvgIcon; + export default ActionFingerprint; +} + +declare module 'material-ui/svg-icons/action/flight-land' { + export import ActionFlightLand = __MaterialUI.SvgIcon; + export default ActionFlightLand; +} + +declare module 'material-ui/svg-icons/action/flight-takeoff' { + export import ActionFlightTakeoff = __MaterialUI.SvgIcon; + export default ActionFlightTakeoff; +} + +declare module 'material-ui/svg-icons/action/flip-to-back' { + export import ActionFlipToBack = __MaterialUI.SvgIcon; + export default ActionFlipToBack; +} + +declare module 'material-ui/svg-icons/action/flip-to-front' { + export import ActionFlipToFront = __MaterialUI.SvgIcon; + export default ActionFlipToFront; +} + +declare module 'material-ui/svg-icons/action/g-translate' { + export import ActionGTranslate = __MaterialUI.SvgIcon; + export default ActionGTranslate; +} + +declare module 'material-ui/svg-icons/action/gavel' { + export import ActionGavel = __MaterialUI.SvgIcon; + export default ActionGavel; +} + +declare module 'material-ui/svg-icons/action/get-app' { + export import ActionGetApp = __MaterialUI.SvgIcon; + export default ActionGetApp; +} + +declare module 'material-ui/svg-icons/action/gif' { + export import ActionGif = __MaterialUI.SvgIcon; + export default ActionGif; +} + +declare module 'material-ui/svg-icons/action/grade' { + export import ActionGrade = __MaterialUI.SvgIcon; + export default ActionGrade; +} + +declare module 'material-ui/svg-icons/action/group-work' { + export import ActionGroupWork = __MaterialUI.SvgIcon; + export default ActionGroupWork; +} + +declare module 'material-ui/svg-icons/action/help' { + export import ActionHelp = __MaterialUI.SvgIcon; + export default ActionHelp; +} + +declare module 'material-ui/svg-icons/action/help-outline' { + export import ActionHelpOutline = __MaterialUI.SvgIcon; + export default ActionHelpOutline; +} + +declare module 'material-ui/svg-icons/action/highlight-off' { + export import ActionHighlightOff = __MaterialUI.SvgIcon; + export default ActionHighlightOff; +} + +declare module 'material-ui/svg-icons/action/history' { + export import ActionHistory = __MaterialUI.SvgIcon; + export default ActionHistory; +} + +declare module 'material-ui/svg-icons/action/home' { + export import ActionHome = __MaterialUI.SvgIcon; + export default ActionHome; +} + +declare module 'material-ui/svg-icons/action/hourglass-empty' { + export import ActionHourglassEmpty = __MaterialUI.SvgIcon; + export default ActionHourglassEmpty; +} + +declare module 'material-ui/svg-icons/action/hourglass-full' { + export import ActionHourglassFull = __MaterialUI.SvgIcon; + export default ActionHourglassFull; +} + +declare module 'material-ui/svg-icons/action/http' { + export import ActionHttp = __MaterialUI.SvgIcon; + export default ActionHttp; +} + +declare module 'material-ui/svg-icons/action/https' { + export import ActionHttps = __MaterialUI.SvgIcon; + export default ActionHttps; +} + +declare module 'material-ui/svg-icons/action/important-devices' { + export import ActionImportantDevices = __MaterialUI.SvgIcon; + export default ActionImportantDevices; +} + +declare module 'material-ui/svg-icons/action/info' { + export import ActionInfo = __MaterialUI.SvgIcon; + export default ActionInfo; +} + +declare module 'material-ui/svg-icons/action/info-outline' { + export import ActionInfoOutline = __MaterialUI.SvgIcon; + export default ActionInfoOutline; +} + +declare module 'material-ui/svg-icons/action/input' { + export import ActionInput = __MaterialUI.SvgIcon; + export default ActionInput; +} + +declare module 'material-ui/svg-icons/action/invert-colors' { + export import ActionInvertColors = __MaterialUI.SvgIcon; + export default ActionInvertColors; +} + +declare module 'material-ui/svg-icons/action/label' { + export import ActionLabel = __MaterialUI.SvgIcon; + export default ActionLabel; +} + +declare module 'material-ui/svg-icons/action/label-outline' { + export import ActionLabelOutline = __MaterialUI.SvgIcon; + export default ActionLabelOutline; +} + +declare module 'material-ui/svg-icons/action/language' { + export import ActionLanguage = __MaterialUI.SvgIcon; + export default ActionLanguage; +} + +declare module 'material-ui/svg-icons/action/launch' { + export import ActionLaunch = __MaterialUI.SvgIcon; + export default ActionLaunch; +} + +declare module 'material-ui/svg-icons/action/lightbulb-outline' { + export import ActionLightbulbOutline = __MaterialUI.SvgIcon; + export default ActionLightbulbOutline; +} + +declare module 'material-ui/svg-icons/action/line-style' { + export import ActionLineStyle = __MaterialUI.SvgIcon; + export default ActionLineStyle; +} + +declare module 'material-ui/svg-icons/action/line-weight' { + export import ActionLineWeight = __MaterialUI.SvgIcon; + export default ActionLineWeight; +} + +declare module 'material-ui/svg-icons/action/list' { + export import ActionList = __MaterialUI.SvgIcon; + export default ActionList; +} + +declare module 'material-ui/svg-icons/action/lock' { + export import ActionLock = __MaterialUI.SvgIcon; + export default ActionLock; +} + +declare module 'material-ui/svg-icons/action/lock-open' { + export import ActionLockOpen = __MaterialUI.SvgIcon; + export default ActionLockOpen; +} + +declare module 'material-ui/svg-icons/action/lock-outline' { + export import ActionLockOutline = __MaterialUI.SvgIcon; + export default ActionLockOutline; +} + +declare module 'material-ui/svg-icons/action/loyalty' { + export import ActionLoyalty = __MaterialUI.SvgIcon; + export default ActionLoyalty; +} + +declare module 'material-ui/svg-icons/action/markunread-mailbox' { + export import ActionMarkunreadMailbox = __MaterialUI.SvgIcon; + export default ActionMarkunreadMailbox; +} + +declare module 'material-ui/svg-icons/action/motorcycle' { + export import ActionMotorcycle = __MaterialUI.SvgIcon; + export default ActionMotorcycle; +} + declare module 'material-ui/svg-icons/action/note-add' { export import ActionNoteAdd = __MaterialUI.SvgIcon; export default ActionNoteAdd; } +declare module 'material-ui/svg-icons/action/offline-pin' { + export import ActionOfflinePin = __MaterialUI.SvgIcon; + export default ActionOfflinePin; +} + +declare module 'material-ui/svg-icons/action/opacity' { + export import ActionOpacity = __MaterialUI.SvgIcon; + export default ActionOpacity; +} + +declare module 'material-ui/svg-icons/action/open-in-browser' { + export import ActionOpenInBrowser = __MaterialUI.SvgIcon; + export default ActionOpenInBrowser; +} + +declare module 'material-ui/svg-icons/action/open-in-new' { + export import ActionOpenInNew = __MaterialUI.SvgIcon; + export default ActionOpenInNew; +} + +declare module 'material-ui/svg-icons/action/open-with' { + export import ActionOpenWith = __MaterialUI.SvgIcon; + export default ActionOpenWith; +} + +declare module 'material-ui/svg-icons/action/pageview' { + export import ActionPageview = __MaterialUI.SvgIcon; + export default ActionPageview; +} + +declare module 'material-ui/svg-icons/action/pan-tool' { + export import ActionPanTool = __MaterialUI.SvgIcon; + export default ActionPanTool; +} + +declare module 'material-ui/svg-icons/action/payment' { + export import ActionPayment = __MaterialUI.SvgIcon; + export default ActionPayment; +} + +declare module 'material-ui/svg-icons/action/perm-camera-mic' { + export import ActionPermCameraMic = __MaterialUI.SvgIcon; + export default ActionPermCameraMic; +} + +declare module 'material-ui/svg-icons/action/perm-contact-calendar' { + export import ActionPermContactCalendar = __MaterialUI.SvgIcon; + export default ActionPermContactCalendar; +} + +declare module 'material-ui/svg-icons/action/perm-data-setting' { + export import ActionPermDataSetting = __MaterialUI.SvgIcon; + export default ActionPermDataSetting; +} + +declare module 'material-ui/svg-icons/action/perm-device-information' { + export import ActionPermDeviceInformation = __MaterialUI.SvgIcon; + export default ActionPermDeviceInformation; +} + +declare module 'material-ui/svg-icons/action/perm-identity' { + export import ActionPermIdentity = __MaterialUI.SvgIcon; + export default ActionPermIdentity; +} + +declare module 'material-ui/svg-icons/action/perm-media' { + export import ActionPermMedia = __MaterialUI.SvgIcon; + export default ActionPermMedia; +} + +declare module 'material-ui/svg-icons/action/perm-phone-msg' { + export import ActionPermPhoneMsg = __MaterialUI.SvgIcon; + export default ActionPermPhoneMsg; +} + declare module 'material-ui/svg-icons/action/perm-scan-wifi' { export import ActionPermScanWifi = __MaterialUI.SvgIcon; export default ActionPermScanWifi; @@ -3251,59 +2969,59 @@ declare module 'material-ui/svg-icons/action/pets' { export default ActionPets; } -declare module 'material-ui/svg-icons/action/view-array' { - export import ActionViewArray = __MaterialUI.SvgIcon; - export default ActionViewArray; +declare module 'material-ui/svg-icons/action/picture-in-picture' { + export import ActionPictureInPicture = __MaterialUI.SvgIcon; + export default ActionPictureInPicture; } -declare module 'material-ui/svg-icons/action/shop-two' { - export import ActionShopTwo = __MaterialUI.SvgIcon; - export default ActionShopTwo; +declare module 'material-ui/svg-icons/action/picture-in-picture-alt' { + export import ActionPictureInPictureAlt = __MaterialUI.SvgIcon; + export default ActionPictureInPictureAlt; } -declare module 'material-ui/svg-icons/action/line-style' { - export import ActionLineStyle = __MaterialUI.SvgIcon; - export default ActionLineStyle; +declare module 'material-ui/svg-icons/action/play-for-work' { + export import ActionPlayForWork = __MaterialUI.SvgIcon; + export default ActionPlayForWork; } -declare module 'material-ui/svg-icons/action/lightbulb-outline' { - export import ActionLightbulbOutline = __MaterialUI.SvgIcon; - export default ActionLightbulbOutline; +declare module 'material-ui/svg-icons/action/polymer' { + export import ActionPolymer = __MaterialUI.SvgIcon; + export default ActionPolymer; } -declare module 'material-ui/svg-icons/action/report-problem' { - export import ActionReportProblem = __MaterialUI.SvgIcon; - export default ActionReportProblem; +declare module 'material-ui/svg-icons/action/power-settings-new' { + export import ActionPowerSettingsNew = __MaterialUI.SvgIcon; + export default ActionPowerSettingsNew; } -declare module 'material-ui/svg-icons/action/swap-vert' { - export import ActionSwapVert = __MaterialUI.SvgIcon; - export default ActionSwapVert; +declare module 'material-ui/svg-icons/action/pregnant-woman' { + export import ActionPregnantWoman = __MaterialUI.SvgIcon; + export default ActionPregnantWoman; } -declare module 'material-ui/svg-icons/action/list' { - export import ActionList = __MaterialUI.SvgIcon; - export default ActionList; +declare module 'material-ui/svg-icons/action/print' { + export import ActionPrint = __MaterialUI.SvgIcon; + export default ActionPrint; } -declare module 'material-ui/svg-icons/action/settings-voice' { - export import ActionSettingsVoice = __MaterialUI.SvgIcon; - export default ActionSettingsVoice; +declare module 'material-ui/svg-icons/action/query-builder' { + export import ActionQueryBuilder = __MaterialUI.SvgIcon; + export default ActionQueryBuilder; } -declare module 'material-ui/svg-icons/action/view-list' { - export import ActionViewList = __MaterialUI.SvgIcon; - export default ActionViewList; +declare module 'material-ui/svg-icons/action/question-answer' { + export import ActionQuestionAnswer = __MaterialUI.SvgIcon; + export default ActionQuestionAnswer; } -declare module 'material-ui/svg-icons/action/pan-tool' { - export import ActionPanTool = __MaterialUI.SvgIcon; - export default ActionPanTool; +declare module 'material-ui/svg-icons/action/receipt' { + export import ActionReceipt = __MaterialUI.SvgIcon; + export default ActionReceipt; } -declare module 'material-ui/svg-icons/action/important-devices' { - export import ActionImportantDevices = __MaterialUI.SvgIcon; - export default ActionImportantDevices; +declare module 'material-ui/svg-icons/action/record-voice-over' { + export import ActionRecordVoiceOver = __MaterialUI.SvgIcon; + export default ActionRecordVoiceOver; } declare module 'material-ui/svg-icons/action/redeem' { @@ -3311,49 +3029,44 @@ declare module 'material-ui/svg-icons/action/redeem' { export default ActionRedeem; } -declare module 'material-ui/svg-icons/action/flip-to-front' { - export import ActionFlipToFront = __MaterialUI.SvgIcon; - export default ActionFlipToFront; +declare module 'material-ui/svg-icons/action/remove-shopping-cart' { + export import ActionRemoveShoppingCart = __MaterialUI.SvgIcon; + export default ActionRemoveShoppingCart; } -declare module 'material-ui/svg-icons/action/android' { - export import ActionAndroid = __MaterialUI.SvgIcon; - export default ActionAndroid; +declare module 'material-ui/svg-icons/action/reorder' { + export import ActionReorder = __MaterialUI.SvgIcon; + export default ActionReorder; } -declare module 'material-ui/svg-icons/action/account-circle' { - export import ActionAccountCircle = __MaterialUI.SvgIcon; - export default ActionAccountCircle; +declare module 'material-ui/svg-icons/action/report-problem' { + export import ActionReportProblem = __MaterialUI.SvgIcon; + export default ActionReportProblem; } -declare module 'material-ui/svg-icons/action/event-seat' { - export import ActionEventSeat = __MaterialUI.SvgIcon; - export default ActionEventSeat; +declare module 'material-ui/svg-icons/action/restore' { + export import ActionRestore = __MaterialUI.SvgIcon; + export default ActionRestore; } -declare module 'material-ui/svg-icons/action/perm-contact-calendar' { - export import ActionPermContactCalendar = __MaterialUI.SvgIcon; - export default ActionPermContactCalendar; +declare module 'material-ui/svg-icons/action/restore-page' { + export import ActionRestorePage = __MaterialUI.SvgIcon; + export default ActionRestorePage; } -declare module 'material-ui/svg-icons/action/perm-phone-msg' { - export import ActionPermPhoneMsg = __MaterialUI.SvgIcon; - export default ActionPermPhoneMsg; +declare module 'material-ui/svg-icons/action/room' { + export import ActionRoom = __MaterialUI.SvgIcon; + export default ActionRoom; } -declare module 'material-ui/svg-icons/action/delete' { - export import ActionDelete = __MaterialUI.SvgIcon; - export default ActionDelete; +declare module 'material-ui/svg-icons/action/rounded-corner' { + export import ActionRoundedCorner = __MaterialUI.SvgIcon; + export default ActionRoundedCorner; } -declare module 'material-ui/svg-icons/action/card-membership' { - export import ActionCardMembership = __MaterialUI.SvgIcon; - export default ActionCardMembership; -} - -declare module 'material-ui/svg-icons/action/hourglass-empty' { - export import ActionHourglassEmpty = __MaterialUI.SvgIcon; - export default ActionHourglassEmpty; +declare module 'material-ui/svg-icons/action/rowing' { + export import ActionRowing = __MaterialUI.SvgIcon; + export default ActionRowing; } declare module 'material-ui/svg-icons/action/schedule' { @@ -3361,19 +3074,34 @@ declare module 'material-ui/svg-icons/action/schedule' { export default ActionSchedule; } -declare module 'material-ui/svg-icons/action/trending-flat' { - export import ActionTrendingFlat = __MaterialUI.SvgIcon; - export default ActionTrendingFlat; +declare module 'material-ui/svg-icons/action/search' { + export import ActionSearch = __MaterialUI.SvgIcon; + export default ActionSearch; } -declare module 'material-ui/svg-icons/action/motorcycle' { - export import ActionMotorcycle = __MaterialUI.SvgIcon; - export default ActionMotorcycle; +declare module 'material-ui/svg-icons/action/settings' { + export import ActionSettings = __MaterialUI.SvgIcon; + export default ActionSettings; } -declare module 'material-ui/svg-icons/action/view-column' { - export import ActionViewColumn = __MaterialUI.SvgIcon; - export default ActionViewColumn; +declare module 'material-ui/svg-icons/action/settings-applications' { + export import ActionSettingsApplications = __MaterialUI.SvgIcon; + export default ActionSettingsApplications; +} + +declare module 'material-ui/svg-icons/action/settings-backup-restore' { + export import ActionSettingsBackupRestore = __MaterialUI.SvgIcon; + export default ActionSettingsBackupRestore; +} + +declare module 'material-ui/svg-icons/action/settings-bluetooth' { + export import ActionSettingsBluetooth = __MaterialUI.SvgIcon; + export default ActionSettingsBluetooth; +} + +declare module 'material-ui/svg-icons/action/settings-brightness' { + export import ActionSettingsBrightness = __MaterialUI.SvgIcon; + export default ActionSettingsBrightness; } declare module 'material-ui/svg-icons/action/settings-cell' { @@ -3381,19 +3109,79 @@ declare module 'material-ui/svg-icons/action/settings-cell' { export default ActionSettingsCell; } -declare module 'material-ui/svg-icons/action/credit-card' { - export import ActionCreditCard = __MaterialUI.SvgIcon; - export default ActionCreditCard; +declare module 'material-ui/svg-icons/action/settings-ethernet' { + export import ActionSettingsEthernet = __MaterialUI.SvgIcon; + export default ActionSettingsEthernet; } -declare module 'material-ui/svg-icons/action/view-module' { - export import ActionViewModule = __MaterialUI.SvgIcon; - export default ActionViewModule; +declare module 'material-ui/svg-icons/action/settings-input-antenna' { + export import ActionSettingsInputAntenna = __MaterialUI.SvgIcon; + export default ActionSettingsInputAntenna; } -declare module 'material-ui/svg-icons/action/compare-arrows' { - export import ActionCompareArrows = __MaterialUI.SvgIcon; - export default ActionCompareArrows; +declare module 'material-ui/svg-icons/action/settings-input-component' { + export import ActionSettingsInputComponent = __MaterialUI.SvgIcon; + export default ActionSettingsInputComponent; +} + +declare module 'material-ui/svg-icons/action/settings-input-composite' { + export import ActionSettingsInputComposite = __MaterialUI.SvgIcon; + export default ActionSettingsInputComposite; +} + +declare module 'material-ui/svg-icons/action/settings-input-hdmi' { + export import ActionSettingsInputHdmi = __MaterialUI.SvgIcon; + export default ActionSettingsInputHdmi; +} + +declare module 'material-ui/svg-icons/action/settings-input-svideo' { + export import ActionSettingsInputSvideo = __MaterialUI.SvgIcon; + export default ActionSettingsInputSvideo; +} + +declare module 'material-ui/svg-icons/action/settings-overscan' { + export import ActionSettingsOverscan = __MaterialUI.SvgIcon; + export default ActionSettingsOverscan; +} + +declare module 'material-ui/svg-icons/action/settings-phone' { + export import ActionSettingsPhone = __MaterialUI.SvgIcon; + export default ActionSettingsPhone; +} + +declare module 'material-ui/svg-icons/action/settings-power' { + export import ActionSettingsPower = __MaterialUI.SvgIcon; + export default ActionSettingsPower; +} + +declare module 'material-ui/svg-icons/action/settings-remote' { + export import ActionSettingsRemote = __MaterialUI.SvgIcon; + export default ActionSettingsRemote; +} + +declare module 'material-ui/svg-icons/action/settings-voice' { + export import ActionSettingsVoice = __MaterialUI.SvgIcon; + export default ActionSettingsVoice; +} + +declare module 'material-ui/svg-icons/action/shop' { + export import ActionShop = __MaterialUI.SvgIcon; + export default ActionShop; +} + +declare module 'material-ui/svg-icons/action/shop-two' { + export import ActionShopTwo = __MaterialUI.SvgIcon; + export default ActionShopTwo; +} + +declare module 'material-ui/svg-icons/action/shopping-basket' { + export import ActionShoppingBasket = __MaterialUI.SvgIcon; + export default ActionShoppingBasket; +} + +declare module 'material-ui/svg-icons/action/shopping-cart' { + export import ActionShoppingCart = __MaterialUI.SvgIcon; + export default ActionShoppingCart; } declare module 'material-ui/svg-icons/action/speaker-notes' { @@ -3401,739 +3189,249 @@ declare module 'material-ui/svg-icons/action/speaker-notes' { export default ActionSpeakerNotes; } -declare module 'material-ui/svg-icons/social/person' { - export import SocialPerson = __MaterialUI.SvgIcon; - export default SocialPerson; +declare module 'material-ui/svg-icons/action/speaker-notes-off' { + export import ActionSpeakerNotesOff = __MaterialUI.SvgIcon; + export default ActionSpeakerNotesOff; } -declare module 'material-ui/svg-icons/social/notifications-none' { - export import SocialNotificationsNone = __MaterialUI.SvgIcon; - export default SocialNotificationsNone; +declare module 'material-ui/svg-icons/action/spellcheck' { + export import ActionSpellcheck = __MaterialUI.SvgIcon; + export default ActionSpellcheck; } -declare module 'material-ui/svg-icons/social/domain' { - export import SocialDomain = __MaterialUI.SvgIcon; - export default SocialDomain; +declare module 'material-ui/svg-icons/action/stars' { + export import ActionStars = __MaterialUI.SvgIcon; + export default ActionStars; } -declare module 'material-ui/svg-icons/social/notifications-paused' { - export import SocialNotificationsPaused = __MaterialUI.SvgIcon; - export default SocialNotificationsPaused; +declare module 'material-ui/svg-icons/action/store' { + export import ActionStore = __MaterialUI.SvgIcon; + export default ActionStore; } -declare module 'material-ui/svg-icons/social/person-outline' { - export import SocialPersonOutline = __MaterialUI.SvgIcon; - export default SocialPersonOutline; +declare module 'material-ui/svg-icons/action/subject' { + export import ActionSubject = __MaterialUI.SvgIcon; + export default ActionSubject; } -declare module 'material-ui/svg-icons/social/plus-one' { - export import SocialPlusOne = __MaterialUI.SvgIcon; - export default SocialPlusOne; +declare module 'material-ui/svg-icons/action/supervisor-account' { + export import ActionSupervisorAccount = __MaterialUI.SvgIcon; + export default ActionSupervisorAccount; } -declare module 'material-ui/svg-icons/social/notifications-active' { - export import SocialNotificationsActive = __MaterialUI.SvgIcon; - export default SocialNotificationsActive; +declare module 'material-ui/svg-icons/action/swap-horiz' { + export import ActionSwapHoriz = __MaterialUI.SvgIcon; + export default ActionSwapHoriz; } -declare module 'material-ui/svg-icons/social/share' { - export import SocialShare = __MaterialUI.SvgIcon; - export default SocialShare; +declare module 'material-ui/svg-icons/action/swap-vert' { + export import ActionSwapVert = __MaterialUI.SvgIcon; + export default ActionSwapVert; } -declare module 'material-ui/svg-icons/social/whatshot' { - export import SocialWhatshot = __MaterialUI.SvgIcon; - export default SocialWhatshot; +declare module 'material-ui/svg-icons/action/swap-vertical-circle' { + export import ActionSwapVerticalCircle = __MaterialUI.SvgIcon; + export default ActionSwapVerticalCircle; } -declare module 'material-ui/svg-icons/social/poll' { - export import SocialPoll = __MaterialUI.SvgIcon; - export default SocialPoll; +declare module 'material-ui/svg-icons/action/system-update-alt' { + export import ActionSystemUpdateAlt = __MaterialUI.SvgIcon; + export default ActionSystemUpdateAlt; } -declare module 'material-ui/svg-icons/social/pages' { - export import SocialPages = __MaterialUI.SvgIcon; - export default SocialPages; +declare module 'material-ui/svg-icons/action/tab' { + export import ActionTab = __MaterialUI.SvgIcon; + export default ActionTab; } -declare module 'material-ui/svg-icons/social/notifications-off' { - export import SocialNotificationsOff = __MaterialUI.SvgIcon; - export default SocialNotificationsOff; +declare module 'material-ui/svg-icons/action/tab-unselected' { + export import ActionTabUnselected = __MaterialUI.SvgIcon; + export default ActionTabUnselected; } -declare module 'material-ui/svg-icons/social/notifications' { - export import SocialNotifications = __MaterialUI.SvgIcon; - export default SocialNotifications; +declare module 'material-ui/svg-icons/action/theaters' { + export import ActionTheaters = __MaterialUI.SvgIcon; + export default ActionTheaters; } -declare module 'material-ui/svg-icons/social/school' { - export import SocialSchool = __MaterialUI.SvgIcon; - export default SocialSchool; +declare module 'material-ui/svg-icons/action/three-d-rotation' { + export import ActionThreeDRotation = __MaterialUI.SvgIcon; + export default ActionThreeDRotation; } -declare module 'material-ui/svg-icons/social/cake' { - export import SocialCake = __MaterialUI.SvgIcon; - export default SocialCake; +declare module 'material-ui/svg-icons/action/thumb-down' { + export import ActionThumbDown = __MaterialUI.SvgIcon; + export default ActionThumbDown; } -declare module 'material-ui/svg-icons/social/people-outline' { - export import SocialPeopleOutline = __MaterialUI.SvgIcon; - export default SocialPeopleOutline; +declare module 'material-ui/svg-icons/action/thumb-up' { + export import ActionThumbUp = __MaterialUI.SvgIcon; + export default ActionThumbUp; } -declare module 'material-ui/svg-icons/social/location-city' { - export import SocialLocationCity = __MaterialUI.SvgIcon; - export default SocialLocationCity; +declare module 'material-ui/svg-icons/action/thumbs-up-down' { + export import ActionThumbsUpDown = __MaterialUI.SvgIcon; + export default ActionThumbsUpDown; } -declare module 'material-ui/svg-icons/social/public' { - export import SocialPublic = __MaterialUI.SvgIcon; - export default SocialPublic; +declare module 'material-ui/svg-icons/action/timeline' { + export import ActionTimeline = __MaterialUI.SvgIcon; + export default ActionTimeline; } -declare module 'material-ui/svg-icons/social/mood-bad' { - export import SocialMoodBad = __MaterialUI.SvgIcon; - export default SocialMoodBad; +declare module 'material-ui/svg-icons/action/toc' { + export import ActionToc = __MaterialUI.SvgIcon; + export default ActionToc; } -declare module 'material-ui/svg-icons/social/people' { - export import SocialPeople = __MaterialUI.SvgIcon; - export default SocialPeople; +declare module 'material-ui/svg-icons/action/today' { + export import ActionToday = __MaterialUI.SvgIcon; + export default ActionToday; } -declare module 'material-ui/svg-icons/social/mood' { - export import SocialMood = __MaterialUI.SvgIcon; - export default SocialMood; +declare module 'material-ui/svg-icons/action/toll' { + export import ActionToll = __MaterialUI.SvgIcon; + export default ActionToll; } -declare module 'material-ui/svg-icons/social/party-mode' { - export import SocialPartyMode = __MaterialUI.SvgIcon; - export default SocialPartyMode; +declare module 'material-ui/svg-icons/action/touch-app' { + export import ActionTouchApp = __MaterialUI.SvgIcon; + export default ActionTouchApp; } -declare module 'material-ui/svg-icons/social/group' { - export import SocialGroup = __MaterialUI.SvgIcon; - export default SocialGroup; +declare module 'material-ui/svg-icons/action/track-changes' { + export import ActionTrackChanges = __MaterialUI.SvgIcon; + export default ActionTrackChanges; } -declare module 'material-ui/svg-icons/social/person-add' { - export import SocialPersonAdd = __MaterialUI.SvgIcon; - export default SocialPersonAdd; +declare module 'material-ui/svg-icons/action/translate' { + export import ActionTranslate = __MaterialUI.SvgIcon; + export default ActionTranslate; } -declare module 'material-ui/svg-icons/social/group-add' { - export import SocialGroupAdd = __MaterialUI.SvgIcon; - export default SocialGroupAdd; +declare module 'material-ui/svg-icons/action/trending-down' { + export import ActionTrendingDown = __MaterialUI.SvgIcon; + export default ActionTrendingDown; } -declare module 'material-ui/svg-icons/maps/edit-location' { - export import MapsEditLocation = __MaterialUI.SvgIcon; - export default MapsEditLocation; +declare module 'material-ui/svg-icons/action/trending-flat' { + export import ActionTrendingFlat = __MaterialUI.SvgIcon; + export default ActionTrendingFlat; } -declare module 'material-ui/svg-icons/maps/local-airport' { - export import MapsLocalAirport = __MaterialUI.SvgIcon; - export default MapsLocalAirport; +declare module 'material-ui/svg-icons/action/trending-up' { + export import ActionTrendingUp = __MaterialUI.SvgIcon; + export default ActionTrendingUp; } -declare module 'material-ui/svg-icons/maps/local-phone' { - export import MapsLocalPhone = __MaterialUI.SvgIcon; - export default MapsLocalPhone; +declare module 'material-ui/svg-icons/action/turned-in' { + export import ActionTurnedIn = __MaterialUI.SvgIcon; + export default ActionTurnedIn; } -declare module 'material-ui/svg-icons/maps/directions-car' { - export import MapsDirectionsCar = __MaterialUI.SvgIcon; - export default MapsDirectionsCar; +declare module 'material-ui/svg-icons/action/turned-in-not' { + export import ActionTurnedInNot = __MaterialUI.SvgIcon; + export default ActionTurnedInNot; } -declare module 'material-ui/svg-icons/maps/local-drink' { - export import MapsLocalDrink = __MaterialUI.SvgIcon; - export default MapsLocalDrink; +declare module 'material-ui/svg-icons/action/update' { + export import ActionUpdate = __MaterialUI.SvgIcon; + export default ActionUpdate; } -declare module 'material-ui/svg-icons/maps/local-gas-station' { - export import MapsLocalGasStation = __MaterialUI.SvgIcon; - export default MapsLocalGasStation; +declare module 'material-ui/svg-icons/action/verified-user' { + export import ActionVerifiedUser = __MaterialUI.SvgIcon; + export default ActionVerifiedUser; } -declare module 'material-ui/svg-icons/maps/store-mall-directory' { - export import MapsStoreMallDirectory = __MaterialUI.SvgIcon; - export default MapsStoreMallDirectory; +declare module 'material-ui/svg-icons/action/view-agenda' { + export import ActionViewAgenda = __MaterialUI.SvgIcon; + export default ActionViewAgenda; } -declare module 'material-ui/svg-icons/maps/add-location' { - export import MapsAddLocation = __MaterialUI.SvgIcon; - export default MapsAddLocation; +declare module 'material-ui/svg-icons/action/view-array' { + export import ActionViewArray = __MaterialUI.SvgIcon; + export default ActionViewArray; } -declare module 'material-ui/svg-icons/maps/local-laundry-service' { - export import MapsLocalLaundryService = __MaterialUI.SvgIcon; - export default MapsLocalLaundryService; +declare module 'material-ui/svg-icons/action/view-carousel' { + export import ActionViewCarousel = __MaterialUI.SvgIcon; + export default ActionViewCarousel; } -declare module 'material-ui/svg-icons/maps/local-hotel' { - export import MapsLocalHotel = __MaterialUI.SvgIcon; - export default MapsLocalHotel; +declare module 'material-ui/svg-icons/action/view-column' { + export import ActionViewColumn = __MaterialUI.SvgIcon; + export default ActionViewColumn; } -declare module 'material-ui/svg-icons/maps/local-pizza' { - export import MapsLocalPizza = __MaterialUI.SvgIcon; - export default MapsLocalPizza; +declare module 'material-ui/svg-icons/action/view-day' { + export import ActionViewDay = __MaterialUI.SvgIcon; + export default ActionViewDay; } -declare module 'material-ui/svg-icons/maps/person-pin-circle' { - export import MapsPersonPinCircle = __MaterialUI.SvgIcon; - export default MapsPersonPinCircle; +declare module 'material-ui/svg-icons/action/view-headline' { + export import ActionViewHeadline = __MaterialUI.SvgIcon; + export default ActionViewHeadline; } -declare module 'material-ui/svg-icons/maps/terrain' { - export import MapsTerrain = __MaterialUI.SvgIcon; - export default MapsTerrain; +declare module 'material-ui/svg-icons/action/view-list' { + export import ActionViewList = __MaterialUI.SvgIcon; + export default ActionViewList; } -declare module 'material-ui/svg-icons/maps/directions-subway' { - export import MapsDirectionsSubway = __MaterialUI.SvgIcon; - export default MapsDirectionsSubway; +declare module 'material-ui/svg-icons/action/view-module' { + export import ActionViewModule = __MaterialUI.SvgIcon; + export default ActionViewModule; } -declare module 'material-ui/svg-icons/maps/local-bar' { - export import MapsLocalBar = __MaterialUI.SvgIcon; - export default MapsLocalBar; +declare module 'material-ui/svg-icons/action/view-quilt' { + export import ActionViewQuilt = __MaterialUI.SvgIcon; + export default ActionViewQuilt; } -declare module 'material-ui/svg-icons/maps/local-car-wash' { - export import MapsLocalCarWash = __MaterialUI.SvgIcon; - export default MapsLocalCarWash; +declare module 'material-ui/svg-icons/action/view-stream' { + export import ActionViewStream = __MaterialUI.SvgIcon; + export default ActionViewStream; } -declare module 'material-ui/svg-icons/maps/restaurant-menu' { - export import MapsRestaurantMenu = __MaterialUI.SvgIcon; - export default MapsRestaurantMenu; +declare module 'material-ui/svg-icons/action/view-week' { + export import ActionViewWeek = __MaterialUI.SvgIcon; + export default ActionViewWeek; } -declare module 'material-ui/svg-icons/maps/near-me' { - export import MapsNearMe = __MaterialUI.SvgIcon; - export default MapsNearMe; +declare module 'material-ui/svg-icons/action/visibility' { + export import ActionVisibility = __MaterialUI.SvgIcon; + export default ActionVisibility; } -declare module 'material-ui/svg-icons/maps/directions' { - export import MapsDirections = __MaterialUI.SvgIcon; - export default MapsDirections; +declare module 'material-ui/svg-icons/action/visibility-off' { + export import ActionVisibilityOff = __MaterialUI.SvgIcon; + export default ActionVisibilityOff; } -declare module 'material-ui/svg-icons/maps/my-location' { - export import MapsMyLocation = __MaterialUI.SvgIcon; - export default MapsMyLocation; +declare module 'material-ui/svg-icons/action/watch-later' { + export import ActionWatchLater = __MaterialUI.SvgIcon; + export default ActionWatchLater; } -declare module 'material-ui/svg-icons/maps/local-convenience-store' { - export import MapsLocalConvenienceStore = __MaterialUI.SvgIcon; - export default MapsLocalConvenienceStore; +declare module 'material-ui/svg-icons/action/work' { + export import ActionWork = __MaterialUI.SvgIcon; + export default ActionWork; } -declare module 'material-ui/svg-icons/maps/local-offer' { - export import MapsLocalOffer = __MaterialUI.SvgIcon; - export default MapsLocalOffer; +declare module 'material-ui/svg-icons/action/youtube-searched-for' { + export import ActionYoutubeSearchedFor = __MaterialUI.SvgIcon; + export default ActionYoutubeSearchedFor; } -declare module 'material-ui/svg-icons/maps/local-florist' { - export import MapsLocalFlorist = __MaterialUI.SvgIcon; - export default MapsLocalFlorist; +declare module 'material-ui/svg-icons/action/zoom-in' { + export import ActionZoomIn = __MaterialUI.SvgIcon; + export default ActionZoomIn; } -declare module 'material-ui/svg-icons/maps/local-shipping' { - export import MapsLocalShipping = __MaterialUI.SvgIcon; - export default MapsLocalShipping; -} - -declare module 'material-ui/svg-icons/maps/local-taxi' { - export import MapsLocalTaxi = __MaterialUI.SvgIcon; - export default MapsLocalTaxi; -} - -declare module 'material-ui/svg-icons/maps/directions-walk' { - export import MapsDirectionsWalk = __MaterialUI.SvgIcon; - export default MapsDirectionsWalk; -} - -declare module 'material-ui/svg-icons/maps/local-hospital' { - export import MapsLocalHospital = __MaterialUI.SvgIcon; - export default MapsLocalHospital; -} - -declare module 'material-ui/svg-icons/maps/layers' { - export import MapsLayers = __MaterialUI.SvgIcon; - export default MapsLayers; -} - -declare module 'material-ui/svg-icons/maps/directions-run' { - export import MapsDirectionsRun = __MaterialUI.SvgIcon; - export default MapsDirectionsRun; -} - -declare module 'material-ui/svg-icons/maps/rate-review' { - export import MapsRateReview = __MaterialUI.SvgIcon; - export default MapsRateReview; -} - -declare module 'material-ui/svg-icons/maps/local-dining' { - export import MapsLocalDining = __MaterialUI.SvgIcon; - export default MapsLocalDining; -} - -declare module 'material-ui/svg-icons/maps/local-post-office' { - export import MapsLocalPostOffice = __MaterialUI.SvgIcon; - export default MapsLocalPostOffice; -} - -declare module 'material-ui/svg-icons/maps/pin-drop' { - export import MapsPinDrop = __MaterialUI.SvgIcon; - export default MapsPinDrop; -} - -declare module 'material-ui/svg-icons/maps/directions-boat' { - export import MapsDirectionsBoat = __MaterialUI.SvgIcon; - export default MapsDirectionsBoat; -} - -declare module 'material-ui/svg-icons/maps/local-see' { - export import MapsLocalSee = __MaterialUI.SvgIcon; - export default MapsLocalSee; -} - -declare module 'material-ui/svg-icons/maps/map' { - export import MapsMap = __MaterialUI.SvgIcon; - export default MapsMap; -} - -declare module 'material-ui/svg-icons/maps/flight' { - export import MapsFlight = __MaterialUI.SvgIcon; - export default MapsFlight; -} - -declare module 'material-ui/svg-icons/maps/person-pin' { - export import MapsPersonPin = __MaterialUI.SvgIcon; - export default MapsPersonPin; -} - -declare module 'material-ui/svg-icons/maps/satellite' { - export import MapsSatellite = __MaterialUI.SvgIcon; - export default MapsSatellite; -} - -declare module 'material-ui/svg-icons/maps/local-printshop' { - export import MapsLocalPrintshop = __MaterialUI.SvgIcon; - export default MapsLocalPrintshop; -} - -declare module 'material-ui/svg-icons/maps/navigation' { - export import MapsNavigation = __MaterialUI.SvgIcon; - export default MapsNavigation; -} - -declare module 'material-ui/svg-icons/maps/directions-railway' { - export import MapsDirectionsRailway = __MaterialUI.SvgIcon; - export default MapsDirectionsRailway; -} - -declare module 'material-ui/svg-icons/maps/local-atm' { - export import MapsLocalAtm = __MaterialUI.SvgIcon; - export default MapsLocalAtm; -} - -declare module 'material-ui/svg-icons/maps/directions-transit' { - export import MapsDirectionsTransit = __MaterialUI.SvgIcon; - export default MapsDirectionsTransit; -} - -declare module 'material-ui/svg-icons/maps/local-parking' { - export import MapsLocalParking = __MaterialUI.SvgIcon; - export default MapsLocalParking; -} - -declare module 'material-ui/svg-icons/maps/local-cafe' { - export import MapsLocalCafe = __MaterialUI.SvgIcon; - export default MapsLocalCafe; -} - -declare module 'material-ui/svg-icons/maps/local-mall' { - export import MapsLocalMall = __MaterialUI.SvgIcon; - export default MapsLocalMall; -} - -declare module 'material-ui/svg-icons/maps/zoom-out-map' { - export import MapsZoomOutMap = __MaterialUI.SvgIcon; - export default MapsZoomOutMap; -} - -declare module 'material-ui/svg-icons/maps/local-activity' { - export import MapsLocalActivity = __MaterialUI.SvgIcon; - export default MapsLocalActivity; -} - -declare module 'material-ui/svg-icons/maps/local-grocery-store' { - export import MapsLocalGroceryStore = __MaterialUI.SvgIcon; - export default MapsLocalGroceryStore; -} - -declare module 'material-ui/svg-icons/maps/local-pharmacy' { - export import MapsLocalPharmacy = __MaterialUI.SvgIcon; - export default MapsLocalPharmacy; -} - -declare module 'material-ui/svg-icons/maps/local-movies' { - export import MapsLocalMovies = __MaterialUI.SvgIcon; - export default MapsLocalMovies; -} - -declare module 'material-ui/svg-icons/maps/place' { - export import MapsPlace = __MaterialUI.SvgIcon; - export default MapsPlace; -} - -declare module 'material-ui/svg-icons/maps/layers-clear' { - export import MapsLayersClear = __MaterialUI.SvgIcon; - export default MapsLayersClear; -} - -declare module 'material-ui/svg-icons/maps/hotel' { - export import MapsHotel = __MaterialUI.SvgIcon; - export default MapsHotel; -} - -declare module 'material-ui/svg-icons/maps/directions-bike' { - export import MapsDirectionsBike = __MaterialUI.SvgIcon; - export default MapsDirectionsBike; -} - -declare module 'material-ui/svg-icons/maps/local-library' { - export import MapsLocalLibrary = __MaterialUI.SvgIcon; - export default MapsLocalLibrary; -} - -declare module 'material-ui/svg-icons/maps/local-play' { - export import MapsLocalPlay = __MaterialUI.SvgIcon; - export default MapsLocalPlay; -} - -declare module 'material-ui/svg-icons/maps/directions-bus' { - export import MapsDirectionsBus = __MaterialUI.SvgIcon; - export default MapsDirectionsBus; -} - -declare module 'material-ui/svg-icons/maps/traffic' { - export import MapsTraffic = __MaterialUI.SvgIcon; - export default MapsTraffic; -} - -declare module 'material-ui/svg-icons/maps/beenhere' { - export import MapsBeenhere = __MaterialUI.SvgIcon; - export default MapsBeenhere; -} - -declare module 'material-ui/svg-icons/communication/call-received' { - export import CommunicationCallReceived = __MaterialUI.SvgIcon; - export default CommunicationCallReceived; -} - -declare module 'material-ui/svg-icons/communication/dialpad' { - export import CommunicationDialpad = __MaterialUI.SvgIcon; - export default CommunicationDialpad; -} - -declare module 'material-ui/svg-icons/communication/forum' { - export import CommunicationForum = __MaterialUI.SvgIcon; - export default CommunicationForum; -} - -declare module 'material-ui/svg-icons/communication/no-sim' { - export import CommunicationNoSim = __MaterialUI.SvgIcon; - export default CommunicationNoSim; -} - -declare module 'material-ui/svg-icons/communication/chat' { - export import CommunicationChat = __MaterialUI.SvgIcon; - export default CommunicationChat; -} - -declare module 'material-ui/svg-icons/communication/stay-primary-landscape' { - export import CommunicationStayPrimaryLandscape = __MaterialUI.SvgIcon; - export default CommunicationStayPrimaryLandscape; -} - -declare module 'material-ui/svg-icons/communication/phonelink-setup' { - export import CommunicationPhonelinkSetup = __MaterialUI.SvgIcon; - export default CommunicationPhonelinkSetup; -} - -declare module 'material-ui/svg-icons/communication/ring-volume' { - export import CommunicationRingVolume = __MaterialUI.SvgIcon; - export default CommunicationRingVolume; -} - -declare module 'material-ui/svg-icons/communication/phonelink-lock' { - export import CommunicationPhonelinkLock = __MaterialUI.SvgIcon; - export default CommunicationPhonelinkLock; -} - -declare module 'material-ui/svg-icons/communication/contacts' { - export import CommunicationContacts = __MaterialUI.SvgIcon; - export default CommunicationContacts; -} - -declare module 'material-ui/svg-icons/communication/call-missed' { - export import CommunicationCallMissed = __MaterialUI.SvgIcon; - export default CommunicationCallMissed; -} - -declare module 'material-ui/svg-icons/communication/contact-mail' { - export import CommunicationContactMail = __MaterialUI.SvgIcon; - export default CommunicationContactMail; -} - -declare module 'material-ui/svg-icons/communication/portable-wifi-off' { - export import CommunicationPortableWifiOff = __MaterialUI.SvgIcon; - export default CommunicationPortableWifiOff; -} - -declare module 'material-ui/svg-icons/communication/call-merge' { - export import CommunicationCallMerge = __MaterialUI.SvgIcon; - export default CommunicationCallMerge; -} - -declare module 'material-ui/svg-icons/communication/tact-mail' { - export import CommunicationTactMail = __MaterialUI.SvgIcon; - export default CommunicationTactMail; -} - -declare module 'material-ui/svg-icons/communication/stop-screen-share' { - export import CommunicationStopScreenShare = __MaterialUI.SvgIcon; - export default CommunicationStopScreenShare; -} - -declare module 'material-ui/svg-icons/communication/vpn-key' { - export import CommunicationVpnKey = __MaterialUI.SvgIcon; - export default CommunicationVpnKey; -} - -declare module 'material-ui/svg-icons/communication/swap-calls' { - export import CommunicationSwapCalls = __MaterialUI.SvgIcon; - export default CommunicationSwapCalls; -} - -declare module 'material-ui/svg-icons/communication/dialer-sip' { - export import CommunicationDialerSip = __MaterialUI.SvgIcon; - export default CommunicationDialerSip; -} - -declare module 'material-ui/svg-icons/communication/business' { - export import CommunicationBusiness = __MaterialUI.SvgIcon; - export default CommunicationBusiness; -} - -declare module 'material-ui/svg-icons/communication/phonelink-erase' { - export import CommunicationPhonelinkErase = __MaterialUI.SvgIcon; - export default CommunicationPhonelinkErase; -} - -declare module 'material-ui/svg-icons/communication/call' { - export import CommunicationCall = __MaterialUI.SvgIcon; - export default CommunicationCall; -} - -declare module 'material-ui/svg-icons/communication/screen-share' { - export import CommunicationScreenShare = __MaterialUI.SvgIcon; - export default CommunicationScreenShare; -} - -declare module 'material-ui/svg-icons/communication/clear-all' { - export import CommunicationClearAll = __MaterialUI.SvgIcon; - export default CommunicationClearAll; -} - -declare module 'material-ui/svg-icons/communication/chat-bubble-outline' { - export import CommunicationChatBubbleOutline = __MaterialUI.SvgIcon; - export default CommunicationChatBubbleOutline; -} - -declare module 'material-ui/svg-icons/communication/call-missed-outgoing' { - export import CommunicationCallMissedOutgoing = __MaterialUI.SvgIcon; - export default CommunicationCallMissedOutgoing; -} - -declare module 'material-ui/svg-icons/communication/stay-primary-portrait' { - export import CommunicationStayPrimaryPortrait = __MaterialUI.SvgIcon; - export default CommunicationStayPrimaryPortrait; -} - -declare module 'material-ui/svg-icons/communication/stay-current-portrait' { - export import CommunicationStayCurrentPortrait = __MaterialUI.SvgIcon; - export default CommunicationStayCurrentPortrait; -} - -declare module 'material-ui/svg-icons/communication/voicemail' { - export import CommunicationVoicemail = __MaterialUI.SvgIcon; - export default CommunicationVoicemail; -} - -declare module 'material-ui/svg-icons/communication/speaker-phone' { - export import CommunicationSpeakerPhone = __MaterialUI.SvgIcon; - export default CommunicationSpeakerPhone; -} - -declare module 'material-ui/svg-icons/communication/call-split' { - export import CommunicationCallSplit = __MaterialUI.SvgIcon; - export default CommunicationCallSplit; -} - -declare module 'material-ui/svg-icons/communication/live-help' { - export import CommunicationLiveHelp = __MaterialUI.SvgIcon; - export default CommunicationLiveHelp; -} - -declare module 'material-ui/svg-icons/communication/call-made' { - export import CommunicationCallMade = __MaterialUI.SvgIcon; - export default CommunicationCallMade; -} - -declare module 'material-ui/svg-icons/communication/phone' { - export import CommunicationPhone = __MaterialUI.SvgIcon; - export default CommunicationPhone; -} - -declare module 'material-ui/svg-icons/communication/textsms' { - export import CommunicationTextsms = __MaterialUI.SvgIcon; - export default CommunicationTextsms; -} - -declare module 'material-ui/svg-icons/communication/message' { - export import CommunicationMessage = __MaterialUI.SvgIcon; - export default CommunicationMessage; -} - -declare module 'material-ui/svg-icons/communication/import-export' { - export import CommunicationImportExport = __MaterialUI.SvgIcon; - export default CommunicationImportExport; -} - -declare module 'material-ui/svg-icons/communication/import-contacts' { - export import CommunicationImportContacts = __MaterialUI.SvgIcon; - export default CommunicationImportContacts; -} - -declare module 'material-ui/svg-icons/communication/phonelink-ring' { - export import CommunicationPhonelinkRing = __MaterialUI.SvgIcon; - export default CommunicationPhonelinkRing; -} - -declare module 'material-ui/svg-icons/communication/present-to-all' { - export import CommunicationPresentToAll = __MaterialUI.SvgIcon; - export default CommunicationPresentToAll; -} - -declare module 'material-ui/svg-icons/communication/contact-phone' { - export import CommunicationContactPhone = __MaterialUI.SvgIcon; - export default CommunicationContactPhone; -} - -declare module 'material-ui/svg-icons/communication/invert-colors-off' { - export import CommunicationInvertColorsOff = __MaterialUI.SvgIcon; - export default CommunicationInvertColorsOff; -} - -declare module 'material-ui/svg-icons/communication/comment' { - export import CommunicationComment = __MaterialUI.SvgIcon; - export default CommunicationComment; -} - -declare module 'material-ui/svg-icons/communication/chat-bubble' { - export import CommunicationChatBubble = __MaterialUI.SvgIcon; - export default CommunicationChatBubble; -} - -declare module 'material-ui/svg-icons/communication/mail-outline' { - export import CommunicationMailOutline = __MaterialUI.SvgIcon; - export default CommunicationMailOutline; -} - -declare module 'material-ui/svg-icons/communication/location-on' { - export import CommunicationLocationOn = __MaterialUI.SvgIcon; - export default CommunicationLocationOn; -} - -declare module 'material-ui/svg-icons/communication/stay-current-landscape' { - export import CommunicationStayCurrentLandscape = __MaterialUI.SvgIcon; - export default CommunicationStayCurrentLandscape; -} - -declare module 'material-ui/svg-icons/communication/location-off' { - export import CommunicationLocationOff = __MaterialUI.SvgIcon; - export default CommunicationLocationOff; -} - -declare module 'material-ui/svg-icons/communication/email' { - export import CommunicationEmail = __MaterialUI.SvgIcon; - export default CommunicationEmail; -} - -declare module 'material-ui/svg-icons/communication/call-end' { - export import CommunicationCallEnd = __MaterialUI.SvgIcon; - export default CommunicationCallEnd; -} - -declare module 'material-ui/svg-icons/toggle/check-box' { - export import ToggleCheckBox = __MaterialUI.SvgIcon; - export default ToggleCheckBox; -} - -declare module 'material-ui/svg-icons/toggle/star-half' { - export import ToggleStarHalf = __MaterialUI.SvgIcon; - export default ToggleStarHalf; -} - -declare module 'material-ui/svg-icons/toggle/check-box-outline-blank' { - export import ToggleCheckBoxOutlineBlank = __MaterialUI.SvgIcon; - export default ToggleCheckBoxOutlineBlank; -} - -declare module 'material-ui/svg-icons/toggle/star' { - export import ToggleStar = __MaterialUI.SvgIcon; - export default ToggleStar; -} - -declare module 'material-ui/svg-icons/toggle/star-border' { - export import ToggleStarBorder = __MaterialUI.SvgIcon; - export default ToggleStarBorder; -} - -declare module 'material-ui/svg-icons/toggle/radio-button-unchecked' { - export import ToggleRadioButtonUnchecked = __MaterialUI.SvgIcon; - export default ToggleRadioButtonUnchecked; -} - -declare module 'material-ui/svg-icons/toggle/indeterminate-check-box' { - export import ToggleIndeterminateCheckBox = __MaterialUI.SvgIcon; - export default ToggleIndeterminateCheckBox; -} - -declare module 'material-ui/svg-icons/toggle/radio-button-checked' { - export import ToggleRadioButtonChecked = __MaterialUI.SvgIcon; - export default ToggleRadioButtonChecked; -} - -declare module 'material-ui/svg-icons/index' { - export import Index = __MaterialUI.SvgIcon; - export default Index; -} - -declare module 'material-ui/svg-icons/index-generator' { - export import IndexGenerator = __MaterialUI.SvgIcon; - export default IndexGenerator; -} - -declare module 'material-ui/svg-icons/alert/warning' { - export import AlertWarning = __MaterialUI.SvgIcon; - export default AlertWarning; +declare module 'material-ui/svg-icons/action/zoom-out' { + export import ActionZoomOut = __MaterialUI.SvgIcon; + export default ActionZoomOut; } declare module 'material-ui/svg-icons/alert/add-alert' { @@ -4141,329 +3439,674 @@ declare module 'material-ui/svg-icons/alert/add-alert' { export default AlertAddAlert; } -declare module 'material-ui/svg-icons/alert/error-outline' { - export import AlertErrorOutline = __MaterialUI.SvgIcon; - export default AlertErrorOutline; -} - declare module 'material-ui/svg-icons/alert/error' { export import AlertError = __MaterialUI.SvgIcon; export default AlertError; } -declare module 'material-ui/svg-icons/file/file-upload' { - export import FileFileUpload = __MaterialUI.SvgIcon; - export default FileFileUpload; +declare module 'material-ui/svg-icons/alert/error-outline' { + export import AlertErrorOutline = __MaterialUI.SvgIcon; + export default AlertErrorOutline; } -declare module 'material-ui/svg-icons/file/cloud-upload' { - export import FileCloudUpload = __MaterialUI.SvgIcon; - export default FileCloudUpload; +declare module 'material-ui/svg-icons/alert/warning' { + export import AlertWarning = __MaterialUI.SvgIcon; + export default AlertWarning; } -declare module 'material-ui/svg-icons/file/cloud-done' { - export import FileCloudDone = __MaterialUI.SvgIcon; - export default FileCloudDone; +declare module 'material-ui/svg-icons/av/add-to-queue' { + export import AvAddToQueue = __MaterialUI.SvgIcon; + export default AvAddToQueue; } -declare module 'material-ui/svg-icons/file/folder-open' { - export import FileFolderOpen = __MaterialUI.SvgIcon; - export default FileFolderOpen; +declare module 'material-ui/svg-icons/av/airplay' { + export import AvAirplay = __MaterialUI.SvgIcon; + export default AvAirplay; } -declare module 'material-ui/svg-icons/file/cloud-off' { - export import FileCloudOff = __MaterialUI.SvgIcon; - export default FileCloudOff; +declare module 'material-ui/svg-icons/av/album' { + export import AvAlbum = __MaterialUI.SvgIcon; + export default AvAlbum; } -declare module 'material-ui/svg-icons/file/cloud-queue' { - export import FileCloudQueue = __MaterialUI.SvgIcon; - export default FileCloudQueue; +declare module 'material-ui/svg-icons/av/art-track' { + export import AvArtTrack = __MaterialUI.SvgIcon; + export default AvArtTrack; } -declare module 'material-ui/svg-icons/file/folder-shared' { - export import FileFolderShared = __MaterialUI.SvgIcon; - export default FileFolderShared; +declare module 'material-ui/svg-icons/av/av-timer' { + export import AvAvTimer = __MaterialUI.SvgIcon; + export default AvAvTimer; } -declare module 'material-ui/svg-icons/file/cloud-circle' { - export import FileCloudCircle = __MaterialUI.SvgIcon; - export default FileCloudCircle; +declare module 'material-ui/svg-icons/av/branding-watermark' { + export import AvBrandingWatermark = __MaterialUI.SvgIcon; + export default AvBrandingWatermark; } -declare module 'material-ui/svg-icons/file/folder' { - export import FileFolder = __MaterialUI.SvgIcon; - export default FileFolder; +declare module 'material-ui/svg-icons/av/call-to-action' { + export import AvCallToAction = __MaterialUI.SvgIcon; + export default AvCallToAction; } -declare module 'material-ui/svg-icons/file/attachment' { - export import FileAttachment = __MaterialUI.SvgIcon; - export default FileAttachment; +declare module 'material-ui/svg-icons/av/closed-caption' { + export import AvClosedCaption = __MaterialUI.SvgIcon; + export default AvClosedCaption; } -declare module 'material-ui/svg-icons/file/create-new-folder' { - export import FileCreateNewFolder = __MaterialUI.SvgIcon; - export default FileCreateNewFolder; +declare module 'material-ui/svg-icons/av/equalizer' { + export import AvEqualizer = __MaterialUI.SvgIcon; + export default AvEqualizer; } -declare module 'material-ui/svg-icons/file/cloud-download' { - export import FileCloudDownload = __MaterialUI.SvgIcon; - export default FileCloudDownload; +declare module 'material-ui/svg-icons/av/explicit' { + export import AvExplicit = __MaterialUI.SvgIcon; + export default AvExplicit; } -declare module 'material-ui/svg-icons/file/cloud' { - export import FileCloud = __MaterialUI.SvgIcon; - export default FileCloud; +declare module 'material-ui/svg-icons/av/fast-forward' { + export import AvFastForward = __MaterialUI.SvgIcon; + export default AvFastForward; } -declare module 'material-ui/svg-icons/file/file-download' { - export import FileFileDownload = __MaterialUI.SvgIcon; - export default FileFileDownload; +declare module 'material-ui/svg-icons/av/fast-rewind' { + export import AvFastRewind = __MaterialUI.SvgIcon; + export default AvFastRewind; } -declare module 'material-ui/svg-icons/navigation-arrow-drop-right' { - export import NavigationArrowDropRight = __MaterialUI.SvgIcon; - export default NavigationArrowDropRight; +declare module 'material-ui/svg-icons/av/featured-play-list' { + export import AvFeaturedPlayList = __MaterialUI.SvgIcon; + export default AvFeaturedPlayList; } -declare module 'material-ui/svg-icons/hardware/keyboard' { - export import HardwareKeyboard = __MaterialUI.SvgIcon; - export default HardwareKeyboard; +declare module 'material-ui/svg-icons/av/featured-video' { + export import AvFeaturedVideo = __MaterialUI.SvgIcon; + export default AvFeaturedVideo; } -declare module 'material-ui/svg-icons/hardware/toys' { - export import HardwareToys = __MaterialUI.SvgIcon; - export default HardwareToys; +declare module 'material-ui/svg-icons/av/fiber-dvr' { + export import AvFiberDvr = __MaterialUI.SvgIcon; + export default AvFiberDvr; } -declare module 'material-ui/svg-icons/hardware/dock' { - export import HardwareDock = __MaterialUI.SvgIcon; - export default HardwareDock; +declare module 'material-ui/svg-icons/av/fiber-manual-record' { + export import AvFiberManualRecord = __MaterialUI.SvgIcon; + export default AvFiberManualRecord; } -declare module 'material-ui/svg-icons/hardware/headset' { - export import HardwareHeadset = __MaterialUI.SvgIcon; - export default HardwareHeadset; +declare module 'material-ui/svg-icons/av/fiber-new' { + export import AvFiberNew = __MaterialUI.SvgIcon; + export default AvFiberNew; } -declare module 'material-ui/svg-icons/hardware/keyboard-voice' { - export import HardwareKeyboardVoice = __MaterialUI.SvgIcon; - export default HardwareKeyboardVoice; +declare module 'material-ui/svg-icons/av/fiber-pin' { + export import AvFiberPin = __MaterialUI.SvgIcon; + export default AvFiberPin; } -declare module 'material-ui/svg-icons/hardware/phonelink-off' { - export import HardwarePhonelinkOff = __MaterialUI.SvgIcon; - export default HardwarePhonelinkOff; +declare module 'material-ui/svg-icons/av/fiber-smart-record' { + export import AvFiberSmartRecord = __MaterialUI.SvgIcon; + export default AvFiberSmartRecord; } -declare module 'material-ui/svg-icons/hardware/speaker-group' { - export import HardwareSpeakerGroup = __MaterialUI.SvgIcon; - export default HardwareSpeakerGroup; +declare module 'material-ui/svg-icons/av/forward-10' { + export import AvForward10 = __MaterialUI.SvgIcon; + export default AvForward10; } -declare module 'material-ui/svg-icons/hardware/desktop-windows' { - export import HardwareDesktopWindows = __MaterialUI.SvgIcon; - export default HardwareDesktopWindows; +declare module 'material-ui/svg-icons/av/forward-30' { + export import AvForward30 = __MaterialUI.SvgIcon; + export default AvForward30; } -declare module 'material-ui/svg-icons/hardware/laptop-mac' { - export import HardwareLaptopMac = __MaterialUI.SvgIcon; - export default HardwareLaptopMac; +declare module 'material-ui/svg-icons/av/forward-5' { + export import AvForward5 = __MaterialUI.SvgIcon; + export default AvForward5; } -declare module 'material-ui/svg-icons/hardware/keyboard-return' { - export import HardwareKeyboardReturn = __MaterialUI.SvgIcon; - export default HardwareKeyboardReturn; +declare module 'material-ui/svg-icons/av/games' { + export import AvGames = __MaterialUI.SvgIcon; + export default AvGames; } -declare module 'material-ui/svg-icons/hardware/gamepad' { - export import HardwareGamepad = __MaterialUI.SvgIcon; - export default HardwareGamepad; +declare module 'material-ui/svg-icons/av/hd' { + export import AvHd = __MaterialUI.SvgIcon; + export default AvHd; } -declare module 'material-ui/svg-icons/hardware/keyboard-arrow-up' { - export import HardwareKeyboardArrowUp = __MaterialUI.SvgIcon; - export default HardwareKeyboardArrowUp; +declare module 'material-ui/svg-icons/av/hearing' { + export import AvHearing = __MaterialUI.SvgIcon; + export default AvHearing; } -declare module 'material-ui/svg-icons/hardware/laptop' { - export import HardwareLaptop = __MaterialUI.SvgIcon; - export default HardwareLaptop; +declare module 'material-ui/svg-icons/av/high-quality' { + export import AvHighQuality = __MaterialUI.SvgIcon; + export default AvHighQuality; } -declare module 'material-ui/svg-icons/hardware/phone-iphone' { - export import HardwarePhoneIphone = __MaterialUI.SvgIcon; - export default HardwarePhoneIphone; +declare module 'material-ui/svg-icons/av/library-add' { + export import AvLibraryAdd = __MaterialUI.SvgIcon; + export default AvLibraryAdd; } -declare module 'material-ui/svg-icons/hardware/memory' { - export import HardwareMemory = __MaterialUI.SvgIcon; - export default HardwareMemory; +declare module 'material-ui/svg-icons/av/library-books' { + export import AvLibraryBooks = __MaterialUI.SvgIcon; + export default AvLibraryBooks; } -declare module 'material-ui/svg-icons/hardware/security' { - export import HardwareSecurity = __MaterialUI.SvgIcon; - export default HardwareSecurity; +declare module 'material-ui/svg-icons/av/library-music' { + export import AvLibraryMusic = __MaterialUI.SvgIcon; + export default AvLibraryMusic; } -declare module 'material-ui/svg-icons/hardware/keyboard-capslock' { - export import HardwareKeyboardCapslock = __MaterialUI.SvgIcon; - export default HardwareKeyboardCapslock; +declare module 'material-ui/svg-icons/av/loop' { + export import AvLoop = __MaterialUI.SvgIcon; + export default AvLoop; } -declare module 'material-ui/svg-icons/hardware/sim-card' { - export import HardwareSimCard = __MaterialUI.SvgIcon; - export default HardwareSimCard; +declare module 'material-ui/svg-icons/av/mic' { + export import AvMic = __MaterialUI.SvgIcon; + export default AvMic; } -declare module 'material-ui/svg-icons/hardware/devices-other' { - export import HardwareDevicesOther = __MaterialUI.SvgIcon; - export default HardwareDevicesOther; +declare module 'material-ui/svg-icons/av/mic-none' { + export import AvMicNone = __MaterialUI.SvgIcon; + export default AvMicNone; } -declare module 'material-ui/svg-icons/hardware/tablet-android' { - export import HardwareTabletAndroid = __MaterialUI.SvgIcon; - export default HardwareTabletAndroid; +declare module 'material-ui/svg-icons/av/mic-off' { + export import AvMicOff = __MaterialUI.SvgIcon; + export default AvMicOff; } -declare module 'material-ui/svg-icons/hardware/keyboard-arrow-right' { - export import HardwareKeyboardArrowRight = __MaterialUI.SvgIcon; - export default HardwareKeyboardArrowRight; +declare module 'material-ui/svg-icons/av/movie' { + export import AvMovie = __MaterialUI.SvgIcon; + export default AvMovie; } -declare module 'material-ui/svg-icons/hardware/keyboard-tab' { - export import HardwareKeyboardTab = __MaterialUI.SvgIcon; - export default HardwareKeyboardTab; +declare module 'material-ui/svg-icons/av/music-video' { + export import AvMusicVideo = __MaterialUI.SvgIcon; + export default AvMusicVideo; } -declare module 'material-ui/svg-icons/hardware/watch' { - export import HardwareWatch = __MaterialUI.SvgIcon; - export default HardwareWatch; +declare module 'material-ui/svg-icons/av/new-releases' { + export import AvNewReleases = __MaterialUI.SvgIcon; + export default AvNewReleases; } -declare module 'material-ui/svg-icons/hardware/speaker' { - export import HardwareSpeaker = __MaterialUI.SvgIcon; - export default HardwareSpeaker; +declare module 'material-ui/svg-icons/av/not-interested' { + export import AvNotInterested = __MaterialUI.SvgIcon; + export default AvNotInterested; } -declare module 'material-ui/svg-icons/hardware/phonelink' { - export import HardwarePhonelink = __MaterialUI.SvgIcon; - export default HardwarePhonelink; +declare module 'material-ui/svg-icons/av/note' { + export import AvNote = __MaterialUI.SvgIcon; + export default AvNote; } -declare module 'material-ui/svg-icons/hardware/laptop-windows' { - export import HardwareLaptopWindows = __MaterialUI.SvgIcon; - export default HardwareLaptopWindows; +declare module 'material-ui/svg-icons/av/pause' { + export import AvPause = __MaterialUI.SvgIcon; + export default AvPause; } -declare module 'material-ui/svg-icons/hardware/tv' { - export import HardwareTv = __MaterialUI.SvgIcon; - export default HardwareTv; +declare module 'material-ui/svg-icons/av/pause-circle-filled' { + export import AvPauseCircleFilled = __MaterialUI.SvgIcon; + export default AvPauseCircleFilled; } -declare module 'material-ui/svg-icons/hardware/headset-mic' { - export import HardwareHeadsetMic = __MaterialUI.SvgIcon; - export default HardwareHeadsetMic; +declare module 'material-ui/svg-icons/av/pause-circle-outline' { + export import AvPauseCircleOutline = __MaterialUI.SvgIcon; + export default AvPauseCircleOutline; } -declare module 'material-ui/svg-icons/hardware/videogame-asset' { - export import HardwareVideogameAsset = __MaterialUI.SvgIcon; - export default HardwareVideogameAsset; +declare module 'material-ui/svg-icons/av/play-arrow' { + export import AvPlayArrow = __MaterialUI.SvgIcon; + export default AvPlayArrow; } -declare module 'material-ui/svg-icons/hardware/keyboard-arrow-down' { - export import HardwareKeyboardArrowDown = __MaterialUI.SvgIcon; - export default HardwareKeyboardArrowDown; +declare module 'material-ui/svg-icons/av/play-circle-filled' { + export import AvPlayCircleFilled = __MaterialUI.SvgIcon; + export default AvPlayCircleFilled; } -declare module 'material-ui/svg-icons/hardware/keyboard-hide' { - export import HardwareKeyboardHide = __MaterialUI.SvgIcon; - export default HardwareKeyboardHide; +declare module 'material-ui/svg-icons/av/play-circle-outline' { + export import AvPlayCircleOutline = __MaterialUI.SvgIcon; + export default AvPlayCircleOutline; } -declare module 'material-ui/svg-icons/hardware/scanner' { - export import HardwareScanner = __MaterialUI.SvgIcon; - export default HardwareScanner; +declare module 'material-ui/svg-icons/av/playlist-add' { + export import AvPlaylistAdd = __MaterialUI.SvgIcon; + export default AvPlaylistAdd; } -declare module 'material-ui/svg-icons/hardware/laptop-chromebook' { - export import HardwareLaptopChromebook = __MaterialUI.SvgIcon; - export default HardwareLaptopChromebook; +declare module 'material-ui/svg-icons/av/playlist-add-check' { + export import AvPlaylistAddCheck = __MaterialUI.SvgIcon; + export default AvPlaylistAddCheck; } -declare module 'material-ui/svg-icons/hardware/tablet-mac' { - export import HardwareTabletMac = __MaterialUI.SvgIcon; - export default HardwareTabletMac; +declare module 'material-ui/svg-icons/av/playlist-play' { + export import AvPlaylistPlay = __MaterialUI.SvgIcon; + export default AvPlaylistPlay; } -declare module 'material-ui/svg-icons/hardware/cast' { - export import HardwareCast = __MaterialUI.SvgIcon; - export default HardwareCast; +declare module 'material-ui/svg-icons/av/queue' { + export import AvQueue = __MaterialUI.SvgIcon; + export default AvQueue; } -declare module 'material-ui/svg-icons/hardware/cast-connected' { - export import HardwareCastConnected = __MaterialUI.SvgIcon; - export default HardwareCastConnected; +declare module 'material-ui/svg-icons/av/queue-music' { + export import AvQueueMusic = __MaterialUI.SvgIcon; + export default AvQueueMusic; } -declare module 'material-ui/svg-icons/hardware/keyboard-arrow-left' { - export import HardwareKeyboardArrowLeft = __MaterialUI.SvgIcon; - export default HardwareKeyboardArrowLeft; +declare module 'material-ui/svg-icons/av/queue-play-next' { + export import AvQueuePlayNext = __MaterialUI.SvgIcon; + export default AvQueuePlayNext; } -declare module 'material-ui/svg-icons/hardware/phone-android' { - export import HardwarePhoneAndroid = __MaterialUI.SvgIcon; - export default HardwarePhoneAndroid; +declare module 'material-ui/svg-icons/av/radio' { + export import AvRadio = __MaterialUI.SvgIcon; + export default AvRadio; } -declare module 'material-ui/svg-icons/hardware/computer' { - export import HardwareComputer = __MaterialUI.SvgIcon; - export default HardwareComputer; +declare module 'material-ui/svg-icons/av/recent-actors' { + export import AvRecentActors = __MaterialUI.SvgIcon; + export default AvRecentActors; } -declare module 'material-ui/svg-icons/hardware/power-input' { - export import HardwarePowerInput = __MaterialUI.SvgIcon; - export default HardwarePowerInput; +declare module 'material-ui/svg-icons/av/remove-from-queue' { + export import AvRemoveFromQueue = __MaterialUI.SvgIcon; + export default AvRemoveFromQueue; } -declare module 'material-ui/svg-icons/hardware/smartphone' { - export import HardwareSmartphone = __MaterialUI.SvgIcon; - export default HardwareSmartphone; +declare module 'material-ui/svg-icons/av/repeat' { + export import AvRepeat = __MaterialUI.SvgIcon; + export default AvRepeat; } -declare module 'material-ui/svg-icons/hardware/router' { - export import HardwareRouter = __MaterialUI.SvgIcon; - export default HardwareRouter; +declare module 'material-ui/svg-icons/av/repeat-one' { + export import AvRepeatOne = __MaterialUI.SvgIcon; + export default AvRepeatOne; } -declare module 'material-ui/svg-icons/hardware/keyboard-backspace' { - export import HardwareKeyboardBackspace = __MaterialUI.SvgIcon; - export default HardwareKeyboardBackspace; +declare module 'material-ui/svg-icons/av/replay' { + export import AvReplay = __MaterialUI.SvgIcon; + export default AvReplay; } -declare module 'material-ui/svg-icons/hardware/developer-board' { - export import HardwareDeveloperBoard = __MaterialUI.SvgIcon; - export default HardwareDeveloperBoard; +declare module 'material-ui/svg-icons/av/replay-10' { + export import AvReplay10 = __MaterialUI.SvgIcon; + export default AvReplay10; } -declare module 'material-ui/svg-icons/hardware/device-hub' { - export import HardwareDeviceHub = __MaterialUI.SvgIcon; - export default HardwareDeviceHub; +declare module 'material-ui/svg-icons/av/replay-30' { + export import AvReplay30 = __MaterialUI.SvgIcon; + export default AvReplay30; } -declare module 'material-ui/svg-icons/hardware/mouse' { - export import HardwareMouse = __MaterialUI.SvgIcon; - export default HardwareMouse; +declare module 'material-ui/svg-icons/av/replay-5' { + export import AvReplay5 = __MaterialUI.SvgIcon; + export default AvReplay5; } -declare module 'material-ui/svg-icons/hardware/desktop-mac' { - export import HardwareDesktopMac = __MaterialUI.SvgIcon; - export default HardwareDesktopMac; +declare module 'material-ui/svg-icons/av/shuffle' { + export import AvShuffle = __MaterialUI.SvgIcon; + export default AvShuffle; } -declare module 'material-ui/svg-icons/hardware/tablet' { - export import HardwareTablet = __MaterialUI.SvgIcon; - export default HardwareTablet; +declare module 'material-ui/svg-icons/av/skip-next' { + export import AvSkipNext = __MaterialUI.SvgIcon; + export default AvSkipNext; +} + +declare module 'material-ui/svg-icons/av/skip-previous' { + export import AvSkipPrevious = __MaterialUI.SvgIcon; + export default AvSkipPrevious; +} + +declare module 'material-ui/svg-icons/av/slow-motion-video' { + export import AvSlowMotionVideo = __MaterialUI.SvgIcon; + export default AvSlowMotionVideo; +} + +declare module 'material-ui/svg-icons/av/snooze' { + export import AvSnooze = __MaterialUI.SvgIcon; + export default AvSnooze; +} + +declare module 'material-ui/svg-icons/av/sort-by-alpha' { + export import AvSortByAlpha = __MaterialUI.SvgIcon; + export default AvSortByAlpha; +} + +declare module 'material-ui/svg-icons/av/stop' { + export import AvStop = __MaterialUI.SvgIcon; + export default AvStop; +} + +declare module 'material-ui/svg-icons/av/subscriptions' { + export import AvSubscriptions = __MaterialUI.SvgIcon; + export default AvSubscriptions; +} + +declare module 'material-ui/svg-icons/av/subtitles' { + export import AvSubtitles = __MaterialUI.SvgIcon; + export default AvSubtitles; +} + +declare module 'material-ui/svg-icons/av/surround-sound' { + export import AvSurroundSound = __MaterialUI.SvgIcon; + export default AvSurroundSound; +} + +declare module 'material-ui/svg-icons/av/video-call' { + export import AvVideoCall = __MaterialUI.SvgIcon; + export default AvVideoCall; +} + +declare module 'material-ui/svg-icons/av/video-label' { + export import AvVideoLabel = __MaterialUI.SvgIcon; + export default AvVideoLabel; +} + +declare module 'material-ui/svg-icons/av/video-library' { + export import AvVideoLibrary = __MaterialUI.SvgIcon; + export default AvVideoLibrary; +} + +declare module 'material-ui/svg-icons/av/videocam' { + export import AvVideocam = __MaterialUI.SvgIcon; + export default AvVideocam; +} + +declare module 'material-ui/svg-icons/av/videocam-off' { + export import AvVideocamOff = __MaterialUI.SvgIcon; + export default AvVideocamOff; +} + +declare module 'material-ui/svg-icons/av/volume-down' { + export import AvVolumeDown = __MaterialUI.SvgIcon; + export default AvVolumeDown; +} + +declare module 'material-ui/svg-icons/av/volume-mute' { + export import AvVolumeMute = __MaterialUI.SvgIcon; + export default AvVolumeMute; +} + +declare module 'material-ui/svg-icons/av/volume-off' { + export import AvVolumeOff = __MaterialUI.SvgIcon; + export default AvVolumeOff; +} + +declare module 'material-ui/svg-icons/av/volume-up' { + export import AvVolumeUp = __MaterialUI.SvgIcon; + export default AvVolumeUp; +} + +declare module 'material-ui/svg-icons/av/web' { + export import AvWeb = __MaterialUI.SvgIcon; + export default AvWeb; +} + +declare module 'material-ui/svg-icons/av/web-asset' { + export import AvWebAsset = __MaterialUI.SvgIcon; + export default AvWebAsset; +} + +declare module 'material-ui/svg-icons/communication/business' { + export import CommunicationBusiness = __MaterialUI.SvgIcon; + export default CommunicationBusiness; +} + +declare module 'material-ui/svg-icons/communication/call' { + export import CommunicationCall = __MaterialUI.SvgIcon; + export default CommunicationCall; +} + +declare module 'material-ui/svg-icons/communication/call-end' { + export import CommunicationCallEnd = __MaterialUI.SvgIcon; + export default CommunicationCallEnd; +} + +declare module 'material-ui/svg-icons/communication/call-made' { + export import CommunicationCallMade = __MaterialUI.SvgIcon; + export default CommunicationCallMade; +} + +declare module 'material-ui/svg-icons/communication/call-merge' { + export import CommunicationCallMerge = __MaterialUI.SvgIcon; + export default CommunicationCallMerge; +} + +declare module 'material-ui/svg-icons/communication/call-missed' { + export import CommunicationCallMissed = __MaterialUI.SvgIcon; + export default CommunicationCallMissed; +} + +declare module 'material-ui/svg-icons/communication/call-missed-outgoing' { + export import CommunicationCallMissedOutgoing = __MaterialUI.SvgIcon; + export default CommunicationCallMissedOutgoing; +} + +declare module 'material-ui/svg-icons/communication/call-received' { + export import CommunicationCallReceived = __MaterialUI.SvgIcon; + export default CommunicationCallReceived; +} + +declare module 'material-ui/svg-icons/communication/call-split' { + export import CommunicationCallSplit = __MaterialUI.SvgIcon; + export default CommunicationCallSplit; +} + +declare module 'material-ui/svg-icons/communication/chat' { + export import CommunicationChat = __MaterialUI.SvgIcon; + export default CommunicationChat; +} + +declare module 'material-ui/svg-icons/communication/chat-bubble' { + export import CommunicationChatBubble = __MaterialUI.SvgIcon; + export default CommunicationChatBubble; +} + +declare module 'material-ui/svg-icons/communication/chat-bubble-outline' { + export import CommunicationChatBubbleOutline = __MaterialUI.SvgIcon; + export default CommunicationChatBubbleOutline; +} + +declare module 'material-ui/svg-icons/communication/clear-all' { + export import CommunicationClearAll = __MaterialUI.SvgIcon; + export default CommunicationClearAll; +} + +declare module 'material-ui/svg-icons/communication/comment' { + export import CommunicationComment = __MaterialUI.SvgIcon; + export default CommunicationComment; +} + +declare module 'material-ui/svg-icons/communication/contact-mail' { + export import CommunicationContactMail = __MaterialUI.SvgIcon; + export default CommunicationContactMail; +} + +declare module 'material-ui/svg-icons/communication/contact-phone' { + export import CommunicationContactPhone = __MaterialUI.SvgIcon; + export default CommunicationContactPhone; +} + +declare module 'material-ui/svg-icons/communication/contacts' { + export import CommunicationContacts = __MaterialUI.SvgIcon; + export default CommunicationContacts; +} + +declare module 'material-ui/svg-icons/communication/dialer-sip' { + export import CommunicationDialerSip = __MaterialUI.SvgIcon; + export default CommunicationDialerSip; +} + +declare module 'material-ui/svg-icons/communication/dialpad' { + export import CommunicationDialpad = __MaterialUI.SvgIcon; + export default CommunicationDialpad; +} + +declare module 'material-ui/svg-icons/communication/email' { + export import CommunicationEmail = __MaterialUI.SvgIcon; + export default CommunicationEmail; +} + +declare module 'material-ui/svg-icons/communication/forum' { + export import CommunicationForum = __MaterialUI.SvgIcon; + export default CommunicationForum; +} + +declare module 'material-ui/svg-icons/communication/import-contacts' { + export import CommunicationImportContacts = __MaterialUI.SvgIcon; + export default CommunicationImportContacts; +} + +declare module 'material-ui/svg-icons/communication/import-export' { + export import CommunicationImportExport = __MaterialUI.SvgIcon; + export default CommunicationImportExport; +} + +declare module 'material-ui/svg-icons/communication/invert-colors-off' { + export import CommunicationInvertColorsOff = __MaterialUI.SvgIcon; + export default CommunicationInvertColorsOff; +} + +declare module 'material-ui/svg-icons/communication/live-help' { + export import CommunicationLiveHelp = __MaterialUI.SvgIcon; + export default CommunicationLiveHelp; +} + +declare module 'material-ui/svg-icons/communication/location-off' { + export import CommunicationLocationOff = __MaterialUI.SvgIcon; + export default CommunicationLocationOff; +} + +declare module 'material-ui/svg-icons/communication/location-on' { + export import CommunicationLocationOn = __MaterialUI.SvgIcon; + export default CommunicationLocationOn; +} + +declare module 'material-ui/svg-icons/communication/mail-outline' { + export import CommunicationMailOutline = __MaterialUI.SvgIcon; + export default CommunicationMailOutline; +} + +declare module 'material-ui/svg-icons/communication/message' { + export import CommunicationMessage = __MaterialUI.SvgIcon; + export default CommunicationMessage; +} + +declare module 'material-ui/svg-icons/communication/no-sim' { + export import CommunicationNoSim = __MaterialUI.SvgIcon; + export default CommunicationNoSim; +} + +declare module 'material-ui/svg-icons/communication/phone' { + export import CommunicationPhone = __MaterialUI.SvgIcon; + export default CommunicationPhone; +} + +declare module 'material-ui/svg-icons/communication/phonelink-erase' { + export import CommunicationPhonelinkErase = __MaterialUI.SvgIcon; + export default CommunicationPhonelinkErase; +} + +declare module 'material-ui/svg-icons/communication/phonelink-lock' { + export import CommunicationPhonelinkLock = __MaterialUI.SvgIcon; + export default CommunicationPhonelinkLock; +} + +declare module 'material-ui/svg-icons/communication/phonelink-ring' { + export import CommunicationPhonelinkRing = __MaterialUI.SvgIcon; + export default CommunicationPhonelinkRing; +} + +declare module 'material-ui/svg-icons/communication/phonelink-setup' { + export import CommunicationPhonelinkSetup = __MaterialUI.SvgIcon; + export default CommunicationPhonelinkSetup; +} + +declare module 'material-ui/svg-icons/communication/portable-wifi-off' { + export import CommunicationPortableWifiOff = __MaterialUI.SvgIcon; + export default CommunicationPortableWifiOff; +} + +declare module 'material-ui/svg-icons/communication/present-to-all' { + export import CommunicationPresentToAll = __MaterialUI.SvgIcon; + export default CommunicationPresentToAll; +} + +declare module 'material-ui/svg-icons/communication/ring-volume' { + export import CommunicationRingVolume = __MaterialUI.SvgIcon; + export default CommunicationRingVolume; +} + +declare module 'material-ui/svg-icons/communication/rss-feed' { + export import CommunicationRssFeed = __MaterialUI.SvgIcon; + export default CommunicationRssFeed; +} + +declare module 'material-ui/svg-icons/communication/screen-share' { + export import CommunicationScreenShare = __MaterialUI.SvgIcon; + export default CommunicationScreenShare; +} + +declare module 'material-ui/svg-icons/communication/speaker-phone' { + export import CommunicationSpeakerPhone = __MaterialUI.SvgIcon; + export default CommunicationSpeakerPhone; +} + +declare module 'material-ui/svg-icons/communication/stay-current-landscape' { + export import CommunicationStayCurrentLandscape = __MaterialUI.SvgIcon; + export default CommunicationStayCurrentLandscape; +} + +declare module 'material-ui/svg-icons/communication/stay-current-portrait' { + export import CommunicationStayCurrentPortrait = __MaterialUI.SvgIcon; + export default CommunicationStayCurrentPortrait; +} + +declare module 'material-ui/svg-icons/communication/stay-primary-landscape' { + export import CommunicationStayPrimaryLandscape = __MaterialUI.SvgIcon; + export default CommunicationStayPrimaryLandscape; +} + +declare module 'material-ui/svg-icons/communication/stay-primary-portrait' { + export import CommunicationStayPrimaryPortrait = __MaterialUI.SvgIcon; + export default CommunicationStayPrimaryPortrait; +} + +declare module 'material-ui/svg-icons/communication/stop-screen-share' { + export import CommunicationStopScreenShare = __MaterialUI.SvgIcon; + export default CommunicationStopScreenShare; +} + +declare module 'material-ui/svg-icons/communication/swap-calls' { + export import CommunicationSwapCalls = __MaterialUI.SvgIcon; + export default CommunicationSwapCalls; +} + +declare module 'material-ui/svg-icons/communication/textsms' { + export import CommunicationTextsms = __MaterialUI.SvgIcon; + export default CommunicationTextsms; +} + +declare module 'material-ui/svg-icons/communication/voicemail' { + export import CommunicationVoicemail = __MaterialUI.SvgIcon; + export default CommunicationVoicemail; +} + +declare module 'material-ui/svg-icons/communication/vpn-key' { + export import CommunicationVpnKey = __MaterialUI.SvgIcon; + export default CommunicationVpnKey; +} + +declare module 'material-ui/svg-icons/content/add' { + export import ContentAdd = __MaterialUI.SvgIcon; + export default ContentAdd; } declare module 'material-ui/svg-icons/content/add-box' { @@ -4471,24 +4114,174 @@ declare module 'material-ui/svg-icons/content/add-box' { export default ContentAddBox; } +declare module 'material-ui/svg-icons/content/add-circle' { + export import ContentAddCircle = __MaterialUI.SvgIcon; + export default ContentAddCircle; +} + +declare module 'material-ui/svg-icons/content/add-circle-outline' { + export import ContentAddCircleOutline = __MaterialUI.SvgIcon; + export default ContentAddCircleOutline; +} + +declare module 'material-ui/svg-icons/content/archive' { + export import ContentArchive = __MaterialUI.SvgIcon; + export default ContentArchive; +} + +declare module 'material-ui/svg-icons/content/backspace' { + export import ContentBackspace = __MaterialUI.SvgIcon; + export default ContentBackspace; +} + +declare module 'material-ui/svg-icons/content/block' { + export import ContentBlock = __MaterialUI.SvgIcon; + export default ContentBlock; +} + +declare module 'material-ui/svg-icons/content/clear' { + export import ContentClear = __MaterialUI.SvgIcon; + export default ContentClear; +} + +declare module 'material-ui/svg-icons/content/content-copy' { + export import ContentContentCopy = __MaterialUI.SvgIcon; + export default ContentContentCopy; +} + +declare module 'material-ui/svg-icons/content/content-cut' { + export import ContentContentCut = __MaterialUI.SvgIcon; + export default ContentContentCut; +} + +declare module 'material-ui/svg-icons/content/content-paste' { + export import ContentContentPaste = __MaterialUI.SvgIcon; + export default ContentContentPaste; +} + +declare module 'material-ui/svg-icons/content/create' { + export import ContentCreate = __MaterialUI.SvgIcon; + export default ContentCreate; +} + +declare module 'material-ui/svg-icons/content/delete-sweep' { + export import ContentDeleteSweep = __MaterialUI.SvgIcon; + export default ContentDeleteSweep; +} + +declare module 'material-ui/svg-icons/content/drafts' { + export import ContentDrafts = __MaterialUI.SvgIcon; + export default ContentDrafts; +} + declare module 'material-ui/svg-icons/content/filter-list' { export import ContentFilterList = __MaterialUI.SvgIcon; export default ContentFilterList; } +declare module 'material-ui/svg-icons/content/flag' { + export import ContentFlag = __MaterialUI.SvgIcon; + export default ContentFlag; +} + +declare module 'material-ui/svg-icons/content/font-download' { + export import ContentFontDownload = __MaterialUI.SvgIcon; + export default ContentFontDownload; +} + +declare module 'material-ui/svg-icons/content/forward' { + export import ContentForward = __MaterialUI.SvgIcon; + export default ContentForward; +} + +declare module 'material-ui/svg-icons/content/gesture' { + export import ContentGesture = __MaterialUI.SvgIcon; + export default ContentGesture; +} + +declare module 'material-ui/svg-icons/content/inbox' { + export import ContentInbox = __MaterialUI.SvgIcon; + export default ContentInbox; +} + +declare module 'material-ui/svg-icons/content/link' { + export import ContentLink = __MaterialUI.SvgIcon; + export default ContentLink; +} + +declare module 'material-ui/svg-icons/content/low-priority' { + export import ContentLowPriority = __MaterialUI.SvgIcon; + export default ContentLowPriority; +} + +declare module 'material-ui/svg-icons/content/mail' { + export import ContentMail = __MaterialUI.SvgIcon; + export default ContentMail; +} + +declare module 'material-ui/svg-icons/content/markunread' { + export import ContentMarkunread = __MaterialUI.SvgIcon; + export default ContentMarkunread; +} + +declare module 'material-ui/svg-icons/content/move-to-inbox' { + export import ContentMoveToInbox = __MaterialUI.SvgIcon; + export default ContentMoveToInbox; +} + +declare module 'material-ui/svg-icons/content/next-week' { + export import ContentNextWeek = __MaterialUI.SvgIcon; + export default ContentNextWeek; +} + +declare module 'material-ui/svg-icons/content/redo' { + export import ContentRedo = __MaterialUI.SvgIcon; + export default ContentRedo; +} + +declare module 'material-ui/svg-icons/content/remove' { + export import ContentRemove = __MaterialUI.SvgIcon; + export default ContentRemove; +} + +declare module 'material-ui/svg-icons/content/remove-circle' { + export import ContentRemoveCircle = __MaterialUI.SvgIcon; + export default ContentRemoveCircle; +} + +declare module 'material-ui/svg-icons/content/remove-circle-outline' { + export import ContentRemoveCircleOutline = __MaterialUI.SvgIcon; + export default ContentRemoveCircleOutline; +} + +declare module 'material-ui/svg-icons/content/reply' { + export import ContentReply = __MaterialUI.SvgIcon; + export default ContentReply; +} + +declare module 'material-ui/svg-icons/content/reply-all' { + export import ContentReplyAll = __MaterialUI.SvgIcon; + export default ContentReplyAll; +} + +declare module 'material-ui/svg-icons/content/report' { + export import ContentReport = __MaterialUI.SvgIcon; + export default ContentReport; +} + declare module 'material-ui/svg-icons/content/save' { export import ContentSave = __MaterialUI.SvgIcon; export default ContentSave; } -declare module 'material-ui/svg-icons/content/unarchive' { - export import ContentUnarchive = __MaterialUI.SvgIcon; - export default ContentUnarchive; +declare module 'material-ui/svg-icons/content/select-all' { + export import ContentSelectAll = __MaterialUI.SvgIcon; + export default ContentSelectAll; } -declare module 'material-ui/svg-icons/content/link' { - export import ContentLink = __MaterialUI.SvgIcon; - export default ContentLink; +declare module 'material-ui/svg-icons/content/send' { + export import ContentSend = __MaterialUI.SvgIcon; + export default ContentSend; } declare module 'material-ui/svg-icons/content/sort' { @@ -4501,104 +4294,9 @@ declare module 'material-ui/svg-icons/content/text-format' { export default ContentTextFormat; } -declare module 'material-ui/svg-icons/content/add' { - export import ContentAdd = __MaterialUI.SvgIcon; - export default ContentAdd; -} - -declare module 'material-ui/svg-icons/content/send' { - export import ContentSend = __MaterialUI.SvgIcon; - export default ContentSend; -} - -declare module 'material-ui/svg-icons/content/gesture' { - export import ContentGesture = __MaterialUI.SvgIcon; - export default ContentGesture; -} - -declare module 'material-ui/svg-icons/content/archive' { - export import ContentArchive = __MaterialUI.SvgIcon; - export default ContentArchive; -} - -declare module 'material-ui/svg-icons/content/weekend' { - export import ContentWeekend = __MaterialUI.SvgIcon; - export default ContentWeekend; -} - -declare module 'material-ui/svg-icons/content/markunread' { - export import ContentMarkunread = __MaterialUI.SvgIcon; - export default ContentMarkunread; -} - -declare module 'material-ui/svg-icons/content/create' { - export import ContentCreate = __MaterialUI.SvgIcon; - export default ContentCreate; -} - -declare module 'material-ui/svg-icons/content/content-cut' { - export import ContentContentCut = __MaterialUI.SvgIcon; - export default ContentContentCut; -} - -declare module 'material-ui/svg-icons/content/clear' { - export import ContentClear = __MaterialUI.SvgIcon; - export default ContentClear; -} - -declare module 'material-ui/svg-icons/content/redo' { - export import ContentRedo = __MaterialUI.SvgIcon; - export default ContentRedo; -} - -declare module 'material-ui/svg-icons/content/block' { - export import ContentBlock = __MaterialUI.SvgIcon; - export default ContentBlock; -} - -declare module 'material-ui/svg-icons/content/forward' { - export import ContentForward = __MaterialUI.SvgIcon; - export default ContentForward; -} - -declare module 'material-ui/svg-icons/content/mail' { - export import ContentMail = __MaterialUI.SvgIcon; - export default ContentMail; -} - -declare module 'material-ui/svg-icons/content/inbox' { - export import ContentInbox = __MaterialUI.SvgIcon; - export default ContentInbox; -} - -declare module 'material-ui/svg-icons/content/remove-circle' { - export import ContentRemoveCircle = __MaterialUI.SvgIcon; - export default ContentRemoveCircle; -} - -declare module 'material-ui/svg-icons/content/move-to-inbox' { - export import ContentMoveToInbox = __MaterialUI.SvgIcon; - export default ContentMoveToInbox; -} - -declare module 'material-ui/svg-icons/content/flag' { - export import ContentFlag = __MaterialUI.SvgIcon; - export default ContentFlag; -} - -declare module 'material-ui/svg-icons/content/reply-all' { - export import ContentReplyAll = __MaterialUI.SvgIcon; - export default ContentReplyAll; -} - -declare module 'material-ui/svg-icons/content/remove' { - export import ContentRemove = __MaterialUI.SvgIcon; - export default ContentRemove; -} - -declare module 'material-ui/svg-icons/content/next-week' { - export import ContentNextWeek = __MaterialUI.SvgIcon; - export default ContentNextWeek; +declare module 'material-ui/svg-icons/content/unarchive' { + export import ContentUnarchive = __MaterialUI.SvgIcon; + export default ContentUnarchive; } declare module 'material-ui/svg-icons/content/undo' { @@ -4606,534 +4304,9 @@ declare module 'material-ui/svg-icons/content/undo' { export default ContentUndo; } -declare module 'material-ui/svg-icons/content/font-download' { - export import ContentFontDownload = __MaterialUI.SvgIcon; - export default ContentFontDownload; -} - -declare module 'material-ui/svg-icons/content/remove-circle-outline' { - export import ContentRemoveCircleOutline = __MaterialUI.SvgIcon; - export default ContentRemoveCircleOutline; -} - -declare module 'material-ui/svg-icons/content/backspace' { - export import ContentBackspace = __MaterialUI.SvgIcon; - export default ContentBackspace; -} - -declare module 'material-ui/svg-icons/content/reply' { - export import ContentReply = __MaterialUI.SvgIcon; - export default ContentReply; -} - -declare module 'material-ui/svg-icons/content/report' { - export import ContentReport = __MaterialUI.SvgIcon; - export default ContentReport; -} - -declare module 'material-ui/svg-icons/content/add-circle' { - export import ContentAddCircle = __MaterialUI.SvgIcon; - export default ContentAddCircle; -} - -declare module 'material-ui/svg-icons/content/content-copy' { - export import ContentContentCopy = __MaterialUI.SvgIcon; - export default ContentContentCopy; -} - -declare module 'material-ui/svg-icons/content/content-paste' { - export import ContentContentPaste = __MaterialUI.SvgIcon; - export default ContentContentPaste; -} - -declare module 'material-ui/svg-icons/content/select-all' { - export import ContentSelectAll = __MaterialUI.SvgIcon; - export default ContentSelectAll; -} - -declare module 'material-ui/svg-icons/content/add-circle-outline' { - export import ContentAddCircleOutline = __MaterialUI.SvgIcon; - export default ContentAddCircleOutline; -} - -declare module 'material-ui/svg-icons/content/drafts' { - export import ContentDrafts = __MaterialUI.SvgIcon; - export default ContentDrafts; -} - -declare module 'material-ui/svg-icons/editor/wrap-text' { - export import EditorWrapText = __MaterialUI.SvgIcon; - export default EditorWrapText; -} - -declare module 'material-ui/svg-icons/editor/format-size' { - export import EditorFormatSize = __MaterialUI.SvgIcon; - export default EditorFormatSize; -} - -declare module 'material-ui/svg-icons/editor/functions' { - export import EditorFunctions = __MaterialUI.SvgIcon; - export default EditorFunctions; -} - -declare module 'material-ui/svg-icons/editor/format-bold' { - export import EditorFormatBold = __MaterialUI.SvgIcon; - export default EditorFormatBold; -} - -declare module 'material-ui/svg-icons/editor/format-align-center' { - export import EditorFormatAlignCenter = __MaterialUI.SvgIcon; - export default EditorFormatAlignCenter; -} - -declare module 'material-ui/svg-icons/editor/mode-comment' { - export import EditorModeComment = __MaterialUI.SvgIcon; - export default EditorModeComment; -} - -declare module 'material-ui/svg-icons/editor/money-off' { - export import EditorMoneyOff = __MaterialUI.SvgIcon; - export default EditorMoneyOff; -} - -declare module 'material-ui/svg-icons/editor/format-textdirection-r-to-l' { - export import EditorFormatTextdirectionRToL = __MaterialUI.SvgIcon; - export default EditorFormatTextdirectionRToL; -} - -declare module 'material-ui/svg-icons/editor/insert-drive-file' { - export import EditorInsertDriveFile = __MaterialUI.SvgIcon; - export default EditorInsertDriveFile; -} - -declare module 'material-ui/svg-icons/editor/highlight' { - export import EditorHighlight = __MaterialUI.SvgIcon; - export default EditorHighlight; -} - -declare module 'material-ui/svg-icons/editor/format-clear' { - export import EditorFormatClear = __MaterialUI.SvgIcon; - export default EditorFormatClear; -} - -declare module 'material-ui/svg-icons/editor/border-style' { - export import EditorBorderStyle = __MaterialUI.SvgIcon; - export default EditorBorderStyle; -} - -declare module 'material-ui/svg-icons/editor/format-shapes' { - export import EditorFormatShapes = __MaterialUI.SvgIcon; - export default EditorFormatShapes; -} - -declare module 'material-ui/svg-icons/editor/format-paint' { - export import EditorFormatPaint = __MaterialUI.SvgIcon; - export default EditorFormatPaint; -} - -declare module 'material-ui/svg-icons/editor/linear-scale' { - export import EditorLinearScale = __MaterialUI.SvgIcon; - export default EditorLinearScale; -} - -declare module 'material-ui/svg-icons/editor/insert-photo' { - export import EditorInsertPhoto = __MaterialUI.SvgIcon; - export default EditorInsertPhoto; -} - -declare module 'material-ui/svg-icons/editor/drag-handle' { - export import EditorDragHandle = __MaterialUI.SvgIcon; - export default EditorDragHandle; -} - -declare module 'material-ui/svg-icons/editor/merge-type' { - export import EditorMergeType = __MaterialUI.SvgIcon; - export default EditorMergeType; -} - -declare module 'material-ui/svg-icons/editor/attach-money' { - export import EditorAttachMoney = __MaterialUI.SvgIcon; - export default EditorAttachMoney; -} - -declare module 'material-ui/svg-icons/editor/border-vertical' { - export import EditorBorderVertical = __MaterialUI.SvgIcon; - export default EditorBorderVertical; -} - -declare module 'material-ui/svg-icons/editor/format-indent-decrease' { - export import EditorFormatIndentDecrease = __MaterialUI.SvgIcon; - export default EditorFormatIndentDecrease; -} - -declare module 'material-ui/svg-icons/editor/insert-emoticon' { - export import EditorInsertEmoticon = __MaterialUI.SvgIcon; - export default EditorInsertEmoticon; -} - -declare module 'material-ui/svg-icons/editor/insert-invitation' { - export import EditorInsertInvitation = __MaterialUI.SvgIcon; - export default EditorInsertInvitation; -} - -declare module 'material-ui/svg-icons/editor/format-color-fill' { - export import EditorFormatColorFill = __MaterialUI.SvgIcon; - export default EditorFormatColorFill; -} - -declare module 'material-ui/svg-icons/editor/mode-edit' { - export import EditorModeEdit = __MaterialUI.SvgIcon; - export default EditorModeEdit; -} - -declare module 'material-ui/svg-icons/editor/vertical-align-bottom' { - export import EditorVerticalAlignBottom = __MaterialUI.SvgIcon; - export default EditorVerticalAlignBottom; -} - -declare module 'material-ui/svg-icons/editor/format-align-justify' { - export import EditorFormatAlignJustify = __MaterialUI.SvgIcon; - export default EditorFormatAlignJustify; -} - -declare module 'material-ui/svg-icons/editor/attach-file' { - export import EditorAttachFile = __MaterialUI.SvgIcon; - export default EditorAttachFile; -} - -declare module 'material-ui/svg-icons/editor/space-bar' { - export import EditorSpaceBar = __MaterialUI.SvgIcon; - export default EditorSpaceBar; -} - -declare module 'material-ui/svg-icons/editor/border-clear' { - export import EditorBorderClear = __MaterialUI.SvgIcon; - export default EditorBorderClear; -} - -declare module 'material-ui/svg-icons/editor/short-text' { - export import EditorShortText = __MaterialUI.SvgIcon; - export default EditorShortText; -} - -declare module 'material-ui/svg-icons/editor/insert-link' { - export import EditorInsertLink = __MaterialUI.SvgIcon; - export default EditorInsertLink; -} - -declare module 'material-ui/svg-icons/editor/format-list-numbered' { - export import EditorFormatListNumbered = __MaterialUI.SvgIcon; - export default EditorFormatListNumbered; -} - -declare module 'material-ui/svg-icons/editor/format-quote' { - export import EditorFormatQuote = __MaterialUI.SvgIcon; - export default EditorFormatQuote; -} - -declare module 'material-ui/svg-icons/editor/border-left' { - export import EditorBorderLeft = __MaterialUI.SvgIcon; - export default EditorBorderLeft; -} - -declare module 'material-ui/svg-icons/editor/format-underlined' { - export import EditorFormatUnderlined = __MaterialUI.SvgIcon; - export default EditorFormatUnderlined; -} - -declare module 'material-ui/svg-icons/editor/text-fields' { - export import EditorTextFields = __MaterialUI.SvgIcon; - export default EditorTextFields; -} - -declare module 'material-ui/svg-icons/editor/format-italic' { - export import EditorFormatItalic = __MaterialUI.SvgIcon; - export default EditorFormatItalic; -} - -declare module 'material-ui/svg-icons/editor/publish' { - export import EditorPublish = __MaterialUI.SvgIcon; - export default EditorPublish; -} - -declare module 'material-ui/svg-icons/editor/border-top' { - export import EditorBorderTop = __MaterialUI.SvgIcon; - export default EditorBorderTop; -} - -declare module 'material-ui/svg-icons/editor/format-indent-increase' { - export import EditorFormatIndentIncrease = __MaterialUI.SvgIcon; - export default EditorFormatIndentIncrease; -} - -declare module 'material-ui/svg-icons/editor/border-bottom' { - export import EditorBorderBottom = __MaterialUI.SvgIcon; - export default EditorBorderBottom; -} - -declare module 'material-ui/svg-icons/editor/format-align-right' { - export import EditorFormatAlignRight = __MaterialUI.SvgIcon; - export default EditorFormatAlignRight; -} - -declare module 'material-ui/svg-icons/editor/border-right' { - export import EditorBorderRight = __MaterialUI.SvgIcon; - export default EditorBorderRight; -} - -declare module 'material-ui/svg-icons/editor/insert-comment' { - export import EditorInsertComment = __MaterialUI.SvgIcon; - export default EditorInsertComment; -} - -declare module 'material-ui/svg-icons/editor/strikethrough-s' { - export import EditorStrikethroughS = __MaterialUI.SvgIcon; - export default EditorStrikethroughS; -} - -declare module 'material-ui/svg-icons/editor/format-strikethrough' { - export import EditorFormatStrikethrough = __MaterialUI.SvgIcon; - export default EditorFormatStrikethrough; -} - -declare module 'material-ui/svg-icons/editor/insert-chart' { - export import EditorInsertChart = __MaterialUI.SvgIcon; - export default EditorInsertChart; -} - -declare module 'material-ui/svg-icons/editor/format-color-reset' { - export import EditorFormatColorReset = __MaterialUI.SvgIcon; - export default EditorFormatColorReset; -} - -declare module 'material-ui/svg-icons/editor/border-inner' { - export import EditorBorderInner = __MaterialUI.SvgIcon; - export default EditorBorderInner; -} - -declare module 'material-ui/svg-icons/editor/format-color-text' { - export import EditorFormatColorText = __MaterialUI.SvgIcon; - export default EditorFormatColorText; -} - -declare module 'material-ui/svg-icons/editor/border-horizontal' { - export import EditorBorderHorizontal = __MaterialUI.SvgIcon; - export default EditorBorderHorizontal; -} - -declare module 'material-ui/svg-icons/editor/format-list-bulleted' { - export import EditorFormatListBulleted = __MaterialUI.SvgIcon; - export default EditorFormatListBulleted; -} - -declare module 'material-ui/svg-icons/editor/border-outer' { - export import EditorBorderOuter = __MaterialUI.SvgIcon; - export default EditorBorderOuter; -} - -declare module 'material-ui/svg-icons/editor/format-align-left' { - export import EditorFormatAlignLeft = __MaterialUI.SvgIcon; - export default EditorFormatAlignLeft; -} - -declare module 'material-ui/svg-icons/editor/border-color' { - export import EditorBorderColor = __MaterialUI.SvgIcon; - export default EditorBorderColor; -} - -declare module 'material-ui/svg-icons/editor/format-textdirection-l-to-r' { - export import EditorFormatTextdirectionLToR = __MaterialUI.SvgIcon; - export default EditorFormatTextdirectionLToR; -} - -declare module 'material-ui/svg-icons/editor/vertical-align-center' { - export import EditorVerticalAlignCenter = __MaterialUI.SvgIcon; - export default EditorVerticalAlignCenter; -} - -declare module 'material-ui/svg-icons/editor/vertical-align-top' { - export import EditorVerticalAlignTop = __MaterialUI.SvgIcon; - export default EditorVerticalAlignTop; -} - -declare module 'material-ui/svg-icons/editor/format-line-spacing' { - export import EditorFormatLineSpacing = __MaterialUI.SvgIcon; - export default EditorFormatLineSpacing; -} - -declare module 'material-ui/svg-icons/editor/border-all' { - export import EditorBorderAll = __MaterialUI.SvgIcon; - export default EditorBorderAll; -} - -declare module 'material-ui/svg-icons/device/screen-lock-portrait' { - export import DeviceScreenLockPortrait = __MaterialUI.SvgIcon; - export default DeviceScreenLockPortrait; -} - -declare module 'material-ui/svg-icons/device/signal-cellular-off' { - export import DeviceSignalCellularOff = __MaterialUI.SvgIcon; - export default DeviceSignalCellularOff; -} - -declare module 'material-ui/svg-icons/device/bluetooth-searching' { - export import DeviceBluetoothSearching = __MaterialUI.SvgIcon; - export default DeviceBluetoothSearching; -} - -declare module 'material-ui/svg-icons/device/signal-cellular-3-bar' { - export import DeviceSignalCellular3Bar = __MaterialUI.SvgIcon; - export default DeviceSignalCellular3Bar; -} - -declare module 'material-ui/svg-icons/device/network-cell' { - export import DeviceNetworkCell = __MaterialUI.SvgIcon; - export default DeviceNetworkCell; -} - -declare module 'material-ui/svg-icons/device/signal-cellular-no-sim' { - export import DeviceSignalCellularNoSim = __MaterialUI.SvgIcon; - export default DeviceSignalCellularNoSim; -} - -declare module 'material-ui/svg-icons/device/signal-wifi-2-bar' { - export import DeviceSignalWifi2Bar = __MaterialUI.SvgIcon; - export default DeviceSignalWifi2Bar; -} - -declare module 'material-ui/svg-icons/device/devices' { - export import DeviceDevices = __MaterialUI.SvgIcon; - export default DeviceDevices; -} - -declare module 'material-ui/svg-icons/device/battery-90' { - export import DeviceBattery90 = __MaterialUI.SvgIcon; - export default DeviceBattery90; -} - -declare module 'material-ui/svg-icons/device/battery-charging-80' { - export import DeviceBatteryCharging80 = __MaterialUI.SvgIcon; - export default DeviceBatteryCharging80; -} - -declare module 'material-ui/svg-icons/device/location-searching' { - export import DeviceLocationSearching = __MaterialUI.SvgIcon; - export default DeviceLocationSearching; -} - -declare module 'material-ui/svg-icons/device/wallpaper' { - export import DeviceWallpaper = __MaterialUI.SvgIcon; - export default DeviceWallpaper; -} - -declare module 'material-ui/svg-icons/device/screen-lock-rotation' { - export import DeviceScreenLockRotation = __MaterialUI.SvgIcon; - export default DeviceScreenLockRotation; -} - -declare module 'material-ui/svg-icons/device/screen-lock-landscape' { - export import DeviceScreenLockLandscape = __MaterialUI.SvgIcon; - export default DeviceScreenLockLandscape; -} - -declare module 'material-ui/svg-icons/device/battery-charging-20' { - export import DeviceBatteryCharging20 = __MaterialUI.SvgIcon; - export default DeviceBatteryCharging20; -} - -declare module 'material-ui/svg-icons/device/usb' { - export import DeviceUsb = __MaterialUI.SvgIcon; - export default DeviceUsb; -} - -declare module 'material-ui/svg-icons/device/airplanemode-active' { - export import DeviceAirplanemodeActive = __MaterialUI.SvgIcon; - export default DeviceAirplanemodeActive; -} - -declare module 'material-ui/svg-icons/device/network-wifi' { - export import DeviceNetworkWifi = __MaterialUI.SvgIcon; - export default DeviceNetworkWifi; -} - -declare module 'material-ui/svg-icons/device/graphic-eq' { - export import DeviceGraphicEq = __MaterialUI.SvgIcon; - export default DeviceGraphicEq; -} - -declare module 'material-ui/svg-icons/device/bluetooth-connected' { - export import DeviceBluetoothConnected = __MaterialUI.SvgIcon; - export default DeviceBluetoothConnected; -} - -declare module 'material-ui/svg-icons/device/gps-fixed' { - export import DeviceGpsFixed = __MaterialUI.SvgIcon; - export default DeviceGpsFixed; -} - -declare module 'material-ui/svg-icons/device/signal-cellular-connected-no-internet-4-bar' { - export import DeviceSignalCellularConnectedNoInternet4Bar = __MaterialUI.SvgIcon; - export default DeviceSignalCellularConnectedNoInternet4Bar; -} - -declare module 'material-ui/svg-icons/device/brightness-medium' { - export import DeviceBrightnessMedium = __MaterialUI.SvgIcon; - export default DeviceBrightnessMedium; -} - -declare module 'material-ui/svg-icons/device/signal-cellular-connected-no-internet-3-bar' { - export import DeviceSignalCellularConnectedNoInternet3Bar = __MaterialUI.SvgIcon; - export default DeviceSignalCellularConnectedNoInternet3Bar; -} - -declare module 'material-ui/svg-icons/device/signal-wifi-3-bar-lock' { - export import DeviceSignalWifi3BarLock = __MaterialUI.SvgIcon; - export default DeviceSignalWifi3BarLock; -} - -declare module 'material-ui/svg-icons/device/battery-80' { - export import DeviceBattery80 = __MaterialUI.SvgIcon; - export default DeviceBattery80; -} - -declare module 'material-ui/svg-icons/device/wifi-lock' { - export import DeviceWifiLock = __MaterialUI.SvgIcon; - export default DeviceWifiLock; -} - -declare module 'material-ui/svg-icons/device/signal-wifi-2-bar-lock' { - export import DeviceSignalWifi2BarLock = __MaterialUI.SvgIcon; - export default DeviceSignalWifi2BarLock; -} - -declare module 'material-ui/svg-icons/device/bluetooth' { - export import DeviceBluetooth = __MaterialUI.SvgIcon; - export default DeviceBluetooth; -} - -declare module 'material-ui/svg-icons/device/access-time' { - export import DeviceAccessTime = __MaterialUI.SvgIcon; - export default DeviceAccessTime; -} - -declare module 'material-ui/svg-icons/device/battery-charging-30' { - export import DeviceBatteryCharging30 = __MaterialUI.SvgIcon; - export default DeviceBatteryCharging30; -} - -declare module 'material-ui/svg-icons/device/signal-wifi-off' { - export import DeviceSignalWifiOff = __MaterialUI.SvgIcon; - export default DeviceSignalWifiOff; -} - -declare module 'material-ui/svg-icons/device/dvr' { - export import DeviceDvr = __MaterialUI.SvgIcon; - export default DeviceDvr; -} - -declare module 'material-ui/svg-icons/device/battery-60' { - export import DeviceBattery60 = __MaterialUI.SvgIcon; - export default DeviceBattery60; +declare module 'material-ui/svg-icons/content/weekend' { + export import ContentWeekend = __MaterialUI.SvgIcon; + export default ContentWeekend; } declare module 'material-ui/svg-icons/device/access-alarm' { @@ -5141,24 +4314,94 @@ declare module 'material-ui/svg-icons/device/access-alarm' { export default DeviceAccessAlarm; } -declare module 'material-ui/svg-icons/device/nfc' { - export import DeviceNfc = __MaterialUI.SvgIcon; - export default DeviceNfc; -} - -declare module 'material-ui/svg-icons/device/data-usage' { - export import DeviceDataUsage = __MaterialUI.SvgIcon; - export default DeviceDataUsage; -} - declare module 'material-ui/svg-icons/device/access-alarms' { export import DeviceAccessAlarms = __MaterialUI.SvgIcon; export default DeviceAccessAlarms; } -declare module 'material-ui/svg-icons/device/battery-full' { - export import DeviceBatteryFull = __MaterialUI.SvgIcon; - export default DeviceBatteryFull; +declare module 'material-ui/svg-icons/device/access-time' { + export import DeviceAccessTime = __MaterialUI.SvgIcon; + export default DeviceAccessTime; +} + +declare module 'material-ui/svg-icons/device/add-alarm' { + export import DeviceAddAlarm = __MaterialUI.SvgIcon; + export default DeviceAddAlarm; +} + +declare module 'material-ui/svg-icons/device/airplanemode-active' { + export import DeviceAirplanemodeActive = __MaterialUI.SvgIcon; + export default DeviceAirplanemodeActive; +} + +declare module 'material-ui/svg-icons/device/airplanemode-inactive' { + export import DeviceAirplanemodeInactive = __MaterialUI.SvgIcon; + export default DeviceAirplanemodeInactive; +} + +declare module 'material-ui/svg-icons/device/battery-20' { + export import DeviceBattery20 = __MaterialUI.SvgIcon; + export default DeviceBattery20; +} + +declare module 'material-ui/svg-icons/device/battery-30' { + export import DeviceBattery30 = __MaterialUI.SvgIcon; + export default DeviceBattery30; +} + +declare module 'material-ui/svg-icons/device/battery-50' { + export import DeviceBattery50 = __MaterialUI.SvgIcon; + export default DeviceBattery50; +} + +declare module 'material-ui/svg-icons/device/battery-60' { + export import DeviceBattery60 = __MaterialUI.SvgIcon; + export default DeviceBattery60; +} + +declare module 'material-ui/svg-icons/device/battery-80' { + export import DeviceBattery80 = __MaterialUI.SvgIcon; + export default DeviceBattery80; +} + +declare module 'material-ui/svg-icons/device/battery-90' { + export import DeviceBattery90 = __MaterialUI.SvgIcon; + export default DeviceBattery90; +} + +declare module 'material-ui/svg-icons/device/battery-alert' { + export import DeviceBatteryAlert = __MaterialUI.SvgIcon; + export default DeviceBatteryAlert; +} + +declare module 'material-ui/svg-icons/device/battery-charging-20' { + export import DeviceBatteryCharging20 = __MaterialUI.SvgIcon; + export default DeviceBatteryCharging20; +} + +declare module 'material-ui/svg-icons/device/battery-charging-30' { + export import DeviceBatteryCharging30 = __MaterialUI.SvgIcon; + export default DeviceBatteryCharging30; +} + +declare module 'material-ui/svg-icons/device/battery-charging-50' { + export import DeviceBatteryCharging50 = __MaterialUI.SvgIcon; + export default DeviceBatteryCharging50; +} + +declare module 'material-ui/svg-icons/device/battery-charging-60' { + export import DeviceBatteryCharging60 = __MaterialUI.SvgIcon; + export default DeviceBatteryCharging60; +} + +declare module 'material-ui/svg-icons/device/battery-charging-80' { + export import DeviceBatteryCharging80 = __MaterialUI.SvgIcon; + export default DeviceBatteryCharging80; +} + +declare module 'material-ui/svg-icons/device/battery-charging-90' { + export import DeviceBatteryCharging90 = __MaterialUI.SvgIcon; + export default DeviceBatteryCharging90; } declare module 'material-ui/svg-icons/device/battery-charging-full' { @@ -5166,9 +4409,9 @@ declare module 'material-ui/svg-icons/device/battery-charging-full' { export default DeviceBatteryChargingFull; } -declare module 'material-ui/svg-icons/device/settings-system-daydream' { - export import DeviceSettingsSystemDaydream = __MaterialUI.SvgIcon; - export default DeviceSettingsSystemDaydream; +declare module 'material-ui/svg-icons/device/battery-full' { + export import DeviceBatteryFull = __MaterialUI.SvgIcon; + export default DeviceBatteryFull; } declare module 'material-ui/svg-icons/device/battery-std' { @@ -5181,139 +4424,14 @@ declare module 'material-ui/svg-icons/device/battery-unknown' { export default DeviceBatteryUnknown; } -declare module 'material-ui/svg-icons/device/add-alarm' { - export import DeviceAddAlarm = __MaterialUI.SvgIcon; - export default DeviceAddAlarm; +declare module 'material-ui/svg-icons/device/bluetooth' { + export import DeviceBluetooth = __MaterialUI.SvgIcon; + export default DeviceBluetooth; } -declare module 'material-ui/svg-icons/device/storage' { - export import DeviceStorage = __MaterialUI.SvgIcon; - export default DeviceStorage; -} - -declare module 'material-ui/svg-icons/device/battery-charging-90' { - export import DeviceBatteryCharging90 = __MaterialUI.SvgIcon; - export default DeviceBatteryCharging90; -} - -declare module 'material-ui/svg-icons/device/screen-rotation' { - export import DeviceScreenRotation = __MaterialUI.SvgIcon; - export default DeviceScreenRotation; -} - -declare module 'material-ui/svg-icons/device/signal-wifi-4-bar' { - export import DeviceSignalWifi4Bar = __MaterialUI.SvgIcon; - export default DeviceSignalWifi4Bar; -} - -declare module 'material-ui/svg-icons/device/battery-charging-50' { - export import DeviceBatteryCharging50 = __MaterialUI.SvgIcon; - export default DeviceBatteryCharging50; -} - -declare module 'material-ui/svg-icons/device/battery-30' { - export import DeviceBattery30 = __MaterialUI.SvgIcon; - export default DeviceBattery30; -} - -declare module 'material-ui/svg-icons/device/signal-cellular-connected-no-internet-0-bar' { - export import DeviceSignalCellularConnectedNoInternet0Bar = __MaterialUI.SvgIcon; - export default DeviceSignalCellularConnectedNoInternet0Bar; -} - -declare module 'material-ui/svg-icons/device/battery-alert' { - export import DeviceBatteryAlert = __MaterialUI.SvgIcon; - export default DeviceBatteryAlert; -} - -declare module 'material-ui/svg-icons/device/signal-wifi-1-bar' { - export import DeviceSignalWifi1Bar = __MaterialUI.SvgIcon; - export default DeviceSignalWifi1Bar; -} - -declare module 'material-ui/svg-icons/device/signal-cellular-4-bar' { - export import DeviceSignalCellular4Bar = __MaterialUI.SvgIcon; - export default DeviceSignalCellular4Bar; -} - -declare module 'material-ui/svg-icons/device/wifi-tethering' { - export import DeviceWifiTethering = __MaterialUI.SvgIcon; - export default DeviceWifiTethering; -} - -declare module 'material-ui/svg-icons/device/signal-wifi-0-bar' { - export import DeviceSignalWifi0Bar = __MaterialUI.SvgIcon; - export default DeviceSignalWifi0Bar; -} - -declare module 'material-ui/svg-icons/device/brightness-auto' { - export import DeviceBrightnessAuto = __MaterialUI.SvgIcon; - export default DeviceBrightnessAuto; -} - -declare module 'material-ui/svg-icons/device/location-disabled' { - export import DeviceLocationDisabled = __MaterialUI.SvgIcon; - export default DeviceLocationDisabled; -} - -declare module 'material-ui/svg-icons/device/signal-wifi-3-bar' { - export import DeviceSignalWifi3Bar = __MaterialUI.SvgIcon; - export default DeviceSignalWifi3Bar; -} - -declare module 'material-ui/svg-icons/device/gps-not-fixed' { - export import DeviceGpsNotFixed = __MaterialUI.SvgIcon; - export default DeviceGpsNotFixed; -} - -declare module 'material-ui/svg-icons/device/signal-cellular-1-bar' { - export import DeviceSignalCellular1Bar = __MaterialUI.SvgIcon; - export default DeviceSignalCellular1Bar; -} - -declare module 'material-ui/svg-icons/device/battery-charging-60' { - export import DeviceBatteryCharging60 = __MaterialUI.SvgIcon; - export default DeviceBatteryCharging60; -} - -declare module 'material-ui/svg-icons/device/gps-off' { - export import DeviceGpsOff = __MaterialUI.SvgIcon; - export default DeviceGpsOff; -} - -declare module 'material-ui/svg-icons/device/signal-cellular-null' { - export import DeviceSignalCellularNull = __MaterialUI.SvgIcon; - export default DeviceSignalCellularNull; -} - -declare module 'material-ui/svg-icons/device/brightness-low' { - export import DeviceBrightnessLow = __MaterialUI.SvgIcon; - export default DeviceBrightnessLow; -} - -declare module 'material-ui/svg-icons/device/sd-storage' { - export import DeviceSdStorage = __MaterialUI.SvgIcon; - export default DeviceSdStorage; -} - -declare module 'material-ui/svg-icons/device/airplanemode-inactive' { - export import DeviceAirplanemodeInactive = __MaterialUI.SvgIcon; - export default DeviceAirplanemodeInactive; -} - -declare module 'material-ui/svg-icons/device/widgets' { - export import DeviceWidgets = __MaterialUI.SvgIcon; - export default DeviceWidgets; -} - -declare module 'material-ui/svg-icons/device/brightness-high' { - export import DeviceBrightnessHigh = __MaterialUI.SvgIcon; - export default DeviceBrightnessHigh; -} - -declare module 'material-ui/svg-icons/device/battery-20' { - export import DeviceBattery20 = __MaterialUI.SvgIcon; - export default DeviceBattery20; +declare module 'material-ui/svg-icons/device/bluetooth-connected' { + export import DeviceBluetoothConnected = __MaterialUI.SvgIcon; + export default DeviceBluetoothConnected; } declare module 'material-ui/svg-icons/device/bluetooth-disabled' { @@ -5321,9 +4439,34 @@ declare module 'material-ui/svg-icons/device/bluetooth-disabled' { export default DeviceBluetoothDisabled; } -declare module 'material-ui/svg-icons/device/signal-wifi-4-bar-lock' { - export import DeviceSignalWifi4BarLock = __MaterialUI.SvgIcon; - export default DeviceSignalWifi4BarLock; +declare module 'material-ui/svg-icons/device/bluetooth-searching' { + export import DeviceBluetoothSearching = __MaterialUI.SvgIcon; + export default DeviceBluetoothSearching; +} + +declare module 'material-ui/svg-icons/device/brightness-auto' { + export import DeviceBrightnessAuto = __MaterialUI.SvgIcon; + export default DeviceBrightnessAuto; +} + +declare module 'material-ui/svg-icons/device/brightness-high' { + export import DeviceBrightnessHigh = __MaterialUI.SvgIcon; + export default DeviceBrightnessHigh; +} + +declare module 'material-ui/svg-icons/device/brightness-low' { + export import DeviceBrightnessLow = __MaterialUI.SvgIcon; + export default DeviceBrightnessLow; +} + +declare module 'material-ui/svg-icons/device/brightness-medium' { + export import DeviceBrightnessMedium = __MaterialUI.SvgIcon; + export default DeviceBrightnessMedium; +} + +declare module 'material-ui/svg-icons/device/data-usage' { + export import DeviceDataUsage = __MaterialUI.SvgIcon; + export default DeviceDataUsage; } declare module 'material-ui/svg-icons/device/developer-mode' { @@ -5331,24 +4474,89 @@ declare module 'material-ui/svg-icons/device/developer-mode' { export default DeviceDeveloperMode; } -declare module 'material-ui/svg-icons/device/battery-50' { - export import DeviceBattery50 = __MaterialUI.SvgIcon; - export default DeviceBattery50; +declare module 'material-ui/svg-icons/device/devices' { + export import DeviceDevices = __MaterialUI.SvgIcon; + export default DeviceDevices; } -declare module 'material-ui/svg-icons/device/signal-cellular-connected-no-internet-1-bar' { - export import DeviceSignalCellularConnectedNoInternet1Bar = __MaterialUI.SvgIcon; - export default DeviceSignalCellularConnectedNoInternet1Bar; +declare module 'material-ui/svg-icons/device/dvr' { + export import DeviceDvr = __MaterialUI.SvgIcon; + export default DeviceDvr; } -declare module 'material-ui/svg-icons/device/signal-cellular-2-bar' { - export import DeviceSignalCellular2Bar = __MaterialUI.SvgIcon; - export default DeviceSignalCellular2Bar; +declare module 'material-ui/svg-icons/device/gps-fixed' { + export import DeviceGpsFixed = __MaterialUI.SvgIcon; + export default DeviceGpsFixed; } -declare module 'material-ui/svg-icons/device/signal-cellular-connected-no-internet-2-bar' { - export import DeviceSignalCellularConnectedNoInternet2Bar = __MaterialUI.SvgIcon; - export default DeviceSignalCellularConnectedNoInternet2Bar; +declare module 'material-ui/svg-icons/device/gps-not-fixed' { + export import DeviceGpsNotFixed = __MaterialUI.SvgIcon; + export default DeviceGpsNotFixed; +} + +declare module 'material-ui/svg-icons/device/gps-off' { + export import DeviceGpsOff = __MaterialUI.SvgIcon; + export default DeviceGpsOff; +} + +declare module 'material-ui/svg-icons/device/graphic-eq' { + export import DeviceGraphicEq = __MaterialUI.SvgIcon; + export default DeviceGraphicEq; +} + +declare module 'material-ui/svg-icons/device/location-disabled' { + export import DeviceLocationDisabled = __MaterialUI.SvgIcon; + export default DeviceLocationDisabled; +} + +declare module 'material-ui/svg-icons/device/location-searching' { + export import DeviceLocationSearching = __MaterialUI.SvgIcon; + export default DeviceLocationSearching; +} + +declare module 'material-ui/svg-icons/device/network-cell' { + export import DeviceNetworkCell = __MaterialUI.SvgIcon; + export default DeviceNetworkCell; +} + +declare module 'material-ui/svg-icons/device/network-wifi' { + export import DeviceNetworkWifi = __MaterialUI.SvgIcon; + export default DeviceNetworkWifi; +} + +declare module 'material-ui/svg-icons/device/nfc' { + export import DeviceNfc = __MaterialUI.SvgIcon; + export default DeviceNfc; +} + +declare module 'material-ui/svg-icons/device/screen-lock-landscape' { + export import DeviceScreenLockLandscape = __MaterialUI.SvgIcon; + export default DeviceScreenLockLandscape; +} + +declare module 'material-ui/svg-icons/device/screen-lock-portrait' { + export import DeviceScreenLockPortrait = __MaterialUI.SvgIcon; + export default DeviceScreenLockPortrait; +} + +declare module 'material-ui/svg-icons/device/screen-lock-rotation' { + export import DeviceScreenLockRotation = __MaterialUI.SvgIcon; + export default DeviceScreenLockRotation; +} + +declare module 'material-ui/svg-icons/device/screen-rotation' { + export import DeviceScreenRotation = __MaterialUI.SvgIcon; + export default DeviceScreenRotation; +} + +declare module 'material-ui/svg-icons/device/sd-storage' { + export import DeviceSdStorage = __MaterialUI.SvgIcon; + export default DeviceSdStorage; +} + +declare module 'material-ui/svg-icons/device/settings-system-daydream' { + export import DeviceSettingsSystemDaydream = __MaterialUI.SvgIcon; + export default DeviceSettingsSystemDaydream; } declare module 'material-ui/svg-icons/device/signal-cellular-0-bar' { @@ -5356,759 +4564,794 @@ declare module 'material-ui/svg-icons/device/signal-cellular-0-bar' { export default DeviceSignalCellular0Bar; } +declare module 'material-ui/svg-icons/device/signal-cellular-1-bar' { + export import DeviceSignalCellular1Bar = __MaterialUI.SvgIcon; + export default DeviceSignalCellular1Bar; +} + +declare module 'material-ui/svg-icons/device/signal-cellular-2-bar' { + export import DeviceSignalCellular2Bar = __MaterialUI.SvgIcon; + export default DeviceSignalCellular2Bar; +} + +declare module 'material-ui/svg-icons/device/signal-cellular-3-bar' { + export import DeviceSignalCellular3Bar = __MaterialUI.SvgIcon; + export default DeviceSignalCellular3Bar; +} + +declare module 'material-ui/svg-icons/device/signal-cellular-4-bar' { + export import DeviceSignalCellular4Bar = __MaterialUI.SvgIcon; + export default DeviceSignalCellular4Bar; +} + +declare module 'material-ui/svg-icons/device/signal-cellular-connected-no-internet-0-bar' { + export import DeviceSignalCellularConnectedNoInternet0Bar = __MaterialUI.SvgIcon; + export default DeviceSignalCellularConnectedNoInternet0Bar; +} + +declare module 'material-ui/svg-icons/device/signal-cellular-connected-no-internet-1-bar' { + export import DeviceSignalCellularConnectedNoInternet1Bar = __MaterialUI.SvgIcon; + export default DeviceSignalCellularConnectedNoInternet1Bar; +} + +declare module 'material-ui/svg-icons/device/signal-cellular-connected-no-internet-2-bar' { + export import DeviceSignalCellularConnectedNoInternet2Bar = __MaterialUI.SvgIcon; + export default DeviceSignalCellularConnectedNoInternet2Bar; +} + +declare module 'material-ui/svg-icons/device/signal-cellular-connected-no-internet-3-bar' { + export import DeviceSignalCellularConnectedNoInternet3Bar = __MaterialUI.SvgIcon; + export default DeviceSignalCellularConnectedNoInternet3Bar; +} + +declare module 'material-ui/svg-icons/device/signal-cellular-connected-no-internet-4-bar' { + export import DeviceSignalCellularConnectedNoInternet4Bar = __MaterialUI.SvgIcon; + export default DeviceSignalCellularConnectedNoInternet4Bar; +} + +declare module 'material-ui/svg-icons/device/signal-cellular-no-sim' { + export import DeviceSignalCellularNoSim = __MaterialUI.SvgIcon; + export default DeviceSignalCellularNoSim; +} + +declare module 'material-ui/svg-icons/device/signal-cellular-null' { + export import DeviceSignalCellularNull = __MaterialUI.SvgIcon; + export default DeviceSignalCellularNull; +} + +declare module 'material-ui/svg-icons/device/signal-cellular-off' { + export import DeviceSignalCellularOff = __MaterialUI.SvgIcon; + export default DeviceSignalCellularOff; +} + +declare module 'material-ui/svg-icons/device/signal-wifi-0-bar' { + export import DeviceSignalWifi0Bar = __MaterialUI.SvgIcon; + export default DeviceSignalWifi0Bar; +} + +declare module 'material-ui/svg-icons/device/signal-wifi-1-bar' { + export import DeviceSignalWifi1Bar = __MaterialUI.SvgIcon; + export default DeviceSignalWifi1Bar; +} + declare module 'material-ui/svg-icons/device/signal-wifi-1-bar-lock' { export import DeviceSignalWifi1BarLock = __MaterialUI.SvgIcon; export default DeviceSignalWifi1BarLock; } -declare module 'material-ui/svg-icons/navigation/arrow-forward' { - export import NavigationArrowForward = __MaterialUI.SvgIcon; - export default NavigationArrowForward; +declare module 'material-ui/svg-icons/device/signal-wifi-2-bar' { + export import DeviceSignalWifi2Bar = __MaterialUI.SvgIcon; + export default DeviceSignalWifi2Bar; } -declare module 'material-ui/svg-icons/navigation/unfold-more' { - export import NavigationUnfoldMore = __MaterialUI.SvgIcon; - export default NavigationUnfoldMore; +declare module 'material-ui/svg-icons/device/signal-wifi-2-bar-lock' { + export import DeviceSignalWifi2BarLock = __MaterialUI.SvgIcon; + export default DeviceSignalWifi2BarLock; } -declare module 'material-ui/svg-icons/navigation/arrow-drop-down' { - export import NavigationArrowDropDown = __MaterialUI.SvgIcon; - export default NavigationArrowDropDown; +declare module 'material-ui/svg-icons/device/signal-wifi-3-bar' { + export import DeviceSignalWifi3Bar = __MaterialUI.SvgIcon; + export default DeviceSignalWifi3Bar; } -declare module 'material-ui/svg-icons/navigation/arrow-back' { - export import NavigationArrowBack = __MaterialUI.SvgIcon; - export default NavigationArrowBack; +declare module 'material-ui/svg-icons/device/signal-wifi-3-bar-lock' { + export import DeviceSignalWifi3BarLock = __MaterialUI.SvgIcon; + export default DeviceSignalWifi3BarLock; } -declare module 'material-ui/svg-icons/navigation/arrow-downward' { - export import NavigationArrowDownward = __MaterialUI.SvgIcon; - export default NavigationArrowDownward; +declare module 'material-ui/svg-icons/device/signal-wifi-4-bar' { + export import DeviceSignalWifi4Bar = __MaterialUI.SvgIcon; + export default DeviceSignalWifi4Bar; } -declare module 'material-ui/svg-icons/navigation/fullscreen' { - export import NavigationFullscreen = __MaterialUI.SvgIcon; - export default NavigationFullscreen; +declare module 'material-ui/svg-icons/device/signal-wifi-4-bar-lock' { + export import DeviceSignalWifi4BarLock = __MaterialUI.SvgIcon; + export default DeviceSignalWifi4BarLock; } -declare module 'material-ui/svg-icons/navigation/unfold-less' { - export import NavigationUnfoldLess = __MaterialUI.SvgIcon; - export default NavigationUnfoldLess; +declare module 'material-ui/svg-icons/device/signal-wifi-off' { + export import DeviceSignalWifiOff = __MaterialUI.SvgIcon; + export default DeviceSignalWifiOff; } -declare module 'material-ui/svg-icons/navigation/chevron-right' { - export import NavigationChevronRight = __MaterialUI.SvgIcon; - export default NavigationChevronRight; +declare module 'material-ui/svg-icons/device/storage' { + export import DeviceStorage = __MaterialUI.SvgIcon; + export default DeviceStorage; } -declare module 'material-ui/svg-icons/navigation/arrow-drop-down-circle' { - export import NavigationArrowDropDownCircle = __MaterialUI.SvgIcon; - export default NavigationArrowDropDownCircle; +declare module 'material-ui/svg-icons/device/usb' { + export import DeviceUsb = __MaterialUI.SvgIcon; + export default DeviceUsb; } -declare module 'material-ui/svg-icons/navigation/check' { - export import NavigationCheck = __MaterialUI.SvgIcon; - export default NavigationCheck; +declare module 'material-ui/svg-icons/device/wallpaper' { + export import DeviceWallpaper = __MaterialUI.SvgIcon; + export default DeviceWallpaper; } -declare module 'material-ui/svg-icons/navigation/fullscreen-exit' { - export import NavigationFullscreenExit = __MaterialUI.SvgIcon; - export default NavigationFullscreenExit; +declare module 'material-ui/svg-icons/device/widgets' { + export import DeviceWidgets = __MaterialUI.SvgIcon; + export default DeviceWidgets; } -declare module 'material-ui/svg-icons/navigation/chevron-left' { - export import NavigationChevronLeft = __MaterialUI.SvgIcon; - export default NavigationChevronLeft; +declare module 'material-ui/svg-icons/device/wifi-lock' { + export import DeviceWifiLock = __MaterialUI.SvgIcon; + export default DeviceWifiLock; } -declare module 'material-ui/svg-icons/navigation/menu' { - export import NavigationMenu = __MaterialUI.SvgIcon; - export default NavigationMenu; +declare module 'material-ui/svg-icons/device/wifi-tethering' { + export import DeviceWifiTethering = __MaterialUI.SvgIcon; + export default DeviceWifiTethering; } -declare module 'material-ui/svg-icons/navigation/apps' { - export import NavigationApps = __MaterialUI.SvgIcon; - export default NavigationApps; +declare module 'material-ui/svg-icons/editor/attach-file' { + export import EditorAttachFile = __MaterialUI.SvgIcon; + export default EditorAttachFile; } -declare module 'material-ui/svg-icons/navigation/arrow-upward' { - export import NavigationArrowUpward = __MaterialUI.SvgIcon; - export default NavigationArrowUpward; +declare module 'material-ui/svg-icons/editor/attach-money' { + export import EditorAttachMoney = __MaterialUI.SvgIcon; + export default EditorAttachMoney; } -declare module 'material-ui/svg-icons/navigation/close' { - export import NavigationClose = __MaterialUI.SvgIcon; - export default NavigationClose; +declare module 'material-ui/svg-icons/editor/border-all' { + export import EditorBorderAll = __MaterialUI.SvgIcon; + export default EditorBorderAll; } -declare module 'material-ui/svg-icons/navigation/more-horiz' { - export import NavigationMoreHoriz = __MaterialUI.SvgIcon; - export default NavigationMoreHoriz; +declare module 'material-ui/svg-icons/editor/border-bottom' { + export import EditorBorderBottom = __MaterialUI.SvgIcon; + export default EditorBorderBottom; } -declare module 'material-ui/svg-icons/navigation/cancel' { - export import NavigationCancel = __MaterialUI.SvgIcon; - export default NavigationCancel; +declare module 'material-ui/svg-icons/editor/border-clear' { + export import EditorBorderClear = __MaterialUI.SvgIcon; + export default EditorBorderClear; } -declare module 'material-ui/svg-icons/navigation/subdirectory-arrow-right' { - export import NavigationSubdirectoryArrowRight = __MaterialUI.SvgIcon; - export default NavigationSubdirectoryArrowRight; +declare module 'material-ui/svg-icons/editor/border-color' { + export import EditorBorderColor = __MaterialUI.SvgIcon; + export default EditorBorderColor; } -declare module 'material-ui/svg-icons/navigation/expand-more' { - export import NavigationExpandMore = __MaterialUI.SvgIcon; - export default NavigationExpandMore; +declare module 'material-ui/svg-icons/editor/border-horizontal' { + export import EditorBorderHorizontal = __MaterialUI.SvgIcon; + export default EditorBorderHorizontal; } -declare module 'material-ui/svg-icons/navigation/arrow-drop-up' { - export import NavigationArrowDropUp = __MaterialUI.SvgIcon; - export default NavigationArrowDropUp; +declare module 'material-ui/svg-icons/editor/border-inner' { + export import EditorBorderInner = __MaterialUI.SvgIcon; + export default EditorBorderInner; } -declare module 'material-ui/svg-icons/navigation/subdirectory-arrow-left' { - export import NavigationSubdirectoryArrowLeft = __MaterialUI.SvgIcon; - export default NavigationSubdirectoryArrowLeft; +declare module 'material-ui/svg-icons/editor/border-left' { + export import EditorBorderLeft = __MaterialUI.SvgIcon; + export default EditorBorderLeft; } -declare module 'material-ui/svg-icons/navigation/expand-less' { - export import NavigationExpandLess = __MaterialUI.SvgIcon; - export default NavigationExpandLess; +declare module 'material-ui/svg-icons/editor/border-outer' { + export import EditorBorderOuter = __MaterialUI.SvgIcon; + export default EditorBorderOuter; } -declare module 'material-ui/svg-icons/navigation/refresh' { - export import NavigationRefresh = __MaterialUI.SvgIcon; - export default NavigationRefresh; +declare module 'material-ui/svg-icons/editor/border-right' { + export import EditorBorderRight = __MaterialUI.SvgIcon; + export default EditorBorderRight; } -declare module 'material-ui/svg-icons/navigation/more-vert' { - export import NavigationMoreVert = __MaterialUI.SvgIcon; - export default NavigationMoreVert; +declare module 'material-ui/svg-icons/editor/border-style' { + export import EditorBorderStyle = __MaterialUI.SvgIcon; + export default EditorBorderStyle; } -declare module 'material-ui/svg-icons/notification/rv-hookup' { - export import NotificationRvHookup = __MaterialUI.SvgIcon; - export default NotificationRvHookup; +declare module 'material-ui/svg-icons/editor/border-top' { + export import EditorBorderTop = __MaterialUI.SvgIcon; + export default EditorBorderTop; } -declare module 'material-ui/svg-icons/notification/no-encryption' { - export import NotificationNoEncryption = __MaterialUI.SvgIcon; - export default NotificationNoEncryption; +declare module 'material-ui/svg-icons/editor/border-vertical' { + export import EditorBorderVertical = __MaterialUI.SvgIcon; + export default EditorBorderVertical; } -declare module 'material-ui/svg-icons/notification/phone-forwarded' { - export import NotificationPhoneForwarded = __MaterialUI.SvgIcon; - export default NotificationPhoneForwarded; +declare module 'material-ui/svg-icons/editor/bubble-chart' { + export import EditorBubbleChart = __MaterialUI.SvgIcon; + export default EditorBubbleChart; } -declare module 'material-ui/svg-icons/notification/airline-seat-flat-angled' { - export import NotificationAirlineSeatFlatAngled = __MaterialUI.SvgIcon; - export default NotificationAirlineSeatFlatAngled; +declare module 'material-ui/svg-icons/editor/drag-handle' { + export import EditorDragHandle = __MaterialUI.SvgIcon; + export default EditorDragHandle; } -declare module 'material-ui/svg-icons/notification/time-to-leave' { - export import NotificationTimeToLeave = __MaterialUI.SvgIcon; - export default NotificationTimeToLeave; +declare module 'material-ui/svg-icons/editor/format-align-center' { + export import EditorFormatAlignCenter = __MaterialUI.SvgIcon; + export default EditorFormatAlignCenter; } -declare module 'material-ui/svg-icons/notification/airline-seat-legroom-extra' { - export import NotificationAirlineSeatLegroomExtra = __MaterialUI.SvgIcon; - export default NotificationAirlineSeatLegroomExtra; +declare module 'material-ui/svg-icons/editor/format-align-justify' { + export import EditorFormatAlignJustify = __MaterialUI.SvgIcon; + export default EditorFormatAlignJustify; } -declare module 'material-ui/svg-icons/notification/airline-seat-recline-extra' { - export import NotificationAirlineSeatReclineExtra = __MaterialUI.SvgIcon; - export default NotificationAirlineSeatReclineExtra; +declare module 'material-ui/svg-icons/editor/format-align-left' { + export import EditorFormatAlignLeft = __MaterialUI.SvgIcon; + export default EditorFormatAlignLeft; } -declare module 'material-ui/svg-icons/notification/airline-seat-individual-suite' { - export import NotificationAirlineSeatIndividualSuite = __MaterialUI.SvgIcon; - export default NotificationAirlineSeatIndividualSuite; +declare module 'material-ui/svg-icons/editor/format-align-right' { + export import EditorFormatAlignRight = __MaterialUI.SvgIcon; + export default EditorFormatAlignRight; } -declare module 'material-ui/svg-icons/notification/vibration' { - export import NotificationVibration = __MaterialUI.SvgIcon; - export default NotificationVibration; +declare module 'material-ui/svg-icons/editor/format-bold' { + export import EditorFormatBold = __MaterialUI.SvgIcon; + export default EditorFormatBold; } -declare module 'material-ui/svg-icons/notification/sim-card-alert' { - export import NotificationSimCardAlert = __MaterialUI.SvgIcon; - export default NotificationSimCardAlert; +declare module 'material-ui/svg-icons/editor/format-clear' { + export import EditorFormatClear = __MaterialUI.SvgIcon; + export default EditorFormatClear; } -declare module 'material-ui/svg-icons/notification/sms-failed' { - export import NotificationSmsFailed = __MaterialUI.SvgIcon; - export default NotificationSmsFailed; +declare module 'material-ui/svg-icons/editor/format-color-fill' { + export import EditorFormatColorFill = __MaterialUI.SvgIcon; + export default EditorFormatColorFill; } -declare module 'material-ui/svg-icons/notification/airline-seat-flat' { - export import NotificationAirlineSeatFlat = __MaterialUI.SvgIcon; - export default NotificationAirlineSeatFlat; +declare module 'material-ui/svg-icons/editor/format-color-reset' { + export import EditorFormatColorReset = __MaterialUI.SvgIcon; + export default EditorFormatColorReset; } -declare module 'material-ui/svg-icons/notification/do-not-disturb' { - export import NotificationDoNotDisturb = __MaterialUI.SvgIcon; - export default NotificationDoNotDisturb; +declare module 'material-ui/svg-icons/editor/format-color-text' { + export import EditorFormatColorText = __MaterialUI.SvgIcon; + export default EditorFormatColorText; } -declare module 'material-ui/svg-icons/notification/sync-problem' { - export import NotificationSyncProblem = __MaterialUI.SvgIcon; - export default NotificationSyncProblem; +declare module 'material-ui/svg-icons/editor/format-indent-decrease' { + export import EditorFormatIndentDecrease = __MaterialUI.SvgIcon; + export default EditorFormatIndentDecrease; } -declare module 'material-ui/svg-icons/notification/event-available' { - export import NotificationEventAvailable = __MaterialUI.SvgIcon; - export default NotificationEventAvailable; +declare module 'material-ui/svg-icons/editor/format-indent-increase' { + export import EditorFormatIndentIncrease = __MaterialUI.SvgIcon; + export default EditorFormatIndentIncrease; } -declare module 'material-ui/svg-icons/notification/network-check' { - export import NotificationNetworkCheck = __MaterialUI.SvgIcon; - export default NotificationNetworkCheck; +declare module 'material-ui/svg-icons/editor/format-italic' { + export import EditorFormatItalic = __MaterialUI.SvgIcon; + export default EditorFormatItalic; } -declare module 'material-ui/svg-icons/notification/sms' { - export import NotificationSms = __MaterialUI.SvgIcon; - export default NotificationSms; +declare module 'material-ui/svg-icons/editor/format-line-spacing' { + export import EditorFormatLineSpacing = __MaterialUI.SvgIcon; + export default EditorFormatLineSpacing; } -declare module 'material-ui/svg-icons/notification/disc-full' { - export import NotificationDiscFull = __MaterialUI.SvgIcon; - export default NotificationDiscFull; +declare module 'material-ui/svg-icons/editor/format-list-bulleted' { + export import EditorFormatListBulleted = __MaterialUI.SvgIcon; + export default EditorFormatListBulleted; } -declare module 'material-ui/svg-icons/notification/do-not-disturb-alt' { - export import NotificationDoNotDisturbAlt = __MaterialUI.SvgIcon; - export default NotificationDoNotDisturbAlt; +declare module 'material-ui/svg-icons/editor/format-list-numbered' { + export import EditorFormatListNumbered = __MaterialUI.SvgIcon; + export default EditorFormatListNumbered; } -declare module 'material-ui/svg-icons/notification/system-update' { - export import NotificationSystemUpdate = __MaterialUI.SvgIcon; - export default NotificationSystemUpdate; +declare module 'material-ui/svg-icons/editor/format-paint' { + export import EditorFormatPaint = __MaterialUI.SvgIcon; + export default EditorFormatPaint; } -declare module 'material-ui/svg-icons/notification/phone-bluetooth-speaker' { - export import NotificationPhoneBluetoothSpeaker = __MaterialUI.SvgIcon; - export default NotificationPhoneBluetoothSpeaker; +declare module 'material-ui/svg-icons/editor/format-quote' { + export import EditorFormatQuote = __MaterialUI.SvgIcon; + export default EditorFormatQuote; } -declare module 'material-ui/svg-icons/notification/ondemand-video' { - export import NotificationOndemandVideo = __MaterialUI.SvgIcon; - export default NotificationOndemandVideo; +declare module 'material-ui/svg-icons/editor/format-shapes' { + export import EditorFormatShapes = __MaterialUI.SvgIcon; + export default EditorFormatShapes; } -declare module 'material-ui/svg-icons/notification/power' { - export import NotificationPower = __MaterialUI.SvgIcon; - export default NotificationPower; +declare module 'material-ui/svg-icons/editor/format-size' { + export import EditorFormatSize = __MaterialUI.SvgIcon; + export default EditorFormatSize; } -declare module 'material-ui/svg-icons/notification/phone-locked' { - export import NotificationPhoneLocked = __MaterialUI.SvgIcon; - export default NotificationPhoneLocked; +declare module 'material-ui/svg-icons/editor/format-strikethrough' { + export import EditorFormatStrikethrough = __MaterialUI.SvgIcon; + export default EditorFormatStrikethrough; } -declare module 'material-ui/svg-icons/notification/sd-card' { - export import NotificationSdCard = __MaterialUI.SvgIcon; - export default NotificationSdCard; +declare module 'material-ui/svg-icons/editor/format-textdirection-l-to-r' { + export import EditorFormatTextdirectionLToR = __MaterialUI.SvgIcon; + export default EditorFormatTextdirectionLToR; } -declare module 'material-ui/svg-icons/notification/event-busy' { - export import NotificationEventBusy = __MaterialUI.SvgIcon; - export default NotificationEventBusy; +declare module 'material-ui/svg-icons/editor/format-textdirection-r-to-l' { + export import EditorFormatTextdirectionRToL = __MaterialUI.SvgIcon; + export default EditorFormatTextdirectionRToL; } -declare module 'material-ui/svg-icons/notification/personal-video' { - export import NotificationPersonalVideo = __MaterialUI.SvgIcon; - export default NotificationPersonalVideo; +declare module 'material-ui/svg-icons/editor/format-underlined' { + export import EditorFormatUnderlined = __MaterialUI.SvgIcon; + export default EditorFormatUnderlined; } -declare module 'material-ui/svg-icons/notification/airline-seat-legroom-normal' { - export import NotificationAirlineSeatLegroomNormal = __MaterialUI.SvgIcon; - export default NotificationAirlineSeatLegroomNormal; +declare module 'material-ui/svg-icons/editor/functions' { + export import EditorFunctions = __MaterialUI.SvgIcon; + export default EditorFunctions; } -declare module 'material-ui/svg-icons/notification/phone-in-talk' { - export import NotificationPhoneInTalk = __MaterialUI.SvgIcon; - export default NotificationPhoneInTalk; +declare module 'material-ui/svg-icons/editor/highlight' { + export import EditorHighlight = __MaterialUI.SvgIcon; + export default EditorHighlight; } -declare module 'material-ui/svg-icons/notification/airline-seat-legroom-reduced' { - export import NotificationAirlineSeatLegroomReduced = __MaterialUI.SvgIcon; - export default NotificationAirlineSeatLegroomReduced; +declare module 'material-ui/svg-icons/editor/insert-chart' { + export import EditorInsertChart = __MaterialUI.SvgIcon; + export default EditorInsertChart; } -declare module 'material-ui/svg-icons/notification/phone-paused' { - export import NotificationPhonePaused = __MaterialUI.SvgIcon; - export default NotificationPhonePaused; +declare module 'material-ui/svg-icons/editor/insert-comment' { + export import EditorInsertComment = __MaterialUI.SvgIcon; + export default EditorInsertComment; } -declare module 'material-ui/svg-icons/notification/sync-disabled' { - export import NotificationSyncDisabled = __MaterialUI.SvgIcon; - export default NotificationSyncDisabled; +declare module 'material-ui/svg-icons/editor/insert-drive-file' { + export import EditorInsertDriveFile = __MaterialUI.SvgIcon; + export default EditorInsertDriveFile; } -declare module 'material-ui/svg-icons/notification/enhanced-encryption' { - export import NotificationEnhancedEncryption = __MaterialUI.SvgIcon; - export default NotificationEnhancedEncryption; +declare module 'material-ui/svg-icons/editor/insert-emoticon' { + export import EditorInsertEmoticon = __MaterialUI.SvgIcon; + export default EditorInsertEmoticon; } -declare module 'material-ui/svg-icons/notification/mms' { - export import NotificationMms = __MaterialUI.SvgIcon; - export default NotificationMms; +declare module 'material-ui/svg-icons/editor/insert-invitation' { + export import EditorInsertInvitation = __MaterialUI.SvgIcon; + export default EditorInsertInvitation; } -declare module 'material-ui/svg-icons/notification/drive-eta' { - export import NotificationDriveEta = __MaterialUI.SvgIcon; - export default NotificationDriveEta; +declare module 'material-ui/svg-icons/editor/insert-link' { + export import EditorInsertLink = __MaterialUI.SvgIcon; + export default EditorInsertLink; } -declare module 'material-ui/svg-icons/notification/voice-chat' { - export import NotificationVoiceChat = __MaterialUI.SvgIcon; - export default NotificationVoiceChat; +declare module 'material-ui/svg-icons/editor/insert-photo' { + export import EditorInsertPhoto = __MaterialUI.SvgIcon; + export default EditorInsertPhoto; } -declare module 'material-ui/svg-icons/notification/wifi' { - export import NotificationWifi = __MaterialUI.SvgIcon; - export default NotificationWifi; +declare module 'material-ui/svg-icons/editor/linear-scale' { + export import EditorLinearScale = __MaterialUI.SvgIcon; + export default EditorLinearScale; } -declare module 'material-ui/svg-icons/notification/airline-seat-recline-normal' { - export import NotificationAirlineSeatReclineNormal = __MaterialUI.SvgIcon; - export default NotificationAirlineSeatReclineNormal; +declare module 'material-ui/svg-icons/editor/merge-type' { + export import EditorMergeType = __MaterialUI.SvgIcon; + export default EditorMergeType; } -declare module 'material-ui/svg-icons/notification/more' { - export import NotificationMore = __MaterialUI.SvgIcon; - export default NotificationMore; +declare module 'material-ui/svg-icons/editor/mode-comment' { + export import EditorModeComment = __MaterialUI.SvgIcon; + export default EditorModeComment; } -declare module 'material-ui/svg-icons/notification/vpn-lock' { - export import NotificationVpnLock = __MaterialUI.SvgIcon; - export default NotificationVpnLock; +declare module 'material-ui/svg-icons/editor/mode-edit' { + export import EditorModeEdit = __MaterialUI.SvgIcon; + export default EditorModeEdit; } -declare module 'material-ui/svg-icons/notification/event-note' { - export import NotificationEventNote = __MaterialUI.SvgIcon; - export default NotificationEventNote; +declare module 'material-ui/svg-icons/editor/monetization-on' { + export import EditorMonetizationOn = __MaterialUI.SvgIcon; + export default EditorMonetizationOn; } -declare module 'material-ui/svg-icons/notification/confirmation-number' { - export import NotificationConfirmationNumber = __MaterialUI.SvgIcon; - export default NotificationConfirmationNumber; +declare module 'material-ui/svg-icons/editor/money-off' { + export import EditorMoneyOff = __MaterialUI.SvgIcon; + export default EditorMoneyOff; } -declare module 'material-ui/svg-icons/notification/network-locked' { - export import NotificationNetworkLocked = __MaterialUI.SvgIcon; - export default NotificationNetworkLocked; +declare module 'material-ui/svg-icons/editor/multiline-chart' { + export import EditorMultilineChart = __MaterialUI.SvgIcon; + export default EditorMultilineChart; } -declare module 'material-ui/svg-icons/notification/adb' { - export import NotificationAdb = __MaterialUI.SvgIcon; - export default NotificationAdb; +declare module 'material-ui/svg-icons/editor/pie-chart' { + export import EditorPieChart = __MaterialUI.SvgIcon; + export default EditorPieChart; } -declare module 'material-ui/svg-icons/notification/bluetooth-audio' { - export import NotificationBluetoothAudio = __MaterialUI.SvgIcon; - export default NotificationBluetoothAudio; +declare module 'material-ui/svg-icons/editor/pie-chart-outlined' { + export import EditorPieChartOutlined = __MaterialUI.SvgIcon; + export default EditorPieChartOutlined; } -declare module 'material-ui/svg-icons/notification/wc' { - export import NotificationWc = __MaterialUI.SvgIcon; - export default NotificationWc; +declare module 'material-ui/svg-icons/editor/publish' { + export import EditorPublish = __MaterialUI.SvgIcon; + export default EditorPublish; } -declare module 'material-ui/svg-icons/notification/tap-and-play' { - export import NotificationTapAndPlay = __MaterialUI.SvgIcon; - export default NotificationTapAndPlay; +declare module 'material-ui/svg-icons/editor/short-text' { + export import EditorShortText = __MaterialUI.SvgIcon; + export default EditorShortText; } -declare module 'material-ui/svg-icons/notification/folder-special' { - export import NotificationFolderSpecial = __MaterialUI.SvgIcon; - export default NotificationFolderSpecial; +declare module 'material-ui/svg-icons/editor/show-chart' { + export import EditorShowChart = __MaterialUI.SvgIcon; + export default EditorShowChart; } -declare module 'material-ui/svg-icons/notification/live-tv' { - export import NotificationLiveTv = __MaterialUI.SvgIcon; - export default NotificationLiveTv; +declare module 'material-ui/svg-icons/editor/space-bar' { + export import EditorSpaceBar = __MaterialUI.SvgIcon; + export default EditorSpaceBar; } -declare module 'material-ui/svg-icons/notification/sync' { - export import NotificationSync = __MaterialUI.SvgIcon; - export default NotificationSync; +declare module 'material-ui/svg-icons/editor/strikethrough-s' { + export import EditorStrikethroughS = __MaterialUI.SvgIcon; + export default EditorStrikethroughS; } -declare module 'material-ui/svg-icons/notification/phone-missed' { - export import NotificationPhoneMissed = __MaterialUI.SvgIcon; - export default NotificationPhoneMissed; +declare module 'material-ui/svg-icons/editor/text-fields' { + export import EditorTextFields = __MaterialUI.SvgIcon; + export default EditorTextFields; } -declare module 'material-ui/svg-icons/av/skip-previous' { - export import AvSkipPrevious = __MaterialUI.SvgIcon; - export default AvSkipPrevious; +declare module 'material-ui/svg-icons/editor/title' { + export import EditorTitle = __MaterialUI.SvgIcon; + export default EditorTitle; } -declare module 'material-ui/svg-icons/av/volume-off' { - export import AvVolumeOff = __MaterialUI.SvgIcon; - export default AvVolumeOff; +declare module 'material-ui/svg-icons/editor/vertical-align-bottom' { + export import EditorVerticalAlignBottom = __MaterialUI.SvgIcon; + export default EditorVerticalAlignBottom; } -declare module 'material-ui/svg-icons/av/subscriptions' { - export import AvSubscriptions = __MaterialUI.SvgIcon; - export default AvSubscriptions; +declare module 'material-ui/svg-icons/editor/vertical-align-center' { + export import EditorVerticalAlignCenter = __MaterialUI.SvgIcon; + export default EditorVerticalAlignCenter; } -declare module 'material-ui/svg-icons/av/play-arrow' { - export import AvPlayArrow = __MaterialUI.SvgIcon; - export default AvPlayArrow; +declare module 'material-ui/svg-icons/editor/vertical-align-top' { + export import EditorVerticalAlignTop = __MaterialUI.SvgIcon; + export default EditorVerticalAlignTop; } -declare module 'material-ui/svg-icons/av/play-circle-outline' { - export import AvPlayCircleOutline = __MaterialUI.SvgIcon; - export default AvPlayCircleOutline; +declare module 'material-ui/svg-icons/editor/wrap-text' { + export import EditorWrapText = __MaterialUI.SvgIcon; + export default EditorWrapText; } -declare module 'material-ui/svg-icons/av/replay-30' { - export import AvReplay30 = __MaterialUI.SvgIcon; - export default AvReplay30; +declare module 'material-ui/svg-icons/file/attachment' { + export import FileAttachment = __MaterialUI.SvgIcon; + export default FileAttachment; } -declare module 'material-ui/svg-icons/av/videocam' { - export import AvVideocam = __MaterialUI.SvgIcon; - export default AvVideocam; +declare module 'material-ui/svg-icons/file/cloud' { + export import FileCloud = __MaterialUI.SvgIcon; + export default FileCloud; } -declare module 'material-ui/svg-icons/av/replay-5' { - export import AvReplay5 = __MaterialUI.SvgIcon; - export default AvReplay5; +declare module 'material-ui/svg-icons/file/cloud-circle' { + export import FileCloudCircle = __MaterialUI.SvgIcon; + export default FileCloudCircle; } -declare module 'material-ui/svg-icons/av/forward-10' { - export import AvForward10 = __MaterialUI.SvgIcon; - export default AvForward10; +declare module 'material-ui/svg-icons/file/cloud-done' { + export import FileCloudDone = __MaterialUI.SvgIcon; + export default FileCloudDone; } -declare module 'material-ui/svg-icons/av/recent-actors' { - export import AvRecentActors = __MaterialUI.SvgIcon; - export default AvRecentActors; +declare module 'material-ui/svg-icons/file/cloud-download' { + export import FileCloudDownload = __MaterialUI.SvgIcon; + export default FileCloudDownload; } -declare module 'material-ui/svg-icons/av/replay-10' { - export import AvReplay10 = __MaterialUI.SvgIcon; - export default AvReplay10; +declare module 'material-ui/svg-icons/file/cloud-off' { + export import FileCloudOff = __MaterialUI.SvgIcon; + export default FileCloudOff; } -declare module 'material-ui/svg-icons/av/repeat' { - export import AvRepeat = __MaterialUI.SvgIcon; - export default AvRepeat; +declare module 'material-ui/svg-icons/file/cloud-queue' { + export import FileCloudQueue = __MaterialUI.SvgIcon; + export default FileCloudQueue; } -declare module 'material-ui/svg-icons/av/queue-music' { - export import AvQueueMusic = __MaterialUI.SvgIcon; - export default AvQueueMusic; +declare module 'material-ui/svg-icons/file/cloud-upload' { + export import FileCloudUpload = __MaterialUI.SvgIcon; + export default FileCloudUpload; } -declare module 'material-ui/svg-icons/av/fiber-pin' { - export import AvFiberPin = __MaterialUI.SvgIcon; - export default AvFiberPin; +declare module 'material-ui/svg-icons/file/create-new-folder' { + export import FileCreateNewFolder = __MaterialUI.SvgIcon; + export default FileCreateNewFolder; } -declare module 'material-ui/svg-icons/av/new-releases' { - export import AvNewReleases = __MaterialUI.SvgIcon; - export default AvNewReleases; +declare module 'material-ui/svg-icons/file/file-download' { + export import FileFileDownload = __MaterialUI.SvgIcon; + export default FileFileDownload; } -declare module 'material-ui/svg-icons/av/fiber-new' { - export import AvFiberNew = __MaterialUI.SvgIcon; - export default AvFiberNew; +declare module 'material-ui/svg-icons/file/file-upload' { + export import FileFileUpload = __MaterialUI.SvgIcon; + export default FileFileUpload; } -declare module 'material-ui/svg-icons/av/fiber-manual-record' { - export import AvFiberManualRecord = __MaterialUI.SvgIcon; - export default AvFiberManualRecord; +declare module 'material-ui/svg-icons/file/folder' { + export import FileFolder = __MaterialUI.SvgIcon; + export default FileFolder; } -declare module 'material-ui/svg-icons/av/hearing' { - export import AvHearing = __MaterialUI.SvgIcon; - export default AvHearing; +declare module 'material-ui/svg-icons/file/folder-open' { + export import FileFolderOpen = __MaterialUI.SvgIcon; + export default FileFolderOpen; } -declare module 'material-ui/svg-icons/av/loop' { - export import AvLoop = __MaterialUI.SvgIcon; - export default AvLoop; +declare module 'material-ui/svg-icons/file/folder-shared' { + export import FileFolderShared = __MaterialUI.SvgIcon; + export default FileFolderShared; } -declare module 'material-ui/svg-icons/av/volume-up' { - export import AvVolumeUp = __MaterialUI.SvgIcon; - export default AvVolumeUp; +declare module 'material-ui/svg-icons/hardware/cast' { + export import HardwareCast = __MaterialUI.SvgIcon; + export default HardwareCast; } -declare module 'material-ui/svg-icons/av/high-quality' { - export import AvHighQuality = __MaterialUI.SvgIcon; - export default AvHighQuality; +declare module 'material-ui/svg-icons/hardware/cast-connected' { + export import HardwareCastConnected = __MaterialUI.SvgIcon; + export default HardwareCastConnected; } -declare module 'material-ui/svg-icons/av/surround-sound' { - export import AvSurroundSound = __MaterialUI.SvgIcon; - export default AvSurroundSound; +declare module 'material-ui/svg-icons/hardware/computer' { + export import HardwareComputer = __MaterialUI.SvgIcon; + export default HardwareComputer; } -declare module 'material-ui/svg-icons/av/equalizer' { - export import AvEqualizer = __MaterialUI.SvgIcon; - export default AvEqualizer; +declare module 'material-ui/svg-icons/hardware/desktop-mac' { + export import HardwareDesktopMac = __MaterialUI.SvgIcon; + export default HardwareDesktopMac; } -declare module 'material-ui/svg-icons/av/music-video' { - export import AvMusicVideo = __MaterialUI.SvgIcon; - export default AvMusicVideo; +declare module 'material-ui/svg-icons/hardware/desktop-windows' { + export import HardwareDesktopWindows = __MaterialUI.SvgIcon; + export default HardwareDesktopWindows; } -declare module 'material-ui/svg-icons/av/shuffle' { - export import AvShuffle = __MaterialUI.SvgIcon; - export default AvShuffle; +declare module 'material-ui/svg-icons/hardware/developer-board' { + export import HardwareDeveloperBoard = __MaterialUI.SvgIcon; + export default HardwareDeveloperBoard; } -declare module 'material-ui/svg-icons/av/volume-down' { - export import AvVolumeDown = __MaterialUI.SvgIcon; - export default AvVolumeDown; +declare module 'material-ui/svg-icons/hardware/device-hub' { + export import HardwareDeviceHub = __MaterialUI.SvgIcon; + export default HardwareDeviceHub; } -declare module 'material-ui/svg-icons/av/radio' { - export import AvRadio = __MaterialUI.SvgIcon; - export default AvRadio; +declare module 'material-ui/svg-icons/hardware/devices-other' { + export import HardwareDevicesOther = __MaterialUI.SvgIcon; + export default HardwareDevicesOther; } -declare module 'material-ui/svg-icons/av/web-asset' { - export import AvWebAsset = __MaterialUI.SvgIcon; - export default AvWebAsset; +declare module 'material-ui/svg-icons/hardware/dock' { + export import HardwareDock = __MaterialUI.SvgIcon; + export default HardwareDock; } -declare module 'material-ui/svg-icons/av/replay' { - export import AvReplay = __MaterialUI.SvgIcon; - export default AvReplay; +declare module 'material-ui/svg-icons/hardware/gamepad' { + export import HardwareGamepad = __MaterialUI.SvgIcon; + export default HardwareGamepad; } -declare module 'material-ui/svg-icons/av/queue-play-next' { - export import AvQueuePlayNext = __MaterialUI.SvgIcon; - export default AvQueuePlayNext; +declare module 'material-ui/svg-icons/hardware/headset' { + export import HardwareHeadset = __MaterialUI.SvgIcon; + export default HardwareHeadset; } -declare module 'material-ui/svg-icons/av/closed-caption' { - export import AvClosedCaption = __MaterialUI.SvgIcon; - export default AvClosedCaption; +declare module 'material-ui/svg-icons/hardware/headset-mic' { + export import HardwareHeadsetMic = __MaterialUI.SvgIcon; + export default HardwareHeadsetMic; } -declare module 'material-ui/svg-icons/av/fiber-dvr' { - export import AvFiberDvr = __MaterialUI.SvgIcon; - export default AvFiberDvr; +declare module 'material-ui/svg-icons/hardware/keyboard' { + export import HardwareKeyboard = __MaterialUI.SvgIcon; + export default HardwareKeyboard; } -declare module 'material-ui/svg-icons/av/explicit' { - export import AvExplicit = __MaterialUI.SvgIcon; - export default AvExplicit; +declare module 'material-ui/svg-icons/hardware/keyboard-arrow-down' { + export import HardwareKeyboardArrowDown = __MaterialUI.SvgIcon; + export default HardwareKeyboardArrowDown; } -declare module 'material-ui/svg-icons/av/games' { - export import AvGames = __MaterialUI.SvgIcon; - export default AvGames; +declare module 'material-ui/svg-icons/hardware/keyboard-arrow-left' { + export import HardwareKeyboardArrowLeft = __MaterialUI.SvgIcon; + export default HardwareKeyboardArrowLeft; } -declare module 'material-ui/svg-icons/av/videocam-off' { - export import AvVideocamOff = __MaterialUI.SvgIcon; - export default AvVideocamOff; +declare module 'material-ui/svg-icons/hardware/keyboard-arrow-right' { + export import HardwareKeyboardArrowRight = __MaterialUI.SvgIcon; + export default HardwareKeyboardArrowRight; } -declare module 'material-ui/svg-icons/av/hd' { - export import AvHd = __MaterialUI.SvgIcon; - export default AvHd; +declare module 'material-ui/svg-icons/hardware/keyboard-arrow-up' { + export import HardwareKeyboardArrowUp = __MaterialUI.SvgIcon; + export default HardwareKeyboardArrowUp; } -declare module 'material-ui/svg-icons/av/fast-rewind' { - export import AvFastRewind = __MaterialUI.SvgIcon; - export default AvFastRewind; +declare module 'material-ui/svg-icons/hardware/keyboard-backspace' { + export import HardwareKeyboardBackspace = __MaterialUI.SvgIcon; + export default HardwareKeyboardBackspace; } -declare module 'material-ui/svg-icons/av/add-to-queue' { - export import AvAddToQueue = __MaterialUI.SvgIcon; - export default AvAddToQueue; +declare module 'material-ui/svg-icons/hardware/keyboard-capslock' { + export import HardwareKeyboardCapslock = __MaterialUI.SvgIcon; + export default HardwareKeyboardCapslock; } -declare module 'material-ui/svg-icons/av/movie' { - export import AvMovie = __MaterialUI.SvgIcon; - export default AvMovie; +declare module 'material-ui/svg-icons/hardware/keyboard-hide' { + export import HardwareKeyboardHide = __MaterialUI.SvgIcon; + export default HardwareKeyboardHide; } -declare module 'material-ui/svg-icons/av/library-books' { - export import AvLibraryBooks = __MaterialUI.SvgIcon; - export default AvLibraryBooks; +declare module 'material-ui/svg-icons/hardware/keyboard-return' { + export import HardwareKeyboardReturn = __MaterialUI.SvgIcon; + export default HardwareKeyboardReturn; } -declare module 'material-ui/svg-icons/av/art-track' { - export import AvArtTrack = __MaterialUI.SvgIcon; - export default AvArtTrack; +declare module 'material-ui/svg-icons/hardware/keyboard-tab' { + export import HardwareKeyboardTab = __MaterialUI.SvgIcon; + export default HardwareKeyboardTab; } -declare module 'material-ui/svg-icons/av/web' { - export import AvWeb = __MaterialUI.SvgIcon; - export default AvWeb; +declare module 'material-ui/svg-icons/hardware/keyboard-voice' { + export import HardwareKeyboardVoice = __MaterialUI.SvgIcon; + export default HardwareKeyboardVoice; } -declare module 'material-ui/svg-icons/av/play-circle-filled' { - export import AvPlayCircleFilled = __MaterialUI.SvgIcon; - export default AvPlayCircleFilled; +declare module 'material-ui/svg-icons/hardware/laptop' { + export import HardwareLaptop = __MaterialUI.SvgIcon; + export default HardwareLaptop; } -declare module 'material-ui/svg-icons/av/snooze' { - export import AvSnooze = __MaterialUI.SvgIcon; - export default AvSnooze; +declare module 'material-ui/svg-icons/hardware/laptop-chromebook' { + export import HardwareLaptopChromebook = __MaterialUI.SvgIcon; + export default HardwareLaptopChromebook; } -declare module 'material-ui/svg-icons/av/forward-5' { - export import AvForward5 = __MaterialUI.SvgIcon; - export default AvForward5; +declare module 'material-ui/svg-icons/hardware/laptop-mac' { + export import HardwareLaptopMac = __MaterialUI.SvgIcon; + export default HardwareLaptopMac; } -declare module 'material-ui/svg-icons/av/sort-by-alpha' { - export import AvSortByAlpha = __MaterialUI.SvgIcon; - export default AvSortByAlpha; +declare module 'material-ui/svg-icons/hardware/laptop-windows' { + export import HardwareLaptopWindows = __MaterialUI.SvgIcon; + export default HardwareLaptopWindows; } -declare module 'material-ui/svg-icons/av/pause-circle-filled' { - export import AvPauseCircleFilled = __MaterialUI.SvgIcon; - export default AvPauseCircleFilled; +declare module 'material-ui/svg-icons/hardware/memory' { + export import HardwareMemory = __MaterialUI.SvgIcon; + export default HardwareMemory; } -declare module 'material-ui/svg-icons/av/fiber-smart-record' { - export import AvFiberSmartRecord = __MaterialUI.SvgIcon; - export default AvFiberSmartRecord; +declare module 'material-ui/svg-icons/hardware/mouse' { + export import HardwareMouse = __MaterialUI.SvgIcon; + export default HardwareMouse; } -declare module 'material-ui/svg-icons/av/stop' { - export import AvStop = __MaterialUI.SvgIcon; - export default AvStop; +declare module 'material-ui/svg-icons/hardware/phone-android' { + export import HardwarePhoneAndroid = __MaterialUI.SvgIcon; + export default HardwarePhoneAndroid; } -declare module 'material-ui/svg-icons/av/playlist-play' { - export import AvPlaylistPlay = __MaterialUI.SvgIcon; - export default AvPlaylistPlay; +declare module 'material-ui/svg-icons/hardware/phone-iphone' { + export import HardwarePhoneIphone = __MaterialUI.SvgIcon; + export default HardwarePhoneIphone; } -declare module 'material-ui/svg-icons/av/library-add' { - export import AvLibraryAdd = __MaterialUI.SvgIcon; - export default AvLibraryAdd; +declare module 'material-ui/svg-icons/hardware/phonelink' { + export import HardwarePhonelink = __MaterialUI.SvgIcon; + export default HardwarePhonelink; } -declare module 'material-ui/svg-icons/av/volume-mute' { - export import AvVolumeMute = __MaterialUI.SvgIcon; - export default AvVolumeMute; +declare module 'material-ui/svg-icons/hardware/phonelink-off' { + export import HardwarePhonelinkOff = __MaterialUI.SvgIcon; + export default HardwarePhonelinkOff; } -declare module 'material-ui/svg-icons/av/skip-next' { - export import AvSkipNext = __MaterialUI.SvgIcon; - export default AvSkipNext; +declare module 'material-ui/svg-icons/hardware/power-input' { + export import HardwarePowerInput = __MaterialUI.SvgIcon; + export default HardwarePowerInput; } -declare module 'material-ui/svg-icons/av/forward-30' { - export import AvForward30 = __MaterialUI.SvgIcon; - export default AvForward30; +declare module 'material-ui/svg-icons/hardware/router' { + export import HardwareRouter = __MaterialUI.SvgIcon; + export default HardwareRouter; } -declare module 'material-ui/svg-icons/av/playlist-add' { - export import AvPlaylistAdd = __MaterialUI.SvgIcon; - export default AvPlaylistAdd; +declare module 'material-ui/svg-icons/hardware/scanner' { + export import HardwareScanner = __MaterialUI.SvgIcon; + export default HardwareScanner; } -declare module 'material-ui/svg-icons/av/album' { - export import AvAlbum = __MaterialUI.SvgIcon; - export default AvAlbum; +declare module 'material-ui/svg-icons/hardware/security' { + export import HardwareSecurity = __MaterialUI.SvgIcon; + export default HardwareSecurity; } -declare module 'material-ui/svg-icons/av/video-library' { - export import AvVideoLibrary = __MaterialUI.SvgIcon; - export default AvVideoLibrary; +declare module 'material-ui/svg-icons/hardware/sim-card' { + export import HardwareSimCard = __MaterialUI.SvgIcon; + export default HardwareSimCard; } -declare module 'material-ui/svg-icons/av/library-music' { - export import AvLibraryMusic = __MaterialUI.SvgIcon; - export default AvLibraryMusic; +declare module 'material-ui/svg-icons/hardware/smartphone' { + export import HardwareSmartphone = __MaterialUI.SvgIcon; + export default HardwareSmartphone; } -declare module 'material-ui/svg-icons/av/not-interested' { - export import AvNotInterested = __MaterialUI.SvgIcon; - export default AvNotInterested; +declare module 'material-ui/svg-icons/hardware/speaker' { + export import HardwareSpeaker = __MaterialUI.SvgIcon; + export default HardwareSpeaker; } -declare module 'material-ui/svg-icons/av/playlist-add-check' { - export import AvPlaylistAddCheck = __MaterialUI.SvgIcon; - export default AvPlaylistAddCheck; +declare module 'material-ui/svg-icons/hardware/speaker-group' { + export import HardwareSpeakerGroup = __MaterialUI.SvgIcon; + export default HardwareSpeakerGroup; } -declare module 'material-ui/svg-icons/av/mic-none' { - export import AvMicNone = __MaterialUI.SvgIcon; - export default AvMicNone; +declare module 'material-ui/svg-icons/hardware/tablet' { + export import HardwareTablet = __MaterialUI.SvgIcon; + export default HardwareTablet; } -declare module 'material-ui/svg-icons/av/pause' { - export import AvPause = __MaterialUI.SvgIcon; - export default AvPause; +declare module 'material-ui/svg-icons/hardware/tablet-android' { + export import HardwareTabletAndroid = __MaterialUI.SvgIcon; + export default HardwareTabletAndroid; } -declare module 'material-ui/svg-icons/av/remove-from-queue' { - export import AvRemoveFromQueue = __MaterialUI.SvgIcon; - export default AvRemoveFromQueue; +declare module 'material-ui/svg-icons/hardware/tablet-mac' { + export import HardwareTabletMac = __MaterialUI.SvgIcon; + export default HardwareTabletMac; } -declare module 'material-ui/svg-icons/av/slow-motion-video' { - export import AvSlowMotionVideo = __MaterialUI.SvgIcon; - export default AvSlowMotionVideo; +declare module 'material-ui/svg-icons/hardware/toys' { + export import HardwareToys = __MaterialUI.SvgIcon; + export default HardwareToys; } -declare module 'material-ui/svg-icons/av/subtitles' { - export import AvSubtitles = __MaterialUI.SvgIcon; - export default AvSubtitles; +declare module 'material-ui/svg-icons/hardware/tv' { + export import HardwareTv = __MaterialUI.SvgIcon; + export default HardwareTv; } -declare module 'material-ui/svg-icons/av/mic-off' { - export import AvMicOff = __MaterialUI.SvgIcon; - export default AvMicOff; +declare module 'material-ui/svg-icons/hardware/videogame-asset' { + export import HardwareVideogameAsset = __MaterialUI.SvgIcon; + export default HardwareVideogameAsset; } -declare module 'material-ui/svg-icons/av/repeat-one' { - export import AvRepeatOne = __MaterialUI.SvgIcon; - export default AvRepeatOne; -} - -declare module 'material-ui/svg-icons/av/queue' { - export import AvQueue = __MaterialUI.SvgIcon; - export default AvQueue; -} - -declare module 'material-ui/svg-icons/av/fast-forward' { - export import AvFastForward = __MaterialUI.SvgIcon; - export default AvFastForward; -} - -declare module 'material-ui/svg-icons/av/mic' { - export import AvMic = __MaterialUI.SvgIcon; - export default AvMic; -} - -declare module 'material-ui/svg-icons/av/av-timer' { - export import AvAvTimer = __MaterialUI.SvgIcon; - export default AvAvTimer; -} - -declare module 'material-ui/svg-icons/av/pause-circle-outline' { - export import AvPauseCircleOutline = __MaterialUI.SvgIcon; - export default AvPauseCircleOutline; -} - -declare module 'material-ui/svg-icons/av/airplay' { - export import AvAirplay = __MaterialUI.SvgIcon; - export default AvAirplay; -} - -declare module 'material-ui/svg-icons/image/camera-rear' { - export import ImageCameraRear = __MaterialUI.SvgIcon; - export default ImageCameraRear; +declare module 'material-ui/svg-icons/hardware/watch' { + export import HardwareWatch = __MaterialUI.SvgIcon; + export default HardwareWatch; } declare module 'material-ui/svg-icons/image/add-a-photo' { @@ -6116,459 +5359,24 @@ declare module 'material-ui/svg-icons/image/add-a-photo' { export default ImageAddAPhoto; } -declare module 'material-ui/svg-icons/image/portrait' { - export import ImagePortrait = __MaterialUI.SvgIcon; - export default ImagePortrait; -} - -declare module 'material-ui/svg-icons/image/looks' { - export import ImageLooks = __MaterialUI.SvgIcon; - export default ImageLooks; -} - -declare module 'material-ui/svg-icons/image/exposure-neg-2' { - export import ImageExposureNeg2 = __MaterialUI.SvgIcon; - export default ImageExposureNeg2; -} - -declare module 'material-ui/svg-icons/image/wb-cloudy' { - export import ImageWbCloudy = __MaterialUI.SvgIcon; - export default ImageWbCloudy; -} - -declare module 'material-ui/svg-icons/image/switch-video' { - export import ImageSwitchVideo = __MaterialUI.SvgIcon; - export default ImageSwitchVideo; -} - -declare module 'material-ui/svg-icons/image/wb-auto' { - export import ImageWbAuto = __MaterialUI.SvgIcon; - export default ImageWbAuto; -} - -declare module 'material-ui/svg-icons/image/filter-center-focus' { - export import ImageFilterCenterFocus = __MaterialUI.SvgIcon; - export default ImageFilterCenterFocus; -} - -declare module 'material-ui/svg-icons/image/crop-7-5' { - export import ImageCrop75 = __MaterialUI.SvgIcon; - export default ImageCrop75; -} - -declare module 'material-ui/svg-icons/image/crop-3-2' { - export import ImageCrop32 = __MaterialUI.SvgIcon; - export default ImageCrop32; -} - -declare module 'material-ui/svg-icons/image/assistant-photo' { - export import ImageAssistantPhoto = __MaterialUI.SvgIcon; - export default ImageAssistantPhoto; -} - -declare module 'material-ui/svg-icons/image/looks-one' { - export import ImageLooksOne = __MaterialUI.SvgIcon; - export default ImageLooksOne; -} - -declare module 'material-ui/svg-icons/image/collections-bookmark' { - export import ImageCollectionsBookmark = __MaterialUI.SvgIcon; - export default ImageCollectionsBookmark; -} - -declare module 'material-ui/svg-icons/image/image-aspect-ratio' { - export import ImageImageAspectRatio = __MaterialUI.SvgIcon; - export default ImageImageAspectRatio; -} - -declare module 'material-ui/svg-icons/image/brush' { - export import ImageBrush = __MaterialUI.SvgIcon; - export default ImageBrush; -} - -declare module 'material-ui/svg-icons/image/linked-camera' { - export import ImageLinkedCamera = __MaterialUI.SvgIcon; - export default ImageLinkedCamera; -} - -declare module 'material-ui/svg-icons/image/filter-1' { - export import ImageFilter1 = __MaterialUI.SvgIcon; - export default ImageFilter1; -} - -declare module 'material-ui/svg-icons/image/edit' { - export import ImageEdit = __MaterialUI.SvgIcon; - export default ImageEdit; -} - -declare module 'material-ui/svg-icons/image/timelapse' { - export import ImageTimelapse = __MaterialUI.SvgIcon; - export default ImageTimelapse; -} - -declare module 'material-ui/svg-icons/image/nature' { - export import ImageNature = __MaterialUI.SvgIcon; - export default ImageNature; -} - -declare module 'material-ui/svg-icons/image/monochrome-photos' { - export import ImageMonochromePhotos = __MaterialUI.SvgIcon; - export default ImageMonochromePhotos; -} - -declare module 'material-ui/svg-icons/image/brightness-6' { - export import ImageBrightness6 = __MaterialUI.SvgIcon; - export default ImageBrightness6; -} - -declare module 'material-ui/svg-icons/image/music-note' { - export import ImageMusicNote = __MaterialUI.SvgIcon; - export default ImageMusicNote; -} - -declare module 'material-ui/svg-icons/image/collections' { - export import ImageCollections = __MaterialUI.SvgIcon; - export default ImageCollections; -} - -declare module 'material-ui/svg-icons/image/wb-sunny' { - export import ImageWbSunny = __MaterialUI.SvgIcon; - export default ImageWbSunny; -} - -declare module 'material-ui/svg-icons/image/hdr-strong' { - export import ImageHdrStrong = __MaterialUI.SvgIcon; - export default ImageHdrStrong; -} - -declare module 'material-ui/svg-icons/image/panorama-vertical' { - export import ImagePanoramaVertical = __MaterialUI.SvgIcon; - export default ImagePanoramaVertical; -} - -declare module 'material-ui/svg-icons/image/navigate-next' { - export import ImageNavigateNext = __MaterialUI.SvgIcon; - export default ImageNavigateNext; -} - -declare module 'material-ui/svg-icons/image/looks-4' { - export import ImageLooks4 = __MaterialUI.SvgIcon; - export default ImageLooks4; -} - -declare module 'material-ui/svg-icons/image/filter-4' { - export import ImageFilter4 = __MaterialUI.SvgIcon; - export default ImageFilter4; -} - -declare module 'material-ui/svg-icons/image/brightness-1' { - export import ImageBrightness1 = __MaterialUI.SvgIcon; - export default ImageBrightness1; -} - -declare module 'material-ui/svg-icons/image/exposure-plus-1' { - export import ImageExposurePlus1 = __MaterialUI.SvgIcon; - export default ImageExposurePlus1; -} - -declare module 'material-ui/svg-icons/image/timer-3' { - export import ImageTimer3 = __MaterialUI.SvgIcon; - export default ImageTimer3; -} - -declare module 'material-ui/svg-icons/image/exposure-zero' { - export import ImageExposureZero = __MaterialUI.SvgIcon; - export default ImageExposureZero; -} - -declare module 'material-ui/svg-icons/image/blur-linear' { - export import ImageBlurLinear = __MaterialUI.SvgIcon; - export default ImageBlurLinear; -} - -declare module 'material-ui/svg-icons/image/photo-library' { - export import ImagePhotoLibrary = __MaterialUI.SvgIcon; - export default ImagePhotoLibrary; -} - -declare module 'material-ui/svg-icons/image/filter-drama' { - export import ImageFilterDrama = __MaterialUI.SvgIcon; - export default ImageFilterDrama; -} - -declare module 'material-ui/svg-icons/image/dehaze' { - export import ImageDehaze = __MaterialUI.SvgIcon; - export default ImageDehaze; -} - -declare module 'material-ui/svg-icons/image/control-point-duplicate' { - export import ImageControlPointDuplicate = __MaterialUI.SvgIcon; - export default ImageControlPointDuplicate; -} - -declare module 'material-ui/svg-icons/image/image' { - export import ImageImage = __MaterialUI.SvgIcon; - export default ImageImage; -} - -declare module 'material-ui/svg-icons/image/flash-auto' { - export import ImageFlashAuto = __MaterialUI.SvgIcon; - export default ImageFlashAuto; -} - -declare module 'material-ui/svg-icons/image/rotate-90-degrees-ccw' { - export import ImageRotate90DegreesCcw = __MaterialUI.SvgIcon; - export default ImageRotate90DegreesCcw; -} - -declare module 'material-ui/svg-icons/image/blur-circular' { - export import ImageBlurCircular = __MaterialUI.SvgIcon; - export default ImageBlurCircular; -} - -declare module 'material-ui/svg-icons/image/filter-3' { - export import ImageFilter3 = __MaterialUI.SvgIcon; - export default ImageFilter3; -} - -declare module 'material-ui/svg-icons/image/exposure-plus-2' { - export import ImageExposurePlus2 = __MaterialUI.SvgIcon; - export default ImageExposurePlus2; -} - -declare module 'material-ui/svg-icons/image/flash-on' { - export import ImageFlashOn = __MaterialUI.SvgIcon; - export default ImageFlashOn; -} - -declare module 'material-ui/svg-icons/image/view-comfy' { - export import ImageViewComfy = __MaterialUI.SvgIcon; - export default ImageViewComfy; -} - -declare module 'material-ui/svg-icons/image/colorize' { - export import ImageColorize = __MaterialUI.SvgIcon; - export default ImageColorize; -} - -declare module 'material-ui/svg-icons/image/brightness-4' { - export import ImageBrightness4 = __MaterialUI.SvgIcon; - export default ImageBrightness4; -} - -declare module 'material-ui/svg-icons/image/crop-free' { - export import ImageCropFree = __MaterialUI.SvgIcon; - export default ImageCropFree; -} - -declare module 'material-ui/svg-icons/image/vignette' { - export import ImageVignette = __MaterialUI.SvgIcon; - export default ImageVignette; -} - -declare module 'material-ui/svg-icons/image/tag-faces' { - export import ImageTagFaces = __MaterialUI.SvgIcon; - export default ImageTagFaces; -} - -declare module 'material-ui/svg-icons/image/brightness-7' { - export import ImageBrightness7 = __MaterialUI.SvgIcon; - export default ImageBrightness7; -} - -declare module 'material-ui/svg-icons/image/healing' { - export import ImageHealing = __MaterialUI.SvgIcon; - export default ImageHealing; -} - -declare module 'material-ui/svg-icons/image/nature-people' { - export import ImageNaturePeople = __MaterialUI.SvgIcon; - export default ImageNaturePeople; -} - -declare module 'material-ui/svg-icons/image/gradient' { - export import ImageGradient = __MaterialUI.SvgIcon; - export default ImageGradient; -} - -declare module 'material-ui/svg-icons/image/flash-off' { - export import ImageFlashOff = __MaterialUI.SvgIcon; - export default ImageFlashOff; -} - -declare module 'material-ui/svg-icons/image/movie-creation' { - export import ImageMovieCreation = __MaterialUI.SvgIcon; - export default ImageMovieCreation; -} - -declare module 'material-ui/svg-icons/image/leak-add' { - export import ImageLeakAdd = __MaterialUI.SvgIcon; - export default ImageLeakAdd; -} - -declare module 'material-ui/svg-icons/image/filter-5' { - export import ImageFilter5 = __MaterialUI.SvgIcon; - export default ImageFilter5; -} - -declare module 'material-ui/svg-icons/image/photo' { - export import ImagePhoto = __MaterialUI.SvgIcon; - export default ImagePhoto; -} - -declare module 'material-ui/svg-icons/image/color-lens' { - export import ImageColorLens = __MaterialUI.SvgIcon; - export default ImageColorLens; -} - -declare module 'material-ui/svg-icons/image/broken-image' { - export import ImageBrokenImage = __MaterialUI.SvgIcon; - export default ImageBrokenImage; -} - -declare module 'material-ui/svg-icons/image/looks-6' { - export import ImageLooks6 = __MaterialUI.SvgIcon; - export default ImageLooks6; -} - -declare module 'material-ui/svg-icons/image/picture-as-pdf' { - export import ImagePictureAsPdf = __MaterialUI.SvgIcon; - export default ImagePictureAsPdf; -} - -declare module 'material-ui/svg-icons/image/palette' { - export import ImagePalette = __MaterialUI.SvgIcon; - export default ImagePalette; -} - -declare module 'material-ui/svg-icons/image/crop-landscape' { - export import ImageCropLandscape = __MaterialUI.SvgIcon; - export default ImageCropLandscape; -} - -declare module 'material-ui/svg-icons/image/grid-on' { - export import ImageGridOn = __MaterialUI.SvgIcon; - export default ImageGridOn; -} - -declare module 'material-ui/svg-icons/image/slideshow' { - export import ImageSlideshow = __MaterialUI.SvgIcon; - export default ImageSlideshow; -} - -declare module 'material-ui/svg-icons/image/brightness-3' { - export import ImageBrightness3 = __MaterialUI.SvgIcon; - export default ImageBrightness3; -} - -declare module 'material-ui/svg-icons/image/style' { - export import ImageStyle = __MaterialUI.SvgIcon; - export default ImageStyle; -} - -declare module 'material-ui/svg-icons/image/filter-vintage' { - export import ImageFilterVintage = __MaterialUI.SvgIcon; - export default ImageFilterVintage; -} - -declare module 'material-ui/svg-icons/image/tune' { - export import ImageTune = __MaterialUI.SvgIcon; - export default ImageTune; -} - -declare module 'material-ui/svg-icons/image/camera' { - export import ImageCamera = __MaterialUI.SvgIcon; - export default ImageCamera; -} - -declare module 'material-ui/svg-icons/image/timer' { - export import ImageTimer = __MaterialUI.SvgIcon; - export default ImageTimer; -} - -declare module 'material-ui/svg-icons/image/landscape' { - export import ImageLandscape = __MaterialUI.SvgIcon; - export default ImageLandscape; -} - -declare module 'material-ui/svg-icons/image/crop-16-9' { - export import ImageCrop169 = __MaterialUI.SvgIcon; - export default ImageCrop169; -} - declare module 'material-ui/svg-icons/image/add-to-photos' { export import ImageAddToPhotos = __MaterialUI.SvgIcon; export default ImageAddToPhotos; } -declare module 'material-ui/svg-icons/image/wb-incandescent' { - export import ImageWbIncandescent = __MaterialUI.SvgIcon; - export default ImageWbIncandescent; -} - -declare module 'material-ui/svg-icons/image/hdr-weak' { - export import ImageHdrWeak = __MaterialUI.SvgIcon; - export default ImageHdrWeak; -} - -declare module 'material-ui/svg-icons/image/details' { - export import ImageDetails = __MaterialUI.SvgIcon; - export default ImageDetails; -} - -declare module 'material-ui/svg-icons/image/view-compact' { - export import ImageViewCompact = __MaterialUI.SvgIcon; - export default ImageViewCompact; -} - -declare module 'material-ui/svg-icons/image/brightness-5' { - export import ImageBrightness5 = __MaterialUI.SvgIcon; - export default ImageBrightness5; -} - -declare module 'material-ui/svg-icons/image/center-focus-weak' { - export import ImageCenterFocusWeak = __MaterialUI.SvgIcon; - export default ImageCenterFocusWeak; -} - declare module 'material-ui/svg-icons/image/adjust' { export import ImageAdjust = __MaterialUI.SvgIcon; export default ImageAdjust; } -declare module 'material-ui/svg-icons/image/camera-front' { - export import ImageCameraFront = __MaterialUI.SvgIcon; - export default ImageCameraFront; +declare module 'material-ui/svg-icons/image/assistant' { + export import ImageAssistant = __MaterialUI.SvgIcon; + export default ImageAssistant; } -declare module 'material-ui/svg-icons/image/transform' { - export import ImageTransform = __MaterialUI.SvgIcon; - export default ImageTransform; -} - -declare module 'material-ui/svg-icons/image/filter' { - export import ImageFilter = __MaterialUI.SvgIcon; - export default ImageFilter; -} - -declare module 'material-ui/svg-icons/image/grain' { - export import ImageGrain = __MaterialUI.SvgIcon; - export default ImageGrain; -} - -declare module 'material-ui/svg-icons/image/filter-9-plus' { - export import ImageFilter9Plus = __MaterialUI.SvgIcon; - export default ImageFilter9Plus; -} - -declare module 'material-ui/svg-icons/image/looks-5' { - export import ImageLooks5 = __MaterialUI.SvgIcon; - export default ImageLooks5; -} - -declare module 'material-ui/svg-icons/image/hdr-on' { - export import ImageHdrOn = __MaterialUI.SvgIcon; - export default ImageHdrOn; +declare module 'material-ui/svg-icons/image/assistant-photo' { + export import ImageAssistantPhoto = __MaterialUI.SvgIcon; + export default ImageAssistantPhoto; } declare module 'material-ui/svg-icons/image/audiotrack' { @@ -6576,69 +5384,19 @@ declare module 'material-ui/svg-icons/image/audiotrack' { export default ImageAudiotrack; } -declare module 'material-ui/svg-icons/image/compare' { - export import ImageCompare = __MaterialUI.SvgIcon; - export default ImageCompare; +declare module 'material-ui/svg-icons/image/blur-circular' { + export import ImageBlurCircular = __MaterialUI.SvgIcon; + export default ImageBlurCircular; } -declare module 'material-ui/svg-icons/image/crop' { - export import ImageCrop = __MaterialUI.SvgIcon; - export default ImageCrop; +declare module 'material-ui/svg-icons/image/blur-linear' { + export import ImageBlurLinear = __MaterialUI.SvgIcon; + export default ImageBlurLinear; } -declare module 'material-ui/svg-icons/image/texture' { - export import ImageTexture = __MaterialUI.SvgIcon; - export default ImageTexture; -} - -declare module 'material-ui/svg-icons/image/movie-filter' { - export import ImageMovieFilter = __MaterialUI.SvgIcon; - export default ImageMovieFilter; -} - -declare module 'material-ui/svg-icons/image/exposure' { - export import ImageExposure = __MaterialUI.SvgIcon; - export default ImageExposure; -} - -declare module 'material-ui/svg-icons/image/filter-b-and-w' { - export import ImageFilterBAndW = __MaterialUI.SvgIcon; - export default ImageFilterBAndW; -} - -declare module 'material-ui/svg-icons/image/photo-size-select-actual' { - export import ImagePhotoSizeSelectActual = __MaterialUI.SvgIcon; - export default ImagePhotoSizeSelectActual; -} - -declare module 'material-ui/svg-icons/image/crop-5-4' { - export import ImageCrop54 = __MaterialUI.SvgIcon; - export default ImageCrop54; -} - -declare module 'material-ui/svg-icons/image/brightness-2' { - export import ImageBrightness2 = __MaterialUI.SvgIcon; - export default ImageBrightness2; -} - -declare module 'material-ui/svg-icons/image/tonality' { - export import ImageTonality = __MaterialUI.SvgIcon; - export default ImageTonality; -} - -declare module 'material-ui/svg-icons/image/panorama-wide-angle' { - export import ImagePanoramaWideAngle = __MaterialUI.SvgIcon; - export default ImagePanoramaWideAngle; -} - -declare module 'material-ui/svg-icons/image/flip' { - export import ImageFlip = __MaterialUI.SvgIcon; - export default ImageFlip; -} - -declare module 'material-ui/svg-icons/image/filter-9' { - export import ImageFilter9 = __MaterialUI.SvgIcon; - export default ImageFilter9; +declare module 'material-ui/svg-icons/image/blur-off' { + export import ImageBlurOff = __MaterialUI.SvgIcon; + export default ImageBlurOff; } declare module 'material-ui/svg-icons/image/blur-on' { @@ -6646,134 +5404,59 @@ declare module 'material-ui/svg-icons/image/blur-on' { export default ImageBlurOn; } -declare module 'material-ui/svg-icons/image/assistant' { - export import ImageAssistant = __MaterialUI.SvgIcon; - export default ImageAssistant; +declare module 'material-ui/svg-icons/image/brightness-1' { + export import ImageBrightness1 = __MaterialUI.SvgIcon; + export default ImageBrightness1; } -declare module 'material-ui/svg-icons/image/lens' { - export import ImageLens = __MaterialUI.SvgIcon; - export default ImageLens; +declare module 'material-ui/svg-icons/image/brightness-2' { + export import ImageBrightness2 = __MaterialUI.SvgIcon; + export default ImageBrightness2; } -declare module 'material-ui/svg-icons/image/switch-camera' { - export import ImageSwitchCamera = __MaterialUI.SvgIcon; - export default ImageSwitchCamera; +declare module 'material-ui/svg-icons/image/brightness-3' { + export import ImageBrightness3 = __MaterialUI.SvgIcon; + export default ImageBrightness3; } -declare module 'material-ui/svg-icons/image/photo-filter' { - export import ImagePhotoFilter = __MaterialUI.SvgIcon; - export default ImagePhotoFilter; +declare module 'material-ui/svg-icons/image/brightness-4' { + export import ImageBrightness4 = __MaterialUI.SvgIcon; + export default ImageBrightness4; } -declare module 'material-ui/svg-icons/image/wb-iridescent' { - export import ImageWbIridescent = __MaterialUI.SvgIcon; - export default ImageWbIridescent; +declare module 'material-ui/svg-icons/image/brightness-5' { + export import ImageBrightness5 = __MaterialUI.SvgIcon; + export default ImageBrightness5; } -declare module 'material-ui/svg-icons/image/crop-square' { - export import ImageCropSquare = __MaterialUI.SvgIcon; - export default ImageCropSquare; +declare module 'material-ui/svg-icons/image/brightness-6' { + export import ImageBrightness6 = __MaterialUI.SvgIcon; + export default ImageBrightness6; } -declare module 'material-ui/svg-icons/image/timer-10' { - export import ImageTimer10 = __MaterialUI.SvgIcon; - export default ImageTimer10; +declare module 'material-ui/svg-icons/image/brightness-7' { + export import ImageBrightness7 = __MaterialUI.SvgIcon; + export default ImageBrightness7; } -declare module 'material-ui/svg-icons/image/rotate-right' { - export import ImageRotateRight = __MaterialUI.SvgIcon; - export default ImageRotateRight; +declare module 'material-ui/svg-icons/image/broken-image' { + export import ImageBrokenImage = __MaterialUI.SvgIcon; + export default ImageBrokenImage; } -declare module 'material-ui/svg-icons/image/grid-off' { - export import ImageGridOff = __MaterialUI.SvgIcon; - export default ImageGridOff; +declare module 'material-ui/svg-icons/image/brush' { + export import ImageBrush = __MaterialUI.SvgIcon; + export default ImageBrush; } -declare module 'material-ui/svg-icons/image/filter-7' { - export import ImageFilter7 = __MaterialUI.SvgIcon; - export default ImageFilter7; +declare module 'material-ui/svg-icons/image/burst-mode' { + export import ImageBurstMode = __MaterialUI.SvgIcon; + export default ImageBurstMode; } -declare module 'material-ui/svg-icons/image/loupe' { - export import ImageLoupe = __MaterialUI.SvgIcon; - export default ImageLoupe; -} - -declare module 'material-ui/svg-icons/image/filter-6' { - export import ImageFilter6 = __MaterialUI.SvgIcon; - export default ImageFilter6; -} - -declare module 'material-ui/svg-icons/image/filter-tilt-shift' { - export import ImageFilterTiltShift = __MaterialUI.SvgIcon; - export default ImageFilterTiltShift; -} - -declare module 'material-ui/svg-icons/image/crop-din' { - export import ImageCropDin = __MaterialUI.SvgIcon; - export default ImageCropDin; -} - -declare module 'material-ui/svg-icons/image/center-focus-strong' { - export import ImageCenterFocusStrong = __MaterialUI.SvgIcon; - export default ImageCenterFocusStrong; -} - -declare module 'material-ui/svg-icons/image/rotate-left' { - export import ImageRotateLeft = __MaterialUI.SvgIcon; - export default ImageRotateLeft; -} - -declare module 'material-ui/svg-icons/image/filter-hdr' { - export import ImageFilterHdr = __MaterialUI.SvgIcon; - export default ImageFilterHdr; -} - -declare module 'material-ui/svg-icons/image/timer-off' { - export import ImageTimerOff = __MaterialUI.SvgIcon; - export default ImageTimerOff; -} - -declare module 'material-ui/svg-icons/image/straighten' { - export import ImageStraighten = __MaterialUI.SvgIcon; - export default ImageStraighten; -} - -declare module 'material-ui/svg-icons/image/exposure-neg-1' { - export import ImageExposureNeg1 = __MaterialUI.SvgIcon; - export default ImageExposureNeg1; -} - -declare module 'material-ui/svg-icons/image/navigate-before' { - export import ImageNavigateBefore = __MaterialUI.SvgIcon; - export default ImageNavigateBefore; -} - -declare module 'material-ui/svg-icons/image/iso' { - export import ImageIso = __MaterialUI.SvgIcon; - export default ImageIso; -} - -declare module 'material-ui/svg-icons/image/photo-album' { - export import ImagePhotoAlbum = __MaterialUI.SvgIcon; - export default ImagePhotoAlbum; -} - -declare module 'material-ui/svg-icons/image/crop-rotate' { - export import ImageCropRotate = __MaterialUI.SvgIcon; - export default ImageCropRotate; -} - -declare module 'material-ui/svg-icons/image/remove-red-eye' { - export import ImageRemoveRedEye = __MaterialUI.SvgIcon; - export default ImageRemoveRedEye; -} - -declare module 'material-ui/svg-icons/image/crop-portrait' { - export import ImageCropPortrait = __MaterialUI.SvgIcon; - export default ImageCropPortrait; +declare module 'material-ui/svg-icons/image/camera' { + export import ImageCamera = __MaterialUI.SvgIcon; + export default ImageCamera; } declare module 'material-ui/svg-icons/image/camera-alt' { @@ -6781,11 +5464,461 @@ declare module 'material-ui/svg-icons/image/camera-alt' { export default ImageCameraAlt; } +declare module 'material-ui/svg-icons/image/camera-front' { + export import ImageCameraFront = __MaterialUI.SvgIcon; + export default ImageCameraFront; +} + +declare module 'material-ui/svg-icons/image/camera-rear' { + export import ImageCameraRear = __MaterialUI.SvgIcon; + export default ImageCameraRear; +} + +declare module 'material-ui/svg-icons/image/camera-roll' { + export import ImageCameraRoll = __MaterialUI.SvgIcon; + export default ImageCameraRoll; +} + +declare module 'material-ui/svg-icons/image/center-focus-strong' { + export import ImageCenterFocusStrong = __MaterialUI.SvgIcon; + export default ImageCenterFocusStrong; +} + +declare module 'material-ui/svg-icons/image/center-focus-weak' { + export import ImageCenterFocusWeak = __MaterialUI.SvgIcon; + export default ImageCenterFocusWeak; +} + +declare module 'material-ui/svg-icons/image/collections' { + export import ImageCollections = __MaterialUI.SvgIcon; + export default ImageCollections; +} + +declare module 'material-ui/svg-icons/image/collections-bookmark' { + export import ImageCollectionsBookmark = __MaterialUI.SvgIcon; + export default ImageCollectionsBookmark; +} + +declare module 'material-ui/svg-icons/image/color-lens' { + export import ImageColorLens = __MaterialUI.SvgIcon; + export default ImageColorLens; +} + +declare module 'material-ui/svg-icons/image/colorize' { + export import ImageColorize = __MaterialUI.SvgIcon; + export default ImageColorize; +} + +declare module 'material-ui/svg-icons/image/compare' { + export import ImageCompare = __MaterialUI.SvgIcon; + export default ImageCompare; +} + declare module 'material-ui/svg-icons/image/control-point' { export import ImageControlPoint = __MaterialUI.SvgIcon; export default ImageControlPoint; } +declare module 'material-ui/svg-icons/image/control-point-duplicate' { + export import ImageControlPointDuplicate = __MaterialUI.SvgIcon; + export default ImageControlPointDuplicate; +} + +declare module 'material-ui/svg-icons/image/crop' { + export import ImageCrop = __MaterialUI.SvgIcon; + export default ImageCrop; +} + +declare module 'material-ui/svg-icons/image/crop-16-9' { + export import ImageCrop169 = __MaterialUI.SvgIcon; + export default ImageCrop169; +} + +declare module 'material-ui/svg-icons/image/crop-3-2' { + export import ImageCrop32 = __MaterialUI.SvgIcon; + export default ImageCrop32; +} + +declare module 'material-ui/svg-icons/image/crop-5-4' { + export import ImageCrop54 = __MaterialUI.SvgIcon; + export default ImageCrop54; +} + +declare module 'material-ui/svg-icons/image/crop-7-5' { + export import ImageCrop75 = __MaterialUI.SvgIcon; + export default ImageCrop75; +} + +declare module 'material-ui/svg-icons/image/crop-din' { + export import ImageCropDin = __MaterialUI.SvgIcon; + export default ImageCropDin; +} + +declare module 'material-ui/svg-icons/image/crop-free' { + export import ImageCropFree = __MaterialUI.SvgIcon; + export default ImageCropFree; +} + +declare module 'material-ui/svg-icons/image/crop-landscape' { + export import ImageCropLandscape = __MaterialUI.SvgIcon; + export default ImageCropLandscape; +} + +declare module 'material-ui/svg-icons/image/crop-original' { + export import ImageCropOriginal = __MaterialUI.SvgIcon; + export default ImageCropOriginal; +} + +declare module 'material-ui/svg-icons/image/crop-portrait' { + export import ImageCropPortrait = __MaterialUI.SvgIcon; + export default ImageCropPortrait; +} + +declare module 'material-ui/svg-icons/image/crop-rotate' { + export import ImageCropRotate = __MaterialUI.SvgIcon; + export default ImageCropRotate; +} + +declare module 'material-ui/svg-icons/image/crop-square' { + export import ImageCropSquare = __MaterialUI.SvgIcon; + export default ImageCropSquare; +} + +declare module 'material-ui/svg-icons/image/dehaze' { + export import ImageDehaze = __MaterialUI.SvgIcon; + export default ImageDehaze; +} + +declare module 'material-ui/svg-icons/image/details' { + export import ImageDetails = __MaterialUI.SvgIcon; + export default ImageDetails; +} + +declare module 'material-ui/svg-icons/image/edit' { + export import ImageEdit = __MaterialUI.SvgIcon; + export default ImageEdit; +} + +declare module 'material-ui/svg-icons/image/exposure' { + export import ImageExposure = __MaterialUI.SvgIcon; + export default ImageExposure; +} + +declare module 'material-ui/svg-icons/image/exposure-neg-1' { + export import ImageExposureNeg1 = __MaterialUI.SvgIcon; + export default ImageExposureNeg1; +} + +declare module 'material-ui/svg-icons/image/exposure-neg-2' { + export import ImageExposureNeg2 = __MaterialUI.SvgIcon; + export default ImageExposureNeg2; +} + +declare module 'material-ui/svg-icons/image/exposure-plus-1' { + export import ImageExposurePlus1 = __MaterialUI.SvgIcon; + export default ImageExposurePlus1; +} + +declare module 'material-ui/svg-icons/image/exposure-plus-2' { + export import ImageExposurePlus2 = __MaterialUI.SvgIcon; + export default ImageExposurePlus2; +} + +declare module 'material-ui/svg-icons/image/exposure-zero' { + export import ImageExposureZero = __MaterialUI.SvgIcon; + export default ImageExposureZero; +} + +declare module 'material-ui/svg-icons/image/filter' { + export import ImageFilter = __MaterialUI.SvgIcon; + export default ImageFilter; +} + +declare module 'material-ui/svg-icons/image/filter-1' { + export import ImageFilter1 = __MaterialUI.SvgIcon; + export default ImageFilter1; +} + +declare module 'material-ui/svg-icons/image/filter-2' { + export import ImageFilter2 = __MaterialUI.SvgIcon; + export default ImageFilter2; +} + +declare module 'material-ui/svg-icons/image/filter-3' { + export import ImageFilter3 = __MaterialUI.SvgIcon; + export default ImageFilter3; +} + +declare module 'material-ui/svg-icons/image/filter-4' { + export import ImageFilter4 = __MaterialUI.SvgIcon; + export default ImageFilter4; +} + +declare module 'material-ui/svg-icons/image/filter-5' { + export import ImageFilter5 = __MaterialUI.SvgIcon; + export default ImageFilter5; +} + +declare module 'material-ui/svg-icons/image/filter-6' { + export import ImageFilter6 = __MaterialUI.SvgIcon; + export default ImageFilter6; +} + +declare module 'material-ui/svg-icons/image/filter-7' { + export import ImageFilter7 = __MaterialUI.SvgIcon; + export default ImageFilter7; +} + +declare module 'material-ui/svg-icons/image/filter-8' { + export import ImageFilter8 = __MaterialUI.SvgIcon; + export default ImageFilter8; +} + +declare module 'material-ui/svg-icons/image/filter-9' { + export import ImageFilter9 = __MaterialUI.SvgIcon; + export default ImageFilter9; +} + +declare module 'material-ui/svg-icons/image/filter-9-plus' { + export import ImageFilter9Plus = __MaterialUI.SvgIcon; + export default ImageFilter9Plus; +} + +declare module 'material-ui/svg-icons/image/filter-b-and-w' { + export import ImageFilterBAndW = __MaterialUI.SvgIcon; + export default ImageFilterBAndW; +} + +declare module 'material-ui/svg-icons/image/filter-center-focus' { + export import ImageFilterCenterFocus = __MaterialUI.SvgIcon; + export default ImageFilterCenterFocus; +} + +declare module 'material-ui/svg-icons/image/filter-drama' { + export import ImageFilterDrama = __MaterialUI.SvgIcon; + export default ImageFilterDrama; +} + +declare module 'material-ui/svg-icons/image/filter-frames' { + export import ImageFilterFrames = __MaterialUI.SvgIcon; + export default ImageFilterFrames; +} + +declare module 'material-ui/svg-icons/image/filter-hdr' { + export import ImageFilterHdr = __MaterialUI.SvgIcon; + export default ImageFilterHdr; +} + +declare module 'material-ui/svg-icons/image/filter-none' { + export import ImageFilterNone = __MaterialUI.SvgIcon; + export default ImageFilterNone; +} + +declare module 'material-ui/svg-icons/image/filter-tilt-shift' { + export import ImageFilterTiltShift = __MaterialUI.SvgIcon; + export default ImageFilterTiltShift; +} + +declare module 'material-ui/svg-icons/image/filter-vintage' { + export import ImageFilterVintage = __MaterialUI.SvgIcon; + export default ImageFilterVintage; +} + +declare module 'material-ui/svg-icons/image/flare' { + export import ImageFlare = __MaterialUI.SvgIcon; + export default ImageFlare; +} + +declare module 'material-ui/svg-icons/image/flash-auto' { + export import ImageFlashAuto = __MaterialUI.SvgIcon; + export default ImageFlashAuto; +} + +declare module 'material-ui/svg-icons/image/flash-off' { + export import ImageFlashOff = __MaterialUI.SvgIcon; + export default ImageFlashOff; +} + +declare module 'material-ui/svg-icons/image/flash-on' { + export import ImageFlashOn = __MaterialUI.SvgIcon; + export default ImageFlashOn; +} + +declare module 'material-ui/svg-icons/image/flip' { + export import ImageFlip = __MaterialUI.SvgIcon; + export default ImageFlip; +} + +declare module 'material-ui/svg-icons/image/gradient' { + export import ImageGradient = __MaterialUI.SvgIcon; + export default ImageGradient; +} + +declare module 'material-ui/svg-icons/image/grain' { + export import ImageGrain = __MaterialUI.SvgIcon; + export default ImageGrain; +} + +declare module 'material-ui/svg-icons/image/grid-off' { + export import ImageGridOff = __MaterialUI.SvgIcon; + export default ImageGridOff; +} + +declare module 'material-ui/svg-icons/image/grid-on' { + export import ImageGridOn = __MaterialUI.SvgIcon; + export default ImageGridOn; +} + +declare module 'material-ui/svg-icons/image/hdr-off' { + export import ImageHdrOff = __MaterialUI.SvgIcon; + export default ImageHdrOff; +} + +declare module 'material-ui/svg-icons/image/hdr-on' { + export import ImageHdrOn = __MaterialUI.SvgIcon; + export default ImageHdrOn; +} + +declare module 'material-ui/svg-icons/image/hdr-strong' { + export import ImageHdrStrong = __MaterialUI.SvgIcon; + export default ImageHdrStrong; +} + +declare module 'material-ui/svg-icons/image/hdr-weak' { + export import ImageHdrWeak = __MaterialUI.SvgIcon; + export default ImageHdrWeak; +} + +declare module 'material-ui/svg-icons/image/healing' { + export import ImageHealing = __MaterialUI.SvgIcon; + export default ImageHealing; +} + +declare module 'material-ui/svg-icons/image/image' { + export import ImageImage = __MaterialUI.SvgIcon; + export default ImageImage; +} + +declare module 'material-ui/svg-icons/image/image-aspect-ratio' { + export import ImageImageAspectRatio = __MaterialUI.SvgIcon; + export default ImageImageAspectRatio; +} + +declare module 'material-ui/svg-icons/image/iso' { + export import ImageIso = __MaterialUI.SvgIcon; + export default ImageIso; +} + +declare module 'material-ui/svg-icons/image/landscape' { + export import ImageLandscape = __MaterialUI.SvgIcon; + export default ImageLandscape; +} + +declare module 'material-ui/svg-icons/image/leak-add' { + export import ImageLeakAdd = __MaterialUI.SvgIcon; + export default ImageLeakAdd; +} + +declare module 'material-ui/svg-icons/image/leak-remove' { + export import ImageLeakRemove = __MaterialUI.SvgIcon; + export default ImageLeakRemove; +} + +declare module 'material-ui/svg-icons/image/lens' { + export import ImageLens = __MaterialUI.SvgIcon; + export default ImageLens; +} + +declare module 'material-ui/svg-icons/image/linked-camera' { + export import ImageLinkedCamera = __MaterialUI.SvgIcon; + export default ImageLinkedCamera; +} + +declare module 'material-ui/svg-icons/image/looks' { + export import ImageLooks = __MaterialUI.SvgIcon; + export default ImageLooks; +} + +declare module 'material-ui/svg-icons/image/looks-3' { + export import ImageLooks3 = __MaterialUI.SvgIcon; + export default ImageLooks3; +} + +declare module 'material-ui/svg-icons/image/looks-4' { + export import ImageLooks4 = __MaterialUI.SvgIcon; + export default ImageLooks4; +} + +declare module 'material-ui/svg-icons/image/looks-5' { + export import ImageLooks5 = __MaterialUI.SvgIcon; + export default ImageLooks5; +} + +declare module 'material-ui/svg-icons/image/looks-6' { + export import ImageLooks6 = __MaterialUI.SvgIcon; + export default ImageLooks6; +} + +declare module 'material-ui/svg-icons/image/looks-one' { + export import ImageLooksOne = __MaterialUI.SvgIcon; + export default ImageLooksOne; +} + +declare module 'material-ui/svg-icons/image/looks-two' { + export import ImageLooksTwo = __MaterialUI.SvgIcon; + export default ImageLooksTwo; +} + +declare module 'material-ui/svg-icons/image/loupe' { + export import ImageLoupe = __MaterialUI.SvgIcon; + export default ImageLoupe; +} + +declare module 'material-ui/svg-icons/image/monochrome-photos' { + export import ImageMonochromePhotos = __MaterialUI.SvgIcon; + export default ImageMonochromePhotos; +} + +declare module 'material-ui/svg-icons/image/movie-creation' { + export import ImageMovieCreation = __MaterialUI.SvgIcon; + export default ImageMovieCreation; +} + +declare module 'material-ui/svg-icons/image/movie-filter' { + export import ImageMovieFilter = __MaterialUI.SvgIcon; + export default ImageMovieFilter; +} + +declare module 'material-ui/svg-icons/image/music-note' { + export import ImageMusicNote = __MaterialUI.SvgIcon; + export default ImageMusicNote; +} + +declare module 'material-ui/svg-icons/image/nature' { + export import ImageNature = __MaterialUI.SvgIcon; + export default ImageNature; +} + +declare module 'material-ui/svg-icons/image/nature-people' { + export import ImageNaturePeople = __MaterialUI.SvgIcon; + export default ImageNaturePeople; +} + +declare module 'material-ui/svg-icons/image/navigate-before' { + export import ImageNavigateBefore = __MaterialUI.SvgIcon; + export default ImageNavigateBefore; +} + +declare module 'material-ui/svg-icons/image/navigate-next' { + export import ImageNavigateNext = __MaterialUI.SvgIcon; + export default ImageNavigateNext; +} + +declare module 'material-ui/svg-icons/image/palette' { + export import ImagePalette = __MaterialUI.SvgIcon; + export default ImagePalette; +} + declare module 'material-ui/svg-icons/image/panorama' { export import ImagePanorama = __MaterialUI.SvgIcon; export default ImagePanorama; @@ -6796,64 +5929,29 @@ declare module 'material-ui/svg-icons/image/panorama-fish-eye' { export default ImagePanoramaFishEye; } -declare module 'material-ui/svg-icons/image/filter-8' { - export import ImageFilter8 = __MaterialUI.SvgIcon; - export default ImageFilter8; -} - -declare module 'material-ui/svg-icons/image/looks-two' { - export import ImageLooksTwo = __MaterialUI.SvgIcon; - export default ImageLooksTwo; -} - declare module 'material-ui/svg-icons/image/panorama-horizontal' { export import ImagePanoramaHorizontal = __MaterialUI.SvgIcon; export default ImagePanoramaHorizontal; } -declare module 'material-ui/svg-icons/image/looks-3' { - export import ImageLooks3 = __MaterialUI.SvgIcon; - export default ImageLooks3; +declare module 'material-ui/svg-icons/image/panorama-vertical' { + export import ImagePanoramaVertical = __MaterialUI.SvgIcon; + export default ImagePanoramaVertical; } -declare module 'material-ui/svg-icons/image/filter-none' { - export import ImageFilterNone = __MaterialUI.SvgIcon; - export default ImageFilterNone; +declare module 'material-ui/svg-icons/image/panorama-wide-angle' { + export import ImagePanoramaWideAngle = __MaterialUI.SvgIcon; + export default ImagePanoramaWideAngle; } -declare module 'material-ui/svg-icons/image/photo-size-select-large' { - export import ImagePhotoSizeSelectLarge = __MaterialUI.SvgIcon; - export default ImagePhotoSizeSelectLarge; +declare module 'material-ui/svg-icons/image/photo' { + export import ImagePhoto = __MaterialUI.SvgIcon; + export default ImagePhoto; } -declare module 'material-ui/svg-icons/image/blur-off' { - export import ImageBlurOff = __MaterialUI.SvgIcon; - export default ImageBlurOff; -} - -declare module 'material-ui/svg-icons/image/camera-roll' { - export import ImageCameraRoll = __MaterialUI.SvgIcon; - export default ImageCameraRoll; -} - -declare module 'material-ui/svg-icons/image/leak-remove' { - export import ImageLeakRemove = __MaterialUI.SvgIcon; - export default ImageLeakRemove; -} - -declare module 'material-ui/svg-icons/image/filter-frames' { - export import ImageFilterFrames = __MaterialUI.SvgIcon; - export default ImageFilterFrames; -} - -declare module 'material-ui/svg-icons/image/flare' { - export import ImageFlare = __MaterialUI.SvgIcon; - export default ImageFlare; -} - -declare module 'material-ui/svg-icons/image/photo-size-select-small' { - export import ImagePhotoSizeSelectSmall = __MaterialUI.SvgIcon; - export default ImagePhotoSizeSelectSmall; +declare module 'material-ui/svg-icons/image/photo-album' { + export import ImagePhotoAlbum = __MaterialUI.SvgIcon; + export default ImagePhotoAlbum; } declare module 'material-ui/svg-icons/image/photo-camera' { @@ -6861,34 +5959,919 @@ declare module 'material-ui/svg-icons/image/photo-camera' { export default ImagePhotoCamera; } -declare module 'material-ui/svg-icons/image/hdr-off' { - export import ImageHdrOff = __MaterialUI.SvgIcon; - export default ImageHdrOff; +declare module 'material-ui/svg-icons/image/photo-filter' { + export import ImagePhotoFilter = __MaterialUI.SvgIcon; + export default ImagePhotoFilter; } -declare module 'material-ui/svg-icons/image/filter-2' { - export import ImageFilter2 = __MaterialUI.SvgIcon; - export default ImageFilter2; +declare module 'material-ui/svg-icons/image/photo-library' { + export import ImagePhotoLibrary = __MaterialUI.SvgIcon; + export default ImagePhotoLibrary; } -declare module 'material-ui/svg-icons/image/crop-original' { - export import ImageCropOriginal = __MaterialUI.SvgIcon; - export default ImageCropOriginal; +declare module 'material-ui/svg-icons/image/photo-size-select-actual' { + export import ImagePhotoSizeSelectActual = __MaterialUI.SvgIcon; + export default ImagePhotoSizeSelectActual; } -declare module 'material-ui/svg-icons/places/kitchen' { - export import PlacesKitchen = __MaterialUI.SvgIcon; - export default PlacesKitchen; +declare module 'material-ui/svg-icons/image/photo-size-select-large' { + export import ImagePhotoSizeSelectLarge = __MaterialUI.SvgIcon; + export default ImagePhotoSizeSelectLarge; } -declare module 'material-ui/svg-icons/places/spa' { - export import PlacesSpa = __MaterialUI.SvgIcon; - export default PlacesSpa; +declare module 'material-ui/svg-icons/image/photo-size-select-small' { + export import ImagePhotoSizeSelectSmall = __MaterialUI.SvgIcon; + export default ImagePhotoSizeSelectSmall; } -declare module 'material-ui/svg-icons/places/all-inclusive' { - export import PlacesAllInclusive = __MaterialUI.SvgIcon; - export default PlacesAllInclusive; +declare module 'material-ui/svg-icons/image/picture-as-pdf' { + export import ImagePictureAsPdf = __MaterialUI.SvgIcon; + export default ImagePictureAsPdf; +} + +declare module 'material-ui/svg-icons/image/portrait' { + export import ImagePortrait = __MaterialUI.SvgIcon; + export default ImagePortrait; +} + +declare module 'material-ui/svg-icons/image/remove-red-eye' { + export import ImageRemoveRedEye = __MaterialUI.SvgIcon; + export default ImageRemoveRedEye; +} + +declare module 'material-ui/svg-icons/image/rotate-90-degrees-ccw' { + export import ImageRotate90DegreesCcw = __MaterialUI.SvgIcon; + export default ImageRotate90DegreesCcw; +} + +declare module 'material-ui/svg-icons/image/rotate-left' { + export import ImageRotateLeft = __MaterialUI.SvgIcon; + export default ImageRotateLeft; +} + +declare module 'material-ui/svg-icons/image/rotate-right' { + export import ImageRotateRight = __MaterialUI.SvgIcon; + export default ImageRotateRight; +} + +declare module 'material-ui/svg-icons/image/slideshow' { + export import ImageSlideshow = __MaterialUI.SvgIcon; + export default ImageSlideshow; +} + +declare module 'material-ui/svg-icons/image/straighten' { + export import ImageStraighten = __MaterialUI.SvgIcon; + export default ImageStraighten; +} + +declare module 'material-ui/svg-icons/image/style' { + export import ImageStyle = __MaterialUI.SvgIcon; + export default ImageStyle; +} + +declare module 'material-ui/svg-icons/image/switch-camera' { + export import ImageSwitchCamera = __MaterialUI.SvgIcon; + export default ImageSwitchCamera; +} + +declare module 'material-ui/svg-icons/image/switch-video' { + export import ImageSwitchVideo = __MaterialUI.SvgIcon; + export default ImageSwitchVideo; +} + +declare module 'material-ui/svg-icons/image/tag-faces' { + export import ImageTagFaces = __MaterialUI.SvgIcon; + export default ImageTagFaces; +} + +declare module 'material-ui/svg-icons/image/texture' { + export import ImageTexture = __MaterialUI.SvgIcon; + export default ImageTexture; +} + +declare module 'material-ui/svg-icons/image/timelapse' { + export import ImageTimelapse = __MaterialUI.SvgIcon; + export default ImageTimelapse; +} + +declare module 'material-ui/svg-icons/image/timer' { + export import ImageTimer = __MaterialUI.SvgIcon; + export default ImageTimer; +} + +declare module 'material-ui/svg-icons/image/timer-10' { + export import ImageTimer10 = __MaterialUI.SvgIcon; + export default ImageTimer10; +} + +declare module 'material-ui/svg-icons/image/timer-3' { + export import ImageTimer3 = __MaterialUI.SvgIcon; + export default ImageTimer3; +} + +declare module 'material-ui/svg-icons/image/timer-off' { + export import ImageTimerOff = __MaterialUI.SvgIcon; + export default ImageTimerOff; +} + +declare module 'material-ui/svg-icons/image/tonality' { + export import ImageTonality = __MaterialUI.SvgIcon; + export default ImageTonality; +} + +declare module 'material-ui/svg-icons/image/transform' { + export import ImageTransform = __MaterialUI.SvgIcon; + export default ImageTransform; +} + +declare module 'material-ui/svg-icons/image/tune' { + export import ImageTune = __MaterialUI.SvgIcon; + export default ImageTune; +} + +declare module 'material-ui/svg-icons/image/view-comfy' { + export import ImageViewComfy = __MaterialUI.SvgIcon; + export default ImageViewComfy; +} + +declare module 'material-ui/svg-icons/image/view-compact' { + export import ImageViewCompact = __MaterialUI.SvgIcon; + export default ImageViewCompact; +} + +declare module 'material-ui/svg-icons/image/vignette' { + export import ImageVignette = __MaterialUI.SvgIcon; + export default ImageVignette; +} + +declare module 'material-ui/svg-icons/image/wb-auto' { + export import ImageWbAuto = __MaterialUI.SvgIcon; + export default ImageWbAuto; +} + +declare module 'material-ui/svg-icons/image/wb-cloudy' { + export import ImageWbCloudy = __MaterialUI.SvgIcon; + export default ImageWbCloudy; +} + +declare module 'material-ui/svg-icons/image/wb-incandescent' { + export import ImageWbIncandescent = __MaterialUI.SvgIcon; + export default ImageWbIncandescent; +} + +declare module 'material-ui/svg-icons/image/wb-iridescent' { + export import ImageWbIridescent = __MaterialUI.SvgIcon; + export default ImageWbIridescent; +} + +declare module 'material-ui/svg-icons/image/wb-sunny' { + export import ImageWbSunny = __MaterialUI.SvgIcon; + export default ImageWbSunny; +} + +declare module 'material-ui/svg-icons/maps/add-location' { + export import MapsAddLocation = __MaterialUI.SvgIcon; + export default MapsAddLocation; +} + +declare module 'material-ui/svg-icons/maps/beenhere' { + export import MapsBeenhere = __MaterialUI.SvgIcon; + export default MapsBeenhere; +} + +declare module 'material-ui/svg-icons/maps/directions' { + export import MapsDirections = __MaterialUI.SvgIcon; + export default MapsDirections; +} + +declare module 'material-ui/svg-icons/maps/directions-bike' { + export import MapsDirectionsBike = __MaterialUI.SvgIcon; + export default MapsDirectionsBike; +} + +declare module 'material-ui/svg-icons/maps/directions-boat' { + export import MapsDirectionsBoat = __MaterialUI.SvgIcon; + export default MapsDirectionsBoat; +} + +declare module 'material-ui/svg-icons/maps/directions-bus' { + export import MapsDirectionsBus = __MaterialUI.SvgIcon; + export default MapsDirectionsBus; +} + +declare module 'material-ui/svg-icons/maps/directions-car' { + export import MapsDirectionsCar = __MaterialUI.SvgIcon; + export default MapsDirectionsCar; +} + +declare module 'material-ui/svg-icons/maps/directions-railway' { + export import MapsDirectionsRailway = __MaterialUI.SvgIcon; + export default MapsDirectionsRailway; +} + +declare module 'material-ui/svg-icons/maps/directions-run' { + export import MapsDirectionsRun = __MaterialUI.SvgIcon; + export default MapsDirectionsRun; +} + +declare module 'material-ui/svg-icons/maps/directions-subway' { + export import MapsDirectionsSubway = __MaterialUI.SvgIcon; + export default MapsDirectionsSubway; +} + +declare module 'material-ui/svg-icons/maps/directions-transit' { + export import MapsDirectionsTransit = __MaterialUI.SvgIcon; + export default MapsDirectionsTransit; +} + +declare module 'material-ui/svg-icons/maps/directions-walk' { + export import MapsDirectionsWalk = __MaterialUI.SvgIcon; + export default MapsDirectionsWalk; +} + +declare module 'material-ui/svg-icons/maps/edit-location' { + export import MapsEditLocation = __MaterialUI.SvgIcon; + export default MapsEditLocation; +} + +declare module 'material-ui/svg-icons/maps/ev-station' { + export import MapsEvStation = __MaterialUI.SvgIcon; + export default MapsEvStation; +} + +declare module 'material-ui/svg-icons/maps/flight' { + export import MapsFlight = __MaterialUI.SvgIcon; + export default MapsFlight; +} + +declare module 'material-ui/svg-icons/maps/hotel' { + export import MapsHotel = __MaterialUI.SvgIcon; + export default MapsHotel; +} + +declare module 'material-ui/svg-icons/maps/layers' { + export import MapsLayers = __MaterialUI.SvgIcon; + export default MapsLayers; +} + +declare module 'material-ui/svg-icons/maps/layers-clear' { + export import MapsLayersClear = __MaterialUI.SvgIcon; + export default MapsLayersClear; +} + +declare module 'material-ui/svg-icons/maps/local-activity' { + export import MapsLocalActivity = __MaterialUI.SvgIcon; + export default MapsLocalActivity; +} + +declare module 'material-ui/svg-icons/maps/local-airport' { + export import MapsLocalAirport = __MaterialUI.SvgIcon; + export default MapsLocalAirport; +} + +declare module 'material-ui/svg-icons/maps/local-atm' { + export import MapsLocalAtm = __MaterialUI.SvgIcon; + export default MapsLocalAtm; +} + +declare module 'material-ui/svg-icons/maps/local-bar' { + export import MapsLocalBar = __MaterialUI.SvgIcon; + export default MapsLocalBar; +} + +declare module 'material-ui/svg-icons/maps/local-cafe' { + export import MapsLocalCafe = __MaterialUI.SvgIcon; + export default MapsLocalCafe; +} + +declare module 'material-ui/svg-icons/maps/local-car-wash' { + export import MapsLocalCarWash = __MaterialUI.SvgIcon; + export default MapsLocalCarWash; +} + +declare module 'material-ui/svg-icons/maps/local-convenience-store' { + export import MapsLocalConvenienceStore = __MaterialUI.SvgIcon; + export default MapsLocalConvenienceStore; +} + +declare module 'material-ui/svg-icons/maps/local-dining' { + export import MapsLocalDining = __MaterialUI.SvgIcon; + export default MapsLocalDining; +} + +declare module 'material-ui/svg-icons/maps/local-drink' { + export import MapsLocalDrink = __MaterialUI.SvgIcon; + export default MapsLocalDrink; +} + +declare module 'material-ui/svg-icons/maps/local-florist' { + export import MapsLocalFlorist = __MaterialUI.SvgIcon; + export default MapsLocalFlorist; +} + +declare module 'material-ui/svg-icons/maps/local-gas-station' { + export import MapsLocalGasStation = __MaterialUI.SvgIcon; + export default MapsLocalGasStation; +} + +declare module 'material-ui/svg-icons/maps/local-grocery-store' { + export import MapsLocalGroceryStore = __MaterialUI.SvgIcon; + export default MapsLocalGroceryStore; +} + +declare module 'material-ui/svg-icons/maps/local-hospital' { + export import MapsLocalHospital = __MaterialUI.SvgIcon; + export default MapsLocalHospital; +} + +declare module 'material-ui/svg-icons/maps/local-hotel' { + export import MapsLocalHotel = __MaterialUI.SvgIcon; + export default MapsLocalHotel; +} + +declare module 'material-ui/svg-icons/maps/local-laundry-service' { + export import MapsLocalLaundryService = __MaterialUI.SvgIcon; + export default MapsLocalLaundryService; +} + +declare module 'material-ui/svg-icons/maps/local-library' { + export import MapsLocalLibrary = __MaterialUI.SvgIcon; + export default MapsLocalLibrary; +} + +declare module 'material-ui/svg-icons/maps/local-mall' { + export import MapsLocalMall = __MaterialUI.SvgIcon; + export default MapsLocalMall; +} + +declare module 'material-ui/svg-icons/maps/local-movies' { + export import MapsLocalMovies = __MaterialUI.SvgIcon; + export default MapsLocalMovies; +} + +declare module 'material-ui/svg-icons/maps/local-offer' { + export import MapsLocalOffer = __MaterialUI.SvgIcon; + export default MapsLocalOffer; +} + +declare module 'material-ui/svg-icons/maps/local-parking' { + export import MapsLocalParking = __MaterialUI.SvgIcon; + export default MapsLocalParking; +} + +declare module 'material-ui/svg-icons/maps/local-pharmacy' { + export import MapsLocalPharmacy = __MaterialUI.SvgIcon; + export default MapsLocalPharmacy; +} + +declare module 'material-ui/svg-icons/maps/local-phone' { + export import MapsLocalPhone = __MaterialUI.SvgIcon; + export default MapsLocalPhone; +} + +declare module 'material-ui/svg-icons/maps/local-pizza' { + export import MapsLocalPizza = __MaterialUI.SvgIcon; + export default MapsLocalPizza; +} + +declare module 'material-ui/svg-icons/maps/local-play' { + export import MapsLocalPlay = __MaterialUI.SvgIcon; + export default MapsLocalPlay; +} + +declare module 'material-ui/svg-icons/maps/local-post-office' { + export import MapsLocalPostOffice = __MaterialUI.SvgIcon; + export default MapsLocalPostOffice; +} + +declare module 'material-ui/svg-icons/maps/local-printshop' { + export import MapsLocalPrintshop = __MaterialUI.SvgIcon; + export default MapsLocalPrintshop; +} + +declare module 'material-ui/svg-icons/maps/local-see' { + export import MapsLocalSee = __MaterialUI.SvgIcon; + export default MapsLocalSee; +} + +declare module 'material-ui/svg-icons/maps/local-shipping' { + export import MapsLocalShipping = __MaterialUI.SvgIcon; + export default MapsLocalShipping; +} + +declare module 'material-ui/svg-icons/maps/local-taxi' { + export import MapsLocalTaxi = __MaterialUI.SvgIcon; + export default MapsLocalTaxi; +} + +declare module 'material-ui/svg-icons/maps/map' { + export import MapsMap = __MaterialUI.SvgIcon; + export default MapsMap; +} + +declare module 'material-ui/svg-icons/maps/my-location' { + export import MapsMyLocation = __MaterialUI.SvgIcon; + export default MapsMyLocation; +} + +declare module 'material-ui/svg-icons/maps/navigation' { + export import MapsNavigation = __MaterialUI.SvgIcon; + export default MapsNavigation; +} + +declare module 'material-ui/svg-icons/maps/near-me' { + export import MapsNearMe = __MaterialUI.SvgIcon; + export default MapsNearMe; +} + +declare module 'material-ui/svg-icons/maps/person-pin' { + export import MapsPersonPin = __MaterialUI.SvgIcon; + export default MapsPersonPin; +} + +declare module 'material-ui/svg-icons/maps/person-pin-circle' { + export import MapsPersonPinCircle = __MaterialUI.SvgIcon; + export default MapsPersonPinCircle; +} + +declare module 'material-ui/svg-icons/maps/pin-drop' { + export import MapsPinDrop = __MaterialUI.SvgIcon; + export default MapsPinDrop; +} + +declare module 'material-ui/svg-icons/maps/place' { + export import MapsPlace = __MaterialUI.SvgIcon; + export default MapsPlace; +} + +declare module 'material-ui/svg-icons/maps/rate-review' { + export import MapsRateReview = __MaterialUI.SvgIcon; + export default MapsRateReview; +} + +declare module 'material-ui/svg-icons/maps/restaurant' { + export import MapsRestaurant = __MaterialUI.SvgIcon; + export default MapsRestaurant; +} + +declare module 'material-ui/svg-icons/maps/restaurant-menu' { + export import MapsRestaurantMenu = __MaterialUI.SvgIcon; + export default MapsRestaurantMenu; +} + +declare module 'material-ui/svg-icons/maps/satellite' { + export import MapsSatellite = __MaterialUI.SvgIcon; + export default MapsSatellite; +} + +declare module 'material-ui/svg-icons/maps/store-mall-directory' { + export import MapsStoreMallDirectory = __MaterialUI.SvgIcon; + export default MapsStoreMallDirectory; +} + +declare module 'material-ui/svg-icons/maps/streetview' { + export import MapsStreetview = __MaterialUI.SvgIcon; + export default MapsStreetview; +} + +declare module 'material-ui/svg-icons/maps/subway' { + export import MapsSubway = __MaterialUI.SvgIcon; + export default MapsSubway; +} + +declare module 'material-ui/svg-icons/maps/terrain' { + export import MapsTerrain = __MaterialUI.SvgIcon; + export default MapsTerrain; +} + +declare module 'material-ui/svg-icons/maps/traffic' { + export import MapsTraffic = __MaterialUI.SvgIcon; + export default MapsTraffic; +} + +declare module 'material-ui/svg-icons/maps/train' { + export import MapsTrain = __MaterialUI.SvgIcon; + export default MapsTrain; +} + +declare module 'material-ui/svg-icons/maps/tram' { + export import MapsTram = __MaterialUI.SvgIcon; + export default MapsTram; +} + +declare module 'material-ui/svg-icons/maps/transfer-within-a-station' { + export import MapsTransferWithinAStation = __MaterialUI.SvgIcon; + export default MapsTransferWithinAStation; +} + +declare module 'material-ui/svg-icons/maps/zoom-out-map' { + export import MapsZoomOutMap = __MaterialUI.SvgIcon; + export default MapsZoomOutMap; +} + +declare module 'material-ui/svg-icons/navigation/apps' { + export import NavigationApps = __MaterialUI.SvgIcon; + export default NavigationApps; +} + +declare module 'material-ui/svg-icons/navigation/arrow-back' { + export import NavigationArrowBack = __MaterialUI.SvgIcon; + export default NavigationArrowBack; +} + +declare module 'material-ui/svg-icons/navigation/arrow-downward' { + export import NavigationArrowDownward = __MaterialUI.SvgIcon; + export default NavigationArrowDownward; +} + +declare module 'material-ui/svg-icons/navigation/arrow-drop-down' { + export import NavigationArrowDropDown = __MaterialUI.SvgIcon; + export default NavigationArrowDropDown; +} + +declare module 'material-ui/svg-icons/navigation/arrow-drop-down-circle' { + export import NavigationArrowDropDownCircle = __MaterialUI.SvgIcon; + export default NavigationArrowDropDownCircle; +} + +declare module 'material-ui/svg-icons/navigation/arrow-drop-up' { + export import NavigationArrowDropUp = __MaterialUI.SvgIcon; + export default NavigationArrowDropUp; +} + +declare module 'material-ui/svg-icons/navigation/arrow-forward' { + export import NavigationArrowForward = __MaterialUI.SvgIcon; + export default NavigationArrowForward; +} + +declare module 'material-ui/svg-icons/navigation/arrow-upward' { + export import NavigationArrowUpward = __MaterialUI.SvgIcon; + export default NavigationArrowUpward; +} + +declare module 'material-ui/svg-icons/navigation/cancel' { + export import NavigationCancel = __MaterialUI.SvgIcon; + export default NavigationCancel; +} + +declare module 'material-ui/svg-icons/navigation/check' { + export import NavigationCheck = __MaterialUI.SvgIcon; + export default NavigationCheck; +} + +declare module 'material-ui/svg-icons/navigation/chevron-left' { + export import NavigationChevronLeft = __MaterialUI.SvgIcon; + export default NavigationChevronLeft; +} + +declare module 'material-ui/svg-icons/navigation/chevron-right' { + export import NavigationChevronRight = __MaterialUI.SvgIcon; + export default NavigationChevronRight; +} + +declare module 'material-ui/svg-icons/navigation/close' { + export import NavigationClose = __MaterialUI.SvgIcon; + export default NavigationClose; +} + +declare module 'material-ui/svg-icons/navigation/expand-less' { + export import NavigationExpandLess = __MaterialUI.SvgIcon; + export default NavigationExpandLess; +} + +declare module 'material-ui/svg-icons/navigation/expand-more' { + export import NavigationExpandMore = __MaterialUI.SvgIcon; + export default NavigationExpandMore; +} + +declare module 'material-ui/svg-icons/navigation/first-page' { + export import NavigationFirstPage = __MaterialUI.SvgIcon; + export default NavigationFirstPage; +} + +declare module 'material-ui/svg-icons/navigation/fullscreen' { + export import NavigationFullscreen = __MaterialUI.SvgIcon; + export default NavigationFullscreen; +} + +declare module 'material-ui/svg-icons/navigation/fullscreen-exit' { + export import NavigationFullscreenExit = __MaterialUI.SvgIcon; + export default NavigationFullscreenExit; +} + +declare module 'material-ui/svg-icons/navigation/last-page' { + export import NavigationLastPage = __MaterialUI.SvgIcon; + export default NavigationLastPage; +} + +declare module 'material-ui/svg-icons/navigation/menu' { + export import NavigationMenu = __MaterialUI.SvgIcon; + export default NavigationMenu; +} + +declare module 'material-ui/svg-icons/navigation/more-horiz' { + export import NavigationMoreHoriz = __MaterialUI.SvgIcon; + export default NavigationMoreHoriz; +} + +declare module 'material-ui/svg-icons/navigation/more-vert' { + export import NavigationMoreVert = __MaterialUI.SvgIcon; + export default NavigationMoreVert; +} + +declare module 'material-ui/svg-icons/navigation/refresh' { + export import NavigationRefresh = __MaterialUI.SvgIcon; + export default NavigationRefresh; +} + +declare module 'material-ui/svg-icons/navigation/subdirectory-arrow-left' { + export import NavigationSubdirectoryArrowLeft = __MaterialUI.SvgIcon; + export default NavigationSubdirectoryArrowLeft; +} + +declare module 'material-ui/svg-icons/navigation/subdirectory-arrow-right' { + export import NavigationSubdirectoryArrowRight = __MaterialUI.SvgIcon; + export default NavigationSubdirectoryArrowRight; +} + +declare module 'material-ui/svg-icons/navigation/unfold-less' { + export import NavigationUnfoldLess = __MaterialUI.SvgIcon; + export default NavigationUnfoldLess; +} + +declare module 'material-ui/svg-icons/navigation/unfold-more' { + export import NavigationUnfoldMore = __MaterialUI.SvgIcon; + export default NavigationUnfoldMore; +} + +declare module 'material-ui/svg-icons/notification/adb' { + export import NotificationAdb = __MaterialUI.SvgIcon; + export default NotificationAdb; +} + +declare module 'material-ui/svg-icons/notification/airline-seat-flat' { + export import NotificationAirlineSeatFlat = __MaterialUI.SvgIcon; + export default NotificationAirlineSeatFlat; +} + +declare module 'material-ui/svg-icons/notification/airline-seat-flat-angled' { + export import NotificationAirlineSeatFlatAngled = __MaterialUI.SvgIcon; + export default NotificationAirlineSeatFlatAngled; +} + +declare module 'material-ui/svg-icons/notification/airline-seat-individual-suite' { + export import NotificationAirlineSeatIndividualSuite = __MaterialUI.SvgIcon; + export default NotificationAirlineSeatIndividualSuite; +} + +declare module 'material-ui/svg-icons/notification/airline-seat-legroom-extra' { + export import NotificationAirlineSeatLegroomExtra = __MaterialUI.SvgIcon; + export default NotificationAirlineSeatLegroomExtra; +} + +declare module 'material-ui/svg-icons/notification/airline-seat-legroom-normal' { + export import NotificationAirlineSeatLegroomNormal = __MaterialUI.SvgIcon; + export default NotificationAirlineSeatLegroomNormal; +} + +declare module 'material-ui/svg-icons/notification/airline-seat-legroom-reduced' { + export import NotificationAirlineSeatLegroomReduced = __MaterialUI.SvgIcon; + export default NotificationAirlineSeatLegroomReduced; +} + +declare module 'material-ui/svg-icons/notification/airline-seat-recline-extra' { + export import NotificationAirlineSeatReclineExtra = __MaterialUI.SvgIcon; + export default NotificationAirlineSeatReclineExtra; +} + +declare module 'material-ui/svg-icons/notification/airline-seat-recline-normal' { + export import NotificationAirlineSeatReclineNormal = __MaterialUI.SvgIcon; + export default NotificationAirlineSeatReclineNormal; +} + +declare module 'material-ui/svg-icons/notification/bluetooth-audio' { + export import NotificationBluetoothAudio = __MaterialUI.SvgIcon; + export default NotificationBluetoothAudio; +} + +declare module 'material-ui/svg-icons/notification/confirmation-number' { + export import NotificationConfirmationNumber = __MaterialUI.SvgIcon; + export default NotificationConfirmationNumber; +} + +declare module 'material-ui/svg-icons/notification/disc-full' { + export import NotificationDiscFull = __MaterialUI.SvgIcon; + export default NotificationDiscFull; +} + +declare module 'material-ui/svg-icons/notification/do-not-disturb' { + export import NotificationDoNotDisturb = __MaterialUI.SvgIcon; + export default NotificationDoNotDisturb; +} + +declare module 'material-ui/svg-icons/notification/do-not-disturb-alt' { + export import NotificationDoNotDisturbAlt = __MaterialUI.SvgIcon; + export default NotificationDoNotDisturbAlt; +} + +declare module 'material-ui/svg-icons/notification/do-not-disturb-off' { + export import NotificationDoNotDisturbOff = __MaterialUI.SvgIcon; + export default NotificationDoNotDisturbOff; +} + +declare module 'material-ui/svg-icons/notification/do-not-disturb-on' { + export import NotificationDoNotDisturbOn = __MaterialUI.SvgIcon; + export default NotificationDoNotDisturbOn; +} + +declare module 'material-ui/svg-icons/notification/drive-eta' { + export import NotificationDriveEta = __MaterialUI.SvgIcon; + export default NotificationDriveEta; +} + +declare module 'material-ui/svg-icons/notification/enhanced-encryption' { + export import NotificationEnhancedEncryption = __MaterialUI.SvgIcon; + export default NotificationEnhancedEncryption; +} + +declare module 'material-ui/svg-icons/notification/event-available' { + export import NotificationEventAvailable = __MaterialUI.SvgIcon; + export default NotificationEventAvailable; +} + +declare module 'material-ui/svg-icons/notification/event-busy' { + export import NotificationEventBusy = __MaterialUI.SvgIcon; + export default NotificationEventBusy; +} + +declare module 'material-ui/svg-icons/notification/event-note' { + export import NotificationEventNote = __MaterialUI.SvgIcon; + export default NotificationEventNote; +} + +declare module 'material-ui/svg-icons/notification/folder-special' { + export import NotificationFolderSpecial = __MaterialUI.SvgIcon; + export default NotificationFolderSpecial; +} + +declare module 'material-ui/svg-icons/notification/live-tv' { + export import NotificationLiveTv = __MaterialUI.SvgIcon; + export default NotificationLiveTv; +} + +declare module 'material-ui/svg-icons/notification/mms' { + export import NotificationMms = __MaterialUI.SvgIcon; + export default NotificationMms; +} + +declare module 'material-ui/svg-icons/notification/more' { + export import NotificationMore = __MaterialUI.SvgIcon; + export default NotificationMore; +} + +declare module 'material-ui/svg-icons/notification/network-check' { + export import NotificationNetworkCheck = __MaterialUI.SvgIcon; + export default NotificationNetworkCheck; +} + +declare module 'material-ui/svg-icons/notification/network-locked' { + export import NotificationNetworkLocked = __MaterialUI.SvgIcon; + export default NotificationNetworkLocked; +} + +declare module 'material-ui/svg-icons/notification/no-encryption' { + export import NotificationNoEncryption = __MaterialUI.SvgIcon; + export default NotificationNoEncryption; +} + +declare module 'material-ui/svg-icons/notification/ondemand-video' { + export import NotificationOndemandVideo = __MaterialUI.SvgIcon; + export default NotificationOndemandVideo; +} + +declare module 'material-ui/svg-icons/notification/personal-video' { + export import NotificationPersonalVideo = __MaterialUI.SvgIcon; + export default NotificationPersonalVideo; +} + +declare module 'material-ui/svg-icons/notification/phone-bluetooth-speaker' { + export import NotificationPhoneBluetoothSpeaker = __MaterialUI.SvgIcon; + export default NotificationPhoneBluetoothSpeaker; +} + +declare module 'material-ui/svg-icons/notification/phone-forwarded' { + export import NotificationPhoneForwarded = __MaterialUI.SvgIcon; + export default NotificationPhoneForwarded; +} + +declare module 'material-ui/svg-icons/notification/phone-in-talk' { + export import NotificationPhoneInTalk = __MaterialUI.SvgIcon; + export default NotificationPhoneInTalk; +} + +declare module 'material-ui/svg-icons/notification/phone-locked' { + export import NotificationPhoneLocked = __MaterialUI.SvgIcon; + export default NotificationPhoneLocked; +} + +declare module 'material-ui/svg-icons/notification/phone-missed' { + export import NotificationPhoneMissed = __MaterialUI.SvgIcon; + export default NotificationPhoneMissed; +} + +declare module 'material-ui/svg-icons/notification/phone-paused' { + export import NotificationPhonePaused = __MaterialUI.SvgIcon; + export default NotificationPhonePaused; +} + +declare module 'material-ui/svg-icons/notification/power' { + export import NotificationPower = __MaterialUI.SvgIcon; + export default NotificationPower; +} + +declare module 'material-ui/svg-icons/notification/priority-high' { + export import NotificationPriorityHigh = __MaterialUI.SvgIcon; + export default NotificationPriorityHigh; +} + +declare module 'material-ui/svg-icons/notification/rv-hookup' { + export import NotificationRvHookup = __MaterialUI.SvgIcon; + export default NotificationRvHookup; +} + +declare module 'material-ui/svg-icons/notification/sd-card' { + export import NotificationSdCard = __MaterialUI.SvgIcon; + export default NotificationSdCard; +} + +declare module 'material-ui/svg-icons/notification/sim-card-alert' { + export import NotificationSimCardAlert = __MaterialUI.SvgIcon; + export default NotificationSimCardAlert; +} + +declare module 'material-ui/svg-icons/notification/sms' { + export import NotificationSms = __MaterialUI.SvgIcon; + export default NotificationSms; +} + +declare module 'material-ui/svg-icons/notification/sms-failed' { + export import NotificationSmsFailed = __MaterialUI.SvgIcon; + export default NotificationSmsFailed; +} + +declare module 'material-ui/svg-icons/notification/sync' { + export import NotificationSync = __MaterialUI.SvgIcon; + export default NotificationSync; +} + +declare module 'material-ui/svg-icons/notification/sync-disabled' { + export import NotificationSyncDisabled = __MaterialUI.SvgIcon; + export default NotificationSyncDisabled; +} + +declare module 'material-ui/svg-icons/notification/sync-problem' { + export import NotificationSyncProblem = __MaterialUI.SvgIcon; + export default NotificationSyncProblem; +} + +declare module 'material-ui/svg-icons/notification/system-update' { + export import NotificationSystemUpdate = __MaterialUI.SvgIcon; + export default NotificationSystemUpdate; +} + +declare module 'material-ui/svg-icons/notification/tap-and-play' { + export import NotificationTapAndPlay = __MaterialUI.SvgIcon; + export default NotificationTapAndPlay; +} + +declare module 'material-ui/svg-icons/notification/time-to-leave' { + export import NotificationTimeToLeave = __MaterialUI.SvgIcon; + export default NotificationTimeToLeave; +} + +declare module 'material-ui/svg-icons/notification/vibration' { + export import NotificationVibration = __MaterialUI.SvgIcon; + export default NotificationVibration; +} + +declare module 'material-ui/svg-icons/notification/voice-chat' { + export import NotificationVoiceChat = __MaterialUI.SvgIcon; + export default NotificationVoiceChat; +} + +declare module 'material-ui/svg-icons/notification/vpn-lock' { + export import NotificationVpnLock = __MaterialUI.SvgIcon; + export default NotificationVpnLock; +} + +declare module 'material-ui/svg-icons/notification/wc' { + export import NotificationWc = __MaterialUI.SvgIcon; + export default NotificationWc; +} + +declare module 'material-ui/svg-icons/notification/wifi' { + export import NotificationWifi = __MaterialUI.SvgIcon; + export default NotificationWifi; } declare module 'material-ui/svg-icons/places/ac-unit' { @@ -6896,64 +6879,14 @@ declare module 'material-ui/svg-icons/places/ac-unit' { export default PlacesAcUnit; } -declare module 'material-ui/svg-icons/places/child-care' { - export import PlacesChildCare = __MaterialUI.SvgIcon; - export default PlacesChildCare; +declare module 'material-ui/svg-icons/places/airport-shuttle' { + export import PlacesAirportShuttle = __MaterialUI.SvgIcon; + export default PlacesAirportShuttle; } -declare module 'material-ui/svg-icons/places/golf-course' { - export import PlacesGolfCourse = __MaterialUI.SvgIcon; - export default PlacesGolfCourse; -} - -declare module 'material-ui/svg-icons/places/business-center' { - export import PlacesBusinessCenter = __MaterialUI.SvgIcon; - export default PlacesBusinessCenter; -} - -declare module 'material-ui/svg-icons/places/free-breakfast' { - export import PlacesFreeBreakfast = __MaterialUI.SvgIcon; - export default PlacesFreeBreakfast; -} - -declare module 'material-ui/svg-icons/places/fitness-center' { - export import PlacesFitnessCenter = __MaterialUI.SvgIcon; - export default PlacesFitnessCenter; -} - -declare module 'material-ui/svg-icons/places/pool' { - export import PlacesPool = __MaterialUI.SvgIcon; - export default PlacesPool; -} - -declare module 'material-ui/svg-icons/places/child-friendly' { - export import PlacesChildFriendly = __MaterialUI.SvgIcon; - export default PlacesChildFriendly; -} - -declare module 'material-ui/svg-icons/places/casino' { - export import PlacesCasino = __MaterialUI.SvgIcon; - export default PlacesCasino; -} - -declare module 'material-ui/svg-icons/places/hot-tub' { - export import PlacesHotTub = __MaterialUI.SvgIcon; - export default PlacesHotTub; -} - -declare module 'material-ui/svg-icons/places/smoke-free' { - export import PlacesSmokeFree = __MaterialUI.SvgIcon; - export default PlacesSmokeFree; -} - -declare module 'material-ui/svg-icons/places/room-service' { - export import PlacesRoomService = __MaterialUI.SvgIcon; - export default PlacesRoomService; -} - -declare module 'material-ui/svg-icons/places/smoking-rooms' { - export import PlacesSmokingRooms = __MaterialUI.SvgIcon; - export default PlacesSmokingRooms; +declare module 'material-ui/svg-icons/places/all-inclusive' { + export import PlacesAllInclusive = __MaterialUI.SvgIcon; + export default PlacesAllInclusive; } declare module 'material-ui/svg-icons/places/beach-access' { @@ -6961,9 +6894,275 @@ declare module 'material-ui/svg-icons/places/beach-access' { export default PlacesBeachAccess; } -declare module 'material-ui/svg-icons/places/airport-shuttle' { - export import PlacesAirportShuttle = __MaterialUI.SvgIcon; - export default PlacesAirportShuttle; +declare module 'material-ui/svg-icons/places/business-center' { + export import PlacesBusinessCenter = __MaterialUI.SvgIcon; + export default PlacesBusinessCenter; +} + +declare module 'material-ui/svg-icons/places/casino' { + export import PlacesCasino = __MaterialUI.SvgIcon; + export default PlacesCasino; +} + +declare module 'material-ui/svg-icons/places/child-care' { + export import PlacesChildCare = __MaterialUI.SvgIcon; + export default PlacesChildCare; +} + +declare module 'material-ui/svg-icons/places/child-friendly' { + export import PlacesChildFriendly = __MaterialUI.SvgIcon; + export default PlacesChildFriendly; +} + +declare module 'material-ui/svg-icons/places/fitness-center' { + export import PlacesFitnessCenter = __MaterialUI.SvgIcon; + export default PlacesFitnessCenter; +} + +declare module 'material-ui/svg-icons/places/free-breakfast' { + export import PlacesFreeBreakfast = __MaterialUI.SvgIcon; + export default PlacesFreeBreakfast; +} + +declare module 'material-ui/svg-icons/places/golf-course' { + export import PlacesGolfCourse = __MaterialUI.SvgIcon; + export default PlacesGolfCourse; +} + +declare module 'material-ui/svg-icons/places/hot-tub' { + export import PlacesHotTub = __MaterialUI.SvgIcon; + export default PlacesHotTub; +} + +declare module 'material-ui/svg-icons/places/kitchen' { + export import PlacesKitchen = __MaterialUI.SvgIcon; + export default PlacesKitchen; +} + +declare module 'material-ui/svg-icons/places/pool' { + export import PlacesPool = __MaterialUI.SvgIcon; + export default PlacesPool; +} + +declare module 'material-ui/svg-icons/places/room-service' { + export import PlacesRoomService = __MaterialUI.SvgIcon; + export default PlacesRoomService; +} + +declare module 'material-ui/svg-icons/places/rv-hookup' { + export import PlacesRvHookup = __MaterialUI.SvgIcon; + export default PlacesRvHookup; +} + +declare module 'material-ui/svg-icons/places/smoke-free' { + export import PlacesSmokeFree = __MaterialUI.SvgIcon; + export default PlacesSmokeFree; +} + +declare module 'material-ui/svg-icons/places/smoking-rooms' { + export import PlacesSmokingRooms = __MaterialUI.SvgIcon; + export default PlacesSmokingRooms; +} + +declare module 'material-ui/svg-icons/places/spa' { + export import PlacesSpa = __MaterialUI.SvgIcon; + export default PlacesSpa; +} + +declare module 'material-ui/svg-icons/social/cake' { + export import SocialCake = __MaterialUI.SvgIcon; + export default SocialCake; +} + +declare module 'material-ui/svg-icons/social/domain' { + export import SocialDomain = __MaterialUI.SvgIcon; + export default SocialDomain; +} + +declare module 'material-ui/svg-icons/social/group' { + export import SocialGroup = __MaterialUI.SvgIcon; + export default SocialGroup; +} + +declare module 'material-ui/svg-icons/social/group-add' { + export import SocialGroupAdd = __MaterialUI.SvgIcon; + export default SocialGroupAdd; +} + +declare module 'material-ui/svg-icons/social/location-city' { + export import SocialLocationCity = __MaterialUI.SvgIcon; + export default SocialLocationCity; +} + +declare module 'material-ui/svg-icons/social/mood' { + export import SocialMood = __MaterialUI.SvgIcon; + export default SocialMood; +} + +declare module 'material-ui/svg-icons/social/mood-bad' { + export import SocialMoodBad = __MaterialUI.SvgIcon; + export default SocialMoodBad; +} + +declare module 'material-ui/svg-icons/social/notifications' { + export import SocialNotifications = __MaterialUI.SvgIcon; + export default SocialNotifications; +} + +declare module 'material-ui/svg-icons/social/notifications-active' { + export import SocialNotificationsActive = __MaterialUI.SvgIcon; + export default SocialNotificationsActive; +} + +declare module 'material-ui/svg-icons/social/notifications-none' { + export import SocialNotificationsNone = __MaterialUI.SvgIcon; + export default SocialNotificationsNone; +} + +declare module 'material-ui/svg-icons/social/notifications-off' { + export import SocialNotificationsOff = __MaterialUI.SvgIcon; + export default SocialNotificationsOff; +} + +declare module 'material-ui/svg-icons/social/notifications-paused' { + export import SocialNotificationsPaused = __MaterialUI.SvgIcon; + export default SocialNotificationsPaused; +} + +declare module 'material-ui/svg-icons/social/pages' { + export import SocialPages = __MaterialUI.SvgIcon; + export default SocialPages; +} + +declare module 'material-ui/svg-icons/social/party-mode' { + export import SocialPartyMode = __MaterialUI.SvgIcon; + export default SocialPartyMode; +} + +declare module 'material-ui/svg-icons/social/people' { + export import SocialPeople = __MaterialUI.SvgIcon; + export default SocialPeople; +} + +declare module 'material-ui/svg-icons/social/people-outline' { + export import SocialPeopleOutline = __MaterialUI.SvgIcon; + export default SocialPeopleOutline; +} + +declare module 'material-ui/svg-icons/social/person' { + export import SocialPerson = __MaterialUI.SvgIcon; + export default SocialPerson; +} + +declare module 'material-ui/svg-icons/social/person-add' { + export import SocialPersonAdd = __MaterialUI.SvgIcon; + export default SocialPersonAdd; +} + +declare module 'material-ui/svg-icons/social/person-outline' { + export import SocialPersonOutline = __MaterialUI.SvgIcon; + export default SocialPersonOutline; +} + +declare module 'material-ui/svg-icons/social/plus-one' { + export import SocialPlusOne = __MaterialUI.SvgIcon; + export default SocialPlusOne; +} + +declare module 'material-ui/svg-icons/social/poll' { + export import SocialPoll = __MaterialUI.SvgIcon; + export default SocialPoll; +} + +declare module 'material-ui/svg-icons/social/public' { + export import SocialPublic = __MaterialUI.SvgIcon; + export default SocialPublic; +} + +declare module 'material-ui/svg-icons/social/school' { + export import SocialSchool = __MaterialUI.SvgIcon; + export default SocialSchool; +} + +declare module 'material-ui/svg-icons/social/sentiment-dissatisfied' { + export import SocialSentimentDissatisfied = __MaterialUI.SvgIcon; + export default SocialSentimentDissatisfied; +} + +declare module 'material-ui/svg-icons/social/sentiment-neutral' { + export import SocialSentimentNeutral = __MaterialUI.SvgIcon; + export default SocialSentimentNeutral; +} + +declare module 'material-ui/svg-icons/social/sentiment-satisfied' { + export import SocialSentimentSatisfied = __MaterialUI.SvgIcon; + export default SocialSentimentSatisfied; +} + +declare module 'material-ui/svg-icons/social/sentiment-very-dissatisfied' { + export import SocialSentimentVeryDissatisfied = __MaterialUI.SvgIcon; + export default SocialSentimentVeryDissatisfied; +} + +declare module 'material-ui/svg-icons/social/sentiment-very-satisfied' { + export import SocialSentimentVerySatisfied = __MaterialUI.SvgIcon; + export default SocialSentimentVerySatisfied; +} + +declare module 'material-ui/svg-icons/social/share' { + export import SocialShare = __MaterialUI.SvgIcon; + export default SocialShare; +} + +declare module 'material-ui/svg-icons/social/whatshot' { + export import SocialWhatshot = __MaterialUI.SvgIcon; + export default SocialWhatshot; +} + +declare module 'material-ui/svg-icons/toggle/check-box' { + export import ToggleCheckBox = __MaterialUI.SvgIcon; + export default ToggleCheckBox; +} + +declare module 'material-ui/svg-icons/toggle/check-box-outline-blank' { + export import ToggleCheckBoxOutlineBlank = __MaterialUI.SvgIcon; + export default ToggleCheckBoxOutlineBlank; +} + +declare module 'material-ui/svg-icons/toggle/indeterminate-check-box' { + export import ToggleIndeterminateCheckBox = __MaterialUI.SvgIcon; + export default ToggleIndeterminateCheckBox; +} + +declare module 'material-ui/svg-icons/toggle/radio-button-checked' { + export import ToggleRadioButtonChecked = __MaterialUI.SvgIcon; + export default ToggleRadioButtonChecked; +} + +declare module 'material-ui/svg-icons/toggle/radio-button-unchecked' { + export import ToggleRadioButtonUnchecked = __MaterialUI.SvgIcon; + export default ToggleRadioButtonUnchecked; +} + +declare module 'material-ui/svg-icons/toggle/star' { + export import ToggleStar = __MaterialUI.SvgIcon; + export default ToggleStar; +} + +declare module 'material-ui/svg-icons/toggle/star-border' { + export import ToggleStarBorder = __MaterialUI.SvgIcon; + export default ToggleStarBorder; +} + +declare module 'material-ui/svg-icons/toggle/star-half' { + export import ToggleStarHalf = __MaterialUI.SvgIcon; + export default ToggleStarHalf; +} +// }}} + +declare module 'material-ui/svg-icons/navigation-arrow-drop-right' { + export import NavigationArrowDropRight = __MaterialUI.SvgIcon; + export default NavigationArrowDropRight; } declare module 'material-ui/styles' { @@ -7744,7 +7943,10 @@ declare namespace __MaterialUI.Styles { export let Colors: Colors; } -declare module "material-ui/svg-icons" { +declare module 'material-ui/svg-icons' { +// DO NOT EDIT +// This code is generated by scripts/material-ui/generate.js +// {{{ export import ActionAccessibility = __MaterialUI.SvgIcon; // require('material-ui/svg-icons/action/accessibility'); export import ActionAccessible = __MaterialUI.SvgIcon; // require('material-ui/svg-icons/action/accessible'); export import ActionAccountBalance = __MaterialUI.SvgIcon; // require('material-ui/svg-icons/action/account-balance'); @@ -7790,6 +7992,7 @@ declare module "material-ui/svg-icons" { export import ActionDashboard = __MaterialUI.SvgIcon; // require('material-ui/svg-icons/action/dashboard'); export import ActionDateRange = __MaterialUI.SvgIcon; // require('material-ui/svg-icons/action/date-range'); export import ActionDelete = __MaterialUI.SvgIcon; // require('material-ui/svg-icons/action/delete'); + export import ActionDeleteForever = __MaterialUI.SvgIcon; // require('material-ui/svg-icons/action/delete-forever'); export import ActionDescription = __MaterialUI.SvgIcon; // require('material-ui/svg-icons/action/description'); export import ActionDns = __MaterialUI.SvgIcon; // require('material-ui/svg-icons/action/dns'); export import ActionDone = __MaterialUI.SvgIcon; // require('material-ui/svg-icons/action/done'); @@ -7797,6 +8000,7 @@ declare module "material-ui/svg-icons" { export import ActionDonutLarge = __MaterialUI.SvgIcon; // require('material-ui/svg-icons/action/donut-large'); export import ActionDonutSmall = __MaterialUI.SvgIcon; // require('material-ui/svg-icons/action/donut-small'); export import ActionEject = __MaterialUI.SvgIcon; // require('material-ui/svg-icons/action/eject'); + export import ActionEuroSymbol = __MaterialUI.SvgIcon; // require('material-ui/svg-icons/action/euro-symbol'); export import ActionEvent = __MaterialUI.SvgIcon; // require('material-ui/svg-icons/action/event'); export import ActionEventSeat = __MaterialUI.SvgIcon; // require('material-ui/svg-icons/action/event-seat'); export import ActionExitToApp = __MaterialUI.SvgIcon; // require('material-ui/svg-icons/action/exit-to-app'); @@ -7813,6 +8017,7 @@ declare module "material-ui/svg-icons" { export import ActionFlightTakeoff = __MaterialUI.SvgIcon; // require('material-ui/svg-icons/action/flight-takeoff'); export import ActionFlipToBack = __MaterialUI.SvgIcon; // require('material-ui/svg-icons/action/flip-to-back'); export import ActionFlipToFront = __MaterialUI.SvgIcon; // require('material-ui/svg-icons/action/flip-to-front'); + export import ActionGTranslate = __MaterialUI.SvgIcon; // require('material-ui/svg-icons/action/g-translate'); export import ActionGavel = __MaterialUI.SvgIcon; // require('material-ui/svg-icons/action/gavel'); export import ActionGetApp = __MaterialUI.SvgIcon; // require('material-ui/svg-icons/action/get-app'); export import ActionGif = __MaterialUI.SvgIcon; // require('material-ui/svg-icons/action/gif'); @@ -7876,9 +8081,11 @@ declare module "material-ui/svg-icons" { export import ActionReceipt = __MaterialUI.SvgIcon; // require('material-ui/svg-icons/action/receipt'); export import ActionRecordVoiceOver = __MaterialUI.SvgIcon; // require('material-ui/svg-icons/action/record-voice-over'); export import ActionRedeem = __MaterialUI.SvgIcon; // require('material-ui/svg-icons/action/redeem'); + export import ActionRemoveShoppingCart = __MaterialUI.SvgIcon; // require('material-ui/svg-icons/action/remove-shopping-cart'); export import ActionReorder = __MaterialUI.SvgIcon; // require('material-ui/svg-icons/action/reorder'); export import ActionReportProblem = __MaterialUI.SvgIcon; // require('material-ui/svg-icons/action/report-problem'); export import ActionRestore = __MaterialUI.SvgIcon; // require('material-ui/svg-icons/action/restore'); + export import ActionRestorePage = __MaterialUI.SvgIcon; // require('material-ui/svg-icons/action/restore-page'); export import ActionRoom = __MaterialUI.SvgIcon; // require('material-ui/svg-icons/action/room'); export import ActionRoundedCorner = __MaterialUI.SvgIcon; // require('material-ui/svg-icons/action/rounded-corner'); export import ActionRowing = __MaterialUI.SvgIcon; // require('material-ui/svg-icons/action/rowing'); @@ -7902,10 +8109,11 @@ declare module "material-ui/svg-icons" { export import ActionSettingsRemote = __MaterialUI.SvgIcon; // require('material-ui/svg-icons/action/settings-remote'); export import ActionSettingsVoice = __MaterialUI.SvgIcon; // require('material-ui/svg-icons/action/settings-voice'); export import ActionShop = __MaterialUI.SvgIcon; // require('material-ui/svg-icons/action/shop'); + export import ActionShopTwo = __MaterialUI.SvgIcon; // require('material-ui/svg-icons/action/shop-two'); export import ActionShoppingBasket = __MaterialUI.SvgIcon; // require('material-ui/svg-icons/action/shopping-basket'); export import ActionShoppingCart = __MaterialUI.SvgIcon; // require('material-ui/svg-icons/action/shopping-cart'); - export import ActionShopTwo = __MaterialUI.SvgIcon; // require('material-ui/svg-icons/action/shop-two'); export import ActionSpeakerNotes = __MaterialUI.SvgIcon; // require('material-ui/svg-icons/action/speaker-notes'); + export import ActionSpeakerNotesOff = __MaterialUI.SvgIcon; // require('material-ui/svg-icons/action/speaker-notes-off'); export import ActionSpellcheck = __MaterialUI.SvgIcon; // require('material-ui/svg-icons/action/spellcheck'); export import ActionStars = __MaterialUI.SvgIcon; // require('material-ui/svg-icons/action/stars'); export import ActionStore = __MaterialUI.SvgIcon; // require('material-ui/svg-icons/action/store'); @@ -7920,8 +8128,8 @@ declare module "material-ui/svg-icons" { export import ActionTheaters = __MaterialUI.SvgIcon; // require('material-ui/svg-icons/action/theaters'); export import ActionThreeDRotation = __MaterialUI.SvgIcon; // require('material-ui/svg-icons/action/three-d-rotation'); export import ActionThumbDown = __MaterialUI.SvgIcon; // require('material-ui/svg-icons/action/thumb-down'); - export import ActionThumbsUpDown = __MaterialUI.SvgIcon; // require('material-ui/svg-icons/action/thumbs-up-down'); export import ActionThumbUp = __MaterialUI.SvgIcon; // require('material-ui/svg-icons/action/thumb-up'); + export import ActionThumbsUpDown = __MaterialUI.SvgIcon; // require('material-ui/svg-icons/action/thumbs-up-down'); export import ActionTimeline = __MaterialUI.SvgIcon; // require('material-ui/svg-icons/action/timeline'); export import ActionToc = __MaterialUI.SvgIcon; // require('material-ui/svg-icons/action/toc'); export import ActionToday = __MaterialUI.SvgIcon; // require('material-ui/svg-icons/action/today'); @@ -7963,11 +8171,15 @@ declare module "material-ui/svg-icons" { export import AvAlbum = __MaterialUI.SvgIcon; // require('material-ui/svg-icons/av/album'); export import AvArtTrack = __MaterialUI.SvgIcon; // require('material-ui/svg-icons/av/art-track'); export import AvAvTimer = __MaterialUI.SvgIcon; // require('material-ui/svg-icons/av/av-timer'); + export import AvBrandingWatermark = __MaterialUI.SvgIcon; // require('material-ui/svg-icons/av/branding-watermark'); + export import AvCallToAction = __MaterialUI.SvgIcon; // require('material-ui/svg-icons/av/call-to-action'); export import AvClosedCaption = __MaterialUI.SvgIcon; // require('material-ui/svg-icons/av/closed-caption'); export import AvEqualizer = __MaterialUI.SvgIcon; // require('material-ui/svg-icons/av/equalizer'); export import AvExplicit = __MaterialUI.SvgIcon; // require('material-ui/svg-icons/av/explicit'); export import AvFastForward = __MaterialUI.SvgIcon; // require('material-ui/svg-icons/av/fast-forward'); export import AvFastRewind = __MaterialUI.SvgIcon; // require('material-ui/svg-icons/av/fast-rewind'); + export import AvFeaturedPlayList = __MaterialUI.SvgIcon; // require('material-ui/svg-icons/av/featured-play-list'); + export import AvFeaturedVideo = __MaterialUI.SvgIcon; // require('material-ui/svg-icons/av/featured-video'); export import AvFiberDvr = __MaterialUI.SvgIcon; // require('material-ui/svg-icons/av/fiber-dvr'); export import AvFiberManualRecord = __MaterialUI.SvgIcon; // require('material-ui/svg-icons/av/fiber-manual-record'); export import AvFiberNew = __MaterialUI.SvgIcon; // require('material-ui/svg-icons/av/fiber-new'); @@ -7991,6 +8203,7 @@ declare module "material-ui/svg-icons" { export import AvMusicVideo = __MaterialUI.SvgIcon; // require('material-ui/svg-icons/av/music-video'); export import AvNewReleases = __MaterialUI.SvgIcon; // require('material-ui/svg-icons/av/new-releases'); export import AvNotInterested = __MaterialUI.SvgIcon; // require('material-ui/svg-icons/av/not-interested'); + export import AvNote = __MaterialUI.SvgIcon; // require('material-ui/svg-icons/av/note'); export import AvPause = __MaterialUI.SvgIcon; // require('material-ui/svg-icons/av/pause'); export import AvPauseCircleFilled = __MaterialUI.SvgIcon; // require('material-ui/svg-icons/av/pause-circle-filled'); export import AvPauseCircleOutline = __MaterialUI.SvgIcon; // require('material-ui/svg-icons/av/pause-circle-outline'); @@ -8022,9 +8235,11 @@ declare module "material-ui/svg-icons" { export import AvSubscriptions = __MaterialUI.SvgIcon; // require('material-ui/svg-icons/av/subscriptions'); export import AvSubtitles = __MaterialUI.SvgIcon; // require('material-ui/svg-icons/av/subtitles'); export import AvSurroundSound = __MaterialUI.SvgIcon; // require('material-ui/svg-icons/av/surround-sound'); + export import AvVideoCall = __MaterialUI.SvgIcon; // require('material-ui/svg-icons/av/video-call'); + export import AvVideoLabel = __MaterialUI.SvgIcon; // require('material-ui/svg-icons/av/video-label'); + export import AvVideoLibrary = __MaterialUI.SvgIcon; // require('material-ui/svg-icons/av/video-library'); export import AvVideocam = __MaterialUI.SvgIcon; // require('material-ui/svg-icons/av/videocam'); export import AvVideocamOff = __MaterialUI.SvgIcon; // require('material-ui/svg-icons/av/videocam-off'); - export import AvVideoLibrary = __MaterialUI.SvgIcon; // require('material-ui/svg-icons/av/video-library'); export import AvVolumeDown = __MaterialUI.SvgIcon; // require('material-ui/svg-icons/av/volume-down'); export import AvVolumeMute = __MaterialUI.SvgIcon; // require('material-ui/svg-icons/av/volume-mute'); export import AvVolumeOff = __MaterialUI.SvgIcon; // require('material-ui/svg-icons/av/volume-off'); @@ -8069,6 +8284,7 @@ declare module "material-ui/svg-icons" { export import CommunicationPortableWifiOff = __MaterialUI.SvgIcon; // require('material-ui/svg-icons/communication/portable-wifi-off'); export import CommunicationPresentToAll = __MaterialUI.SvgIcon; // require('material-ui/svg-icons/communication/present-to-all'); export import CommunicationRingVolume = __MaterialUI.SvgIcon; // require('material-ui/svg-icons/communication/ring-volume'); + export import CommunicationRssFeed = __MaterialUI.SvgIcon; // require('material-ui/svg-icons/communication/rss-feed'); export import CommunicationScreenShare = __MaterialUI.SvgIcon; // require('material-ui/svg-icons/communication/screen-share'); export import CommunicationSpeakerPhone = __MaterialUI.SvgIcon; // require('material-ui/svg-icons/communication/speaker-phone'); export import CommunicationStayCurrentLandscape = __MaterialUI.SvgIcon; // require('material-ui/svg-icons/communication/stay-current-landscape'); @@ -8077,7 +8293,6 @@ declare module "material-ui/svg-icons" { export import CommunicationStayPrimaryPortrait = __MaterialUI.SvgIcon; // require('material-ui/svg-icons/communication/stay-primary-portrait'); export import CommunicationStopScreenShare = __MaterialUI.SvgIcon; // require('material-ui/svg-icons/communication/stop-screen-share'); export import CommunicationSwapCalls = __MaterialUI.SvgIcon; // require('material-ui/svg-icons/communication/swap-calls'); - export import CommunicationTactMail = __MaterialUI.SvgIcon; // require('material-ui/svg-icons/communication/tact-mail'); export import CommunicationTextsms = __MaterialUI.SvgIcon; // require('material-ui/svg-icons/communication/textsms'); export import CommunicationVoicemail = __MaterialUI.SvgIcon; // require('material-ui/svg-icons/communication/voicemail'); export import CommunicationVpnKey = __MaterialUI.SvgIcon; // require('material-ui/svg-icons/communication/vpn-key'); @@ -8093,6 +8308,7 @@ declare module "material-ui/svg-icons" { export import ContentContentCut = __MaterialUI.SvgIcon; // require('material-ui/svg-icons/content/content-cut'); export import ContentContentPaste = __MaterialUI.SvgIcon; // require('material-ui/svg-icons/content/content-paste'); export import ContentCreate = __MaterialUI.SvgIcon; // require('material-ui/svg-icons/content/create'); + export import ContentDeleteSweep = __MaterialUI.SvgIcon; // require('material-ui/svg-icons/content/delete-sweep'); export import ContentDrafts = __MaterialUI.SvgIcon; // require('material-ui/svg-icons/content/drafts'); export import ContentFilterList = __MaterialUI.SvgIcon; // require('material-ui/svg-icons/content/filter-list'); export import ContentFlag = __MaterialUI.SvgIcon; // require('material-ui/svg-icons/content/flag'); @@ -8101,6 +8317,7 @@ declare module "material-ui/svg-icons" { export import ContentGesture = __MaterialUI.SvgIcon; // require('material-ui/svg-icons/content/gesture'); export import ContentInbox = __MaterialUI.SvgIcon; // require('material-ui/svg-icons/content/inbox'); export import ContentLink = __MaterialUI.SvgIcon; // require('material-ui/svg-icons/content/link'); + export import ContentLowPriority = __MaterialUI.SvgIcon; // require('material-ui/svg-icons/content/low-priority'); export import ContentMail = __MaterialUI.SvgIcon; // require('material-ui/svg-icons/content/mail'); export import ContentMarkunread = __MaterialUI.SvgIcon; // require('material-ui/svg-icons/content/markunread'); export import ContentMoveToInbox = __MaterialUI.SvgIcon; // require('material-ui/svg-icons/content/move-to-inbox'); @@ -8213,6 +8430,7 @@ declare module "material-ui/svg-icons" { export import EditorBorderStyle = __MaterialUI.SvgIcon; // require('material-ui/svg-icons/editor/border-style'); export import EditorBorderTop = __MaterialUI.SvgIcon; // require('material-ui/svg-icons/editor/border-top'); export import EditorBorderVertical = __MaterialUI.SvgIcon; // require('material-ui/svg-icons/editor/border-vertical'); + export import EditorBubbleChart = __MaterialUI.SvgIcon; // require('material-ui/svg-icons/editor/bubble-chart'); export import EditorDragHandle = __MaterialUI.SvgIcon; // require('material-ui/svg-icons/editor/drag-handle'); export import EditorFormatAlignCenter = __MaterialUI.SvgIcon; // require('material-ui/svg-icons/editor/format-align-center'); export import EditorFormatAlignJustify = __MaterialUI.SvgIcon; // require('material-ui/svg-icons/editor/format-align-justify'); @@ -8250,12 +8468,18 @@ declare module "material-ui/svg-icons" { export import EditorMergeType = __MaterialUI.SvgIcon; // require('material-ui/svg-icons/editor/merge-type'); export import EditorModeComment = __MaterialUI.SvgIcon; // require('material-ui/svg-icons/editor/mode-comment'); export import EditorModeEdit = __MaterialUI.SvgIcon; // require('material-ui/svg-icons/editor/mode-edit'); + export import EditorMonetizationOn = __MaterialUI.SvgIcon; // require('material-ui/svg-icons/editor/monetization-on'); export import EditorMoneyOff = __MaterialUI.SvgIcon; // require('material-ui/svg-icons/editor/money-off'); + export import EditorMultilineChart = __MaterialUI.SvgIcon; // require('material-ui/svg-icons/editor/multiline-chart'); + export import EditorPieChart = __MaterialUI.SvgIcon; // require('material-ui/svg-icons/editor/pie-chart'); + export import EditorPieChartOutlined = __MaterialUI.SvgIcon; // require('material-ui/svg-icons/editor/pie-chart-outlined'); export import EditorPublish = __MaterialUI.SvgIcon; // require('material-ui/svg-icons/editor/publish'); export import EditorShortText = __MaterialUI.SvgIcon; // require('material-ui/svg-icons/editor/short-text'); + export import EditorShowChart = __MaterialUI.SvgIcon; // require('material-ui/svg-icons/editor/show-chart'); export import EditorSpaceBar = __MaterialUI.SvgIcon; // require('material-ui/svg-icons/editor/space-bar'); export import EditorStrikethroughS = __MaterialUI.SvgIcon; // require('material-ui/svg-icons/editor/strikethrough-s'); export import EditorTextFields = __MaterialUI.SvgIcon; // require('material-ui/svg-icons/editor/text-fields'); + export import EditorTitle = __MaterialUI.SvgIcon; // require('material-ui/svg-icons/editor/title'); export import EditorVerticalAlignBottom = __MaterialUI.SvgIcon; // require('material-ui/svg-icons/editor/vertical-align-bottom'); export import EditorVerticalAlignCenter = __MaterialUI.SvgIcon; // require('material-ui/svg-icons/editor/vertical-align-center'); export import EditorVerticalAlignTop = __MaterialUI.SvgIcon; // require('material-ui/svg-icons/editor/vertical-align-top'); @@ -8341,6 +8565,7 @@ declare module "material-ui/svg-icons" { export import ImageBrightness7 = __MaterialUI.SvgIcon; // require('material-ui/svg-icons/image/brightness-7'); export import ImageBrokenImage = __MaterialUI.SvgIcon; // require('material-ui/svg-icons/image/broken-image'); export import ImageBrush = __MaterialUI.SvgIcon; // require('material-ui/svg-icons/image/brush'); + export import ImageBurstMode = __MaterialUI.SvgIcon; // require('material-ui/svg-icons/image/burst-mode'); export import ImageCamera = __MaterialUI.SvgIcon; // require('material-ui/svg-icons/image/camera'); export import ImageCameraAlt = __MaterialUI.SvgIcon; // require('material-ui/svg-icons/image/camera-alt'); export import ImageCameraFront = __MaterialUI.SvgIcon; // require('material-ui/svg-icons/image/camera-front'); @@ -8350,8 +8575,8 @@ declare module "material-ui/svg-icons" { export import ImageCenterFocusWeak = __MaterialUI.SvgIcon; // require('material-ui/svg-icons/image/center-focus-weak'); export import ImageCollections = __MaterialUI.SvgIcon; // require('material-ui/svg-icons/image/collections'); export import ImageCollectionsBookmark = __MaterialUI.SvgIcon; // require('material-ui/svg-icons/image/collections-bookmark'); - export import ImageColorize = __MaterialUI.SvgIcon; // require('material-ui/svg-icons/image/colorize'); export import ImageColorLens = __MaterialUI.SvgIcon; // require('material-ui/svg-icons/image/color-lens'); + export import ImageColorize = __MaterialUI.SvgIcon; // require('material-ui/svg-icons/image/colorize'); export import ImageCompare = __MaterialUI.SvgIcon; // require('material-ui/svg-icons/image/compare'); export import ImageControlPoint = __MaterialUI.SvgIcon; // require('material-ui/svg-icons/image/control-point'); export import ImageControlPointDuplicate = __MaterialUI.SvgIcon; // require('material-ui/svg-icons/image/control-point-duplicate'); @@ -8476,8 +8701,6 @@ declare module "material-ui/svg-icons" { export import ImageWbIncandescent = __MaterialUI.SvgIcon; // require('material-ui/svg-icons/image/wb-incandescent'); export import ImageWbIridescent = __MaterialUI.SvgIcon; // require('material-ui/svg-icons/image/wb-iridescent'); export import ImageWbSunny = __MaterialUI.SvgIcon; // require('material-ui/svg-icons/image/wb-sunny'); - export import Index = __MaterialUI.SvgIcon; // require('material-ui/svg-icons/index'); - export import IndexGenerator = __MaterialUI.SvgIcon; // require('material-ui/svg-icons/index-generator'); export import MapsAddLocation = __MaterialUI.SvgIcon; // require('material-ui/svg-icons/maps/add-location'); export import MapsBeenhere = __MaterialUI.SvgIcon; // require('material-ui/svg-icons/maps/beenhere'); export import MapsDirections = __MaterialUI.SvgIcon; // require('material-ui/svg-icons/maps/directions'); @@ -8491,6 +8714,7 @@ declare module "material-ui/svg-icons" { export import MapsDirectionsTransit = __MaterialUI.SvgIcon; // require('material-ui/svg-icons/maps/directions-transit'); export import MapsDirectionsWalk = __MaterialUI.SvgIcon; // require('material-ui/svg-icons/maps/directions-walk'); export import MapsEditLocation = __MaterialUI.SvgIcon; // require('material-ui/svg-icons/maps/edit-location'); + export import MapsEvStation = __MaterialUI.SvgIcon; // require('material-ui/svg-icons/maps/ev-station'); export import MapsFlight = __MaterialUI.SvgIcon; // require('material-ui/svg-icons/maps/flight'); export import MapsHotel = __MaterialUI.SvgIcon; // require('material-ui/svg-icons/maps/hotel'); export import MapsLayers = __MaterialUI.SvgIcon; // require('material-ui/svg-icons/maps/layers'); @@ -8533,18 +8757,23 @@ declare module "material-ui/svg-icons" { export import MapsPinDrop = __MaterialUI.SvgIcon; // require('material-ui/svg-icons/maps/pin-drop'); export import MapsPlace = __MaterialUI.SvgIcon; // require('material-ui/svg-icons/maps/place'); export import MapsRateReview = __MaterialUI.SvgIcon; // require('material-ui/svg-icons/maps/rate-review'); + export import MapsRestaurant = __MaterialUI.SvgIcon; // require('material-ui/svg-icons/maps/restaurant'); export import MapsRestaurantMenu = __MaterialUI.SvgIcon; // require('material-ui/svg-icons/maps/restaurant-menu'); export import MapsSatellite = __MaterialUI.SvgIcon; // require('material-ui/svg-icons/maps/satellite'); export import MapsStoreMallDirectory = __MaterialUI.SvgIcon; // require('material-ui/svg-icons/maps/store-mall-directory'); + export import MapsStreetview = __MaterialUI.SvgIcon; // require('material-ui/svg-icons/maps/streetview'); + export import MapsSubway = __MaterialUI.SvgIcon; // require('material-ui/svg-icons/maps/subway'); export import MapsTerrain = __MaterialUI.SvgIcon; // require('material-ui/svg-icons/maps/terrain'); export import MapsTraffic = __MaterialUI.SvgIcon; // require('material-ui/svg-icons/maps/traffic'); + export import MapsTrain = __MaterialUI.SvgIcon; // require('material-ui/svg-icons/maps/train'); + export import MapsTram = __MaterialUI.SvgIcon; // require('material-ui/svg-icons/maps/tram'); + export import MapsTransferWithinAStation = __MaterialUI.SvgIcon; // require('material-ui/svg-icons/maps/transfer-within-a-station'); export import MapsZoomOutMap = __MaterialUI.SvgIcon; // require('material-ui/svg-icons/maps/zoom-out-map'); export import NavigationApps = __MaterialUI.SvgIcon; // require('material-ui/svg-icons/navigation/apps'); export import NavigationArrowBack = __MaterialUI.SvgIcon; // require('material-ui/svg-icons/navigation/arrow-back'); export import NavigationArrowDownward = __MaterialUI.SvgIcon; // require('material-ui/svg-icons/navigation/arrow-downward'); export import NavigationArrowDropDown = __MaterialUI.SvgIcon; // require('material-ui/svg-icons/navigation/arrow-drop-down'); export import NavigationArrowDropDownCircle = __MaterialUI.SvgIcon; // require('material-ui/svg-icons/navigation/arrow-drop-down-circle'); - export import NavigationArrowDropRight = __MaterialUI.SvgIcon; // require('material-ui/svg-icons/navigation-arrow-drop-right'); export import NavigationArrowDropUp = __MaterialUI.SvgIcon; // require('material-ui/svg-icons/navigation/arrow-drop-up'); export import NavigationArrowForward = __MaterialUI.SvgIcon; // require('material-ui/svg-icons/navigation/arrow-forward'); export import NavigationArrowUpward = __MaterialUI.SvgIcon; // require('material-ui/svg-icons/navigation/arrow-upward'); @@ -8555,8 +8784,10 @@ declare module "material-ui/svg-icons" { export import NavigationClose = __MaterialUI.SvgIcon; // require('material-ui/svg-icons/navigation/close'); export import NavigationExpandLess = __MaterialUI.SvgIcon; // require('material-ui/svg-icons/navigation/expand-less'); export import NavigationExpandMore = __MaterialUI.SvgIcon; // require('material-ui/svg-icons/navigation/expand-more'); + export import NavigationFirstPage = __MaterialUI.SvgIcon; // require('material-ui/svg-icons/navigation/first-page'); export import NavigationFullscreen = __MaterialUI.SvgIcon; // require('material-ui/svg-icons/navigation/fullscreen'); export import NavigationFullscreenExit = __MaterialUI.SvgIcon; // require('material-ui/svg-icons/navigation/fullscreen-exit'); + export import NavigationLastPage = __MaterialUI.SvgIcon; // require('material-ui/svg-icons/navigation/last-page'); export import NavigationMenu = __MaterialUI.SvgIcon; // require('material-ui/svg-icons/navigation/menu'); export import NavigationMoreHoriz = __MaterialUI.SvgIcon; // require('material-ui/svg-icons/navigation/more-horiz'); export import NavigationMoreVert = __MaterialUI.SvgIcon; // require('material-ui/svg-icons/navigation/more-vert'); @@ -8579,6 +8810,8 @@ declare module "material-ui/svg-icons" { export import NotificationDiscFull = __MaterialUI.SvgIcon; // require('material-ui/svg-icons/notification/disc-full'); export import NotificationDoNotDisturb = __MaterialUI.SvgIcon; // require('material-ui/svg-icons/notification/do-not-disturb'); export import NotificationDoNotDisturbAlt = __MaterialUI.SvgIcon; // require('material-ui/svg-icons/notification/do-not-disturb-alt'); + export import NotificationDoNotDisturbOff = __MaterialUI.SvgIcon; // require('material-ui/svg-icons/notification/do-not-disturb-off'); + export import NotificationDoNotDisturbOn = __MaterialUI.SvgIcon; // require('material-ui/svg-icons/notification/do-not-disturb-on'); export import NotificationDriveEta = __MaterialUI.SvgIcon; // require('material-ui/svg-icons/notification/drive-eta'); export import NotificationEnhancedEncryption = __MaterialUI.SvgIcon; // require('material-ui/svg-icons/notification/enhanced-encryption'); export import NotificationEventAvailable = __MaterialUI.SvgIcon; // require('material-ui/svg-icons/notification/event-available'); @@ -8600,6 +8833,7 @@ declare module "material-ui/svg-icons" { export import NotificationPhoneMissed = __MaterialUI.SvgIcon; // require('material-ui/svg-icons/notification/phone-missed'); export import NotificationPhonePaused = __MaterialUI.SvgIcon; // require('material-ui/svg-icons/notification/phone-paused'); export import NotificationPower = __MaterialUI.SvgIcon; // require('material-ui/svg-icons/notification/power'); + export import NotificationPriorityHigh = __MaterialUI.SvgIcon; // require('material-ui/svg-icons/notification/priority-high'); export import NotificationRvHookup = __MaterialUI.SvgIcon; // require('material-ui/svg-icons/notification/rv-hookup'); export import NotificationSdCard = __MaterialUI.SvgIcon; // require('material-ui/svg-icons/notification/sd-card'); export import NotificationSimCardAlert = __MaterialUI.SvgIcon; // require('material-ui/svg-icons/notification/sim-card-alert'); @@ -8631,6 +8865,7 @@ declare module "material-ui/svg-icons" { export import PlacesKitchen = __MaterialUI.SvgIcon; // require('material-ui/svg-icons/places/kitchen'); export import PlacesPool = __MaterialUI.SvgIcon; // require('material-ui/svg-icons/places/pool'); export import PlacesRoomService = __MaterialUI.SvgIcon; // require('material-ui/svg-icons/places/room-service'); + export import PlacesRvHookup = __MaterialUI.SvgIcon; // require('material-ui/svg-icons/places/rv-hookup'); export import PlacesSmokeFree = __MaterialUI.SvgIcon; // require('material-ui/svg-icons/places/smoke-free'); export import PlacesSmokingRooms = __MaterialUI.SvgIcon; // require('material-ui/svg-icons/places/smoking-rooms'); export import PlacesSpa = __MaterialUI.SvgIcon; // require('material-ui/svg-icons/places/spa'); @@ -8657,6 +8892,11 @@ declare module "material-ui/svg-icons" { export import SocialPoll = __MaterialUI.SvgIcon; // require('material-ui/svg-icons/social/poll'); export import SocialPublic = __MaterialUI.SvgIcon; // require('material-ui/svg-icons/social/public'); export import SocialSchool = __MaterialUI.SvgIcon; // require('material-ui/svg-icons/social/school'); + export import SocialSentimentDissatisfied = __MaterialUI.SvgIcon; // require('material-ui/svg-icons/social/sentiment-dissatisfied'); + export import SocialSentimentNeutral = __MaterialUI.SvgIcon; // require('material-ui/svg-icons/social/sentiment-neutral'); + export import SocialSentimentSatisfied = __MaterialUI.SvgIcon; // require('material-ui/svg-icons/social/sentiment-satisfied'); + export import SocialSentimentVeryDissatisfied = __MaterialUI.SvgIcon; // require('material-ui/svg-icons/social/sentiment-very-dissatisfied'); + export import SocialSentimentVerySatisfied = __MaterialUI.SvgIcon; // require('material-ui/svg-icons/social/sentiment-very-satisfied'); export import SocialShare = __MaterialUI.SvgIcon; // require('material-ui/svg-icons/social/share'); export import SocialWhatshot = __MaterialUI.SvgIcon; // require('material-ui/svg-icons/social/whatshot'); export import ToggleCheckBox = __MaterialUI.SvgIcon; // require('material-ui/svg-icons/toggle/check-box'); @@ -8667,6 +8907,8 @@ declare module "material-ui/svg-icons" { export import ToggleStar = __MaterialUI.SvgIcon; // require('material-ui/svg-icons/toggle/star'); export import ToggleStarBorder = __MaterialUI.SvgIcon; // require('material-ui/svg-icons/toggle/star-border'); export import ToggleStarHalf = __MaterialUI.SvgIcon; // require('material-ui/svg-icons/toggle/star-half'); +// }}} + export import NavigationArrowDropRight = __MaterialUI.SvgIcon; // require('material-ui/svg-icons/navigation-arrow-drop-right'); } declare module 'material-ui/internal/AppCanvas' { diff --git a/types/material-ui/material-ui-tests.tsx b/types/material-ui/material-ui-tests.tsx index b3a3396632..0c50217cd2 100644 --- a/types/material-ui/material-ui-tests.tsx +++ b/types/material-ui/material-ui-tests.tsx @@ -51,44 +51,1938 @@ import { } from 'material-ui/Table'; import { Tabs, Tab } from 'material-ui/Tabs'; import { Toolbar, ToolbarGroup, ToolbarSeparator, ToolbarTitle } from 'material-ui/Toolbar'; -import ActionAndroid from 'material-ui/svg-icons/action/android'; -import ActionAssignment from 'material-ui/svg-icons/action/assignment'; -import ActionFavorite from 'material-ui/svg-icons/action/favorite'; -import ActionFavoriteBorder from 'material-ui/svg-icons/action/favorite-border'; -import ActionFlightTakeoff from 'material-ui/svg-icons/action/flight-takeoff'; -import ActionGrade from 'material-ui/svg-icons/action/grade'; -import ActionHome from 'material-ui/svg-icons/action/home'; -import ActionInfo from 'material-ui/svg-icons/action/info'; -import ArrowDropRight from 'material-ui/svg-icons/navigation-arrow-drop-right'; -import CommunicationCall from 'material-ui/svg-icons/communication/call'; -import CommunicationChatBubble from 'material-ui/svg-icons/communication/chat-bubble'; -import CommunicationEmail from 'material-ui/svg-icons/communication/email'; -import ContentAdd from 'material-ui/svg-icons/content/add'; -import ContentCopy from 'material-ui/svg-icons/content/content-copy'; -import ContentDrafts from 'material-ui/svg-icons/content/drafts'; -import ContentFilter from 'material-ui/svg-icons/content/filter-list'; -import ContentInbox from 'material-ui/svg-icons/content/inbox'; -import ContentLink from 'material-ui/svg-icons/content/link'; -import ContentSend from 'material-ui/svg-icons/content/send'; -import Delete from 'material-ui/svg-icons/action/delete'; -import Download from 'material-ui/svg-icons/file/file-download'; -import FileFileDownload from 'material-ui/svg-icons/file/file-download'; -import EditorInsertChart from 'material-ui/svg-icons/editor/insert-chart'; -import FileCloudDownload from 'material-ui/svg-icons/file/cloud-download'; -import FileFolder from 'material-ui/svg-icons/file/folder'; -import FolderIcon from 'material-ui/svg-icons/file/folder-open'; -import HardwareVideogameAsset from 'material-ui/svg-icons/hardware/videogame-asset'; -import MapsPersonPin from 'material-ui/svg-icons/maps/person-pin'; -import MapsPlace from 'material-ui/svg-icons/maps/place'; -import MoreVertIcon from 'material-ui/svg-icons/navigation/more-vert'; -import NavigationClose from 'material-ui/svg-icons/navigation/close'; -import NavigationExpandMoreIcon from 'material-ui/svg-icons/navigation/expand-more'; -import NotificationsIcon from 'material-ui/svg-icons/social/notifications'; -import PersonAdd from 'material-ui/svg-icons/social/person-add'; -import RemoveRedEye from 'material-ui/svg-icons/image/remove-red-eye'; -import StarBorder from 'material-ui/svg-icons/toggle/star-border'; -import UploadIcon from 'material-ui/svg-icons/file/cloud-upload'; -import WarningIcon from 'material-ui/svg-icons/alert/warning'; +// DO NOT EDIT +// This code is generated by scripts/material-ui/generate.js +// {{{ +import _ActionAccessibility from 'material-ui/svg-icons/action/accessibility'; +import _ActionAccessible from 'material-ui/svg-icons/action/accessible'; +import _ActionAccountBalance from 'material-ui/svg-icons/action/account-balance'; +import _ActionAccountBalanceWallet from 'material-ui/svg-icons/action/account-balance-wallet'; +import _ActionAccountBox from 'material-ui/svg-icons/action/account-box'; +import _ActionAccountCircle from 'material-ui/svg-icons/action/account-circle'; +import _ActionAddShoppingCart from 'material-ui/svg-icons/action/add-shopping-cart'; +import _ActionAlarm from 'material-ui/svg-icons/action/alarm'; +import _ActionAlarmAdd from 'material-ui/svg-icons/action/alarm-add'; +import _ActionAlarmOff from 'material-ui/svg-icons/action/alarm-off'; +import _ActionAlarmOn from 'material-ui/svg-icons/action/alarm-on'; +import _ActionAllOut from 'material-ui/svg-icons/action/all-out'; +import _ActionAndroid from 'material-ui/svg-icons/action/android'; +import _ActionAnnouncement from 'material-ui/svg-icons/action/announcement'; +import _ActionAspectRatio from 'material-ui/svg-icons/action/aspect-ratio'; +import _ActionAssessment from 'material-ui/svg-icons/action/assessment'; +import _ActionAssignment from 'material-ui/svg-icons/action/assignment'; +import _ActionAssignmentInd from 'material-ui/svg-icons/action/assignment-ind'; +import _ActionAssignmentLate from 'material-ui/svg-icons/action/assignment-late'; +import _ActionAssignmentReturn from 'material-ui/svg-icons/action/assignment-return'; +import _ActionAssignmentReturned from 'material-ui/svg-icons/action/assignment-returned'; +import _ActionAssignmentTurnedIn from 'material-ui/svg-icons/action/assignment-turned-in'; +import _ActionAutorenew from 'material-ui/svg-icons/action/autorenew'; +import _ActionBackup from 'material-ui/svg-icons/action/backup'; +import _ActionBook from 'material-ui/svg-icons/action/book'; +import _ActionBookmark from 'material-ui/svg-icons/action/bookmark'; +import _ActionBookmarkBorder from 'material-ui/svg-icons/action/bookmark-border'; +import _ActionBugReport from 'material-ui/svg-icons/action/bug-report'; +import _ActionBuild from 'material-ui/svg-icons/action/build'; +import _ActionCached from 'material-ui/svg-icons/action/cached'; +import _ActionCameraEnhance from 'material-ui/svg-icons/action/camera-enhance'; +import _ActionCardGiftcard from 'material-ui/svg-icons/action/card-giftcard'; +import _ActionCardMembership from 'material-ui/svg-icons/action/card-membership'; +import _ActionCardTravel from 'material-ui/svg-icons/action/card-travel'; +import _ActionChangeHistory from 'material-ui/svg-icons/action/change-history'; +import _ActionCheckCircle from 'material-ui/svg-icons/action/check-circle'; +import _ActionChromeReaderMode from 'material-ui/svg-icons/action/chrome-reader-mode'; +import _ActionClass from 'material-ui/svg-icons/action/class'; +import _ActionCode from 'material-ui/svg-icons/action/code'; +import _ActionCompareArrows from 'material-ui/svg-icons/action/compare-arrows'; +import _ActionCopyright from 'material-ui/svg-icons/action/copyright'; +import _ActionCreditCard from 'material-ui/svg-icons/action/credit-card'; +import _ActionDashboard from 'material-ui/svg-icons/action/dashboard'; +import _ActionDateRange from 'material-ui/svg-icons/action/date-range'; +import _ActionDelete from 'material-ui/svg-icons/action/delete'; +import _ActionDeleteForever from 'material-ui/svg-icons/action/delete-forever'; +import _ActionDescription from 'material-ui/svg-icons/action/description'; +import _ActionDns from 'material-ui/svg-icons/action/dns'; +import _ActionDone from 'material-ui/svg-icons/action/done'; +import _ActionDoneAll from 'material-ui/svg-icons/action/done-all'; +import _ActionDonutLarge from 'material-ui/svg-icons/action/donut-large'; +import _ActionDonutSmall from 'material-ui/svg-icons/action/donut-small'; +import _ActionEject from 'material-ui/svg-icons/action/eject'; +import _ActionEuroSymbol from 'material-ui/svg-icons/action/euro-symbol'; +import _ActionEvent from 'material-ui/svg-icons/action/event'; +import _ActionEventSeat from 'material-ui/svg-icons/action/event-seat'; +import _ActionExitToApp from 'material-ui/svg-icons/action/exit-to-app'; +import _ActionExplore from 'material-ui/svg-icons/action/explore'; +import _ActionExtension from 'material-ui/svg-icons/action/extension'; +import _ActionFace from 'material-ui/svg-icons/action/face'; +import _ActionFavorite from 'material-ui/svg-icons/action/favorite'; +import _ActionFavoriteBorder from 'material-ui/svg-icons/action/favorite-border'; +import _ActionFeedback from 'material-ui/svg-icons/action/feedback'; +import _ActionFindInPage from 'material-ui/svg-icons/action/find-in-page'; +import _ActionFindReplace from 'material-ui/svg-icons/action/find-replace'; +import _ActionFingerprint from 'material-ui/svg-icons/action/fingerprint'; +import _ActionFlightLand from 'material-ui/svg-icons/action/flight-land'; +import _ActionFlightTakeoff from 'material-ui/svg-icons/action/flight-takeoff'; +import _ActionFlipToBack from 'material-ui/svg-icons/action/flip-to-back'; +import _ActionFlipToFront from 'material-ui/svg-icons/action/flip-to-front'; +import _ActionGTranslate from 'material-ui/svg-icons/action/g-translate'; +import _ActionGavel from 'material-ui/svg-icons/action/gavel'; +import _ActionGetApp from 'material-ui/svg-icons/action/get-app'; +import _ActionGif from 'material-ui/svg-icons/action/gif'; +import _ActionGrade from 'material-ui/svg-icons/action/grade'; +import _ActionGroupWork from 'material-ui/svg-icons/action/group-work'; +import _ActionHelp from 'material-ui/svg-icons/action/help'; +import _ActionHelpOutline from 'material-ui/svg-icons/action/help-outline'; +import _ActionHighlightOff from 'material-ui/svg-icons/action/highlight-off'; +import _ActionHistory from 'material-ui/svg-icons/action/history'; +import _ActionHome from 'material-ui/svg-icons/action/home'; +import _ActionHourglassEmpty from 'material-ui/svg-icons/action/hourglass-empty'; +import _ActionHourglassFull from 'material-ui/svg-icons/action/hourglass-full'; +import _ActionHttp from 'material-ui/svg-icons/action/http'; +import _ActionHttps from 'material-ui/svg-icons/action/https'; +import _ActionImportantDevices from 'material-ui/svg-icons/action/important-devices'; +import _ActionInfo from 'material-ui/svg-icons/action/info'; +import _ActionInfoOutline from 'material-ui/svg-icons/action/info-outline'; +import _ActionInput from 'material-ui/svg-icons/action/input'; +import _ActionInvertColors from 'material-ui/svg-icons/action/invert-colors'; +import _ActionLabel from 'material-ui/svg-icons/action/label'; +import _ActionLabelOutline from 'material-ui/svg-icons/action/label-outline'; +import _ActionLanguage from 'material-ui/svg-icons/action/language'; +import _ActionLaunch from 'material-ui/svg-icons/action/launch'; +import _ActionLightbulbOutline from 'material-ui/svg-icons/action/lightbulb-outline'; +import _ActionLineStyle from 'material-ui/svg-icons/action/line-style'; +import _ActionLineWeight from 'material-ui/svg-icons/action/line-weight'; +import _ActionList from 'material-ui/svg-icons/action/list'; +import _ActionLock from 'material-ui/svg-icons/action/lock'; +import _ActionLockOpen from 'material-ui/svg-icons/action/lock-open'; +import _ActionLockOutline from 'material-ui/svg-icons/action/lock-outline'; +import _ActionLoyalty from 'material-ui/svg-icons/action/loyalty'; +import _ActionMarkunreadMailbox from 'material-ui/svg-icons/action/markunread-mailbox'; +import _ActionMotorcycle from 'material-ui/svg-icons/action/motorcycle'; +import _ActionNoteAdd from 'material-ui/svg-icons/action/note-add'; +import _ActionOfflinePin from 'material-ui/svg-icons/action/offline-pin'; +import _ActionOpacity from 'material-ui/svg-icons/action/opacity'; +import _ActionOpenInBrowser from 'material-ui/svg-icons/action/open-in-browser'; +import _ActionOpenInNew from 'material-ui/svg-icons/action/open-in-new'; +import _ActionOpenWith from 'material-ui/svg-icons/action/open-with'; +import _ActionPageview from 'material-ui/svg-icons/action/pageview'; +import _ActionPanTool from 'material-ui/svg-icons/action/pan-tool'; +import _ActionPayment from 'material-ui/svg-icons/action/payment'; +import _ActionPermCameraMic from 'material-ui/svg-icons/action/perm-camera-mic'; +import _ActionPermContactCalendar from 'material-ui/svg-icons/action/perm-contact-calendar'; +import _ActionPermDataSetting from 'material-ui/svg-icons/action/perm-data-setting'; +import _ActionPermDeviceInformation from 'material-ui/svg-icons/action/perm-device-information'; +import _ActionPermIdentity from 'material-ui/svg-icons/action/perm-identity'; +import _ActionPermMedia from 'material-ui/svg-icons/action/perm-media'; +import _ActionPermPhoneMsg from 'material-ui/svg-icons/action/perm-phone-msg'; +import _ActionPermScanWifi from 'material-ui/svg-icons/action/perm-scan-wifi'; +import _ActionPets from 'material-ui/svg-icons/action/pets'; +import _ActionPictureInPicture from 'material-ui/svg-icons/action/picture-in-picture'; +import _ActionPictureInPictureAlt from 'material-ui/svg-icons/action/picture-in-picture-alt'; +import _ActionPlayForWork from 'material-ui/svg-icons/action/play-for-work'; +import _ActionPolymer from 'material-ui/svg-icons/action/polymer'; +import _ActionPowerSettingsNew from 'material-ui/svg-icons/action/power-settings-new'; +import _ActionPregnantWoman from 'material-ui/svg-icons/action/pregnant-woman'; +import _ActionPrint from 'material-ui/svg-icons/action/print'; +import _ActionQueryBuilder from 'material-ui/svg-icons/action/query-builder'; +import _ActionQuestionAnswer from 'material-ui/svg-icons/action/question-answer'; +import _ActionReceipt from 'material-ui/svg-icons/action/receipt'; +import _ActionRecordVoiceOver from 'material-ui/svg-icons/action/record-voice-over'; +import _ActionRedeem from 'material-ui/svg-icons/action/redeem'; +import _ActionRemoveShoppingCart from 'material-ui/svg-icons/action/remove-shopping-cart'; +import _ActionReorder from 'material-ui/svg-icons/action/reorder'; +import _ActionReportProblem from 'material-ui/svg-icons/action/report-problem'; +import _ActionRestore from 'material-ui/svg-icons/action/restore'; +import _ActionRestorePage from 'material-ui/svg-icons/action/restore-page'; +import _ActionRoom from 'material-ui/svg-icons/action/room'; +import _ActionRoundedCorner from 'material-ui/svg-icons/action/rounded-corner'; +import _ActionRowing from 'material-ui/svg-icons/action/rowing'; +import _ActionSchedule from 'material-ui/svg-icons/action/schedule'; +import _ActionSearch from 'material-ui/svg-icons/action/search'; +import _ActionSettings from 'material-ui/svg-icons/action/settings'; +import _ActionSettingsApplications from 'material-ui/svg-icons/action/settings-applications'; +import _ActionSettingsBackupRestore from 'material-ui/svg-icons/action/settings-backup-restore'; +import _ActionSettingsBluetooth from 'material-ui/svg-icons/action/settings-bluetooth'; +import _ActionSettingsBrightness from 'material-ui/svg-icons/action/settings-brightness'; +import _ActionSettingsCell from 'material-ui/svg-icons/action/settings-cell'; +import _ActionSettingsEthernet from 'material-ui/svg-icons/action/settings-ethernet'; +import _ActionSettingsInputAntenna from 'material-ui/svg-icons/action/settings-input-antenna'; +import _ActionSettingsInputComponent from 'material-ui/svg-icons/action/settings-input-component'; +import _ActionSettingsInputComposite from 'material-ui/svg-icons/action/settings-input-composite'; +import _ActionSettingsInputHdmi from 'material-ui/svg-icons/action/settings-input-hdmi'; +import _ActionSettingsInputSvideo from 'material-ui/svg-icons/action/settings-input-svideo'; +import _ActionSettingsOverscan from 'material-ui/svg-icons/action/settings-overscan'; +import _ActionSettingsPhone from 'material-ui/svg-icons/action/settings-phone'; +import _ActionSettingsPower from 'material-ui/svg-icons/action/settings-power'; +import _ActionSettingsRemote from 'material-ui/svg-icons/action/settings-remote'; +import _ActionSettingsVoice from 'material-ui/svg-icons/action/settings-voice'; +import _ActionShop from 'material-ui/svg-icons/action/shop'; +import _ActionShopTwo from 'material-ui/svg-icons/action/shop-two'; +import _ActionShoppingBasket from 'material-ui/svg-icons/action/shopping-basket'; +import _ActionShoppingCart from 'material-ui/svg-icons/action/shopping-cart'; +import _ActionSpeakerNotes from 'material-ui/svg-icons/action/speaker-notes'; +import _ActionSpeakerNotesOff from 'material-ui/svg-icons/action/speaker-notes-off'; +import _ActionSpellcheck from 'material-ui/svg-icons/action/spellcheck'; +import _ActionStars from 'material-ui/svg-icons/action/stars'; +import _ActionStore from 'material-ui/svg-icons/action/store'; +import _ActionSubject from 'material-ui/svg-icons/action/subject'; +import _ActionSupervisorAccount from 'material-ui/svg-icons/action/supervisor-account'; +import _ActionSwapHoriz from 'material-ui/svg-icons/action/swap-horiz'; +import _ActionSwapVert from 'material-ui/svg-icons/action/swap-vert'; +import _ActionSwapVerticalCircle from 'material-ui/svg-icons/action/swap-vertical-circle'; +import _ActionSystemUpdateAlt from 'material-ui/svg-icons/action/system-update-alt'; +import _ActionTab from 'material-ui/svg-icons/action/tab'; +import _ActionTabUnselected from 'material-ui/svg-icons/action/tab-unselected'; +import _ActionTheaters from 'material-ui/svg-icons/action/theaters'; +import _ActionThreeDRotation from 'material-ui/svg-icons/action/three-d-rotation'; +import _ActionThumbDown from 'material-ui/svg-icons/action/thumb-down'; +import _ActionThumbUp from 'material-ui/svg-icons/action/thumb-up'; +import _ActionThumbsUpDown from 'material-ui/svg-icons/action/thumbs-up-down'; +import _ActionTimeline from 'material-ui/svg-icons/action/timeline'; +import _ActionToc from 'material-ui/svg-icons/action/toc'; +import _ActionToday from 'material-ui/svg-icons/action/today'; +import _ActionToll from 'material-ui/svg-icons/action/toll'; +import _ActionTouchApp from 'material-ui/svg-icons/action/touch-app'; +import _ActionTrackChanges from 'material-ui/svg-icons/action/track-changes'; +import _ActionTranslate from 'material-ui/svg-icons/action/translate'; +import _ActionTrendingDown from 'material-ui/svg-icons/action/trending-down'; +import _ActionTrendingFlat from 'material-ui/svg-icons/action/trending-flat'; +import _ActionTrendingUp from 'material-ui/svg-icons/action/trending-up'; +import _ActionTurnedIn from 'material-ui/svg-icons/action/turned-in'; +import _ActionTurnedInNot from 'material-ui/svg-icons/action/turned-in-not'; +import _ActionUpdate from 'material-ui/svg-icons/action/update'; +import _ActionVerifiedUser from 'material-ui/svg-icons/action/verified-user'; +import _ActionViewAgenda from 'material-ui/svg-icons/action/view-agenda'; +import _ActionViewArray from 'material-ui/svg-icons/action/view-array'; +import _ActionViewCarousel from 'material-ui/svg-icons/action/view-carousel'; +import _ActionViewColumn from 'material-ui/svg-icons/action/view-column'; +import _ActionViewDay from 'material-ui/svg-icons/action/view-day'; +import _ActionViewHeadline from 'material-ui/svg-icons/action/view-headline'; +import _ActionViewList from 'material-ui/svg-icons/action/view-list'; +import _ActionViewModule from 'material-ui/svg-icons/action/view-module'; +import _ActionViewQuilt from 'material-ui/svg-icons/action/view-quilt'; +import _ActionViewStream from 'material-ui/svg-icons/action/view-stream'; +import _ActionViewWeek from 'material-ui/svg-icons/action/view-week'; +import _ActionVisibility from 'material-ui/svg-icons/action/visibility'; +import _ActionVisibilityOff from 'material-ui/svg-icons/action/visibility-off'; +import _ActionWatchLater from 'material-ui/svg-icons/action/watch-later'; +import _ActionWork from 'material-ui/svg-icons/action/work'; +import _ActionYoutubeSearchedFor from 'material-ui/svg-icons/action/youtube-searched-for'; +import _ActionZoomIn from 'material-ui/svg-icons/action/zoom-in'; +import _ActionZoomOut from 'material-ui/svg-icons/action/zoom-out'; +import _AlertAddAlert from 'material-ui/svg-icons/alert/add-alert'; +import _AlertError from 'material-ui/svg-icons/alert/error'; +import _AlertErrorOutline from 'material-ui/svg-icons/alert/error-outline'; +import _AlertWarning from 'material-ui/svg-icons/alert/warning'; +import _AvAddToQueue from 'material-ui/svg-icons/av/add-to-queue'; +import _AvAirplay from 'material-ui/svg-icons/av/airplay'; +import _AvAlbum from 'material-ui/svg-icons/av/album'; +import _AvArtTrack from 'material-ui/svg-icons/av/art-track'; +import _AvAvTimer from 'material-ui/svg-icons/av/av-timer'; +import _AvBrandingWatermark from 'material-ui/svg-icons/av/branding-watermark'; +import _AvCallToAction from 'material-ui/svg-icons/av/call-to-action'; +import _AvClosedCaption from 'material-ui/svg-icons/av/closed-caption'; +import _AvEqualizer from 'material-ui/svg-icons/av/equalizer'; +import _AvExplicit from 'material-ui/svg-icons/av/explicit'; +import _AvFastForward from 'material-ui/svg-icons/av/fast-forward'; +import _AvFastRewind from 'material-ui/svg-icons/av/fast-rewind'; +import _AvFeaturedPlayList from 'material-ui/svg-icons/av/featured-play-list'; +import _AvFeaturedVideo from 'material-ui/svg-icons/av/featured-video'; +import _AvFiberDvr from 'material-ui/svg-icons/av/fiber-dvr'; +import _AvFiberManualRecord from 'material-ui/svg-icons/av/fiber-manual-record'; +import _AvFiberNew from 'material-ui/svg-icons/av/fiber-new'; +import _AvFiberPin from 'material-ui/svg-icons/av/fiber-pin'; +import _AvFiberSmartRecord from 'material-ui/svg-icons/av/fiber-smart-record'; +import _AvForward10 from 'material-ui/svg-icons/av/forward-10'; +import _AvForward30 from 'material-ui/svg-icons/av/forward-30'; +import _AvForward5 from 'material-ui/svg-icons/av/forward-5'; +import _AvGames from 'material-ui/svg-icons/av/games'; +import _AvHd from 'material-ui/svg-icons/av/hd'; +import _AvHearing from 'material-ui/svg-icons/av/hearing'; +import _AvHighQuality from 'material-ui/svg-icons/av/high-quality'; +import _AvLibraryAdd from 'material-ui/svg-icons/av/library-add'; +import _AvLibraryBooks from 'material-ui/svg-icons/av/library-books'; +import _AvLibraryMusic from 'material-ui/svg-icons/av/library-music'; +import _AvLoop from 'material-ui/svg-icons/av/loop'; +import _AvMic from 'material-ui/svg-icons/av/mic'; +import _AvMicNone from 'material-ui/svg-icons/av/mic-none'; +import _AvMicOff from 'material-ui/svg-icons/av/mic-off'; +import _AvMovie from 'material-ui/svg-icons/av/movie'; +import _AvMusicVideo from 'material-ui/svg-icons/av/music-video'; +import _AvNewReleases from 'material-ui/svg-icons/av/new-releases'; +import _AvNotInterested from 'material-ui/svg-icons/av/not-interested'; +import _AvNote from 'material-ui/svg-icons/av/note'; +import _AvPause from 'material-ui/svg-icons/av/pause'; +import _AvPauseCircleFilled from 'material-ui/svg-icons/av/pause-circle-filled'; +import _AvPauseCircleOutline from 'material-ui/svg-icons/av/pause-circle-outline'; +import _AvPlayArrow from 'material-ui/svg-icons/av/play-arrow'; +import _AvPlayCircleFilled from 'material-ui/svg-icons/av/play-circle-filled'; +import _AvPlayCircleOutline from 'material-ui/svg-icons/av/play-circle-outline'; +import _AvPlaylistAdd from 'material-ui/svg-icons/av/playlist-add'; +import _AvPlaylistAddCheck from 'material-ui/svg-icons/av/playlist-add-check'; +import _AvPlaylistPlay from 'material-ui/svg-icons/av/playlist-play'; +import _AvQueue from 'material-ui/svg-icons/av/queue'; +import _AvQueueMusic from 'material-ui/svg-icons/av/queue-music'; +import _AvQueuePlayNext from 'material-ui/svg-icons/av/queue-play-next'; +import _AvRadio from 'material-ui/svg-icons/av/radio'; +import _AvRecentActors from 'material-ui/svg-icons/av/recent-actors'; +import _AvRemoveFromQueue from 'material-ui/svg-icons/av/remove-from-queue'; +import _AvRepeat from 'material-ui/svg-icons/av/repeat'; +import _AvRepeatOne from 'material-ui/svg-icons/av/repeat-one'; +import _AvReplay from 'material-ui/svg-icons/av/replay'; +import _AvReplay10 from 'material-ui/svg-icons/av/replay-10'; +import _AvReplay30 from 'material-ui/svg-icons/av/replay-30'; +import _AvReplay5 from 'material-ui/svg-icons/av/replay-5'; +import _AvShuffle from 'material-ui/svg-icons/av/shuffle'; +import _AvSkipNext from 'material-ui/svg-icons/av/skip-next'; +import _AvSkipPrevious from 'material-ui/svg-icons/av/skip-previous'; +import _AvSlowMotionVideo from 'material-ui/svg-icons/av/slow-motion-video'; +import _AvSnooze from 'material-ui/svg-icons/av/snooze'; +import _AvSortByAlpha from 'material-ui/svg-icons/av/sort-by-alpha'; +import _AvStop from 'material-ui/svg-icons/av/stop'; +import _AvSubscriptions from 'material-ui/svg-icons/av/subscriptions'; +import _AvSubtitles from 'material-ui/svg-icons/av/subtitles'; +import _AvSurroundSound from 'material-ui/svg-icons/av/surround-sound'; +import _AvVideoCall from 'material-ui/svg-icons/av/video-call'; +import _AvVideoLabel from 'material-ui/svg-icons/av/video-label'; +import _AvVideoLibrary from 'material-ui/svg-icons/av/video-library'; +import _AvVideocam from 'material-ui/svg-icons/av/videocam'; +import _AvVideocamOff from 'material-ui/svg-icons/av/videocam-off'; +import _AvVolumeDown from 'material-ui/svg-icons/av/volume-down'; +import _AvVolumeMute from 'material-ui/svg-icons/av/volume-mute'; +import _AvVolumeOff from 'material-ui/svg-icons/av/volume-off'; +import _AvVolumeUp from 'material-ui/svg-icons/av/volume-up'; +import _AvWeb from 'material-ui/svg-icons/av/web'; +import _AvWebAsset from 'material-ui/svg-icons/av/web-asset'; +import _CommunicationBusiness from 'material-ui/svg-icons/communication/business'; +import _CommunicationCall from 'material-ui/svg-icons/communication/call'; +import _CommunicationCallEnd from 'material-ui/svg-icons/communication/call-end'; +import _CommunicationCallMade from 'material-ui/svg-icons/communication/call-made'; +import _CommunicationCallMerge from 'material-ui/svg-icons/communication/call-merge'; +import _CommunicationCallMissed from 'material-ui/svg-icons/communication/call-missed'; +import _CommunicationCallMissedOutgoing from 'material-ui/svg-icons/communication/call-missed-outgoing'; +import _CommunicationCallReceived from 'material-ui/svg-icons/communication/call-received'; +import _CommunicationCallSplit from 'material-ui/svg-icons/communication/call-split'; +import _CommunicationChat from 'material-ui/svg-icons/communication/chat'; +import _CommunicationChatBubble from 'material-ui/svg-icons/communication/chat-bubble'; +import _CommunicationChatBubbleOutline from 'material-ui/svg-icons/communication/chat-bubble-outline'; +import _CommunicationClearAll from 'material-ui/svg-icons/communication/clear-all'; +import _CommunicationComment from 'material-ui/svg-icons/communication/comment'; +import _CommunicationContactMail from 'material-ui/svg-icons/communication/contact-mail'; +import _CommunicationContactPhone from 'material-ui/svg-icons/communication/contact-phone'; +import _CommunicationContacts from 'material-ui/svg-icons/communication/contacts'; +import _CommunicationDialerSip from 'material-ui/svg-icons/communication/dialer-sip'; +import _CommunicationDialpad from 'material-ui/svg-icons/communication/dialpad'; +import _CommunicationEmail from 'material-ui/svg-icons/communication/email'; +import _CommunicationForum from 'material-ui/svg-icons/communication/forum'; +import _CommunicationImportContacts from 'material-ui/svg-icons/communication/import-contacts'; +import _CommunicationImportExport from 'material-ui/svg-icons/communication/import-export'; +import _CommunicationInvertColorsOff from 'material-ui/svg-icons/communication/invert-colors-off'; +import _CommunicationLiveHelp from 'material-ui/svg-icons/communication/live-help'; +import _CommunicationLocationOff from 'material-ui/svg-icons/communication/location-off'; +import _CommunicationLocationOn from 'material-ui/svg-icons/communication/location-on'; +import _CommunicationMailOutline from 'material-ui/svg-icons/communication/mail-outline'; +import _CommunicationMessage from 'material-ui/svg-icons/communication/message'; +import _CommunicationNoSim from 'material-ui/svg-icons/communication/no-sim'; +import _CommunicationPhone from 'material-ui/svg-icons/communication/phone'; +import _CommunicationPhonelinkErase from 'material-ui/svg-icons/communication/phonelink-erase'; +import _CommunicationPhonelinkLock from 'material-ui/svg-icons/communication/phonelink-lock'; +import _CommunicationPhonelinkRing from 'material-ui/svg-icons/communication/phonelink-ring'; +import _CommunicationPhonelinkSetup from 'material-ui/svg-icons/communication/phonelink-setup'; +import _CommunicationPortableWifiOff from 'material-ui/svg-icons/communication/portable-wifi-off'; +import _CommunicationPresentToAll from 'material-ui/svg-icons/communication/present-to-all'; +import _CommunicationRingVolume from 'material-ui/svg-icons/communication/ring-volume'; +import _CommunicationRssFeed from 'material-ui/svg-icons/communication/rss-feed'; +import _CommunicationScreenShare from 'material-ui/svg-icons/communication/screen-share'; +import _CommunicationSpeakerPhone from 'material-ui/svg-icons/communication/speaker-phone'; +import _CommunicationStayCurrentLandscape from 'material-ui/svg-icons/communication/stay-current-landscape'; +import _CommunicationStayCurrentPortrait from 'material-ui/svg-icons/communication/stay-current-portrait'; +import _CommunicationStayPrimaryLandscape from 'material-ui/svg-icons/communication/stay-primary-landscape'; +import _CommunicationStayPrimaryPortrait from 'material-ui/svg-icons/communication/stay-primary-portrait'; +import _CommunicationStopScreenShare from 'material-ui/svg-icons/communication/stop-screen-share'; +import _CommunicationSwapCalls from 'material-ui/svg-icons/communication/swap-calls'; +import _CommunicationTextsms from 'material-ui/svg-icons/communication/textsms'; +import _CommunicationVoicemail from 'material-ui/svg-icons/communication/voicemail'; +import _CommunicationVpnKey from 'material-ui/svg-icons/communication/vpn-key'; +import _ContentAdd from 'material-ui/svg-icons/content/add'; +import _ContentAddBox from 'material-ui/svg-icons/content/add-box'; +import _ContentAddCircle from 'material-ui/svg-icons/content/add-circle'; +import _ContentAddCircleOutline from 'material-ui/svg-icons/content/add-circle-outline'; +import _ContentArchive from 'material-ui/svg-icons/content/archive'; +import _ContentBackspace from 'material-ui/svg-icons/content/backspace'; +import _ContentBlock from 'material-ui/svg-icons/content/block'; +import _ContentClear from 'material-ui/svg-icons/content/clear'; +import _ContentContentCopy from 'material-ui/svg-icons/content/content-copy'; +import _ContentContentCut from 'material-ui/svg-icons/content/content-cut'; +import _ContentContentPaste from 'material-ui/svg-icons/content/content-paste'; +import _ContentCreate from 'material-ui/svg-icons/content/create'; +import _ContentDeleteSweep from 'material-ui/svg-icons/content/delete-sweep'; +import _ContentDrafts from 'material-ui/svg-icons/content/drafts'; +import _ContentFilterList from 'material-ui/svg-icons/content/filter-list'; +import _ContentFlag from 'material-ui/svg-icons/content/flag'; +import _ContentFontDownload from 'material-ui/svg-icons/content/font-download'; +import _ContentForward from 'material-ui/svg-icons/content/forward'; +import _ContentGesture from 'material-ui/svg-icons/content/gesture'; +import _ContentInbox from 'material-ui/svg-icons/content/inbox'; +import _ContentLink from 'material-ui/svg-icons/content/link'; +import _ContentLowPriority from 'material-ui/svg-icons/content/low-priority'; +import _ContentMail from 'material-ui/svg-icons/content/mail'; +import _ContentMarkunread from 'material-ui/svg-icons/content/markunread'; +import _ContentMoveToInbox from 'material-ui/svg-icons/content/move-to-inbox'; +import _ContentNextWeek from 'material-ui/svg-icons/content/next-week'; +import _ContentRedo from 'material-ui/svg-icons/content/redo'; +import _ContentRemove from 'material-ui/svg-icons/content/remove'; +import _ContentRemoveCircle from 'material-ui/svg-icons/content/remove-circle'; +import _ContentRemoveCircleOutline from 'material-ui/svg-icons/content/remove-circle-outline'; +import _ContentReply from 'material-ui/svg-icons/content/reply'; +import _ContentReplyAll from 'material-ui/svg-icons/content/reply-all'; +import _ContentReport from 'material-ui/svg-icons/content/report'; +import _ContentSave from 'material-ui/svg-icons/content/save'; +import _ContentSelectAll from 'material-ui/svg-icons/content/select-all'; +import _ContentSend from 'material-ui/svg-icons/content/send'; +import _ContentSort from 'material-ui/svg-icons/content/sort'; +import _ContentTextFormat from 'material-ui/svg-icons/content/text-format'; +import _ContentUnarchive from 'material-ui/svg-icons/content/unarchive'; +import _ContentUndo from 'material-ui/svg-icons/content/undo'; +import _ContentWeekend from 'material-ui/svg-icons/content/weekend'; +import _DeviceAccessAlarm from 'material-ui/svg-icons/device/access-alarm'; +import _DeviceAccessAlarms from 'material-ui/svg-icons/device/access-alarms'; +import _DeviceAccessTime from 'material-ui/svg-icons/device/access-time'; +import _DeviceAddAlarm from 'material-ui/svg-icons/device/add-alarm'; +import _DeviceAirplanemodeActive from 'material-ui/svg-icons/device/airplanemode-active'; +import _DeviceAirplanemodeInactive from 'material-ui/svg-icons/device/airplanemode-inactive'; +import _DeviceBattery20 from 'material-ui/svg-icons/device/battery-20'; +import _DeviceBattery30 from 'material-ui/svg-icons/device/battery-30'; +import _DeviceBattery50 from 'material-ui/svg-icons/device/battery-50'; +import _DeviceBattery60 from 'material-ui/svg-icons/device/battery-60'; +import _DeviceBattery80 from 'material-ui/svg-icons/device/battery-80'; +import _DeviceBattery90 from 'material-ui/svg-icons/device/battery-90'; +import _DeviceBatteryAlert from 'material-ui/svg-icons/device/battery-alert'; +import _DeviceBatteryCharging20 from 'material-ui/svg-icons/device/battery-charging-20'; +import _DeviceBatteryCharging30 from 'material-ui/svg-icons/device/battery-charging-30'; +import _DeviceBatteryCharging50 from 'material-ui/svg-icons/device/battery-charging-50'; +import _DeviceBatteryCharging60 from 'material-ui/svg-icons/device/battery-charging-60'; +import _DeviceBatteryCharging80 from 'material-ui/svg-icons/device/battery-charging-80'; +import _DeviceBatteryCharging90 from 'material-ui/svg-icons/device/battery-charging-90'; +import _DeviceBatteryChargingFull from 'material-ui/svg-icons/device/battery-charging-full'; +import _DeviceBatteryFull from 'material-ui/svg-icons/device/battery-full'; +import _DeviceBatteryStd from 'material-ui/svg-icons/device/battery-std'; +import _DeviceBatteryUnknown from 'material-ui/svg-icons/device/battery-unknown'; +import _DeviceBluetooth from 'material-ui/svg-icons/device/bluetooth'; +import _DeviceBluetoothConnected from 'material-ui/svg-icons/device/bluetooth-connected'; +import _DeviceBluetoothDisabled from 'material-ui/svg-icons/device/bluetooth-disabled'; +import _DeviceBluetoothSearching from 'material-ui/svg-icons/device/bluetooth-searching'; +import _DeviceBrightnessAuto from 'material-ui/svg-icons/device/brightness-auto'; +import _DeviceBrightnessHigh from 'material-ui/svg-icons/device/brightness-high'; +import _DeviceBrightnessLow from 'material-ui/svg-icons/device/brightness-low'; +import _DeviceBrightnessMedium from 'material-ui/svg-icons/device/brightness-medium'; +import _DeviceDataUsage from 'material-ui/svg-icons/device/data-usage'; +import _DeviceDeveloperMode from 'material-ui/svg-icons/device/developer-mode'; +import _DeviceDevices from 'material-ui/svg-icons/device/devices'; +import _DeviceDvr from 'material-ui/svg-icons/device/dvr'; +import _DeviceGpsFixed from 'material-ui/svg-icons/device/gps-fixed'; +import _DeviceGpsNotFixed from 'material-ui/svg-icons/device/gps-not-fixed'; +import _DeviceGpsOff from 'material-ui/svg-icons/device/gps-off'; +import _DeviceGraphicEq from 'material-ui/svg-icons/device/graphic-eq'; +import _DeviceLocationDisabled from 'material-ui/svg-icons/device/location-disabled'; +import _DeviceLocationSearching from 'material-ui/svg-icons/device/location-searching'; +import _DeviceNetworkCell from 'material-ui/svg-icons/device/network-cell'; +import _DeviceNetworkWifi from 'material-ui/svg-icons/device/network-wifi'; +import _DeviceNfc from 'material-ui/svg-icons/device/nfc'; +import _DeviceScreenLockLandscape from 'material-ui/svg-icons/device/screen-lock-landscape'; +import _DeviceScreenLockPortrait from 'material-ui/svg-icons/device/screen-lock-portrait'; +import _DeviceScreenLockRotation from 'material-ui/svg-icons/device/screen-lock-rotation'; +import _DeviceScreenRotation from 'material-ui/svg-icons/device/screen-rotation'; +import _DeviceSdStorage from 'material-ui/svg-icons/device/sd-storage'; +import _DeviceSettingsSystemDaydream from 'material-ui/svg-icons/device/settings-system-daydream'; +import _DeviceSignalCellular0Bar from 'material-ui/svg-icons/device/signal-cellular-0-bar'; +import _DeviceSignalCellular1Bar from 'material-ui/svg-icons/device/signal-cellular-1-bar'; +import _DeviceSignalCellular2Bar from 'material-ui/svg-icons/device/signal-cellular-2-bar'; +import _DeviceSignalCellular3Bar from 'material-ui/svg-icons/device/signal-cellular-3-bar'; +import _DeviceSignalCellular4Bar from 'material-ui/svg-icons/device/signal-cellular-4-bar'; +import _DeviceSignalCellularConnectedNoInternet0Bar from 'material-ui/svg-icons/device/signal-cellular-connected-no-internet-0-bar'; +import _DeviceSignalCellularConnectedNoInternet1Bar from 'material-ui/svg-icons/device/signal-cellular-connected-no-internet-1-bar'; +import _DeviceSignalCellularConnectedNoInternet2Bar from 'material-ui/svg-icons/device/signal-cellular-connected-no-internet-2-bar'; +import _DeviceSignalCellularConnectedNoInternet3Bar from 'material-ui/svg-icons/device/signal-cellular-connected-no-internet-3-bar'; +import _DeviceSignalCellularConnectedNoInternet4Bar from 'material-ui/svg-icons/device/signal-cellular-connected-no-internet-4-bar'; +import _DeviceSignalCellularNoSim from 'material-ui/svg-icons/device/signal-cellular-no-sim'; +import _DeviceSignalCellularNull from 'material-ui/svg-icons/device/signal-cellular-null'; +import _DeviceSignalCellularOff from 'material-ui/svg-icons/device/signal-cellular-off'; +import _DeviceSignalWifi0Bar from 'material-ui/svg-icons/device/signal-wifi-0-bar'; +import _DeviceSignalWifi1Bar from 'material-ui/svg-icons/device/signal-wifi-1-bar'; +import _DeviceSignalWifi1BarLock from 'material-ui/svg-icons/device/signal-wifi-1-bar-lock'; +import _DeviceSignalWifi2Bar from 'material-ui/svg-icons/device/signal-wifi-2-bar'; +import _DeviceSignalWifi2BarLock from 'material-ui/svg-icons/device/signal-wifi-2-bar-lock'; +import _DeviceSignalWifi3Bar from 'material-ui/svg-icons/device/signal-wifi-3-bar'; +import _DeviceSignalWifi3BarLock from 'material-ui/svg-icons/device/signal-wifi-3-bar-lock'; +import _DeviceSignalWifi4Bar from 'material-ui/svg-icons/device/signal-wifi-4-bar'; +import _DeviceSignalWifi4BarLock from 'material-ui/svg-icons/device/signal-wifi-4-bar-lock'; +import _DeviceSignalWifiOff from 'material-ui/svg-icons/device/signal-wifi-off'; +import _DeviceStorage from 'material-ui/svg-icons/device/storage'; +import _DeviceUsb from 'material-ui/svg-icons/device/usb'; +import _DeviceWallpaper from 'material-ui/svg-icons/device/wallpaper'; +import _DeviceWidgets from 'material-ui/svg-icons/device/widgets'; +import _DeviceWifiLock from 'material-ui/svg-icons/device/wifi-lock'; +import _DeviceWifiTethering from 'material-ui/svg-icons/device/wifi-tethering'; +import _EditorAttachFile from 'material-ui/svg-icons/editor/attach-file'; +import _EditorAttachMoney from 'material-ui/svg-icons/editor/attach-money'; +import _EditorBorderAll from 'material-ui/svg-icons/editor/border-all'; +import _EditorBorderBottom from 'material-ui/svg-icons/editor/border-bottom'; +import _EditorBorderClear from 'material-ui/svg-icons/editor/border-clear'; +import _EditorBorderColor from 'material-ui/svg-icons/editor/border-color'; +import _EditorBorderHorizontal from 'material-ui/svg-icons/editor/border-horizontal'; +import _EditorBorderInner from 'material-ui/svg-icons/editor/border-inner'; +import _EditorBorderLeft from 'material-ui/svg-icons/editor/border-left'; +import _EditorBorderOuter from 'material-ui/svg-icons/editor/border-outer'; +import _EditorBorderRight from 'material-ui/svg-icons/editor/border-right'; +import _EditorBorderStyle from 'material-ui/svg-icons/editor/border-style'; +import _EditorBorderTop from 'material-ui/svg-icons/editor/border-top'; +import _EditorBorderVertical from 'material-ui/svg-icons/editor/border-vertical'; +import _EditorBubbleChart from 'material-ui/svg-icons/editor/bubble-chart'; +import _EditorDragHandle from 'material-ui/svg-icons/editor/drag-handle'; +import _EditorFormatAlignCenter from 'material-ui/svg-icons/editor/format-align-center'; +import _EditorFormatAlignJustify from 'material-ui/svg-icons/editor/format-align-justify'; +import _EditorFormatAlignLeft from 'material-ui/svg-icons/editor/format-align-left'; +import _EditorFormatAlignRight from 'material-ui/svg-icons/editor/format-align-right'; +import _EditorFormatBold from 'material-ui/svg-icons/editor/format-bold'; +import _EditorFormatClear from 'material-ui/svg-icons/editor/format-clear'; +import _EditorFormatColorFill from 'material-ui/svg-icons/editor/format-color-fill'; +import _EditorFormatColorReset from 'material-ui/svg-icons/editor/format-color-reset'; +import _EditorFormatColorText from 'material-ui/svg-icons/editor/format-color-text'; +import _EditorFormatIndentDecrease from 'material-ui/svg-icons/editor/format-indent-decrease'; +import _EditorFormatIndentIncrease from 'material-ui/svg-icons/editor/format-indent-increase'; +import _EditorFormatItalic from 'material-ui/svg-icons/editor/format-italic'; +import _EditorFormatLineSpacing from 'material-ui/svg-icons/editor/format-line-spacing'; +import _EditorFormatListBulleted from 'material-ui/svg-icons/editor/format-list-bulleted'; +import _EditorFormatListNumbered from 'material-ui/svg-icons/editor/format-list-numbered'; +import _EditorFormatPaint from 'material-ui/svg-icons/editor/format-paint'; +import _EditorFormatQuote from 'material-ui/svg-icons/editor/format-quote'; +import _EditorFormatShapes from 'material-ui/svg-icons/editor/format-shapes'; +import _EditorFormatSize from 'material-ui/svg-icons/editor/format-size'; +import _EditorFormatStrikethrough from 'material-ui/svg-icons/editor/format-strikethrough'; +import _EditorFormatTextdirectionLToR from 'material-ui/svg-icons/editor/format-textdirection-l-to-r'; +import _EditorFormatTextdirectionRToL from 'material-ui/svg-icons/editor/format-textdirection-r-to-l'; +import _EditorFormatUnderlined from 'material-ui/svg-icons/editor/format-underlined'; +import _EditorFunctions from 'material-ui/svg-icons/editor/functions'; +import _EditorHighlight from 'material-ui/svg-icons/editor/highlight'; +import _EditorInsertChart from 'material-ui/svg-icons/editor/insert-chart'; +import _EditorInsertComment from 'material-ui/svg-icons/editor/insert-comment'; +import _EditorInsertDriveFile from 'material-ui/svg-icons/editor/insert-drive-file'; +import _EditorInsertEmoticon from 'material-ui/svg-icons/editor/insert-emoticon'; +import _EditorInsertInvitation from 'material-ui/svg-icons/editor/insert-invitation'; +import _EditorInsertLink from 'material-ui/svg-icons/editor/insert-link'; +import _EditorInsertPhoto from 'material-ui/svg-icons/editor/insert-photo'; +import _EditorLinearScale from 'material-ui/svg-icons/editor/linear-scale'; +import _EditorMergeType from 'material-ui/svg-icons/editor/merge-type'; +import _EditorModeComment from 'material-ui/svg-icons/editor/mode-comment'; +import _EditorModeEdit from 'material-ui/svg-icons/editor/mode-edit'; +import _EditorMonetizationOn from 'material-ui/svg-icons/editor/monetization-on'; +import _EditorMoneyOff from 'material-ui/svg-icons/editor/money-off'; +import _EditorMultilineChart from 'material-ui/svg-icons/editor/multiline-chart'; +import _EditorPieChart from 'material-ui/svg-icons/editor/pie-chart'; +import _EditorPieChartOutlined from 'material-ui/svg-icons/editor/pie-chart-outlined'; +import _EditorPublish from 'material-ui/svg-icons/editor/publish'; +import _EditorShortText from 'material-ui/svg-icons/editor/short-text'; +import _EditorShowChart from 'material-ui/svg-icons/editor/show-chart'; +import _EditorSpaceBar from 'material-ui/svg-icons/editor/space-bar'; +import _EditorStrikethroughS from 'material-ui/svg-icons/editor/strikethrough-s'; +import _EditorTextFields from 'material-ui/svg-icons/editor/text-fields'; +import _EditorTitle from 'material-ui/svg-icons/editor/title'; +import _EditorVerticalAlignBottom from 'material-ui/svg-icons/editor/vertical-align-bottom'; +import _EditorVerticalAlignCenter from 'material-ui/svg-icons/editor/vertical-align-center'; +import _EditorVerticalAlignTop from 'material-ui/svg-icons/editor/vertical-align-top'; +import _EditorWrapText from 'material-ui/svg-icons/editor/wrap-text'; +import _FileAttachment from 'material-ui/svg-icons/file/attachment'; +import _FileCloud from 'material-ui/svg-icons/file/cloud'; +import _FileCloudCircle from 'material-ui/svg-icons/file/cloud-circle'; +import _FileCloudDone from 'material-ui/svg-icons/file/cloud-done'; +import _FileCloudDownload from 'material-ui/svg-icons/file/cloud-download'; +import _FileCloudOff from 'material-ui/svg-icons/file/cloud-off'; +import _FileCloudQueue from 'material-ui/svg-icons/file/cloud-queue'; +import _FileCloudUpload from 'material-ui/svg-icons/file/cloud-upload'; +import _FileCreateNewFolder from 'material-ui/svg-icons/file/create-new-folder'; +import _FileFileDownload from 'material-ui/svg-icons/file/file-download'; +import _FileFileUpload from 'material-ui/svg-icons/file/file-upload'; +import _FileFolder from 'material-ui/svg-icons/file/folder'; +import _FileFolderOpen from 'material-ui/svg-icons/file/folder-open'; +import _FileFolderShared from 'material-ui/svg-icons/file/folder-shared'; +import _HardwareCast from 'material-ui/svg-icons/hardware/cast'; +import _HardwareCastConnected from 'material-ui/svg-icons/hardware/cast-connected'; +import _HardwareComputer from 'material-ui/svg-icons/hardware/computer'; +import _HardwareDesktopMac from 'material-ui/svg-icons/hardware/desktop-mac'; +import _HardwareDesktopWindows from 'material-ui/svg-icons/hardware/desktop-windows'; +import _HardwareDeveloperBoard from 'material-ui/svg-icons/hardware/developer-board'; +import _HardwareDeviceHub from 'material-ui/svg-icons/hardware/device-hub'; +import _HardwareDevicesOther from 'material-ui/svg-icons/hardware/devices-other'; +import _HardwareDock from 'material-ui/svg-icons/hardware/dock'; +import _HardwareGamepad from 'material-ui/svg-icons/hardware/gamepad'; +import _HardwareHeadset from 'material-ui/svg-icons/hardware/headset'; +import _HardwareHeadsetMic from 'material-ui/svg-icons/hardware/headset-mic'; +import _HardwareKeyboard from 'material-ui/svg-icons/hardware/keyboard'; +import _HardwareKeyboardArrowDown from 'material-ui/svg-icons/hardware/keyboard-arrow-down'; +import _HardwareKeyboardArrowLeft from 'material-ui/svg-icons/hardware/keyboard-arrow-left'; +import _HardwareKeyboardArrowRight from 'material-ui/svg-icons/hardware/keyboard-arrow-right'; +import _HardwareKeyboardArrowUp from 'material-ui/svg-icons/hardware/keyboard-arrow-up'; +import _HardwareKeyboardBackspace from 'material-ui/svg-icons/hardware/keyboard-backspace'; +import _HardwareKeyboardCapslock from 'material-ui/svg-icons/hardware/keyboard-capslock'; +import _HardwareKeyboardHide from 'material-ui/svg-icons/hardware/keyboard-hide'; +import _HardwareKeyboardReturn from 'material-ui/svg-icons/hardware/keyboard-return'; +import _HardwareKeyboardTab from 'material-ui/svg-icons/hardware/keyboard-tab'; +import _HardwareKeyboardVoice from 'material-ui/svg-icons/hardware/keyboard-voice'; +import _HardwareLaptop from 'material-ui/svg-icons/hardware/laptop'; +import _HardwareLaptopChromebook from 'material-ui/svg-icons/hardware/laptop-chromebook'; +import _HardwareLaptopMac from 'material-ui/svg-icons/hardware/laptop-mac'; +import _HardwareLaptopWindows from 'material-ui/svg-icons/hardware/laptop-windows'; +import _HardwareMemory from 'material-ui/svg-icons/hardware/memory'; +import _HardwareMouse from 'material-ui/svg-icons/hardware/mouse'; +import _HardwarePhoneAndroid from 'material-ui/svg-icons/hardware/phone-android'; +import _HardwarePhoneIphone from 'material-ui/svg-icons/hardware/phone-iphone'; +import _HardwarePhonelink from 'material-ui/svg-icons/hardware/phonelink'; +import _HardwarePhonelinkOff from 'material-ui/svg-icons/hardware/phonelink-off'; +import _HardwarePowerInput from 'material-ui/svg-icons/hardware/power-input'; +import _HardwareRouter from 'material-ui/svg-icons/hardware/router'; +import _HardwareScanner from 'material-ui/svg-icons/hardware/scanner'; +import _HardwareSecurity from 'material-ui/svg-icons/hardware/security'; +import _HardwareSimCard from 'material-ui/svg-icons/hardware/sim-card'; +import _HardwareSmartphone from 'material-ui/svg-icons/hardware/smartphone'; +import _HardwareSpeaker from 'material-ui/svg-icons/hardware/speaker'; +import _HardwareSpeakerGroup from 'material-ui/svg-icons/hardware/speaker-group'; +import _HardwareTablet from 'material-ui/svg-icons/hardware/tablet'; +import _HardwareTabletAndroid from 'material-ui/svg-icons/hardware/tablet-android'; +import _HardwareTabletMac from 'material-ui/svg-icons/hardware/tablet-mac'; +import _HardwareToys from 'material-ui/svg-icons/hardware/toys'; +import _HardwareTv from 'material-ui/svg-icons/hardware/tv'; +import _HardwareVideogameAsset from 'material-ui/svg-icons/hardware/videogame-asset'; +import _HardwareWatch from 'material-ui/svg-icons/hardware/watch'; +import _ImageAddAPhoto from 'material-ui/svg-icons/image/add-a-photo'; +import _ImageAddToPhotos from 'material-ui/svg-icons/image/add-to-photos'; +import _ImageAdjust from 'material-ui/svg-icons/image/adjust'; +import _ImageAssistant from 'material-ui/svg-icons/image/assistant'; +import _ImageAssistantPhoto from 'material-ui/svg-icons/image/assistant-photo'; +import _ImageAudiotrack from 'material-ui/svg-icons/image/audiotrack'; +import _ImageBlurCircular from 'material-ui/svg-icons/image/blur-circular'; +import _ImageBlurLinear from 'material-ui/svg-icons/image/blur-linear'; +import _ImageBlurOff from 'material-ui/svg-icons/image/blur-off'; +import _ImageBlurOn from 'material-ui/svg-icons/image/blur-on'; +import _ImageBrightness1 from 'material-ui/svg-icons/image/brightness-1'; +import _ImageBrightness2 from 'material-ui/svg-icons/image/brightness-2'; +import _ImageBrightness3 from 'material-ui/svg-icons/image/brightness-3'; +import _ImageBrightness4 from 'material-ui/svg-icons/image/brightness-4'; +import _ImageBrightness5 from 'material-ui/svg-icons/image/brightness-5'; +import _ImageBrightness6 from 'material-ui/svg-icons/image/brightness-6'; +import _ImageBrightness7 from 'material-ui/svg-icons/image/brightness-7'; +import _ImageBrokenImage from 'material-ui/svg-icons/image/broken-image'; +import _ImageBrush from 'material-ui/svg-icons/image/brush'; +import _ImageBurstMode from 'material-ui/svg-icons/image/burst-mode'; +import _ImageCamera from 'material-ui/svg-icons/image/camera'; +import _ImageCameraAlt from 'material-ui/svg-icons/image/camera-alt'; +import _ImageCameraFront from 'material-ui/svg-icons/image/camera-front'; +import _ImageCameraRear from 'material-ui/svg-icons/image/camera-rear'; +import _ImageCameraRoll from 'material-ui/svg-icons/image/camera-roll'; +import _ImageCenterFocusStrong from 'material-ui/svg-icons/image/center-focus-strong'; +import _ImageCenterFocusWeak from 'material-ui/svg-icons/image/center-focus-weak'; +import _ImageCollections from 'material-ui/svg-icons/image/collections'; +import _ImageCollectionsBookmark from 'material-ui/svg-icons/image/collections-bookmark'; +import _ImageColorLens from 'material-ui/svg-icons/image/color-lens'; +import _ImageColorize from 'material-ui/svg-icons/image/colorize'; +import _ImageCompare from 'material-ui/svg-icons/image/compare'; +import _ImageControlPoint from 'material-ui/svg-icons/image/control-point'; +import _ImageControlPointDuplicate from 'material-ui/svg-icons/image/control-point-duplicate'; +import _ImageCrop from 'material-ui/svg-icons/image/crop'; +import _ImageCrop169 from 'material-ui/svg-icons/image/crop-16-9'; +import _ImageCrop32 from 'material-ui/svg-icons/image/crop-3-2'; +import _ImageCrop54 from 'material-ui/svg-icons/image/crop-5-4'; +import _ImageCrop75 from 'material-ui/svg-icons/image/crop-7-5'; +import _ImageCropDin from 'material-ui/svg-icons/image/crop-din'; +import _ImageCropFree from 'material-ui/svg-icons/image/crop-free'; +import _ImageCropLandscape from 'material-ui/svg-icons/image/crop-landscape'; +import _ImageCropOriginal from 'material-ui/svg-icons/image/crop-original'; +import _ImageCropPortrait from 'material-ui/svg-icons/image/crop-portrait'; +import _ImageCropRotate from 'material-ui/svg-icons/image/crop-rotate'; +import _ImageCropSquare from 'material-ui/svg-icons/image/crop-square'; +import _ImageDehaze from 'material-ui/svg-icons/image/dehaze'; +import _ImageDetails from 'material-ui/svg-icons/image/details'; +import _ImageEdit from 'material-ui/svg-icons/image/edit'; +import _ImageExposure from 'material-ui/svg-icons/image/exposure'; +import _ImageExposureNeg1 from 'material-ui/svg-icons/image/exposure-neg-1'; +import _ImageExposureNeg2 from 'material-ui/svg-icons/image/exposure-neg-2'; +import _ImageExposurePlus1 from 'material-ui/svg-icons/image/exposure-plus-1'; +import _ImageExposurePlus2 from 'material-ui/svg-icons/image/exposure-plus-2'; +import _ImageExposureZero from 'material-ui/svg-icons/image/exposure-zero'; +import _ImageFilter from 'material-ui/svg-icons/image/filter'; +import _ImageFilter1 from 'material-ui/svg-icons/image/filter-1'; +import _ImageFilter2 from 'material-ui/svg-icons/image/filter-2'; +import _ImageFilter3 from 'material-ui/svg-icons/image/filter-3'; +import _ImageFilter4 from 'material-ui/svg-icons/image/filter-4'; +import _ImageFilter5 from 'material-ui/svg-icons/image/filter-5'; +import _ImageFilter6 from 'material-ui/svg-icons/image/filter-6'; +import _ImageFilter7 from 'material-ui/svg-icons/image/filter-7'; +import _ImageFilter8 from 'material-ui/svg-icons/image/filter-8'; +import _ImageFilter9 from 'material-ui/svg-icons/image/filter-9'; +import _ImageFilter9Plus from 'material-ui/svg-icons/image/filter-9-plus'; +import _ImageFilterBAndW from 'material-ui/svg-icons/image/filter-b-and-w'; +import _ImageFilterCenterFocus from 'material-ui/svg-icons/image/filter-center-focus'; +import _ImageFilterDrama from 'material-ui/svg-icons/image/filter-drama'; +import _ImageFilterFrames from 'material-ui/svg-icons/image/filter-frames'; +import _ImageFilterHdr from 'material-ui/svg-icons/image/filter-hdr'; +import _ImageFilterNone from 'material-ui/svg-icons/image/filter-none'; +import _ImageFilterTiltShift from 'material-ui/svg-icons/image/filter-tilt-shift'; +import _ImageFilterVintage from 'material-ui/svg-icons/image/filter-vintage'; +import _ImageFlare from 'material-ui/svg-icons/image/flare'; +import _ImageFlashAuto from 'material-ui/svg-icons/image/flash-auto'; +import _ImageFlashOff from 'material-ui/svg-icons/image/flash-off'; +import _ImageFlashOn from 'material-ui/svg-icons/image/flash-on'; +import _ImageFlip from 'material-ui/svg-icons/image/flip'; +import _ImageGradient from 'material-ui/svg-icons/image/gradient'; +import _ImageGrain from 'material-ui/svg-icons/image/grain'; +import _ImageGridOff from 'material-ui/svg-icons/image/grid-off'; +import _ImageGridOn from 'material-ui/svg-icons/image/grid-on'; +import _ImageHdrOff from 'material-ui/svg-icons/image/hdr-off'; +import _ImageHdrOn from 'material-ui/svg-icons/image/hdr-on'; +import _ImageHdrStrong from 'material-ui/svg-icons/image/hdr-strong'; +import _ImageHdrWeak from 'material-ui/svg-icons/image/hdr-weak'; +import _ImageHealing from 'material-ui/svg-icons/image/healing'; +import _ImageImage from 'material-ui/svg-icons/image/image'; +import _ImageImageAspectRatio from 'material-ui/svg-icons/image/image-aspect-ratio'; +import _ImageIso from 'material-ui/svg-icons/image/iso'; +import _ImageLandscape from 'material-ui/svg-icons/image/landscape'; +import _ImageLeakAdd from 'material-ui/svg-icons/image/leak-add'; +import _ImageLeakRemove from 'material-ui/svg-icons/image/leak-remove'; +import _ImageLens from 'material-ui/svg-icons/image/lens'; +import _ImageLinkedCamera from 'material-ui/svg-icons/image/linked-camera'; +import _ImageLooks from 'material-ui/svg-icons/image/looks'; +import _ImageLooks3 from 'material-ui/svg-icons/image/looks-3'; +import _ImageLooks4 from 'material-ui/svg-icons/image/looks-4'; +import _ImageLooks5 from 'material-ui/svg-icons/image/looks-5'; +import _ImageLooks6 from 'material-ui/svg-icons/image/looks-6'; +import _ImageLooksOne from 'material-ui/svg-icons/image/looks-one'; +import _ImageLooksTwo from 'material-ui/svg-icons/image/looks-two'; +import _ImageLoupe from 'material-ui/svg-icons/image/loupe'; +import _ImageMonochromePhotos from 'material-ui/svg-icons/image/monochrome-photos'; +import _ImageMovieCreation from 'material-ui/svg-icons/image/movie-creation'; +import _ImageMovieFilter from 'material-ui/svg-icons/image/movie-filter'; +import _ImageMusicNote from 'material-ui/svg-icons/image/music-note'; +import _ImageNature from 'material-ui/svg-icons/image/nature'; +import _ImageNaturePeople from 'material-ui/svg-icons/image/nature-people'; +import _ImageNavigateBefore from 'material-ui/svg-icons/image/navigate-before'; +import _ImageNavigateNext from 'material-ui/svg-icons/image/navigate-next'; +import _ImagePalette from 'material-ui/svg-icons/image/palette'; +import _ImagePanorama from 'material-ui/svg-icons/image/panorama'; +import _ImagePanoramaFishEye from 'material-ui/svg-icons/image/panorama-fish-eye'; +import _ImagePanoramaHorizontal from 'material-ui/svg-icons/image/panorama-horizontal'; +import _ImagePanoramaVertical from 'material-ui/svg-icons/image/panorama-vertical'; +import _ImagePanoramaWideAngle from 'material-ui/svg-icons/image/panorama-wide-angle'; +import _ImagePhoto from 'material-ui/svg-icons/image/photo'; +import _ImagePhotoAlbum from 'material-ui/svg-icons/image/photo-album'; +import _ImagePhotoCamera from 'material-ui/svg-icons/image/photo-camera'; +import _ImagePhotoFilter from 'material-ui/svg-icons/image/photo-filter'; +import _ImagePhotoLibrary from 'material-ui/svg-icons/image/photo-library'; +import _ImagePhotoSizeSelectActual from 'material-ui/svg-icons/image/photo-size-select-actual'; +import _ImagePhotoSizeSelectLarge from 'material-ui/svg-icons/image/photo-size-select-large'; +import _ImagePhotoSizeSelectSmall from 'material-ui/svg-icons/image/photo-size-select-small'; +import _ImagePictureAsPdf from 'material-ui/svg-icons/image/picture-as-pdf'; +import _ImagePortrait from 'material-ui/svg-icons/image/portrait'; +import _ImageRemoveRedEye from 'material-ui/svg-icons/image/remove-red-eye'; +import _ImageRotate90DegreesCcw from 'material-ui/svg-icons/image/rotate-90-degrees-ccw'; +import _ImageRotateLeft from 'material-ui/svg-icons/image/rotate-left'; +import _ImageRotateRight from 'material-ui/svg-icons/image/rotate-right'; +import _ImageSlideshow from 'material-ui/svg-icons/image/slideshow'; +import _ImageStraighten from 'material-ui/svg-icons/image/straighten'; +import _ImageStyle from 'material-ui/svg-icons/image/style'; +import _ImageSwitchCamera from 'material-ui/svg-icons/image/switch-camera'; +import _ImageSwitchVideo from 'material-ui/svg-icons/image/switch-video'; +import _ImageTagFaces from 'material-ui/svg-icons/image/tag-faces'; +import _ImageTexture from 'material-ui/svg-icons/image/texture'; +import _ImageTimelapse from 'material-ui/svg-icons/image/timelapse'; +import _ImageTimer from 'material-ui/svg-icons/image/timer'; +import _ImageTimer10 from 'material-ui/svg-icons/image/timer-10'; +import _ImageTimer3 from 'material-ui/svg-icons/image/timer-3'; +import _ImageTimerOff from 'material-ui/svg-icons/image/timer-off'; +import _ImageTonality from 'material-ui/svg-icons/image/tonality'; +import _ImageTransform from 'material-ui/svg-icons/image/transform'; +import _ImageTune from 'material-ui/svg-icons/image/tune'; +import _ImageViewComfy from 'material-ui/svg-icons/image/view-comfy'; +import _ImageViewCompact from 'material-ui/svg-icons/image/view-compact'; +import _ImageVignette from 'material-ui/svg-icons/image/vignette'; +import _ImageWbAuto from 'material-ui/svg-icons/image/wb-auto'; +import _ImageWbCloudy from 'material-ui/svg-icons/image/wb-cloudy'; +import _ImageWbIncandescent from 'material-ui/svg-icons/image/wb-incandescent'; +import _ImageWbIridescent from 'material-ui/svg-icons/image/wb-iridescent'; +import _ImageWbSunny from 'material-ui/svg-icons/image/wb-sunny'; +import _MapsAddLocation from 'material-ui/svg-icons/maps/add-location'; +import _MapsBeenhere from 'material-ui/svg-icons/maps/beenhere'; +import _MapsDirections from 'material-ui/svg-icons/maps/directions'; +import _MapsDirectionsBike from 'material-ui/svg-icons/maps/directions-bike'; +import _MapsDirectionsBoat from 'material-ui/svg-icons/maps/directions-boat'; +import _MapsDirectionsBus from 'material-ui/svg-icons/maps/directions-bus'; +import _MapsDirectionsCar from 'material-ui/svg-icons/maps/directions-car'; +import _MapsDirectionsRailway from 'material-ui/svg-icons/maps/directions-railway'; +import _MapsDirectionsRun from 'material-ui/svg-icons/maps/directions-run'; +import _MapsDirectionsSubway from 'material-ui/svg-icons/maps/directions-subway'; +import _MapsDirectionsTransit from 'material-ui/svg-icons/maps/directions-transit'; +import _MapsDirectionsWalk from 'material-ui/svg-icons/maps/directions-walk'; +import _MapsEditLocation from 'material-ui/svg-icons/maps/edit-location'; +import _MapsEvStation from 'material-ui/svg-icons/maps/ev-station'; +import _MapsFlight from 'material-ui/svg-icons/maps/flight'; +import _MapsHotel from 'material-ui/svg-icons/maps/hotel'; +import _MapsLayers from 'material-ui/svg-icons/maps/layers'; +import _MapsLayersClear from 'material-ui/svg-icons/maps/layers-clear'; +import _MapsLocalActivity from 'material-ui/svg-icons/maps/local-activity'; +import _MapsLocalAirport from 'material-ui/svg-icons/maps/local-airport'; +import _MapsLocalAtm from 'material-ui/svg-icons/maps/local-atm'; +import _MapsLocalBar from 'material-ui/svg-icons/maps/local-bar'; +import _MapsLocalCafe from 'material-ui/svg-icons/maps/local-cafe'; +import _MapsLocalCarWash from 'material-ui/svg-icons/maps/local-car-wash'; +import _MapsLocalConvenienceStore from 'material-ui/svg-icons/maps/local-convenience-store'; +import _MapsLocalDining from 'material-ui/svg-icons/maps/local-dining'; +import _MapsLocalDrink from 'material-ui/svg-icons/maps/local-drink'; +import _MapsLocalFlorist from 'material-ui/svg-icons/maps/local-florist'; +import _MapsLocalGasStation from 'material-ui/svg-icons/maps/local-gas-station'; +import _MapsLocalGroceryStore from 'material-ui/svg-icons/maps/local-grocery-store'; +import _MapsLocalHospital from 'material-ui/svg-icons/maps/local-hospital'; +import _MapsLocalHotel from 'material-ui/svg-icons/maps/local-hotel'; +import _MapsLocalLaundryService from 'material-ui/svg-icons/maps/local-laundry-service'; +import _MapsLocalLibrary from 'material-ui/svg-icons/maps/local-library'; +import _MapsLocalMall from 'material-ui/svg-icons/maps/local-mall'; +import _MapsLocalMovies from 'material-ui/svg-icons/maps/local-movies'; +import _MapsLocalOffer from 'material-ui/svg-icons/maps/local-offer'; +import _MapsLocalParking from 'material-ui/svg-icons/maps/local-parking'; +import _MapsLocalPharmacy from 'material-ui/svg-icons/maps/local-pharmacy'; +import _MapsLocalPhone from 'material-ui/svg-icons/maps/local-phone'; +import _MapsLocalPizza from 'material-ui/svg-icons/maps/local-pizza'; +import _MapsLocalPlay from 'material-ui/svg-icons/maps/local-play'; +import _MapsLocalPostOffice from 'material-ui/svg-icons/maps/local-post-office'; +import _MapsLocalPrintshop from 'material-ui/svg-icons/maps/local-printshop'; +import _MapsLocalSee from 'material-ui/svg-icons/maps/local-see'; +import _MapsLocalShipping from 'material-ui/svg-icons/maps/local-shipping'; +import _MapsLocalTaxi from 'material-ui/svg-icons/maps/local-taxi'; +import _MapsMap from 'material-ui/svg-icons/maps/map'; +import _MapsMyLocation from 'material-ui/svg-icons/maps/my-location'; +import _MapsNavigation from 'material-ui/svg-icons/maps/navigation'; +import _MapsNearMe from 'material-ui/svg-icons/maps/near-me'; +import _MapsPersonPin from 'material-ui/svg-icons/maps/person-pin'; +import _MapsPersonPinCircle from 'material-ui/svg-icons/maps/person-pin-circle'; +import _MapsPinDrop from 'material-ui/svg-icons/maps/pin-drop'; +import _MapsPlace from 'material-ui/svg-icons/maps/place'; +import _MapsRateReview from 'material-ui/svg-icons/maps/rate-review'; +import _MapsRestaurant from 'material-ui/svg-icons/maps/restaurant'; +import _MapsRestaurantMenu from 'material-ui/svg-icons/maps/restaurant-menu'; +import _MapsSatellite from 'material-ui/svg-icons/maps/satellite'; +import _MapsStoreMallDirectory from 'material-ui/svg-icons/maps/store-mall-directory'; +import _MapsStreetview from 'material-ui/svg-icons/maps/streetview'; +import _MapsSubway from 'material-ui/svg-icons/maps/subway'; +import _MapsTerrain from 'material-ui/svg-icons/maps/terrain'; +import _MapsTraffic from 'material-ui/svg-icons/maps/traffic'; +import _MapsTrain from 'material-ui/svg-icons/maps/train'; +import _MapsTram from 'material-ui/svg-icons/maps/tram'; +import _MapsTransferWithinAStation from 'material-ui/svg-icons/maps/transfer-within-a-station'; +import _MapsZoomOutMap from 'material-ui/svg-icons/maps/zoom-out-map'; +import _NavigationApps from 'material-ui/svg-icons/navigation/apps'; +import _NavigationArrowBack from 'material-ui/svg-icons/navigation/arrow-back'; +import _NavigationArrowDownward from 'material-ui/svg-icons/navigation/arrow-downward'; +import _NavigationArrowDropDown from 'material-ui/svg-icons/navigation/arrow-drop-down'; +import _NavigationArrowDropDownCircle from 'material-ui/svg-icons/navigation/arrow-drop-down-circle'; +import _NavigationArrowDropUp from 'material-ui/svg-icons/navigation/arrow-drop-up'; +import _NavigationArrowForward from 'material-ui/svg-icons/navigation/arrow-forward'; +import _NavigationArrowUpward from 'material-ui/svg-icons/navigation/arrow-upward'; +import _NavigationCancel from 'material-ui/svg-icons/navigation/cancel'; +import _NavigationCheck from 'material-ui/svg-icons/navigation/check'; +import _NavigationChevronLeft from 'material-ui/svg-icons/navigation/chevron-left'; +import _NavigationChevronRight from 'material-ui/svg-icons/navigation/chevron-right'; +import _NavigationClose from 'material-ui/svg-icons/navigation/close'; +import _NavigationExpandLess from 'material-ui/svg-icons/navigation/expand-less'; +import _NavigationExpandMore from 'material-ui/svg-icons/navigation/expand-more'; +import _NavigationFirstPage from 'material-ui/svg-icons/navigation/first-page'; +import _NavigationFullscreen from 'material-ui/svg-icons/navigation/fullscreen'; +import _NavigationFullscreenExit from 'material-ui/svg-icons/navigation/fullscreen-exit'; +import _NavigationLastPage from 'material-ui/svg-icons/navigation/last-page'; +import _NavigationMenu from 'material-ui/svg-icons/navigation/menu'; +import _NavigationMoreHoriz from 'material-ui/svg-icons/navigation/more-horiz'; +import _NavigationMoreVert from 'material-ui/svg-icons/navigation/more-vert'; +import _NavigationRefresh from 'material-ui/svg-icons/navigation/refresh'; +import _NavigationSubdirectoryArrowLeft from 'material-ui/svg-icons/navigation/subdirectory-arrow-left'; +import _NavigationSubdirectoryArrowRight from 'material-ui/svg-icons/navigation/subdirectory-arrow-right'; +import _NavigationUnfoldLess from 'material-ui/svg-icons/navigation/unfold-less'; +import _NavigationUnfoldMore from 'material-ui/svg-icons/navigation/unfold-more'; +import _NotificationAdb from 'material-ui/svg-icons/notification/adb'; +import _NotificationAirlineSeatFlat from 'material-ui/svg-icons/notification/airline-seat-flat'; +import _NotificationAirlineSeatFlatAngled from 'material-ui/svg-icons/notification/airline-seat-flat-angled'; +import _NotificationAirlineSeatIndividualSuite from 'material-ui/svg-icons/notification/airline-seat-individual-suite'; +import _NotificationAirlineSeatLegroomExtra from 'material-ui/svg-icons/notification/airline-seat-legroom-extra'; +import _NotificationAirlineSeatLegroomNormal from 'material-ui/svg-icons/notification/airline-seat-legroom-normal'; +import _NotificationAirlineSeatLegroomReduced from 'material-ui/svg-icons/notification/airline-seat-legroom-reduced'; +import _NotificationAirlineSeatReclineExtra from 'material-ui/svg-icons/notification/airline-seat-recline-extra'; +import _NotificationAirlineSeatReclineNormal from 'material-ui/svg-icons/notification/airline-seat-recline-normal'; +import _NotificationBluetoothAudio from 'material-ui/svg-icons/notification/bluetooth-audio'; +import _NotificationConfirmationNumber from 'material-ui/svg-icons/notification/confirmation-number'; +import _NotificationDiscFull from 'material-ui/svg-icons/notification/disc-full'; +import _NotificationDoNotDisturb from 'material-ui/svg-icons/notification/do-not-disturb'; +import _NotificationDoNotDisturbAlt from 'material-ui/svg-icons/notification/do-not-disturb-alt'; +import _NotificationDoNotDisturbOff from 'material-ui/svg-icons/notification/do-not-disturb-off'; +import _NotificationDoNotDisturbOn from 'material-ui/svg-icons/notification/do-not-disturb-on'; +import _NotificationDriveEta from 'material-ui/svg-icons/notification/drive-eta'; +import _NotificationEnhancedEncryption from 'material-ui/svg-icons/notification/enhanced-encryption'; +import _NotificationEventAvailable from 'material-ui/svg-icons/notification/event-available'; +import _NotificationEventBusy from 'material-ui/svg-icons/notification/event-busy'; +import _NotificationEventNote from 'material-ui/svg-icons/notification/event-note'; +import _NotificationFolderSpecial from 'material-ui/svg-icons/notification/folder-special'; +import _NotificationLiveTv from 'material-ui/svg-icons/notification/live-tv'; +import _NotificationMms from 'material-ui/svg-icons/notification/mms'; +import _NotificationMore from 'material-ui/svg-icons/notification/more'; +import _NotificationNetworkCheck from 'material-ui/svg-icons/notification/network-check'; +import _NotificationNetworkLocked from 'material-ui/svg-icons/notification/network-locked'; +import _NotificationNoEncryption from 'material-ui/svg-icons/notification/no-encryption'; +import _NotificationOndemandVideo from 'material-ui/svg-icons/notification/ondemand-video'; +import _NotificationPersonalVideo from 'material-ui/svg-icons/notification/personal-video'; +import _NotificationPhoneBluetoothSpeaker from 'material-ui/svg-icons/notification/phone-bluetooth-speaker'; +import _NotificationPhoneForwarded from 'material-ui/svg-icons/notification/phone-forwarded'; +import _NotificationPhoneInTalk from 'material-ui/svg-icons/notification/phone-in-talk'; +import _NotificationPhoneLocked from 'material-ui/svg-icons/notification/phone-locked'; +import _NotificationPhoneMissed from 'material-ui/svg-icons/notification/phone-missed'; +import _NotificationPhonePaused from 'material-ui/svg-icons/notification/phone-paused'; +import _NotificationPower from 'material-ui/svg-icons/notification/power'; +import _NotificationPriorityHigh from 'material-ui/svg-icons/notification/priority-high'; +import _NotificationRvHookup from 'material-ui/svg-icons/notification/rv-hookup'; +import _NotificationSdCard from 'material-ui/svg-icons/notification/sd-card'; +import _NotificationSimCardAlert from 'material-ui/svg-icons/notification/sim-card-alert'; +import _NotificationSms from 'material-ui/svg-icons/notification/sms'; +import _NotificationSmsFailed from 'material-ui/svg-icons/notification/sms-failed'; +import _NotificationSync from 'material-ui/svg-icons/notification/sync'; +import _NotificationSyncDisabled from 'material-ui/svg-icons/notification/sync-disabled'; +import _NotificationSyncProblem from 'material-ui/svg-icons/notification/sync-problem'; +import _NotificationSystemUpdate from 'material-ui/svg-icons/notification/system-update'; +import _NotificationTapAndPlay from 'material-ui/svg-icons/notification/tap-and-play'; +import _NotificationTimeToLeave from 'material-ui/svg-icons/notification/time-to-leave'; +import _NotificationVibration from 'material-ui/svg-icons/notification/vibration'; +import _NotificationVoiceChat from 'material-ui/svg-icons/notification/voice-chat'; +import _NotificationVpnLock from 'material-ui/svg-icons/notification/vpn-lock'; +import _NotificationWc from 'material-ui/svg-icons/notification/wc'; +import _NotificationWifi from 'material-ui/svg-icons/notification/wifi'; +import _PlacesAcUnit from 'material-ui/svg-icons/places/ac-unit'; +import _PlacesAirportShuttle from 'material-ui/svg-icons/places/airport-shuttle'; +import _PlacesAllInclusive from 'material-ui/svg-icons/places/all-inclusive'; +import _PlacesBeachAccess from 'material-ui/svg-icons/places/beach-access'; +import _PlacesBusinessCenter from 'material-ui/svg-icons/places/business-center'; +import _PlacesCasino from 'material-ui/svg-icons/places/casino'; +import _PlacesChildCare from 'material-ui/svg-icons/places/child-care'; +import _PlacesChildFriendly from 'material-ui/svg-icons/places/child-friendly'; +import _PlacesFitnessCenter from 'material-ui/svg-icons/places/fitness-center'; +import _PlacesFreeBreakfast from 'material-ui/svg-icons/places/free-breakfast'; +import _PlacesGolfCourse from 'material-ui/svg-icons/places/golf-course'; +import _PlacesHotTub from 'material-ui/svg-icons/places/hot-tub'; +import _PlacesKitchen from 'material-ui/svg-icons/places/kitchen'; +import _PlacesPool from 'material-ui/svg-icons/places/pool'; +import _PlacesRoomService from 'material-ui/svg-icons/places/room-service'; +import _PlacesRvHookup from 'material-ui/svg-icons/places/rv-hookup'; +import _PlacesSmokeFree from 'material-ui/svg-icons/places/smoke-free'; +import _PlacesSmokingRooms from 'material-ui/svg-icons/places/smoking-rooms'; +import _PlacesSpa from 'material-ui/svg-icons/places/spa'; +import _SocialCake from 'material-ui/svg-icons/social/cake'; +import _SocialDomain from 'material-ui/svg-icons/social/domain'; +import _SocialGroup from 'material-ui/svg-icons/social/group'; +import _SocialGroupAdd from 'material-ui/svg-icons/social/group-add'; +import _SocialLocationCity from 'material-ui/svg-icons/social/location-city'; +import _SocialMood from 'material-ui/svg-icons/social/mood'; +import _SocialMoodBad from 'material-ui/svg-icons/social/mood-bad'; +import _SocialNotifications from 'material-ui/svg-icons/social/notifications'; +import _SocialNotificationsActive from 'material-ui/svg-icons/social/notifications-active'; +import _SocialNotificationsNone from 'material-ui/svg-icons/social/notifications-none'; +import _SocialNotificationsOff from 'material-ui/svg-icons/social/notifications-off'; +import _SocialNotificationsPaused from 'material-ui/svg-icons/social/notifications-paused'; +import _SocialPages from 'material-ui/svg-icons/social/pages'; +import _SocialPartyMode from 'material-ui/svg-icons/social/party-mode'; +import _SocialPeople from 'material-ui/svg-icons/social/people'; +import _SocialPeopleOutline from 'material-ui/svg-icons/social/people-outline'; +import _SocialPerson from 'material-ui/svg-icons/social/person'; +import _SocialPersonAdd from 'material-ui/svg-icons/social/person-add'; +import _SocialPersonOutline from 'material-ui/svg-icons/social/person-outline'; +import _SocialPlusOne from 'material-ui/svg-icons/social/plus-one'; +import _SocialPoll from 'material-ui/svg-icons/social/poll'; +import _SocialPublic from 'material-ui/svg-icons/social/public'; +import _SocialSchool from 'material-ui/svg-icons/social/school'; +import _SocialSentimentDissatisfied from 'material-ui/svg-icons/social/sentiment-dissatisfied'; +import _SocialSentimentNeutral from 'material-ui/svg-icons/social/sentiment-neutral'; +import _SocialSentimentSatisfied from 'material-ui/svg-icons/social/sentiment-satisfied'; +import _SocialSentimentVeryDissatisfied from 'material-ui/svg-icons/social/sentiment-very-dissatisfied'; +import _SocialSentimentVerySatisfied from 'material-ui/svg-icons/social/sentiment-very-satisfied'; +import _SocialShare from 'material-ui/svg-icons/social/share'; +import _SocialWhatshot from 'material-ui/svg-icons/social/whatshot'; +import _ToggleCheckBox from 'material-ui/svg-icons/toggle/check-box'; +import _ToggleCheckBoxOutlineBlank from 'material-ui/svg-icons/toggle/check-box-outline-blank'; +import _ToggleIndeterminateCheckBox from 'material-ui/svg-icons/toggle/indeterminate-check-box'; +import _ToggleRadioButtonChecked from 'material-ui/svg-icons/toggle/radio-button-checked'; +import _ToggleRadioButtonUnchecked from 'material-ui/svg-icons/toggle/radio-button-unchecked'; +import _ToggleStar from 'material-ui/svg-icons/toggle/star'; +import _ToggleStarBorder from 'material-ui/svg-icons/toggle/star-border'; +import _ToggleStarHalf from 'material-ui/svg-icons/toggle/star-half'; +// }}} +import _NavigationArrowDropRight from 'material-ui/svg-icons/navigation-arrow-drop-right'; +import { +// DO NOT EDIT +// This code is generated by scripts/material-ui/generate.js +// {{{ + ActionAccessibility, + ActionAccessible, + ActionAccountBalance, + ActionAccountBalanceWallet, + ActionAccountBox, + ActionAccountCircle, + ActionAddShoppingCart, + ActionAlarm, + ActionAlarmAdd, + ActionAlarmOff, + ActionAlarmOn, + ActionAllOut, + ActionAndroid, + ActionAnnouncement, + ActionAspectRatio, + ActionAssessment, + ActionAssignment, + ActionAssignmentInd, + ActionAssignmentLate, + ActionAssignmentReturn, + ActionAssignmentReturned, + ActionAssignmentTurnedIn, + ActionAutorenew, + ActionBackup, + ActionBook, + ActionBookmark, + ActionBookmarkBorder, + ActionBugReport, + ActionBuild, + ActionCached, + ActionCameraEnhance, + ActionCardGiftcard, + ActionCardMembership, + ActionCardTravel, + ActionChangeHistory, + ActionCheckCircle, + ActionChromeReaderMode, + ActionClass, + ActionCode, + ActionCompareArrows, + ActionCopyright, + ActionCreditCard, + ActionDashboard, + ActionDateRange, + ActionDelete, + ActionDeleteForever, + ActionDescription, + ActionDns, + ActionDone, + ActionDoneAll, + ActionDonutLarge, + ActionDonutSmall, + ActionEject, + ActionEuroSymbol, + ActionEvent, + ActionEventSeat, + ActionExitToApp, + ActionExplore, + ActionExtension, + ActionFace, + ActionFavorite, + ActionFavoriteBorder, + ActionFeedback, + ActionFindInPage, + ActionFindReplace, + ActionFingerprint, + ActionFlightLand, + ActionFlightTakeoff, + ActionFlipToBack, + ActionFlipToFront, + ActionGTranslate, + ActionGavel, + ActionGetApp, + ActionGif, + ActionGrade, + ActionGroupWork, + ActionHelp, + ActionHelpOutline, + ActionHighlightOff, + ActionHistory, + ActionHome, + ActionHourglassEmpty, + ActionHourglassFull, + ActionHttp, + ActionHttps, + ActionImportantDevices, + ActionInfo, + ActionInfoOutline, + ActionInput, + ActionInvertColors, + ActionLabel, + ActionLabelOutline, + ActionLanguage, + ActionLaunch, + ActionLightbulbOutline, + ActionLineStyle, + ActionLineWeight, + ActionList, + ActionLock, + ActionLockOpen, + ActionLockOutline, + ActionLoyalty, + ActionMarkunreadMailbox, + ActionMotorcycle, + ActionNoteAdd, + ActionOfflinePin, + ActionOpacity, + ActionOpenInBrowser, + ActionOpenInNew, + ActionOpenWith, + ActionPageview, + ActionPanTool, + ActionPayment, + ActionPermCameraMic, + ActionPermContactCalendar, + ActionPermDataSetting, + ActionPermDeviceInformation, + ActionPermIdentity, + ActionPermMedia, + ActionPermPhoneMsg, + ActionPermScanWifi, + ActionPets, + ActionPictureInPicture, + ActionPictureInPictureAlt, + ActionPlayForWork, + ActionPolymer, + ActionPowerSettingsNew, + ActionPregnantWoman, + ActionPrint, + ActionQueryBuilder, + ActionQuestionAnswer, + ActionReceipt, + ActionRecordVoiceOver, + ActionRedeem, + ActionRemoveShoppingCart, + ActionReorder, + ActionReportProblem, + ActionRestore, + ActionRestorePage, + ActionRoom, + ActionRoundedCorner, + ActionRowing, + ActionSchedule, + ActionSearch, + ActionSettings, + ActionSettingsApplications, + ActionSettingsBackupRestore, + ActionSettingsBluetooth, + ActionSettingsBrightness, + ActionSettingsCell, + ActionSettingsEthernet, + ActionSettingsInputAntenna, + ActionSettingsInputComponent, + ActionSettingsInputComposite, + ActionSettingsInputHdmi, + ActionSettingsInputSvideo, + ActionSettingsOverscan, + ActionSettingsPhone, + ActionSettingsPower, + ActionSettingsRemote, + ActionSettingsVoice, + ActionShop, + ActionShopTwo, + ActionShoppingBasket, + ActionShoppingCart, + ActionSpeakerNotes, + ActionSpeakerNotesOff, + ActionSpellcheck, + ActionStars, + ActionStore, + ActionSubject, + ActionSupervisorAccount, + ActionSwapHoriz, + ActionSwapVert, + ActionSwapVerticalCircle, + ActionSystemUpdateAlt, + ActionTab, + ActionTabUnselected, + ActionTheaters, + ActionThreeDRotation, + ActionThumbDown, + ActionThumbUp, + ActionThumbsUpDown, + ActionTimeline, + ActionToc, + ActionToday, + ActionToll, + ActionTouchApp, + ActionTrackChanges, + ActionTranslate, + ActionTrendingDown, + ActionTrendingFlat, + ActionTrendingUp, + ActionTurnedIn, + ActionTurnedInNot, + ActionUpdate, + ActionVerifiedUser, + ActionViewAgenda, + ActionViewArray, + ActionViewCarousel, + ActionViewColumn, + ActionViewDay, + ActionViewHeadline, + ActionViewList, + ActionViewModule, + ActionViewQuilt, + ActionViewStream, + ActionViewWeek, + ActionVisibility, + ActionVisibilityOff, + ActionWatchLater, + ActionWork, + ActionYoutubeSearchedFor, + ActionZoomIn, + ActionZoomOut, + AlertAddAlert, + AlertError, + AlertErrorOutline, + AlertWarning, + AvAddToQueue, + AvAirplay, + AvAlbum, + AvArtTrack, + AvAvTimer, + AvBrandingWatermark, + AvCallToAction, + AvClosedCaption, + AvEqualizer, + AvExplicit, + AvFastForward, + AvFastRewind, + AvFeaturedPlayList, + AvFeaturedVideo, + AvFiberDvr, + AvFiberManualRecord, + AvFiberNew, + AvFiberPin, + AvFiberSmartRecord, + AvForward10, + AvForward30, + AvForward5, + AvGames, + AvHd, + AvHearing, + AvHighQuality, + AvLibraryAdd, + AvLibraryBooks, + AvLibraryMusic, + AvLoop, + AvMic, + AvMicNone, + AvMicOff, + AvMovie, + AvMusicVideo, + AvNewReleases, + AvNotInterested, + AvNote, + AvPause, + AvPauseCircleFilled, + AvPauseCircleOutline, + AvPlayArrow, + AvPlayCircleFilled, + AvPlayCircleOutline, + AvPlaylistAdd, + AvPlaylistAddCheck, + AvPlaylistPlay, + AvQueue, + AvQueueMusic, + AvQueuePlayNext, + AvRadio, + AvRecentActors, + AvRemoveFromQueue, + AvRepeat, + AvRepeatOne, + AvReplay, + AvReplay10, + AvReplay30, + AvReplay5, + AvShuffle, + AvSkipNext, + AvSkipPrevious, + AvSlowMotionVideo, + AvSnooze, + AvSortByAlpha, + AvStop, + AvSubscriptions, + AvSubtitles, + AvSurroundSound, + AvVideoCall, + AvVideoLabel, + AvVideoLibrary, + AvVideocam, + AvVideocamOff, + AvVolumeDown, + AvVolumeMute, + AvVolumeOff, + AvVolumeUp, + AvWeb, + AvWebAsset, + CommunicationBusiness, + CommunicationCall, + CommunicationCallEnd, + CommunicationCallMade, + CommunicationCallMerge, + CommunicationCallMissed, + CommunicationCallMissedOutgoing, + CommunicationCallReceived, + CommunicationCallSplit, + CommunicationChat, + CommunicationChatBubble, + CommunicationChatBubbleOutline, + CommunicationClearAll, + CommunicationComment, + CommunicationContactMail, + CommunicationContactPhone, + CommunicationContacts, + CommunicationDialerSip, + CommunicationDialpad, + CommunicationEmail, + CommunicationForum, + CommunicationImportContacts, + CommunicationImportExport, + CommunicationInvertColorsOff, + CommunicationLiveHelp, + CommunicationLocationOff, + CommunicationLocationOn, + CommunicationMailOutline, + CommunicationMessage, + CommunicationNoSim, + CommunicationPhone, + CommunicationPhonelinkErase, + CommunicationPhonelinkLock, + CommunicationPhonelinkRing, + CommunicationPhonelinkSetup, + CommunicationPortableWifiOff, + CommunicationPresentToAll, + CommunicationRingVolume, + CommunicationRssFeed, + CommunicationScreenShare, + CommunicationSpeakerPhone, + CommunicationStayCurrentLandscape, + CommunicationStayCurrentPortrait, + CommunicationStayPrimaryLandscape, + CommunicationStayPrimaryPortrait, + CommunicationStopScreenShare, + CommunicationSwapCalls, + CommunicationTextsms, + CommunicationVoicemail, + CommunicationVpnKey, + ContentAdd, + ContentAddBox, + ContentAddCircle, + ContentAddCircleOutline, + ContentArchive, + ContentBackspace, + ContentBlock, + ContentClear, + ContentContentCopy, + ContentContentCut, + ContentContentPaste, + ContentCreate, + ContentDeleteSweep, + ContentDrafts, + ContentFilterList, + ContentFlag, + ContentFontDownload, + ContentForward, + ContentGesture, + ContentInbox, + ContentLink, + ContentLowPriority, + ContentMail, + ContentMarkunread, + ContentMoveToInbox, + ContentNextWeek, + ContentRedo, + ContentRemove, + ContentRemoveCircle, + ContentRemoveCircleOutline, + ContentReply, + ContentReplyAll, + ContentReport, + ContentSave, + ContentSelectAll, + ContentSend, + ContentSort, + ContentTextFormat, + ContentUnarchive, + ContentUndo, + ContentWeekend, + DeviceAccessAlarm, + DeviceAccessAlarms, + DeviceAccessTime, + DeviceAddAlarm, + DeviceAirplanemodeActive, + DeviceAirplanemodeInactive, + DeviceBattery20, + DeviceBattery30, + DeviceBattery50, + DeviceBattery60, + DeviceBattery80, + DeviceBattery90, + DeviceBatteryAlert, + DeviceBatteryCharging20, + DeviceBatteryCharging30, + DeviceBatteryCharging50, + DeviceBatteryCharging60, + DeviceBatteryCharging80, + DeviceBatteryCharging90, + DeviceBatteryChargingFull, + DeviceBatteryFull, + DeviceBatteryStd, + DeviceBatteryUnknown, + DeviceBluetooth, + DeviceBluetoothConnected, + DeviceBluetoothDisabled, + DeviceBluetoothSearching, + DeviceBrightnessAuto, + DeviceBrightnessHigh, + DeviceBrightnessLow, + DeviceBrightnessMedium, + DeviceDataUsage, + DeviceDeveloperMode, + DeviceDevices, + DeviceDvr, + DeviceGpsFixed, + DeviceGpsNotFixed, + DeviceGpsOff, + DeviceGraphicEq, + DeviceLocationDisabled, + DeviceLocationSearching, + DeviceNetworkCell, + DeviceNetworkWifi, + DeviceNfc, + DeviceScreenLockLandscape, + DeviceScreenLockPortrait, + DeviceScreenLockRotation, + DeviceScreenRotation, + DeviceSdStorage, + DeviceSettingsSystemDaydream, + DeviceSignalCellular0Bar, + DeviceSignalCellular1Bar, + DeviceSignalCellular2Bar, + DeviceSignalCellular3Bar, + DeviceSignalCellular4Bar, + DeviceSignalCellularConnectedNoInternet0Bar, + DeviceSignalCellularConnectedNoInternet1Bar, + DeviceSignalCellularConnectedNoInternet2Bar, + DeviceSignalCellularConnectedNoInternet3Bar, + DeviceSignalCellularConnectedNoInternet4Bar, + DeviceSignalCellularNoSim, + DeviceSignalCellularNull, + DeviceSignalCellularOff, + DeviceSignalWifi0Bar, + DeviceSignalWifi1Bar, + DeviceSignalWifi1BarLock, + DeviceSignalWifi2Bar, + DeviceSignalWifi2BarLock, + DeviceSignalWifi3Bar, + DeviceSignalWifi3BarLock, + DeviceSignalWifi4Bar, + DeviceSignalWifi4BarLock, + DeviceSignalWifiOff, + DeviceStorage, + DeviceUsb, + DeviceWallpaper, + DeviceWidgets, + DeviceWifiLock, + DeviceWifiTethering, + EditorAttachFile, + EditorAttachMoney, + EditorBorderAll, + EditorBorderBottom, + EditorBorderClear, + EditorBorderColor, + EditorBorderHorizontal, + EditorBorderInner, + EditorBorderLeft, + EditorBorderOuter, + EditorBorderRight, + EditorBorderStyle, + EditorBorderTop, + EditorBorderVertical, + EditorBubbleChart, + EditorDragHandle, + EditorFormatAlignCenter, + EditorFormatAlignJustify, + EditorFormatAlignLeft, + EditorFormatAlignRight, + EditorFormatBold, + EditorFormatClear, + EditorFormatColorFill, + EditorFormatColorReset, + EditorFormatColorText, + EditorFormatIndentDecrease, + EditorFormatIndentIncrease, + EditorFormatItalic, + EditorFormatLineSpacing, + EditorFormatListBulleted, + EditorFormatListNumbered, + EditorFormatPaint, + EditorFormatQuote, + EditorFormatShapes, + EditorFormatSize, + EditorFormatStrikethrough, + EditorFormatTextdirectionLToR, + EditorFormatTextdirectionRToL, + EditorFormatUnderlined, + EditorFunctions, + EditorHighlight, + EditorInsertChart, + EditorInsertComment, + EditorInsertDriveFile, + EditorInsertEmoticon, + EditorInsertInvitation, + EditorInsertLink, + EditorInsertPhoto, + EditorLinearScale, + EditorMergeType, + EditorModeComment, + EditorModeEdit, + EditorMonetizationOn, + EditorMoneyOff, + EditorMultilineChart, + EditorPieChart, + EditorPieChartOutlined, + EditorPublish, + EditorShortText, + EditorShowChart, + EditorSpaceBar, + EditorStrikethroughS, + EditorTextFields, + EditorTitle, + EditorVerticalAlignBottom, + EditorVerticalAlignCenter, + EditorVerticalAlignTop, + EditorWrapText, + FileAttachment, + FileCloud, + FileCloudCircle, + FileCloudDone, + FileCloudDownload, + FileCloudOff, + FileCloudQueue, + FileCloudUpload, + FileCreateNewFolder, + FileFileDownload, + FileFileUpload, + FileFolder, + FileFolderOpen, + FileFolderShared, + HardwareCast, + HardwareCastConnected, + HardwareComputer, + HardwareDesktopMac, + HardwareDesktopWindows, + HardwareDeveloperBoard, + HardwareDeviceHub, + HardwareDevicesOther, + HardwareDock, + HardwareGamepad, + HardwareHeadset, + HardwareHeadsetMic, + HardwareKeyboard, + HardwareKeyboardArrowDown, + HardwareKeyboardArrowLeft, + HardwareKeyboardArrowRight, + HardwareKeyboardArrowUp, + HardwareKeyboardBackspace, + HardwareKeyboardCapslock, + HardwareKeyboardHide, + HardwareKeyboardReturn, + HardwareKeyboardTab, + HardwareKeyboardVoice, + HardwareLaptop, + HardwareLaptopChromebook, + HardwareLaptopMac, + HardwareLaptopWindows, + HardwareMemory, + HardwareMouse, + HardwarePhoneAndroid, + HardwarePhoneIphone, + HardwarePhonelink, + HardwarePhonelinkOff, + HardwarePowerInput, + HardwareRouter, + HardwareScanner, + HardwareSecurity, + HardwareSimCard, + HardwareSmartphone, + HardwareSpeaker, + HardwareSpeakerGroup, + HardwareTablet, + HardwareTabletAndroid, + HardwareTabletMac, + HardwareToys, + HardwareTv, + HardwareVideogameAsset, + HardwareWatch, + ImageAddAPhoto, + ImageAddToPhotos, + ImageAdjust, + ImageAssistant, + ImageAssistantPhoto, + ImageAudiotrack, + ImageBlurCircular, + ImageBlurLinear, + ImageBlurOff, + ImageBlurOn, + ImageBrightness1, + ImageBrightness2, + ImageBrightness3, + ImageBrightness4, + ImageBrightness5, + ImageBrightness6, + ImageBrightness7, + ImageBrokenImage, + ImageBrush, + ImageBurstMode, + ImageCamera, + ImageCameraAlt, + ImageCameraFront, + ImageCameraRear, + ImageCameraRoll, + ImageCenterFocusStrong, + ImageCenterFocusWeak, + ImageCollections, + ImageCollectionsBookmark, + ImageColorLens, + ImageColorize, + ImageCompare, + ImageControlPoint, + ImageControlPointDuplicate, + ImageCrop, + ImageCrop169, + ImageCrop32, + ImageCrop54, + ImageCrop75, + ImageCropDin, + ImageCropFree, + ImageCropLandscape, + ImageCropOriginal, + ImageCropPortrait, + ImageCropRotate, + ImageCropSquare, + ImageDehaze, + ImageDetails, + ImageEdit, + ImageExposure, + ImageExposureNeg1, + ImageExposureNeg2, + ImageExposurePlus1, + ImageExposurePlus2, + ImageExposureZero, + ImageFilter, + ImageFilter1, + ImageFilter2, + ImageFilter3, + ImageFilter4, + ImageFilter5, + ImageFilter6, + ImageFilter7, + ImageFilter8, + ImageFilter9, + ImageFilter9Plus, + ImageFilterBAndW, + ImageFilterCenterFocus, + ImageFilterDrama, + ImageFilterFrames, + ImageFilterHdr, + ImageFilterNone, + ImageFilterTiltShift, + ImageFilterVintage, + ImageFlare, + ImageFlashAuto, + ImageFlashOff, + ImageFlashOn, + ImageFlip, + ImageGradient, + ImageGrain, + ImageGridOff, + ImageGridOn, + ImageHdrOff, + ImageHdrOn, + ImageHdrStrong, + ImageHdrWeak, + ImageHealing, + ImageImage, + ImageImageAspectRatio, + ImageIso, + ImageLandscape, + ImageLeakAdd, + ImageLeakRemove, + ImageLens, + ImageLinkedCamera, + ImageLooks, + ImageLooks3, + ImageLooks4, + ImageLooks5, + ImageLooks6, + ImageLooksOne, + ImageLooksTwo, + ImageLoupe, + ImageMonochromePhotos, + ImageMovieCreation, + ImageMovieFilter, + ImageMusicNote, + ImageNature, + ImageNaturePeople, + ImageNavigateBefore, + ImageNavigateNext, + ImagePalette, + ImagePanorama, + ImagePanoramaFishEye, + ImagePanoramaHorizontal, + ImagePanoramaVertical, + ImagePanoramaWideAngle, + ImagePhoto, + ImagePhotoAlbum, + ImagePhotoCamera, + ImagePhotoFilter, + ImagePhotoLibrary, + ImagePhotoSizeSelectActual, + ImagePhotoSizeSelectLarge, + ImagePhotoSizeSelectSmall, + ImagePictureAsPdf, + ImagePortrait, + ImageRemoveRedEye, + ImageRotate90DegreesCcw, + ImageRotateLeft, + ImageRotateRight, + ImageSlideshow, + ImageStraighten, + ImageStyle, + ImageSwitchCamera, + ImageSwitchVideo, + ImageTagFaces, + ImageTexture, + ImageTimelapse, + ImageTimer, + ImageTimer10, + ImageTimer3, + ImageTimerOff, + ImageTonality, + ImageTransform, + ImageTune, + ImageViewComfy, + ImageViewCompact, + ImageVignette, + ImageWbAuto, + ImageWbCloudy, + ImageWbIncandescent, + ImageWbIridescent, + ImageWbSunny, + MapsAddLocation, + MapsBeenhere, + MapsDirections, + MapsDirectionsBike, + MapsDirectionsBoat, + MapsDirectionsBus, + MapsDirectionsCar, + MapsDirectionsRailway, + MapsDirectionsRun, + MapsDirectionsSubway, + MapsDirectionsTransit, + MapsDirectionsWalk, + MapsEditLocation, + MapsEvStation, + MapsFlight, + MapsHotel, + MapsLayers, + MapsLayersClear, + MapsLocalActivity, + MapsLocalAirport, + MapsLocalAtm, + MapsLocalBar, + MapsLocalCafe, + MapsLocalCarWash, + MapsLocalConvenienceStore, + MapsLocalDining, + MapsLocalDrink, + MapsLocalFlorist, + MapsLocalGasStation, + MapsLocalGroceryStore, + MapsLocalHospital, + MapsLocalHotel, + MapsLocalLaundryService, + MapsLocalLibrary, + MapsLocalMall, + MapsLocalMovies, + MapsLocalOffer, + MapsLocalParking, + MapsLocalPharmacy, + MapsLocalPhone, + MapsLocalPizza, + MapsLocalPlay, + MapsLocalPostOffice, + MapsLocalPrintshop, + MapsLocalSee, + MapsLocalShipping, + MapsLocalTaxi, + MapsMap, + MapsMyLocation, + MapsNavigation, + MapsNearMe, + MapsPersonPin, + MapsPersonPinCircle, + MapsPinDrop, + MapsPlace, + MapsRateReview, + MapsRestaurant, + MapsRestaurantMenu, + MapsSatellite, + MapsStoreMallDirectory, + MapsStreetview, + MapsSubway, + MapsTerrain, + MapsTraffic, + MapsTrain, + MapsTram, + MapsTransferWithinAStation, + MapsZoomOutMap, + NavigationApps, + NavigationArrowBack, + NavigationArrowDownward, + NavigationArrowDropDown, + NavigationArrowDropDownCircle, + NavigationArrowDropUp, + NavigationArrowForward, + NavigationArrowUpward, + NavigationCancel, + NavigationCheck, + NavigationChevronLeft, + NavigationChevronRight, + NavigationClose, + NavigationExpandLess, + NavigationExpandMore, + NavigationFirstPage, + NavigationFullscreen, + NavigationFullscreenExit, + NavigationLastPage, + NavigationMenu, + NavigationMoreHoriz, + NavigationMoreVert, + NavigationRefresh, + NavigationSubdirectoryArrowLeft, + NavigationSubdirectoryArrowRight, + NavigationUnfoldLess, + NavigationUnfoldMore, + NotificationAdb, + NotificationAirlineSeatFlat, + NotificationAirlineSeatFlatAngled, + NotificationAirlineSeatIndividualSuite, + NotificationAirlineSeatLegroomExtra, + NotificationAirlineSeatLegroomNormal, + NotificationAirlineSeatLegroomReduced, + NotificationAirlineSeatReclineExtra, + NotificationAirlineSeatReclineNormal, + NotificationBluetoothAudio, + NotificationConfirmationNumber, + NotificationDiscFull, + NotificationDoNotDisturb, + NotificationDoNotDisturbAlt, + NotificationDoNotDisturbOff, + NotificationDoNotDisturbOn, + NotificationDriveEta, + NotificationEnhancedEncryption, + NotificationEventAvailable, + NotificationEventBusy, + NotificationEventNote, + NotificationFolderSpecial, + NotificationLiveTv, + NotificationMms, + NotificationMore, + NotificationNetworkCheck, + NotificationNetworkLocked, + NotificationNoEncryption, + NotificationOndemandVideo, + NotificationPersonalVideo, + NotificationPhoneBluetoothSpeaker, + NotificationPhoneForwarded, + NotificationPhoneInTalk, + NotificationPhoneLocked, + NotificationPhoneMissed, + NotificationPhonePaused, + NotificationPower, + NotificationPriorityHigh, + NotificationRvHookup, + NotificationSdCard, + NotificationSimCardAlert, + NotificationSms, + NotificationSmsFailed, + NotificationSync, + NotificationSyncDisabled, + NotificationSyncProblem, + NotificationSystemUpdate, + NotificationTapAndPlay, + NotificationTimeToLeave, + NotificationVibration, + NotificationVoiceChat, + NotificationVpnLock, + NotificationWc, + NotificationWifi, + PlacesAcUnit, + PlacesAirportShuttle, + PlacesAllInclusive, + PlacesBeachAccess, + PlacesBusinessCenter, + PlacesCasino, + PlacesChildCare, + PlacesChildFriendly, + PlacesFitnessCenter, + PlacesFreeBreakfast, + PlacesGolfCourse, + PlacesHotTub, + PlacesKitchen, + PlacesPool, + PlacesRoomService, + PlacesRvHookup, + PlacesSmokeFree, + PlacesSmokingRooms, + PlacesSpa, + SocialCake, + SocialDomain, + SocialGroup, + SocialGroupAdd, + SocialLocationCity, + SocialMood, + SocialMoodBad, + SocialNotifications, + SocialNotificationsActive, + SocialNotificationsNone, + SocialNotificationsOff, + SocialNotificationsPaused, + SocialPages, + SocialPartyMode, + SocialPeople, + SocialPeopleOutline, + SocialPerson, + SocialPersonAdd, + SocialPersonOutline, + SocialPlusOne, + SocialPoll, + SocialPublic, + SocialSchool, + SocialSentimentDissatisfied, + SocialSentimentNeutral, + SocialSentimentSatisfied, + SocialSentimentVeryDissatisfied, + SocialSentimentVerySatisfied, + SocialShare, + SocialWhatshot, + ToggleCheckBox, + ToggleCheckBoxOutlineBlank, + ToggleIndeterminateCheckBox, + ToggleRadioButtonChecked, + ToggleRadioButtonUnchecked, + ToggleStar, + ToggleStarBorder, + ToggleStarHalf, +// }}} + NavigationArrowDropRight, +} from 'material-ui/svg-icons'; import { cyan500, cyan700, grey100, grey300, grey400, grey500, pinkA200, white, darkBlack, fullBlack, blue300, indigo900, orange200, deepOrange300, pink400, purple500, fullWhite, blue500, red500, greenA200, yellow500, transparent, @@ -459,7 +2353,7 @@ const AppBarExampleIconMenu = () => ( iconElementRight={ + } targetOrigin={{horizontal: 'right', vertical: 'top'}} anchorOrigin={{horizontal: 'right', vertical: 'top'}} @@ -734,7 +2628,7 @@ const BadgeExampleSimple = () => ( badgeContent={4} primary={true} > - + ( badgeStyle={{top: 12, right: 12}} > - + @@ -751,9 +2645,9 @@ const BadgeExampleSimple = () => ( const BadgeExampleContent = () => (
} + badgeContent={} > - + ( key={tile.img} title={tile.title} subtitle={by {tile.author}} - actionIcon={} + actionIcon={} > @@ -1800,7 +3694,7 @@ const GridListExampleComplex = () => ( } + actionIcon={} actionPosition="left" titlePosition="top" titleBackground="linear-gradient(to bottom, rgba(0,0,0,0.7) 0%,rgba(0,0,0,0.3) 70%,rgba(0,0,0,0) 100%)" @@ -2164,7 +4058,7 @@ const iconButtonElement = ( tooltip="more" tooltipPosition="bottom-left" > - + ); @@ -2436,20 +4330,20 @@ const MenuExampleIcons = () => (
- }/> - }/> + }/> + }/> }/> - }/> - }/> + }/> + }/> - }/> + }/> - }/> + }/> settings}/> ( - }/> - }/> - }/> - }/> - }/> + }/> + }/> + }/> + }/> + }/> @@ -2511,11 +4405,11 @@ const MenuExampleNested = () => ( } + rightIcon={} menuItems={[ } + rightIcon={} menuItems={[ , , @@ -2543,7 +4437,7 @@ const IconMenuExampleSimple = () => (
} + iconButtonElement={} anchorOrigin={{horizontal: 'left', vertical: 'top'}} targetOrigin={{horizontal: 'left', vertical: 'top'}} > @@ -2555,7 +4449,7 @@ const IconMenuExampleSimple = () => ( } + iconButtonElement={} anchorOrigin={{horizontal: 'left', vertical: 'bottom'}} targetOrigin={{horizontal: 'left', vertical: 'bottom'}} > @@ -2566,7 +4460,7 @@ const IconMenuExampleSimple = () => ( } + iconButtonElement={} anchorOrigin={{horizontal: 'right', vertical: 'bottom'}} targetOrigin={{horizontal: 'right', vertical: 'bottom'}} > @@ -2577,7 +4471,7 @@ const IconMenuExampleSimple = () => ( } + iconButtonElement={} anchorOrigin={{horizontal: 'right', vertical: 'top'}} targetOrigin={{horizontal: 'right', vertical: 'top'}} > @@ -2634,7 +4528,7 @@ class IconMenuExampleControlled extends React.Component<{}, IconMenuExampleContr return (
} + iconButtonElement={} onChange={this.handleChangeSingle} value={this.state.valueSingle} > @@ -2645,7 +4539,7 @@ class IconMenuExampleControlled extends React.Component<{}, IconMenuExampleContr } + iconButtonElement={} onChange={this.handleChangeMultiple} value={this.state.valueMultiple} multiple={true} @@ -2737,13 +4631,13 @@ const IconMenuExampleScrollable = () => ( const IconMenuExampleNested = () => (
} + iconButtonElement={} anchorOrigin={{horizontal: 'left', vertical: 'top'}} targetOrigin={{horizontal: 'left', vertical: 'top'}} > } + rightIcon={} menuItems={[ , , @@ -2754,7 +4648,7 @@ const IconMenuExampleNested = () => ( } + rightIcon={} menuItems={[ , , @@ -2763,7 +4657,7 @@ const IconMenuExampleNested = () => ( ]} /> - }/> + }/> @@ -4461,7 +6355,7 @@ class CustomIcon extends React.Component<{}, {stepIndex?: number}> { } + icon={} style={{color: red500}} > Create an ad group @@ -5085,7 +6979,7 @@ class ToolbarExamplesSimple extends React.Component<{}, {value?: number}> { - + } > From 23b64b59906de27f6a690f2f6904a682f385d7a1 Mon Sep 17 00:00:00 2001 From: Marvin Hagemeister Date: Wed, 16 Aug 2017 09:23:11 +0200 Subject: [PATCH 081/103] classnames: Fix error for falsy values with bind --- types/classnames/bind.d.ts | 6 ++---- types/classnames/classnames-tests.ts | 3 +++ 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/types/classnames/bind.d.ts b/types/classnames/bind.d.ts index b6a4242507..4af94d1835 100644 --- a/types/classnames/bind.d.ts +++ b/types/classnames/bind.d.ts @@ -1,5 +1,3 @@ -export type ClassNamesFn = ( - ...args: Array> -) => string; +import * as cn from "./index"; -export function bind(styles: Record): ClassNamesFn; +export function bind(styles: Record): typeof cn; diff --git a/types/classnames/classnames-tests.ts b/types/classnames/classnames-tests.ts index 14760dff0d..b2b8c9eba4 100644 --- a/types/classnames/classnames-tests.ts +++ b/types/classnames/classnames-tests.ts @@ -35,3 +35,6 @@ const styles = { const cx = cn.bind(styles); const className = cx('foo', ['bar'], { baz: true }); // => "abc def xyz" + +// falsey values are just ignored +cx(null, 'bar', undefined, 0, 1, { baz: null }, ''); // => 'bar 1' From d6c79a74444fd6fee9daf162899c37b5e2855f19 Mon Sep 17 00:00:00 2001 From: Andy Hanson Date: Thu, 17 Aug 2017 09:20:59 -0700 Subject: [PATCH 082/103] msgpack: Fix callback type --- types/msgpack/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/msgpack/index.d.ts b/types/msgpack/index.d.ts index 9d318641ae..5bd6182366 100644 --- a/types/msgpack/index.d.ts +++ b/types/msgpack/index.d.ts @@ -72,7 +72,7 @@ declare namespace msgpack { /** * @param data string or ByteArray */ - (data: any, option: MsgPackDownloadCallback, result: MsgPackCallbackResult): void; + (data: any, option: MsgPackDownloadOption, result: MsgPackCallbackResult): void; } interface MsgPackCallbackResult { From b6703bc47da56cae15d847817d1c2cbf19e561cb Mon Sep 17 00:00:00 2001 From: Andy Hanson Date: Thu, 17 Aug 2017 09:30:04 -0700 Subject: [PATCH 083/103] lory.js: Fix compile errors --- types/lory.js/index.d.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/types/lory.js/index.d.ts b/types/lory.js/index.d.ts index 6da87b70b8..9f39f9bf30 100644 --- a/types/lory.js/index.d.ts +++ b/types/lory.js/index.d.ts @@ -123,30 +123,30 @@ interface LoryOptions { /** * executed before initialisation (first in setup function) */ - beforeInit?: () => T; + beforeInit?(): any; /** * executed after initialisation (end of setup function) */ - afterInit?: () => T; + afterInit?(): any; /** * executed on click of prev controls (prev function) */ - beforePrev?: () => T; + beforePrev?(): any; /** * executed on click of next controls (next function) */ - beforeNext?: () => T; + beforeNext?(): any; /** * executed on touch attempt (touchstart) */ - beforeTouch?: () => T; + beforeTouch?(): any; /** * executed on every resize event */ - beforeResize?: () => T; + beforeResize?(): any; } From 00474c0f558a89b66eb839deb6f39823a7356401 Mon Sep 17 00:00:00 2001 From: Andy Date: Thu, 17 Aug 2017 10:14:18 -0700 Subject: [PATCH 084/103] node-dir: Allow to omit options from `readFilesStream` (#19073) --- types/node-dir/index.d.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/types/node-dir/index.d.ts b/types/node-dir/index.d.ts index 1e98aabff1..706a3b3c83 100644 --- a/types/node-dir/index.d.ts +++ b/types/node-dir/index.d.ts @@ -63,6 +63,7 @@ export function readFiles(dir: string, fileCallback: FileCallback, finishedCallb export function readFiles(dir: string, fileCallback: FileNamedCallback, finishedCallback?: FinishedCallback): void; export function readFiles(dir: string, options: Options, fileCallback: FileCallback, finishedCallback?: FinishedCallback): void; export function readFiles(dir: string, options: Options, fileCallback: FileNamedCallback, finishedCallback?: FinishedCallback): void; +export function readFilesStream(dir: string, streamCallback: StreamCallback, finishedCallback?: FinishedCallback): void; export function readFilesStream(dir: string, options: Options, streamCallback: StreamCallback, finishedCallback?: FinishedCallback): void; export function files(dir: string, callback: (error: any, files: string[]) => void): void; export function subdirs(dir: string, callback: (error: any, subdirs: string[]) => void): void; From 35ac1a263e34d1cbcb8c1a24a70051b535b768c3 Mon Sep 17 00:00:00 2001 From: Anthony Messerschmidt Date: Thu, 17 Aug 2017 12:16:32 -0500 Subject: [PATCH 085/103] Added support for the sessionId parameter on the listArchives call. --- types/opentok/index.d.ts | 2 ++ types/opentok/opentok-tests.ts | 1 + 2 files changed, 3 insertions(+) diff --git a/types/opentok/index.d.ts b/types/opentok/index.d.ts index d41e50b3e5..4667324d2e 100644 --- a/types/opentok/index.d.ts +++ b/types/opentok/index.d.ts @@ -1,6 +1,7 @@ // Type definitions for opentok v2.3.2 // Project: https://github.com/opentok/opentok-node // Definitions by: Seth Westphal +// Anthony Messerschmidt // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped declare module 'opentok' { @@ -61,6 +62,7 @@ declare module 'opentok' { export interface ListArchivesOptions { count?: number; offset?: number; + sessionId?: string; } } diff --git a/types/opentok/opentok-tests.ts b/types/opentok/opentok-tests.ts index c6cdfbca66..e1df18c6ea 100644 --- a/types/opentok/opentok-tests.ts +++ b/types/opentok/opentok-tests.ts @@ -51,6 +51,7 @@ client.deleteArchive('ARCHIVE_ID', (err: Error) => { const listArchivesOptions: OpenTok.ListArchivesOptions = { count: 10, offset: 5, + sessionId: '9_JY17LWC6LeKsGQ2-DXQlBac32PLwRSI7TV0FKOIDEX0PsmejJOGhrRtAW3PWABpEW3C-cp', } client.listArchives(listArchivesOptions, (err: Error, archives: OpenTok.Archive[], totalCount: number) => { From 9a94ceb5cd148bc9d608dc782a9b9213f2a2d073 Mon Sep 17 00:00:00 2001 From: Matt Bishop Date: Tue, 15 Aug 2017 17:24:52 -0700 Subject: [PATCH 086/103] Add type definition for js.spec --- types/js.spec/index.d.ts | 330 +++++++++++++++++++++++++++++++++ types/js.spec/js.spec-tests.ts | 87 +++++++++ types/js.spec/tsconfig.json | 20 ++ types/js.spec/tslint.json | 1 + 4 files changed, 438 insertions(+) create mode 100644 types/js.spec/index.d.ts create mode 100644 types/js.spec/js.spec-tests.ts create mode 100644 types/js.spec/tsconfig.json create mode 100644 types/js.spec/tslint.json diff --git a/types/js.spec/index.d.ts b/types/js.spec/index.d.ts new file mode 100644 index 0000000000..b33a0fd475 --- /dev/null +++ b/types/js.spec/index.d.ts @@ -0,0 +1,330 @@ +// Type definitions for js.spec 1.0 +// Project: http://js-spec.online +// Definitions by: Matt Bishop +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.2 + +/** + * A Spec provides a predicate that can test a value for conformance. + */ +export interface Spec { + /** + * The name of the spec, displayed in explain() results. + */ + readonly name: string; + + /** + * Data necessary to check values for conformity. + */ + readonly options: object; + + /** + * Returns the conformed value to this spec. + * @param value the value to test for conformance + * @returns {symbol.invalid} if the value does not conform to the spec, or the value if it does. + */ + conform(value: any): any; + + /** + * Explain why a value does not conform to this spec. + * @param value the value to examine + * @returns {Problem[]} list of problems or null if none + */ + explain(value: any): Problem[]; +} + +/** + * A Spec with a boolean conform function. Test the value and return true if it conforms. + */ +export interface Predicate extends Spec { + (value: any): boolean; +} + +/** + * An explanation of why a part of a value does not conform to a spec. + */ +export interface Problem { + /** + * The path to the value. + */ + readonly path: string[]; + + /** + * Pth to he Spec that applies. + */ + readonly via: string[]; + + /** + * The value associated with the problem. + */ + readonly value: any; + + /** + * A predicate function to test new values for conformance. + */ + readonly predicate: Predicate; +} + +/** + * Given a Spec, tests the value for confomrance. If it passes, then returns true. + * @param {Spec} spec the spec to test with + * @param value the value to test + * @returns {boolean} true if valid + */ +export function valid(spec: Spec, value: any): boolean; + +/** + * Returns the conformed value to this spec. + * @param {Spec} spec the spec to test with + * @param value the value to test + * @returns {symbol.invalid} if the value does not conform to the spec, or the conformed value if it does. + */ +export function conform(spec: Spec, value: any): any; + +/** + * Like explain(), but returns Problems array. + * @param {Spec} spec the spec to test with + * @param value the value to test + * @returns {Problem[]} list of problems or null if none + */ +export function explainData(spec: Spec, value: any): Problem[]; + +/** + * Prints, to the console, reasons why the value did not conform to this spec. + * @param {Spec} spec the spec to test with + * @param value the value to test + */ +export function explain(spec: Spec, value: any): void; + +/** + * Returns a multiline string with reasons why the value did not conform to this spec. + * @param {Spec} spec the spec to test with + * @param value the value to test + */ +export function explainStr(spec: Spec, value: any): string; + +/** + * Tests if a value conforms to a spec, and if not, throws an Error. + * @param {Spec} spec the spec to test with + * @param value the value to test + */ +export function assert(spec: Spec, value: any): void; + +export namespace symbol { + /** + * Returned by conform() to indicate a value does not conform to a spec. + */ + const invalid: symbol; + + /** + * Used as an option in collection() to specify the size of a collection. + */ + const count: symbol; + + /** + * Used as an option in collection() to specify the maximum size of a collection. + */ + const maxCount: symbol; + + /** + * Used as an option in collection() to specify the minimum size of a collection. + */ + const minCount: symbol; + + /** + * Used as an option in map() to specify a key spec that is optional. + */ + const optional: symbol; +} + +export namespace spec { + /** + * Predicate function definition to describe non-spec predicate functions. + */ + type PredFn = (value: any) => boolean; + + /** + * Defins an input to a spec. Can be a Spec instance or a predicate function. + */ + type SpecInput = PredFn | Spec; + + /** + * Data must conform to every provided spec. + * @param {string} name the name of the spec + * @param {spec.SpecInput} specs the array of specs that must all match + * @returns {Spec} the constructed Spec + */ + function and(name: string, ...specs: SpecInput[]): Spec; + + /** + * Data must conform to at least one provided spec. The order in which they are validated is not defined. + * The conform() function returns matched branches along with input data. + * @param {string} name the name of the spec + * @param {object} alts map of alternative keys with their respective SpecInputs + * @returns {Spec} the constructed Spec + */ + function or(name: string, alts: {[key: string]: SpecInput}): Spec; + + /** + * By default no spec accepts null or undefined as valid input. Wrap your spec in nilable() to change this. + * @param {string} name the name of the spec + * @param {spec.SpecInput} spec the spec to apply if a value is non-nil + * @returns {Spec} the constructed spec + */ + function nilable(name: string, spec: SpecInput): Spec; + + // Cannot specify 'symbol' as a key type: https://github.com/Microsoft/TypeScript/issues/7660 + /** + * Used to define collections with items of the same type. Works with Arrays and Sets. + * Accepts an option map as optional second parameter. + * NOTE: the keys in this option map are symbols but Typescript will not allow 'symbol' to be specified + * as a key type but the TS compiler will allow it. + * @param {string} name the name of the spec + * @param {spec.SpecInput} spec the spec to apply to values in the collection + * @param {object} options symbol.count or symbol.minCount / symbol.maxCount + * @returns {Spec} + */ + function collection(name: string, spec: SpecInput, options?: {[option: string]: number}): Spec; + + /** + * Used to define collections with items of possibly different types. Works only with arrays as order is important. + * @param {string} name the name of the spec + * @param {spec.SpecInput} specs the specs to test the value array + * @returns {Spec} the constructed spec + */ + function tuple(name: string, ...specs: SpecInput[]): Spec; + + /** + * Used to define the shape of maps. By default all keys are required. Use {symbol.optional} key to define + * optional keys. Shape map can contain nested key specs. + * @param {string} name the name of the spec + * @param {Object} shape the shape map with keys and associated specs + * @returns {Spec} the constructed spec + */ + function map(name: string, shape: object): Spec; + + /** + * Used to define "one out of these values", like an enum. (It's called oneOf because enum is a reserved word.) + * @param {string} name the name of the spec + * @param values the emum of values + * @returns {Spec} the constructed spec + */ + function oneOf(name: string, ...values: any[]): Spec; + + // Predicates + /** + * Returns true if data is an integer. + */ + const int: Predicate; + + /** + * Returns true if data is an integer. + */ + const integer: Predicate; + + /** + * Returns true if data is a finite number. + */ + const finite: Predicate; + + /** + * Returns true if data is a number (can be double or integer). + */ + const number: Predicate; + + /** + * Returns true if data is an odd number. + */ + const odd: Predicate; + + /** + * Returns true if data is an even number. + */ + const even: Predicate; + + /** + * Returns true if data is a number greater than zero. + */ + const positive: Predicate; + + /** + * Returns true if data is a number smaller than zero. + */ + const negative: Predicate; + + /** + * Returns true if data is the number zero. + * Why: To easily construct specs for >= 0. + */ + const zero: Predicate; + + /** + * Returns true if data is a string. + */ + const str: Predicate; + + /** + * Returns true if data is a string. + */ + const string: Predicate; + + /** + * Returns true if data is a function. + */ + const fn: Predicate; + + /** + * Returns true if data is a Symbol. + */ + const sym: Predicate; + + /** + * Returns true if data is a Symbol. + */ + const symbol: Predicate; + + /** + * Returns true if data is null or undefined. + */ + const nil: Predicate; + + /** + * Returns true if data is a boolean. + */ + const bool: Predicate; + + /** + * Returns true if data is a boolean. + */ + const boolean: Predicate; + + /** + * Returns true if data is a Date. + */ + const date: Predicate; + + /** + * Returns true if data is a plain object. + */ + const obj: Predicate; + + /** + * Returns true if data is a plain object. + */ + const object: Predicate; + + /** + * Returns true if data is an Array. + */ + const array: Predicate; + + /** + * Returns true if data is a Set. + */ + const set: Predicate; + + /** + * Returns true if data is an Array or Set. + */ + const coll: Predicate; +} diff --git a/types/js.spec/js.spec-tests.ts b/types/js.spec/js.spec-tests.ts new file mode 100644 index 0000000000..8bb9611e87 --- /dev/null +++ b/types/js.spec/js.spec-tests.ts @@ -0,0 +1,87 @@ +import * as S from "js.spec"; + +const spec: S.Spec = S.spec.bool; +const c: symbol = spec.conform("water"); +const waterProblems: S.Problem[] = spec.explain("water"); +const name: string = spec.name; +const options: object = spec.options; + +const isValid: boolean = S.valid(S.spec.boolean, true); + +const result = S.conform(S.spec.map("dancing", {field: S.spec.string}), "not a map"); + +const problems: S.Problem[] = S.explainData(S.spec.int, "not a number"); + +const {path, via, value, predicate}: {path: string[], via: string[], value: any, predicate: S.Predicate} = problems[0]; + +const problemStr: string = S.explainStr(S.spec.even, 3); + +// $ExpectType void +S.explain(S.spec.positive, true); + +// $ExpectType void +S.assert(S.spec.string, "things"); + +const symbols: symbol[] = [S.symbol.count, S.symbol.invalid, S.symbol.maxCount, S.symbol.minCount, S.symbol.optional]; + +const orSpec: S.Spec = S.spec.or("or test", { ball: (value: any) => value === "whale", fish: S.spec.number }); + +const nilableSpec: S.Spec = S.spec.nilable("nilable test", (value: any) => false); + +const collectionSpec: S.Spec = S.spec.collection("collection test", S.spec.positive); + +const collection2Spec: S.Spec = S.spec.collection("collection test", S.spec.string, {[S.symbol.count]: 3}); + +const tupleSpec: S.Spec = S.spec.tuple("tuple test", S.spec.bool, S.spec.date, S.spec.array); + +const mapSpec: S.Spec = S.spec.map("map test", { email: S.spec.string, [S.symbol.optional]: { name: S.spec.string } }); + +const oneOfSpec: S.Spec = S.spec.oneOf("oneOf test", "a", "b", "c"); + +// Predicates + +const intPred: S.Predicate = S.spec.int; + +const integerPred: S.Predicate = S.spec.integer; + +const finitePred: S.Predicate = S.spec.finite; + +const numberPred: S.Predicate = S.spec.number; + +const oddPred: S.Predicate = S.spec.odd; + +const evenPred: S.Predicate = S.spec.even; + +const positivePred: S.Predicate = S.spec.positive; + +const negativePred: S.Predicate = S.spec.negative; + +const zeroPred: S.Predicate = S.spec.zero; + +const strPred: S.Predicate = S.spec.str; + +const stringPred: S.Predicate = S.spec.string; + +const fnPred: S.Predicate = S.spec.fn; + +const symPred: S.Predicate = S.spec.sym; + +const symbolPred: S.Predicate = S.spec.symbol; + +const nilPred: S.Predicate = S.spec.nil; + +const boolPred: S.Predicate = S.spec.bool; + +const booleanPred: S.Predicate = S.spec.boolean; + +const datePred: S.Predicate = S.spec.date; + +const objPred: S.Predicate = S.spec.obj; + +const objectPred: S.Predicate = S.spec.object; + +const arrayPred: S.Predicate = S.spec.array; + +const setPred: S.Predicate = S.spec.set; + +const collPred: S.Predicate = S.spec.coll; diff --git a/types/js.spec/tsconfig.json b/types/js.spec/tsconfig.json new file mode 100644 index 0000000000..b3afe65da2 --- /dev/null +++ b/types/js.spec/tsconfig.json @@ -0,0 +1,20 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": ["es6"], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "js.spec-tests.ts" + ] +} diff --git a/types/js.spec/tslint.json b/types/js.spec/tslint.json new file mode 100644 index 0000000000..2750cc0197 --- /dev/null +++ b/types/js.spec/tslint.json @@ -0,0 +1 @@ +{ "extends": "dtslint/dt.json" } \ No newline at end of file From 00f45a01bffde6436d7cac1f014638503c6c3722 Mon Sep 17 00:00:00 2001 From: Andy Date: Thu, 17 Aug 2017 10:24:42 -0700 Subject: [PATCH 087/103] twix: Allow "LT" as a format (#19065) * twix: Allow "LT" as a format * Change to string --- types/twix/index.d.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/types/twix/index.d.ts b/types/twix/index.d.ts index 7c4881f9b5..8ca402e8e6 100644 --- a/types/twix/index.d.ts +++ b/types/twix/index.d.ts @@ -76,8 +76,7 @@ export interface Twix { simpleFormat(format: string): string; simpleFormat(format: string, options: TwixSimpleFormatOptions): string; - format(): string; - format(options: TwixFormatOptions): string; + format(options?: TwixFormatOptions | string): string; asDuration(period: string): Duration; isValid(): boolean; From d4df9bedaf9b13a0dcb8d78b122587479d7be993 Mon Sep 17 00:00:00 2001 From: Martin Donkersloot Date: Thu, 17 Aug 2017 20:12:28 +0200 Subject: [PATCH 088/103] Added new functions, narrowed down and updated parameters of existing functions. --- types/node-telegram-bot-api/index.d.ts | 34 +++++++++++++++++++------- 1 file changed, 25 insertions(+), 9 deletions(-) diff --git a/types/node-telegram-bot-api/index.d.ts b/types/node-telegram-bot-api/index.d.ts index a727e6f3c4..6eeeabe3f2 100644 --- a/types/node-telegram-bot-api/index.d.ts +++ b/types/node-telegram-bot-api/index.d.ts @@ -6,6 +6,7 @@ /// import { EventEmitter } from 'events'; +import { Stream } from "stream"; declare class TelegramBot extends EventEmitter { constructor(token: string, opts?: any); @@ -26,27 +27,38 @@ declare class TelegramBot extends EventEmitter { sendMessage(chatId: number | string, text: string, options?: any): Promise; answerInlineQuery(inlineQueryId: string, results: any[], options?: any): Promise; forwardMessage(chatId: number | string, fromChatId: number | string, messageId: number | string, options?: any): Promise; - sendPhoto(chatId: number | string, photo: any, options?: any): Promise; - sendAudio(chatId: number | string, audio: any, options?: any): Promise; - sendDocument(chatId: number | string, doc: any, options?: any, fileOpts?: any): Promise; - sendSticker(chatId: number | string, sticker: any, options?: any): Promise; - sendVideo(chatId: number | string, video: any, options?: any): Promise; - sendVoice(chatId: number | string, voice: any, options?: any): Promise; + sendPhoto(chatId: number | string, photo: string | Stream | Buffer, options?: any): Promise; + sendAudio(chatId: number | string, audio: string | Stream | Buffer, options?: any): Promise; + sendDocument(chatId: number | string, doc: string | Stream | Buffer, options?: any, fileOpts?: any): Promise; + sendSticker(chatId: number | string, sticker: string | Stream | Buffer, options?: any): Promise; + sendVideo(chatId: number | string, video: string | Stream | Buffer, options?: any): Promise; + sendVideoNote(chatId: number | string, videoNote: string | Stream | Buffer, options?: any): Promise; + sendVoice(chatId: number | string, voice: string | Stream | Buffer, options?: any): Promise; sendChatAction(chatId: number | string, action: string): Promise; kickChatMember(chatId: number | string, userId: string): Promise; unbanChatMember(chatId: number | string, userId: string): Promise; - answerCallbackQuery(callbackQueryId: number | string, text: string, showAlert: boolean, options?: any): Promise; + restrictChatMember(chatId: number | string, userId: string, options?: any): Promise; + promoteChatMember(chatId: number | string, userId: string, options?: any): Promise; + exportChatInviteLink(chatId: number | string): Promise; + sendChatPhoto(chatId: number | string, photo: string | Stream | Buffer): Promise; + deleteChatPhoto(chatId: number | string): Promise; + setChatTitle(chatId: number | string, title: string): Promise; + setChatDescription(chatId: number | string, description: string): Promise; + pinChatMessage(chatId: number | string, messageId: string): Promise; + unpinChatMessage(chatId: number | string): Promise; + answerCallbackQuery(options?: any): Promise; editMessageText(text: string, options?: any): Promise; editMessageCaption(caption: string, options?: any): Promise; editMessageReplyMarkup(replyMarkup: any, options?: any): Promise; - getUserProfilePhotos(userId: string, options?: any): Promise; + getUserProfilePhotos(userId: number | string, options?: any): Promise; sendLocation(chatId: number | string, latitude: number, longitude: number, options?: any): Promise; sendVenue(chatId: number | string, latitude: number, longitude: number, title: string, address: string, options?: any): Promise; sendContact(chatId: number | string, phoneNumber: string, firstName: string, options?: any): Promise; getFile(fileId: string): Promise; getFileLink(fileId: string): Promise; downloadFile(fileId: string, downloadDir: string): Promise; - onText(regexp: any, callback: ((msg: any, match: any[]) => void)): void; + onText(regexp: RegExp, callback: ((msg: any, match: any[]) => void)): void; + removeTextListener(regexp: RegExp): any; onReplyToMessage(chatId: number | string, messageId: number | string, callback: ((msg: any) => void)): number; removeReplyListener(replyListenerId: number): any; getChat(chatId: number | string): Promise; @@ -57,6 +69,10 @@ declare class TelegramBot extends EventEmitter { sendGame(chatId: number | string, gameShortName: string, options?: any): Promise; setGameScore(userId: string, score: number, options?: any): Promise; getGameHighScores(userId: string, options?: any): Promise; + deleteMessage(chatId: string, messageId: string, options?: any): Promise; + sendInvoice(chatId: number | string, title: string, description: string, payload: string, providerToken: string, startParameter: string, currency: string, prices: any[], options?: any): Promise; + answerShippingQuery(shippingQueryId: string, ok: boolean, options?: any): Promise; + answerPreCheckoutQuery(preCheckoutQueryId: string, ok: boolean, options?: any): Promise; } export = TelegramBot; From 9324608ea446195c319abd774fdf655ac8af474a Mon Sep 17 00:00:00 2001 From: Martin Donkersloot Date: Thu, 17 Aug 2017 20:24:30 +0200 Subject: [PATCH 089/103] Updated tests. --- types/node-telegram-bot-api/index.d.ts | 2 +- .../node-telegram-bot-api-tests.ts | 17 ++++++++++++++++- 2 files changed, 17 insertions(+), 2 deletions(-) diff --git a/types/node-telegram-bot-api/index.d.ts b/types/node-telegram-bot-api/index.d.ts index 6eeeabe3f2..f163f485be 100644 --- a/types/node-telegram-bot-api/index.d.ts +++ b/types/node-telegram-bot-api/index.d.ts @@ -69,7 +69,7 @@ declare class TelegramBot extends EventEmitter { sendGame(chatId: number | string, gameShortName: string, options?: any): Promise; setGameScore(userId: string, score: number, options?: any): Promise; getGameHighScores(userId: string, options?: any): Promise; - deleteMessage(chatId: string, messageId: string, options?: any): Promise; + deleteMessage(chatId: number | string, messageId: string, options?: any): Promise; sendInvoice(chatId: number | string, title: string, description: string, payload: string, providerToken: string, startParameter: string, currency: string, prices: any[], options?: any): Promise; answerShippingQuery(shippingQueryId: string, ok: boolean, options?: any): Promise; answerPreCheckoutQuery(preCheckoutQueryId: string, ok: boolean, options?: any): Promise; diff --git a/types/node-telegram-bot-api/node-telegram-bot-api-tests.ts b/types/node-telegram-bot-api/node-telegram-bot-api-tests.ts index 80b44216fb..70482a7b38 100644 --- a/types/node-telegram-bot-api/node-telegram-bot-api-tests.ts +++ b/types/node-telegram-bot-api/node-telegram-bot-api-tests.ts @@ -23,11 +23,21 @@ MyTelegramBot.sendAudio(1234, "audio/path", { foo: "bar" }); MyTelegramBot.sendDocument(1234, "doc/path", { foo: "bar" }, { fileOption: true }); MyTelegramBot.sendSticker(1234, "sticker/path", { foo: "bar" }); MyTelegramBot.sendVideo(1234, "video/path", { foo: "bar" }); +MyTelegramBot.sendVideoNote(1234, "video/path", { foo: "bar" }); MyTelegramBot.sendVoice(1234, "voice/path", { foo: "bar" }); MyTelegramBot.sendChatAction(1234, "ACTION!"); MyTelegramBot.kickChatMember(1234, "myUserID"); MyTelegramBot.unbanChatMember(1234, "myUserID"); -MyTelegramBot.answerCallbackQuery("myCallbackQueryID", "test-text", false, { foo: "bar" }); +MyTelegramBot.restrictChatMember(1234, 'myUserID', { foo: "bar" }); +MyTelegramBot.promoteChatMember(1234, 'myUserID', { foo: "bar" }); +MyTelegramBot.exportChatInviteLink(1234); +MyTelegramBot.sendChatPhoto(1234, "My/File/ID"); +MyTelegramBot.deleteChatPhoto(1234); +MyTelegramBot.setChatTitle(1234, 'Chat Title'); +MyTelegramBot.setChatDescription(1234, 'Chat Description'); +MyTelegramBot.pinChatMessage(1234, 'Pinned Message'); +MyTelegramBot.unpinChatMessage(1234); +MyTelegramBot.answerCallbackQuery({ foo: "bar" }); MyTelegramBot.editMessageText("test-text", { foo: "bar" }); MyTelegramBot.editMessageCaption("My Witty Caption", { foo: "bar" }); MyTelegramBot.editMessageReplyMarkup({ replyMarkup: "something" }, { foo: "bar" }); @@ -39,6 +49,7 @@ MyTelegramBot.getFile("My/File/ID"); MyTelegramBot.getFileLink("My/File/ID"); MyTelegramBot.downloadFile("My/File/ID", "mydownloaddir/"); MyTelegramBot.onText(/regex/, (msg, match) => { }); +MyTelegramBot.removeTextListener(/regex/); MyTelegramBot.onReplyToMessage(1234, "mymessageID", (msg) => { }); MyTelegramBot.removeReplyListener(5466); MyTelegramBot.getChat(1234); @@ -49,3 +60,7 @@ MyTelegramBot.leaveChat(1234); MyTelegramBot.sendGame(1234, "MygameName", { foo: "bar" }); MyTelegramBot.setGameScore("myUserID", 99, { foo: "bar" }); MyTelegramBot.getGameHighScores("myUserID", { foo: "bar" }); +MyTelegramBot.deleteMessage(1234, 'mymessageID', { foo: "bar" }); +MyTelegramBot.sendInvoice(1234, 'Invoice Title', 'Invoice Description', 'Invoice Payload', 'Providertoken', 'Startparameter', 'Currency', [1, 2, 4], { foo: "bar" }); +MyTelegramBot.answerShippingQuery('shippingQueryId', true, { foo: "bar" }); +MyTelegramBot.answerPreCheckoutQuery('preCheckoutQueryId', true, { foo: "bar" }); From d6fc15c6240d88e1cee1555edad57a7a3a1f58c3 Mon Sep 17 00:00:00 2001 From: Martin Donkersloot Date: Thu, 17 Aug 2017 20:32:36 +0200 Subject: [PATCH 090/103] Updated version and contributors, made it lint-compliant. --- types/node-telegram-bot-api/index.d.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/types/node-telegram-bot-api/index.d.ts b/types/node-telegram-bot-api/index.d.ts index f163f485be..2b67bac385 100644 --- a/types/node-telegram-bot-api/index.d.ts +++ b/types/node-telegram-bot-api/index.d.ts @@ -1,6 +1,7 @@ -// Type definitions for node-telegram-bot-api 0.27 +// Type definitions for node-telegram-bot-api 0.28.0 // Project: https://github.com/yagop/node-telegram-bot-api // Definitions by: Alex Muench +// Agadar // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.1 /// @@ -70,7 +71,8 @@ declare class TelegramBot extends EventEmitter { setGameScore(userId: string, score: number, options?: any): Promise; getGameHighScores(userId: string, options?: any): Promise; deleteMessage(chatId: number | string, messageId: string, options?: any): Promise; - sendInvoice(chatId: number | string, title: string, description: string, payload: string, providerToken: string, startParameter: string, currency: string, prices: any[], options?: any): Promise; + sendInvoice(chatId: number | string, title: string, description: string, payload: string, providerToken: string, startParameter: string, + currency: string, prices: any[], options?: any): Promise; answerShippingQuery(shippingQueryId: string, ok: boolean, options?: any): Promise; answerPreCheckoutQuery(preCheckoutQueryId: string, ok: boolean, options?: any): Promise; } From a478257cfb4be114093e6c7a1e2b4990bad64ea6 Mon Sep 17 00:00:00 2001 From: Andy Date: Thu, 17 Aug 2017 11:37:50 -0700 Subject: [PATCH 091/103] google.visualization: Allow `legend: "none"` (#19089) --- .../google.visualization/google.visualization-tests.ts | 4 ++-- types/google.visualization/index.d.ts | 10 ++++------ 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/types/google.visualization/google.visualization-tests.ts b/types/google.visualization/google.visualization-tests.ts index 34999ccc3f..71cc0f80db 100644 --- a/types/google.visualization/google.visualization-tests.ts +++ b/types/google.visualization/google.visualization-tests.ts @@ -68,7 +68,7 @@ function test_scatterChart() { [ 6.5, 7] ]); - var options = { + var options: google.visualization.ScatterChartOptions = { title: 'Age vs. Weight comparison', hAxis: {title: 'Age', minValue: 0, maxValue: 15}, vAxis: {title: 'Weight', minValue: 0, maxValue: 15}, @@ -344,7 +344,7 @@ function test_candlestickChart() { // Treat first row as data as well. ], true); - var options = { + var options: google.visualization.CandlestickChartOptions = { legend:'none' }; diff --git a/types/google.visualization/index.d.ts b/types/google.visualization/index.d.ts index d5967384f1..a757e1d340 100644 --- a/types/google.visualization/index.d.ts +++ b/types/google.visualization/index.d.ts @@ -538,8 +538,7 @@ declare namespace google { // https://google-developers.appspot.com/chart/interactive/docs/gallery/scatterchart export class ScatterChart extends CoreChartBase { - draw(data: DataTable, options?: ScatterChartOptions): void; - draw(data: DataView, options?: ScatterChartOptions): void; + draw(data: DataTable | DataView, options?: ScatterChartOptions): void; } export interface ScatterChartOptions { @@ -560,7 +559,7 @@ declare namespace google { forceIFrame?: boolean; hAxis?: ChartAxis; height?: number; - legend?: ChartLegend; + legend?: ChartLegend | "none"; lineWidth?: number; pointSize?: number; selectionMode?: string; @@ -1085,8 +1084,7 @@ declare namespace google { // https://google-developers.appspot.com/chart/interactive/docs/gallery/candlestickchart export class CandlestickChart extends CoreChartBase { - draw(data: DataTable, options: CandlestickChartOptions): void; - draw(data: DataView, options: CandlestickChartOptions): void; + draw(data: DataTable | DataView, options: CandlestickChartOptions): void; } // https://google-developers.appspot.com/chart/interactive/docs/gallery/candlestickchart#Configuration_Options @@ -1105,7 +1103,7 @@ declare namespace google { fontName?: string; hAxis?: ChartAxis; height?: number; - legend?: ChartLegend; + legend?: ChartLegend | "none"; orientation?: string; reverseCategories?: boolean; selectionMode?: string // single / multiple From 8302e13a9ce7c8e052aa1e4febd5c215440ac09b Mon Sep 17 00:00:00 2001 From: Martin Donkersloot Date: Thu, 17 Aug 2017 20:45:55 +0200 Subject: [PATCH 092/103] Added and fixed node-cleanup typings. --- types/node-cleanup/index.d.ts | 17 +++++++++++++++++ types/node-cleanup/node-cleanup-tests.ts | 13 +++++++++++++ types/node-cleanup/tsconfig.json | 22 ++++++++++++++++++++++ types/node-cleanup/tslint.json | 1 + types/node-telegram-bot-api/index.d.ts | 2 +- 5 files changed, 54 insertions(+), 1 deletion(-) create mode 100644 types/node-cleanup/index.d.ts create mode 100644 types/node-cleanup/node-cleanup-tests.ts create mode 100644 types/node-cleanup/tsconfig.json create mode 100644 types/node-cleanup/tslint.json diff --git a/types/node-cleanup/index.d.ts b/types/node-cleanup/index.d.ts new file mode 100644 index 0000000000..103f0bc813 --- /dev/null +++ b/types/node-cleanup/index.d.ts @@ -0,0 +1,17 @@ +// Type definitions for node-cleanup 2.1 +// Project: https://github.com/jtlapp/node-cleanup +// Definitions by: Agadar +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +// Note that ES6 modules cannot directly export callable functions. +// This file should be imported using the CommonJS-style: +// import nodeCleanup = require('node-cleanup'); + +export = install; + +declare function install(cleanupHandler?: ((exitCode: number | null, signal: string | null) => boolean | undefined), + stderrMessages?: { ctrl_C: string; uncaughtException: string }): void; + +declare namespace install { + function uninstall(): void; +} diff --git a/types/node-cleanup/node-cleanup-tests.ts b/types/node-cleanup/node-cleanup-tests.ts new file mode 100644 index 0000000000..ec42821dff --- /dev/null +++ b/types/node-cleanup/node-cleanup-tests.ts @@ -0,0 +1,13 @@ +import nodeCleanup = require('node-cleanup'); + +function cleanupHandler(exitCode: number | null, signal: string | null): boolean | undefined { + return true; +} +const stderrMessages = { ctrl_C: 'ctrl_c', uncaughtException: 'UncaughtException' }; + +nodeCleanup(); +nodeCleanup(cleanupHandler); +nodeCleanup(cleanupHandler, undefined); +nodeCleanup(cleanupHandler, stderrMessages); +nodeCleanup(undefined, stderrMessages); +nodeCleanup.uninstall(); diff --git a/types/node-cleanup/tsconfig.json b/types/node-cleanup/tsconfig.json new file mode 100644 index 0000000000..c05b3b90bf --- /dev/null +++ b/types/node-cleanup/tsconfig.json @@ -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", + "node-cleanup-tests.ts" + ] +} diff --git a/types/node-cleanup/tslint.json b/types/node-cleanup/tslint.json new file mode 100644 index 0000000000..3db14f85ea --- /dev/null +++ b/types/node-cleanup/tslint.json @@ -0,0 +1 @@ +{ "extends": "dtslint/dt.json" } diff --git a/types/node-telegram-bot-api/index.d.ts b/types/node-telegram-bot-api/index.d.ts index 2b67bac385..60b46b137c 100644 --- a/types/node-telegram-bot-api/index.d.ts +++ b/types/node-telegram-bot-api/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for node-telegram-bot-api 0.28.0 +// Type definitions for node-telegram-bot-api 0.28 // Project: https://github.com/yagop/node-telegram-bot-api // Definitions by: Alex Muench // Agadar From bdeaabff24ac50064b41c5fa632a033223b1b960 Mon Sep 17 00:00:00 2001 From: Andy Date: Thu, 17 Aug 2017 13:32:23 -0700 Subject: [PATCH 093/103] auth0: Allow to omit params to `getUsers` (#19098) --- types/auth0/index.d.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/types/auth0/index.d.ts b/types/auth0/index.d.ts index 07a316268a..cb84c7a6bd 100644 --- a/types/auth0/index.d.ts +++ b/types/auth0/index.d.ts @@ -360,6 +360,7 @@ export class ManagementClient { // Users getUsers(params?: GetUsersData): Promise; + getUsers(cb: (err: Error, users: User[]) => void): void; getUsers(params?: GetUsersData, cb?: (err: Error, users: User[]) => void): void; getUser(params: ObjectWithId): Promise; From 3dfa2b2005b8f534b1e17d704e8f0ba1b42b90d5 Mon Sep 17 00:00:00 2001 From: Andy Date: Thu, 17 Aug 2017 14:43:58 -0700 Subject: [PATCH 094/103] gulp-watch: Allow to omit options object (#19087) --- types/gulp-watch/index.d.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/types/gulp-watch/index.d.ts b/types/gulp-watch/index.d.ts index 8b96e78c97..265ba53b97 100644 --- a/types/gulp-watch/index.d.ts +++ b/types/gulp-watch/index.d.ts @@ -22,6 +22,7 @@ interface IWatchStream extends NodeJS.ReadWriteStream { close(): NodeJS.ReadWriteStream; } +declare function watch(glob: string | Array, callback?: Function): IWatchStream; declare function watch(glob: string | Array, options?: IOptions, callback?: Function): IWatchStream; declare namespace watch { } export = watch; From 5d6c651a1a9f991cbc1f5a3f3097dcf9b64b68ec Mon Sep 17 00:00:00 2001 From: Andy Date: Thu, 17 Aug 2017 14:53:41 -0700 Subject: [PATCH 095/103] Apply stricter lint rules (#19063) --- .../activex-scripting-tests.ts | 28 +- types/activex-wia/activex-wia-tests.ts | 10 +- types/alertify/index.d.ts | 2 +- types/alexa-sdk/alexa-sdk-tests.ts | 4 +- types/algebra.js/algebra.js-tests.ts | 62 +- types/amplify/amplify-tests.ts | 36 +- types/amqplib/tslint.json | 4 +- .../angular-block-ui-tests.ts | 2 +- types/angular-block-ui/index.d.ts | 2 +- types/angular-cookies/index.d.ts | 2 +- types/angular-gridster/index.d.ts | 12 +- .../angular-material-tests.ts | 2 +- types/angular-material/index.d.ts | 56 +- types/angular-mocks/index.d.ts | 2 +- types/angular-oauth2/index.d.ts | 6 +- types/angular-pdfjs-viewer/index.d.ts | 2 +- .../angular-resource-tests.ts | 6 +- types/angular-resource/index.d.ts | 62 +- types/angular-sanitize/index.d.ts | 2 +- types/angular/angular-component-router.d.ts | 2 +- types/angular/angular-tests.ts | 27 +- types/angular/index.d.ts | 4 +- types/angularfire/index.d.ts | 2 +- types/applepayjs/applepayjs-tests.ts | 12 +- types/applepayjs/index.d.ts | 26 +- .../applicationinsights-js-tests.ts | 2 +- types/applicationinsights-js/tslint.json | 7 +- types/argparse/index.d.ts | 2 +- .../askmethat-rating-tests.ts | 6 +- types/auth0-lock/auth0-lock-tests.ts | 30 +- types/auto-sni/auto-sni-tests.ts | 2 +- .../babel-generator/babel-generator-tests.ts | 2 +- types/babel-traverse/babel-traverse-tests.ts | 6 +- types/babel-traverse/index.d.ts | 54 +- types/babel-types/babel-types-tests.ts | 6 +- types/babylon/babylon-tests.ts | 2 +- types/bagpipes/bagpipes-tests.ts | 8 +- .../baidumap-web-sdk-tests.ts | 6 +- types/batch-stream/index.d.ts | 2 +- types/bignumber.js/bignumber.js-tests.ts | 2 +- types/bleno/bleno-tests.ts | 2 +- types/bloomfilter/bloomfilter-tests.ts | 4 +- types/bookshelf/index.d.ts | 2 +- types/boom/index.d.ts | 8 +- types/boom/v3/index.d.ts | 4 +- .../bootstrap.v3.datetimepicker-tests.ts | 2 +- types/bootstrap.v3.datetimepicker/index.d.ts | 2 +- types/bounce.js/index.d.ts | 4 +- types/box2d/README.md | 2 +- types/box2d/index.d.ts | 2 +- types/browser-sync/index.d.ts | 2 +- types/bunyan/bunyan-tests.ts | 20 +- types/bytebuffer/index.d.ts | 4 +- types/c3/c3-tests.ts | 200 ++-- types/cassandra-driver/index.d.ts | 2 +- types/catbox/index.d.ts | 2 +- types/chai-arrays/chai-arrays-tests.ts | 2 +- types/chai-http/chai-http-tests.ts | 6 +- types/chart.js/chart.js-tests.ts | 2 +- types/color-convert/color-convert-tests.ts | 6 +- types/commander/index.d.ts | 2 +- types/commonmark/commonmark-tests.ts | 12 +- types/concat-stream/concat-stream-tests.ts | 2 +- .../continuation-local-storage-tests.ts | 44 +- types/convict/convict-tests.ts | 8 +- types/copy-webpack-plugin/index.d.ts | 2 +- .../cordova-plugin-inappbrowser-tests.ts | 2 +- .../core-decorators/core-decorators-tests.ts | 6 +- types/core-js/index.d.ts | 2 +- types/csvtojson/csvtojson-tests.ts | 2 +- types/d3-array/d3-array-tests.ts | 6 +- types/d3-brush/d3-brush-tests.ts | 1 - types/d3-collection/d3-collection-tests.ts | 31 +- types/d3-contour/d3-contour-tests.ts | 2 +- types/d3-dispatch/d3-dispatch-tests.ts | 6 +- types/d3-dsv/d3-dsv-tests.ts | 12 +- types/d3-ease/d3-ease-tests.ts | 2 +- types/d3-format/d3-format-tests.ts | 36 +- types/d3-format/index.d.ts | 12 +- types/d3-interpolate/d3-interpolate-tests.ts | 2 - types/d3-path/d3-path-tests.ts | 4 +- types/d3-polygon/d3-polygon-tests.ts | 4 +- types/d3-quadtree/d3-quadtree-tests.ts | 6 +- types/d3-request/d3-request-tests.ts | 238 ++--- types/d3-sankey/d3-sankey-tests.ts | 12 +- .../d3-scale-chromatic-tests.ts | 70 +- types/d3-shape/d3-shape-tests.ts | 10 +- types/d3-time-format/d3-time-format-tests.ts | 22 +- types/d3-time/d3-time-tests.ts | 8 +- types/d3-timer/d3-timer-tests.ts | 2 +- types/d3-voronoi/d3-voronoi-tests.ts | 7 +- types/datejs/index.d.ts | 2 +- types/datejs/sugarpak.d.ts | 2 +- types/db-migrate-pg/index.d.ts | 2 +- types/deasync/deasync-tests.ts | 2 +- types/debessmann/debessmann-tests.ts | 6 +- types/decimal.js/index.d.ts | 2 +- types/deep-equal/index.d.ts | 2 +- types/detect-port/detect-port-tests.ts | 2 +- types/dhtmlxgantt/index.d.ts | 2 +- types/dhtmlxscheduler/index.d.ts | 2 +- types/diff/diff-tests.ts | 23 +- types/dockerode/tslint.json | 8 +- types/dom-inputevent/tslint.json | 8 +- types/dustjs-linkedin/index.d.ts | 2 +- types/dwt/dwt-tests.ts | 20 +- types/ej.web.all/tslint.json | 4 + types/electron-settings/v2/tslint.json | 2 + types/ember/ember-tests.ts | 6 +- .../engine.io-client-tests.ts | 2 +- types/enhanced-resolve/index.d.ts | 2 +- types/es6-collections/index.d.ts | 2 +- types/es6-shim/index.d.ts | 2 +- types/esri-leaflet/esri-leaflet-tests.ts | 12 +- types/esri-leaflet/index.d.ts | 959 +++++++++--------- types/esri-leaflet/tslint.json | 13 +- types/ethjs-signer/ethjs-signer-tests.ts | 4 +- .../eureka-js-client-tests.ts | 2 +- types/execa/tslint.json | 9 +- .../express-enforces-ssl-tests.ts | 2 +- .../express-sanitized-tests.ts | 2 +- .../express-session/express-session-tests.ts | 4 +- types/express-session/index.d.ts | 2 +- types/file-type/index.d.ts | 4 +- types/fingerprintjs2/fingerprintjs2-tests.ts | 60 +- types/firebase/firebase-simplelogin.d.ts | 2 +- types/firebird/firebird-tests.ts | 16 +- types/firebird/index.d.ts | 2 +- types/firebird/tslint.json | 8 +- types/flatbuffers/flatbuffers-tests.ts | 12 +- types/fluent-ffmpeg/index.d.ts | 2 +- types/flux/test/Flux.ts | 6 +- types/flux/test/FluxUtils.tsx | 2 - types/fpsmeter/index.d.ts | 2 +- types/framebus/framebus-tests.ts | 6 +- .../fs-extra-promise-es6-tests.ts | 73 +- .../fs-extra-promise-tests.ts | 69 +- types/fs-promise/fs-promise-tests.ts | 12 +- types/fullcalendar/index.d.ts | 2 +- types/git-remote-origin-url/index.d.ts | 2 +- types/glob-stream/index.d.ts | 2 +- types/globby/globby-tests.ts | 6 +- .../google-map-react-tests.tsx | 2 +- .../google-protobuf/google-protobuf-tests.ts | 38 +- .../google.analytics-tests.ts | 2 +- .../test/CustomFilterComponent.tsx | 2 +- types/grunt/index.d.ts | 12 +- types/gulp-concat/index.d.ts | 2 +- types/gulp-connect/gulp-connect-tests.ts | 4 +- types/gulp-if/index.d.ts | 2 +- types/gulp-load-plugins/index.d.ts | 2 +- types/gulp-plumber/index.d.ts | 2 +- types/gulp-sort/index.d.ts | 2 +- types/gulp-task-listing/index.d.ts | 2 +- types/gulp/test/index.ts | 4 +- types/h2o2/index.d.ts | 2 +- types/hapi-auth-jwt2/index.d.ts | 4 +- types/hapi-decorators/index.d.ts | 2 +- types/hapi/index.d.ts | 2 +- types/hapi/v12/index.d.ts | 4 +- types/hapi/v15/index.d.ts | 4 +- types/hapi/v8/index.d.ts | 4 +- types/heredatalens/heredatalens-tests.ts | 2 +- types/heredatalens/index.d.ts | 356 +++---- types/heremaps/heremaps-tests.ts | 2 +- types/heremaps/index.d.ts | 2 +- types/highcharts/highcharts-more.d.ts | 2 +- types/highcharts/highstock.d.ts | 2 +- types/highcharts/index.d.ts | 4 +- types/highcharts/modules/boost.d.ts | 2 +- types/highcharts/modules/exporting.d.ts | 2 +- types/highcharts/modules/map/index.d.ts | 14 +- .../modules/no-data-to-display.d.ts | 2 +- .../highcharts/modules/offline-exporting.d.ts | 2 +- types/highcharts/test/index.ts | 12 +- types/highland/index.d.ts | 2 +- types/hiredis/index.d.ts | 2 +- types/i18n/i18n-tests.ts | 6 +- types/i18next/i18next-tests.ts | 4 +- types/iframe-resizer/iframe-resizer-tests.ts | 10 +- types/ignite-ui/tslint.json | 2 + types/imagemagick/index.d.ts | 2 +- types/images/images-tests.ts | 6 +- types/imgur-rest-api/index.d.ts | 2 +- types/inert/index.d.ts | 2 +- types/insight/index.d.ts | 2 +- types/integer/integer-tests.ts | 8 +- types/intercomjs/index.d.ts | 2 +- types/jasmine_dom_matchers/index.d.ts | 2 +- types/jest/jest-tests.ts | 48 +- types/jest/tslint.json | 8 +- types/jfs/index.d.ts | 2 +- types/joigoose/joigoose-tests.ts | 4 +- types/jointjs/index.d.ts | 2 +- types/jquery-deparam/index.d.ts | 2 +- types/jquery-param/index.d.ts | 2 +- .../jquery.validation-tests.ts | 4 +- types/jquery/jquery-tests.ts | 6 +- types/jquery/tslint.json | 11 +- types/js-quantities/js-quantities-tests.ts | 2 +- types/jsmockito/index.d.ts | 2 +- types/jsnox/jsnox-tests.ts | 10 +- types/json-rpc-ws/json-rpc-ws-tests.ts | 8 +- types/json2md/json2md-tests.ts | 2 +- types/jsonstream/index.d.ts | 2 +- types/jsuri/index.d.ts | 2 +- types/jui-core/jui-core-tests.ts | 4 +- types/jwt-decode/jwt-decode-tests.ts | 4 +- types/jwt-decode/v1/jwt-decode-tests.ts | 2 +- types/kii-cloud-sdk/index.d.ts | 8 +- .../knuddels-userapps-api-tests.ts | 2 +- types/knuddels-userapps-api/tslint.json | 6 +- types/koa-jwt/index.d.ts | 8 +- types/kue/index.d.ts | 4 +- types/leaflet-areaselect/index.d.ts | 2 +- types/leaflet-draw/index.d.ts | 28 +- types/leaflet-imageoverlay-rotated/index.d.ts | 14 +- .../leaflet.gridlayer.googlemutant/index.d.ts | 6 +- types/leaflet.locatecontrol/index.d.ts | 10 +- types/leaflet.pm/index.d.ts | 20 +- types/leaflet/index.d.ts | 4 +- types/leaflet/leaflet-tests.ts | 4 +- types/lestate/lestate-tests.ts | 6 +- types/leveldown/leveldown-tests.ts | 4 +- types/linq4js/index.d.ts | 59 +- types/loader-runner/index.d.ts | 4 +- types/lodash/lodash-tests.ts | 16 +- types/lodash/tslint.json | 3 + types/log4js/index.d.ts | 2 +- types/long/index.d.ts | 2 +- types/lovefield/index.d.ts | 10 +- types/lovefield/lovefield-tests.ts | 6 +- types/magicsuggest/index.d.ts | 4 +- types/mailcheck/index.d.ts | 2 +- types/mapbox/index.d.ts | 64 +- types/markerclustererplus/index.d.ts | 4 +- .../material-ui-pagination-tests.tsx | 2 +- types/material-ui-pagination/tslint.json | 9 +- types/material-ui/material-ui-tests.tsx | 119 +-- types/material-ui/tslint.json | 14 +- types/memory-cache/index.d.ts | 2 +- types/meteor-collection-hooks/tslint.json | 4 +- types/metismenu/index.d.ts | 2 +- types/micro/index.d.ts | 18 +- types/micro/micro-tests.ts | 44 +- types/micro/tslint.json | 8 +- types/microgears/index.d.ts | 2 +- types/mime/mime-tests.ts | 2 +- types/mithril/test/test-factory-component.ts | 2 +- types/mithril/tslint.json | 2 + types/mkdirp/index.d.ts | 2 +- types/moment-duration-format/package.json | 2 +- types/moment-timezone/tslint.json | 2 + types/monk/index.d.ts | 2 +- types/moo/moo-tests.ts | 4 +- types/moxios/moxios-tests.ts | 36 +- types/mu2/index.d.ts | 2 +- .../multer-gridfs-storage-tests.ts | 26 +- types/multer-s3/index.d.ts | 2 +- types/multer-s3/multer-s3-tests.ts | 8 +- types/multiplexjs/index.d.ts | 4 +- types/nanomsg/nanomsg-tests.ts | 2 +- types/nexpect/index.d.ts | 2 +- types/next/tslint.json | 5 +- types/ngstorage/ngstorage-tests.ts | 2 +- types/node-cache/tslint.json | 6 +- types/node-feedparser/index.d.ts | 2 +- types/node-schedule/node-schedule-tests.ts | 110 +- types/node-static/node-static-tests.ts | 8 +- types/node-vault/node-vault-tests.ts | 24 +- types/node/tslint.json | 7 +- types/node/v0/tslint.json | 9 +- types/node/v4/tslint.json | 9 +- types/node/v6/tslint.json | 11 +- types/node/v7/tslint.json | 10 +- types/nodegit/nodegit-tests.ts | 2 +- types/numjs/index.d.ts | 12 +- types/numjs/numjs-tests.ts | 3 +- types/nw.gui/nw.gui-tests.ts | 2 +- types/nw.js/index.d.ts | 4 +- types/nw.js/nw.js-tests.ts | 4 +- types/ofe/ofe-tests.ts | 2 +- types/on-finished/index.d.ts | 2 +- types/openfin/v15/openfin-tests.ts | 4 +- types/openfin/v15/tslint.json | 1 - types/openfin/v16/openfin-tests.ts | 28 +- types/orientjs/orientjs-tests.ts | 4 +- types/paper/index.d.ts | 2 +- .../parse-git-config-tests.ts | 12 +- types/parsimmon/tslint.json | 9 +- .../passport-client-cert-tests.ts | 4 +- .../passport-discord-tests.ts | 2 +- types/passport-saml/passport-saml-tests.ts | 6 +- types/passport-steam/passport-steam-tests.ts | 2 +- .../passport-unique-token-tests.ts | 2 +- types/paypal-rest-sdk/index.d.ts | 2 +- .../paypal-rest-sdk/paypal-rest-sdk-tests.ts | 24 +- types/pdfobject/index.d.ts | 2 +- types/pet-finder-api/pet-finder-api-tests.ts | 2 +- types/phonon/phonon-tests.ts | 2 +- types/pigpio/pigpio-tests.ts | 229 ++--- types/pixi.js/tslint.json | 6 + types/podcast/index.d.ts | 2 +- types/popper.js/popper.js-tests.ts | 23 +- .../pouchdb-adapter-fruitdown-tests.ts | 9 +- .../pouchdb-browser/pouchdb-browser-tests.ts | 9 +- types/pouchdb-core/index.d.ts | 8 +- types/pouchdb-core/pouchdb-core-tests.ts | 68 +- types/pouchdb-http/pouchdb-http-tests.ts | 11 +- types/pouchdb-mapreduce/index.d.ts | 2 +- .../pouchdb-mapreduce-tests.ts | 14 +- types/pouchdb-node/pouchdb-node-tests.ts | 10 +- types/pouchdb-upsert/pouchdb-upsert-tests.ts | 4 +- types/pouchdb/pouchdb-tests.ts | 2 +- types/progressbar/progressbar-tests.ts | 4 +- types/proj4leaflet/index.d.ts | 2 +- types/promise-dag/promise-dag-tests.ts | 2 +- types/promise-pg/index.d.ts | 2 +- .../promise.prototype.finally-tests.ts | 4 +- types/promised-temp/promised-temp-tests.ts | 5 +- types/prop-types/prop-types-tests.ts | 2 +- types/prosemirror-collab/index.d.ts | 4 +- .../prosemirror-collab-tests.ts | 6 +- .../prosemirror-commands-tests.ts | 4 +- types/prosemirror-history/index.d.ts | 4 +- .../prosemirror-history-tests.ts | 2 +- .../prosemirror-inputrules-tests.ts | 4 +- types/prosemirror-menu/index.d.ts | 7 +- .../prosemirror-menu-tests.ts | 2 +- .../prosemirror-model-tests.ts | 4 +- .../prosemirror-transform-tests.ts | 2 +- .../prosemirror-view-tests.ts | 2 +- types/q/index.d.ts | 2 +- types/q/q-tests.ts | 21 +- types/q/tslint.json | 2 + types/qlik-engineapi/tslint.json | 8 +- types/ramda/ramda-tests.ts | 414 ++++---- types/raty/index.d.ts | 2 +- types/react-app/index.d.ts | 8 +- .../react-autosuggest-tests.tsx | 3 +- types/react-burger-menu/index.d.ts | 2 +- .../react-burger-menu-tests.tsx | 2 +- types/react-chartjs-2/test/randomizedLine.tsx | 12 +- types/react-datepicker/package.json | 2 +- types/react-dom/react-dom-tests.ts | 10 +- types/react-dom/test-utils/index.d.ts | 4 +- types/react-fa/index.d.ts | 2 +- .../react-facebook-login-tests.tsx | 3 +- types/react-ga/react-ga-tests.ts | 4 +- types/react-lazyload/react-lazyload-tests.tsx | 2 +- types/react-leaflet/react-leaflet-tests.tsx | 12 +- types/react-leaflet/tslint.json | 8 +- types/react-list/index.d.ts | 2 +- types/react-loadable/test/index.tsx | 2 +- .../react-native-fetch-blob-tests.ts | 14 +- types/react-native-goby/index.d.ts | 2 +- .../react-native-keep-awake-tests.tsx | 4 +- types/react-native-modalbox/index.d.ts | 2 +- .../react-native-snap-carousel-tests.tsx | 2 +- types/react-native-svg-uri/index.d.ts | 2 +- .../react-native-vector-icons-tests.tsx | 2 +- types/react-native/test/animated.tsx | 2 +- types/react-native/test/index.tsx | 8 +- types/react-native/tslint.json | 1 + .../react-navigation-tests.tsx | 6 +- types/react-onclickoutside/tslint.json | 6 +- types/react-onsenui/index.d.ts | 12 +- types/react-onsenui/react-onsenui-tests.tsx | 2 +- .../react-router-native-tests.tsx | 6 +- types/react-router-redux/v3/index.d.ts | 2 +- types/react-router-redux/v4/index.d.ts | 2 +- types/react-router/v3/tslint.json | 8 +- types/react-swipe/index.d.ts | 2 +- types/react-swipe/react-swipe-tests.tsx | 9 +- types/react-tag-input/index.d.ts | 5 +- .../react-tag-input/react-tag-input-tests.tsx | 4 +- types/react-tagcloud/react-tagcloud-tests.tsx | 2 +- types/react-touch/index.d.ts | 10 +- types/react-touch/react-touch-tests.tsx | 8 +- types/react-virtualized/tslint.json | 2 + types/react/test/index.ts | 22 +- types/reactable/index.d.ts | 13 +- types/reactable/reactable-tests.tsx | 18 +- types/reapop/reapop-tests.tsx | 2 +- types/recharts/index.d.ts | 80 +- types/redis-mock/redis-mock-tests.ts | 32 +- types/redux-actions/redux-actions-tests.ts | 2 +- .../redux-persist-transform-encrypt-tests.ts | 3 +- types/redux-router/index.d.ts | 2 +- .../request-promise-native-tests.ts | 60 +- types/request-promise/index.d.ts | 2 +- .../request-promise/request-promise-tests.ts | 18 +- types/request/index.d.ts | 2 +- types/restify/restify-tests.ts | 21 +- types/restify/v4/restify-tests.ts | 25 +- types/restify/v4/tslint.json | 8 +- types/rot-js/index.d.ts | 4 +- types/rot-js/rot-js-tests.ts | 172 ++-- types/rrule/tslint.json | 9 +- types/rx-dom/rx-dom-tests.ts | 1 - types/rx-dom/tslint.json | 5 +- types/rx-lite/tslint.json | 2 + types/screenfull/index.d.ts | 2 +- .../screeps-profiler-tests.ts | 4 +- types/selenium-webdriver/tslint.json | 3 + .../semantic-ui-embed-tests.ts | 2 +- types/semver/semver-tests.ts | 7 +- types/serialport/serialport-tests.ts | 16 +- types/sharepoint/tslint.json | 8 +- types/sharp-timer/sharp-timer-tests.ts | 4 +- types/sharp-timer/v0/sharp-timer-tests.ts | 2 +- types/shelljs/shelljs-tests.ts | 30 +- types/sinon/sinon-tests.ts | 46 +- types/slackify-html/slackify-html-tests.ts | 2 +- types/sleep/index.d.ts | 2 +- types/slimerjs/slimerjs-tests.ts | 4 +- types/snoowrap/tslint.json | 2 + types/sockjs-client/sockjs-client-tests.ts | 8 +- types/sockjs/sockjs-tests.ts | 6 +- types/sortablejs/index.d.ts | 2 +- types/source-list-map/index.d.ts | 4 +- types/spark-md5/spark-md5-tests.ts | 4 +- types/sparkpost/sparkpost-tests.ts | 4 +- .../stale-lru-cache/stale-lru-cache-tests.ts | 2 +- .../stamplay-js-sdk/stamplay-js-sdk-tests.ts | 2 +- types/stats.js/index.d.ts | 2 +- types/steed/tslint.json | 4 +- .../swagger-express-middleware-tests.ts | 4 +- .../swagger-schema-official-tests.ts | 4 +- types/swig/index.d.ts | 2 +- types/table/index.d.ts | 2 +- types/tapable/index.d.ts | 2 +- types/tether-drop/index.d.ts | 2 +- types/tether-shepherd/index.d.ts | 2 +- types/tether/index.d.ts | 2 +- types/timer-machine/timer-machine-tests.ts | 4 +- types/touch/touch-tests.ts | 2 +- types/traceback/index.d.ts | 2 +- types/tus-js-client/tus-js-client-tests.ts | 8 +- types/twig/twig-tests.ts | 6 +- types/ui-grid/index.d.ts | 2 +- types/ui-router-extras/index.d.ts | 18 +- types/underscore.string/index.d.ts | 2 +- types/uniqid/index.d.ts | 2 +- types/url-regex/url-regex-tests.ts | 8 +- types/uuid-js/index.d.ts | 2 +- types/valid-url/valid-url-tests.ts | 4 +- types/vega/index.d.ts | 2 +- .../viewability-helper-tests.ts | 8 +- types/viewerjs/index.d.ts | 2 +- types/viewerjs/viewerjs-tests.ts | 2 +- types/vimeo__player/vimeo__player-tests.ts | 48 +- types/vision/index.d.ts | 2 +- types/vue-i18n/tslint.json | 7 +- .../web-animations-js-tests.ts | 2 +- .../webcomponents.js-tests.ts | 5 +- types/webdriverio/tslint.json | 2 + types/webgl2/webgl2-tests.ts | 4 +- types/webix/index.d.ts | 2 +- types/webmidi/webmidi-tests.ts | 2 +- types/webpack-dev-middleware/index.d.ts | 2 +- .../webpack-dev-server-tests.ts | 4 +- types/webpack-sources/index.d.ts | 4 +- types/weixin-app/tslint.json | 10 +- types/winston-dynamodb/index.d.ts | 2 +- types/winston/index.d.ts | 48 +- types/winston/winston-tests.ts | 27 +- types/wordcloud/index.d.ts | 2 +- .../words-to-numbers-tests.ts | 4 +- types/wreck/index.d.ts | 2 +- types/xml/index.d.ts | 2 +- types/xml/xml-tests.ts | 6 +- types/xmlbuilder/index.d.ts | 2 +- types/xrm/index.d.ts | 12 +- types/xrm/xrm-tests.ts | 2 +- types/yargs/yargs-tests.ts | 132 +-- types/yeoman-generator/index.d.ts | 2 +- types/yosay/index.d.ts | 2 +- types/zen-observable/index.d.ts | 2 - types/zen-observable/tslint.json | 6 +- types/zen-observable/zen-observable-tests.ts | 6 +- types/zeromq/index.d.ts | 6 +- types/zeromq/zeromq-tests.ts | 12 +- types/zmq/index.d.ts | 2 +- 484 files changed, 3388 insertions(+), 3281 deletions(-) diff --git a/types/activex-scripting/activex-scripting-tests.ts b/types/activex-scripting/activex-scripting-tests.ts index cc14a421ff..3be8e1ccf5 100644 --- a/types/activex-scripting/activex-scripting-tests.ts +++ b/types/activex-scripting/activex-scripting-tests.ts @@ -1,7 +1,7 @@ // source -- https://msdn.microsoft.com/en-us/library/ebkhfaaz.aspx // Generates a string describing the drive type of a given Drive object. -let showDriveType = (drive: Scripting.Drive) => { +function showDriveType(drive: Scripting.Drive) { switch (drive.DriveType) { case Scripting.DriveTypeConst.Removable: return 'Removeable'; @@ -16,15 +16,15 @@ let showDriveType = (drive: Scripting.Drive) => { default: return 'Unknown'; } -}; +} // Generates a string describing the attributes of a file or folder. -let showFileAttributes = (file: Scripting.File) => { - let attr = file.Attributes; +function showFileAttributes(file: Scripting.File) { + const attr = file.Attributes; if (attr === 0) { return 'Normal'; } - let attributeStrings: string[] = []; + const attributeStrings: string[] = []; if (attr & Scripting.FileAttribute.Directory) { attributeStrings.push('Directory'); } if (attr & Scripting.FileAttribute.ReadOnly) { attributeStrings.push('Read-only'); } if (attr & Scripting.FileAttribute.Hidden) { attributeStrings.push('Hidden'); } @@ -34,22 +34,22 @@ let showFileAttributes = (file: Scripting.File) => { if (attr & Scripting.FileAttribute.Alias) { attributeStrings.push('Alias'); } if (attr & Scripting.FileAttribute.Compressed) { attributeStrings.push('Compressed'); } return attributeStrings.join(','); -}; +} // source --https://msdn.microsoft.com/en-us/library/ts2t8ybh(v=vs.84).aspx -let showFreeSpace = (drvPath: string) => { - let fso = new ActiveXObject('Scripting.FileSystemObject'); - let d = fso.GetDrive(fso.GetDriveName(drvPath)); +function showFreeSpace(drvPath: string) { + const fso = new ActiveXObject('Scripting.FileSystemObject'); + const d = fso.GetDrive(fso.GetDriveName(drvPath)); let s = 'Drive ' + drvPath + ' - '; s += d.VolumeName + '
'; s += 'Free Space: ' + d.FreeSpace / 1024 + ' Kbytes'; return (s); -}; +} // source -- https://msdn.microsoft.com/en-us/library/kaf6yaft(v=vs.84).aspx -let getALine = (filespec: string) => { - let fso = new ActiveXObject('Scripting.FileSystemObject'); - let file = fso.OpenTextFile(filespec, Scripting.IOMode.ForReading, false); +function getALine(filespec: string) { + const fso = new ActiveXObject('Scripting.FileSystemObject'); + const file = fso.OpenTextFile(filespec, Scripting.IOMode.ForReading, false); let s = ''; while (!file.AtEndOfLine) { @@ -57,4 +57,4 @@ let getALine = (filespec: string) => { } file.Close(); return (s); -}; +} diff --git a/types/activex-wia/activex-wia-tests.ts b/types/activex-wia/activex-wia-tests.ts index 8384291f5d..b765083870 100644 --- a/types/activex-wia/activex-wia-tests.ts +++ b/types/activex-wia/activex-wia-tests.ts @@ -7,7 +7,7 @@ let img = commonDialog.ShowAcquireImage(); // when DefinitelyTyped supports Typescript 2.4 -- end of July 2017, replace these: let jpegFormatID = '{B96B3CAE-0728-11D3-9D7B-0000F81EF32E}'; if (img.FormatID !== jpegFormatID) { - let ip = new ActiveXObject('WIA.ImageProcess'); + const ip = new ActiveXObject('WIA.ImageProcess'); ip.Filters.Add(ip.FilterInfos.Item('Convert').FilterID); ip.Filters.Item(1).Properties.Item('FormatID').Value = jpegFormatID; img = ip.Apply(img); @@ -24,8 +24,8 @@ if (img.FormatID !== jpegFormatID) { let dev = commonDialog.ShowSelectDevice(); if (dev.Type === WIA.WiaDeviceType.CameraDeviceType) { // when DefinitelyTyped supports Typescript 2.4 -- end of July 2017, replace these: - let commandID = '{AF933CAC-ACAD-11D2-A093-00C04F72DC3C}'; - let itm = dev.ExecuteCommand(commandID); + const commandID = '{AF933CAC-ACAD-11D2-A093-00C04F72DC3C}'; + const itm = dev.ExecuteCommand(commandID); // with this: // let itm = dev.ExecuteCommand(WIA.CommandID.wiaCommandTakePicture); @@ -36,7 +36,7 @@ dev = commonDialog.ShowSelectDevice(); let e = new Enumerator(dev.Properties); // no foreach over ActiveX collections e.moveFirst(); while (!e.atEnd()) { - let p = e.item(); + const p = e.item(); let s = p.Name + ' (' + p.PropertyID + ') = '; if (p.IsVector) { s += '[vector of data]'; @@ -60,7 +60,7 @@ while (!e.atEnd()) { } else { s += ' [valid values include: '; } - let count = p.SubTypeValues.Count; + const count = p.SubTypeValues.Count; for (let i = 1; i <= count; i++) { s += p.SubTypeValues.Item(i); if (i < count) { diff --git a/types/alertify/index.d.ts b/types/alertify/index.d.ts index fa71118381..1eb2699f6f 100644 --- a/types/alertify/index.d.ts +++ b/types/alertify/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for alertify 0.3.11 // Project: http://fabien-d.github.io/alertify.js/ -// Definitions by: John Jeffery +// Definitions by: John Jeffery // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped declare var alertify: alertify.IAlertifyStatic; diff --git a/types/alexa-sdk/alexa-sdk-tests.ts b/types/alexa-sdk/alexa-sdk-tests.ts index c384bf194d..c77bc93091 100644 --- a/types/alexa-sdk/alexa-sdk-tests.ts +++ b/types/alexa-sdk/alexa-sdk-tests.ts @@ -1,13 +1,13 @@ import * as Alexa from "alexa-sdk"; const handler = (event: Alexa.RequestBody, context: Alexa.Context, callback: () => void) => { - let alexa = Alexa.handler(event, context); + const alexa = Alexa.handler(event, context); alexa.resources = {}; alexa.registerHandlers(handlers); alexa.execute(); }; -let handlers: Alexa.Handlers = { +const handlers: Alexa.Handlers = { 'LaunchRequest': function() { this.emit('SayHello'); }, diff --git a/types/algebra.js/algebra.js-tests.ts b/types/algebra.js/algebra.js-tests.ts index 0dc7f260e7..7b6cebfab8 100644 --- a/types/algebra.js/algebra.js-tests.ts +++ b/types/algebra.js/algebra.js-tests.ts @@ -5,9 +5,9 @@ import { Equation, Expression, Fraction, parse, toTex } from 'algebra.js'; expr = expr.subtract(3); expr = expr.add("x"); expr.toString(); - let eq = new Equation(expr, 4); + const eq = new Equation(expr, 4); eq.toString(); - let x = eq.solveFor("x"); + const x = eq.solveFor("x"); x.toString(); } { @@ -29,7 +29,7 @@ import { Equation, Expression, Fraction, parse, toTex } from 'algebra.js'; x.toString(); x = x.add("y"); x.toString(); - let otherExp = new Expression("x").add(6); + const otherExp = new Expression("x").add(6); x = x.add(otherExp); x.toString(); @@ -54,10 +54,10 @@ import { Equation, Expression, Fraction, parse, toTex } from 'algebra.js'; exp = exp.add("y"); exp = exp.add(3); exp.toString(); - let sum = exp.summation("x", 3, 6); + const sum = exp.summation("x", 3, 6); sum.toString(); exp = new Expression("x").add(2); - let exp3 = exp.pow(3); + const exp3 = exp.pow(3); "(" + exp.toString() + ")^3 = " + exp3.toString(); let expr = new Expression("x"); @@ -66,14 +66,14 @@ import { Equation, Expression, Fraction, parse, toTex } from 'algebra.js'; expr = expr.add("y"); expr = expr.add(new Fraction(1, 3)); expr.toString(); - let answer1 = expr.eval({ x: 2 }); - let answer2 = expr.eval({ x: 2, y: new Fraction(3, 4) }); + const answer1 = expr.eval({ x: 2 }); + const answer2 = expr.eval({ x: 2, y: new Fraction(3, 4) }); answer1.toString(); answer2.toString(); expr = new Expression("x").add(2); expr.toString(); - let sub = new Expression("y").add(4); - let answer = expr.eval({ x: sub }); + const sub = new Expression("y").add(4); + const answer = expr.eval({ x: sub }); answer.toString(); exp = new Expression("x").add(2); exp.toString(); @@ -91,23 +91,23 @@ import { Equation, Expression, Fraction, parse, toTex } from 'algebra.js'; exp.toString(); exp = exp.simplify(); exp.toString(); - let z = new Expression("z"); - let eq1 = new Equation(z.subtract(4).divide(9), z.add(6)); + const z = new Expression("z"); + const eq1 = new Equation(z.subtract(4).divide(9), z.add(6)); eq1.toString(); - let eq2 = new Equation(z.add(4).multiply(9), 6); + const eq2 = new Equation(z.add(4).multiply(9), 6); eq2.toString(); - let eq3 = new Equation(z.divide(2).multiply(7), new Fraction(1, 4)); + const eq3 = new Equation(z.divide(2).multiply(7), new Fraction(1, 4)); eq3.toString(); } { - let x1 = parse("1/5 * x + 2/15"); - let x2 = parse("1/7 * x + 4"); + const x1 = parse("1/5 * x + 2/15"); + const x2 = parse("1/7 * x + 4"); let eq = new Equation(x1 as Expression, x2 as Expression); eq.toString(); - let answer = eq.solveFor("x"); + const answer = eq.solveFor("x"); "x = " + answer.toString(); - let expr1 = parse("1/4 * x + 5/4"); - let expr2 = parse("3 * y - 12/5"); + const expr1 = parse("1/4 * x + 5/4"); + const expr2 = parse("3 * y - 12/5"); eq = new Equation(expr1 as Expression, expr2 as Expression); eq.toString(); let xAnswer = eq.solveFor("x"); @@ -116,14 +116,14 @@ import { Equation, Expression, Fraction, parse, toTex } from 'algebra.js'; "y = " + yAnswer.toString(); let n1 = parse("x + 5") as Expression; let n2 = parse("x - 3/4") as Expression; - let quad = new Equation(n1.multiply(n2), 0); + const quad = new Equation(n1.multiply(n2), 0); quad.toString(); let answers = quad.solveFor("x"); "x = " + answers.toString(); n1 = parse("x + 2") as Expression; n2 = parse("x + 3") as Expression; - let n3 = parse("x + 4") as Expression; - let cubic = new Equation(n1.multiply(n2).multiply(n3), 0); + const n3 = parse("x + 4") as Expression; + const cubic = new Equation(n1.multiply(n2).multiply(n3), 0); cubic.toString(); answers = cubic.solveFor("x"); "x = " + answers.toString(); @@ -143,20 +143,20 @@ import { Equation, Expression, Fraction, parse, toTex } from 'algebra.js'; exp.toString(); } { - let eq = parse("x^2 + 4 * x + 4 = 0") as Equation; + const eq = parse("x^2 + 4 * x + 4 = 0") as Equation; eq.toString(); - let ans = eq.solveFor("x"); + const ans = eq.solveFor("x"); "x = " + ans.toString(); - let a = new Expression("x").pow(2); - let b = new Expression("x").multiply(new Fraction(5, 4)); - let c = new Fraction(-21, 4); - let expr = a.add(b).add(c); - let quad = new Equation(expr, 0); + const a = new Expression("x").pow(2); + const b = new Expression("x").multiply(new Fraction(5, 4)); + const c = new Fraction(-21, 4); + const expr = a.add(b).add(c); + const quad = new Equation(expr, 0); toTex(quad); - let answers = quad.solveFor("x"); + const answers = quad.solveFor("x"); toTex(answers); - let lambda = new Expression("lambda").add(3).divide(4); - let Phi = new Expression("Phi").subtract(new Fraction(1, 5)).add(lambda); + const lambda = new Expression("lambda").add(3).divide(4); + const Phi = new Expression("Phi").subtract(new Fraction(1, 5)).add(lambda); toTex(lambda); toTex(Phi); } diff --git a/types/amplify/amplify-tests.ts b/types/amplify/amplify-tests.ts index 62b00052dd..1277e5e2a3 100644 --- a/types/amplify/amplify-tests.ts +++ b/types/amplify/amplify-tests.ts @@ -168,19 +168,24 @@ amplify.request("twitter-mentions", { user: "amplifyjs" }); // Example: const appEnvelopeDecoder: amplify.Decoder = (data, status, xhr, success, error) => { - if (data.status === "success") { - success(data.data); - } else if (data.status === "fail" || data.status === "error") { - error(data.message, data.status); - } else { - error(data.message, "fatal"); + switch (data.status) { + case "success": + success(data.data); + break; + case "fail": + case "error": + error(data.message, data.status); + break; + default: + error(data.message, "fatal"); + break; } }; // a new decoder can be added to the amplifyDecoders interface declare module "amplify" { interface Decoders { - appEnvelope: amplify.Decoder; + appEnvelope: Decoder; } } @@ -213,12 +218,17 @@ amplify.request.define("decoderSingleExample", "ajax", { url: "/myAjaxUrl", type: "POST", decoder(data, status, xhr, success, error) { - if (data.status === "success") { - success(data.data); - } else if (data.status === "fail" || data.status === "error") { - error(data.message, data.status); - } else { - error(data.message, "fatal"); + switch (data.status) { + case "success": + success(data.data); + break; + case "fail": + case "error": + error(data.message, data.status); + break; + default: + error(data.message, "fatal"); + break; } } }); diff --git a/types/amqplib/tslint.json b/types/amqplib/tslint.json index 4f44991c3c..bfc9508c49 100644 --- a/types/amqplib/tslint.json +++ b/types/amqplib/tslint.json @@ -1,6 +1,8 @@ { "extends": "dtslint/dt.json", "rules": { - "no-empty-interface": false + // All are TODOs + "no-empty-interface": false, + "prefer-const": false } } diff --git a/types/angular-block-ui/angular-block-ui-tests.ts b/types/angular-block-ui/angular-block-ui-tests.ts index 4b3903f9cc..58547fff4d 100644 --- a/types/angular-block-ui/angular-block-ui-tests.ts +++ b/types/angular-block-ui/angular-block-ui-tests.ts @@ -37,5 +37,5 @@ app.controller('Ctrl', ($scope: ng.IScope, blockUI: angular.blockUI.BlockUIServi blockUI.reset(); blockUI.message("Hello Types"); blockUI.done(); - let b: boolean = blockUI.isBlocking(); + const b: boolean = blockUI.isBlocking(); }); diff --git a/types/angular-block-ui/index.d.ts b/types/angular-block-ui/index.d.ts index 7733bc72f7..47ba9902b9 100644 --- a/types/angular-block-ui/index.d.ts +++ b/types/angular-block-ui/index.d.ts @@ -70,7 +70,7 @@ declare module 'angular' { * @param {angular.IRequestConfig} config - the Angular request config object. * */ - requestFilter?(config: angular.IRequestConfig): (string | boolean); + requestFilter?(config: IRequestConfig): (string | boolean); /** * When the module is started it will inject the main block element diff --git a/types/angular-cookies/index.d.ts b/types/angular-cookies/index.d.ts index 502e83a2e9..dc6fd913e9 100644 --- a/types/angular-cookies/index.d.ts +++ b/types/angular-cookies/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for Angular JS (ngCookies module) 1.4 // Project: http://angularjs.org -// Definitions by: Diego Vilar , Anthony Ciccarello +// Definitions by: Diego Vilar , Anthony Ciccarello // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 diff --git a/types/angular-gridster/index.d.ts b/types/angular-gridster/index.d.ts index 3d4fbbe799..22c02b4050 100644 --- a/types/angular-gridster/index.d.ts +++ b/types/angular-gridster/index.d.ts @@ -89,13 +89,13 @@ declare module "angular" { handles?: string[]; // optional callback fired when drag is started - start?(event: angular.IAngularEvent, $element: angular.IAugmentedJQuery, options: any): void; + start?(event: IAngularEvent, $element: IAugmentedJQuery, options: any): void; // optional callback fired when item is resized - resize?(event: angular.IAngularEvent, $element: angular.IAugmentedJQuery, options: any): void; + resize?(event: IAngularEvent, $element: IAugmentedJQuery, options: any): void; // optional callback fired when item is finished dragging - stop?(event: angular.IAngularEvent, $element: angular.IAugmentedJQuery, options: any): void; + stop?(event: IAngularEvent, $element: IAugmentedJQuery, options: any): void; }; // options to pass to draggable handler @@ -113,13 +113,13 @@ declare module "angular" { handle?: string; // optional callback fired when drag is started - start?(event: angular.IAngularEvent, $element: angular.IAugmentedJQuery, options: any): void; + start?(event: IAngularEvent, $element: IAugmentedJQuery, options: any): void; // optional callback fired when item is moved, - drag?(event: angular.IAngularEvent, $element: angular.IAugmentedJQuery, options: any): void; + drag?(event: IAngularEvent, $element: IAugmentedJQuery, options: any): void; // optional callback fired when item is finished dragging - stop?(event: angular.IAngularEvent, $element: angular.IAugmentedJQuery, options: any): void; + stop?(event: IAngularEvent, $element: IAugmentedJQuery, options: any): void; }; } diff --git a/types/angular-material/angular-material-tests.ts b/types/angular-material/angular-material-tests.ts index 5766a81975..79f72f0b5d 100644 --- a/types/angular-material/angular-material-tests.ts +++ b/types/angular-material/angular-material-tests.ts @@ -49,7 +49,7 @@ myApp.config(( return c * t * t + b; }, easeFnIndeterminate(t, b, c, d) { - return c * Math.pow(2, 10 * (t / d - 1)) + b; + return c * Math.pow(2, (t / d - 1) * 10) + b; } }); }); diff --git a/types/angular-material/index.d.ts b/types/angular-material/index.d.ts index 36a43329f6..a8808f92ff 100644 --- a/types/angular-material/index.d.ts +++ b/types/angular-material/index.d.ts @@ -18,7 +18,7 @@ declare module 'angular' { interface IBottomSheetOptions { templateUrl?: string; template?: string; - scope?: angular.IScope; // default: new child scope + scope?: IScope; // default: new child scope preserveScope?: boolean; // default: false controller?: string | Injectable; locals?: { [index: string]: any }; @@ -28,12 +28,12 @@ declare module 'angular' { escapeToClose?: boolean; resolve?: ResolveObject; controllerAs?: string; - parent?: ((scope: angular.IScope, element: JQuery) => Element | JQuery) | string | Element | JQuery; // default: root node + parent?: ((scope: IScope, element: JQuery) => Element | JQuery) | string | Element | JQuery; // default: root node disableParentScroll?: boolean; // default: true } interface IBottomSheetService { - show(options: IBottomSheetOptions): angular.IPromise; + show(options: IBottomSheetOptions): IPromise; hide(response?: any): void; cancel(response?: any): void; } @@ -47,7 +47,7 @@ declare module 'angular' { templateUrl(templateUrl?: string): T; template(template?: string): T; targetEvent(targetEvent?: MouseEvent): T; - scope(scope?: angular.IScope): T; // default: new child scope + scope(scope?: IScope): T; // default: new child scope preserveScope(preserveScope?: boolean): T; // default: false disableParentScroll(disableParentScroll?: boolean): T; // default: true hasBackdrop(hasBackdrop?: boolean): T; // default: true @@ -98,7 +98,7 @@ declare module 'angular' { targetEvent?: MouseEvent; openFrom?: any; closeTo?: any; - scope?: angular.IScope; // default: new child scope + scope?: IScope; // default: new child scope preserveScope?: boolean; // default: false disableParentScroll?: boolean; // default: true hasBackdrop?: boolean; // default: true @@ -111,24 +111,24 @@ declare module 'angular' { resolve?: ResolveObject; controllerAs?: string; parent?: string | Element | JQuery; // default: root node - onShowing?(scope: angular.IScope, element: JQuery): void; - onComplete?(scope: angular.IScope, element: JQuery): void; - onRemoving?(element: JQuery, removePromise: angular.IPromise): void; + onShowing?(scope: IScope, element: JQuery): void; + onComplete?(scope: IScope, element: JQuery): void; + onRemoving?(element: JQuery, removePromise: IPromise): void; skipHide?: boolean; multiple?: boolean; fullscreen?: boolean; // default: false } interface IDialogService { - show(dialog: IDialogOptions | IAlertDialog | IConfirmDialog | IPromptDialog): angular.IPromise; + show(dialog: IDialogOptions | IAlertDialog | IConfirmDialog | IPromptDialog): IPromise; confirm(): IConfirmDialog; alert(): IAlertDialog; prompt(): IPromptDialog; - hide(response?: any): angular.IPromise; + hide(response?: any): IPromise; cancel(response?: any): void; } - type IIcon = (id: string) => angular.IPromise; // id is a unique ID or URL + type IIcon = (id: string) => IPromise; // id is a unique ID or URL interface IIconProvider { icon(id: string, url: string, viewBoxSize?: number): IIconProvider; // viewBoxSize default: 24 @@ -141,16 +141,16 @@ declare module 'angular' { type IMedia = (media: string) => boolean; interface ISidenavObject { - toggle(): angular.IPromise; - open(): angular.IPromise; - close(): angular.IPromise; + toggle(): IPromise; + open(): IPromise; + close(): IPromise; isOpen(): boolean; isLockedOpen(): boolean; onClose(onClose: () => void): void; } interface ISidenavService { - (component: string, enableWait: boolean): angular.IPromise; + (component: string, enableWait: boolean): IPromise; (component: string): ISidenavObject; } @@ -175,7 +175,7 @@ declare module 'angular' { templateUrl?: string; template?: string; autoWrap?: boolean; - scope?: angular.IScope; // default: new child scope + scope?: IScope; // default: new child scope preserveScope?: boolean; // default: false hideDelay?: number | false; // default (ms): 3000 position?: string; // any combination of 'bottom'/'left'/'top'/'right'/'fit'; default: 'bottom left' @@ -189,8 +189,8 @@ declare module 'angular' { } interface IToastService { - show(optionsOrPreset: IToastOptions | IToastPreset): angular.IPromise; - showSimple(content: string): angular.IPromise; + show(optionsOrPreset: IToastOptions | IToastPreset): IPromise; + showSimple(content: string): IPromise; simple(): ISimpleToastPreset; build(): IToastPreset; updateContent(newContent: string): void; @@ -306,7 +306,7 @@ declare module 'angular' { } interface IMenuService { - hide(response?: any, options?: any): angular.IPromise; + hide(response?: any, options?: any): IPromise; } interface IColorPalette { @@ -366,19 +366,19 @@ declare module 'angular' { isAttached: boolean; panelContainer: JQuery; panelEl: JQuery; - open(): angular.IPromise; - close(): angular.IPromise; - attach(): angular.IPromise; - detach(): angular.IPromise; - show(): angular.IPromise; - hide(): angular.IPromise; + open(): IPromise; + close(): IPromise; + attach(): IPromise; + detach(): IPromise; + show(): IPromise; + hide(): IPromise; destroy(): void; addClass(newClass: string): void; removeClass(oldClass: string): void; toggleClass(toggleClass: string): void; updatePosition(position: IPanelPosition): void; - registerInterceptor(type: string, callback: () => angular.IPromise): IPanelRef; - removeInterceptor(type: string, callback: () => angular.IPromise): IPanelRef; + registerInterceptor(type: string, callback: () => IPromise): IPanelRef; + removeInterceptor(type: string, callback: () => IPromise): IPanelRef; removeAllInterceptors(type?: string): IPanelRef; } @@ -407,7 +407,7 @@ declare module 'angular' { interface IPanelService { create(opt_config: IPanelConfig): IPanelRef; - open(opt_config: IPanelConfig): angular.IPromise; + open(opt_config: IPanelConfig): IPromise; newPanelPosition(): IPanelPosition; newPanelAnimation(): IPanelAnimation; xPosition: { diff --git a/types/angular-mocks/index.d.ts b/types/angular-mocks/index.d.ts index 14571e2eba..ac9e6cece3 100644 --- a/types/angular-mocks/index.d.ts +++ b/types/angular-mocks/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for Angular JS (ngMock, ngMockE2E module) 1.5 // Project: http://angularjs.org -// Definitions by: Diego Vilar , Tony Curtis +// Definitions by: Diego Vilar , Tony Curtis // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 diff --git a/types/angular-oauth2/index.d.ts b/types/angular-oauth2/index.d.ts index 1c5e3ac6ed..ef11ee3680 100644 --- a/types/angular-oauth2/index.d.ts +++ b/types/angular-oauth2/index.d.ts @@ -27,9 +27,9 @@ declare module 'angular' { interface OAuth { isAuthenticated(): boolean; - getAccessToken(data: Data, options?: any): angular.IPromise; - getRefreshToken(data?: Data, options?: any): angular.IPromise; - revokeToken(data?: Data, options?: any): angular.IPromise; + getAccessToken(data: Data, options?: any): IPromise; + getRefreshToken(data?: Data, options?: any): IPromise; + revokeToken(data?: Data, options?: any): IPromise; } interface OAuthTokenConfig { diff --git a/types/angular-pdfjs-viewer/index.d.ts b/types/angular-pdfjs-viewer/index.d.ts index 392164bb00..e9c41ef1fe 100644 --- a/types/angular-pdfjs-viewer/index.d.ts +++ b/types/angular-pdfjs-viewer/index.d.ts @@ -8,7 +8,7 @@ import * as angular from 'angular'; declare module 'angular' { namespace pdfjsViewer { - interface ConfigProvider extends angular.IServiceProvider { + interface ConfigProvider extends IServiceProvider { setWorkerSrc(src: string): void; setCmapDir(dir: string): void; setImageDir(dir: string): void; diff --git a/types/angular-resource/angular-resource-tests.ts b/types/angular-resource/angular-resource-tests.ts index c5b71ee39f..4f3a1db1dc 100644 --- a/types/angular-resource/angular-resource-tests.ts +++ b/types/angular-resource/angular-resource-tests.ts @@ -32,7 +32,7 @@ interface IArticleResourceClass extends ng.resource.IResourceClass('/articles/:id', null, { + const articleResource: IArticleResourceClass = $resource('/articles/:id', null, { publish : publishDescriptor, unpublish : { method: 'POST' @@ -51,7 +51,7 @@ function MainController($resource: ng.resource.IResourceService): void { articleResource.unpublish({ id: 1 }); // IResourceClass.get() will be automatically available here - let article: IArticleResource = articleResource.get({id: 1}, function success(): void { + const article: IArticleResource = articleResource.get({id: 1}, function success(): void { // Again, default + custom action here... article.title = 'New Title'; article.$save(); diff --git a/types/angular-resource/index.d.ts b/types/angular-resource/index.d.ts index 4bdc8cc007..13be56637e 100644 --- a/types/angular-resource/index.d.ts +++ b/types/angular-resource/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for Angular JS (ngResource module) 1.5 // Project: http://angularjs.org -// Definitions by: Diego Vilar , Michael Jess +// Definitions by: Diego Vilar , Michael Jess // Definitions: https://github.com/daptiv/DefinitelyTyped // TypeScript Version: 2.3 @@ -74,10 +74,10 @@ declare module 'angular' { params?: any; url?: string; isArray?: boolean; - transformRequest?: angular.IHttpRequestTransformer | angular.IHttpRequestTransformer[]; - transformResponse?: angular.IHttpResponseTransformer | angular.IHttpResponseTransformer[]; + transformRequest?: IHttpRequestTransformer | IHttpRequestTransformer[]; + transformResponse?: IHttpResponseTransformer | IHttpResponseTransformer[]; headers?: any; - cache?: boolean | angular.ICacheObject; + cache?: boolean | ICacheObject; /** * Note: In contrast to $http.config, promises are not supported in $resource, because the same value * would be used for multiple requests. If you are looking for a way to cancel requests, you should @@ -118,15 +118,15 @@ declare module 'angular' { // it's gonna be considered data if the action method is POST, PUT or // PATCH (in other words, methods with body). Otherwise, it's going // to be considered as parameters to the request. - // https://github.com/angular/angular.js/blob/v1.2.0/src/ngResource/resource.js#L461-L465 + // https://github.com/angular/js/blob/v1.2.0/src/ngResource/resource.js#L461-L465 // // Only those methods with an HTTP body do have 'data' as first parameter: - // https://github.com/angular/angular.js/blob/v1.2.0/src/ngResource/resource.js#L463 + // https://github.com/angular/js/blob/v1.2.0/src/ngResource/resource.js#L463 // More specifically, those methods are POST, PUT and PATCH: - // https://github.com/angular/angular.js/blob/v1.2.0/src/ngResource/resource.js#L432 + // https://github.com/angular/js/blob/v1.2.0/src/ngResource/resource.js#L432 // // Also, static calls always return the IResource (or IResourceArray) retrieved - // https://github.com/angular/angular.js/blob/v1.2.0/src/ngResource/resource.js#L538-L549 + // https://github.com/angular/js/blob/v1.2.0/src/ngResource/resource.js#L538-L549 interface IResourceClass { new(dataOrParams?: any): T & IResource; get: IResourceMethod; @@ -141,32 +141,32 @@ declare module 'angular' { } // Instance calls always return the the promise of the request which retrieved the object - // https://github.com/angular/angular.js/blob/v1.2.0/src/ngResource/resource.js#L538-L546 + // https://github.com/angular/js/blob/v1.2.0/src/ngResource/resource.js#L538-L546 interface IResource { - $get(): angular.IPromise; - $get(params?: Object, success?: Function, error?: Function): angular.IPromise; - $get(success: Function, error?: Function): angular.IPromise; + $get(): IPromise; + $get(params?: Object, success?: Function, error?: Function): IPromise; + $get(success: Function, error?: Function): IPromise; - $query(): angular.IPromise>; - $query(params?: Object, success?: Function, error?: Function): angular.IPromise>; - $query(success: Function, error?: Function): angular.IPromise>; + $query(): IPromise>; + $query(params?: Object, success?: Function, error?: Function): IPromise>; + $query(success: Function, error?: Function): IPromise>; - $save(): angular.IPromise; - $save(params?: Object, success?: Function, error?: Function): angular.IPromise; - $save(success: Function, error?: Function): angular.IPromise; + $save(): IPromise; + $save(params?: Object, success?: Function, error?: Function): IPromise; + $save(success: Function, error?: Function): IPromise; - $remove(): angular.IPromise; - $remove(params?: Object, success?: Function, error?: Function): angular.IPromise; - $remove(success: Function, error?: Function): angular.IPromise; + $remove(): IPromise; + $remove(params?: Object, success?: Function, error?: Function): IPromise; + $remove(success: Function, error?: Function): IPromise; - $delete(): angular.IPromise; - $delete(params?: Object, success?: Function, error?: Function): angular.IPromise; - $delete(success: Function, error?: Function): angular.IPromise; + $delete(): IPromise; + $delete(params?: Object, success?: Function, error?: Function): IPromise; + $delete(success: Function, error?: Function): IPromise; $cancelRequest(): void; /** The promise of the original server interaction that created this instance. */ - $promise: angular.IPromise; + $promise: IPromise; $resolved: boolean; toJSON(): T; } @@ -178,18 +178,18 @@ declare module 'angular' { $cancelRequest(): void; /** The promise of the original server interaction that created this collection. */ - $promise: angular.IPromise>; + $promise: IPromise>; $resolved: boolean; } /** when creating a resource factory via IModule.factory */ interface IResourceServiceFactoryFunction { - ($resource: angular.resource.IResourceService): IResourceClass; - >($resource: angular.resource.IResourceService): U; + ($resource: resource.IResourceService): IResourceClass; + >($resource: resource.IResourceService): U; } // IResourceServiceProvider used to configure global settings - interface IResourceServiceProvider extends angular.IServiceProvider { + interface IResourceServiceProvider extends IServiceProvider { defaults: IResourceOptions; } } @@ -197,7 +197,7 @@ declare module 'angular' { /** extensions to base ng based on using angular-resource */ interface IModule { /** creating a resource service factory */ - factory(name: string, resourceServiceFactoryFunction: angular.resource.IResourceServiceFactoryFunction): IModule; + factory(name: string, resourceServiceFactoryFunction: resource.IResourceServiceFactoryFunction): IModule; } namespace auto { @@ -210,7 +210,7 @@ declare module 'angular' { declare global { interface Array { /** The promise of the original server interaction that created this collection. */ - $promise: angular.IPromise; + $promise: IPromise; $resolved: boolean; } } diff --git a/types/angular-sanitize/index.d.ts b/types/angular-sanitize/index.d.ts index 89273b42fb..ad42ec362e 100644 --- a/types/angular-sanitize/index.d.ts +++ b/types/angular-sanitize/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for Angular JS (ngSanitize module) 1.3 // Project: http://angularjs.org -// Definitions by: Diego Vilar +// Definitions by: Diego Vilar // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 diff --git a/types/angular/angular-component-router.d.ts b/types/angular/angular-component-router.d.ts index b8c939f7c8..b8cd8d097e 100644 --- a/types/angular/angular-component-router.d.ts +++ b/types/angular/angular-component-router.d.ts @@ -1,7 +1,7 @@ /* tslint:disable:dt-header variable-name */ // Type definitions for Angular JS 1.5 component router // Project: http://angularjs.org -// Definitions by: David Reher +// Definitions by: David Reher // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped declare namespace angular { diff --git a/types/angular/angular-tests.ts b/types/angular/angular-tests.ts index 20de01f71f..eec64baed0 100644 --- a/types/angular/angular-tests.ts +++ b/types/angular/angular-tests.ts @@ -339,12 +339,12 @@ namespace TestQ { result = $q.all<{a: number; b: string; }>({a: promiseAny, b: promiseAny}); } { - let result = $q.all({ num: $q.when(2), str: $q.when('test') }); + const result = $q.all({ num: $q.when(2), str: $q.when('test') }); // TS should infer that num is a number and str is a string result.then(r => (r.num * 2) + r.str.indexOf('s')); } { - let result = $q.all({ num: $q.when(2), str: 'test' }); + const result = $q.all({ num: $q.when(2), str: 'test' }); // TS should infer that num is a number and str is a string result.then(r => (r.num * 2) + r.str.indexOf('s')); } @@ -378,7 +378,7 @@ namespace TestQ { let result: angular.IPromise; result = $q.resolve(tResult); result = $q.resolve(promiseTResult); - let result2: angular.IPromise = $q.resolve(Math.random() > 0.5 ? tResult : promiseTOther); + const result2: angular.IPromise = $q.resolve(Math.random() > 0.5 ? tResult : promiseTOther); } // $q.when @@ -388,7 +388,6 @@ namespace TestQ { } { let result: angular.IPromise; - let other: angular.IPromise; let resultOther: angular.IPromise; result = $q.when(tResult); @@ -450,8 +449,8 @@ namespace TestDeferred { // deferred.resolve { let result: void; - result = deferred.resolve() as void; - result = deferred.resolve(tResult) as void; + result = deferred.resolve(); + result = deferred.resolve(tResult); } // deferred.reject @@ -488,7 +487,7 @@ namespace TestInjector { class Foobar { constructor($q) {} } - let result: Foobar = $injector.instantiate(Foobar); + const result: Foobar = $injector.instantiate(Foobar); } // $injector.invoke @@ -496,14 +495,14 @@ namespace TestInjector { function foobar(v: boolean): number { return 7; } - let result = $injector.invoke(foobar); + const result = $injector.invoke(foobar); if (!(typeof result === 'number')) { // This fails to compile if 'result' is not exactly a number. - let expectNever: never = result; + const expectNever: never = result; } - let anyFunction: Function = foobar; - let anyResult: string = $injector.invoke(anyFunction); + const anyFunction: Function = foobar; + const anyResult: string = $injector.invoke(anyFunction); } } @@ -1160,11 +1159,7 @@ function NgModelControllerTyping() { ngModel.$asyncValidators['uniqueUsername'] = (modelValue, viewValue) => { const value = modelValue || viewValue; return $http.get('/api/users/' + value). - then(function resolved() { - return $q.reject('exists'); - }, function rejected() { - return true; - }); + then(() => $q.reject('exists'), () => true); }; } diff --git a/types/angular/index.d.ts b/types/angular/index.d.ts index f6b74517b8..f48a1d3493 100644 --- a/types/angular/index.d.ts +++ b/types/angular/index.d.ts @@ -1,7 +1,7 @@ // Type definitions for Angular JS 1.6 // Project: http://angularjs.org -// Definitions by: Diego Vilar -// Georgii Dolzhykov +// Definitions by: Diego Vilar +// Georgii Dolzhykov // Caleb St-Denis // Leonard Thieu // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/angularfire/index.d.ts b/types/angularfire/index.d.ts index e27cbf5721..de1482b0e3 100644 --- a/types/angularfire/index.d.ts +++ b/types/angularfire/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for AngularFire 0.8.2 // Project: http://angularfire.com -// Definitions by: Dénes Harmath +// Definitions by: Dénes Harmath // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 diff --git a/types/applepayjs/applepayjs-tests.ts b/types/applepayjs/applepayjs-tests.ts index 5adf61e45c..505dbd2daf 100644 --- a/types/applepayjs/applepayjs-tests.ts +++ b/types/applepayjs/applepayjs-tests.ts @@ -6,7 +6,7 @@ declare function it(desc: string, fn: () => void): void; describe("ApplePaySession", () => { it("the constants are defined", () => { - let status = 0; + const status = 0; switch (status) { case ApplePaySession.STATUS_FAILURE: case ApplePaySession.STATUS_INVALID_BILLING_POSTAL_ADDRESS: @@ -43,8 +43,8 @@ describe("ApplePaySession", () => { it("can call static methods", () => { const merchantIdentifier = "MyMerchantId"; - let canMakePayments: boolean = ApplePaySession.canMakePayments(); - let supported: boolean = ApplePaySession.supportsVersion(2); + const canMakePayments: boolean = ApplePaySession.canMakePayments(); + const supported: boolean = ApplePaySession.supportsVersion(2); ApplePaySession.canMakePaymentsWithActiveCard(merchantIdentifier) .then((status: boolean) => { @@ -168,7 +168,7 @@ describe("ApplePaySession", () => { }); describe("ApplePayPaymentRequest", () => { it("can create a new instance", () => { - let paymentRequest: ApplePayJS.ApplePayPaymentRequest = { + const paymentRequest: ApplePayJS.ApplePayPaymentRequest = { applicationData: "ApplicationData", countryCode: "GB", currencyCode: "GBP", @@ -181,8 +181,8 @@ describe("ApplePayPaymentRequest", () => { "amex", "discover", "jcb", - "master​Card", - "private​Label", + "masterCard", + "privateLabel", "visa" ], total: { diff --git a/types/applepayjs/index.d.ts b/types/applepayjs/index.d.ts index 34d3c41a99..f705a4fad2 100644 --- a/types/applepayjs/index.d.ts +++ b/types/applepayjs/index.d.ts @@ -10,7 +10,7 @@ declare class ApplePaySession extends EventTarget { /** * Creates a new instance of the ApplePaySession class. * @param version - The version of the ApplePay JS API you are using. - * @param paymentRequest - An Apple​Pay​Payment​Request object that contains the information that is displayed on the Apple Pay payment sheet. + * @param paymentRequest - An ApplePayPaymentRequest object that contains the information that is displayed on the Apple Pay payment sheet. */ constructor(version: number, paymentRequest: ApplePayJS.ApplePayPaymentRequest); @@ -95,8 +95,8 @@ declare class ApplePaySession extends EventTarget { /** * Call after a payment method has been selected. - * @param newTotal - An Apple​Pay​Line​Item dictionary representing the total price for the purchase. - * @param newLineItems - A sequence of Apple​Pay​Line​Item dictionaries. + * @param newTotal - An ApplePayLineItem dictionary representing the total price for the purchase. + * @param newLineItems - A sequence of ApplePayLineItem dictionaries. */ completePaymentMethodSelection(newTotal: ApplePayJS.ApplePayLineItem, newLineItems: ApplePayJS.ApplePayLineItem[]): void; @@ -104,8 +104,8 @@ declare class ApplePaySession extends EventTarget { * Call after a shipping contact has been selected. * @param status - The status of the shipping contact update. * @param newShippingMethods - A sequence of ApplePayShippingMethod dictionaries. - * @param newTotal - An Apple​Pay​Line​Item dictionary representing the total price for the purchase. - * @param newLineItems - A sequence of Apple​Pay​Line​Item dictionaries. + * @param newTotal - An ApplePayLineItem dictionary representing the total price for the purchase. + * @param newLineItems - A sequence of ApplePayLineItem dictionaries. */ completeShippingContactSelection( status: number, @@ -116,8 +116,8 @@ declare class ApplePaySession extends EventTarget { /** * Call after the shipping method has been selected. * @param status - The status of the shipping method update. - * @param newTotal - An Apple​Pay​Line​Item dictionary representing the total price for the purchase. - * @param newLineItems - A sequence of Apple​Pay​Line​Item dictionaries. + * @param newTotal - An ApplePayLineItem dictionary representing the total price for the purchase. + * @param newLineItems - A sequence of ApplePayLineItem dictionaries. */ completeShippingMethodSelection(status: number, newTotal: ApplePayJS.ApplePayLineItem, newLineItems: ApplePayJS.ApplePayLineItem[]): void; @@ -204,7 +204,7 @@ declare namespace ApplePayJS { } /** - * The Apple​Pay​Payment​Authorized​Event class defines the attributes contained by the ApplePaySession.onpaymentauthorized callback function. + * The ApplePayPaymentAuthorizedEvent class defines the attributes contained by the ApplePaySession.onpaymentauthorized callback function. */ abstract class ApplePayPaymentAuthorizedEvent extends Event { /** @@ -279,7 +279,7 @@ declare namespace ApplePayJS { /** * A string, suitable for display, that is the name of the payment network backing the card. - * The value is one of the supported networks specified in the supported​Networks property of the Apple​Pay​Payment​Request. + * The value is one of the supported networks specified in the supportedNetworks property of the ApplePayPaymentRequest. */ network: string; @@ -295,7 +295,7 @@ declare namespace ApplePayJS { } /** - * The Apple​Pay​Payment​Method​Selected​Event class defines the attributes contained by the ApplePaySession.onpaymentmethodselected callback function. + * The ApplePayPaymentMethodSelectedEvent class defines the attributes contained by the ApplePaySession.onpaymentmethodselected callback function. */ abstract class ApplePayPaymentMethodSelectedEvent extends Event { /** @@ -426,7 +426,7 @@ declare namespace ApplePayJS { } /** - * The Apple​Pay​Shipping​Contact​Selected​Event class defines the attributes contained by the ApplePaySession.onshippingcontactselected callback function. + * The ApplePayShippingContactSelectedEvent class defines the attributes contained by the ApplePaySession.onshippingcontactselected callback function. */ abstract class ApplePayShippingContactSelectedEvent extends Event { /** @@ -461,7 +461,7 @@ declare namespace ApplePayJS { } /** - * The Apple​Pay​Shipping​Method​Selected​Event class defines the attribute contained by the ApplePaySession.onshippingmethodselected callback function. + * The ApplePayShippingMethodSelectedEvent class defines the attribute contained by the ApplePaySession.onshippingmethodselected callback function. */ abstract class ApplePayShippingMethodSelectedEvent extends Event { /** @@ -471,7 +471,7 @@ declare namespace ApplePayJS { } /** - * The Apple​Pay​Validate​Merchant​Event class defines the attributes contained by the ApplePaySession.onvalidatemerchant callback function. + * The ApplePayValidateMerchantEvent class defines the attributes contained by the ApplePaySession.onvalidatemerchant callback function. */ abstract class ApplePayValidateMerchantEvent extends Event { /** diff --git a/types/applicationinsights-js/applicationinsights-js-tests.ts b/types/applicationinsights-js/applicationinsights-js-tests.ts index ecefb6d41a..49c68181f8 100644 --- a/types/applicationinsights-js/applicationinsights-js-tests.ts +++ b/types/applicationinsights-js/applicationinsights-js-tests.ts @@ -123,7 +123,7 @@ context.addTelemetryInitializer(envelope => { }); // a sample from: https://github.com/Microsoft/ApplicationInsights-JS/blob/master/API-reference.md#example context.addTelemetryInitializer(envelope => { - let telemetryItem = envelope.data.baseData; + const telemetryItem = envelope.data.baseData; if (envelope.name === Microsoft.ApplicationInsights.Telemetry.PageView.envelopeType) { telemetryItem.url = "URL CENSORED"; } diff --git a/types/applicationinsights-js/tslint.json b/types/applicationinsights-js/tslint.json index 0cc2f62b56..4b24c7ab0a 100644 --- a/types/applicationinsights-js/tslint.json +++ b/types/applicationinsights-js/tslint.json @@ -1,8 +1,11 @@ { "extends": "dtslint/dt.json", "rules": { - "interface-name": [ false ], + // All are TODOs + "interface-name": false, "no-internal-module": false, - "no-single-declare-module": false + "no-mergeable-namespace": false, + "no-single-declare-module": false, + "no-unnecessary-qualifier": false } } diff --git a/types/argparse/index.d.ts b/types/argparse/index.d.ts index 845d5d8fd3..2661b01c12 100644 --- a/types/argparse/index.d.ts +++ b/types/argparse/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for argparse v1.0.3 // Project: https://github.com/nodeca/argparse -// Definitions by: Andrew Schurman +// Definitions by: Andrew Schurman // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/askmethat-rating/askmethat-rating-tests.ts b/types/askmethat-rating/askmethat-rating-tests.ts index af0ab3cb88..af985d6358 100644 --- a/types/askmethat-rating/askmethat-rating-tests.ts +++ b/types/askmethat-rating/askmethat-rating-tests.ts @@ -1,6 +1,6 @@ import { AskmethatRating, AskmethatRatingSteps } from "askmethat-rating"; -let options = { +const options = { backgroundColor: "#e5e500", hoverColor: "#ffff66", fontClass: "fa fa-star", @@ -11,8 +11,8 @@ let options = { inputName: "AskmethatRating" }; -let div = document.createElement("div"); -let amcRating = new AskmethatRating(div, 2 , options); +const div = document.createElement("div"); +const amcRating = new AskmethatRating(div, 2 , options); options.readonly = true; amcRating.defaultOptions = options; diff --git a/types/auth0-lock/auth0-lock-tests.ts b/types/auth0-lock/auth0-lock-tests.ts index 3abe93a7c2..0642453a13 100644 --- a/types/auth0-lock/auth0-lock-tests.ts +++ b/types/auth0-lock/auth0-lock-tests.ts @@ -4,7 +4,7 @@ import Auth0Lock from 'auth0-lock'; const CLIENT_ID = "YOUR_AUTH0_APP_CLIENTID"; const DOMAIN = "YOUR_DOMAIN_AT.auth0.com"; -var lock: Auth0LockStatic = new Auth0Lock(CLIENT_ID, DOMAIN); +const lock: Auth0LockStatic = new Auth0Lock(CLIENT_ID, DOMAIN); lock.show(); lock.hide(); @@ -12,7 +12,7 @@ lock.logout(() => {}); // Show supports UI arguments -var showOptions : Auth0LockShowOptions = { +const showOptions : Auth0LockShowOptions = { allowedConnections: [ "twitter", "facebook" ], allowSignUp: true, allowForgotPassword: false, @@ -63,7 +63,7 @@ lock.on("authenticated", function(authResult : any) { // test theme -var themeOptions : Auth0LockConstructorOptions = { +const themeOptions : Auth0LockConstructorOptions = { theme: { authButtons: { fooProvider: { @@ -86,7 +86,7 @@ new Auth0Lock(CLIENT_ID, DOMAIN, themeOptions); // test empty theme -var themeOptionsEmpty : Auth0LockConstructorOptions = { +const themeOptionsEmpty : Auth0LockConstructorOptions = { theme: { } }; @@ -94,7 +94,7 @@ new Auth0Lock(CLIENT_ID, DOMAIN, themeOptions); // test authentication -var authOptions : Auth0LockConstructorOptions = { +const authOptions : Auth0LockConstructorOptions = { auth: { params: { state: "foo" }, redirect: true, @@ -108,7 +108,7 @@ new Auth0Lock(CLIENT_ID, DOMAIN, authOptions); // test multi-variant example -var multiVariantOptions : Auth0LockConstructorOptions = { +const multiVariantOptions : Auth0LockConstructorOptions = { container: "myContainer", closable: false, languageDictionary: { @@ -122,7 +122,7 @@ new Auth0Lock(CLIENT_ID, DOMAIN, multiVariantOptions); // test text-field additional sign up field -var textFieldOptions : Auth0LockConstructorOptions = { +const textFieldOptions : Auth0LockConstructorOptions = { additionalSignUpFields: [{ name: "address", placeholder: "enter your address", @@ -142,7 +142,7 @@ new Auth0Lock(CLIENT_ID, DOMAIN, textFieldOptions); // test select-field additional sign up field -var selectFieldOptions : Auth0LockConstructorOptions = { +const selectFieldOptions : Auth0LockConstructorOptions = { additionalSignUpFields: [{ type: "select", name: "location", @@ -162,7 +162,7 @@ new Auth0Lock(CLIENT_ID, DOMAIN, selectFieldOptions); // test select-field additional sign up field with callbacks for -var selectFieldOptionsWithCallbacks : Auth0LockConstructorOptions = { +const selectFieldOptionsWithCallbacks : Auth0LockConstructorOptions = { additionalSignUpFields: [{ type: "select", name: "location", @@ -171,7 +171,7 @@ var selectFieldOptionsWithCallbacks : Auth0LockConstructorOptions = { // obtain options, in case of error you call cb with the error in the // first arg instead of null - let options = [ + const options = [ {value: "us", label: "United States"}, {value: "fr", label: "France"}, {value: "ar", label: "Argentina"} @@ -184,7 +184,7 @@ var selectFieldOptionsWithCallbacks : Auth0LockConstructorOptions = { // obtain prefill, in case of error you call cb with the error in the // first arg instead of null - let prefill = "us"; + const prefill = "us"; cb(null, prefill); } @@ -195,13 +195,13 @@ new Auth0Lock(CLIENT_ID, DOMAIN, selectFieldOptionsWithCallbacks); // test Avatar options -var avatarOptions : Auth0LockConstructorOptions = { +const avatarOptions : Auth0LockConstructorOptions = { avatar: { url: (email : string, cb : Auth0LockAvatarUrlCallback) => { // obtain url for email, in case of error you call cb with the error in // the first arg instead of null - let url = "url"; + const url = "url"; cb(null, url); }, @@ -209,7 +209,7 @@ var avatarOptions : Auth0LockConstructorOptions = { // obtain displayName for email, in case of error you call cb with the // error in the first arg instead of null - let displayName = "displayName"; + const displayName = "displayName"; cb(null, displayName); } @@ -218,7 +218,7 @@ var avatarOptions : Auth0LockConstructorOptions = { new Auth0Lock(CLIENT_ID, DOMAIN, avatarOptions); -var authResult : AuthResult = { +const authResult : AuthResult = { accessToken: 'fake_access_token', idToken: 'fake_id_token', idTokenPayload: { diff --git a/types/auto-sni/auto-sni-tests.ts b/types/auto-sni/auto-sni-tests.ts index a271a1a1ad..6be54148fb 100644 --- a/types/auto-sni/auto-sni-tests.ts +++ b/types/auto-sni/auto-sni-tests.ts @@ -1,5 +1,5 @@ import * as autosni from "auto-sni"; -let a = autosni({ +const a = autosni({ agreeTos: true, email: '', domains: [''] diff --git a/types/babel-generator/babel-generator-tests.ts b/types/babel-generator/babel-generator-tests.ts index 1aeec38831..5efb98ba24 100644 --- a/types/babel-generator/babel-generator-tests.ts +++ b/types/babel-generator/babel-generator-tests.ts @@ -11,7 +11,7 @@ ast.loc.start; const output = generate(ast, { /* options */ }, code); // Example from https://github.com/thejameskyle/babel-handbook/blob/master/translations/en/plugin-handbook.md#babel-generator -let result = generate(ast, { +const result = generate(ast, { retainLines: false, compact: "auto", concise: false, diff --git a/types/babel-traverse/babel-traverse-tests.ts b/types/babel-traverse/babel-traverse-tests.ts index 571620fd09..1dd95060e4 100644 --- a/types/babel-traverse/babel-traverse-tests.ts +++ b/types/babel-traverse/babel-traverse-tests.ts @@ -29,7 +29,7 @@ const ast = babylon.parse(code); traverse(ast, { enter(path) { - let node = path.node; + const node = path.node; if (t.isIdentifier(node) && node.name === "n") { node.name = "x"; } @@ -85,10 +85,10 @@ const v1: Visitor = { // ... } - let id1 = path.scope.generateUidIdentifier("uid"); + const id1 = path.scope.generateUidIdentifier("uid"); id1.type; id1.name; - let id2 = path.scope.generateUidIdentifier("uid"); + const id2 = path.scope.generateUidIdentifier("uid"); id2.type; id2.name; diff --git a/types/babel-traverse/index.d.ts b/types/babel-traverse/index.d.ts index 01f00c75c8..526f8ffd1c 100644 --- a/types/babel-traverse/index.d.ts +++ b/types/babel-traverse/index.d.ts @@ -8,7 +8,7 @@ import * as t from 'babel-types'; export type Node = t.Node; -export default function traverse(parent: Node | Node[], opts?: TraverseOptions, scope?: Scope, state?: any, parentPath?: NodePath): void; +export default function traverse(parent: Node | Node[], opts?: TraverseOptions, scope?: Scope, state?: any, parentPath?: NodePath): void; export interface TraverseOptions extends Visitor { scope?: Scope; @@ -16,8 +16,8 @@ export interface TraverseOptions extends Visitor { } export class Scope { - constructor(path: NodePath, parentScope?: Scope); - path: NodePath; + constructor(path: NodePath, parentScope?: Scope); + path: NodePath; block: Node; parentBlock: Node; parent: Scope; @@ -61,13 +61,13 @@ export class Scope { toArray(node: Node, i?: number): Node; - registerDeclaration(path: NodePath): void; + registerDeclaration(path: NodePath): void; buildUndefinedNode(): Node; - registerConstantViolation(path: NodePath): void; + registerConstantViolation(path: NodePath): void; - registerBinding(kind: string, path: NodePath, bindingPath?: NodePath): void; + registerBinding(kind: string, path: NodePath, bindingPath?: NodePath): void; addGlobal(node: Node): void; @@ -121,16 +121,16 @@ export class Scope { } export class Binding { - constructor(opts: { existing: Binding; identifier: t.Identifier; scope: Scope; path: NodePath; kind: 'var' | 'let' | 'const'; }); + constructor(opts: { existing: Binding; identifier: t.Identifier; scope: Scope; path: NodePath; kind: 'var' | 'let' | 'const'; }); identifier: t.Identifier; scope: Scope; - path: NodePath; + path: NodePath; kind: 'var' | 'let' | 'const' | 'module'; referenced: boolean; references: number; - referencePaths: Array>; + referencePaths: NodePath[]; constant: boolean; - constantViolations: Array>; + constantViolations: NodePath[]; } export interface Visitor extends VisitNodeObject { @@ -328,7 +328,7 @@ export class NodePath { state: any; opts: object; skipKeys: object; - parentPath: NodePath; + parentPath: NodePath; context: TraversalContext; container: object | object[]; listKey: string; @@ -362,15 +362,15 @@ export class NodePath { * Call the provided `callback` with the `NodePath`s of all the parents. * When the `callback` returns a truthy value, we return that node path. */ - findParent(callback: (path: NodePath) => boolean): NodePath; + findParent(callback: (path: NodePath) => boolean): NodePath; - find(callback: (path: NodePath) => boolean): NodePath; + find(callback: (path: NodePath) => boolean): NodePath; /** Get the parent function of the current path. */ - getFunctionParent(): NodePath; + getFunctionParent(): NodePath; /** Walk up the tree until we hit a parent node path in a list. */ - getStatementParent(): NodePath; + getStatementParent(): NodePath; /** * Get the deepest common ancestor and then from it, get the earliest relationship path @@ -379,20 +379,20 @@ export class NodePath { * Earliest is defined as being "before" all the other nodes in terms of list container * position and visiting key. */ - getEarliestCommonAncestorFrom(paths: Array>): Array>; + getEarliestCommonAncestorFrom(paths: NodePath[]): NodePath[]; /** Get the earliest path in the tree where the provided `paths` intersect. */ getDeepestCommonAncestorFrom( - paths: Array>, - filter?: (deepest: Node, i: number, ancestries: Array>) => NodePath - ): NodePath; + paths: NodePath[], + filter?: (deepest: Node, i: number, ancestries: NodePath[]) => NodePath + ): NodePath; /** * Build an array of node paths containing the entire ancestry of the current node path. * * NOTE: The current node path is included in this. */ - getAncestry(): Array>; + getAncestry(): NodePath[]; inType(...candidateTypes: string[]): boolean; @@ -404,7 +404,7 @@ export class NodePath { couldBeBaseType(name: string): boolean; - baseTypeStrictlyMatches(right: NodePath): boolean; + baseTypeStrictlyMatches(right: NodePath): boolean; isGenericType(genericName: string): boolean; @@ -428,7 +428,7 @@ export class NodePath { replaceWithSourceString(replacement: any): void; /** Replace the current node with another. */ - replaceWith(replacement: Node | NodePath): void; + replaceWith(replacement: Node | NodePath): void; /** * This method takes an array of statements nodes and then explodes it @@ -573,13 +573,13 @@ export class NodePath { hoist(scope: Scope): void; // ------------------------- family ------------------------- - getOpposite(): NodePath; + getOpposite(): NodePath; - getCompletionRecords(): Array>; + getCompletionRecords(): NodePath[]; - getSibling(key: string): NodePath; + getSibling(key: string): NodePath; - get(key: string, context?: boolean | TraversalContext): NodePath; + get(key: string, context?: boolean | TraversalContext): NodePath; getBindingIdentifiers(duplicates?: boolean): Node[]; @@ -960,7 +960,7 @@ export class Hub { } export interface TraversalContext { - parentPath: NodePath; + parentPath: NodePath; scope: Scope; state: any; opts: any; diff --git a/types/babel-types/babel-types-tests.ts b/types/babel-types/babel-types-tests.ts index 0ef79f39f4..af8ab2d0b7 100644 --- a/types/babel-types/babel-types-tests.ts +++ b/types/babel-types/babel-types-tests.ts @@ -2,11 +2,11 @@ import traverse from "babel-traverse"; import * as t from "babel-types"; -let ast: t.Node; +declare const ast: t.Node; traverse(ast, { enter(path) { - let node = path.node; + const node = path.node; if (t.isIdentifier(node, { name: "n" })) { node.name = "x"; } @@ -31,7 +31,7 @@ const exp: t.Expression = t.nullLiteral(); // https://github.com/babel/babel/blob/4e50b2d9d9c376cee7a2cbf56553fe5b982ea53c/packages/babel-plugin-transform-react-inline-elements/src/index.js#L61 traverse(ast, { JSXElement(path, file) { - const { node } = path; + const { node } = path; const open = node.openingElement; // init diff --git a/types/babylon/babylon-tests.ts b/types/babylon/babylon-tests.ts index d844b9a8f7..2a5ddfcb57 100644 --- a/types/babylon/babylon-tests.ts +++ b/types/babylon/babylon-tests.ts @@ -6,7 +6,7 @@ const code = `function square(n) { return n * n; }`; -let node = babylon.parse(code); +const node = babylon.parse(code); assert(node.type === "File"); assert(node.start === 0); assert(node.end === 38); diff --git a/types/bagpipes/bagpipes-tests.ts b/types/bagpipes/bagpipes-tests.ts index af7dfa0a31..eaa412d56b 100755 --- a/types/bagpipes/bagpipes-tests.ts +++ b/types/bagpipes/bagpipes-tests.ts @@ -56,11 +56,11 @@ const pipesConfigFullEmpty: Bagpipes.Config = { userViewsDirs: [] }; -let pipesA = Bagpipes.create(perDefsMixed, { +const pipesA = Bagpipes.create(perDefsMixed, { connectMiddlewareDirs: ['some_dir', 'ssssss'], swaggerNodeRunner: {} }); -let pipeA = pipesA.getPipe('HelloWorld'); +const pipeA = pipesA.getPipe('HelloWorld'); // log the output to standard out pipeA.fit((context, cb) => { @@ -81,7 +81,7 @@ const pipeErrTest = pipesEnty.pipes['any'].fit((context, cb) => { pipesEnty.play(pipeErrTest, {}); const fittingsC = ["xxxx", "aaa"].map((name) => { - let fittingDef = {} as Bagpipes.PipeDefMap; + const fittingDef = {} as Bagpipes.PipeDefMap; fittingDef[name] = 'nothing'; return fittingDef; }); @@ -95,6 +95,6 @@ bagpipesD.play(bagpipesD.getPipe('objPipe'), {}); // Test full create const userFittingsDirs = ['./fixtures/fittings']; const pipeWithString = ['emit']; -let contextPlain = {}; +const contextPlain = {}; const bagpipesWithPipeAndFittings = Bagpipes.create({ myCustomPipe: pipeWithString }, { userFittingsDirs }); bagpipesWithPipeAndFittings.play(bagpipesWithPipeAndFittings.getPipe('myCustomPipe'), contextPlain); diff --git a/types/baidumap-web-sdk/baidumap-web-sdk-tests.ts b/types/baidumap-web-sdk/baidumap-web-sdk-tests.ts index cc525509c6..8ac6457975 100644 --- a/types/baidumap-web-sdk/baidumap-web-sdk-tests.ts +++ b/types/baidumap-web-sdk/baidumap-web-sdk-tests.ts @@ -4,8 +4,8 @@ namespace BMapTests { //document: http://lbsyun.baidu.com/index.php?title=jspopular public createMap(container: string | HTMLElement) { navigator.geolocation.getCurrentPosition((position: Position) => { - let point = new BMap.Point(position.coords.longitude, position.coords.latitude); - let map = new BMap.Map(container); + const point = new BMap.Point(position.coords.longitude, position.coords.latitude); + const map = new BMap.Map(container); map.centerAndZoom(point, 15); }, console.log, { maximumAge: 3000, timeout: 5000, enableHighAccuracy: true }); } @@ -16,7 +16,7 @@ namespace BMapTests { map.addControl(new BMap.OverviewMapControl({ isOpen: true, anchor: BMAP_ANCHOR_BOTTOM_RIGHT })); } public addMarker(map: BMap.Map, point: BMap.Point) { - var marker = new BMap.Marker(point); + const marker = new BMap.Marker(point); map.addOverlay(marker); marker.setAnimation(BMAP_ANIMATION_BOUNCE); } diff --git a/types/batch-stream/index.d.ts b/types/batch-stream/index.d.ts index 26c433a04b..2ab8c6b8c5 100644 --- a/types/batch-stream/index.d.ts +++ b/types/batch-stream/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for batch-stream 0.1.2 // Project: https://github.com/segmentio/batch-stream -// Definitions by: Nicholas Penree +// Definitions by: Nicholas Penree // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// diff --git a/types/bignumber.js/bignumber.js-tests.ts b/types/bignumber.js/bignumber.js-tests.ts index 8ea0775dba..424665d8ba 100644 --- a/types/bignumber.js/bignumber.js-tests.ts +++ b/types/bignumber.js/bignumber.js-tests.ts @@ -182,7 +182,7 @@ x.floor(); y = new BigNumber(-1.3); y.floor(); -0.1 > (0.3 - 0.2); +0.1 > (0.3 - 0.2); // tslint:disable-line binary-expression-operand-order x = new BigNumber(0.1); x.greaterThan(BigNumber(0.3).minus(0.2)); BigNumber(0).gt(x); diff --git a/types/bleno/bleno-tests.ts b/types/bleno/bleno-tests.ts index 7dcb47ff35..bd4b6971ee 100644 --- a/types/bleno/bleno-tests.ts +++ b/types/bleno/bleno-tests.ts @@ -45,7 +45,7 @@ Bleno.on('stateChange', (state: string) => { } }); -let characteristic = new EchoCharacteristic(); +const characteristic = new EchoCharacteristic(); Bleno.on('advertisingStart', (error: string) => { if (!error) { Bleno.setServices( diff --git a/types/bloomfilter/bloomfilter-tests.ts b/types/bloomfilter/bloomfilter-tests.ts index 650cc97eb4..96ee0443b6 100644 --- a/types/bloomfilter/bloomfilter-tests.ts +++ b/types/bloomfilter/bloomfilter-tests.ts @@ -1,7 +1,7 @@ import { BloomFilter } from 'bloomfilter'; function test_bloomfilter() { - const m: number = 10; - const k: number = 2; + const m = 10; + const k = 2; const bloomFilter = new BloomFilter(m, k); const array: Int32Array[] = bloomFilter.buckets; diff --git a/types/bookshelf/index.d.ts b/types/bookshelf/index.d.ts index 914107816f..1d7a6feb14 100644 --- a/types/bookshelf/index.d.ts +++ b/types/bookshelf/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for bookshelfjs v0.9.3 // Project: http://bookshelfjs.org/ -// Definitions by: Andrew Schurman , Vesa Poikajärvi +// Definitions by: Andrew Schurman , Vesa Poikajärvi // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 diff --git a/types/boom/index.d.ts b/types/boom/index.d.ts index 97a0f7ef59..8025a7ddab 100644 --- a/types/boom/index.d.ts +++ b/types/boom/index.d.ts @@ -1,8 +1,8 @@ // Type definitions for boom 4.3 -// Project: http://github.com/hapijs/boom -// Definitions by: Igor Rogatty -// AJP -// Jinesh Shah +// Project: https://github.com/hapijs/boom +// Definitions by: Igor Rogatty +// AJP +// Jinesh Shah // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 diff --git a/types/boom/v3/index.d.ts b/types/boom/v3/index.d.ts index 2c0a3ce21d..adf433c9f4 100644 --- a/types/boom/v3/index.d.ts +++ b/types/boom/v3/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for boom 3.2 -// Project: http://github.com/hapijs/boom -// Definitions by: Igor Rogatty +// Project: https://github.com/hapijs/boom +// Definitions by: Igor Rogatty // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// diff --git a/types/bootstrap.v3.datetimepicker/bootstrap.v3.datetimepicker-tests.ts b/types/bootstrap.v3.datetimepicker/bootstrap.v3.datetimepicker-tests.ts index 9f2b780f44..fe985e229f 100644 --- a/types/bootstrap.v3.datetimepicker/bootstrap.v3.datetimepicker-tests.ts +++ b/types/bootstrap.v3.datetimepicker/bootstrap.v3.datetimepicker-tests.ts @@ -118,7 +118,7 @@ function test_timeZone() { function test_widgetParent() { let nullW: null = null; - let str: string = "myId"; + let str = "myId"; let jquery = $("#element"); $("#picker").datetimepicker({ diff --git a/types/bootstrap.v3.datetimepicker/index.d.ts b/types/bootstrap.v3.datetimepicker/index.d.ts index 9f2f5dda78..7b1d3877ba 100644 --- a/types/bootstrap.v3.datetimepicker/index.d.ts +++ b/types/bootstrap.v3.datetimepicker/index.d.ts @@ -589,7 +589,7 @@ export interface UpdateEvent extends JQueryEventObject { viewDate: moment.Moment; } -export type EventName = "dp.show" | "dp.hide" | "dp.error"; +export type EventName = "dp.show" | "dp.hide" | "dp.error"; declare global { interface JQuery { diff --git a/types/bounce.js/index.d.ts b/types/bounce.js/index.d.ts index 0db872fb30..c90f709a97 100644 --- a/types/bounce.js/index.d.ts +++ b/types/bounce.js/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for Bounce.js v0.8.2 -// Project: http://github.com/tictail/bounce.js -// Definitions by: Cherry +// Project: https://github.com/tictail/bounce.js +// Definitions by: Cherry // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 diff --git a/types/box2d/README.md b/types/box2d/README.md index 9a775a1962..e16b327ee1 100644 --- a/types/box2d/README.md +++ b/types/box2d/README.md @@ -73,7 +73,7 @@ Change Log License ======= -Box2DWeb-2.1.d.ts Copyright (c) 2012 Josh Baldwin http://github.com/jbaldwin/box2dweb.d.ts +Box2DWeb-2.1.d.ts Copyright (c) 2012 Josh Baldwin https://github.com/jbaldwin/box2dweb.d.ts There are a few competing javascript Box2D ports. This definitions file is for Box2dWeb.js -> http://code.google.com/p/box2dweb/ diff --git a/types/box2d/index.d.ts b/types/box2d/index.d.ts index 26411b2198..181c5537d2 100644 --- a/types/box2d/index.d.ts +++ b/types/box2d/index.d.ts @@ -4,7 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /** -* Box2DWeb-2.1.d.ts Copyright (c) 2012-2013 Josh Baldwin http://github.com/jbaldwin/box2dweb.d.ts +* Box2DWeb-2.1.d.ts Copyright (c) 2012-2013 Josh Baldwin https://github.com/jbaldwin/box2dweb.d.ts * There are a few competing javascript Box2D ports. * This definitions file is for Box2dWeb.js -> * http://code.google.com/p/box2dweb/ diff --git a/types/browser-sync/index.d.ts b/types/browser-sync/index.d.ts index 449063192d..ade12d3cb6 100644 --- a/types/browser-sync/index.d.ts +++ b/types/browser-sync/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for browser-sync // Project: http://www.browsersync.io/ -// Definitions by: Asana , Joe Skeen +// Definitions by: Asana , Joe Skeen // Thomas "Thasmo" Deinhamer // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/bunyan/bunyan-tests.ts b/types/bunyan/bunyan-tests.ts index 48c9a6c809..ffdfb2e911 100644 --- a/types/bunyan/bunyan-tests.ts +++ b/types/bunyan/bunyan-tests.ts @@ -1,9 +1,9 @@ import Logger = require('bunyan'); -let ringBufferOptions: Logger.RingBufferOptions = { +const ringBufferOptions: Logger.RingBufferOptions = { limit: 100 }; -let ringBuffer: Logger.RingBuffer = new Logger.RingBuffer(ringBufferOptions); +const ringBuffer: Logger.RingBuffer = new Logger.RingBuffer(ringBufferOptions); ringBuffer.write("hello"); let level: number; @@ -20,7 +20,7 @@ level = Logger.resolveLevel(Logger.WARN); level = Logger.resolveLevel(Logger.ERROR); level = Logger.resolveLevel(Logger.FATAL); -let options: Logger.LoggerOptions = { +const options: Logger.LoggerOptions = { name: 'test-logger', serializers: Logger.stdSerializers, streams: [{ @@ -51,9 +51,9 @@ let options: Logger.LoggerOptions = { }] }; -let log = Logger.createLogger(options); +const log = Logger.createLogger(options); -let customSerializer = (anything: any) => { +const customSerializer = (anything: any) => { return { obj: anything }; }; @@ -67,7 +67,7 @@ log.addSerializers( } ); -let levels: number[] = log.levels(); +const levels: number[] = log.levels(); level = log.levels(0); log.levels('foo'); @@ -75,9 +75,9 @@ log.levels(0, Logger.INFO); log.levels(0, 'info'); log.levels('foo', Logger.WARN); -let buffer = new Buffer(0); -let error = new Error(''); -let object = { +const buffer = new Buffer(0); +const error = new Error(''); +const object = { test: 123 }; @@ -112,7 +112,7 @@ log.fatal(error); log.fatal(object); log.fatal('Hello, %s', 'world!'); -let recursive: any = { +const recursive: any = { hello: 'world', whats: {} }; diff --git a/types/bytebuffer/index.d.ts b/types/bytebuffer/index.d.ts index 1cf7142592..8456f28182 100644 --- a/types/bytebuffer/index.d.ts +++ b/types/bytebuffer/index.d.ts @@ -1,8 +1,8 @@ // Type definitions for bytebuffer.js 5.0.0 // Project: https://github.com/dcodeIO/bytebuffer.js -// Definitions by: Denis Cappellin +// Definitions by: Denis Cappellin // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -// Definitions by: SINTEF-9012 +// Definitions by: SINTEF-9012 import Long = require("long"); diff --git a/types/c3/c3-tests.ts b/types/c3/c3-tests.ts index 029946c710..509678636b 100644 --- a/types/c3/c3-tests.ts +++ b/types/c3/c3-tests.ts @@ -3,7 +3,7 @@ ////////////////// function chart_examples() { - let chart = c3.generate({ + const chart = c3.generate({ data: {}, bindto: "#myContainer", size: { @@ -30,19 +30,19 @@ function chart_examples() { onresized: () => { /* code*/ } }); - let chart2 = c3.generate({ + const chart2 = c3.generate({ bindto: document.getElementById("myContainer"), data: {} }); - let chart3 = c3.generate({ + const chart3 = c3.generate({ bindto: d3.select("#myContainer"), data: {} }); } function data_examples() { - let chart = c3.generate({ + const chart = c3.generate({ data: { url: "/data/c3_test.csv", json: [ @@ -126,7 +126,7 @@ function data_examples() { } }); - let chart2 = c3.generate({ + const chart2 = c3.generate({ data: { labels: { format: (v, id, i, j) => { /* code */ } }, hide: ["data1"] @@ -135,7 +135,7 @@ function data_examples() { } function axis_examples() { - let chart = c3.generate({ + const chart = c3.generate({ data: {}, axis: { rotated: true, @@ -207,7 +207,7 @@ function axis_examples() { } }); - let chart2 = c3.generate({ + const chart2 = c3.generate({ data: {}, axis: { x: { @@ -241,7 +241,7 @@ function axis_examples() { } function grid_examples() { - let chart = c3.generate({ + const chart = c3.generate({ data: {}, grid: { x: { @@ -265,7 +265,7 @@ function grid_examples() { } function region_examples() { - let chart = c3.generate({ + const chart = c3.generate({ data: {}, regions: [ { axis: "x", start: 1, end: 4, class: "region-1-4" }, @@ -274,7 +274,7 @@ function region_examples() { } function legend_examples() { - let chart = c3.generate({ + const chart = c3.generate({ data: {}, legend: { show: true, @@ -294,7 +294,7 @@ function legend_examples() { } }); - let chart2 = c3.generate({ + const chart2 = c3.generate({ data: {}, legend: { hide: "data1", @@ -307,7 +307,7 @@ function legend_examples() { } }); - let chart3 = c3.generate({ + const chart3 = c3.generate({ data: {}, legend: { hide: ["data1", "data2"] @@ -316,7 +316,7 @@ function legend_examples() { } function subchart_examples() { - let chart = c3.generate({ + const chart = c3.generate({ data: {}, subchart: { show: true, @@ -329,7 +329,7 @@ function subchart_examples() { } function zoom_examples() { - let chart = c3.generate({ + const chart = c3.generate({ data: {}, zoom: { enabled: false, @@ -343,7 +343,7 @@ function zoom_examples() { } function point_examples() { - let chart = c3.generate({ + const chart = c3.generate({ data: {}, point: { show: false, @@ -362,7 +362,7 @@ function point_examples() { } function line_examples() { - let chart = c3.generate({ + const chart = c3.generate({ data: {}, line: { connectNull: true, @@ -374,7 +374,7 @@ function line_examples() { } function area_examples() { - let chart = c3.generate({ + const chart = c3.generate({ data: {}, area: { zerobased: false @@ -383,7 +383,7 @@ function area_examples() { } function bar_examples() { - let chart = c3.generate({ + const chart = c3.generate({ data: {}, bar: { width: 10, @@ -391,7 +391,7 @@ function bar_examples() { } }); - let chart2 = c3.generate({ + const chart2 = c3.generate({ data: {}, bar: { width: { @@ -403,7 +403,7 @@ function bar_examples() { } function pie_examples() { - let chart = c3.generate({ + const chart = c3.generate({ data: {}, pie: { label: { @@ -419,7 +419,7 @@ function pie_examples() { } function donut_examples() { - let chart = c3.generate({ + const chart = c3.generate({ data: {}, donut: { label: { @@ -437,7 +437,7 @@ function donut_examples() { } function gauge_examples() { - let chart = c3.generate({ + const chart = c3.generate({ data: {}, gauge: { label: { @@ -460,7 +460,7 @@ function gauge_examples() { ///////////////// function simple_multiple() { - let chart = c3.generate({ + const chart = c3.generate({ data: { columns: [ ["data1", 30, 200, 100, 400, 150, 250], @@ -481,7 +481,7 @@ function simple_multiple() { } function timeseries() { - let chart = c3.generate({ + const chart = c3.generate({ data: { x: "x", xFormat: "%Y%m%d", // 'xFormat' can be used as custom format of 'x' @@ -503,7 +503,7 @@ function timeseries() { } function chart_spline() { - let chart = c3.generate({ + const chart = c3.generate({ data: { columns: [ ["data1", 30, 200, 100, 400, 150, 250], @@ -515,7 +515,7 @@ function chart_spline() { } function simple_xy() { - let chart = c3.generate({ + const chart = c3.generate({ data: { x: "x", columns: [ @@ -528,7 +528,7 @@ function simple_xy() { } function simple_xy_multiple() { - let chart = c3.generate({ + const chart = c3.generate({ data: { xs: { data1: "x1", @@ -545,7 +545,7 @@ function simple_xy_multiple() { } function simple_regions() { - let chart = c3.generate({ + const chart = c3.generate({ data: { columns: [ ["data1", 30, 200, 100, 400, 150, 250], @@ -560,7 +560,7 @@ function simple_regions() { } function chart_step() { - let chart = c3.generate({ + const chart = c3.generate({ data: { columns: [ ["data1", 300, 350, 300, 0, 0, 100], @@ -575,7 +575,7 @@ function chart_step() { } function area_chart() { - let chart = c3.generate({ + const chart = c3.generate({ data: { columns: [ ["data1", 300, 350, 300, 0, 0, 0], @@ -590,7 +590,7 @@ function area_chart() { } function chart_area_stacked() { - let chart = c3.generate({ + const chart = c3.generate({ data: { columns: [ ["data1", 300, 350, 300, 0, 0, 120], @@ -607,7 +607,7 @@ function chart_area_stacked() { } function chart_bar() { - let chart = c3.generate({ + const chart = c3.generate({ data: { columns: [ ["data1", 30, 200, 100, 400, 150, 250], @@ -627,7 +627,7 @@ function chart_bar() { } function chart_bar_stacked() { - let chart = c3.generate({ + const chart = c3.generate({ data: { columns: [ ["data1", -30, 200, 200, 400, -150, 250], @@ -648,7 +648,7 @@ function chart_bar_stacked() { } function chart_scatter() { - let chart = c3.generate({ + const chart = c3.generate({ data: { xs: { setosa: "setosa_x", @@ -682,7 +682,7 @@ function chart_scatter() { } function chart_pie() { - let chart = c3.generate({ + const chart = c3.generate({ data: { // iris data from R columns: [ @@ -698,7 +698,7 @@ function chart_pie() { } function chart_donut() { - let chart = c3.generate({ + const chart = c3.generate({ data: { columns: [ ["data1", 30], @@ -716,7 +716,7 @@ function chart_donut() { } function gauge_chart() { - let chart = c3.generate({ + const chart = c3.generate({ data: { columns: [ ["data", 91.4] @@ -753,7 +753,7 @@ function gauge_chart() { } function chart_combination() { - let chart = c3.generate({ + const chart = c3.generate({ data: { columns: [ ["data1", 30, 20, 50, 40, 60, 50], @@ -781,7 +781,7 @@ function chart_combination() { //////////////////// function categorized() { - let chart = c3.generate({ + const chart = c3.generate({ data: { columns: [ ["data1", 30, 200, 100, 400, 150, 250, 50, 100, 250] @@ -797,7 +797,7 @@ function categorized() { } function axes_rotated() { - let chart = c3.generate({ + const chart = c3.generate({ data: { columns: [ ["data1", 30, 200, 100, 400, 150, 250], @@ -814,7 +814,7 @@ function axes_rotated() { } function axes_y2() { - let chart = c3.generate({ + const chart = c3.generate({ data: { columns: [ ["data1", 30, 200, 100, 400, 150, 250], @@ -834,7 +834,7 @@ function axes_y2() { } function axes_x_tick_format() { - let chart = c3.generate({ + const chart = c3.generate({ data: { x: "x", columns: [ @@ -855,7 +855,7 @@ function axes_x_tick_format() { } function axes_x_tick_count() { - let chart = c3.generate({ + const chart = c3.generate({ data: { x: "x", columns: [ @@ -876,7 +876,7 @@ function axes_x_tick_count() { } function axes_x_tick_values() { - let chart = c3.generate({ + const chart = c3.generate({ data: { x: "x", columns: [ @@ -897,7 +897,7 @@ function axes_x_tick_values() { } function axes_x_tick_culling() { - let chart = c3.generate({ + const chart = c3.generate({ data: { columns: [ ["sample", 30, 200, 100, 400, 150, 250, 30, 200, 100, 400, 150, 250, 30, 200, 100, 400, 150, 250, 200, 100, 400, 150, 250] @@ -919,7 +919,7 @@ function axes_x_tick_culling() { } function axes_x_tick_fit() { - let chart = c3.generate({ + const chart = c3.generate({ data: { x: "x", columns: [ @@ -940,7 +940,7 @@ function axes_x_tick_fit() { } function axes_x_localtime() { - let chart = c3.generate({ + const chart = c3.generate({ data: { x: "x", xFormat: "%Y", @@ -966,7 +966,7 @@ function axes_x_localtime() { } function axes_x_tick_rotate() { - let chart = c3.generate({ + const chart = c3.generate({ data: { x: "x", columns: [ @@ -990,7 +990,7 @@ function axes_x_tick_rotate() { } function axes_y_tick_format() { - let chart = c3.generate({ + const chart = c3.generate({ data: { columns: [ ["sample", 30, 200, 100, 400, 150, 2500] @@ -1008,7 +1008,7 @@ function axes_y_tick_format() { } function axes_y_padding() { - let chart = c3.generate({ + const chart = c3.generate({ data: { columns: [ ["data1", 30, 200, 100, 400, 150, 250], @@ -1032,7 +1032,7 @@ function axes_y_padding() { } function axes_y_range() { - let chart = c3.generate({ + const chart = c3.generate({ data: { columns: [ ["sample", 30, 200, 100, 400, 150, 250] @@ -1050,7 +1050,7 @@ function axes_y_range() { } function axes_label() { - let chart = c3.generate({ + const chart = c3.generate({ data: { columns: [ ["sample", 30, 200, 100, 400, 150, 250], @@ -1076,7 +1076,7 @@ function axes_label() { } function axes_label_position() { - let chart = c3.generate({ + const chart = c3.generate({ data: { columns: [ ["sample1", 30, 200, 100, 400, 150, 250], @@ -1134,7 +1134,7 @@ function axes_label_position() { /////////////////// function data_columned() { - let chart = c3.generate({ + const chart = c3.generate({ data: { columns: [ ["data1", 30, 20, 50, 40, 60, 50], @@ -1146,7 +1146,7 @@ function data_columned() { } function data_rowed() { - let chart = c3.generate({ + const chart = c3.generate({ data: { rows: [ ["data1", "data2", "data3"], @@ -1210,7 +1210,7 @@ function data_json() { } function data_url() { - let chart = c3.generate({ + const chart = c3.generate({ data: { url: "/data/c3_test.csv" } @@ -1227,7 +1227,7 @@ function data_url() { } function data_stringx() { - let chart = c3.generate({ + const chart = c3.generate({ data: { x: "x", columns: [ @@ -1294,7 +1294,7 @@ function data_stringx() { } function data_load() { - let chart = c3.generate({ + const chart = c3.generate({ data: { url: "/data/c3_test.csv", type: "line" @@ -1397,7 +1397,7 @@ function data_load() { } function data_name() { - let chart = c3.generate({ + const chart = c3.generate({ data: { columns: [ ["data1", 30, 200, 100, 400, 150, 250], @@ -1412,7 +1412,7 @@ function data_name() { } function data_color() { - let chart = c3.generate({ + const chart = c3.generate({ data: { columns: [ ["data1", 30, 20, 50, 40, 60, 50], @@ -1434,7 +1434,7 @@ function data_color() { } function data_order() { - let chart = c3.generate({ + const chart = c3.generate({ data: { columns: [ ["data1", 130, 200, 320, 400, 530, 750], @@ -1478,7 +1478,7 @@ function data_order() { } function data_label() { - let chart = c3.generate({ + const chart = c3.generate({ data: { columns: [ ["data1", 30, -200, -100, 400, 150, 250], @@ -1500,7 +1500,7 @@ function data_label() { } function data_label_format() { - let chart = c3.generate({ + const chart = c3.generate({ data: { columns: [ ["data1", 30, -200, -100, 400, 150, 250], @@ -1532,7 +1532,7 @@ function data_label_format() { /////////////////// function options_gridline() { - let chart = c3.generate({ + const chart = c3.generate({ data: { columns: [ ["sample", 30, 200, 100, 400, 150, 250, 120, 200] @@ -1550,7 +1550,7 @@ function options_gridline() { } function grid_x_lines() { - let chart = c3.generate({ + const chart = c3.generate({ data: { columns: [ ["sample", 30, 200, 100, 400, 150, 250] @@ -1569,7 +1569,7 @@ function grid_x_lines() { } function grid_y_lines() { - let chart = c3.generate({ + const chart = c3.generate({ data: { columns: [ ["sample", 30, 200, 100, 400, 150, 250], @@ -1601,7 +1601,7 @@ function grid_y_lines() { /////////////////// function region() { - let chart = c3.generate({ + const chart = c3.generate({ data: { columns: [ ["data1", 30, 200, 100, 400, 150, 250, 400], @@ -1631,7 +1631,7 @@ function region() { } function region_timeseries() { - let chart = c3.generate({ + const chart = c3.generate({ data: { x: "date", columns: [ @@ -1657,7 +1657,7 @@ function region_timeseries() { ///////////////////// function options_subchart() { - let chart = c3.generate({ + const chart = c3.generate({ data: { columns: [ ["sample", 30, 200, 100, 400, 150, 250] @@ -1670,7 +1670,7 @@ function options_subchart() { } function interaction_zoom() { - let chart = c3.generate({ + const chart = c3.generate({ data: { columns: [ ["sample", 30, 200, 100, 400, 150, 250, 150, 200, 170, 240, 350, 150, 100, 400, 150, 250, 150, 200, 170, 240, 100, 150, 250, 150, 200, 170, 240, 30, 200, 100, 400, 150, 250, 150, @@ -1688,7 +1688,7 @@ function interaction_zoom() { ///////////////////// function options_legend() { - let chart = c3.generate({ + const chart = c3.generate({ data: { columns: [ ["sample", 30, 200, 100, 400, 150, 250] @@ -1701,7 +1701,7 @@ function options_legend() { } function legend_position() { - let chart = c3.generate({ + const chart = c3.generate({ data: { columns: [ ["data1", 30, 200, 100, 400, 150, 250], @@ -1737,7 +1737,7 @@ function legend_position() { } function legend_custom() { - let chart = c3.generate({ + const chart = c3.generate({ data: { columns: [ ["data1", 100], @@ -1781,7 +1781,7 @@ function legend_custom() { ///////////////////// function tooltip_show() { - let chart = c3.generate({ + const chart = c3.generate({ data: { columns: [ ["data1", 30, 200, 100, 400, 150, 250], @@ -1795,7 +1795,7 @@ function tooltip_show() { } function tooltip_grouped() { - let chart = c3.generate({ + const chart = c3.generate({ data: { columns: [ ["data1", 30, 200, 100, 400, 150, 250], @@ -1810,7 +1810,7 @@ function tooltip_grouped() { } function tooltip_format() { - let chart = c3.generate({ + const chart = c3.generate({ data: { columns: [ ["data1", 30000, 20000, 10000, 40000, 15000, 250000], @@ -1837,7 +1837,7 @@ function tooltip_format() { format: { title: (d: any) => "Data " + d, value: (value: any, ratio: any, id: any) => { - let format = id === "data1" ? d3.format(",") : d3.format("$"); + const format = id === "data1" ? d3.format(",") : d3.format("$"); return format(value); } // value: d3.format(",") // apply this format to both y and y2 @@ -1851,7 +1851,7 @@ function tooltip_format() { //////////////////////// function options_size() { - let chart = c3.generate({ + const chart = c3.generate({ size: { height: 240, width: 480 @@ -1865,7 +1865,7 @@ function options_size() { } function options_padding() { - let chart = c3.generate({ + const chart = c3.generate({ padding: { top: 40, right: 100, @@ -1881,7 +1881,7 @@ function options_padding() { } function options_color() { - let chart = c3.generate({ + const chart = c3.generate({ data: { columns: [ ["data1", 30, 200, 100, 400, 150, 250], @@ -1900,7 +1900,7 @@ function options_color() { } function transition_duration() { - let chart = c3.generate({ + const chart = c3.generate({ data: { url: "/data/c3_test.csv" }, @@ -1953,7 +1953,7 @@ function transition_duration() { ///////////////////////////// function point_show() { - let chart = c3.generate({ + const chart = c3.generate({ data: { columns: [ ["data1", 30, 200, 100, 400, 150, 250], @@ -1971,7 +1971,7 @@ function point_show() { //////////////////////////// function pie_label_format() { - let chart = c3.generate({ + const chart = c3.generate({ data: { columns: [ ["data1", 30], @@ -1994,7 +1994,7 @@ function pie_label_format() { ///////////////////// function api_flow() { - let chart = c3.generate({ + const chart = c3.generate({ data: { x: "x", columns: [ @@ -2064,7 +2064,7 @@ function api_flow() { } function api_data_name() { - let chart = c3.generate({ + const chart = c3.generate({ data: { columns: [ ["data1", 30, 200, 100, 400, 150, 250], @@ -2087,7 +2087,7 @@ function api_data_name() { } function api_data_color() { - let chart = c3.generate({ + const chart = c3.generate({ data: { columns: [ ["data1", 30, 20, 50, 40, 60, 50], @@ -2122,7 +2122,7 @@ function api_data_color() { } function api_axis_label() { - let chart = c3.generate({ + const chart = c3.generate({ data: { columns: [ ["data1", 30, 200, 100, 400, 150, 250], @@ -2154,7 +2154,7 @@ function api_axis_label() { } function api_axis_range() { - let chart = c3.generate({ + const chart = c3.generate({ data: { columns: [ ["data1", 30, 200, 100, 400, 150, 250], @@ -2210,7 +2210,7 @@ function api_axis_range() { } function api_resize() { - let chart = c3.generate({ + const chart = c3.generate({ data: { columns: [ ["data1", 30, 200, 100, 400, 150, 250], @@ -2233,7 +2233,7 @@ function api_resize() { } function api_grid_x() { - let chart = c3.generate({ + const chart = c3.generate({ bindto: "#chart", data: { columns: [ @@ -2276,7 +2276,7 @@ function api_grid_x() { ///////////////////// function transform_line() { - let chart = c3.generate({ + const chart = c3.generate({ data: { columns: [ ["data1", 30, 200, 100, 400, 150, 250], @@ -2304,7 +2304,7 @@ function transform_line() { } function transform_spline() { - let chart = c3.generate({ + const chart = c3.generate({ data: { columns: [ ["data1", 30, 200, 100, 400, 150, 250], @@ -2332,7 +2332,7 @@ function transform_spline() { } function transform_bar() { - let chart = c3.generate({ + const chart = c3.generate({ data: { columns: [ ["data1", 30, 200, 100, 400, 150, 250], @@ -2360,7 +2360,7 @@ function transform_bar() { } function transform_area() { - let chart = c3.generate({ + const chart = c3.generate({ data: { columns: [ ["data1", 30, 200, 100, 400, 150, 250], @@ -2388,7 +2388,7 @@ function transform_area() { } function transform_areaspline() { - let chart = c3.generate({ + const chart = c3.generate({ data: { columns: [ ["data1", 30, 200, 100, 400, 150, 250], @@ -2416,7 +2416,7 @@ function transform_areaspline() { } function transform_scatter() { - let chart = c3.generate({ + const chart = c3.generate({ data: { xs: { setosa: "setosa_x", @@ -2462,7 +2462,7 @@ function transform_scatter() { } function transform_pie() { - let chart = c3.generate({ + const chart = c3.generate({ data: { columns: [ ["data1", 30, 200, 100, 400, 150, 250], @@ -2485,7 +2485,7 @@ function transform_pie() { } function transform_donut() { - let chart = c3.generate({ + const chart = c3.generate({ data: { columns: [ ["data1", 30, 200, 100, 400, 150, 250], @@ -2516,7 +2516,7 @@ function transform_donut() { ///////////////////// function style_region() { - let chart = c3.generate({ + const chart = c3.generate({ data: { columns: [ ["sample", 30, 200, 100, 400, 150, 250] @@ -2530,7 +2530,7 @@ function style_region() { } function style_grid() { - let chart = c3.generate({ + const chart = c3.generate({ data: { columns: [ ["data1", 100, 200, 1000, 900, 500] diff --git a/types/cassandra-driver/index.d.ts b/types/cassandra-driver/index.d.ts index 1f7f2fe33d..bf9e73feb6 100644 --- a/types/cassandra-driver/index.d.ts +++ b/types/cassandra-driver/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for nodejs-driver v0.8.2 // Project: https://github.com/datastax/nodejs-driver -// Definitions by: Marc Fisher +// Definitions by: Marc Fisher // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// diff --git a/types/catbox/index.d.ts b/types/catbox/index.d.ts index e34059d618..7bc691abdc 100644 --- a/types/catbox/index.d.ts +++ b/types/catbox/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for catbox 7.1 // Project: https://github.com/hapijs/catbox -// Definitions by: Jason Swearingen , AJP +// Definitions by: Jason Swearingen , AJP // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 diff --git a/types/chai-arrays/chai-arrays-tests.ts b/types/chai-arrays/chai-arrays-tests.ts index 7fabaacbca..f8a42fb6a7 100644 --- a/types/chai-arrays/chai-arrays-tests.ts +++ b/types/chai-arrays/chai-arrays-tests.ts @@ -8,7 +8,7 @@ chai.use(ChaiArrays); chai.should(); const arr: any[] = [1, 2, 3]; -const str: string = 'abcdef'; +const str = 'abcdef'; const otherArr: number[] = [1, 2, 3]; const anotherArr: number[] = [2, 4]; diff --git a/types/chai-http/chai-http-tests.ts b/types/chai-http/chai-http-tests.ts index c9c80c31ed..7c1c7a6b42 100644 --- a/types/chai-http/chai-http-tests.ts +++ b/types/chai-http/chai-http-tests.ts @@ -13,7 +13,7 @@ if (!global.Promise) { chai.request.addPromises(when.promise); } -let app: http.Server; +declare const app: http.Server; chai.request(app).get('/'); chai.request('http://localhost:8080').get('/'); @@ -55,7 +55,7 @@ chai.request(app) .then((res: ChaiHttp.Response) => chai.expect(res).to.have.status(200)) .catch((err: any) => { throw err; }); -let agent = chai.request.agent(app); +const agent = chai.request.agent(app); agent .post('/session') @@ -69,7 +69,7 @@ agent }); function test1() { - let req = chai.request(app).get('/'); + const req = chai.request(app).get('/'); req.then((res: ChaiHttp.Response) => { chai.expect(res).to.have.status(200); chai.expect(res).to.have.header('content-type', 'text/plain'); diff --git a/types/chart.js/chart.js-tests.ts b/types/chart.js/chart.js-tests.ts index 5c2dab60f9..4ba3c4fc4c 100644 --- a/types/chart.js/chart.js-tests.ts +++ b/types/chart.js/chart.js-tests.ts @@ -4,7 +4,7 @@ import { Chart, ChartData } from 'chart.js'; // import chartjs = require('chart.js'); // => chartjs.Chart -let chart: Chart = new Chart(new CanvasRenderingContext2D(), { +const chart: Chart = new Chart(new CanvasRenderingContext2D(), { type: 'bar', data: { labels: ['group 1'], diff --git a/types/color-convert/color-convert-tests.ts b/types/color-convert/color-convert-tests.ts index 735c169a2f..fe45e209f3 100644 --- a/types/color-convert/color-convert-tests.ts +++ b/types/color-convert/color-convert-tests.ts @@ -1,6 +1,6 @@ import * as color from 'color-convert'; import * as conv from 'color-convert/conversions'; -let hsv: [number, number, number] = color.rgb.hsv([1, 2, 3]); -let hsv_raw: [number, number, number] = color.rgb.hsv.raw([1, 2, 3]); -let aaa: [number, number, number] = color.rgb.hsv([1, 2, 3]); +const hsv: [number, number, number] = color.rgb.hsv([1, 2, 3]); +const hsv_raw: [number, number, number] = color.rgb.hsv.raw([1, 2, 3]); +const aaa: [number, number, number] = color.rgb.hsv([1, 2, 3]); diff --git a/types/commander/index.d.ts b/types/commander/index.d.ts index 017495784a..9e5feded68 100644 --- a/types/commander/index.d.ts +++ b/types/commander/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for commander 2.9 // Project: https://github.com/visionmedia/commander.js -// Definitions by: Alan Agius , Marcelo Dezem , vvakame +// Definitions by: Alan Agius , Marcelo Dezem , vvakame // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// diff --git a/types/commonmark/commonmark-tests.ts b/types/commonmark/commonmark-tests.ts index 8d3a3a5447..b85eb16ace 100644 --- a/types/commonmark/commonmark-tests.ts +++ b/types/commonmark/commonmark-tests.ts @@ -26,18 +26,18 @@ function logNode(node: commonmark.Node) { const parser = new commonmark.Parser({ smart: true, time: true }); const node = parser.parse('# a piece of _markdown_'); -let w = node.walker(); -let step = w.next(); +const w = node.walker(); +const step = w.next(); if (step.entering) { logNode(step.node); } -let xmlRenderer = new commonmark.XmlRenderer({ sourcepos: true, time: true }); -let xml = xmlRenderer.render(node); +const xmlRenderer = new commonmark.XmlRenderer({ sourcepos: true, time: true }); +const xml = xmlRenderer.render(node); console.log(xml); -let htmlRenderer = new commonmark.HtmlRenderer({ safe: true, smart: true, sourcepos: true, time: true }); -let html = htmlRenderer.render(node); +const htmlRenderer = new commonmark.HtmlRenderer({ safe: true, smart: true, sourcepos: true, time: true }); +const html = htmlRenderer.render(node); console.log(html); function basic_usage() { diff --git a/types/concat-stream/concat-stream-tests.ts b/types/concat-stream/concat-stream-tests.ts index 4f3bf839e0..b89cde817b 100644 --- a/types/concat-stream/concat-stream-tests.ts +++ b/types/concat-stream/concat-stream-tests.ts @@ -3,7 +3,7 @@ import concat = require("concat-stream"); import { Readable } from "stream"; class MyReadable extends Readable { - i: number = 1; + i = 1; _read() { if (this.i <= 100) { this.push(this.i.toString()); diff --git a/types/continuation-local-storage/continuation-local-storage-tests.ts b/types/continuation-local-storage/continuation-local-storage-tests.ts index 3d85886d73..aee44866af 100644 --- a/types/continuation-local-storage/continuation-local-storage-tests.ts +++ b/types/continuation-local-storage/continuation-local-storage-tests.ts @@ -21,7 +21,7 @@ function test(topic: string, callback: (t: Test) => any) { test("asynchronously propagating state with local-context-domains", function (t) { t.plan(2); - var namespace = cls.createNamespace('namespace'); + const namespace = cls.createNamespace('namespace'); // t.ok(process.namespaces.namespace, "namespace has been created"); namespace.run(function () { @@ -39,7 +39,7 @@ test("minimized test case that caused #6011 patch to fail", function (t) { // when the flaw was in the patch, commenting out this line would fix things: process.nextTick(function () { console.log('!'); }); - var n = cls.createNamespace("test"); + const n = cls.createNamespace("test"); t.ok(!n.get('state'), "state should not yet be visible"); n.run(function () { @@ -59,7 +59,7 @@ test("event emitters bound to CLS context", function (t) { t.test("handler registered in context, emit out of context", function (t) { t.plan(1); - var n = cls.createNamespace('in') + const n = cls.createNamespace('in') , ee = new EventEmitter() ; @@ -78,7 +78,7 @@ test("event emitters bound to CLS context", function (t) { t.test("once handler registered in context", function (t) { t.plan(1); - var n = cls.createNamespace('inOnce') + const n = cls.createNamespace('inOnce') , ee = new EventEmitter() ; @@ -97,7 +97,7 @@ test("event emitters bound to CLS context", function (t) { t.test("handler registered out of context, emit in context", function (t) { t.plan(1); - var n = cls.createNamespace('out') + const n = cls.createNamespace('out') , ee = new EventEmitter() ; @@ -117,7 +117,7 @@ test("event emitters bound to CLS context", function (t) { t.test("once handler registered out of context", function (t) { t.plan(1); - var n = cls.createNamespace('outOnce') + const n = cls.createNamespace('outOnce') , ee = new EventEmitter() ; @@ -137,7 +137,7 @@ test("event emitters bound to CLS context", function (t) { t.test("handler registered out of context, emit out of context", function (t) { t.plan(1); - var n = cls.createNamespace('out') + const n = cls.createNamespace('out') , ee = new EventEmitter() ; @@ -155,12 +155,12 @@ test("event emitters bound to CLS context", function (t) { }); t.test("once handler registered out of context on Readable", function (t) { - var Readable = require('stream').Readable; + const Readable = require('stream').Readable; if (Readable) { t.plan(12); - var n = cls.createNamespace('outOnceReadable') + const n = cls.createNamespace('outOnceReadable') , re = new Readable() ; @@ -203,7 +203,7 @@ test("event emitters bound to CLS context", function (t) { t.test("emitter with newListener that removes handler", function (t) { t.plan(3); - var n = cls.createNamespace('newListener') + const n = cls.createNamespace('newListener') , ee = new EventEmitter() ; @@ -239,12 +239,12 @@ test("event emitters bound to CLS context", function (t) { }); t.test("handler registered in context on Readable", function (t) { - var Readable = require('stream').Readable; + const Readable = require('stream').Readable; if (Readable) { t.plan(12); - var n = cls.createNamespace('outOnReadable') + const n = cls.createNamespace('outOnReadable') , re = new Readable() ; @@ -288,7 +288,7 @@ test("event emitters bound to CLS context", function (t) { t.test("handler added but used entirely out of context", function (t) { t.plan(2); - var n = cls.createNamespace('none') + const n = cls.createNamespace('none') , ee = new EventEmitter() ; @@ -309,12 +309,12 @@ test("event emitters bound to CLS context", function (t) { t.test("handler added but no listeners registered", function (t) { t.plan(3); - var http = require('http') + const http = require('http') , n = cls.createNamespace('no_listener') ; // only fails on Node < 0.10 - var server = http.createServer(function (req: any, res: any) { + const server = http.createServer(function (req: any, res: any) { n.bindEmitter(req); t.doesNotThrow(function () { @@ -342,7 +342,7 @@ test("event emitters bound to CLS context", function (t) { t.test("listener with parameters added but not bound to context", function (t) { t.plan(2); - var ee = new EventEmitter() + const ee = new EventEmitter() , n = cls.createNamespace('param_list') ; @@ -361,7 +361,7 @@ test("event emitters bound to CLS context", function (t) { t.test("listener that throws doesn't leave removeListener wrapped", function (t) { t.plan(4); - var ee = new EventEmitter() + const ee = new EventEmitter() , n = cls.createNamespace('kaboom') ; @@ -385,7 +385,7 @@ test("event emitters bound to CLS context", function (t) { t.test("emitter bound to multiple namespaces handles them correctly", function (t) { t.plan(8); - var ee = new EventEmitter() + const ee = new EventEmitter() , ns1 = cls.createNamespace('1') , ns2 = cls.createNamespace('2') ; @@ -430,7 +430,7 @@ test("event emitters bound to CLS context", function (t) { // multiple contexts in use test("simple tracer built on contexts", function (t) { - var tracer = cls.createNamespace('tracer'); + const tracer = cls.createNamespace('tracer'); class Trace { harvester: any; @@ -438,7 +438,7 @@ test("simple tracer built on contexts", function (t) { this.harvester = harvester; } runHandler(callback: any) { - var wrapped = tracer.bind(function () { + const wrapped = tracer.bind(function () { callback(); this.harvester.emit('finished', tracer.get('transaction')); }.bind(this)); @@ -448,8 +448,8 @@ test("simple tracer built on contexts", function (t) { t.plan(6); - var harvester = new EventEmitter(); - var trace = new Trace(harvester); + const harvester = new EventEmitter(); + const trace = new Trace(harvester); harvester.on('finished', function (transaction: any) { t.ok(transaction, "transaction should have been passed in"); diff --git a/types/convict/convict-tests.ts b/types/convict/convict-tests.ts index daa07c6875..08bac59825 100644 --- a/types/convict/convict-tests.ts +++ b/types/convict/convict-tests.ts @@ -35,7 +35,7 @@ convict.addFormats({ } }); -let conf = convict({ +const conf = convict({ env: { doc: 'The applicaton environment.', format: ['production', 'development', 'test'], @@ -98,8 +98,8 @@ let conf = convict({ // load environment dependent configuration -let env = conf.get('env'); -let dbip = conf.get('db.ip'); +const env = conf.get('env'); +const dbip = conf.get('db.ip'); conf.loadFile('./config/' + env + '.json'); conf.loadFile(['./configs/always.json', './configs/sometimes.json']); @@ -119,7 +119,7 @@ conf .validate({ allowed: 'warn' }) .toString(); -let port: number = conf.default('port'); +const port: number = conf.default('port'); if (conf.has('key')) { conf.set('the.awesome', true); diff --git a/types/copy-webpack-plugin/index.d.ts b/types/copy-webpack-plugin/index.d.ts index 11a3a30dd9..8bfae1e0ed 100644 --- a/types/copy-webpack-plugin/index.d.ts +++ b/types/copy-webpack-plugin/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for copy-webpack-plugin v4.0.0 // Project: https://github.com/kevlened/copy-webpack-plugin -// Definitions by: flying-sheep +// Definitions by: flying-sheep // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped import { Plugin } from 'webpack' diff --git a/types/cordova-plugin-inappbrowser/cordova-plugin-inappbrowser-tests.ts b/types/cordova-plugin-inappbrowser/cordova-plugin-inappbrowser-tests.ts index 1497eec386..2506df887d 100644 --- a/types/cordova-plugin-inappbrowser/cordova-plugin-inappbrowser-tests.ts +++ b/types/cordova-plugin-inappbrowser/cordova-plugin-inappbrowser-tests.ts @@ -4,7 +4,7 @@ // signature of window.open() added by InAppBrowser plugin // is similar to native window.open signature, so the compiler can's // select proper overload, but we cast result to InAppBrowser manually. -const iab = window.open('google.com', '_self'); +const iab = window.open('google.com', '_self'); iab.addEventListener('loadstart', (ev: InAppBrowserEvent) => { console.log('Start opening ' + ev.url); }); iab.addEventListener('loadstart', (ev) => { console.log('loadstart' + ev.url); }); diff --git a/types/core-decorators/core-decorators-tests.ts b/types/core-decorators/core-decorators-tests.ts index ef4659e56b..c617de5fcc 100644 --- a/types/core-decorators/core-decorators-tests.ts +++ b/types/core-decorators/core-decorators-tests.ts @@ -31,7 +31,7 @@ import { readonly } from 'core-decorators'; class Meal { @readonly - entree: string = 'steak'; + entree = 'steak'; } const dinner = new Meal(); @@ -155,7 +155,7 @@ class Meal2 { entree = 'steak'; @nonenumerable - cost: number = 4.44; + cost = 4.44; } const dinner2 = new Meal2(); @@ -175,7 +175,7 @@ import { nonconfigurable } from 'core-decorators'; class Meal3 { @nonconfigurable - entree: string = 'steak'; + entree = 'steak'; } const dinner3 = new Meal3(); diff --git a/types/core-js/index.d.ts b/types/core-js/index.d.ts index 0a8f506df4..5fb9400d75 100644 --- a/types/core-js/index.d.ts +++ b/types/core-js/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for core-js 0.9 // Project: https://github.com/zloirock/core-js/ -// Definitions by: Ron Buckton , Michel Felipe +// Definitions by: Ron Buckton , Michel Felipe // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.1 diff --git a/types/csvtojson/csvtojson-tests.ts b/types/csvtojson/csvtojson-tests.ts index 5b58451fac..2d6e36c84f 100644 --- a/types/csvtojson/csvtojson-tests.ts +++ b/types/csvtojson/csvtojson-tests.ts @@ -5,7 +5,7 @@ import fs = require('fs'); ///////////////////////////// // From CSV String -const csvStr: string = `1,2,3 +const csvStr = `1,2,3 4,5,6 7,8,9`; diff --git a/types/d3-array/d3-array-tests.ts b/types/d3-array/d3-array-tests.ts index 287f1d1a5e..7ce3d6354d 100644 --- a/types/d3-array/d3-array-tests.ts +++ b/types/d3-array/d3-array-tests.ts @@ -43,9 +43,9 @@ let num: number; let date: Date; let numOrUndefined: number | undefined; -let strOrUndefined: string |  undefined; -let numericOrUndefined: NumCoercible |  undefined; -let dateOrUndefined: Date |  undefined; +let strOrUndefined: string | undefined; +let numericOrUndefined: NumCoercible | undefined; +let dateOrUndefined: Date | undefined; let numOrUndefinedExtent: [number, number] | [undefined, undefined]; let strOrUndefinedExtent: [string, string] | [undefined, undefined]; let numericOrUndefinedExtent: [NumCoercible, NumCoercible] | [undefined, undefined]; diff --git a/types/d3-brush/d3-brush-tests.ts b/types/d3-brush/d3-brush-tests.ts index 2d9ee319aa..bce080f424 100644 --- a/types/d3-brush/d3-brush-tests.ts +++ b/types/d3-brush/d3-brush-tests.ts @@ -85,7 +85,6 @@ brush = brush.on('end', null); // re-apply brush.on('end', function(d, i, g) { - const that: SVGGElement = this; const datum: BrushDatum = d; const index: number = i; const group: SVGGElement[] | ArrayLike = g; diff --git a/types/d3-collection/d3-collection-tests.ts b/types/d3-collection/d3-collection-tests.ts index af9bf8d075..91a72479db 100644 --- a/types/d3-collection/d3-collection-tests.ts +++ b/types/d3-collection/d3-collection-tests.ts @@ -11,13 +11,13 @@ import { ascending } from 'd3-array'; // Preparatory steps -------------------------------------------------------------- -let keyValueObj = { +const keyValueObj = { a: 'test', b: 123, c: [true, true, false] }; -let keyValueObj2 = { +const keyValueObj2 = { a: 'test', b: 'same', c: 'type' @@ -29,7 +29,6 @@ let stringKVArray: Array<{ key: string, value: string }>; let anyKVArray: Array<{ key: string, value: any }>; let num: number; -let str: string; let booleanFlag: boolean; // --------------------------------------------------------------------- @@ -137,9 +136,9 @@ testObjKVArray = testObjMap.entries(); // each() -------------------------------------------------------------- testObjMap.each((value, key, map) => { - let v: TestObject = value; - let k: string = key; - let m: d3Collection.Map = map; + const v: TestObject = value; + const k: string = key; + const m: d3Collection.Map = map; console.log(v.val); }); @@ -169,9 +168,9 @@ basicSet = d3Collection.set(['foo', 'bar', 42]); // last element is coerced // from array without accessor basicSet = d3Collection.set(testObjArray, (value, index, array) => { - let v: TestObject = value; - let i: number = index; - let a: TestObject[] = array; + const v: TestObject = value; + const i: number = index; + const a: TestObject[] = array; return v.name; }); @@ -208,9 +207,9 @@ stringArray = basicSet.values(); // each() -------------------------------------------------------------- basicSet.each((value, valueRepeat, set) => { - let v: string = value; - let vr: string = valueRepeat; - let s: d3Collection.Set = set; + const v: string = value; + const vr: string = valueRepeat; + const s: d3Collection.Set = set; console.log(v); }); @@ -233,7 +232,7 @@ interface Yield { site: string; } -let raw: Yield[] = [ +const raw: Yield[] = [ { yield: 27.00, variety: 'Manchuria', year: 1931, site: 'University Farm' }, { yield: 48.87, variety: 'Manchuria', year: 1931, site: 'Waseca' }, { yield: 27.43, variety: 'Manchuria', year: 1931, site: 'Morris' }, @@ -279,8 +278,8 @@ nestL1Rollup = nestL1Rollup nestL2 = nestL2 .sortValues((a, b) => { - let val1: Yield = a; // data type Yield - let val2: Yield = b; // data type Yield + const val1: Yield = a; // data type Yield + const val2: Yield = b; // data type Yield return a.yield - b.yield; }); @@ -288,7 +287,7 @@ nestL2 = nestL2 nestL1Rollup = nestL1Rollup .rollup(values => { - let vs: Yield[] = values; // correct data array type + const vs: Yield[] = values; // correct data array type return vs.length; }); diff --git a/types/d3-contour/d3-contour-tests.ts b/types/d3-contour/d3-contour-tests.ts index 751dfe99c9..588750bf29 100644 --- a/types/d3-contour/d3-contour-tests.ts +++ b/types/d3-contour/d3-contour-tests.ts @@ -110,7 +110,7 @@ interface CustomDatum { // Get contour generator ------------------------------------------------------- -let contDensDefault: d3Contour.ContourDensity<[number, number]> = d3Contour.contourDensity(); +const contDensDefault: d3Contour.ContourDensity<[number, number]> = d3Contour.contourDensity(); let contDensCustom: d3Contour.ContourDensity = d3Contour.contourDensity(); // Configure contour generator ================================================= diff --git a/types/d3-dispatch/d3-dispatch-tests.ts b/types/d3-dispatch/d3-dispatch-tests.ts index 436bc3d6d4..a9f29ef75d 100644 --- a/types/d3-dispatch/d3-dispatch-tests.ts +++ b/types/d3-dispatch/d3-dispatch-tests.ts @@ -16,8 +16,6 @@ interface Datum { } let dispatch: d3Dispatch.Dispatch; -let copy: d3Dispatch.Dispatch; -let copy2: d3Dispatch.Dispatch; // Signature Tests ---------------------------------------- @@ -50,5 +48,5 @@ dispatch.apply('bar', document.body, [{ a: 3, b: 'test' }, 1]); dispatch.on('bar', null); // Copy dispatch ----------------------------------------------- -copy = dispatch.copy(); -// copy2 = dispatch.copy(); // test fails type mismatch of underlying event target +const copy: d3Dispatch.Dispatch = dispatch.copy(); +// const copy2: d3Dispatch.Dispatch = dispatch.copy(); // test fails type mismatch of underlying event target diff --git a/types/d3-dsv/d3-dsv-tests.ts b/types/d3-dsv/d3-dsv-tests.ts index 421add6e65..51127b7266 100644 --- a/types/d3-dsv/d3-dsv-tests.ts +++ b/types/d3-dsv/d3-dsv-tests.ts @@ -12,13 +12,13 @@ import * as d3Dsv from 'd3-dsv'; // Preperatory Steps // ------------------------------------------------------------------------------------------ -const csvTestString: string = '1997,Ford,E350,2.34\n2000,Mercury,Cougar,2.38'; -const tsvTestString: string = '1997\tFord\tE350\t2.34\n2000\tMercury\tCougar\t2.38'; -const pipedTestString: string = '1997|Ford|E350|2.34\n2000|Mercury|Cougar|2.38'; +const csvTestString = '1997,Ford,E350,2.34\n2000,Mercury,Cougar,2.38'; +const tsvTestString = '1997\tFord\tE350\t2.34\n2000\tMercury\tCougar\t2.38'; +const pipedTestString = '1997|Ford|E350|2.34\n2000|Mercury|Cougar|2.38'; -const csvTestStringWithHeader: string = 'Year,Make,Model,Length\n1997,Ford,E350,2.34\n2000,Mercury,Cougar,2.38'; -const tsvTestStringWithHeader: string = 'Year\tMake\tModel\tLength\n1997\tFord\tE350\t2.34\n2000\tMercury\tCougar\t2.38'; -const pipedTestStringWithHeader: string = 'Year|Make|Model|Length\n1997|Ford|E350|2.34\n2000|Mercury|Cougar|2.38'; +const csvTestStringWithHeader = 'Year,Make,Model,Length\n1997,Ford,E350,2.34\n2000,Mercury,Cougar,2.38'; +const tsvTestStringWithHeader = 'Year\tMake\tModel\tLength\n1997\tFord\tE350\t2.34\n2000\tMercury\tCougar\t2.38'; +const pipedTestStringWithHeader = 'Year|Make|Model|Length\n1997|Ford|E350|2.34\n2000|Mercury|Cougar|2.38'; interface ParsedTestObject { year: Date; diff --git a/types/d3-ease/d3-ease-tests.ts b/types/d3-ease/d3-ease-tests.ts index 67a0f32b1b..543f2fd375 100644 --- a/types/d3-ease/d3-ease-tests.ts +++ b/types/d3-ease/d3-ease-tests.ts @@ -8,7 +8,7 @@ import * as d3Ease from 'd3-ease'; -const t_in: number = 0.5; +const t_in = 0.5; let t_out: number; t_out = d3Ease.easeLinear(t_in); diff --git a/types/d3-format/d3-format-tests.ts b/types/d3-format/d3-format-tests.ts index 9c11d07c70..def8994b70 100644 --- a/types/d3-format/d3-format-tests.ts +++ b/types/d3-format/d3-format-tests.ts @@ -36,17 +36,17 @@ formatFn = d3Format.formatPrefix(',.0', 1e-6); specifier = d3Format.formatSpecifier('.0%'); -let fill: string = specifier.fill; -let align: '>' | '<' | '^' | '=' = specifier.align; -let sign: '-' | '+' | '(' | ' ' = specifier.sign; -let symbol: '$' | '#' | '' = specifier.symbol; -let zero: boolean = specifier.zero; -let width: number | undefined = specifier.width; -let comma: boolean = specifier.comma; -let precision: number = specifier.precision; -let type: 'e' | 'f' | 'g' | 'r' | 's' | '%' | 'p' | 'b' | 'o' | 'd' | 'x' | 'X' | 'c' | '' | 'n' = specifier.type; +const fill: string = specifier.fill; +const align: '>' | '<' | '^' | '=' = specifier.align; +const sign: '-' | '+' | '(' | ' ' = specifier.sign; +const symbol: '$' | '#' | '' = specifier.symbol; +const zero: boolean = specifier.zero; +const width: number | undefined = specifier.width; +const comma: boolean = specifier.comma; +const precision: number = specifier.precision; +const type: 'e' | 'f' | 'g' | 'r' | 's' | '%' | 'p' | 'b' | 'o' | 'd' | 'x' | 'X' | 'c' | '' | 'n' = specifier.type; -let formatString: string = specifier.toString(); +const formatString: string = specifier.toString(); // ---------------------------------------------------------------------- // Test Precision Suggestors @@ -85,16 +85,16 @@ localeDef = { percent : "\u202f%" }; -let decimal: string = localeDef.decimal; -let thousands: string = localeDef.thousands; -let grouping: number[] = localeDef.grouping; -let currency: [string, string] = localeDef.currency; -let numerals: string[] | undefined = localeDef.numerals; -let percent: string | undefined = localeDef.percent; +const decimal: string = localeDef.decimal; +const thousands: string = localeDef.thousands; +const grouping: number[] = localeDef.grouping; +const currency: [string, string] = localeDef.currency; +const numerals: string[] | undefined = localeDef.numerals; +const percent: string | undefined = localeDef.percent; localeObj = d3Format.formatLocale(localeDef); localeObj = d3Format.formatDefaultLocale(localeDef); -let formatFactory: (specifier: string) => ((n: number) => string) = localeObj.format; -let formatPrefixFactory: (specifier: string, value: number) => ((n: number) => string) = localeObj.formatPrefix; +const formatFactory: (specifier: string) => ((n: number) => string) = localeObj.format; +const formatPrefixFactory: (specifier: string, value: number) => ((n: number) => string) = localeObj.formatPrefix; diff --git a/types/d3-format/index.d.ts b/types/d3-format/index.d.ts index 34cf80c047..6592756ef1 100644 --- a/types/d3-format/index.d.ts +++ b/types/d3-format/index.d.ts @@ -112,8 +112,8 @@ export interface FormatSpecifier { comma: boolean; /** * Depending on the type, the precision either indicates the number of digits that follow the decimal point (types 'f' and '%'), - * or the number of significant digits (types ''​ (none), 'e', 'g', 'r', 's' and 'p'). If the precision is not specified, - * it defaults to 6 for all types except ''​ (none), which defaults to 12. + * or the number of significant digits (types '' (none), 'e', 'g', 'r', 's' and 'p'). If the precision is not specified, + * it defaults to 6 for all types except '' (none), which defaults to 12. * Precision is ignored for integer formats (types 'b', 'o', 'd', 'x', 'X' and 'c'). * * See precisionFixed and precisionRound for help picking an appropriate precision @@ -137,7 +137,7 @@ export interface FormatSpecifier { * 'c' - converts the integer to the corresponding unicode character before printing. * '' (none) - like g, but trim insignificant trailing zeros. * - * The type 'n' is also supported as shorthand for ',g'. For the 'g', 'n' and ​''(none) types, + * The type 'n' is also supported as shorthand for ',g'. For the 'g', 'n' and ''(none) types, * decimal notation is used if the resulting string would have precision or fewer digits; otherwise, exponent notation is used. */ type: 'e' | 'f' | 'g' | 'r' | 's' | '%' | 'p' | 'b' | 'o' | 'd' | 'x' | 'X' | 'c' | '' | 'n'; @@ -170,7 +170,7 @@ export function formatDefaultLocale(defaultLocale: FormatLocaleDefinition): Form * * Uses the current default locale. * - * The general form of a specifier is [​[fill]align][sign][symbol][0][width][,][.precision][type]. + * The general form of a specifier is [[fill]align][sign][symbol][0][width][,][.precision][type]. * For reference, an explanation of the segments of the specifier string, refer to the FormatSpecifier interface properties. * * @param specifier A Specifier string @@ -185,7 +185,7 @@ export function format(specifier: string): (n: number) => string; * * Uses the current default locale. * - * The general form of a specifier is [​[fill]align][sign][symbol][0][width][,][.precision][type]. + * The general form of a specifier is [[fill]align][sign][symbol][0][width][,][.precision][type]. * For reference, an explanation of the segments of the specifier string, refer to the FormatSpecifier interface properties. * * @param specifier A Specifier string @@ -197,7 +197,7 @@ export function formatPrefix(specifier: string, value: number): (n: number) => s * Parses the specified specifier, returning an object with exposed fields that correspond to the * format specification mini-language and a toString method that reconstructs the specifier. * - * The general form of a specifier is [​[fill]align][sign][symbol][0][width][,][.precision][type]. + * The general form of a specifier is [[fill]align][sign][symbol][0][width][,][.precision][type]. * For reference, an explanation of the segments of the specifier string, refer to the FormatSpecifier interface properties. * * @param specifier A specifier string. diff --git a/types/d3-interpolate/d3-interpolate-tests.ts b/types/d3-interpolate/d3-interpolate-tests.ts index 5cbb6fe3a0..6baaf06092 100644 --- a/types/d3-interpolate/d3-interpolate-tests.ts +++ b/types/d3-interpolate/d3-interpolate-tests.ts @@ -44,7 +44,6 @@ let iString: Interpolator; let iDate: Interpolator; let iArrayNum: Interpolator; let iArrayStr: Interpolator; -let iArrayDate: Interpolator; let iArrayMixed: Interpolator<[Date, string]>; let iKeyVal: Interpolator<{ [key: string]: any }>; let iRGBColorObj: Interpolator; @@ -56,7 +55,6 @@ let arrNum: number[]; let arrStr: string[]; let objKeyVal: { [key: string]: any }; let objRGBColor: d3Color.RGBColor; -let objHSVColor: d3Hsv.HSVColor; let zoom: [number, number, number]; // test interpolate(a, b) signature ---------------------------------------------------- diff --git a/types/d3-path/d3-path-tests.ts b/types/d3-path/d3-path-tests.ts index b11a3405e3..6a7b6a3fa0 100644 --- a/types/d3-path/d3-path-tests.ts +++ b/types/d3-path/d3-path-tests.ts @@ -12,7 +12,7 @@ import * as d3Path from 'd3-path'; // Test create new path serializer // ----------------------------------------------------------------------------------------- -let context: d3Path.Path = d3Path.path(); +const context: d3Path.Path = d3Path.path(); // ----------------------------------------------------------------------------------------- // Test path serializer methods @@ -35,4 +35,4 @@ context.rect(60, 60, 100, 200); context.closePath(); -let pathString: string = context.toString(); +const pathString: string = context.toString(); diff --git a/types/d3-polygon/d3-polygon-tests.ts b/types/d3-polygon/d3-polygon-tests.ts index 748054b727..28e1e464e1 100644 --- a/types/d3-polygon/d3-polygon-tests.ts +++ b/types/d3-polygon/d3-polygon-tests.ts @@ -15,8 +15,8 @@ import * as d3Polygon from 'd3-polygon'; let num: number; let containsFlag: boolean; let point: [number, number] = [15, 15]; -let polygon: Array<[number, number]> = [[10, 10], [20, 20], [10, 30]]; -let pointArray: Array<[number, number]> = [[10, 10], [20, 20], [10, 30], [15, 15]]; +const polygon: Array<[number, number]> = [[10, 10], [20, 20], [10, 30]]; +const pointArray: Array<[number, number]> = [[10, 10], [20, 20], [10, 30], [15, 15]]; let hull: Array<[number, number]>; // ----------------------------------------------------------------------------- diff --git a/types/d3-quadtree/d3-quadtree-tests.ts b/types/d3-quadtree/d3-quadtree-tests.ts index 5fabc66961..eda00fe130 100644 --- a/types/d3-quadtree/d3-quadtree-tests.ts +++ b/types/d3-quadtree/d3-quadtree-tests.ts @@ -39,7 +39,7 @@ let testData: TestDatum[] = [ let node: d3Quadtree.QuadtreeInternalNode | d3Quadtree.QuadtreeLeaf; let numberAccessor: (d: TestDatum) => number; -let simpleTestData: Array<[number, number]> = [ +const simpleTestData: Array<[number, number]> = [ [10, 20], [30, 10], [15, 80], @@ -216,7 +216,7 @@ quadtree = quadtree.visitAfter((node, x0, y0, x1, y1) => { // Test QuadtreeLeaf ========================================================= -let leaf: d3Quadtree.QuadtreeLeaf; +declare const leaf: d3Quadtree.QuadtreeLeaf; let nextLeaf: d3Quadtree.QuadtreeLeaf | undefined; testDatum = leaf.data; @@ -225,7 +225,7 @@ nextLeaf = leaf.next ? leaf.next : undefined; // Test QuadtreeInternalNode ================================================= -let internalNode: d3Quadtree.QuadtreeInternalNode; +declare const internalNode: d3Quadtree.QuadtreeInternalNode; let quadNode: d3Quadtree.QuadtreeInternalNode | d3Quadtree.QuadtreeLeaf | undefined; quadNode = internalNode[0]; diff --git a/types/d3-request/d3-request-tests.ts b/types/d3-request/d3-request-tests.ts index 8d8061d76a..8b2130240a 100644 --- a/types/d3-request/d3-request-tests.ts +++ b/types/d3-request/d3-request-tests.ts @@ -16,7 +16,7 @@ import { DSVParsedArray, DSVRowString } from 'd3-dsv'; // Preparatory Steps // ------------------------------------------------------------------------------- -const url: string = 'http:// api.reddit.com'; +const url = 'http:// api.reddit.com'; interface RequestDatumGET { kind: 'Listing'; @@ -49,13 +49,12 @@ let listenerResult: (this: d3Request.Request, result: ResponseDatumGET[]) => voi // ------------------------------------------------------------------------------- // request to configure and send in follow-up -let request: d3Request.Request = d3Request.request(url); +const request: d3Request.Request = d3Request.request(url); // GET-request with callback, immediately sent -let requestWithCallback: d3Request.Request = d3Request.request(url, (error, xhr) => { - let x: XMLHttpRequest; +const requestWithCallback: d3Request.Request = d3Request.request(url, (error, xhr) => { if (!error) { - x = xhr; + const x: XMLHttpRequest = xhr; console.log(xhr.responseText); } }); @@ -65,36 +64,34 @@ let requestWithCallback: d3Request.Request = d3Request.request(url, (error, xhr) // ------------------------------------------------------------------------------- // Abort ----------------------------------------------------------------------- -let r1: d3Request.Request = request.abort(); +const r1: d3Request.Request = request.abort(); // Get ------------------------------------------------------------------------- // no arguments -let r2: d3Request.Request = d3Request.request(url) +const r2: d3Request.Request = d3Request.request(url) .get(); // with request datum -let r3: d3Request.Request = d3Request.request(url) +const r3: d3Request.Request = d3Request.request(url) .get({ kind: 'Listing' }); // with callback for response handling -let r4: d3Request.Request = d3Request.request(url) +const r4: d3Request.Request = d3Request.request(url) .response(xhr2Listing) .get((error, response) => { - let r: ResponseDatumGET[]; if (!error) { - r = response; + const r: ResponseDatumGET[] = response; console.log(r); } }); // with request datum and callback for response handling -let r5: d3Request.Request = d3Request.request(url) +const r5: d3Request.Request = d3Request.request(url) .response(xhr2Listing) .get({ kind: 'Listing' }, (error, response) => { - let r: ResponseDatumGET[]; if (!error) { - r = response; + const r: ResponseDatumGET[] = response; console.log(r); } }); @@ -102,20 +99,20 @@ let r5: d3Request.Request = d3Request.request(url) // Headers -------------------------------------------------------------------- // get -let acceptEncoding: string = request.header('Accept-Encoding'); +const acceptEncoding: string = request.header('Accept-Encoding'); // set -let r6: d3Request.Request = request.header('Accept-Encoding', 'gzip'); +const r6: d3Request.Request = request.header('Accept-Encoding', 'gzip'); // remove -let r7: d3Request.Request = request.header('Accept-Encoding', null); +const r7: d3Request.Request = request.header('Accept-Encoding', null); // Mime Type ------------------------------------------------------------------- // get let mimeType: string = request.mimeType(); // set -let r8: d3Request.Request = request.mimeType('application/json'); +const r8: d3Request.Request = request.mimeType('application/json'); // remove -let r9: d3Request.Request = request.mimeType(null); +const r9: d3Request.Request = request.mimeType(null); // Events - on ------------------------------------------------------------------ @@ -124,8 +121,8 @@ let r10: d3Request.Request = d3Request.request(url); // beforesent r10 = r10.on('beforesend', function(xhr) { - let that: d3Request.Request = this; - let x: XMLHttpRequest = xhr; + const that: d3Request.Request = this; + const x: XMLHttpRequest = xhr; // do something; }); @@ -134,8 +131,8 @@ listenerXhr = r10.on('beforesend'); // progress r10 = r10.on('progress', function(progEvent) { - let that: d3Request.Request = this; - let e: ProgressEvent = progEvent; + const that: d3Request.Request = this; + const e: ProgressEvent = progEvent; // do something; }); @@ -144,8 +141,8 @@ listenerProgress = r10.on('progress'); // error r10 = r10.on('error', function(error) { - let that: d3Request.Request = this; - let err: any = error; + const that: d3Request.Request = this; + const err: any = error; // do something; }); @@ -154,20 +151,20 @@ listenerError = r10.on('error'); // load r10 = r10.on('load', function(result) { - let that: d3Request.Request = this; - let res: ResponseDatumGET[] = result; + const that: d3Request.Request = this; + const res: ResponseDatumGET[] = result; // do something; }); r10 = r10.on('load', function(result: ResponseDatumGET[]) { - let that: d3Request.Request = this; - let res: ResponseDatumGET[] = result; + const that: d3Request.Request = this; + const res: ResponseDatumGET[] = result; // do something; }); // r10 = r10.on('load', function(result: number) { // fails, wrong argument type for callback -// let that: d3Request.Request = this; -// let res: number = result; +// const that: d3Request.Request = this; +// const res: number = result; // // do something; // }); @@ -176,16 +173,16 @@ listenerResult = r10.on('load'); // general (for unknown type additional event listener e.g. 'beforesent.custom' or 'load.custom') r10 = r10.on('progress.foo', function(progEvent: ProgressEvent) { - let that: d3Request.Request = this; - let e: any = ProgressEvent; + const that: d3Request.Request = this; + const e: any = ProgressEvent; // do something; }); listenerProgress = r10.on('progress.foo'); r10 = r10.on('error.foo', function(error) { - let that: d3Request.Request = this; - let err: any = error; + const that: d3Request.Request = this; + const err: any = error; // do something; }); @@ -194,95 +191,85 @@ listenerError = r10.on('error.foo'); // Password --------------------------------------------------------------------- // get -let password: string = request.password(); +const password: string = request.password(); // set -let r11: d3Request.Request = request.password('MyPassword'); +const r11: d3Request.Request = request.password('MyPassword'); // Post ------------------------------------------------------------------------- function xhr2Success(xhr: XMLHttpRequest): ResponseDatumPOST { - let result: ResponseDatumPOST; - - result = JSON.parse(xhr.responseText); - - return result; + return JSON.parse(xhr.responseText); } // no arguments -let r12: d3Request.Request = d3Request.request(url) +const r12: d3Request.Request = d3Request.request(url) .post(); // with request datum -let r13: d3Request.Request = d3Request.request(url) +const r13: d3Request.Request = d3Request.request(url) .post({ test: 'NewValue', value: 10 }); // with callback for response handling -let r14: d3Request.Request = d3Request.request(url).response(xhr2Success) +const r14: d3Request.Request = d3Request.request(url).response(xhr2Success) .post(function(error, response) { - let that: d3Request.Request = this; - let err: any = error; - let res: ResponseDatumPOST = response; + const that: d3Request.Request = this; + const err: any = error; + const res: ResponseDatumPOST = response; console.log('Success? ', res.success); }); -let r15: d3Request.Request = d3Request.request(url).response(xhr2Success) +const r15: d3Request.Request = d3Request.request(url).response(xhr2Success) .post({ test: 'NewValue', value: 10 }, function(error, response) { - let that: d3Request.Request = this; - let err: any = error; - let res: ResponseDatumPOST = response; + const that: d3Request.Request = this; + const err: any = error; + const res: ResponseDatumPOST = response; console.log('Success? ', res.success); }); // Response --------------------------------------------------------------------- function xhr2Listing(xhr: XMLHttpRequest): ResponseDatumGET[] { - let result: ResponseDatumGET[]; - - result = JSON.parse(xhr.responseText); - - return result; + return JSON.parse(xhr.responseText); } -let r16: d3Request.Request = d3Request.request(url) +const r16: d3Request.Request = d3Request.request(url) .response(xhr2Listing); // ResponseType ----------------------------------------------------------------- // get -let responseType: string = d3Request.request(url) +const responseType: string = d3Request.request(url) .responseType(); // set -let r17: d3Request.Request = d3Request.request(url) +const r17: d3Request.Request = d3Request.request(url) .responseType('application/json'); // Send ------------------------------------------------------------------------ // method only -let r18: d3Request.Request = d3Request.request(url) +const r18: d3Request.Request = d3Request.request(url) .send('GET'); // method and request datum -let r19: d3Request.Request = d3Request.request(url) +const r19: d3Request.Request = d3Request.request(url) .send('POST', { test: 'NewValue', value: 10 }); // method and callback for response handling -let r20: d3Request.Request = d3Request.request(url) +const r20: d3Request.Request = d3Request.request(url) .response(xhr2Listing) .send('GET', (error, response) => { - let r: ResponseDatumGET[]; if (!error) { - r = response; + const r: ResponseDatumGET[] = response; console.log(r); } }); // method,request datum and callback for response handling -let r21: d3Request.Request = d3Request.request(url) +const r21: d3Request.Request = d3Request.request(url) .response(xhr2Listing) .send('GET', { kind: 'Listing' }, (error, response) => { - let r: ResponseDatumGET[]; if (!error) { - r = response; + const r: ResponseDatumGET[] = response; console.log(r); } }); @@ -290,28 +277,28 @@ let r21: d3Request.Request = d3Request.request(url) // Timeout ----------------------------------------------------------------------- // get -let timeout: number = d3Request.request(url) +const timeout: number = d3Request.request(url) .timeout(); // set -let r22: d3Request.Request = d3Request.request(url) +const r22: d3Request.Request = d3Request.request(url) .timeout(500); // User---------------------------------------------------------------------------- // get -let user: string = request.user(); +const user: string = request.user(); // set -let r23: d3Request.Request = request.user('User'); +const r23: d3Request.Request = request.user('User'); // ------------------------------------------------------------------------------- // HTML Request // ------------------------------------------------------------------------------- -let html: d3Request.Request = d3Request.html(url); -let htmlWithCallback: d3Request.Request = d3Request.html(url, function(error, data) { - let that: d3Request.Request = this; - let err: any = error; - let d: DocumentFragment = data; +const html: d3Request.Request = d3Request.html(url); +const htmlWithCallback: d3Request.Request = d3Request.html(url, function(error, data) { + const that: d3Request.Request = this; + const err: any = error; + const d: DocumentFragment = data; console.log(d); }); @@ -319,11 +306,11 @@ let htmlWithCallback: d3Request.Request = d3Request.html(url, function(error, da // JSON Request // ------------------------------------------------------------------------------- -let json: d3Request.Request = d3Request.json(url); -let jsonWithCallback: d3Request.Request = d3Request.json(url, function(error, data) { - let that: d3Request.Request = this; - let err: any = error; - let d: ResponseDatumGET[] = data; +const json: d3Request.Request = d3Request.json(url); +const jsonWithCallback: d3Request.Request = d3Request.json(url, function(error, data) { + const that: d3Request.Request = this; + const err: any = error; + const d: ResponseDatumGET[] = data; console.log(d); }); @@ -331,11 +318,11 @@ let jsonWithCallback: d3Request.Request = d3Request.json(url // Text Request // ------------------------------------------------------------------------------- -let text: d3Request.Request = d3Request.text(url); -let textWithCallback: d3Request.Request = d3Request.text(url, function(error, data) { - let that: d3Request.Request = this; - let err: any = error; - let d: string = data; +const text: d3Request.Request = d3Request.text(url); +const textWithCallback: d3Request.Request = d3Request.text(url, function(error, data) { + const that: d3Request.Request = this; + const err: any = error; + const d: string = data; console.log(d); }); @@ -343,11 +330,11 @@ let textWithCallback: d3Request.Request = d3Request.text(url, function(error, da // XML Request // ------------------------------------------------------------------------------- -let xml: d3Request.Request = d3Request.xml(url); -let xmlWithCallback: d3Request.Request = d3Request.xml(url, function(error, data) { - let that: d3Request.Request = this; - let err: any = error; - let d: any = data; +const xml: d3Request.Request = d3Request.xml(url); +const xmlWithCallback: d3Request.Request = d3Request.xml(url, function(error, data) { + const that: d3Request.Request = this; + const err: any = error; + const d: any = data; console.log(d); }); @@ -359,32 +346,29 @@ let xmlWithCallback: d3Request.Request = d3Request.xml(url, function(error, data let csvRequest: d3Request.DsvRequest = d3Request.csv(url); // url and callback for response handling -let csvRequestWithCallback: d3Request.DsvRequest = d3Request.csv(url, function(error, data) { - let that: d3Request.Request = this; - let err: any = error; - let d: DSVParsedArray = data; +const csvRequestWithCallback: d3Request.DsvRequest = d3Request.csv(url, function(error, data) { + const that: d3Request.Request = this; + const err: any = error; + const d: DSVParsedArray = data; console.log(d); }); // url, row mapping function and callback for response handling -let csvRequestWithRowWithCallback: d3Request.DsvRequest = d3Request.csv(url, +const csvRequestWithRowWithCallback: d3Request.DsvRequest = d3Request.csv(url, (rawRow, index, columns) => { - let rr: DSVRowString = rawRow; - let i: number = index; - let cols: string[] = columns; - let mappedRow: ResponseDatumGET; - - mappedRow = { + const rr: DSVRowString = rawRow; + const i: number = index; + const cols: string[] = columns; + const mappedRow: ResponseDatumGET = { test: rr['test'], value: +rr['value'] }; - return mappedRow; }, function(error, data) { - let that: d3Request.Request = this; - let err: any = error; - let d: DSVParsedArray = data; + const that: d3Request.Request = this; + const err: any = error; + const d: DSVParsedArray = data; console.log(data); }); @@ -393,35 +377,32 @@ let csvRequestWithRowWithCallback: d3Request.DsvRequest = d3Request.csv = data; +const tsvRequestWithCallback: d3Request.DsvRequest = d3Request.tsv(url, function(error, data) { + const that: d3Request.Request = this; + const err: any = error; + const d: DSVParsedArray = data; console.log(d); }); // url, row mapping function and callback for response handling -let tsvRequestWithRowWithCallback: d3Request.DsvRequest = d3Request.tsv(url, +const tsvRequestWithRowWithCallback: d3Request.DsvRequest = d3Request.tsv(url, (rawRow, index, columns) => { - let rr: DSVRowString = rawRow; - let i: number = index; - let cols: string[] = columns; - let mappedRow: ResponseDatumGET; - - mappedRow = { + const rr: DSVRowString = rawRow; + const i: number = index; + const cols: string[] = columns; + const mappedRow: ResponseDatumGET = { test: rr['test'], value: +rr['value'] }; - return mappedRow; }, function(error, data) { - let that: d3Request.Request = this; - let err: any = error; - let d: DSVParsedArray = data; + const that: d3Request.Request = this; + const err: any = error; + const d: DSVParsedArray = data; console.log(data); }); @@ -433,16 +414,13 @@ let tsvRequestWithRowWithCallback: d3Request.DsvRequest = d3Request.tsv((rawRow, index, columns) => { - let rr: DSVRowString = rawRow; - let i: number = index; - let cols: string[] = columns; - let mappedRow: ResponseDatumGET; - - mappedRow = { + const rr: DSVRowString = rawRow; + const i: number = index; + const cols: string[] = columns; + const mappedRow: ResponseDatumGET = { test: rr['test'], value: +rr['value'] }; - return mappedRow; }); diff --git a/types/d3-sankey/d3-sankey-tests.ts b/types/d3-sankey/d3-sankey-tests.ts index abf61775b8..ace13d7e3c 100644 --- a/types/d3-sankey/d3-sankey-tests.ts +++ b/types/d3-sankey/d3-sankey-tests.ts @@ -168,7 +168,7 @@ let sGraph: d3Sankey.SankeyGraph; // Obtain SankeyLayout Generator // --------------------------------------------------------------------------- -let slgDefault: d3Sankey.SankeyLayout, {}, {}> = d3Sankey.sankey(); +const slgDefault: d3Sankey.SankeyLayout, {}, {}> = d3Sankey.sankey(); let slgDAG: d3Sankey.SankeyLayout = d3Sankey.sankey(); let slgDAGCustomId: d3Sankey.SankeyLayout = d3Sankey.sankey(); @@ -299,7 +299,7 @@ slgDAG = slgDAG.nodes(d => d.customNodes); // Get ----------------------------------------------------------------------- -let nodesAccessor: (d: DAG) => SNode[] = slgDAG.nodes(); +const nodesAccessor: (d: DAG) => SNode[] = slgDAG.nodes(); // --------------------------------------------------------------------------- // Links @@ -315,7 +315,7 @@ slgDAG = slgDAG.links(d => d.customLinks); // Get ----------------------------------------------------------------------- -let linksAccessor: (d: DAG) => SLink[] = slgDAG.links(); +const linksAccessor: (d: DAG) => SLink[] = slgDAG.links(); // --------------------------------------------------------------------------- // Compute Initial Layout @@ -344,7 +344,7 @@ pathGen = d3Sankey.sankeyLinkHorizontal(); // Render to svg path -let svgPathString: string | null = pathGen(sGraph.links[0]); +const svgPathString: string | null = pathGen(sGraph.links[0]); svgLinkPaths.attr('d', pathGen); // Render to canvas @@ -361,7 +361,7 @@ pathGen(sGraph.links[0]); // Sankey Node -------------------------------------------------------------- sNodes = sGraph.nodes; -let sNode = sNodes[0]; +const sNode = sNodes[0]; // User-specified extra properties: @@ -386,7 +386,7 @@ linksArrMaybe = sNode.targetLinks; // Sankey Link -------------------------------------------------------------- sLinks = sGraph.links; -let sLink = sLinks[0]; +const sLink = sLinks[0]; // User-specified extra properties: diff --git a/types/d3-scale-chromatic/d3-scale-chromatic-tests.ts b/types/d3-scale-chromatic/d3-scale-chromatic-tests.ts index 1dac850043..f6b322b74d 100644 --- a/types/d3-scale-chromatic/d3-scale-chromatic-tests.ts +++ b/types/d3-scale-chromatic/d3-scale-chromatic-tests.ts @@ -11,50 +11,50 @@ import * as d3ScaleChromatic from 'd3-scale-chromatic'; // ----------------------------------------------------------------------- // Categorical // ----------------------------------------------------------------------- -let accent: string = d3ScaleChromatic.schemeAccent[0]; // #7fc97f -let dark: string = d3ScaleChromatic.schemeDark2[0]; // #1b9e77 -let paired: string = d3ScaleChromatic.schemePaired[0]; // #a6cee3 -let pastel1: string = d3ScaleChromatic.schemePastel1[0]; // #fbb4ae -let pastel2: string = d3ScaleChromatic.schemePastel2[0]; // #b3e2cd -let set1: string = d3ScaleChromatic.schemeSet1[0]; // #e41a1c -let set2: string = d3ScaleChromatic.schemeSet2[0]; // #66c2a5 -let set3: string = d3ScaleChromatic.schemeSet3[0]; // #8dd3c7 +const accent: string = d3ScaleChromatic.schemeAccent[0]; // #7fc97f +const dark: string = d3ScaleChromatic.schemeDark2[0]; // #1b9e77 +const paired: string = d3ScaleChromatic.schemePaired[0]; // #a6cee3 +const pastel1: string = d3ScaleChromatic.schemePastel1[0]; // #fbb4ae +const pastel2: string = d3ScaleChromatic.schemePastel2[0]; // #b3e2cd +const set1: string = d3ScaleChromatic.schemeSet1[0]; // #e41a1c +const set2: string = d3ScaleChromatic.schemeSet2[0]; // #66c2a5 +const set3: string = d3ScaleChromatic.schemeSet3[0]; // #8dd3c7 // ----------------------------------------------------------------------- // Diverging // ----------------------------------------------------------------------- -let BrBG: string = d3ScaleChromatic.interpolateBrBG(0); // rgb(84, 48, 5) -let PRGn: string = d3ScaleChromatic.interpolatePRGn(0); // rgb(64, 0, 75) -let PiYG: string = d3ScaleChromatic.interpolatePiYG(0); // rgb(142, 1, 82) -let PuOr: string = d3ScaleChromatic.interpolatePuOr(0); // rgb(127, 59, 8) -let RdBu: string = d3ScaleChromatic.interpolateRdBu(0); // rgb(103, 0, 31) -let RdGy: string = d3ScaleChromatic.interpolateRdGy(0); // rgb(103, 0, 31) -let RdYlBu: string = d3ScaleChromatic.interpolateRdYlBu(0); // rgb(103, 0, 31) -let RdYlGn: string = d3ScaleChromatic.interpolateRdYlGn(0); // rgb(103, 0, 31) -let Spectral: string = d3ScaleChromatic.interpolateSpectral(0); // rgb(158, 1, 66) +const BrBG: string = d3ScaleChromatic.interpolateBrBG(0); // rgb(84, 48, 5) +const PRGn: string = d3ScaleChromatic.interpolatePRGn(0); // rgb(64, 0, 75) +const PiYG: string = d3ScaleChromatic.interpolatePiYG(0); // rgb(142, 1, 82) +const PuOr: string = d3ScaleChromatic.interpolatePuOr(0); // rgb(127, 59, 8) +const RdBu: string = d3ScaleChromatic.interpolateRdBu(0); // rgb(103, 0, 31) +const RdGy: string = d3ScaleChromatic.interpolateRdGy(0); // rgb(103, 0, 31) +const RdYlBu: string = d3ScaleChromatic.interpolateRdYlBu(0); // rgb(103, 0, 31) +const RdYlGn: string = d3ScaleChromatic.interpolateRdYlGn(0); // rgb(103, 0, 31) +const Spectral: string = d3ScaleChromatic.interpolateSpectral(0); // rgb(158, 1, 66) // ----------------------------------------------------------------------- // Sequential // ----------------------------------------------------------------------- -let Blue: string = d3ScaleChromatic.interpolateBlues(1); // rgb(8, 48, 107) -let Green: string = d3ScaleChromatic.interpolateGreens(1); // rgb(0, 68, 27) -let Grey: string = d3ScaleChromatic.interpolateGreys(1); // rgb(0, 0, 0) -let Orange: string = d3ScaleChromatic.interpolateOranges(1); // rgb(127, 39, 4) -let Purple: string = d3ScaleChromatic.interpolatePurples(1); // rgb(63, 0, 125) -let Red: string = d3ScaleChromatic.interpolateReds(1); // rgb(103, 0, 13) +const Blue: string = d3ScaleChromatic.interpolateBlues(1); // rgb(8, 48, 107) +const Green: string = d3ScaleChromatic.interpolateGreens(1); // rgb(0, 68, 27) +const Grey: string = d3ScaleChromatic.interpolateGreys(1); // rgb(0, 0, 0) +const Orange: string = d3ScaleChromatic.interpolateOranges(1); // rgb(127, 39, 4) +const Purple: string = d3ScaleChromatic.interpolatePurples(1); // rgb(63, 0, 125) +const Red: string = d3ScaleChromatic.interpolateReds(1); // rgb(103, 0, 13) // ----------------------------------------------------------------------- // Sequential(Multi-Hue) // ----------------------------------------------------------------------- -let BuGn: string = d3ScaleChromatic.interpolateBuGn(1); // rgb(0, 68, 27) -let BuPu: string = d3ScaleChromatic.interpolateBuPu(1); // rgb(77, 0, 75) -let GnBu: string = d3ScaleChromatic.interpolateGnBu(1); // rgb(8, 64, 129) -let OrRd: string = d3ScaleChromatic.interpolateOrRd(1); // rgb(127, 0, 0) -let PuBuGn: string = d3ScaleChromatic.interpolatePuBuGn(1); // rgb(1, 70, 54) -let PuBu: string = d3ScaleChromatic.interpolatePuBu(1); // rgb(2, 56, 88) -let PuRd: string = d3ScaleChromatic.interpolatePuRd(1); // rgb(103, 0, 31) -let RdPu: string = d3ScaleChromatic.interpolateRdPu(1); // rgb(73, 0, 106) -let YlGnBu: string = d3ScaleChromatic.interpolateYlGnBu(1); // rgb(8, 29, 88) -let YlGn: string = d3ScaleChromatic.interpolateYlGn(1); // rgb(0, 69, 41) -let YlOrBr: string = d3ScaleChromatic.interpolateYlOrBr(1); // rgb(102, 37, 6) -let YlOrRd: string = d3ScaleChromatic.interpolateYlOrRd(1); // rgb(128, 0, 38) +const BuGn: string = d3ScaleChromatic.interpolateBuGn(1); // rgb(0, 68, 27) +const BuPu: string = d3ScaleChromatic.interpolateBuPu(1); // rgb(77, 0, 75) +const GnBu: string = d3ScaleChromatic.interpolateGnBu(1); // rgb(8, 64, 129) +const OrRd: string = d3ScaleChromatic.interpolateOrRd(1); // rgb(127, 0, 0) +const PuBuGn: string = d3ScaleChromatic.interpolatePuBuGn(1); // rgb(1, 70, 54) +const PuBu: string = d3ScaleChromatic.interpolatePuBu(1); // rgb(2, 56, 88) +const PuRd: string = d3ScaleChromatic.interpolatePuRd(1); // rgb(103, 0, 31) +const RdPu: string = d3ScaleChromatic.interpolateRdPu(1); // rgb(73, 0, 106) +const YlGnBu: string = d3ScaleChromatic.interpolateYlGnBu(1); // rgb(8, 29, 88) +const YlGn: string = d3ScaleChromatic.interpolateYlGn(1); // rgb(0, 69, 41) +const YlOrBr: string = d3ScaleChromatic.interpolateYlOrBr(1); // rgb(102, 37, 6) +const YlOrRd: string = d3ScaleChromatic.interpolateYlOrRd(1); // rgb(128, 0, 38) diff --git a/types/d3-shape/d3-shape-tests.ts b/types/d3-shape/d3-shape-tests.ts index ee9a8fbb98..4199d2f170 100644 --- a/types/d3-shape/d3-shape-tests.ts +++ b/types/d3-shape/d3-shape-tests.ts @@ -447,8 +447,8 @@ let lineRadial: d3Shape.LineRadial = d3Shape.lineRadial = defaultLineRadial; -let radialLine: d3Shape.RadialLine = lineRadial; +const defaultRadialLine: d3Shape.RadialLine<[number, number]> = defaultLineRadial; +const radialLine: d3Shape.RadialLine = lineRadial; defaultLineRadial = d3Shape.radialLine(); lineRadial = d3Shape.radialLine(); @@ -685,8 +685,8 @@ let areaRadial: d3Shape.AreaRadial = d3Shape.areaRadial = defaultAreaRadial; -let radialArea: d3Shape.RadialArea = areaRadial; +const defaultRadialArea: d3Shape.RadialArea<[number, number]> = defaultAreaRadial; +const radialArea: d3Shape.RadialArea = areaRadial; defaultAreaRadial = d3Shape.radialArea(); areaRadial = d3Shape.radialArea(); @@ -1322,7 +1322,7 @@ customSymbol = d3Shape.symbolWye; // Test pointRadial // ----------------------------------------------------------------------------------- -let coordinatates: [number, number] = d3Shape.pointRadial(0, 12); +const coordinatates: [number, number] = d3Shape.pointRadial(0, 12); // ----------------------------------------------------------------------------------- // Test Stacks diff --git a/types/d3-time-format/d3-time-format-tests.ts b/types/d3-time-format/d3-time-format-tests.ts index 547a77aabe..eb569dd779 100644 --- a/types/d3-time-format/d3-time-format-tests.ts +++ b/types/d3-time-format/d3-time-format-tests.ts @@ -12,8 +12,6 @@ import * as d3TimeFormat from 'd3-time-format'; // Preparatory Steps // ---------------------------------------------------------------------- -let num: number; - let formatFn: (n: Date) => string; let parseFn: (dateString: string) => (Date | null); @@ -38,21 +36,21 @@ parseFn = d3TimeFormat.utcParse('.%L'); // iso ------------------------------------------------------------------ -let dateString: string = d3TimeFormat.isoFormat(new Date(2016, 6, 6)); -let date: Date = d3TimeFormat.isoParse('2016-07-08T14:06:41.386Z'); +const dateString: string = d3TimeFormat.isoFormat(new Date(2016, 6, 6)); +const date: Date = d3TimeFormat.isoParse('2016-07-08T14:06:41.386Z'); // ---------------------------------------------------------------------- // Test Locale Definition // ---------------------------------------------------------------------- -let dateTimeSpecifier: string = localeDef.dateTime; -let dateSpecifier: string = localeDef.date; -let timeSpecifier: string = localeDef.time; -let periods: [string, string] = localeDef.periods; -let days: [string, string, string, string, string, string, string] = localeDef.days; -let shortDays: [string, string, string, string, string, string, string] = localeDef.shortDays; -let months: [string, string, string, string, string, string, string, string, string, string, string, string] = localeDef.months; -let shortMonths: [string, string, string, string, string, string, string, string, string, string, string, string] = localeDef.shortMonths; +const dateTimeSpecifier: string = localeDef.dateTime; +const dateSpecifier: string = localeDef.date; +const timeSpecifier: string = localeDef.time; +const periods: [string, string] = localeDef.periods; +const days: [string, string, string, string, string, string, string] = localeDef.days; +const shortDays: [string, string, string, string, string, string, string] = localeDef.shortDays; +const months: [string, string, string, string, string, string, string, string, string, string, string, string] = localeDef.months; +const shortMonths: [string, string, string, string, string, string, string, string, string, string, string, string] = localeDef.shortMonths; localeDef = { dateTime: '%a %b %e %X %Y', diff --git a/types/d3-time/d3-time-tests.ts b/types/d3-time/d3-time-tests.ts index a99cd818a0..57905d5286 100644 --- a/types/d3-time/d3-time-tests.ts +++ b/types/d3-time/d3-time-tests.ts @@ -11,9 +11,9 @@ import * as d3Time from 'd3-time'; let countableI: d3Time.CountableTimeInterval; let simpleI: d3Time.TimeInterval; let dateArray: Date[]; -let start: Date = new Date(2014, 1, 1, 6, 0, 0, 0); -let end: Date = new Date(2016, 6, 13, 1, 25, 15, 500); -let inBetween: Date = new Date(2015, 6, 13, 1, 30, 5, 700); +const start: Date = new Date(2014, 1, 1, 6, 0, 0, 0); +const end: Date = new Date(2016, 6, 13, 1, 25, 15, 500); +const inBetween: Date = new Date(2015, 6, 13, 1, 30, 5, 700); let resultDate: Date; let count: number; @@ -75,7 +75,7 @@ simpleI = countableI.filter((d: Date) => d.getMonth() === 2); count = countableI.count(start, end); // let countableIOrNull: d3Time.CountableTimeInterval | null = countableI.every(10); // Test fails, since .every(...) return Interval and not CountableInterval -let simpleIOrNull: d3Time.TimeInterval | null = countableI.every(10); +const simpleIOrNull: d3Time.TimeInterval | null = countableI.every(10); resultDate = simpleI.floor(inBetween); resultDate = simpleI.round(inBetween); diff --git a/types/d3-timer/d3-timer-tests.ts b/types/d3-timer/d3-timer-tests.ts index d3e755ede1..042fc11072 100644 --- a/types/d3-timer/d3-timer-tests.ts +++ b/types/d3-timer/d3-timer-tests.ts @@ -9,7 +9,7 @@ import * as d3Timer from 'd3-timer'; // Test now definition -let now: number = d3Timer.now(); +const now: number = d3Timer.now(); // Test timer and timerFlush definitions ------------ diff --git a/types/d3-voronoi/d3-voronoi-tests.ts b/types/d3-voronoi/d3-voronoi-tests.ts index 7dea86241e..76971d6217 100644 --- a/types/d3-voronoi/d3-voronoi-tests.ts +++ b/types/d3-voronoi/d3-voronoi-tests.ts @@ -24,7 +24,7 @@ interface VoronoiTestDatum { y: number; } -let testData: VoronoiTestDatum[] = [ +const testData: VoronoiTestDatum[] = [ { x: 10, y: 10 }, { x: 20, y: 10 }, { x: 10, y: 20 }, @@ -84,7 +84,7 @@ pointPair = [[10, 10], [50, 50]]; // VoronoiPolygon ------------------------------------------------------- -let voronoiPolygon: d3Voronoi.VoronoiPolygon; +declare const voronoiPolygon: d3Voronoi.VoronoiPolygon; voronoiPolygon[0][0] = 10; // x-coordinate of first point voronoiPolygon[0][1] = 10; // y-coordinate of first point @@ -229,7 +229,6 @@ testDatum = link.target; // find() =============================================================== let nearestSite: d3Voronoi.VoronoiSite | null; -let wrongSiteDataType: d3Voronoi.VoronoiSite<[number, number]> | null; // Without search radius nearestSite = voronoiDiagram.find(10, 50); @@ -238,4 +237,4 @@ nearestSite = voronoiDiagram.find(10, 50); nearestSite = voronoiDiagram.find(10, 50, 20); // wrong data type -// wrongSiteDataType = voronoiDiagram.find(10, 50); // fails, due to data type mismatch +// const wrongSiteDataType: d3Voronoi.VoronoiSite<[number, number]> | null; = voronoiDiagram.find(10, 50); // fails, due to data type mismatch diff --git a/types/datejs/index.d.ts b/types/datejs/index.d.ts index d7c1854253..1863dc2a6f 100644 --- a/types/datejs/index.d.ts +++ b/types/datejs/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for DateJS // Project: http://www.datejs.com/ -// Definitions by: David Khristepher Santos +// Definitions by: David Khristepher Santos // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped //NOTE: This definition file is for the library located at http://datejs.googlecode.com/svn/ and documented at https://code.google.com/p/datejs/wiki/APIDocumentation diff --git a/types/datejs/sugarpak.d.ts b/types/datejs/sugarpak.d.ts index b4077960ad..b389f2c723 100644 --- a/types/datejs/sugarpak.d.ts +++ b/types/datejs/sugarpak.d.ts @@ -1,6 +1,6 @@ // Type definitions for DateJS - SugarPak Extensions // Project: http://www.datejs.com/ -// Definitions by: David Khristepher Santos +// Definitions by: David Khristepher Santos // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /** SugarPak.js - Domain Specific Language - Syntactical Sugar */ diff --git a/types/db-migrate-pg/index.d.ts b/types/db-migrate-pg/index.d.ts index 6a72fd1109..09cba26317 100644 --- a/types/db-migrate-pg/index.d.ts +++ b/types/db-migrate-pg/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for db-migrate-pg // Project: https://github.com/db-migrate/pg -// Definitions by: nickiannone +// Definitions by: nickiannone // Definitions: https://github.com/nickiannone/DefinitelyTyped // TypeScript Version: 2.3 diff --git a/types/deasync/deasync-tests.ts b/types/deasync/deasync-tests.ts index e4e77561e9..982e34c338 100644 --- a/types/deasync/deasync-tests.ts +++ b/types/deasync/deasync-tests.ts @@ -7,7 +7,7 @@ function handle(res: number) {} asyncFunction(42, handle); // deasync -let wrapped = deasync(asyncFunction); +const wrapped = deasync(asyncFunction); handle(wrapped(42)); // deasync.loopWhile diff --git a/types/debessmann/debessmann-tests.ts b/types/debessmann/debessmann-tests.ts index 4a247827fd..ab135de254 100644 --- a/types/debessmann/debessmann-tests.ts +++ b/types/debessmann/debessmann-tests.ts @@ -1,9 +1,9 @@ import { DM, Event, EventId } from 'debessmann'; -let eventId: EventId = {seq: 0, time: new Date()}; -let e: Event = {_id: eventId, headers: {header1: 'header1Val'}}; +const eventId: EventId = {seq: 0, time: new Date()}; +const e: Event = {_id: eventId, headers: {header1: 'header1Val'}}; -let dm: DM = { +const dm: DM = { init(endpoint: string, auth: string): void { }, send(data: Event): void { diff --git a/types/decimal.js/index.d.ts b/types/decimal.js/index.d.ts index 69521a46cc..27f4213612 100644 --- a/types/decimal.js/index.d.ts +++ b/types/decimal.js/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for decimal.js // Project: http://mikemcl.github.io/decimal.js -// Definitions by: Joseph Rossi +// Definitions by: Joseph Rossi // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped declare var Decimal: decimal.IDecimalStatic; diff --git a/types/deep-equal/index.d.ts b/types/deep-equal/index.d.ts index d9c4b5f6cf..7451fbc255 100644 --- a/types/deep-equal/index.d.ts +++ b/types/deep-equal/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for deep-equal 1.0 // Project: https://github.com/substack/node-deep-equal -// Definitions by: remojansen , Jay Anslow +// Definitions by: remojansen , Jay Anslow // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped interface DeepEqualOptions { diff --git a/types/detect-port/detect-port-tests.ts b/types/detect-port/detect-port-tests.ts index 759313665b..afd532ead0 100644 --- a/types/detect-port/detect-port-tests.ts +++ b/types/detect-port/detect-port-tests.ts @@ -1,6 +1,6 @@ import * as detect from "detect-port"; -const port: number = 8000; +const port = 8000; /** * callback usage diff --git a/types/dhtmlxgantt/index.d.ts b/types/dhtmlxgantt/index.d.ts index f94ba88a33..53626662ec 100644 --- a/types/dhtmlxgantt/index.d.ts +++ b/types/dhtmlxgantt/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for dhtmlxGantt 4.0.0 // Project: http://dhtmlx.com/docs/products/dhtmlxGantt -// Definitions by: Maksim Kozhukh , Christophe Camicas +// Definitions by: Maksim Kozhukh , Christophe Camicas // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/dhtmlxscheduler/index.d.ts b/types/dhtmlxscheduler/index.d.ts index 2a5ff01c87..96c9670a4d 100644 --- a/types/dhtmlxscheduler/index.d.ts +++ b/types/dhtmlxscheduler/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for dhtmlxScheduler 4.3.0 // Project: http://dhtmlx.com/docs/products/dhtmlxScheduler -// Definitions by: Maksim Kozhukh +// Definitions by: Maksim Kozhukh // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped interface SchedulerCallback { (...args: any[]): any } diff --git a/types/diff/diff-tests.ts b/types/diff/diff-tests.ts index e1b1025495..0d49147c33 100644 --- a/types/diff/diff-tests.ts +++ b/types/diff/diff-tests.ts @@ -1,12 +1,11 @@ -// tslint:disable:no-var only-arrow-functions import jsdiff = require('diff'); -var one = 'beep boop'; -var other = 'beep boob blah'; +const one = 'beep boop'; +const other = 'beep boob blah'; -var diff = jsdiff.diffChars(one, other); +let diff = jsdiff.diffChars(one, other); -diff.forEach(function(part) { - var mark = part.added ? '+' : +diff.forEach(part => { + const mark = part.added ? '+' : part.removed ? '-' : ' '; console.log(mark + " " + part.value); }); @@ -23,8 +22,8 @@ class LineDiffWithoutWhitespace extends jsdiff.Diff { } } -var obj = new LineDiffWithoutWhitespace(true); -var diff = obj.diff(one, other); +const obj = new LineDiffWithoutWhitespace(true); +diff = obj.diff(one, other); printDiff(diff); function printDiff(diff: jsdiff.IDiffResult[]) { @@ -50,7 +49,7 @@ function printDiff(diff: jsdiff.IDiffResult[]) { } function verifyPatchMethods(oldStr: string, newStr: string, uniDiff: jsdiff.IUniDiff) { - var verifyPatch = jsdiff.parsePatch( + const verifyPatch = jsdiff.parsePatch( jsdiff.createTwoFilesPatch("oldFile.ts", "newFile.ts", oldStr, newStr, "old", "new", { context: 1 })); if (JSON.stringify(verifyPatch) !== JSON.stringify(uniDiff)) { @@ -58,7 +57,7 @@ function verifyPatchMethods(oldStr: string, newStr: string, uniDiff: jsdiff.IUni } } function verifyApplyMethods(oldStr: string, newStr: string, uniDiff: jsdiff.IUniDiff) { - var verifyApply = [ + const verifyApply = [ jsdiff.applyPatch(oldStr, uniDiff), jsdiff.applyPatch(oldStr, [uniDiff]) ]; @@ -83,7 +82,7 @@ function verifyApplyMethods(oldStr: string, newStr: string, uniDiff: jsdiff.IUni }); } -verifyPatchMethods(one, other, uniDiff); -var uniDiff = jsdiff.structuredPatch("oldFile.ts", "newFile.ts", one, other, +const uniDiff = jsdiff.structuredPatch("oldFile.ts", "newFile.ts", one, other, "old", "new", { context: 1 }); +verifyPatchMethods(one, other, uniDiff); verifyApplyMethods(one, other, uniDiff); diff --git a/types/dockerode/tslint.json b/types/dockerode/tslint.json index 3db14f85ea..aac1f69ee8 100644 --- a/types/dockerode/tslint.json +++ b/types/dockerode/tslint.json @@ -1 +1,7 @@ -{ "extends": "dtslint/dt.json" } +{ + "extends": "dtslint/dt.json", + "rules": { + // TODO + "await-promise": false + } +} diff --git a/types/dom-inputevent/tslint.json b/types/dom-inputevent/tslint.json index 3db14f85ea..b63c1c3846 100644 --- a/types/dom-inputevent/tslint.json +++ b/types/dom-inputevent/tslint.json @@ -1 +1,7 @@ -{ "extends": "dtslint/dt.json" } +{ + "extends": "dtslint/dt.json", + "rules": { + // TODO + "no-boolean-literal-compare": false + } +} diff --git a/types/dustjs-linkedin/index.d.ts b/types/dustjs-linkedin/index.d.ts index c3381ea00c..17513f1f17 100644 --- a/types/dustjs-linkedin/index.d.ts +++ b/types/dustjs-linkedin/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for linkedin dustjs 1.2.1 // Project: https://github.com/linkedin/dustjs -// Definitions by: Marcelo Dezem +// Definitions by: Marcelo Dezem // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // diff --git a/types/dwt/dwt-tests.ts b/types/dwt/dwt-tests.ts index 4b201cf33d..b1a5cc6b09 100644 --- a/types/dwt/dwt-tests.ts +++ b/types/dwt/dwt-tests.ts @@ -1,5 +1,5 @@ function dwtOnReady() { - let DWObject = Dynamsoft.WebTwainEnv.GetWebTwain('dwtcontrolContainer'); // Get the Dynamic Web TWAIN object that is embeded in the div with id 'dwtcontrolContainer' + const DWObject = Dynamsoft.WebTwainEnv.GetWebTwain('dwtcontrolContainer'); // Get the Dynamic Web TWAIN object that is embeded in the div with id 'dwtcontrolContainer' if (DWObject) { let count = DWObject.SourceCount; if (count === 0) { @@ -12,7 +12,7 @@ function dwtOnReady() { } function acquireImage() { - let DWObject = Dynamsoft.WebTwainEnv.GetWebTwain('dwtcontrolContainer'); + const DWObject = Dynamsoft.WebTwainEnv.GetWebTwain('dwtcontrolContainer'); if (DWObject) { DWObject.SelectSourceByIndex(0); // Use method SelectSourceByIndex to avoid the 'Select Source' dialog DWObject.OpenSource(); @@ -22,7 +22,7 @@ function acquireImage() { } function registerEvent() { - let DWObject = Dynamsoft.WebTwainEnv.GetWebTwain('dwtcontrolContainer'); + const DWObject = Dynamsoft.WebTwainEnv.GetWebTwain('dwtcontrolContainer'); if (DWObject) { // The event OnPostTransfer fires after each image is scanned and transferred DWObject.RegisterEvent("OnPostTransfer", function () {}); @@ -41,7 +41,7 @@ function registerEvent() { } function editImage() { - let DWObject = Dynamsoft.WebTwainEnv.GetWebTwain('dwtcontrolContainer'); + const DWObject = Dynamsoft.WebTwainEnv.GetWebTwain('dwtcontrolContainer'); if (DWObject) { if (DWObject.HowManyImagesInBuffer > 0) DWObject.RotateLeft(DWObject.CurrentImageIndexInBuffer); @@ -58,14 +58,14 @@ function editImage() { } function showImageEditor() { - let DWObject = Dynamsoft.WebTwainEnv.GetWebTwain('dwtcontrolContainer'); + const DWObject = Dynamsoft.WebTwainEnv.GetWebTwain('dwtcontrolContainer'); if (DWObject) { DWObject.ShowImageEditor(); } } function saveImage() { - let DWObject = Dynamsoft.WebTwainEnv.GetWebTwain('dwtcontrolContainer'); + const DWObject = Dynamsoft.WebTwainEnv.GetWebTwain('dwtcontrolContainer'); if (DWObject) { DWObject.ConvertToGrayScale(DWObject.CurrentImageIndexInBuffer); DWObject.SaveAsJPEG("DynamicWebTWAIN.jpg", DWObject.CurrentImageIndexInBuffer); @@ -75,8 +75,8 @@ function saveImage() { } function updateLargeViewer() { - let DWObject = Dynamsoft.WebTwainEnv.GetWebTwain('dwtcontrolContainer'); - let DWObjectLargeViewer = Dynamsoft.WebTwainEnv.GetWebTwain('dwtcontrolContainerLargeViewer'); + const DWObject = Dynamsoft.WebTwainEnv.GetWebTwain('dwtcontrolContainer'); + const DWObjectLargeViewer = Dynamsoft.WebTwainEnv.GetWebTwain('dwtcontrolContainerLargeViewer'); if (DWObject) { DWObject.CopyToClipboard(DWObject.CurrentImageIndexInBuffer); // Copy the current image in the thumbnail to clipboard in DIB format. DWObjectLargeViewer.LoadDibFromClipboard(); // Load the image from Clipboard into the large viewer. @@ -84,7 +84,7 @@ function updateLargeViewer() { } function uploadImage() { - let DWObject = Dynamsoft.WebTwainEnv.GetWebTwain('dwtcontrolContainer'); + const DWObject = Dynamsoft.WebTwainEnv.GetWebTwain('dwtcontrolContainer'); if (DWObject) { DWObject.HTTPPort = 80; DWObject.IfSSL = false; @@ -93,7 +93,7 @@ function uploadImage() { } function downloadImage() { - let DWObject = Dynamsoft.WebTwainEnv.GetWebTwain('dwtcontrolContainer'); + const DWObject = Dynamsoft.WebTwainEnv.GetWebTwain('dwtcontrolContainer'); if (DWObject) { DWObject.HTTPPort = 80; DWObject.HTTPDownload("www.dynamsoft.com", "img.png", () => {}, (errorCode: number, errorString: string) => {}); diff --git a/types/ej.web.all/tslint.json b/types/ej.web.all/tslint.json index f85abff699..cacaecba4b 100644 --- a/types/ej.web.all/tslint.json +++ b/types/ej.web.all/tslint.json @@ -1,9 +1,13 @@ { "extends": "dtslint/dt.json", "rules": { + // All are TODOs "comment-format": false, "no-consecutive-blank-lines": false, + "no-irregular-whitespace": false, + "no-mergeable-namespace": false, "no-padding": false, + "no-unnecessary-qualifier": false, "strict-export-declare-modifiers": false } } diff --git a/types/electron-settings/v2/tslint.json b/types/electron-settings/v2/tslint.json index 4f44991c3c..bc27c7eca5 100644 --- a/types/electron-settings/v2/tslint.json +++ b/types/electron-settings/v2/tslint.json @@ -1,6 +1,8 @@ { "extends": "dtslint/dt.json", "rules": { + // TODOs + "no-boolean-literal-compare": false, "no-empty-interface": false } } diff --git a/types/ember/ember-tests.ts b/types/ember/ember-tests.ts index b5097848ff..0ce8667862 100644 --- a/types/ember/ember-tests.ts +++ b/types/ember/ember-tests.ts @@ -106,13 +106,13 @@ App.userController = Ember.Object.create({ }); Ember.Helper.helper(params => { - let cents = params[0]; + const cents = params[0]; return `${cents * 0.01}`; }); Ember.Helper.helper((params, hash) => { - let cents = params[0]; - let currency = hash.currency; + const cents = params[0]; + const currency = hash.currency; return `${currency}${cents * 0.01}`; }); diff --git a/types/engine.io-client/engine.io-client-tests.ts b/types/engine.io-client/engine.io-client-tests.ts index 4a73136cef..aaf3f5be35 100644 --- a/types/engine.io-client/engine.io-client-tests.ts +++ b/types/engine.io-client/engine.io-client-tests.ts @@ -3,7 +3,7 @@ import client = require('engine.io-client'); let server: engine.Server; let socket: client.Socket; -let options: client.SocketOptions = {}; +const options: client.SocketOptions = {}; options.agent = false; options.upgrade = true; diff --git a/types/enhanced-resolve/index.d.ts b/types/enhanced-resolve/index.d.ts index aa85a8336f..5a39b4f6d0 100644 --- a/types/enhanced-resolve/index.d.ts +++ b/types/enhanced-resolve/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for enhanced-resolve v3.0.0 -// Project: http://github.com/webpack/enhanced-resolve.git +// Project: https://github.com/webpack/enhanced-resolve.git // Definitions by: e-cloud , Onigoetz // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/es6-collections/index.d.ts b/types/es6-collections/index.d.ts index 69f3b10cd8..5d3290a675 100644 --- a/types/es6-collections/index.d.ts +++ b/types/es6-collections/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for es6-collections v0.5.1 // Project: https://github.com/WebReflection/es6-collections/ -// Definitions by: Ron Buckton +// Definitions by: Ron Buckton // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 diff --git a/types/es6-shim/index.d.ts b/types/es6-shim/index.d.ts index 4c03fc8b9e..51824fc932 100644 --- a/types/es6-shim/index.d.ts +++ b/types/es6-shim/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for es6-shim v0.31.2 // Project: https://github.com/paulmillr/es6-shim -// Definitions by: Ron Buckton +// Definitions by: Ron Buckton // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 diff --git a/types/esri-leaflet/esri-leaflet-tests.ts b/types/esri-leaflet/esri-leaflet-tests.ts index 7198c06d06..f6dfdf6e30 100644 --- a/types/esri-leaflet/esri-leaflet-tests.ts +++ b/types/esri-leaflet/esri-leaflet-tests.ts @@ -6,9 +6,9 @@ import L = require('esri-leaflet'); -let latlng: L.LatLng = new L.LatLng(0, 0); -let latlngbounds: L.LatLngBounds = new L.LatLngBounds(latlng, latlng); -let map: L.Map = new L.Map('map'); +const latlng: L.LatLng = new L.LatLng(0, 0); +const latlngbounds: L.LatLngBounds = new L.LatLngBounds(latlng, latlng); +const map: L.Map = new L.Map('map'); let basemapLayer: L.esri.BasemapLayer; basemapLayer = L.esri.basemapLayer('Streets'); @@ -217,7 +217,7 @@ dynamicMapLayer = new L.esri.DynamicMapLayer({ }); dynamicMapLayer.bindPopup(function (err, featureCollection, response) { - let count = featureCollection.features.length; + const count = featureCollection.features.length; return (count) ? count + ' features' : false; }); @@ -450,7 +450,7 @@ featureLayerService.query() .where("Direction = 'WEST'") .run(function (error, featureCollection, response) { }); -let feature = { +const feature = { type: 'Feature', geometry: { type: 'Point', @@ -462,7 +462,7 @@ let feature = { }; featureLayerService.addFeature(feature, function (error, response) { }); -let feature2 = { +const feature2 = { type: 'Feature', id: 2, geometry: { diff --git a/types/esri-leaflet/index.d.ts b/types/esri-leaflet/index.d.ts index e2ccf9f6a8..31a31bb9b5 100644 --- a/types/esri-leaflet/index.d.ts +++ b/types/esri-leaflet/index.d.ts @@ -3,13 +3,6 @@ // Definitions by: strajuser // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -// tslint:disable:whitespace -// tslint:disable:no-trailing-whitespace -// tslint:disable:prefer-method-signature -// tslint:disable:no-single-declare-module -// tslint:disable:max-line-length -// tslint:disable:no-empty-interface - /// declare namespace L { @@ -19,43 +12,43 @@ declare namespace L { interface LayerOptionsBase { /** * URL of the Map Service - * + * * @type {string} * @memberof LayerOptionsBase */ url: string; /** * URL of an ArcGIS API for JavaScript proxy or ArcGIS Resource Proxy to use for proxying requests. - * + * * @type {string} * @memberof LayerOptionsBase */ proxy?: string; /** * Dictates if the service should use CORS when making GET requests. - * + * * @type {boolean} * @memberof LayerOptionsBase */ useCors?: boolean; /** * Will use this token to authenticate all calls to the service. - * + * * @type {string} * @memberof LayerOptionsBase */ token?: string; } - type Basemaps = - 'Streets' + type Basemaps = + 'Streets' | 'Topographic' | 'NationalGeographic' | 'Oceans' | 'Gray' | 'DarkGray' | 'Imagery' - | 'ShadedRelief' + | 'ShadedRelief' | 'Terrain' | 'USATopo' | 'OceansLabels' @@ -63,23 +56,23 @@ declare namespace L { | 'DarkGrayLabels' | 'ImageryLabels' | 'ImageryTransportation' - | 'ShadedReliefLabels' + | 'ShadedReliefLabels' | 'TerrainLabels'; type LeafletGeometry = L.Marker | L.Polygon | L.Polyline | L.LatLng | L.LatLngBounds | L.GeoJSON; type GeoJSONGeometry = GeoJSON.Point | GeoJSON.Polygon | GeoJSON.LineString; type Geometry = LeafletGeometry | GeoJSONGeometry; - + /** * Options for L.esri.BasemapLayer - * + * * @interface BasemapLayerOptions * @extends {L.TileLayerOptions} */ interface BasemapLayerOptions extends L.TileLayerOptions { /** * Will use this token to authenticate all calls to the service. - * + * * @type {string} * @memberof BasemapLayerOptions */ @@ -88,7 +81,7 @@ declare namespace L { /** * L.esri.BasemapLayer is used to display Esri hosted basemaps and attributes data providers appropriately. The Terms of Use for Esri hosted services apply to all Leaflet applications. - * + * * @class BasemapLayer * @extends {L.TileLayer} */ @@ -98,16 +91,16 @@ declare namespace L { /** * L.esri.basemapLayer is used to display Esri hosted basemaps and attributes data providers appropriately. The Terms of Use for Esri hosted services apply to all Leaflet applications. - * - * @param {Basemaps} key - * @param {BasemapLayerOptions} [options] - * @returns {BasemapLayer} + * + * @param {Basemaps} key + * @param {BasemapLayerOptions} [options] + * @returns {BasemapLayer} */ function basemapLayer(key: Basemaps, options?: BasemapLayerOptions): BasemapLayer; - + /** * Options for L.esri.TiledMapLayer - * + * * @interface TiledMapLayerOptions * @extends {L.TileLayerOptions} */ @@ -115,7 +108,7 @@ declare namespace L { /** * If correctZoomLevels is enabled this controls the amount of tolerance for the difference at each scale level for remapping tile levels. * Default 0.1 - * + * * @type {number} * @memberof TiledMapLayerOptions */ @@ -124,7 +117,7 @@ declare namespace L { /** * Access tiles from ArcGIS Online and ArcGIS Server to visualize and identify features. Copyright text from the service is added to map attribution automatically. - * + * * @class TiledMapLayer * @extends {L.TileLayer} */ @@ -132,39 +125,39 @@ declare namespace L { constructor(options: TiledMapLayerOptions); /** * Authenticates this service with a new token and runs any pending requests that required a token. - * - * @param {string} token - * @returns {this} + * + * @param {string} token + * @returns {this} * @memberof TiledMapLayer */ authenticate(token: string): this; /** * Requests metadata about this Feature Layer. Callback will be called with error and metadata. - * - * @param {CallbackHandler} callback - * @param {*} context - * @returns {this} + * + * @param {CallbackHandler} callback + * @param {*} context + * @returns {this} * @memberof TiledMapLayer */ metadata(callback: CallbackHandler, context?: any): this; /** * Returns a new L.esri.services.IdentifyFeatures object that can be used to identify features on this layer. Your callback function will be passed a GeoJSON FeatureCollection with the results or an error. - * - * @returns {*} + * + * @returns {*} * @memberof TiledMapLayer */ identify(): IdentifyFeatures; /** * Returns a new L.esri.services.Find object that can be used to find features. Your callback function will be passed a GeoJSON FeatureCollection with the results or an error. - * - * @returns {*} + * + * @returns {*} * @memberof TiledMapLayer */ find(): Find; /** * Returns a new L.esri.Query object that can be used to query this service. - * - * @returns {*} + * + * @returns {*} * @memberof TiledMapLayer */ query(): Query; @@ -172,15 +165,15 @@ declare namespace L { /** * Access tiles from ArcGIS Online and ArcGIS Server to visualize and identify features. Copyright text from the service is added to map attribution automatically. - * - * @param {TiledMapLayerOptions} options - * @returns {TiledMapLayer} + * + * @param {TiledMapLayerOptions} options + * @returns {TiledMapLayer} */ function tiledMapLayer(options: TiledMapLayerOptions): TiledMapLayer; /** * Options for RasterLayer - * + * * @interface RasterLayerOptions * @extends {L.ImageOverlayOptions} */ @@ -188,7 +181,7 @@ declare namespace L { /** * Server response content type. * Default: 'image' - * + * * @type {string} * @memberof RasterLayerOptions */ @@ -196,21 +189,21 @@ declare namespace L { /** * Position of the layer relative to other overlays. * Default: 'front' - * + * * @type {string} * @memberof RasterLayerOptions */ position?: string; /** * Closest zoom level the layer will be displayed on the map. - * + * * @type {number} * @memberof RasterLayerOptions */ maxZoom?: number; /** * Furthest zoom level the layer will be displayed on the map. - * + * * @type {number} * @memberof RasterLayerOptions */ @@ -219,77 +212,77 @@ declare namespace L { /** * A generic class representing an image layer. This class can be extended to provide support for making export requests from ArcGIS REST services. - * + * * @class RasterLayer * @extends {L.ImageOverlay} */ abstract class RasterLayer extends L.ImageOverlay { /** * Redraws this layer below all other overlay layers. - * - * @returns {this} + * + * @returns {this} * @memberof RasterLayer */ bringToBack(): this; /** * Redraws this layer above all other overlay layers. - * - * @returns {this} + * + * @returns {this} * @memberof RasterLayer */ bringToFront(): this; /** * Returns the current opacity of the layer. - * - * @returns {number} + * + * @returns {number} * @memberof RasterLayer */ getOpacity(): number; /** * Sets the opacity of the layer. - * - * @param {number} opacity - * @returns {this} + * + * @param {number} opacity + * @returns {this} * @memberof RasterLayer */ setOpacity(opacity: number): this; /** * Returns the current time range being used for rendering. Array [from, to]; - * - * @returns {Date[]} + * + * @returns {Date[]} * @memberof RasterLayer */ getTimeRange(): Date[]; /** * Redraws the layer with he passed time range. - * - * @param {Date} from - * @param {Date} to - * @returns {this} + * + * @param {Date} from + * @param {Date} to + * @returns {this} * @memberof RasterLayer */ setTimeRange(from: Date, to: Date): this; /** * Used to make a fresh request to the service and draw the response. - * - * @returns {this} + * + * @returns {this} * @memberof RasterLayer */ redraw(): this; /** * Authenticates this service with a new token and runs any pending requests that required a token. - * - * @param {string} token - * @returns {this} + * + * @param {string} token + * @returns {this} * @memberof TiledMapLayer */ authenticate(token: string): this; /** * Requests metadata about this Feature Layer. Callback will be called with error and metadata. - * - * @param {CallbackHandler} callback - * @param {*} context - * @returns {this} + * + * @param {CallbackHandler} callback + * @param {*} context + * @returns {this} * @memberof TiledMapLayer */ metadata(callback: CallbackHandler, context?: any): this; @@ -297,7 +290,7 @@ declare namespace L { /** * Options for L.esri.DynamicMapLayer - * + * * @interface DynamicMapLayerOptions * @extends {RasterLayerOptions} */ @@ -305,43 +298,43 @@ declare namespace L { /** * Output format of the image. * Default: 'png24' - * + * * @type {string} * @memberof DynamicMapLayerOptions */ format?: string; /** * Allow the server to produce transparent images. - * + * * @type {boolean} * @memberof DynamicMapLayerOptions */ transparent?: boolean; /** * Attribution from service metadata copyright text is automatically displayed in Leaflet's default control. This property can be used for customization. - * + * * @type {string} * @memberof DynamicMapLayerOptions */ attribution?: string; /* * An array of Layer IDs like [3,4,5] to show from the service. - * + * * @type {any[]} * @memberof DynamicMapLayerOptions */ layers?: any[]; /** - * SQL filters to define what features will be included in the image rendered by the service. An object is used with keys that map each query to its respective layer. + * SQL filters to define what features will be included in the image rendered by the service. An object is used with keys that map each query to its respective layer. * { 3: "STATE_NAME='Kansas'", 9: "POP2007>25000" } - * + * * @type {*} * @memberof DynamicMapLayerOptions */ layerDefs?: any; /** * JSON object literal used to manipulate the layer symbology defined in the service itself. Requires a 10.1 (or above) map service which supports dynamicLayers requests. - * + * * @type {*} * @memberof DynamicMapLayerOptions */ @@ -351,7 +344,7 @@ declare namespace L { /** * Render and visualize Map Services from ArcGIS Online and ArcGIS Server. L.esri.DynamicMapLayer also supports custom popups and identification of features. * Map Services are used when its preferable to ask the server to draw layers at a particular location and scale and pass back the image which was generated on the fly. They also expose capabilities for querying and identifying individual features. - * + * * @class DynamicMapLayer * @extends {RasterLayer} */ @@ -359,114 +352,114 @@ declare namespace L { constructor(options: DynamicMapLayerOptions); /** * Uses the provided function to create a popup that will identify features whenever the map is clicked. Your function will be passed a GeoJSON FeatureCollection of the features at the clicked location and should return the appropriate HTML. If you do not want to open the popup when there are no results, return false. - * - * @param {any} fn - * @param {L.PopupOptions} popupOptions - * @returns {this} + * + * @param {any} fn + * @param {L.PopupOptions} popupOptions + * @returns {this} * @memberof DynamicMapLayer */ bindPopup(fn: FeatureCallbackHandler, popupOptions?: L.PopupOptions): this; bindPopup(content: ((layer: Layer) => Content) | Content | Popup, options?: PopupOptions): this; /** * Removes a popup previously bound with bindPopup. - * - * @returns {this} + * + * @returns {this} * @memberof DynamicMapLayer */ unbindPopup(): this; /** * Returns the current opacity of the layer. - * - * @returns {number} + * + * @returns {number} * @memberof DynamicMapLayer */ getOpacity(): number; /** * Sets the opacity of the layer. - * - * @param {number} opacity - * @returns {this} + * + * @param {number} opacity + * @returns {this} * @memberof DynamicMapLayer */ setOpacity(opacity: number): this; /** * Returns the array of visible layers specified in the layer constructor. - * - * @returns {Array} + * + * @returns {Array} * @memberof DynamicMapLayer */ getLayers(): any[]; /** * Redraws the layer to show the passed array of layer ids. - * - * @param {Array} layers - * @returns {this} + * + * @param {Array} layers + * @returns {this} * @memberof DynamicMapLayer */ setLayers(layers: any[]): this; /** * Returns the current layer definition(s) being used for rendering. - * - * @returns {*} + * + * @returns {*} * @memberof DynamicMapLayer */ getLayerDefs(): any; /** * Redraws the layer with the new layer definitions. Corresponds to the layerDefs option on the export API. - * - * @param {*} layerDefs - * @returns {this} + * + * @param {*} layerDefs + * @returns {this} * @memberof DynamicMapLayer */ setLayerDefs(layerDefs: any): this; /** * Returns the current time options being used for rendering. - * - * @returns {*} + * + * @returns {*} * @memberof DynamicMapLayer */ getTimeOptions(): any; /** * Sets the current time options being used to render the layer. Corresponds to the layerTimeOptions option on the export API. - * - * @param {*} timeOptions - * @returns {this} + * + * @param {*} timeOptions + * @returns {this} * @memberof DynamicMapLayer */ setTimeOptions(timeOptions: any): this; /** * Returns a JSON object representing the modified layer symbology being requested from the map service. - * - * @returns {*} + * + * @returns {*} * @memberof DynamicMapLayer */ getDynamicLayers(): any; /** * Used to insert raw dynamicLayers JSON in situations where you'd like to modify layer symbology defined in the service itself. - * - * @param {*} layers - * @returns {this} + * + * @param {*} layers + * @returns {this} * @memberof DynamicMapLayer */ setDynamicLayers(layers: any): this; /** * Returns a new L.esri.services.IdentifyFeatures object that can be used to identify features on this layer. Your callback function will be passed a GeoJSON FeatureCollection with the results or an error. - * - * @returns {*} + * + * @returns {*} * @memberof DynamicMapLayer */ identify(): IdentifyFeatures; /** * Returns a new L.esri.services.Find object that can be used to find features. Your callback function will be passed a GeoJSON FeatureCollection with the results or an error. - * - * @returns {*} + * + * @returns {*} * @memberof DynamicMapLayer */ find(): Find; /** * Returns a new L.esri.Query object that can be used to query this service. - * - * @returns {*} + * + * @returns {*} * @memberof DynamicMapLayer */ query(): Query; @@ -475,138 +468,138 @@ declare namespace L { /** * Render and visualize Map Services from ArcGIS Online and ArcGIS Server. L.esri.DynamicMapLayer also supports custom popups and identification of features. * Map Services are used when its preferable to ask the server to draw layers at a particular location and scale and pass back the image which was generated on the fly. They also expose capabilities for querying and identifying individual features. - * - * @param {DynamicMapLayerOptions} options - * @returns {DynamicMapLayer} + * + * @param {DynamicMapLayerOptions} options + * @returns {DynamicMapLayer} */ function dynamicMapLayer(options: DynamicMapLayerOptions): DynamicMapLayer; /** * Options for FeatureLayer - * + * * @interface FeatureLayerOptions * @extends {LayerOptionsBase} */ interface FeatureLayerOptions extends LayerOptionsBase { /** * Function that will be used for creating layers for GeoJSON points. If the option is not specified, simple markers will be created). For point layers, custom panes should be passed through pointToLayer (example here). - * + * * @memberof FeatureLayerOptions */ pointToLayer?: (feature: any, latLng: LatLngExpression) => void; /** * Function that will be used to get style options for vector layers created for GeoJSON features. - * + * * @memberof FeatureLayerOptions */ style?: (feature: any, layer: L.Layer) => void; /** * Provides an opportunity to introspect individual GeoJSON features in the layer. - * + * * @memberof FeatureLayerOptions */ onEachFeature?: (feature: any, layer: L.Layer) => void; /** * An optional expression to filter features server side. String values should be denoted using single quotes ie: where: "FIELDNAME = 'field value'"; More information about valid SQL syntax can be found here. - * + * * @type {string} * @memberof FeatureLayerOptions */ where?: string; /** * Closest zoom level the layer will be displayed on the map. example: maxZoom:19 - * + * * @type {number} * @memberof FeatureLayerOptions */ maxZoom?: number; /** * Furthest zoom level the layer will be displayed on the map. example: minZoom:3 - * + * * @type {number} * @memberof FeatureLayerOptions */ minZoom?: number; /** * Will remove layers from the internal cache when they are removed from the map. - * + * * @type {boolean} * @memberof FeatureLayerOptions */ cacheLayers?: boolean; /** * An array of fieldnames to pull from the service. Includes all fields by default. You should always specify the name of the unique id for the service. Usually either 'FID' or 'OBJECTID'. - * + * * @type {Array} * @memberof FeatureLayerOptions */ fields?: string[]; /** * When paired with to defines the time range of features to display. Requires the Feature Layer to be time enabled. - * + * * @type {Date} * @memberof FeatureLayerOptions */ from?: Date; /** * When paired with from defines the time range of features to display. Requires the Feature Layer to be time enabled. - * + * * @type {Date} * @memberof FeatureLayerOptions */ to?: Date; /** * The name of the field to lookup the time of the feature. Can be an object like {start:'startTime', end:'endTime'} or a string like 'created'. - * + * * @type {*} * @memberof FeatureLayerOptions */ timeField?: any; /** * Determines where features are filtered by time. By default features will be filtered by the server. If set to 'client' all features are requested and filtered by the app before display. - * + * * @type {('server' | 'client')} * @memberof FeatureLayerOptions */ timeFilterMode?: 'server' | 'client'; /** * How much to simplify polygons and polylines. A higher value gives better performance, a lower value gives a more accurate representation. - * + * * @type {number} * @memberof FeatureLayerOptions */ simplifyFactor?: number; /** * How many digits of precision to request from the server. Wikipedia has a great reference of digit precision to meters. - * + * * @type {number} * @memberof FeatureLayerOptions */ precision?: number; /** * The vector renderer to use to draw the service. Usually L.svg() is preferable but setting to L.canvas() can have performance benefits for large polygon layers. - * + * * @type {(L.SVG | L.Canvas)} * @memberof FeatureLayerOptions */ renderer?: L.SVG | L.Canvas; /** * Set this to false if your own service supports GeoJSON as an output format but you'd like to ask for Geoservices JSON instead. - * + * * @type {boolean} * @memberof FeatureLayerOptions */ isModern?: boolean; /** * When utilizing esri-leaflet-renderers '2.0.2' or above, this option makes it possible to override the symbology defined by the service itself. - * + * * @type {boolean} * @memberof FeatureLayerOptions */ ignoreRenderer?: boolean; } - type StyleCallback = (feature: any) => any; + type StyleCallback = (feature: any) => any; // TODO: VirtualGrid extends support @@ -617,7 +610,7 @@ declare namespace L { * Feature Layer URLs always end in a number (ex: /FeatureServer/{LAYER_ID} or /MapServer/{LAYER_ID}). * You can create a new empty feature service with a single layer on the ArcGIS for Developers website or you can use ArcGIS Online to create a Feature Service from a CSV or Shapefile * L.esri.FeatureLayer divides the current map extent into a grid of individual cells and uses them to fire queries to fetch nearby features. This technique is comparable to MODE_ONDEMAND in the ArcGIS API for JavaScript. - * + * * @class FeatureLayer * @extends {L.Layer} */ @@ -627,99 +620,99 @@ declare namespace L { * Sets the given path options to each layer that has a setStyle method. Can also be a Function that will receive a feature argument and should return Path Options * featureLayer.setStyle({ color: 'white' }) * featureLayer.setStyle(function(feature){ return { weight: feature.properties.pixelWidth };}) - * - * @param {(L.PathOptions | StyleCallback)} style - * @returns {this} + * + * @param {(L.PathOptions | StyleCallback)} style + * @returns {this} * @memberof FeatureLayer */ setStyle(style: L.PathOptions | StyleCallback): this; /** * Changes the style on a specfic feature. - * - * @param {(string | number)} id - * @param {(L.PathOptions | StyleCallback)} style - * @returns {this} + * + * @param {(string | number)} id + * @param {(L.PathOptions | StyleCallback)} style + * @returns {this} * @memberof FeatureLayer */ setFeatureStyle(id: string | number, style: L.PathOptions | StyleCallback): this; /** * Given the ID of a feature, reset that feature to the original style. - * - * @returns {this} + * + * @returns {this} * @memberof FeatureLayer */ resetStyle(): this; /** * Calls the passed function against every feature. The function will be passed the layer that represents the feature. * featureLayer.eachFeature(function(layer){ console.log(layer.feature.properties.NAME); }); - * - * @param {(feature: any) => void} fn - * @param {*} [context] - * @returns {this} + * + * @param {(feature: any) => void} fn + * @param {*} [context] + * @returns {this} * @memberof FeatureLayer */ - eachFeature(fn: (feature: any) => void, context?: any): this; + eachFeature(fn: (feature: any) => void, context?: any): this; /** * Calls the passed function against every feature that is currently being displayed. - * - * @param {(feature: any) => void} fn - * @param {*} [context] - * @returns {this} + * + * @param {(feature: any) => void} fn + * @param {*} [context] + * @returns {this} * @memberof FeatureLayer */ - eachActiveFeature(fn: (feature: any) => void, context?: any): this; + eachActiveFeature(fn: (feature: any) => void, context?: any): this; /** * Given the id of a Feature return the layer on the map that represents it. This will usually be a Leaflet vector layer like Polyline or Polygon, or a Leaflet Marker. - * - * @param {(string | number)} id - * @returns {L.Layer} + * + * @param {(string | number)} id + * @returns {L.Layer} * @memberof FeatureLayer */ getFeature(id: string | number): L.Layer; /** * Returns the current where setting - * - * @returns {string} + * + * @returns {string} * @memberof FeatureLayer */ getWhere(): string; /** * Sets the new where option and refreshes the layer to reflect the new where filter. Accepts an optional callback and function context. - * - * @param {string} where - * @param {FeatureCallbackHandler} [callback] - * @param {*} [context] - * @returns {this} + * + * @param {string} where + * @param {FeatureCallbackHandler} [callback] + * @param {*} [context] + * @returns {this} * @memberof FeatureLayer */ - setWhere(where: string, callback?: FeatureCallbackHandler, context?: any): this; + setWhere(where: string, callback?: FeatureCallbackHandler, context?: any): this; /** * Returns the current time range as an array like [from, to] - * - * @returns {Date[]} + * + * @returns {Date[]} * @memberof FeatureLayer */ getTimeRange(): Date[]; /** * Sets the current time filter applied to features. An optional callback is run upon completion if timeFilterMode is set to 'server'. Also accepts function context as the last argument. - * - * @param {Date} from - * @param {Date} to - * @param {FeatureCallbackHandler} [callback] - * @param {*} [context] - * @returns {this} + * + * @param {Date} from + * @param {Date} to + * @param {FeatureCallbackHandler} [callback] + * @param {*} [context] + * @returns {this} * @memberof FeatureLayer */ - setTimeRange(from: Date, to: Date, callback?: FeatureCallbackHandler, context?: any): this; + setTimeRange(from: Date, to: Date, callback?: FeatureCallbackHandler, context?: any): this; /** * Adds a new feature to the feature layer. this also adds the feature to the map if creation is successful. * Requires authentication as a user who has permission to edit the service in ArcGIS Online or the user who created the service. * Requires the Create capability be enabled on the service. You can check if creation exists by checking the metadata of your service under capabilities. - * - * @param {GeoJSONFeature} feature - * @param {ResponseCallbackHandler} [callback] - * @param {*} context - * @returns {this} + * + * @param {GeoJSONFeature} feature + * @param {ResponseCallbackHandler} [callback] + * @param {*} context + * @returns {this} * @memberof FeatureLayer */ // TODO: GeoJSONFeature @@ -728,11 +721,11 @@ declare namespace L { * Update the provided feature on the Feature Layer. This also updates the feature on the map. * Requires authentication as a user who has permission to edit the service in ArcGIS Online or the user who created the service. * Requires the Update capability be enabled on the service. You can check if this operation exists by checking the metadata of your service under capabilities. - * - * @param {GeoJSONFeature} feature - * @param {ResponseCallbackHandler} [callback] - * @param {*} context - * @returns {this} + * + * @param {GeoJSONFeature} feature + * @param {ResponseCallbackHandler} [callback] + * @param {*} context + * @returns {this} * @memberof FeatureLayer */ // TODO: GeoJSONFeature @@ -741,11 +734,11 @@ declare namespace L { * Remove the feature with the provided id from the feature layer. This will also remove the feature from the map if it exists. * Requires authentication as a user who has permission to edit the service in ArcGIS Online or the user who created the service. * Requires the Delete capability be enabled on the service. You can check if this operation exists by checking the metadata of your service under capabilities. - * - * @param {(string | number)} id - * @param {ResponseCallbackHandler} [callback] - * @param {*} context - * @returns {this} + * + * @param {(string | number)} id + * @param {ResponseCallbackHandler} [callback] + * @param {*} context + * @returns {this} * @memberof FeatureLayer */ deleteFeature(id: string | number, callback?: ResponseCallbackHandler, context?: any): this; @@ -753,64 +746,64 @@ declare namespace L { * Removes an array of features with the provided ids from the feature layer. This will also remove the features from the map if they exist. * Requires authentication as a user who has permission to edit the service in ArcGIS Online or the user who created the service. * Requires the Delete capability be enabled on the service. You can check if this operation exists by checking the metadata of your service under capabilities. - * - * @param {(Array)} ids - * @param {ResponseCallbackHandler} [callback] - * @param {*} context - * @returns {this} + * + * @param {(Array)} ids + * @param {ResponseCallbackHandler} [callback] + * @param {*} context + * @returns {this} * @memberof FeatureLayer */ deleteFeatures(ids: string[] | number[], callback?: ResponseCallbackHandler, context?: any): this; /** * Redraws a feature with the provided id from the feature layer. - * - * @param {(string | number)} id - * @returns {this} + * + * @param {(string | number)} id + * @returns {this} * @memberof FeatureLayer */ redraw(id: string | number): this; /** * Redraws all features from the feature layer that exist on the map. - * - * @returns {this} + * + * @returns {this} * @memberof FeatureLayer */ refresh(): this; /** * Authenticates this service with a new token and runs any pending requests that required a token. - * - * @param {string} token - * @returns {this} + * + * @param {string} token + * @returns {this} * @memberof TiledMapLayer */ authenticate(token: string): this; /** * Requests metadata about this Feature Layer. Callback will be called with error and metadata. - * - * @param {CallbackHandler} callback - * @param {*} context - * @returns {this} + * + * @param {CallbackHandler} callback + * @param {*} context + * @returns {this} * @memberof TiledMapLayer */ metadata(callback: CallbackHandler, context?: any): this; /** * Returns a new L.esri.services.IdentifyFeatures object that can be used to identify features on this layer. Your callback function will be passed a GeoJSON FeatureCollection with the results or an error. - * - * @returns {*} + * + * @returns {*} * @memberof TiledMapLayer */ identify(): IdentifyFeatures; /** * Returns a new L.esri.services.Find object that can be used to find features. Your callback function will be passed a GeoJSON FeatureCollection with the results or an error. - * - * @returns {*} + * + * @returns {*} * @memberof TiledMapLayer */ find(): Find; /** * Returns a new L.esri.Query object that can be used to query this service. - * - * @returns {*} + * + * @returns {*} * @memberof TiledMapLayer */ query(): Query; @@ -823,9 +816,9 @@ declare namespace L { * Feature Layer URLs always end in a number (ex: /FeatureServer/{LAYER_ID} or /MapServer/{LAYER_ID}). * You can create a new empty feature service with a single layer on the ArcGIS for Developers website or you can use ArcGIS Online to create a Feature Service from a CSV or Shapefile * L.esri.FeatureLayer divides the current map extent into a grid of individual cells and uses them to fire queries to fetch nearby features. This technique is comparable to MODE_ONDEMAND in the ArcGIS API for JavaScript. - * - * @param {FeatureLayerOptions} options - * @returns {FeatureLayer} + * + * @param {FeatureLayerOptions} options + * @returns {FeatureLayer} */ function featureLayer(options: FeatureLayerOptions): FeatureLayer; } @@ -838,34 +831,34 @@ declare namespace L { /** * Options for L.esri.Service - * + * * @interface ServiceOptions */ interface ServiceOptions { /** * URL of the ArcGIS service you would like to consume. - * + * * @type {string} * @memberof ServiceOptions */ url?: string; /** * URL of an ArcGIS API for JavaScript proxy or ArcGIS Resource Proxy to use for proxying POST requests. - * + * * @type {string} * @memberof ServiceOptions */ proxy?: string; /** * If this service should use CORS when making GET requests. - * + * * @type {boolean} * @memberof ServiceOptions */ useCors?: boolean; /** * Operation timeout - * + * * @type {number} * @memberof ServiceOptions */ @@ -874,47 +867,47 @@ declare namespace L { /** * A generic class representing a hosted resource on ArcGIS Online or ArcGIS Server. This class can be extended to provide support for making requests and serves as a standard for authentication and proxying. - * + * * @class Service * @extends {L.Evented} */ abstract class Service extends L.Evented { /** * Makes a GET request to the service. The service's URL will be combined with the path option and parameters will be serialized to a query string. Accepts an optional function context for the callback. - * - * @param {string} url - * @param {*} [params] - * @param {CallbackHandler} [callback] - * @param {*} [context] - * @returns {this} + * + * @param {string} url + * @param {*} [params] + * @param {CallbackHandler} [callback] + * @param {*} [context] + * @returns {this} * @memberof Service */ get(url: string, params?: any, callback?: CallbackHandler, context?: any): this; /** * Makes a POST request to the service. The service's URL will be combined with the path option and parameters will be serialized. Accepts an optional function context for the callback. - * - * @param {string} url - * @param {*} [params] - * @param {CallbackHandler} [callback] - * @param {*} [context] - * @returns {this} + * + * @param {string} url + * @param {*} [params] + * @param {CallbackHandler} [callback] + * @param {*} [context] + * @returns {this} * @memberof Service */ post(url: string, params?: any, callback?: CallbackHandler, context?: any): this; /** * Authenticates this service with a new token and runs any pending requests that required a token. - * - * @param {string} token - * @returns {this} + * + * @param {string} token + * @returns {this} * @memberof TiledMapLayer */ authenticate(token: string): this; /** * Requests metadata about this Feature Layer. Callback will be called with error and metadata. - * - * @param {CallbackHandler} callback - * @param {*} context - * @returns {this} + * + * @param {CallbackHandler} callback + * @param {*} context + * @returns {this} * @memberof TiledMapLayer */ metadata(callback: CallbackHandler, context?: any): this; @@ -922,7 +915,7 @@ declare namespace L { /** * Options for MapService - * + * * @interface MapServiceOptions * @extends {ServiceOptions} */ @@ -930,7 +923,7 @@ declare namespace L { /** * L.esri.MapService is an abstraction for interacting with Map Services running on ArcGIS Online and ArcGIS Server that allows you to make requests to the API, as well as query and identify published features. - * + * * @class MapService * @extends {Service} */ @@ -938,22 +931,22 @@ declare namespace L { constructor(options: MapServiceOptions); /** * Returns a new L.esri.services.IdentifyFeatures object that can be used to identify features on this layer. Your callback function will be passed a GeoJSON FeatureCollection with the results or an error. - * - * @returns {*} + * + * @returns {*} * @memberof MapService */ identify(): IdentifyFeatures; /** * Returns a new L.esri.services.Find object that can be used to find features. Your callback function will be passed a GeoJSON FeatureCollection with the results or an error. - * - * @returns {*} + * + * @returns {*} * @memberof MapService */ find(): Find; /** * Returns a new L.esri.Query object that can be used to query this service. - * - * @returns {*} + * + * @returns {*} * @memberof MapService */ query(): Query; @@ -961,15 +954,15 @@ declare namespace L { /** * L.esri.MapService is an abstraction for interacting with Map Services running on ArcGIS Online and ArcGIS Server that allows you to make requests to the API, as well as query and identify published features. - * - * @param {MapServiceOptions} options - * @returns {MapService} + * + * @param {MapServiceOptions} options + * @returns {MapService} */ function mapService(options: MapServiceOptions): MapService; /** * Options for Task - * + * * @interface TaskOptions * @extends {ServiceOptions} */ @@ -977,7 +970,7 @@ declare namespace L { /** * L.esri.Task is a generic class that provides the foundation for calling operations on ArcGIS Online and ArcGIS Server Services like query, find and identify. - * + * * @class Task * @extends {L.Class} */ @@ -985,20 +978,20 @@ declare namespace L { constructor(options: TaskOptions | Service); /** * Makes a request to the associated service. The service's URL will be combined with the path option and parameters will be serialized. Accepts an optional function context for the callback. - * - * @param {string} url - * @param {*} params - * @param {*} callback - * @param {*} context - * @returns {this} + * + * @param {string} url + * @param {*} params + * @param {*} callback + * @param {*} context + * @returns {this} * @memberof Task */ request(url: string, params?: any, callback?: any, context?: any): this; /** * Adds a token to this request if the service requires authentication. Will be added automatically if used with a service. - * - * @param {string} token - * @returns {this} + * + * @param {string} token + * @returns {this} * @memberof Task */ token(token: string): this; @@ -1006,15 +999,15 @@ declare namespace L { /** * L.esri.Task is a generic class that provides the foundation for calling operations on ArcGIS Online and ArcGIS Server Services like query, find and identify. - * - * @param {(TaskOptions | Service)} options - * @returns {Task} + * + * @param {(TaskOptions | Service)} options + * @returns {Task} */ function task(options: TaskOptions | Service): Task; /** * Options for ImageService - * + * * @interface ImageServiceOptions * @extends {ServiceOptions} */ @@ -1022,7 +1015,7 @@ declare namespace L { /** * L.esri.ImageService is an abstraction for interacting with Image Services running on ArcGIS Online and ArcGIS Server that allows you to make requests to the API, as well as query and identify features on the service. - * + * * @class ImageService * @extends {Service} */ @@ -1030,8 +1023,8 @@ declare namespace L { constructor(options: ImageServiceOptions); /** * Returns a new L.esri.Query object that can be used to query this service. - * - * @returns {this} + * + * @returns {this} * @memberof ImageService */ query(): Query; @@ -1039,15 +1032,15 @@ declare namespace L { /** * L.esri.ImageService is an abstraction for interacting with Image Services running on ArcGIS Online and ArcGIS Server that allows you to make requests to the API, as well as query and identify features on the service. - * - * @param {ImageServiceOptions} options - * @returns {ImageService} + * + * @param {ImageServiceOptions} options + * @returns {ImageService} */ function imageService(options: ImageServiceOptions): ImageService; /** * Options for FeatureLayerService - * + * * @interface FeatureLayerServiceOptions * @extends {ServiceOptions} */ @@ -1055,7 +1048,7 @@ declare namespace L { /** * L.esri.FeatureLayerService is an abstraction for interacting with Feature Layers running on ArcGIS Online and ArcGIS Server that allows you to make requests to the API, as well as query, add, update and remove features from the service. - * + * * @class FeatureLayerService * @extends {Service} */ @@ -1063,8 +1056,8 @@ declare namespace L { constructor(options: FeatureLayerServiceOptions); /** * Returns a new L.esri.Query object that can be used to query this layer. - * - * @returns {this} + * + * @returns {this} * @memberof FeatureLayerService */ query(): Query; @@ -1072,11 +1065,11 @@ declare namespace L { * Adds a new feature to the feature layer. this also adds the feature to the map if creation is successful. * Requires authentication as a user who has permission to edit the service in ArcGIS Online or the user who created the service. * Requires the Create capability be enabled on the service. You can check if creation exists by checking the metadata of your service under capabilities. - * - * @param {GeoJSONFeature} feature - * @param {ResponseCallbackHandler} [callback] - * @param {*} context - * @returns {this} + * + * @param {GeoJSONFeature} feature + * @param {ResponseCallbackHandler} [callback] + * @param {*} context + * @returns {this} * @memberof FeatureLayerService */ // TODO: GeoJSONFeature @@ -1085,11 +1078,11 @@ declare namespace L { * Update the provided feature on the Feature Layer. This also updates the feature on the map. * Requires authentication as a user who has permission to edit the service in ArcGIS Online or the user who created the service. * Requires the Update capability be enabled on the service. You can check if this operation exists by checking the metadata of your service under capabilities. - * - * @param {GeoJSONFeature} feature - * @param {ResponseCallbackHandler} [callback] - * @param {*} context - * @returns {this} + * + * @param {GeoJSONFeature} feature + * @param {ResponseCallbackHandler} [callback] + * @param {*} context + * @returns {this} * @memberof FeatureLayerService */ // TODO: GeoJSONFeature @@ -1098,11 +1091,11 @@ declare namespace L { * Remove the feature with the provided id from the feature layer. This will also remove the feature from the map if it exists. * Requires authentication as a user who has permission to edit the service in ArcGIS Online or the user who created the service. * Requires the Delete capability be enabled on the service. You can check if this operation exists by checking the metadata of your service under capabilities. - * - * @param {(string | number)} id - * @param {ResponseCallbackHandler} [callback] - * @param {*} context - * @returns {this} + * + * @param {(string | number)} id + * @param {ResponseCallbackHandler} [callback] + * @param {*} context + * @returns {this} * @memberof FeatureLayerService */ deleteFeature(id: string | number, callback?: ResponseCallbackHandler, context?: any): this; @@ -1110,11 +1103,11 @@ declare namespace L { * Removes an array of features with the provided ids from the feature layer. This will also remove the features from the map if they exist. * Requires authentication as a user who has permission to edit the service in ArcGIS Online or the user who created the service. * Requires the Delete capability be enabled on the service. You can check if this operation exists by checking the metadata of your service under capabilities. - * - * @param {(Array)} ids - * @param {ResponseCallbackHandler} [callback] - * @param {*} context - * @returns {this} + * + * @param {(Array)} ids + * @param {ResponseCallbackHandler} [callback] + * @param {*} context + * @returns {this} * @memberof FeatureLayerService */ deleteFeatures(ids: string[] | number[], callback?: ResponseCallbackHandler, context?: any): this; @@ -1122,15 +1115,15 @@ declare namespace L { /** * L.esri.FeatureLayerService is an abstraction for interacting with Feature Layers running on ArcGIS Online and ArcGIS Server that allows you to make requests to the API, as well as query, add, update and remove features from the service. - * - * @param {FeatureLayerServiceOptions} options - * @returns {FeatureLayerService} + * + * @param {FeatureLayerServiceOptions} options + * @returns {FeatureLayerService} */ function featureLayerService(options: FeatureLayerServiceOptions): FeatureLayerService; /** * Options for Query - * + * * @interface QueryOptions * @extends {TaskOptions} */ @@ -1139,7 +1132,7 @@ declare namespace L { /** * L.esri.Query is an abstraction for the query API included in Feature Layers and Image Services. It provides a chainable API for building request parameters and executing queries. * Note Depending on the type of service you are querying (Feature Layer, Map Service, Image Service) and the version of ArcGIS Server that hosts the service some of these options may not be available. - * + * * @class Query * @extends {Task} */ @@ -1147,190 +1140,190 @@ declare namespace L { constructor(options: QueryOptions); /** * Queries features from the service within (fully contained by) the passed geometry object. geometry can be an instance of L.Marker, L.Polygon, L.Polyline, L.LatLng, L.LatLngBounds and L.GeoJSON. It can also accept valid GeoJSON Point, Polyline, Polygon objects and GeoJSON Feature objects containing Point, Polyline, Polygon. - * - * @param {Geometry} geometry - * @returns {this} + * + * @param {Geometry} geometry + * @returns {this} * @memberof Query */ within(geometry: Geometry): this; /** * Queries features from the service that fully contain the passed geometry object. geometry can be an instance of L.Marker, L.Polygon, L.Polyline, L.LatLng, L.LatLngBounds and L.GeoJSON. It can also accept valid GeoJSON Point, Polyline, Polygon objects and GeoJSON Feature objects containing Point, Polyline, Polygon. - * - * @param {Geometry} geometry - * @returns {this} + * + * @param {Geometry} geometry + * @returns {this} * @memberof Query */ contains(geometry: Geometry): this; /** * Queries features from the service that intersect (touch anywhere) the passed geometry object. geometry can be an instance of L.Marker, L.Polygon, L.Polyline, L.LatLng, L.LatLngBounds and L.GeoJSON. It can also accept valid GeoJSON Point, Polyline, Polygon objects and GeoJSON Feature objects containing Point, Polyline, Polygon. - * - * @param {Geometry} geometry - * @returns {this} + * + * @param {Geometry} geometry + * @returns {this} * @memberof Query */ intersects(geometry: Geometry): this; /** * Queries features from the service that have a bounding box that intersects the bounding box of the passed geometry object. geometry can be an instance of L.Marker, L.Polygon, L.Polyline, L.LatLng, L.LatLngBounds and L.GeoJSON. It can also accept valid GeoJSON Point, Polyline, Polygon objects and GeoJSON Feature objects containing Point, Polyline, Polygon. - * - * @param {Geometry} geometry - * @returns {this} + * + * @param {Geometry} geometry + * @returns {this} * @memberof Query */ bboxIntersects(geometry: Geometry): this; /** * Queries features from the service that overlap (touch but are not fully contained by) the passed geometry object. geometry can be an instance of L.Marker, L.Polygon, L.Polyline, L.LatLng, L.LatLngBounds and L.GeoJSON. It can also accept valid GeoJSON Point, Polyline, Polygon objects and GeoJSON Feature objects containing Point, Polyline, Polygon. - * - * @param {Geometry} geometry - * @returns {this} + * + * @param {Geometry} geometry + * @returns {this} * @memberof Query */ overlap(geometry: Geometry): this; /** - * Queries features a given distance in meters around a LatLng. + * Queries features a given distance in meters around a LatLng. * Only available for Feature Layers hosted on ArcGIS Online or ArcGIS Server 10.3 that include the capability supportQueryWithDistance. - * - * @param {L.LatLng} latlng - * @param {number} distance - * @returns {this} + * + * @param {L.LatLng} latlng + * @param {number} distance + * @returns {this} * @memberof Query */ nearby(latlng: L.LatLng, distance: number): this; /** * Adds a where clause to the query. String values should be denoted using single quotes ie: query.where("FIELDNAME = 'field value'"); More info about valid SQL can be found here. - * - * @param {string} where - * @returns {this} + * + * @param {string} where + * @returns {this} * @memberof Query */ where(where: string): this; /** - * Define the offset of the results, when combined with limit can be used for paging. + * Define the offset of the results, when combined with limit can be used for paging. * Only available for Feature Layers hosted on ArcGIS Online or ArcGIS Server 10.3. - * - * @param {number} offset - * @returns {this} + * + * @param {number} offset + * @returns {this} * @memberof Query */ offset(offset: number): this; /** - * Limit the number of results returned by this query, when combined with offset can be used for paging. + * Limit the number of results returned by this query, when combined with offset can be used for paging. * Only available for Feature Layers hosted on ArcGIS Online or ArcGIS Server 10.3. - * - * @param {number} limit - * @returns {this} + * + * @param {number} limit + * @returns {this} * @memberof Query */ limit(limit: number): this; /** * Queries features within a given time range. Only available for Layers/Services with timeInfo in their metadata. - * - * @param {Date} from - * @param {Date} to - * @returns {this} + * + * @param {Date} from + * @param {Date} to + * @returns {this} * @memberof Query */ between(from: Date, to: Date): this; /** * An array of associated fields to request for each feature. - * - * @param {(string | Array)} fields - * @returns {this} + * + * @param {(string | Array)} fields + * @returns {this} * @memberof Query */ fields(fields: string | string[]): this; /** * Return geometry with results. Default is true. - * - * @param {boolean} returnGeometry - * @returns {this} + * + * @param {boolean} returnGeometry + * @returns {this} * @memberof Query */ returnGeometry(returnGeometry: boolean): this; /** * Simplify the geometries of the output features for the current map view. the factor parameter controls the amount of simplification between 0 (no simplification) and 1 (the most basic shape possible). - * - * @param {L.Map} map - * @param {number} factor - * @returns {this} + * + * @param {L.Map} map + * @param {number} factor + * @returns {this} * @memberof Query */ simplify(map: L.Map, factor: number): this; /** * Sort output features using values from an individual field. "ASC" (ascending) is the default sort order, but "DESC" can be passed as an alternative. This method can be called more than once to apply advanced sorting. - * - * @param {string} fieldName - * @param {string} order - * @returns {this} + * + * @param {string} fieldName + * @param {string} order + * @returns {this} * @memberof Query */ orderBy(fieldName: string, order: string): this; /** * Return only specific feature IDs if they match other query parameters. - * - * @param {Array} ids - * @returns {this} + * + * @param {Array} ids + * @returns {this} * @memberof Query */ featureIds(ids: any[]): this; /** * Return only this many decimal points of precision in the output geometries. - * - * @param {number} precision - * @returns {this} + * + * @param {number} precision + * @returns {this} * @memberof Query */ precision(precision: number): this; /** - * Used to select which layer inside a Map Service to perform the query on. + * Used to select which layer inside a Map Service to perform the query on. * Only available for Map Services. - * - * @param {(number | string)} layer - * @returns {this} + * + * @param {(number | string)} layer + * @returns {this} * @memberof Query */ layer(layer: number | string): this; /** - * Override the default pixelSize when querying an Image Service. + * Override the default pixelSize when querying an Image Service. * Only available for Image Services. - * - * @param {L.Point} point - * @returns {this} + * + * @param {L.Point} point + * @returns {this} * @memberof Query */ pixelSize(point: L.Point): this; /** * Exectues the query request with the current parameters, features will be passed to callback as a GeoJSON FeatureCollection. Accepts an optional function context. - * - * @param {FeatureCallbackHandler} callback - * @param {*} [context] - * @returns {this} + * + * @param {FeatureCallbackHandler} callback + * @param {*} [context] + * @returns {this} * @memberof Query */ run(callback: FeatureCallbackHandler, context?: any): this; /** * Exectues the query request with the current parameters, passing only the number of features matching the query to callback as an Integer. Accepts an optional function context. - * - * @param {FeatureCallbackHandler} callback - * @param {*} [context] - * @returns {this} + * + * @param {FeatureCallbackHandler} callback + * @param {*} [context] + * @returns {this} * @memberof Query */ count(callback: FeatureCallbackHandler, context?: any): this; /** * Exectues the query request with the current parameters, passing only an array of the feature ids matching the query to callbackcallback. Accepts an optional function context. - * - * @param {FeatureCallbackHandler} callback - * @param {*} [context] - * @returns {this} + * + * @param {FeatureCallbackHandler} callback + * @param {*} [context] + * @returns {this} * @memberof Query */ ids(callback: FeatureCallbackHandler, context?: any): this; /** * Executes the query request with the current parameters, passing only the LatLngBounds of all features matching the query in the callback. Accepts an optional function context. Only available for Feature Layers hosted on ArcGIS Online or ArcGIS Server 10.3.1. - * - * @param {FeatureCallbackHandler} callback - * @param {*} [context] - * @returns {this} + * + * @param {FeatureCallbackHandler} callback + * @param {*} [context] + * @returns {this} * @memberof Query */ bounds(callback: FeatureCallbackHandler, context?: any): this; @@ -1339,15 +1332,15 @@ declare namespace L { /** * L.esri.Query is an abstraction for the query API included in Feature Layers and Image Services. It provides a chainable API for building request parameters and executing queries. * Note Depending on the type of service you are querying (Feature Layer, Map Service, Image Service) and the version of ArcGIS Server that hosts the service some of these options may not be available. - * - * @param {QueryOptions} options - * @returns {Query} + * + * @param {QueryOptions} options + * @returns {Query} */ function query(options: QueryOptions): Query; /** * Options for IdentifyFeatures - * + * * @interface IdentifyFeaturesOptions * @extends {ServiceOptions} */ @@ -1355,7 +1348,7 @@ declare namespace L { /** * L.esri.IdentifyFeatures is an abstraction for the Identify API found in Map Services. It provides a chainable API for building request parameters and executing the request. - * + * * @class IdentifyFeatures * @extends {Task} */ @@ -1363,86 +1356,86 @@ declare namespace L { constructor(options: IdentifyFeaturesOptions | ImageService); /** * The map to identify features on. - * - * @param {L.Map} map - * @returns {this} + * + * @param {L.Map} map + * @returns {this} * @memberof IdentifyFeatures */ on(map: L.Map): this; /** - * Identifies feautres at a given - * - * @param {LatLngExpression} latlng - * @returns {this} + * Identifies feautres at a given + * + * @param {LatLngExpression} latlng + * @returns {this} * @memberof IdentifyFeatures */ at(latlng: LatLngExpression): this; /** * Add a layer definition to the query. - * - * @param {number} id - * @param {string} where - * @returns {this} + * + * @param {number} id + * @param {string} where + * @returns {this} * @memberof IdentifyFeatures */ layerDef(id: number, where: string): this; /** * Identifies features within a given time range. - * - * @param {Date} from - * @param {Date} to - * @returns {this} + * + * @param {Date} from + * @param {Date} to + * @returns {this} * @memberof IdentifyFeatures */ between(from: Date, to: Date): this; /** * By default, only the topmost feature will be identified, but it is possible to specify both an alternative strategy and array of individual layers. See the REST API documentation for more information about valid combinations. * ex: .layers('all:0'). - * - * @param {string} layers - * @returns {this} + * + * @param {string} layers + * @returns {this} * @memberof IdentifyFeatures */ layers(layers: string | string[]): this; /** * Return only this many decimal points of precision in the output geometries. - * - * @param {number} precision - * @returns {this} + * + * @param {number} precision + * @returns {this} * @memberof IdentifyFeatures */ precision(precision: number): this; /** * Buffer the identify area by a given number of screen pixels. - * - * @param {number} precision - * @returns {this} + * + * @param {number} precision + * @returns {this} * @memberof IdentifyFeatures */ tolerance(precision: number): this; /** * Return geometry with results. Default is true. - * - * @param {boolean} returnGeometry - * @returns {this} + * + * @param {boolean} returnGeometry + * @returns {this} * @memberof IdentifyFeatures */ returnGeometry(returnGeometry: boolean): this; /** * Simplify the geometries of the output features for the current map view. the factor parameter controls the amount of simplification between 0 (no simplification) and 1 (the most basic shape possible). - * - * @param {L.Map} map - * @param {number} factor - * @returns {this} + * + * @param {L.Map} map + * @param {number} factor + * @returns {this} * @memberof IdentifyFeatures */ simplify(map: L.Map, factor: number): this; /** * Executes the identify request with the current parameters, identified features will be passed to callback as a GeoJSON FeatureCollection. Accepts an optional function context - * - * @param {FeatureCallbackHandler} callback - * @param {*} context - * @returns {this} + * + * @param {FeatureCallbackHandler} callback + * @param {*} context + * @returns {this} * @memberof IdentifyFeatures */ run(callback: FeatureCallbackHandler, context?: any): this; @@ -1450,15 +1443,15 @@ declare namespace L { /** * L.esri.IdentifyFeatures is an abstraction for the Identify API found in Map Services. It provides a chainable API for building request parameters and executing the request. - * - * @param {(IdentifyFeaturesOptions | ImageService)} options - * @returns {IdentifyFeatures} + * + * @param {(IdentifyFeaturesOptions | ImageService)} options + * @returns {IdentifyFeatures} */ function identifyFeatures(options: IdentifyFeaturesOptions | ImageService): IdentifyFeatures; /** * Options for Find Task - * + * * @interface FindOptions * @extends {ServiceOptions} */ @@ -1466,7 +1459,7 @@ declare namespace L { /** * L.esri.Find is an abstraction for the find API included in Map Services. It provides a chainable API for building request parameters and executing find tasks. - * + * * @class Find * @extends {Task} */ @@ -1474,126 +1467,126 @@ declare namespace L { constructor(options: FindOptions | MapService); /** * Text that is searched across the layers and fields the user specifies. - * - * @param {string} text - * @returns {this} + * + * @param {string} text + * @returns {this} * @memberof Find */ text(text: string): this; /** * When true find task will search for a value that contains the searchText. When false it will do an exact match on the searchText string. Default is true. - * - * @param {boolean} contains - * @returns {this} + * + * @param {boolean} contains + * @returns {this} * @memberof Find */ contains(contains: boolean): this; /** * An array or comma-separated list of field names to search. If not specified, all fields are searched. - * - * @param {(string | Array)} fields - * @returns {this} + * + * @param {(string | Array)} fields + * @returns {this} * @memberof Find */ fields(fields: string | string[]): this; /** * The well known ID (ex. 4326) for the results. - * - * @param {number} sr - * @returns {this} + * + * @param {number} sr + * @returns {this} * @memberof Find */ spatialReference(sr: number): this; /** * Add a layer definition to the find task. - * - * @param {number} id - * @param {string} where - * @returns {this} + * + * @param {number} id + * @param {string} where + * @returns {this} * @memberof Find */ - layerDef(id: number, where: string): this; + layerDef(id: number, where: string): this; /** * Layers to perform find task on. Accepts an array of layer IDs or comma-separated list. - * - * @param {(string | Array)} layers - * @returns {this} + * + * @param {(string | Array)} layers + * @returns {this} * @memberof Find */ layers(layers: string | string[]): this; /** * Return geometry with results. Default is true. - * - * @param {boolean} returnGeometry - * @returns {this} + * + * @param {boolean} returnGeometry + * @returns {this} * @memberof Find */ returnGeometry(returnGeometry: boolean): this; /** * Specifies the maximum allowable offset to be used for generalizing geometries returned by the find task. - * - * @param {number} maxAllowableOffset - * @returns {this} + * + * @param {number} maxAllowableOffset + * @returns {this} * @memberof Find */ maxAllowableOffset(maxAllowableOffset: number): this; /** * Specifies the number of decimal places in returned geometries. - * - * @param {number} precision - * @returns {this} + * + * @param {number} precision + * @returns {this} * @memberof Find */ precision(precision: number): this; /** * Include Z values in the results. Default value is true. This parameter only applies if returnGeometry=true. - * - * @param {boolean} returnZ - * @returns {this} + * + * @param {boolean} returnZ + * @returns {this} * @memberof Find */ returnZ(returnZ: boolean): this; /** * Includes M values if the features have them. Default value is false. This parameter only applies if returnGeometry=true. - * - * @param {boolean} returnM - * @returns {this} + * + * @param {boolean} returnM + * @returns {this} * @memberof Find */ returnM(returnM: boolean): this; /** * Property used for adding new layers or modifying the data source of existing ones in the current map service. - * - * @param {*} dynamicLayers - * @returns {this} + * + * @param {*} dynamicLayers + * @returns {this} * @memberof Find */ dynamicLayers(dynamicLayers: any): this; /** * Simplify the geometries of the output features for the current map view. the factor parameter controls the amount of simplification between 0 (no simplification) and 1 (simplify to the most basic shape possible). - * - * @param {L.Map} map - * @param {number} factor - * @returns {this} + * + * @param {L.Map} map + * @param {number} factor + * @returns {this} * @memberof Find */ - simplify(map: L.Map, factor: number): this; + simplify(map: L.Map, factor: number): this; /** * Exectues the find request with the current parameters, features will be passed to callback as a GeoJSON FeatureCollection. Accepts an optional function context. - * - * @param {FeatureCallbackHandler} callback - * @param {*} [context] - * @returns {this} + * + * @param {FeatureCallbackHandler} callback + * @param {*} [context] + * @returns {this} * @memberof Find */ - run(callback: FeatureCallbackHandler, context?: any): this; + run(callback: FeatureCallbackHandler, context?: any): this; } /** * L.esri.Find is an abstraction for the find API included in Map Services. It provides a chainable API for building request parameters and executing find tasks. - * - * @param {(FindOptions | MapService)} options - * @returns {Find} + * + * @param {(FindOptions | MapService)} options + * @returns {Find} */ function find(options: FindOptions | MapService): Find; } diff --git a/types/esri-leaflet/tslint.json b/types/esri-leaflet/tslint.json index 3db14f85ea..06265672fc 100644 --- a/types/esri-leaflet/tslint.json +++ b/types/esri-leaflet/tslint.json @@ -1 +1,12 @@ -{ "extends": "dtslint/dt.json" } +{ + "extends": "dtslint/dt.json", + "rules": { + // All are TODOs + "prefer-method-signature": false, + "max-line-length": false, + "no-empty-interface": false, + "no-mergeable-namespace": false, + "no-single-declare-module": false, + "no-unnecessary-qualifier": false + } +} diff --git a/types/ethjs-signer/ethjs-signer-tests.ts b/types/ethjs-signer/ethjs-signer-tests.ts index 7f6939fc3b..8f7499f571 100644 --- a/types/ethjs-signer/ethjs-signer-tests.ts +++ b/types/ethjs-signer/ethjs-signer-tests.ts @@ -10,7 +10,7 @@ const transaction = { nonce }; -const signedTransactionString = sign(transaction, privateKey) as string; -const signedTransaction = sign(transaction, privateKey, true) as any[]; +const signedTransactionString: string = sign(transaction, privateKey); +const signedTransaction: any[] = sign(transaction, privateKey, true); const publicKey = recover(signedTransactionString, -1, signedTransaction[7], signedTransaction[8]); diff --git a/types/eureka-js-client/eureka-js-client-tests.ts b/types/eureka-js-client/eureka-js-client-tests.ts index 1eb2a510d5..109dab0278 100644 --- a/types/eureka-js-client/eureka-js-client-tests.ts +++ b/types/eureka-js-client/eureka-js-client-tests.ts @@ -1,7 +1,7 @@ import { Eureka } from 'eureka-js-client'; // example configuration -let client = new Eureka({ +const client = new Eureka({ // application instance information instance: { app: 'jqservice', diff --git a/types/execa/tslint.json b/types/execa/tslint.json index 3db14f85ea..5281feceb3 100644 --- a/types/execa/tslint.json +++ b/types/execa/tslint.json @@ -1 +1,8 @@ -{ "extends": "dtslint/dt.json" } +{ + "extends": "dtslint/dt.json", + "rules": { + // All are TODOs + "await-promise": false, + "no-boolean-literal-compare": false + } +} diff --git a/types/express-enforces-ssl/express-enforces-ssl-tests.ts b/types/express-enforces-ssl/express-enforces-ssl-tests.ts index 50dab42cdf..ccaac78ef6 100644 --- a/types/express-enforces-ssl/express-enforces-ssl-tests.ts +++ b/types/express-enforces-ssl/express-enforces-ssl-tests.ts @@ -1,6 +1,6 @@ import express = require('express'); import expressEnforcesSsl = require('express-enforces-ssl'); -let app: express.Express = express(); +const app: express.Express = express(); app.use(expressEnforcesSsl()); diff --git a/types/express-sanitized/express-sanitized-tests.ts b/types/express-sanitized/express-sanitized-tests.ts index 19c7039fee..1610ef6c91 100644 --- a/types/express-sanitized/express-sanitized-tests.ts +++ b/types/express-sanitized/express-sanitized-tests.ts @@ -1,6 +1,6 @@ import * as express from "express"; import * as expressSanitized from "express-sanitized"; -let RoutingServer: express.Express = express(); +const RoutingServer: express.Express = express(); RoutingServer.use(expressSanitized()); diff --git a/types/express-session/express-session-tests.ts b/types/express-session/express-session-tests.ts index 4ee9a76a6e..e348086a72 100644 --- a/types/express-session/express-session-tests.ts +++ b/types/express-session/express-session-tests.ts @@ -1,7 +1,7 @@ import express = require('express'); import session = require('express-session'); -let app = express(); +const app = express(); app.use(session({ secret: 'keyboard cat', @@ -25,7 +25,7 @@ interface MySession extends Express.Session { } app.use((req, res, next) => { - let sess = req.session as MySession; + const sess = req.session as MySession; if (sess.views) { sess.views++; res.setHeader('Content-Type', 'text/html'); diff --git a/types/express-session/index.d.ts b/types/express-session/index.d.ts index 60dedea20a..ac7ea271f9 100644 --- a/types/express-session/index.d.ts +++ b/types/express-session/index.d.ts @@ -2,7 +2,7 @@ // Project: https://www.npmjs.org/package/express-session // Definitions by: Hiroki Horiuchi // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -// Definitions by: Jacob Bogers diff --git a/types/file-type/index.d.ts b/types/file-type/index.d.ts index 95217430eb..a3de4e99e8 100644 --- a/types/file-type/index.d.ts +++ b/types/file-type/index.d.ts @@ -1,7 +1,7 @@ // Type definitions for file-type 5.2 // Project: https://github.com/sindresorhus/file-type -// Definitions by: KIM Jaesuck a.k.a. gim tcaesvk -// BendingBender +// Definitions by: KIM Jaesuck a.k.a. gim tcaesvk +// BendingBender // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// diff --git a/types/fingerprintjs2/fingerprintjs2-tests.ts b/types/fingerprintjs2/fingerprintjs2-tests.ts index 88cc9f337a..172dc1b801 100644 --- a/types/fingerprintjs2/fingerprintjs2-tests.ts +++ b/types/fingerprintjs2/fingerprintjs2-tests.ts @@ -3,121 +3,121 @@ function defaultCallback(result: string, components: [{ key: string, value: stri } function test_default_settings() { - let fingerprint = new Fingerprint2().get( defaultCallback); + const fingerprint = new Fingerprint2().get( defaultCallback); } function test_get_exclude_swfContainerId() { - let fingerprint = new Fingerprint2({ swfContainerId: 'swfContainerId' }).get(defaultCallback); + const fingerprint = new Fingerprint2({ swfContainerId: 'swfContainerId' }).get(defaultCallback); } function test_get_exclude_swfPath() { - let fingerprint = new Fingerprint2({swfPath: 'pathToSwf'}).get(defaultCallback); + const fingerprint = new Fingerprint2({swfPath: 'pathToSwf'}).get(defaultCallback); } function test_get_exclude_userDefinedFonts() { - let fingerprint = new Fingerprint2({ userDefinedFonts: ['font1', 'font2']}).get(defaultCallback); + const fingerprint = new Fingerprint2({ userDefinedFonts: ['font1', 'font2']}).get(defaultCallback); } function test_get_excludeUserAgent() { - let fingerprint = new Fingerprint2({ excludeUserAgent: true }).get(defaultCallback); + const fingerprint = new Fingerprint2({ excludeUserAgent: true }).get(defaultCallback); } function test_get_excludeLanguage() { - let fingerprint = new Fingerprint2({ excludeLanguage: true }).get(defaultCallback); + const fingerprint = new Fingerprint2({ excludeLanguage: true }).get(defaultCallback); } function test_get_excludeColorDepth() { - let fingerprint = new Fingerprint2({ excludeColorDepth: true }).get(defaultCallback); + const fingerprint = new Fingerprint2({ excludeColorDepth: true }).get(defaultCallback); } function test_get_excludeScreenResolution() { - let fingerprint = new Fingerprint2({ excludeScreenResolution: true }).get(defaultCallback); + const fingerprint = new Fingerprint2({ excludeScreenResolution: true }).get(defaultCallback); } function test_get_excludeTimezoneOffset() { - let fingerprint = new Fingerprint2({ excludeTimezoneOffset: true }).get(defaultCallback); + const fingerprint = new Fingerprint2({ excludeTimezoneOffset: true }).get(defaultCallback); } function test_get_excludeSessionStorage() { - let fingerprint = new Fingerprint2({ excludeSessionStorage: true }).get(defaultCallback); + const fingerprint = new Fingerprint2({ excludeSessionStorage: true }).get(defaultCallback); } function test_get_excludeIndexedDB() { - let fingerprint = new Fingerprint2({ excludeIndexedDB: true }).get(defaultCallback); + const fingerprint = new Fingerprint2({ excludeIndexedDB: true }).get(defaultCallback); } function test_get_excludeAddBehavior() { - let fingerprint = new Fingerprint2({ excludeAddBehavior: true }).get(defaultCallback); + const fingerprint = new Fingerprint2({ excludeAddBehavior: true }).get(defaultCallback); } function test_get_excludeOpenDatabase() { - let fingerprint = new Fingerprint2({ excludeOpenDatabase: true }).get(defaultCallback); + const fingerprint = new Fingerprint2({ excludeOpenDatabase: true }).get(defaultCallback); } function test_get_excludeCpuClass() { - let fingerprint = new Fingerprint2({ excludeCpuClass: true }).get(defaultCallback); + const fingerprint = new Fingerprint2({ excludeCpuClass: true }).get(defaultCallback); } function test_get_excludePlatform() { - let fingerprint = new Fingerprint2({ excludePlatform: true }).get(defaultCallback); + const fingerprint = new Fingerprint2({ excludePlatform: true }).get(defaultCallback); } function test_get_excludeDoNotTrack() { - let fingerprint = new Fingerprint2({ excludeDoNotTrack: true }).get(defaultCallback); + const fingerprint = new Fingerprint2({ excludeDoNotTrack: true }).get(defaultCallback); } function test_get_excludeCanvas() { - let fingerprint = new Fingerprint2({ excludeCanvas: true }).get(defaultCallback); + const fingerprint = new Fingerprint2({ excludeCanvas: true }).get(defaultCallback); } function test_get_excludeWebGL() { - let fingerprint = new Fingerprint2({ excludeWebGL: true }).get(defaultCallback); + const fingerprint = new Fingerprint2({ excludeWebGL: true }).get(defaultCallback); } function test_get_excludeAdBlock() { - let fingerprint = new Fingerprint2({ excludeAdBlock: true }).get(defaultCallback); + const fingerprint = new Fingerprint2({ excludeAdBlock: true }).get(defaultCallback); } function test_get_excludeHasLiedLanguages() { - let fingerprint = new Fingerprint2({ excludeHasLiedLanguages: true }).get(defaultCallback); + const fingerprint = new Fingerprint2({ excludeHasLiedLanguages: true }).get(defaultCallback); } function test_get_excludeHasLiedResolution() { - let fingerprint = new Fingerprint2({ excludeHasLiedResolution: true }).get(defaultCallback); + const fingerprint = new Fingerprint2({ excludeHasLiedResolution: true }).get(defaultCallback); } function test_get_excludeHasLiedOs() { - let fingerprint = new Fingerprint2({ excludeHasLiedOs: true }).get(defaultCallback); + const fingerprint = new Fingerprint2({ excludeHasLiedOs: true }).get(defaultCallback); } function test_get_excludeHasLiedBrowser() { - let fingerprint = new Fingerprint2({ excludeHasLiedBrowser: true }).get(defaultCallback); + const fingerprint = new Fingerprint2({ excludeHasLiedBrowser: true }).get(defaultCallback); } function test_get_excludeJsFonts() { - let fingerprint = new Fingerprint2({ excludeJsFonts: true }).get(defaultCallback); + const fingerprint = new Fingerprint2({ excludeJsFonts: true }).get(defaultCallback); } function test_get_excludeFlashFonts() { - let fingerprint = new Fingerprint2({ excludeFlashFonts: true }).get(defaultCallback); + const fingerprint = new Fingerprint2({ excludeFlashFonts: true }).get(defaultCallback); } function test_get_excludePlugins() { - let fingerprint = new Fingerprint2({ excludePlugins: true }).get(defaultCallback); + const fingerprint = new Fingerprint2({ excludePlugins: true }).get(defaultCallback); } function test_get_excludeIEPlugins() { - let fingerprint = new Fingerprint2({ excludeIEPlugins: true }).get(defaultCallback); + const fingerprint = new Fingerprint2({ excludeIEPlugins: true }).get(defaultCallback); } function test_get_excludeTouchSupport() { - let fingerprint = new Fingerprint2({ excludeTouchSupport: true }).get(defaultCallback); + const fingerprint = new Fingerprint2({ excludeTouchSupport: true }).get(defaultCallback); } function test_get_excludePixelRatio() { - let fingerprint = new Fingerprint2({ excludePixelRatio: true }).get(defaultCallback); + const fingerprint = new Fingerprint2({ excludePixelRatio: true }).get(defaultCallback); } function test_get_excludeHardwareConcurrency() { - let fingerprint = new Fingerprint2({ excludeHardwareConcurrency: true }).get(defaultCallback); + const fingerprint = new Fingerprint2({ excludeHardwareConcurrency: true }).get(defaultCallback); } diff --git a/types/firebase/firebase-simplelogin.d.ts b/types/firebase/firebase-simplelogin.d.ts index b64638bd34..c03702502d 100644 --- a/types/firebase/firebase-simplelogin.d.ts +++ b/types/firebase/firebase-simplelogin.d.ts @@ -1,6 +1,6 @@ // Type definitions for Firebase Simple Login // Project: https://www.firebase.com/docs/security/simple-login-overview.html -// Definitions by: Wilker Lucio +// Definitions by: Wilker Lucio // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/firebird/firebird-tests.ts b/types/firebird/firebird-tests.ts index 4a6bd59c05..96600a7f2d 100644 --- a/types/firebird/firebird-tests.ts +++ b/types/firebird/firebird-tests.ts @@ -32,13 +32,13 @@ if (con.inTransaction === true) { console.log('in transaction'); } -let blob: fb.FBBlob = con.newBlobSync(); +const blob: fb.FBBlob = con.newBlobSync(); -let tx: fb.Transaction = con.startNewTransactionSync(); +const tx: fb.Transaction = con.startNewTransactionSync(); con.startNewTransaction((err: Error | null, tx: fb.Transaction) => {}); /* DataType */ -let column: fb.DataType = {}; +const column: fb.DataType = {}; if (typeof (column) === "number") { column * 10; } else if (typeof (column) === "string") { @@ -46,7 +46,7 @@ if (typeof (column) === "number") { } else if (column instanceof Date) { column.toISOString(); } else { - let _: fb.FBBlob = column; + const _: fb.FBBlob = column; } /* FBResult */ @@ -87,7 +87,7 @@ if (tx.inTransaction === true) { } /* FBStatement */ -let asFBResult: fb.FBResult = stmt; +const asFBResult: fb.FBResult = stmt; stmt.execSync("John"); stmt.execSync(1, "Mary"); stmt.execInTransSync(tx, "John"); @@ -102,8 +102,8 @@ blob._openSync(); blob._closeSync(); -let buffer: Buffer = {}; -let readBytes: number = blob._readSync(buffer); +const buffer: Buffer = {}; +const readBytes: number = blob._readSync(buffer); blob._read(buffer, (err: Error | null, buffer: Buffer, len: number) => {}); blob._readAll(); @@ -119,4 +119,4 @@ blob._write(buffer, 10); blob._write(buffer, 10, (err: Error | null) => {}); /* Stream */ -let strm: NodeJS.ReadWriteStream = new fb.Stream(blob); +const strm: NodeJS.ReadWriteStream = new fb.Stream(blob); diff --git a/types/firebird/index.d.ts b/types/firebird/index.d.ts index 6506762408..ad1093ef55 100644 --- a/types/firebird/index.d.ts +++ b/types/firebird/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for firebird 0.1 // Project: https://github.com/xdenser/node-firebird-libfbclient -// Definitions by: Yasushi Kato +// Definitions by: Yasushi Kato // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.1 diff --git a/types/firebird/tslint.json b/types/firebird/tslint.json index 3db14f85ea..b63c1c3846 100644 --- a/types/firebird/tslint.json +++ b/types/firebird/tslint.json @@ -1 +1,7 @@ -{ "extends": "dtslint/dt.json" } +{ + "extends": "dtslint/dt.json", + "rules": { + // TODO + "no-boolean-literal-compare": false + } +} diff --git a/types/flatbuffers/flatbuffers-tests.ts b/types/flatbuffers/flatbuffers-tests.ts index cdcabac25b..493773fdcf 100644 --- a/types/flatbuffers/flatbuffers-tests.ts +++ b/types/flatbuffers/flatbuffers-tests.ts @@ -16,7 +16,7 @@ enum Any { class Monster2 { bb: flatbuffers.ByteBuffer= null; - bb_pos: number = 0; + bb_pos = 0; __init(i: number, bb: flatbuffers.ByteBuffer): Monster2 { this.bb_pos = i; @@ -41,7 +41,7 @@ class Monster2 { class Test { bb: flatbuffers.ByteBuffer = null; - bb_pos: number = 0; + bb_pos = 0; __init(i: number, bb: flatbuffers.ByteBuffer): Test { this.bb_pos = i; @@ -91,7 +91,7 @@ class Test { class TestSimpleTableWithEnum { bb: flatbuffers.ByteBuffer= null; - bb_pos: number = 0; + bb_pos = 0; __init(i: number, bb: flatbuffers.ByteBuffer): TestSimpleTableWithEnum { this.bb_pos = i; @@ -136,7 +136,7 @@ class TestSimpleTableWithEnum { class Vec3 { bb: flatbuffers.ByteBuffer= null; - bb_pos: number = 0; + bb_pos = 0; __init(i: number, bb: flatbuffers.ByteBuffer): Vec3 { this.bb_pos = i; @@ -244,7 +244,7 @@ class Vec3 { class Stat { bb: flatbuffers.ByteBuffer= null; - bb_pos: number = 0; + bb_pos = 0; __init(i: number, bb: flatbuffers.ByteBuffer): Stat { this.bb_pos = i; @@ -307,7 +307,7 @@ class Stat { class Monster { bb: flatbuffers.ByteBuffer= null; - bb_pos: number = 0; + bb_pos = 0; __init(i: number, bb: flatbuffers.ByteBuffer): Monster { this.bb_pos = i; diff --git a/types/fluent-ffmpeg/index.d.ts b/types/fluent-ffmpeg/index.d.ts index 86004caec1..7a660d1767 100644 --- a/types/fluent-ffmpeg/index.d.ts +++ b/types/fluent-ffmpeg/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for node-fluent-ffmpeg 2.1 // Project: https://github.com/fluent-ffmpeg/node-fluent-ffmpeg -// Definitions by: KIM Jaesuck a.k.a. gim tcaesvk , DingWeizhe +// Definitions by: KIM Jaesuck a.k.a. gim tcaesvk , DingWeizhe // Definitions: https://github.com/DefinitelyType/DefinitelyTyped /// diff --git a/types/flux/test/Flux.ts b/types/flux/test/Flux.ts index 6666b830aa..0619a1c63e 100644 --- a/types/flux/test/Flux.ts +++ b/types/flux/test/Flux.ts @@ -17,9 +17,9 @@ interface Action { } function dispatcherCallback(payload: Action) { - let source: ActionSource = payload.source; - let type: ActionType = payload.type; - let data: {} = payload.data; + const source: ActionSource = payload.source; + const type: ActionType = payload.type; + const data: {} = payload.data; } let dispatcherIsDispatching: boolean; diff --git a/types/flux/test/FluxUtils.tsx b/types/flux/test/FluxUtils.tsx index 38e06e71e4..0619be57b6 100644 --- a/types/flux/test/FluxUtils.tsx +++ b/types/flux/test/FluxUtils.tsx @@ -42,8 +42,6 @@ class CounterContainer extends React.Component { return [Store]; } - static a: string = "asd"; - static calculateState(prevState: State, props: Props): State { return { counter: Store.getState() - (props.b ? 0 : 1) diff --git a/types/fpsmeter/index.d.ts b/types/fpsmeter/index.d.ts index 314a50861d..25bc6296d2 100644 --- a/types/fpsmeter/index.d.ts +++ b/types/fpsmeter/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for FPSmeter v0.3.0 // Project: http://darsa.in/fpsmeter/ -// Definitions by: Aaron Lampros +// Definitions by: Aaron Lampros // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped interface FPSMeterOptions { diff --git a/types/framebus/framebus-tests.ts b/types/framebus/framebus-tests.ts index acd8f1ff2f..e37186d168 100644 --- a/types/framebus/framebus-tests.ts +++ b/types/framebus/framebus-tests.ts @@ -1,14 +1,14 @@ import * as framebus from "framebus"; -let popup = window.open('https://example.com'); +const popup = window.open('https://example.com'); framebus.include(popup); framebus.emit('hello popup and friends!'); framebus.target('https://example.com').on('my cool event', () => {}); -let callback = (data: any) => { +function callback(data: any) { console.log('Got back %s as a reply!', data); -}; +} framebus.publish('Marco!', callback, 'http://listener.example.com'); diff --git a/types/fs-extra-promise-es6/fs-extra-promise-es6-tests.ts b/types/fs-extra-promise-es6/fs-extra-promise-es6-tests.ts index b17cb07e32..337dd1ca0f 100644 --- a/types/fs-extra-promise-es6/fs-extra-promise-es6-tests.ts +++ b/types/fs-extra-promise-es6/fs-extra-promise-es6-tests.ts @@ -6,41 +6,41 @@ let str: string; let strArr: string[]; let bool: boolean; let num: number; -let src: string; -let dest: string; -let file: string; -let filename: string; -let dir: string; -let path: string; -let data: any; -let object: any; +declare const src: string; +declare const dest: string; +declare const file: string; +declare const filename: string; +declare const dir: string; +declare const path: string; +declare const data: any; +declare const object: any; let buffer: NodeBuffer; -let modeNum: number; -let modeStr: string; -let encoding: string; -let type: string; -let flags: string; -let srcpath: string; -let dstpath: string; -let oldPath: string; -let newPath: string; -let cache: string; -let offset: number; -let length: number; -let position: number; -let cacheBool: boolean; -let cacheStr: string; -let fd: number; -let len: number; -let uid: number; -let gid: number; -let atime: number; -let mtime: number; -let statsCallback: (err: Error, stats: fs.Stats) => void; -let errorCallback: (err: Error) => void; -let openOpts: fs.OpenOptions; +declare const modeNum: number; +declare const modeStr: string; +declare const encoding: string; +declare const type: string; +declare const flags: string; +declare const srcpath: string; +declare const dstpath: string; +declare const oldPath: string; +declare const newPath: string; +declare const cache: string; +declare const offset: number; +declare const length: number; +declare const position: number; +declare const cacheBool: boolean; +declare const cacheStr: string; +declare const fd: number; +declare const len: number; +declare const uid: number; +declare const gid: number; +declare const atime: number; +declare const mtime: number; +declare const statsCallback: (err: Error, stats: fs.Stats) => void; +declare const errorCallback: (err: Error) => void; +declare const openOpts: fs.OpenOptions; let watcher: fs.FSWatcher; -let readStreeam: stream.Readable; +let readStream: stream.Readable; let writeStream: stream.Writable; let isDirectory: boolean; @@ -198,8 +198,8 @@ fs.exists(path, (exists: boolean) => { }); bool = fs.existsSync(path); -readStreeam = fs.createReadStream(path); -readStreeam = fs.createReadStream(path, { +readStream = fs.createReadStream(path); +readStream = fs.createReadStream(path, { flags: str, encoding: str, fd: num, @@ -211,8 +211,7 @@ writeStream = fs.createWriteStream(path, { encoding: str }); -let isDirectoryCallback = (err: Error, isDirectory: boolean) => { -}; +function isDirectoryCallback(err: Error, isDirectory: boolean) {} fs.isDirectory(path, isDirectoryCallback); fs.isDirectory(path); isDirectory = fs.isDirectorySync(path); diff --git a/types/fs-extra-promise/fs-extra-promise-tests.ts b/types/fs-extra-promise/fs-extra-promise-tests.ts index 30794946f3..719bb65e6f 100644 --- a/types/fs-extra-promise/fs-extra-promise-tests.ts +++ b/types/fs-extra-promise/fs-extra-promise-tests.ts @@ -6,41 +6,41 @@ let str: string; let strArr: string[]; let bool: boolean; let num: number; -let src: string; -let dest: string; -let file: string; -let filename: string; -let dir: string; -let path: string; -let data: any; -let object: object; -let buf: Buffer; +declare const src: string; +declare const dest: string; +declare const file: string; +declare const filename: string; +declare const dir: string; +declare const path: string; +declare const data: any; +declare const object: object; +declare const buf: Buffer; let strOrBuf: string | Buffer; let buffer: NodeBuffer; -let modeNum: number; -let modeStr: string; -let encoding: string; -let type: string; -let flags: string; -let srcpath: string; -let dstpath: string; -let oldPath: string; -let newPath: string; -let cache: { [path: string]: string; }; -let offset: number; -let length: number; -let position: number; -let fd: number; -let len: number; -let uid: number; -let gid: number; -let atime: number; -let mtime: number; -let watchListener: (curr: fs.Stats, prev: fs.Stats) => void; -let statsCallback: (err: Error, stats: fs.Stats) => void; -let errorCallback: (err: Error) => void; -let openOpts: fs.ReadOptions; -let writeOpts: fs.WriteOptions; +declare const modeNum: number; +declare const modeStr: string; +declare const encoding: string; +declare const type: string; +declare const flags: string; +declare const srcpath: string; +declare const dstpath: string; +declare const oldPath: string; +declare const newPath: string; +declare const cache: { [path: string]: string; }; +declare const offset: number; +declare const length: number; +declare const position: number; +declare const fd: number; +declare const len: number; +declare const uid: number; +declare const gid: number; +declare const atime: number; +declare const mtime: number; +declare const watchListener: (curr: fs.Stats, prev: fs.Stats) => void; +declare const statsCallback: (err: Error, stats: fs.Stats) => void; +declare const errorCallback: (err: Error) => void; +declare const openOpts: fs.ReadOptions; +declare const writeOpts: fs.WriteOptions; let watcher: fs.FSWatcher; let readStream: stream.Readable; let writeStream: stream.Writable; @@ -209,8 +209,7 @@ writeStream = fs.createWriteStream(path, { defaultEncoding: str }); -let isDirectoryCallback = (err: Error, isDirectory: boolean) => { -}; +function isDirectoryCallback(err: Error, isDirectory: boolean) {} fs.isDirectory(path, isDirectoryCallback); fs.isDirectory(path); isDirectory = fs.isDirectorySync(path); diff --git a/types/fs-promise/fs-promise-tests.ts b/types/fs-promise/fs-promise-tests.ts index 51da06bb05..a210496a15 100644 --- a/types/fs-promise/fs-promise-tests.ts +++ b/types/fs-promise/fs-promise-tests.ts @@ -1,11 +1,11 @@ import * as fs from "fs-promise"; let src: string; -let dst: string; -let dir: string; -let path: string; -let data: any; -let writeOptions: fs.WriteOptions; +declare const dst: string; +declare const dir: string; +declare const path: string; +declare const data: any; +declare const writeOptions: fs.WriteOptions; const writeJsonOptions: fs.WriteJsonOptions = { spaces: 2, replacer(key, value) { @@ -13,7 +13,7 @@ const writeJsonOptions: fs.WriteJsonOptions = { return value; } }; -let readJsonOptions: fs.ReadJsonOptions; +declare const readJsonOptions: fs.ReadJsonOptions; async function test() { await fs.copy(src, dst); diff --git a/types/fullcalendar/index.d.ts b/types/fullcalendar/index.d.ts index bed6396214..04e68a4d99 100644 --- a/types/fullcalendar/index.d.ts +++ b/types/fullcalendar/index.d.ts @@ -51,7 +51,7 @@ export interface Options extends AgendaOptions, EventDraggingResizingOptions, Dr weekNumbers?: boolean; weekNumberCalculation?: any; // String/Function businessHours?: boolean | BusinessHours | BusinessHours[]; - height?: number | 'auto' | 'parent'; + height?: number | 'auto' | 'parent'; contentHeight?: number; aspectRatio?: number; handleWindowResize?: boolean; diff --git a/types/git-remote-origin-url/index.d.ts b/types/git-remote-origin-url/index.d.ts index 6d648dc322..2c8f227953 100644 --- a/types/git-remote-origin-url/index.d.ts +++ b/types/git-remote-origin-url/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for git-remote-origin-url 2.0 // Project: https://github.com/sindresorhus/git-remote-origin-url#readme -// Definitions by: Jay Anslow +// Definitions by: Jay Anslow // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped declare function gitRemoteOriginUrl(cwd?: string): Promise; diff --git a/types/glob-stream/index.d.ts b/types/glob-stream/index.d.ts index 05281f1647..36a5d9fb92 100644 --- a/types/glob-stream/index.d.ts +++ b/types/glob-stream/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for glob-stream v3.1.12 -// Project: http://github.com/wearefractal/glob-stream +// Project: https://github.com/wearefractal/glob-stream // Definitions by: Bart van der Schoor // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/globby/globby-tests.ts b/types/globby/globby-tests.ts index 0722b5fb37..68acb7cde8 100644 --- a/types/globby/globby-tests.ts +++ b/types/globby/globby-tests.ts @@ -19,6 +19,6 @@ const tasks: Array<{ options: IOptions }> = globby.generateGlobTasks(['*.tmp', '!b.tmp'], {ignore: ['c.tmp']}); -console.log(globby.hasMagic('**') === true); -console.log(globby.hasMagic(['**', 'path1', 'path2']) === true); -console.log(globby.hasMagic(['path1', 'path2']) === false); +console.log(globby.hasMagic('**')); +console.log(globby.hasMagic(['**', 'path1', 'path2'])); +console.log(!globby.hasMagic(['path1', 'path2'])); diff --git a/types/google-map-react/google-map-react-tests.tsx b/types/google-map-react/google-map-react-tests.tsx index c01d1e3cab..464f840658 100644 --- a/types/google-map-react/google-map-react-tests.tsx +++ b/types/google-map-react/google-map-react-tests.tsx @@ -1,5 +1,5 @@ import GoogleMapReact, { BootstrapURLKeys } from 'google-map-react'; -import * as React from 'react'; +import * as React from 'react'; const center = { lat: 0, lng: 0 }; diff --git a/types/google-protobuf/google-protobuf-tests.ts b/types/google-protobuf/google-protobuf-tests.ts index 63dd08e8b5..19421754ac 100644 --- a/types/google-protobuf/google-protobuf-tests.ts +++ b/types/google-protobuf/google-protobuf-tests.ts @@ -80,8 +80,8 @@ class MySimple extends jspb.Message { }; static deserializeBinary(bytes: Uint8Array): MySimple { - var reader = new jspb.BinaryReader(bytes); - var msg = new MySimple; + const reader = new jspb.BinaryReader(bytes); + const msg = new MySimple; return MySimple.deserializeBinaryFromReader(msg, reader); } @@ -90,77 +90,77 @@ class MySimple extends jspb.Message { if (reader.isEndGroup()) { break; } - var field = reader.getFieldNumber(); + const field = reader.getFieldNumber(); switch (field) { case 1: - var value1 = /** @type {string} */ (reader.readString()); + const value1 = /** @type {string} */ (reader.readString()); msg.setMyString(value1); break; case 2: - var value2 = /** @type {boolean} */ (reader.readBool()); + const value2 = /** @type {boolean} */ (reader.readBool()); msg.setMyBool(value2); break; case 3: - var value3 = /** @type {string} */ (reader.readString()); + const value3 = /** @type {string} */ (reader.readString()); msg.addSomeLabels(value3); break; case 4: - var value4 = new google_protobuf_compiler_plugin_pb.CodeGeneratorRequest; + const value4 = new google_protobuf_compiler_plugin_pb.CodeGeneratorRequest; reader.readMessage(value4, google_protobuf_compiler_plugin_pb.CodeGeneratorRequest.deserializeBinaryFromReader); msg.setSomeCodeGeneratorRequest(value4); break; case 5: - var value5 = new google_protobuf_any_pb.Any; + const value5 = new google_protobuf_any_pb.Any; reader.readMessage(value5, google_protobuf_any_pb.Any.deserializeBinaryFromReader); msg.setSomeAny(value5); break; case 6: - var value6 = new google_protobuf_api_pb.Method; + const value6 = new google_protobuf_api_pb.Method; reader.readMessage(value6, google_protobuf_api_pb.Method.deserializeBinaryFromReader); msg.setSomeMethod(value6); break; case 7: - var value7 = new google_protobuf_descriptor_pb.GeneratedCodeInfo; + const value7 = new google_protobuf_descriptor_pb.GeneratedCodeInfo; reader.readMessage(value7, google_protobuf_descriptor_pb.GeneratedCodeInfo.deserializeBinaryFromReader); msg.setSomeGeneratedCodeInfo(value7); break; case 8: - var value8 = new google_protobuf_duration_pb.Duration; + const value8 = new google_protobuf_duration_pb.Duration; reader.readMessage(value8, google_protobuf_duration_pb.Duration.deserializeBinaryFromReader); msg.setSomeDuration(value8); break; case 9: - var value9 = new google_protobuf_empty_pb.Empty; + const value9 = new google_protobuf_empty_pb.Empty; reader.readMessage(value9, google_protobuf_empty_pb.Empty.deserializeBinaryFromReader); msg.setSomeEmpty(value9); break; case 10: - var value10 = new google_protobuf_field_mask_pb.FieldMask; + const value10 = new google_protobuf_field_mask_pb.FieldMask; reader.readMessage(value10, google_protobuf_field_mask_pb.FieldMask.deserializeBinaryFromReader); msg.setSomeFieldMask(value10); break; case 11: - var value11 = new google_protobuf_source_context_pb.SourceContext; + const value11 = new google_protobuf_source_context_pb.SourceContext; reader.readMessage(value11, google_protobuf_source_context_pb.SourceContext.deserializeBinaryFromReader); msg.setSomeSourceContext(value11); break; case 12: - var value12 = new google_protobuf_struct_pb.Struct; + const value12 = new google_protobuf_struct_pb.Struct; reader.readMessage(value12, google_protobuf_struct_pb.Struct.deserializeBinaryFromReader); msg.setSomeStruct(value12); break; case 13: - var value13 = new google_protobuf_timestamp_pb.Timestamp; + const value13 = new google_protobuf_timestamp_pb.Timestamp; reader.readMessage(value13, google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader); msg.setSomeTimestamp(value13); break; case 14: - var value14 = new google_protobuf_type_pb.Type; + const value14 = new google_protobuf_type_pb.Type; reader.readMessage(value14, google_protobuf_type_pb.Type.deserializeBinaryFromReader); msg.setSomeType(value14); break; case 15: - var value15 = new google_protobuf_wrappers_pb.DoubleValue; + const value15 = new google_protobuf_wrappers_pb.DoubleValue; reader.readMessage(value15, google_protobuf_wrappers_pb.DoubleValue.deserializeBinaryFromReader); msg.setSomeDoubleValue(value15); break; @@ -173,7 +173,7 @@ class MySimple extends jspb.Message { } serializeBinary(): Uint8Array { - var writer = new jspb.BinaryWriter(); + const writer = new jspb.BinaryWriter(); MySimple.serializeBinaryToWriter(this, writer); return writer.getResultBuffer(); } diff --git a/types/google.analytics/google.analytics-tests.ts b/types/google.analytics/google.analytics-tests.ts index ac2a99fd2e..945f967dc9 100644 --- a/types/google.analytics/google.analytics-tests.ts +++ b/types/google.analytics/google.analytics-tests.ts @@ -3,7 +3,7 @@ declare function it(desc: string, fn: () => void): void; describe("tester Google Analytics Tracker _gat object", () => { it("can set ga script element", () => { - gaClassic = document.createElement("script"); + gaClassic = document.createElement("script"); }); it("can set aync to true", () => { gaClassic.async = true; diff --git a/types/griddle-react/test/CustomFilterComponent.tsx b/types/griddle-react/test/CustomFilterComponent.tsx index b045281868..5c8b8d629c 100644 --- a/types/griddle-react/test/CustomFilterComponent.tsx +++ b/types/griddle-react/test/CustomFilterComponent.tsx @@ -23,7 +23,7 @@ const CustomFilterFunction = (items: ResultType[], query: string): ResultType[] }; class CustomFilterComponent extends React.Component { - query: string = ''; + query = ''; searchChange(event: React.FormEvent) { this.query = event.currentTarget.value; diff --git a/types/grunt/index.d.ts b/types/grunt/index.d.ts index 4c8198dee9..73436b67fd 100644 --- a/types/grunt/index.d.ts +++ b/types/grunt/index.d.ts @@ -6,7 +6,7 @@ /// /** - * {@link http://github.com/marak/colors.js/} + * {@link https://github.com/marak/colors.js/} */ interface String { yellow: string; @@ -34,7 +34,7 @@ declare namespace node { } /** - * {@link http://github.com/isaacs/minimatch} + * {@link https://github.com/isaacs/minimatch} */ declare namespace minimatch { @@ -203,7 +203,7 @@ declare namespace grunt { namespace event { /** - * {@link http://github.com/hij1nx/EventEmitter2} + * {@link https://github.com/hij1nx/EventEmitter2} */ interface EventModule { @@ -1053,7 +1053,7 @@ declare namespace grunt { /** * Format a date using the dateformat library. - * {@link http://github.com/felixge/node-dateformat} + * {@link https://github.com/felixge/node-dateformat} * * @note if you don't include the mask argument, dateFormat.masks.default is used */ @@ -1063,7 +1063,7 @@ declare namespace grunt { /** * Format today's date using the dateformat library using the current date and time. - * {@link http://github.com/felixge/node-dateformat} + * {@link https://github.com/felixge/node-dateformat} * * @note if you don't include the mask argument, dateFormat.masks.default is used */ @@ -1219,7 +1219,7 @@ declare namespace grunt { } /** - * {@link http://github.com/snbartell/node-spawn} + * {@link https://github.com/snbartell/node-spawn} */ interface ISpawnedChild { /** diff --git a/types/gulp-concat/index.d.ts b/types/gulp-concat/index.d.ts index 74155f6b4c..639365c512 100644 --- a/types/gulp-concat/index.d.ts +++ b/types/gulp-concat/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for gulp-concat -// Project: http://github.com/wearefractal/gulp-concat +// Project: https://github.com/wearefractal/gulp-concat // Definitions by: Keita Kagurazaka // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/gulp-connect/gulp-connect-tests.ts b/types/gulp-connect/gulp-connect-tests.ts index 03722a4c15..feafa1007b 100644 --- a/types/gulp-connect/gulp-connect-tests.ts +++ b/types/gulp-connect/gulp-connect-tests.ts @@ -92,7 +92,7 @@ gulp.task('connect', () => { import * as express from "express"; gulp.task('connect', () => { - let middleware = [ + const middleware = [ express() ]; @@ -106,7 +106,7 @@ gulp.task('connect', () => { // Validate using paths to restrict handler functions works gulp.task('connect', () => { - let middleware: connect.ConnectRouteHandler[] = [ + const middleware: connect.ConnectRouteHandler[] = [ ["/path", express()], ["/path2", express()], ]; diff --git a/types/gulp-if/index.d.ts b/types/gulp-if/index.d.ts index 589482c49b..b276fbaae1 100644 --- a/types/gulp-if/index.d.ts +++ b/types/gulp-if/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for gulp-if // Project: https://github.com/robrich/gulp-if -// Definitions by: Asana , Joe Skeen +// Definitions by: Asana , Joe Skeen // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// diff --git a/types/gulp-load-plugins/index.d.ts b/types/gulp-load-plugins/index.d.ts index 4d58eae286..d39a64c2f3 100644 --- a/types/gulp-load-plugins/index.d.ts +++ b/types/gulp-load-plugins/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for gulp-load-plugins // Project: https://github.com/jackfranklin/gulp-load-plugins -// Definitions by: Joe Skeen +// Definitions by: Joe Skeen // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// diff --git a/types/gulp-plumber/index.d.ts b/types/gulp-plumber/index.d.ts index 7486668421..d94566aff1 100644 --- a/types/gulp-plumber/index.d.ts +++ b/types/gulp-plumber/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for gulp-plumber // Project: https://github.com/floatdrop/gulp-plumber -// Definitions by: Joe Skeen +// Definitions by: Joe Skeen // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// diff --git a/types/gulp-sort/index.d.ts b/types/gulp-sort/index.d.ts index 96d5362550..6db9c07dd5 100644 --- a/types/gulp-sort/index.d.ts +++ b/types/gulp-sort/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for gulp-sort // Project: https://github.com/pgilad/gulp-sort -// Definitions by: Joe Skeen +// Definitions by: Joe Skeen // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// diff --git a/types/gulp-task-listing/index.d.ts b/types/gulp-task-listing/index.d.ts index 113c6acaf2..9fc6e4ab18 100644 --- a/types/gulp-task-listing/index.d.ts +++ b/types/gulp-task-listing/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for gulp-task-listing // Project: https://github.com/OverZealous/gulp-task-listing -// Definitions by: Joe Skeen +// Definitions by: Joe Skeen // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /** diff --git a/types/gulp/test/index.ts b/types/gulp/test/index.ts index 40807f890a..e59d721669 100644 --- a/types/gulp/test/index.ts +++ b/types/gulp/test/index.ts @@ -50,7 +50,7 @@ const someNextTask = () => { gulp.task(someTask); -let foo: gulp.TaskFunction = () => { }; +const foo: gulp.TaskFunction = () => { }; foo.name === 'foo'; // true const bar: gulp.TaskFunction = () => { }; @@ -59,7 +59,7 @@ bar.name === ''; // true bar.name = 'bar'; bar.name === ''; // true -let test: gulp.TaskFunction = (done) => { +const test: gulp.TaskFunction = (done) => { done(); }; diff --git a/types/h2o2/index.d.ts b/types/h2o2/index.d.ts index 7ca3ccb85f..881b75c0a8 100644 --- a/types/h2o2/index.d.ts +++ b/types/h2o2/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for h2o2 5.4 // Project: https://github.com/hapijs/catbox -// Definitions by: Jason Swearingen , AJP +// Definitions by: Jason Swearingen , AJP // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 diff --git a/types/hapi-auth-jwt2/index.d.ts b/types/hapi-auth-jwt2/index.d.ts index 0109bfb33d..4d5f6b2cd4 100644 --- a/types/hapi-auth-jwt2/index.d.ts +++ b/types/hapi-auth-jwt2/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for hapi-auth-jwt2 7.0 -// Project: http://github.com/dwyl/hapi-auth-jwt2 -// Definitions by: Warren Seymour +// Project: https://github.com/dwyl/hapi-auth-jwt2 +// Definitions by: Warren Seymour // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped import { Request, Response, PluginFunction } from 'hapi'; diff --git a/types/hapi-decorators/index.d.ts b/types/hapi-decorators/index.d.ts index e4d7c40991..4cd98beda8 100644 --- a/types/hapi-decorators/index.d.ts +++ b/types/hapi-decorators/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for hapi-decorators v0.4.3 // Project: https://github.com/knownasilya/hapi-decorators -// Definitions by: Ken Howard +// Definitions by: Ken Howard // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 diff --git a/types/hapi/index.d.ts b/types/hapi/index.d.ts index 87d7b94e35..e5a6bfa038 100644 --- a/types/hapi/index.d.ts +++ b/types/hapi/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for hapi 16.1 // Project: https://github.com/hapijs/hapi -// Definitions by: Jason Swearingen , AJP +// Definitions by: Jason Swearingen , AJP // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 diff --git a/types/hapi/v12/index.d.ts b/types/hapi/v12/index.d.ts index 13c9e7a28d..8cbfaff2cf 100644 --- a/types/hapi/v12/index.d.ts +++ b/types/hapi/v12/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for hapi 12.0.1 -// Project: http://github.com/spumko/hapi -// Definitions by: Jason Swearingen +// Project: https://github.com/spumko/hapi +// Definitions by: Jason Swearingen // Definitions: https://github.com/borisyankov/DefinitelyTyped // Note/Disclaimer: diff --git a/types/hapi/v15/index.d.ts b/types/hapi/v15/index.d.ts index 86b993bfb5..b7a4510483 100644 --- a/types/hapi/v15/index.d.ts +++ b/types/hapi/v15/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for hapi 15.0 -// Project: http://github.com/spumko/hapi -// Definitions by: Jason Swearingen +// Project: https://github.com/spumko/hapi +// Definitions by: Jason Swearingen // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // Note/Disclaimer: This .d.ts was created against hapi v8.x but has been incrementally upgraded to 13.x. Some newer features/changes may be missing. YMMV. diff --git a/types/hapi/v8/index.d.ts b/types/hapi/v8/index.d.ts index 0a46c60757..762b9eb198 100644 --- a/types/hapi/v8/index.d.ts +++ b/types/hapi/v8/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for hapi 8.2.0 -// Project: http://github.com/spumko/hapi -// Definitions by: Jason Swearingen +// Project: https://github.com/spumko/hapi +// Definitions by: Jason Swearingen // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped //This is a total rewrite of Hakubo's original hapi.d.ts, as it was out of date/incomplete. diff --git a/types/heredatalens/heredatalens-tests.ts b/types/heredatalens/heredatalens-tests.ts index 40e68902c5..6b66cc9de5 100644 --- a/types/heredatalens/heredatalens-tests.ts +++ b/types/heredatalens/heredatalens-tests.ts @@ -142,7 +142,7 @@ let layer = new H.datalens.ObjectLayer( rowToStyle: (cluster) => { const size = 32; - let icon = H.datalens.ObjectLayer.createIcon([ + const icon = H.datalens.ObjectLayer.createIcon([ 'svg', { viewBox: [-size, -size, 2 * size, 2 * size] diff --git a/types/heredatalens/index.d.ts b/types/heredatalens/index.d.ts index b01014ba1e..e9861713e3 100644 --- a/types/heredatalens/index.d.ts +++ b/types/heredatalens/index.d.ts @@ -15,14 +15,14 @@ declare namespace H { /** * HERE Maps API and Data Lens JavaScript API can be used to visualize data from different network sources. * For each network source type, a service class is required. The service also stores API connection credentials. - * The service instance must be configured with a H.service.Platform instance. + * The service instance must be configured with a service.Platform instance. */ - class Service implements H.service.IConfigurable { + class Service implements service.IConfigurable { /** * Constructor - * @param options {H.datalens.Service.Options=} - Overrides the configuration from the H.service.Platform instance + * @param options {datalens.Service.Options=} - Overrides the configuration from the service.Platform instance */ - constructor(options?: H.datalens.Service.Options); + constructor(options?: datalens.Service.Options); /** * This method makes an HTTP request to the Data Lens REST API. @@ -75,15 +75,15 @@ declare namespace H { /** * This method fetches vector tile data from the layer. * @param layerName {string} - * @param x {H.datalens.QueryTileProvider.X} - Tile columns - * @param y {H.datalens.QueryTileProvider.Y} - Tile row - * @param z {H.datalens.QueryTileProvider.Zoom} - zoom level + * @param x {datalens.QueryTileProvider.X} - Tile columns + * @param y {datalens.QueryTileProvider.Y} - Tile row + * @param z {datalens.QueryTileProvider.Zoom} - zoom level * @param params {any=} - URL parameters (eg bounding box) * @param onResult {function(any)=} - Callback called on a successful request with response data * @param onError {function(Error)=} - Callback called on an unsuccessful request with the Error object * @returns {Promise} - Typed array with tile data */ - fetchLayerTile(layerName: string, x: H.datalens.QueryTileProvider.X, y: H.datalens.QueryTileProvider.Y, z: H.datalens.QueryTileProvider.Zoom, + fetchLayerTile(layerName: string, x: datalens.QueryTileProvider.X, y: datalens.QueryTileProvider.Y, z: datalens.QueryTileProvider.Zoom, params?: any, onResult?: (result: any) => void, onError?: (error: any) => void): Promise; /** @@ -96,21 +96,21 @@ declare namespace H { setTokens(accessToken: string, refreshToken: string): void; /** - * This method implements H.service.IConfigurable interface. It is called by the H.service.Platform instance. + * This method implements service.IConfigurable interface. It is called by the service.Platform instance. * @param appId {string} - The appId * @param appCode {string} - The appCode * @param useHTTPS {boolean} - A flag to use HTTPS or not * @param useCIT {boolean} - A flag to use the staging server (CIT) or not - * @param baseUrl {H.service.Url=} - The base URL for all requests to the Data Lens REST API - * @returns {H.datalens.Service} + * @param baseUrl {service.Url=} - The base URL for all requests to the Data Lens REST API + * @returns {datalens.Service} */ - configure(appId: string, appCode: string, useHTTPS: boolean, useCIT: boolean, baseUrl?: H.service.Url): H.datalens.Service; + configure(appId: string, appCode: string, useHTTPS: boolean, useCIT: boolean, baseUrl?: service.Url): datalens.Service; } namespace Service { /** - * Overrides the H.datalens.Service configuration - * Normally the H.datalens.Service instance is configured with the H.service.Platform instance. + * Overrides the datalens.Service configuration + * Normally the datalens.Service instance is configured with the service.Platform instance. * This configuration can be overridden by specifying these options. * It can be useful when the Data Lens environment is different from the HERE Platform environment. * @property subDomain {string=} - Subdomain of the Data Lens REST API URL @@ -148,25 +148,25 @@ declare namespace H { * The input data can be stored locally or loaded from the network. Data can be loaded by tiles or in one chunk. * This provider allows you to supply data stored locally or fetched using external tools. */ - class Provider extends H.map.provider.Provider { + class Provider extends map.provider.Provider { /** * Constructor - * @param data {H.datalens.Service.Data=} - JSON object - * @param options {H.map.provider.Provider.Options=} - Configures data accessibility parameters + * @param data {datalens.Service.Data=} - JSON object + * @param options {map.provider.Provider.Options=} - Configures data accessibility parameters */ - constructor(data?: H.datalens.Service.Data, options?: H.map.provider.Provider.Options); + constructor(data?: datalens.Service.Data, options?: map.provider.Provider.Options); /** * Updates the provider data. When data is updated, the update event is triggered so that the consuming layers are redrawn. - * @param data {H.datalens.Service.Data} - JSON object + * @param data {datalens.Service.Data} - JSON object */ - setData(data: H.datalens.Service.Data): void; + setData(data: datalens.Service.Data): void; /** * Retrieves the provider data. - * @returns {H.datalens.Service.Data} - JSON object + * @returns {datalens.Service.Data} - JSON object */ - getData(): H.datalens.Service.Data; + getData(): datalens.Service.Data; } /** @@ -175,13 +175,13 @@ declare namespace H { * Data can be loaded by tiles or in one chunk. This provider loads query data with the Data Lens REST API. * Note that this provider must be used only for non-tiled queries. */ - class QueryProvider extends H.datalens.Provider { + class QueryProvider extends datalens.Provider { /** * Constructor - * @param service {H.datalens.Service} - Data Lens REST API service - * @param options {H.datalens.QueryProvider.Options=} - Configures source query and data accessibility parameters + * @param service {datalens.Service} - Data Lens REST API service + * @param options {datalens.QueryProvider.Options=} - Configures source query and data accessibility parameters */ - constructor(data: H.datalens.Service.Data, options?: H.datalens.QueryProvider.Options); + constructor(data: datalens.Service.Data, options?: datalens.QueryProvider.Options); /** * Updates the query ID to be used in the next call of the Data Lens REST API. @@ -207,21 +207,21 @@ declare namespace H { /** * Updates the provider data. * When data is updated, the update event is triggered so that the consuming layers are redrawn. - * @param data {H.datalens.Service.Data} - JSON object + * @param data {datalens.Service.Data} - JSON object */ - setData(data: H.datalens.Service.Data): void; + setData(data: datalens.Service.Data): void; /** * Retrieves the provider data. - * @returns {H.datalens.Service.Data} - JSON object + * @returns {datalens.Service.Data} - JSON object */ - getData(): H.datalens.Service.Data; + getData(): datalens.Service.Data; } namespace QueryProvider { /** - * Configures source query and data accessibility parameters for H.datalens.QueryProvider - * Specifies the query credentials and dynamic parameters required for fetching query data with the Data Lens REST API. Other options from H.datalens.Provider.Options are available. + * Configures source query and data accessibility parameters for datalens.QueryProvider + * Specifies the query credentials and dynamic parameters required for fetching query data with the Data Lens REST API. Other options from datalens.Provider.Options are available. * @property queryId {string} - The ID of the Data Lens REST API query * @property queryParams {any=} - The query's dynamic parameters. The dynamic parameters can be used to filter data provided by the query. */ @@ -237,13 +237,13 @@ declare namespace H { * This provider loads tiled query data with the Data Lens REST API. Tiled queries are used to load data only for the current viewport. * This optimizes memory and network usage and enables progressive rendering. */ - class QueryTileProvider extends H.map.provider.RemoteTileProvider { + class QueryTileProvider extends map.provider.RemoteTileProvider { /** * Constructor - * @param service {H.datalens.Service} - Data Lens REST API service - * @param options {H.datalens.QueryTileProvider.Options} - Configures source query and data accessibility parameters + * @param service {datalens.Service} - Data Lens REST API service + * @param options {datalens.QueryTileProvider.Options} - Configures source query and data accessibility parameters */ - constructor(service: H.datalens.Service, options: H.datalens.QueryTileProvider.Options); + constructor(service: datalens.Service, options: datalens.QueryTileProvider.Options); /** * Updates the query ID to be used in the next call of the Data Lens REST API. @@ -262,9 +262,9 @@ declare namespace H { /** * Updates the names of the dynamic parameters that defines tiles. This method is only needed when the query ID is updated. * Note that new data will be fetched only after the reload method is called. - * @param tileParamNames {H.datalens.QueryTileProvider.TileParamNames} - Names of the URI parameters that control the x/y/z of a tiled query + * @param tileParamNames {datalens.QueryTileProvider.TileParamNames} - Names of the URI parameters that control the x/y/z of a tiled query */ - setTileParamNames(tileParamNames: H.datalens.QueryTileProvider.TileParamNames): void; + setTileParamNames(tileParamNames: datalens.QueryTileProvider.TileParamNames): void; } namespace QueryTileProvider { @@ -283,15 +283,15 @@ declare namespace H { } /** - * Configures source query and data accessibility parameters for H.datalens.QueryTileProvider + * Configures source query and data accessibility parameters for datalens.QueryTileProvider * Specifies the query credentials and dynamic parameters required for fetching tiled query data with the Data Lens REST API. - * Other options from H.datalens.Provider.Options are available. - * @property tileParamNames {H.datalens.QueryTileProvider.TileParamNames=} - Names of the URI parameters that control the x/y/z of a tiled query + * Other options from datalens.Provider.Options are available. + * @property tileParamNames {datalens.QueryTileProvider.TileParamNames=} - Names of the URI parameters that control the x/y/z of a tiled query * @property queryId {string} - The ID for the Data Lens REST API query * @property queryParams {any=} - The query's dynamic parameters. The dynamic parameters can be used to filter data provided by the query. */ interface Options { - tileParamNames: H.datalens.QueryTileProvider.TileParamNames; + tileParamNames: datalens.QueryTileProvider.TileParamNames; queryId: string; queryParams?: string; } @@ -321,7 +321,7 @@ declare namespace H { * The rendering is implemented by drawing directly on a canvas. The layer is often used together with a Data Lens query which groups rows by pixels. * This reduces the amount of data delivered to the client. */ - class RasterLayer extends H.map.layer.TileLayer { + class RasterLayer extends map.layer.TileLayer { /** * Constructor */ @@ -341,37 +341,37 @@ declare namespace H { /** * This is a default implementation of renderTile callback. This method represents each point as a black 1x1 pixel square. - * @param points {Array} - Input data points within a tile + * @param points {Array} - Input data points within a tile * @param canvas {HTMLCanvasElement} - The target canvas */ - static defaultRenderTile(points: H.datalens.RasterLayer.TilePoint[], canvas: HTMLCanvasElement): void; + static defaultRenderTile(points: datalens.RasterLayer.TilePoint[], canvas: HTMLCanvasElement): void; } namespace RasterLayer { /** * Defines data processing and rendering options for RasterLayer. * The initial step of rendering is to split the tile data by rows, where each row represents a bucket. - * By default this step is processed with H.datalens.RasterLayer.defaultDataToRows. + * By default this step is processed with datalens.RasterLayer.defaultDataToRows. * This behavior can be changed by defining the dataToRows callback. - * To collect the rows for a tile including buffer, the rows must be translated to H.datalens.RasterLayer.TilePoint. + * To collect the rows for a tile including buffer, the rows must be translated to datalens.RasterLayer.TilePoint. * This translation must be specified with the rowToTilePoint callback. The final rendering on the tile canvas must be defined in renderTile. - * @property dataToRows {function(H.datalens.Service.Data, H.datalens.QueryTileProvider.X, H.datalens.QueryTileProvider.Y, H.datalens.QueryTileProvider.Zoom)=} - + * @property dataToRows {function(datalens.Service.Data, datalens.QueryTileProvider.X, datalens.QueryTileProvider.Y, datalens.QueryTileProvider.Zoom)=} - * Defines how the input tile data is split by rows. You can specify this callback to define client-side aggregation and filtering. This callback is called for each tile. - * @property rowToTilePoint {function(H.datalens.RasterLayer.Row, H.datalens.RasterLayer.X, H.datalens.RasterLayer.Y)=} - - * Defines how the row is translated to the H.datalens.RasterLayer.TilePoint. This callback is called for each row that is returned from dataToRows. - * @property buffer {function(H.datalens.QueryTileProvider.Zoom)=} - Defines the buffer as a function of the zoom level. + * @property rowToTilePoint {function(datalens.RasterLayer.Row, datalens.RasterLayer.X, datalens.RasterLayer.Y)=} - + * Defines how the row is translated to the datalens.RasterLayer.TilePoint. This callback is called for each row that is returned from dataToRows. + * @property buffer {function(datalens.QueryTileProvider.Zoom)=} - Defines the buffer as a function of the zoom level. * The buffer is a value (in pixels) that defines an extra area around each tile to capture data points from. * This is done to avoid drawing edges between tiles. For example, if data points represented with circles with a maximum radius of 10 pixels, then the buffer must be 10 pixels. - * @property renderTile {function(Array, HTMLCanvasElement, H.datalens.QueryTileProvider.Zoom)=} - + * @property renderTile {function(Array, HTMLCanvasElement, datalens.QueryTileProvider.Zoom)=} - * Defines how tile data is represented on a canvas. Input points for each tile are collected with respect to the buffer. * For progressive rendering this callback may be called more than once for the tile. */ interface Options { - dataToRows?(data: H.datalens.Service.Data, x: H.datalens.QueryTileProvider.X, y: H.datalens.QueryTileProvider.Y, zoom: H.datalens.QueryTileProvider.Zoom): - H.datalens.RasterLayer.Row[]; - rowToTilePoint?(row: H.datalens.RasterLayer.Row, x: H.datalens.RasterLayer.X, y: H.datalens.RasterLayer.Y): H.datalens.RasterLayer.TilePoint; - buffer?(zoom: H.datalens.QueryTileProvider.Zoom): number; - renderTile?(points: H.datalens.RasterLayer.TilePoint[], canvas: HTMLCanvasElement, zoom: H.datalens.QueryTileProvider.Zoom): void; + dataToRows?(data: datalens.Service.Data, x: datalens.QueryTileProvider.X, y: datalens.QueryTileProvider.Y, zoom: datalens.QueryTileProvider.Zoom): + datalens.RasterLayer.Row[]; + rowToTilePoint?(row: datalens.RasterLayer.Row, x: datalens.RasterLayer.X, y: datalens.RasterLayer.Y): datalens.RasterLayer.TilePoint; + buffer?(zoom: datalens.QueryTileProvider.Zoom): number; + renderTile?(points: datalens.RasterLayer.TilePoint[], canvas: HTMLCanvasElement, zoom: datalens.QueryTileProvider.Zoom): void; } /** @@ -379,12 +379,12 @@ declare namespace H { * To collect data rows for each tile with respect to the buffer, each row must be represented as a point within the map tile. * @property x {number} - Row relative to tile * @property y {number} - Column relative to tile - * @property data {H.datalens.RasterLayer.Row=} - Reference to source data row + * @property data {datalens.RasterLayer.Row=} - Reference to source data row */ interface TilePoint { x: number; y: number; - data?: H.datalens.RasterLayer.Row; + data?: datalens.RasterLayer.Row; } /** @@ -413,42 +413,42 @@ declare namespace H { * In most cases, the layer consumes data grouped by 1x1 pixels buckets. For proper averaging it requires aggregated value and count (number of rows in bucket) for each bucket. * Blending of buckets is implemented via kernel density estimation (KDE) with a Gaussian kernel. */ - class HeatmapLayer extends H.datalens.RasterLayer { + class HeatmapLayer extends datalens.RasterLayer { /** * Constructor - * @param provider {H.datalens.QueryTileProvider} - Source of tiled data - * @param options {H.datalens.HeatmapLayer.Options} - Configuration for data processing and rendering + * @param provider {datalens.QueryTileProvider} - Source of tiled data + * @param options {datalens.HeatmapLayer.Options} - Configuration for data processing and rendering */ - constructor(provider: H.datalens.QueryTileProvider, options: H.datalens.HeatmapLayer.Options); + constructor(provider: datalens.QueryTileProvider, options: datalens.HeatmapLayer.Options); /** * Default value for dataToRows callback option. It represents each row as an object where property names correspond to data column names. - * @param data {H.datalens.Service.Data} - * @param x {H.datalens.QueryTileProvider.X} - * @param y {H.datalens.QueryTileProvider.Y} - * @param zoom {H.datalens.QueryTileProvider.Zoom} - * @returns {Array} + * @param data {datalens.Service.Data} + * @param x {datalens.QueryTileProvider.X} + * @param y {datalens.QueryTileProvider.Y} + * @param zoom {datalens.QueryTileProvider.Zoom} + * @returns {Array} */ - static defaultDataToRows: (data: H.datalens.Service.Data, x: H.datalens.QueryTileProvider.X, y: H.datalens.QueryTileProvider.Y, zoom: H.datalens.QueryTileProvider.Zoom) => - H.datalens.HeatmapLayer.Row[]; + static defaultDataToRows: (data: datalens.Service.Data, x: datalens.QueryTileProvider.X, y: datalens.QueryTileProvider.Y, zoom: datalens.QueryTileProvider.Zoom) => + datalens.HeatmapLayer.Row[]; /** * Set of possible values for the inputScale option - * @type {H.datalens.HeatmapLayer.InputScale} + * @type {datalens.HeatmapLayer.InputScale} */ - static inputScale: H.datalens.HeatmapLayer.InputScale; + static inputScale: datalens.HeatmapLayer.InputScale; /** * Set of possible values for the aggregation option - * @type {H.datalens.HeatmapLayer.Aggregation} + * @type {datalens.HeatmapLayer.Aggregation} */ - static aggregation: H.datalens.HeatmapLayer.Aggregation; + static aggregation: datalens.HeatmapLayer.Aggregation; /** * @param zoom {number} - zoom level - * @return {H.datalens.HeatmapLayer.Options} + * @return {datalens.HeatmapLayer.Options} */ - getOptionsPerZoom(zoom: number): H.datalens.HeatmapLayer.Options; + getOptionsPerZoom(zoom: number): datalens.HeatmapLayer.Options; /** * Removes listeners, and references to memory consuming objects, from this layer. Call this method when you no longer need the layer. @@ -465,43 +465,43 @@ declare namespace H { /** * Defines data processing and rendering options for HeatmapLayer. * The data processing flow of HeatmapLayer is similar to RasterLayer. The initial step of rendering is to split the tile data by rows, where each row represents a bucket. - * By default this step is processed with H.datalens.HeatmapLayer.defaultDataToRows. This behavior can be changed by defining the dataToRows callback. - * To collect the rows for a tile including buffer, the rows must be translated to H.datalens.HeatmapLayer.TilePoint. This translation must be specified with the rowToTilePoint callback. + * By default this step is processed with datalens.HeatmapLayer.defaultDataToRows. This behavior can be changed by defining the dataToRows callback. + * To collect the rows for a tile including buffer, the rows must be translated to datalens.HeatmapLayer.TilePoint. This translation must be specified with the rowToTilePoint callback. * Other options define the blending options for the heat map. - * @property dataToRows {function(H.datalens.Service.Data, H.datalens.QueryTileProvider.X, H.datalens.QueryTileProvider.Y, H.datalens.QueryTileProvider.Zoom)=} - + * @property dataToRows {function(datalens.Service.Data, datalens.QueryTileProvider.X, datalens.QueryTileProvider.Y, datalens.QueryTileProvider.Zoom)=} - * Defines how the input tile data is split by rows. You can specify this callback to define client-side aggregation and filtering. This callback is called for each tile. - * @property rowToTilePoint {function(H.datalens.HeatmapLayer.Row, H.datalens.HeatmapLayer.X, H.datalens.HeatmapLayer.Y)=} - - * Defines how the row is translated to the H.datalens.HeatmapLayer.TilePoint. This callback is called for each row that is returned from dataToRows. - * @property bandwidth {H.datalens.HeatmapLayer~Bandwidth | H.datalens.HeatmapLayer~BandwidthStop | Array. | - * H.datalens.HeatmapLayer~BandwidthCallback=} - Describes the bandwidth behavior in relation to current zoom level A numeric value sets it static across all levels + * @property rowToTilePoint {function(datalens.HeatmapLayer.Row, datalens.HeatmapLayer.X, datalens.HeatmapLayer.Y)=} - + * Defines how the row is translated to the datalens.HeatmapLayer.TilePoint. This callback is called for each row that is returned from dataToRows. + * @property bandwidth {datalens.HeatmapLayer~Bandwidth | datalens.HeatmapLayer~BandwidthStop | Array. | + * datalens.HeatmapLayer~BandwidthCallback=} - Describes the bandwidth behavior in relation to current zoom level A numeric value sets it static across all levels * An Object with zoom, value and optional zoomIncrementFactor (1 equals doubling on every zoom increment) defines a behavior across all zoom levels * An Array of one or more zoom, value objects describes the behavior between the two defined levels and extrapolates the implied change outside of the defined range * Alternatively defines the level of smoothing as a function of the zoom level. The callback must return a value in pixels. * The cut-off of the Gaussian kernel is defined as 3 * bandwidth , a multiple (default 3) of bandwidth. - * @property valueRange {function(H.datalens.QueryTileProvider.Zoom)} - Defines the range for the color scale as a function of the zoom level. + * @property valueRange {function(datalens.QueryTileProvider.Zoom)} - Defines the range for the color scale as a function of the zoom level. * The returned value must be an array of 2 numbers. - * @property countRange {function(H.datalens.QueryTileProvider.Zoom)} - Defines the range for the density alpha mask as a function of the zoom level. + * @property countRange {function(datalens.QueryTileProvider.Zoom)} - Defines the range for the density alpha mask as a function of the zoom level. * When defined, the density alpha mask is applied. The returned value must be an array of 2 numbers. * @property colorScale {function(number)} - Defines a color palette as a function of the normalized value. You can use D3.js library scale functions with the domain [0, 1]. * @property alphaScale {function(number)} - Defines the alpha mask value as a function of the normalized count. * You can use D3.js library scale functions with the domain [0, 1] and the range [0, 1]. - * @property aggregation {H.datalens.HeatmapLayer.Aggregation} - Specifies which type of aggregation was applied (eg. type of aggregation function for bucket in the Data Lens query). + * @property aggregation {datalens.HeatmapLayer.Aggregation} - Specifies which type of aggregation was applied (eg. type of aggregation function for bucket in the Data Lens query). * Possible values are SUM or AVERAGE. If the aggregation type is AVERAGE , then an averaged heat map is rendered. - * @property inputScale {H.datalens.HeatmapLayer.InputScale} - Defines the scale (eg logarithmic scale) of the TilePoint value. + * @property inputScale {datalens.HeatmapLayer.InputScale} - Defines the scale (eg logarithmic scale) of the TilePoint value. * Note: if the value is not in a linear scale, then the aggregation in the source query must be defined with respect to the scale type. * For example, before applying the average aggregation function in a query, the value must be transformed to the linear scale. This guarantees correct linear averaging of values. */ interface Options { - dataToRows?(data: H.datalens.Service.Data, x: H.datalens.QueryTileProvider.X, y: H.datalens.QueryTileProvider.Y, zoom: H.datalens.QueryTileProvider.Zoom): - H.datalens.HeatmapLayer.Row[]; - rowToTilePoint(row: H.datalens.HeatmapLayer.Row, x: H.datalens.HeatmapLayer.X, y: H.datalens.HeatmapLayer.Y): H.datalens.HeatmapLayer.TilePoint; - bandwidth?: H.datalens.HeatmapLayer.Bandwidth | H.datalens.HeatmapLayer.BandwidthStop | H.datalens.HeatmapLayer.BandwidthStop[] | H.datalens.HeatmapLayer.BandwidthCallback; - valueRange?(zoom: H.datalens.QueryTileProvider.Zoom): number[]; - countRange?(zoom: H.datalens.QueryTileProvider.Zoom): number[]; + dataToRows?(data: datalens.Service.Data, x: datalens.QueryTileProvider.X, y: datalens.QueryTileProvider.Y, zoom: datalens.QueryTileProvider.Zoom): + datalens.HeatmapLayer.Row[]; + rowToTilePoint(row: datalens.HeatmapLayer.Row, x: datalens.HeatmapLayer.X, y: datalens.HeatmapLayer.Y): datalens.HeatmapLayer.TilePoint; + bandwidth?: datalens.HeatmapLayer.Bandwidth | datalens.HeatmapLayer.BandwidthStop | datalens.HeatmapLayer.BandwidthStop[] | datalens.HeatmapLayer.BandwidthCallback; + valueRange?(zoom: datalens.QueryTileProvider.Zoom): number[]; + countRange?(zoom: datalens.QueryTileProvider.Zoom): number[]; colorScale?(scale: number): string; alphaScale?(scale: number): number; - aggregation?: H.datalens.HeatmapLayer.Aggregation; - inputScale?: H.datalens.HeatmapLayer.InputScale; + aggregation?: datalens.HeatmapLayer.Aggregation; + inputScale?: datalens.HeatmapLayer.InputScale; } /** @@ -558,14 +558,14 @@ declare namespace H { * @property y {number} - Column relative to tile * @property value {number} - Value at the point (eg aggregated bucket value) * @property count {number} - Number of contributors to the value at the point (eg number of rows in a bucket) - * @property data {H.datalens.HeatmapLayer.Row} - Reference to source data row + * @property data {datalens.HeatmapLayer.Row} - Reference to source data row */ interface TilePoint { x: number; y: number; value: number; count: number; - data?: H.datalens.HeatmapLayer.Row; + data?: datalens.HeatmapLayer.Row; } /** @@ -596,39 +596,39 @@ declare namespace H { /** * Presents data as points or spatial map objects with data-driven styles and client-side clustering. - * Applicable for drawing interactive map objects like markers, polygons, circles and other instances of H.map.Object. Source of data can be either tiled or not tiled. + * Applicable for drawing interactive map objects like markers, polygons, circles and other instances of map.Object. Source of data can be either tiled or not tiled. * Styles for objects can be parametrized with data rows and zoom level. Allows to create data-driven icons for markers like donuts or bars. * Also enables clustering and data domains for visualizing up to 100k points or more. */ - class ObjectLayer extends H.map.layer.ObjectLayer { + class ObjectLayer extends map.layer.ObjectLayer { /** * Constructor - * @param provider {H.map.provider.RemoteTileProvider | H.datalens.Provider | H.datalens.QueryProvider | H.datalens.QueryTileProvider} - Data source (tiled or not) - * @param options {H.datalens.ObjectLayer.Options} - Defines data processing, clustering and data-driven styling + * @param provider {map.provider.RemoteTileProvider | datalens.Provider | datalens.QueryProvider | datalens.QueryTileProvider} - Data source (tiled or not) + * @param options {datalens.ObjectLayer.Options} - Defines data processing, clustering and data-driven styling */ - constructor(provider: H.map.provider.RemoteTileProvider | H.datalens.Provider | H.datalens.QueryProvider | H.datalens.QueryTileProvider, options: H.datalens.ObjectLayer.Options); + constructor(provider: map.provider.RemoteTileProvider | datalens.Provider | datalens.QueryProvider | datalens.QueryTileProvider, options: datalens.ObjectLayer.Options); /** * Default value for dataToRows callback option. It represents each row as an object where property names correspond to data column names. - * @property data {H.datalens.Service.Data} - * @returns {Array} + * @property data {datalens.Service.Data} + * @returns {Array} */ - static defaultDataToRows(data: H.datalens.Service.Data): H.datalens.ObjectLayer.Row[]; + static defaultDataToRows(data: datalens.Service.Data): datalens.ObjectLayer.Row[]; /** * A factory method for data-driven icons. The method allows you to build an icon from SVG markup or JsonML object. Provides caching of icons with the same markup. * @param svg {string | Array} - SVG presented as markup or JsonML Array - * @param options {H.map.Icon.Options=} - Icon options (eg size and anchor). Note that the default anchor is in the middle. + * @param options {map.Icon.Options=} - Icon options (eg size and anchor). Note that the default anchor is in the middle. * @param options.size {H.math.ISize | number} - When the icon is a square, you can define the size as a number in pixels - * @returns {H.map.Icon} - Icon which can be used for marker or cluster + * @returns {map.Icon} - Icon which can be used for marker or cluster */ - static createIcon(svg: string | any[], options?: H.map.Icon.Options): H.map.Icon; + static createIcon(svg: string | any[], options?: map.Icon.Options): map.Icon; /** * Returns cache of icons created with the createIcon method. Can be used to clean the icon cache. - * @return {H.util.Cache} - Icon cache + * @return {util.Cache} - Icon cache */ - static getIconCache(): H.util.Cache; + static getIconCache(): util.Cache; /** * Force re-rendering of the layer. In the case where the callbacks passed to the layer options are not pure functions, you can call this method to force re-rendering. @@ -637,31 +637,31 @@ declare namespace H { /** * Recalculates the style and applies it to the map object based on the new StyleState - * @param object {H.map.Object} - Map object - * @param state {H.datalens.ObjectLayer.StyleState} - New state + * @param object {map.Object} - Map object + * @param state {datalens.ObjectLayer.StyleState} - New state */ - updateObjectStyle(any: H.map.Object, state: H.datalens.ObjectLayer.StyleState): void; + updateObjectStyle(any: map.Object, state: datalens.ObjectLayer.StyleState): void; } namespace ObjectLayer { /** * Defines data processing and data-driven styling for ObjectLayer * The initial step of rendering is to split the tile data by rows, where each row represents a bucket. - * By default this step is processed with H.datalens.ObjectLayer.defaultDataToRows. This behavior can be changed by defining the dataToRows callback. + * By default this step is processed with datalens.ObjectLayer.defaultDataToRows. This behavior can be changed by defining the dataToRows callback. * In the next step each row must be presented as a map object with the rowToMapObject callback. Data-driven styling can be provided with the rowToStyle callback. - * @property dataToRows {function(H.datalens.Service.Data)=} - Defines how the input data is split by rows. You can specify this callback to define client-side aggregation and filtering. - * @property rowToMapObject {function(H.datalens.ObjectLayer.Row, H.datalens.QueryTileProvider.Zoom)} - Defines how each row is presented on the map (eg marker, polygon) - * @property rowToStyle {function(H.datalens.ObjectLayer.Row, H.datalens.QueryTileProvider.Zoom, H.datalens.ObjectLayer.StyleState)=} - + * @property dataToRows {function(datalens.Service.Data)=} - Defines how the input data is split by rows. You can specify this callback to define client-side aggregation and filtering. + * @property rowToMapObject {function(datalens.ObjectLayer.Row, datalens.QueryTileProvider.Zoom)} - Defines how each row is presented on the map (eg marker, polygon) + * @property rowToStyle {function(datalens.ObjectLayer.Row, datalens.QueryTileProvider.Zoom, datalens.ObjectLayer.StyleState)=} - * Defines map object style and icon according to data row and zoom level. Also it can define different styles depending on the StyleState (eg hovered, selected). - * @property dataDomains {H.datalens.ObjectLayer.DataDomains=} - Defines quantization of data for improving data-driven styling performance - * @property clustering {H.datalens.ObjectLayer.Clustering=} - When present, client-side clustering is applied + * @property dataDomains {datalens.ObjectLayer.DataDomains=} - Defines quantization of data for improving data-driven styling performance + * @property clustering {datalens.ObjectLayer.Clustering=} - When present, client-side clustering is applied */ interface Options { - dataToRows?(data: H.datalens.Service.Data): H.datalens.ObjectLayer.Row[]; - rowToMapObject(row: H.datalens.ObjectLayer.Row, z: H.datalens.QueryTileProvider.Zoom): H.map.Object; - rowToStyle?(row: H.datalens.ObjectLayer.Row, z: H.datalens.QueryTileProvider.Zoom, styleState: H.datalens.ObjectLayer.StyleState): H.datalens.ObjectLayer.ObjectStyleOptions; - dataDomains?: H.datalens.ObjectLayer.DataDomains; - clustering?: H.datalens.ObjectLayer.Clustering; + dataToRows?(data: datalens.Service.Data): datalens.ObjectLayer.Row[]; + rowToMapObject(row: datalens.ObjectLayer.Row, z: datalens.QueryTileProvider.Zoom): map.Object; + rowToStyle?(row: datalens.ObjectLayer.Row, z: datalens.QueryTileProvider.Zoom, styleState: datalens.ObjectLayer.StyleState): datalens.ObjectLayer.ObjectStyleOptions; + dataDomains?: datalens.ObjectLayer.DataDomains; + clustering?: datalens.ObjectLayer.Clustering; } /** @@ -669,12 +669,12 @@ declare namespace H { * When the clustering option is provided, rows returned from dataToRows go to the clustering.rowToDataPoint callback to be transformed to data points. * Then, the data points are clustered according to clustering.options. Clustering produces clusters and noise points (data points that are not clustered). * Clusters and noise points must be presented as map objects with the rowToMapObject callback and can be styled with the rowToStyle callback. - * @property rowToDataPoint {H.datalens.ObjectLayer.Row} - Defines data points from rows - * @property options {function(H.datalens.QueryTileProvider.Zoom)} - Defines clustering options as a function of the zoom level + * @property rowToDataPoint {datalens.ObjectLayer.Row} - Defines data points from rows + * @property options {function(datalens.QueryTileProvider.Zoom)} - Defines clustering options as a function of the zoom level */ interface Clustering { - rowToDataPoint(row: H.datalens.ObjectLayer.Row): H.clustering.DataPoint; - options(zoom: H.datalens.QueryTileProvider.Zoom): H.clustering.Provider.ClusteringOptions; + rowToDataPoint(row: datalens.ObjectLayer.Row): clustering.DataPoint; + options(zoom: datalens.QueryTileProvider.Zoom): clustering.Provider.ClusteringOptions; } /** @@ -683,7 +683,7 @@ declare namespace H { * This representation can be changed with the dataToRows callback. */ interface Row { - getPosition(): H.geo.Point; + getPosition(): geo.Point; isCluster(): boolean; lat: number; lng: number; @@ -698,21 +698,21 @@ declare namespace H { /** * Output from the rowToStyle callback. * Defines the styles or the icon that is applied to the map object. - * @property icon {H.map.Icon} - Marker icon - * @property style {H.map.SpatialStyle.Options} - Spatial style - * @property arrows {H.map.ArrowStyle.Options} - Style of arrows to render along a polyline + * @property icon {map.Icon} - Marker icon + * @property style {map.SpatialStyle.Options} - Spatial style + * @property arrows {map.ArrowStyle.Options} - Style of arrows to render along a polyline * @property zIndex {number} - The z-index value of the map object, default is 0 */ interface ObjectStyleOptions { - icon: H.map.Icon; - style?: H.map.SpatialStyle.Options; - arrows?: H.map.ArrowStyle.Options; + icon: map.Icon; + style?: map.SpatialStyle.Options; + arrows?: map.ArrowStyle.Options; zIndex?: number; } /** * Input data quantization domain, used to optimize styling performance. - * The option must have properties corresponding to the properties of H.datalens.ObjectLayer.Row. Values must be represented as an Array of Numbers that defines the quantization domain. + * The option must have properties corresponding to the properties of datalens.ObjectLayer.Row. Values must be represented as an Array of Numbers that defines the quantization domain. * When provided, the input data will be quantized, and rowToStyle will be called only for quantized values. */ type DataDomains = any; @@ -722,12 +722,12 @@ declare namespace H { * Defines how to load data from a raw data file * This provider defines the interface for loading data, such as geometries or coordinates, from a local or remote data file in GeoJSON or CSV format */ - class RawDataProvider extends H.map.provider.RemoteTileProvider { + class RawDataProvider extends map.provider.RemoteTileProvider { /** * Constructor - * @param options {H.datalens.RawDataProvider.Options} - Configures options + * @param options {datalens.RawDataProvider.Options} - Configures options */ - constructor(options: H.datalens.RawDataProvider.Options); + constructor(options: datalens.RawDataProvider.Options); /** * Updates the data url. Note that new data will be fetched only after the reload method is called. @@ -742,15 +742,15 @@ declare namespace H { * Options for RawDataProvider * @property dataUrl - The data url to fetch * @property dataToFeatures {function(any)=} - Defines how the input data is mapped to an array of GeoJSON features - * @property featuresToRows {function(Array, H.datalens.QueryTileProvider.X, H.datalens.QueryTileProvider.Y, H.datalens.QueryTileProvider.Zoom, - * H.datalens.RawDataProvider.TileSize, H.datalens.RawDataProvider.Helpers)=} - + * @property featuresToRows {function(Array, datalens.QueryTileProvider.X, datalens.QueryTileProvider.Y, datalens.QueryTileProvider.Zoom, + * datalens.RawDataProvider.TileSize, datalens.RawDataProvider.Helpers)=} - * Defines how GeoJSON features on a tile should be mapped to data rows, which are inputs to layers such as ObjectLayer and HeatmapLayer */ interface Options { dataUrl?: string; - dataToFeatures?(obj: any): H.datalens.RawDataProvider.Feature[]; - featuresToRows?(features: H.datalens.RawDataProvider.Feature[], x: H.datalens.QueryTileProvider.X, y: H.datalens.QueryTileProvider.Y, z: H.datalens.QueryTileProvider.Zoom, - tileSize: H.datalens.RawDataProvider.TileSize, helpers: H.datalens.RawDataProvider.Helpers): H.datalens.ObjectLayer.Row[]; + dataToFeatures?(obj: any): datalens.RawDataProvider.Feature[]; + featuresToRows?(features: datalens.RawDataProvider.Feature[], x: datalens.QueryTileProvider.X, y: datalens.QueryTileProvider.Y, z: datalens.QueryTileProvider.Zoom, + tileSize: datalens.RawDataProvider.TileSize, helpers: datalens.RawDataProvider.Helpers): datalens.ObjectLayer.Row[]; } /** @@ -768,17 +768,17 @@ declare namespace H { /** * A helper class used in the worker thread * This helper class provides convenience functions you can use in the worker thread - * @property latLngToPixel {function(H.datalens.RawDataProvider.Latitude, H.datalens.RawDataProvider.Longitude, H.datalens.QueryTileProvider.Zoom, H.datalens.RawDataProvider.TileSize)=} - + * @property latLngToPixel {function(datalens.RawDataProvider.Latitude, datalens.RawDataProvider.Longitude, datalens.QueryTileProvider.Zoom, datalens.RawDataProvider.TileSize)=} - * Translates geographical coordinates (latitude, longitude) to world pixel coordinates. - * @property pixelToLatLng {function(H.datalens.RawDataProvider.PX, H.datalens.RawDataProvider.PY, H.datalens.QueryTileProvider.Zoom, H.datalens.RawDataProvider.TileSize)=} - + * @property pixelToLatLng {function(datalens.RawDataProvider.PX, datalens.RawDataProvider.PY, datalens.QueryTileProvider.Zoom, datalens.RawDataProvider.TileSize)=} - * Translates world pixel coordinates to geographical coordinates (latitude, longitude). * @property parseCSV {function(any)=} - Takes CSV data as input, parses it, and return the parsed result. */ interface Helpers { - latLngToPixel?(latitude: H.datalens.RawDataProvider.Latitude, longitude: H.datalens.RawDataProvider.Longitude, z: H.datalens.QueryTileProvider.Zoom, - tileSize: H.datalens.RawDataProvider.TileSize): H.datalens.RawDataProvider.PixelCoordinates; - pixelToLatLng?(x: H.datalens.RawDataProvider.PX, y: H.datalens.RawDataProvider.PY, z: H.datalens.QueryTileProvider.Zoom, tileSize: H.datalens.RawDataProvider.TileSize): - H.datalens.RawDataProvider.GeoCoordinates; + latLngToPixel?(latitude: datalens.RawDataProvider.Latitude, longitude: datalens.RawDataProvider.Longitude, z: datalens.QueryTileProvider.Zoom, + tileSize: datalens.RawDataProvider.TileSize): datalens.RawDataProvider.PixelCoordinates; + pixelToLatLng?(x: datalens.RawDataProvider.PX, y: datalens.RawDataProvider.PY, z: datalens.QueryTileProvider.Zoom, tileSize: datalens.RawDataProvider.TileSize): + datalens.RawDataProvider.GeoCoordinates; parseCSV?(obj: any): any[]; } @@ -823,14 +823,14 @@ declare namespace H { * Renders vector tiles using data-driven styles * This layer binds the spatial data and user data, all provided by the Data Lens REST API. The layer renders geometry features using data-driven styles. */ - class SpatialLayer extends H.map.layer.TileLayer { + class SpatialLayer extends map.layer.TileLayer { /** * Constructor - * @param dataProvider {H.datalens.Provider} - Source of tiled data (pass in null if data come from feature properties) - * @param spatialProvider {H.datalens.SpatialTileProvider} - Source of geometry data - * @param options {H.datalens.SpatialLayer.Options} - Configuration for data processing and rendering + * @param dataProvider {datalens.Provider} - Source of tiled data (pass in null if data come from feature properties) + * @param spatialProvider {datalens.SpatialTileProvider} - Source of geometry data + * @param options {datalens.SpatialLayer.Options} - Configuration for data processing and rendering */ - constructor(dataProvider: H.datalens.Provider, spatialProvider: H.datalens.SpatialTileProvider, options: H.datalens.SpatialLayer.Options); + constructor(dataProvider: datalens.Provider, spatialProvider: datalens.SpatialTileProvider, options: datalens.SpatialLayer.Options); static DEFAULT_STATE: any; static Spatial: any; @@ -847,36 +847,36 @@ declare namespace H { /** * This method changes the state of a map object; for example, style on mouse event. - * @param {H.map.Object} spatial - * @param {H.datalens.SpatialLayer.StyleState} state + * @param {map.Object} spatial + * @param {datalens.SpatialLayer.StyleState} state */ - updateSpatialStyle(spatial: H.map.Object, state: H.datalens.SpatialLayer.StyleState): void; + updateSpatialStyle(spatial: map.Object, state: datalens.SpatialLayer.StyleState): void; } namespace SpatialLayer { /** * Defines data processing and rendering options for SpatialLayer * The initial step of rendering is to split the tile data by rows, where each row represents a bucket. - * By default this step is processed with H.datalens.SpatialLayer.defaultDataToRows. This behavior can be changed by defining the dataToRows callback. - * @property dataToRows {function(H.datalens.Service.Data, H.datalens.QueryTileProvider.X, H.datalens.QueryTileProvider.Y, H.datalens.QueryTileProvider.Zoom)=} - + * By default this step is processed with datalens.SpatialLayer.defaultDataToRows. This behavior can be changed by defining the dataToRows callback. + * @property dataToRows {function(datalens.Service.Data, datalens.QueryTileProvider.X, datalens.QueryTileProvider.Y, datalens.QueryTileProvider.Zoom)=} - * Defines how the input tile data is split by rows. You can specify this callback to define client-side aggregation and filtering. This callback is called for each tile. - * @property rowToSpatialId {function(H.datalens.SpatialLayer.Row)} - + * @property rowToSpatialId {function(datalens.SpatialLayer.Row)} - * Defines how to get the spatial ID from a data row. This callback is called for each row that is returned from dataToRows. - * @property featureToSpatialId {function(H.datalens.SpatialLayer.Feature)} - + * @property featureToSpatialId {function(datalens.SpatialLayer.Feature)} - * Defines how to get the spatial ID from a geometry feature. This callback is called for each geometry feature in the vector tile. - * @property rowToStyle {function(H.datalens.SpatialLayer.Row, H.datalens.QueryTileProvider.Zoom, H.datalens.SpatialLayer.StyleState)} - + * @property rowToStyle {function(datalens.SpatialLayer.Row, datalens.QueryTileProvider.Zoom, datalens.SpatialLayer.StyleState)} - * Defines how the row is translated to map object style. This callback is called for each row that is returned from dataToRows. - * @property defaultStyle {function(H.datalens.QueryTileProvider.Zoom, H.datalens.SpatialLayer.StyleState)} - Defines the default map object style. - * @property transformFeature {H.datalens.SpatialLayer.transformFeature} - Defines how to transform the features. + * @property defaultStyle {function(datalens.QueryTileProvider.Zoom, datalens.SpatialLayer.StyleState)} - Defines the default map object style. + * @property transformFeature {datalens.SpatialLayer.transformFeature} - Defines how to transform the features. */ interface Options { - dataToRows?(data: H.datalens.Service.Data, x: H.datalens.QueryTileProvider.X, y: H.datalens.QueryTileProvider.Y, z: H.datalens.QueryTileProvider.Zoom): - H.datalens.SpatialLayer.Row[]; - rowToSpatialId(row: H.datalens.SpatialLayer.Row): string; - featureToSpatialId(feature: H.datalens.SpatialLayer.Feature): string; - rowToStyle(row: H.datalens.SpatialLayer.Row, z: H.datalens.QueryTileProvider.Zoom, styleState: H.datalens.SpatialLayer.StyleState): any; - defaultStyle(z: H.datalens.QueryTileProvider.Zoom, styleState: H.datalens.SpatialLayer.StyleState): any; - transformFeature: H.datalens.SpatialLayer.transformFeature; + dataToRows?(data: datalens.Service.Data, x: datalens.QueryTileProvider.X, y: datalens.QueryTileProvider.Y, z: datalens.QueryTileProvider.Zoom): + datalens.SpatialLayer.Row[]; + rowToSpatialId(row: datalens.SpatialLayer.Row): string; + featureToSpatialId(feature: datalens.SpatialLayer.Feature): string; + rowToStyle(row: datalens.SpatialLayer.Row, z: datalens.QueryTileProvider.Zoom, styleState: datalens.SpatialLayer.StyleState): any; + defaultStyle(z: datalens.QueryTileProvider.Zoom, styleState: datalens.SpatialLayer.StyleState): any; + transformFeature: datalens.SpatialLayer.transformFeature; } /** @@ -908,13 +908,13 @@ declare namespace H { * This provider defines the interface for accessing shape layers via the Data Lens REST API. The input data is provided as vector tiles in the MapBox format (Protobuf). * Data is loaded by tiles. */ - class SpatialTileProvider extends H.map.provider.RemoteTileProvider { + class SpatialTileProvider extends map.provider.RemoteTileProvider { /** * Constructor - * @param service {H.datalens.Service} - Data Lens REST API service - * @param options {H.datalens.SpatialTileProvider.Options} - Configures layer name + * @param service {datalens.Service} - Data Lens REST API service + * @param options {datalens.SpatialTileProvider.Options} - Configures layer name */ - constructor(service: H.datalens.Service, options: H.datalens.SpatialTileProvider.Options); + constructor(service: datalens.Service, options: datalens.SpatialTileProvider.Options); static VectorTile: any; @@ -934,8 +934,8 @@ declare namespace H { namespace SpatialTileProvider { /** - * Defines layer name and data accessibility parameters for H.datalens.SpatialTileProvider - * This defines the layer name and dynamic parameters required for fetching tiled geometry data with the Data Lens REST API. Other options from H.datalens.Provider.Options are available. + * Defines layer name and data accessibility parameters for datalens.SpatialTileProvider + * This defines the layer name and dynamic parameters required for fetching tiled geometry data with the Data Lens REST API. Other options from datalens.Provider.Options are available. * @property layerName {string} - The name of the layer to fetch with the Data Lens REST API query * @property queryParams {any} - The query's dynamic parameters. The dynamic parameters can be used to filter data provided by the query. */ diff --git a/types/heremaps/heremaps-tests.ts b/types/heremaps/heremaps-tests.ts index 97a2a82477..9d289ffe6c 100644 --- a/types/heremaps/heremaps-tests.ts +++ b/types/heremaps/heremaps-tests.ts @@ -112,7 +112,7 @@ places.request( }, (response) => { console.log(response); - let items = response.results.items; + const items = response.results.items; places.follow( items[0].href, (resp) => { diff --git a/types/heremaps/index.d.ts b/types/heremaps/index.d.ts index 89e0992b82..b9382485c4 100644 --- a/types/heremaps/index.d.ts +++ b/types/heremaps/index.d.ts @@ -5694,7 +5694,7 @@ declare namespace H { * @param opt_locale {(H.ui.i18n.Localization | string)=} - the language to use (or a full localization object). * @returns {H.ui.UI} - the UI instance configured with the default controls */ - static createDefault(map: H.Map, mapTypes: H.service.Platform.MapTypes | H.service.DefaultLayers, opt_locale?: H.ui.i18n.Localization | string): H.ui.UI; + static createDefault(map: H.Map, mapTypes: H.service.Platform.MapTypes | H.service.DefaultLayers, opt_locale?: H.ui.i18n.Localization | string): H.ui.UI; /** * This method is used to capture the element view diff --git a/types/highcharts/highcharts-more.d.ts b/types/highcharts/highcharts-more.d.ts index 6bd8693409..630dbb5622 100644 --- a/types/highcharts/highcharts-more.d.ts +++ b/types/highcharts/highcharts-more.d.ts @@ -1,6 +1,6 @@ // Type definitions for Highcharts 4.2.6 // Project: http://www.highcharts.com/ -// Definitions by: Maciej Suchecki +// Definitions by: Maciej Suchecki // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped import * as Highcharts from "highcharts"; diff --git a/types/highcharts/highstock.d.ts b/types/highcharts/highstock.d.ts index 3ec90ec6a1..857587ba66 100644 --- a/types/highcharts/highstock.d.ts +++ b/types/highcharts/highstock.d.ts @@ -1,6 +1,6 @@ // Type definitions for Highstock 2.1.5 // Project: http://www.highcharts.com/ -// Definitions by: David Deutsch +// Definitions by: David Deutsch // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped import * as Highcharts from "highcharts"; diff --git a/types/highcharts/index.d.ts b/types/highcharts/index.d.ts index f8ae716c13..13ac88f875 100644 --- a/types/highcharts/index.d.ts +++ b/types/highcharts/index.d.ts @@ -1,7 +1,7 @@ // Type definitions for Highcharts 5.0.10 // Project: http://www.highcharts.com/ -// Definitions by: Damiano Gambarotto -// Dan Lewi Harkestad +// Definitions by: Damiano Gambarotto +// Dan Lewi Harkestad // Albert Ozimek // Juliën Hanssens // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/highcharts/modules/boost.d.ts b/types/highcharts/modules/boost.d.ts index 1a297c7087..e0a3480f95 100644 --- a/types/highcharts/modules/boost.d.ts +++ b/types/highcharts/modules/boost.d.ts @@ -1,6 +1,6 @@ // Type definitions for Highcharts 4.2.6 (boost module) // Project: http://www.highcharts.com/ -// Definitions by: Daniel Martin +// Definitions by: Daniel Martin // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped import { Static } from "highcharts"; diff --git a/types/highcharts/modules/exporting.d.ts b/types/highcharts/modules/exporting.d.ts index 8d808c1929..b4b0124a66 100644 --- a/types/highcharts/modules/exporting.d.ts +++ b/types/highcharts/modules/exporting.d.ts @@ -1,6 +1,6 @@ // Type definitions for Highcharts 4.2.6 (exporting module) // Project: http://www.highcharts.com/ -// Definitions by: Maciej Suchecki +// Definitions by: Maciej Suchecki // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped import { Static } from "highcharts"; diff --git a/types/highcharts/modules/map/index.d.ts b/types/highcharts/modules/map/index.d.ts index fa8c0ed28d..ecf553945b 100644 --- a/types/highcharts/modules/map/index.d.ts +++ b/types/highcharts/modules/map/index.d.ts @@ -8,22 +8,22 @@ import * as geojson from 'geojson'; declare module 'highcharts' { interface Static { - mapChart(renderTo: string | HTMLElement, options: MapOptions, callback?: (chart: highcharts.ChartObject) => void): highcharts.ChartObject; + mapChart(renderTo: string | HTMLElement, options: MapOptions, callback?: (chart: ChartObject) => void): ChartObject; } interface MapOptions { - chart?: highcharts.ChartOptions; - legend?: highcharts.LegendOptions; + chart?: ChartOptions; + legend?: LegendOptions; mapNavigation?: Navigation; - plotOptions?: highcharts.PlotOptions; + plotOptions?: PlotOptions; series?: MapSeriesOptions[]; colorAxis?: ColorAxis; - title?: highcharts.TitleOptions; - tooltip?: highcharts.TooltipOptions; + title?: TitleOptions; + tooltip?: TooltipOptions; } interface MapSeriesOptions { - data?: number[] | Array<[number, number]> | Array<[string, number]> | highcharts.DataPoint[]; + data?: number[] | Array<[number, number]> | Array<[string, number]> | DataPoint[]; dataLabels?: MapSeriesOptionsDataLabels; diff --git a/types/highcharts/modules/no-data-to-display.d.ts b/types/highcharts/modules/no-data-to-display.d.ts index f807860838..a842eee5f0 100644 --- a/types/highcharts/modules/no-data-to-display.d.ts +++ b/types/highcharts/modules/no-data-to-display.d.ts @@ -1,6 +1,6 @@ // Type definitions for Highcharts No Data to Display 4.2.7 // Project: http://www.highcharts.com/ -// Definitions by: Andrey Zolotin , Rowell Heria +// Definitions by: Andrey Zolotin , Rowell Heria // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped import { Static } from "highcharts"; diff --git a/types/highcharts/modules/offline-exporting.d.ts b/types/highcharts/modules/offline-exporting.d.ts index 5b58f65c46..ee38e1c91b 100644 --- a/types/highcharts/modules/offline-exporting.d.ts +++ b/types/highcharts/modules/offline-exporting.d.ts @@ -1,6 +1,6 @@ // Type definitions for Highcharts 4.2.6 (offline exporting module) // Project: http://www.highcharts.com/ -// Definitions by: Daniel Martin +// Definitions by: Daniel Martin // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped import { Static } from "highcharts"; diff --git a/types/highcharts/test/index.ts b/types/highcharts/test/index.ts index a17ee094c2..c1dfdc6e31 100644 --- a/types/highcharts/test/index.ts +++ b/types/highcharts/test/index.ts @@ -1447,7 +1447,7 @@ function test_Column() { function test_ColumnCrispFalse() { // conform example: http://jsfiddle.net/gh/get/jquery/3.1.1/highslide-software/highcharts.com/tree/master/samples/highcharts/plotoptions/column-crisp-false/ const numbers = () => { - let arr = []; + const arr = []; for (let i = 0; i < 100; i++) { arr.push(i); } @@ -2152,7 +2152,7 @@ function test_AccessibilityOptions() { function test_AddAndUpdateCredits() { // example based on: http://jsfiddle.net/gh/get/library/pure/highcharts/highcharts/tree/master/samples/highcharts/credits/credits-update/ - let chart = new Highcharts.Chart({ + const chart = new Highcharts.Chart({ title: { text: 'Credits update' }, @@ -2495,7 +2495,7 @@ function test_ElementObject() { function test_NumericSymbolMagnitude() { // conform example: http://jsfiddle.net/gh/get/library/pure/highcharts/highcharts/tree/master/samples/highcharts/lang/numericsymbolmagnitude/ - let chart = new Highcharts.Chart({ + const chart = new Highcharts.Chart({ title: { text: 'Numeric symbols magnitude' }, @@ -2580,7 +2580,7 @@ function test_RendererObject() { function test_ResponsiveOptions() { const responsiveOptions: Highcharts.ResponsiveOptions = { - rules: [ + rules: [ { chartOptions: { description: 'just a test' @@ -2682,7 +2682,7 @@ function test_SeriesDataLabel() { function test_SoftMinSoftMax() { // conform example: http://jsfiddle.net/gh/get/library/pure/highcharts/highcharts/tree/master/samples/highcharts/yaxis/softmin-softmax/ - let chart: Highcharts.ChartObject = new Highcharts.Chart({ + const chart: Highcharts.ChartObject = new Highcharts.Chart({ title: { text: 'Y axis softMax is 100' }, @@ -2750,7 +2750,7 @@ function test_TitleUpdate() { // conform example: http://jsfiddle.net/gh/get/library/pure/highcharts/highcharts/tree/master/samples/highcharts/members/title-update/ let i = 1; - let chart = new Highcharts.Chart({ + const chart = new Highcharts.Chart({ subtitle: { text: 'Subtitle' }, diff --git a/types/highland/index.d.ts b/types/highland/index.d.ts index 6a3532baca..0d9aedb609 100644 --- a/types/highland/index.d.ts +++ b/types/highland/index.d.ts @@ -18,7 +18,7 @@ * Highland: the high-level streams library * * Highland may be freely distributed under the Apache 2.0 license. - * http://github.com/caolan/highland + * https://github.com/caolan/highland * Copyright (c) Caolan McMahon * */ diff --git a/types/hiredis/index.d.ts b/types/hiredis/index.d.ts index 727e4f4a03..97a3f8d98c 100644 --- a/types/hiredis/index.d.ts +++ b/types/hiredis/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for hiredis 0.5 -// Project: http://github.com/redis/hiredis-node +// Project: https://github.com/redis/hiredis-node // Definitions by: Titan // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/i18n/i18n-tests.ts b/types/i18n/i18n-tests.ts index ac3813c934..8f6deb423c 100644 --- a/types/i18n/i18n-tests.ts +++ b/types/i18n/i18n-tests.ts @@ -9,7 +9,7 @@ import express = require("express"); import i18n = require("i18n"); const app = express(); -let req: express.Request; +declare const req: express.Request; /** * Configuration @@ -98,7 +98,7 @@ i18n.configure({ * Usage in global scope * https://github.com/mashpie/i18n-node#example-usage-in-global-scope */ -let greeting = i18n.__('Hello'); +const greeting = i18n.__('Hello'); /** * Usage in Express @@ -111,7 +111,7 @@ app.configure(() => { }); app.get('/de', (_req: Express.Request, res: Express.Response) => { - let greeting = res.__('Hello'); + const greeting = res.__('Hello'); }); /** diff --git a/types/i18next/i18next-tests.ts b/types/i18next/i18next-tests.ts index ecf5642649..1b5cbaa9cf 100644 --- a/types/i18next/i18next-tests.ts +++ b/types/i18next/i18next-tests.ts @@ -156,7 +156,7 @@ i18next const updateContent2 = () => { const value: string = i18next.t('title', { what: 'i18next' }); const value2: string = i18next.t('common:button.save', { count: Math.floor(Math.random() * 2 + 1) }); - const value3: string = `detected user language: "${i18next.language}" --> loaded languages: "${i18next.languages.join(', ')}"`; + const value3 = `detected user language: "${i18next.language}" --> loaded languages: "${i18next.languages.join(', ')}"`; }; i18next.init({ @@ -424,7 +424,7 @@ i18next.t(["friend", "tree"], { myVar: "someValue" }); const t1: i18next.TranslationFunction = (key: string, options: i18next.TranslationOptions) => ""; const t2: i18next.TranslationFunction<{ value: string }> = (key: string, options: i18next.TranslationOptions) => ({ value: "asd" }); const t3: i18next.TranslationFunction = (key: string | string[], options: i18next.TranslationOptions) => ""; -const t4: i18next.TranslationFunction = (key: KeyList | KeyList[], options: i18next.TranslationOptions) => ""; +const t4: i18next.TranslationFunction = (key: KeyList | KeyList[], options: i18next.TranslationOptions) => ""; i18next.exists("friend"); i18next.exists(["friend", "tree"]); diff --git a/types/iframe-resizer/iframe-resizer-tests.ts b/types/iframe-resizer/iframe-resizer-tests.ts index 186dc2ba47..218a7f71cd 100644 --- a/types/iframe-resizer/iframe-resizer-tests.ts +++ b/types/iframe-resizer/iframe-resizer-tests.ts @@ -1,9 +1,9 @@ import { IFrameComponent, IFrameOptions, iframeResizer } from "iframe-resizer"; function testOne(): void { - let iframe: HTMLIFrameElement = document.createElement('iframe'); - let options: IFrameOptions = {log: true}; - let components: IFrameComponent[] = iframeResizer(options, iframe); + const iframe: HTMLIFrameElement = document.createElement('iframe'); + const options: IFrameOptions = {log: true}; + const components: IFrameComponent[] = iframeResizer(options, iframe); if (components) { components.forEach(component => console.log(component.iFrameResizer)); } else { @@ -12,8 +12,8 @@ function testOne(): void { } function testTwo(): void { - let iframe: HTMLIFrameElement = document.createElement('iframe'); - let components: IFrameComponent[] = iframeResizer({ + const iframe: HTMLIFrameElement = document.createElement('iframe'); + const components: IFrameComponent[] = iframeResizer({ initCallback: () => { console.log('Init'); }, diff --git a/types/ignite-ui/tslint.json b/types/ignite-ui/tslint.json index 344603a3a9..b8160f687d 100644 --- a/types/ignite-ui/tslint.json +++ b/types/ignite-ui/tslint.json @@ -1,6 +1,7 @@ { "extends": "dtslint/dt.json", "rules": { + // All are TODOs "array-type": false, "dt-header": false, "ban-types": false, @@ -8,6 +9,7 @@ "no-empty-interface": false, "unified-signatures": false, "max-line-length": false, + "no-mergeable-namespace": false, "whitespace": false } } diff --git a/types/imagemagick/index.d.ts b/types/imagemagick/index.d.ts index e5abea57ef..89d0eeb600 100644 --- a/types/imagemagick/index.d.ts +++ b/types/imagemagick/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for imagemagick -// Project: http://github.com/rsms/node-imagemagick +// Project: https://github.com/rsms/node-imagemagick // Definitions by: Carlos Ballesteros Velasco // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/images/images-tests.ts b/types/images/images-tests.ts index fc5cab619b..f7ba58d68d 100644 --- a/types/images/images-tests.ts +++ b/types/images/images-tests.ts @@ -1,9 +1,9 @@ import * as images from "images"; // from https://github.com/zhangyuanwei/node-images/blob/master/demo/uploadServer.js -let tmp_path = "tmp_path"; -let out_path = "out_path"; -let photo = images(tmp_path); +const tmp_path = "tmp_path"; +const out_path = "out_path"; +const photo = images(tmp_path); photo.size(800) .draw(images('./logo.png'), 800 - 421, photo.height() - 117) diff --git a/types/imgur-rest-api/index.d.ts b/types/imgur-rest-api/index.d.ts index 5d4c483edf..091c3b1db5 100644 --- a/types/imgur-rest-api/index.d.ts +++ b/types/imgur-rest-api/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for Imgur REST API 3.0 // Project: https://api.imgur.com/ -// Definitions by: Luke William Westby +// Definitions by: Luke William Westby // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped declare namespace ImgurRestApi { diff --git a/types/inert/index.d.ts b/types/inert/index.d.ts index 28e4efbe58..1af500c7cf 100644 --- a/types/inert/index.d.ts +++ b/types/inert/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for inert 4.2 // Project: https://github.com/hapijs/inert/ -// Definitions by: Steve Ognibene , AJP +// Definitions by: Steve Ognibene , AJP // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 diff --git a/types/insight/index.d.ts b/types/insight/index.d.ts index 2dfc147da6..255807a37e 100644 --- a/types/insight/index.d.ts +++ b/types/insight/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for insight 0.4.3 // Project: https://github.com/yeoman/insight -// Definitions by: vvakame +// Definitions by: vvakame // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped declare namespace insight { diff --git a/types/integer/integer-tests.ts b/types/integer/integer-tests.ts index 2450423ff7..67c9a90975 100644 --- a/types/integer/integer-tests.ts +++ b/types/integer/integer-tests.ts @@ -11,18 +11,18 @@ num0 = num0.add(num0); console.assert(!num0.compare(60)); let num1: Integer.IntClass = Integer.fromBits(0xFF); -let num2: Integer.IntClass = Integer.fromBits(0xFF, 0xFF); +const num2: Integer.IntClass = Integer.fromBits(0xFF, 0xFF); num1 = num1.shl(32); console.assert(!num1.compare(num2)); -let num3: Integer.IntClass = Integer.fromNumber(10); +const num3: Integer.IntClass = Integer.fromNumber(10); let num4: Integer.IntClass = Integer.fromNumber(10, 10); console.assert(!num3.compare(num4)); num4 = Integer.fromNumber(10, num3); console.assert(!num3.compare(num4)); -let num5: Integer.IntClass = Integer.fromString('255'); -let num6: Integer.IntClass = Integer.fromString('ff', 16); +const num5: Integer.IntClass = Integer.fromString('255'); +const num6: Integer.IntClass = Integer.fromString('ff', 16); console.assert(!num5.compare(num6)); let num7: Integer.IntClass = Integer.fromString('ff', 16, '255'); console.assert(!num5.compare(num7)); diff --git a/types/intercomjs/index.d.ts b/types/intercomjs/index.d.ts index 5068059f27..f39e6868a0 100644 --- a/types/intercomjs/index.d.ts +++ b/types/intercomjs/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for intercom.js // Project: https://github.com/diy/intercom.js -// Definitions by: spencerwi +// Definitions by: spencerwi // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped declare namespace intercom { diff --git a/types/jasmine_dom_matchers/index.d.ts b/types/jasmine_dom_matchers/index.d.ts index f463a5ebce..51f2fa035e 100644 --- a/types/jasmine_dom_matchers/index.d.ts +++ b/types/jasmine_dom_matchers/index.d.ts @@ -1,5 +1,5 @@ // Type definitions for jasmine_dom_matchers 1.4 -// Project: http://github.com/charleshansen/jasmine_dom_matchers +// Project: https://github.com/charleshansen/jasmine_dom_matchers // Definitions by: Yaroslav Admin // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 diff --git a/types/jest/jest-tests.ts b/types/jest/jest-tests.ts index 2f303c5e8d..7e5ed2567f 100644 --- a/types/jest/jest-tests.ts +++ b/types/jest/jest-tests.ts @@ -5,24 +5,24 @@ declare var require: { requireMock(s: string): any; }; // TODO: use real jquery types? -declare let $: any; +declare const $: any; // Tests based on the Jest website jest.unmock('../sum'); describe('sum', () => { it('adds 1 + 2 to equal 3', () => { - let sum: (a: number, b: number) => number = require('../sum'); + const sum: (a: number, b: number) => number = require('../sum'); expect(sum(1, 2)).toBe(3); }); }); describe('fetchCurrentUser', () => { it('calls the callback when $.ajax requests are finished', () => { - let fetchCurrentUser = require('../fetchCurrentUser'); + const fetchCurrentUser = require('../fetchCurrentUser'); // Create a mock function for our callback - let callback = jest.fn(); + const callback = jest.fn(); fetchCurrentUser(callback); // Now we emulate the process by which `$.ajax` would execute its own @@ -53,9 +53,9 @@ describe('displayUser', () => { '