From 22f17cf61d5d5c4d2c4e346e3d8792f6fe247d2c Mon Sep 17 00:00:00 2001 From: Prannay Budhraja Date: Wed, 9 Aug 2017 18:39:58 -0700 Subject: [PATCH 001/506] select knob options object keys are strings or numbers only * select knob uses the keys of the "options" object as the selected values, and doesn't support arbitrary types as values. * It only supports arbitrary types for the select->option->child. These are the values in options object. * The value of the select knob or the selected option however, is still either a string or number. Also, since typescript object key signature can only be either "string" or "number" (but not string | number) we need to specify both types explicitly. options : { [s: string | number]: T } does not work. --- types/storybook__addon-knobs/index.d.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/types/storybook__addon-knobs/index.d.ts b/types/storybook__addon-knobs/index.d.ts index 3e422640c8..11fbfb9cd5 100644 --- a/types/storybook__addon-knobs/index.d.ts +++ b/types/storybook__addon-knobs/index.d.ts @@ -36,8 +36,10 @@ export function color(name: string, value: string): string; export function object(name: string, value: T): T; -export function select(name: string, options: { [s: string]: T }, value: string): T; -export function select(name: string, options: string[], value: string): string; +export function select(name: string, options: { [s: string]: T }, value: string): string; +export function select(name: string, options: { [s: number]: T }, value: number): number; +type SelectValue = string | number; +export function select(name: string, options: T[], value: T): T; export function date(name: string, value?: Date): Date; From 363135abfa412c1bcbc589f85ce6514d0ccac6ca Mon Sep 17 00:00:00 2001 From: Prannay Budhraja Date: Wed, 9 Aug 2017 19:01:06 -0700 Subject: [PATCH 002/506] fix tslint errors --- types/storybook__addon-knobs/index.d.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/types/storybook__addon-knobs/index.d.ts b/types/storybook__addon-knobs/index.d.ts index 11fbfb9cd5..0a83194453 100644 --- a/types/storybook__addon-knobs/index.d.ts +++ b/types/storybook__addon-knobs/index.d.ts @@ -36,9 +36,9 @@ export function color(name: string, value: string): string; export function object(name: string, value: T): T; -export function select(name: string, options: { [s: string]: T }, value: string): string; -export function select(name: string, options: { [s: number]: T }, value: number): number; -type SelectValue = string | number; +export type SelectValue = string | number; +export function select(name: string, options: { [s: string]: string }, value: T): T; +export function select(name: string, options: { [s: number]: string }, value: T): T; export function select(name: string, options: T[], value: T): T; export function date(name: string, value?: Date): Date; From d3e91997e701274c48a089b432000d08926225fe Mon Sep 17 00:00:00 2001 From: Prannay Budhraja Date: Wed, 9 Aug 2017 19:19:54 -0700 Subject: [PATCH 003/506] add tests showing that options object's keys are the values of the React select --- .../storybook__addon-knobs-tests.tsx | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/types/storybook__addon-knobs/storybook__addon-knobs-tests.tsx b/types/storybook__addon-knobs/storybook__addon-knobs-tests.tsx index 76c72f1a7d..636dd8cd01 100644 --- a/types/storybook__addon-knobs/storybook__addon-knobs-tests.tsx +++ b/types/storybook__addon-knobs/storybook__addon-knobs-tests.tsx @@ -13,6 +13,11 @@ import { knob, } from '@storybook/addon-knobs'; +enum SomeEnum { + Type1 = 1, + Type2 +}; + const stories = storiesOf('Example of Knobs', module); stories.addDecorator(withKnobs); @@ -38,8 +43,15 @@ stories.add('with all knobs', () => { }); const genericObject: string = object('Some generic object', 'value'); + type X = 'a' | 'b'; - const genericSelect: X = select('Some generic select', { a: 'a', b: 'b'}, 'b'); + const genericSelect: X = select('Some generic select', { 'a': 'type a', 'b': 'type b'}, 'b'); + + const enumSelectOptions: { [s: number]: string } = {}; + enumSelectOptions[SomeEnum.Type1] = "Type 1"; + enumSelectOptions[SomeEnum.Type2] = "Type 2"; + const genericSelect2: SomeEnum = select('Some generic select', enumSelectOptions, SomeEnum.Type1); + const genericKnob: X = knob('Some generic knob', { value: 'a', type: 'text' }); const style = Object.assign({}, customStyle, { From 5cbb71e28c9c0dc7ab2d8716dd37f8611f0cfd2d Mon Sep 17 00:00:00 2001 From: Prannay Budhraja Date: Wed, 9 Aug 2017 19:26:49 -0700 Subject: [PATCH 004/506] tslint errors fixed again --- .../storybook__addon-knobs-tests.tsx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/types/storybook__addon-knobs/storybook__addon-knobs-tests.tsx b/types/storybook__addon-knobs/storybook__addon-knobs-tests.tsx index 636dd8cd01..2600d60850 100644 --- a/types/storybook__addon-knobs/storybook__addon-knobs-tests.tsx +++ b/types/storybook__addon-knobs/storybook__addon-knobs-tests.tsx @@ -16,7 +16,7 @@ import { enum SomeEnum { Type1 = 1, Type2 -}; +} const stories = storiesOf('Example of Knobs', module); @@ -43,15 +43,15 @@ stories.add('with all knobs', () => { }); const genericObject: string = object('Some generic object', 'value'); - + type X = 'a' | 'b'; - const genericSelect: X = select('Some generic select', { 'a': 'type a', 'b': 'type b'}, 'b'); - + const genericSelect: X = select('Some generic select', { a: 'type a', b: 'type b'}, 'b'); + const enumSelectOptions: { [s: number]: string } = {}; enumSelectOptions[SomeEnum.Type1] = "Type 1"; enumSelectOptions[SomeEnum.Type2] = "Type 2"; const genericSelect2: SomeEnum = select('Some generic select', enumSelectOptions, SomeEnum.Type1); - + const genericKnob: X = knob('Some generic knob', { value: 'a', type: 'text' }); const style = Object.assign({}, customStyle, { From c7cba7374e15fed5c8281f50fcc8c309e216d9ad Mon Sep 17 00:00:00 2001 From: Nicolas Penin Date: Thu, 17 Aug 2017 07:08:52 +0200 Subject: [PATCH 005/506] added sequencify --- types/sequencify/index.d.ts | 16 ++++++++++++++ types/sequencify/sequencify-tests.ts | 32 ++++++++++++++++++++++++++++ types/sequencify/tsconfig.json | 19 +++++++++++++++++ types/sequencify/tslint.json | 3 +++ 4 files changed, 70 insertions(+) create mode 100644 types/sequencify/index.d.ts create mode 100644 types/sequencify/sequencify-tests.ts create mode 100644 types/sequencify/tsconfig.json create mode 100644 types/sequencify/tslint.json diff --git a/types/sequencify/index.d.ts b/types/sequencify/index.d.ts new file mode 100644 index 0000000000..dbfdb22e28 --- /dev/null +++ b/types/sequencify/index.d.ts @@ -0,0 +1,16 @@ +// Type definitions for sequencify v0.0 +// Project: https://github.com/robrich/sequencify +// Definitions by: Nicolas Penin +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +// Definition file started by dts-gen + +export = sequencify; + +declare namespace sequencify { + export type Task = { name: string, dep: string[] }; + + export type TaskMap = { [name: string]: Task } +} + +declare function sequencify(tasks: sequencify.TaskMap, names: (keyof sequencify.TaskMap)[], results: string[], nest?: string[]): void; diff --git a/types/sequencify/sequencify-tests.ts b/types/sequencify/sequencify-tests.ts new file mode 100644 index 0000000000..cdb82b3384 --- /dev/null +++ b/types/sequencify/sequencify-tests.ts @@ -0,0 +1,32 @@ +/* Add tests for your definition file here */ + +import * as sequencify from 'sequencify'; + +var items: sequencify.TaskMap = { + a: { + name: 'a', + dep: [] + // other properties as needed + }, + b: { + name: 'b', + dep: ['a'] + }, + c: { + name: 'c', + dep: ['a'] + }, + d: { + name: 'd', + dep: ['c'] + }, +}; + +var names = ['d', 'b', 'c', 'a']; // The names of the items you want arranged, need not be all + +var results: string[] = []; + +sequencify(items, names, results); + +console.log(results); +// ['a','b','c','d']; diff --git a/types/sequencify/tsconfig.json b/types/sequencify/tsconfig.json new file mode 100644 index 0000000000..a0f1b28bcf --- /dev/null +++ b/types/sequencify/tsconfig.json @@ -0,0 +1,19 @@ +{ + "files": [ + "index.d.ts", + "sequencify-tests.ts" + ], + "compilerOptions": { + "module": "commonjs", + "target": "es6", + "noImplicitAny": true, + "strictNullChecks": false, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + } +} \ No newline at end of file diff --git a/types/sequencify/tslint.json b/types/sequencify/tslint.json new file mode 100644 index 0000000000..e60c15844f --- /dev/null +++ b/types/sequencify/tslint.json @@ -0,0 +1,3 @@ +{ + "extends": "dtslint/dt.json" +} \ No newline at end of file From 093edfc11f282573bb4c08451b077b60e21cd07e Mon Sep 17 00:00:00 2001 From: Nicolas Penin Date: Thu, 17 Aug 2017 07:18:43 +0200 Subject: [PATCH 006/506] updated tsconfig to match PR rules --- types/sequencify/tsconfig.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/types/sequencify/tsconfig.json b/types/sequencify/tsconfig.json index a0f1b28bcf..487ca81db3 100644 --- a/types/sequencify/tsconfig.json +++ b/types/sequencify/tsconfig.json @@ -7,7 +7,8 @@ "module": "commonjs", "target": "es6", "noImplicitAny": true, - "strictNullChecks": false, + "noImplicitThis": true, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" From 613daf6bcad03d73c601e8dad2a7a2d9d846d8ed Mon Sep 17 00:00:00 2001 From: Nicolas Penin Date: Thu, 17 Aug 2017 19:52:20 +0200 Subject: [PATCH 007/506] fixed tslint issues --- types/sequencify/index.d.ts | 14 ++++++++++---- types/sequencify/sequencify-tests.ts | 8 +++++--- types/sequencify/tsconfig.json | 3 +++ 3 files changed, 18 insertions(+), 7 deletions(-) diff --git a/types/sequencify/index.d.ts b/types/sequencify/index.d.ts index dbfdb22e28..bd514b70ec 100644 --- a/types/sequencify/index.d.ts +++ b/types/sequencify/index.d.ts @@ -1,16 +1,22 @@ -// Type definitions for sequencify v0.0 +// Type definitions for sequencify 0.0 // Project: https://github.com/robrich/sequencify // Definitions by: Nicolas Penin // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // Definition file started by dts-gen +// TypeScript Version: 2.1 export = sequencify; declare namespace sequencify { - export type Task = { name: string, dep: string[] }; + interface Task { + name: string; + dep: string[]; + } - export type TaskMap = { [name: string]: Task } + interface TaskMap { + [name: string]: Task; + } } -declare function sequencify(tasks: sequencify.TaskMap, names: (keyof sequencify.TaskMap)[], results: string[], nest?: string[]): void; +declare function sequencify(tasks: sequencify.TaskMap, names: Array, results: string[], nest?: string[]): void; diff --git a/types/sequencify/sequencify-tests.ts b/types/sequencify/sequencify-tests.ts index cdb82b3384..80907278f1 100644 --- a/types/sequencify/sequencify-tests.ts +++ b/types/sequencify/sequencify-tests.ts @@ -1,8 +1,10 @@ /* Add tests for your definition file here */ +/// + import * as sequencify from 'sequencify'; -var items: sequencify.TaskMap = { +let items: sequencify.TaskMap = { a: { name: 'a', dep: [] @@ -22,9 +24,9 @@ var items: sequencify.TaskMap = { }, }; -var names = ['d', 'b', 'c', 'a']; // The names of the items you want arranged, need not be all +let names = ['d', 'b', 'c', 'a']; // The names of the items you want arranged, need not be all -var results: string[] = []; +let results: string[] = []; sequencify(items, names, results); diff --git a/types/sequencify/tsconfig.json b/types/sequencify/tsconfig.json index 487ca81db3..fb43176f7c 100644 --- a/types/sequencify/tsconfig.json +++ b/types/sequencify/tsconfig.json @@ -13,6 +13,9 @@ "typeRoots": [ "../" ], + "lib": [ + "es6" + ], "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true From 84fe7d96fba63b35930e132e9f94485a7bfb0905 Mon Sep 17 00:00:00 2001 From: Nicolas Penin Date: Tue, 22 Aug 2017 20:36:50 +0200 Subject: [PATCH 008/506] strongly typed function --- types/sequencify/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/sequencify/index.d.ts b/types/sequencify/index.d.ts index bd514b70ec..2755df8bce 100644 --- a/types/sequencify/index.d.ts +++ b/types/sequencify/index.d.ts @@ -19,4 +19,4 @@ declare namespace sequencify { } } -declare function sequencify(tasks: sequencify.TaskMap, names: Array, results: string[], nest?: string[]): void; +declare function sequencify(tasks: T, names: Array, results: Array, nest?: string[]): void; From b2015d021200371aee6a5ee15c6012db043f286d Mon Sep 17 00:00:00 2001 From: Johan Nordberg Date: Thu, 31 Aug 2017 14:37:48 +0200 Subject: [PATCH 009/506] Update VError constructor VError constructor can be called with no arguments --- types/verror/index.d.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/types/verror/index.d.ts b/types/verror/index.d.ts index ec2cb0f698..391a373a6c 100644 --- a/types/verror/index.d.ts +++ b/types/verror/index.d.ts @@ -31,6 +31,7 @@ declare class VError extends Error { cause(): Error | undefined; constructor(options: VError.Options | Error, message: string, ...params: any[]); constructor(message: string, ...params: any[]); + constructor(); } declare namespace VError { From 52d0fb07b21c20ec437665c3cfbea89cbe6f9029 Mon Sep 17 00:00:00 2001 From: voxmatt Date: Sun, 3 Sep 2017 12:38:18 -0700 Subject: [PATCH 010/506] adding types for relay-runtime --- types/relay-runtime/index.d.ts | 1102 +++++++++++++++++++++++++++++ types/relay-runtime/tsconfig.json | 26 + 2 files changed, 1128 insertions(+) create mode 100644 types/relay-runtime/index.d.ts create mode 100644 types/relay-runtime/tsconfig.json diff --git a/types/relay-runtime/index.d.ts b/types/relay-runtime/index.d.ts new file mode 100644 index 0000000000..7e57ef036b --- /dev/null +++ b/types/relay-runtime/index.d.ts @@ -0,0 +1,1102 @@ +/// + +declare namespace __Relay.Common { + /** + * SOURCE: + * Relay 1.3.0 + * https://github.com/facebook/relay/blob/b85a1d69bb72be4ace67179f55c2a54a8d761c8b/packages/react-relay/classic/environment/RelayCombinedEnvironmentTypes.js + */ + // ~~~~~~~~~~~~~~~~~~~~~ + // Util + // ~~~~~~~~~~~~~~~~~~~~~ + type Maybe = T | void; + + // ~~~~~~~~~~~~~~~~~~~~~ + // Maybe Fix + // ~~~~~~~~~~~~~~~~~~~~~ + type RelayConcreteNode = any; + type RelayMutationTransaction = any; + type RelayMutationRequest = any; + type RelayQueryRequest = any; + type ConcreteFragment = any; + type ConcreteBatch = any; + type ConcreteFragmentDefinition = Object; + type ConcreteOperationDefinition = Object; + + /** + * FIXME: RelayContainer used to be typed with ReactClass, but + * ReactClass is broken and allows for access to any property. For example + * ReactClass.getFragment('foo') is valid even though ReactClass has no + * such getFragment() type definition. When ReactClass is fixed this causes a + * lot of errors in Relay code since methods like getFragment() are used often + * but have no definition in Relay's types. Suppressing for now. + */ + export type RelayContainer = any; + // ~~~~~~~~~~~~~~~~~~~~~ + // RelayQL + // ~~~~~~~~~~~~~~~~~~~~~ + type RelayQL = ( + strings: Array, + ...substitutions: Array + ) => Common.RelayConcreteNode; + + // ~~~~~~~~~~~~~~~~~~~~~ + // RelayModernGraphQLTag + // ~~~~~~~~~~~~~~~~~~~~~ + type GeneratedNodeMap = {[key: string]: GraphQLTaggedNode}; + type GraphQLTaggedNode = + (() => ConcreteFragment | ConcreteBatch) | + { + modern: () => ConcreteFragment | ConcreteBatch, + classic: (relayQL: RelayQL) => + | ConcreteFragmentDefinition + | ConcreteOperationDefinition, + }; + // ~~~~~~~~~~~~~~~~~~~~~ + // General Usage + // ~~~~~~~~~~~~~~~~~~~~~ + export type DataID = string; + export type Variables = {[name: string]: any}; + export type Uploadable = File | Blob; + export type UploadableMap = {[key: string]: Uploadable}; + + + // ~~~~~~~~~~~~~~~~~~~~~ + // RelayNetworkTypes + // Version: Relay 1.3.0 + // File: https://github.com/facebook/relay/blob/master/packages/relay-runtime/network/RelayNetworkTypes.js + // ~~~~~~~~~~~~~~~~~~~~~ + + export type LegacyObserver = { + onCompleted?: (() => void) | void, + onError?: ((error: Error) => void) | void, + onNext?: ((data: T) => void) | void, + }; + export type PayloadError = { + message: string, + locations?: Array<{ + line: number, + column: number, + }>, + }; + + + // ~~~~~~~~~~~~~~~~~~~~~ + // RelayStoreTypes + // Version: Relay 1.3.0 + // File: https://github.com/facebook/relay/blob/master/packages/relay-runtime/store/RelayStoreTypes.js + // ~~~~~~~~~~~~~~~~~~~~~ + /** + * A function that receives a proxy over the store and may trigger side-effects + * (indirectly) by calling `set*` methods on the store or its record proxies. + */ + export type StoreUpdater = (store: RecordSourceProxy) => void; + + /** + * Similar to StoreUpdater, but accepts a proxy tied to a specific selector in + * order to easily access the root fields of a query/mutation as well as a + * second argument of the response object of the mutation. + */ + export type SelectorStoreUpdater = ( + store: RecordSourceSelectorProxy, + // Actually RelayCombinedEnvironmentTypes#SelectorData, but mixed is + // inconvenient to access deeply in product code. + data: any, // FLOW FIXME + ) => void; + + /** + * Extends the RecordSourceProxy interface with methods for accessing the root + * fields of a Selector. + */ + export interface RecordSourceSelectorProxy { + create(dataID: DataID, typeName: string): RecordProxy, + delete(dataID: DataID): void, + get(dataID: DataID): RecordProxy | void, + getRoot(): RecordProxy, + getRootField(fieldName: string): RecordProxy | void, + getPluralRootField(fieldName: string): RecordProxy[] | void, + } + + export interface RecordProxy { + copyFieldsFrom(source: RecordProxy): void, + getDataID(): DataID, + getLinkedRecord(name: string, args?: Variables | void): RecordProxy | void, + getLinkedRecords(name: string, args?: Variables | void): (RecordProxy | void)[] | void, + getOrCreateLinkedRecord( + name: string, + typeName: string, + args?: Variables | void, + ): RecordProxy, + getType(): string, + getValue(name: string, args?: Variables | void): any, + setLinkedRecord( + record: RecordProxy, + name: string, + args?: Variables | void, + ): RecordProxy, + setLinkedRecords( + records: (RecordProxy | void)[] | void, + name: string, + args?: Variables | void, + ): RecordProxy, + setValue(value: any, name: string, args?: Variables | void): RecordProxy, + } + + export interface RecordSourceProxy { + create(dataID: DataID, typeName: string): RecordProxy, + delete(dataID: DataID): void, + get(dataID: DataID): (RecordProxy | void)[] | void, + getRoot(): RecordProxy, + } + + export type HandleFieldPayload = { + // The arguments that were fetched. + args: Variables, + // The __id of the record containing the source/handle field. + dataID: DataID, + // The (storage) key at which the original server data was written. + fieldKey: string, + // The name of the handle. + handle: string, + // The (storage) key at which the handle's data should be written by the + // handler. + handleKey: string, + }; + + export type Handler = { + update: (store: RecordSourceProxy, fieldPayload: HandleFieldPayload) => void, + }; + + + // ~~~~~~~~~~~~~~~~~~~~~ + // RelayCombinedEnvironmentTypes + // Version: Relay 1.3.0 + // File: https://github.com/facebook/relay/blob/b85a1d69bb72be4ace67179f55c2a54a8d761c8b/packages/react-relay/classic/environment/RelayCombinedEnvironmentTypes.js + // ~~~~~~~~~~~~~~~~~~~~~ + /** + * Settings for how a query response may be cached. + * + * - `force`: causes a query to be issued unconditionally, irrespective of the + * state of any configured response cache. + * - `poll`: causes a query to live update by polling at the specified interval + in milliseconds. (This value will be passed to setTimeout.) + */ + export type CacheConfig = { + force?: boolean | void, + poll?: number | void, + }; + + /** + * Represents any resource that must be explicitly disposed of. The most common + * use-case is as a return value for subscriptions, where calling `dispose()` + * would cancel the subscription. + */ + export type Disposable = { + dispose(): void, + }; + + + /** + * Arbitrary data e.g. received by a container as props. + */ + export type Props = {[key: string]: any}; + + /* + * An individual cached graph object. + */ + export type Record = {[key: string]: any}; + + /** + * A collection of records keyed by id. + */ + export type RecordMap = {[dataID: string]: Record | void}; + + /** + * A selector defines the starting point for a traversal into the graph for the + * purposes of targeting a subgraph. + */ + export type CSelector = { + dataID: DataID, + node: TNode, + variables: Variables, + }; + + /** + * A representation of a selector and its results at a particular point in time. + */ + export type CSnapshot = CSelector & { + data: SelectorData | void, + seenRecords: RecordMap, + }; + + /** + * The results of a selector given a store/RecordSource. + */ + export type SelectorData = {[key: string]: any}; + + /** + * The results of reading the results of a FragmentMap given some input + * `Props`. + */ + export type FragmentSpecResults = {[key: string]: any}; + + /** + * A utility for resolving and subscribing to the results of a fragment spec + * (key -> fragment mapping) given some "props" that determine the root ID + * and variables to use when reading each fragment. When props are changed via + * `setProps()`, the resolver will update its results and subscriptions + * accordingly. Internally, the resolver: + * - Converts the fragment map & props map into a map of `Selector`s. + * - Removes any resolvers for any props that became null. + * - Creates resolvers for any props that became non-null. + * - Updates resolvers with the latest props. + */ + export interface FragmentSpecResolver { + /** + * Stop watching for changes to the results of the fragments. + */ + dispose(): void, + + /** + * Get the current results. + */ + resolve(): FragmentSpecResults, + + /** + * Update the resolver with new inputs. Call `resolve()` to get the updated + * results. + */ + setProps(props: Props): void, + + /** + * Override the variables used to read the results of the fragments. Call + * `resolve()` to get the updated results. + */ + setVariables(variables: Variables): void, + } + + export type CFragmentMap = {[key: string]: TFragment}; + + /** + * An operation selector describes a specific instance of a GraphQL operation + * with variables applied. + * + * - `root`: a selector intended for processing server results or retaining + * response data in the store. + * - `fragment`: a selector intended for use in reading or subscribing to + * the results of the the operation. + */ + export type COperationSelector = { + fragment: CSelector, + node: TOperation, + root: CSelector, + variables: Variables, + }; + + /** + * The public API of Relay core. Represents an encapsulated environment with its + * own in-memory cache. + */ + export interface CEnvironment< + TEnvironment, + TFragment, + TGraphQLTaggedNode, + TNode, + TOperation, + TPayload, + > { + /** + * Read the results of a selector from in-memory records in the store. + */ + lookup(selector: CSelector): CSnapshot, + + /** + * Subscribe to changes to the results of a selector. The callback is called + * when data has been committed to the store that would cause the results of + * the snapshot's selector to change. + */ + subscribe( + snapshot: CSnapshot, + callback: (snapshot: CSnapshot) => void, + ): Disposable, + + /** + * Ensure that all the records necessary to fulfill the given selector are + * retained in-memory. The records will not be eligible for garbage collection + * until the returned reference is disposed. + * + * Note: This is a no-op in the classic core. + */ + retain(selector: CSelector): Disposable, + + /** + * Send a query to the server with request/response semantics: the query will + * either complete successfully (calling `onNext` and `onCompleted`) or fail + * (calling `onError`). + * + * Note: Most applications should use `streamQuery` in order to + * optionally receive updated information over time, should that feature be + * supported by the network/server. A good rule of thumb is to use this method + * if you would otherwise immediately dispose the `streamQuery()` + * after receving the first `onNext` result. + */ + sendQuery(config: { + cacheConfig?: CacheConfig | void, + onCompleted?: Maybe<() => void>, + onError?: Maybe<(error: Error) => void>, + onNext?: Maybe<(payload: TPayload) => void>, + operation: COperationSelector, + }): Disposable, + + /** + * Send a query to the server with request/subscription semantics: one or more + * responses may be returned (via `onNext`) over time followed by either + * the request completing (`onCompleted`) or an error (`onError`). + * + * Networks/servers that support subscriptions may choose to hold the + * subscription open indefinitely such that `onCompleted` is not called. + */ + streamQuery(config: { + cacheConfig?: Maybe, + onCompleted?: Maybe<() => void>, + onError?: Maybe<(error: Error) => void>, + onNext?: Maybe<(payload: TPayload) => void>, + operation: COperationSelector, + }): Disposable, + + unstable_internal: CUnstableEnvironmentCore< + TEnvironment, + TFragment, + TGraphQLTaggedNode, + TNode, + TOperation + >, + } + + export interface CUnstableEnvironmentCore< + TEnvironment, + TFragment, + TGraphQLTaggedNode, + TNode, + TOperation, + > { + /** + * Create an instance of a FragmentSpecResolver. + * + * TODO: The FragmentSpecResolver *can* be implemented via the other methods + * defined here, so this could be moved out of core. It's convenient to have + * separate implementations until the experimental core is in OSS. + */ + createFragmentSpecResolver: ( + context: CRelayContext, + containerName: string, + fragments: CFragmentMap, + props: Props, + callback: () => void, + ) => FragmentSpecResolver, + + /** + * Creates an instance of an OperationSelector given an operation definition + * (see `getOperation`) and the variables to apply. The input variables are + * filtered to exclude variables that do not matche defined arguments on the + * operation, and default values are populated for null values. + */ + createOperationSelector: ( + operation: TOperation, + variables: Variables, + ) => COperationSelector, + + /** + * Given a graphql`...` tagged template, extract a fragment definition usable + * by this version of Relay core. Throws if the value is not a fragment. + */ + getFragment: (node: TGraphQLTaggedNode) => TFragment, + + /** + * Given a graphql`...` tagged template, extract an operation definition + * usable by this version of Relay core. Throws if the value is not an + * operation. + */ + getOperation: (node: TGraphQLTaggedNode) => TOperation, + + /** + * Determine if two selectors are equal (represent the same selection). Note + * that this function returns `false` when the two queries/fragments are + * different objects, even if they select the same fields. + */ + areEqualSelectors: (a: CSelector, b: CSelector) => boolean, + + /** + * Given the result `item` from a parent that fetched `fragment`, creates a + * selector that can be used to read the results of that fragment for that item. + * + * Example: + * + * Given two fragments as follows: + * + * ``` + * fragment Parent on User { + * id + * ...Child + * } + * fragment Child on User { + * name + * } + * ``` + * + * And given some object `parent` that is the results of `Parent` for id "4", + * the results of `Child` can be accessed by first getting a selector and then + * using that selector to `lookup()` the results against the environment: + * + * ``` + * const childSelector = getSelector(queryVariables, Child, parent); + * const childData = environment.lookup(childSelector).data; + * ``` + */ + getSelector: ( + operationVariables: Variables, + fragment: TFragment, + prop: any, + ) => CSelector | void, + + /** + * Given the result `items` from a parent that fetched `fragment`, creates a + * selector that can be used to read the results of that fragment on those + * items. This is similar to `getSelector` but for "plural" fragments that + * expect an array of results and therefore return an array of selectors. + */ + getSelectorList: ( + operationVariables: Variables, + fragment: TFragment, + props: Array, + ) => Array> | void, + + /** + * Given a mapping of keys -> results and a mapping of keys -> fragments, + * extracts the selectors for those fragments from the results. + * + * The canonical use-case for this function are Relay Containers, which + * use this function to convert (props, fragments) into selectors so that they + * can read the results to pass to the inner component. + */ + getSelectorsFromObject: ( + operationVariables: Variables, + fragments: CFragmentMap, + props: Props, + ) => {[key: string]: Maybe<(CSelector | Array>)>}, + + /** + * Given a mapping of keys -> results and a mapping of keys -> fragments, + * extracts a mapping of keys -> id(s) of the results. + * + * Similar to `getSelectorsFromObject()`, this function can be useful in + * determining the "identity" of the props passed to a component. + */ + getDataIDsFromObject: ( + fragments: CFragmentMap, + props: Props, + ) => {[key: string]: Maybe<(DataID | Array)>}, + + /** + * Given a mapping of keys -> results and a mapping of keys -> fragments, + * extracts the merged variables that would be in scope for those + * fragments/results. + * + * This can be useful in determing what varaibles were used to fetch the data + * for a Relay container, for example. + */ + getVariablesFromObject: ( + operationVariables: Variables, + fragments: CFragmentMap, + props: Props, + ) => Variables, + } + + /** + * The type of the `relay` property set on React context by the React/Relay + * integration layer (e.g. QueryRenderer, FragmentContainer, etc). + */ + export type CRelayContext = { + environment: TEnvironment, + variables: Variables, + }; + + + // ~~~~~~~~~~~~~~~~~~~~~ + // RelayTypes + /** + * Version: Relay 1.3.0 + * File: + * https://github.com/facebook/relay/blob/fa9f48ea209ee2402d433b59a84d1cbc046574e2/packages/react-relay/classic/tools/RelayTypes.js + */ + // ~~~~~~~~~~~~~~~~~~~~~ + export type RerunParam = { + param: string, + import: string, + max_runs: number, + }; + + export type RelayMutationConfig = + | { + type: 'FIELDS_CHANGE', + fieldIDs: {[fieldName: string]: DataID | Array}, + } + | { + type: 'RANGE_ADD', + parentName?: string, + parentID?: string, + connectionInfo?: Array<{ + key: string, + filters?: Variables, + rangeBehavior: string, + }>, + connectionName?: string, + edgeName: string, + rangeBehaviors?: RangeBehaviors, + } + | { + type: 'NODE_DELETE', + parentName?: string, + parentID?: string, + connectionName?: string, + deletedIDFieldName: string, + } + | { + type: 'RANGE_DELETE', + parentName?: string, + parentID?: string, + connectionKeys?: Array<{ + key: string, + filters?: Variables, + }>, + connectionName?: string, + deletedIDFieldName: string | Array, + pathToConnection: Array, + } + | { + type: 'REQUIRED_CHILDREN', + children: Array, + }; + + export type RelayMutationTransactionCommitCallbacks = { + onFailure?: RelayMutationTransactionCommitFailureCallback, + onSuccess?: RelayMutationTransactionCommitSuccessCallback, + }; + export type RelayMutationTransactionCommitFailureCallback = ( + transaction: RelayMutationTransaction, + preventAutoRollback: () => void, + ) => void; + export type RelayMutationTransactionCommitSuccessCallback = (response: { + [key: string]: Object, + }) => void; + export type NetworkLayer = { + sendMutation(request: RelayMutationRequest): Promise | void, + sendQueries(requests: Array): Promise | void, + supports(...options: Array): boolean, + }; + export type QueryResult = { + error?: Error | void, + ref_params?: {[name: string]: any} | void, + response: QueryPayload, + }; + export type ReadyState = { + aborted: boolean, + done: boolean, + error: Error | void, + events: Array, + ready: boolean, + stale: boolean, + }; + type RelayContainerErrorEventType = + | 'CACHE_RESTORE_FAILED' + | 'NETWORK_QUERY_ERROR'; + type RelayContainerLoadingEventType = + | 'ABORT' + | 'CACHE_RESTORED_REQUIRED' + | 'CACHE_RESTORE_START' + | 'NETWORK_QUERY_RECEIVED_ALL' + | 'NETWORK_QUERY_RECEIVED_REQUIRED' + | 'NETWORK_QUERY_START' + | 'STORE_FOUND_ALL' + | 'STORE_FOUND_REQUIRED'; + export type ReadyStateChangeCallback = (readyState: ReadyState) => void; + export type ReadyStateEvent = { + type: RelayContainerLoadingEventType | RelayContainerErrorEventType, + error?: Error, + }; + export type Abortable = { + abort(): void, + }; + + + // ~~~~~~~~~~~~~~~~~~~~~ + // RelayInternalTypes + /** + * Version: Relay 1.3.0 + * File: + * https://github.com/facebook/relay/blob/master/packages/react-relay/classic/tools/RelayInternalTypes.js + */ + // ~~~~~~~~~~~~~~~~~~~~~ + export type QueryPayload = {[key: string]: any}; + export type RelayQuerySet = {[queryName: string]: any}; + type RangeBehaviorsFunction = (connectionArgs: { + [argName: string]: any, + }) => 'APPEND' | 'IGNORE' | 'PREPEND' | 'REFETCH' | 'REMOVE'; + type RangeBehaviorsObject = { + [key: string]: 'APPEND' | 'IGNORE' | 'PREPEND' | 'REFETCH' | 'REMOVE'; + }; + export type RangeBehaviors = RangeBehaviorsFunction | RangeBehaviorsObject; + } + + + + +declare namespace __Relay.Runtime { + // ~~~~~~~~~~~~~~~~~~~~~ + // Maybe Fix + // ~~~~~~~~~~~~~~~~~~~~~ + type RelayDebugger = any; + type OptimisticUpdate = any; + type OperationSelector = Common.COperationSelector; + type Selector = Common.CSelector; + type PayloadData = any; + type Snapshot = Common.CSnapshot; + type RelayResponsePayload = any; + type MutableRecordSource = RecordSource; + + /** + * A function that returns an Observable representing the response of executing + * a GraphQL operation. + */ + type ExecuteFunction = ( + operation: Object, + variables: Common.Variables, + cacheConfig: Common.CacheConfig, + uploadables?: Common.UploadableMap | void, + ) => Promise; + type RelayNetwork = { + execute: ExecuteFunction, + }; + + // ~~~~~~~~~~~~~~~~~~~~~ + // RelayDefaultHandlerProvider + // ~~~~~~~~~~~~~~~~~~~~~ + type HandlerProvider = (name: string) => Common.Handler | void; + + // ~~~~~~~~~~~~~~~~~~~~~ + // RelayModernEnvironment + // ~~~~~~~~~~~~~~~~~~~~~ + type EnvironmentConfig = { + configName?: string, + handlerProvider?: HandlerProvider, + network: Network, + store: Store, + }; + class Environment { + constructor (config: EnvironmentConfig); + getStore(): Store; + getDebugger(): RelayDebugger; + applyUpdate(optimisticUpdate: OptimisticUpdate): Common.Disposable; + revertUpdate(update: OptimisticUpdate): void; + replaceUpdate(update: OptimisticUpdate, newUpdate: OptimisticUpdate): void; + applyMutation(config: { + operation: OperationSelector, + optimisticUpdater?: Common.SelectorStoreUpdater, + optimisticResponse?: Object, + }): Common.Disposable; + check(readSelector: Selector): boolean; + commitPayload( + operationSelector: OperationSelector, + payload: PayloadData, + ): void; + commitUpdate(updater: Common.StoreUpdater): void; + lookup(readSelector: Selector): Snapshot; + subscribe( + snapshot: Snapshot, + callback: (snapshot: Snapshot) => void, + ): Common.Disposable; + retain(selector: Selector): Common.Disposable; + execute(config: { + operation: OperationSelector, + cacheConfig?: Common.CacheConfig | void, + updater?: Common.SelectorStoreUpdater | void, + }): RelayObservable; + executeMutation(config: { + operation: OperationSelector, + optimisticUpdater?: Common.SelectorStoreUpdater | void, + optimisticResponse?: Object | void, + updater?: Common.SelectorStoreUpdater | void, + uploadables?: Common.UploadableMap | void, + }): RelayObservable; + } + + // ~~~~~~~~~~~~~~~~~~~~~ + // RelayInMemoryRecordSource + // ~~~~~~~~~~~~~~~~~~~~~ + type Record = {[key: string]: any}; + type RecordMap = {[dataID: string]: Record | void}; + + // ~~~~~~~~~~~~~~~~~~~~~ + // Network + // ~~~~~~~~~~~~~~~~~~~~~ + interface Network { + /** + * Creates an implementation of the `Network` interface defined in + * `RelayNetworkTypes` given `fetch` and `subscribe` functions. + */ + create: (fetchFn: any, subscribeFn: any) => RelayNetwork; + } + + // ~~~~~~~~~~~~~~~~~~~~~ + // Network + // ~~~~~~~~~~~~~~~~~~~~~ + class RecordSource { + constructor(records?: RecordMap); + clear(): void; + delete(dataID: Common.DataID): void; + get(dataID: Common.DataID): Record | void; + getRecordIDs(): Common.DataID[]; + getStatus(dataID: Common.DataID): 'EXISTENT' | 'NONEXISTENT' | 'UNKNOWN'; + has(dataID: Common.DataID): boolean; + load( + dataID: Common.DataID, + callback: (error: Error | void, record: Record | void) => void, + ): void; + remove(dataID: Common.DataID): void; + set(dataID: Common.DataID, record: Record): void; + size(): number; + toJSON(): RecordMap; + } + + // ~~~~~~~~~~~~~~~~~~~~~ + // ModernStore + // ~~~~~~~~~~~~~~~~~~~~~ + class Store { + constructor(source: RecordSource); + getSource(): MutableRecordSource; + check(selector: Selector): boolean; + retain(selector: Selector): Common.Disposable; + lookup(selector: Selector): Snapshot; + notify(): void; + publish(source: RecordSource): void; + subscribe( + snapshot: Snapshot, + callback: (snapshot: Snapshot) => void, + ): Common.Disposable; + } + + // ~~~~~~~~~~~~~~~~~~~~~ + // RelayRecordSourceInspector + // ~~~~~~~~~~~~~~~~~~~~~ + /** + * An internal class to provide a console-friendly string representation of a + * Record. + */ + class RecordSummary { + id: Common.DataID; + type: string | void; + static createFromRecord(id: Common.DataID, record: any): RecordSummary; + constructor(id: Common.DataID, type: string | void); + toString(): string; + } + /** + * Internal class for inspecting a single Record. + */ + class RecordInspector { + constructor(sourceInspector: RelayRecordSourceInspector, record: Record); + /** + * Get the cache id of the given record. For types that implement the `Node` + * interface (or that have an `id`) this will be `id`, for other types it will be + * a synthesized identifier based on the field path from the nearest ancestor + * record that does have an `id`. + */ + getDataID(): Common.DataID; + + /** + * Returns a list of the fields that have been fetched on the current record. + */ + getFields(): Array; + + /** + * Returns the type of the record. + */ + getType(): string; + + /** + * Returns a copy of the internal representation of the record. + */ + inspect(): any; + + /** + * Returns the value of a scalar field. May throw if the given field is + * present but not actually scalar. + */ + getValue(name: string, args?: Common.Variables | void): any; + + /** + * Returns an inspector for the given scalar "linked" field (a field whose + * value is another Record instead of a scalar). May throw if the field is + * present but not a scalar linked record. + */ + getLinkedRecord(name: string, args?: Common.Variables | void): RecordInspector | void; + + /** + * Returns an array of inspectors for the given plural "linked" field (a field + * whose value is an array of Records instead of a scalar). May throw if the + * field is present but not a plural linked record. + */ + getLinkedRecords(name: string, args?: Common.Variables | void): RecordInspector[] | void; + } + + class RelayRecordSourceInspector { + constructor(source: RecordSource); + static getForEnvironment(environment: Environment): RelayRecordSourceInspector; + /** + * Returns an inspector for the record with the given id, or null/undefined if + * that record is deleted/unfetched. + */ + get(dataID: Common.DataID): RecordInspector | void; + /** + * Returns a list of ": " for each record in the store that has an + * `id`. + */ + getNodes(): Array; + /** + * Returns a list of ": " for all records in the store including + * those that do not have an `id`. + */ + getRecords(): Array; + + /** + * Returns an inspector for the synthesized "root" object, allowing access to + * e.g. the `viewer` object or the results of other fields on the "Query" + * type. + */ + getRoot(): RecordInspector; + } + + + // ~~~~~~~~~~~~~~~~~~~~~ + // RelayObservable + // ~~~~~~~~~~~~~~~~~~~~~ + type Subscription = { + unsubscribe: () => void, + readonly closed: boolean, + }; + type Observer = { + start?: ((subscription: Subscription) => any) | void, + next?: ((nextThing: T) => any) | void, + error?: ((error: Error) => any) | void, + complete?: (() => any) | void, + unsubscribe?: ((subscription: Subscription) => any) | void, + }; + type Source = () => any; + interface Subscribable { + subscribe(observer: Observer): Subscription, + } + export type ObservableFromValue = RelayObservable | Promise | T; + class RelayObservable implements Subscribable { + _source: Source; + + constructor(source: Source); + + /** + * When an unhandled error is detected, it is reported to the host environment + * (the ESObservable spec refers to this method as "HostReportErrors()"). + * + * The default implementation in development builds re-throws errors in a + * separate frame, and from production builds does nothing (swallowing + * uncaught errors). + * + * Called during application initialization, this method allows + * application-specific handling of uncaught errors. Allowing, for example, + * integration with error logging or developer tools. + */ + static onUnhandledError(callback: (error: Error) => any): void; + + /** + * Accepts various kinds of data sources, and always returns a RelayObservable + * useful for accepting the result of a user-provided FetchFunction. + */ + static from(obj: ObservableFromValue): RelayObservable; + + /** + * Creates a RelayObservable, given a function which expects a legacy + * Relay Observer as the last argument and which returns a Disposable. + * + * To support migration to Observable, the function may ignore the + * legacy Relay observer and directly return an Observable instead. + */ + static fromLegacy( + callback: (legacyObserver: Common.LegacyObserver) => Common.Disposable | RelayObservable, + ): RelayObservable; + + /** + * Returns a new Observable which returns the same values as this one, but + * modified so that the provided Observer is called to perform a side-effects + * for all events emitted by the source. + * + * Any errors that are thrown in the side-effect Observer are unhandled, and + * do not affect the source Observable or its Observer. + * + * This is useful for when debugging your Observables or performing other + * side-effects such as logging or performance monitoring. + */ + do(observer: Observer): RelayObservable; + + /** + * Returns a new Observable which returns the same values as this one, but + * modified so that the finally callback is performed after completion, + * whether normal or due to error or unsubscription. + * + * This is useful for cleanup such as resource finalization. + */ + finally(fn: () => any): RelayObservable; + + /** + * Returns a new Observable which is identical to this one, unless this + * Observable completes before yielding any values, in which case the new + * Observable will yield the values from the alternate Observable. + * + * If this Observable does yield values, the alternate is never subscribed to. + * + * This is useful for scenarios where values may come from multiple sources + * which should be tried in order, i.e. from a cache before a network. + */ + ifEmpty(alternate: RelayObservable): RelayObservable; + + /** + * Observable's primary API: returns an unsubscribable Subscription to the + * source of this Observable. + */ + subscribe(observer: Observer): Subscription; + + /** + * Supports subscription of a legacy Relay Observer, returning a Disposable. + */ + subscribeLegacy(legacyObserver: Common.LegacyObserver): Common.Disposable; + + /** + * Returns a new Observerable where each value has been transformed by + * the mapping function. + */ + map(fn: (thing: T) => U): RelayObservable; + + /** + * Returns a new Observable where each value is replaced with a new Observable + * by the mapping function, the results of which returned as a single + * concattenated Observable. + */ + concatMap(fn: (thing: T) => ObservableFromValue): RelayObservable; + + /** + * Returns a new Observable which first mirrors this Observable, then when it + * completes, waits for `pollInterval` milliseconds before re-subscribing to + * this Observable again, looping in this manner until unsubscribed. + * + * The returned Observable never completes. + */ + poll(pollInterval: number): RelayObservable; + + /** + * Returns a Promise which resolves when this Observable yields a first value + * or when it completes with no value. + */ + toPromise(): Promise; + } + + + // ~~~~~~~~~~~~~~~~~~~~~ + // commitLocalUpdate + // ~~~~~~~~~~~~~~~~~~~~~ + // exposed through RelayModern, not Runtime directly + type commitLocalUpdate = ( + environment: Environment, + updater: Common.StoreUpdater, + ) => void; + + // ~~~~~~~~~~~~~~~~~~~~~ + // commitRelayModernMutation + // ~~~~~~~~~~~~~~~~~~~~~ + // exposed through RelayModern, not Runtime directly + type MutationConfig = { + configs?: Array, + mutation: Common.GraphQLTaggedNode, + variables: Common.Variables, + uploadables?: Common.UploadableMap, + onCompleted?: (response: T, errors: Array | void) => void, + onError?: (error?: Error) => void, + optimisticUpdater?: Common.SelectorStoreUpdater | void, + optimisticResponse?: Object, + updater?: Common.SelectorStoreUpdater | void, + }; + type commitRelayModernMutation = ( + environment: Environment, + config: MutationConfig, + ) => Common.Disposable; + + // ~~~~~~~~~~~~~~~~~~~~~ + // applyRelayModernOptimisticMutation + // ~~~~~~~~~~~~~~~~~~~~~ + // exposed through RelayModern, not Runtime directly + type OptimisticMutationConfig = { + configs?: Array, + mutation: Common.GraphQLTaggedNode, + variables: Common.Variables, + optimisticUpdater?: Common.SelectorStoreUpdater, + optimisticResponse?: Object, + }; + + // ~~~~~~~~~~~~~~~~~~~~~ + // fetchRelayModernQuery + // ~~~~~~~~~~~~~~~~~~~~~ + // exposed through RelayModern, not Runtime directly + /** + * A helper function to fetch the results of a query. Note that results for + * fragment spreads are masked: fields must be explicitly listed in the query in + * order to be accessible in the result object. + * + * NOTE: This module is primarily intended for integrating with classic APIs. + * Most product code should use a Renderer or Container. + * + * TODO(t16875667): The return type should be `Promise`, but + * that's not really helpful as `SelectorData` is essentially just `mixed`. We + * can probably leverage generated flow types here to return the real expected + * shape. + */ + function fetchRelayModernQuery( + environment: any, // FIXME - $FlowFixMe in facebook source code + taggedNode: Common.GraphQLTaggedNode, + variables: Common.Variables, + cacheConfig?: Common.CacheConfig | void, + ): Promise; // FIXME - $FlowFixMe in facebook source code + + + // ~~~~~~~~~~~~~~~~~~~~~ + // requestRelaySubscription + // ~~~~~~~~~~~~~~~~~~~~~ + // exposed through RelayModern, not Runtime directly + export type GraphQLSubscriptionConfig = { + configs?: Array, + subscription: Common.GraphQLTaggedNode, + variables: Common.Variables, + onCompleted?: () => void, + onError?: (error: Error) => void, + onNext?: (response: Object | void) => void, + updater?: (store: Common.RecordSourceSelectorProxy) => void, + }; + type requestRelaySubscription = ( + environment: Environment, + config: GraphQLSubscriptionConfig, + ) => Common.Disposable; + } + + declare module 'relay-runtime' { + export import Environment = __Relay.Runtime.Environment; + export import Network = __Relay.Runtime.Network; + export import RecordSource = __Relay.Runtime.RecordSource; + export import Store = __Relay.Runtime.Store; + export import Observable = __Relay.Runtime.RelayObservable; + // note RecordSourceInspector is only available in dev environment + export import RecordSourceInspector = __Relay.Runtime.RelayRecordSourceInspector; + } diff --git a/types/relay-runtime/tsconfig.json b/types/relay-runtime/tsconfig.json new file mode 100644 index 0000000000..8224ba918b --- /dev/null +++ b/types/relay-runtime/tsconfig.json @@ -0,0 +1,26 @@ +{ + "files": [ + "index.d.ts", + "relay-runtime-tests.tsx" + ], + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es6", + "dom" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "baseUrl": "../", + "jsx": "react", + "experimentalDecorators": true, + "forceConsistentCasingInFileNames": true, + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + } +} From ce1d72c1e6b606954f15dfa411d7d8e33130c06e Mon Sep 17 00:00:00 2001 From: voxmatt Date: Sun, 3 Sep 2017 12:38:59 -0700 Subject: [PATCH 011/506] removing reference path --- types/relay-runtime/index.d.ts | 2 -- 1 file changed, 2 deletions(-) diff --git a/types/relay-runtime/index.d.ts b/types/relay-runtime/index.d.ts index 7e57ef036b..961ff8b181 100644 --- a/types/relay-runtime/index.d.ts +++ b/types/relay-runtime/index.d.ts @@ -1,5 +1,3 @@ -/// - declare namespace __Relay.Common { /** * SOURCE: From 26b04cb2c68a685f6605965db941de0711a6d1fd Mon Sep 17 00:00:00 2001 From: voxmatt Date: Sun, 3 Sep 2017 12:39:58 -0700 Subject: [PATCH 012/506] adding info to top of relay-runtime definitions --- types/relay-runtime/index.d.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/types/relay-runtime/index.d.ts b/types/relay-runtime/index.d.ts index 961ff8b181..ee11757a25 100644 --- a/types/relay-runtime/index.d.ts +++ b/types/relay-runtime/index.d.ts @@ -1,3 +1,9 @@ +// Type definitions for react-relay 1.3.0 +// Project: https://github.com/facebook/relay +// Definitions by: Matt Martin +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.5 + declare namespace __Relay.Common { /** * SOURCE: From 21915dba1385a03531175945a7b7a5a9a5c68d9b Mon Sep 17 00:00:00 2001 From: voxmatt Date: Sun, 3 Sep 2017 12:52:17 -0700 Subject: [PATCH 013/506] adding new relay files but haven't configged file paths yet --- types/react-relay/index.d.ts | 268 +++++++++++++++++++++++++++++++- types/react-relay/tsconfig.json | 2 +- types/relay-runtime/index.d.ts | 2 +- 3 files changed, 267 insertions(+), 5 deletions(-) diff --git a/types/react-relay/index.d.ts b/types/react-relay/index.d.ts index 4f9f49e5e7..6bedf10030 100644 --- a/types/react-relay/index.d.ts +++ b/types/react-relay/index.d.ts @@ -1,10 +1,272 @@ -// Type definitions for react-relay 0.9.2 +// Type definitions for react-relay 1.3.0 // Project: https://github.com/facebook/relay // Definitions by: Johannes Schickling +// Matt Martin // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -// TypeScript Version: 2.3 +// TypeScript Version: 2.5 -declare module "react-relay" { +/// +/// + +//////////////////////////// +// RELAY MODERN TYPES +/////////////////////////// + +declare namespace __Relay.Modern { + // ~~~~~~~~~~~~~~~~~~~~~ + // Maybe Fix + // ~~~~~~~~~~~~~~~~~~~~~ + type ConcreteFragment = any; + type ConcreteBatch = any; + type ConcreteFragmentDefinition = Object; + type ConcreteOperationDefinition = Object; + type ReactBaseComponent = React.ComponentClass | React.StatelessComponent; + + // ~~~~~~~~~~~~~~~~~~~~~ + // RelayQL + // ~~~~~~~~~~~~~~~~~~~~~ + type RelayQL = ( + strings: Array, + ...substitutions: Array + ) => Common.RelayConcreteNode; + + // ~~~~~~~~~~~~~~~~~~~~~ + // RelayModernGraphQLTag + // ~~~~~~~~~~~~~~~~~~~~~ + type GeneratedNodeMap = {[key: string]: GraphQLTaggedNode}; + type GraphQLTaggedNode = + | (() => ConcreteFragment | ConcreteBatch) + | { + modern: () => ConcreteFragment | ConcreteBatch, + classic: (relayQL: RelayQL) => + | ConcreteFragmentDefinition + | ConcreteOperationDefinition, + }; + /** + * Runtime function to correspond to the `graphql` tagged template function. + * All calls to this function should be transformed by the plugin. + */ + function graphql(strings: Array): GraphQLTaggedNode; + + // ~~~~~~~~~~~~~~~~~~~~~ + // ReactRelayQueryRenderer + // ~~~~~~~~~~~~~~~~~~~~~ + type QueryRendererProps = { + cacheConfig?: __Relay.Common.CacheConfig | void, + environment: __Relay.Runtime.Environment | any, + query: GraphQLTaggedNode, + render: (readyState: ReadyState) => React.ReactElement | void, + variables: Common.Variables, + rerunParamExperimental?: Common.RerunParam, + }; + export type ReadyState = { + error: Error | void, + props: Object | void, + retry: (() => void) | void, + }; + type QueryRendererState = { + readyState: ReadyState, + }; + class ReactRelayQueryRenderer extends React.Component {} + + // ~~~~~~~~~~~~~~~~~~~~~ + // createFragmentContainer + // ~~~~~~~~~~~~~~~~~~~~~ + function createFragmentContainer( + Component: ReactBaseComponent, + fragmentSpec: GraphQLTaggedNode | GeneratedNodeMap, + ): ReactBaseComponent; + + // ~~~~~~~~~~~~~~~~~~~~~ + // createPaginationContainer + // ~~~~~~~~~~~~~~~~~~~~~ + type PageInfo = { + endCursor: string | void, + hasNextPage: boolean, + hasPreviousPage: boolean, + startCursor: string | void, + }; + type ConnectionData = { + edges?: any[], + pageInfo?: PageInfo | void, + }; + type FragmentVariablesGetter = ( + prevVars: Common.Variables, + totalCount: number, + ) => Common.Variables; + type ConnectionConfig = { + direction?: 'backward' | 'forward', + getConnectionFromProps?: (props: Object) => ConnectionData | void, + getFragmentVariables?: FragmentVariablesGetter, + getVariables: ( + props: Object, + paginationInfo: {count: number, cursor: string | void}, + fragmentVariables: Common.Variables, + ) => Common.Variables, + query: GraphQLTaggedNode, + }; + function createPaginationContainer( + Component: ReactBaseComponent, + fragmentSpec: GraphQLTaggedNode | GeneratedNodeMap, + connectionConfig: ConnectionConfig, + ): ReactBaseComponent; + + // ~~~~~~~~~~~~~~~~~~~~~ + // createFragmentContainer + // ~~~~~~~~~~~~~~~~~~~~~ + function createRefetchContainer( + Component: ReactBaseComponent, + fragmentSpec: GraphQLTaggedNode | GeneratedNodeMap, + taggedNode: GraphQLTaggedNode, + ): ReactBaseComponent; +} + + + +//////////////////////////// +// RELAY CLASSIC TYPES +/////////////////////////// +// note: the namespace here is really for use inside of +// relay-compat; the module declaration below +// uses the old, pre-existing types +declare namespace __Relay.Classic { + // ~~~~~~~~~~~~~~~~~~~~~ + // Maybe Fix + // ~~~~~~~~~~~~~~~~~~~~~ + type StoreReaderData = any; + type StoreReaderOptions = any; + type RelayStoreData = any; + type RelayQuery = { Fragment: any; Node: any; Root: any;}; + + // ~~~~~~~~~~~~~~~~~~~~~ + // Environment + // ~~~~~~~~~~~~~~~~~~~~~ + type FragmentResolver = { + dispose(): void, + resolve( + fragment: RelayQuery["Fragment"], + dataIDs: Common.DataID | Array, + ): (StoreReaderData | Array) | void, + }; + interface RelayEnvironmentInterface { + forceFetch( + querySet: Common.RelayQuerySet, + onReadyStateChange: Common.ReadyStateChangeCallback, + ): Common.Abortable, + getFragmentResolver( + fragment: RelayQuery["Fragment"], + onNext: () => void, + ): FragmentResolver, + getStoreData(): RelayStoreData, + primeCache( + querySet: Common.RelayQuerySet, + onReadyStateChange: Common.ReadyStateChangeCallback, + ): Common.Abortable, + read( + node: RelayQuery["Node"], + dataID: Common.DataID, + options?: StoreReaderOptions, + ): StoreReaderData | void, + readQuery( + root: RelayQuery["Root"], + options?: StoreReaderOptions, + ): Array | void, + } + } + +//////////////////////////// +// RELAY COMPAT TYPES +/////////////////////////// + +declare namespace __Relay.Compat { + // ~~~~~~~~~~~~~~~~~~~~~ + // Maybe Fix + // ~~~~~~~~~~~~~~~~~~~~~ + type ConcreteFragment = any; + type ConcreteBatch = any; + type ConcreteFragmentDefinition = Object; + type ConcreteOperationDefinition = Object; + + + // ~~~~~~~~~~~~~~~~~~~~~ + // Util + // ~~~~~~~~~~~~~~~~~~~~~ + type getFragment = (q: string, v?: Common.Variables) => string; + interface ComponentWithFragment extends React.ComponentClass { + getFragment: getFragment; + } + interface StatelessWithFragment extends React.StatelessComponent { + getFragment: getFragment; + } + type ReactFragmentComponent = ComponentWithFragment | StatelessWithFragment; + type ReactBaseComponent = React.ComponentClass | React.StatelessComponent; + type RelayClassicEnvironment = Classic.RelayEnvironmentInterface; + + // ~~~~~~~~~~~~~~~~~~~~~ + // RelayCompatTypes + // ~~~~~~~~~~~~~~~~~~~~~ + type CompatEnvironment = Runtime.Environment | RelayClassicEnvironment; + + // ~~~~~~~~~~~~~~~~~~~~~ + // RelayCompatMutations + // ~~~~~~~~~~~~~~~~~~~~~ + function commitUpdate( + environment: CompatEnvironment, + config: Runtime.MutationConfig, + ): Common.Disposable; + function applyUpdate( + environment: CompatEnvironment, + config: Runtime.OptimisticMutationConfig, + ): Common.Disposable; + + // ~~~~~~~~~~~~~~~~~~~~~ + // RelayCompatContainer + // ~~~~~~~~~~~~~~~~~~~~~ + export type GeneratedNodeMap = {[key: string]: Modern.GraphQLTaggedNode}; + function createContainer( + Component: ReactBaseComponent, + fragmentSpec: Modern.GraphQLTaggedNode | GeneratedNodeMap, + ): ReactFragmentComponent; + + // ~~~~~~~~~~~~~~~~~~~~~ + // injectDefaultVariablesProvider + // ~~~~~~~~~~~~~~~~~~~~~ + type VariablesProvider = () => Common.Variables; + function injectDefaultVariablesProvider(variablesProvider: VariablesProvider): void; +} + + +//////////////////////////// +// MODULES +/////////////////////////// + +declare module 'react-relay' { + export import QueryRenderer = __Relay.Modern.ReactRelayQueryRenderer; + export import createFragmentContainer = __Relay.Modern.createFragmentContainer; + export import createPaginationContainer = __Relay.Modern.createPaginationContainer; + export import createRefetchContainer = __Relay.Modern.createRefetchContainer; + export import graphql = __Relay.Modern.graphql; + + export import commitLocalUpdate = __Relay.Runtime.commitLocalUpdate; + export import commitMutation = __Relay.Runtime.commitRelayModernMutation; + export import fetchQuery = __Relay.Runtime.fetchRelayModernQuery; + export import requestSubscription = __Relay.Runtime.requestRelaySubscription; +} + +declare module 'react-relay/compat' { + export import applyOptimisticMutation = __Relay.Compat.applyUpdate; + export import commitMutation = __Relay.Compat.commitUpdate; + export import createFragmentContainer = __Relay.Compat.createContainer; + export import createPaginationContainer = __Relay.Compat.createContainer; + export import createRefetchContainer = __Relay.Compat.createContainer; + export import injectDefaultVariablesProvider = __Relay.Compat.injectDefaultVariablesProvider; + export import QueryRenderer = __Relay.Modern.ReactRelayQueryRenderer; + export import graphql = __Relay.Modern.graphql; + export import fetchQuery = __Relay.Runtime.fetchRelayModernQuery; + } + + +declare module "react-relay/classic" { import * as React from "react"; type ClientMutationID = string; diff --git a/types/react-relay/tsconfig.json b/types/react-relay/tsconfig.json index 90680fbafc..5d225c2016 100644 --- a/types/react-relay/tsconfig.json +++ b/types/react-relay/tsconfig.json @@ -21,4 +21,4 @@ "index.d.ts", "react-relay-tests.tsx" ] -} \ No newline at end of file +} diff --git a/types/relay-runtime/index.d.ts b/types/relay-runtime/index.d.ts index ee11757a25..848cf15927 100644 --- a/types/relay-runtime/index.d.ts +++ b/types/relay-runtime/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for react-relay 1.3.0 +// Type definitions for relay-runtime 1.3.0 // Project: https://github.com/facebook/relay // Definitions by: Matt Martin // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped From df16535a8cdb39ac8cd4a12424fad5ad74405d20 Mon Sep 17 00:00:00 2001 From: voxmatt Date: Sat, 9 Sep 2017 15:44:07 -1000 Subject: [PATCH 014/506] relay-runtime tests in place --- types/react-relay/index.d.ts | 46 +++++----- .../react-relay/react-relay-classic-tests.tsx | 92 +++++++++++++++++++ .../react-relay/react-relay-compat-tests.tsx | 0 types/react-relay/react-relay-tests.tsx | 92 ------------------- types/react-relay/tsconfig.json | 4 +- types/relay-runtime/index.d.ts | 57 +++++++++--- types/relay-runtime/relay-runtime-tests.tsx | 66 +++++++++++++ 7 files changed, 227 insertions(+), 130 deletions(-) create mode 100644 types/react-relay/react-relay-classic-tests.tsx create mode 100644 types/react-relay/react-relay-compat-tests.tsx create mode 100644 types/relay-runtime/relay-runtime-tests.tsx diff --git a/types/react-relay/index.d.ts b/types/react-relay/index.d.ts index 6bedf10030..2541d7aa20 100644 --- a/types/react-relay/index.d.ts +++ b/types/react-relay/index.d.ts @@ -25,10 +25,10 @@ declare namespace __Relay.Modern { // ~~~~~~~~~~~~~~~~~~~~~ // RelayQL // ~~~~~~~~~~~~~~~~~~~~~ - type RelayQL = ( + export function RelayQL( strings: Array, ...substitutions: Array - ) => Common.RelayConcreteNode; + ): Common.RelayConcreteNode; // ~~~~~~~~~~~~~~~~~~~~~ // RelayModernGraphQLTag @@ -38,7 +38,7 @@ declare namespace __Relay.Modern { | (() => ConcreteFragment | ConcreteBatch) | { modern: () => ConcreteFragment | ConcreteBatch, - classic: (relayQL: RelayQL) => + classic: (relayQL: typeof RelayQL) => | ConcreteFragmentDefinition | ConcreteOperationDefinition, }; @@ -46,7 +46,7 @@ declare namespace __Relay.Modern { * Runtime function to correspond to the `graphql` tagged template function. * All calls to this function should be transformed by the plugin. */ - function graphql(strings: Array): GraphQLTaggedNode; + function graphql(strings: Array | TemplateStringsArray): GraphQLTaggedNode; // ~~~~~~~~~~~~~~~~~~~~~ // ReactRelayQueryRenderer @@ -72,7 +72,7 @@ declare namespace __Relay.Modern { // ~~~~~~~~~~~~~~~~~~~~~ // createFragmentContainer // ~~~~~~~~~~~~~~~~~~~~~ - function createFragmentContainer( + export function createFragmentContainer( Component: ReactBaseComponent, fragmentSpec: GraphQLTaggedNode | GeneratedNodeMap, ): ReactBaseComponent; @@ -90,14 +90,14 @@ declare namespace __Relay.Modern { edges?: any[], pageInfo?: PageInfo | void, }; - type FragmentVariablesGetter = ( + export function FragmentVariablesGetter( prevVars: Common.Variables, totalCount: number, - ) => Common.Variables; + ): Common.Variables; type ConnectionConfig = { direction?: 'backward' | 'forward', getConnectionFromProps?: (props: Object) => ConnectionData | void, - getFragmentVariables?: FragmentVariablesGetter, + getFragmentVariables?: typeof FragmentVariablesGetter, getVariables: ( props: Object, paginationInfo: {count: number, cursor: string | void}, @@ -105,7 +105,7 @@ declare namespace __Relay.Modern { ) => Common.Variables, query: GraphQLTaggedNode, }; - function createPaginationContainer( + export function createPaginationContainer( Component: ReactBaseComponent, fragmentSpec: GraphQLTaggedNode | GeneratedNodeMap, connectionConfig: ConnectionConfig, @@ -114,7 +114,7 @@ declare namespace __Relay.Modern { // ~~~~~~~~~~~~~~~~~~~~~ // createFragmentContainer // ~~~~~~~~~~~~~~~~~~~~~ - function createRefetchContainer( + export function createRefetchContainer( Component: ReactBaseComponent, fragmentSpec: GraphQLTaggedNode | GeneratedNodeMap, taggedNode: GraphQLTaggedNode, @@ -191,30 +191,30 @@ declare namespace __Relay.Compat { // ~~~~~~~~~~~~~~~~~~~~~ // Util // ~~~~~~~~~~~~~~~~~~~~~ - type getFragment = (q: string, v?: Common.Variables) => string; + export function getFragment(q: string, v?: Common.Variables): string; interface ComponentWithFragment extends React.ComponentClass { - getFragment: getFragment; + getFragment: typeof getFragment; } interface StatelessWithFragment extends React.StatelessComponent { - getFragment: getFragment; + getFragment: typeof getFragment; } type ReactFragmentComponent = ComponentWithFragment | StatelessWithFragment; type ReactBaseComponent = React.ComponentClass | React.StatelessComponent; - type RelayClassicEnvironment = Classic.RelayEnvironmentInterface; + export type RelayClassicEnvironment = Classic.RelayEnvironmentInterface; // ~~~~~~~~~~~~~~~~~~~~~ // RelayCompatTypes // ~~~~~~~~~~~~~~~~~~~~~ - type CompatEnvironment = Runtime.Environment | RelayClassicEnvironment; + export type CompatEnvironment = Runtime.Environment | RelayClassicEnvironment; // ~~~~~~~~~~~~~~~~~~~~~ // RelayCompatMutations // ~~~~~~~~~~~~~~~~~~~~~ - function commitUpdate( + export function commitUpdate( environment: CompatEnvironment, config: Runtime.MutationConfig, ): Common.Disposable; - function applyUpdate( + export function applyUpdate( environment: CompatEnvironment, config: Runtime.OptimisticMutationConfig, ): Common.Disposable; @@ -223,7 +223,7 @@ declare namespace __Relay.Compat { // RelayCompatContainer // ~~~~~~~~~~~~~~~~~~~~~ export type GeneratedNodeMap = {[key: string]: Modern.GraphQLTaggedNode}; - function createContainer( + export function createContainer( Component: ReactBaseComponent, fragmentSpec: Modern.GraphQLTaggedNode | GeneratedNodeMap, ): ReactFragmentComponent; @@ -232,7 +232,7 @@ declare namespace __Relay.Compat { // injectDefaultVariablesProvider // ~~~~~~~~~~~~~~~~~~~~~ type VariablesProvider = () => Common.Variables; - function injectDefaultVariablesProvider(variablesProvider: VariablesProvider): void; + export function injectDefaultVariablesProvider(variablesProvider: VariablesProvider): void; } @@ -339,10 +339,10 @@ declare module "react-relay/classic" { supports(...options: string[]): boolean } - function createContainer(component: React.ComponentClass | React.StatelessComponent, params?: CreateContainerOpts): RelayContainerClass - function injectNetworkLayer(networkLayer: RelayNetworkLayer): any - function isContainer(component: React.ComponentClass): boolean - function QL(...args: any[]): string + export function createContainer(component: React.ComponentClass | React.StatelessComponent, params?: CreateContainerOpts): RelayContainerClass + export function injectNetworkLayer(networkLayer: RelayNetworkLayer): any + export function isContainer(component: React.ComponentClass): boolean + export function QL(...args: any[]): string class Route { constructor(params?: RelayVariables) diff --git a/types/react-relay/react-relay-classic-tests.tsx b/types/react-relay/react-relay-classic-tests.tsx new file mode 100644 index 0000000000..f231381817 --- /dev/null +++ b/types/react-relay/react-relay-classic-tests.tsx @@ -0,0 +1,92 @@ +import * as React from "react"; +import * as Relay from "react-relay/classic"; + +interface Props { + text: string + userId: string +} + +interface Response { +} + +export default class AddTweetMutation extends Relay.Mutation { + + getMutation () { + return Relay.QL`mutation{addTweet}` + } + + getFatQuery () { + return Relay.QL` + fragment on AddTweetPayload { + tweetEdge + user + } + ` + } + + getConfigs () { + return [{ + type: "RANGE_ADD", + parentName: "user", + parentID: this.props.userId, + connectionName: "tweets", + edgeName: "tweetEdge", + rangeBehaviors: { + "": "append", + }, + }] + } + + getVariables () { + return this.props + } +} + +interface ArtworkProps { + artwork: { + title: string + }, + relay: Relay.RelayProp, +} + +class Artwork extends React.Component { + render() { + return ( + + {this.props.artwork.title} + + ) + } +} + +const ArtworkContainer = Relay.createContainer(Artwork, { + fragments: { + artwork: () => Relay.QL` + fragment on Artwork { + title + } + ` + } +}) + +class StubbedArtwork extends React.Component { + render() { + const props = { + artwork: { title: "CHAMPAGNE FORMICA FLAG" }, + relay: { + route: { + name: "champagne" + }, + variables: { + artworkID: "champagne-formica-flag", + }, + setVariables: () => {}, + forceFetch: () => {}, + hasOptimisticUpdate: () => false, + getPendingTransactions: (): Relay.RelayMutationTransaction[] => undefined, + commitUpdate: () => {}, + } + } + return + } +} diff --git a/types/react-relay/react-relay-compat-tests.tsx b/types/react-relay/react-relay-compat-tests.tsx new file mode 100644 index 0000000000..e69de29bb2 diff --git a/types/react-relay/react-relay-tests.tsx b/types/react-relay/react-relay-tests.tsx index 90425156cc..e69de29bb2 100644 --- a/types/react-relay/react-relay-tests.tsx +++ b/types/react-relay/react-relay-tests.tsx @@ -1,92 +0,0 @@ -import * as React from "react" -import * as Relay from "react-relay" - -interface Props { - text: string - userId: string -} - -interface Response { -} - -export default class AddTweetMutation extends Relay.Mutation { - - getMutation () { - return Relay.QL`mutation{addTweet}` - } - - getFatQuery () { - return Relay.QL` - fragment on AddTweetPayload { - tweetEdge - user - } - ` - } - - getConfigs () { - return [{ - type: "RANGE_ADD", - parentName: "user", - parentID: this.props.userId, - connectionName: "tweets", - edgeName: "tweetEdge", - rangeBehaviors: { - "": "append", - }, - }] - } - - getVariables () { - return this.props - } -} - -interface ArtworkProps { - artwork: { - title: string - }, - relay: Relay.RelayProp, -} - -class Artwork extends React.Component { - render() { - return ( - - {this.props.artwork.title} - - ) - } -} - -const ArtworkContainer = Relay.createContainer(Artwork, { - fragments: { - artwork: () => Relay.QL` - fragment on Artwork { - title - } - ` - } -}) - -class StubbedArtwork extends React.Component { - render() { - const props = { - artwork: { title: "CHAMPAGNE FORMICA FLAG" }, - relay: { - route: { - name: "champagne" - }, - variables: { - artworkID: "champagne-formica-flag", - }, - setVariables: () => {}, - forceFetch: () => {}, - hasOptimisticUpdate: () => false, - getPendingTransactions: (): Relay.RelayMutationTransaction[] => undefined, - commitUpdate: () => {}, - } - } - return - } -} diff --git a/types/react-relay/tsconfig.json b/types/react-relay/tsconfig.json index 5d225c2016..825d91a0c2 100644 --- a/types/react-relay/tsconfig.json +++ b/types/react-relay/tsconfig.json @@ -19,6 +19,8 @@ }, "files": [ "index.d.ts", - "react-relay-tests.tsx" + "react-relay-tests.tsx", + "react-relay-classic-tests.tsx", + "react-relay-compat-tests.tsx" ] } diff --git a/types/relay-runtime/index.d.ts b/types/relay-runtime/index.d.ts index 848cf15927..b54688f080 100644 --- a/types/relay-runtime/index.d.ts +++ b/types/relay-runtime/index.d.ts @@ -27,6 +27,7 @@ declare namespace __Relay.Common { type ConcreteFragmentDefinition = Object; type ConcreteOperationDefinition = Object; + /** * FIXME: RelayContainer used to be typed with ReactClass, but * ReactClass is broken and allows for access to any property. For example @@ -83,6 +84,31 @@ declare namespace __Relay.Common { column: number, }>, }; + /** + * A function that executes a GraphQL operation with request/response semantics. + * + * May return an Observable or Promise of a raw server response. + */ + export function FetchFunction( + operation: ConcreteBatch, + variables: Variables, + cacheConfig: CacheConfig, + uploadables?: Common.UploadableMap, + ): Runtime.ObservableFromValue; + + /** + * A function that executes a GraphQL subscription operation, returning one or + * more raw server responses over time. + * + * May return an Observable, otherwise must call the callbacks found in the + * fourth parameter. + */ + export type SubscribeFunction = ( + operation: ConcreteBatch, + variables: Variables, + cacheConfig: CacheConfig, + observer: LegacyObserver, + ) => Runtime.RelayObservable | Disposable; // ~~~~~~~~~~~~~~~~~~~~~ @@ -166,10 +192,11 @@ declare namespace __Relay.Common { // handler. handleKey: string, }; - - export type Handler = { - update: (store: RecordSourceProxy, fieldPayload: HandleFieldPayload) => void, + interface IHandler { + update: (store: RecordSourceProxy, fieldPayload: HandleFieldPayload): void; + [functionName: string]: Function; }; + export const Handler: IHandler; // ~~~~~~~~~~~~~~~~~~~~~ @@ -685,14 +712,14 @@ declare namespace __Relay.Runtime { // ~~~~~~~~~~~~~~~~~~~~~ // RelayDefaultHandlerProvider // ~~~~~~~~~~~~~~~~~~~~~ - type HandlerProvider = (name: string) => Common.Handler | void; + export function HandlerProvider(name: string): Common.Handler | void; // ~~~~~~~~~~~~~~~~~~~~~ // RelayModernEnvironment // ~~~~~~~~~~~~~~~~~~~~~ type EnvironmentConfig = { configName?: string, - handlerProvider?: HandlerProvider, + handlerProvider?: typeof HandlerProvider, network: Network, store: Store, }; @@ -743,12 +770,12 @@ declare namespace __Relay.Runtime { // ~~~~~~~~~~~~~~~~~~~~~ // Network // ~~~~~~~~~~~~~~~~~~~~~ - interface Network { - /** - * Creates an implementation of the `Network` interface defined in - * `RelayNetworkTypes` given `fetch` and `subscribe` functions. - */ - create: (fetchFn: any, subscribeFn: any) => RelayNetwork; + class Network { + /** + * Creates an implementation of the `Network` interface defined in + * `RelayNetworkTypes` given `fetch` and `subscribe` functions. + */ + static create(fetchFn: typeof Common.FetchFunction, subscribeFn?: Common.SubscribeFunction): RelayNetwork; } // ~~~~~~~~~~~~~~~~~~~~~ @@ -898,7 +925,7 @@ declare namespace __Relay.Runtime { interface Subscribable { subscribe(observer: Observer): Subscription, } - export type ObservableFromValue = RelayObservable | Promise | T; + type ObservableFromValue = RelayObservable | Promise | T; class RelayObservable implements Subscribable { _source: Source; @@ -1034,10 +1061,10 @@ declare namespace __Relay.Runtime { optimisticResponse?: Object, updater?: Common.SelectorStoreUpdater | void, }; - type commitRelayModernMutation = ( + function commitRelayModernMutation( environment: Environment, config: MutationConfig, - ) => Common.Disposable; + ): Common.Disposable; // ~~~~~~~~~~~~~~~~~~~~~ // applyRelayModernOptimisticMutation @@ -1103,4 +1130,6 @@ declare namespace __Relay.Runtime { export import Observable = __Relay.Runtime.RelayObservable; // note RecordSourceInspector is only available in dev environment export import RecordSourceInspector = __Relay.Runtime.RelayRecordSourceInspector; + export import ConnectionHandler = __Relay.Common.Handler; + export import ViewerHandler = __Relay.Common.Handler; } diff --git a/types/relay-runtime/relay-runtime-tests.tsx b/types/relay-runtime/relay-runtime-tests.tsx new file mode 100644 index 0000000000..609399f079 --- /dev/null +++ b/types/relay-runtime/relay-runtime-tests.tsx @@ -0,0 +1,66 @@ +import { + Environment, + Network, + RecordSource, + Store, +} from 'relay-runtime'; + +const source = new RecordSource(); +const store = new Store(source); + +// ~~~~~~~~~~~~~~~~~~~~~ +// Network Layer +// ~~~~~~~~~~~~~~~~~~~~~ +// Define a function that fetches the results of an operation (query/mutation/etc) +// and returns its results as a Promise: +function fetchQuery( + operation: any, + variables: { [key: string]: string }, + cacheConfig: {}, +) { + return fetch('/graphql', { + method: 'POST', + headers: { + // Add authentication and other headers here + 'content-type': 'application/json' + }, + body: JSON.stringify({ + query: operation.text, // GraphQL text from input + variables, + }), + }).then(response => { + return response.json(); + }); +} + +// Create a network layer from the fetch function +const network = Network.create(fetchQuery); + +// ~~~~~~~~~~~~~~~~~~~~~ +// Environment +// ~~~~~~~~~~~~~~~~~~~~~ +const environment = new Environment({ + handlerProvider, // Can omit. + network, + store, +}); + +// ~~~~~~~~~~~~~~~~~~~~~ +// Handler Provider +// ~~~~~~~~~~~~~~~~~~~~~ + +import { + ConnectionHandler, + ViewerHandler, +} from 'relay-runtime'; + +function handlerProvider(handle: any) { + switch (handle) { + // Augment (or remove from) this list: + case 'connection': return ConnectionHandler; + case 'viewer': return ViewerHandler; + } + throw new Error( + `handlerProvider: No handler provided for ${handle}` + ); +} From 27b933935ee9924870bde294dd259d0e58107d1a Mon Sep 17 00:00:00 2001 From: voxmatt Date: Sat, 9 Sep 2017 17:13:12 -1000 Subject: [PATCH 015/506] complete set of relay modern tests --- types/react-relay/index.d.ts | 52 +++- types/react-relay/react-relay-tests.tsx | 350 ++++++++++++++++++++++++ types/relay-runtime/index.d.ts | 48 ++-- 3 files changed, 425 insertions(+), 25 deletions(-) diff --git a/types/react-relay/index.d.ts b/types/react-relay/index.d.ts index 2541d7aa20..3b073666f9 100644 --- a/types/react-relay/index.d.ts +++ b/types/react-relay/index.d.ts @@ -22,6 +22,14 @@ declare namespace __Relay.Modern { type ConcreteOperationDefinition = Object; type ReactBaseComponent = React.ComponentClass | React.StatelessComponent; + // ~~~~~~~~~~~~~~~~~~~~~ + // RelayProp + // ~~~~~~~~~~~~~~~~~~~~~ + // note: refetch and pagination containers augment this + export type RelayProp = { + environment: Runtime.Environment, + }; + // ~~~~~~~~~~~~~~~~~~~~~ // RelayQL // ~~~~~~~~~~~~~~~~~~~~~ @@ -46,14 +54,18 @@ declare namespace __Relay.Modern { * Runtime function to correspond to the `graphql` tagged template function. * All calls to this function should be transformed by the plugin. */ - function graphql(strings: Array | TemplateStringsArray): GraphQLTaggedNode; + interface IGraphql { + (strings: Array | TemplateStringsArray): GraphQLTaggedNode; + experimental: (strings: Array | TemplateStringsArray) => GraphQLTaggedNode; + } + export const graphql: IGraphql; // ~~~~~~~~~~~~~~~~~~~~~ // ReactRelayQueryRenderer // ~~~~~~~~~~~~~~~~~~~~~ type QueryRendererProps = { cacheConfig?: __Relay.Common.CacheConfig | void, - environment: __Relay.Runtime.Environment | any, + environment: __Relay.Runtime.Environment, query: GraphQLTaggedNode, render: (readyState: ReadyState) => React.ReactElement | void, variables: Common.Variables, @@ -61,7 +73,7 @@ declare namespace __Relay.Modern { }; export type ReadyState = { error: Error | void, - props: Object | void, + props: { [propName: string]: any } | void, retry: (() => void) | void, }; type QueryRendererState = { @@ -90,6 +102,20 @@ declare namespace __Relay.Modern { edges?: any[], pageInfo?: PageInfo | void, }; + export type RelayPaginationProp = RelayProp & { + hasMore: () => boolean, + isLoading: () => boolean, + loadMore: ( + pageSize: number, + callback: (error?: Error) => void, + options?: RefetchOptions, + ) => Common.Disposable | void, + refetchConnection: ( + totalCount: number, + callback: (error?: Error | void) => void, + refetchVariables?: Common.Variables | void, + ) => Common.Disposable | void, + }; export function FragmentVariablesGetter( prevVars: Common.Variables, totalCount: number, @@ -114,11 +140,26 @@ declare namespace __Relay.Modern { // ~~~~~~~~~~~~~~~~~~~~~ // createFragmentContainer // ~~~~~~~~~~~~~~~~~~~~~ + export type RefetchOptions = { + force?: boolean, + rerunParamExperimental?: Common.RerunParam, + }; + export type RelayRefetchProp = RelayProp & { + refetch: ( + refetchVariables: Common.Variables | ((fragmentVariables: Common.Variables) => Common.Variables), + renderVariables: Common.Variables | void, + callback?: (error: Error | void) => void, + options?: RefetchOptions, + ) => Common.Disposable, + }; export function createRefetchContainer( Component: ReactBaseComponent, fragmentSpec: GraphQLTaggedNode | GeneratedNodeMap, taggedNode: GraphQLTaggedNode, ): ReactBaseComponent; + + + } @@ -251,6 +292,11 @@ declare module 'react-relay' { export import commitMutation = __Relay.Runtime.commitRelayModernMutation; export import fetchQuery = __Relay.Runtime.fetchRelayModernQuery; export import requestSubscription = __Relay.Runtime.requestRelaySubscription; + + // exported for convenience — not exports in the original module + export import RelayProp = __Relay.Modern.RelayProp; + export import RelayPaginationProp = __Relay.Modern.RelayPaginationProp; + export import RelayRefetchProp = __Relay.Modern.RelayRefetchProp; } declare module 'react-relay/compat' { diff --git a/types/react-relay/react-relay-tests.tsx b/types/react-relay/react-relay-tests.tsx index e69de29bb2..fb70b04118 100644 --- a/types/react-relay/react-relay-tests.tsx +++ b/types/react-relay/react-relay-tests.tsx @@ -0,0 +1,350 @@ +import * as React from "react"; +import { + Environment, + Network, + RecordSource, + Store, + ConnectionHandler, +} from 'relay-runtime'; +import { + graphql, + commitMutation, + createFragmentContainer, + createPaginationContainer, + createRefetchContainer, + requestSubscription, + QueryRenderer, + RelayPaginationProp, + RelayRefetchProp +} from "react-relay"; + + +//////////////////////////// +// ENVIRONMENT +/////////////////////////// +let network: __Relay.Runtime.RelayNetwork; +const source = new RecordSource(); +const store = new Store(source); +const modernEnvironment = new Environment({ network, store }); + + +//////////////////////////// +// QUERY RENDERER +/////////////////////////// +const MyQueryRenderer = (props: { name: string}) => ( + { + if (error) { + return
{error.message}
; + } else if (props) { + return
{props.name} is great!
; + } + return
Loading
; + }} + /> +); + +//////////////////////////// +// FRAGMENT CONTAINER +/////////////////////////// +const MyFragmentContainer = createFragmentContainer( + class TodoListView extends React.Component { + render() { + return
; + } + }, + { + item: graphql` + fragment TodoItem_item on Todo { + text + isComplete + } + `, + } +); + + +//////////////////////////// +// REFETCH CONTAINER +/////////////////////////// +interface IStory { id: string } +interface IFeedStoriesProps { + relay: RelayRefetchProp; + feed: { + stories: { edges: { node: IStory }[] } + } +} +class Story extends React.Component<{ story: IStory }, {}> {} +class FeedStories extends React.Component { + render() { + return ( +
+ {this.props.feed.stories.edges.map( + edge => + )} +
+ ); + } + + _loadMore() { + // Increments the number of stories being rendered by 10. + const refetchVariables = (fragmentVariables: {count: number }) => ({ + count: fragmentVariables.count + 10, + }); + this.props.relay.refetch(refetchVariables, null); + } + } + +const FeedRefetchContainer = createRefetchContainer( + FeedStories, + { + feed: graphql.experimental` + fragment FeedStories_feed on Feed + @argumentDefinitions( + count: {type: "Int", defaultValue: 10} + ) { + stories(first: $count) { + edges { + node { + id + ...Story_story + } + } + } + } + ` + }, + graphql.experimental` + query FeedStoriesRefetchQuery($count: Int) { + feed { + ...FeedStories_feed @arguments(count: $count) + } + } + `, + ); + + + +//////////////////////////// +// PAGINATION CONTAINER +/////////////////////////// +interface IFeedProps { + user: { feed: { edges: { node: IStory}[]}} + relay: RelayPaginationProp; +} +class Feed extends React.Component { + render() { + return (
+ {this.props.user.feed.edges.map( + edge => + )} +
); + } + + _loadMore() { + if (!this.props.relay.hasMore() || this.props.relay.isLoading()) { + return; + } + + this.props.relay.loadMore( + 10, // Fetch the next 10 feed items + e => { + console.log(e); + }, + ); + } +} + +const FeedPaginationContainer = createPaginationContainer( + Feed, + { + user: graphql` + fragment Feed_user on User { + feed( + first: $count + after: $cursor + orderby: $orderBy # other variables + ) @connection(key: "Feed_feed") { + edges { + node { + id + ...Story_story + } + } + } + } + `, + }, + { + direction: 'forward', + getConnectionFromProps(props: { user: {feed: any}}) { + return props.user && props.user.feed; + }, + getFragmentVariables(prevVars, totalCount) { + return { + ...prevVars, + count: totalCount, + }; + }, + getVariables(props, {count, cursor}, fragmentVariables) { + return { + count, + cursor, + // in most cases, for variables other than connection filters like + // `first`, `after`, etc. you may want to use the previous values. + orderBy: fragmentVariables.orderBy, + }; + }, + query: graphql` + query FeedPaginationQuery( + $count: Int! + $cursor: String + $orderby: String! + ) { + user { + # You could reference the fragment defined previously. + ...Feed_user + } + } + ` + } +); + + +//////////////////////////// +// MUTATIONS +/////////////////////////// + +const mutation = graphql` +mutation MarkReadNotificationMutation( + $input: MarkReadNotificationData! +) { + markReadNotification(data: $input) { + notification { + seenState + } + } +} +`; + +const optimisticResponse = { + markReadNotification: { + notification: { + seenState: 'SEEN', + }, + }, +}; + +const configs = [{ + type: 'NODE_DELETE' as 'NODE_DELETE', + deletedIDFieldName: 'destroyedShipId', +}, { + type: 'RANGE_ADD' as 'RANGE_ADD', + parentID: 'shipId', + connectionInfo: [{ + key: 'AddShip_ships', + rangeBehavior: 'append', + }], + edgeName: 'newShipEdge', +}, { + type: 'RANGE_DELETE' as 'RANGE_DELETE', + parentID: 'todoId', + connectionKeys: [{ + key: 'RemoveTags_tags', + rangeBehavior: 'append', + }], + pathToConnection: ['todo', 'tags'], + deletedIDFieldName: 'removedTagId' +}]; + +function markNotificationAsRead(source: string, storyID: string) { + const variables = { + input: { + source, + storyID, + }, + }; + + commitMutation( + modernEnvironment, + { + configs, + mutation, + optimisticResponse, + variables, + onCompleted: (response, errors) => { + console.log('Response received from server.') + }, + onError: err => console.error(err), + }, + ); +} + + + +//////////////////////////// +// SUBSCRIPTIONS +/////////////////////////// + +const subscription = graphql` + subscription MarkReadNotificationSubscription( + $storyID: ID! + ) { + markReadNotification(storyID: $storyID) { + notification { + seenState + } + } + } +`; + +const variables = { + storyID: '123', +}; + +requestSubscription( + modernEnvironment, // see Environment docs + { + subscription, + variables, + // optional but recommended: + onCompleted: () => {}, + onError: error => console.error(error), + // example of a custom updater + updater: store => { + // Get the notification + const rootField = store.getRootField('markReadNotification'); + const notification = !!rootField && rootField.getLinkedRecord('notification'); + // Add it to a connection + const viewer = store.getRoot().getLinkedRecord('viewer'); + const notifications = + ConnectionHandler.getConnection(viewer, 'notifications'); + const edge = ConnectionHandler.createEdge( + store, + notifications, + notification, + '', + ); + ConnectionHandler.insertEdgeAfter(notifications, edge); + }, + } +); diff --git a/types/relay-runtime/index.d.ts b/types/relay-runtime/index.d.ts index b54688f080..cc60e34add 100644 --- a/types/relay-runtime/index.d.ts +++ b/types/relay-runtime/index.d.ts @@ -193,9 +193,9 @@ declare namespace __Relay.Common { handleKey: string, }; interface IHandler { - update: (store: RecordSourceProxy, fieldPayload: HandleFieldPayload): void; + update: (store: RecordSourceProxy, fieldPayload: HandleFieldPayload) => void; [functionName: string]: Function; - }; + } export const Handler: IHandler; @@ -566,48 +566,52 @@ declare namespace __Relay.Common { import: string, max_runs: number, }; - - export type RelayMutationConfig = - | { + interface FIELDS_CHANGE { type: 'FIELDS_CHANGE', fieldIDs: {[fieldName: string]: DataID | Array}, - } - | { + } + interface RANGE_ADD { type: 'RANGE_ADD', parentName?: string, parentID?: string, connectionInfo?: Array<{ - key: string, - filters?: Variables, - rangeBehavior: string, + key: string, + filters?: Variables, + rangeBehavior: string, }>, connectionName?: string, edgeName: string, rangeBehaviors?: RangeBehaviors, - } - | { + } + interface NODE_DELETE { type: 'NODE_DELETE', parentName?: string, parentID?: string, connectionName?: string, deletedIDFieldName: string, - } - | { + } + interface RANGE_DELETE { type: 'RANGE_DELETE', parentName?: string, parentID?: string, connectionKeys?: Array<{ - key: string, - filters?: Variables, + key: string, + filters?: Variables, }>, connectionName?: string, deletedIDFieldName: string | Array, pathToConnection: Array, - } - | { + } + interface REQUIRED_CHILDREN { type: 'REQUIRED_CHILDREN', children: Array, - }; + } + export type RelayMutationConfig = + FIELDS_CHANGE | + RANGE_ADD | + NODE_DELETE | + RANGE_DELETE | + REQUIRED_CHILDREN; export type RelayMutationTransactionCommitCallbacks = { onFailure?: RelayMutationTransactionCommitFailureCallback, @@ -712,7 +716,7 @@ declare namespace __Relay.Runtime { // ~~~~~~~~~~~~~~~~~~~~~ // RelayDefaultHandlerProvider // ~~~~~~~~~~~~~~~~~~~~~ - export function HandlerProvider(name: string): Common.Handler | void; + export function HandlerProvider(name: string): typeof Common.Handler | void; // ~~~~~~~~~~~~~~~~~~~~~ // RelayModernEnvironment @@ -1116,10 +1120,10 @@ declare namespace __Relay.Runtime { onNext?: (response: Object | void) => void, updater?: (store: Common.RecordSourceSelectorProxy) => void, }; - type requestRelaySubscription = ( + export function requestRelaySubscription( environment: Environment, config: GraphQLSubscriptionConfig, - ) => Common.Disposable; + ): Common.Disposable; } declare module 'relay-runtime' { From 99e85e6f62166d61e6b5e113a3e9f87be04fbe0a Mon Sep 17 00:00:00 2001 From: voxmatt Date: Sat, 9 Sep 2017 17:17:54 -1000 Subject: [PATCH 016/506] apparently DT only allows one test file per directory --- .../react-relay/react-relay-classic-tests.tsx | 92 ----------- .../react-relay/react-relay-compat-tests.tsx | 0 types/react-relay/react-relay-tests.tsx | 153 +++++++++++++++--- 3 files changed, 127 insertions(+), 118 deletions(-) delete mode 100644 types/react-relay/react-relay-classic-tests.tsx delete mode 100644 types/react-relay/react-relay-compat-tests.tsx diff --git a/types/react-relay/react-relay-classic-tests.tsx b/types/react-relay/react-relay-classic-tests.tsx deleted file mode 100644 index f231381817..0000000000 --- a/types/react-relay/react-relay-classic-tests.tsx +++ /dev/null @@ -1,92 +0,0 @@ -import * as React from "react"; -import * as Relay from "react-relay/classic"; - -interface Props { - text: string - userId: string -} - -interface Response { -} - -export default class AddTweetMutation extends Relay.Mutation { - - getMutation () { - return Relay.QL`mutation{addTweet}` - } - - getFatQuery () { - return Relay.QL` - fragment on AddTweetPayload { - tweetEdge - user - } - ` - } - - getConfigs () { - return [{ - type: "RANGE_ADD", - parentName: "user", - parentID: this.props.userId, - connectionName: "tweets", - edgeName: "tweetEdge", - rangeBehaviors: { - "": "append", - }, - }] - } - - getVariables () { - return this.props - } -} - -interface ArtworkProps { - artwork: { - title: string - }, - relay: Relay.RelayProp, -} - -class Artwork extends React.Component { - render() { - return ( - - {this.props.artwork.title} - - ) - } -} - -const ArtworkContainer = Relay.createContainer(Artwork, { - fragments: { - artwork: () => Relay.QL` - fragment on Artwork { - title - } - ` - } -}) - -class StubbedArtwork extends React.Component { - render() { - const props = { - artwork: { title: "CHAMPAGNE FORMICA FLAG" }, - relay: { - route: { - name: "champagne" - }, - variables: { - artworkID: "champagne-formica-flag", - }, - setVariables: () => {}, - forceFetch: () => {}, - hasOptimisticUpdate: () => false, - getPendingTransactions: (): Relay.RelayMutationTransaction[] => undefined, - commitUpdate: () => {}, - } - } - return - } -} diff --git a/types/react-relay/react-relay-compat-tests.tsx b/types/react-relay/react-relay-compat-tests.tsx deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/types/react-relay/react-relay-tests.tsx b/types/react-relay/react-relay-tests.tsx index fb70b04118..86ec270627 100644 --- a/types/react-relay/react-relay-tests.tsx +++ b/types/react-relay/react-relay-tests.tsx @@ -6,6 +6,13 @@ import { Store, ConnectionHandler, } from 'relay-runtime'; + + + + +//////////////////////////// +// RELAY MODERN TESTS +/////////////////////////// import { graphql, commitMutation, @@ -19,18 +26,18 @@ import { } from "react-relay"; -//////////////////////////// -// ENVIRONMENT -/////////////////////////// +// ~~~~~~~~~~~~~~~~~~~~~ +// Modern Environment +// ~~~~~~~~~~~~~~~~~~~~~ let network: __Relay.Runtime.RelayNetwork; const source = new RecordSource(); const store = new Store(source); const modernEnvironment = new Environment({ network, store }); -//////////////////////////// -// QUERY RENDERER -/////////////////////////// +// ~~~~~~~~~~~~~~~~~~~~~ +// Modern QueryRenderer +// ~~~~~~~~~~~~~~~~~~~~~ const MyQueryRenderer = (props: { name: string}) => ( ( /> ); -//////////////////////////// -// FRAGMENT CONTAINER -/////////////////////////// +// ~~~~~~~~~~~~~~~~~~~~~ +// Modern FragmentContainer +// ~~~~~~~~~~~~~~~~~~~~~ const MyFragmentContainer = createFragmentContainer( class TodoListView extends React.Component { render() { @@ -75,9 +82,9 @@ const MyFragmentContainer = createFragmentContainer( ); -//////////////////////////// -// REFETCH CONTAINER -/////////////////////////// +// ~~~~~~~~~~~~~~~~~~~~~ +// Modern RefetchContainer +// ~~~~~~~~~~~~~~~~~~~~~ interface IStory { id: string } interface IFeedStoriesProps { relay: RelayRefetchProp; @@ -140,9 +147,9 @@ const FeedRefetchContainer = createRefetchContainer( -//////////////////////////// -// PAGINATION CONTAINER -/////////////////////////// +// ~~~~~~~~~~~~~~~~~~~~~ +// Modern PaginationContainer +// ~~~~~~~~~~~~~~~~~~~~~ interface IFeedProps { user: { feed: { edges: { node: IStory}[]}} relay: RelayPaginationProp; @@ -230,10 +237,9 @@ const FeedPaginationContainer = createPaginationContainer( ); -//////////////////////////// -// MUTATIONS -/////////////////////////// - +// ~~~~~~~~~~~~~~~~~~~~~ +// Modern Mutations +// ~~~~~~~~~~~~~~~~~~~~~ const mutation = graphql` mutation MarkReadNotificationMutation( $input: MarkReadNotificationData! @@ -300,11 +306,9 @@ function markNotificationAsRead(source: string, storyID: string) { } - -//////////////////////////// -// SUBSCRIPTIONS -/////////////////////////// - +// ~~~~~~~~~~~~~~~~~~~~~ +// Modern Subscriptions +// ~~~~~~~~~~~~~~~~~~~~~ const subscription = graphql` subscription MarkReadNotificationSubscription( $storyID: ID! @@ -316,11 +320,9 @@ const subscription = graphql` } } `; - const variables = { storyID: '123', }; - requestSubscription( modernEnvironment, // see Environment docs { @@ -348,3 +350,102 @@ requestSubscription( }, } ); + + + + +//////////////////////////// +// RELAY-CLASSIC TESTS +/////////////////////////// + +import * as Relay from "react-relay/classic"; + +interface Props { + text: string + userId: string +} + +interface Response { +} + +export default class AddTweetMutation extends Relay.Mutation { + + getMutation () { + return Relay.QL`mutation{addTweet}` + } + + getFatQuery () { + return Relay.QL` + fragment on AddTweetPayload { + tweetEdge + user + } + ` + } + + getConfigs () { + return [{ + type: "RANGE_ADD", + parentName: "user", + parentID: this.props.userId, + connectionName: "tweets", + edgeName: "tweetEdge", + rangeBehaviors: { + "": "append", + }, + }] + } + + getVariables () { + return this.props + } +} + +interface ArtworkProps { + artwork: { + title: string + }, + relay: Relay.RelayProp, +} + +class Artwork extends React.Component { + render() { + return ( + + {this.props.artwork.title} + + ) + } +} + +const ArtworkContainer = Relay.createContainer(Artwork, { + fragments: { + artwork: () => Relay.QL` + fragment on Artwork { + title + } + ` + } +}) + +class StubbedArtwork extends React.Component { + render() { + const props = { + artwork: { title: "CHAMPAGNE FORMICA FLAG" }, + relay: { + route: { + name: "champagne" + }, + variables: { + artworkID: "champagne-formica-flag", + }, + setVariables: () => {}, + forceFetch: () => {}, + hasOptimisticUpdate: () => false, + getPendingTransactions: (): Relay.RelayMutationTransaction[] => undefined, + commitUpdate: () => {}, + } + } + return + } +} From 80d08efbc7ae438d8774fce275dd9ee071ea26b8 Mon Sep 17 00:00:00 2001 From: voxmatt Date: Sat, 9 Sep 2017 17:22:01 -1000 Subject: [PATCH 017/506] updating tsconfig --- types/react-relay/tsconfig.json | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/types/react-relay/tsconfig.json b/types/react-relay/tsconfig.json index 825d91a0c2..5d225c2016 100644 --- a/types/react-relay/tsconfig.json +++ b/types/react-relay/tsconfig.json @@ -19,8 +19,6 @@ }, "files": [ "index.d.ts", - "react-relay-tests.tsx", - "react-relay-classic-tests.tsx", - "react-relay-compat-tests.tsx" + "react-relay-tests.tsx" ] } From 4a30f049202025b0bc1ed28857015dd91dbab261 Mon Sep 17 00:00:00 2001 From: voxmatt Date: Sat, 9 Sep 2017 17:31:16 -1000 Subject: [PATCH 018/506] removing Object and trying to eliminate unnecessary Function usage --- types/react-relay/index.d.ts | 12 ++++++------ types/relay-runtime/index.d.ts | 22 +++++++++++----------- 2 files changed, 17 insertions(+), 17 deletions(-) diff --git a/types/react-relay/index.d.ts b/types/react-relay/index.d.ts index 3b073666f9..072496d849 100644 --- a/types/react-relay/index.d.ts +++ b/types/react-relay/index.d.ts @@ -18,8 +18,8 @@ declare namespace __Relay.Modern { // ~~~~~~~~~~~~~~~~~~~~~ type ConcreteFragment = any; type ConcreteBatch = any; - type ConcreteFragmentDefinition = Object; - type ConcreteOperationDefinition = Object; + type ConcreteFragmentDefinition = object; + type ConcreteOperationDefinition = object; type ReactBaseComponent = React.ComponentClass | React.StatelessComponent; // ~~~~~~~~~~~~~~~~~~~~~ @@ -122,10 +122,10 @@ declare namespace __Relay.Modern { ): Common.Variables; type ConnectionConfig = { direction?: 'backward' | 'forward', - getConnectionFromProps?: (props: Object) => ConnectionData | void, + getConnectionFromProps?: (props: object) => ConnectionData | void, getFragmentVariables?: typeof FragmentVariablesGetter, getVariables: ( - props: Object, + props: {[propName: string]: any }, paginationInfo: {count: number, cursor: string | void}, fragmentVariables: Common.Variables, ) => Common.Variables, @@ -225,8 +225,8 @@ declare namespace __Relay.Compat { // ~~~~~~~~~~~~~~~~~~~~~ type ConcreteFragment = any; type ConcreteBatch = any; - type ConcreteFragmentDefinition = Object; - type ConcreteOperationDefinition = Object; + type ConcreteFragmentDefinition = object; + type ConcreteOperationDefinition = object; // ~~~~~~~~~~~~~~~~~~~~~ diff --git a/types/relay-runtime/index.d.ts b/types/relay-runtime/index.d.ts index cc60e34add..09c456b980 100644 --- a/types/relay-runtime/index.d.ts +++ b/types/relay-runtime/index.d.ts @@ -24,8 +24,8 @@ declare namespace __Relay.Common { type RelayQueryRequest = any; type ConcreteFragment = any; type ConcreteBatch = any; - type ConcreteFragmentDefinition = Object; - type ConcreteOperationDefinition = Object; + type ConcreteFragmentDefinition = object; + type ConcreteOperationDefinition = object; /** @@ -622,7 +622,7 @@ declare namespace __Relay.Common { preventAutoRollback: () => void, ) => void; export type RelayMutationTransactionCommitSuccessCallback = (response: { - [key: string]: Object, + [key: string]: any, }) => void; export type NetworkLayer = { sendMutation(request: RelayMutationRequest): Promise | void, @@ -693,9 +693,9 @@ declare namespace __Relay.Runtime { type RelayDebugger = any; type OptimisticUpdate = any; type OperationSelector = Common.COperationSelector; - type Selector = Common.CSelector; + type Selector = Common.CSelector; type PayloadData = any; - type Snapshot = Common.CSnapshot; + type Snapshot = Common.CSnapshot; type RelayResponsePayload = any; type MutableRecordSource = RecordSource; @@ -704,7 +704,7 @@ declare namespace __Relay.Runtime { * a GraphQL operation. */ type ExecuteFunction = ( - operation: Object, + operation: object, variables: Common.Variables, cacheConfig: Common.CacheConfig, uploadables?: Common.UploadableMap | void, @@ -737,7 +737,7 @@ declare namespace __Relay.Runtime { applyMutation(config: { operation: OperationSelector, optimisticUpdater?: Common.SelectorStoreUpdater, - optimisticResponse?: Object, + optimisticResponse?: object, }): Common.Disposable; check(readSelector: Selector): boolean; commitPayload( @@ -759,7 +759,7 @@ declare namespace __Relay.Runtime { executeMutation(config: { operation: OperationSelector, optimisticUpdater?: Common.SelectorStoreUpdater | void, - optimisticResponse?: Object | void, + optimisticResponse?: object | void, updater?: Common.SelectorStoreUpdater | void, uploadables?: Common.UploadableMap | void, }): RelayObservable; @@ -1062,7 +1062,7 @@ declare namespace __Relay.Runtime { onCompleted?: (response: T, errors: Array | void) => void, onError?: (error?: Error) => void, optimisticUpdater?: Common.SelectorStoreUpdater | void, - optimisticResponse?: Object, + optimisticResponse?: object, updater?: Common.SelectorStoreUpdater | void, }; function commitRelayModernMutation( @@ -1079,7 +1079,7 @@ declare namespace __Relay.Runtime { mutation: Common.GraphQLTaggedNode, variables: Common.Variables, optimisticUpdater?: Common.SelectorStoreUpdater, - optimisticResponse?: Object, + optimisticResponse?: object, }; // ~~~~~~~~~~~~~~~~~~~~~ @@ -1117,7 +1117,7 @@ declare namespace __Relay.Runtime { variables: Common.Variables, onCompleted?: () => void, onError?: (error: Error) => void, - onNext?: (response: Object | void) => void, + onNext?: (response: object | void) => void, updater?: (store: Common.RecordSourceSelectorProxy) => void, }; export function requestRelaySubscription( From b6a411db2a68e170d7c9467218b0cae582a0fffd Mon Sep 17 00:00:00 2001 From: voxmatt Date: Sat, 9 Sep 2017 17:45:37 -1000 Subject: [PATCH 019/506] moving things inline with the dt generator script and downgrading typescript version to acceptable 2.4 --- types/react-relay/index.d.ts | 5 ++--- types/react-relay/tsconfig.json | 2 +- types/react-relay/tslint.json | 1 + types/relay-runtime/index.d.ts | 2 +- types/relay-runtime/tsconfig.json | 15 +++++++-------- types/relay-runtime/tslint.json | 1 + 6 files changed, 13 insertions(+), 13 deletions(-) create mode 100644 types/react-relay/tslint.json create mode 100644 types/relay-runtime/tslint.json diff --git a/types/react-relay/index.d.ts b/types/react-relay/index.d.ts index 072496d849..de3def9a00 100644 --- a/types/react-relay/index.d.ts +++ b/types/react-relay/index.d.ts @@ -1,9 +1,8 @@ // Type definitions for react-relay 1.3.0 // Project: https://github.com/facebook/relay -// Definitions by: Johannes Schickling -// Matt Martin +// Definitions by: Johannes Schickling , Matt Martin // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -// TypeScript Version: 2.5 +// TypeScript Version: 2.4 /// /// diff --git a/types/react-relay/tsconfig.json b/types/react-relay/tsconfig.json index 5d225c2016..9cabc08c4a 100644 --- a/types/react-relay/tsconfig.json +++ b/types/react-relay/tsconfig.json @@ -7,7 +7,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" diff --git a/types/react-relay/tslint.json b/types/react-relay/tslint.json new file mode 100644 index 0000000000..3db14f85ea --- /dev/null +++ b/types/react-relay/tslint.json @@ -0,0 +1 @@ +{ "extends": "dtslint/dt.json" } diff --git a/types/relay-runtime/index.d.ts b/types/relay-runtime/index.d.ts index 09c456b980..5e86ed0681 100644 --- a/types/relay-runtime/index.d.ts +++ b/types/relay-runtime/index.d.ts @@ -2,7 +2,7 @@ // Project: https://github.com/facebook/relay // Definitions by: Matt Martin // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -// TypeScript Version: 2.5 +// TypeScript Version: 2.4 declare namespace __Relay.Common { /** diff --git a/types/relay-runtime/tsconfig.json b/types/relay-runtime/tsconfig.json index 8224ba918b..dd77fca0e4 100644 --- a/types/relay-runtime/tsconfig.json +++ b/types/relay-runtime/tsconfig.json @@ -1,8 +1,4 @@ { - "files": [ - "index.d.ts", - "relay-runtime-tests.tsx" - ], "compilerOptions": { "module": "commonjs", "lib": [ @@ -13,14 +9,17 @@ "noImplicitThis": true, "strictNullChecks": true, "baseUrl": "../", - "jsx": "react", - "experimentalDecorators": true, - "forceConsistentCasingInFileNames": true, "typeRoots": [ "../" ], "types": [], "noEmit": true, + "jsx": "react", + "experimentalDecorators": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts", + "relay-runtime-tests.tsx" + ] } diff --git a/types/relay-runtime/tslint.json b/types/relay-runtime/tslint.json new file mode 100644 index 0000000000..3db14f85ea --- /dev/null +++ b/types/relay-runtime/tslint.json @@ -0,0 +1 @@ +{ "extends": "dtslint/dt.json" } From 7f407c876e5c01bc293493bc78004215bb0eb106 Mon Sep 17 00:00:00 2001 From: voxmatt Date: Sat, 9 Sep 2017 17:51:02 -1000 Subject: [PATCH 020/506] fixing a couple errors --- types/react-relay/index.d.ts | 2 +- types/react-relay/react-relay-tests.tsx | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/types/react-relay/index.d.ts b/types/react-relay/index.d.ts index de3def9a00..a165229584 100644 --- a/types/react-relay/index.d.ts +++ b/types/react-relay/index.d.ts @@ -146,7 +146,7 @@ declare namespace __Relay.Modern { export type RelayRefetchProp = RelayProp & { refetch: ( refetchVariables: Common.Variables | ((fragmentVariables: Common.Variables) => Common.Variables), - renderVariables: Common.Variables | void, + renderVariables?: Common.Variables, callback?: (error: Error | void) => void, options?: RefetchOptions, ) => Common.Disposable, diff --git a/types/react-relay/react-relay-tests.tsx b/types/react-relay/react-relay-tests.tsx index 86ec270627..2b76bc7860 100644 --- a/types/react-relay/react-relay-tests.tsx +++ b/types/react-relay/react-relay-tests.tsx @@ -29,7 +29,7 @@ import { // ~~~~~~~~~~~~~~~~~~~~~ // Modern Environment // ~~~~~~~~~~~~~~~~~~~~~ -let network: __Relay.Runtime.RelayNetwork; +const network = {} as __Relay.Runtime.RelayNetwork; const source = new RecordSource(); const store = new Store(source); const modernEnvironment = new Environment({ network, store }); @@ -113,7 +113,7 @@ class FeedStories extends React.Component { const refetchVariables = (fragmentVariables: {count: number }) => ({ count: fragmentVariables.count + 10, }); - this.props.relay.refetch(refetchVariables, null); + this.props.relay.refetch(refetchVariables); } } @@ -442,7 +442,7 @@ class StubbedArtwork extends React.Component { setVariables: () => {}, forceFetch: () => {}, hasOptimisticUpdate: () => false, - getPendingTransactions: (): Relay.RelayMutationTransaction[] => undefined, + getPendingTransactions: (): any => undefined, commitUpdate: () => {}, } } From 068231de36daefce9e14e7a3110e2eaf14ab3d08 Mon Sep 17 00:00:00 2001 From: voxmatt Date: Sun, 10 Sep 2017 09:47:01 -1000 Subject: [PATCH 021/506] working my way through relay-runtime linting errors --- types/relay-runtime/index.d.ts | 2234 ++++++++++++++++---------------- 1 file changed, 1117 insertions(+), 1117 deletions(-) diff --git a/types/relay-runtime/index.d.ts b/types/relay-runtime/index.d.ts index 5e86ed0681..80ea0dcdea 100644 --- a/types/relay-runtime/index.d.ts +++ b/types/relay-runtime/index.d.ts @@ -4,1129 +4,1129 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.4 -declare namespace __Relay.Common { - /** - * SOURCE: - * Relay 1.3.0 - * https://github.com/facebook/relay/blob/b85a1d69bb72be4ace67179f55c2a54a8d761c8b/packages/react-relay/classic/environment/RelayCombinedEnvironmentTypes.js - */ - // ~~~~~~~~~~~~~~~~~~~~~ - // Util - // ~~~~~~~~~~~~~~~~~~~~~ - type Maybe = T | void; +declare namespace __Relay { + namespace Common { - // ~~~~~~~~~~~~~~~~~~~~~ - // Maybe Fix - // ~~~~~~~~~~~~~~~~~~~~~ - type RelayConcreteNode = any; - type RelayMutationTransaction = any; - type RelayMutationRequest = any; - type RelayQueryRequest = any; - type ConcreteFragment = any; - type ConcreteBatch = any; - type ConcreteFragmentDefinition = object; - type ConcreteOperationDefinition = object; - - - /** - * FIXME: RelayContainer used to be typed with ReactClass, but - * ReactClass is broken and allows for access to any property. For example - * ReactClass.getFragment('foo') is valid even though ReactClass has no - * such getFragment() type definition. When ReactClass is fixed this causes a - * lot of errors in Relay code since methods like getFragment() are used often - * but have no definition in Relay's types. Suppressing for now. - */ - export type RelayContainer = any; - // ~~~~~~~~~~~~~~~~~~~~~ - // RelayQL - // ~~~~~~~~~~~~~~~~~~~~~ - type RelayQL = ( - strings: Array, - ...substitutions: Array - ) => Common.RelayConcreteNode; - - // ~~~~~~~~~~~~~~~~~~~~~ - // RelayModernGraphQLTag - // ~~~~~~~~~~~~~~~~~~~~~ - type GeneratedNodeMap = {[key: string]: GraphQLTaggedNode}; - type GraphQLTaggedNode = - (() => ConcreteFragment | ConcreteBatch) | - { - modern: () => ConcreteFragment | ConcreteBatch, - classic: (relayQL: RelayQL) => - | ConcreteFragmentDefinition - | ConcreteOperationDefinition, - }; - // ~~~~~~~~~~~~~~~~~~~~~ - // General Usage - // ~~~~~~~~~~~~~~~~~~~~~ - export type DataID = string; - export type Variables = {[name: string]: any}; - export type Uploadable = File | Blob; - export type UploadableMap = {[key: string]: Uploadable}; - - - // ~~~~~~~~~~~~~~~~~~~~~ - // RelayNetworkTypes - // Version: Relay 1.3.0 - // File: https://github.com/facebook/relay/blob/master/packages/relay-runtime/network/RelayNetworkTypes.js - // ~~~~~~~~~~~~~~~~~~~~~ - - export type LegacyObserver = { - onCompleted?: (() => void) | void, - onError?: ((error: Error) => void) | void, - onNext?: ((data: T) => void) | void, - }; - export type PayloadError = { - message: string, - locations?: Array<{ - line: number, - column: number, - }>, - }; - /** - * A function that executes a GraphQL operation with request/response semantics. - * - * May return an Observable or Promise of a raw server response. - */ - export function FetchFunction( - operation: ConcreteBatch, - variables: Variables, - cacheConfig: CacheConfig, - uploadables?: Common.UploadableMap, - ): Runtime.ObservableFromValue; - - /** - * A function that executes a GraphQL subscription operation, returning one or - * more raw server responses over time. - * - * May return an Observable, otherwise must call the callbacks found in the - * fourth parameter. - */ - export type SubscribeFunction = ( - operation: ConcreteBatch, - variables: Variables, - cacheConfig: CacheConfig, - observer: LegacyObserver, - ) => Runtime.RelayObservable | Disposable; - - - // ~~~~~~~~~~~~~~~~~~~~~ - // RelayStoreTypes - // Version: Relay 1.3.0 - // File: https://github.com/facebook/relay/blob/master/packages/relay-runtime/store/RelayStoreTypes.js - // ~~~~~~~~~~~~~~~~~~~~~ - /** - * A function that receives a proxy over the store and may trigger side-effects - * (indirectly) by calling `set*` methods on the store or its record proxies. - */ - export type StoreUpdater = (store: RecordSourceProxy) => void; - - /** - * Similar to StoreUpdater, but accepts a proxy tied to a specific selector in - * order to easily access the root fields of a query/mutation as well as a - * second argument of the response object of the mutation. - */ - export type SelectorStoreUpdater = ( - store: RecordSourceSelectorProxy, - // Actually RelayCombinedEnvironmentTypes#SelectorData, but mixed is - // inconvenient to access deeply in product code. - data: any, // FLOW FIXME - ) => void; - - /** - * Extends the RecordSourceProxy interface with methods for accessing the root - * fields of a Selector. - */ - export interface RecordSourceSelectorProxy { - create(dataID: DataID, typeName: string): RecordProxy, - delete(dataID: DataID): void, - get(dataID: DataID): RecordProxy | void, - getRoot(): RecordProxy, - getRootField(fieldName: string): RecordProxy | void, - getPluralRootField(fieldName: string): RecordProxy[] | void, - } - - export interface RecordProxy { - copyFieldsFrom(source: RecordProxy): void, - getDataID(): DataID, - getLinkedRecord(name: string, args?: Variables | void): RecordProxy | void, - getLinkedRecords(name: string, args?: Variables | void): (RecordProxy | void)[] | void, - getOrCreateLinkedRecord( - name: string, - typeName: string, - args?: Variables | void, - ): RecordProxy, - getType(): string, - getValue(name: string, args?: Variables | void): any, - setLinkedRecord( - record: RecordProxy, - name: string, - args?: Variables | void, - ): RecordProxy, - setLinkedRecords( - records: (RecordProxy | void)[] | void, - name: string, - args?: Variables | void, - ): RecordProxy, - setValue(value: any, name: string, args?: Variables | void): RecordProxy, - } - - export interface RecordSourceProxy { - create(dataID: DataID, typeName: string): RecordProxy, - delete(dataID: DataID): void, - get(dataID: DataID): (RecordProxy | void)[] | void, - getRoot(): RecordProxy, - } - - export type HandleFieldPayload = { - // The arguments that were fetched. - args: Variables, - // The __id of the record containing the source/handle field. - dataID: DataID, - // The (storage) key at which the original server data was written. - fieldKey: string, - // The name of the handle. - handle: string, - // The (storage) key at which the handle's data should be written by the - // handler. - handleKey: string, - }; - interface IHandler { - update: (store: RecordSourceProxy, fieldPayload: HandleFieldPayload) => void; - [functionName: string]: Function; - } - export const Handler: IHandler; - - - // ~~~~~~~~~~~~~~~~~~~~~ - // RelayCombinedEnvironmentTypes - // Version: Relay 1.3.0 - // File: https://github.com/facebook/relay/blob/b85a1d69bb72be4ace67179f55c2a54a8d761c8b/packages/react-relay/classic/environment/RelayCombinedEnvironmentTypes.js - // ~~~~~~~~~~~~~~~~~~~~~ - /** - * Settings for how a query response may be cached. - * - * - `force`: causes a query to be issued unconditionally, irrespective of the - * state of any configured response cache. - * - `poll`: causes a query to live update by polling at the specified interval - in milliseconds. (This value will be passed to setTimeout.) - */ - export type CacheConfig = { - force?: boolean | void, - poll?: number | void, - }; - - /** - * Represents any resource that must be explicitly disposed of. The most common - * use-case is as a return value for subscriptions, where calling `dispose()` - * would cancel the subscription. - */ - export type Disposable = { - dispose(): void, - }; - - - /** - * Arbitrary data e.g. received by a container as props. - */ - export type Props = {[key: string]: any}; - - /* - * An individual cached graph object. - */ - export type Record = {[key: string]: any}; - - /** - * A collection of records keyed by id. - */ - export type RecordMap = {[dataID: string]: Record | void}; - - /** - * A selector defines the starting point for a traversal into the graph for the - * purposes of targeting a subgraph. - */ - export type CSelector = { - dataID: DataID, - node: TNode, - variables: Variables, - }; - - /** - * A representation of a selector and its results at a particular point in time. - */ - export type CSnapshot = CSelector & { - data: SelectorData | void, - seenRecords: RecordMap, - }; - - /** - * The results of a selector given a store/RecordSource. - */ - export type SelectorData = {[key: string]: any}; - - /** - * The results of reading the results of a FragmentMap given some input - * `Props`. - */ - export type FragmentSpecResults = {[key: string]: any}; - - /** - * A utility for resolving and subscribing to the results of a fragment spec - * (key -> fragment mapping) given some "props" that determine the root ID - * and variables to use when reading each fragment. When props are changed via - * `setProps()`, the resolver will update its results and subscriptions - * accordingly. Internally, the resolver: - * - Converts the fragment map & props map into a map of `Selector`s. - * - Removes any resolvers for any props that became null. - * - Creates resolvers for any props that became non-null. - * - Updates resolvers with the latest props. - */ - export interface FragmentSpecResolver { - /** - * Stop watching for changes to the results of the fragments. - */ - dispose(): void, - - /** - * Get the current results. - */ - resolve(): FragmentSpecResults, - - /** - * Update the resolver with new inputs. Call `resolve()` to get the updated - * results. - */ - setProps(props: Props): void, - - /** - * Override the variables used to read the results of the fragments. Call - * `resolve()` to get the updated results. - */ - setVariables(variables: Variables): void, - } - - export type CFragmentMap = {[key: string]: TFragment}; - - /** - * An operation selector describes a specific instance of a GraphQL operation - * with variables applied. - * - * - `root`: a selector intended for processing server results or retaining - * response data in the store. - * - `fragment`: a selector intended for use in reading or subscribing to - * the results of the the operation. - */ - export type COperationSelector = { - fragment: CSelector, - node: TOperation, - root: CSelector, - variables: Variables, - }; - - /** - * The public API of Relay core. Represents an encapsulated environment with its - * own in-memory cache. - */ - export interface CEnvironment< - TEnvironment, - TFragment, - TGraphQLTaggedNode, - TNode, - TOperation, - TPayload, - > { - /** - * Read the results of a selector from in-memory records in the store. - */ - lookup(selector: CSelector): CSnapshot, - - /** - * Subscribe to changes to the results of a selector. The callback is called - * when data has been committed to the store that would cause the results of - * the snapshot's selector to change. - */ - subscribe( - snapshot: CSnapshot, - callback: (snapshot: CSnapshot) => void, - ): Disposable, - - /** - * Ensure that all the records necessary to fulfill the given selector are - * retained in-memory. The records will not be eligible for garbage collection - * until the returned reference is disposed. - * - * Note: This is a no-op in the classic core. - */ - retain(selector: CSelector): Disposable, - - /** - * Send a query to the server with request/response semantics: the query will - * either complete successfully (calling `onNext` and `onCompleted`) or fail - * (calling `onError`). - * - * Note: Most applications should use `streamQuery` in order to - * optionally receive updated information over time, should that feature be - * supported by the network/server. A good rule of thumb is to use this method - * if you would otherwise immediately dispose the `streamQuery()` - * after receving the first `onNext` result. - */ - sendQuery(config: { - cacheConfig?: CacheConfig | void, - onCompleted?: Maybe<() => void>, - onError?: Maybe<(error: Error) => void>, - onNext?: Maybe<(payload: TPayload) => void>, - operation: COperationSelector, - }): Disposable, - - /** - * Send a query to the server with request/subscription semantics: one or more - * responses may be returned (via `onNext`) over time followed by either - * the request completing (`onCompleted`) or an error (`onError`). - * - * Networks/servers that support subscriptions may choose to hold the - * subscription open indefinitely such that `onCompleted` is not called. - */ - streamQuery(config: { - cacheConfig?: Maybe, - onCompleted?: Maybe<() => void>, - onError?: Maybe<(error: Error) => void>, - onNext?: Maybe<(payload: TPayload) => void>, - operation: COperationSelector, - }): Disposable, - - unstable_internal: CUnstableEnvironmentCore< - TEnvironment, - TFragment, - TGraphQLTaggedNode, - TNode, - TOperation - >, - } - - export interface CUnstableEnvironmentCore< - TEnvironment, - TFragment, - TGraphQLTaggedNode, - TNode, - TOperation, - > { - /** - * Create an instance of a FragmentSpecResolver. - * - * TODO: The FragmentSpecResolver *can* be implemented via the other methods - * defined here, so this could be moved out of core. It's convenient to have - * separate implementations until the experimental core is in OSS. - */ - createFragmentSpecResolver: ( - context: CRelayContext, - containerName: string, - fragments: CFragmentMap, - props: Props, - callback: () => void, - ) => FragmentSpecResolver, - - /** - * Creates an instance of an OperationSelector given an operation definition - * (see `getOperation`) and the variables to apply. The input variables are - * filtered to exclude variables that do not matche defined arguments on the - * operation, and default values are populated for null values. - */ - createOperationSelector: ( - operation: TOperation, - variables: Variables, - ) => COperationSelector, - - /** - * Given a graphql`...` tagged template, extract a fragment definition usable - * by this version of Relay core. Throws if the value is not a fragment. - */ - getFragment: (node: TGraphQLTaggedNode) => TFragment, - - /** - * Given a graphql`...` tagged template, extract an operation definition - * usable by this version of Relay core. Throws if the value is not an - * operation. - */ - getOperation: (node: TGraphQLTaggedNode) => TOperation, - - /** - * Determine if two selectors are equal (represent the same selection). Note - * that this function returns `false` when the two queries/fragments are - * different objects, even if they select the same fields. - */ - areEqualSelectors: (a: CSelector, b: CSelector) => boolean, - - /** - * Given the result `item` from a parent that fetched `fragment`, creates a - * selector that can be used to read the results of that fragment for that item. - * - * Example: - * - * Given two fragments as follows: - * - * ``` - * fragment Parent on User { - * id - * ...Child - * } - * fragment Child on User { - * name - * } - * ``` - * - * And given some object `parent` that is the results of `Parent` for id "4", - * the results of `Child` can be accessed by first getting a selector and then - * using that selector to `lookup()` the results against the environment: - * - * ``` - * const childSelector = getSelector(queryVariables, Child, parent); - * const childData = environment.lookup(childSelector).data; - * ``` - */ - getSelector: ( - operationVariables: Variables, - fragment: TFragment, - prop: any, - ) => CSelector | void, - - /** - * Given the result `items` from a parent that fetched `fragment`, creates a - * selector that can be used to read the results of that fragment on those - * items. This is similar to `getSelector` but for "plural" fragments that - * expect an array of results and therefore return an array of selectors. - */ - getSelectorList: ( - operationVariables: Variables, - fragment: TFragment, - props: Array, - ) => Array> | void, - - /** - * Given a mapping of keys -> results and a mapping of keys -> fragments, - * extracts the selectors for those fragments from the results. - * - * The canonical use-case for this function are Relay Containers, which - * use this function to convert (props, fragments) into selectors so that they - * can read the results to pass to the inner component. - */ - getSelectorsFromObject: ( - operationVariables: Variables, - fragments: CFragmentMap, - props: Props, - ) => {[key: string]: Maybe<(CSelector | Array>)>}, - - /** - * Given a mapping of keys -> results and a mapping of keys -> fragments, - * extracts a mapping of keys -> id(s) of the results. - * - * Similar to `getSelectorsFromObject()`, this function can be useful in - * determining the "identity" of the props passed to a component. - */ - getDataIDsFromObject: ( - fragments: CFragmentMap, - props: Props, - ) => {[key: string]: Maybe<(DataID | Array)>}, - - /** - * Given a mapping of keys -> results and a mapping of keys -> fragments, - * extracts the merged variables that would be in scope for those - * fragments/results. - * - * This can be useful in determing what varaibles were used to fetch the data - * for a Relay container, for example. - */ - getVariablesFromObject: ( - operationVariables: Variables, - fragments: CFragmentMap, - props: Props, - ) => Variables, - } - - /** - * The type of the `relay` property set on React context by the React/Relay - * integration layer (e.g. QueryRenderer, FragmentContainer, etc). - */ - export type CRelayContext = { - environment: TEnvironment, - variables: Variables, - }; - - - // ~~~~~~~~~~~~~~~~~~~~~ - // RelayTypes - /** - * Version: Relay 1.3.0 - * File: - * https://github.com/facebook/relay/blob/fa9f48ea209ee2402d433b59a84d1cbc046574e2/packages/react-relay/classic/tools/RelayTypes.js - */ - // ~~~~~~~~~~~~~~~~~~~~~ - export type RerunParam = { - param: string, - import: string, - max_runs: number, - }; - interface FIELDS_CHANGE { - type: 'FIELDS_CHANGE', - fieldIDs: {[fieldName: string]: DataID | Array}, - } - interface RANGE_ADD { - type: 'RANGE_ADD', - parentName?: string, - parentID?: string, - connectionInfo?: Array<{ - key: string, - filters?: Variables, - rangeBehavior: string, - }>, - connectionName?: string, - edgeName: string, - rangeBehaviors?: RangeBehaviors, - } - interface NODE_DELETE { - type: 'NODE_DELETE', - parentName?: string, - parentID?: string, - connectionName?: string, - deletedIDFieldName: string, - } - interface RANGE_DELETE { - type: 'RANGE_DELETE', - parentName?: string, - parentID?: string, - connectionKeys?: Array<{ - key: string, - filters?: Variables, - }>, - connectionName?: string, - deletedIDFieldName: string | Array, - pathToConnection: Array, - } - interface REQUIRED_CHILDREN { - type: 'REQUIRED_CHILDREN', - children: Array, - } - export type RelayMutationConfig = - FIELDS_CHANGE | - RANGE_ADD | - NODE_DELETE | - RANGE_DELETE | - REQUIRED_CHILDREN; - - export type RelayMutationTransactionCommitCallbacks = { - onFailure?: RelayMutationTransactionCommitFailureCallback, - onSuccess?: RelayMutationTransactionCommitSuccessCallback, - }; - export type RelayMutationTransactionCommitFailureCallback = ( - transaction: RelayMutationTransaction, - preventAutoRollback: () => void, - ) => void; - export type RelayMutationTransactionCommitSuccessCallback = (response: { - [key: string]: any, - }) => void; - export type NetworkLayer = { - sendMutation(request: RelayMutationRequest): Promise | void, - sendQueries(requests: Array): Promise | void, - supports(...options: Array): boolean, - }; - export type QueryResult = { - error?: Error | void, - ref_params?: {[name: string]: any} | void, - response: QueryPayload, - }; - export type ReadyState = { - aborted: boolean, - done: boolean, - error: Error | void, - events: Array, - ready: boolean, - stale: boolean, - }; - type RelayContainerErrorEventType = - | 'CACHE_RESTORE_FAILED' - | 'NETWORK_QUERY_ERROR'; - type RelayContainerLoadingEventType = - | 'ABORT' - | 'CACHE_RESTORED_REQUIRED' - | 'CACHE_RESTORE_START' - | 'NETWORK_QUERY_RECEIVED_ALL' - | 'NETWORK_QUERY_RECEIVED_REQUIRED' - | 'NETWORK_QUERY_START' - | 'STORE_FOUND_ALL' - | 'STORE_FOUND_REQUIRED'; - export type ReadyStateChangeCallback = (readyState: ReadyState) => void; - export type ReadyStateEvent = { - type: RelayContainerLoadingEventType | RelayContainerErrorEventType, - error?: Error, - }; - export type Abortable = { - abort(): void, - }; - - - // ~~~~~~~~~~~~~~~~~~~~~ - // RelayInternalTypes - /** - * Version: Relay 1.3.0 - * File: - * https://github.com/facebook/relay/blob/master/packages/react-relay/classic/tools/RelayInternalTypes.js - */ - // ~~~~~~~~~~~~~~~~~~~~~ - export type QueryPayload = {[key: string]: any}; - export type RelayQuerySet = {[queryName: string]: any}; - type RangeBehaviorsFunction = (connectionArgs: { - [argName: string]: any, - }) => 'APPEND' | 'IGNORE' | 'PREPEND' | 'REFETCH' | 'REMOVE'; - type RangeBehaviorsObject = { - [key: string]: 'APPEND' | 'IGNORE' | 'PREPEND' | 'REFETCH' | 'REMOVE'; - }; - export type RangeBehaviors = RangeBehaviorsFunction | RangeBehaviorsObject; - } - - - - -declare namespace __Relay.Runtime { - // ~~~~~~~~~~~~~~~~~~~~~ - // Maybe Fix - // ~~~~~~~~~~~~~~~~~~~~~ - type RelayDebugger = any; - type OptimisticUpdate = any; - type OperationSelector = Common.COperationSelector; - type Selector = Common.CSelector; - type PayloadData = any; - type Snapshot = Common.CSnapshot; - type RelayResponsePayload = any; - type MutableRecordSource = RecordSource; - - /** - * A function that returns an Observable representing the response of executing - * a GraphQL operation. - */ - type ExecuteFunction = ( - operation: object, - variables: Common.Variables, - cacheConfig: Common.CacheConfig, - uploadables?: Common.UploadableMap | void, - ) => Promise; - type RelayNetwork = { - execute: ExecuteFunction, - }; - - // ~~~~~~~~~~~~~~~~~~~~~ - // RelayDefaultHandlerProvider - // ~~~~~~~~~~~~~~~~~~~~~ - export function HandlerProvider(name: string): typeof Common.Handler | void; - - // ~~~~~~~~~~~~~~~~~~~~~ - // RelayModernEnvironment - // ~~~~~~~~~~~~~~~~~~~~~ - type EnvironmentConfig = { - configName?: string, - handlerProvider?: typeof HandlerProvider, - network: Network, - store: Store, - }; - class Environment { - constructor (config: EnvironmentConfig); - getStore(): Store; - getDebugger(): RelayDebugger; - applyUpdate(optimisticUpdate: OptimisticUpdate): Common.Disposable; - revertUpdate(update: OptimisticUpdate): void; - replaceUpdate(update: OptimisticUpdate, newUpdate: OptimisticUpdate): void; - applyMutation(config: { - operation: OperationSelector, - optimisticUpdater?: Common.SelectorStoreUpdater, - optimisticResponse?: object, - }): Common.Disposable; - check(readSelector: Selector): boolean; - commitPayload( - operationSelector: OperationSelector, - payload: PayloadData, - ): void; - commitUpdate(updater: Common.StoreUpdater): void; - lookup(readSelector: Selector): Snapshot; - subscribe( - snapshot: Snapshot, - callback: (snapshot: Snapshot) => void, - ): Common.Disposable; - retain(selector: Selector): Common.Disposable; - execute(config: { - operation: OperationSelector, - cacheConfig?: Common.CacheConfig | void, - updater?: Common.SelectorStoreUpdater | void, - }): RelayObservable; - executeMutation(config: { - operation: OperationSelector, - optimisticUpdater?: Common.SelectorStoreUpdater | void, - optimisticResponse?: object | void, - updater?: Common.SelectorStoreUpdater | void, - uploadables?: Common.UploadableMap | void, - }): RelayObservable; - } - - // ~~~~~~~~~~~~~~~~~~~~~ - // RelayInMemoryRecordSource - // ~~~~~~~~~~~~~~~~~~~~~ - type Record = {[key: string]: any}; - type RecordMap = {[dataID: string]: Record | void}; - - // ~~~~~~~~~~~~~~~~~~~~~ - // Network - // ~~~~~~~~~~~~~~~~~~~~~ - class Network { /** - * Creates an implementation of the `Network` interface defined in - * `RelayNetworkTypes` given `fetch` and `subscribe` functions. + * SOURCE: + * Relay 1.3.0 + * https://github.com/facebook/relay/blob/b85a1d69bb72be4ace67179f55c2a54a8d761c8b/packages/react-relay/classic/environment/RelayCombinedEnvironmentTypes.js + */ + // ~~~~~~~~~~~~~~~~~~~~~ + // Util + // ~~~~~~~~~~~~~~~~~~~~~ + type Maybe = T | void; + + // ~~~~~~~~~~~~~~~~~~~~~ + // Maybe Fix + // ~~~~~~~~~~~~~~~~~~~~~ + type RelayConcreteNode = any; + type RelayMutationTransaction = any; + type RelayMutationRequest = any; + type RelayQueryRequest = any; + type ConcreteFragment = any; + type ConcreteBatch = any; + type ConcreteFragmentDefinition = object; + type ConcreteOperationDefinition = object; + + + /** + * FIXME: RelayContainer used to be typed with ReactClass, but + * ReactClass is broken and allows for access to any property. For example + * ReactClass.getFragment('foo') is valid even though ReactClass has no + * such getFragment() type definition. When ReactClass is fixed this causes a + * lot of errors in Relay code since methods like getFragment() are used often + * but have no definition in Relay's types. Suppressing for now. */ - static create(fetchFn: typeof Common.FetchFunction, subscribeFn?: Common.SubscribeFunction): RelayNetwork; + export type RelayContainer = any; + // ~~~~~~~~~~~~~~~~~~~~~ + // RelayQL + // ~~~~~~~~~~~~~~~~~~~~~ + type RelayQL = ( + strings: string[], + ...substitutions: any[] + ) => Common.RelayConcreteNode; + + // ~~~~~~~~~~~~~~~~~~~~~ + // RelayModernGraphQLTag + // ~~~~~~~~~~~~~~~~~~~~~ + type GeneratedNodeMap = { [key: string]: GraphQLTaggedNode }; + type GraphQLTaggedNode = + (() => ConcreteFragment | ConcreteBatch) | + { + modern: () => ConcreteFragment | ConcreteBatch, + classic: (relayQL: RelayQL) => + | ConcreteFragmentDefinition + | ConcreteOperationDefinition, + }; + // ~~~~~~~~~~~~~~~~~~~~~ + // General Usage + // ~~~~~~~~~~~~~~~~~~~~~ + export type DataID = string; + export type Variables = { [name: string]: any }; + export type Uploadable = File | Blob; + export type UploadableMap = { [key: string]: Uploadable }; + + + // ~~~~~~~~~~~~~~~~~~~~~ + // RelayNetworkTypes + // Version: Relay 1.3.0 + // File: https://github.com/facebook/relay/blob/master/packages/relay-runtime/network/RelayNetworkTypes.js + // ~~~~~~~~~~~~~~~~~~~~~ + + export type LegacyObserver = { + onCompleted?: (() => void) | void, + onError?: ((error: Error) => void) | void, + onNext?: ((data: T) => void) | void, + }; + export type PayloadError = { + message: string, + locations?: Array<{ + line: number, + column: number, + }>, + }; + /** + * A function that executes a GraphQL operation with request/response semantics. + * + * May return an Observable or Promise of a raw server response. + */ + export function FetchFunction( + operation: ConcreteBatch, + variables: Variables, + cacheConfig: CacheConfig, + uploadables?: Common.UploadableMap, + ): Runtime.ObservableFromValue; + + /** + * A function that executes a GraphQL subscription operation, returning one or + * more raw server responses over time. + * + * May return an Observable, otherwise must call the callbacks found in the + * fourth parameter. + */ + export type SubscribeFunction = ( + operation: ConcreteBatch, + variables: Variables, + cacheConfig: CacheConfig, + observer: LegacyObserver, + ) => Runtime.RelayObservable | Disposable; + + + // ~~~~~~~~~~~~~~~~~~~~~ + // RelayStoreTypes + // Version: Relay 1.3.0 + // File: https://github.com/facebook/relay/blob/master/packages/relay-runtime/store/RelayStoreTypes.js + // ~~~~~~~~~~~~~~~~~~~~~ + /** + * A function that receives a proxy over the store and may trigger side-effects + * (indirectly) by calling `set*` methods on the store or its record proxies. + */ + export type StoreUpdater = (store: RecordSourceProxy) => void; + + /** + * Similar to StoreUpdater, but accepts a proxy tied to a specific selector in + * order to easily access the root fields of a query/mutation as well as a + * second argument of the response object of the mutation. + */ + export type SelectorStoreUpdater = ( + store: RecordSourceSelectorProxy, + // Actually RelayCombinedEnvironmentTypes#SelectorData, but mixed is + // inconvenient to access deeply in product code. + data: any, // FLOW FIXME + ) => void; + + /** + * Extends the RecordSourceProxy interface with methods for accessing the root + * fields of a Selector. + */ + export interface RecordSourceSelectorProxy { + create(dataID: DataID, typeName: string): RecordProxy, + delete(dataID: DataID): void, + get(dataID: DataID): RecordProxy | void, + getRoot(): RecordProxy, + getRootField(fieldName: string): RecordProxy | void, + getPluralRootField(fieldName: string): RecordProxy[] | void, + } + + export interface RecordProxy { + copyFieldsFrom(source: RecordProxy): void, + getDataID(): DataID, + getLinkedRecord(name: string, args?: Variables | void): RecordProxy | void, + getLinkedRecords(name: string, args?: Variables | void): Array | void, + getOrCreateLinkedRecord( + name: string, + typeName: string, + args?: Variables | void, + ): RecordProxy, + getType(): string, + getValue(name: string, args?: Variables | void): any, + setLinkedRecord( + record: RecordProxy, + name: string, + args?: Variables | void, + ): RecordProxy, + setLinkedRecords( + records: (RecordProxy | void)[] | void, + name: string, + args?: Variables | void, + ): RecordProxy, + setValue(value: any, name: string, args?: Variables | void): RecordProxy, + } + + export interface RecordSourceProxy { + create(dataID: DataID, typeName: string): RecordProxy, + delete(dataID: DataID): void, + get(dataID: DataID): (RecordProxy | void)[] | void, + getRoot(): RecordProxy, + } + + export type HandleFieldPayload = { + // The arguments that were fetched. + args: Variables, + // The __id of the record containing the source/handle field. + dataID: DataID, + // The (storage) key at which the original server data was written. + fieldKey: string, + // The name of the handle. + handle: string, + // The (storage) key at which the handle's data should be written by the + // handler. + handleKey: string, + }; + interface IHandler { + update: (store: RecordSourceProxy, fieldPayload: HandleFieldPayload) => void; + [functionName: string]: (...args: any[]) => any; + } + export const Handler: IHandler; + + + // ~~~~~~~~~~~~~~~~~~~~~ + // RelayCombinedEnvironmentTypes + // Version: Relay 1.3.0 + // File: https://github.com/facebook/relay/blob/b85a1d69bb72be4ace67179f55c2a54a8d761c8b/packages/react-relay/classic/environment/RelayCombinedEnvironmentTypes.js + // ~~~~~~~~~~~~~~~~~~~~~ + /** + * Settings for how a query response may be cached. + * + * - `force`: causes a query to be issued unconditionally, irrespective of the + * state of any configured response cache. + * - `poll`: causes a query to live update by polling at the specified interval + in milliseconds. (This value will be passed to setTimeout.) + */ + export type CacheConfig = { + force?: boolean | void, + poll?: number | void, + }; + + /** + * Represents any resource that must be explicitly disposed of. The most common + * use-case is as a return value for subscriptions, where calling `dispose()` + * would cancel the subscription. + */ + export type Disposable = { + dispose(): void, + }; + + + /** + * Arbitrary data e.g. received by a container as props. + */ + export type Props = { [key: string]: any }; + + /* + * An individual cached graph object. + */ + export type Record = { [key: string]: any }; + + /** + * A collection of records keyed by id. + */ + export type RecordMap = { [dataID: string]: Record | void }; + + /** + * A selector defines the starting point for a traversal into the graph for the + * purposes of targeting a subgraph. + */ + export type CSelector = { + dataID: DataID, + node: TNode, + variables: Variables, + }; + + /** + * A representation of a selector and its results at a particular point in time. + */ + export type CSnapshot = CSelector & { + data: SelectorData | void, + seenRecords: RecordMap, + }; + + /** + * The results of a selector given a store/RecordSource. + */ + export type SelectorData = { [key: string]: any }; + + /** + * The results of reading the results of a FragmentMap given some input + * `Props`. + */ + export type FragmentSpecResults = { [key: string]: any }; + + /** + * A utility for resolving and subscribing to the results of a fragment spec + * (key -> fragment mapping) given some "props" that determine the root ID + * and variables to use when reading each fragment. When props are changed via + * `setProps()`, the resolver will update its results and subscriptions + * accordingly. Internally, the resolver: + * - Converts the fragment map & props map into a map of `Selector`s. + * - Removes any resolvers for any props that became null. + * - Creates resolvers for any props that became non-null. + * - Updates resolvers with the latest props. + */ + export interface FragmentSpecResolver { + /** + * Stop watching for changes to the results of the fragments. + */ + dispose(): void, + + /** + * Get the current results. + */ + resolve(): FragmentSpecResults, + + /** + * Update the resolver with new inputs. Call `resolve()` to get the updated + * results. + */ + setProps(props: Props): void, + + /** + * Override the variables used to read the results of the fragments. Call + * `resolve()` to get the updated results. + */ + setVariables(variables: Variables): void, + } + + export type CFragmentMap = { [key: string]: TFragment }; + + /** + * An operation selector describes a specific instance of a GraphQL operation + * with variables applied. + * + * - `root`: a selector intended for processing server results or retaining + * response data in the store. + * - `fragment`: a selector intended for use in reading or subscribing to + * the results of the the operation. + */ + export type COperationSelector = { + fragment: CSelector, + node: TOperation, + root: CSelector, + variables: Variables, + }; + + /** + * The public API of Relay core. Represents an encapsulated environment with its + * own in-memory cache. + */ + export interface CEnvironment< + TEnvironment, + TFragment, + TGraphQLTaggedNode, + TNode, + TOperation, + TPayload, + > { + /** + * Read the results of a selector from in-memory records in the store. + */ + lookup(selector: CSelector): CSnapshot, + + /** + * Subscribe to changes to the results of a selector. The callback is called + * when data has been committed to the store that would cause the results of + * the snapshot's selector to change. + */ + subscribe( + snapshot: CSnapshot, + callback: (snapshot: CSnapshot) => void, + ): Disposable, + + /** + * Ensure that all the records necessary to fulfill the given selector are + * retained in-memory. The records will not be eligible for garbage collection + * until the returned reference is disposed. + * + * Note: This is a no-op in the classic core. + */ + retain(selector: CSelector): Disposable, + + /** + * Send a query to the server with request/response semantics: the query will + * either complete successfully (calling `onNext` and `onCompleted`) or fail + * (calling `onError`). + * + * Note: Most applications should use `streamQuery` in order to + * optionally receive updated information over time, should that feature be + * supported by the network/server. A good rule of thumb is to use this method + * if you would otherwise immediately dispose the `streamQuery()` + * after receving the first `onNext` result. + */ + sendQuery(config: { + cacheConfig?: CacheConfig | void, + onCompleted?: Maybe<() => void>, + onError?: Maybe<(error: Error) => void>, + onNext?: Maybe<(payload: TPayload) => void>, + operation: COperationSelector, + }): Disposable, + + /** + * Send a query to the server with request/subscription semantics: one or more + * responses may be returned (via `onNext`) over time followed by either + * the request completing (`onCompleted`) or an error (`onError`). + * + * Networks/servers that support subscriptions may choose to hold the + * subscription open indefinitely such that `onCompleted` is not called. + */ + streamQuery(config: { + cacheConfig?: Maybe, + onCompleted?: Maybe<() => void>, + onError?: Maybe<(error: Error) => void>, + onNext?: Maybe<(payload: TPayload) => void>, + operation: COperationSelector, + }): Disposable, + + unstable_internal: CUnstableEnvironmentCore< + TEnvironment, + TFragment, + TGraphQLTaggedNode, + TNode, + TOperation + >, + } + + export interface CUnstableEnvironmentCore< + TEnvironment, + TFragment, + TGraphQLTaggedNode, + TNode, + TOperation, + > { + /** + * Create an instance of a FragmentSpecResolver. + * + * TODO: The FragmentSpecResolver *can* be implemented via the other methods + * defined here, so this could be moved out of core. It's convenient to have + * separate implementations until the experimental core is in OSS. + */ + createFragmentSpecResolver: ( + context: CRelayContext, + containerName: string, + fragments: CFragmentMap, + props: Props, + callback: () => void, + ) => FragmentSpecResolver, + + /** + * Creates an instance of an OperationSelector given an operation definition + * (see `getOperation`) and the variables to apply. The input variables are + * filtered to exclude variables that do not matche defined arguments on the + * operation, and default values are populated for null values. + */ + createOperationSelector: ( + operation: TOperation, + variables: Variables, + ) => COperationSelector, + + /** + * Given a graphql`...` tagged template, extract a fragment definition usable + * by this version of Relay core. Throws if the value is not a fragment. + */ + getFragment: (node: TGraphQLTaggedNode) => TFragment, + + /** + * Given a graphql`...` tagged template, extract an operation definition + * usable by this version of Relay core. Throws if the value is not an + * operation. + */ + getOperation: (node: TGraphQLTaggedNode) => TOperation, + + /** + * Determine if two selectors are equal (represent the same selection). Note + * that this function returns `false` when the two queries/fragments are + * different objects, even if they select the same fields. + */ + areEqualSelectors: (a: CSelector, b: CSelector) => boolean, + + /** + * Given the result `item` from a parent that fetched `fragment`, creates a + * selector that can be used to read the results of that fragment for that item. + * + * Example: + * + * Given two fragments as follows: + * + * ``` + * fragment Parent on User { + * id + * ...Child + * } + * fragment Child on User { + * name + * } + * ``` + * + * And given some object `parent` that is the results of `Parent` for id "4", + * the results of `Child` can be accessed by first getting a selector and then + * using that selector to `lookup()` the results against the environment: + * + * ``` + * const childSelector = getSelector(queryVariables, Child, parent); + * const childData = environment.lookup(childSelector).data; + * ``` + */ + getSelector: ( + operationVariables: Variables, + fragment: TFragment, + prop: any, + ) => CSelector | void, + + /** + * Given the result `items` from a parent that fetched `fragment`, creates a + * selector that can be used to read the results of that fragment on those + * items. This is similar to `getSelector` but for "plural" fragments that + * expect an array of results and therefore return an array of selectors. + */ + getSelectorList: ( + operationVariables: Variables, + fragment: TFragment, + props: any[], + ) => Array> | void, + + /** + * Given a mapping of keys -> results and a mapping of keys -> fragments, + * extracts the selectors for those fragments from the results. + * + * The canonical use-case for this function are Relay Containers, which + * use this function to convert (props, fragments) into selectors so that they + * can read the results to pass to the inner component. + */ + getSelectorsFromObject: ( + operationVariables: Variables, + fragments: CFragmentMap, + props: Props, + ) => { [key: string]: Maybe<(CSelector | Array>)> }, + + /** + * Given a mapping of keys -> results and a mapping of keys -> fragments, + * extracts a mapping of keys -> id(s) of the results. + * + * Similar to `getSelectorsFromObject()`, this function can be useful in + * determining the "identity" of the props passed to a component. + */ + getDataIDsFromObject: ( + fragments: CFragmentMap, + props: Props, + ) => { [key: string]: Maybe<(DataID | Array)> }, + + /** + * Given a mapping of keys -> results and a mapping of keys -> fragments, + * extracts the merged variables that would be in scope for those + * fragments/results. + * + * This can be useful in determing what varaibles were used to fetch the data + * for a Relay container, for example. + */ + getVariablesFromObject: ( + operationVariables: Variables, + fragments: CFragmentMap, + props: Props, + ) => Variables, + } + + /** + * The type of the `relay` property set on React context by the React/Relay + * integration layer (e.g. QueryRenderer, FragmentContainer, etc). + */ + export type CRelayContext = { + environment: TEnvironment, + variables: Variables, + }; + + + // ~~~~~~~~~~~~~~~~~~~~~ + // RelayTypes + /** + * Version: Relay 1.3.0 + * File: + * https://github.com/facebook/relay/blob/fa9f48ea209ee2402d433b59a84d1cbc046574e2/packages/react-relay/classic/tools/RelayTypes.js + */ + // ~~~~~~~~~~~~~~~~~~~~~ + export type RerunParam = { + param: string, + import: string, + max_runs: number, + }; + interface FIELDS_CHANGE { + type: 'FIELDS_CHANGE', + fieldIDs: { [fieldName: string]: DataID | Array }, + } + interface RANGE_ADD { + type: 'RANGE_ADD', + parentName?: string, + parentID?: string, + connectionInfo?: Array<{ + key: string, + filters?: Variables, + rangeBehavior: string, + }>, + connectionName?: string, + edgeName: string, + rangeBehaviors?: RangeBehaviors, + } + interface NODE_DELETE { + type: 'NODE_DELETE', + parentName?: string, + parentID?: string, + connectionName?: string, + deletedIDFieldName: string, + } + interface RANGE_DELETE { + type: 'RANGE_DELETE', + parentName?: string, + parentID?: string, + connectionKeys?: Array<{ + key: string, + filters?: Variables, + }>, + connectionName?: string, + deletedIDFieldName: string | string[], + pathToConnection: string[], + } + interface REQUIRED_CHILDREN { + type: 'REQUIRED_CHILDREN', + children: Array, + } + export type RelayMutationConfig = + FIELDS_CHANGE | + RANGE_ADD | + NODE_DELETE | + RANGE_DELETE | + REQUIRED_CHILDREN; + + export type RelayMutationTransactionCommitCallbacks = { + onFailure?: RelayMutationTransactionCommitFailureCallback, + onSuccess?: RelayMutationTransactionCommitSuccessCallback, + }; + export type RelayMutationTransactionCommitFailureCallback = ( + transaction: RelayMutationTransaction, + preventAutoRollback: () => void, + ) => void; + export type RelayMutationTransactionCommitSuccessCallback = (response: { + [key: string]: any, + }) => void; + export type NetworkLayer = { + sendMutation(request: RelayMutationRequest): Promise | void, + sendQueries(requests: Array): Promise | void, + supports(...options: string[]): boolean, + }; + export type QueryResult = { + error?: Error | void, + ref_params?: { [name: string]: any } | void, + response: QueryPayload, + }; + export type ReadyState = { + aborted: boolean, + done: boolean, + error: Error | void, + events: Array, + ready: boolean, + stale: boolean, + }; + type RelayContainerErrorEventType = + | 'CACHE_RESTORE_FAILED' + | 'NETWORK_QUERY_ERROR'; + type RelayContainerLoadingEventType = + | 'ABORT' + | 'CACHE_RESTORED_REQUIRED' + | 'CACHE_RESTORE_START' + | 'NETWORK_QUERY_RECEIVED_ALL' + | 'NETWORK_QUERY_RECEIVED_REQUIRED' + | 'NETWORK_QUERY_START' + | 'STORE_FOUND_ALL' + | 'STORE_FOUND_REQUIRED'; + export type ReadyStateChangeCallback = (readyState: ReadyState) => void; + export type ReadyStateEvent = { + type: RelayContainerLoadingEventType | RelayContainerErrorEventType, + error?: Error, + }; + export type Abortable = { + abort(): void, + }; + + + // ~~~~~~~~~~~~~~~~~~~~~ + // RelayInternalTypes + /** + * Version: Relay 1.3.0 + * File: + * https://github.com/facebook/relay/blob/master/packages/react-relay/classic/tools/RelayInternalTypes.js + */ + // ~~~~~~~~~~~~~~~~~~~~~ + export type QueryPayload = { [key: string]: any }; + export type RelayQuerySet = { [queryName: string]: any }; + type RangeBehaviorsFunction = (connectionArgs: { + [argName: string]: any, + }) => 'APPEND' | 'IGNORE' | 'PREPEND' | 'REFETCH' | 'REMOVE'; + type RangeBehaviorsObject = { + [key: string]: 'APPEND' | 'IGNORE' | 'PREPEND' | 'REFETCH' | 'REMOVE'; + }; + export type RangeBehaviors = RangeBehaviorsFunction | RangeBehaviorsObject; } - // ~~~~~~~~~~~~~~~~~~~~~ - // Network - // ~~~~~~~~~~~~~~~~~~~~~ - class RecordSource { - constructor(records?: RecordMap); - clear(): void; - delete(dataID: Common.DataID): void; - get(dataID: Common.DataID): Record | void; - getRecordIDs(): Common.DataID[]; - getStatus(dataID: Common.DataID): 'EXISTENT' | 'NONEXISTENT' | 'UNKNOWN'; - has(dataID: Common.DataID): boolean; - load( - dataID: Common.DataID, - callback: (error: Error | void, record: Record | void) => void, - ): void; - remove(dataID: Common.DataID): void; - set(dataID: Common.DataID, record: Record): void; - size(): number; - toJSON(): RecordMap; + namespace Runtime { + // ~~~~~~~~~~~~~~~~~~~~~ + // Maybe Fix + // ~~~~~~~~~~~~~~~~~~~~~ + type RelayDebugger = any; + type OptimisticUpdate = any; + type OperationSelector = Common.COperationSelector; + type Selector = Common.CSelector; + type PayloadData = any; + type Snapshot = Common.CSnapshot; + type RelayResponsePayload = any; + type MutableRecordSource = RecordSource; + + /** + * A function that returns an Observable representing the response of executing + * a GraphQL operation. + */ + type ExecuteFunction = ( + operation: object, + variables: Common.Variables, + cacheConfig: Common.CacheConfig, + uploadables?: Common.UploadableMap | void, + ) => Promise; + type RelayNetwork = { + execute: ExecuteFunction, + }; + + // ~~~~~~~~~~~~~~~~~~~~~ + // RelayDefaultHandlerProvider + // ~~~~~~~~~~~~~~~~~~~~~ + export function HandlerProvider(name: string): typeof Common.Handler | void; + + // ~~~~~~~~~~~~~~~~~~~~~ + // RelayModernEnvironment + // ~~~~~~~~~~~~~~~~~~~~~ + type EnvironmentConfig = { + configName?: string, + handlerProvider?: typeof HandlerProvider, + network: Network, + store: Store, + }; + class Environment { + constructor(config: EnvironmentConfig); + getStore(): Store; + getDebugger(): RelayDebugger; + applyUpdate(optimisticUpdate: OptimisticUpdate): Common.Disposable; + revertUpdate(update: OptimisticUpdate): void; + replaceUpdate(update: OptimisticUpdate, newUpdate: OptimisticUpdate): void; + applyMutation(config: { + operation: OperationSelector, + optimisticUpdater?: Common.SelectorStoreUpdater, + optimisticResponse?: object, + }): Common.Disposable; + check(readSelector: Selector): boolean; + commitPayload( + operationSelector: OperationSelector, + payload: PayloadData, + ): void; + commitUpdate(updater: Common.StoreUpdater): void; + lookup(readSelector: Selector): Snapshot; + subscribe( + snapshot: Snapshot, + callback: (snapshot: Snapshot) => void, + ): Common.Disposable; + retain(selector: Selector): Common.Disposable; + execute(config: { + operation: OperationSelector, + cacheConfig?: Common.CacheConfig | void, + updater?: Common.SelectorStoreUpdater | void, + }): RelayObservable; + executeMutation(config: { + operation: OperationSelector, + optimisticUpdater?: Common.SelectorStoreUpdater | void, + optimisticResponse?: object | void, + updater?: Common.SelectorStoreUpdater | void, + uploadables?: Common.UploadableMap | void, + }): RelayObservable; + } + + // ~~~~~~~~~~~~~~~~~~~~~ + // RelayInMemoryRecordSource + // ~~~~~~~~~~~~~~~~~~~~~ + type Record = { [key: string]: any }; + type RecordMap = { [dataID: string]: Record | void }; + + // ~~~~~~~~~~~~~~~~~~~~~ + // Network + // ~~~~~~~~~~~~~~~~~~~~~ + class Network { + /** + * Creates an implementation of the `Network` interface defined in + * `RelayNetworkTypes` given `fetch` and `subscribe` functions. + */ + static create(fetchFn: typeof Common.FetchFunction, subscribeFn?: Common.SubscribeFunction): RelayNetwork; + } + + // ~~~~~~~~~~~~~~~~~~~~~ + // Network + // ~~~~~~~~~~~~~~~~~~~~~ + class RecordSource { + constructor(records?: RecordMap); + clear(): void; + delete(dataID: Common.DataID): void; + get(dataID: Common.DataID): Record | void; + getRecordIDs(): Common.DataID[]; + getStatus(dataID: Common.DataID): 'EXISTENT' | 'NONEXISTENT' | 'UNKNOWN'; + has(dataID: Common.DataID): boolean; + load( + dataID: Common.DataID, + callback: (error: Error | void, record: Record | void) => void, + ): void; + remove(dataID: Common.DataID): void; + set(dataID: Common.DataID, record: Record): void; + size(): number; + toJSON(): RecordMap; + } + + // ~~~~~~~~~~~~~~~~~~~~~ + // ModernStore + // ~~~~~~~~~~~~~~~~~~~~~ + class Store { + constructor(source: RecordSource); + getSource(): MutableRecordSource; + check(selector: Selector): boolean; + retain(selector: Selector): Common.Disposable; + lookup(selector: Selector): Snapshot; + notify(): void; + publish(source: RecordSource): void; + subscribe( + snapshot: Snapshot, + callback: (snapshot: Snapshot) => void, + ): Common.Disposable; + } + + // ~~~~~~~~~~~~~~~~~~~~~ + // RelayRecordSourceInspector + // ~~~~~~~~~~~~~~~~~~~~~ + /** + * An internal class to provide a console-friendly string representation of a + * Record. + */ + class RecordSummary { + id: Common.DataID; + type: string | void; + static createFromRecord(id: Common.DataID, record: any): RecordSummary; + constructor(id: Common.DataID, type: string | void); + toString(): string; + } + /** + * Internal class for inspecting a single Record. + */ + class RecordInspector { + constructor(sourceInspector: RelayRecordSourceInspector, record: Record); + /** + * Get the cache id of the given record. For types that implement the `Node` + * interface (or that have an `id`) this will be `id`, for other types it will be + * a synthesized identifier based on the field path from the nearest ancestor + * record that does have an `id`. + */ + getDataID(): Common.DataID; + + /** + * Returns a list of the fields that have been fetched on the current record. + */ + getFields(): string[]; + + /** + * Returns the type of the record. + */ + getType(): string; + + /** + * Returns a copy of the internal representation of the record. + */ + inspect(): any; + + /** + * Returns the value of a scalar field. May throw if the given field is + * present but not actually scalar. + */ + getValue(name: string, args?: Common.Variables | void): any; + + /** + * Returns an inspector for the given scalar "linked" field (a field whose + * value is another Record instead of a scalar). May throw if the field is + * present but not a scalar linked record. + */ + getLinkedRecord(name: string, args?: Common.Variables | void): RecordInspector | void; + + /** + * Returns an array of inspectors for the given plural "linked" field (a field + * whose value is an array of Records instead of a scalar). May throw if the + * field is present but not a plural linked record. + */ + getLinkedRecords(name: string, args?: Common.Variables | void): RecordInspector[] | void; + } + + class RelayRecordSourceInspector { + constructor(source: RecordSource); + static getForEnvironment(environment: Environment): RelayRecordSourceInspector; + /** + * Returns an inspector for the record with the given id, or null/undefined if + * that record is deleted/unfetched. + */ + get(dataID: Common.DataID): RecordInspector | void; + /** + * Returns a list of ": " for each record in the store that has an + * `id`. + */ + getNodes(): Array; + /** + * Returns a list of ": " for all records in the store including + * those that do not have an `id`. + */ + getRecords(): Array; + + /** + * Returns an inspector for the synthesized "root" object, allowing access to + * e.g. the `viewer` object or the results of other fields on the "Query" + * type. + */ + getRoot(): RecordInspector; + } + + + // ~~~~~~~~~~~~~~~~~~~~~ + // RelayObservable + // ~~~~~~~~~~~~~~~~~~~~~ + type Subscription = { + unsubscribe: () => void, + readonly closed: boolean, + }; + type Observer = { + start?: ((subscription: Subscription) => any) | void, + next?: ((nextThing: T) => any) | void, + error?: ((error: Error) => any) | void, + complete?: (() => any) | void, + unsubscribe?: ((subscription: Subscription) => any) | void, + }; + type Source = () => any; + interface Subscribable { + subscribe(observer: Observer): Subscription, + } + type ObservableFromValue = RelayObservable | Promise | T; + class RelayObservable implements Subscribable { + _source: Source; + + constructor(source: Source); + + /** + * When an unhandled error is detected, it is reported to the host environment + * (the ESObservable spec refers to this method as "HostReportErrors()"). + * + * The default implementation in development builds re-throws errors in a + * separate frame, and from production builds does nothing (swallowing + * uncaught errors). + * + * Called during application initialization, this method allows + * application-specific handling of uncaught errors. Allowing, for example, + * integration with error logging or developer tools. + */ + static onUnhandledError(callback: (error: Error) => any): void; + + /** + * Accepts various kinds of data sources, and always returns a RelayObservable + * useful for accepting the result of a user-provided FetchFunction. + */ + static from(obj: ObservableFromValue): RelayObservable; + + /** + * Creates a RelayObservable, given a function which expects a legacy + * Relay Observer as the last argument and which returns a Disposable. + * + * To support migration to Observable, the function may ignore the + * legacy Relay observer and directly return an Observable instead. + */ + static fromLegacy( + callback: (legacyObserver: Common.LegacyObserver) => Common.Disposable | RelayObservable, + ): RelayObservable; + + /** + * Returns a new Observable which returns the same values as this one, but + * modified so that the provided Observer is called to perform a side-effects + * for all events emitted by the source. + * + * Any errors that are thrown in the side-effect Observer are unhandled, and + * do not affect the source Observable or its Observer. + * + * This is useful for when debugging your Observables or performing other + * side-effects such as logging or performance monitoring. + */ + do(observer: Observer): RelayObservable; + + /** + * Returns a new Observable which returns the same values as this one, but + * modified so that the finally callback is performed after completion, + * whether normal or due to error or unsubscription. + * + * This is useful for cleanup such as resource finalization. + */ + finally(fn: () => any): RelayObservable; + + /** + * Returns a new Observable which is identical to this one, unless this + * Observable completes before yielding any values, in which case the new + * Observable will yield the values from the alternate Observable. + * + * If this Observable does yield values, the alternate is never subscribed to. + * + * This is useful for scenarios where values may come from multiple sources + * which should be tried in order, i.e. from a cache before a network. + */ + ifEmpty(alternate: RelayObservable): RelayObservable; + + /** + * Observable's primary API: returns an unsubscribable Subscription to the + * source of this Observable. + */ + subscribe(observer: Observer): Subscription; + + /** + * Supports subscription of a legacy Relay Observer, returning a Disposable. + */ + subscribeLegacy(legacyObserver: Common.LegacyObserver): Common.Disposable; + + /** + * Returns a new Observerable where each value has been transformed by + * the mapping function. + */ + map(fn: (thing: T) => U): RelayObservable; + + /** + * Returns a new Observable where each value is replaced with a new Observable + * by the mapping function, the results of which returned as a single + * concattenated Observable. + */ + concatMap(fn: (thing: T) => ObservableFromValue): RelayObservable; + + /** + * Returns a new Observable which first mirrors this Observable, then when it + * completes, waits for `pollInterval` milliseconds before re-subscribing to + * this Observable again, looping in this manner until unsubscribed. + * + * The returned Observable never completes. + */ + poll(pollInterval: number): RelayObservable; + + /** + * Returns a Promise which resolves when this Observable yields a first value + * or when it completes with no value. + */ + toPromise(): Promise; + } + + + // ~~~~~~~~~~~~~~~~~~~~~ + // commitLocalUpdate + // ~~~~~~~~~~~~~~~~~~~~~ + // exposed through RelayModern, not Runtime directly + type commitLocalUpdate = ( + environment: Environment, + updater: Common.StoreUpdater, + ) => void; + + // ~~~~~~~~~~~~~~~~~~~~~ + // commitRelayModernMutation + // ~~~~~~~~~~~~~~~~~~~~~ + // exposed through RelayModern, not Runtime directly + type MutationConfig = { + configs?: Array, + mutation: Common.GraphQLTaggedNode, + variables: Common.Variables, + uploadables?: Common.UploadableMap, + onCompleted?: (response: T, errors: Array | void) => void, + onError?: (error?: Error) => void, + optimisticUpdater?: Common.SelectorStoreUpdater | void, + optimisticResponse?: object, + updater?: Common.SelectorStoreUpdater | void, + }; + function commitRelayModernMutation( + environment: Environment, + config: MutationConfig, + ): Common.Disposable; + + // ~~~~~~~~~~~~~~~~~~~~~ + // applyRelayModernOptimisticMutation + // ~~~~~~~~~~~~~~~~~~~~~ + // exposed through RelayModern, not Runtime directly + type OptimisticMutationConfig = { + configs?: Array, + mutation: Common.GraphQLTaggedNode, + variables: Common.Variables, + optimisticUpdater?: Common.SelectorStoreUpdater, + optimisticResponse?: object, + }; + + // ~~~~~~~~~~~~~~~~~~~~~ + // fetchRelayModernQuery + // ~~~~~~~~~~~~~~~~~~~~~ + // exposed through RelayModern, not Runtime directly + /** + * A helper function to fetch the results of a query. Note that results for + * fragment spreads are masked: fields must be explicitly listed in the query in + * order to be accessible in the result object. + * + * NOTE: This module is primarily intended for integrating with classic APIs. + * Most product code should use a Renderer or Container. + * + * TODO(t16875667): The return type should be `Promise`, but + * that's not really helpful as `SelectorData` is essentially just `mixed`. We + * can probably leverage generated flow types here to return the real expected + * shape. + */ + function fetchRelayModernQuery( + environment: any, // FIXME - $FlowFixMe in facebook source code + taggedNode: Common.GraphQLTaggedNode, + variables: Common.Variables, + cacheConfig?: Common.CacheConfig | void, + ): Promise; // FIXME - $FlowFixMe in facebook source code + + + // ~~~~~~~~~~~~~~~~~~~~~ + // requestRelaySubscription + // ~~~~~~~~~~~~~~~~~~~~~ + // exposed through RelayModern, not Runtime directly + export type GraphQLSubscriptionConfig = { + configs?: Array, + subscription: Common.GraphQLTaggedNode, + variables: Common.Variables, + onCompleted?: () => void, + onError?: (error: Error) => void, + onNext?: (response: object | void) => void, + updater?: (store: Common.RecordSourceSelectorProxy) => void, + }; + export function requestRelaySubscription( + environment: Environment, + config: GraphQLSubscriptionConfig, + ): Common.Disposable; } +} - // ~~~~~~~~~~~~~~~~~~~~~ - // ModernStore - // ~~~~~~~~~~~~~~~~~~~~~ - class Store { - constructor(source: RecordSource); - getSource(): MutableRecordSource; - check(selector: Selector): boolean; - retain(selector: Selector): Common.Disposable; - lookup(selector: Selector): Snapshot; - notify(): void; - publish(source: RecordSource): void; - subscribe( - snapshot: Snapshot, - callback: (snapshot: Snapshot) => void, - ): Common.Disposable; - } - - // ~~~~~~~~~~~~~~~~~~~~~ - // RelayRecordSourceInspector - // ~~~~~~~~~~~~~~~~~~~~~ - /** - * An internal class to provide a console-friendly string representation of a - * Record. - */ - class RecordSummary { - id: Common.DataID; - type: string | void; - static createFromRecord(id: Common.DataID, record: any): RecordSummary; - constructor(id: Common.DataID, type: string | void); - toString(): string; - } - /** - * Internal class for inspecting a single Record. - */ - class RecordInspector { - constructor(sourceInspector: RelayRecordSourceInspector, record: Record); - /** - * Get the cache id of the given record. For types that implement the `Node` - * interface (or that have an `id`) this will be `id`, for other types it will be - * a synthesized identifier based on the field path from the nearest ancestor - * record that does have an `id`. - */ - getDataID(): Common.DataID; - - /** - * Returns a list of the fields that have been fetched on the current record. - */ - getFields(): Array; - - /** - * Returns the type of the record. - */ - getType(): string; - - /** - * Returns a copy of the internal representation of the record. - */ - inspect(): any; - - /** - * Returns the value of a scalar field. May throw if the given field is - * present but not actually scalar. - */ - getValue(name: string, args?: Common.Variables | void): any; - - /** - * Returns an inspector for the given scalar "linked" field (a field whose - * value is another Record instead of a scalar). May throw if the field is - * present but not a scalar linked record. - */ - getLinkedRecord(name: string, args?: Common.Variables | void): RecordInspector | void; - - /** - * Returns an array of inspectors for the given plural "linked" field (a field - * whose value is an array of Records instead of a scalar). May throw if the - * field is present but not a plural linked record. - */ - getLinkedRecords(name: string, args?: Common.Variables | void): RecordInspector[] | void; - } - - class RelayRecordSourceInspector { - constructor(source: RecordSource); - static getForEnvironment(environment: Environment): RelayRecordSourceInspector; - /** - * Returns an inspector for the record with the given id, or null/undefined if - * that record is deleted/unfetched. - */ - get(dataID: Common.DataID): RecordInspector | void; - /** - * Returns a list of ": " for each record in the store that has an - * `id`. - */ - getNodes(): Array; - /** - * Returns a list of ": " for all records in the store including - * those that do not have an `id`. - */ - getRecords(): Array; - - /** - * Returns an inspector for the synthesized "root" object, allowing access to - * e.g. the `viewer` object or the results of other fields on the "Query" - * type. - */ - getRoot(): RecordInspector; - } - - - // ~~~~~~~~~~~~~~~~~~~~~ - // RelayObservable - // ~~~~~~~~~~~~~~~~~~~~~ - type Subscription = { - unsubscribe: () => void, - readonly closed: boolean, - }; - type Observer = { - start?: ((subscription: Subscription) => any) | void, - next?: ((nextThing: T) => any) | void, - error?: ((error: Error) => any) | void, - complete?: (() => any) | void, - unsubscribe?: ((subscription: Subscription) => any) | void, - }; - type Source = () => any; - interface Subscribable { - subscribe(observer: Observer): Subscription, - } - type ObservableFromValue = RelayObservable | Promise | T; - class RelayObservable implements Subscribable { - _source: Source; - - constructor(source: Source); - - /** - * When an unhandled error is detected, it is reported to the host environment - * (the ESObservable spec refers to this method as "HostReportErrors()"). - * - * The default implementation in development builds re-throws errors in a - * separate frame, and from production builds does nothing (swallowing - * uncaught errors). - * - * Called during application initialization, this method allows - * application-specific handling of uncaught errors. Allowing, for example, - * integration with error logging or developer tools. - */ - static onUnhandledError(callback: (error: Error) => any): void; - - /** - * Accepts various kinds of data sources, and always returns a RelayObservable - * useful for accepting the result of a user-provided FetchFunction. - */ - static from(obj: ObservableFromValue): RelayObservable; - - /** - * Creates a RelayObservable, given a function which expects a legacy - * Relay Observer as the last argument and which returns a Disposable. - * - * To support migration to Observable, the function may ignore the - * legacy Relay observer and directly return an Observable instead. - */ - static fromLegacy( - callback: (legacyObserver: Common.LegacyObserver) => Common.Disposable | RelayObservable, - ): RelayObservable; - - /** - * Returns a new Observable which returns the same values as this one, but - * modified so that the provided Observer is called to perform a side-effects - * for all events emitted by the source. - * - * Any errors that are thrown in the side-effect Observer are unhandled, and - * do not affect the source Observable or its Observer. - * - * This is useful for when debugging your Observables or performing other - * side-effects such as logging or performance monitoring. - */ - do(observer: Observer): RelayObservable; - - /** - * Returns a new Observable which returns the same values as this one, but - * modified so that the finally callback is performed after completion, - * whether normal or due to error or unsubscription. - * - * This is useful for cleanup such as resource finalization. - */ - finally(fn: () => any): RelayObservable; - - /** - * Returns a new Observable which is identical to this one, unless this - * Observable completes before yielding any values, in which case the new - * Observable will yield the values from the alternate Observable. - * - * If this Observable does yield values, the alternate is never subscribed to. - * - * This is useful for scenarios where values may come from multiple sources - * which should be tried in order, i.e. from a cache before a network. - */ - ifEmpty(alternate: RelayObservable): RelayObservable; - - /** - * Observable's primary API: returns an unsubscribable Subscription to the - * source of this Observable. - */ - subscribe(observer: Observer): Subscription; - - /** - * Supports subscription of a legacy Relay Observer, returning a Disposable. - */ - subscribeLegacy(legacyObserver: Common.LegacyObserver): Common.Disposable; - - /** - * Returns a new Observerable where each value has been transformed by - * the mapping function. - */ - map(fn: (thing: T) => U): RelayObservable; - - /** - * Returns a new Observable where each value is replaced with a new Observable - * by the mapping function, the results of which returned as a single - * concattenated Observable. - */ - concatMap(fn: (thing: T) => ObservableFromValue): RelayObservable; - - /** - * Returns a new Observable which first mirrors this Observable, then when it - * completes, waits for `pollInterval` milliseconds before re-subscribing to - * this Observable again, looping in this manner until unsubscribed. - * - * The returned Observable never completes. - */ - poll(pollInterval: number): RelayObservable; - - /** - * Returns a Promise which resolves when this Observable yields a first value - * or when it completes with no value. - */ - toPromise(): Promise; - } - - - // ~~~~~~~~~~~~~~~~~~~~~ - // commitLocalUpdate - // ~~~~~~~~~~~~~~~~~~~~~ - // exposed through RelayModern, not Runtime directly - type commitLocalUpdate = ( - environment: Environment, - updater: Common.StoreUpdater, - ) => void; - - // ~~~~~~~~~~~~~~~~~~~~~ - // commitRelayModernMutation - // ~~~~~~~~~~~~~~~~~~~~~ - // exposed through RelayModern, not Runtime directly - type MutationConfig = { - configs?: Array, - mutation: Common.GraphQLTaggedNode, - variables: Common.Variables, - uploadables?: Common.UploadableMap, - onCompleted?: (response: T, errors: Array | void) => void, - onError?: (error?: Error) => void, - optimisticUpdater?: Common.SelectorStoreUpdater | void, - optimisticResponse?: object, - updater?: Common.SelectorStoreUpdater | void, - }; - function commitRelayModernMutation( - environment: Environment, - config: MutationConfig, - ): Common.Disposable; - - // ~~~~~~~~~~~~~~~~~~~~~ - // applyRelayModernOptimisticMutation - // ~~~~~~~~~~~~~~~~~~~~~ - // exposed through RelayModern, not Runtime directly - type OptimisticMutationConfig = { - configs?: Array, - mutation: Common.GraphQLTaggedNode, - variables: Common.Variables, - optimisticUpdater?: Common.SelectorStoreUpdater, - optimisticResponse?: object, - }; - - // ~~~~~~~~~~~~~~~~~~~~~ - // fetchRelayModernQuery - // ~~~~~~~~~~~~~~~~~~~~~ - // exposed through RelayModern, not Runtime directly - /** - * A helper function to fetch the results of a query. Note that results for - * fragment spreads are masked: fields must be explicitly listed in the query in - * order to be accessible in the result object. - * - * NOTE: This module is primarily intended for integrating with classic APIs. - * Most product code should use a Renderer or Container. - * - * TODO(t16875667): The return type should be `Promise`, but - * that's not really helpful as `SelectorData` is essentially just `mixed`. We - * can probably leverage generated flow types here to return the real expected - * shape. - */ - function fetchRelayModernQuery( - environment: any, // FIXME - $FlowFixMe in facebook source code - taggedNode: Common.GraphQLTaggedNode, - variables: Common.Variables, - cacheConfig?: Common.CacheConfig | void, - ): Promise; // FIXME - $FlowFixMe in facebook source code - - - // ~~~~~~~~~~~~~~~~~~~~~ - // requestRelaySubscription - // ~~~~~~~~~~~~~~~~~~~~~ - // exposed through RelayModern, not Runtime directly - export type GraphQLSubscriptionConfig = { - configs?: Array, - subscription: Common.GraphQLTaggedNode, - variables: Common.Variables, - onCompleted?: () => void, - onError?: (error: Error) => void, - onNext?: (response: object | void) => void, - updater?: (store: Common.RecordSourceSelectorProxy) => void, - }; - export function requestRelaySubscription( - environment: Environment, - config: GraphQLSubscriptionConfig, - ): Common.Disposable; - } - - declare module 'relay-runtime' { +declare module 'relay-runtime' { export import Environment = __Relay.Runtime.Environment; export import Network = __Relay.Runtime.Network; export import RecordSource = __Relay.Runtime.RecordSource; @@ -1136,4 +1136,4 @@ declare namespace __Relay.Runtime { export import RecordSourceInspector = __Relay.Runtime.RelayRecordSourceInspector; export import ConnectionHandler = __Relay.Common.Handler; export import ViewerHandler = __Relay.Common.Handler; - } +} From 9d699082b64288589c646f6033bae0b724a78fd6 Mon Sep 17 00:00:00 2001 From: voxmatt Date: Sun, 10 Sep 2017 10:05:01 -1000 Subject: [PATCH 022/506] continuing to fix linting errors --- types/relay-runtime/index.d.ts | 177 ++++++++++++++++----------------- 1 file changed, 84 insertions(+), 93 deletions(-) diff --git a/types/relay-runtime/index.d.ts b/types/relay-runtime/index.d.ts index 80ea0dcdea..5904a6067c 100644 --- a/types/relay-runtime/index.d.ts +++ b/types/relay-runtime/index.d.ts @@ -11,7 +11,7 @@ declare namespace __Relay { * SOURCE: * Relay 1.3.0 * https://github.com/facebook/relay/blob/b85a1d69bb72be4ace67179f55c2a54a8d761c8b/packages/react-relay/classic/environment/RelayCombinedEnvironmentTypes.js - */ + */ // ~~~~~~~~~~~~~~~~~~~~~ // Util // ~~~~~~~~~~~~~~~~~~~~~ @@ -29,7 +29,6 @@ declare namespace __Relay { type ConcreteFragmentDefinition = object; type ConcreteOperationDefinition = object; - /** * FIXME: RelayContainer used to be typed with ReactClass, but * ReactClass is broken and allows for access to any property. For example @@ -39,18 +38,19 @@ declare namespace __Relay { * but have no definition in Relay's types. Suppressing for now. */ export type RelayContainer = any; + // ~~~~~~~~~~~~~~~~~~~~~ // RelayQL // ~~~~~~~~~~~~~~~~~~~~~ type RelayQL = ( strings: string[], ...substitutions: any[] - ) => Common.RelayConcreteNode; + ) => RelayConcreteNode; // ~~~~~~~~~~~~~~~~~~~~~ // RelayModernGraphQLTag // ~~~~~~~~~~~~~~~~~~~~~ - type GeneratedNodeMap = { [key: string]: GraphQLTaggedNode }; + interface GeneratedNodeMap { [key: string]: GraphQLTaggedNode } type GraphQLTaggedNode = (() => ConcreteFragment | ConcreteBatch) | { @@ -63,10 +63,9 @@ declare namespace __Relay { // General Usage // ~~~~~~~~~~~~~~~~~~~~~ export type DataID = string; - export type Variables = { [name: string]: any }; + export interface Variables { [name: string]: any } export type Uploadable = File | Blob; - export type UploadableMap = { [key: string]: Uploadable }; - + export interface UploadableMap { [key: string]: Uploadable } // ~~~~~~~~~~~~~~~~~~~~~ // RelayNetworkTypes @@ -74,18 +73,18 @@ declare namespace __Relay { // File: https://github.com/facebook/relay/blob/master/packages/relay-runtime/network/RelayNetworkTypes.js // ~~~~~~~~~~~~~~~~~~~~~ - export type LegacyObserver = { + export interface LegacyObserver { onCompleted?: (() => void) | void, onError?: ((error: Error) => void) | void, onNext?: ((data: T) => void) | void, - }; - export type PayloadError = { + } + export interface PayloadError { message: string, locations?: Array<{ line: number, column: number, }>, - }; + } /** * A function that executes a GraphQL operation with request/response semantics. * @@ -95,7 +94,7 @@ declare namespace __Relay { operation: ConcreteBatch, variables: Variables, cacheConfig: CacheConfig, - uploadables?: Common.UploadableMap, + uploadables?: UploadableMap, ): Runtime.ObservableFromValue; /** @@ -112,7 +111,6 @@ declare namespace __Relay { observer: LegacyObserver, ) => Runtime.RelayObservable | Disposable; - // ~~~~~~~~~~~~~~~~~~~~~ // RelayStoreTypes // Version: Relay 1.3.0 @@ -125,10 +123,10 @@ declare namespace __Relay { export type StoreUpdater = (store: RecordSourceProxy) => void; /** - * Similar to StoreUpdater, but accepts a proxy tied to a specific selector in - * order to easily access the root fields of a query/mutation as well as a - * second argument of the response object of the mutation. - */ + * Similar to StoreUpdater, but accepts a proxy tied to a specific selector in + * order to easily access the root fields of a query/mutation as well as a + * second argument of the response object of the mutation. + */ export type SelectorStoreUpdater = ( store: RecordSourceSelectorProxy, // Actually RelayCombinedEnvironmentTypes#SelectorData, but mixed is @@ -167,7 +165,7 @@ declare namespace __Relay { args?: Variables | void, ): RecordProxy, setLinkedRecords( - records: (RecordProxy | void)[] | void, + records: Array | void, name: string, args?: Variables | void, ): RecordProxy, @@ -177,11 +175,11 @@ declare namespace __Relay { export interface RecordSourceProxy { create(dataID: DataID, typeName: string): RecordProxy, delete(dataID: DataID): void, - get(dataID: DataID): (RecordProxy | void)[] | void, + get(dataID: DataID): Array | void, getRoot(): RecordProxy, } - export type HandleFieldPayload = { + export interface HandleFieldPayload { // The arguments that were fetched. args: Variables, // The __id of the record containing the source/handle field. @@ -193,13 +191,12 @@ declare namespace __Relay { // The (storage) key at which the handle's data should be written by the // handler. handleKey: string, - }; - interface IHandler { + } + interface HandlerInterface { update: (store: RecordSourceProxy, fieldPayload: HandleFieldPayload) => void; [functionName: string]: (...args: any[]) => any; } - export const Handler: IHandler; - + export const Handler: HandlerInterface; // ~~~~~~~~~~~~~~~~~~~~~ // RelayCombinedEnvironmentTypes @@ -212,47 +209,46 @@ declare namespace __Relay { * - `force`: causes a query to be issued unconditionally, irrespective of the * state of any configured response cache. * - `poll`: causes a query to live update by polling at the specified interval - in milliseconds. (This value will be passed to setTimeout.) + * in milliseconds. (This value will be passed to setTimeout.) */ - export type CacheConfig = { + export interface CacheConfig { force?: boolean | void, poll?: number | void, - }; + } /** * Represents any resource that must be explicitly disposed of. The most common * use-case is as a return value for subscriptions, where calling `dispose()` * would cancel the subscription. */ - export type Disposable = { + export interface Disposable { dispose(): void, - }; - + } /** * Arbitrary data e.g. received by a container as props. */ - export type Props = { [key: string]: any }; + export interface Props { [key: string]: any } /* * An individual cached graph object. */ - export type Record = { [key: string]: any }; + export interface Record { [key: string]: any } /** * A collection of records keyed by id. */ - export type RecordMap = { [dataID: string]: Record | void }; + export interface RecordMap { [dataID: string]: Record | void } /** * A selector defines the starting point for a traversal into the graph for the * purposes of targeting a subgraph. */ - export type CSelector = { + export interface CSelector { dataID: DataID, node: TNode, variables: Variables, - }; + } /** * A representation of a selector and its results at a particular point in time. @@ -265,13 +261,13 @@ declare namespace __Relay { /** * The results of a selector given a store/RecordSource. */ - export type SelectorData = { [key: string]: any }; + export interface SelectorData { [key: string]: any } /** * The results of reading the results of a FragmentMap given some input * `Props`. */ - export type FragmentSpecResults = { [key: string]: any }; + export interface FragmentSpecResults { [key: string]: any } /** * A utility for resolving and subscribing to the results of a fragment spec @@ -308,7 +304,7 @@ declare namespace __Relay { setVariables(variables: Variables): void, } - export type CFragmentMap = { [key: string]: TFragment }; + export interface CFragmentMap { [key: string]: TFragment } /** * An operation selector describes a specific instance of a GraphQL operation @@ -319,12 +315,12 @@ declare namespace __Relay { * - `fragment`: a selector intended for use in reading or subscribing to * the results of the the operation. */ - export type COperationSelector = { + export interface COperationSelector { fragment: CSelector, node: TOperation, root: CSelector, variables: Variables, - }; + } /** * The public API of Relay core. Represents an encapsulated environment with its @@ -528,7 +524,7 @@ declare namespace __Relay { getDataIDsFromObject: ( fragments: CFragmentMap, props: Props, - ) => { [key: string]: Maybe<(DataID | Array)> }, + ) => { [key: string]: Maybe<(DataID | DataID[])> }, /** * Given a mapping of keys -> results and a mapping of keys -> fragments, @@ -549,11 +545,10 @@ declare namespace __Relay { * The type of the `relay` property set on React context by the React/Relay * integration layer (e.g. QueryRenderer, FragmentContainer, etc). */ - export type CRelayContext = { + export interface CRelayContext { environment: TEnvironment, variables: Variables, - }; - + } // ~~~~~~~~~~~~~~~~~~~~~ // RelayTypes @@ -561,16 +556,16 @@ declare namespace __Relay { * Version: Relay 1.3.0 * File: * https://github.com/facebook/relay/blob/fa9f48ea209ee2402d433b59a84d1cbc046574e2/packages/react-relay/classic/tools/RelayTypes.js - */ + */ // ~~~~~~~~~~~~~~~~~~~~~ - export type RerunParam = { + export interface RerunParam { param: string, import: string, max_runs: number, - }; + } interface FIELDS_CHANGE { type: 'FIELDS_CHANGE', - fieldIDs: { [fieldName: string]: DataID | Array }, + fieldIDs: { [fieldName: string]: DataID | DataID[] }, } interface RANGE_ADD { type: 'RANGE_ADD', @@ -606,7 +601,7 @@ declare namespace __Relay { } interface REQUIRED_CHILDREN { type: 'REQUIRED_CHILDREN', - children: Array, + children: RelayConcreteNode[], } export type RelayMutationConfig = FIELDS_CHANGE | @@ -615,10 +610,10 @@ declare namespace __Relay { RANGE_DELETE | REQUIRED_CHILDREN; - export type RelayMutationTransactionCommitCallbacks = { + export interface RelayMutationTransactionCommitCallbacks { onFailure?: RelayMutationTransactionCommitFailureCallback, onSuccess?: RelayMutationTransactionCommitSuccessCallback, - }; + } export type RelayMutationTransactionCommitFailureCallback = ( transaction: RelayMutationTransaction, preventAutoRollback: () => void, @@ -626,24 +621,24 @@ declare namespace __Relay { export type RelayMutationTransactionCommitSuccessCallback = (response: { [key: string]: any, }) => void; - export type NetworkLayer = { + export interface NetworkLayer { sendMutation(request: RelayMutationRequest): Promise | void, - sendQueries(requests: Array): Promise | void, + sendQueries(requests: RelayQueryRequest[]): Promise | void, supports(...options: string[]): boolean, - }; - export type QueryResult = { + } + export interface QueryResult { error?: Error | void, ref_params?: { [name: string]: any } | void, response: QueryPayload, - }; - export type ReadyState = { + } + export interface ReadyState { aborted: boolean, done: boolean, error: Error | void, - events: Array, + events: ReadyStateEvent[], ready: boolean, stale: boolean, - }; + } type RelayContainerErrorEventType = | 'CACHE_RESTORE_FAILED' | 'NETWORK_QUERY_ERROR'; @@ -661,10 +656,9 @@ declare namespace __Relay { type: RelayContainerLoadingEventType | RelayContainerErrorEventType, error?: Error, }; - export type Abortable = { + export interface Abortable { abort(): void, - }; - + } // ~~~~~~~~~~~~~~~~~~~~~ // RelayInternalTypes @@ -672,16 +666,16 @@ declare namespace __Relay { * Version: Relay 1.3.0 * File: * https://github.com/facebook/relay/blob/master/packages/react-relay/classic/tools/RelayInternalTypes.js - */ + */ // ~~~~~~~~~~~~~~~~~~~~~ - export type QueryPayload = { [key: string]: any }; - export type RelayQuerySet = { [queryName: string]: any }; + export interface QueryPayload { [key: string]: any } + export interface RelayQuerySet { [queryName: string]: any } type RangeBehaviorsFunction = (connectionArgs: { [argName: string]: any, }) => 'APPEND' | 'IGNORE' | 'PREPEND' | 'REFETCH' | 'REMOVE'; - type RangeBehaviorsObject = { + interface RangeBehaviorsObject { [key: string]: 'APPEND' | 'IGNORE' | 'PREPEND' | 'REFETCH' | 'REMOVE'; - }; + } export type RangeBehaviors = RangeBehaviorsFunction | RangeBehaviorsObject; } @@ -708,9 +702,9 @@ declare namespace __Relay { cacheConfig: Common.CacheConfig, uploadables?: Common.UploadableMap | void, ) => Promise; - type RelayNetwork = { + interface RelayNetwork { execute: ExecuteFunction, - }; + } // ~~~~~~~~~~~~~~~~~~~~~ // RelayDefaultHandlerProvider @@ -720,12 +714,12 @@ declare namespace __Relay { // ~~~~~~~~~~~~~~~~~~~~~ // RelayModernEnvironment // ~~~~~~~~~~~~~~~~~~~~~ - type EnvironmentConfig = { + interface EnvironmentConfig { configName?: string, handlerProvider?: typeof HandlerProvider, network: Network, store: Store, - }; + } class Environment { constructor(config: EnvironmentConfig); getStore(): Store; @@ -767,8 +761,8 @@ declare namespace __Relay { // ~~~~~~~~~~~~~~~~~~~~~ // RelayInMemoryRecordSource // ~~~~~~~~~~~~~~~~~~~~~ - type Record = { [key: string]: any }; - type RecordMap = { [dataID: string]: Record | void }; + interface Record { [key: string]: any } + interface RecordMap { [dataID: string]: Record | void } // ~~~~~~~~~~~~~~~~~~~~~ // Network @@ -835,7 +829,7 @@ declare namespace __Relay { } /** * Internal class for inspecting a single Record. - */ + */ class RecordInspector { constructor(sourceInspector: RelayRecordSourceInspector, record: Record); /** @@ -894,12 +888,12 @@ declare namespace __Relay { * Returns a list of ": " for each record in the store that has an * `id`. */ - getNodes(): Array; + getNodes(): RecordSummary[]; /** * Returns a list of ": " for all records in the store including * those that do not have an `id`. */ - getRecords(): Array; + getRecords(): RecordSummary[]; /** * Returns an inspector for the synthesized "root" object, allowing access to @@ -909,21 +903,20 @@ declare namespace __Relay { getRoot(): RecordInspector; } - // ~~~~~~~~~~~~~~~~~~~~~ // RelayObservable // ~~~~~~~~~~~~~~~~~~~~~ - type Subscription = { + interface Subscription { unsubscribe: () => void, readonly closed: boolean, - }; - type Observer = { + } + interface Observer { start?: ((subscription: Subscription) => any) | void, next?: ((nextThing: T) => any) | void, error?: ((error: Error) => any) | void, complete?: (() => any) | void, unsubscribe?: ((subscription: Subscription) => any) | void, - }; + } type Source = () => any; interface Subscribable { subscribe(observer: Observer): Subscription, @@ -1039,7 +1032,6 @@ declare namespace __Relay { toPromise(): Promise; } - // ~~~~~~~~~~~~~~~~~~~~~ // commitLocalUpdate // ~~~~~~~~~~~~~~~~~~~~~ @@ -1053,17 +1045,17 @@ declare namespace __Relay { // commitRelayModernMutation // ~~~~~~~~~~~~~~~~~~~~~ // exposed through RelayModern, not Runtime directly - type MutationConfig = { - configs?: Array, + interface MutationConfig { + configs?: Common.RelayMutationConfig[], mutation: Common.GraphQLTaggedNode, variables: Common.Variables, uploadables?: Common.UploadableMap, - onCompleted?: (response: T, errors: Array | void) => void, + onCompleted?: (response: T, errors: Common.PayloadError[] | void) => void, onError?: (error?: Error) => void, optimisticUpdater?: Common.SelectorStoreUpdater | void, optimisticResponse?: object, updater?: Common.SelectorStoreUpdater | void, - }; + } function commitRelayModernMutation( environment: Environment, config: MutationConfig, @@ -1073,13 +1065,13 @@ declare namespace __Relay { // applyRelayModernOptimisticMutation // ~~~~~~~~~~~~~~~~~~~~~ // exposed through RelayModern, not Runtime directly - type OptimisticMutationConfig = { - configs?: Array, + interface OptimisticMutationConfig { + configs?: Common.RelayMutationConfig[], mutation: Common.GraphQLTaggedNode, variables: Common.Variables, optimisticUpdater?: Common.SelectorStoreUpdater, optimisticResponse?: object, - }; + } // ~~~~~~~~~~~~~~~~~~~~~ // fetchRelayModernQuery @@ -1105,20 +1097,19 @@ declare namespace __Relay { cacheConfig?: Common.CacheConfig | void, ): Promise; // FIXME - $FlowFixMe in facebook source code - // ~~~~~~~~~~~~~~~~~~~~~ // requestRelaySubscription // ~~~~~~~~~~~~~~~~~~~~~ // exposed through RelayModern, not Runtime directly - export type GraphQLSubscriptionConfig = { - configs?: Array, + export interface GraphQLSubscriptionConfig { + configs?: Common.RelayMutationConfig[], subscription: Common.GraphQLTaggedNode, variables: Common.Variables, onCompleted?: () => void, onError?: (error: Error) => void, onNext?: (response: object | void) => void, updater?: (store: Common.RecordSourceSelectorProxy) => void, - }; + } export function requestRelaySubscription( environment: Environment, config: GraphQLSubscriptionConfig, From e85628dc15f1c5f2c952b25b9e8033c869ccd4e9 Mon Sep 17 00:00:00 2001 From: voxmatt Date: Sun, 10 Sep 2017 16:21:13 -1000 Subject: [PATCH 023/506] fixing all linting errors for relay-runtime --- types/relay-runtime/index.d.ts | 354 ++++++++++---------- types/relay-runtime/relay-runtime-tests.tsx | 17 +- 2 files changed, 185 insertions(+), 186 deletions(-) diff --git a/types/relay-runtime/index.d.ts b/types/relay-runtime/index.d.ts index 5904a6067c..4acab12c5b 100644 --- a/types/relay-runtime/index.d.ts +++ b/types/relay-runtime/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for relay-runtime 1.3.0 +// Type definitions for relay-runtime 1.3 // Project: https://github.com/facebook/relay // Definitions by: Matt Martin // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped @@ -50,12 +50,14 @@ declare namespace __Relay { // ~~~~~~~~~~~~~~~~~~~~~ // RelayModernGraphQLTag // ~~~~~~~~~~~~~~~~~~~~~ - interface GeneratedNodeMap { [key: string]: GraphQLTaggedNode } + interface GeneratedNodeMap { + [key: string]: GraphQLTaggedNode; + } type GraphQLTaggedNode = (() => ConcreteFragment | ConcreteBatch) | { - modern: () => ConcreteFragment | ConcreteBatch, - classic: (relayQL: RelayQL) => + modern(): ConcreteFragment | ConcreteBatch, + classic(relayQL: RelayQL): | ConcreteFragmentDefinition | ConcreteOperationDefinition, }; @@ -63,9 +65,13 @@ declare namespace __Relay { // General Usage // ~~~~~~~~~~~~~~~~~~~~~ export type DataID = string; - export interface Variables { [name: string]: any } + export interface Variables { + [name: string]: any; + } export type Uploadable = File | Blob; - export interface UploadableMap { [key: string]: Uploadable } + export interface UploadableMap { + [key: string]: Uploadable; + } // ~~~~~~~~~~~~~~~~~~~~~ // RelayNetworkTypes @@ -74,16 +80,16 @@ declare namespace __Relay { // ~~~~~~~~~~~~~~~~~~~~~ export interface LegacyObserver { - onCompleted?: (() => void) | void, - onError?: ((error: Error) => void) | void, - onNext?: ((data: T) => void) | void, + onCompleted?: (() => void) | void; + onError?: ((error: Error) => void) | void; + onNext?: ((data: T) => void) | void; } export interface PayloadError { - message: string, + message: string; locations?: Array<{ line: number, column: number, - }>, + }>; } /** * A function that executes a GraphQL operation with request/response semantics. @@ -139,61 +145,61 @@ declare namespace __Relay { * fields of a Selector. */ export interface RecordSourceSelectorProxy { - create(dataID: DataID, typeName: string): RecordProxy, - delete(dataID: DataID): void, - get(dataID: DataID): RecordProxy | void, - getRoot(): RecordProxy, - getRootField(fieldName: string): RecordProxy | void, - getPluralRootField(fieldName: string): RecordProxy[] | void, + create(dataID: DataID, typeName: string): RecordProxy; + delete(dataID: DataID): void; + get(dataID: DataID): RecordProxy | void; + getRoot(): RecordProxy; + getRootField(fieldName: string): RecordProxy | void; + getPluralRootField(fieldName: string): RecordProxy[] | void; } export interface RecordProxy { - copyFieldsFrom(source: RecordProxy): void, - getDataID(): DataID, - getLinkedRecord(name: string, args?: Variables | void): RecordProxy | void, - getLinkedRecords(name: string, args?: Variables | void): Array | void, + copyFieldsFrom(source: RecordProxy): void; + getDataID(): DataID; + getLinkedRecord(name: string, args?: Variables | void): RecordProxy | void; + getLinkedRecords(name: string, args?: Variables | void): Array | void; getOrCreateLinkedRecord( name: string, typeName: string, args?: Variables | void, - ): RecordProxy, - getType(): string, - getValue(name: string, args?: Variables | void): any, + ): RecordProxy; + getType(): string; + getValue(name: string, args?: Variables | void): any; setLinkedRecord( record: RecordProxy, name: string, args?: Variables | void, - ): RecordProxy, + ): RecordProxy; setLinkedRecords( records: Array | void, name: string, args?: Variables | void, - ): RecordProxy, - setValue(value: any, name: string, args?: Variables | void): RecordProxy, + ): RecordProxy; + setValue(value: any, name: string, args?: Variables | void): RecordProxy; } export interface RecordSourceProxy { - create(dataID: DataID, typeName: string): RecordProxy, - delete(dataID: DataID): void, - get(dataID: DataID): Array | void, - getRoot(): RecordProxy, + create(dataID: DataID, typeName: string): RecordProxy; + delete(dataID: DataID): void; + get(dataID: DataID): Array | void; + getRoot(): RecordProxy; } export interface HandleFieldPayload { // The arguments that were fetched. - args: Variables, + args: Variables; // The __id of the record containing the source/handle field. - dataID: DataID, + dataID: DataID; // The (storage) key at which the original server data was written. - fieldKey: string, - // The name of the handle. - handle: string, + fieldKey: string; + // The name of the handle + handle: string; // The (storage) key at which the handle's data should be written by the - // handler. - handleKey: string, + // handler + handleKey: string; } interface HandlerInterface { - update: (store: RecordSourceProxy, fieldPayload: HandleFieldPayload) => void; + update(store: RecordSourceProxy, fieldPayload: HandleFieldPayload): void; [functionName: string]: (...args: any[]) => any; } export const Handler: HandlerInterface; @@ -212,8 +218,8 @@ declare namespace __Relay { * in milliseconds. (This value will be passed to setTimeout.) */ export interface CacheConfig { - force?: boolean | void, - poll?: number | void, + force?: boolean | void; + poll?: number | void; } /** @@ -222,32 +228,32 @@ declare namespace __Relay { * would cancel the subscription. */ export interface Disposable { - dispose(): void, + dispose(): void; } /** * Arbitrary data e.g. received by a container as props. */ - export interface Props { [key: string]: any } + export interface Props { [key: string]: any; } /* * An individual cached graph object. */ - export interface Record { [key: string]: any } + export interface Record { [key: string]: any; } /** * A collection of records keyed by id. */ - export interface RecordMap { [dataID: string]: Record | void } + export interface RecordMap { [dataID: string]: Record | void; } /** * A selector defines the starting point for a traversal into the graph for the * purposes of targeting a subgraph. */ export interface CSelector { - dataID: DataID, - node: TNode, - variables: Variables, + dataID: DataID; + node: TNode; + variables: Variables; } /** @@ -261,13 +267,13 @@ declare namespace __Relay { /** * The results of a selector given a store/RecordSource. */ - export interface SelectorData { [key: string]: any } + export interface SelectorData { [key: string]: any; } /** * The results of reading the results of a FragmentMap given some input * `Props`. */ - export interface FragmentSpecResults { [key: string]: any } + export interface FragmentSpecResults { [key: string]: any; } /** * A utility for resolving and subscribing to the results of a fragment spec @@ -284,27 +290,27 @@ declare namespace __Relay { /** * Stop watching for changes to the results of the fragments. */ - dispose(): void, + dispose(): void; /** * Get the current results. */ - resolve(): FragmentSpecResults, + resolve(): FragmentSpecResults; /** * Update the resolver with new inputs. Call `resolve()` to get the updated * results. */ - setProps(props: Props): void, + setProps(props: Props): void; /** * Override the variables used to read the results of the fragments. Call * `resolve()` to get the updated results. */ - setVariables(variables: Variables): void, + setVariables(variables: Variables): void; } - export interface CFragmentMap { [key: string]: TFragment } + export interface CFragmentMap { [key: string]: TFragment; } /** * An operation selector describes a specific instance of a GraphQL operation @@ -316,10 +322,10 @@ declare namespace __Relay { * the results of the the operation. */ export interface COperationSelector { - fragment: CSelector, - node: TOperation, - root: CSelector, - variables: Variables, + fragment: CSelector; + node: TOperation; + root: CSelector; + variables: Variables; } /** @@ -333,11 +339,11 @@ declare namespace __Relay { TNode, TOperation, TPayload, - > { + > { /** * Read the results of a selector from in-memory records in the store. */ - lookup(selector: CSelector): CSnapshot, + lookup(selector: CSelector): CSnapshot; /** * Subscribe to changes to the results of a selector. The callback is called @@ -347,7 +353,7 @@ declare namespace __Relay { subscribe( snapshot: CSnapshot, callback: (snapshot: CSnapshot) => void, - ): Disposable, + ): Disposable; /** * Ensure that all the records necessary to fulfill the given selector are @@ -356,7 +362,7 @@ declare namespace __Relay { * * Note: This is a no-op in the classic core. */ - retain(selector: CSelector): Disposable, + retain(selector: CSelector): Disposable; /** * Send a query to the server with request/response semantics: the query will @@ -375,7 +381,7 @@ declare namespace __Relay { onError?: Maybe<(error: Error) => void>, onNext?: Maybe<(payload: TPayload) => void>, operation: COperationSelector, - }): Disposable, + }): Disposable; /** * Send a query to the server with request/subscription semantics: one or more @@ -391,15 +397,15 @@ declare namespace __Relay { onError?: Maybe<(error: Error) => void>, onNext?: Maybe<(payload: TPayload) => void>, operation: COperationSelector, - }): Disposable, + }): Disposable; unstable_internal: CUnstableEnvironmentCore< - TEnvironment, - TFragment, - TGraphQLTaggedNode, - TNode, - TOperation - >, + TEnvironment, + TFragment, + TGraphQLTaggedNode, + TNode, + TOperation + >; } export interface CUnstableEnvironmentCore< @@ -408,7 +414,7 @@ declare namespace __Relay { TGraphQLTaggedNode, TNode, TOperation, - > { + > { /** * Create an instance of a FragmentSpecResolver. * @@ -416,13 +422,13 @@ declare namespace __Relay { * defined here, so this could be moved out of core. It's convenient to have * separate implementations until the experimental core is in OSS. */ - createFragmentSpecResolver: ( + createFragmentSpecResolver( context: CRelayContext, containerName: string, fragments: CFragmentMap, props: Props, callback: () => void, - ) => FragmentSpecResolver, + ): FragmentSpecResolver; /** * Creates an instance of an OperationSelector given an operation definition @@ -430,30 +436,30 @@ declare namespace __Relay { * filtered to exclude variables that do not matche defined arguments on the * operation, and default values are populated for null values. */ - createOperationSelector: ( + createOperationSelector( operation: TOperation, variables: Variables, - ) => COperationSelector, + ): COperationSelector; /** * Given a graphql`...` tagged template, extract a fragment definition usable * by this version of Relay core. Throws if the value is not a fragment. */ - getFragment: (node: TGraphQLTaggedNode) => TFragment, + getFragment(node: TGraphQLTaggedNode): TFragment; /** * Given a graphql`...` tagged template, extract an operation definition * usable by this version of Relay core. Throws if the value is not an * operation. */ - getOperation: (node: TGraphQLTaggedNode) => TOperation, + getOperation(node: TGraphQLTaggedNode): TOperation; /** * Determine if two selectors are equal (represent the same selection). Note * that this function returns `false` when the two queries/fragments are * different objects, even if they select the same fields. */ - areEqualSelectors: (a: CSelector, b: CSelector) => boolean, + areEqualSelectors(a: CSelector, b: CSelector): boolean; /** * Given the result `item` from a parent that fetched `fragment`, creates a @@ -482,11 +488,11 @@ declare namespace __Relay { * const childData = environment.lookup(childSelector).data; * ``` */ - getSelector: ( + getSelector( operationVariables: Variables, fragment: TFragment, prop: any, - ) => CSelector | void, + ): CSelector | void; /** * Given the result `items` from a parent that fetched `fragment`, creates a @@ -494,11 +500,11 @@ declare namespace __Relay { * items. This is similar to `getSelector` but for "plural" fragments that * expect an array of results and therefore return an array of selectors. */ - getSelectorList: ( + getSelectorList( operationVariables: Variables, fragment: TFragment, props: any[], - ) => Array> | void, + ): Array> | void; /** * Given a mapping of keys -> results and a mapping of keys -> fragments, @@ -508,11 +514,11 @@ declare namespace __Relay { * use this function to convert (props, fragments) into selectors so that they * can read the results to pass to the inner component. */ - getSelectorsFromObject: ( + getSelectorsFromObject( operationVariables: Variables, fragments: CFragmentMap, props: Props, - ) => { [key: string]: Maybe<(CSelector | Array>)> }, + ): { [key: string]: Maybe<(CSelector | Array>)> }; /** * Given a mapping of keys -> results and a mapping of keys -> fragments, @@ -521,10 +527,10 @@ declare namespace __Relay { * Similar to `getSelectorsFromObject()`, this function can be useful in * determining the "identity" of the props passed to a component. */ - getDataIDsFromObject: ( + getDataIDsFromObject( fragments: CFragmentMap, props: Props, - ) => { [key: string]: Maybe<(DataID | DataID[])> }, + ): { [key: string]: Maybe<(DataID | DataID[])> }; /** * Given a mapping of keys -> results and a mapping of keys -> fragments, @@ -534,11 +540,11 @@ declare namespace __Relay { * This can be useful in determing what varaibles were used to fetch the data * for a Relay container, for example. */ - getVariablesFromObject: ( + getVariablesFromObject( operationVariables: Variables, fragments: CFragmentMap, props: Props, - ) => Variables, + ): Variables; } /** @@ -546,8 +552,8 @@ declare namespace __Relay { * integration layer (e.g. QueryRenderer, FragmentContainer, etc). */ export interface CRelayContext { - environment: TEnvironment, - variables: Variables, + environment: TEnvironment; + variables: Variables; } // ~~~~~~~~~~~~~~~~~~~~~ @@ -559,49 +565,49 @@ declare namespace __Relay { */ // ~~~~~~~~~~~~~~~~~~~~~ export interface RerunParam { - param: string, - import: string, - max_runs: number, + param: string; + import: string; + max_runs: number; } interface FIELDS_CHANGE { - type: 'FIELDS_CHANGE', - fieldIDs: { [fieldName: string]: DataID | DataID[] }, + type: 'FIELDS_CHANGE'; + fieldIDs: { [fieldName: string]: DataID | DataID[]; }; } interface RANGE_ADD { - type: 'RANGE_ADD', - parentName?: string, - parentID?: string, + type: 'RANGE_ADD'; + parentName?: string; + parentID?: string; connectionInfo?: Array<{ key: string, filters?: Variables, rangeBehavior: string, - }>, - connectionName?: string, - edgeName: string, - rangeBehaviors?: RangeBehaviors, + }>; + connectionName?: string; + edgeName: string; + rangeBehaviors?: RangeBehaviors; } interface NODE_DELETE { - type: 'NODE_DELETE', - parentName?: string, - parentID?: string, - connectionName?: string, - deletedIDFieldName: string, + type: 'NODE_DELETE'; + parentName?: string; + parentID?: string; + connectionName?: string; + deletedIDFieldName: string; } interface RANGE_DELETE { - type: 'RANGE_DELETE', - parentName?: string, - parentID?: string, + type: 'RANGE_DELETE'; + parentName?: string; + parentID?: string; connectionKeys?: Array<{ key: string, filters?: Variables, - }>, - connectionName?: string, - deletedIDFieldName: string | string[], - pathToConnection: string[], + }>; + connectionName?: string; + deletedIDFieldName: string | string[]; + pathToConnection: string[]; } interface REQUIRED_CHILDREN { - type: 'REQUIRED_CHILDREN', - children: RelayConcreteNode[], + type: 'REQUIRED_CHILDREN'; + children: RelayConcreteNode[]; } export type RelayMutationConfig = FIELDS_CHANGE | @@ -611,8 +617,8 @@ declare namespace __Relay { REQUIRED_CHILDREN; export interface RelayMutationTransactionCommitCallbacks { - onFailure?: RelayMutationTransactionCommitFailureCallback, - onSuccess?: RelayMutationTransactionCommitSuccessCallback, + onFailure?: RelayMutationTransactionCommitFailureCallback; + onSuccess?: RelayMutationTransactionCommitSuccessCallback; } export type RelayMutationTransactionCommitFailureCallback = ( transaction: RelayMutationTransaction, @@ -622,22 +628,22 @@ declare namespace __Relay { [key: string]: any, }) => void; export interface NetworkLayer { - sendMutation(request: RelayMutationRequest): Promise | void, - sendQueries(requests: RelayQueryRequest[]): Promise | void, - supports(...options: string[]): boolean, + sendMutation(request: RelayMutationRequest): Promise | void; + sendQueries(requests: RelayQueryRequest[]): Promise | void; + supports(...options: string[]): boolean; } export interface QueryResult { - error?: Error | void, - ref_params?: { [name: string]: any } | void, - response: QueryPayload, + error?: Error | void; + ref_params?: { [name: string]: any } | void; + response: QueryPayload; } export interface ReadyState { - aborted: boolean, - done: boolean, - error: Error | void, - events: ReadyStateEvent[], - ready: boolean, - stale: boolean, + aborted: boolean; + done: boolean; + error: Error | void; + events: ReadyStateEvent[]; + ready: boolean; + stale: boolean; } type RelayContainerErrorEventType = | 'CACHE_RESTORE_FAILED' @@ -652,12 +658,12 @@ declare namespace __Relay { | 'STORE_FOUND_ALL' | 'STORE_FOUND_REQUIRED'; export type ReadyStateChangeCallback = (readyState: ReadyState) => void; - export type ReadyStateEvent = { - type: RelayContainerLoadingEventType | RelayContainerErrorEventType, - error?: Error, - }; + export interface ReadyStateEvent { + type: RelayContainerLoadingEventType | RelayContainerErrorEventType; + error?: Error; + } export interface Abortable { - abort(): void, + abort(): void; } // ~~~~~~~~~~~~~~~~~~~~~ @@ -668,8 +674,8 @@ declare namespace __Relay { * https://github.com/facebook/relay/blob/master/packages/react-relay/classic/tools/RelayInternalTypes.js */ // ~~~~~~~~~~~~~~~~~~~~~ - export interface QueryPayload { [key: string]: any } - export interface RelayQuerySet { [queryName: string]: any } + export interface QueryPayload { [key: string]: any; } + export interface RelayQuerySet { [queryName: string]: any; } type RangeBehaviorsFunction = (connectionArgs: { [argName: string]: any, }) => 'APPEND' | 'IGNORE' | 'PREPEND' | 'REFETCH' | 'REMOVE'; @@ -703,7 +709,7 @@ declare namespace __Relay { uploadables?: Common.UploadableMap | void, ) => Promise; interface RelayNetwork { - execute: ExecuteFunction, + execute: ExecuteFunction; } // ~~~~~~~~~~~~~~~~~~~~~ @@ -715,10 +721,10 @@ declare namespace __Relay { // RelayModernEnvironment // ~~~~~~~~~~~~~~~~~~~~~ interface EnvironmentConfig { - configName?: string, - handlerProvider?: typeof HandlerProvider, - network: Network, - store: Store, + configName?: string; + handlerProvider?: typeof HandlerProvider; + network: Network; + store: Store; } class Environment { constructor(config: EnvironmentConfig); @@ -761,8 +767,8 @@ declare namespace __Relay { // ~~~~~~~~~~~~~~~~~~~~~ // RelayInMemoryRecordSource // ~~~~~~~~~~~~~~~~~~~~~ - interface Record { [key: string]: any } - interface RecordMap { [dataID: string]: Record | void } + interface Record { [key: string]: any; } + interface RecordMap { [dataID: string]: Record | void; } // ~~~~~~~~~~~~~~~~~~~~~ // Network @@ -907,19 +913,19 @@ declare namespace __Relay { // RelayObservable // ~~~~~~~~~~~~~~~~~~~~~ interface Subscription { - unsubscribe: () => void, - readonly closed: boolean, + unsubscribe(): void; + readonly closed: boolean; } interface Observer { - start?: ((subscription: Subscription) => any) | void, - next?: ((nextThing: T) => any) | void, - error?: ((error: Error) => any) | void, - complete?: (() => any) | void, - unsubscribe?: ((subscription: Subscription) => any) | void, + start?: ((subscription: Subscription) => any) | void; + next?: ((nextThing: T) => any) | void; + error?: ((error: Error) => any) | void; + complete?: (() => any) | void; + unsubscribe?: ((subscription: Subscription) => any) | void; } type Source = () => any; interface Subscribable { - subscribe(observer: Observer): Subscription, + subscribe(observer: Observer): Subscription; } type ObservableFromValue = RelayObservable | Promise | T; class RelayObservable implements Subscribable { @@ -1046,15 +1052,15 @@ declare namespace __Relay { // ~~~~~~~~~~~~~~~~~~~~~ // exposed through RelayModern, not Runtime directly interface MutationConfig { - configs?: Common.RelayMutationConfig[], - mutation: Common.GraphQLTaggedNode, - variables: Common.Variables, - uploadables?: Common.UploadableMap, - onCompleted?: (response: T, errors: Common.PayloadError[] | void) => void, - onError?: (error?: Error) => void, - optimisticUpdater?: Common.SelectorStoreUpdater | void, - optimisticResponse?: object, - updater?: Common.SelectorStoreUpdater | void, + configs?: Common.RelayMutationConfig[]; + mutation: Common.GraphQLTaggedNode; + variables: Common.Variables; + uploadables?: Common.UploadableMap; + onCompleted?(response: T, errors: Common.PayloadError[] | void): void; + onError?(error?: Error): void; + optimisticUpdater?: Common.SelectorStoreUpdater | void; + optimisticResponse?: object; + updater?: Common.SelectorStoreUpdater | void; } function commitRelayModernMutation( environment: Environment, @@ -1066,11 +1072,11 @@ declare namespace __Relay { // ~~~~~~~~~~~~~~~~~~~~~ // exposed through RelayModern, not Runtime directly interface OptimisticMutationConfig { - configs?: Common.RelayMutationConfig[], - mutation: Common.GraphQLTaggedNode, - variables: Common.Variables, - optimisticUpdater?: Common.SelectorStoreUpdater, - optimisticResponse?: object, + configs?: Common.RelayMutationConfig[]; + mutation: Common.GraphQLTaggedNode; + variables: Common.Variables; + optimisticUpdater?: Common.SelectorStoreUpdater; + optimisticResponse?: object; } // ~~~~~~~~~~~~~~~~~~~~~ @@ -1102,13 +1108,13 @@ declare namespace __Relay { // ~~~~~~~~~~~~~~~~~~~~~ // exposed through RelayModern, not Runtime directly export interface GraphQLSubscriptionConfig { - configs?: Common.RelayMutationConfig[], - subscription: Common.GraphQLTaggedNode, - variables: Common.Variables, - onCompleted?: () => void, - onError?: (error: Error) => void, - onNext?: (response: object | void) => void, - updater?: (store: Common.RecordSourceSelectorProxy) => void, + configs?: Common.RelayMutationConfig[]; + subscription: Common.GraphQLTaggedNode; + variables: Common.Variables; + onCompleted?(): void; + onError?(error: Error): void; + onNext?(response: object | void): void; + updater?(store: Common.RecordSourceSelectorProxy): void; } export function requestRelaySubscription( environment: Environment, diff --git a/types/relay-runtime/relay-runtime-tests.tsx b/types/relay-runtime/relay-runtime-tests.tsx index 609399f079..c6dd9c15a2 100644 --- a/types/relay-runtime/relay-runtime-tests.tsx +++ b/types/relay-runtime/relay-runtime-tests.tsx @@ -3,6 +3,8 @@ import { Network, RecordSource, Store, + ConnectionHandler, + ViewerHandler, } from 'relay-runtime'; const source = new RecordSource(); @@ -20,15 +22,11 @@ function fetchQuery( ) { return fetch('/graphql', { method: 'POST', - headers: { - // Add authentication and other headers here - 'content-type': 'application/json' - }, body: JSON.stringify({ - query: operation.text, // GraphQL text from input - variables, + query: operation.text, // GraphQL text from input + variables, }), - }).then(response => { + }).then((response: any) => { return response.json(); }); } @@ -49,11 +47,6 @@ const environment = new Environment({ // Handler Provider // ~~~~~~~~~~~~~~~~~~~~~ -import { - ConnectionHandler, - ViewerHandler, -} from 'relay-runtime'; - function handlerProvider(handle: any) { switch (handle) { // Augment (or remove from) this list: From c2ea2eb7c4c5ba8505c54fd46b7864b53b7f9a84 Mon Sep 17 00:00:00 2001 From: voxmatt Date: Sun, 10 Sep 2017 16:36:14 -1000 Subject: [PATCH 024/506] starting in on the linting errors in react-relay --- types/react-relay/index.d.ts | 569 +++++++++++++++++------------------ 1 file changed, 280 insertions(+), 289 deletions(-) diff --git a/types/react-relay/index.d.ts b/types/react-relay/index.d.ts index a165229584..eb940d296d 100644 --- a/types/react-relay/index.d.ts +++ b/types/react-relay/index.d.ts @@ -1,281 +1,274 @@ -// Type definitions for react-relay 1.3.0 +// Type definitions for react-relay 1.3 // Project: https://github.com/facebook/relay // Definitions by: Johannes Schickling , Matt Martin // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.4 -/// /// -//////////////////////////// -// RELAY MODERN TYPES -/////////////////////////// +declare namespace __Relay { -declare namespace __Relay.Modern { - // ~~~~~~~~~~~~~~~~~~~~~ - // Maybe Fix - // ~~~~~~~~~~~~~~~~~~~~~ - type ConcreteFragment = any; - type ConcreteBatch = any; - type ConcreteFragmentDefinition = object; - type ConcreteOperationDefinition = object; - type ReactBaseComponent = React.ComponentClass | React.StatelessComponent; + //////////////////////////// + // RELAY MODERN TYPES + /////////////////////////// + namespace Modern { + // ~~~~~~~~~~~~~~~~~~~~~ + // Maybe Fix + // ~~~~~~~~~~~~~~~~~~~~~ + type ConcreteFragment = any; + type ConcreteBatch = any; + type ConcreteFragmentDefinition = object; + type ConcreteOperationDefinition = object; + type ReactBaseComponent = React.ComponentClass | React.StatelessComponent; - // ~~~~~~~~~~~~~~~~~~~~~ - // RelayProp - // ~~~~~~~~~~~~~~~~~~~~~ - // note: refetch and pagination containers augment this - export type RelayProp = { - environment: Runtime.Environment, - }; + // ~~~~~~~~~~~~~~~~~~~~~ + // RelayProp + // ~~~~~~~~~~~~~~~~~~~~~ + // note: refetch and pagination containers augment this + export interface RelayProp { + environment: Runtime.Environment; + } - // ~~~~~~~~~~~~~~~~~~~~~ - // RelayQL - // ~~~~~~~~~~~~~~~~~~~~~ - export function RelayQL( - strings: Array, - ...substitutions: Array - ): Common.RelayConcreteNode; + // ~~~~~~~~~~~~~~~~~~~~~ + // RelayQL + // ~~~~~~~~~~~~~~~~~~~~~ + export function RelayQL( + strings: string[], + ...substitutions: any[] + ): Common.RelayConcreteNode; - // ~~~~~~~~~~~~~~~~~~~~~ - // RelayModernGraphQLTag - // ~~~~~~~~~~~~~~~~~~~~~ - type GeneratedNodeMap = {[key: string]: GraphQLTaggedNode}; - type GraphQLTaggedNode = - | (() => ConcreteFragment | ConcreteBatch) - | { - modern: () => ConcreteFragment | ConcreteBatch, - classic: (relayQL: typeof RelayQL) => - | ConcreteFragmentDefinition - | ConcreteOperationDefinition, - }; - /** - * Runtime function to correspond to the `graphql` tagged template function. - * All calls to this function should be transformed by the plugin. - */ - interface IGraphql { - (strings: Array | TemplateStringsArray): GraphQLTaggedNode; - experimental: (strings: Array | TemplateStringsArray) => GraphQLTaggedNode; - } - export const graphql: IGraphql; + // ~~~~~~~~~~~~~~~~~~~~~ + // RelayModernGraphQLTag + // ~~~~~~~~~~~~~~~~~~~~~ + interface GeneratedNodeMap { [key: string]: GraphQLTaggedNode; } + type GraphQLTaggedNode = + (() => ConcreteFragment | ConcreteBatch) + | { + modern(): ConcreteFragment | ConcreteBatch, + classic(relayQL: typeof RelayQL): + | ConcreteFragmentDefinition + | ConcreteOperationDefinition, + }; + /** + * Runtime function to correspond to the `graphql` tagged template function. + * All calls to this function should be transformed by the plugin. + */ + interface GraphqlInterface { + (strings: string[] | TemplateStringsArray): GraphQLTaggedNode; + experimental(strings: string[] | TemplateStringsArray): GraphQLTaggedNode; + } + export const graphql: GraphqlInterface; - // ~~~~~~~~~~~~~~~~~~~~~ - // ReactRelayQueryRenderer - // ~~~~~~~~~~~~~~~~~~~~~ - type QueryRendererProps = { - cacheConfig?: __Relay.Common.CacheConfig | void, - environment: __Relay.Runtime.Environment, - query: GraphQLTaggedNode, - render: (readyState: ReadyState) => React.ReactElement | void, - variables: Common.Variables, - rerunParamExperimental?: Common.RerunParam, - }; - export type ReadyState = { - error: Error | void, - props: { [propName: string]: any } | void, - retry: (() => void) | void, - }; - type QueryRendererState = { - readyState: ReadyState, - }; - class ReactRelayQueryRenderer extends React.Component {} + // ~~~~~~~~~~~~~~~~~~~~~ + // ReactRelayQueryRenderer + // ~~~~~~~~~~~~~~~~~~~~~ + interface QueryRendererProps { + cacheConfig?: Common.CacheConfig | void; + environment: Runtime.Environment; + query: GraphQLTaggedNode; + render(readyState: ReadyState): React.ReactElement | void; + variables: Common.Variables; + rerunParamExperimental?: Common.RerunParam; + } + export interface ReadyState { + error: Error | void; + props: { [propName: string]: any } | void; + retry: (() => void) | void; + } + interface QueryRendererState { + readyState: ReadyState; + } + class ReactRelayQueryRenderer extends React.Component { } - // ~~~~~~~~~~~~~~~~~~~~~ - // createFragmentContainer - // ~~~~~~~~~~~~~~~~~~~~~ - export function createFragmentContainer( - Component: ReactBaseComponent, - fragmentSpec: GraphQLTaggedNode | GeneratedNodeMap, - ): ReactBaseComponent; + // ~~~~~~~~~~~~~~~~~~~~~ + // createFragmentContainer + // ~~~~~~~~~~~~~~~~~~~~~ + export function createFragmentContainer( + Component: ReactBaseComponent, + fragmentSpec: GraphQLTaggedNode | GeneratedNodeMap, + ): ReactBaseComponent; - // ~~~~~~~~~~~~~~~~~~~~~ - // createPaginationContainer - // ~~~~~~~~~~~~~~~~~~~~~ - type PageInfo = { - endCursor: string | void, - hasNextPage: boolean, - hasPreviousPage: boolean, - startCursor: string | void, - }; - type ConnectionData = { - edges?: any[], - pageInfo?: PageInfo | void, - }; - export type RelayPaginationProp = RelayProp & { - hasMore: () => boolean, - isLoading: () => boolean, - loadMore: ( - pageSize: number, - callback: (error?: Error) => void, - options?: RefetchOptions, - ) => Common.Disposable | void, - refetchConnection: ( + // ~~~~~~~~~~~~~~~~~~~~~ + // createPaginationContainer + // ~~~~~~~~~~~~~~~~~~~~~ + interface PageInfo { + endCursor: string | void; + hasNextPage: boolean; + hasPreviousPage: boolean; + startCursor: string | void; + } + interface ConnectionData { + edges?: any[]; + pageInfo?: PageInfo | void; + } + export type RelayPaginationProp = RelayProp & { + hasMore(): boolean, + isLoading(): boolean, + loadMore( + pageSize: number, + callback: (error?: Error) => void, + options?: RefetchOptions, + ): Common.Disposable | void, + refetchConnection( + totalCount: number, + callback: (error?: Error | void) => void, + refetchVariables?: Common.Variables | void, + ): Common.Disposable | void, + }; + export function FragmentVariablesGetter( + prevVars: Common.Variables, totalCount: number, - callback: (error?: Error | void) => void, - refetchVariables?: Common.Variables | void, - ) => Common.Disposable | void, - }; - export function FragmentVariablesGetter( - prevVars: Common.Variables, - totalCount: number, - ): Common.Variables; - type ConnectionConfig = { - direction?: 'backward' | 'forward', - getConnectionFromProps?: (props: object) => ConnectionData | void, - getFragmentVariables?: typeof FragmentVariablesGetter, - getVariables: ( - props: {[propName: string]: any }, - paginationInfo: {count: number, cursor: string | void}, - fragmentVariables: Common.Variables, - ) => Common.Variables, - query: GraphQLTaggedNode, - }; - export function createPaginationContainer( - Component: ReactBaseComponent, - fragmentSpec: GraphQLTaggedNode | GeneratedNodeMap, - connectionConfig: ConnectionConfig, - ): ReactBaseComponent; + ): Common.Variables; + interface ConnectionConfig { + direction?: 'backward' | 'forward'; + getConnectionFromProps?(props: object): ConnectionData | void; + getFragmentVariables?: typeof FragmentVariablesGetter; + getVariables( + props: { [propName: string]: any }, + paginationInfo: { count: number, cursor: string | void }, + fragmentVariables: Common.Variables, + ): Common.Variables; + query: GraphQLTaggedNode; + } + export function createPaginationContainer( + Component: ReactBaseComponent, + fragmentSpec: GraphQLTaggedNode | GeneratedNodeMap, + connectionConfig: ConnectionConfig, + ): ReactBaseComponent; - // ~~~~~~~~~~~~~~~~~~~~~ - // createFragmentContainer - // ~~~~~~~~~~~~~~~~~~~~~ - export type RefetchOptions = { - force?: boolean, - rerunParamExperimental?: Common.RerunParam, - }; - export type RelayRefetchProp = RelayProp & { - refetch: ( - refetchVariables: Common.Variables | ((fragmentVariables: Common.Variables) => Common.Variables), - renderVariables?: Common.Variables, - callback?: (error: Error | void) => void, - options?: RefetchOptions, - ) => Common.Disposable, - }; - export function createRefetchContainer( - Component: ReactBaseComponent, - fragmentSpec: GraphQLTaggedNode | GeneratedNodeMap, - taggedNode: GraphQLTaggedNode, - ): ReactBaseComponent; + // ~~~~~~~~~~~~~~~~~~~~~ + // createFragmentContainer + // ~~~~~~~~~~~~~~~~~~~~~ + export interface RefetchOptions { + force?: boolean; + rerunParamExperimental?: Common.RerunParam; + } + export type RelayRefetchProp = RelayProp & { + refetch( + refetchVariables: Common.Variables | ((fragmentVariables: Common.Variables) => Common.Variables), + renderVariables?: Common.Variables, + callback?: (error: Error | void) => void, + options?: RefetchOptions, + ): Common.Disposable, + }; + export function createRefetchContainer( + Component: ReactBaseComponent, + fragmentSpec: GraphQLTaggedNode | GeneratedNodeMap, + taggedNode: GraphQLTaggedNode, + ): ReactBaseComponent; + } + //////////////////////////// + // RELAY CLASSIC TYPES + /////////////////////////// + // note: the namespace here is really for use inside of + // relay-compat; the module declaration below + // uses the old, pre-existing types + namespace Classic { + // ~~~~~~~~~~~~~~~~~~~~~ + // Maybe Fix + // ~~~~~~~~~~~~~~~~~~~~~ + type StoreReaderData = any; + type StoreReaderOptions = any; + type RelayStoreData = any; + interface RelayQuery { Fragment: any; Node: any; Root: any; } + // ~~~~~~~~~~~~~~~~~~~~~ + // Environment + // ~~~~~~~~~~~~~~~~~~~~~ + interface FragmentResolver { + dispose(): void; + resolve( + fragment: RelayQuery["Fragment"], + dataIDs: Common.DataID | Common.DataID[], + ): (StoreReaderData | StoreReaderData[]) | void; + } + interface RelayEnvironmentInterface { + forceFetch( + querySet: Common.RelayQuerySet, + onReadyStateChange: Common.ReadyStateChangeCallback, + ): Common.Abortable; + getFragmentResolver( + fragment: RelayQuery["Fragment"], + onNext: () => void, + ): FragmentResolver; + getStoreData(): RelayStoreData; + primeCache( + querySet: Common.RelayQuerySet, + onReadyStateChange: Common.ReadyStateChangeCallback, + ): Common.Abortable; + read( + node: RelayQuery["Node"], + dataID: Common.DataID, + options?: StoreReaderOptions, + ): StoreReaderData | void; + readQuery( + root: RelayQuery["Root"], + options?: StoreReaderOptions, + ): StoreReaderData[] | void; + } + } + //////////////////////////// + // RELAY COMPAT TYPES + /////////////////////////// + namespace Compat { + // ~~~~~~~~~~~~~~~~~~~~~ + // Maybe Fix + // ~~~~~~~~~~~~~~~~~~~~~ + type ConcreteFragment = any; + type ConcreteBatch = any; + type ConcreteFragmentDefinition = object; + type ConcreteOperationDefinition = object; + + // ~~~~~~~~~~~~~~~~~~~~~ + // Util + // ~~~~~~~~~~~~~~~~~~~~~ + export function getFragment(q: string, v?: Common.Variables): string; + interface ComponentWithFragment extends React.ComponentClass { + getFragment: typeof getFragment; + } + interface StatelessWithFragment extends React.StatelessComponent { + getFragment: typeof getFragment; + } + type ReactFragmentComponent = ComponentWithFragment | StatelessWithFragment; + type ReactBaseComponent = React.ComponentClass | React.StatelessComponent; + export type RelayClassicEnvironment = Classic.RelayEnvironmentInterface; + + // ~~~~~~~~~~~~~~~~~~~~~ + // RelayCompatTypes + // ~~~~~~~~~~~~~~~~~~~~~ + export type CompatEnvironment = Runtime.Environment | RelayClassicEnvironment; + + // ~~~~~~~~~~~~~~~~~~~~~ + // RelayCompatMutations + // ~~~~~~~~~~~~~~~~~~~~~ + export function commitUpdate( + environment: CompatEnvironment, + config: Runtime.MutationConfig, + ): Common.Disposable; + export function applyUpdate( + environment: CompatEnvironment, + config: Runtime.OptimisticMutationConfig, + ): Common.Disposable; + + // ~~~~~~~~~~~~~~~~~~~~~ + // RelayCompatContainer + // ~~~~~~~~~~~~~~~~~~~~~ + export interface GeneratedNodeMap { [key: string]: Modern.GraphQLTaggedNode; } + export function createContainer( + Component: ReactBaseComponent, + fragmentSpec: Modern.GraphQLTaggedNode | GeneratedNodeMap, + ): ReactFragmentComponent; + + // ~~~~~~~~~~~~~~~~~~~~~ + // injectDefaultVariablesProvider + // ~~~~~~~~~~~~~~~~~~~~~ + type VariablesProvider = () => Common.Variables; + export function injectDefaultVariablesProvider(variablesProvider: VariablesProvider): void; + } } - - -//////////////////////////// -// RELAY CLASSIC TYPES -/////////////////////////// -// note: the namespace here is really for use inside of -// relay-compat; the module declaration below -// uses the old, pre-existing types -declare namespace __Relay.Classic { - // ~~~~~~~~~~~~~~~~~~~~~ - // Maybe Fix - // ~~~~~~~~~~~~~~~~~~~~~ - type StoreReaderData = any; - type StoreReaderOptions = any; - type RelayStoreData = any; - type RelayQuery = { Fragment: any; Node: any; Root: any;}; - - // ~~~~~~~~~~~~~~~~~~~~~ - // Environment - // ~~~~~~~~~~~~~~~~~~~~~ - type FragmentResolver = { - dispose(): void, - resolve( - fragment: RelayQuery["Fragment"], - dataIDs: Common.DataID | Array, - ): (StoreReaderData | Array) | void, - }; - interface RelayEnvironmentInterface { - forceFetch( - querySet: Common.RelayQuerySet, - onReadyStateChange: Common.ReadyStateChangeCallback, - ): Common.Abortable, - getFragmentResolver( - fragment: RelayQuery["Fragment"], - onNext: () => void, - ): FragmentResolver, - getStoreData(): RelayStoreData, - primeCache( - querySet: Common.RelayQuerySet, - onReadyStateChange: Common.ReadyStateChangeCallback, - ): Common.Abortable, - read( - node: RelayQuery["Node"], - dataID: Common.DataID, - options?: StoreReaderOptions, - ): StoreReaderData | void, - readQuery( - root: RelayQuery["Root"], - options?: StoreReaderOptions, - ): Array | void, - } - } - -//////////////////////////// -// RELAY COMPAT TYPES -/////////////////////////// - -declare namespace __Relay.Compat { - // ~~~~~~~~~~~~~~~~~~~~~ - // Maybe Fix - // ~~~~~~~~~~~~~~~~~~~~~ - type ConcreteFragment = any; - type ConcreteBatch = any; - type ConcreteFragmentDefinition = object; - type ConcreteOperationDefinition = object; - - - // ~~~~~~~~~~~~~~~~~~~~~ - // Util - // ~~~~~~~~~~~~~~~~~~~~~ - export function getFragment(q: string, v?: Common.Variables): string; - interface ComponentWithFragment extends React.ComponentClass { - getFragment: typeof getFragment; - } - interface StatelessWithFragment extends React.StatelessComponent { - getFragment: typeof getFragment; - } - type ReactFragmentComponent = ComponentWithFragment | StatelessWithFragment; - type ReactBaseComponent = React.ComponentClass | React.StatelessComponent; - export type RelayClassicEnvironment = Classic.RelayEnvironmentInterface; - - // ~~~~~~~~~~~~~~~~~~~~~ - // RelayCompatTypes - // ~~~~~~~~~~~~~~~~~~~~~ - export type CompatEnvironment = Runtime.Environment | RelayClassicEnvironment; - - // ~~~~~~~~~~~~~~~~~~~~~ - // RelayCompatMutations - // ~~~~~~~~~~~~~~~~~~~~~ - export function commitUpdate( - environment: CompatEnvironment, - config: Runtime.MutationConfig, - ): Common.Disposable; - export function applyUpdate( - environment: CompatEnvironment, - config: Runtime.OptimisticMutationConfig, - ): Common.Disposable; - - // ~~~~~~~~~~~~~~~~~~~~~ - // RelayCompatContainer - // ~~~~~~~~~~~~~~~~~~~~~ - export type GeneratedNodeMap = {[key: string]: Modern.GraphQLTaggedNode}; - export function createContainer( - Component: ReactBaseComponent, - fragmentSpec: Modern.GraphQLTaggedNode | GeneratedNodeMap, - ): ReactFragmentComponent; - - // ~~~~~~~~~~~~~~~~~~~~~ - // injectDefaultVariablesProvider - // ~~~~~~~~~~~~~~~~~~~~~ - type VariablesProvider = () => Common.Variables; - export function injectDefaultVariablesProvider(variablesProvider: VariablesProvider): void; -} - - //////////////////////////// // MODULES /////////////////////////// @@ -308,8 +301,7 @@ declare module 'react-relay/compat' { export import QueryRenderer = __Relay.Modern.ReactRelayQueryRenderer; export import graphql = __Relay.Modern.graphql; export import fetchQuery = __Relay.Runtime.fetchRelayModernQuery; - } - +} declare module "react-relay/classic" { import * as React from "react"; @@ -341,21 +333,22 @@ declare module "react-relay/classic" { } type RelayMutationStatus = - 'UNCOMMITTED' | // Transaction hasn't yet been sent to the server. Transaction can be committed or rolled back. - 'COMMIT_QUEUED' | // Transaction was committed but another transaction with the same collision key is pending, so the transaction has been queued to send to the server. - 'COLLISION_COMMIT_FAILED' | //Transaction was queued for commit but another transaction with the same collision key failed. All transactions in the collision queue, including this one, have been failed. Transaction can be recommitted or rolled back. - 'COMMITTING' | // Transaction is waiting for the server to respond. - 'COMMIT_FAILED'; + 'UNCOMMITTED' | // Transaction hasn't yet been sent to the server. Transaction can be committed or rolled back. + 'COMMIT_QUEUED' | // Transaction was committed but another transaction with the same collision key is pending, so the transaction has been queued to send to the server. + 'COLLISION_COMMIT_FAILED' | // Transaction was queued for commit but another transaction with the same collision key failed. All transactions in the collision queue, + // including this one, have been failed. Transaction can be recommitted or rolled back. + 'COMMITTING' | // Transaction is waiting for the server to respond. + 'COMMIT_FAILED'; class RelayMutationTransaction { - applyOptimistic(): RelayMutationTransaction; - commit(): RelayMutationTransaction | null; - recommit(): void; - rollback(): void; - getError(): Error; - getStatus(): RelayMutationStatus; - getHash(): string; - getID(): ClientMutationID; + applyOptimistic(): RelayMutationTransaction; + commit(): RelayMutationTransaction | null; + recommit(): void; + rollback(): void; + getError(): Error; + getStatus(): RelayMutationStatus; + getHash(): string; + getID(): ClientMutationID; } interface RelayMutationRequest { @@ -398,7 +391,7 @@ declare module "react-relay/classic" { * S is typically dynamic as it depends on the data the app is currently using, but it's possible to always * return some data in the payload using REQUIRED_CHILDREN which is where specifying S is the most useful. */ - class Mutation { + class Mutation { props: T constructor(props: T) @@ -416,19 +409,19 @@ declare module "react-relay/classic" { } interface Store { - commitUpdate(mutation: Mutation, callbacks?: StoreUpdateCallbacks): any + commitUpdate(mutation: Mutation, callbacks?: StoreUpdateCallbacks): any } - var Store: Store + const Store: Store - class RootContainer extends React.Component {} + class RootContainer extends React.Component { } - interface RootContainerProps extends React.Props{ + interface RootContainerProps extends React.Props { Component: RelayContainerClass route: Route renderLoading?(): JSX.Element renderFetched?(data: any): JSX.Element - renderFailure?(error: Error, retry: Function): JSX.Element + renderFailure?(error: Error, retry: (...args: any[]) => any): JSX.Element } type ReadyStateEvent = @@ -443,16 +436,14 @@ declare module "react-relay/classic" { 'STORE_FOUND_ALL' | 'STORE_FOUND_REQUIRED'; - interface OnReadyStateChange { - (readyState: { - ready: boolean, - done: boolean, - stale: boolean, - error?: Error, - events: Array, - aborted: boolean - }): void - } + type OnReadyStateChange = (readyState: { + ready: boolean, + done: boolean, + stale: boolean, + error?: Error, + events: ReadyStateEvent[], + aborted: boolean + }) => void interface RelayProp { readonly route: { name: string; }; // incomplete, also has params and queries @@ -462,6 +453,6 @@ declare module "react-relay/classic" { forceFetch(variables: any, onReadyStateChange?: OnReadyStateChange): void; hasOptimisticUpdate(record: any): boolean; getPendingTransactions(record: any): RelayMutationTransaction[]; - commitUpdate: (mutation: Mutation, callbacks?: StoreUpdateCallbacks) => any; + commitUpdate(mutation: Mutation, callbacks?: StoreUpdateCallbacks): any; } } From ea247c58854b918552c4f846d7280b9eac7f543e Mon Sep 17 00:00:00 2001 From: voxmatt Date: Sun, 10 Sep 2017 17:08:21 -1000 Subject: [PATCH 025/506] removing redundent exports from relay-runtime --- types/relay-runtime/index.d.ts | 103 ++++++++++++++++----------------- 1 file changed, 51 insertions(+), 52 deletions(-) diff --git a/types/relay-runtime/index.d.ts b/types/relay-runtime/index.d.ts index 4acab12c5b..382711209f 100644 --- a/types/relay-runtime/index.d.ts +++ b/types/relay-runtime/index.d.ts @@ -6,7 +6,6 @@ declare namespace __Relay { namespace Common { - /** * SOURCE: * Relay 1.3.0 @@ -37,7 +36,7 @@ declare namespace __Relay { * lot of errors in Relay code since methods like getFragment() are used often * but have no definition in Relay's types. Suppressing for now. */ - export type RelayContainer = any; + type RelayContainer = any; // ~~~~~~~~~~~~~~~~~~~~~ // RelayQL @@ -64,12 +63,12 @@ declare namespace __Relay { // ~~~~~~~~~~~~~~~~~~~~~ // General Usage // ~~~~~~~~~~~~~~~~~~~~~ - export type DataID = string; - export interface Variables { + type DataID = string; + interface Variables { [name: string]: any; } - export type Uploadable = File | Blob; - export interface UploadableMap { + type Uploadable = File | Blob; + interface UploadableMap { [key: string]: Uploadable; } @@ -79,12 +78,12 @@ declare namespace __Relay { // File: https://github.com/facebook/relay/blob/master/packages/relay-runtime/network/RelayNetworkTypes.js // ~~~~~~~~~~~~~~~~~~~~~ - export interface LegacyObserver { - onCompleted?: (() => void) | void; - onError?: ((error: Error) => void) | void; - onNext?: ((data: T) => void) | void; + interface LegacyObserver { + onCompleted?(): void; + onError?(error: Error): void; + onNext?(data: T): void; } - export interface PayloadError { + interface PayloadError { message: string; locations?: Array<{ line: number, @@ -96,7 +95,7 @@ declare namespace __Relay { * * May return an Observable or Promise of a raw server response. */ - export function FetchFunction( + function FetchFunction( operation: ConcreteBatch, variables: Variables, cacheConfig: CacheConfig, @@ -110,7 +109,7 @@ declare namespace __Relay { * May return an Observable, otherwise must call the callbacks found in the * fourth parameter. */ - export type SubscribeFunction = ( + type SubscribeFunction = ( operation: ConcreteBatch, variables: Variables, cacheConfig: CacheConfig, @@ -126,14 +125,14 @@ declare namespace __Relay { * A function that receives a proxy over the store and may trigger side-effects * (indirectly) by calling `set*` methods on the store or its record proxies. */ - export type StoreUpdater = (store: RecordSourceProxy) => void; + type StoreUpdater = (store: RecordSourceProxy) => void; /** * Similar to StoreUpdater, but accepts a proxy tied to a specific selector in * order to easily access the root fields of a query/mutation as well as a * second argument of the response object of the mutation. */ - export type SelectorStoreUpdater = ( + type SelectorStoreUpdater = ( store: RecordSourceSelectorProxy, // Actually RelayCombinedEnvironmentTypes#SelectorData, but mixed is // inconvenient to access deeply in product code. @@ -144,7 +143,7 @@ declare namespace __Relay { * Extends the RecordSourceProxy interface with methods for accessing the root * fields of a Selector. */ - export interface RecordSourceSelectorProxy { + interface RecordSourceSelectorProxy { create(dataID: DataID, typeName: string): RecordProxy; delete(dataID: DataID): void; get(dataID: DataID): RecordProxy | void; @@ -153,7 +152,7 @@ declare namespace __Relay { getPluralRootField(fieldName: string): RecordProxy[] | void; } - export interface RecordProxy { + interface RecordProxy { copyFieldsFrom(source: RecordProxy): void; getDataID(): DataID; getLinkedRecord(name: string, args?: Variables | void): RecordProxy | void; @@ -178,14 +177,14 @@ declare namespace __Relay { setValue(value: any, name: string, args?: Variables | void): RecordProxy; } - export interface RecordSourceProxy { + interface RecordSourceProxy { create(dataID: DataID, typeName: string): RecordProxy; delete(dataID: DataID): void; get(dataID: DataID): Array | void; getRoot(): RecordProxy; } - export interface HandleFieldPayload { + interface HandleFieldPayload { // The arguments that were fetched. args: Variables; // The __id of the record containing the source/handle field. @@ -202,7 +201,7 @@ declare namespace __Relay { update(store: RecordSourceProxy, fieldPayload: HandleFieldPayload): void; [functionName: string]: (...args: any[]) => any; } - export const Handler: HandlerInterface; + const Handler: HandlerInterface; // ~~~~~~~~~~~~~~~~~~~~~ // RelayCombinedEnvironmentTypes @@ -217,7 +216,7 @@ declare namespace __Relay { * - `poll`: causes a query to live update by polling at the specified interval * in milliseconds. (This value will be passed to setTimeout.) */ - export interface CacheConfig { + interface CacheConfig { force?: boolean | void; poll?: number | void; } @@ -227,30 +226,30 @@ declare namespace __Relay { * use-case is as a return value for subscriptions, where calling `dispose()` * would cancel the subscription. */ - export interface Disposable { + interface Disposable { dispose(): void; } /** * Arbitrary data e.g. received by a container as props. */ - export interface Props { [key: string]: any; } + interface Props { [key: string]: any; } /* * An individual cached graph object. */ - export interface Record { [key: string]: any; } + interface Record { [key: string]: any; } /** * A collection of records keyed by id. */ - export interface RecordMap { [dataID: string]: Record | void; } + interface RecordMap { [dataID: string]: Record | void; } /** * A selector defines the starting point for a traversal into the graph for the * purposes of targeting a subgraph. */ - export interface CSelector { + interface CSelector { dataID: DataID; node: TNode; variables: Variables; @@ -259,7 +258,7 @@ declare namespace __Relay { /** * A representation of a selector and its results at a particular point in time. */ - export type CSnapshot = CSelector & { + type CSnapshot = CSelector & { data: SelectorData | void, seenRecords: RecordMap, }; @@ -267,13 +266,13 @@ declare namespace __Relay { /** * The results of a selector given a store/RecordSource. */ - export interface SelectorData { [key: string]: any; } + interface SelectorData { [key: string]: any; } /** * The results of reading the results of a FragmentMap given some input * `Props`. */ - export interface FragmentSpecResults { [key: string]: any; } + interface FragmentSpecResults { [key: string]: any; } /** * A utility for resolving and subscribing to the results of a fragment spec @@ -286,7 +285,7 @@ declare namespace __Relay { * - Creates resolvers for any props that became non-null. * - Updates resolvers with the latest props. */ - export interface FragmentSpecResolver { + interface FragmentSpecResolver { /** * Stop watching for changes to the results of the fragments. */ @@ -310,7 +309,7 @@ declare namespace __Relay { setVariables(variables: Variables): void; } - export interface CFragmentMap { [key: string]: TFragment; } + interface CFragmentMap { [key: string]: TFragment; } /** * An operation selector describes a specific instance of a GraphQL operation @@ -321,7 +320,7 @@ declare namespace __Relay { * - `fragment`: a selector intended for use in reading or subscribing to * the results of the the operation. */ - export interface COperationSelector { + interface COperationSelector { fragment: CSelector; node: TOperation; root: CSelector; @@ -332,7 +331,7 @@ declare namespace __Relay { * The public API of Relay core. Represents an encapsulated environment with its * own in-memory cache. */ - export interface CEnvironment< + interface CEnvironment< TEnvironment, TFragment, TGraphQLTaggedNode, @@ -408,7 +407,7 @@ declare namespace __Relay { >; } - export interface CUnstableEnvironmentCore< + interface CUnstableEnvironmentCore< TEnvironment, TFragment, TGraphQLTaggedNode, @@ -551,7 +550,7 @@ declare namespace __Relay { * The type of the `relay` property set on React context by the React/Relay * integration layer (e.g. QueryRenderer, FragmentContainer, etc). */ - export interface CRelayContext { + interface CRelayContext { environment: TEnvironment; variables: Variables; } @@ -564,7 +563,7 @@ declare namespace __Relay { * https://github.com/facebook/relay/blob/fa9f48ea209ee2402d433b59a84d1cbc046574e2/packages/react-relay/classic/tools/RelayTypes.js */ // ~~~~~~~~~~~~~~~~~~~~~ - export interface RerunParam { + interface RerunParam { param: string; import: string; max_runs: number; @@ -609,35 +608,35 @@ declare namespace __Relay { type: 'REQUIRED_CHILDREN'; children: RelayConcreteNode[]; } - export type RelayMutationConfig = + type RelayMutationConfig = FIELDS_CHANGE | RANGE_ADD | NODE_DELETE | RANGE_DELETE | REQUIRED_CHILDREN; - export interface RelayMutationTransactionCommitCallbacks { + interface RelayMutationTransactionCommitCallbacks { onFailure?: RelayMutationTransactionCommitFailureCallback; onSuccess?: RelayMutationTransactionCommitSuccessCallback; } - export type RelayMutationTransactionCommitFailureCallback = ( + type RelayMutationTransactionCommitFailureCallback = ( transaction: RelayMutationTransaction, preventAutoRollback: () => void, ) => void; - export type RelayMutationTransactionCommitSuccessCallback = (response: { + type RelayMutationTransactionCommitSuccessCallback = (response: { [key: string]: any, }) => void; - export interface NetworkLayer { + interface NetworkLayer { sendMutation(request: RelayMutationRequest): Promise | void; sendQueries(requests: RelayQueryRequest[]): Promise | void; supports(...options: string[]): boolean; } - export interface QueryResult { + interface QueryResult { error?: Error | void; ref_params?: { [name: string]: any } | void; response: QueryPayload; } - export interface ReadyState { + interface ReadyState { aborted: boolean; done: boolean; error: Error | void; @@ -657,12 +656,12 @@ declare namespace __Relay { | 'NETWORK_QUERY_START' | 'STORE_FOUND_ALL' | 'STORE_FOUND_REQUIRED'; - export type ReadyStateChangeCallback = (readyState: ReadyState) => void; - export interface ReadyStateEvent { + type ReadyStateChangeCallback = (readyState: ReadyState) => void; + interface ReadyStateEvent { type: RelayContainerLoadingEventType | RelayContainerErrorEventType; error?: Error; } - export interface Abortable { + interface Abortable { abort(): void; } @@ -674,15 +673,15 @@ declare namespace __Relay { * https://github.com/facebook/relay/blob/master/packages/react-relay/classic/tools/RelayInternalTypes.js */ // ~~~~~~~~~~~~~~~~~~~~~ - export interface QueryPayload { [key: string]: any; } - export interface RelayQuerySet { [queryName: string]: any; } + interface QueryPayload { [key: string]: any; } + interface RelayQuerySet { [queryName: string]: any; } type RangeBehaviorsFunction = (connectionArgs: { [argName: string]: any, }) => 'APPEND' | 'IGNORE' | 'PREPEND' | 'REFETCH' | 'REMOVE'; interface RangeBehaviorsObject { [key: string]: 'APPEND' | 'IGNORE' | 'PREPEND' | 'REFETCH' | 'REMOVE'; } - export type RangeBehaviors = RangeBehaviorsFunction | RangeBehaviorsObject; + type RangeBehaviors = RangeBehaviorsFunction | RangeBehaviorsObject; } namespace Runtime { @@ -715,7 +714,7 @@ declare namespace __Relay { // ~~~~~~~~~~~~~~~~~~~~~ // RelayDefaultHandlerProvider // ~~~~~~~~~~~~~~~~~~~~~ - export function HandlerProvider(name: string): typeof Common.Handler | void; + function HandlerProvider(name: string): typeof Common.Handler | void; // ~~~~~~~~~~~~~~~~~~~~~ // RelayModernEnvironment @@ -1107,7 +1106,7 @@ declare namespace __Relay { // requestRelaySubscription // ~~~~~~~~~~~~~~~~~~~~~ // exposed through RelayModern, not Runtime directly - export interface GraphQLSubscriptionConfig { + interface GraphQLSubscriptionConfig { configs?: Common.RelayMutationConfig[]; subscription: Common.GraphQLTaggedNode; variables: Common.Variables; @@ -1116,7 +1115,7 @@ declare namespace __Relay { onNext?(response: object | void): void; updater?(store: Common.RecordSourceSelectorProxy): void; } - export function requestRelaySubscription( + function requestRelaySubscription( environment: Environment, config: GraphQLSubscriptionConfig, ): Common.Disposable; From ec92bbda49dd7175006dc2e3ce1b9d648bf4cf2c Mon Sep 17 00:00:00 2001 From: voxmatt Date: Sun, 10 Sep 2017 17:13:38 -1000 Subject: [PATCH 026/506] removing single module declare in relay-runtime --- types/relay-runtime/index.d.ts | 25 ++++++++++++------------- 1 file changed, 12 insertions(+), 13 deletions(-) diff --git a/types/relay-runtime/index.d.ts b/types/relay-runtime/index.d.ts index 382711209f..682a74882e 100644 --- a/types/relay-runtime/index.d.ts +++ b/types/relay-runtime/index.d.ts @@ -4,6 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.4 +// note: __Relay namespace is used so react-relay can access and inter-op declare namespace __Relay { namespace Common { /** @@ -1061,9 +1062,9 @@ declare namespace __Relay { optimisticResponse?: object; updater?: Common.SelectorStoreUpdater | void; } - function commitRelayModernMutation( + function commitRelayModernMutation( environment: Environment, - config: MutationConfig, + config: MutationConfig, ): Common.Disposable; // ~~~~~~~~~~~~~~~~~~~~~ @@ -1122,14 +1123,12 @@ declare namespace __Relay { } } -declare module 'relay-runtime' { - export import Environment = __Relay.Runtime.Environment; - export import Network = __Relay.Runtime.Network; - export import RecordSource = __Relay.Runtime.RecordSource; - export import Store = __Relay.Runtime.Store; - export import Observable = __Relay.Runtime.RelayObservable; - // note RecordSourceInspector is only available in dev environment - export import RecordSourceInspector = __Relay.Runtime.RelayRecordSourceInspector; - export import ConnectionHandler = __Relay.Common.Handler; - export import ViewerHandler = __Relay.Common.Handler; -} +export import Environment = __Relay.Runtime.Environment; +export import Network = __Relay.Runtime.Network; +export import RecordSource = __Relay.Runtime.RecordSource; +export import Store = __Relay.Runtime.Store; +export import Observable = __Relay.Runtime.RelayObservable; +// note RecordSourceInspector is only available in dev environment +export import RecordSourceInspector = __Relay.Runtime.RelayRecordSourceInspector; +export import ConnectionHandler = __Relay.Common.Handler; +export import ViewerHandler = __Relay.Common.Handler; From 38dd00d25ea48d0191589fd66f6a6a1f671bc2f9 Mon Sep 17 00:00:00 2001 From: voxmatt Date: Sun, 10 Sep 2017 17:18:52 -1000 Subject: [PATCH 027/506] single declare module is needed to allow access from react-relay --- types/react-relay/index.d.ts | 2 +- types/relay-runtime/index.d.ts | 20 +++++++++++--------- types/relay-runtime/tslint.json | 5 ++++- 3 files changed, 16 insertions(+), 11 deletions(-) diff --git a/types/react-relay/index.d.ts b/types/react-relay/index.d.ts index eb940d296d..a089d020c5 100644 --- a/types/react-relay/index.d.ts +++ b/types/react-relay/index.d.ts @@ -26,7 +26,7 @@ declare namespace __Relay { // ~~~~~~~~~~~~~~~~~~~~~ // note: refetch and pagination containers augment this export interface RelayProp { - environment: Runtime.Environment; + environment: __Relay.Runtime.Environment; } // ~~~~~~~~~~~~~~~~~~~~~ diff --git a/types/relay-runtime/index.d.ts b/types/relay-runtime/index.d.ts index 682a74882e..b5c3b006f8 100644 --- a/types/relay-runtime/index.d.ts +++ b/types/relay-runtime/index.d.ts @@ -1123,12 +1123,14 @@ declare namespace __Relay { } } -export import Environment = __Relay.Runtime.Environment; -export import Network = __Relay.Runtime.Network; -export import RecordSource = __Relay.Runtime.RecordSource; -export import Store = __Relay.Runtime.Store; -export import Observable = __Relay.Runtime.RelayObservable; -// note RecordSourceInspector is only available in dev environment -export import RecordSourceInspector = __Relay.Runtime.RelayRecordSourceInspector; -export import ConnectionHandler = __Relay.Common.Handler; -export import ViewerHandler = __Relay.Common.Handler; +declare module 'relay-runtime' { + export import Environment = __Relay.Runtime.Environment; + export import Network = __Relay.Runtime.Network; + export import RecordSource = __Relay.Runtime.RecordSource; + export import Store = __Relay.Runtime.Store; + export import Observable = __Relay.Runtime.RelayObservable; + // note RecordSourceInspector is only available in dev environment + export import RecordSourceInspector = __Relay.Runtime.RelayRecordSourceInspector; + export import ConnectionHandler = __Relay.Common.Handler; + export import ViewerHandler = __Relay.Common.Handler; +} diff --git a/types/relay-runtime/tslint.json b/types/relay-runtime/tslint.json index 3db14f85ea..1fded7a528 100644 --- a/types/relay-runtime/tslint.json +++ b/types/relay-runtime/tslint.json @@ -1 +1,4 @@ -{ "extends": "dtslint/dt.json" } +{ + "extends": "dtslint/dt.json", + "no-single-declare-module": false +} From 66af1890896bdb0ca54ecad2b219411efe35a6c8 Mon Sep 17 00:00:00 2001 From: voxmatt Date: Sun, 10 Sep 2017 17:44:00 -1000 Subject: [PATCH 028/506] removing maybe util type --- types/relay-runtime/index.d.ts | 32 ++++++++++++++------------------ 1 file changed, 14 insertions(+), 18 deletions(-) diff --git a/types/relay-runtime/index.d.ts b/types/relay-runtime/index.d.ts index b5c3b006f8..bddbc60600 100644 --- a/types/relay-runtime/index.d.ts +++ b/types/relay-runtime/index.d.ts @@ -12,11 +12,6 @@ declare namespace __Relay { * Relay 1.3.0 * https://github.com/facebook/relay/blob/b85a1d69bb72be4ace67179f55c2a54a8d761c8b/packages/react-relay/classic/environment/RelayCombinedEnvironmentTypes.js */ - // ~~~~~~~~~~~~~~~~~~~~~ - // Util - // ~~~~~~~~~~~~~~~~~~~~~ - type Maybe = T | void; - // ~~~~~~~~~~~~~~~~~~~~~ // Maybe Fix // ~~~~~~~~~~~~~~~~~~~~~ @@ -164,18 +159,18 @@ declare namespace __Relay { args?: Variables | void, ): RecordProxy; getType(): string; - getValue(name: string, args?: Variables | void): any; + getValue(name: string, args?: Variables): any; setLinkedRecord( record: RecordProxy, name: string, args?: Variables | void, ): RecordProxy; setLinkedRecords( - records: Array | void, + records: Array | undefined | null, name: string, - args?: Variables | void, + args?: Variables, ): RecordProxy; - setValue(value: any, name: string, args?: Variables | void): RecordProxy; + setValue(value: any, name: string, args?: Variables): RecordProxy; } interface RecordSourceProxy { @@ -377,9 +372,9 @@ declare namespace __Relay { */ sendQuery(config: { cacheConfig?: CacheConfig | void, - onCompleted?: Maybe<() => void>, - onError?: Maybe<(error: Error) => void>, - onNext?: Maybe<(payload: TPayload) => void>, + onCompleted?: () => void, + onError?: (error: Error) => void, + onNext?: (payload: TPayload) => void, operation: COperationSelector, }): Disposable; @@ -392,10 +387,10 @@ declare namespace __Relay { * subscription open indefinitely such that `onCompleted` is not called. */ streamQuery(config: { - cacheConfig?: Maybe, - onCompleted?: Maybe<() => void>, - onError?: Maybe<(error: Error) => void>, - onNext?: Maybe<(payload: TPayload) => void>, + cacheConfig?: CacheConfig, + onCompleted?: () => void, + onError?: (error: Error) => void, + onNext?: (payload: TPayload) => void, operation: COperationSelector, }): Disposable; @@ -518,7 +513,7 @@ declare namespace __Relay { operationVariables: Variables, fragments: CFragmentMap, props: Props, - ): { [key: string]: Maybe<(CSelector | Array>)> }; + ): { [key: string]: CSelector | Array> | null | undefined }; /** * Given a mapping of keys -> results and a mapping of keys -> fragments, @@ -530,7 +525,7 @@ declare namespace __Relay { getDataIDsFromObject( fragments: CFragmentMap, props: Props, - ): { [key: string]: Maybe<(DataID | DataID[])> }; + ): { [key: string]: DataID | DataID[] | null | undefined }; /** * Given a mapping of keys -> results and a mapping of keys -> fragments, @@ -1124,6 +1119,7 @@ declare namespace __Relay { } declare module 'relay-runtime' { + // tslint:disable strict-export-declare-modifiers export import Environment = __Relay.Runtime.Environment; export import Network = __Relay.Runtime.Network; export import RecordSource = __Relay.Runtime.RecordSource; From 8ce8311cdfd044761d6084626f61fd38d913fae7 Mon Sep 17 00:00:00 2001 From: voxmatt Date: Mon, 11 Sep 2017 08:02:22 -1000 Subject: [PATCH 029/506] fixing a bunch of linting errors in relay-runtime --- types/relay-runtime/index.d.ts | 84 ++++++++++++++++----------------- types/relay-runtime/tslint.json | 3 +- 2 files changed, 43 insertions(+), 44 deletions(-) diff --git a/types/relay-runtime/index.d.ts b/types/relay-runtime/index.d.ts index bddbc60600..c107dca8e7 100644 --- a/types/relay-runtime/index.d.ts +++ b/types/relay-runtime/index.d.ts @@ -151,22 +151,22 @@ declare namespace __Relay { interface RecordProxy { copyFieldsFrom(source: RecordProxy): void; getDataID(): DataID; - getLinkedRecord(name: string, args?: Variables | void): RecordProxy | void; - getLinkedRecords(name: string, args?: Variables | void): Array | void; + getLinkedRecord(name: string, args?: Variables): RecordProxy | void; + getLinkedRecords(name: string, args?: Variables): Array | void; getOrCreateLinkedRecord( name: string, typeName: string, - args?: Variables | void, + args?: Variables, ): RecordProxy; getType(): string; getValue(name: string, args?: Variables): any; setLinkedRecord( record: RecordProxy, name: string, - args?: Variables | void, + args?: Variables, ): RecordProxy; setLinkedRecords( - records: Array | undefined | null, + records: Array | undefined | null, name: string, args?: Variables, ): RecordProxy; @@ -176,7 +176,7 @@ declare namespace __Relay { interface RecordSourceProxy { create(dataID: DataID, typeName: string): RecordProxy; delete(dataID: DataID): void; - get(dataID: DataID): Array | void; + get(dataID: DataID): Array | void; getRoot(): RecordProxy; } @@ -213,8 +213,8 @@ declare namespace __Relay { * in milliseconds. (This value will be passed to setTimeout.) */ interface CacheConfig { - force?: boolean | void; - poll?: number | void; + force?: boolean; + poll?: number; } /** @@ -239,7 +239,7 @@ declare namespace __Relay { /** * A collection of records keyed by id. */ - interface RecordMap { [dataID: string]: Record | void; } + interface RecordMap { [dataID: string]: Record | null | undefined; } /** * A selector defines the starting point for a traversal into the graph for the @@ -371,10 +371,10 @@ declare namespace __Relay { * after receving the first `onNext` result. */ sendQuery(config: { - cacheConfig?: CacheConfig | void, + cacheConfig?: CacheConfig, onCompleted?: () => void, - onError?: (error: Error) => void, - onNext?: (payload: TPayload) => void, + onError?(error: Error): void, + onNext?(payload: TPayload): void, operation: COperationSelector, }): Disposable; @@ -389,8 +389,8 @@ declare namespace __Relay { streamQuery(config: { cacheConfig?: CacheConfig, onCompleted?: () => void, - onError?: (error: Error) => void, - onNext?: (payload: TPayload) => void, + onError?(error: Error): void, + onNext?(payload: TPayload): void, operation: COperationSelector, }): Disposable; @@ -628,14 +628,14 @@ declare namespace __Relay { supports(...options: string[]): boolean; } interface QueryResult { - error?: Error | void; - ref_params?: { [name: string]: any } | void; + error?: Error; + ref_params?: { [name: string]: any }; response: QueryPayload; } interface ReadyState { aborted: boolean; done: boolean; - error: Error | void; + error: Error | null; events: ReadyStateEvent[]; ready: boolean; stale: boolean; @@ -701,7 +701,7 @@ declare namespace __Relay { operation: object, variables: Common.Variables, cacheConfig: Common.CacheConfig, - uploadables?: Common.UploadableMap | void, + uploadables?: Common.UploadableMap, ) => Promise; interface RelayNetwork { execute: ExecuteFunction; @@ -747,15 +747,15 @@ declare namespace __Relay { retain(selector: Selector): Common.Disposable; execute(config: { operation: OperationSelector, - cacheConfig?: Common.CacheConfig | void, - updater?: Common.SelectorStoreUpdater | void, + cacheConfig?: Common.CacheConfig, + updater?: Common.SelectorStoreUpdater, }): RelayObservable; executeMutation(config: { operation: OperationSelector, - optimisticUpdater?: Common.SelectorStoreUpdater | void, - optimisticResponse?: object | void, - updater?: Common.SelectorStoreUpdater | void, - uploadables?: Common.UploadableMap | void, + optimisticUpdater?: Common.SelectorStoreUpdater, + optimisticResponse?: object, + updater?: Common.SelectorStoreUpdater, + uploadables?: Common.UploadableMap, }): RelayObservable; } @@ -763,7 +763,7 @@ declare namespace __Relay { // RelayInMemoryRecordSource // ~~~~~~~~~~~~~~~~~~~~~ interface Record { [key: string]: any; } - interface RecordMap { [dataID: string]: Record | void; } + interface RecordMap { [dataID: string]: Record | null | undefined; } // ~~~~~~~~~~~~~~~~~~~~~ // Network @@ -789,7 +789,7 @@ declare namespace __Relay { has(dataID: Common.DataID): boolean; load( dataID: Common.DataID, - callback: (error: Error | void, record: Record | void) => void, + callback: (error: Error | null, record: Record | null) => void, ): void; remove(dataID: Common.DataID): void; set(dataID: Common.DataID, record: Record): void; @@ -823,9 +823,9 @@ declare namespace __Relay { */ class RecordSummary { id: Common.DataID; - type: string | void; + type: string | null | undefined; static createFromRecord(id: Common.DataID, record: any): RecordSummary; - constructor(id: Common.DataID, type: string | void); + constructor(id: Common.DataID, type: string | null | undefined); toString(): string; } /** @@ -860,21 +860,21 @@ declare namespace __Relay { * Returns the value of a scalar field. May throw if the given field is * present but not actually scalar. */ - getValue(name: string, args?: Common.Variables | void): any; + getValue(name: string, args?: Common.Variables): any; /** * Returns an inspector for the given scalar "linked" field (a field whose * value is another Record instead of a scalar). May throw if the field is * present but not a scalar linked record. */ - getLinkedRecord(name: string, args?: Common.Variables | void): RecordInspector | void; + getLinkedRecord(name: string, args?: Common.Variables): RecordInspector | void; /** * Returns an array of inspectors for the given plural "linked" field (a field * whose value is an array of Records instead of a scalar). May throw if the * field is present but not a plural linked record. */ - getLinkedRecords(name: string, args?: Common.Variables | void): RecordInspector[] | void; + getLinkedRecords(name: string, args?: Common.Variables): RecordInspector[] | void; } class RelayRecordSourceInspector { @@ -912,11 +912,11 @@ declare namespace __Relay { readonly closed: boolean; } interface Observer { - start?: ((subscription: Subscription) => any) | void; - next?: ((nextThing: T) => any) | void; - error?: ((error: Error) => any) | void; - complete?: (() => any) | void; - unsubscribe?: ((subscription: Subscription) => any) | void; + start?: (subscription: Subscription) => any; + next?: (nextThing: T) => any; + error?: (error: Error) => any; + complete?: () => any; + unsubscribe?: (subscription: Subscription) => any; } type Source = () => any; interface Subscribable { @@ -1030,7 +1030,7 @@ declare namespace __Relay { * Returns a Promise which resolves when this Observable yields a first value * or when it completes with no value. */ - toPromise(): Promise; + toPromise(): Promise; } // ~~~~~~~~~~~~~~~~~~~~~ @@ -1051,11 +1051,11 @@ declare namespace __Relay { mutation: Common.GraphQLTaggedNode; variables: Common.Variables; uploadables?: Common.UploadableMap; - onCompleted?(response: T, errors: Common.PayloadError[] | void): void; + onCompleted?(response: T, errors: Common.PayloadError[] | null | undefined): void; onError?(error?: Error): void; optimisticUpdater?: Common.SelectorStoreUpdater | void; optimisticResponse?: object; - updater?: Common.SelectorStoreUpdater | void; + updater?: Common.SelectorStoreUpdater; } function commitRelayModernMutation( environment: Environment, @@ -1095,7 +1095,7 @@ declare namespace __Relay { environment: any, // FIXME - $FlowFixMe in facebook source code taggedNode: Common.GraphQLTaggedNode, variables: Common.Variables, - cacheConfig?: Common.CacheConfig | void, + cacheConfig?: Common.CacheConfig, ): Promise; // FIXME - $FlowFixMe in facebook source code // ~~~~~~~~~~~~~~~~~~~~~ @@ -1108,7 +1108,7 @@ declare namespace __Relay { variables: Common.Variables; onCompleted?(): void; onError?(error: Error): void; - onNext?(response: object | void): void; + onNext?(response: object | null | undefined): void; updater?(store: Common.RecordSourceSelectorProxy): void; } function requestRelaySubscription( @@ -1118,8 +1118,8 @@ declare namespace __Relay { } } +// tslint:disable no-single-declare-module strict-export-declare-modifiers declare module 'relay-runtime' { - // tslint:disable strict-export-declare-modifiers export import Environment = __Relay.Runtime.Environment; export import Network = __Relay.Runtime.Network; export import RecordSource = __Relay.Runtime.RecordSource; diff --git a/types/relay-runtime/tslint.json b/types/relay-runtime/tslint.json index 1fded7a528..f93cf8562a 100644 --- a/types/relay-runtime/tslint.json +++ b/types/relay-runtime/tslint.json @@ -1,4 +1,3 @@ { - "extends": "dtslint/dt.json", - "no-single-declare-module": false + "extends": "dtslint/dt.json" } From 7101bd194bb7f37063d924a3e103bfffed566ff6 Mon Sep 17 00:00:00 2001 From: voxmatt Date: Mon, 11 Sep 2017 10:50:28 -1000 Subject: [PATCH 030/506] hopefully the last of relay-runtime linting errors --- types/relay-runtime/index.d.ts | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/types/relay-runtime/index.d.ts b/types/relay-runtime/index.d.ts index c107dca8e7..2bd9938b0c 100644 --- a/types/relay-runtime/index.d.ts +++ b/types/relay-runtime/index.d.ts @@ -255,7 +255,7 @@ declare namespace __Relay { * A representation of a selector and its results at a particular point in time. */ type CSnapshot = CSelector & { - data: SelectorData | void, + data: SelectorData | null | undefined, seenRecords: RecordMap, }; @@ -372,7 +372,7 @@ declare namespace __Relay { */ sendQuery(config: { cacheConfig?: CacheConfig, - onCompleted?: () => void, + onCompleted?(): void, onError?(error: Error): void, onNext?(payload: TPayload): void, operation: COperationSelector, @@ -388,7 +388,7 @@ declare namespace __Relay { */ streamQuery(config: { cacheConfig?: CacheConfig, - onCompleted?: () => void, + onCompleted?(): void, onError?(error: Error): void, onNext?(payload: TPayload): void, operation: COperationSelector, @@ -912,11 +912,11 @@ declare namespace __Relay { readonly closed: boolean; } interface Observer { - start?: (subscription: Subscription) => any; - next?: (nextThing: T) => any; - error?: (error: Error) => any; - complete?: () => any; - unsubscribe?: (subscription: Subscription) => any; + start?(subscription: Subscription): any; + next?(nextThing: T): any; + error?(error: Error): any; + complete?(): any; + unsubscribe?(subscription: Subscription): any; } type Source = () => any; interface Subscribable { @@ -1053,7 +1053,7 @@ declare namespace __Relay { uploadables?: Common.UploadableMap; onCompleted?(response: T, errors: Common.PayloadError[] | null | undefined): void; onError?(error?: Error): void; - optimisticUpdater?: Common.SelectorStoreUpdater | void; + optimisticUpdater?: Common.SelectorStoreUpdater; optimisticResponse?: object; updater?: Common.SelectorStoreUpdater; } From cafeccbaf51e72f8e23f51b1b01a12eb28675104 Mon Sep 17 00:00:00 2001 From: voxmatt Date: Mon, 11 Sep 2017 11:00:47 -1000 Subject: [PATCH 031/506] cleaning up some linting errors in react-relay and its tests --- types/react-relay/index.d.ts | 81 ++++++++++++------------- types/react-relay/react-relay-tests.tsx | 76 ++++++++++------------- 2 files changed, 71 insertions(+), 86 deletions(-) diff --git a/types/react-relay/index.d.ts b/types/react-relay/index.d.ts index a089d020c5..e41f39e4ae 100644 --- a/types/react-relay/index.d.ts +++ b/types/react-relay/index.d.ts @@ -26,7 +26,7 @@ declare namespace __Relay { // ~~~~~~~~~~~~~~~~~~~~~ // note: refetch and pagination containers augment this export interface RelayProp { - environment: __Relay.Runtime.Environment; + environment: Runtime.Environment; } // ~~~~~~~~~~~~~~~~~~~~~ @@ -310,26 +310,26 @@ declare module "react-relay/classic" { /** Fragments are a hash of functions */ interface Fragments { - [query: string]: ((variables?: RelayVariables) => string) + [query: string]: ((variables?: RelayVariables) => string); } interface CreateContainerOpts { - initialVariables?: any - fragments: Fragments - prepareVariables?(prevVariables: RelayVariables): RelayVariables + initialVariables?: any; + fragments: Fragments; + prepareVariables?(prevVariables: RelayVariables): RelayVariables; } interface RelayVariables { - [name: string]: any + [name: string]: any; } /** add static getFragment method to the component constructor */ interface RelayContainerClass extends React.ComponentClass { - getFragment: ((q: string, v?: RelayVariables) => string) + getFragment: ((q: string, v?: RelayVariables) => string); } interface RelayQueryRequestResolve { - response: any + response: any; } type RelayMutationStatus = @@ -352,35 +352,34 @@ declare module "react-relay/classic" { } interface RelayMutationRequest { - getQueryString(): string - getVariables(): RelayVariables - resolve(result: RelayQueryRequestResolve): any - reject(errors: any): any + getQueryString(): string; + getVariables(): RelayVariables; + resolve(result: RelayQueryRequestResolve): any; + reject(errors: any): any; } interface RelayQueryRequest { - resolve(result: RelayQueryRequestResolve): any - reject(errors: any): any - - getQueryString(): string - getVariables(): RelayVariables - getID(): string - getDebugName(): string + resolve(result: RelayQueryRequestResolve): any; + reject(errors: any): any; + getQueryString(): string; + getVariables(): RelayVariables; + getID(): string; + getDebugName(): string; } interface RelayNetworkLayer { - supports(...options: string[]): boolean + supports(...options: string[]): boolean; } class DefaultNetworkLayer implements RelayNetworkLayer { - constructor(host: string, options?: any) - supports(...options: string[]): boolean + constructor(host: string, options?: any); + supports(...options: string[]): boolean; } - export function createContainer(component: React.ComponentClass | React.StatelessComponent, params?: CreateContainerOpts): RelayContainerClass - export function injectNetworkLayer(networkLayer: RelayNetworkLayer): any - export function isContainer(component: React.ComponentClass): boolean - export function QL(...args: any[]): string + export function createContainer(component: React.ComponentClass | React.StatelessComponent, params?: CreateContainerOpts): RelayContainerClass; + export function injectNetworkLayer(networkLayer: RelayNetworkLayer): any; + export function isContainer(component: React.ComponentClass): boolean; + export function QL(...args: any[]): string; class Route { constructor(params?: RelayVariables) @@ -392,36 +391,36 @@ declare module "react-relay/classic" { * return some data in the payload using REQUIRED_CHILDREN which is where specifying S is the most useful. */ class Mutation { - props: T + props: T; - constructor(props: T) - static getFragment(q: string): string + constructor(props: T); + static getFragment(q: string): string; } interface Transaction { - getError(): Error - Status(): number + getError(): Error; + Status(): number; } interface StoreUpdateCallbacks { - onFailure?(transaction: Transaction): any - onSuccess?(response: T): any + onFailure?(transaction: Transaction): any; + onSuccess?(response: T): any; } interface Store { - commitUpdate(mutation: Mutation, callbacks?: StoreUpdateCallbacks): any + commitUpdate(mutation: Mutation, callbacks?: StoreUpdateCallbacks): any; } - const Store: Store + const Store: Store; class RootContainer extends React.Component { } interface RootContainerProps extends React.Props { - Component: RelayContainerClass - route: Route - renderLoading?(): JSX.Element - renderFetched?(data: any): JSX.Element - renderFailure?(error: Error, retry: (...args: any[]) => any): JSX.Element + Component: RelayContainerClass; + route: Route; + renderLoading?(): JSX.Element; + renderFetched?(data: any): JSX.Element; + renderFailure?(error: Error, retry: (...args: any[]) => any): JSX.Element; } type ReadyStateEvent = @@ -443,7 +442,7 @@ declare module "react-relay/classic" { error?: Error, events: ReadyStateEvent[], aborted: boolean - }) => void + }) => void; interface RelayProp { readonly route: { name: string; }; // incomplete, also has params and queries diff --git a/types/react-relay/react-relay-tests.tsx b/types/react-relay/react-relay-tests.tsx index 2b76bc7860..5bd7c6c964 100644 --- a/types/react-relay/react-relay-tests.tsx +++ b/types/react-relay/react-relay-tests.tsx @@ -7,9 +7,6 @@ import { ConnectionHandler, } from 'relay-runtime'; - - - //////////////////////////// // RELAY MODERN TESTS /////////////////////////// @@ -25,16 +22,17 @@ import { RelayRefetchProp } from "react-relay"; - // ~~~~~~~~~~~~~~~~~~~~~ // Modern Environment // ~~~~~~~~~~~~~~~~~~~~~ -const network = {} as __Relay.Runtime.RelayNetwork; +function fetchQuery(operation: any, variables: any, cacheConfig: {}) { + return fetch('/graphql'); +} +const network = Network.create(fetchQuery); const source = new RecordSource(); const store = new Store(source); const modernEnvironment = new Environment({ network, store }); - // ~~~~~~~~~~~~~~~~~~~~~ // Modern QueryRenderer // ~~~~~~~~~~~~~~~~~~~~~ @@ -81,19 +79,18 @@ const MyFragmentContainer = createFragmentContainer( } ); - // ~~~~~~~~~~~~~~~~~~~~~ // Modern RefetchContainer // ~~~~~~~~~~~~~~~~~~~~~ -interface IStory { id: string } -interface IFeedStoriesProps { +interface StoryInterface { id: string; } +interface FeedStoriesProps { relay: RelayRefetchProp; feed: { - stories: { edges: { node: IStory }[] } - } + stories: { edges: Array<{ node: StoryInterface }> } + }; } -class Story extends React.Component<{ story: IStory }, {}> {} -class FeedStories extends React.Component { +class Story extends React.Component<{ story: StoryInterface }, {}> {} +class FeedStories extends React.Component { render() { return (
@@ -145,16 +142,14 @@ const FeedRefetchContainer = createRefetchContainer( `, ); - - // ~~~~~~~~~~~~~~~~~~~~~ // Modern PaginationContainer // ~~~~~~~~~~~~~~~~~~~~~ -interface IFeedProps { - user: { feed: { edges: { node: IStory}[]}} +interface FeedProps { + user: { feed: { edges: Array<{ node: StoryInterface}>}}; relay: RelayPaginationProp; } -class Feed extends React.Component { +class Feed extends React.Component { render() { return (
{this.props.user.feed.edges.map( @@ -236,7 +231,6 @@ const FeedPaginationContainer = createPaginationContainer( } ); - // ~~~~~~~~~~~~~~~~~~~~~ // Modern Mutations // ~~~~~~~~~~~~~~~~~~~~~ @@ -298,14 +292,13 @@ function markNotificationAsRead(source: string, storyID: string) { optimisticResponse, variables, onCompleted: (response, errors) => { - console.log('Response received from server.') + console.log('Response received from server.'); }, onError: err => console.error(err), }, ); } - // ~~~~~~~~~~~~~~~~~~~~~ // Modern Subscriptions // ~~~~~~~~~~~~~~~~~~~~~ @@ -351,9 +344,6 @@ requestSubscription( } ); - - - //////////////////////////// // RELAY-CLASSIC TESTS /////////////////////////// @@ -361,29 +351,25 @@ requestSubscription( import * as Relay from "react-relay/classic"; interface Props { - text: string - userId: string + text: string; + userId: string; } -interface Response { -} - -export default class AddTweetMutation extends Relay.Mutation { - - getMutation () { - return Relay.QL`mutation{addTweet}` +export default class AddTweetMutation extends Relay.Mutation { + getMutation() { + return Relay.QL`mutation{addTweet}`; } - getFatQuery () { + getFatQuery() { return Relay.QL` fragment on AddTweetPayload { tweetEdge user } - ` + `; } - getConfigs () { + getConfigs() { return [{ type: "RANGE_ADD", parentName: "user", @@ -393,19 +379,19 @@ export default class AddTweetMutation extends Relay.Mutation { rangeBehaviors: { "": "append", }, - }] + }]; } - getVariables () { - return this.props + getVariables() { + return this.props; } } interface ArtworkProps { artwork: { title: string - }, - relay: Relay.RelayProp, + }; + relay: Relay.RelayProp; } class Artwork extends React.Component { @@ -414,7 +400,7 @@ class Artwork extends React.Component { {this.props.artwork.title} - ) + ); } } @@ -426,7 +412,7 @@ const ArtworkContainer = Relay.createContainer(Artwork, { } ` } -}) +}); class StubbedArtwork extends React.Component { render() { @@ -445,7 +431,7 @@ class StubbedArtwork extends React.Component { getPendingTransactions: (): any => undefined, commitUpdate: () => {}, } - } - return + }; + return ; } } From e1f651b9f3336dfc684459cd9a16ac749f6150fb Mon Sep 17 00:00:00 2001 From: voxmatt Date: Mon, 11 Sep 2017 11:11:36 -1000 Subject: [PATCH 032/506] more cleanup of lint errors --- types/react-relay/index.d.ts | 83 ++++++++++++------------- types/react-relay/react-relay-tests.tsx | 6 +- 2 files changed, 44 insertions(+), 45 deletions(-) diff --git a/types/react-relay/index.d.ts b/types/react-relay/index.d.ts index e41f39e4ae..cd43410727 100644 --- a/types/react-relay/index.d.ts +++ b/types/react-relay/index.d.ts @@ -7,7 +7,6 @@ /// declare namespace __Relay { - //////////////////////////// // RELAY MODERN TYPES /////////////////////////// @@ -25,14 +24,14 @@ declare namespace __Relay { // RelayProp // ~~~~~~~~~~~~~~~~~~~~~ // note: refetch and pagination containers augment this - export interface RelayProp { + interface RelayProp { environment: Runtime.Environment; } // ~~~~~~~~~~~~~~~~~~~~~ // RelayQL // ~~~~~~~~~~~~~~~~~~~~~ - export function RelayQL( + function RelayQL( strings: string[], ...substitutions: any[] ): Common.RelayConcreteNode; @@ -57,23 +56,23 @@ declare namespace __Relay { (strings: string[] | TemplateStringsArray): GraphQLTaggedNode; experimental(strings: string[] | TemplateStringsArray): GraphQLTaggedNode; } - export const graphql: GraphqlInterface; + const graphql: GraphqlInterface; // ~~~~~~~~~~~~~~~~~~~~~ // ReactRelayQueryRenderer // ~~~~~~~~~~~~~~~~~~~~~ interface QueryRendererProps { - cacheConfig?: Common.CacheConfig | void; + cacheConfig?: Common.CacheConfig; environment: Runtime.Environment; query: GraphQLTaggedNode; - render(readyState: ReadyState): React.ReactElement | void; + render(readyState: ReadyState): React.ReactElement | undefined | null; variables: Common.Variables; rerunParamExperimental?: Common.RerunParam; } - export interface ReadyState { - error: Error | void; - props: { [propName: string]: any } | void; - retry: (() => void) | void; + interface ReadyState { + error: Error | undefined | null; + props: { [propName: string]: any } | undefined | null; + retry?(): void; } interface QueryRendererState { readyState: ReadyState; @@ -83,7 +82,7 @@ declare namespace __Relay { // ~~~~~~~~~~~~~~~~~~~~~ // createFragmentContainer // ~~~~~~~~~~~~~~~~~~~~~ - export function createFragmentContainer( + function createFragmentContainer( Component: ReactBaseComponent, fragmentSpec: GraphQLTaggedNode | GeneratedNodeMap, ): ReactBaseComponent; @@ -92,45 +91,45 @@ declare namespace __Relay { // createPaginationContainer // ~~~~~~~~~~~~~~~~~~~~~ interface PageInfo { - endCursor: string | void; + endCursor: string | undefined | null; hasNextPage: boolean; hasPreviousPage: boolean; - startCursor: string | void; + startCursor: string | undefined | null; } interface ConnectionData { edges?: any[]; - pageInfo?: PageInfo | void; + pageInfo?: PageInfo; } - export type RelayPaginationProp = RelayProp & { + type RelayPaginationProp = RelayProp & { hasMore(): boolean, isLoading(): boolean, loadMore( pageSize: number, callback: (error?: Error) => void, options?: RefetchOptions, - ): Common.Disposable | void, + ): Common.Disposable | undefined | null, refetchConnection( totalCount: number, - callback: (error?: Error | void) => void, - refetchVariables?: Common.Variables | void, - ): Common.Disposable | void, + callback: (error?: Error) => void, + refetchVariables?: Common.Variables, + ): Common.Disposable | undefined | null, }; - export function FragmentVariablesGetter( + function FragmentVariablesGetter( prevVars: Common.Variables, totalCount: number, ): Common.Variables; interface ConnectionConfig { direction?: 'backward' | 'forward'; - getConnectionFromProps?(props: object): ConnectionData | void; + getConnectionFromProps?(props: object): ConnectionData | undefined | null; getFragmentVariables?: typeof FragmentVariablesGetter; getVariables( props: { [propName: string]: any }, - paginationInfo: { count: number, cursor: string | void }, + paginationInfo: { count: number, cursor?: string }, fragmentVariables: Common.Variables, ): Common.Variables; query: GraphQLTaggedNode; } - export function createPaginationContainer( + function createPaginationContainer( Component: ReactBaseComponent, fragmentSpec: GraphQLTaggedNode | GeneratedNodeMap, connectionConfig: ConnectionConfig, @@ -139,19 +138,19 @@ declare namespace __Relay { // ~~~~~~~~~~~~~~~~~~~~~ // createFragmentContainer // ~~~~~~~~~~~~~~~~~~~~~ - export interface RefetchOptions { + interface RefetchOptions { force?: boolean; rerunParamExperimental?: Common.RerunParam; } - export type RelayRefetchProp = RelayProp & { + type RelayRefetchProp = RelayProp & { refetch( refetchVariables: Common.Variables | ((fragmentVariables: Common.Variables) => Common.Variables), renderVariables?: Common.Variables, - callback?: (error: Error | void) => void, + callback?: (error?: Error) => void, options?: RefetchOptions, ): Common.Disposable, }; - export function createRefetchContainer( + function createRefetchContainer( Component: ReactBaseComponent, fragmentSpec: GraphQLTaggedNode | GeneratedNodeMap, taggedNode: GraphQLTaggedNode, @@ -181,7 +180,7 @@ declare namespace __Relay { resolve( fragment: RelayQuery["Fragment"], dataIDs: Common.DataID | Common.DataID[], - ): (StoreReaderData | StoreReaderData[]) | void; + ): StoreReaderData | StoreReaderData[] | undefined | null; } interface RelayEnvironmentInterface { forceFetch( @@ -224,7 +223,7 @@ declare namespace __Relay { // ~~~~~~~~~~~~~~~~~~~~~ // Util // ~~~~~~~~~~~~~~~~~~~~~ - export function getFragment(q: string, v?: Common.Variables): string; + function getFragment(q: string, v?: Common.Variables): string; interface ComponentWithFragment extends React.ComponentClass { getFragment: typeof getFragment; } @@ -233,21 +232,21 @@ declare namespace __Relay { } type ReactFragmentComponent = ComponentWithFragment | StatelessWithFragment; type ReactBaseComponent = React.ComponentClass | React.StatelessComponent; - export type RelayClassicEnvironment = Classic.RelayEnvironmentInterface; + type RelayClassicEnvironment = Classic.RelayEnvironmentInterface; // ~~~~~~~~~~~~~~~~~~~~~ // RelayCompatTypes // ~~~~~~~~~~~~~~~~~~~~~ - export type CompatEnvironment = Runtime.Environment | RelayClassicEnvironment; + type CompatEnvironment = Runtime.Environment | RelayClassicEnvironment; // ~~~~~~~~~~~~~~~~~~~~~ // RelayCompatMutations // ~~~~~~~~~~~~~~~~~~~~~ - export function commitUpdate( + function commitUpdate( environment: CompatEnvironment, - config: Runtime.MutationConfig, + config: Runtime.MutationConfig, ): Common.Disposable; - export function applyUpdate( + function applyUpdate( environment: CompatEnvironment, config: Runtime.OptimisticMutationConfig, ): Common.Disposable; @@ -255,8 +254,8 @@ declare namespace __Relay { // ~~~~~~~~~~~~~~~~~~~~~ // RelayCompatContainer // ~~~~~~~~~~~~~~~~~~~~~ - export interface GeneratedNodeMap { [key: string]: Modern.GraphQLTaggedNode; } - export function createContainer( + interface GeneratedNodeMap { [key: string]: Modern.GraphQLTaggedNode; } + function createContainer( Component: ReactBaseComponent, fragmentSpec: Modern.GraphQLTaggedNode | GeneratedNodeMap, ): ReactFragmentComponent; @@ -265,7 +264,7 @@ declare namespace __Relay { // injectDefaultVariablesProvider // ~~~~~~~~~~~~~~~~~~~~~ type VariablesProvider = () => Common.Variables; - export function injectDefaultVariablesProvider(variablesProvider: VariablesProvider): void; + function injectDefaultVariablesProvider(variablesProvider: VariablesProvider): void; } } @@ -376,10 +375,10 @@ declare module "react-relay/classic" { supports(...options: string[]): boolean; } - export function createContainer(component: React.ComponentClass | React.StatelessComponent, params?: CreateContainerOpts): RelayContainerClass; - export function injectNetworkLayer(networkLayer: RelayNetworkLayer): any; - export function isContainer(component: React.ComponentClass): boolean; - export function QL(...args: any[]): string; + function createContainer(component: React.ComponentClass | React.StatelessComponent, params?: CreateContainerOpts): RelayContainerClass; + function injectNetworkLayer(networkLayer: RelayNetworkLayer): any; + function isContainer(component: React.ComponentClass): boolean; + function QL(...args: any[]): string; class Route { constructor(params?: RelayVariables) @@ -447,7 +446,7 @@ declare module "react-relay/classic" { interface RelayProp { readonly route: { name: string; }; // incomplete, also has params and queries readonly variables: any; - readonly pendingVariables?: any | null; + readonly pendingVariables?: any; setVariables(variables: any, onReadyStateChange?: OnReadyStateChange): void; forceFetch(variables: any, onReadyStateChange?: OnReadyStateChange): void; hasOptimisticUpdate(record: any): boolean; diff --git a/types/react-relay/react-relay-tests.tsx b/types/react-relay/react-relay-tests.tsx index 5bd7c6c964..2b8e371ee2 100644 --- a/types/react-relay/react-relay-tests.tsx +++ b/types/react-relay/react-relay-tests.tsx @@ -89,8 +89,8 @@ interface FeedStoriesProps { stories: { edges: Array<{ node: StoryInterface }> } }; } -class Story extends React.Component<{ story: StoryInterface }, {}> {} -class FeedStories extends React.Component { +class Story extends React.Component<{ story: StoryInterface }> {} +class FeedStories extends React.Component { render() { return (
@@ -149,7 +149,7 @@ interface FeedProps { user: { feed: { edges: Array<{ node: StoryInterface}>}}; relay: RelayPaginationProp; } -class Feed extends React.Component { +class Feed extends React.Component { render() { return (
{this.props.user.feed.edges.map( From e90ca4bb3ec352283019eba8b6127abe7c091bd2 Mon Sep 17 00:00:00 2001 From: voxmatt Date: Mon, 11 Sep 2017 11:17:03 -1000 Subject: [PATCH 033/506] I need these exports; put in a ts-lint disable line around them --- types/react-relay/index.d.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/types/react-relay/index.d.ts b/types/react-relay/index.d.ts index cd43410727..ebb7fe714e 100644 --- a/types/react-relay/index.d.ts +++ b/types/react-relay/index.d.ts @@ -271,7 +271,7 @@ declare namespace __Relay { //////////////////////////// // MODULES /////////////////////////// - +// tslint:disable strict-export-declare-modifiers declare module 'react-relay' { export import QueryRenderer = __Relay.Modern.ReactRelayQueryRenderer; export import createFragmentContainer = __Relay.Modern.createFragmentContainer; @@ -301,6 +301,7 @@ declare module 'react-relay/compat' { export import graphql = __Relay.Modern.graphql; export import fetchQuery = __Relay.Runtime.fetchRelayModernQuery; } +// tslint:enable strict-export-declare-modifiers declare module "react-relay/classic" { import * as React from "react"; From 1bae0838318dd5afcb288601747adcd1d64a490a Mon Sep 17 00:00:00 2001 From: voxmatt Date: Mon, 11 Sep 2017 16:00:29 -1000 Subject: [PATCH 034/506] adding back in Renderer --- types/react-relay/index.d.ts | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/types/react-relay/index.d.ts b/types/react-relay/index.d.ts index ebb7fe714e..83b2890020 100644 --- a/types/react-relay/index.d.ts +++ b/types/react-relay/index.d.ts @@ -423,6 +423,26 @@ declare module "react-relay/classic" { renderFailure?(error: Error, retry: (...args: any[]) => any): JSX.Element; } + class Renderer extends React.Component { } + + interface RendererProps { + Container: RelayContainerClass; // Relay container that defines fragments and the view to render. + forceFetch?: boolean; // Whether to send a server request regardless of data available on the client. + queryConfig: Route; // `QueryConfig` or `Relay.Route` that defines the query roots. + environment: Store; // An instance of `Relay.Environment` or any object that implements the `RelayEnvironment` interface. + render?: RenderCallback; // Called to render when data requirements are being fulfilled. + onReadyStateChange?: OnReadyStateChange; + } + + interface RenderStateConfig { + props?: { [propName: string]: any }; + done: boolean; + error?: Error; + retry?(): void; + stale: boolean; + } + type RenderCallback = (renderState: RenderStateConfig) => any; + type ReadyStateEvent = 'ABORT' | 'CACHE_RESTORED_REQUIRED' | From bead197886f9e35acd6901d41081829f46c56ef2 Mon Sep 17 00:00:00 2001 From: David Paz Date: Fri, 15 Sep 2017 16:34:18 +0200 Subject: [PATCH 035/506] Update currency-formatter api Add unformat() function and add missing option to format function options --- types/currency-formatter/index.d.ts | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/types/currency-formatter/index.d.ts b/types/currency-formatter/index.d.ts index 67591738ab..92d7259a56 100644 --- a/types/currency-formatter/index.d.ts +++ b/types/currency-formatter/index.d.ts @@ -1,6 +1,7 @@ // Type definitions for currency-formatter 1.0 // Project: https://github.com/smirzaei/currency-formatter#readme // Definitions by: Mohamed Hegazy +// David Paz // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped export interface Currency { @@ -18,6 +19,7 @@ export const defaultCurrency: Currency; export function findCurrency(currencyCode: string): Currency; export function format(value: number, options: { code?: string, + locale?: string, symbol?: string, decimal?: string, thousand?: string, @@ -28,3 +30,17 @@ export function format(value: number, options: { zero: string } }): string; + +export function unformat(value: string, options: { + code?: string, + locale?: string, + symbol?: string, + decimal?: string, + thousand?: string, + precision?: number, + format?: string | { + pos: string, + neg: string, + zero: string + } +}): number; From 39a4cf5261c35a9646f6f94693c86c5212805ea9 Mon Sep 17 00:00:00 2001 From: David Paz Date: Fri, 15 Sep 2017 16:35:36 +0200 Subject: [PATCH 036/506] Update tests for currency-formatter --- types/currency-formatter/currency-formatter-tests.ts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/types/currency-formatter/currency-formatter-tests.ts b/types/currency-formatter/currency-formatter-tests.ts index f06f53ce05..83617a6404 100644 --- a/types/currency-formatter/currency-formatter-tests.ts +++ b/types/currency-formatter/currency-formatter-tests.ts @@ -3,12 +3,21 @@ import currencyFormatter = require('currency-formatter'); currencyFormatter.format(1000000, { code: 'USD' }); // => '$1,000,000.00' +currencyFormatter.unformat('$1,000,000.00', { code: 'USD' }); +// => 1000000 + currencyFormatter.format(1000000, { code: 'GBP' }); // => '£1,000,000.00' +currencyFormatter.unformat('£1,000,000.00', { code: 'GBP' }); +// => 1000000 + currencyFormatter.format(1000000, { code: 'EUR' }); // => '1 000 000,00 €' +currencyFormatter.unformat('1 000 000,00 €', { code: 'EUR' }); +// => 1000000 + currencyFormatter.findCurrency('USD'); // returns: // { From 4b7c067a36f05c88ff0ebe9b0426a2d8300892d4 Mon Sep 17 00:00:00 2001 From: David Paz Date: Fri, 15 Sep 2017 16:40:49 +0200 Subject: [PATCH 037/506] Update currency-formatter version header --- types/currency-formatter/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/currency-formatter/index.d.ts b/types/currency-formatter/index.d.ts index 92d7259a56..88eb453d2d 100644 --- a/types/currency-formatter/index.d.ts +++ b/types/currency-formatter/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for currency-formatter 1.0 +// Type definitions for currency-formatter 1.3.0 // Project: https://github.com/smirzaei/currency-formatter#readme // Definitions by: Mohamed Hegazy // David Paz From c0ccefc056068f557f53d083dc2e8658de5ec6fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lucas=20de=20=C3=81vila=20Martins?= Date: Tue, 26 Sep 2017 22:15:59 -0300 Subject: [PATCH 038/506] Change vec2.cross out from vec2 to vec3 There is a mathematical reasoning behind it but I'm in a bit o a hurry to explain. Anyway, it works like this and it's documented like this. http://glmatrix.net/docs/module-vec2.html --- types/gl-matrix/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/gl-matrix/index.d.ts b/types/gl-matrix/index.d.ts index d39496e20d..df55ace30d 100644 --- a/types/gl-matrix/index.d.ts +++ b/types/gl-matrix/index.d.ts @@ -343,7 +343,7 @@ declare module 'gl-matrix' { * @param b the second operand * @returns out */ - public static cross(out: vec2, a: vec2 | number[], b: vec2 | number[]): vec2; + public static cross(out: vec3, a: vec2 | number[], b: vec2 | number[]): vec2; /** * Performs a linear interpolation between two vec2's From cf42e47abb9a1f573655f6d84c59e1f3a65b5bb4 Mon Sep 17 00:00:00 2001 From: Fred Morel Date: Fri, 29 Sep 2017 15:12:10 -0400 Subject: [PATCH 039/506] Replace String with string --- .../google-apps-script.cache.d.ts | 4 +- .../google-apps-script.calendar.d.ts | 8 +-- .../google-apps-script.charts.d.ts | 14 ++--- .../google-apps-script.contacts.d.ts | 2 +- .../google-apps-script.document.d.ts | 22 +++---- .../google-apps-script.drive.d.ts | 10 +-- .../google-apps-script.forms.d.ts | 22 +++---- .../google-apps-script.gmail.d.ts | 2 +- .../google-apps-script.jdbc.d.ts | 26 ++++---- .../google-apps-script.properties.d.ts | 6 +- .../google-apps-script.sites.d.ts | 14 ++--- .../google-apps-script.spreadsheet.d.ts | 62 +++++++++---------- .../google-apps-script.types.d.ts | 2 +- .../google-apps-script.ui.d.ts | 12 ++-- .../google-apps-script.utilities.d.ts | 4 +- 15 files changed, 105 insertions(+), 105 deletions(-) diff --git a/types/google-apps-script/google-apps-script.cache.d.ts b/types/google-apps-script/google-apps-script.cache.d.ts index c0cf592b43..23a9b19c34 100644 --- a/types/google-apps-script/google-apps-script.cache.d.ts +++ b/types/google-apps-script/google-apps-script.cache.d.ts @@ -29,13 +29,13 @@ declare namespace GoogleAppsScript { */ export interface Cache { get(key: string): string; - getAll(keys: String[]): Object; + getAll(keys: string[]): Object; put(key: string, value: string): void; put(key: string, value: string, expirationInSeconds: Integer): void; putAll(values: Object): void; putAll(values: Object, expirationInSeconds: Integer): void; remove(key: string): void; - removeAll(keys: String[]): void; + removeAll(keys: string[]): void; } /** diff --git a/types/google-apps-script/google-apps-script.calendar.d.ts b/types/google-apps-script/google-apps-script.calendar.d.ts index d94ec25ad3..34a3d46a11 100644 --- a/types/google-apps-script/google-apps-script.calendar.d.ts +++ b/types/google-apps-script/google-apps-script.calendar.d.ts @@ -113,9 +113,9 @@ declare namespace GoogleAppsScript { deleteTag(key: string): CalendarEvent; getAllDayEndDate(): Date; getAllDayStartDate(): Date; - getAllTagKeys(): String[]; + getAllTagKeys(): string[]; getColor(): string; - getCreators(): String[]; + getCreators(): string[]; getDateCreated(): Date; getDescription(): string; getEmailReminders(): Integer[]; @@ -170,9 +170,9 @@ declare namespace GoogleAppsScript { anyoneCanAddSelf(): boolean; deleteEventSeries(): void; deleteTag(key: string): CalendarEventSeries; - getAllTagKeys(): String[]; + getAllTagKeys(): string[]; getColor(): string; - getCreators(): String[]; + getCreators(): string[]; getDateCreated(): Date; getDescription(): string; getEmailReminders(): Integer[]; diff --git a/types/google-apps-script/google-apps-script.charts.d.ts b/types/google-apps-script/google-apps-script.charts.d.ts index de6de7b767..5e3b51436c 100644 --- a/types/google-apps-script/google-apps-script.charts.d.ts +++ b/types/google-apps-script/google-apps-script.charts.d.ts @@ -52,7 +52,7 @@ declare namespace GoogleAppsScript { build(): Chart; reverseCategories(): AreaChartBuilder; setBackgroundColor(cssValue: string): AreaChartBuilder; - setColors(cssValues: String[]): AreaChartBuilder; + setColors(cssValues: string[]): AreaChartBuilder; setDataSourceUrl(url: string): AreaChartBuilder; setDataTable(tableBuilder: DataTableBuilder): AreaChartBuilder; setDataTable(table: DataTableSource): AreaChartBuilder; @@ -105,7 +105,7 @@ declare namespace GoogleAppsScript { reverseCategories(): BarChartBuilder; reverseDirection(): BarChartBuilder; setBackgroundColor(cssValue: string): BarChartBuilder; - setColors(cssValues: String[]): BarChartBuilder; + setColors(cssValues: string[]): BarChartBuilder; setDataSourceUrl(url: string): BarChartBuilder; setDataTable(tableBuilder: DataTableBuilder): BarChartBuilder; setDataTable(table: DataTableSource): BarChartBuilder; @@ -199,7 +199,7 @@ declare namespace GoogleAppsScript { setLabelStacking(orientation: Orientation): CategoryFilterBuilder; setSelectedValuesLayout(layout: PickerValuesLayout): CategoryFilterBuilder; setSortValues(sortValues: boolean): CategoryFilterBuilder; - setValues(values: String[]): CategoryFilterBuilder; + setValues(values: string[]): CategoryFilterBuilder; } /** @@ -326,7 +326,7 @@ declare namespace GoogleAppsScript { build(): Chart; reverseCategories(): ColumnChartBuilder; setBackgroundColor(cssValue: string): ColumnChartBuilder; - setColors(cssValues: String[]): ColumnChartBuilder; + setColors(cssValues: string[]): ColumnChartBuilder; setDataSourceUrl(url: string): ColumnChartBuilder; setDataTable(tableBuilder: DataTableBuilder): ColumnChartBuilder; setDataTable(table: DataTableSource): ColumnChartBuilder; @@ -590,7 +590,7 @@ declare namespace GoogleAppsScript { build(): Chart; reverseCategories(): LineChartBuilder; setBackgroundColor(cssValue: string): LineChartBuilder; - setColors(cssValues: String[]): LineChartBuilder; + setColors(cssValues: string[]): LineChartBuilder; setCurveStyle(style: CurveStyle): LineChartBuilder; setDataSourceUrl(url: string): LineChartBuilder; setDataTable(tableBuilder: DataTableBuilder): LineChartBuilder; @@ -723,7 +723,7 @@ declare namespace GoogleAppsScript { reverseCategories(): PieChartBuilder; set3D(): PieChartBuilder; setBackgroundColor(cssValue: string): PieChartBuilder; - setColors(cssValues: String[]): PieChartBuilder; + setColors(cssValues: string[]): PieChartBuilder; setDataSourceUrl(url: string): PieChartBuilder; setDataTable(tableBuilder: DataTableBuilder): PieChartBuilder; setDataTable(table: DataTableSource): PieChartBuilder; @@ -773,7 +773,7 @@ declare namespace GoogleAppsScript { export interface ScatterChartBuilder { build(): Chart; setBackgroundColor(cssValue: string): ScatterChartBuilder; - setColors(cssValues: String[]): ScatterChartBuilder; + setColors(cssValues: string[]): ScatterChartBuilder; setDataSourceUrl(url: string): ScatterChartBuilder; setDataTable(tableBuilder: DataTableBuilder): ScatterChartBuilder; setDataTable(table: DataTableSource): ScatterChartBuilder; diff --git a/types/google-apps-script/google-apps-script.contacts.d.ts b/types/google-apps-script/google-apps-script.contacts.d.ts index 46337d87d5..e0fa82d371 100644 --- a/types/google-apps-script/google-apps-script.contacts.d.ts +++ b/types/google-apps-script/google-apps-script.contacts.d.ts @@ -91,7 +91,7 @@ declare namespace GoogleAppsScript { setPrefix(prefix: string): Contact; setShortName(shortName: string): Contact; setSuffix(suffix: string): Contact; - getEmailAddresses(): String[]; + getEmailAddresses(): string[]; getHomeAddress(): string; getHomeFax(): string; getHomePhone(): string; diff --git a/types/google-apps-script/google-apps-script.document.d.ts b/types/google-apps-script/google-apps-script.document.d.ts index bee604636a..b0cc1c4e2a 100644 --- a/types/google-apps-script/google-apps-script.document.d.ts +++ b/types/google-apps-script/google-apps-script.document.d.ts @@ -52,7 +52,7 @@ declare namespace GoogleAppsScript { appendParagraph(paragraph: Paragraph): Paragraph; appendParagraph(text: string): Paragraph; appendTable(): Table; - appendTable(cells: String[][]): Table; + appendTable(cells: string[][]): Table; appendTable(table: Table): Table; clear(): Body; copy(): Body; @@ -90,7 +90,7 @@ declare namespace GoogleAppsScript { insertParagraph(childIndex: Integer, paragraph: Paragraph): Paragraph; insertParagraph(childIndex: Integer, text: string): Paragraph; insertTable(childIndex: Integer): Table; - insertTable(childIndex: Integer, cells: String[][]): Table; + insertTable(childIndex: Integer, cells: string[][]): Table; insertTable(childIndex: Integer, table: Table): Table; removeChild(child: Element): Body; replaceText(searchPattern: string, replacement: string): Element; @@ -185,13 +185,13 @@ declare namespace GoogleAppsScript { addBookmark(position: Position): Bookmark; addEditor(emailAddress: string): Document; addEditor(user: Base.User): Document; - addEditors(emailAddresses: String[]): Document; + addEditors(emailAddresses: string[]): Document; addFooter(): FooterSection; addHeader(): HeaderSection; addNamedRange(name: string, range: Range): NamedRange; addViewer(emailAddress: string): Document; addViewer(user: Base.User): Document; - addViewers(emailAddresses: String[]): Document; + addViewers(emailAddresses: string[]): Document; getAs(contentType: string): Base.Blob; getBlob(): Base.Blob; getBody(): Body; @@ -459,7 +459,7 @@ declare namespace GoogleAppsScript { /** * - * Deprecated. The methods getFontFamily() and setFontFamily(String) now use string + * Deprecated. The methods getFontFamily() and setFontFamily(string) now use string * names for fonts instead of this enum. Although this enum is deprecated, it will remain * available for compatibility with older scripts. * An enumeration of the supported fonts. @@ -502,7 +502,7 @@ declare namespace GoogleAppsScript { appendParagraph(paragraph: Paragraph): Paragraph; appendParagraph(text: string): Paragraph; appendTable(): Table; - appendTable(cells: String[][]): Table; + appendTable(cells: string[][]): Table; appendTable(table: Table): Table; clear(): FooterSection; copy(): FooterSection; @@ -531,7 +531,7 @@ declare namespace GoogleAppsScript { insertParagraph(childIndex: Integer, paragraph: Paragraph): Paragraph; insertParagraph(childIndex: Integer, text: string): Paragraph; insertTable(childIndex: Integer): Table; - insertTable(childIndex: Integer, cells: String[][]): Table; + insertTable(childIndex: Integer, cells: string[][]): Table; insertTable(childIndex: Integer, table: Table): Table; removeChild(child: Element): FooterSection; removeFromParent(): FooterSection; @@ -643,7 +643,7 @@ declare namespace GoogleAppsScript { appendParagraph(paragraph: Paragraph): Paragraph; appendParagraph(text: string): Paragraph; appendTable(): Table; - appendTable(cells: String[][]): Table; + appendTable(cells: string[][]): Table; appendTable(table: Table): Table; clear(): HeaderSection; copy(): HeaderSection; @@ -672,7 +672,7 @@ declare namespace GoogleAppsScript { insertParagraph(childIndex: Integer, paragraph: Paragraph): Paragraph; insertParagraph(childIndex: Integer, text: string): Paragraph; insertTable(childIndex: Integer): Table; - insertTable(childIndex: Integer, cells: String[][]): Table; + insertTable(childIndex: Integer, cells: string[][]): Table; insertTable(childIndex: Integer, table: Table): Table; removeChild(child: Element): HeaderSection; removeFromParent(): HeaderSection; @@ -1269,7 +1269,7 @@ declare namespace GoogleAppsScript { appendParagraph(paragraph: Paragraph): Paragraph; appendParagraph(text: string): Paragraph; appendTable(): Table; - appendTable(cells: String[][]): Table; + appendTable(cells: string[][]): Table; appendTable(table: Table): Table; clear(): TableCell; copy(): TableCell; @@ -1308,7 +1308,7 @@ declare namespace GoogleAppsScript { insertParagraph(childIndex: Integer, paragraph: Paragraph): Paragraph; insertParagraph(childIndex: Integer, text: string): Paragraph; insertTable(childIndex: Integer): Table; - insertTable(childIndex: Integer, cells: String[][]): Table; + insertTable(childIndex: Integer, cells: string[][]): Table; insertTable(childIndex: Integer, table: Table): Table; isAtDocumentEnd(): boolean; merge(): TableCell; diff --git a/types/google-apps-script/google-apps-script.drive.d.ts b/types/google-apps-script/google-apps-script.drive.d.ts index 36693eaf9f..96968f1002 100644 --- a/types/google-apps-script/google-apps-script.drive.d.ts +++ b/types/google-apps-script/google-apps-script.drive.d.ts @@ -74,13 +74,13 @@ declare namespace GoogleAppsScript { export interface File { addCommenter(emailAddress: string): File; addCommenter(user: Base.User): File; - addCommenters(emailAddresses: String[]): File; + addCommenters(emailAddresses: string[]): File; addEditor(emailAddress: string): File; addEditor(user: Base.User): File; - addEditors(emailAddresses: String[]): File; + addEditors(emailAddresses: string[]): File; addViewer(emailAddress: string): File; addViewer(user: Base.User): File; - addViewers(emailAddresses: String[]): File; + addViewers(emailAddresses: string[]): File; getAccess(email: string): Permission; getAccess(user: Base.User): Permission; getAs(contentType: string): Base.Blob; @@ -157,12 +157,12 @@ declare namespace GoogleAppsScript { export interface Folder { addEditor(emailAddress: string): Folder; addEditor(user: Base.User): Folder; - addEditors(emailAddresses: String[]): Folder; + addEditors(emailAddresses: string[]): Folder; addFile(child: File): Folder; addFolder(child: Folder): Folder; addViewer(emailAddress: string): Folder; addViewer(user: Base.User): Folder; - addViewers(emailAddresses: String[]): Folder; + addViewers(emailAddresses: string[]): Folder; createFile(blob: Base.BlobSource): File; createFile(name: string, content: string): File; createFile(name: string, content: string, mimeType: string): File; diff --git a/types/google-apps-script/google-apps-script.forms.d.ts b/types/google-apps-script/google-apps-script.forms.d.ts index e10c47b169..cdfbfbd1ef 100644 --- a/types/google-apps-script/google-apps-script.forms.d.ts +++ b/types/google-apps-script/google-apps-script.forms.d.ts @@ -41,7 +41,7 @@ declare namespace GoogleAppsScript { clearValidation(): CheckboxItem; createChoice(value: string): Choice; createChoice(value: string, isCorrect: boolean): Choice; - createResponse(responses: String[]): ItemResponse; + createResponse(responses: string[]): ItemResponse; duplicate(): CheckboxItem; getChoices(): Choice[]; getFeedbackForCorrect(): QuizFeedback; @@ -54,7 +54,7 @@ declare namespace GoogleAppsScript { getType(): ItemType; hasOtherOption(): boolean; isRequired(): boolean; - setChoiceValues(values: String[]): CheckboxItem; + setChoiceValues(values: string[]): CheckboxItem; setChoices(choices: Choice[]): CheckboxItem; setFeedbackForCorrect(feedback: QuizFeedback): CheckboxItem; setFeedbackForIncorrect(feedback: QuizFeedback): CheckboxItem; @@ -323,7 +323,7 @@ declare namespace GoogleAppsScript { addDurationItem(): DurationItem; addEditor(emailAddress: string): Form; addEditor(user: Base.User): Form; - addEditors(emailAddresses: String[]): Form; + addEditors(emailAddresses: string[]): Form; addGridItem(): GridItem; addImageItem(): ImageItem; addListItem(): ListItem; @@ -468,20 +468,20 @@ declare namespace GoogleAppsScript { */ export interface GridItem { clearValidation(): GridItem; - createResponse(responses: String[]): ItemResponse; + createResponse(responses: string[]): ItemResponse; duplicate(): GridItem; - getColumns(): String[]; + getColumns(): string[]; getHelpText(): string; getId(): Integer; getIndex(): Integer; - getRows(): String[]; + getRows(): string[]; getTitle(): string; getType(): ItemType; isRequired(): boolean; - setColumns(columns: String[]): GridItem; + setColumns(columns: string[]): GridItem; setHelpText(text: string): GridItem; setRequired(enabled: boolean): GridItem; - setRows(rows: String[]): GridItem; + setRows(rows: string[]): GridItem; setTitle(title: string): GridItem; setValidation(validation: GridValidation): GridItem; } @@ -676,7 +676,7 @@ declare namespace GoogleAppsScript { getTitle(): string; getType(): ItemType; isRequired(): boolean; - setChoiceValues(values: String[]): ListItem; + setChoiceValues(values: string[]): ListItem; setChoices(choices: Choice[]): ListItem; setFeedbackForCorrect(feedback: QuizFeedback): ListItem; setFeedbackForIncorrect(feedback: QuizFeedback): ListItem; @@ -719,7 +719,7 @@ declare namespace GoogleAppsScript { getType(): ItemType; hasOtherOption(): boolean; isRequired(): boolean; - setChoiceValues(values: String[]): MultipleChoiceItem; + setChoiceValues(values: string[]): MultipleChoiceItem; setChoices(choices: Choice[]): MultipleChoiceItem; setFeedbackForCorrect(feedback: QuizFeedback): MultipleChoiceItem; setFeedbackForIncorrect(feedback: QuizFeedback): MultipleChoiceItem; @@ -867,7 +867,7 @@ declare namespace GoogleAppsScript { * textItem.setFeedbackForIncorrect(feedback); */ export interface QuizFeedback { - getLinkUrls(): String[]; + getLinkUrls(): string[]; getText(): string; } diff --git a/types/google-apps-script/google-apps-script.gmail.d.ts b/types/google-apps-script/google-apps-script.gmail.d.ts index fd0bda2b13..41be4dbb56 100644 --- a/types/google-apps-script/google-apps-script.gmail.d.ts +++ b/types/google-apps-script/google-apps-script.gmail.d.ts @@ -14,7 +14,7 @@ declare namespace GoogleAppsScript { export interface GmailApp { createLabel(name: string): GmailLabel; deleteLabel(label: GmailLabel): GmailApp; - getAliases(): String[]; + getAliases(): string[]; getChatThreads(): GmailThread[]; getChatThreads(start: Integer, max: Integer): GmailThread[]; getDraftMessages(): GmailMessage[]; diff --git a/types/google-apps-script/google-apps-script.jdbc.d.ts b/types/google-apps-script/google-apps-script.jdbc.d.ts index ff1a0baf13..96ae94abac 100644 --- a/types/google-apps-script/google-apps-script.jdbc.d.ts +++ b/types/google-apps-script/google-apps-script.jdbc.d.ts @@ -78,7 +78,7 @@ declare namespace GoogleAppsScript { execute(sql: string): boolean; execute(sql: string, autoGeneratedKeys: Integer, sql_: string, columnIndexes: Integer[]): boolean; execute(sql: string, autoGeneratedKeys: Integer, sql_: string, columnIndexes: Integer[]): boolean; - execute(sql: string, columnNames: String[]): boolean; + execute(sql: string, columnNames: string[]): boolean; executeBatch(): Integer[]; executeQuery(): JdbcResultSet; executeQuery(sql: string): JdbcResultSet; @@ -86,7 +86,7 @@ declare namespace GoogleAppsScript { executeUpdate(sql: string): Integer; executeUpdate(sql: string, autoGeneratedKeys: Integer, sql_: string, columnIndexes: Integer[]): Integer; executeUpdate(sql: string, autoGeneratedKeys: Integer, sql_: string, columnIndexes: Integer[]): Integer; - executeUpdate(sql: string, columnNames: String[]): Integer; + executeUpdate(sql: string, columnNames: string[]): Integer; getArray(parameterIndex: Integer): JdbcArray; getArray(parameterName: string): JdbcArray; getBigDecimal(parameterIndex: Integer): BigNumber; @@ -155,7 +155,7 @@ declare namespace GoogleAppsScript { getURL(parameterIndex: Integer): string; getURL(parameterName: string): string; getUpdateCount(): Integer; - getWarnings(): String[]; + getWarnings(): string[]; isClosed(): boolean; isPoolable(): boolean; registerOutParameter(parameterIndex: Integer, sqlType: Integer): void; @@ -272,7 +272,7 @@ declare namespace GoogleAppsScript { getHoldability(): Integer; getMetaData(): JdbcDatabaseMetaData; getTransactionIsolation(): Integer; - getWarnings(): String[]; + getWarnings(): string[]; isClosed(): boolean; isReadOnly(): boolean; isValid(timeout: Integer): boolean; @@ -285,7 +285,7 @@ declare namespace GoogleAppsScript { prepareStatement(sql: string, resultSetType: Integer, resultSetConcurrency: Integer): JdbcPreparedStatement; prepareStatement(sql: string, resultSetType: Integer, resultSetConcurrency: Integer, resultSetHoldability: Integer): JdbcPreparedStatement; prepareStatementByIndex(sql: string, indices: Integer[]): JdbcPreparedStatement; - prepareStatementByName(sql: string, columnNames: String[]): JdbcPreparedStatement; + prepareStatementByName(sql: string, columnNames: string[]): JdbcPreparedStatement; releaseSavepoint(savepoint: JdbcSavepoint): void; rollback(): void; rollback(savepoint: JdbcSavepoint): void; @@ -377,7 +377,7 @@ declare namespace GoogleAppsScript { getSystemFunctions(): string; getTablePrivileges(catalog: string, schemaPattern: string, tableNamePattern: string): JdbcResultSet; getTableTypes(): JdbcResultSet; - getTables(catalog: string, schemaPattern: string, tableNamePattern: string, types: String[]): JdbcResultSet; + getTables(catalog: string, schemaPattern: string, tableNamePattern: string, types: string[]): JdbcResultSet; getTimeDateFunctions(): string; getTypeInfo(): JdbcResultSet; getUDTs(catalog: string, schemaPattern: string, typeNamePattern: string, types: Integer[]): JdbcResultSet; @@ -525,7 +525,7 @@ declare namespace GoogleAppsScript { execute(sql: string): boolean; execute(sql: string, autoGeneratedKeys: Integer, sql_: string, columnIndexes: Integer[]): boolean; execute(sql: string, autoGeneratedKeys: Integer, sql_: string, columnIndexes: Integer[]): boolean; - execute(sql: string, columnNames: String[]): boolean; + execute(sql: string, columnNames: string[]): boolean; executeBatch(): Integer[]; executeQuery(): JdbcResultSet; executeQuery(sql: string): JdbcResultSet; @@ -533,7 +533,7 @@ declare namespace GoogleAppsScript { executeUpdate(sql: string): Integer; executeUpdate(sql: string, autoGeneratedKeys: Integer, sql_: string, columnIndexes: Integer[]): Integer; executeUpdate(sql: string, autoGeneratedKeys: Integer, sql_: string, columnIndexes: Integer[]): Integer; - executeUpdate(sql: string, columnNames: String[]): Integer; + executeUpdate(sql: string, columnNames: string[]): Integer; getConnection(): JdbcConnection; getFetchDirection(): Integer; getFetchSize(): Integer; @@ -550,7 +550,7 @@ declare namespace GoogleAppsScript { getResultSetHoldability(): Integer; getResultSetType(): Integer; getUpdateCount(): Integer; - getWarnings(): String[]; + getWarnings(): string[]; isClosed(): boolean; isPoolable(): boolean; setArray(parameterIndex: Integer, x: JdbcArray): void; @@ -676,7 +676,7 @@ declare namespace GoogleAppsScript { getType(): Integer; getURL(columnIndex: Integer): string; getURL(columnLabel: string): string; - getWarnings(): String[]; + getWarnings(): string[]; insertRow(): void; isAfterLast(): boolean; isBeforeFirst(): boolean; @@ -814,13 +814,13 @@ declare namespace GoogleAppsScript { execute(sql: string): boolean; execute(sql: string, autoGeneratedKeys: Integer, sql_: string, columnIndexes: Integer[]): boolean; execute(sql: string, autoGeneratedKeys: Integer, sql_: string, columnIndexes: Integer[]): boolean; - execute(sql: string, columnNames: String[]): boolean; + execute(sql: string, columnNames: string[]): boolean; executeBatch(): Integer[]; executeQuery(sql: string): JdbcResultSet; executeUpdate(sql: string): Integer; executeUpdate(sql: string, autoGeneratedKeys: Integer, sql_: string, columnIndexes: Integer[]): Integer; executeUpdate(sql: string, autoGeneratedKeys: Integer, sql_: string, columnIndexes: Integer[]): Integer; - executeUpdate(sql: string, columnNames: String[]): Integer; + executeUpdate(sql: string, columnNames: string[]): Integer; getConnection(): JdbcConnection; getFetchDirection(): Integer; getFetchSize(): Integer; @@ -835,7 +835,7 @@ declare namespace GoogleAppsScript { getResultSetHoldability(): Integer; getResultSetType(): Integer; getUpdateCount(): Integer; - getWarnings(): String[]; + getWarnings(): string[]; isClosed(): boolean; isPoolable(): boolean; setCursorName(name: string): void; diff --git a/types/google-apps-script/google-apps-script.properties.d.ts b/types/google-apps-script/google-apps-script.properties.d.ts index a53a3cbaf4..fada88d73b 100644 --- a/types/google-apps-script/google-apps-script.properties.d.ts +++ b/types/google-apps-script/google-apps-script.properties.d.ts @@ -20,7 +20,7 @@ declare namespace GoogleAppsScript { export interface Properties { deleteAllProperties(): Properties; deleteProperty(key: string): Properties; - getKeys(): String[]; + getKeys(): string[]; getProperties(): Object; getProperty(key: string): string | null; setProperties(properties: Object): Properties; @@ -58,7 +58,7 @@ declare namespace GoogleAppsScript { export interface ScriptProperties { deleteAllProperties(): ScriptProperties; deleteProperty(key: string): ScriptProperties; - getKeys(): String[]; + getKeys(): string[]; getProperties(): Object; getProperty(key: string): string | null; setProperties(properties: Object): ScriptProperties; @@ -75,7 +75,7 @@ declare namespace GoogleAppsScript { export interface UserProperties { deleteAllProperties(): UserProperties; deleteProperty(key: string): UserProperties; - getKeys(): String[]; + getKeys(): string[]; getProperties(): Object; getProperty(key: string): string | null; setProperties(properties: Object): UserProperties; diff --git a/types/google-apps-script/google-apps-script.sites.d.ts b/types/google-apps-script/google-apps-script.sites.d.ts index 6b21ffe529..5bbe126750 100644 --- a/types/google-apps-script/google-apps-script.sites.d.ts +++ b/types/google-apps-script/google-apps-script.sites.d.ts @@ -128,13 +128,13 @@ declare namespace GoogleAppsScript { addColumn(name: string): Column; addHostedAttachment(blob: Base.BlobSource): Attachment; addHostedAttachment(blob: Base.BlobSource, description: string): Attachment; - addListItem(values: String[]): ListItem; + addListItem(values: string[]): ListItem; addWebAttachment(title: string, description: string, url: string): Attachment; createAnnouncement(title: string, html: string): Page; createAnnouncement(title: string, html: string, asDraft: boolean): Page; createAnnouncementsPage(title: string, name: string, html: string): Page; createFileCabinetPage(title: string, name: string, html: string): Page; - createListPage(title: string, name: string, html: string, columnNames: String[]): Page; + createListPage(title: string, name: string, html: string, columnNames: string[]): Page; createPageFromTemplate(title: string, name: string, template: Page): Page; createWebPage(title: string, name: string, html: string): Page; deletePage(): void; @@ -144,7 +144,7 @@ declare namespace GoogleAppsScript { getAnnouncements(optOptions: Object): Page[]; getAttachments(): Attachment[]; getAttachments(optOptions: Object): Attachment[]; - getAuthors(): String[]; + getAuthors(): string[]; getChildByName(name: string): Page; getChildren(): Page[]; getChildren(options: Object): Page[]; @@ -202,15 +202,15 @@ declare namespace GoogleAppsScript { export interface Site { addEditor(emailAddress: string): Site; addEditor(user: Base.User): Site; - addEditors(emailAddresses: String[]): Site; + addEditors(emailAddresses: string[]): Site; addOwner(email: string): Site; addOwner(user: Base.User): Site; addViewer(emailAddress: string): Site; addViewer(user: Base.User): Site; - addViewers(emailAddresses: String[]): Site; + addViewers(emailAddresses: string[]): Site; createAnnouncementsPage(title: string, name: string, html: string): Page; createFileCabinetPage(title: string, name: string, html: string): Page; - createListPage(title: string, name: string, html: string, columnNames: String[]): Page; + createListPage(title: string, name: string, html: string, columnNames: string[]): Page; createPageFromTemplate(title: string, name: string, template: Page): Page; createWebPage(title: string, name: string, html: string): Page; getAllDescendants(): Page[]; @@ -242,7 +242,7 @@ declare namespace GoogleAppsScript { addCollaborator(user: Base.User): Site; createAnnouncement(title: string, html: string, parent: Page): Page; createComment(inReplyTo: string, html: string, parent: Page): Comment; - createListItem(html: string, columnNames: String[], values: String[], parent: Page): ListItem; + createListItem(html: string, columnNames: string[], values: string[], parent: Page): ListItem; createWebAttachment(title: string, url: string, parent: Page): Attachment; deleteSite(): void; getAnnouncements(): Page[]; diff --git a/types/google-apps-script/google-apps-script.spreadsheet.d.ts b/types/google-apps-script/google-apps-script.spreadsheet.d.ts index e710fcfb4a..5296f1ee6e 100644 --- a/types/google-apps-script/google-apps-script.spreadsheet.d.ts +++ b/types/google-apps-script/google-apps-script.spreadsheet.d.ts @@ -113,8 +113,8 @@ declare namespace GoogleAppsScript { requireTextEqualTo(text: string): DataValidationBuilder; requireTextIsEmail(): DataValidationBuilder; requireTextIsUrl(): DataValidationBuilder; - requireValueInList(values: String[]): DataValidationBuilder; - requireValueInList(values: String[], showDropdown: boolean): DataValidationBuilder; + requireValueInList(values: string[]): DataValidationBuilder; + requireValueInList(values: string[], showDropdown: boolean): DataValidationBuilder; requireValueInRange(range: Range): DataValidationBuilder; requireValueInRange(range: Range, showDropdown: boolean): DataValidationBuilder; setAllowInvalid(allowInvalidData: boolean): DataValidationBuilder; @@ -176,7 +176,7 @@ declare namespace GoogleAppsScript { reverseCategories(): EmbeddedAreaChartBuilder; setBackgroundColor(cssValue: string): EmbeddedAreaChartBuilder; setChartType(type: Charts.ChartType): EmbeddedChartBuilder; - setColors(cssValues: String[]): EmbeddedAreaChartBuilder; + setColors(cssValues: string[]): EmbeddedAreaChartBuilder; setLegendPosition(position: Charts.Position): EmbeddedAreaChartBuilder; setLegendTextStyle(textStyle: Charts.TextStyle): EmbeddedAreaChartBuilder; setOption(option: string, value: Object): EmbeddedChartBuilder; @@ -219,7 +219,7 @@ declare namespace GoogleAppsScript { reverseDirection(): EmbeddedBarChartBuilder; setBackgroundColor(cssValue: string): EmbeddedBarChartBuilder; setChartType(type: Charts.ChartType): EmbeddedChartBuilder; - setColors(cssValues: String[]): EmbeddedBarChartBuilder; + setColors(cssValues: string[]): EmbeddedBarChartBuilder; setLegendPosition(position: Charts.Position): EmbeddedBarChartBuilder; setLegendTextStyle(textStyle: Charts.TextStyle): EmbeddedBarChartBuilder; setOption(option: string, value: Object): EmbeddedChartBuilder; @@ -335,7 +335,7 @@ declare namespace GoogleAppsScript { reverseCategories(): EmbeddedColumnChartBuilder; setBackgroundColor(cssValue: string): EmbeddedColumnChartBuilder; setChartType(type: Charts.ChartType): EmbeddedChartBuilder; - setColors(cssValues: String[]): EmbeddedColumnChartBuilder; + setColors(cssValues: string[]): EmbeddedColumnChartBuilder; setLegendPosition(position: Charts.Position): EmbeddedColumnChartBuilder; setLegendTextStyle(textStyle: Charts.TextStyle): EmbeddedColumnChartBuilder; setOption(option: string, value: Object): EmbeddedChartBuilder; @@ -376,7 +376,7 @@ declare namespace GoogleAppsScript { reverseCategories(): EmbeddedComboChartBuilder; setBackgroundColor(cssValue: string): EmbeddedComboChartBuilder; setChartType(type: Charts.ChartType): EmbeddedChartBuilder; - setColors(cssValues: String[]): EmbeddedComboChartBuilder; + setColors(cssValues: string[]): EmbeddedComboChartBuilder; setLegendPosition(position: Charts.Position): EmbeddedComboChartBuilder; setLegendTextStyle(textStyle: Charts.TextStyle): EmbeddedComboChartBuilder; setOption(option: string, value: Object): EmbeddedChartBuilder; @@ -417,7 +417,7 @@ declare namespace GoogleAppsScript { reverseCategories(): EmbeddedHistogramChartBuilder; setBackgroundColor(cssValue: string): EmbeddedHistogramChartBuilder; setChartType(type: Charts.ChartType): EmbeddedChartBuilder; - setColors(cssValues: String[]): EmbeddedHistogramChartBuilder; + setColors(cssValues: string[]): EmbeddedHistogramChartBuilder; setLegendPosition(position: Charts.Position): EmbeddedHistogramChartBuilder; setLegendTextStyle(textStyle: Charts.TextStyle): EmbeddedHistogramChartBuilder; setOption(option: string, value: Object): EmbeddedChartBuilder; @@ -458,7 +458,7 @@ declare namespace GoogleAppsScript { reverseCategories(): EmbeddedLineChartBuilder; setBackgroundColor(cssValue: string): EmbeddedLineChartBuilder; setChartType(type: Charts.ChartType): EmbeddedChartBuilder; - setColors(cssValues: String[]): EmbeddedLineChartBuilder; + setColors(cssValues: string[]): EmbeddedLineChartBuilder; setCurveStyle(style: Charts.CurveStyle): EmbeddedLineChartBuilder; setLegendPosition(position: Charts.Position): EmbeddedLineChartBuilder; setLegendTextStyle(textStyle: Charts.TextStyle): EmbeddedLineChartBuilder; @@ -501,7 +501,7 @@ declare namespace GoogleAppsScript { set3D(): EmbeddedPieChartBuilder; setBackgroundColor(cssValue: string): EmbeddedPieChartBuilder; setChartType(type: Charts.ChartType): EmbeddedChartBuilder; - setColors(cssValues: String[]): EmbeddedPieChartBuilder; + setColors(cssValues: string[]): EmbeddedPieChartBuilder; setLegendPosition(position: Charts.Position): EmbeddedPieChartBuilder; setLegendTextStyle(textStyle: Charts.TextStyle): EmbeddedPieChartBuilder; setOption(option: string, value: Object): EmbeddedChartBuilder; @@ -532,7 +532,7 @@ declare namespace GoogleAppsScript { removeRange(range: Range): EmbeddedChartBuilder; setBackgroundColor(cssValue: string): EmbeddedScatterChartBuilder; setChartType(type: Charts.ChartType): EmbeddedChartBuilder; - setColors(cssValues: String[]): EmbeddedScatterChartBuilder; + setColors(cssValues: string[]): EmbeddedScatterChartBuilder; setLegendPosition(position: Charts.Position): EmbeddedScatterChartBuilder; setLegendTextStyle(textStyle: Charts.TextStyle): EmbeddedScatterChartBuilder; setOption(option: string, value: Object): EmbeddedChartBuilder; @@ -625,7 +625,7 @@ declare namespace GoogleAppsScript { */ export interface PageProtection { addUser(email: string): void; - getUsers(): String[]; + getUsers(): string[]; isProtected(): boolean; removeUser(user: string): void; setProtected(protection: boolean): void; @@ -677,7 +677,7 @@ declare namespace GoogleAppsScript { export interface Protection { addEditor(emailAddress: string): Protection; addEditor(user: Base.User): Protection; - addEditors(emailAddresses: String[]): Protection; + addEditors(emailAddresses: string[]): Protection; canDomainEdit(): boolean; canEdit(): boolean; getDescription(): string; @@ -690,7 +690,7 @@ declare namespace GoogleAppsScript { remove(): void; removeEditor(emailAddress: string): Protection; removeEditor(user: Base.User): Protection; - removeEditors(emailAddresses: String[]): Protection; + removeEditors(emailAddresses: string[]): Protection; setDescription(description: string): Protection; setDomainEdit(editable: boolean): Protection; setNamedRange(namedRange: NamedRange): Protection; @@ -746,7 +746,7 @@ declare namespace GoogleAppsScript { copyValuesToRange(sheet: Sheet, column: Integer, columnEnd: Integer, row: Integer, rowEnd: Integer): void; getA1Notation(): string; getBackground(): string; - getBackgrounds(): String[][]; + getBackgrounds(): string[][]; getCell(row: Integer, column: Integer): Range; getColumn(): Integer; getColumnIndex(): Integer; @@ -756,43 +756,43 @@ declare namespace GoogleAppsScript { getDataValidation(): DataValidation; getDataValidations(): DataValidation[][]; getDisplayValue(): string; - getDisplayValues(): String[][]; + getDisplayValues(): string[][]; getFontColor(): string; - getFontColors(): String[][]; - getFontFamilies(): String[][]; + getFontColors(): string[][]; + getFontFamilies(): string[][]; getFontFamily(): string; getFontLine(): string; - getFontLines(): String[][]; + getFontLines(): string[][]; getFontSize(): Integer; getFontSizes(): Integer[][]; getFontStyle(): string; - getFontStyles(): String[][]; + getFontStyles(): string[][]; getFontWeight(): string; - getFontWeights(): String[][]; + getFontWeights(): string[][]; getFormula(): string; getFormulaR1C1(): string; - getFormulas(): String[][]; - getFormulasR1C1(): String[][]; + getFormulas(): string[][]; + getFormulasR1C1(): string[][]; getGridId(): Integer; getHeight(): Integer; getHorizontalAlignment(): string; - getHorizontalAlignments(): String[][]; + getHorizontalAlignments(): string[][]; getLastColumn(): Integer; getLastRow(): Integer; getMergedRanges(): Range[]; getNote(): string; - getNotes(): String[][]; + getNotes(): string[][]; getNumColumns(): Integer; getNumRows(): Integer; getNumberFormat(): string; - getNumberFormats(): String[][]; + getNumberFormats(): string[][]; getRow(): Integer; getRowIndex(): Integer; getSheet(): Sheet; getValue(): Object; getValues(): Object[][]; getVerticalAlignment(): string; - getVerticalAlignments(): String[][]; + getVerticalAlignments(): string[][]; getWidth(): Integer; getWrap(): boolean; getWraps(): Boolean[][]; @@ -812,7 +812,7 @@ declare namespace GoogleAppsScript { protect(): Protection; setBackground(color: string): Range; setBackgroundRGB(red: Integer, green: Integer, blue: Integer): Range; - setBackgrounds(color: String[][]): Range; + setBackgrounds(color: string[][]): Range; setBorder(top: boolean, left: boolean, bottom: boolean, right: boolean, vertical: boolean, horizontal: boolean): Range; setBorder(top: boolean, left: boolean, bottom: boolean, right: boolean, vertical: boolean, horizontal: boolean, color: string, style: BorderStyle): Range; setDataValidation(rule: DataValidation): Range; @@ -831,8 +831,8 @@ declare namespace GoogleAppsScript { setFontWeights(fontWeights: Object[][]): Range; setFormula(formula: string): Range; setFormulaR1C1(formula: string): Range; - setFormulas(formulas: String[][]): Range; - setFormulasR1C1(formulas: String[][]): Range; + setFormulas(formulas: string[][]): Range; + setFormulasR1C1(formulas: string[][]): Range; setHorizontalAlignment(alignment: string): Range; setHorizontalAlignments(alignments: Object[][]): Range; setNote(note: string): Range; @@ -949,11 +949,11 @@ declare namespace GoogleAppsScript { export interface Spreadsheet { addEditor(emailAddress: string): Spreadsheet; addEditor(user: Base.User): Spreadsheet; - addEditors(emailAddresses: String[]): Spreadsheet; + addEditors(emailAddresses: string[]): Spreadsheet; addMenu(name: string, subMenus: Object[]): void; addViewer(emailAddress: string): Spreadsheet; addViewer(user: Base.User): Spreadsheet; - addViewers(emailAddresses: String[]): Spreadsheet; + addViewers(emailAddresses: string[]): Spreadsheet; appendRow(rowContents: Object[]): Sheet; autoResizeColumn(columnPosition: Integer): Sheet; copy(name: string): Spreadsheet; diff --git a/types/google-apps-script/google-apps-script.types.d.ts b/types/google-apps-script/google-apps-script.types.d.ts index 3c7bfb550c..b2c67e5e2f 100644 --- a/types/google-apps-script/google-apps-script.types.d.ts +++ b/types/google-apps-script/google-apps-script.types.d.ts @@ -8,6 +8,6 @@ declare module GoogleAppsScript { type Byte = number; type Integer = number; type Char = string; - type String = string; + type String = string;// Should be unnecessary now that I replaced all String with string type JdbcSQL_XML = any; } diff --git a/types/google-apps-script/google-apps-script.ui.d.ts b/types/google-apps-script/google-apps-script.ui.d.ts index bd4424351e..f44218a866 100644 --- a/types/google-apps-script/google-apps-script.ui.d.ts +++ b/types/google-apps-script/google-apps-script.ui.d.ts @@ -395,11 +395,11 @@ declare namespace GoogleAppsScript { validateNotMatches(widget: Widget, pattern: string): ClientHandler; validateNotMatches(widget: Widget, pattern: string, flags: string): ClientHandler; validateNotNumber(widget: Widget): ClientHandler; - validateNotOptions(widget: Widget, options: String[]): ClientHandler; + validateNotOptions(widget: Widget, options: string[]): ClientHandler; validateNotRange(widget: Widget, min: Number, max: Number): ClientHandler; validateNotSum(widgets: Widget[], sum: Integer): ClientHandler; validateNumber(widget: Widget): ClientHandler; - validateOptions(widget: Widget, options: String[]): ClientHandler; + validateOptions(widget: Widget, options: string[]): ClientHandler; validateRange(widget: Widget, min: Number, max: Number): ClientHandler; validateSum(widgets: Widget[], sum: Integer): ClientHandler; } @@ -1477,11 +1477,11 @@ declare namespace GoogleAppsScript { validateNotMatches(widget: Widget, pattern: string): Handler; validateNotMatches(widget: Widget, pattern: string, flags: string): Handler; validateNotNumber(widget: Widget): Handler; - validateNotOptions(widget: Widget, options: String[]): Handler; + validateNotOptions(widget: Widget, options: string[]): Handler; validateNotRange(widget: Widget, min: Number, max: Number): Handler; validateNotSum(widgets: Widget[], sum: Integer): Handler; validateNumber(widget: Widget): Handler; - validateOptions(widget: Widget, options: String[]): Handler; + validateOptions(widget: Widget, options: string[]): Handler; validateRange(widget: Widget, min: Number, max: Number): Handler; validateSum(widgets: Widget[], sum: Integer): Handler; } @@ -2482,11 +2482,11 @@ declare namespace GoogleAppsScript { validateNotMatches(widget: Widget, pattern: string): ServerHandler; validateNotMatches(widget: Widget, pattern: string, flags: string): ServerHandler; validateNotNumber(widget: Widget): ServerHandler; - validateNotOptions(widget: Widget, options: String[]): ServerHandler; + validateNotOptions(widget: Widget, options: string[]): ServerHandler; validateNotRange(widget: Widget, min: Number, max: Number): ServerHandler; validateNotSum(widgets: Widget[], sum: Integer): ServerHandler; validateNumber(widget: Widget): ServerHandler; - validateOptions(widget: Widget, options: String[]): ServerHandler; + validateOptions(widget: Widget, options: string[]): ServerHandler; validateRange(widget: Widget, min: Number, max: Number): ServerHandler; validateSum(widgets: Widget[], sum: Integer): ServerHandler; } diff --git a/types/google-apps-script/google-apps-script.utilities.d.ts b/types/google-apps-script/google-apps-script.utilities.d.ts index 2beda0bfc1..c8fde9349c 100644 --- a/types/google-apps-script/google-apps-script.utilities.d.ts +++ b/types/google-apps-script/google-apps-script.utilities.d.ts @@ -58,8 +58,8 @@ declare namespace GoogleAppsScript { newBlob(data: string): Base.Blob; newBlob(data: string, contentType: string): Base.Blob; newBlob(data: string, contentType: string, name: string): Base.Blob; - parseCsv(csv: string): String[][]; - parseCsv(csv: string, delimiter: Char): String[][]; + parseCsv(csv: string): string[][]; + parseCsv(csv: string, delimiter: Char): string[][]; sleep(milliseconds: Integer): void; unzip(blob: Base.BlobSource): Base.Blob[]; zip(blobs: Base.BlobSource[]): Base.Blob; From 89b36cf6b989a4e57eb4466543900e0265fc56fa Mon Sep 17 00:00:00 2001 From: Fred Morel Date: Fri, 29 Sep 2017 15:27:11 -0400 Subject: [PATCH 040/506] Add documentation for most Drive methods --- .../google-apps-script.drive.d.ts | 137 ++++++++++++++++-- 1 file changed, 123 insertions(+), 14 deletions(-) diff --git a/types/google-apps-script/google-apps-script.drive.d.ts b/types/google-apps-script/google-apps-script.drive.d.ts index 96968f1002..6d5e6d3da3 100644 --- a/types/google-apps-script/google-apps-script.drive.d.ts +++ b/types/google-apps-script/google-apps-script.drive.d.ts @@ -20,6 +20,18 @@ declare namespace GoogleAppsScript { */ export enum Access { ANYONE, ANYONE_WITH_LINK, DOMAIN, DOMAIN_WITH_LINK, PRIVATE } + /** + * An enum representing the permissions granted to users who can access a file or folder, besides + * any individual users who have been explicitly given access. These properties can be accessed from + * DriveApp.Permission. + * + * // Creates a folder that anyone on the Internet can read from and write to. (Domain + * // administrators can prohibit this setting for users of a G Suite domain.) + * var folder = DriveApp.createFolder('Shared Folder'); + * folder.setSharing(DriveApp.Access.ANYONE, DriveApp.Permission.EDIT); + */ + export enum Permission { VIEW, EDIT, COMMENT, OWNER, ORGANIZER, NONE } + /** * Allows scripts to create, find, and modify files and folders in Google Drive. * @@ -33,29 +45,104 @@ declare namespace GoogleAppsScript { export interface DriveApp { Access: typeof Access; Permission: typeof Permission; + /** + * Adds the given file to the root of the user's Drive. + * This method does not move the file out of its existing parent folder; + * a file can have more than one parent simultaneously. + */ addFile(child: File): Folder; + /** + * Adds the given folder to the root of the user's Drive. + * This method does not move the folder out of its existing parent folder; + * a folder can have more than one parent simultaneously. + */ addFolder(child: Folder): Folder; + /** + * Resumes a file iteration using a continuation token from a previous iterator. + * This method is useful if processing an iterator in one execution would exceed + * the maximum execution time. Continuation tokens are generally valid for one week. + */ continueFileIterator(continuationToken: string): FileIterator; + /** + * Resumes a folder iteration using a continuation token from a previous iterator. + * This method is useful if processing an iterator in one execution would exceed + * the maximum execution time. Continuation tokens are generally valid for one week. + */ continueFolderIterator(continuationToken: string): FolderIterator; + /** Creates a file in the root of the user's Drive from a given Blob of arbitrary data. */ createFile(blob: Base.BlobSource): File; + /** + * Creates a text file in the root of the user's Drive with the given name + * and contents. Throws an exception if content is larger than 50 MB. + */ createFile(name: string, content: string): File; + /** + * Creates a file in the root of the user's Drive with the given name, contents, and MIME type. + * Throws an exception if content is larger than 10MB. + */ createFile(name: string, content: string, mimeType: string): File; + /** Creates a folder in the root of the user's Drive with the given name. */ createFolder(name: string): Folder; + /** + * Gets the file with the given ID. + * Throws a scripting exception if the file does not exist or + * the user does not have permission to access it. + */ getFileById(id: string): File; + /** Gets a collection of all files in the user's Drive. */ getFiles(): FileIterator; + /** Gets a collection of all files in the user's Drive that have the given name. */ getFilesByName(name: string): FileIterator; + /** Gets a collection of all files in the user's Drive that have the given MIME type. */ getFilesByType(mimeType: string): FileIterator; + /** + * Gets the folder with the given ID. Throws a scripting exception if the folder + * does not exist or the user does not have permission to access it. + */ getFolderById(id: string): Folder; + /** Gets a collection of all folders in the user's Drive. */ getFolders(): FolderIterator; + /** Gets a collection of all folders in the user's Drive that have the given name. */ getFoldersByName(name: string): FolderIterator; + /** Gets the folder at the root of the user's Drive. */ getRootFolder(): Folder; + /** Gets the number of bytes the user is allowed to store in Drive. */ getStorageLimit(): Integer; + /** Gets the number of bytes the user is currently storing in Drive. */ getStorageUsed(): Integer; + /** Gets a collection of all the files in the trash of the user's Drive. */ getTrashedFiles(): FileIterator; + /** Gets a collection of all the folders in the trash of the user's Drive. */ getTrashedFolders(): FolderIterator; + /** + * Removes the given file from the root of the user's Drive. + * This method does not delete the file, but if a file is removed from all + * of its parents, it cannot be seen in Drive except by searching for it + * or using the "All items" view. + */ removeFile(child: File): Folder; + /** + * Removes the given folder from the root of the user's Drive. + * This method does not delete the folder or its contents, but if a folder + * is removed from all of its parents, it cannot be seen in Drive except + * by searching for it or using the "All items" view. + */ removeFolder(child: Folder): Folder; + /** + * Gets a collection of all files in the user's Drive that match the given search criteria. + * The search criteria are detailed the Google Drive SDK documentation. + * Note that the params argument is a query string that may contain string values, + * so take care to escape quotation marks correctly + * (for example "title contains 'Gulliver\\'s Travels'" or 'title contains "Gulliver\'s Travels"'). + */ searchFiles(params: string): FileIterator; + /** + * Gets a collection of all folders in the user's Drive that match the given search criteria. + * The search criteria are detailed the Google Drive SDK documentation. + * Note that the params argument is a query string that may contain string values, + * so take care to escape quotation marks correctly + * (for example "title contains 'Gulliver\\'s Travels'" or 'title contains "Gulliver\'s Travels"'). + */ searchFolders(params: string): FolderIterator; } @@ -139,8 +226,18 @@ declare namespace GoogleAppsScript { * } */ export interface FileIterator { + /** + * Gets a token that can be used to resume this iteration at a later time. + * This method is useful if processing an iterator in one execution would + * exceed the maximum execution time. Continuation tokens are generally valid for one week. + */ getContinuationToken(): string; + /** Determines whether calling next() will return an item. */ hasNext(): boolean; + /** + * Gets the next item in the collection of files or folders. + * Throws an exception if no items remain. + */ next(): File; } @@ -222,23 +319,21 @@ declare namespace GoogleAppsScript { * } */ export interface FolderIterator { + /** + * Gets a token that can be used to resume this iteration at a later time. + * This method is useful if processing an iterator in one execution would + * exceed the maximum execution time. Continuation tokens are generally valid for one week. + */ getContinuationToken(): string; + /** Determines whether calling next() will return an item. */ hasNext(): boolean; + /** + * Gets the next item in the collection of files or folders. + * Throws an exception if no items remain. + */ next(): Folder; } - /** - * An enum representing the permissions granted to users who can access a file or folder, besides - * any individual users who have been explicitly given access. These properties can be accessed from - * DriveApp.Permission. - * - * // Creates a folder that anyone on the Internet can read from and write to. (Domain - * // administrators can prohibit this setting for users of a G Suite domain.) - * var folder = DriveApp.createFolder('Shared Folder'); - * folder.setSharing(DriveApp.Access.ANYONE, DriveApp.Permission.EDIT); - */ - export enum Permission { VIEW, EDIT, COMMENT, OWNER, ORGANIZER, NONE } - /** * A user associated with a file in Google Drive. Users can be accessed from * File.getEditors(), Folder.getViewers(), and other methods. @@ -251,10 +346,24 @@ declare namespace GoogleAppsScript { * } */ export interface User { + /** Gets the domain name associated with the user's account. */ getDomain(): string; + /** + * Gets the user's email address. The user's email address is only available + * if the user has chosen to share the address from the Google+ account settings + * page, or if the user belongs to the same domain as the user running the script + * and the domain administrator has allowed all users within the domain to see + * other users' email addresses. + */ getEmail(): string; - getName(): string; - getPhotoUrl(): string; + /** Gets the user's name. This method returns null if the user's name is not available. */ + getName(): string | null; + /** Gets the URL for the user's photo. This method returns null if the user's photo is not available. */ + getPhotoUrl(): string | null; + /** + * Gets the user's email address. + * @deprecated As of June 24, 2013, replaced by getEmail() + */ getUserLoginId(): string; } From 3be08fd7f2545b0a84ed27d754aa94b04873441b Mon Sep 17 00:00:00 2001 From: Nicolas Penin Date: Sat, 30 Sep 2017 08:00:24 +0200 Subject: [PATCH 041/506] fixed CI failures --- types/sequencify/sequencify-tests.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/types/sequencify/sequencify-tests.ts b/types/sequencify/sequencify-tests.ts index 80907278f1..a39d58c28c 100644 --- a/types/sequencify/sequencify-tests.ts +++ b/types/sequencify/sequencify-tests.ts @@ -4,7 +4,7 @@ import * as sequencify from 'sequencify'; -let items: sequencify.TaskMap = { +const items: sequencify.TaskMap = { a: { name: 'a', dep: [] @@ -24,9 +24,9 @@ let items: sequencify.TaskMap = { }, }; -let names = ['d', 'b', 'c', 'a']; // The names of the items you want arranged, need not be all +const names = ['d', 'b', 'c', 'a']; // The names of the items you want arranged, need not be all -let results: string[] = []; +const results: string[] = []; sequencify(items, names, results); From f0e1cf4cd41fb2c5e2d8b9225e4812c06abb9d59 Mon Sep 17 00:00:00 2001 From: nrlquaker Date: Sat, 30 Sep 2017 11:45:47 +0300 Subject: [PATCH 042/506] Add blob-to-buffer --- types/blob-to-buffer/blob-to-buffer-tests.ts | 6 +++++ types/blob-to-buffer/index.d.ts | 11 ++++++++++ types/blob-to-buffer/tsconfig.json | 23 ++++++++++++++++++++ types/blob-to-buffer/tslint.json | 3 +++ 4 files changed, 43 insertions(+) create mode 100644 types/blob-to-buffer/blob-to-buffer-tests.ts create mode 100644 types/blob-to-buffer/index.d.ts create mode 100644 types/blob-to-buffer/tsconfig.json create mode 100644 types/blob-to-buffer/tslint.json diff --git a/types/blob-to-buffer/blob-to-buffer-tests.ts b/types/blob-to-buffer/blob-to-buffer-tests.ts new file mode 100644 index 0000000000..1be7e54e7f --- /dev/null +++ b/types/blob-to-buffer/blob-to-buffer-tests.ts @@ -0,0 +1,6 @@ +import * as blobToBuffer from "blob-to-buffer"; + +blobToBuffer(new Blob(), (error, buffer) => { + console.log(error); + console.log(buffer); +}); diff --git a/types/blob-to-buffer/index.d.ts b/types/blob-to-buffer/index.d.ts new file mode 100644 index 0000000000..8c8156963e --- /dev/null +++ b/types/blob-to-buffer/index.d.ts @@ -0,0 +1,11 @@ +// Type definitions for blob-to-buffer 1.2 +// Project: https://github.com/feross/blob-to-buffer +// Definitions by: nrlquaker +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.2 + +/// + +declare function blobToBuffer(blob: Blob, callback: (error: any, buffer: Buffer) => void): void; +declare namespace blobToBuffer {} +export = blobToBuffer; diff --git a/types/blob-to-buffer/tsconfig.json b/types/blob-to-buffer/tsconfig.json new file mode 100644 index 0000000000..8861d219a1 --- /dev/null +++ b/types/blob-to-buffer/tsconfig.json @@ -0,0 +1,23 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es6", + "dom" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "blob-to-buffer-tests.ts" + ] +} diff --git a/types/blob-to-buffer/tslint.json b/types/blob-to-buffer/tslint.json new file mode 100644 index 0000000000..f93cf8562a --- /dev/null +++ b/types/blob-to-buffer/tslint.json @@ -0,0 +1,3 @@ +{ + "extends": "dtslint/dt.json" +} From dcc853211623616aabb57ce46912194e1bf7b2ce Mon Sep 17 00:00:00 2001 From: voxmatt Date: Sun, 1 Oct 2017 11:03:05 -0700 Subject: [PATCH 043/506] removing UMD style module structure from relay-runtime and moving new relay types to v1 folder --- types/react-relay/index.d.ts | 459 +--- types/react-relay/react-relay-tests.tsx | 393 +-- types/react-relay/tsconfig.json | 4 +- types/react-relay/v1/index.d.ts | 474 ++++ .../v1/lib/react-relay-classic.d.ts | 0 .../v1/lib/react-relay-compat.d.ts | 0 .../v1/lib/react-relay-modern.d.ts | 0 types/react-relay/v1/react-relay-tests.tsx | 437 ++++ types/react-relay/v1/tsconfig.json | 31 + types/react-relay/{ => v1}/tslint.json | 0 types/relay-runtime/index.d.ts | 2182 ++++++++--------- 11 files changed, 2129 insertions(+), 1851 deletions(-) create mode 100644 types/react-relay/v1/index.d.ts create mode 100644 types/react-relay/v1/lib/react-relay-classic.d.ts create mode 100644 types/react-relay/v1/lib/react-relay-compat.d.ts create mode 100644 types/react-relay/v1/lib/react-relay-modern.d.ts create mode 100644 types/react-relay/v1/react-relay-tests.tsx create mode 100644 types/react-relay/v1/tsconfig.json rename types/react-relay/{ => v1}/tslint.json (100%) diff --git a/types/react-relay/index.d.ts b/types/react-relay/index.d.ts index 83b2890020..4f9f49e5e7 100644 --- a/types/react-relay/index.d.ts +++ b/types/react-relay/index.d.ts @@ -1,385 +1,86 @@ -// Type definitions for react-relay 1.3 +// Type definitions for react-relay 0.9.2 // Project: https://github.com/facebook/relay -// Definitions by: Johannes Schickling , Matt Martin +// Definitions by: Johannes Schickling // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -// TypeScript Version: 2.4 +// TypeScript Version: 2.3 -/// - -declare namespace __Relay { - //////////////////////////// - // RELAY MODERN TYPES - /////////////////////////// - namespace Modern { - // ~~~~~~~~~~~~~~~~~~~~~ - // Maybe Fix - // ~~~~~~~~~~~~~~~~~~~~~ - type ConcreteFragment = any; - type ConcreteBatch = any; - type ConcreteFragmentDefinition = object; - type ConcreteOperationDefinition = object; - type ReactBaseComponent = React.ComponentClass | React.StatelessComponent; - - // ~~~~~~~~~~~~~~~~~~~~~ - // RelayProp - // ~~~~~~~~~~~~~~~~~~~~~ - // note: refetch and pagination containers augment this - interface RelayProp { - environment: Runtime.Environment; - } - - // ~~~~~~~~~~~~~~~~~~~~~ - // RelayQL - // ~~~~~~~~~~~~~~~~~~~~~ - function RelayQL( - strings: string[], - ...substitutions: any[] - ): Common.RelayConcreteNode; - - // ~~~~~~~~~~~~~~~~~~~~~ - // RelayModernGraphQLTag - // ~~~~~~~~~~~~~~~~~~~~~ - interface GeneratedNodeMap { [key: string]: GraphQLTaggedNode; } - type GraphQLTaggedNode = - (() => ConcreteFragment | ConcreteBatch) - | { - modern(): ConcreteFragment | ConcreteBatch, - classic(relayQL: typeof RelayQL): - | ConcreteFragmentDefinition - | ConcreteOperationDefinition, - }; - /** - * Runtime function to correspond to the `graphql` tagged template function. - * All calls to this function should be transformed by the plugin. - */ - interface GraphqlInterface { - (strings: string[] | TemplateStringsArray): GraphQLTaggedNode; - experimental(strings: string[] | TemplateStringsArray): GraphQLTaggedNode; - } - const graphql: GraphqlInterface; - - // ~~~~~~~~~~~~~~~~~~~~~ - // ReactRelayQueryRenderer - // ~~~~~~~~~~~~~~~~~~~~~ - interface QueryRendererProps { - cacheConfig?: Common.CacheConfig; - environment: Runtime.Environment; - query: GraphQLTaggedNode; - render(readyState: ReadyState): React.ReactElement | undefined | null; - variables: Common.Variables; - rerunParamExperimental?: Common.RerunParam; - } - interface ReadyState { - error: Error | undefined | null; - props: { [propName: string]: any } | undefined | null; - retry?(): void; - } - interface QueryRendererState { - readyState: ReadyState; - } - class ReactRelayQueryRenderer extends React.Component { } - - // ~~~~~~~~~~~~~~~~~~~~~ - // createFragmentContainer - // ~~~~~~~~~~~~~~~~~~~~~ - function createFragmentContainer( - Component: ReactBaseComponent, - fragmentSpec: GraphQLTaggedNode | GeneratedNodeMap, - ): ReactBaseComponent; - - // ~~~~~~~~~~~~~~~~~~~~~ - // createPaginationContainer - // ~~~~~~~~~~~~~~~~~~~~~ - interface PageInfo { - endCursor: string | undefined | null; - hasNextPage: boolean; - hasPreviousPage: boolean; - startCursor: string | undefined | null; - } - interface ConnectionData { - edges?: any[]; - pageInfo?: PageInfo; - } - type RelayPaginationProp = RelayProp & { - hasMore(): boolean, - isLoading(): boolean, - loadMore( - pageSize: number, - callback: (error?: Error) => void, - options?: RefetchOptions, - ): Common.Disposable | undefined | null, - refetchConnection( - totalCount: number, - callback: (error?: Error) => void, - refetchVariables?: Common.Variables, - ): Common.Disposable | undefined | null, - }; - function FragmentVariablesGetter( - prevVars: Common.Variables, - totalCount: number, - ): Common.Variables; - interface ConnectionConfig { - direction?: 'backward' | 'forward'; - getConnectionFromProps?(props: object): ConnectionData | undefined | null; - getFragmentVariables?: typeof FragmentVariablesGetter; - getVariables( - props: { [propName: string]: any }, - paginationInfo: { count: number, cursor?: string }, - fragmentVariables: Common.Variables, - ): Common.Variables; - query: GraphQLTaggedNode; - } - function createPaginationContainer( - Component: ReactBaseComponent, - fragmentSpec: GraphQLTaggedNode | GeneratedNodeMap, - connectionConfig: ConnectionConfig, - ): ReactBaseComponent; - - // ~~~~~~~~~~~~~~~~~~~~~ - // createFragmentContainer - // ~~~~~~~~~~~~~~~~~~~~~ - interface RefetchOptions { - force?: boolean; - rerunParamExperimental?: Common.RerunParam; - } - type RelayRefetchProp = RelayProp & { - refetch( - refetchVariables: Common.Variables | ((fragmentVariables: Common.Variables) => Common.Variables), - renderVariables?: Common.Variables, - callback?: (error?: Error) => void, - options?: RefetchOptions, - ): Common.Disposable, - }; - function createRefetchContainer( - Component: ReactBaseComponent, - fragmentSpec: GraphQLTaggedNode | GeneratedNodeMap, - taggedNode: GraphQLTaggedNode, - ): ReactBaseComponent; - } - - //////////////////////////// - // RELAY CLASSIC TYPES - /////////////////////////// - // note: the namespace here is really for use inside of - // relay-compat; the module declaration below - // uses the old, pre-existing types - namespace Classic { - // ~~~~~~~~~~~~~~~~~~~~~ - // Maybe Fix - // ~~~~~~~~~~~~~~~~~~~~~ - type StoreReaderData = any; - type StoreReaderOptions = any; - type RelayStoreData = any; - interface RelayQuery { Fragment: any; Node: any; Root: any; } - - // ~~~~~~~~~~~~~~~~~~~~~ - // Environment - // ~~~~~~~~~~~~~~~~~~~~~ - interface FragmentResolver { - dispose(): void; - resolve( - fragment: RelayQuery["Fragment"], - dataIDs: Common.DataID | Common.DataID[], - ): StoreReaderData | StoreReaderData[] | undefined | null; - } - interface RelayEnvironmentInterface { - forceFetch( - querySet: Common.RelayQuerySet, - onReadyStateChange: Common.ReadyStateChangeCallback, - ): Common.Abortable; - getFragmentResolver( - fragment: RelayQuery["Fragment"], - onNext: () => void, - ): FragmentResolver; - getStoreData(): RelayStoreData; - primeCache( - querySet: Common.RelayQuerySet, - onReadyStateChange: Common.ReadyStateChangeCallback, - ): Common.Abortable; - read( - node: RelayQuery["Node"], - dataID: Common.DataID, - options?: StoreReaderOptions, - ): StoreReaderData | void; - readQuery( - root: RelayQuery["Root"], - options?: StoreReaderOptions, - ): StoreReaderData[] | void; - } - } - - //////////////////////////// - // RELAY COMPAT TYPES - /////////////////////////// - namespace Compat { - // ~~~~~~~~~~~~~~~~~~~~~ - // Maybe Fix - // ~~~~~~~~~~~~~~~~~~~~~ - type ConcreteFragment = any; - type ConcreteBatch = any; - type ConcreteFragmentDefinition = object; - type ConcreteOperationDefinition = object; - - // ~~~~~~~~~~~~~~~~~~~~~ - // Util - // ~~~~~~~~~~~~~~~~~~~~~ - function getFragment(q: string, v?: Common.Variables): string; - interface ComponentWithFragment extends React.ComponentClass { - getFragment: typeof getFragment; - } - interface StatelessWithFragment extends React.StatelessComponent { - getFragment: typeof getFragment; - } - type ReactFragmentComponent = ComponentWithFragment | StatelessWithFragment; - type ReactBaseComponent = React.ComponentClass | React.StatelessComponent; - type RelayClassicEnvironment = Classic.RelayEnvironmentInterface; - - // ~~~~~~~~~~~~~~~~~~~~~ - // RelayCompatTypes - // ~~~~~~~~~~~~~~~~~~~~~ - type CompatEnvironment = Runtime.Environment | RelayClassicEnvironment; - - // ~~~~~~~~~~~~~~~~~~~~~ - // RelayCompatMutations - // ~~~~~~~~~~~~~~~~~~~~~ - function commitUpdate( - environment: CompatEnvironment, - config: Runtime.MutationConfig, - ): Common.Disposable; - function applyUpdate( - environment: CompatEnvironment, - config: Runtime.OptimisticMutationConfig, - ): Common.Disposable; - - // ~~~~~~~~~~~~~~~~~~~~~ - // RelayCompatContainer - // ~~~~~~~~~~~~~~~~~~~~~ - interface GeneratedNodeMap { [key: string]: Modern.GraphQLTaggedNode; } - function createContainer( - Component: ReactBaseComponent, - fragmentSpec: Modern.GraphQLTaggedNode | GeneratedNodeMap, - ): ReactFragmentComponent; - - // ~~~~~~~~~~~~~~~~~~~~~ - // injectDefaultVariablesProvider - // ~~~~~~~~~~~~~~~~~~~~~ - type VariablesProvider = () => Common.Variables; - function injectDefaultVariablesProvider(variablesProvider: VariablesProvider): void; - } -} - -//////////////////////////// -// MODULES -/////////////////////////// -// tslint:disable strict-export-declare-modifiers -declare module 'react-relay' { - export import QueryRenderer = __Relay.Modern.ReactRelayQueryRenderer; - export import createFragmentContainer = __Relay.Modern.createFragmentContainer; - export import createPaginationContainer = __Relay.Modern.createPaginationContainer; - export import createRefetchContainer = __Relay.Modern.createRefetchContainer; - export import graphql = __Relay.Modern.graphql; - - export import commitLocalUpdate = __Relay.Runtime.commitLocalUpdate; - export import commitMutation = __Relay.Runtime.commitRelayModernMutation; - export import fetchQuery = __Relay.Runtime.fetchRelayModernQuery; - export import requestSubscription = __Relay.Runtime.requestRelaySubscription; - - // exported for convenience — not exports in the original module - export import RelayProp = __Relay.Modern.RelayProp; - export import RelayPaginationProp = __Relay.Modern.RelayPaginationProp; - export import RelayRefetchProp = __Relay.Modern.RelayRefetchProp; -} - -declare module 'react-relay/compat' { - export import applyOptimisticMutation = __Relay.Compat.applyUpdate; - export import commitMutation = __Relay.Compat.commitUpdate; - export import createFragmentContainer = __Relay.Compat.createContainer; - export import createPaginationContainer = __Relay.Compat.createContainer; - export import createRefetchContainer = __Relay.Compat.createContainer; - export import injectDefaultVariablesProvider = __Relay.Compat.injectDefaultVariablesProvider; - export import QueryRenderer = __Relay.Modern.ReactRelayQueryRenderer; - export import graphql = __Relay.Modern.graphql; - export import fetchQuery = __Relay.Runtime.fetchRelayModernQuery; -} -// tslint:enable strict-export-declare-modifiers - -declare module "react-relay/classic" { +declare module "react-relay" { import * as React from "react"; type ClientMutationID = string; /** Fragments are a hash of functions */ interface Fragments { - [query: string]: ((variables?: RelayVariables) => string); + [query: string]: ((variables?: RelayVariables) => string) } interface CreateContainerOpts { - initialVariables?: any; - fragments: Fragments; - prepareVariables?(prevVariables: RelayVariables): RelayVariables; + initialVariables?: any + fragments: Fragments + prepareVariables?(prevVariables: RelayVariables): RelayVariables } interface RelayVariables { - [name: string]: any; + [name: string]: any } /** add static getFragment method to the component constructor */ interface RelayContainerClass extends React.ComponentClass { - getFragment: ((q: string, v?: RelayVariables) => string); + getFragment: ((q: string, v?: RelayVariables) => string) } interface RelayQueryRequestResolve { - response: any; + response: any } type RelayMutationStatus = - 'UNCOMMITTED' | // Transaction hasn't yet been sent to the server. Transaction can be committed or rolled back. - 'COMMIT_QUEUED' | // Transaction was committed but another transaction with the same collision key is pending, so the transaction has been queued to send to the server. - 'COLLISION_COMMIT_FAILED' | // Transaction was queued for commit but another transaction with the same collision key failed. All transactions in the collision queue, - // including this one, have been failed. Transaction can be recommitted or rolled back. - 'COMMITTING' | // Transaction is waiting for the server to respond. - 'COMMIT_FAILED'; + 'UNCOMMITTED' | // Transaction hasn't yet been sent to the server. Transaction can be committed or rolled back. + 'COMMIT_QUEUED' | // Transaction was committed but another transaction with the same collision key is pending, so the transaction has been queued to send to the server. + 'COLLISION_COMMIT_FAILED' | //Transaction was queued for commit but another transaction with the same collision key failed. All transactions in the collision queue, including this one, have been failed. Transaction can be recommitted or rolled back. + 'COMMITTING' | // Transaction is waiting for the server to respond. + 'COMMIT_FAILED'; class RelayMutationTransaction { - applyOptimistic(): RelayMutationTransaction; - commit(): RelayMutationTransaction | null; - recommit(): void; - rollback(): void; - getError(): Error; - getStatus(): RelayMutationStatus; - getHash(): string; - getID(): ClientMutationID; + applyOptimistic(): RelayMutationTransaction; + commit(): RelayMutationTransaction | null; + recommit(): void; + rollback(): void; + getError(): Error; + getStatus(): RelayMutationStatus; + getHash(): string; + getID(): ClientMutationID; } interface RelayMutationRequest { - getQueryString(): string; - getVariables(): RelayVariables; - resolve(result: RelayQueryRequestResolve): any; - reject(errors: any): any; + getQueryString(): string + getVariables(): RelayVariables + resolve(result: RelayQueryRequestResolve): any + reject(errors: any): any } interface RelayQueryRequest { - resolve(result: RelayQueryRequestResolve): any; - reject(errors: any): any; - getQueryString(): string; - getVariables(): RelayVariables; - getID(): string; - getDebugName(): string; + resolve(result: RelayQueryRequestResolve): any + reject(errors: any): any + + getQueryString(): string + getVariables(): RelayVariables + getID(): string + getDebugName(): string } interface RelayNetworkLayer { - supports(...options: string[]): boolean; + supports(...options: string[]): boolean } class DefaultNetworkLayer implements RelayNetworkLayer { - constructor(host: string, options?: any); - supports(...options: string[]): boolean; + constructor(host: string, options?: any) + supports(...options: string[]): boolean } - function createContainer(component: React.ComponentClass | React.StatelessComponent, params?: CreateContainerOpts): RelayContainerClass; - function injectNetworkLayer(networkLayer: RelayNetworkLayer): any; - function isContainer(component: React.ComponentClass): boolean; - function QL(...args: any[]): string; + function createContainer(component: React.ComponentClass | React.StatelessComponent, params?: CreateContainerOpts): RelayContainerClass + function injectNetworkLayer(networkLayer: RelayNetworkLayer): any + function isContainer(component: React.ComponentClass): boolean + function QL(...args: any[]): string class Route { constructor(params?: RelayVariables) @@ -390,59 +91,39 @@ declare module "react-relay/classic" { * S is typically dynamic as it depends on the data the app is currently using, but it's possible to always * return some data in the payload using REQUIRED_CHILDREN which is where specifying S is the most useful. */ - class Mutation { - props: T; + class Mutation { + props: T - constructor(props: T); - static getFragment(q: string): string; + constructor(props: T) + static getFragment(q: string): string } interface Transaction { - getError(): Error; - Status(): number; + getError(): Error + Status(): number } interface StoreUpdateCallbacks { - onFailure?(transaction: Transaction): any; - onSuccess?(response: T): any; + onFailure?(transaction: Transaction): any + onSuccess?(response: T): any } interface Store { - commitUpdate(mutation: Mutation, callbacks?: StoreUpdateCallbacks): any; + commitUpdate(mutation: Mutation, callbacks?: StoreUpdateCallbacks): any } - const Store: Store; + var Store: Store - class RootContainer extends React.Component { } + class RootContainer extends React.Component {} - interface RootContainerProps extends React.Props { - Component: RelayContainerClass; - route: Route; - renderLoading?(): JSX.Element; - renderFetched?(data: any): JSX.Element; - renderFailure?(error: Error, retry: (...args: any[]) => any): JSX.Element; + interface RootContainerProps extends React.Props{ + Component: RelayContainerClass + route: Route + renderLoading?(): JSX.Element + renderFetched?(data: any): JSX.Element + renderFailure?(error: Error, retry: Function): JSX.Element } - class Renderer extends React.Component { } - - interface RendererProps { - Container: RelayContainerClass; // Relay container that defines fragments and the view to render. - forceFetch?: boolean; // Whether to send a server request regardless of data available on the client. - queryConfig: Route; // `QueryConfig` or `Relay.Route` that defines the query roots. - environment: Store; // An instance of `Relay.Environment` or any object that implements the `RelayEnvironment` interface. - render?: RenderCallback; // Called to render when data requirements are being fulfilled. - onReadyStateChange?: OnReadyStateChange; - } - - interface RenderStateConfig { - props?: { [propName: string]: any }; - done: boolean; - error?: Error; - retry?(): void; - stale: boolean; - } - type RenderCallback = (renderState: RenderStateConfig) => any; - type ReadyStateEvent = 'ABORT' | 'CACHE_RESTORED_REQUIRED' | @@ -455,23 +136,25 @@ declare module "react-relay/classic" { 'STORE_FOUND_ALL' | 'STORE_FOUND_REQUIRED'; - type OnReadyStateChange = (readyState: { - ready: boolean, - done: boolean, - stale: boolean, - error?: Error, - events: ReadyStateEvent[], - aborted: boolean - }) => void; + interface OnReadyStateChange { + (readyState: { + ready: boolean, + done: boolean, + stale: boolean, + error?: Error, + events: Array, + aborted: boolean + }): void + } interface RelayProp { readonly route: { name: string; }; // incomplete, also has params and queries readonly variables: any; - readonly pendingVariables?: any; + readonly pendingVariables?: any | null; setVariables(variables: any, onReadyStateChange?: OnReadyStateChange): void; forceFetch(variables: any, onReadyStateChange?: OnReadyStateChange): void; hasOptimisticUpdate(record: any): boolean; getPendingTransactions(record: any): RelayMutationTransaction[]; - commitUpdate(mutation: Mutation, callbacks?: StoreUpdateCallbacks): any; + commitUpdate: (mutation: Mutation, callbacks?: StoreUpdateCallbacks) => any; } } diff --git a/types/react-relay/react-relay-tests.tsx b/types/react-relay/react-relay-tests.tsx index 2b8e371ee2..90425156cc 100644 --- a/types/react-relay/react-relay-tests.tsx +++ b/types/react-relay/react-relay-tests.tsx @@ -1,375 +1,30 @@ -import * as React from "react"; -import { - Environment, - Network, - RecordSource, - Store, - ConnectionHandler, -} from 'relay-runtime'; - -//////////////////////////// -// RELAY MODERN TESTS -/////////////////////////// -import { - graphql, - commitMutation, - createFragmentContainer, - createPaginationContainer, - createRefetchContainer, - requestSubscription, - QueryRenderer, - RelayPaginationProp, - RelayRefetchProp -} from "react-relay"; - -// ~~~~~~~~~~~~~~~~~~~~~ -// Modern Environment -// ~~~~~~~~~~~~~~~~~~~~~ -function fetchQuery(operation: any, variables: any, cacheConfig: {}) { - return fetch('/graphql'); -} -const network = Network.create(fetchQuery); -const source = new RecordSource(); -const store = new Store(source); -const modernEnvironment = new Environment({ network, store }); - -// ~~~~~~~~~~~~~~~~~~~~~ -// Modern QueryRenderer -// ~~~~~~~~~~~~~~~~~~~~~ -const MyQueryRenderer = (props: { name: string}) => ( - { - if (error) { - return
{error.message}
; - } else if (props) { - return
{props.name} is great!
; - } - return
Loading
; - }} - /> -); - -// ~~~~~~~~~~~~~~~~~~~~~ -// Modern FragmentContainer -// ~~~~~~~~~~~~~~~~~~~~~ -const MyFragmentContainer = createFragmentContainer( - class TodoListView extends React.Component { - render() { - return
; - } - }, - { - item: graphql` - fragment TodoItem_item on Todo { - text - isComplete - } - `, - } -); - -// ~~~~~~~~~~~~~~~~~~~~~ -// Modern RefetchContainer -// ~~~~~~~~~~~~~~~~~~~~~ -interface StoryInterface { id: string; } -interface FeedStoriesProps { - relay: RelayRefetchProp; - feed: { - stories: { edges: Array<{ node: StoryInterface }> } - }; -} -class Story extends React.Component<{ story: StoryInterface }> {} -class FeedStories extends React.Component { - render() { - return ( -
- {this.props.feed.stories.edges.map( - edge => - )} -
- ); - } - - _loadMore() { - // Increments the number of stories being rendered by 10. - const refetchVariables = (fragmentVariables: {count: number }) => ({ - count: fragmentVariables.count + 10, - }); - this.props.relay.refetch(refetchVariables); - } - } - -const FeedRefetchContainer = createRefetchContainer( - FeedStories, - { - feed: graphql.experimental` - fragment FeedStories_feed on Feed - @argumentDefinitions( - count: {type: "Int", defaultValue: 10} - ) { - stories(first: $count) { - edges { - node { - id - ...Story_story - } - } - } - } - ` - }, - graphql.experimental` - query FeedStoriesRefetchQuery($count: Int) { - feed { - ...FeedStories_feed @arguments(count: $count) - } - } - `, - ); - -// ~~~~~~~~~~~~~~~~~~~~~ -// Modern PaginationContainer -// ~~~~~~~~~~~~~~~~~~~~~ -interface FeedProps { - user: { feed: { edges: Array<{ node: StoryInterface}>}}; - relay: RelayPaginationProp; -} -class Feed extends React.Component { - render() { - return (
- {this.props.user.feed.edges.map( - edge => - )} -
); - } - - _loadMore() { - if (!this.props.relay.hasMore() || this.props.relay.isLoading()) { - return; - } - - this.props.relay.loadMore( - 10, // Fetch the next 10 feed items - e => { - console.log(e); - }, - ); - } -} - -const FeedPaginationContainer = createPaginationContainer( - Feed, - { - user: graphql` - fragment Feed_user on User { - feed( - first: $count - after: $cursor - orderby: $orderBy # other variables - ) @connection(key: "Feed_feed") { - edges { - node { - id - ...Story_story - } - } - } - } - `, - }, - { - direction: 'forward', - getConnectionFromProps(props: { user: {feed: any}}) { - return props.user && props.user.feed; - }, - getFragmentVariables(prevVars, totalCount) { - return { - ...prevVars, - count: totalCount, - }; - }, - getVariables(props, {count, cursor}, fragmentVariables) { - return { - count, - cursor, - // in most cases, for variables other than connection filters like - // `first`, `after`, etc. you may want to use the previous values. - orderBy: fragmentVariables.orderBy, - }; - }, - query: graphql` - query FeedPaginationQuery( - $count: Int! - $cursor: String - $orderby: String! - ) { - user { - # You could reference the fragment defined previously. - ...Feed_user - } - } - ` - } -); - -// ~~~~~~~~~~~~~~~~~~~~~ -// Modern Mutations -// ~~~~~~~~~~~~~~~~~~~~~ -const mutation = graphql` -mutation MarkReadNotificationMutation( - $input: MarkReadNotificationData! -) { - markReadNotification(data: $input) { - notification { - seenState - } - } -} -`; - -const optimisticResponse = { - markReadNotification: { - notification: { - seenState: 'SEEN', - }, - }, -}; - -const configs = [{ - type: 'NODE_DELETE' as 'NODE_DELETE', - deletedIDFieldName: 'destroyedShipId', -}, { - type: 'RANGE_ADD' as 'RANGE_ADD', - parentID: 'shipId', - connectionInfo: [{ - key: 'AddShip_ships', - rangeBehavior: 'append', - }], - edgeName: 'newShipEdge', -}, { - type: 'RANGE_DELETE' as 'RANGE_DELETE', - parentID: 'todoId', - connectionKeys: [{ - key: 'RemoveTags_tags', - rangeBehavior: 'append', - }], - pathToConnection: ['todo', 'tags'], - deletedIDFieldName: 'removedTagId' -}]; - -function markNotificationAsRead(source: string, storyID: string) { - const variables = { - input: { - source, - storyID, - }, - }; - - commitMutation( - modernEnvironment, - { - configs, - mutation, - optimisticResponse, - variables, - onCompleted: (response, errors) => { - console.log('Response received from server.'); - }, - onError: err => console.error(err), - }, - ); -} - -// ~~~~~~~~~~~~~~~~~~~~~ -// Modern Subscriptions -// ~~~~~~~~~~~~~~~~~~~~~ -const subscription = graphql` - subscription MarkReadNotificationSubscription( - $storyID: ID! - ) { - markReadNotification(storyID: $storyID) { - notification { - seenState - } - } - } -`; -const variables = { - storyID: '123', -}; -requestSubscription( - modernEnvironment, // see Environment docs - { - subscription, - variables, - // optional but recommended: - onCompleted: () => {}, - onError: error => console.error(error), - // example of a custom updater - updater: store => { - // Get the notification - const rootField = store.getRootField('markReadNotification'); - const notification = !!rootField && rootField.getLinkedRecord('notification'); - // Add it to a connection - const viewer = store.getRoot().getLinkedRecord('viewer'); - const notifications = - ConnectionHandler.getConnection(viewer, 'notifications'); - const edge = ConnectionHandler.createEdge( - store, - notifications, - notification, - '', - ); - ConnectionHandler.insertEdgeAfter(notifications, edge); - }, - } -); - -//////////////////////////// -// RELAY-CLASSIC TESTS -/////////////////////////// - -import * as Relay from "react-relay/classic"; +import * as React from "react" +import * as Relay from "react-relay" interface Props { - text: string; - userId: string; + text: string + userId: string } -export default class AddTweetMutation extends Relay.Mutation { - getMutation() { - return Relay.QL`mutation{addTweet}`; +interface Response { +} + +export default class AddTweetMutation extends Relay.Mutation { + + getMutation () { + return Relay.QL`mutation{addTweet}` } - getFatQuery() { + getFatQuery () { return Relay.QL` fragment on AddTweetPayload { tweetEdge user } - `; + ` } - getConfigs() { + getConfigs () { return [{ type: "RANGE_ADD", parentName: "user", @@ -379,19 +34,19 @@ export default class AddTweetMutation extends Relay.Mutation { rangeBehaviors: { "": "append", }, - }]; + }] } - getVariables() { - return this.props; + getVariables () { + return this.props } } interface ArtworkProps { artwork: { title: string - }; - relay: Relay.RelayProp; + }, + relay: Relay.RelayProp, } class Artwork extends React.Component { @@ -400,7 +55,7 @@ class Artwork extends React.Component { {this.props.artwork.title} - ); + ) } } @@ -412,7 +67,7 @@ const ArtworkContainer = Relay.createContainer(Artwork, { } ` } -}); +}) class StubbedArtwork extends React.Component { render() { @@ -428,10 +83,10 @@ class StubbedArtwork extends React.Component { setVariables: () => {}, forceFetch: () => {}, hasOptimisticUpdate: () => false, - getPendingTransactions: (): any => undefined, + getPendingTransactions: (): Relay.RelayMutationTransaction[] => undefined, commitUpdate: () => {}, } - }; - return ; + } + return } } diff --git a/types/react-relay/tsconfig.json b/types/react-relay/tsconfig.json index 9cabc08c4a..90680fbafc 100644 --- a/types/react-relay/tsconfig.json +++ b/types/react-relay/tsconfig.json @@ -7,7 +7,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": true, + "strictNullChecks": false, "baseUrl": "../", "typeRoots": [ "../" @@ -21,4 +21,4 @@ "index.d.ts", "react-relay-tests.tsx" ] -} +} \ No newline at end of file diff --git a/types/react-relay/v1/index.d.ts b/types/react-relay/v1/index.d.ts new file mode 100644 index 0000000000..14c7bb756a --- /dev/null +++ b/types/react-relay/v1/index.d.ts @@ -0,0 +1,474 @@ +// Type definitions for react-relay 1.3 +// Project: https://github.com/facebook/relay +// Definitions by: Johannes Schickling , Matt Martin +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.4 + +import * as React from 'react'; +import { RelayCommonTypes, RelayRuntimeTypes } from 'relay-runtime'; + +//////////////////////////// +// RELAY MODERN TYPES +/////////////////////////// +export namespace RelayModernTypes { + // ~~~~~~~~~~~~~~~~~~~~~ + // Maybe Fix + // ~~~~~~~~~~~~~~~~~~~~~ + type ConcreteFragment = any; + type ConcreteBatch = any; + type ConcreteFragmentDefinition = object; + type ConcreteOperationDefinition = object; + type ReactBaseComponent = React.ComponentClass | React.StatelessComponent; + + // ~~~~~~~~~~~~~~~~~~~~~ + // RelayProp + // ~~~~~~~~~~~~~~~~~~~~~ + // note: refetch and pagination containers augment this + interface RelayProp { + environment: RelayRuntimeTypes.Environment; + } + + // ~~~~~~~~~~~~~~~~~~~~~ + // RelayQL + // ~~~~~~~~~~~~~~~~~~~~~ + function RelayQL( + strings: string[], + ...substitutions: any[] + ): RelayCommonTypes.RelayConcreteNode; + + // ~~~~~~~~~~~~~~~~~~~~~ + // RelayModernGraphQLTag + // ~~~~~~~~~~~~~~~~~~~~~ + interface GeneratedNodeMap { [key: string]: GraphQLTaggedNode; } + type GraphQLTaggedNode = + (() => ConcreteFragment | ConcreteBatch) + | { + modern(): ConcreteFragment | ConcreteBatch, + classic(relayQL: typeof RelayQL): + | ConcreteFragmentDefinition + | ConcreteOperationDefinition, + }; + /** + * Runtime function to correspond to the `graphql` tagged template function. + * All calls to this function should be transformed by the plugin. + */ + interface GraphqlInterface { + (strings: string[] | TemplateStringsArray): GraphQLTaggedNode; + experimental(strings: string[] | TemplateStringsArray): GraphQLTaggedNode; + } + const graphql: GraphqlInterface; + + // ~~~~~~~~~~~~~~~~~~~~~ + // ReactRelayQueryRenderer + // ~~~~~~~~~~~~~~~~~~~~~ + interface QueryRendererProps { + cacheConfig?: RelayCommonTypes.CacheConfig; + environment: RelayRuntimeTypes.Environment; + query: GraphQLTaggedNode; + render(readyState: ReadyState): React.ReactElement | undefined | null; + variables: RelayCommonTypes.Variables; + rerunParamExperimental?: RelayCommonTypes.RerunParam; + } + interface ReadyState { + error: Error | undefined | null; + props: { [propName: string]: any } | undefined | null; + retry?(): void; + } + interface QueryRendererState { + readyState: ReadyState; + } + class ReactRelayQueryRenderer extends React.Component { } + + // ~~~~~~~~~~~~~~~~~~~~~ + // createFragmentContainer + // ~~~~~~~~~~~~~~~~~~~~~ + function createFragmentContainer( + Component: ReactBaseComponent, + fragmentSpec: GraphQLTaggedNode | GeneratedNodeMap, + ): ReactBaseComponent; + + // ~~~~~~~~~~~~~~~~~~~~~ + // createPaginationContainer + // ~~~~~~~~~~~~~~~~~~~~~ + interface PageInfo { + endCursor: string | undefined | null; + hasNextPage: boolean; + hasPreviousPage: boolean; + startCursor: string | undefined | null; + } + interface ConnectionData { + edges?: any[]; + pageInfo?: PageInfo; + } + type RelayPaginationProp = RelayProp & { + hasMore(): boolean, + isLoading(): boolean, + loadMore( + pageSize: number, + callback: (error?: Error) => void, + options?: RefetchOptions, + ): RelayCommonTypes.Disposable | undefined | null, + refetchConnection( + totalCount: number, + callback: (error?: Error) => void, + refetchVariables?: RelayCommonTypes.Variables, + ): RelayCommonTypes.Disposable | undefined | null, + }; + function FragmentVariablesGetter( + prevVars: RelayCommonTypes.Variables, + totalCount: number, + ): RelayCommonTypes.Variables; + interface ConnectionConfig { + direction?: 'backward' | 'forward'; + getConnectionFromProps?(props: object): ConnectionData | undefined | null; + getFragmentVariables?: typeof FragmentVariablesGetter; + getVariables( + props: { [propName: string]: any }, + paginationInfo: { count: number, cursor?: string }, + fragmentVariables: RelayCommonTypes.Variables, + ): RelayCommonTypes.Variables; + query: GraphQLTaggedNode; + } + function createPaginationContainer( + Component: ReactBaseComponent, + fragmentSpec: GraphQLTaggedNode | GeneratedNodeMap, + connectionConfig: ConnectionConfig, + ): ReactBaseComponent; + + // ~~~~~~~~~~~~~~~~~~~~~ + // createFragmentContainer + // ~~~~~~~~~~~~~~~~~~~~~ + interface RefetchOptions { + force?: boolean; + rerunParamExperimental?: RelayCommonTypes.RerunParam; + } + type RelayRefetchProp = RelayProp & { + refetch( + refetchVariables: RelayCommonTypes.Variables | ((fragmentVariables: RelayCommonTypes.Variables) => RelayCommonTypes.Variables), + renderVariables?: RelayCommonTypes.Variables, + callback?: (error?: Error) => void, + options?: RefetchOptions, + ): RelayCommonTypes.Disposable, + }; + function createRefetchContainer( + Component: ReactBaseComponent, + fragmentSpec: GraphQLTaggedNode | GeneratedNodeMap, + taggedNode: GraphQLTaggedNode, + ): ReactBaseComponent; +} + +//////////////////////////// +// RELAY CLASSIC TYPES +/////////////////////////// +// note: the namespace here is really for use inside of +// relay-compat; the module declaration below +// uses the old, pre-existing types +export namespace RelayClassicTypes { + // ~~~~~~~~~~~~~~~~~~~~~ + // Maybe Fix + // ~~~~~~~~~~~~~~~~~~~~~ + type StoreReaderData = any; + type StoreReaderOptions = any; + type RelayStoreData = any; + interface RelayQuery { Fragment: any; Node: any; Root: any; } + + // ~~~~~~~~~~~~~~~~~~~~~ + // Environment + // ~~~~~~~~~~~~~~~~~~~~~ + interface FragmentResolver { + dispose(): void; + resolve( + fragment: RelayQuery["Fragment"], + dataIDs: RelayCommonTypes.DataID | RelayCommonTypes.DataID[], + ): StoreReaderData | StoreReaderData[] | undefined | null; + } + interface RelayEnvironmentInterface { + forceFetch( + querySet: RelayCommonTypes.RelayQuerySet, + onReadyStateChange: RelayCommonTypes.ReadyStateChangeCallback, + ): RelayCommonTypes.Abortable; + getFragmentResolver( + fragment: RelayQuery["Fragment"], + onNext: () => void, + ): FragmentResolver; + getStoreData(): RelayStoreData; + primeCache( + querySet: RelayCommonTypes.RelayQuerySet, + onReadyStateChange: RelayCommonTypes.ReadyStateChangeCallback, + ): RelayCommonTypes.Abortable; + read( + node: RelayQuery["Node"], + dataID: RelayCommonTypes.DataID, + options?: StoreReaderOptions, + ): StoreReaderData | void; + readQuery( + root: RelayQuery["Root"], + options?: StoreReaderOptions, + ): StoreReaderData[] | void; + } +} + +//////////////////////////// +// RELAY COMPAT TYPES +/////////////////////////// +export namespace RelayCompatTypes { + // ~~~~~~~~~~~~~~~~~~~~~ + // Maybe Fix + // ~~~~~~~~~~~~~~~~~~~~~ + type ConcreteFragment = any; + type ConcreteBatch = any; + type ConcreteFragmentDefinition = object; + type ConcreteOperationDefinition = object; + + // ~~~~~~~~~~~~~~~~~~~~~ + // Util + // ~~~~~~~~~~~~~~~~~~~~~ + function getFragment(q: string, v?: RelayCommonTypes.Variables): string; + interface ComponentWithFragment extends React.ComponentClass { + getFragment: typeof getFragment; + } + interface StatelessWithFragment extends React.StatelessComponent { + getFragment: typeof getFragment; + } + type ReactFragmentComponent = ComponentWithFragment | StatelessWithFragment; + type ReactBaseComponent = React.ComponentClass | React.StatelessComponent; + type RelayClassicEnvironment = RelayClassicTypes.RelayEnvironmentInterface; + + // ~~~~~~~~~~~~~~~~~~~~~ + // RelayCompatTypes + // ~~~~~~~~~~~~~~~~~~~~~ + type CompatEnvironment = RelayRuntimeTypes.Environment | RelayClassicEnvironment; + + // ~~~~~~~~~~~~~~~~~~~~~ + // RelayCompatMutations + // ~~~~~~~~~~~~~~~~~~~~~ + function commitUpdate( + environment: CompatEnvironment, + config: RelayRuntimeTypes.MutationConfig, + ): RelayCommonTypes.Disposable; + function applyUpdate( + environment: CompatEnvironment, + config: RelayRuntimeTypes.OptimisticMutationConfig, + ): RelayCommonTypes.Disposable; + + // ~~~~~~~~~~~~~~~~~~~~~ + // RelayCompatContainer + // ~~~~~~~~~~~~~~~~~~~~~ + interface GeneratedNodeMap { [key: string]: RelayModernTypes.GraphQLTaggedNode; } + function createContainer( + Component: ReactBaseComponent, + fragmentSpec: RelayModernTypes.GraphQLTaggedNode | GeneratedNodeMap, + ): ReactFragmentComponent; + + // ~~~~~~~~~~~~~~~~~~~~~ + // injectDefaultVariablesProvider + // ~~~~~~~~~~~~~~~~~~~~~ + type VariablesProvider = () => RelayCommonTypes.Variables; + function injectDefaultVariablesProvider(variablesProvider: VariablesProvider): void; +} + + +//////////////////////////// +// MODULES +/////////////////////////// +export import QueryRenderer = RelayModernTypes.ReactRelayQueryRenderer; +export import createFragmentContainer = RelayModernTypes.createFragmentContainer; +export import createPaginationContainer = RelayModernTypes.createPaginationContainer; +export import createRefetchContainer = RelayModernTypes.createRefetchContainer; +export import graphql = RelayModernTypes.graphql; + +export import commitLocalUpdate = RelayRuntimeTypes.commitLocalUpdate; +export import commitMutation = RelayRuntimeTypes.commitRelayModernMutation; +export import fetchQuery = RelayRuntimeTypes.fetchRelayModernQuery; +export import requestSubscription = RelayRuntimeTypes.requestRelaySubscription; + +// exported for convenience — not exports in the original module +export import RelayProp = RelayModernTypes.RelayProp; +export import RelayPaginationProp = RelayModernTypes.RelayPaginationProp; +export import RelayRefetchProp = RelayModernTypes.RelayRefetchProp; + +declare module 'react-relay/compat' { + export import applyOptimisticMutation = RelayCompatTypes.applyUpdate; + export import commitMutation = RelayCompatTypes.commitUpdate; + export import createFragmentContainer = RelayCompatTypes.createContainer; + export import createPaginationContainer = RelayCompatTypes.createContainer; + export import createRefetchContainer = RelayCompatTypes.createContainer; + export import injectDefaultVariablesProvider = RelayCompatTypes.injectDefaultVariablesProvider; + export import QueryRenderer = RelayModernTypes.ReactRelayQueryRenderer; + export import graphql = RelayModernTypes.graphql; + export import fetchQuery = RelayRuntimeTypes.fetchRelayModernQuery; +} +// tslint:enable strict-export-declare-modifiers + +declare module "react-relay/classic" { + import * as React from "react"; + + type ClientMutationID = string; + + /** Fragments are a hash of functions */ + interface Fragments { + [query: string]: ((variables?: RelayVariables) => string); + } + + interface CreateContainerOpts { + initialVariables?: any; + fragments: Fragments; + prepareVariables?(prevVariables: RelayVariables): RelayVariables; + } + + interface RelayVariables { + [name: string]: any; + } + + /** add static getFragment method to the component constructor */ + interface RelayContainerClass extends React.ComponentClass { + getFragment: ((q: string, v?: RelayVariables) => string); + } + + interface RelayQueryRequestResolve { + response: any; + } + + type RelayMutationStatus = + 'UNCOMMITTED' | // Transaction hasn't yet been sent to the server. Transaction can be committed or rolled back. + 'COMMIT_QUEUED' | // Transaction was committed but another transaction with the same collision key is pending, so the transaction has been queued to send to the server. + 'COLLISION_COMMIT_FAILED' | // Transaction was queued for commit but another transaction with the same collision key failed. All transactions in the collision queue, + // including this one, have been failed. Transaction can be recommitted or rolled back. + 'COMMITTING' | // Transaction is waiting for the server to respond. + 'COMMIT_FAILED'; + + class RelayMutationTransaction { + applyOptimistic(): RelayMutationTransaction; + commit(): RelayMutationTransaction | null; + recommit(): void; + rollback(): void; + getError(): Error; + getStatus(): RelayMutationStatus; + getHash(): string; + getID(): ClientMutationID; + } + + interface RelayMutationRequest { + getQueryString(): string; + getVariables(): RelayVariables; + resolve(result: RelayQueryRequestResolve): any; + reject(errors: any): any; + } + + interface RelayQueryRequest { + resolve(result: RelayQueryRequestResolve): any; + reject(errors: any): any; + getQueryString(): string; + getVariables(): RelayVariables; + getID(): string; + getDebugName(): string; + } + + interface RelayNetworkLayer { + supports(...options: string[]): boolean; + } + + class DefaultNetworkLayer implements RelayNetworkLayer { + constructor(host: string, options?: any); + supports(...options: string[]): boolean; + } + + function createContainer(component: React.ComponentClass | React.StatelessComponent, params?: CreateContainerOpts): RelayContainerClass; + function injectNetworkLayer(networkLayer: RelayNetworkLayer): any; + function isContainer(component: React.ComponentClass): boolean; + function QL(...args: any[]): string; + + class Route { + constructor(params?: RelayVariables) + } + + /** + * Relay Mutation class, where T are the props it takes and S is the returned payload from Relay.Store.update. + * S is typically dynamic as it depends on the data the app is currently using, but it's possible to always + * return some data in the payload using REQUIRED_CHILDREN which is where specifying S is the most useful. + */ + class Mutation { + props: T; + + constructor(props: T); + static getFragment(q: string): string; + } + + interface Transaction { + getError(): Error; + Status(): number; + } + + interface StoreUpdateCallbacks { + onFailure?(transaction: Transaction): any; + onSuccess?(response: T): any; + } + + interface Store { + commitUpdate(mutation: Mutation, callbacks?: StoreUpdateCallbacks): any; + } + + const Store: Store; + + class RootContainer extends React.Component { } + + interface RootContainerProps extends React.Props { + Component: RelayContainerClass; + route: Route; + renderLoading?(): JSX.Element; + renderFetched?(data: any): JSX.Element; + renderFailure?(error: Error, retry: (...args: any[]) => any): JSX.Element; + } + + class Renderer extends React.Component { } + + interface RendererProps { + Container: RelayContainerClass; // Relay container that defines fragments and the view to render. + forceFetch?: boolean; // Whether to send a server request regardless of data available on the client. + queryConfig: Route; // `QueryConfig` or `Relay.Route` that defines the query roots. + environment: Store; // An instance of `Relay.Environment` or any object that implements the `RelayEnvironment` interface. + render?: RenderCallback; // Called to render when data requirements are being fulfilled. + onReadyStateChange?: OnReadyStateChange; + } + + interface RenderStateConfig { + props?: { [propName: string]: any }; + done: boolean; + error?: Error; + retry?(): void; + stale: boolean; + } + type RenderCallback = (renderState: RenderStateConfig) => any; + + type ReadyStateEvent = + 'ABORT' | + 'CACHE_RESTORED_REQUIRED' | + 'CACHE_RESTORE_FAILED' | + 'CACHE_RESTORE_START' | + 'NETWORK_QUERY_ERROR' | + 'NETWORK_QUERY_RECEIVED_ALL' | + 'NETWORK_QUERY_RECEIVED_REQUIRED' | + 'NETWORK_QUERY_START' | + 'STORE_FOUND_ALL' | + 'STORE_FOUND_REQUIRED'; + + type OnReadyStateChange = (readyState: { + ready: boolean, + done: boolean, + stale: boolean, + error?: Error, + events: ReadyStateEvent[], + aborted: boolean + }) => void; + + interface RelayProp { + readonly route: { name: string; }; // incomplete, also has params and queries + readonly variables: any; + readonly pendingVariables?: any; + setVariables(variables: any, onReadyStateChange?: OnReadyStateChange): void; + forceFetch(variables: any, onReadyStateChange?: OnReadyStateChange): void; + hasOptimisticUpdate(record: any): boolean; + getPendingTransactions(record: any): RelayMutationTransaction[]; + commitUpdate(mutation: Mutation, callbacks?: StoreUpdateCallbacks): any; + } +} diff --git a/types/react-relay/v1/lib/react-relay-classic.d.ts b/types/react-relay/v1/lib/react-relay-classic.d.ts new file mode 100644 index 0000000000..e69de29bb2 diff --git a/types/react-relay/v1/lib/react-relay-compat.d.ts b/types/react-relay/v1/lib/react-relay-compat.d.ts new file mode 100644 index 0000000000..e69de29bb2 diff --git a/types/react-relay/v1/lib/react-relay-modern.d.ts b/types/react-relay/v1/lib/react-relay-modern.d.ts new file mode 100644 index 0000000000..e69de29bb2 diff --git a/types/react-relay/v1/react-relay-tests.tsx b/types/react-relay/v1/react-relay-tests.tsx new file mode 100644 index 0000000000..2b8e371ee2 --- /dev/null +++ b/types/react-relay/v1/react-relay-tests.tsx @@ -0,0 +1,437 @@ +import * as React from "react"; +import { + Environment, + Network, + RecordSource, + Store, + ConnectionHandler, +} from 'relay-runtime'; + +//////////////////////////// +// RELAY MODERN TESTS +/////////////////////////// +import { + graphql, + commitMutation, + createFragmentContainer, + createPaginationContainer, + createRefetchContainer, + requestSubscription, + QueryRenderer, + RelayPaginationProp, + RelayRefetchProp +} from "react-relay"; + +// ~~~~~~~~~~~~~~~~~~~~~ +// Modern Environment +// ~~~~~~~~~~~~~~~~~~~~~ +function fetchQuery(operation: any, variables: any, cacheConfig: {}) { + return fetch('/graphql'); +} +const network = Network.create(fetchQuery); +const source = new RecordSource(); +const store = new Store(source); +const modernEnvironment = new Environment({ network, store }); + +// ~~~~~~~~~~~~~~~~~~~~~ +// Modern QueryRenderer +// ~~~~~~~~~~~~~~~~~~~~~ +const MyQueryRenderer = (props: { name: string}) => ( + { + if (error) { + return
{error.message}
; + } else if (props) { + return
{props.name} is great!
; + } + return
Loading
; + }} + /> +); + +// ~~~~~~~~~~~~~~~~~~~~~ +// Modern FragmentContainer +// ~~~~~~~~~~~~~~~~~~~~~ +const MyFragmentContainer = createFragmentContainer( + class TodoListView extends React.Component { + render() { + return
; + } + }, + { + item: graphql` + fragment TodoItem_item on Todo { + text + isComplete + } + `, + } +); + +// ~~~~~~~~~~~~~~~~~~~~~ +// Modern RefetchContainer +// ~~~~~~~~~~~~~~~~~~~~~ +interface StoryInterface { id: string; } +interface FeedStoriesProps { + relay: RelayRefetchProp; + feed: { + stories: { edges: Array<{ node: StoryInterface }> } + }; +} +class Story extends React.Component<{ story: StoryInterface }> {} +class FeedStories extends React.Component { + render() { + return ( +
+ {this.props.feed.stories.edges.map( + edge => + )} +
+ ); + } + + _loadMore() { + // Increments the number of stories being rendered by 10. + const refetchVariables = (fragmentVariables: {count: number }) => ({ + count: fragmentVariables.count + 10, + }); + this.props.relay.refetch(refetchVariables); + } + } + +const FeedRefetchContainer = createRefetchContainer( + FeedStories, + { + feed: graphql.experimental` + fragment FeedStories_feed on Feed + @argumentDefinitions( + count: {type: "Int", defaultValue: 10} + ) { + stories(first: $count) { + edges { + node { + id + ...Story_story + } + } + } + } + ` + }, + graphql.experimental` + query FeedStoriesRefetchQuery($count: Int) { + feed { + ...FeedStories_feed @arguments(count: $count) + } + } + `, + ); + +// ~~~~~~~~~~~~~~~~~~~~~ +// Modern PaginationContainer +// ~~~~~~~~~~~~~~~~~~~~~ +interface FeedProps { + user: { feed: { edges: Array<{ node: StoryInterface}>}}; + relay: RelayPaginationProp; +} +class Feed extends React.Component { + render() { + return (
+ {this.props.user.feed.edges.map( + edge => + )} +
); + } + + _loadMore() { + if (!this.props.relay.hasMore() || this.props.relay.isLoading()) { + return; + } + + this.props.relay.loadMore( + 10, // Fetch the next 10 feed items + e => { + console.log(e); + }, + ); + } +} + +const FeedPaginationContainer = createPaginationContainer( + Feed, + { + user: graphql` + fragment Feed_user on User { + feed( + first: $count + after: $cursor + orderby: $orderBy # other variables + ) @connection(key: "Feed_feed") { + edges { + node { + id + ...Story_story + } + } + } + } + `, + }, + { + direction: 'forward', + getConnectionFromProps(props: { user: {feed: any}}) { + return props.user && props.user.feed; + }, + getFragmentVariables(prevVars, totalCount) { + return { + ...prevVars, + count: totalCount, + }; + }, + getVariables(props, {count, cursor}, fragmentVariables) { + return { + count, + cursor, + // in most cases, for variables other than connection filters like + // `first`, `after`, etc. you may want to use the previous values. + orderBy: fragmentVariables.orderBy, + }; + }, + query: graphql` + query FeedPaginationQuery( + $count: Int! + $cursor: String + $orderby: String! + ) { + user { + # You could reference the fragment defined previously. + ...Feed_user + } + } + ` + } +); + +// ~~~~~~~~~~~~~~~~~~~~~ +// Modern Mutations +// ~~~~~~~~~~~~~~~~~~~~~ +const mutation = graphql` +mutation MarkReadNotificationMutation( + $input: MarkReadNotificationData! +) { + markReadNotification(data: $input) { + notification { + seenState + } + } +} +`; + +const optimisticResponse = { + markReadNotification: { + notification: { + seenState: 'SEEN', + }, + }, +}; + +const configs = [{ + type: 'NODE_DELETE' as 'NODE_DELETE', + deletedIDFieldName: 'destroyedShipId', +}, { + type: 'RANGE_ADD' as 'RANGE_ADD', + parentID: 'shipId', + connectionInfo: [{ + key: 'AddShip_ships', + rangeBehavior: 'append', + }], + edgeName: 'newShipEdge', +}, { + type: 'RANGE_DELETE' as 'RANGE_DELETE', + parentID: 'todoId', + connectionKeys: [{ + key: 'RemoveTags_tags', + rangeBehavior: 'append', + }], + pathToConnection: ['todo', 'tags'], + deletedIDFieldName: 'removedTagId' +}]; + +function markNotificationAsRead(source: string, storyID: string) { + const variables = { + input: { + source, + storyID, + }, + }; + + commitMutation( + modernEnvironment, + { + configs, + mutation, + optimisticResponse, + variables, + onCompleted: (response, errors) => { + console.log('Response received from server.'); + }, + onError: err => console.error(err), + }, + ); +} + +// ~~~~~~~~~~~~~~~~~~~~~ +// Modern Subscriptions +// ~~~~~~~~~~~~~~~~~~~~~ +const subscription = graphql` + subscription MarkReadNotificationSubscription( + $storyID: ID! + ) { + markReadNotification(storyID: $storyID) { + notification { + seenState + } + } + } +`; +const variables = { + storyID: '123', +}; +requestSubscription( + modernEnvironment, // see Environment docs + { + subscription, + variables, + // optional but recommended: + onCompleted: () => {}, + onError: error => console.error(error), + // example of a custom updater + updater: store => { + // Get the notification + const rootField = store.getRootField('markReadNotification'); + const notification = !!rootField && rootField.getLinkedRecord('notification'); + // Add it to a connection + const viewer = store.getRoot().getLinkedRecord('viewer'); + const notifications = + ConnectionHandler.getConnection(viewer, 'notifications'); + const edge = ConnectionHandler.createEdge( + store, + notifications, + notification, + '', + ); + ConnectionHandler.insertEdgeAfter(notifications, edge); + }, + } +); + +//////////////////////////// +// RELAY-CLASSIC TESTS +/////////////////////////// + +import * as Relay from "react-relay/classic"; + +interface Props { + text: string; + userId: string; +} + +export default class AddTweetMutation extends Relay.Mutation { + getMutation() { + return Relay.QL`mutation{addTweet}`; + } + + getFatQuery() { + return Relay.QL` + fragment on AddTweetPayload { + tweetEdge + user + } + `; + } + + getConfigs() { + return [{ + type: "RANGE_ADD", + parentName: "user", + parentID: this.props.userId, + connectionName: "tweets", + edgeName: "tweetEdge", + rangeBehaviors: { + "": "append", + }, + }]; + } + + getVariables() { + return this.props; + } +} + +interface ArtworkProps { + artwork: { + title: string + }; + relay: Relay.RelayProp; +} + +class Artwork extends React.Component { + render() { + return ( + + {this.props.artwork.title} + + ); + } +} + +const ArtworkContainer = Relay.createContainer(Artwork, { + fragments: { + artwork: () => Relay.QL` + fragment on Artwork { + title + } + ` + } +}); + +class StubbedArtwork extends React.Component { + render() { + const props = { + artwork: { title: "CHAMPAGNE FORMICA FLAG" }, + relay: { + route: { + name: "champagne" + }, + variables: { + artworkID: "champagne-formica-flag", + }, + setVariables: () => {}, + forceFetch: () => {}, + hasOptimisticUpdate: () => false, + getPendingTransactions: (): any => undefined, + commitUpdate: () => {}, + } + }; + return ; + } +} diff --git a/types/react-relay/v1/tsconfig.json b/types/react-relay/v1/tsconfig.json new file mode 100644 index 0000000000..e6b06bf446 --- /dev/null +++ b/types/react-relay/v1/tsconfig.json @@ -0,0 +1,31 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es6", + "dom" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "baseUrl": "../../", + "typeRoots": [ + "../../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true, + "jsx": "react", + "paths": { + "react-relay": ["react-relay/v1"], + "react-relay/*": ["react-relay/v2/*"] + } + }, + "files": [ + "index.d.ts", + "react-relay-tests.tsx", + "lib/react-relay-classic.d.ts", + "lib/react-relay-modern.d.ts", + "lib/react-relay-compat.d.ts" + ] +} diff --git a/types/react-relay/tslint.json b/types/react-relay/v1/tslint.json similarity index 100% rename from types/react-relay/tslint.json rename to types/react-relay/v1/tslint.json diff --git a/types/relay-runtime/index.d.ts b/types/relay-runtime/index.d.ts index 2bd9938b0c..152df90640 100644 --- a/types/relay-runtime/index.d.ts +++ b/types/relay-runtime/index.d.ts @@ -4,1129 +4,1127 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.4 -// note: __Relay namespace is used so react-relay can access and inter-op -declare namespace __Relay { - namespace Common { - /** - * SOURCE: - * Relay 1.3.0 - * https://github.com/facebook/relay/blob/b85a1d69bb72be4ace67179f55c2a54a8d761c8b/packages/react-relay/classic/environment/RelayCombinedEnvironmentTypes.js - */ - // ~~~~~~~~~~~~~~~~~~~~~ - // Maybe Fix - // ~~~~~~~~~~~~~~~~~~~~~ - type RelayConcreteNode = any; - type RelayMutationTransaction = any; - type RelayMutationRequest = any; - type RelayQueryRequest = any; - type ConcreteFragment = any; - type ConcreteBatch = any; - type ConcreteFragmentDefinition = object; - type ConcreteOperationDefinition = object; +// note: namespace is used so react-relay can access and inter-op +export namespace RelayCommonTypes { + /** + * SOURCE: + * Relay 1.3.0 + * https://github.com/facebook/relay/blob/b85a1d69bb72be4ace67179f55c2a54a8d761c8b/packages/react-relay/classic/environment/RelayCombinedEnvironmentTypes.js + */ + // ~~~~~~~~~~~~~~~~~~~~~ + // Maybe Fix + // ~~~~~~~~~~~~~~~~~~~~~ + type RelayConcreteNode = any; + type RelayMutationTransaction = any; + type RelayMutationRequest = any; + type RelayQueryRequest = any; + type ConcreteFragment = any; + type ConcreteBatch = any; + type ConcreteFragmentDefinition = object; + type ConcreteOperationDefinition = object; - /** - * FIXME: RelayContainer used to be typed with ReactClass, but - * ReactClass is broken and allows for access to any property. For example - * ReactClass.getFragment('foo') is valid even though ReactClass has no - * such getFragment() type definition. When ReactClass is fixed this causes a - * lot of errors in Relay code since methods like getFragment() are used often - * but have no definition in Relay's types. Suppressing for now. - */ - type RelayContainer = any; + /** + * FIXME: RelayContainer used to be typed with ReactClass, but + * ReactClass is broken and allows for access to any property. For example + * ReactClass.getFragment('foo') is valid even though ReactClass has no + * such getFragment() type definition. When ReactClass is fixed this causes a + * lot of errors in Relay code since methods like getFragment() are used often + * but have no definition in Relay's types. Suppressing for now. + */ + type RelayContainer = any; - // ~~~~~~~~~~~~~~~~~~~~~ - // RelayQL - // ~~~~~~~~~~~~~~~~~~~~~ - type RelayQL = ( - strings: string[], - ...substitutions: any[] - ) => RelayConcreteNode; + // ~~~~~~~~~~~~~~~~~~~~~ + // RelayQL + // ~~~~~~~~~~~~~~~~~~~~~ + type RelayQL = ( + strings: string[], + ...substitutions: any[] + ) => RelayConcreteNode; - // ~~~~~~~~~~~~~~~~~~~~~ - // RelayModernGraphQLTag - // ~~~~~~~~~~~~~~~~~~~~~ - interface GeneratedNodeMap { - [key: string]: GraphQLTaggedNode; - } - type GraphQLTaggedNode = - (() => ConcreteFragment | ConcreteBatch) | - { - modern(): ConcreteFragment | ConcreteBatch, - classic(relayQL: RelayQL): - | ConcreteFragmentDefinition - | ConcreteOperationDefinition, - }; - // ~~~~~~~~~~~~~~~~~~~~~ - // General Usage - // ~~~~~~~~~~~~~~~~~~~~~ - type DataID = string; - interface Variables { - [name: string]: any; - } - type Uploadable = File | Blob; - interface UploadableMap { - [key: string]: Uploadable; - } - - // ~~~~~~~~~~~~~~~~~~~~~ - // RelayNetworkTypes - // Version: Relay 1.3.0 - // File: https://github.com/facebook/relay/blob/master/packages/relay-runtime/network/RelayNetworkTypes.js - // ~~~~~~~~~~~~~~~~~~~~~ - - interface LegacyObserver { - onCompleted?(): void; - onError?(error: Error): void; - onNext?(data: T): void; - } - interface PayloadError { - message: string; - locations?: Array<{ - line: number, - column: number, - }>; - } - /** - * A function that executes a GraphQL operation with request/response semantics. - * - * May return an Observable or Promise of a raw server response. - */ - function FetchFunction( - operation: ConcreteBatch, - variables: Variables, - cacheConfig: CacheConfig, - uploadables?: UploadableMap, - ): Runtime.ObservableFromValue; - - /** - * A function that executes a GraphQL subscription operation, returning one or - * more raw server responses over time. - * - * May return an Observable, otherwise must call the callbacks found in the - * fourth parameter. - */ - type SubscribeFunction = ( - operation: ConcreteBatch, - variables: Variables, - cacheConfig: CacheConfig, - observer: LegacyObserver, - ) => Runtime.RelayObservable | Disposable; - - // ~~~~~~~~~~~~~~~~~~~~~ - // RelayStoreTypes - // Version: Relay 1.3.0 - // File: https://github.com/facebook/relay/blob/master/packages/relay-runtime/store/RelayStoreTypes.js - // ~~~~~~~~~~~~~~~~~~~~~ - /** - * A function that receives a proxy over the store and may trigger side-effects - * (indirectly) by calling `set*` methods on the store or its record proxies. - */ - type StoreUpdater = (store: RecordSourceProxy) => void; - - /** - * Similar to StoreUpdater, but accepts a proxy tied to a specific selector in - * order to easily access the root fields of a query/mutation as well as a - * second argument of the response object of the mutation. - */ - type SelectorStoreUpdater = ( - store: RecordSourceSelectorProxy, - // Actually RelayCombinedEnvironmentTypes#SelectorData, but mixed is - // inconvenient to access deeply in product code. - data: any, // FLOW FIXME - ) => void; - - /** - * Extends the RecordSourceProxy interface with methods for accessing the root - * fields of a Selector. - */ - interface RecordSourceSelectorProxy { - create(dataID: DataID, typeName: string): RecordProxy; - delete(dataID: DataID): void; - get(dataID: DataID): RecordProxy | void; - getRoot(): RecordProxy; - getRootField(fieldName: string): RecordProxy | void; - getPluralRootField(fieldName: string): RecordProxy[] | void; - } - - interface RecordProxy { - copyFieldsFrom(source: RecordProxy): void; - getDataID(): DataID; - getLinkedRecord(name: string, args?: Variables): RecordProxy | void; - getLinkedRecords(name: string, args?: Variables): Array | void; - getOrCreateLinkedRecord( - name: string, - typeName: string, - args?: Variables, - ): RecordProxy; - getType(): string; - getValue(name: string, args?: Variables): any; - setLinkedRecord( - record: RecordProxy, - name: string, - args?: Variables, - ): RecordProxy; - setLinkedRecords( - records: Array | undefined | null, - name: string, - args?: Variables, - ): RecordProxy; - setValue(value: any, name: string, args?: Variables): RecordProxy; - } - - interface RecordSourceProxy { - create(dataID: DataID, typeName: string): RecordProxy; - delete(dataID: DataID): void; - get(dataID: DataID): Array | void; - getRoot(): RecordProxy; - } - - interface HandleFieldPayload { - // The arguments that were fetched. - args: Variables; - // The __id of the record containing the source/handle field. - dataID: DataID; - // The (storage) key at which the original server data was written. - fieldKey: string; - // The name of the handle - handle: string; - // The (storage) key at which the handle's data should be written by the - // handler - handleKey: string; - } - interface HandlerInterface { - update(store: RecordSourceProxy, fieldPayload: HandleFieldPayload): void; - [functionName: string]: (...args: any[]) => any; - } - const Handler: HandlerInterface; - - // ~~~~~~~~~~~~~~~~~~~~~ - // RelayCombinedEnvironmentTypes - // Version: Relay 1.3.0 - // File: https://github.com/facebook/relay/blob/b85a1d69bb72be4ace67179f55c2a54a8d761c8b/packages/react-relay/classic/environment/RelayCombinedEnvironmentTypes.js - // ~~~~~~~~~~~~~~~~~~~~~ - /** - * Settings for how a query response may be cached. - * - * - `force`: causes a query to be issued unconditionally, irrespective of the - * state of any configured response cache. - * - `poll`: causes a query to live update by polling at the specified interval - * in milliseconds. (This value will be passed to setTimeout.) - */ - interface CacheConfig { - force?: boolean; - poll?: number; - } - - /** - * Represents any resource that must be explicitly disposed of. The most common - * use-case is as a return value for subscriptions, where calling `dispose()` - * would cancel the subscription. - */ - interface Disposable { - dispose(): void; - } - - /** - * Arbitrary data e.g. received by a container as props. - */ - interface Props { [key: string]: any; } - - /* - * An individual cached graph object. - */ - interface Record { [key: string]: any; } - - /** - * A collection of records keyed by id. - */ - interface RecordMap { [dataID: string]: Record | null | undefined; } - - /** - * A selector defines the starting point for a traversal into the graph for the - * purposes of targeting a subgraph. - */ - interface CSelector { - dataID: DataID; - node: TNode; - variables: Variables; - } - - /** - * A representation of a selector and its results at a particular point in time. - */ - type CSnapshot = CSelector & { - data: SelectorData | null | undefined, - seenRecords: RecordMap, + // ~~~~~~~~~~~~~~~~~~~~~ + // RelayModernGraphQLTag + // ~~~~~~~~~~~~~~~~~~~~~ + interface GeneratedNodeMap { + [key: string]: GraphQLTaggedNode; + } + type GraphQLTaggedNode = + (() => ConcreteFragment | ConcreteBatch) | + { + modern(): ConcreteFragment | ConcreteBatch, + classic(relayQL: RelayQL): + | ConcreteFragmentDefinition + | ConcreteOperationDefinition, }; + // ~~~~~~~~~~~~~~~~~~~~~ + // General Usage + // ~~~~~~~~~~~~~~~~~~~~~ + type DataID = string; + interface Variables { + [name: string]: any; + } + type Uploadable = File | Blob; + interface UploadableMap { + [key: string]: Uploadable; + } + // ~~~~~~~~~~~~~~~~~~~~~ + // RelayNetworkTypes + // Version: Relay 1.3.0 + // File: https://github.com/facebook/relay/blob/master/packages/relay-runtime/network/RelayNetworkTypes.js + // ~~~~~~~~~~~~~~~~~~~~~ + + interface LegacyObserver { + onCompleted?(): void; + onError?(error: Error): void; + onNext?(data: T): void; + } + interface PayloadError { + message: string; + locations?: Array<{ + line: number, + column: number, + }>; + } + /** + * A function that executes a GraphQL operation with request/response semantics. + * + * May return an Observable or Promise of a raw server response. + */ + function FetchFunction( + operation: ConcreteBatch, + variables: Variables, + cacheConfig: CacheConfig, + uploadables?: UploadableMap, + ): Runtime.ObservableFromValue; + + /** + * A function that executes a GraphQL subscription operation, returning one or + * more raw server responses over time. + * + * May return an Observable, otherwise must call the callbacks found in the + * fourth parameter. + */ + type SubscribeFunction = ( + operation: ConcreteBatch, + variables: Variables, + cacheConfig: CacheConfig, + observer: LegacyObserver, + ) => Runtime.RelayObservable | Disposable; + + // ~~~~~~~~~~~~~~~~~~~~~ + // RelayStoreTypes + // Version: Relay 1.3.0 + // File: https://github.com/facebook/relay/blob/master/packages/relay-runtime/store/RelayStoreTypes.js + // ~~~~~~~~~~~~~~~~~~~~~ + /** + * A function that receives a proxy over the store and may trigger side-effects + * (indirectly) by calling `set*` methods on the store or its record proxies. + */ + type StoreUpdater = (store: RecordSourceProxy) => void; + + /** + * Similar to StoreUpdater, but accepts a proxy tied to a specific selector in + * order to easily access the root fields of a query/mutation as well as a + * second argument of the response object of the mutation. + */ + type SelectorStoreUpdater = ( + store: RecordSourceSelectorProxy, + // Actually RelayCombinedEnvironmentTypes#SelectorData, but mixed is + // inconvenient to access deeply in product code. + data: any, // FLOW FIXME + ) => void; + + /** + * Extends the RecordSourceProxy interface with methods for accessing the root + * fields of a Selector. + */ + interface RecordSourceSelectorProxy { + create(dataID: DataID, typeName: string): RecordProxy; + delete(dataID: DataID): void; + get(dataID: DataID): RecordProxy | void; + getRoot(): RecordProxy; + getRootField(fieldName: string): RecordProxy | void; + getPluralRootField(fieldName: string): RecordProxy[] | void; + } + + interface RecordProxy { + copyFieldsFrom(source: RecordProxy): void; + getDataID(): DataID; + getLinkedRecord(name: string, args?: Variables): RecordProxy | void; + getLinkedRecords(name: string, args?: Variables): Array | void; + getOrCreateLinkedRecord( + name: string, + typeName: string, + args?: Variables, + ): RecordProxy; + getType(): string; + getValue(name: string, args?: Variables): any; + setLinkedRecord( + record: RecordProxy, + name: string, + args?: Variables, + ): RecordProxy; + setLinkedRecords( + records: Array | undefined | null, + name: string, + args?: Variables, + ): RecordProxy; + setValue(value: any, name: string, args?: Variables): RecordProxy; + } + + interface RecordSourceProxy { + create(dataID: DataID, typeName: string): RecordProxy; + delete(dataID: DataID): void; + get(dataID: DataID): Array | void; + getRoot(): RecordProxy; + } + + interface HandleFieldPayload { + // The arguments that were fetched. + args: Variables; + // The __id of the record containing the source/handle field. + dataID: DataID; + // The (storage) key at which the original server data was written. + fieldKey: string; + // The name of the handle + handle: string; + // The (storage) key at which the handle's data should be written by the + // handler + handleKey: string; + } + interface HandlerInterface { + update(store: RecordSourceProxy, fieldPayload: HandleFieldPayload): void; + [functionName: string]: (...args: any[]) => any; + } + const Handler: HandlerInterface; + + // ~~~~~~~~~~~~~~~~~~~~~ + // RelayCombinedEnvironmentTypes + // Version: Relay 1.3.0 + // File: https://github.com/facebook/relay/blob/b85a1d69bb72be4ace67179f55c2a54a8d761c8b/packages/react-relay/classic/environment/RelayCombinedEnvironmentTypes.js + // ~~~~~~~~~~~~~~~~~~~~~ + /** + * Settings for how a query response may be cached. + * + * - `force`: causes a query to be issued unconditionally, irrespective of the + * state of any configured response cache. + * - `poll`: causes a query to live update by polling at the specified interval + * in milliseconds. (This value will be passed to setTimeout.) + */ + interface CacheConfig { + force?: boolean; + poll?: number; + } + + /** + * Represents any resource that must be explicitly disposed of. The most common + * use-case is as a return value for subscriptions, where calling `dispose()` + * would cancel the subscription. + */ + interface Disposable { + dispose(): void; + } + + /** + * Arbitrary data e.g. received by a container as props. + */ + interface Props { [key: string]: any; } + + /* + * An individual cached graph object. + */ + interface Record { [key: string]: any; } + + /** + * A collection of records keyed by id. + */ + interface RecordMap { [dataID: string]: Record | null | undefined; } + + /** + * A selector defines the starting point for a traversal into the graph for the + * purposes of targeting a subgraph. + */ + interface CSelector { + dataID: DataID; + node: TNode; + variables: Variables; + } + + /** + * A representation of a selector and its results at a particular point in time. + */ + type CSnapshot = CSelector & { + data: SelectorData | null | undefined, + seenRecords: RecordMap, + }; + + /** + * The results of a selector given a store/RecordSource. + */ + interface SelectorData { [key: string]: any; } + + /** + * The results of reading the results of a FragmentMap given some input + * `Props`. + */ + interface FragmentSpecResults { [key: string]: any; } + + /** + * A utility for resolving and subscribing to the results of a fragment spec + * (key -> fragment mapping) given some "props" that determine the root ID + * and variables to use when reading each fragment. When props are changed via + * `setProps()`, the resolver will update its results and subscriptions + * accordingly. Internally, the resolver: + * - Converts the fragment map & props map into a map of `Selector`s. + * - Removes any resolvers for any props that became null. + * - Creates resolvers for any props that became non-null. + * - Updates resolvers with the latest props. + */ + interface FragmentSpecResolver { /** - * The results of a selector given a store/RecordSource. + * Stop watching for changes to the results of the fragments. */ - interface SelectorData { [key: string]: any; } + dispose(): void; /** - * The results of reading the results of a FragmentMap given some input - * `Props`. + * Get the current results. */ - interface FragmentSpecResults { [key: string]: any; } + resolve(): FragmentSpecResults; /** - * A utility for resolving and subscribing to the results of a fragment spec - * (key -> fragment mapping) given some "props" that determine the root ID - * and variables to use when reading each fragment. When props are changed via - * `setProps()`, the resolver will update its results and subscriptions - * accordingly. Internally, the resolver: - * - Converts the fragment map & props map into a map of `Selector`s. - * - Removes any resolvers for any props that became null. - * - Creates resolvers for any props that became non-null. - * - Updates resolvers with the latest props. + * Update the resolver with new inputs. Call `resolve()` to get the updated + * results. */ - interface FragmentSpecResolver { - /** - * Stop watching for changes to the results of the fragments. - */ - dispose(): void; - - /** - * Get the current results. - */ - resolve(): FragmentSpecResults; - - /** - * Update the resolver with new inputs. Call `resolve()` to get the updated - * results. - */ - setProps(props: Props): void; - - /** - * Override the variables used to read the results of the fragments. Call - * `resolve()` to get the updated results. - */ - setVariables(variables: Variables): void; - } - - interface CFragmentMap { [key: string]: TFragment; } + setProps(props: Props): void; /** - * An operation selector describes a specific instance of a GraphQL operation - * with variables applied. + * Override the variables used to read the results of the fragments. Call + * `resolve()` to get the updated results. + */ + setVariables(variables: Variables): void; + } + + interface CFragmentMap { [key: string]: TFragment; } + + /** + * An operation selector describes a specific instance of a GraphQL operation + * with variables applied. + * + * - `root`: a selector intended for processing server results or retaining + * response data in the store. + * - `fragment`: a selector intended for use in reading or subscribing to + * the results of the the operation. + */ + interface COperationSelector { + fragment: CSelector; + node: TOperation; + root: CSelector; + variables: Variables; + } + + /** + * The public API of Relay core. Represents an encapsulated environment with its + * own in-memory cache. + */ + interface CEnvironment< + TEnvironment, + TFragment, + TGraphQLTaggedNode, + TNode, + TOperation, + TPayload, + > { + /** + * Read the results of a selector from in-memory records in the store. + */ + lookup(selector: CSelector): CSnapshot; + + /** + * Subscribe to changes to the results of a selector. The callback is called + * when data has been committed to the store that would cause the results of + * the snapshot's selector to change. + */ + subscribe( + snapshot: CSnapshot, + callback: (snapshot: CSnapshot) => void, + ): Disposable; + + /** + * Ensure that all the records necessary to fulfill the given selector are + * retained in-memory. The records will not be eligible for garbage collection + * until the returned reference is disposed. * - * - `root`: a selector intended for processing server results or retaining - * response data in the store. - * - `fragment`: a selector intended for use in reading or subscribing to - * the results of the the operation. + * Note: This is a no-op in the classic core. */ - interface COperationSelector { - fragment: CSelector; - node: TOperation; - root: CSelector; - variables: Variables; - } + retain(selector: CSelector): Disposable; /** - * The public API of Relay core. Represents an encapsulated environment with its - * own in-memory cache. + * Send a query to the server with request/response semantics: the query will + * either complete successfully (calling `onNext` and `onCompleted`) or fail + * (calling `onError`). + * + * Note: Most applications should use `streamQuery` in order to + * optionally receive updated information over time, should that feature be + * supported by the network/server. A good rule of thumb is to use this method + * if you would otherwise immediately dispose the `streamQuery()` + * after receving the first `onNext` result. */ - interface CEnvironment< + sendQuery(config: { + cacheConfig?: CacheConfig, + onCompleted?(): void, + onError?(error: Error): void, + onNext?(payload: TPayload): void, + operation: COperationSelector, + }): Disposable; + + /** + * Send a query to the server with request/subscription semantics: one or more + * responses may be returned (via `onNext`) over time followed by either + * the request completing (`onCompleted`) or an error (`onError`). + * + * Networks/servers that support subscriptions may choose to hold the + * subscription open indefinitely such that `onCompleted` is not called. + */ + streamQuery(config: { + cacheConfig?: CacheConfig, + onCompleted?(): void, + onError?(error: Error): void, + onNext?(payload: TPayload): void, + operation: COperationSelector, + }): Disposable; + + unstable_internal: CUnstableEnvironmentCore< TEnvironment, TFragment, TGraphQLTaggedNode, TNode, - TOperation, - TPayload, - > { - /** - * Read the results of a selector from in-memory records in the store. - */ - lookup(selector: CSelector): CSnapshot; - - /** - * Subscribe to changes to the results of a selector. The callback is called - * when data has been committed to the store that would cause the results of - * the snapshot's selector to change. - */ - subscribe( - snapshot: CSnapshot, - callback: (snapshot: CSnapshot) => void, - ): Disposable; - - /** - * Ensure that all the records necessary to fulfill the given selector are - * retained in-memory. The records will not be eligible for garbage collection - * until the returned reference is disposed. - * - * Note: This is a no-op in the classic core. - */ - retain(selector: CSelector): Disposable; - - /** - * Send a query to the server with request/response semantics: the query will - * either complete successfully (calling `onNext` and `onCompleted`) or fail - * (calling `onError`). - * - * Note: Most applications should use `streamQuery` in order to - * optionally receive updated information over time, should that feature be - * supported by the network/server. A good rule of thumb is to use this method - * if you would otherwise immediately dispose the `streamQuery()` - * after receving the first `onNext` result. - */ - sendQuery(config: { - cacheConfig?: CacheConfig, - onCompleted?(): void, - onError?(error: Error): void, - onNext?(payload: TPayload): void, - operation: COperationSelector, - }): Disposable; - - /** - * Send a query to the server with request/subscription semantics: one or more - * responses may be returned (via `onNext`) over time followed by either - * the request completing (`onCompleted`) or an error (`onError`). - * - * Networks/servers that support subscriptions may choose to hold the - * subscription open indefinitely such that `onCompleted` is not called. - */ - streamQuery(config: { - cacheConfig?: CacheConfig, - onCompleted?(): void, - onError?(error: Error): void, - onNext?(payload: TPayload): void, - operation: COperationSelector, - }): Disposable; - - unstable_internal: CUnstableEnvironmentCore< - TEnvironment, - TFragment, - TGraphQLTaggedNode, - TNode, - TOperation - >; - } - - interface CUnstableEnvironmentCore< - TEnvironment, - TFragment, - TGraphQLTaggedNode, - TNode, - TOperation, - > { - /** - * Create an instance of a FragmentSpecResolver. - * - * TODO: The FragmentSpecResolver *can* be implemented via the other methods - * defined here, so this could be moved out of core. It's convenient to have - * separate implementations until the experimental core is in OSS. - */ - createFragmentSpecResolver( - context: CRelayContext, - containerName: string, - fragments: CFragmentMap, - props: Props, - callback: () => void, - ): FragmentSpecResolver; - - /** - * Creates an instance of an OperationSelector given an operation definition - * (see `getOperation`) and the variables to apply. The input variables are - * filtered to exclude variables that do not matche defined arguments on the - * operation, and default values are populated for null values. - */ - createOperationSelector( - operation: TOperation, - variables: Variables, - ): COperationSelector; - - /** - * Given a graphql`...` tagged template, extract a fragment definition usable - * by this version of Relay core. Throws if the value is not a fragment. - */ - getFragment(node: TGraphQLTaggedNode): TFragment; - - /** - * Given a graphql`...` tagged template, extract an operation definition - * usable by this version of Relay core. Throws if the value is not an - * operation. - */ - getOperation(node: TGraphQLTaggedNode): TOperation; - - /** - * Determine if two selectors are equal (represent the same selection). Note - * that this function returns `false` when the two queries/fragments are - * different objects, even if they select the same fields. - */ - areEqualSelectors(a: CSelector, b: CSelector): boolean; - - /** - * Given the result `item` from a parent that fetched `fragment`, creates a - * selector that can be used to read the results of that fragment for that item. - * - * Example: - * - * Given two fragments as follows: - * - * ``` - * fragment Parent on User { - * id - * ...Child - * } - * fragment Child on User { - * name - * } - * ``` - * - * And given some object `parent` that is the results of `Parent` for id "4", - * the results of `Child` can be accessed by first getting a selector and then - * using that selector to `lookup()` the results against the environment: - * - * ``` - * const childSelector = getSelector(queryVariables, Child, parent); - * const childData = environment.lookup(childSelector).data; - * ``` - */ - getSelector( - operationVariables: Variables, - fragment: TFragment, - prop: any, - ): CSelector | void; - - /** - * Given the result `items` from a parent that fetched `fragment`, creates a - * selector that can be used to read the results of that fragment on those - * items. This is similar to `getSelector` but for "plural" fragments that - * expect an array of results and therefore return an array of selectors. - */ - getSelectorList( - operationVariables: Variables, - fragment: TFragment, - props: any[], - ): Array> | void; - - /** - * Given a mapping of keys -> results and a mapping of keys -> fragments, - * extracts the selectors for those fragments from the results. - * - * The canonical use-case for this function are Relay Containers, which - * use this function to convert (props, fragments) into selectors so that they - * can read the results to pass to the inner component. - */ - getSelectorsFromObject( - operationVariables: Variables, - fragments: CFragmentMap, - props: Props, - ): { [key: string]: CSelector | Array> | null | undefined }; - - /** - * Given a mapping of keys -> results and a mapping of keys -> fragments, - * extracts a mapping of keys -> id(s) of the results. - * - * Similar to `getSelectorsFromObject()`, this function can be useful in - * determining the "identity" of the props passed to a component. - */ - getDataIDsFromObject( - fragments: CFragmentMap, - props: Props, - ): { [key: string]: DataID | DataID[] | null | undefined }; - - /** - * Given a mapping of keys -> results and a mapping of keys -> fragments, - * extracts the merged variables that would be in scope for those - * fragments/results. - * - * This can be useful in determing what varaibles were used to fetch the data - * for a Relay container, for example. - */ - getVariablesFromObject( - operationVariables: Variables, - fragments: CFragmentMap, - props: Props, - ): Variables; - } - - /** - * The type of the `relay` property set on React context by the React/Relay - * integration layer (e.g. QueryRenderer, FragmentContainer, etc). - */ - interface CRelayContext { - environment: TEnvironment; - variables: Variables; - } - - // ~~~~~~~~~~~~~~~~~~~~~ - // RelayTypes - /** - * Version: Relay 1.3.0 - * File: - * https://github.com/facebook/relay/blob/fa9f48ea209ee2402d433b59a84d1cbc046574e2/packages/react-relay/classic/tools/RelayTypes.js - */ - // ~~~~~~~~~~~~~~~~~~~~~ - interface RerunParam { - param: string; - import: string; - max_runs: number; - } - interface FIELDS_CHANGE { - type: 'FIELDS_CHANGE'; - fieldIDs: { [fieldName: string]: DataID | DataID[]; }; - } - interface RANGE_ADD { - type: 'RANGE_ADD'; - parentName?: string; - parentID?: string; - connectionInfo?: Array<{ - key: string, - filters?: Variables, - rangeBehavior: string, - }>; - connectionName?: string; - edgeName: string; - rangeBehaviors?: RangeBehaviors; - } - interface NODE_DELETE { - type: 'NODE_DELETE'; - parentName?: string; - parentID?: string; - connectionName?: string; - deletedIDFieldName: string; - } - interface RANGE_DELETE { - type: 'RANGE_DELETE'; - parentName?: string; - parentID?: string; - connectionKeys?: Array<{ - key: string, - filters?: Variables, - }>; - connectionName?: string; - deletedIDFieldName: string | string[]; - pathToConnection: string[]; - } - interface REQUIRED_CHILDREN { - type: 'REQUIRED_CHILDREN'; - children: RelayConcreteNode[]; - } - type RelayMutationConfig = - FIELDS_CHANGE | - RANGE_ADD | - NODE_DELETE | - RANGE_DELETE | - REQUIRED_CHILDREN; - - interface RelayMutationTransactionCommitCallbacks { - onFailure?: RelayMutationTransactionCommitFailureCallback; - onSuccess?: RelayMutationTransactionCommitSuccessCallback; - } - type RelayMutationTransactionCommitFailureCallback = ( - transaction: RelayMutationTransaction, - preventAutoRollback: () => void, - ) => void; - type RelayMutationTransactionCommitSuccessCallback = (response: { - [key: string]: any, - }) => void; - interface NetworkLayer { - sendMutation(request: RelayMutationRequest): Promise | void; - sendQueries(requests: RelayQueryRequest[]): Promise | void; - supports(...options: string[]): boolean; - } - interface QueryResult { - error?: Error; - ref_params?: { [name: string]: any }; - response: QueryPayload; - } - interface ReadyState { - aborted: boolean; - done: boolean; - error: Error | null; - events: ReadyStateEvent[]; - ready: boolean; - stale: boolean; - } - type RelayContainerErrorEventType = - | 'CACHE_RESTORE_FAILED' - | 'NETWORK_QUERY_ERROR'; - type RelayContainerLoadingEventType = - | 'ABORT' - | 'CACHE_RESTORED_REQUIRED' - | 'CACHE_RESTORE_START' - | 'NETWORK_QUERY_RECEIVED_ALL' - | 'NETWORK_QUERY_RECEIVED_REQUIRED' - | 'NETWORK_QUERY_START' - | 'STORE_FOUND_ALL' - | 'STORE_FOUND_REQUIRED'; - type ReadyStateChangeCallback = (readyState: ReadyState) => void; - interface ReadyStateEvent { - type: RelayContainerLoadingEventType | RelayContainerErrorEventType; - error?: Error; - } - interface Abortable { - abort(): void; - } - - // ~~~~~~~~~~~~~~~~~~~~~ - // RelayInternalTypes - /** - * Version: Relay 1.3.0 - * File: - * https://github.com/facebook/relay/blob/master/packages/react-relay/classic/tools/RelayInternalTypes.js - */ - // ~~~~~~~~~~~~~~~~~~~~~ - interface QueryPayload { [key: string]: any; } - interface RelayQuerySet { [queryName: string]: any; } - type RangeBehaviorsFunction = (connectionArgs: { - [argName: string]: any, - }) => 'APPEND' | 'IGNORE' | 'PREPEND' | 'REFETCH' | 'REMOVE'; - interface RangeBehaviorsObject { - [key: string]: 'APPEND' | 'IGNORE' | 'PREPEND' | 'REFETCH' | 'REMOVE'; - } - type RangeBehaviors = RangeBehaviorsFunction | RangeBehaviorsObject; + TOperation + >; } - namespace Runtime { - // ~~~~~~~~~~~~~~~~~~~~~ - // Maybe Fix - // ~~~~~~~~~~~~~~~~~~~~~ - type RelayDebugger = any; - type OptimisticUpdate = any; - type OperationSelector = Common.COperationSelector; - type Selector = Common.CSelector; - type PayloadData = any; - type Snapshot = Common.CSnapshot; - type RelayResponsePayload = any; - type MutableRecordSource = RecordSource; - + interface CUnstableEnvironmentCore< + TEnvironment, + TFragment, + TGraphQLTaggedNode, + TNode, + TOperation, + > { /** - * A function that returns an Observable representing the response of executing - * a GraphQL operation. - */ - type ExecuteFunction = ( - operation: object, - variables: Common.Variables, - cacheConfig: Common.CacheConfig, - uploadables?: Common.UploadableMap, - ) => Promise; - interface RelayNetwork { - execute: ExecuteFunction; - } - - // ~~~~~~~~~~~~~~~~~~~~~ - // RelayDefaultHandlerProvider - // ~~~~~~~~~~~~~~~~~~~~~ - function HandlerProvider(name: string): typeof Common.Handler | void; - - // ~~~~~~~~~~~~~~~~~~~~~ - // RelayModernEnvironment - // ~~~~~~~~~~~~~~~~~~~~~ - interface EnvironmentConfig { - configName?: string; - handlerProvider?: typeof HandlerProvider; - network: Network; - store: Store; - } - class Environment { - constructor(config: EnvironmentConfig); - getStore(): Store; - getDebugger(): RelayDebugger; - applyUpdate(optimisticUpdate: OptimisticUpdate): Common.Disposable; - revertUpdate(update: OptimisticUpdate): void; - replaceUpdate(update: OptimisticUpdate, newUpdate: OptimisticUpdate): void; - applyMutation(config: { - operation: OperationSelector, - optimisticUpdater?: Common.SelectorStoreUpdater, - optimisticResponse?: object, - }): Common.Disposable; - check(readSelector: Selector): boolean; - commitPayload( - operationSelector: OperationSelector, - payload: PayloadData, - ): void; - commitUpdate(updater: Common.StoreUpdater): void; - lookup(readSelector: Selector): Snapshot; - subscribe( - snapshot: Snapshot, - callback: (snapshot: Snapshot) => void, - ): Common.Disposable; - retain(selector: Selector): Common.Disposable; - execute(config: { - operation: OperationSelector, - cacheConfig?: Common.CacheConfig, - updater?: Common.SelectorStoreUpdater, - }): RelayObservable; - executeMutation(config: { - operation: OperationSelector, - optimisticUpdater?: Common.SelectorStoreUpdater, - optimisticResponse?: object, - updater?: Common.SelectorStoreUpdater, - uploadables?: Common.UploadableMap, - }): RelayObservable; - } - - // ~~~~~~~~~~~~~~~~~~~~~ - // RelayInMemoryRecordSource - // ~~~~~~~~~~~~~~~~~~~~~ - interface Record { [key: string]: any; } - interface RecordMap { [dataID: string]: Record | null | undefined; } - - // ~~~~~~~~~~~~~~~~~~~~~ - // Network - // ~~~~~~~~~~~~~~~~~~~~~ - class Network { - /** - * Creates an implementation of the `Network` interface defined in - * `RelayNetworkTypes` given `fetch` and `subscribe` functions. - */ - static create(fetchFn: typeof Common.FetchFunction, subscribeFn?: Common.SubscribeFunction): RelayNetwork; - } - - // ~~~~~~~~~~~~~~~~~~~~~ - // Network - // ~~~~~~~~~~~~~~~~~~~~~ - class RecordSource { - constructor(records?: RecordMap); - clear(): void; - delete(dataID: Common.DataID): void; - get(dataID: Common.DataID): Record | void; - getRecordIDs(): Common.DataID[]; - getStatus(dataID: Common.DataID): 'EXISTENT' | 'NONEXISTENT' | 'UNKNOWN'; - has(dataID: Common.DataID): boolean; - load( - dataID: Common.DataID, - callback: (error: Error | null, record: Record | null) => void, - ): void; - remove(dataID: Common.DataID): void; - set(dataID: Common.DataID, record: Record): void; - size(): number; - toJSON(): RecordMap; - } - - // ~~~~~~~~~~~~~~~~~~~~~ - // ModernStore - // ~~~~~~~~~~~~~~~~~~~~~ - class Store { - constructor(source: RecordSource); - getSource(): MutableRecordSource; - check(selector: Selector): boolean; - retain(selector: Selector): Common.Disposable; - lookup(selector: Selector): Snapshot; - notify(): void; - publish(source: RecordSource): void; - subscribe( - snapshot: Snapshot, - callback: (snapshot: Snapshot) => void, - ): Common.Disposable; - } - - // ~~~~~~~~~~~~~~~~~~~~~ - // RelayRecordSourceInspector - // ~~~~~~~~~~~~~~~~~~~~~ - /** - * An internal class to provide a console-friendly string representation of a - * Record. - */ - class RecordSummary { - id: Common.DataID; - type: string | null | undefined; - static createFromRecord(id: Common.DataID, record: any): RecordSummary; - constructor(id: Common.DataID, type: string | null | undefined); - toString(): string; - } - /** - * Internal class for inspecting a single Record. - */ - class RecordInspector { - constructor(sourceInspector: RelayRecordSourceInspector, record: Record); - /** - * Get the cache id of the given record. For types that implement the `Node` - * interface (or that have an `id`) this will be `id`, for other types it will be - * a synthesized identifier based on the field path from the nearest ancestor - * record that does have an `id`. - */ - getDataID(): Common.DataID; - - /** - * Returns a list of the fields that have been fetched on the current record. - */ - getFields(): string[]; - - /** - * Returns the type of the record. - */ - getType(): string; - - /** - * Returns a copy of the internal representation of the record. - */ - inspect(): any; - - /** - * Returns the value of a scalar field. May throw if the given field is - * present but not actually scalar. - */ - getValue(name: string, args?: Common.Variables): any; - - /** - * Returns an inspector for the given scalar "linked" field (a field whose - * value is another Record instead of a scalar). May throw if the field is - * present but not a scalar linked record. - */ - getLinkedRecord(name: string, args?: Common.Variables): RecordInspector | void; - - /** - * Returns an array of inspectors for the given plural "linked" field (a field - * whose value is an array of Records instead of a scalar). May throw if the - * field is present but not a plural linked record. - */ - getLinkedRecords(name: string, args?: Common.Variables): RecordInspector[] | void; - } - - class RelayRecordSourceInspector { - constructor(source: RecordSource); - static getForEnvironment(environment: Environment): RelayRecordSourceInspector; - /** - * Returns an inspector for the record with the given id, or null/undefined if - * that record is deleted/unfetched. - */ - get(dataID: Common.DataID): RecordInspector | void; - /** - * Returns a list of ": " for each record in the store that has an - * `id`. - */ - getNodes(): RecordSummary[]; - /** - * Returns a list of ": " for all records in the store including - * those that do not have an `id`. - */ - getRecords(): RecordSummary[]; - - /** - * Returns an inspector for the synthesized "root" object, allowing access to - * e.g. the `viewer` object or the results of other fields on the "Query" - * type. - */ - getRoot(): RecordInspector; - } - - // ~~~~~~~~~~~~~~~~~~~~~ - // RelayObservable - // ~~~~~~~~~~~~~~~~~~~~~ - interface Subscription { - unsubscribe(): void; - readonly closed: boolean; - } - interface Observer { - start?(subscription: Subscription): any; - next?(nextThing: T): any; - error?(error: Error): any; - complete?(): any; - unsubscribe?(subscription: Subscription): any; - } - type Source = () => any; - interface Subscribable { - subscribe(observer: Observer): Subscription; - } - type ObservableFromValue = RelayObservable | Promise | T; - class RelayObservable implements Subscribable { - _source: Source; - - constructor(source: Source); - - /** - * When an unhandled error is detected, it is reported to the host environment - * (the ESObservable spec refers to this method as "HostReportErrors()"). - * - * The default implementation in development builds re-throws errors in a - * separate frame, and from production builds does nothing (swallowing - * uncaught errors). - * - * Called during application initialization, this method allows - * application-specific handling of uncaught errors. Allowing, for example, - * integration with error logging or developer tools. - */ - static onUnhandledError(callback: (error: Error) => any): void; - - /** - * Accepts various kinds of data sources, and always returns a RelayObservable - * useful for accepting the result of a user-provided FetchFunction. - */ - static from(obj: ObservableFromValue): RelayObservable; - - /** - * Creates a RelayObservable, given a function which expects a legacy - * Relay Observer as the last argument and which returns a Disposable. - * - * To support migration to Observable, the function may ignore the - * legacy Relay observer and directly return an Observable instead. - */ - static fromLegacy( - callback: (legacyObserver: Common.LegacyObserver) => Common.Disposable | RelayObservable, - ): RelayObservable; - - /** - * Returns a new Observable which returns the same values as this one, but - * modified so that the provided Observer is called to perform a side-effects - * for all events emitted by the source. - * - * Any errors that are thrown in the side-effect Observer are unhandled, and - * do not affect the source Observable or its Observer. - * - * This is useful for when debugging your Observables or performing other - * side-effects such as logging or performance monitoring. - */ - do(observer: Observer): RelayObservable; - - /** - * Returns a new Observable which returns the same values as this one, but - * modified so that the finally callback is performed after completion, - * whether normal or due to error or unsubscription. - * - * This is useful for cleanup such as resource finalization. - */ - finally(fn: () => any): RelayObservable; - - /** - * Returns a new Observable which is identical to this one, unless this - * Observable completes before yielding any values, in which case the new - * Observable will yield the values from the alternate Observable. - * - * If this Observable does yield values, the alternate is never subscribed to. - * - * This is useful for scenarios where values may come from multiple sources - * which should be tried in order, i.e. from a cache before a network. - */ - ifEmpty(alternate: RelayObservable): RelayObservable; - - /** - * Observable's primary API: returns an unsubscribable Subscription to the - * source of this Observable. - */ - subscribe(observer: Observer): Subscription; - - /** - * Supports subscription of a legacy Relay Observer, returning a Disposable. - */ - subscribeLegacy(legacyObserver: Common.LegacyObserver): Common.Disposable; - - /** - * Returns a new Observerable where each value has been transformed by - * the mapping function. - */ - map(fn: (thing: T) => U): RelayObservable; - - /** - * Returns a new Observable where each value is replaced with a new Observable - * by the mapping function, the results of which returned as a single - * concattenated Observable. - */ - concatMap(fn: (thing: T) => ObservableFromValue): RelayObservable; - - /** - * Returns a new Observable which first mirrors this Observable, then when it - * completes, waits for `pollInterval` milliseconds before re-subscribing to - * this Observable again, looping in this manner until unsubscribed. - * - * The returned Observable never completes. - */ - poll(pollInterval: number): RelayObservable; - - /** - * Returns a Promise which resolves when this Observable yields a first value - * or when it completes with no value. - */ - toPromise(): Promise; - } - - // ~~~~~~~~~~~~~~~~~~~~~ - // commitLocalUpdate - // ~~~~~~~~~~~~~~~~~~~~~ - // exposed through RelayModern, not Runtime directly - type commitLocalUpdate = ( - environment: Environment, - updater: Common.StoreUpdater, - ) => void; - - // ~~~~~~~~~~~~~~~~~~~~~ - // commitRelayModernMutation - // ~~~~~~~~~~~~~~~~~~~~~ - // exposed through RelayModern, not Runtime directly - interface MutationConfig { - configs?: Common.RelayMutationConfig[]; - mutation: Common.GraphQLTaggedNode; - variables: Common.Variables; - uploadables?: Common.UploadableMap; - onCompleted?(response: T, errors: Common.PayloadError[] | null | undefined): void; - onError?(error?: Error): void; - optimisticUpdater?: Common.SelectorStoreUpdater; - optimisticResponse?: object; - updater?: Common.SelectorStoreUpdater; - } - function commitRelayModernMutation( - environment: Environment, - config: MutationConfig, - ): Common.Disposable; - - // ~~~~~~~~~~~~~~~~~~~~~ - // applyRelayModernOptimisticMutation - // ~~~~~~~~~~~~~~~~~~~~~ - // exposed through RelayModern, not Runtime directly - interface OptimisticMutationConfig { - configs?: Common.RelayMutationConfig[]; - mutation: Common.GraphQLTaggedNode; - variables: Common.Variables; - optimisticUpdater?: Common.SelectorStoreUpdater; - optimisticResponse?: object; - } - - // ~~~~~~~~~~~~~~~~~~~~~ - // fetchRelayModernQuery - // ~~~~~~~~~~~~~~~~~~~~~ - // exposed through RelayModern, not Runtime directly - /** - * A helper function to fetch the results of a query. Note that results for - * fragment spreads are masked: fields must be explicitly listed in the query in - * order to be accessible in the result object. + * Create an instance of a FragmentSpecResolver. * - * NOTE: This module is primarily intended for integrating with classic APIs. - * Most product code should use a Renderer or Container. - * - * TODO(t16875667): The return type should be `Promise`, but - * that's not really helpful as `SelectorData` is essentially just `mixed`. We - * can probably leverage generated flow types here to return the real expected - * shape. + * TODO: The FragmentSpecResolver *can* be implemented via the other methods + * defined here, so this could be moved out of core. It's convenient to have + * separate implementations until the experimental core is in OSS. */ - function fetchRelayModernQuery( - environment: any, // FIXME - $FlowFixMe in facebook source code - taggedNode: Common.GraphQLTaggedNode, - variables: Common.Variables, - cacheConfig?: Common.CacheConfig, - ): Promise; // FIXME - $FlowFixMe in facebook source code + createFragmentSpecResolver( + context: CRelayContext, + containerName: string, + fragments: CFragmentMap, + props: Props, + callback: () => void, + ): FragmentSpecResolver; - // ~~~~~~~~~~~~~~~~~~~~~ - // requestRelaySubscription - // ~~~~~~~~~~~~~~~~~~~~~ - // exposed through RelayModern, not Runtime directly - interface GraphQLSubscriptionConfig { - configs?: Common.RelayMutationConfig[]; - subscription: Common.GraphQLTaggedNode; - variables: Common.Variables; - onCompleted?(): void; - onError?(error: Error): void; - onNext?(response: object | null | undefined): void; - updater?(store: Common.RecordSourceSelectorProxy): void; - } - function requestRelaySubscription( - environment: Environment, - config: GraphQLSubscriptionConfig, - ): Common.Disposable; + /** + * Creates an instance of an OperationSelector given an operation definition + * (see `getOperation`) and the variables to apply. The input variables are + * filtered to exclude variables that do not matche defined arguments on the + * operation, and default values are populated for null values. + */ + createOperationSelector( + operation: TOperation, + variables: Variables, + ): COperationSelector; + + /** + * Given a graphql`...` tagged template, extract a fragment definition usable + * by this version of Relay core. Throws if the value is not a fragment. + */ + getFragment(node: TGraphQLTaggedNode): TFragment; + + /** + * Given a graphql`...` tagged template, extract an operation definition + * usable by this version of Relay core. Throws if the value is not an + * operation. + */ + getOperation(node: TGraphQLTaggedNode): TOperation; + + /** + * Determine if two selectors are equal (represent the same selection). Note + * that this function returns `false` when the two queries/fragments are + * different objects, even if they select the same fields. + */ + areEqualSelectors(a: CSelector, b: CSelector): boolean; + + /** + * Given the result `item` from a parent that fetched `fragment`, creates a + * selector that can be used to read the results of that fragment for that item. + * + * Example: + * + * Given two fragments as follows: + * + * ``` + * fragment Parent on User { + * id + * ...Child + * } + * fragment Child on User { + * name + * } + * ``` + * + * And given some object `parent` that is the results of `Parent` for id "4", + * the results of `Child` can be accessed by first getting a selector and then + * using that selector to `lookup()` the results against the environment: + * + * ``` + * const childSelector = getSelector(queryVariables, Child, parent); + * const childData = environment.lookup(childSelector).data; + * ``` + */ + getSelector( + operationVariables: Variables, + fragment: TFragment, + prop: any, + ): CSelector | void; + + /** + * Given the result `items` from a parent that fetched `fragment`, creates a + * selector that can be used to read the results of that fragment on those + * items. This is similar to `getSelector` but for "plural" fragments that + * expect an array of results and therefore return an array of selectors. + */ + getSelectorList( + operationVariables: Variables, + fragment: TFragment, + props: any[], + ): Array> | void; + + /** + * Given a mapping of keys -> results and a mapping of keys -> fragments, + * extracts the selectors for those fragments from the results. + * + * The canonical use-case for this function are Relay Containers, which + * use this function to convert (props, fragments) into selectors so that they + * can read the results to pass to the inner component. + */ + getSelectorsFromObject( + operationVariables: Variables, + fragments: CFragmentMap, + props: Props, + ): { [key: string]: CSelector | Array> | null | undefined }; + + /** + * Given a mapping of keys -> results and a mapping of keys -> fragments, + * extracts a mapping of keys -> id(s) of the results. + * + * Similar to `getSelectorsFromObject()`, this function can be useful in + * determining the "identity" of the props passed to a component. + */ + getDataIDsFromObject( + fragments: CFragmentMap, + props: Props, + ): { [key: string]: DataID | DataID[] | null | undefined }; + + /** + * Given a mapping of keys -> results and a mapping of keys -> fragments, + * extracts the merged variables that would be in scope for those + * fragments/results. + * + * This can be useful in determing what varaibles were used to fetch the data + * for a Relay container, for example. + */ + getVariablesFromObject( + operationVariables: Variables, + fragments: CFragmentMap, + props: Props, + ): Variables; } + + /** + * The type of the `relay` property set on React context by the React/Relay + * integration layer (e.g. QueryRenderer, FragmentContainer, etc). + */ + interface CRelayContext { + environment: TEnvironment; + variables: Variables; + } + + // ~~~~~~~~~~~~~~~~~~~~~ + // RelayTypes + /** + * Version: Relay 1.3.0 + * File: + * https://github.com/facebook/relay/blob/fa9f48ea209ee2402d433b59a84d1cbc046574e2/packages/react-relay/classic/tools/RelayTypes.js + */ + // ~~~~~~~~~~~~~~~~~~~~~ + interface RerunParam { + param: string; + import: string; + max_runs: number; + } + interface FIELDS_CHANGE { + type: 'FIELDS_CHANGE'; + fieldIDs: { [fieldName: string]: DataID | DataID[]; }; + } + interface RANGE_ADD { + type: 'RANGE_ADD'; + parentName?: string; + parentID?: string; + connectionInfo?: Array<{ + key: string, + filters?: Variables, + rangeBehavior: string, + }>; + connectionName?: string; + edgeName: string; + rangeBehaviors?: RangeBehaviors; + } + interface NODE_DELETE { + type: 'NODE_DELETE'; + parentName?: string; + parentID?: string; + connectionName?: string; + deletedIDFieldName: string; + } + interface RANGE_DELETE { + type: 'RANGE_DELETE'; + parentName?: string; + parentID?: string; + connectionKeys?: Array<{ + key: string, + filters?: Variables, + }>; + connectionName?: string; + deletedIDFieldName: string | string[]; + pathToConnection: string[]; + } + interface REQUIRED_CHILDREN { + type: 'REQUIRED_CHILDREN'; + children: RelayConcreteNode[]; + } + type RelayMutationConfig = + FIELDS_CHANGE | + RANGE_ADD | + NODE_DELETE | + RANGE_DELETE | + REQUIRED_CHILDREN; + + interface RelayMutationTransactionCommitCallbacks { + onFailure?: RelayMutationTransactionCommitFailureCallback; + onSuccess?: RelayMutationTransactionCommitSuccessCallback; + } + type RelayMutationTransactionCommitFailureCallback = ( + transaction: RelayMutationTransaction, + preventAutoRollback: () => void, + ) => void; + type RelayMutationTransactionCommitSuccessCallback = (response: { + [key: string]: any, + }) => void; + interface NetworkLayer { + sendMutation(request: RelayMutationRequest): Promise | void; + sendQueries(requests: RelayQueryRequest[]): Promise | void; + supports(...options: string[]): boolean; + } + interface QueryResult { + error?: Error; + ref_params?: { [name: string]: any }; + response: QueryPayload; + } + interface ReadyState { + aborted: boolean; + done: boolean; + error: Error | null; + events: ReadyStateEvent[]; + ready: boolean; + stale: boolean; + } + type RelayContainerErrorEventType = + | 'CACHE_RESTORE_FAILED' + | 'NETWORK_QUERY_ERROR'; + type RelayContainerLoadingEventType = + | 'ABORT' + | 'CACHE_RESTORED_REQUIRED' + | 'CACHE_RESTORE_START' + | 'NETWORK_QUERY_RECEIVED_ALL' + | 'NETWORK_QUERY_RECEIVED_REQUIRED' + | 'NETWORK_QUERY_START' + | 'STORE_FOUND_ALL' + | 'STORE_FOUND_REQUIRED'; + type ReadyStateChangeCallback = (readyState: ReadyState) => void; + interface ReadyStateEvent { + type: RelayContainerLoadingEventType | RelayContainerErrorEventType; + error?: Error; + } + interface Abortable { + abort(): void; + } + + // ~~~~~~~~~~~~~~~~~~~~~ + // RelayInternalTypes + /** + * Version: Relay 1.3.0 + * File: + * https://github.com/facebook/relay/blob/master/packages/react-relay/classic/tools/RelayInternalTypes.js + */ + // ~~~~~~~~~~~~~~~~~~~~~ + interface QueryPayload { [key: string]: any; } + interface RelayQuerySet { [queryName: string]: any; } + type RangeBehaviorsFunction = (connectionArgs: { + [argName: string]: any, + }) => 'APPEND' | 'IGNORE' | 'PREPEND' | 'REFETCH' | 'REMOVE'; + interface RangeBehaviorsObject { + [key: string]: 'APPEND' | 'IGNORE' | 'PREPEND' | 'REFETCH' | 'REMOVE'; + } + type RangeBehaviors = RangeBehaviorsFunction | RangeBehaviorsObject; } -// tslint:disable no-single-declare-module strict-export-declare-modifiers -declare module 'relay-runtime' { - export import Environment = __Relay.Runtime.Environment; - export import Network = __Relay.Runtime.Network; - export import RecordSource = __Relay.Runtime.RecordSource; - export import Store = __Relay.Runtime.Store; - export import Observable = __Relay.Runtime.RelayObservable; - // note RecordSourceInspector is only available in dev environment - export import RecordSourceInspector = __Relay.Runtime.RelayRecordSourceInspector; - export import ConnectionHandler = __Relay.Common.Handler; - export import ViewerHandler = __Relay.Common.Handler; +export namespace RelayRuntimeTypes { + // ~~~~~~~~~~~~~~~~~~~~~ + // Maybe Fix + // ~~~~~~~~~~~~~~~~~~~~~ + type RelayDebugger = any; + type OptimisticUpdate = any; + type OperationSelector = RelayCommonTypes.COperationSelector; + type Selector = RelayCommonTypes.CSelector; + type PayloadData = any; + type Snapshot = RelayCommonTypes.CSnapshot; + type RelayResponsePayload = any; + type MutableRecordSource = RecordSource; + + /** + * A function that returns an Observable representing the response of executing + * a GraphQL operation. + */ + type ExecuteFunction = ( + operation: object, + variables: RelayCommonTypes.Variables, + cacheConfig: RelayCommonTypes.CacheConfig, + uploadables?: RelayCommonTypes.UploadableMap, + ) => Promise; + interface RelayNetwork { + execute: ExecuteFunction; + } + + // ~~~~~~~~~~~~~~~~~~~~~ + // RelayDefaultHandlerProvider + // ~~~~~~~~~~~~~~~~~~~~~ + function HandlerProvider(name: string): typeof RelayCommonTypes.Handler | void; + + // ~~~~~~~~~~~~~~~~~~~~~ + // RelayModernEnvironment + // ~~~~~~~~~~~~~~~~~~~~~ + interface EnvironmentConfig { + configName?: string; + handlerProvider?: typeof HandlerProvider; + network: Network; + store: Store; + } + class Environment { + constructor(config: EnvironmentConfig); + getStore(): Store; + getDebugger(): RelayDebugger; + applyUpdate(optimisticUpdate: OptimisticUpdate): RelayCommonTypes.Disposable; + revertUpdate(update: OptimisticUpdate): void; + replaceUpdate(update: OptimisticUpdate, newUpdate: OptimisticUpdate): void; + applyMutation(config: { + operation: OperationSelector, + optimisticUpdater?: RelayCommonTypes.SelectorStoreUpdater, + optimisticResponse?: object, + }): RelayCommonTypes.Disposable; + check(readSelector: Selector): boolean; + commitPayload( + operationSelector: OperationSelector, + payload: PayloadData, + ): void; + commitUpdate(updater: RelayCommonTypes.StoreUpdater): void; + lookup(readSelector: Selector): Snapshot; + subscribe( + snapshot: Snapshot, + callback: (snapshot: Snapshot) => void, + ): RelayCommonTypes.Disposable; + retain(selector: Selector): RelayCommonTypes.Disposable; + execute(config: { + operation: OperationSelector, + cacheConfig?: RelayCommonTypes.CacheConfig, + updater?: RelayCommonTypes.SelectorStoreUpdater, + }): RelayObservable; + executeMutation(config: { + operation: OperationSelector, + optimisticUpdater?: RelayCommonTypes.SelectorStoreUpdater, + optimisticResponse?: object, + updater?: RelayCommonTypes.SelectorStoreUpdater, + uploadables?: RelayCommonTypes.UploadableMap, + }): RelayObservable; + } + + // ~~~~~~~~~~~~~~~~~~~~~ + // RelayInMemoryRecordSource + // ~~~~~~~~~~~~~~~~~~~~~ + interface Record { [key: string]: any; } + interface RecordMap { [dataID: string]: Record | null | undefined; } + + // ~~~~~~~~~~~~~~~~~~~~~ + // Network + // ~~~~~~~~~~~~~~~~~~~~~ + class Network { + /** + * Creates an implementation of the `Network` interface defined in + * `RelayNetworkTypes` given `fetch` and `subscribe` functions. + */ + static create(fetchFn: typeof RelayCommonTypes.FetchFunction, subscribeFn?: RelayCommonTypes.SubscribeFunction): RelayNetwork; + } + + // ~~~~~~~~~~~~~~~~~~~~~ + // Network + // ~~~~~~~~~~~~~~~~~~~~~ + class RecordSource { + constructor(records?: RecordMap); + clear(): void; + delete(dataID: RelayCommonTypes.DataID): void; + get(dataID: RelayCommonTypes.DataID): Record | void; + getRecordIDs(): RelayCommonTypes.DataID[]; + getStatus(dataID: RelayCommonTypes.DataID): 'EXISTENT' | 'NONEXISTENT' | 'UNKNOWN'; + has(dataID: RelayCommonTypes.DataID): boolean; + load( + dataID: RelayCommonTypes.DataID, + callback: (error: Error | null, record: Record | null) => void, + ): void; + remove(dataID: RelayCommonTypes.DataID): void; + set(dataID: RelayCommonTypes.DataID, record: Record): void; + size(): number; + toJSON(): RecordMap; + } + + // ~~~~~~~~~~~~~~~~~~~~~ + // ModernStore + // ~~~~~~~~~~~~~~~~~~~~~ + class Store { + constructor(source: RecordSource); + getSource(): MutableRecordSource; + check(selector: Selector): boolean; + retain(selector: Selector): RelayCommonTypes.Disposable; + lookup(selector: Selector): Snapshot; + notify(): void; + publish(source: RecordSource): void; + subscribe( + snapshot: Snapshot, + callback: (snapshot: Snapshot) => void, + ): RelayCommonTypes.Disposable; + } + + // ~~~~~~~~~~~~~~~~~~~~~ + // RelayRecordSourceInspector + // ~~~~~~~~~~~~~~~~~~~~~ + /** + * An internal class to provide a console-friendly string representation of a + * Record. + */ + class RecordSummary { + id: RelayCommonTypes.DataID; + type: string | null | undefined; + static createFromRecord(id: RelayCommonTypes.DataID, record: any): RecordSummary; + constructor(id: RelayCommonTypes.DataID, type: string | null | undefined); + toString(): string; + } + /** + * Internal class for inspecting a single Record. + */ + class RecordInspector { + constructor(sourceInspector: RelayRecordSourceInspector, record: Record); + /** + * Get the cache id of the given record. For types that implement the `Node` + * interface (or that have an `id`) this will be `id`, for other types it will be + * a synthesized identifier based on the field path from the nearest ancestor + * record that does have an `id`. + */ + getDataID(): RelayCommonTypes.DataID; + + /** + * Returns a list of the fields that have been fetched on the current record. + */ + getFields(): string[]; + + /** + * Returns the type of the record. + */ + getType(): string; + + /** + * Returns a copy of the internal representation of the record. + */ + inspect(): any; + + /** + * Returns the value of a scalar field. May throw if the given field is + * present but not actually scalar. + */ + getValue(name: string, args?: RelayCommonTypes.Variables): any; + + /** + * Returns an inspector for the given scalar "linked" field (a field whose + * value is another Record instead of a scalar). May throw if the field is + * present but not a scalar linked record. + */ + getLinkedRecord(name: string, args?: RelayCommonTypes.Variables): RecordInspector | void; + + /** + * Returns an array of inspectors for the given plural "linked" field (a field + * whose value is an array of Records instead of a scalar). May throw if the + * field is present but not a plural linked record. + */ + getLinkedRecords(name: string, args?: RelayCommonTypes.Variables): RecordInspector[] | void; + } + + class RelayRecordSourceInspector { + constructor(source: RecordSource); + static getForEnvironment(environment: Environment): RelayRecordSourceInspector; + /** + * Returns an inspector for the record with the given id, or null/undefined if + * that record is deleted/unfetched. + */ + get(dataID: RelayCommonTypes.DataID): RecordInspector | void; + /** + * Returns a list of ": " for each record in the store that has an + * `id`. + */ + getNodes(): RecordSummary[]; + /** + * Returns a list of ": " for all records in the store including + * those that do not have an `id`. + */ + getRecords(): RecordSummary[]; + + /** + * Returns an inspector for the synthesized "root" object, allowing access to + * e.g. the `viewer` object or the results of other fields on the "Query" + * type. + */ + getRoot(): RecordInspector; + } + + // ~~~~~~~~~~~~~~~~~~~~~ + // RelayObservable + // ~~~~~~~~~~~~~~~~~~~~~ + interface Subscription { + unsubscribe(): void; + readonly closed: boolean; + } + interface Observer { + start?(subscription: Subscription): any; + next?(nextThing: T): any; + error?(error: Error): any; + complete?(): any; + unsubscribe?(subscription: Subscription): any; + } + type Source = () => any; + interface Subscribable { + subscribe(observer: Observer): Subscription; + } + type ObservableFromValue = RelayObservable | Promise | T; + class RelayObservable implements Subscribable { + _source: Source; + + constructor(source: Source); + + /** + * When an unhandled error is detected, it is reported to the host environment + * (the ESObservable spec refers to this method as "HostReportErrors()"). + * + * The default implementation in development builds re-throws errors in a + * separate frame, and from production builds does nothing (swallowing + * uncaught errors). + * + * Called during application initialization, this method allows + * application-specific handling of uncaught errors. Allowing, for example, + * integration with error logging or developer tools. + */ + static onUnhandledError(callback: (error: Error) => any): void; + + /** + * Accepts various kinds of data sources, and always returns a RelayObservable + * useful for accepting the result of a user-provided FetchFunction. + */ + static from(obj: ObservableFromValue): RelayObservable; + + /** + * Creates a RelayObservable, given a function which expects a legacy + * Relay Observer as the last argument and which returns a Disposable. + * + * To support migration to Observable, the function may ignore the + * legacy Relay observer and directly return an Observable instead. + */ + static fromLegacy( + callback: (legacyObserver: RelayCommonTypes.LegacyObserver) => RelayCommonTypes.Disposable | RelayObservable, + ): RelayObservable; + + /** + * Returns a new Observable which returns the same values as this one, but + * modified so that the provided Observer is called to perform a side-effects + * for all events emitted by the source. + * + * Any errors that are thrown in the side-effect Observer are unhandled, and + * do not affect the source Observable or its Observer. + * + * This is useful for when debugging your Observables or performing other + * side-effects such as logging or performance monitoring. + */ + do(observer: Observer): RelayObservable; + + /** + * Returns a new Observable which returns the same values as this one, but + * modified so that the finally callback is performed after completion, + * whether normal or due to error or unsubscription. + * + * This is useful for cleanup such as resource finalization. + */ + finally(fn: () => any): RelayObservable; + + /** + * Returns a new Observable which is identical to this one, unless this + * Observable completes before yielding any values, in which case the new + * Observable will yield the values from the alternate Observable. + * + * If this Observable does yield values, the alternate is never subscribed to. + * + * This is useful for scenarios where values may come from multiple sources + * which should be tried in order, i.e. from a cache before a network. + */ + ifEmpty(alternate: RelayObservable): RelayObservable; + + /** + * Observable's primary API: returns an unsubscribable Subscription to the + * source of this Observable. + */ + subscribe(observer: Observer): Subscription; + + /** + * Supports subscription of a legacy Relay Observer, returning a Disposable. + */ + subscribeLegacy(legacyObserver: RelayCommonTypes.LegacyObserver): RelayCommonTypes.Disposable; + + /** + * Returns a new Observerable where each value has been transformed by + * the mapping function. + */ + map(fn: (thing: T) => U): RelayObservable; + + /** + * Returns a new Observable where each value is replaced with a new Observable + * by the mapping function, the results of which returned as a single + * concattenated Observable. + */ + concatMap(fn: (thing: T) => ObservableFromValue): RelayObservable; + + /** + * Returns a new Observable which first mirrors this Observable, then when it + * completes, waits for `pollInterval` milliseconds before re-subscribing to + * this Observable again, looping in this manner until unsubscribed. + * + * The returned Observable never completes. + */ + poll(pollInterval: number): RelayObservable; + + /** + * Returns a Promise which resolves when this Observable yields a first value + * or when it completes with no value. + */ + toPromise(): Promise; + } + + // ~~~~~~~~~~~~~~~~~~~~~ + // commitLocalUpdate + // ~~~~~~~~~~~~~~~~~~~~~ + // exposed through RelayModern, not Runtime directly + type commitLocalUpdate = ( + environment: Environment, + updater: RelayCommonTypes.StoreUpdater, + ) => void; + + // ~~~~~~~~~~~~~~~~~~~~~ + // commitRelayModernMutation + // ~~~~~~~~~~~~~~~~~~~~~ + // exposed through RelayModern, not Runtime directly + interface MutationConfig { + configs?: RelayCommonTypes.RelayMutationConfig[]; + mutation: RelayCommonTypes.GraphQLTaggedNode; + variables: RelayCommonTypes.Variables; + uploadables?: RelayCommonTypes.UploadableMap; + onCompleted?(response: T, errors: RelayCommonTypes.PayloadError[] | null | undefined): void; + onError?(error?: Error): void; + optimisticUpdater?: RelayCommonTypes.SelectorStoreUpdater; + optimisticResponse?: object; + updater?: RelayCommonTypes.SelectorStoreUpdater; + } + function commitRelayModernMutation( + environment: Environment, + config: MutationConfig, + ): RelayCommonTypes.Disposable; + + // ~~~~~~~~~~~~~~~~~~~~~ + // applyRelayModernOptimisticMutation + // ~~~~~~~~~~~~~~~~~~~~~ + // exposed through RelayModern, not Runtime directly + interface OptimisticMutationConfig { + configs?: RelayCommonTypes.RelayMutationConfig[]; + mutation: RelayCommonTypes.GraphQLTaggedNode; + variables: RelayCommonTypes.Variables; + optimisticUpdater?: RelayCommonTypes.SelectorStoreUpdater; + optimisticResponse?: object; + } + + // ~~~~~~~~~~~~~~~~~~~~~ + // fetchRelayModernQuery + // ~~~~~~~~~~~~~~~~~~~~~ + // exposed through RelayModern, not Runtime directly + /** + * A helper function to fetch the results of a query. Note that results for + * fragment spreads are masked: fields must be explicitly listed in the query in + * order to be accessible in the result object. + * + * NOTE: This module is primarily intended for integrating with classic APIs. + * Most product code should use a Renderer or Container. + * + * TODO(t16875667): The return type should be `Promise`, but + * that's not really helpful as `SelectorData` is essentially just `mixed`. We + * can probably leverage generated flow types here to return the real expected + * shape. + */ + function fetchRelayModernQuery( + environment: any, // FIXME - $FlowFixMe in facebook source code + taggedNode: RelayCommonTypes.GraphQLTaggedNode, + variables: RelayCommonTypes.Variables, + cacheConfig?: RelayCommonTypes.CacheConfig, + ): Promise; // FIXME - $FlowFixMe in facebook source code + + // ~~~~~~~~~~~~~~~~~~~~~ + // requestRelaySubscription + // ~~~~~~~~~~~~~~~~~~~~~ + // exposed through RelayModern, not Runtime directly + interface GraphQLSubscriptionConfig { + configs?: RelayCommonTypes.RelayMutationConfig[]; + subscription: RelayCommonTypes.GraphQLTaggedNode; + variables: RelayCommonTypes.Variables; + onCompleted?(): void; + onError?(error: Error): void; + onNext?(response: object | null | undefined): void; + updater?(store: RelayCommonTypes.RecordSourceSelectorProxy): void; + } + function requestRelaySubscription( + environment: Environment, + config: GraphQLSubscriptionConfig, + ): RelayCommonTypes.Disposable; } + +// ~~~~~~~~~~~~~~~~~~~~~ +// Package Exports +// ~~~~~~~~~~~~~~~~~~~~~ +export import Environment = RelayRuntimeTypes.Environment; +export import Network = RelayRuntimeTypes.Network; +export import RecordSource = RelayRuntimeTypes.RecordSource; +export import Store = RelayRuntimeTypes.Store; +export import Observable = RelayRuntimeTypes.RelayObservable; +// note RecordSourceInspector is only available in dev environment +export import RecordSourceInspector = RelayRuntimeTypes.RelayRecordSourceInspector; +export import ConnectionHandler = RelayCommonTypes.Handler; +export import ViewerHandler = RelayCommonTypes.Handler; From 9d1970bce092c5859a39b9a698938255c732eec9 Mon Sep 17 00:00:00 2001 From: voxmatt Date: Sun, 1 Oct 2017 19:47:49 -0700 Subject: [PATCH 044/506] trying to clean things up and fix some errors --- types/react-relay/v1/index.d.ts | 475 +----------------- .../v1/lib/react-relay-classic.d.ts | 218 ++++++++ .../v1/lib/react-relay-compat.d.ts | 57 +++ .../v1/lib/react-relay-modern.d.ts | 147 ++++++ types/react-relay/v1/react-relay-tests.tsx | 18 +- types/react-relay/v1/tsconfig.json | 4 +- 6 files changed, 450 insertions(+), 469 deletions(-) diff --git a/types/react-relay/v1/index.d.ts b/types/react-relay/v1/index.d.ts index 14c7bb756a..e214a9a441 100644 --- a/types/react-relay/v1/index.d.ts +++ b/types/react-relay/v1/index.d.ts @@ -4,471 +4,20 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.4 -import * as React from 'react'; -import { RelayCommonTypes, RelayRuntimeTypes } from 'relay-runtime'; - -//////////////////////////// -// RELAY MODERN TYPES -/////////////////////////// -export namespace RelayModernTypes { - // ~~~~~~~~~~~~~~~~~~~~~ - // Maybe Fix - // ~~~~~~~~~~~~~~~~~~~~~ - type ConcreteFragment = any; - type ConcreteBatch = any; - type ConcreteFragmentDefinition = object; - type ConcreteOperationDefinition = object; - type ReactBaseComponent = React.ComponentClass | React.StatelessComponent; - - // ~~~~~~~~~~~~~~~~~~~~~ - // RelayProp - // ~~~~~~~~~~~~~~~~~~~~~ - // note: refetch and pagination containers augment this - interface RelayProp { - environment: RelayRuntimeTypes.Environment; - } - - // ~~~~~~~~~~~~~~~~~~~~~ - // RelayQL - // ~~~~~~~~~~~~~~~~~~~~~ - function RelayQL( - strings: string[], - ...substitutions: any[] - ): RelayCommonTypes.RelayConcreteNode; - - // ~~~~~~~~~~~~~~~~~~~~~ - // RelayModernGraphQLTag - // ~~~~~~~~~~~~~~~~~~~~~ - interface GeneratedNodeMap { [key: string]: GraphQLTaggedNode; } - type GraphQLTaggedNode = - (() => ConcreteFragment | ConcreteBatch) - | { - modern(): ConcreteFragment | ConcreteBatch, - classic(relayQL: typeof RelayQL): - | ConcreteFragmentDefinition - | ConcreteOperationDefinition, - }; - /** - * Runtime function to correspond to the `graphql` tagged template function. - * All calls to this function should be transformed by the plugin. - */ - interface GraphqlInterface { - (strings: string[] | TemplateStringsArray): GraphQLTaggedNode; - experimental(strings: string[] | TemplateStringsArray): GraphQLTaggedNode; - } - const graphql: GraphqlInterface; - - // ~~~~~~~~~~~~~~~~~~~~~ - // ReactRelayQueryRenderer - // ~~~~~~~~~~~~~~~~~~~~~ - interface QueryRendererProps { - cacheConfig?: RelayCommonTypes.CacheConfig; - environment: RelayRuntimeTypes.Environment; - query: GraphQLTaggedNode; - render(readyState: ReadyState): React.ReactElement | undefined | null; - variables: RelayCommonTypes.Variables; - rerunParamExperimental?: RelayCommonTypes.RerunParam; - } - interface ReadyState { - error: Error | undefined | null; - props: { [propName: string]: any } | undefined | null; - retry?(): void; - } - interface QueryRendererState { - readyState: ReadyState; - } - class ReactRelayQueryRenderer extends React.Component { } - - // ~~~~~~~~~~~~~~~~~~~~~ - // createFragmentContainer - // ~~~~~~~~~~~~~~~~~~~~~ - function createFragmentContainer( - Component: ReactBaseComponent, - fragmentSpec: GraphQLTaggedNode | GeneratedNodeMap, - ): ReactBaseComponent; - - // ~~~~~~~~~~~~~~~~~~~~~ - // createPaginationContainer - // ~~~~~~~~~~~~~~~~~~~~~ - interface PageInfo { - endCursor: string | undefined | null; - hasNextPage: boolean; - hasPreviousPage: boolean; - startCursor: string | undefined | null; - } - interface ConnectionData { - edges?: any[]; - pageInfo?: PageInfo; - } - type RelayPaginationProp = RelayProp & { - hasMore(): boolean, - isLoading(): boolean, - loadMore( - pageSize: number, - callback: (error?: Error) => void, - options?: RefetchOptions, - ): RelayCommonTypes.Disposable | undefined | null, - refetchConnection( - totalCount: number, - callback: (error?: Error) => void, - refetchVariables?: RelayCommonTypes.Variables, - ): RelayCommonTypes.Disposable | undefined | null, - }; - function FragmentVariablesGetter( - prevVars: RelayCommonTypes.Variables, - totalCount: number, - ): RelayCommonTypes.Variables; - interface ConnectionConfig { - direction?: 'backward' | 'forward'; - getConnectionFromProps?(props: object): ConnectionData | undefined | null; - getFragmentVariables?: typeof FragmentVariablesGetter; - getVariables( - props: { [propName: string]: any }, - paginationInfo: { count: number, cursor?: string }, - fragmentVariables: RelayCommonTypes.Variables, - ): RelayCommonTypes.Variables; - query: GraphQLTaggedNode; - } - function createPaginationContainer( - Component: ReactBaseComponent, - fragmentSpec: GraphQLTaggedNode | GeneratedNodeMap, - connectionConfig: ConnectionConfig, - ): ReactBaseComponent; - - // ~~~~~~~~~~~~~~~~~~~~~ - // createFragmentContainer - // ~~~~~~~~~~~~~~~~~~~~~ - interface RefetchOptions { - force?: boolean; - rerunParamExperimental?: RelayCommonTypes.RerunParam; - } - type RelayRefetchProp = RelayProp & { - refetch( - refetchVariables: RelayCommonTypes.Variables | ((fragmentVariables: RelayCommonTypes.Variables) => RelayCommonTypes.Variables), - renderVariables?: RelayCommonTypes.Variables, - callback?: (error?: Error) => void, - options?: RefetchOptions, - ): RelayCommonTypes.Disposable, - }; - function createRefetchContainer( - Component: ReactBaseComponent, - fragmentSpec: GraphQLTaggedNode | GeneratedNodeMap, - taggedNode: GraphQLTaggedNode, - ): ReactBaseComponent; -} - -//////////////////////////// -// RELAY CLASSIC TYPES -/////////////////////////// -// note: the namespace here is really for use inside of -// relay-compat; the module declaration below -// uses the old, pre-existing types -export namespace RelayClassicTypes { - // ~~~~~~~~~~~~~~~~~~~~~ - // Maybe Fix - // ~~~~~~~~~~~~~~~~~~~~~ - type StoreReaderData = any; - type StoreReaderOptions = any; - type RelayStoreData = any; - interface RelayQuery { Fragment: any; Node: any; Root: any; } - - // ~~~~~~~~~~~~~~~~~~~~~ - // Environment - // ~~~~~~~~~~~~~~~~~~~~~ - interface FragmentResolver { - dispose(): void; - resolve( - fragment: RelayQuery["Fragment"], - dataIDs: RelayCommonTypes.DataID | RelayCommonTypes.DataID[], - ): StoreReaderData | StoreReaderData[] | undefined | null; - } - interface RelayEnvironmentInterface { - forceFetch( - querySet: RelayCommonTypes.RelayQuerySet, - onReadyStateChange: RelayCommonTypes.ReadyStateChangeCallback, - ): RelayCommonTypes.Abortable; - getFragmentResolver( - fragment: RelayQuery["Fragment"], - onNext: () => void, - ): FragmentResolver; - getStoreData(): RelayStoreData; - primeCache( - querySet: RelayCommonTypes.RelayQuerySet, - onReadyStateChange: RelayCommonTypes.ReadyStateChangeCallback, - ): RelayCommonTypes.Abortable; - read( - node: RelayQuery["Node"], - dataID: RelayCommonTypes.DataID, - options?: StoreReaderOptions, - ): StoreReaderData | void; - readQuery( - root: RelayQuery["Root"], - options?: StoreReaderOptions, - ): StoreReaderData[] | void; - } -} - -//////////////////////////// -// RELAY COMPAT TYPES -/////////////////////////// -export namespace RelayCompatTypes { - // ~~~~~~~~~~~~~~~~~~~~~ - // Maybe Fix - // ~~~~~~~~~~~~~~~~~~~~~ - type ConcreteFragment = any; - type ConcreteBatch = any; - type ConcreteFragmentDefinition = object; - type ConcreteOperationDefinition = object; - - // ~~~~~~~~~~~~~~~~~~~~~ - // Util - // ~~~~~~~~~~~~~~~~~~~~~ - function getFragment(q: string, v?: RelayCommonTypes.Variables): string; - interface ComponentWithFragment extends React.ComponentClass { - getFragment: typeof getFragment; - } - interface StatelessWithFragment extends React.StatelessComponent { - getFragment: typeof getFragment; - } - type ReactFragmentComponent = ComponentWithFragment | StatelessWithFragment; - type ReactBaseComponent = React.ComponentClass | React.StatelessComponent; - type RelayClassicEnvironment = RelayClassicTypes.RelayEnvironmentInterface; - - // ~~~~~~~~~~~~~~~~~~~~~ - // RelayCompatTypes - // ~~~~~~~~~~~~~~~~~~~~~ - type CompatEnvironment = RelayRuntimeTypes.Environment | RelayClassicEnvironment; - - // ~~~~~~~~~~~~~~~~~~~~~ - // RelayCompatMutations - // ~~~~~~~~~~~~~~~~~~~~~ - function commitUpdate( - environment: CompatEnvironment, - config: RelayRuntimeTypes.MutationConfig, - ): RelayCommonTypes.Disposable; - function applyUpdate( - environment: CompatEnvironment, - config: RelayRuntimeTypes.OptimisticMutationConfig, - ): RelayCommonTypes.Disposable; - - // ~~~~~~~~~~~~~~~~~~~~~ - // RelayCompatContainer - // ~~~~~~~~~~~~~~~~~~~~~ - interface GeneratedNodeMap { [key: string]: RelayModernTypes.GraphQLTaggedNode; } - function createContainer( - Component: ReactBaseComponent, - fragmentSpec: RelayModernTypes.GraphQLTaggedNode | GeneratedNodeMap, - ): ReactFragmentComponent; - - // ~~~~~~~~~~~~~~~~~~~~~ - // injectDefaultVariablesProvider - // ~~~~~~~~~~~~~~~~~~~~~ - type VariablesProvider = () => RelayCommonTypes.Variables; - function injectDefaultVariablesProvider(variablesProvider: VariablesProvider): void; -} - - -//////////////////////////// -// MODULES -/////////////////////////// -export import QueryRenderer = RelayModernTypes.ReactRelayQueryRenderer; -export import createFragmentContainer = RelayModernTypes.createFragmentContainer; -export import createPaginationContainer = RelayModernTypes.createPaginationContainer; -export import createRefetchContainer = RelayModernTypes.createRefetchContainer; -export import graphql = RelayModernTypes.graphql; +import { RelayRuntimeTypes } from 'relay-runtime'; +import * as ReactRelayModernTypes from './lib/react-relay-modern'; +// ~~~~~~~~~~~~~~~~~~~~~ +// React-Relay Modern +// ~~~~~~~~~~~~~~~~~~~~~ +export import QueryRenderer = ReactRelayModernTypes.ReactRelayQueryRenderer; +export import createFragmentContainer = ReactRelayModernTypes.createFragmentContainer; +export import createPaginationContainer = ReactRelayModernTypes.createPaginationContainer; +export import createRefetchContainer = ReactRelayModernTypes.createRefetchContainer; +export import graphql = ReactRelayModernTypes.graphql; export import commitLocalUpdate = RelayRuntimeTypes.commitLocalUpdate; export import commitMutation = RelayRuntimeTypes.commitRelayModernMutation; export import fetchQuery = RelayRuntimeTypes.fetchRelayModernQuery; export import requestSubscription = RelayRuntimeTypes.requestRelaySubscription; - -// exported for convenience — not exports in the original module -export import RelayProp = RelayModernTypes.RelayProp; -export import RelayPaginationProp = RelayModernTypes.RelayPaginationProp; -export import RelayRefetchProp = RelayModernTypes.RelayRefetchProp; - -declare module 'react-relay/compat' { - export import applyOptimisticMutation = RelayCompatTypes.applyUpdate; - export import commitMutation = RelayCompatTypes.commitUpdate; - export import createFragmentContainer = RelayCompatTypes.createContainer; - export import createPaginationContainer = RelayCompatTypes.createContainer; - export import createRefetchContainer = RelayCompatTypes.createContainer; - export import injectDefaultVariablesProvider = RelayCompatTypes.injectDefaultVariablesProvider; - export import QueryRenderer = RelayModernTypes.ReactRelayQueryRenderer; - export import graphql = RelayModernTypes.graphql; - export import fetchQuery = RelayRuntimeTypes.fetchRelayModernQuery; -} -// tslint:enable strict-export-declare-modifiers - -declare module "react-relay/classic" { - import * as React from "react"; - - type ClientMutationID = string; - - /** Fragments are a hash of functions */ - interface Fragments { - [query: string]: ((variables?: RelayVariables) => string); - } - - interface CreateContainerOpts { - initialVariables?: any; - fragments: Fragments; - prepareVariables?(prevVariables: RelayVariables): RelayVariables; - } - - interface RelayVariables { - [name: string]: any; - } - - /** add static getFragment method to the component constructor */ - interface RelayContainerClass extends React.ComponentClass { - getFragment: ((q: string, v?: RelayVariables) => string); - } - - interface RelayQueryRequestResolve { - response: any; - } - - type RelayMutationStatus = - 'UNCOMMITTED' | // Transaction hasn't yet been sent to the server. Transaction can be committed or rolled back. - 'COMMIT_QUEUED' | // Transaction was committed but another transaction with the same collision key is pending, so the transaction has been queued to send to the server. - 'COLLISION_COMMIT_FAILED' | // Transaction was queued for commit but another transaction with the same collision key failed. All transactions in the collision queue, - // including this one, have been failed. Transaction can be recommitted or rolled back. - 'COMMITTING' | // Transaction is waiting for the server to respond. - 'COMMIT_FAILED'; - - class RelayMutationTransaction { - applyOptimistic(): RelayMutationTransaction; - commit(): RelayMutationTransaction | null; - recommit(): void; - rollback(): void; - getError(): Error; - getStatus(): RelayMutationStatus; - getHash(): string; - getID(): ClientMutationID; - } - - interface RelayMutationRequest { - getQueryString(): string; - getVariables(): RelayVariables; - resolve(result: RelayQueryRequestResolve): any; - reject(errors: any): any; - } - - interface RelayQueryRequest { - resolve(result: RelayQueryRequestResolve): any; - reject(errors: any): any; - getQueryString(): string; - getVariables(): RelayVariables; - getID(): string; - getDebugName(): string; - } - - interface RelayNetworkLayer { - supports(...options: string[]): boolean; - } - - class DefaultNetworkLayer implements RelayNetworkLayer { - constructor(host: string, options?: any); - supports(...options: string[]): boolean; - } - - function createContainer(component: React.ComponentClass | React.StatelessComponent, params?: CreateContainerOpts): RelayContainerClass; - function injectNetworkLayer(networkLayer: RelayNetworkLayer): any; - function isContainer(component: React.ComponentClass): boolean; - function QL(...args: any[]): string; - - class Route { - constructor(params?: RelayVariables) - } - - /** - * Relay Mutation class, where T are the props it takes and S is the returned payload from Relay.Store.update. - * S is typically dynamic as it depends on the data the app is currently using, but it's possible to always - * return some data in the payload using REQUIRED_CHILDREN which is where specifying S is the most useful. - */ - class Mutation { - props: T; - - constructor(props: T); - static getFragment(q: string): string; - } - - interface Transaction { - getError(): Error; - Status(): number; - } - - interface StoreUpdateCallbacks { - onFailure?(transaction: Transaction): any; - onSuccess?(response: T): any; - } - - interface Store { - commitUpdate(mutation: Mutation, callbacks?: StoreUpdateCallbacks): any; - } - - const Store: Store; - - class RootContainer extends React.Component { } - - interface RootContainerProps extends React.Props { - Component: RelayContainerClass; - route: Route; - renderLoading?(): JSX.Element; - renderFetched?(data: any): JSX.Element; - renderFailure?(error: Error, retry: (...args: any[]) => any): JSX.Element; - } - - class Renderer extends React.Component { } - - interface RendererProps { - Container: RelayContainerClass; // Relay container that defines fragments and the view to render. - forceFetch?: boolean; // Whether to send a server request regardless of data available on the client. - queryConfig: Route; // `QueryConfig` or `Relay.Route` that defines the query roots. - environment: Store; // An instance of `Relay.Environment` or any object that implements the `RelayEnvironment` interface. - render?: RenderCallback; // Called to render when data requirements are being fulfilled. - onReadyStateChange?: OnReadyStateChange; - } - - interface RenderStateConfig { - props?: { [propName: string]: any }; - done: boolean; - error?: Error; - retry?(): void; - stale: boolean; - } - type RenderCallback = (renderState: RenderStateConfig) => any; - - type ReadyStateEvent = - 'ABORT' | - 'CACHE_RESTORED_REQUIRED' | - 'CACHE_RESTORE_FAILED' | - 'CACHE_RESTORE_START' | - 'NETWORK_QUERY_ERROR' | - 'NETWORK_QUERY_RECEIVED_ALL' | - 'NETWORK_QUERY_RECEIVED_REQUIRED' | - 'NETWORK_QUERY_START' | - 'STORE_FOUND_ALL' | - 'STORE_FOUND_REQUIRED'; - - type OnReadyStateChange = (readyState: { - ready: boolean, - done: boolean, - stale: boolean, - error?: Error, - events: ReadyStateEvent[], - aborted: boolean - }) => void; - - interface RelayProp { - readonly route: { name: string; }; // incomplete, also has params and queries - readonly variables: any; - readonly pendingVariables?: any; - setVariables(variables: any, onReadyStateChange?: OnReadyStateChange): void; - forceFetch(variables: any, onReadyStateChange?: OnReadyStateChange): void; - hasOptimisticUpdate(record: any): boolean; - getPendingTransactions(record: any): RelayMutationTransaction[]; - commitUpdate(mutation: Mutation, callbacks?: StoreUpdateCallbacks): any; - } -} +// exported for convenience +export import ModernTypes = ReactRelayModernTypes; diff --git a/types/react-relay/v1/lib/react-relay-classic.d.ts b/types/react-relay/v1/lib/react-relay-classic.d.ts index e69de29bb2..02517b7e80 100644 --- a/types/react-relay/v1/lib/react-relay-classic.d.ts +++ b/types/react-relay/v1/lib/react-relay-classic.d.ts @@ -0,0 +1,218 @@ +import * as React from 'react'; +import { RelayCommonTypes } from 'relay-runtime'; + +// ~~~~~~~~~~~~~~~~~~~~~ +// Maybe Fix +// ~~~~~~~~~~~~~~~~~~~~~ +export type StoreReaderData = any; +export type StoreReaderOptions = any; +export type RelayStoreData = any; +export interface RelayQuery { Fragment: any; Node: any; Root: any; } + +// ~~~~~~~~~~~~~~~~~~~~~ +// Environment +// ~~~~~~~~~~~~~~~~~~~~~ +export interface FragmentResolver { + dispose(): void; + resolve( + fragment: RelayQuery["Fragment"], + dataIDs: RelayCommonTypes.DataID | RelayCommonTypes.DataID[], + ): StoreReaderData | StoreReaderData[] | undefined | null; +} + +export interface RelayEnvironmentInterface { + forceFetch( + querySet: RelayCommonTypes.RelayQuerySet, + onReadyStateChange: RelayCommonTypes.ReadyStateChangeCallback, + ): RelayCommonTypes.Abortable; + getFragmentResolver( + fragment: RelayQuery["Fragment"], + onNext: () => void, + ): FragmentResolver; + getStoreData(): RelayStoreData; + primeCache( + querySet: RelayCommonTypes.RelayQuerySet, + onReadyStateChange: RelayCommonTypes.ReadyStateChangeCallback, + ): RelayCommonTypes.Abortable; + read( + node: RelayQuery["Node"], + dataID: RelayCommonTypes.DataID, + options?: StoreReaderOptions, + ): StoreReaderData | void; + readQuery( + root: RelayQuery["Root"], + options?: StoreReaderOptions, + ): StoreReaderData[] | void; +} + +// ~~~~~~~~~~~~~~~~~~~~~ +// the rest is to match pre-existing types from before v1 +// ~~~~~~~~~~~~~~~~~~~~~ +export type ClientMutationID = string; + +/** Fragments are a hash of functions */ +export interface Fragments { + [query: string]: ((variables?: RelayVariables) => string); +} + +export interface CreateContainerOpts { + initialVariables?: any; + fragments: Fragments; + prepareVariables?(prevVariables: RelayVariables): RelayVariables; +} + +export interface RelayVariables { + [name: string]: any; +} + +/** add static getFragment method to the component constructor */ +export interface RelayContainerClass extends React.ComponentClass { + getFragment: ((q: string, v?: RelayVariables) => string); +} + +export interface RelayQueryRequestResolve { + response: any; +} + +export type RelayMutationStatus = + 'UNCOMMITTED' | // Transaction hasn't yet been sent to the server. Transaction can be committed or rolled back. + 'COMMIT_QUEUED' | // Transaction was committed but another transaction with the same collision key is pending, so the transaction has been queued to send to the server. + 'COLLISION_COMMIT_FAILED' | // Transaction was queued for commit but another transaction with the same collision key failed. All transactions in the collision queue, + // including this one, have been failed. Transaction can be recommitted or rolled back. + 'COMMITTING' | // Transaction is waiting for the server to respond. + 'COMMIT_FAILED'; + +export class RelayMutationTransaction { + applyOptimistic(): RelayMutationTransaction; + commit(): RelayMutationTransaction | null; + recommit(): void; + rollback(): void; + getError(): Error; + getStatus(): RelayMutationStatus; + getHash(): string; + getID(): ClientMutationID; +} + +export interface RelayMutationRequest { + getQueryString(): string; + getVariables(): RelayVariables; + resolve(result: RelayQueryRequestResolve): any; + reject(errors: any): any; +} + +export interface RelayQueryRequest { + resolve(result: RelayQueryRequestResolve): any; + reject(errors: any): any; + getQueryString(): string; + getVariables(): RelayVariables; + getID(): string; + getDebugName(): string; +} + +export interface RelayNetworkLayer { + supports(...options: string[]): boolean; +} + +export class DefaultNetworkLayer implements RelayNetworkLayer { + constructor(host: string, options?: any); + supports(...options: string[]): boolean; +} + +export function createContainer(component: React.ComponentClass | React.StatelessComponent, params?: CreateContainerOpts): RelayContainerClass; +export function injectNetworkLayer(networkLayer: RelayNetworkLayer): any; +export function isContainer(component: React.ComponentClass): boolean; +export function QL(...args: any[]): string; + +export class Route { + constructor(params?: RelayVariables) +} + +/** + * Relay Mutation class, where T are the props it takes and S is the returned payload from Relay.Store.update. + * S is typically dynamic as it depends on the data the app is currently using, but it's possible to always + * return some data in the payload using REQUIRED_CHILDREN which is where specifying S is the most useful. + */ +export class Mutation { + props: T; + + constructor(props: T); + static getFragment(q: string): string; +} + +export interface Transaction { + getError(): Error; + Status(): number; +} + +export interface StoreUpdateCallbacks { + onFailure?(transaction: Transaction): any; + onSuccess?(response: T): any; +} + +export interface Store { + commitUpdate(mutation: Mutation, callbacks?: StoreUpdateCallbacks): any; +} + +export const Store: Store; + +export class RootContainer extends React.Component { } + +export interface RootContainerProps extends React.Props { + Component: RelayContainerClass; + route: Route; + renderLoading?(): JSX.Element; + renderFetched?(data: any): JSX.Element; + renderFailure?(error: Error, retry: (...args: any[]) => any): JSX.Element; +} + +export class Renderer extends React.Component { } + +export interface RendererProps { + Container: RelayContainerClass; // Relay container that defines fragments and the view to render. + forceFetch?: boolean; // Whether to send a server request regardless of data available on the client. + queryConfig: Route; // `QueryConfig` or `Relay.Route` that defines the query roots. + environment: Store; // An instance of `Relay.Environment` or any object that implements the `RelayEnvironment` interface. + render?: RenderCallback; // Called to render when data requirements are being fulfilled. + onReadyStateChange?: OnReadyStateChange; +} + +export interface RenderStateConfig { + props?: { [propName: string]: any }; + done: boolean; + error?: Error; + retry?(): void; + stale: boolean; +} +export type RenderCallback = (renderState: RenderStateConfig) => any; + +export type ReadyStateEvent = + 'ABORT' | + 'CACHE_RESTORED_REQUIRED' | + 'CACHE_RESTORE_FAILED' | + 'CACHE_RESTORE_START' | + 'NETWORK_QUERY_ERROR' | + 'NETWORK_QUERY_RECEIVED_ALL' | + 'NETWORK_QUERY_RECEIVED_REQUIRED' | + 'NETWORK_QUERY_START' | + 'STORE_FOUND_ALL' | + 'STORE_FOUND_REQUIRED'; + +export type OnReadyStateChange = (readyState: { + ready: boolean, + done: boolean, + stale: boolean, + error?: Error, + events: ReadyStateEvent[], + aborted: boolean +}) => void; + +export interface RelayProp { + readonly route: { name: string; }; // incomplete, also has params and queries + readonly variables: any; + readonly pendingVariables?: any; + setVariables(variables: any, onReadyStateChange?: OnReadyStateChange): void; + forceFetch(variables: any, onReadyStateChange?: OnReadyStateChange): void; + hasOptimisticUpdate(record: any): boolean; + getPendingTransactions(record: any): RelayMutationTransaction[]; + commitUpdate(mutation: Mutation, callbacks?: StoreUpdateCallbacks): any; +} diff --git a/types/react-relay/v1/lib/react-relay-compat.d.ts b/types/react-relay/v1/lib/react-relay-compat.d.ts index e69de29bb2..0d6197d2eb 100644 --- a/types/react-relay/v1/lib/react-relay-compat.d.ts +++ b/types/react-relay/v1/lib/react-relay-compat.d.ts @@ -0,0 +1,57 @@ +import { RelayRuntimeTypes, RelayCommonTypes } from 'relay-runtime'; +import { RelayEnvironmentInterface } from './react-relay-classic'; +import {} from './react-relay-modern'; + +// ~~~~~~~~~~~~~~~~~~~~~ +// Maybe Fix +// ~~~~~~~~~~~~~~~~~~~~~ +type ConcreteFragment = any; +type ConcreteBatch = any; +type ConcreteFragmentDefinition = object; +type ConcreteOperationDefinition = object; + +// ~~~~~~~~~~~~~~~~~~~~~ +// Util +// ~~~~~~~~~~~~~~~~~~~~~ +export function getFragment(q: string, v?: RelayCommonTypes.Variables): string; +export interface ComponentWithFragment extends React.ComponentClass { + getFragment: typeof getFragment; +} +export interface StatelessWithFragment extends React.StatelessComponent { + getFragment: typeof getFragment; +} +export type ReactFragmentComponent = ComponentWithFragment | StatelessWithFragment; +export type ReactBaseComponent = React.ComponentClass | React.StatelessComponent; +export type RelayClassicEnvironment = RelayEnvironmentInterface; + +// ~~~~~~~~~~~~~~~~~~~~~ +// RelayCompatTypes +// ~~~~~~~~~~~~~~~~~~~~~ +export type CompatEnvironment = RelayRuntimeTypes.Environment | RelayClassicEnvironment; + +// ~~~~~~~~~~~~~~~~~~~~~ +// RelayCompatMutations +// ~~~~~~~~~~~~~~~~~~~~~ +export function commitUpdate( + environment: CompatEnvironment, + config: RelayRuntimeTypes.MutationConfig, +): RelayCommonTypes.Disposable; +export function applyUpdate( + environment: CompatEnvironment, + config: RelayRuntimeTypes.OptimisticMutationConfig, +): RelayCommonTypes.Disposable; + +// ~~~~~~~~~~~~~~~~~~~~~ +// RelayCompatContainer +// ~~~~~~~~~~~~~~~~~~~~~ +export interface GeneratedNodeMap { [key: string]: RelayCommonTypes.GraphQLTaggedNode; } +export function createContainer( + Component: ReactBaseComponent, + fragmentSpec: RelayCommonTypes.GraphQLTaggedNode | GeneratedNodeMap, +): ReactFragmentComponent; + +// ~~~~~~~~~~~~~~~~~~~~~ +// injectDefaultVariablesProvider +// ~~~~~~~~~~~~~~~~~~~~~ +export type VariablesProvider = () => RelayCommonTypes.Variables; +export function injectDefaultVariablesProvider(variablesProvider: VariablesProvider): void; diff --git a/types/react-relay/v1/lib/react-relay-modern.d.ts b/types/react-relay/v1/lib/react-relay-modern.d.ts index e69de29bb2..f6d1eb0381 100644 --- a/types/react-relay/v1/lib/react-relay-modern.d.ts +++ b/types/react-relay/v1/lib/react-relay-modern.d.ts @@ -0,0 +1,147 @@ +import * as React from 'react'; +import { RelayCommonTypes, RelayRuntimeTypes } from 'relay-runtime'; + +// ~~~~~~~~~~~~~~~~~~~~~ +// Maybe Fix +// ~~~~~~~~~~~~~~~~~~~~~ +type ConcreteFragment = any; +type ConcreteBatch = any; +type ConcreteFragmentDefinition = object; +type ConcreteOperationDefinition = object; +type ReactBaseComponent = React.ComponentClass | React.StatelessComponent; + +// ~~~~~~~~~~~~~~~~~~~~~ +// RelayProp +// ~~~~~~~~~~~~~~~~~~~~~ +// note: refetch and pagination containers augment this +export interface RelayProp { + environment: RelayRuntimeTypes.Environment; +} + +// ~~~~~~~~~~~~~~~~~~~~~ +// RelayQL +// ~~~~~~~~~~~~~~~~~~~~~ +export function RelayQL( + strings: string[], + ...substitutions: any[] +): RelayCommonTypes.RelayConcreteNode; + +// ~~~~~~~~~~~~~~~~~~~~~ +// RelayModernGraphQLTag +// ~~~~~~~~~~~~~~~~~~~~~ +export interface GeneratedNodeMap { [key: string]: GraphQLTaggedNode; } +export type GraphQLTaggedNode = + (() => ConcreteFragment | ConcreteBatch) + | { + modern(): ConcreteFragment | ConcreteBatch, + classic(relayQL: typeof RelayQL): + | ConcreteFragmentDefinition + | ConcreteOperationDefinition, + }; +/** + * Runtime function to correspond to the `graphql` tagged template function. + * All calls to this function should be transformed by the plugin. + */ +export interface GraphqlInterface { + (strings: string[] | TemplateStringsArray): GraphQLTaggedNode; + experimental(strings: string[] | TemplateStringsArray): GraphQLTaggedNode; +} +export const graphql: GraphqlInterface; + +// ~~~~~~~~~~~~~~~~~~~~~ +// ReactRelayQueryRenderer +// ~~~~~~~~~~~~~~~~~~~~~ +export interface QueryRendererProps { + cacheConfig?: RelayCommonTypes.CacheConfig; + environment: RelayRuntimeTypes.Environment; + query: GraphQLTaggedNode; + render(readyState: ReadyState): React.ReactElement | undefined | null; + variables: RelayCommonTypes.Variables; + rerunParamExperimental?: RelayCommonTypes.RerunParam; +} +export interface ReadyState { + error: Error | undefined | null; + props: { [propName: string]: any } | undefined | null; + retry?(): void; +} +export interface QueryRendererState { + readyState: ReadyState; +} +export class ReactRelayQueryRenderer extends React.Component { } + +// ~~~~~~~~~~~~~~~~~~~~~ +// createFragmentContainer +// ~~~~~~~~~~~~~~~~~~~~~ +export function createFragmentContainer( + Component: ReactBaseComponent, + fragmentSpec: GraphQLTaggedNode | GeneratedNodeMap, +): ReactBaseComponent; + +// ~~~~~~~~~~~~~~~~~~~~~ +// createPaginationContainer +// ~~~~~~~~~~~~~~~~~~~~~ +export interface PageInfo { + endCursor: string | undefined | null; + hasNextPage: boolean; + hasPreviousPage: boolean; + startCursor: string | undefined | null; +} +export interface ConnectionData { + edges?: any[]; + pageInfo?: PageInfo; +} +export type RelayPaginationProp = RelayProp & { + hasMore(): boolean, + isLoading(): boolean, + loadMore( + pageSize: number, + callback: (error?: Error) => void, + options?: RefetchOptions, + ): RelayCommonTypes.Disposable | undefined | null, + refetchConnection( + totalCount: number, + callback: (error?: Error) => void, + refetchVariables?: RelayCommonTypes.Variables, + ): RelayCommonTypes.Disposable | undefined | null, +}; +export function FragmentVariablesGetter( + prevVars: RelayCommonTypes.Variables, + totalCount: number, +): RelayCommonTypes.Variables; +export interface ConnectionConfig { + direction?: 'backward' | 'forward'; + getConnectionFromProps?(props: object): ConnectionData | undefined | null; + getFragmentVariables?: typeof FragmentVariablesGetter; + getVariables( + props: { [propName: string]: any }, + paginationInfo: { count: number, cursor?: string }, + fragmentVariables: RelayCommonTypes.Variables, + ): RelayCommonTypes.Variables; + query: GraphQLTaggedNode; +} +export function createPaginationContainer( + Component: ReactBaseComponent, + fragmentSpec: GraphQLTaggedNode | GeneratedNodeMap, + connectionConfig: ConnectionConfig, +): ReactBaseComponent; + +// ~~~~~~~~~~~~~~~~~~~~~ +// createFragmentContainer +// ~~~~~~~~~~~~~~~~~~~~~ +export interface RefetchOptions { + force?: boolean; + rerunParamExperimental?: RelayCommonTypes.RerunParam; +} +export type RelayRefetchProp = RelayProp & { + refetch( + refetchVariables: RelayCommonTypes.Variables | ((fragmentVariables: RelayCommonTypes.Variables) => RelayCommonTypes.Variables), + renderVariables?: RelayCommonTypes.Variables, + callback?: (error?: Error) => void, + options?: RefetchOptions, + ): RelayCommonTypes.Disposable, +}; +export function createRefetchContainer( + Component: ReactBaseComponent, + fragmentSpec: GraphQLTaggedNode | GeneratedNodeMap, + taggedNode: GraphQLTaggedNode, +): ReactBaseComponent; diff --git a/types/react-relay/v1/react-relay-tests.tsx b/types/react-relay/v1/react-relay-tests.tsx index 2b8e371ee2..50506ac111 100644 --- a/types/react-relay/v1/react-relay-tests.tsx +++ b/types/react-relay/v1/react-relay-tests.tsx @@ -18,8 +18,7 @@ import { createRefetchContainer, requestSubscription, QueryRenderer, - RelayPaginationProp, - RelayRefetchProp + ModernTypes, } from "react-relay"; // ~~~~~~~~~~~~~~~~~~~~~ @@ -84,7 +83,7 @@ const MyFragmentContainer = createFragmentContainer( // ~~~~~~~~~~~~~~~~~~~~~ interface StoryInterface { id: string; } interface FeedStoriesProps { - relay: RelayRefetchProp; + relay: ModernTypes.RelayRefetchProp; feed: { stories: { edges: Array<{ node: StoryInterface }> } }; @@ -147,7 +146,7 @@ const FeedRefetchContainer = createRefetchContainer( // ~~~~~~~~~~~~~~~~~~~~~ interface FeedProps { user: { feed: { edges: Array<{ node: StoryInterface}>}}; - relay: RelayPaginationProp; + relay: ModernTypes.RelayPaginationProp; } class Feed extends React.Component { render() { @@ -344,10 +343,19 @@ requestSubscription( } ); +//////////////////////////// +// RELAY COMPAT TESTS +/////////////////////////// +import { + QueryRenderer as CompatQueryRenderer, + createFragmentContainer as createFragmentContainerCompat +} from "react-relay/compat"; + +// TODO? This is all more or less identical to modern... + //////////////////////////// // RELAY-CLASSIC TESTS /////////////////////////// - import * as Relay from "react-relay/classic"; interface Props { diff --git a/types/react-relay/v1/tsconfig.json b/types/react-relay/v1/tsconfig.json index e6b06bf446..37049aa13e 100644 --- a/types/react-relay/v1/tsconfig.json +++ b/types/react-relay/v1/tsconfig.json @@ -18,7 +18,9 @@ "jsx": "react", "paths": { "react-relay": ["react-relay/v1"], - "react-relay/*": ["react-relay/v2/*"] + "react-relay/*": ["react-relay/v1/*"], + "react-relay/classic": ["react-relay/v1/classic.d"], + "react-relay/compat": ["react-relay/v1/compat.d"] } }, "files": [ From b34259e076fb00d512854d544e30ea7e65aa0cac Mon Sep 17 00:00:00 2001 From: Nicolas Penin Date: Tue, 3 Oct 2017 07:22:11 +0200 Subject: [PATCH 045/506] bumped version for @types publish script purpose --- types/sequencify/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/sequencify/index.d.ts b/types/sequencify/index.d.ts index 2755df8bce..526baa8f54 100644 --- a/types/sequencify/index.d.ts +++ b/types/sequencify/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for sequencify 0.0 +// Type definitions for sequencify 0.1 // Project: https://github.com/robrich/sequencify // Definitions by: Nicolas Penin // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped From b9536b7e46dc4894183bdde00ecb0b556d293410 Mon Sep 17 00:00:00 2001 From: PishangCode Date: Fri, 6 Oct 2017 20:02:10 +0800 Subject: [PATCH 046/506] removing realm --- notNeededPackages.json | 6 + types/realm/index.d.ts | 456 ------------------------------------- types/realm/realm-tests.ts | 98 -------- types/realm/tsconfig.json | 23 -- types/realm/tslint.json | 8 - 5 files changed, 6 insertions(+), 585 deletions(-) delete mode 100644 types/realm/index.d.ts delete mode 100644 types/realm/realm-tests.ts delete mode 100644 types/realm/tsconfig.json delete mode 100644 types/realm/tslint.json diff --git a/notNeededPackages.json b/notNeededPackages.json index e94e48189c..6e6767c69f 100644 --- a/notNeededPackages.json +++ b/notNeededPackages.json @@ -504,6 +504,12 @@ "sourceRepoURL": "https://github.com/gpbl/react-day-picker", "asOfVersion": "5.3.0" }, + { + "libraryName": "realm", + "typingsPackageName": "realm", + "sourceRepoURL": "https://github.com/realm/realm-js/blob/master/lib/index.d.ts", + "asOfVersion": "1.0.3" + }, { "libraryName": "Redux", "typingsPackageName": "redux", diff --git a/types/realm/index.d.ts b/types/realm/index.d.ts deleted file mode 100644 index 993f0bcc0f..0000000000 --- a/types/realm/index.d.ts +++ /dev/null @@ -1,456 +0,0 @@ -// Type definitions for realm-js 1.0 -// Project: https://github.com/realm/realm-js -// Definitions by: Akim -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -// TypeScript Version: 2.1 - -declare namespace Realm { - /** - * PropertyType - * @see { @link https://realm.io/docs/javascript/latest/api/Realm.html#~PropertyType } - */ - type PropertyType = string | 'bool' | 'int' | 'float' | 'double' | 'string' | 'data' | 'date' | 'list'; - - /** - * ObjectSchemaProperty - * @see { @link https://realm.io/docs/javascript/latest/api/Realm.html#~ObjectSchemaProperty } - */ - interface ObjectSchemaProperty { - type: PropertyType; - objectType?: string; - default?: any; - optional?: boolean; - indexed?: boolean; - } - - // properties types - interface PropertiesTypes { - [keys: string]: PropertyType | ObjectSchemaProperty; - } - - /** - * ObjectSchema - * @see { @link https://realm.io/docs/javascript/latest/api/Realm.html#~ObjectSchema } - */ - interface ObjectSchema { - name: string; - primaryKey?: string; - properties: PropertiesTypes; - } - - /** - * ObjectClass - * @see { @link https://realm.io/docs/javascript/latest/api/Realm.html#~ObjectClass } - */ - interface ObjectClass { - schema: ObjectSchema; - } - - /** - * ObjectType - * @see { @link https://realm.io/docs/javascript/latest/api/Realm.html#~ObjectType } - */ - interface ObjectType { - type: ObjectClass; - } - - interface SyncConfiguration { - user: User; - url: string; - } - - /** - * realm configuration - * @see { @link https://realm.io/docs/javascript/latest/api/Realm.html#~Configuration } - */ - interface Configuration { - encryptionKey?: any; - migration?: any; - path?: string; - readOnly?: boolean; - schema?: ObjectClass[] | ObjectSchema[]; - schemaVersion?: number; - sync?: SyncConfiguration; - } - - // object props type - interface ObjectPropsType { - [keys: string]: any; - } - - /** - * SortDescriptor - * @see { @link https://realm.io/docs/javascript/latest/api/Realm.Collection.html#~SortDescriptor } - */ - type SortDescriptor = string | [string, boolean] | any[]; - - /** - * Iterator - * @see { @link https://realm.io/docs/javascript/latest/api/Realm.Collection.html#~Iterator } - */ - interface IteratorResult { - done: boolean; - value?: T; - } - - interface Iterator { - next(done: boolean, value?: any): IteratorResult; - [Symbol.iterator](): any; - } - - /** - * Collection - * @see { @link https://realm.io/docs/javascript/latest/api/Realm.Collection.html } - */ - interface Collection { - readonly length: number; - - /** - * @returns boolean - */ - isValid(): boolean; - - /** - * @param {string} query - * @param {any[]} ...arg - * @returns Results - */ - filtered(query: string, ...arg: any[]): Results; - - /** - * @param {string|SortDescriptor} descriptor - * @param {boolean} reverse? - * @returns Results - */ - sorted(descriptor: string | SortDescriptor, reverse?: boolean): Results; - - /** - * @returns Iterator - */ - [Symbol.iterator](): Iterator; - - /** - * @returns Results - */ - snapshot(): Results; - - /** - * @returns Iterator - */ - entries(): Iterator; - - /** - * @returns Iterator - */ - keys(): Iterator; - - /** - * @returns Iterator - */ - values(): Iterator; - - /** - * @param {string[]} separator? - * @returns string - */ - join(separator?: string[]): string; - - /** - * @param {number} start? - * @param {number} end? - * @returns T - */ - slice(start?: number, end?: number): T[]; - - /** - * @param {(object:any,index?:any,collection?:any)=>void} callback - * @param {any} thisArg? - * @returns T - */ - find(callback: (object: any, index?: any, collection?: any) => void, thisArg?: any): T | null | undefined; - - /** - * @param {(object:any,index?:number,collection?:any)=>void} callback - * @param {any} thisArg? - * @returns number - */ - findIndex(callback: (object: any, index?: number, collection?: any) => void, thisArg?: any): number; - - /** - * @param {(object:T,index?:number,collection?:any)=>void} callback - * @param {any} thisArg? - * @returns void - */ - forEach(callback: (object: T, index?: number, collection?: any) => void, thisArg?: any): void; - - /** - * @param {(object:T,index?:number,collection?:any)=>void} callback - * @param {any} thisArg? - * @returns boolean - */ - every(callback: (object: T, index?: number, collection?: any) => void, thisArg?: any): boolean; - - /** - * @param {(object:T,index?:number,collection?:any)=>void} callback - * @param {any} thisArg? - * @returns boolean - */ - some(callback: (object: T, index?: number, collection?: any) => void, thisArg?: any): boolean; - - /** - * @param {(object:T,index?:number,collection?:any)=>void} callback - * @param {any} thisArg? - * @returns any - */ - map(callback: (object: T, index?: number, collection?: any) => void, thisArg?: any): any[]; - - /** - * @param {(previousValue:T,object?:T,index?:number,collection?:any)=>void} callback - * @param {any} initialValue? - * @returns any - */ - reduce(callback: (previousValue: T, object?: T, index?: number, collection?: any) => void, initialValue?: any): any; - - /** - * @param {(previousValue:T,object?:T,index?:any,collection?:any)=>void} callback - * @param {any} initialValue? - * @returns any - */ - reduceRight(callback: (previousValue: T, object?: T, index?: any, collection?: any) => void, initialValue?: any): any; - - /** - * @param {(collection:any,changes:any)=>void} callback - * @returns void - */ - addListener(callback: (collection: any, changes: any) => void): void; - - /** - * @returns void - */ - removeAllListeners(): void; - - /** - * @param {()=>void} callback - * @returns void - */ - removeListener(callback: () => void): void; - } - - /** - * Object - * @see { @link https://realm.io/docs/javascript/latest/api/Realm.Object.html } - */ - interface Object { - /** - * @returns boolean - */ - isValid(): boolean; - } - - /** - * List - * @see { @link https://realm.io/docs/javascript/latest/api/Realm.List.html } - */ - interface List extends Collection { - /** - * @returns T - */ - pop(): T | null | undefined; - - /** - * @param {T} object - * @returns number - */ - push(object: T): number; - - /** - * @returns T - */ - shift(): T | null | undefined; - - /** - * @param {number} index - * @param {number} count? - * @param {any} object? - * @returns T - */ - splice(index: number, count?: number, object?: any): T[]; - - /** - * @param {T} object - * @returns number - */ - unshift(object: T): number; - } - - /** - * Results - * @see { @link https://realm.io/docs/javascript/latest/api/Realm.Results.html } - */ - type Results = Collection; - - /** - * User - * @see { @link https://realm.io/docs/javascript/latest/api/Realm.Sync.User.html } - */ - interface User { - all: any; - current: User; - readonly identity: string; - readonly isAdmin: boolean; - readonly server: string; - readonly token: string; - adminUser(adminToken: string): User; - login(server: string, username: string, password: string, callback: (error: any, user: any) => void): void; - loginWithProvider(server: string, provider: string, providerToken: string, callback: (error: any, user: any) => void): void; - register(server: string, username: string, password: string, callback: (error: any, user: any) => void): void; - registerWithProvider(server: string, provider: string, providerToken: string, callback: (error: any, user: any) => void): void; - logout(): void; - openManagementRealm(): Realm; - } - - /** - * Session - * @see { @link https://realm.io/docs/javascript/latest/api/Realm.Sync.Session.html } - */ - interface Session { - readonly config: any; - readonly state: string; - readonly url: string; - readonly user: User; - } - - /** - * AuthError - * @see { @link https://realm.io/docs/javascript/latest/api/Realm.Sync.AuthError.html } - */ - interface AuthError { - readonly code: number; - readonly type: string; - } - - /** - * ChangeEvent - * @see { @link https://realm.io/docs/javascript/latest/api/Realm.Sync.ChangeEvent.html } - */ - interface ChangeEvent { - readonly changes: any; - readonly oldRealm: Realm; - readonly path: string; - readonly realm: Realm; - } - - /** - * LogLevel - * @see { @link https://realm.io/docs/javascript/latest/api/Realm.Sync.html#~LogLevel } - */ - type LogLevelType = string | 'error' | 'info' | 'defug'; - - /** - * Sync - * @see { @link https://realm.io/docs/javascript/latest/api/Realm.Sync.html } - */ - interface Sync { - User: User; - Session: Session; - AuthError: AuthError; - ChangeEvent: ChangeEvent; - addListener(serverURL: string, adminUser: User, regex: string, name: string, changeCallback: () => void): void; - removeAllListeners(name?: string[]): void; - removeListener(regex: string, name: string, changeCallback: () => void): void; - setLogLevel(logLevel: LogLevelType): void; - } -} - -declare class Realm { - static defaultPath: string; - - readonly path: string; - - readonly readOnly: boolean; - - readonly schema: Realm.ObjectSchema[]; - - readonly schemaVersion: number; - - static Sync: Realm.Sync; - - syncSession: Realm.Session; - - /** - * @param {string} path - * @param {any} encryptionKey? - * @returns number - */ - static schemaVersion(path: string, encryptionKey?: any): number; - - /** - * @param {Realm.Configuration} config? - */ - constructor(config?: Realm.Configuration); - - /** - * @returns void - */ - close(): void; - - /** - * @param {string|Realm.ObjectType} type - * @param {T&Realm.ObjectPropsType} properties - * @param {boolean} update? - * @returns T - */ - create(type: string | Realm.ObjectType, properties: T & Realm.ObjectPropsType, update?: boolean): T; - - /** - * @param {Realm.Object|Realm.Object[]|Realm.List|Realm.Results|any} object - * @returns void - */ - delete(object: Realm.Object | Realm.Object[] | Realm.List | Realm.Results | any): void; - - /** - * @returns void - */ - deleteAll(): void; - - /** - * @param {string|Realm.ObjectType} type - * @param {number|string} key - * @returns T - */ - objectForPrimaryKey(type: string | Realm.ObjectType, key: number | string): T | void; - - /** - * @param {string|Realm.ObjectType} type - * @returns Realm - */ - objects(type: string | Realm.ObjectType): Realm.ObjectType & Realm.Results; - - /** - * @param {string} name - * @param {()=>void} callback - * @returns void - */ - addListener(name: string, callback: () => void): void; - - /** - * @param {string} name - * @param {()=>void} callback - * @returns void - */ - removeListener(name: string, callback: () => void): void; - - /** - * @param {string[]} name? - * @returns void - */ - removeAllListeners(name?: string[]): void; - - /** - * @param {()=>void} callback - * @returns void - */ - write(callback: () => void): void; -} - -export = Realm; diff --git a/types/realm/realm-tests.ts b/types/realm/realm-tests.ts deleted file mode 100644 index 5f171a3287..0000000000 --- a/types/realm/realm-tests.ts +++ /dev/null @@ -1,98 +0,0 @@ -import * as Realm from 'realm'; - -// schema test -const personSchema = { - name: 'Person', - primaryKey: 'id', - properties: { - id: 'int', - name: { type: 'string', default: 'anonymous', indexed: true }, - profilePic: { type: 'string', optional: true } - } -}; - -// encryptionKey -const key = new Int8Array(64); - -// constructor test -const realm = new Realm({ - schema: [personSchema], - encryptionKey: key -}); - -realm.write(() => { - // create test - realm.create('Person', { - id: 1, - name: 'Tony' - }); - - // update test - realm.create('Person', { - id: 1, - name: 'Jack' - }, true); -}); - -// delete all person test -const allPerson = realm.objects('Person'); -realm.delete(allPerson); - -// filtered test -const allJack = allPerson.filtered('name = "Jack"'); - -// sorted test -allJack.sorted('id'); -allJack.sorted('id', true); - -// limiting results test -allJack.slice(0, 2); - -// change events test -realm.addListener('change', () => { - return 'updated'; -}); - -// remove all events -realm.removeAllListeners(); - -allPerson.find((person: any) => { - return person.name === 'Jack'; -}); - -const currentVersion = Realm.schemaVersion(Realm.defaultPath); - -// username/password authentication -Realm.Sync.User.register('http://localhost:9080', 'username@example.com', 'p@s$w0rd', (error, user) => { /* ... */ }); - -Realm.Sync.User.login('http://localhost.com:9080', 'username@example.com', 'p@s$w0rd', (error, user) => { - const todoSchema = { - name: 'Todo', - primaryKey: 'id', - properties: { - id: 'int', - task: 'string', - } - }; - - // sync test - const realm = new Realm({ - schema: [todoSchema], - sync: { user, url: 'realm://localhost:9080/~/todos' } - }); - - // session test - const session = realm.syncSession; - const sessionUrl = session.config.url; -}); - -// facebook authentication -const fbAccessToken = 'acc3ssT0ken...'; -Realm.Sync.User.registerWithProvider('http://localhost:9080', 'facebook', fbAccessToken, (error, user) => { /* ... */ }); - -// user test -const user = Realm.Sync.User.current; -const users = Realm.Sync.User.all; - -// access control test -const managementRealm = user.openManagementRealm(); diff --git a/types/realm/tsconfig.json b/types/realm/tsconfig.json deleted file mode 100644 index 583e188e67..0000000000 --- a/types/realm/tsconfig.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "compilerOptions": { - "module": "commonjs", - "lib": [ - "es6", - "dom" - ], - "noImplicitAny": true, - "noImplicitThis": true, - "strictNullChecks": true, - "baseUrl": "../", - "typeRoots": [ - "../" - ], - "types": [], - "noEmit": true, - "forceConsistentCasingInFileNames": true - }, - "files": [ - "index.d.ts", - "realm-tests.ts" - ] -} \ No newline at end of file diff --git a/types/realm/tslint.json b/types/realm/tslint.json deleted file mode 100644 index e6dc9b7f2f..0000000000 --- a/types/realm/tslint.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "extends": "dtslint/dt.json", - "rules": { - // TODO - "no-any-union": false, - "no-unnecessary-generics": false - } -} From a561581f82eedeedbb9290aec894abdfaf1a84bd Mon Sep 17 00:00:00 2001 From: PishangCode Date: Fri, 6 Oct 2017 20:06:28 +0800 Subject: [PATCH 047/506] update repo url --- notNeededPackages.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/notNeededPackages.json b/notNeededPackages.json index 6e6767c69f..baaee879bf 100644 --- a/notNeededPackages.json +++ b/notNeededPackages.json @@ -507,7 +507,7 @@ { "libraryName": "realm", "typingsPackageName": "realm", - "sourceRepoURL": "https://github.com/realm/realm-js/blob/master/lib/index.d.ts", + "sourceRepoURL": "https://github.com/realm/realm-js", "asOfVersion": "1.0.3" }, { From 2024db07b145d31f2a9bca0f2add058a221df87d Mon Sep 17 00:00:00 2001 From: Nicolas Penin Date: Sun, 8 Oct 2017 10:24:17 +0200 Subject: [PATCH 048/506] updated require in seqencify tests --- types/sequencify/sequencify-tests.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/sequencify/sequencify-tests.ts b/types/sequencify/sequencify-tests.ts index a39d58c28c..26506d7fbd 100644 --- a/types/sequencify/sequencify-tests.ts +++ b/types/sequencify/sequencify-tests.ts @@ -2,7 +2,7 @@ /// -import * as sequencify from 'sequencify'; +import sequencify = require('sequencify'); const items: sequencify.TaskMap = { a: { From 694fb9b2286ba5d37d3c8a4d85e05dd9a6c855b5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Eloy=20Dur=C3=A1n?= Date: Wed, 11 Oct 2017 15:08:00 +0200 Subject: [PATCH 049/506] [Relay] Change imports to work as per normal usage. --- .../react-relay-classic.d.ts => classic.d.ts} | 0 .../react-relay-compat.d.ts => compat.d.ts} | 4 +- types/react-relay/index.d.ts | 175 +------ .../react-relay-modern.d.ts => modern.d.ts} | 0 .../react-relay/react-relay-classic-tests.tsx | 92 ++++ types/react-relay/react-relay-tests.tsx | 401 +++++++++++++++- types/react-relay/tsconfig.json | 10 +- types/react-relay/{v1 => }/tslint.json | 0 types/react-relay/v1/index.d.ts | 23 - types/react-relay/v1/react-relay-tests.tsx | 445 ------------------ types/react-relay/v1/tsconfig.json | 33 -- 11 files changed, 497 insertions(+), 686 deletions(-) rename types/react-relay/{v1/lib/react-relay-classic.d.ts => classic.d.ts} (100%) rename types/react-relay/{v1/lib/react-relay-compat.d.ts => compat.d.ts} (95%) rename types/react-relay/{v1/lib/react-relay-modern.d.ts => modern.d.ts} (100%) create mode 100644 types/react-relay/react-relay-classic-tests.tsx rename types/react-relay/{v1 => }/tslint.json (100%) delete mode 100644 types/react-relay/v1/index.d.ts delete mode 100644 types/react-relay/v1/react-relay-tests.tsx delete mode 100644 types/react-relay/v1/tsconfig.json diff --git a/types/react-relay/v1/lib/react-relay-classic.d.ts b/types/react-relay/classic.d.ts similarity index 100% rename from types/react-relay/v1/lib/react-relay-classic.d.ts rename to types/react-relay/classic.d.ts diff --git a/types/react-relay/v1/lib/react-relay-compat.d.ts b/types/react-relay/compat.d.ts similarity index 95% rename from types/react-relay/v1/lib/react-relay-compat.d.ts rename to types/react-relay/compat.d.ts index 0d6197d2eb..e16bbb01f9 100644 --- a/types/react-relay/v1/lib/react-relay-compat.d.ts +++ b/types/react-relay/compat.d.ts @@ -1,6 +1,6 @@ import { RelayRuntimeTypes, RelayCommonTypes } from 'relay-runtime'; -import { RelayEnvironmentInterface } from './react-relay-classic'; -import {} from './react-relay-modern'; +import { RelayEnvironmentInterface } from 'react-relay/classic'; +import {} from 'react-relay/modern'; // ~~~~~~~~~~~~~~~~~~~~~ // Maybe Fix diff --git a/types/react-relay/index.d.ts b/types/react-relay/index.d.ts index 4f9f49e5e7..72a661e6b7 100644 --- a/types/react-relay/index.d.ts +++ b/types/react-relay/index.d.ts @@ -1,160 +1,23 @@ -// Type definitions for react-relay 0.9.2 +// Type definitions for react-relay 1.3 // Project: https://github.com/facebook/relay -// Definitions by: Johannes Schickling +// Definitions by: Johannes Schickling , Matt Martin // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -// TypeScript Version: 2.3 +// TypeScript Version: 2.4 -declare module "react-relay" { - import * as React from "react"; +import { RelayRuntimeTypes } from 'relay-runtime'; +import * as ReactRelayModernTypes from 'react-relay/modern'; - type ClientMutationID = string; - - /** Fragments are a hash of functions */ - interface Fragments { - [query: string]: ((variables?: RelayVariables) => string) - } - - interface CreateContainerOpts { - initialVariables?: any - fragments: Fragments - prepareVariables?(prevVariables: RelayVariables): RelayVariables - } - - interface RelayVariables { - [name: string]: any - } - - /** add static getFragment method to the component constructor */ - interface RelayContainerClass extends React.ComponentClass { - getFragment: ((q: string, v?: RelayVariables) => string) - } - - interface RelayQueryRequestResolve { - response: any - } - - type RelayMutationStatus = - 'UNCOMMITTED' | // Transaction hasn't yet been sent to the server. Transaction can be committed or rolled back. - 'COMMIT_QUEUED' | // Transaction was committed but another transaction with the same collision key is pending, so the transaction has been queued to send to the server. - 'COLLISION_COMMIT_FAILED' | //Transaction was queued for commit but another transaction with the same collision key failed. All transactions in the collision queue, including this one, have been failed. Transaction can be recommitted or rolled back. - 'COMMITTING' | // Transaction is waiting for the server to respond. - 'COMMIT_FAILED'; - - class RelayMutationTransaction { - applyOptimistic(): RelayMutationTransaction; - commit(): RelayMutationTransaction | null; - recommit(): void; - rollback(): void; - getError(): Error; - getStatus(): RelayMutationStatus; - getHash(): string; - getID(): ClientMutationID; - } - - interface RelayMutationRequest { - getQueryString(): string - getVariables(): RelayVariables - resolve(result: RelayQueryRequestResolve): any - reject(errors: any): any - } - - interface RelayQueryRequest { - resolve(result: RelayQueryRequestResolve): any - reject(errors: any): any - - getQueryString(): string - getVariables(): RelayVariables - getID(): string - getDebugName(): string - } - - interface RelayNetworkLayer { - supports(...options: string[]): boolean - } - - class DefaultNetworkLayer implements RelayNetworkLayer { - constructor(host: string, options?: any) - supports(...options: string[]): boolean - } - - function createContainer(component: React.ComponentClass | React.StatelessComponent, params?: CreateContainerOpts): RelayContainerClass - function injectNetworkLayer(networkLayer: RelayNetworkLayer): any - function isContainer(component: React.ComponentClass): boolean - function QL(...args: any[]): string - - class Route { - constructor(params?: RelayVariables) - } - - /** - * Relay Mutation class, where T are the props it takes and S is the returned payload from Relay.Store.update. - * S is typically dynamic as it depends on the data the app is currently using, but it's possible to always - * return some data in the payload using REQUIRED_CHILDREN which is where specifying S is the most useful. - */ - class Mutation { - props: T - - constructor(props: T) - static getFragment(q: string): string - } - - interface Transaction { - getError(): Error - Status(): number - } - - interface StoreUpdateCallbacks { - onFailure?(transaction: Transaction): any - onSuccess?(response: T): any - } - - interface Store { - commitUpdate(mutation: Mutation, callbacks?: StoreUpdateCallbacks): any - } - - var Store: Store - - class RootContainer extends React.Component {} - - interface RootContainerProps extends React.Props{ - Component: RelayContainerClass - route: Route - renderLoading?(): JSX.Element - renderFetched?(data: any): JSX.Element - renderFailure?(error: Error, retry: Function): JSX.Element - } - - type ReadyStateEvent = - 'ABORT' | - 'CACHE_RESTORED_REQUIRED' | - 'CACHE_RESTORE_FAILED' | - 'CACHE_RESTORE_START' | - 'NETWORK_QUERY_ERROR' | - 'NETWORK_QUERY_RECEIVED_ALL' | - 'NETWORK_QUERY_RECEIVED_REQUIRED' | - 'NETWORK_QUERY_START' | - 'STORE_FOUND_ALL' | - 'STORE_FOUND_REQUIRED'; - - interface OnReadyStateChange { - (readyState: { - ready: boolean, - done: boolean, - stale: boolean, - error?: Error, - events: Array, - aborted: boolean - }): void - } - - interface RelayProp { - readonly route: { name: string; }; // incomplete, also has params and queries - readonly variables: any; - readonly pendingVariables?: any | null; - setVariables(variables: any, onReadyStateChange?: OnReadyStateChange): void; - forceFetch(variables: any, onReadyStateChange?: OnReadyStateChange): void; - hasOptimisticUpdate(record: any): boolean; - getPendingTransactions(record: any): RelayMutationTransaction[]; - commitUpdate: (mutation: Mutation, callbacks?: StoreUpdateCallbacks) => any; - } -} +// ~~~~~~~~~~~~~~~~~~~~~ +// React-Relay Modern +// ~~~~~~~~~~~~~~~~~~~~~ +export import QueryRenderer = ReactRelayModernTypes.ReactRelayQueryRenderer; +export import createFragmentContainer = ReactRelayModernTypes.createFragmentContainer; +export import createPaginationContainer = ReactRelayModernTypes.createPaginationContainer; +export import createRefetchContainer = ReactRelayModernTypes.createRefetchContainer; +export import graphql = ReactRelayModernTypes.graphql; +export import commitLocalUpdate = RelayRuntimeTypes.commitLocalUpdate; +export import commitMutation = RelayRuntimeTypes.commitRelayModernMutation; +export import fetchQuery = RelayRuntimeTypes.fetchRelayModernQuery; +export import requestSubscription = RelayRuntimeTypes.requestRelaySubscription; +// exported for convenience +export import ModernTypes = ReactRelayModernTypes; diff --git a/types/react-relay/v1/lib/react-relay-modern.d.ts b/types/react-relay/modern.d.ts similarity index 100% rename from types/react-relay/v1/lib/react-relay-modern.d.ts rename to types/react-relay/modern.d.ts diff --git a/types/react-relay/react-relay-classic-tests.tsx b/types/react-relay/react-relay-classic-tests.tsx new file mode 100644 index 0000000000..b7531598eb --- /dev/null +++ b/types/react-relay/react-relay-classic-tests.tsx @@ -0,0 +1,92 @@ +import * as React from "react" +import * as Relay from "react-relay/classic" + +interface Props { + text: string + userId: string +} + +interface Response { +} + +export default class AddTweetMutation extends Relay.Mutation { + + getMutation () { + return Relay.QL`mutation{addTweet}` + } + + getFatQuery () { + return Relay.QL` + fragment on AddTweetPayload { + tweetEdge + user + } + ` + } + + getConfigs () { + return [{ + type: "RANGE_ADD", + parentName: "user", + parentID: this.props.userId, + connectionName: "tweets", + edgeName: "tweetEdge", + rangeBehaviors: { + "": "append", + }, + }] + } + + getVariables () { + return this.props + } +} + +interface ArtworkProps { + artwork: { + title: string + }, + relay: Relay.RelayProp, +} + +class Artwork extends React.Component { + render() { + return ( + + {this.props.artwork.title} + + ) + } +} + +const ArtworkContainer = Relay.createContainer(Artwork, { + fragments: { + artwork: () => Relay.QL` + fragment on Artwork { + title + } + ` + } +}) + +class StubbedArtwork extends React.Component { + render() { + const props = { + artwork: { title: "CHAMPAGNE FORMICA FLAG" }, + relay: { + route: { + name: "champagne" + }, + variables: { + artworkID: "champagne-formica-flag", + }, + setVariables: () => {}, + forceFetch: () => {}, + hasOptimisticUpdate: () => false, + getPendingTransactions: (): Relay.RelayMutationTransaction[] => undefined, + commitUpdate: () => {}, + } + } + return + } +} diff --git a/types/react-relay/react-relay-tests.tsx b/types/react-relay/react-relay-tests.tsx index 90425156cc..50506ac111 100644 --- a/types/react-relay/react-relay-tests.tsx +++ b/types/react-relay/react-relay-tests.tsx @@ -1,30 +1,383 @@ -import * as React from "react" -import * as Relay from "react-relay" +import * as React from "react"; +import { + Environment, + Network, + RecordSource, + Store, + ConnectionHandler, +} from 'relay-runtime'; -interface Props { - text: string - userId: string +//////////////////////////// +// RELAY MODERN TESTS +/////////////////////////// +import { + graphql, + commitMutation, + createFragmentContainer, + createPaginationContainer, + createRefetchContainer, + requestSubscription, + QueryRenderer, + ModernTypes, +} from "react-relay"; + +// ~~~~~~~~~~~~~~~~~~~~~ +// Modern Environment +// ~~~~~~~~~~~~~~~~~~~~~ +function fetchQuery(operation: any, variables: any, cacheConfig: {}) { + return fetch('/graphql'); } +const network = Network.create(fetchQuery); +const source = new RecordSource(); +const store = new Store(source); +const modernEnvironment = new Environment({ network, store }); -interface Response { +// ~~~~~~~~~~~~~~~~~~~~~ +// Modern QueryRenderer +// ~~~~~~~~~~~~~~~~~~~~~ +const MyQueryRenderer = (props: { name: string}) => ( + { + if (error) { + return
{error.message}
; + } else if (props) { + return
{props.name} is great!
; + } + return
Loading
; + }} + /> +); + +// ~~~~~~~~~~~~~~~~~~~~~ +// Modern FragmentContainer +// ~~~~~~~~~~~~~~~~~~~~~ +const MyFragmentContainer = createFragmentContainer( + class TodoListView extends React.Component { + render() { + return
; + } + }, + { + item: graphql` + fragment TodoItem_item on Todo { + text + isComplete + } + `, + } +); + +// ~~~~~~~~~~~~~~~~~~~~~ +// Modern RefetchContainer +// ~~~~~~~~~~~~~~~~~~~~~ +interface StoryInterface { id: string; } +interface FeedStoriesProps { + relay: ModernTypes.RelayRefetchProp; + feed: { + stories: { edges: Array<{ node: StoryInterface }> } + }; } - -export default class AddTweetMutation extends Relay.Mutation { - - getMutation () { - return Relay.QL`mutation{addTweet}` +class Story extends React.Component<{ story: StoryInterface }> {} +class FeedStories extends React.Component { + render() { + return ( +
+ {this.props.feed.stories.edges.map( + edge => + )} +
+ ); } - getFatQuery () { + _loadMore() { + // Increments the number of stories being rendered by 10. + const refetchVariables = (fragmentVariables: {count: number }) => ({ + count: fragmentVariables.count + 10, + }); + this.props.relay.refetch(refetchVariables); + } + } + +const FeedRefetchContainer = createRefetchContainer( + FeedStories, + { + feed: graphql.experimental` + fragment FeedStories_feed on Feed + @argumentDefinitions( + count: {type: "Int", defaultValue: 10} + ) { + stories(first: $count) { + edges { + node { + id + ...Story_story + } + } + } + } + ` + }, + graphql.experimental` + query FeedStoriesRefetchQuery($count: Int) { + feed { + ...FeedStories_feed @arguments(count: $count) + } + } + `, + ); + +// ~~~~~~~~~~~~~~~~~~~~~ +// Modern PaginationContainer +// ~~~~~~~~~~~~~~~~~~~~~ +interface FeedProps { + user: { feed: { edges: Array<{ node: StoryInterface}>}}; + relay: ModernTypes.RelayPaginationProp; +} +class Feed extends React.Component { + render() { + return (
+ {this.props.user.feed.edges.map( + edge => + )} +
); + } + + _loadMore() { + if (!this.props.relay.hasMore() || this.props.relay.isLoading()) { + return; + } + + this.props.relay.loadMore( + 10, // Fetch the next 10 feed items + e => { + console.log(e); + }, + ); + } +} + +const FeedPaginationContainer = createPaginationContainer( + Feed, + { + user: graphql` + fragment Feed_user on User { + feed( + first: $count + after: $cursor + orderby: $orderBy # other variables + ) @connection(key: "Feed_feed") { + edges { + node { + id + ...Story_story + } + } + } + } + `, + }, + { + direction: 'forward', + getConnectionFromProps(props: { user: {feed: any}}) { + return props.user && props.user.feed; + }, + getFragmentVariables(prevVars, totalCount) { + return { + ...prevVars, + count: totalCount, + }; + }, + getVariables(props, {count, cursor}, fragmentVariables) { + return { + count, + cursor, + // in most cases, for variables other than connection filters like + // `first`, `after`, etc. you may want to use the previous values. + orderBy: fragmentVariables.orderBy, + }; + }, + query: graphql` + query FeedPaginationQuery( + $count: Int! + $cursor: String + $orderby: String! + ) { + user { + # You could reference the fragment defined previously. + ...Feed_user + } + } + ` + } +); + +// ~~~~~~~~~~~~~~~~~~~~~ +// Modern Mutations +// ~~~~~~~~~~~~~~~~~~~~~ +const mutation = graphql` +mutation MarkReadNotificationMutation( + $input: MarkReadNotificationData! +) { + markReadNotification(data: $input) { + notification { + seenState + } + } +} +`; + +const optimisticResponse = { + markReadNotification: { + notification: { + seenState: 'SEEN', + }, + }, +}; + +const configs = [{ + type: 'NODE_DELETE' as 'NODE_DELETE', + deletedIDFieldName: 'destroyedShipId', +}, { + type: 'RANGE_ADD' as 'RANGE_ADD', + parentID: 'shipId', + connectionInfo: [{ + key: 'AddShip_ships', + rangeBehavior: 'append', + }], + edgeName: 'newShipEdge', +}, { + type: 'RANGE_DELETE' as 'RANGE_DELETE', + parentID: 'todoId', + connectionKeys: [{ + key: 'RemoveTags_tags', + rangeBehavior: 'append', + }], + pathToConnection: ['todo', 'tags'], + deletedIDFieldName: 'removedTagId' +}]; + +function markNotificationAsRead(source: string, storyID: string) { + const variables = { + input: { + source, + storyID, + }, + }; + + commitMutation( + modernEnvironment, + { + configs, + mutation, + optimisticResponse, + variables, + onCompleted: (response, errors) => { + console.log('Response received from server.'); + }, + onError: err => console.error(err), + }, + ); +} + +// ~~~~~~~~~~~~~~~~~~~~~ +// Modern Subscriptions +// ~~~~~~~~~~~~~~~~~~~~~ +const subscription = graphql` + subscription MarkReadNotificationSubscription( + $storyID: ID! + ) { + markReadNotification(storyID: $storyID) { + notification { + seenState + } + } + } +`; +const variables = { + storyID: '123', +}; +requestSubscription( + modernEnvironment, // see Environment docs + { + subscription, + variables, + // optional but recommended: + onCompleted: () => {}, + onError: error => console.error(error), + // example of a custom updater + updater: store => { + // Get the notification + const rootField = store.getRootField('markReadNotification'); + const notification = !!rootField && rootField.getLinkedRecord('notification'); + // Add it to a connection + const viewer = store.getRoot().getLinkedRecord('viewer'); + const notifications = + ConnectionHandler.getConnection(viewer, 'notifications'); + const edge = ConnectionHandler.createEdge( + store, + notifications, + notification, + '', + ); + ConnectionHandler.insertEdgeAfter(notifications, edge); + }, + } +); + +//////////////////////////// +// RELAY COMPAT TESTS +/////////////////////////// +import { + QueryRenderer as CompatQueryRenderer, + createFragmentContainer as createFragmentContainerCompat +} from "react-relay/compat"; + +// TODO? This is all more or less identical to modern... + +//////////////////////////// +// RELAY-CLASSIC TESTS +/////////////////////////// +import * as Relay from "react-relay/classic"; + +interface Props { + text: string; + userId: string; +} + +export default class AddTweetMutation extends Relay.Mutation { + getMutation() { + return Relay.QL`mutation{addTweet}`; + } + + getFatQuery() { return Relay.QL` fragment on AddTweetPayload { tweetEdge user } - ` + `; } - getConfigs () { + getConfigs() { return [{ type: "RANGE_ADD", parentName: "user", @@ -34,19 +387,19 @@ export default class AddTweetMutation extends Relay.Mutation { rangeBehaviors: { "": "append", }, - }] + }]; } - getVariables () { - return this.props + getVariables() { + return this.props; } } interface ArtworkProps { artwork: { title: string - }, - relay: Relay.RelayProp, + }; + relay: Relay.RelayProp; } class Artwork extends React.Component { @@ -55,7 +408,7 @@ class Artwork extends React.Component { {this.props.artwork.title} - ) + ); } } @@ -67,7 +420,7 @@ const ArtworkContainer = Relay.createContainer(Artwork, { } ` } -}) +}); class StubbedArtwork extends React.Component { render() { @@ -83,10 +436,10 @@ class StubbedArtwork extends React.Component { setVariables: () => {}, forceFetch: () => {}, hasOptimisticUpdate: () => false, - getPendingTransactions: (): Relay.RelayMutationTransaction[] => undefined, + getPendingTransactions: (): any => undefined, commitUpdate: () => {}, } - } - return + }; + return ; } } diff --git a/types/react-relay/tsconfig.json b/types/react-relay/tsconfig.json index 90680fbafc..5447ff74ca 100644 --- a/types/react-relay/tsconfig.json +++ b/types/react-relay/tsconfig.json @@ -7,7 +7,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -19,6 +19,10 @@ }, "files": [ "index.d.ts", - "react-relay-tests.tsx" + "react-relay-tests.tsx", + "react-relay-classic-tests.tsx", + "classic.d.ts", + "modern.d.ts", + "compat.d.ts" ] -} \ No newline at end of file +} diff --git a/types/react-relay/v1/tslint.json b/types/react-relay/tslint.json similarity index 100% rename from types/react-relay/v1/tslint.json rename to types/react-relay/tslint.json diff --git a/types/react-relay/v1/index.d.ts b/types/react-relay/v1/index.d.ts deleted file mode 100644 index e214a9a441..0000000000 --- a/types/react-relay/v1/index.d.ts +++ /dev/null @@ -1,23 +0,0 @@ -// Type definitions for react-relay 1.3 -// Project: https://github.com/facebook/relay -// Definitions by: Johannes Schickling , Matt Martin -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -// TypeScript Version: 2.4 - -import { RelayRuntimeTypes } from 'relay-runtime'; -import * as ReactRelayModernTypes from './lib/react-relay-modern'; - -// ~~~~~~~~~~~~~~~~~~~~~ -// React-Relay Modern -// ~~~~~~~~~~~~~~~~~~~~~ -export import QueryRenderer = ReactRelayModernTypes.ReactRelayQueryRenderer; -export import createFragmentContainer = ReactRelayModernTypes.createFragmentContainer; -export import createPaginationContainer = ReactRelayModernTypes.createPaginationContainer; -export import createRefetchContainer = ReactRelayModernTypes.createRefetchContainer; -export import graphql = ReactRelayModernTypes.graphql; -export import commitLocalUpdate = RelayRuntimeTypes.commitLocalUpdate; -export import commitMutation = RelayRuntimeTypes.commitRelayModernMutation; -export import fetchQuery = RelayRuntimeTypes.fetchRelayModernQuery; -export import requestSubscription = RelayRuntimeTypes.requestRelaySubscription; -// exported for convenience -export import ModernTypes = ReactRelayModernTypes; diff --git a/types/react-relay/v1/react-relay-tests.tsx b/types/react-relay/v1/react-relay-tests.tsx deleted file mode 100644 index 50506ac111..0000000000 --- a/types/react-relay/v1/react-relay-tests.tsx +++ /dev/null @@ -1,445 +0,0 @@ -import * as React from "react"; -import { - Environment, - Network, - RecordSource, - Store, - ConnectionHandler, -} from 'relay-runtime'; - -//////////////////////////// -// RELAY MODERN TESTS -/////////////////////////// -import { - graphql, - commitMutation, - createFragmentContainer, - createPaginationContainer, - createRefetchContainer, - requestSubscription, - QueryRenderer, - ModernTypes, -} from "react-relay"; - -// ~~~~~~~~~~~~~~~~~~~~~ -// Modern Environment -// ~~~~~~~~~~~~~~~~~~~~~ -function fetchQuery(operation: any, variables: any, cacheConfig: {}) { - return fetch('/graphql'); -} -const network = Network.create(fetchQuery); -const source = new RecordSource(); -const store = new Store(source); -const modernEnvironment = new Environment({ network, store }); - -// ~~~~~~~~~~~~~~~~~~~~~ -// Modern QueryRenderer -// ~~~~~~~~~~~~~~~~~~~~~ -const MyQueryRenderer = (props: { name: string}) => ( - { - if (error) { - return
{error.message}
; - } else if (props) { - return
{props.name} is great!
; - } - return
Loading
; - }} - /> -); - -// ~~~~~~~~~~~~~~~~~~~~~ -// Modern FragmentContainer -// ~~~~~~~~~~~~~~~~~~~~~ -const MyFragmentContainer = createFragmentContainer( - class TodoListView extends React.Component { - render() { - return
; - } - }, - { - item: graphql` - fragment TodoItem_item on Todo { - text - isComplete - } - `, - } -); - -// ~~~~~~~~~~~~~~~~~~~~~ -// Modern RefetchContainer -// ~~~~~~~~~~~~~~~~~~~~~ -interface StoryInterface { id: string; } -interface FeedStoriesProps { - relay: ModernTypes.RelayRefetchProp; - feed: { - stories: { edges: Array<{ node: StoryInterface }> } - }; -} -class Story extends React.Component<{ story: StoryInterface }> {} -class FeedStories extends React.Component { - render() { - return ( -
- {this.props.feed.stories.edges.map( - edge => - )} -
- ); - } - - _loadMore() { - // Increments the number of stories being rendered by 10. - const refetchVariables = (fragmentVariables: {count: number }) => ({ - count: fragmentVariables.count + 10, - }); - this.props.relay.refetch(refetchVariables); - } - } - -const FeedRefetchContainer = createRefetchContainer( - FeedStories, - { - feed: graphql.experimental` - fragment FeedStories_feed on Feed - @argumentDefinitions( - count: {type: "Int", defaultValue: 10} - ) { - stories(first: $count) { - edges { - node { - id - ...Story_story - } - } - } - } - ` - }, - graphql.experimental` - query FeedStoriesRefetchQuery($count: Int) { - feed { - ...FeedStories_feed @arguments(count: $count) - } - } - `, - ); - -// ~~~~~~~~~~~~~~~~~~~~~ -// Modern PaginationContainer -// ~~~~~~~~~~~~~~~~~~~~~ -interface FeedProps { - user: { feed: { edges: Array<{ node: StoryInterface}>}}; - relay: ModernTypes.RelayPaginationProp; -} -class Feed extends React.Component { - render() { - return (
- {this.props.user.feed.edges.map( - edge => - )} -
); - } - - _loadMore() { - if (!this.props.relay.hasMore() || this.props.relay.isLoading()) { - return; - } - - this.props.relay.loadMore( - 10, // Fetch the next 10 feed items - e => { - console.log(e); - }, - ); - } -} - -const FeedPaginationContainer = createPaginationContainer( - Feed, - { - user: graphql` - fragment Feed_user on User { - feed( - first: $count - after: $cursor - orderby: $orderBy # other variables - ) @connection(key: "Feed_feed") { - edges { - node { - id - ...Story_story - } - } - } - } - `, - }, - { - direction: 'forward', - getConnectionFromProps(props: { user: {feed: any}}) { - return props.user && props.user.feed; - }, - getFragmentVariables(prevVars, totalCount) { - return { - ...prevVars, - count: totalCount, - }; - }, - getVariables(props, {count, cursor}, fragmentVariables) { - return { - count, - cursor, - // in most cases, for variables other than connection filters like - // `first`, `after`, etc. you may want to use the previous values. - orderBy: fragmentVariables.orderBy, - }; - }, - query: graphql` - query FeedPaginationQuery( - $count: Int! - $cursor: String - $orderby: String! - ) { - user { - # You could reference the fragment defined previously. - ...Feed_user - } - } - ` - } -); - -// ~~~~~~~~~~~~~~~~~~~~~ -// Modern Mutations -// ~~~~~~~~~~~~~~~~~~~~~ -const mutation = graphql` -mutation MarkReadNotificationMutation( - $input: MarkReadNotificationData! -) { - markReadNotification(data: $input) { - notification { - seenState - } - } -} -`; - -const optimisticResponse = { - markReadNotification: { - notification: { - seenState: 'SEEN', - }, - }, -}; - -const configs = [{ - type: 'NODE_DELETE' as 'NODE_DELETE', - deletedIDFieldName: 'destroyedShipId', -}, { - type: 'RANGE_ADD' as 'RANGE_ADD', - parentID: 'shipId', - connectionInfo: [{ - key: 'AddShip_ships', - rangeBehavior: 'append', - }], - edgeName: 'newShipEdge', -}, { - type: 'RANGE_DELETE' as 'RANGE_DELETE', - parentID: 'todoId', - connectionKeys: [{ - key: 'RemoveTags_tags', - rangeBehavior: 'append', - }], - pathToConnection: ['todo', 'tags'], - deletedIDFieldName: 'removedTagId' -}]; - -function markNotificationAsRead(source: string, storyID: string) { - const variables = { - input: { - source, - storyID, - }, - }; - - commitMutation( - modernEnvironment, - { - configs, - mutation, - optimisticResponse, - variables, - onCompleted: (response, errors) => { - console.log('Response received from server.'); - }, - onError: err => console.error(err), - }, - ); -} - -// ~~~~~~~~~~~~~~~~~~~~~ -// Modern Subscriptions -// ~~~~~~~~~~~~~~~~~~~~~ -const subscription = graphql` - subscription MarkReadNotificationSubscription( - $storyID: ID! - ) { - markReadNotification(storyID: $storyID) { - notification { - seenState - } - } - } -`; -const variables = { - storyID: '123', -}; -requestSubscription( - modernEnvironment, // see Environment docs - { - subscription, - variables, - // optional but recommended: - onCompleted: () => {}, - onError: error => console.error(error), - // example of a custom updater - updater: store => { - // Get the notification - const rootField = store.getRootField('markReadNotification'); - const notification = !!rootField && rootField.getLinkedRecord('notification'); - // Add it to a connection - const viewer = store.getRoot().getLinkedRecord('viewer'); - const notifications = - ConnectionHandler.getConnection(viewer, 'notifications'); - const edge = ConnectionHandler.createEdge( - store, - notifications, - notification, - '', - ); - ConnectionHandler.insertEdgeAfter(notifications, edge); - }, - } -); - -//////////////////////////// -// RELAY COMPAT TESTS -/////////////////////////// -import { - QueryRenderer as CompatQueryRenderer, - createFragmentContainer as createFragmentContainerCompat -} from "react-relay/compat"; - -// TODO? This is all more or less identical to modern... - -//////////////////////////// -// RELAY-CLASSIC TESTS -/////////////////////////// -import * as Relay from "react-relay/classic"; - -interface Props { - text: string; - userId: string; -} - -export default class AddTweetMutation extends Relay.Mutation { - getMutation() { - return Relay.QL`mutation{addTweet}`; - } - - getFatQuery() { - return Relay.QL` - fragment on AddTweetPayload { - tweetEdge - user - } - `; - } - - getConfigs() { - return [{ - type: "RANGE_ADD", - parentName: "user", - parentID: this.props.userId, - connectionName: "tweets", - edgeName: "tweetEdge", - rangeBehaviors: { - "": "append", - }, - }]; - } - - getVariables() { - return this.props; - } -} - -interface ArtworkProps { - artwork: { - title: string - }; - relay: Relay.RelayProp; -} - -class Artwork extends React.Component { - render() { - return ( - - {this.props.artwork.title} - - ); - } -} - -const ArtworkContainer = Relay.createContainer(Artwork, { - fragments: { - artwork: () => Relay.QL` - fragment on Artwork { - title - } - ` - } -}); - -class StubbedArtwork extends React.Component { - render() { - const props = { - artwork: { title: "CHAMPAGNE FORMICA FLAG" }, - relay: { - route: { - name: "champagne" - }, - variables: { - artworkID: "champagne-formica-flag", - }, - setVariables: () => {}, - forceFetch: () => {}, - hasOptimisticUpdate: () => false, - getPendingTransactions: (): any => undefined, - commitUpdate: () => {}, - } - }; - return ; - } -} diff --git a/types/react-relay/v1/tsconfig.json b/types/react-relay/v1/tsconfig.json deleted file mode 100644 index 37049aa13e..0000000000 --- a/types/react-relay/v1/tsconfig.json +++ /dev/null @@ -1,33 +0,0 @@ -{ - "compilerOptions": { - "module": "commonjs", - "lib": [ - "es6", - "dom" - ], - "noImplicitAny": true, - "noImplicitThis": true, - "strictNullChecks": true, - "baseUrl": "../../", - "typeRoots": [ - "../../" - ], - "types": [], - "noEmit": true, - "forceConsistentCasingInFileNames": true, - "jsx": "react", - "paths": { - "react-relay": ["react-relay/v1"], - "react-relay/*": ["react-relay/v1/*"], - "react-relay/classic": ["react-relay/v1/classic.d"], - "react-relay/compat": ["react-relay/v1/compat.d"] - } - }, - "files": [ - "index.d.ts", - "react-relay-tests.tsx", - "lib/react-relay-classic.d.ts", - "lib/react-relay-modern.d.ts", - "lib/react-relay-compat.d.ts" - ] -} From b438270ef30cba0eba981947fdbfdd0d579076a5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Eloy=20Dur=C3=A1n?= Date: Wed, 11 Oct 2017 15:15:43 +0200 Subject: [PATCH 050/506] [Relay] Reformat all files using prettier. prettier --parser typescript --tab-width 4 --semi --trailing-comma es5 \ --write --print-width 120 \ types/{react-relay,relay-runtime}/*.ts* --- types/react-relay/classic.d.ts | 91 ++--- types/react-relay/compat.d.ts | 16 +- types/react-relay/index.d.ts | 4 +- types/react-relay/modern.d.ts | 59 ++- .../react-relay/react-relay-classic-tests.tsx | 75 ++-- types/react-relay/react-relay-tests.tsx | 350 ++++++++---------- types/relay-runtime/index.d.ts | 291 +++++++-------- types/relay-runtime/relay-runtime-tests.tsx | 29 +- 8 files changed, 422 insertions(+), 493 deletions(-) diff --git a/types/react-relay/classic.d.ts b/types/react-relay/classic.d.ts index 02517b7e80..9345199d27 100644 --- a/types/react-relay/classic.d.ts +++ b/types/react-relay/classic.d.ts @@ -1,5 +1,5 @@ -import * as React from 'react'; -import { RelayCommonTypes } from 'relay-runtime'; +import * as React from "react"; +import { RelayCommonTypes } from "relay-runtime"; // ~~~~~~~~~~~~~~~~~~~~~ // Maybe Fix @@ -7,7 +7,11 @@ import { RelayCommonTypes } from 'relay-runtime'; export type StoreReaderData = any; export type StoreReaderOptions = any; export type RelayStoreData = any; -export interface RelayQuery { Fragment: any; Node: any; Root: any; } +export interface RelayQuery { + Fragment: any; + Node: any; + Root: any; +} // ~~~~~~~~~~~~~~~~~~~~~ // Environment @@ -16,33 +20,27 @@ export interface FragmentResolver { dispose(): void; resolve( fragment: RelayQuery["Fragment"], - dataIDs: RelayCommonTypes.DataID | RelayCommonTypes.DataID[], + dataIDs: RelayCommonTypes.DataID | RelayCommonTypes.DataID[] ): StoreReaderData | StoreReaderData[] | undefined | null; } export interface RelayEnvironmentInterface { forceFetch( querySet: RelayCommonTypes.RelayQuerySet, - onReadyStateChange: RelayCommonTypes.ReadyStateChangeCallback, + onReadyStateChange: RelayCommonTypes.ReadyStateChangeCallback ): RelayCommonTypes.Abortable; - getFragmentResolver( - fragment: RelayQuery["Fragment"], - onNext: () => void, - ): FragmentResolver; + getFragmentResolver(fragment: RelayQuery["Fragment"], onNext: () => void): FragmentResolver; getStoreData(): RelayStoreData; primeCache( querySet: RelayCommonTypes.RelayQuerySet, - onReadyStateChange: RelayCommonTypes.ReadyStateChangeCallback, + onReadyStateChange: RelayCommonTypes.ReadyStateChangeCallback ): RelayCommonTypes.Abortable; read( node: RelayQuery["Node"], dataID: RelayCommonTypes.DataID, - options?: StoreReaderOptions, + options?: StoreReaderOptions ): StoreReaderData | void; - readQuery( - root: RelayQuery["Root"], - options?: StoreReaderOptions, - ): StoreReaderData[] | void; + readQuery(root: RelayQuery["Root"], options?: StoreReaderOptions): StoreReaderData[] | void; } // ~~~~~~~~~~~~~~~~~~~~~ @@ -75,12 +73,12 @@ export interface RelayQueryRequestResolve { } export type RelayMutationStatus = - 'UNCOMMITTED' | // Transaction hasn't yet been sent to the server. Transaction can be committed or rolled back. - 'COMMIT_QUEUED' | // Transaction was committed but another transaction with the same collision key is pending, so the transaction has been queued to send to the server. - 'COLLISION_COMMIT_FAILED' | // Transaction was queued for commit but another transaction with the same collision key failed. All transactions in the collision queue, + | "UNCOMMITTED" // Transaction hasn't yet been sent to the server. Transaction can be committed or rolled back. + | "COMMIT_QUEUED" // Transaction was committed but another transaction with the same collision key is pending, so the transaction has been queued to send to the server. + | "COLLISION_COMMIT_FAILED" // Transaction was queued for commit but another transaction with the same collision key failed. All transactions in the collision queue, // including this one, have been failed. Transaction can be recommitted or rolled back. - 'COMMITTING' | // Transaction is waiting for the server to respond. - 'COMMIT_FAILED'; + | "COMMITTING" // Transaction is waiting for the server to respond. + | "COMMIT_FAILED"; export class RelayMutationTransaction { applyOptimistic(): RelayMutationTransaction; @@ -118,13 +116,16 @@ export class DefaultNetworkLayer implements RelayNetworkLayer { supports(...options: string[]): boolean; } -export function createContainer(component: React.ComponentClass | React.StatelessComponent, params?: CreateContainerOpts): RelayContainerClass; +export function createContainer( + component: React.ComponentClass | React.StatelessComponent, + params?: CreateContainerOpts +): RelayContainerClass; export function injectNetworkLayer(networkLayer: RelayNetworkLayer): any; export function isContainer(component: React.ComponentClass): boolean; export function QL(...args: any[]): string; export class Route { - constructor(params?: RelayVariables) + constructor(params?: RelayVariables); } /** @@ -155,7 +156,7 @@ export interface Store { export const Store: Store; -export class RootContainer extends React.Component { } +export class RootContainer extends React.Component {} export interface RootContainerProps extends React.Props { Component: RelayContainerClass; @@ -165,13 +166,13 @@ export interface RootContainerProps extends React.Props { renderFailure?(error: Error, retry: (...args: any[]) => any): JSX.Element; } -export class Renderer extends React.Component { } +export class Renderer extends React.Component {} export interface RendererProps { Container: RelayContainerClass; // Relay container that defines fragments and the view to render. forceFetch?: boolean; // Whether to send a server request regardless of data available on the client. queryConfig: Route; // `QueryConfig` or `Relay.Route` that defines the query roots. - environment: Store; // An instance of `Relay.Environment` or any object that implements the `RelayEnvironment` interface. + environment: Store; // An instance of `Relay.Environment` or any object that implements the `RelayEnvironment` interface. render?: RenderCallback; // Called to render when data requirements are being fulfilled. onReadyStateChange?: OnReadyStateChange; } @@ -186,28 +187,30 @@ export interface RenderStateConfig { export type RenderCallback = (renderState: RenderStateConfig) => any; export type ReadyStateEvent = - 'ABORT' | - 'CACHE_RESTORED_REQUIRED' | - 'CACHE_RESTORE_FAILED' | - 'CACHE_RESTORE_START' | - 'NETWORK_QUERY_ERROR' | - 'NETWORK_QUERY_RECEIVED_ALL' | - 'NETWORK_QUERY_RECEIVED_REQUIRED' | - 'NETWORK_QUERY_START' | - 'STORE_FOUND_ALL' | - 'STORE_FOUND_REQUIRED'; + | "ABORT" + | "CACHE_RESTORED_REQUIRED" + | "CACHE_RESTORE_FAILED" + | "CACHE_RESTORE_START" + | "NETWORK_QUERY_ERROR" + | "NETWORK_QUERY_RECEIVED_ALL" + | "NETWORK_QUERY_RECEIVED_REQUIRED" + | "NETWORK_QUERY_START" + | "STORE_FOUND_ALL" + | "STORE_FOUND_REQUIRED"; -export type OnReadyStateChange = (readyState: { - ready: boolean, - done: boolean, - stale: boolean, - error?: Error, - events: ReadyStateEvent[], - aborted: boolean -}) => void; +export type OnReadyStateChange = ( + readyState: { + ready: boolean; + done: boolean; + stale: boolean; + error?: Error; + events: ReadyStateEvent[]; + aborted: boolean; + } +) => void; export interface RelayProp { - readonly route: { name: string; }; // incomplete, also has params and queries + readonly route: { name: string }; // incomplete, also has params and queries readonly variables: any; readonly pendingVariables?: any; setVariables(variables: any, onReadyStateChange?: OnReadyStateChange): void; diff --git a/types/react-relay/compat.d.ts b/types/react-relay/compat.d.ts index e16bbb01f9..74f7f55a03 100644 --- a/types/react-relay/compat.d.ts +++ b/types/react-relay/compat.d.ts @@ -1,6 +1,6 @@ -import { RelayRuntimeTypes, RelayCommonTypes } from 'relay-runtime'; -import { RelayEnvironmentInterface } from 'react-relay/classic'; -import {} from 'react-relay/modern'; +import { RelayRuntimeTypes, RelayCommonTypes } from "relay-runtime"; +import { RelayEnvironmentInterface } from "react-relay/classic"; +import {} from "react-relay/modern"; // ~~~~~~~~~~~~~~~~~~~~~ // Maybe Fix @@ -34,20 +34,22 @@ export type CompatEnvironment = RelayRuntimeTypes.Environment | RelayClassicEnvi // ~~~~~~~~~~~~~~~~~~~~~ export function commitUpdate( environment: CompatEnvironment, - config: RelayRuntimeTypes.MutationConfig, + config: RelayRuntimeTypes.MutationConfig ): RelayCommonTypes.Disposable; export function applyUpdate( environment: CompatEnvironment, - config: RelayRuntimeTypes.OptimisticMutationConfig, + config: RelayRuntimeTypes.OptimisticMutationConfig ): RelayCommonTypes.Disposable; // ~~~~~~~~~~~~~~~~~~~~~ // RelayCompatContainer // ~~~~~~~~~~~~~~~~~~~~~ -export interface GeneratedNodeMap { [key: string]: RelayCommonTypes.GraphQLTaggedNode; } +export interface GeneratedNodeMap { + [key: string]: RelayCommonTypes.GraphQLTaggedNode; +} export function createContainer( Component: ReactBaseComponent, - fragmentSpec: RelayCommonTypes.GraphQLTaggedNode | GeneratedNodeMap, + fragmentSpec: RelayCommonTypes.GraphQLTaggedNode | GeneratedNodeMap ): ReactFragmentComponent; // ~~~~~~~~~~~~~~~~~~~~~ diff --git a/types/react-relay/index.d.ts b/types/react-relay/index.d.ts index 72a661e6b7..30cb29b3e3 100644 --- a/types/react-relay/index.d.ts +++ b/types/react-relay/index.d.ts @@ -4,8 +4,8 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.4 -import { RelayRuntimeTypes } from 'relay-runtime'; -import * as ReactRelayModernTypes from 'react-relay/modern'; +import { RelayRuntimeTypes } from "relay-runtime"; +import * as ReactRelayModernTypes from "react-relay/modern"; // ~~~~~~~~~~~~~~~~~~~~~ // React-Relay Modern diff --git a/types/react-relay/modern.d.ts b/types/react-relay/modern.d.ts index f6d1eb0381..13b43bf449 100644 --- a/types/react-relay/modern.d.ts +++ b/types/react-relay/modern.d.ts @@ -1,5 +1,5 @@ -import * as React from 'react'; -import { RelayCommonTypes, RelayRuntimeTypes } from 'relay-runtime'; +import * as React from "react"; +import { RelayCommonTypes, RelayRuntimeTypes } from "relay-runtime"; // ~~~~~~~~~~~~~~~~~~~~~ // Maybe Fix @@ -21,23 +21,20 @@ export interface RelayProp { // ~~~~~~~~~~~~~~~~~~~~~ // RelayQL // ~~~~~~~~~~~~~~~~~~~~~ -export function RelayQL( - strings: string[], - ...substitutions: any[] -): RelayCommonTypes.RelayConcreteNode; +export function RelayQL(strings: string[], ...substitutions: any[]): RelayCommonTypes.RelayConcreteNode; // ~~~~~~~~~~~~~~~~~~~~~ // RelayModernGraphQLTag // ~~~~~~~~~~~~~~~~~~~~~ -export interface GeneratedNodeMap { [key: string]: GraphQLTaggedNode; } +export interface GeneratedNodeMap { + [key: string]: GraphQLTaggedNode; +} export type GraphQLTaggedNode = - (() => ConcreteFragment | ConcreteBatch) + | (() => ConcreteFragment | ConcreteBatch) | { - modern(): ConcreteFragment | ConcreteBatch, - classic(relayQL: typeof RelayQL): - | ConcreteFragmentDefinition - | ConcreteOperationDefinition, - }; + modern(): ConcreteFragment | ConcreteBatch; + classic(relayQL: typeof RelayQL): ConcreteFragmentDefinition | ConcreteOperationDefinition; + }; /** * Runtime function to correspond to the `graphql` tagged template function. * All calls to this function should be transformed by the plugin. @@ -67,14 +64,14 @@ export interface ReadyState { export interface QueryRendererState { readyState: ReadyState; } -export class ReactRelayQueryRenderer extends React.Component { } +export class ReactRelayQueryRenderer extends React.Component {} // ~~~~~~~~~~~~~~~~~~~~~ // createFragmentContainer // ~~~~~~~~~~~~~~~~~~~~~ export function createFragmentContainer( Component: ReactBaseComponent, - fragmentSpec: GraphQLTaggedNode | GeneratedNodeMap, + fragmentSpec: GraphQLTaggedNode | GeneratedNodeMap ): ReactBaseComponent; // ~~~~~~~~~~~~~~~~~~~~~ @@ -91,38 +88,38 @@ export interface ConnectionData { pageInfo?: PageInfo; } export type RelayPaginationProp = RelayProp & { - hasMore(): boolean, - isLoading(): boolean, + hasMore(): boolean; + isLoading(): boolean; loadMore( pageSize: number, callback: (error?: Error) => void, - options?: RefetchOptions, - ): RelayCommonTypes.Disposable | undefined | null, + options?: RefetchOptions + ): RelayCommonTypes.Disposable | undefined | null; refetchConnection( totalCount: number, callback: (error?: Error) => void, - refetchVariables?: RelayCommonTypes.Variables, - ): RelayCommonTypes.Disposable | undefined | null, + refetchVariables?: RelayCommonTypes.Variables + ): RelayCommonTypes.Disposable | undefined | null; }; export function FragmentVariablesGetter( prevVars: RelayCommonTypes.Variables, - totalCount: number, + totalCount: number ): RelayCommonTypes.Variables; export interface ConnectionConfig { - direction?: 'backward' | 'forward'; + direction?: "backward" | "forward"; getConnectionFromProps?(props: object): ConnectionData | undefined | null; getFragmentVariables?: typeof FragmentVariablesGetter; getVariables( props: { [propName: string]: any }, - paginationInfo: { count: number, cursor?: string }, - fragmentVariables: RelayCommonTypes.Variables, + paginationInfo: { count: number; cursor?: string }, + fragmentVariables: RelayCommonTypes.Variables ): RelayCommonTypes.Variables; query: GraphQLTaggedNode; } export function createPaginationContainer( Component: ReactBaseComponent, fragmentSpec: GraphQLTaggedNode | GeneratedNodeMap, - connectionConfig: ConnectionConfig, + connectionConfig: ConnectionConfig ): ReactBaseComponent; // ~~~~~~~~~~~~~~~~~~~~~ @@ -134,14 +131,16 @@ export interface RefetchOptions { } export type RelayRefetchProp = RelayProp & { refetch( - refetchVariables: RelayCommonTypes.Variables | ((fragmentVariables: RelayCommonTypes.Variables) => RelayCommonTypes.Variables), + refetchVariables: + | RelayCommonTypes.Variables + | ((fragmentVariables: RelayCommonTypes.Variables) => RelayCommonTypes.Variables), renderVariables?: RelayCommonTypes.Variables, callback?: (error?: Error) => void, - options?: RefetchOptions, - ): RelayCommonTypes.Disposable, + options?: RefetchOptions + ): RelayCommonTypes.Disposable; }; export function createRefetchContainer( Component: ReactBaseComponent, fragmentSpec: GraphQLTaggedNode | GeneratedNodeMap, - taggedNode: GraphQLTaggedNode, + taggedNode: GraphQLTaggedNode ): ReactBaseComponent; diff --git a/types/react-relay/react-relay-classic-tests.tsx b/types/react-relay/react-relay-classic-tests.tsx index b7531598eb..7aae267dfc 100644 --- a/types/react-relay/react-relay-classic-tests.tsx +++ b/types/react-relay/react-relay-classic-tests.tsx @@ -1,61 +1,58 @@ -import * as React from "react" -import * as Relay from "react-relay/classic" +import * as React from "react"; +import * as Relay from "react-relay/classic"; interface Props { - text: string - userId: string + text: string; + userId: string; } -interface Response { -} +// tslint:disable-next-line no-empty-interface +interface Response {} export default class AddTweetMutation extends Relay.Mutation { - - getMutation () { - return Relay.QL`mutation{addTweet}` + getMutation() { + return Relay.QL`mutation{addTweet}`; } - getFatQuery () { + getFatQuery() { return Relay.QL` fragment on AddTweetPayload { tweetEdge user } - ` + `; } - getConfigs () { - return [{ - type: "RANGE_ADD", - parentName: "user", - parentID: this.props.userId, - connectionName: "tweets", - edgeName: "tweetEdge", - rangeBehaviors: { - "": "append", + getConfigs() { + return [ + { + type: "RANGE_ADD", + parentName: "user", + parentID: this.props.userId, + connectionName: "tweets", + edgeName: "tweetEdge", + rangeBehaviors: { + "": "append", + }, }, - }] + ]; } - getVariables () { - return this.props + getVariables() { + return this.props; } } interface ArtworkProps { artwork: { - title: string - }, - relay: Relay.RelayProp, + title: string; + }; + relay: Relay.RelayProp; } class Artwork extends React.Component { render() { - return ( - - {this.props.artwork.title} - - ) + return {this.props.artwork.title}; } } @@ -65,9 +62,9 @@ const ArtworkContainer = Relay.createContainer(Artwork, { fragment on Artwork { title } - ` - } -}) + `, + }, +}); class StubbedArtwork extends React.Component { render() { @@ -75,7 +72,7 @@ class StubbedArtwork extends React.Component { artwork: { title: "CHAMPAGNE FORMICA FLAG" }, relay: { route: { - name: "champagne" + name: "champagne", }, variables: { artworkID: "champagne-formica-flag", @@ -83,10 +80,10 @@ class StubbedArtwork extends React.Component { setVariables: () => {}, forceFetch: () => {}, hasOptimisticUpdate: () => false, - getPendingTransactions: (): Relay.RelayMutationTransaction[] => undefined, + getPendingTransactions: (): Relay.RelayMutationTransaction[] => [], commitUpdate: () => {}, - } - } - return + }, + }; + return ; } } diff --git a/types/react-relay/react-relay-tests.tsx b/types/react-relay/react-relay-tests.tsx index 50506ac111..97cc5d47d9 100644 --- a/types/react-relay/react-relay-tests.tsx +++ b/types/react-relay/react-relay-tests.tsx @@ -1,11 +1,5 @@ import * as React from "react"; -import { - Environment, - Network, - RecordSource, - Store, - ConnectionHandler, -} from 'relay-runtime'; +import { Environment, Network, RecordSource, Store, ConnectionHandler } from "relay-runtime"; //////////////////////////// // RELAY MODERN TESTS @@ -25,7 +19,7 @@ import { // Modern Environment // ~~~~~~~~~~~~~~~~~~~~~ function fetchQuery(operation: any, variables: any, cacheConfig: {}) { - return fetch('/graphql'); + return fetch("/graphql"); } const network = Network.create(fetchQuery); const source = new RecordSource(); @@ -35,28 +29,28 @@ const modernEnvironment = new Environment({ network, store }); // ~~~~~~~~~~~~~~~~~~~~~ // Modern QueryRenderer // ~~~~~~~~~~~~~~~~~~~~~ -const MyQueryRenderer = (props: { name: string}) => ( - { - if (error) { - return
{error.message}
; - } else if (props) { - return
{props.name} is great!
; - } - return
Loading
; - }} - /> +const MyQueryRenderer = (props: { name: string }) => ( + { + if (error) { + return
{error.message}
; + } else if (props) { + return
{props.name} is great!
; + } + return
Loading
; + }} + /> ); // ~~~~~~~~~~~~~~~~~~~~~ @@ -65,14 +59,14 @@ const MyQueryRenderer = (props: { name: string}) => ( const MyFragmentContainer = createFragmentContainer( class TodoListView extends React.Component { render() { - return
; + return
; } }, { item: graphql` fragment TodoItem_item on Todo { - text - isComplete + text + isComplete } `, } @@ -81,84 +75,75 @@ const MyFragmentContainer = createFragmentContainer( // ~~~~~~~~~~~~~~~~~~~~~ // Modern RefetchContainer // ~~~~~~~~~~~~~~~~~~~~~ -interface StoryInterface { id: string; } +interface StoryInterface { + id: string; +} interface FeedStoriesProps { relay: ModernTypes.RelayRefetchProp; feed: { - stories: { edges: Array<{ node: StoryInterface }> } + stories: { edges: Array<{ node: StoryInterface }> }; }; } class Story extends React.Component<{ story: StoryInterface }> {} class FeedStories extends React.Component { render() { - return ( -
- {this.props.feed.stories.edges.map( - edge => - )} -
- ); + return ( +
+ {this.props.feed.stories.edges.map(edge => )} +
+ ); } _loadMore() { - // Increments the number of stories being rendered by 10. - const refetchVariables = (fragmentVariables: {count: number }) => ({ - count: fragmentVariables.count + 10, - }); - this.props.relay.refetch(refetchVariables); + // Increments the number of stories being rendered by 10. + const refetchVariables = (fragmentVariables: { count: number }) => ({ + count: fragmentVariables.count + 10, + }); + this.props.relay.refetch(refetchVariables); } - } +} const FeedRefetchContainer = createRefetchContainer( FeedStories, { - feed: graphql.experimental` - fragment FeedStories_feed on Feed - @argumentDefinitions( - count: {type: "Int", defaultValue: 10} - ) { - stories(first: $count) { - edges { - node { - id - ...Story_story - } + feed: graphql.experimental` + fragment FeedStories_feed on Feed @argumentDefinitions(count: { type: "Int", defaultValue: 10 }) { + stories(first: $count) { + edges { + node { + id + ...Story_story + } + } + } } - } - } - ` + `, }, graphql.experimental` - query FeedStoriesRefetchQuery($count: Int) { - feed { - ...FeedStories_feed @arguments(count: $count) + query FeedStoriesRefetchQuery($count: Int) { + feed { + ...FeedStories_feed @arguments(count: $count) + } } - } - `, - ); + ` +); // ~~~~~~~~~~~~~~~~~~~~~ // Modern PaginationContainer // ~~~~~~~~~~~~~~~~~~~~~ interface FeedProps { - user: { feed: { edges: Array<{ node: StoryInterface}>}}; + user: { feed: { edges: Array<{ node: StoryInterface }> } }; relay: ModernTypes.RelayPaginationProp; } class Feed extends React.Component { render() { - return (
- {this.props.user.feed.edges.map( - edge => - )} -
); + return ( +
+ {this.props.user.feed.edges.map(edge => )} +
+ ); } _loadMore() { @@ -170,7 +155,7 @@ class Feed extends React.Component { 10, // Fetch the next 10 feed items e => { console.log(e); - }, + } ); } } @@ -179,25 +164,25 @@ const FeedPaginationContainer = createPaginationContainer( Feed, { user: graphql` - fragment Feed_user on User { - feed( - first: $count - after: $cursor - orderby: $orderBy # other variables - ) @connection(key: "Feed_feed") { - edges { - node { - id - ...Story_story + fragment Feed_user on User { + feed( + first: $count + after: $cursor + orderby: $orderBy # other variables + ) @connection(key: "Feed_feed") { + edges { + node { + id + ...Story_story + } + } } } - } - } `, }, { - direction: 'forward', - getConnectionFromProps(props: { user: {feed: any}}) { + direction: "forward", + getConnectionFromProps(props: { user: { feed: any } }) { return props.user && props.user.feed; }, getFragmentVariables(prevVars, totalCount) { @@ -206,7 +191,7 @@ const FeedPaginationContainer = createPaginationContainer( count: totalCount, }; }, - getVariables(props, {count, cursor}, fragmentVariables) { + getVariables(props, { count, cursor }, fragmentVariables) { return { count, cursor, @@ -216,17 +201,13 @@ const FeedPaginationContainer = createPaginationContainer( }; }, query: graphql` - query FeedPaginationQuery( - $count: Int! - $cursor: String - $orderby: String! - ) { - user { - # You could reference the fragment defined previously. - ...Feed_user + query FeedPaginationQuery($count: Int!, $cursor: String, $orderby: String!) { + user { + # You could reference the fragment defined previously. + ...Feed_user + } } - } - ` + `, } ); @@ -234,46 +215,52 @@ const FeedPaginationContainer = createPaginationContainer( // Modern Mutations // ~~~~~~~~~~~~~~~~~~~~~ const mutation = graphql` -mutation MarkReadNotificationMutation( - $input: MarkReadNotificationData! -) { - markReadNotification(data: $input) { - notification { - seenState + mutation MarkReadNotificationMutation($input: MarkReadNotificationData!) { + markReadNotification(data: $input) { + notification { + seenState + } } } -} `; const optimisticResponse = { markReadNotification: { notification: { - seenState: 'SEEN', + seenState: "SEEN", }, }, }; -const configs = [{ - type: 'NODE_DELETE' as 'NODE_DELETE', - deletedIDFieldName: 'destroyedShipId', -}, { - type: 'RANGE_ADD' as 'RANGE_ADD', - parentID: 'shipId', - connectionInfo: [{ - key: 'AddShip_ships', - rangeBehavior: 'append', - }], - edgeName: 'newShipEdge', -}, { - type: 'RANGE_DELETE' as 'RANGE_DELETE', - parentID: 'todoId', - connectionKeys: [{ - key: 'RemoveTags_tags', - rangeBehavior: 'append', - }], - pathToConnection: ['todo', 'tags'], - deletedIDFieldName: 'removedTagId' -}]; +const configs = [ + { + type: "NODE_DELETE" as "NODE_DELETE", + deletedIDFieldName: "destroyedShipId", + }, + { + type: "RANGE_ADD" as "RANGE_ADD", + parentID: "shipId", + connectionInfo: [ + { + key: "AddShip_ships", + rangeBehavior: "append", + }, + ], + edgeName: "newShipEdge", + }, + { + type: "RANGE_DELETE" as "RANGE_DELETE", + parentID: "todoId", + connectionKeys: [ + { + key: "RemoveTags_tags", + rangeBehavior: "append", + }, + ], + pathToConnection: ["todo", "tags"], + deletedIDFieldName: "removedTagId", + }, +]; function markNotificationAsRead(source: string, storyID: string) { const variables = { @@ -283,37 +270,32 @@ function markNotificationAsRead(source: string, storyID: string) { }, }; - commitMutation( - modernEnvironment, - { - configs, - mutation, - optimisticResponse, - variables, - onCompleted: (response, errors) => { - console.log('Response received from server.'); - }, - onError: err => console.error(err), + commitMutation(modernEnvironment, { + configs, + mutation, + optimisticResponse, + variables, + onCompleted: (response, errors) => { + console.log("Response received from server."); }, - ); + onError: err => console.error(err), + }); } // ~~~~~~~~~~~~~~~~~~~~~ // Modern Subscriptions // ~~~~~~~~~~~~~~~~~~~~~ const subscription = graphql` - subscription MarkReadNotificationSubscription( - $storyID: ID! - ) { - markReadNotification(storyID: $storyID) { - notification { - seenState + subscription MarkReadNotificationSubscription($storyID: ID!) { + markReadNotification(storyID: $storyID) { + notification { + seenState + } } } - } `; const variables = { - storyID: '123', + storyID: "123", }; requestSubscription( modernEnvironment, // see Environment docs @@ -326,18 +308,12 @@ requestSubscription( // example of a custom updater updater: store => { // Get the notification - const rootField = store.getRootField('markReadNotification'); - const notification = !!rootField && rootField.getLinkedRecord('notification'); + const rootField = store.getRootField("markReadNotification"); + const notification = !!rootField && rootField.getLinkedRecord("notification"); // Add it to a connection - const viewer = store.getRoot().getLinkedRecord('viewer'); - const notifications = - ConnectionHandler.getConnection(viewer, 'notifications'); - const edge = ConnectionHandler.createEdge( - store, - notifications, - notification, - '', - ); + const viewer = store.getRoot().getLinkedRecord("viewer"); + const notifications = ConnectionHandler.getConnection(viewer, "notifications"); + const edge = ConnectionHandler.createEdge(store, notifications, notification, ""); ConnectionHandler.insertEdgeAfter(notifications, edge); }, } @@ -348,7 +324,7 @@ requestSubscription( /////////////////////////// import { QueryRenderer as CompatQueryRenderer, - createFragmentContainer as createFragmentContainerCompat + createFragmentContainer as createFragmentContainerCompat, } from "react-relay/compat"; // TODO? This is all more or less identical to modern... @@ -378,16 +354,18 @@ export default class AddTweetMutation extends Relay.Mutation { } getConfigs() { - return [{ - type: "RANGE_ADD", - parentName: "user", - parentID: this.props.userId, - connectionName: "tweets", - edgeName: "tweetEdge", - rangeBehaviors: { - "": "append", + return [ + { + type: "RANGE_ADD", + parentName: "user", + parentID: this.props.userId, + connectionName: "tweets", + edgeName: "tweetEdge", + rangeBehaviors: { + "": "append", + }, }, - }]; + ]; } getVariables() { @@ -397,18 +375,14 @@ export default class AddTweetMutation extends Relay.Mutation { interface ArtworkProps { artwork: { - title: string + title: string; }; relay: Relay.RelayProp; } class Artwork extends React.Component { render() { - return ( - - {this.props.artwork.title} - - ); + return {this.props.artwork.title}; } } @@ -418,8 +392,8 @@ const ArtworkContainer = Relay.createContainer(Artwork, { fragment on Artwork { title } - ` - } + `, + }, }); class StubbedArtwork extends React.Component { @@ -428,7 +402,7 @@ class StubbedArtwork extends React.Component { artwork: { title: "CHAMPAGNE FORMICA FLAG" }, relay: { route: { - name: "champagne" + name: "champagne", }, variables: { artworkID: "champagne-formica-flag", @@ -438,7 +412,7 @@ class StubbedArtwork extends React.Component { hasOptimisticUpdate: () => false, getPendingTransactions: (): any => undefined, commitUpdate: () => {}, - } + }, }; return ; } diff --git a/types/relay-runtime/index.d.ts b/types/relay-runtime/index.d.ts index 152df90640..88abec0a9b 100644 --- a/types/relay-runtime/index.d.ts +++ b/types/relay-runtime/index.d.ts @@ -36,10 +36,7 @@ export namespace RelayCommonTypes { // ~~~~~~~~~~~~~~~~~~~~~ // RelayQL // ~~~~~~~~~~~~~~~~~~~~~ - type RelayQL = ( - strings: string[], - ...substitutions: any[] - ) => RelayConcreteNode; + type RelayQL = (strings: string[], ...substitutions: any[]) => RelayConcreteNode; // ~~~~~~~~~~~~~~~~~~~~~ // RelayModernGraphQLTag @@ -48,13 +45,11 @@ export namespace RelayCommonTypes { [key: string]: GraphQLTaggedNode; } type GraphQLTaggedNode = - (() => ConcreteFragment | ConcreteBatch) | - { - modern(): ConcreteFragment | ConcreteBatch, - classic(relayQL: RelayQL): - | ConcreteFragmentDefinition - | ConcreteOperationDefinition, - }; + | (() => ConcreteFragment | ConcreteBatch) + | { + modern(): ConcreteFragment | ConcreteBatch; + classic(relayQL: RelayQL): ConcreteFragmentDefinition | ConcreteOperationDefinition; + }; // ~~~~~~~~~~~~~~~~~~~~~ // General Usage // ~~~~~~~~~~~~~~~~~~~~~ @@ -81,8 +76,8 @@ export namespace RelayCommonTypes { interface PayloadError { message: string; locations?: Array<{ - line: number, - column: number, + line: number; + column: number; }>; } /** @@ -94,7 +89,7 @@ export namespace RelayCommonTypes { operation: ConcreteBatch, variables: Variables, cacheConfig: CacheConfig, - uploadables?: UploadableMap, + uploadables?: UploadableMap ): Runtime.ObservableFromValue; /** @@ -108,7 +103,7 @@ export namespace RelayCommonTypes { operation: ConcreteBatch, variables: Variables, cacheConfig: CacheConfig, - observer: LegacyObserver, + observer: LegacyObserver ) => Runtime.RelayObservable | Disposable; // ~~~~~~~~~~~~~~~~~~~~~ @@ -131,7 +126,7 @@ export namespace RelayCommonTypes { store: RecordSourceSelectorProxy, // Actually RelayCombinedEnvironmentTypes#SelectorData, but mixed is // inconvenient to access deeply in product code. - data: any, // FLOW FIXME + data: any // FLOW FIXME ) => void; /** @@ -152,22 +147,14 @@ export namespace RelayCommonTypes { getDataID(): DataID; getLinkedRecord(name: string, args?: Variables): RecordProxy | void; getLinkedRecords(name: string, args?: Variables): Array | void; - getOrCreateLinkedRecord( - name: string, - typeName: string, - args?: Variables, - ): RecordProxy; + getOrCreateLinkedRecord(name: string, typeName: string, args?: Variables): RecordProxy; getType(): string; getValue(name: string, args?: Variables): any; - setLinkedRecord( - record: RecordProxy, - name: string, - args?: Variables, - ): RecordProxy; + setLinkedRecord(record: RecordProxy, name: string, args?: Variables): RecordProxy; setLinkedRecords( records: Array | undefined | null, name: string, - args?: Variables, + args?: Variables ): RecordProxy; setValue(value: any, name: string, args?: Variables): RecordProxy; } @@ -228,17 +215,23 @@ export namespace RelayCommonTypes { /** * Arbitrary data e.g. received by a container as props. */ - interface Props { [key: string]: any; } + interface Props { + [key: string]: any; + } /* * An individual cached graph object. */ - interface Record { [key: string]: any; } + interface Record { + [key: string]: any; + } /** * A collection of records keyed by id. */ - interface RecordMap { [dataID: string]: Record | null | undefined; } + interface RecordMap { + [dataID: string]: Record | null | undefined; + } /** * A selector defines the starting point for a traversal into the graph for the @@ -254,20 +247,24 @@ export namespace RelayCommonTypes { * A representation of a selector and its results at a particular point in time. */ type CSnapshot = CSelector & { - data: SelectorData | null | undefined, - seenRecords: RecordMap, + data: SelectorData | null | undefined; + seenRecords: RecordMap; }; /** * The results of a selector given a store/RecordSource. */ - interface SelectorData { [key: string]: any; } + interface SelectorData { + [key: string]: any; + } /** * The results of reading the results of a FragmentMap given some input * `Props`. */ - interface FragmentSpecResults { [key: string]: any; } + interface FragmentSpecResults { + [key: string]: any; + } /** * A utility for resolving and subscribing to the results of a fragment spec @@ -304,7 +301,9 @@ export namespace RelayCommonTypes { setVariables(variables: Variables): void; } - interface CFragmentMap { [key: string]: TFragment; } + interface CFragmentMap { + [key: string]: TFragment; + } /** * An operation selector describes a specific instance of a GraphQL operation @@ -326,14 +325,7 @@ export namespace RelayCommonTypes { * The public API of Relay core. Represents an encapsulated environment with its * own in-memory cache. */ - interface CEnvironment< - TEnvironment, - TFragment, - TGraphQLTaggedNode, - TNode, - TOperation, - TPayload, - > { + interface CEnvironment { /** * Read the results of a selector from in-memory records in the store. */ @@ -344,10 +336,7 @@ export namespace RelayCommonTypes { * when data has been committed to the store that would cause the results of * the snapshot's selector to change. */ - subscribe( - snapshot: CSnapshot, - callback: (snapshot: CSnapshot) => void, - ): Disposable; + subscribe(snapshot: CSnapshot, callback: (snapshot: CSnapshot) => void): Disposable; /** * Ensure that all the records necessary to fulfill the given selector are @@ -370,11 +359,11 @@ export namespace RelayCommonTypes { * after receving the first `onNext` result. */ sendQuery(config: { - cacheConfig?: CacheConfig, - onCompleted?(): void, - onError?(error: Error): void, - onNext?(payload: TPayload): void, - operation: COperationSelector, + cacheConfig?: CacheConfig; + onCompleted?(): void; + onError?(error: Error): void; + onNext?(payload: TPayload): void; + operation: COperationSelector; }): Disposable; /** @@ -386,29 +375,17 @@ export namespace RelayCommonTypes { * subscription open indefinitely such that `onCompleted` is not called. */ streamQuery(config: { - cacheConfig?: CacheConfig, - onCompleted?(): void, - onError?(error: Error): void, - onNext?(payload: TPayload): void, - operation: COperationSelector, + cacheConfig?: CacheConfig; + onCompleted?(): void; + onError?(error: Error): void; + onNext?(payload: TPayload): void; + operation: COperationSelector; }): Disposable; - unstable_internal: CUnstableEnvironmentCore< - TEnvironment, - TFragment, - TGraphQLTaggedNode, - TNode, - TOperation - >; + unstable_internal: CUnstableEnvironmentCore; } - interface CUnstableEnvironmentCore< - TEnvironment, - TFragment, - TGraphQLTaggedNode, - TNode, - TOperation, - > { + interface CUnstableEnvironmentCore { /** * Create an instance of a FragmentSpecResolver. * @@ -421,7 +398,7 @@ export namespace RelayCommonTypes { containerName: string, fragments: CFragmentMap, props: Props, - callback: () => void, + callback: () => void ): FragmentSpecResolver; /** @@ -430,10 +407,7 @@ export namespace RelayCommonTypes { * filtered to exclude variables that do not matche defined arguments on the * operation, and default values are populated for null values. */ - createOperationSelector( - operation: TOperation, - variables: Variables, - ): COperationSelector; + createOperationSelector(operation: TOperation, variables: Variables): COperationSelector; /** * Given a graphql`...` tagged template, extract a fragment definition usable @@ -482,11 +456,7 @@ export namespace RelayCommonTypes { * const childData = environment.lookup(childSelector).data; * ``` */ - getSelector( - operationVariables: Variables, - fragment: TFragment, - prop: any, - ): CSelector | void; + getSelector(operationVariables: Variables, fragment: TFragment, prop: any): CSelector | void; /** * Given the result `items` from a parent that fetched `fragment`, creates a @@ -497,7 +467,7 @@ export namespace RelayCommonTypes { getSelectorList( operationVariables: Variables, fragment: TFragment, - props: any[], + props: any[] ): Array> | void; /** @@ -511,7 +481,7 @@ export namespace RelayCommonTypes { getSelectorsFromObject( operationVariables: Variables, fragments: CFragmentMap, - props: Props, + props: Props ): { [key: string]: CSelector | Array> | null | undefined }; /** @@ -523,7 +493,7 @@ export namespace RelayCommonTypes { */ getDataIDsFromObject( fragments: CFragmentMap, - props: Props, + props: Props ): { [key: string]: DataID | DataID[] | null | undefined }; /** @@ -537,7 +507,7 @@ export namespace RelayCommonTypes { getVariablesFromObject( operationVariables: Variables, fragments: CFragmentMap, - props: Props, + props: Props ): Variables; } @@ -564,51 +534,46 @@ export namespace RelayCommonTypes { max_runs: number; } interface FIELDS_CHANGE { - type: 'FIELDS_CHANGE'; - fieldIDs: { [fieldName: string]: DataID | DataID[]; }; + type: "FIELDS_CHANGE"; + fieldIDs: { [fieldName: string]: DataID | DataID[] }; } interface RANGE_ADD { - type: 'RANGE_ADD'; + type: "RANGE_ADD"; parentName?: string; parentID?: string; connectionInfo?: Array<{ - key: string, - filters?: Variables, - rangeBehavior: string, + key: string; + filters?: Variables; + rangeBehavior: string; }>; connectionName?: string; edgeName: string; rangeBehaviors?: RangeBehaviors; } interface NODE_DELETE { - type: 'NODE_DELETE'; + type: "NODE_DELETE"; parentName?: string; parentID?: string; connectionName?: string; deletedIDFieldName: string; } interface RANGE_DELETE { - type: 'RANGE_DELETE'; + type: "RANGE_DELETE"; parentName?: string; parentID?: string; connectionKeys?: Array<{ - key: string, - filters?: Variables, + key: string; + filters?: Variables; }>; connectionName?: string; deletedIDFieldName: string | string[]; pathToConnection: string[]; } interface REQUIRED_CHILDREN { - type: 'REQUIRED_CHILDREN'; + type: "REQUIRED_CHILDREN"; children: RelayConcreteNode[]; } - type RelayMutationConfig = - FIELDS_CHANGE | - RANGE_ADD | - NODE_DELETE | - RANGE_DELETE | - REQUIRED_CHILDREN; + type RelayMutationConfig = FIELDS_CHANGE | RANGE_ADD | NODE_DELETE | RANGE_DELETE | REQUIRED_CHILDREN; interface RelayMutationTransactionCommitCallbacks { onFailure?: RelayMutationTransactionCommitFailureCallback; @@ -616,11 +581,13 @@ export namespace RelayCommonTypes { } type RelayMutationTransactionCommitFailureCallback = ( transaction: RelayMutationTransaction, - preventAutoRollback: () => void, + preventAutoRollback: () => void + ) => void; + type RelayMutationTransactionCommitSuccessCallback = ( + response: { + [key: string]: any; + } ) => void; - type RelayMutationTransactionCommitSuccessCallback = (response: { - [key: string]: any, - }) => void; interface NetworkLayer { sendMutation(request: RelayMutationRequest): Promise | void; sendQueries(requests: RelayQueryRequest[]): Promise | void; @@ -639,18 +606,16 @@ export namespace RelayCommonTypes { ready: boolean; stale: boolean; } - type RelayContainerErrorEventType = - | 'CACHE_RESTORE_FAILED' - | 'NETWORK_QUERY_ERROR'; + type RelayContainerErrorEventType = "CACHE_RESTORE_FAILED" | "NETWORK_QUERY_ERROR"; type RelayContainerLoadingEventType = - | 'ABORT' - | 'CACHE_RESTORED_REQUIRED' - | 'CACHE_RESTORE_START' - | 'NETWORK_QUERY_RECEIVED_ALL' - | 'NETWORK_QUERY_RECEIVED_REQUIRED' - | 'NETWORK_QUERY_START' - | 'STORE_FOUND_ALL' - | 'STORE_FOUND_REQUIRED'; + | "ABORT" + | "CACHE_RESTORED_REQUIRED" + | "CACHE_RESTORE_START" + | "NETWORK_QUERY_RECEIVED_ALL" + | "NETWORK_QUERY_RECEIVED_REQUIRED" + | "NETWORK_QUERY_START" + | "STORE_FOUND_ALL" + | "STORE_FOUND_REQUIRED"; type ReadyStateChangeCallback = (readyState: ReadyState) => void; interface ReadyStateEvent { type: RelayContainerLoadingEventType | RelayContainerErrorEventType; @@ -668,13 +633,19 @@ export namespace RelayCommonTypes { * https://github.com/facebook/relay/blob/master/packages/react-relay/classic/tools/RelayInternalTypes.js */ // ~~~~~~~~~~~~~~~~~~~~~ - interface QueryPayload { [key: string]: any; } - interface RelayQuerySet { [queryName: string]: any; } - type RangeBehaviorsFunction = (connectionArgs: { - [argName: string]: any, - }) => 'APPEND' | 'IGNORE' | 'PREPEND' | 'REFETCH' | 'REMOVE'; + interface QueryPayload { + [key: string]: any; + } + interface RelayQuerySet { + [queryName: string]: any; + } + type RangeBehaviorsFunction = ( + connectionArgs: { + [argName: string]: any; + } + ) => "APPEND" | "IGNORE" | "PREPEND" | "REFETCH" | "REMOVE"; interface RangeBehaviorsObject { - [key: string]: 'APPEND' | 'IGNORE' | 'PREPEND' | 'REFETCH' | 'REMOVE'; + [key: string]: "APPEND" | "IGNORE" | "PREPEND" | "REFETCH" | "REMOVE"; } type RangeBehaviors = RangeBehaviorsFunction | RangeBehaviorsObject; } @@ -700,7 +671,7 @@ export namespace RelayRuntimeTypes { operation: object, variables: RelayCommonTypes.Variables, cacheConfig: RelayCommonTypes.CacheConfig, - uploadables?: RelayCommonTypes.UploadableMap, + uploadables?: RelayCommonTypes.UploadableMap ) => Promise; interface RelayNetwork { execute: ExecuteFunction; @@ -728,41 +699,39 @@ export namespace RelayRuntimeTypes { revertUpdate(update: OptimisticUpdate): void; replaceUpdate(update: OptimisticUpdate, newUpdate: OptimisticUpdate): void; applyMutation(config: { - operation: OperationSelector, - optimisticUpdater?: RelayCommonTypes.SelectorStoreUpdater, - optimisticResponse?: object, + operation: OperationSelector; + optimisticUpdater?: RelayCommonTypes.SelectorStoreUpdater; + optimisticResponse?: object; }): RelayCommonTypes.Disposable; check(readSelector: Selector): boolean; - commitPayload( - operationSelector: OperationSelector, - payload: PayloadData, - ): void; + commitPayload(operationSelector: OperationSelector, payload: PayloadData): void; commitUpdate(updater: RelayCommonTypes.StoreUpdater): void; lookup(readSelector: Selector): Snapshot; - subscribe( - snapshot: Snapshot, - callback: (snapshot: Snapshot) => void, - ): RelayCommonTypes.Disposable; + subscribe(snapshot: Snapshot, callback: (snapshot: Snapshot) => void): RelayCommonTypes.Disposable; retain(selector: Selector): RelayCommonTypes.Disposable; execute(config: { - operation: OperationSelector, - cacheConfig?: RelayCommonTypes.CacheConfig, - updater?: RelayCommonTypes.SelectorStoreUpdater, + operation: OperationSelector; + cacheConfig?: RelayCommonTypes.CacheConfig; + updater?: RelayCommonTypes.SelectorStoreUpdater; }): RelayObservable; executeMutation(config: { - operation: OperationSelector, - optimisticUpdater?: RelayCommonTypes.SelectorStoreUpdater, - optimisticResponse?: object, - updater?: RelayCommonTypes.SelectorStoreUpdater, - uploadables?: RelayCommonTypes.UploadableMap, + operation: OperationSelector; + optimisticUpdater?: RelayCommonTypes.SelectorStoreUpdater; + optimisticResponse?: object; + updater?: RelayCommonTypes.SelectorStoreUpdater; + uploadables?: RelayCommonTypes.UploadableMap; }): RelayObservable; } // ~~~~~~~~~~~~~~~~~~~~~ // RelayInMemoryRecordSource // ~~~~~~~~~~~~~~~~~~~~~ - interface Record { [key: string]: any; } - interface RecordMap { [dataID: string]: Record | null | undefined; } + interface Record { + [key: string]: any; + } + interface RecordMap { + [dataID: string]: Record | null | undefined; + } // ~~~~~~~~~~~~~~~~~~~~~ // Network @@ -772,7 +741,10 @@ export namespace RelayRuntimeTypes { * Creates an implementation of the `Network` interface defined in * `RelayNetworkTypes` given `fetch` and `subscribe` functions. */ - static create(fetchFn: typeof RelayCommonTypes.FetchFunction, subscribeFn?: RelayCommonTypes.SubscribeFunction): RelayNetwork; + static create( + fetchFn: typeof RelayCommonTypes.FetchFunction, + subscribeFn?: RelayCommonTypes.SubscribeFunction + ): RelayNetwork; } // ~~~~~~~~~~~~~~~~~~~~~ @@ -784,12 +756,9 @@ export namespace RelayRuntimeTypes { delete(dataID: RelayCommonTypes.DataID): void; get(dataID: RelayCommonTypes.DataID): Record | void; getRecordIDs(): RelayCommonTypes.DataID[]; - getStatus(dataID: RelayCommonTypes.DataID): 'EXISTENT' | 'NONEXISTENT' | 'UNKNOWN'; + getStatus(dataID: RelayCommonTypes.DataID): "EXISTENT" | "NONEXISTENT" | "UNKNOWN"; has(dataID: RelayCommonTypes.DataID): boolean; - load( - dataID: RelayCommonTypes.DataID, - callback: (error: Error | null, record: Record | null) => void, - ): void; + load(dataID: RelayCommonTypes.DataID, callback: (error: Error | null, record: Record | null) => void): void; remove(dataID: RelayCommonTypes.DataID): void; set(dataID: RelayCommonTypes.DataID, record: Record): void; size(): number; @@ -807,10 +776,7 @@ export namespace RelayRuntimeTypes { lookup(selector: Selector): Snapshot; notify(): void; publish(source: RecordSource): void; - subscribe( - snapshot: Snapshot, - callback: (snapshot: Snapshot) => void, - ): RelayCommonTypes.Disposable; + subscribe(snapshot: Snapshot, callback: (snapshot: Snapshot) => void): RelayCommonTypes.Disposable; } // ~~~~~~~~~~~~~~~~~~~~~ @@ -955,7 +921,9 @@ export namespace RelayRuntimeTypes { * legacy Relay observer and directly return an Observable instead. */ static fromLegacy( - callback: (legacyObserver: RelayCommonTypes.LegacyObserver) => RelayCommonTypes.Disposable | RelayObservable, + callback: ( + legacyObserver: RelayCommonTypes.LegacyObserver + ) => RelayCommonTypes.Disposable | RelayObservable ): RelayObservable; /** @@ -1036,10 +1004,7 @@ export namespace RelayRuntimeTypes { // commitLocalUpdate // ~~~~~~~~~~~~~~~~~~~~~ // exposed through RelayModern, not Runtime directly - type commitLocalUpdate = ( - environment: Environment, - updater: RelayCommonTypes.StoreUpdater, - ) => void; + type commitLocalUpdate = (environment: Environment, updater: RelayCommonTypes.StoreUpdater) => void; // ~~~~~~~~~~~~~~~~~~~~~ // commitRelayModernMutation @@ -1058,7 +1023,7 @@ export namespace RelayRuntimeTypes { } function commitRelayModernMutation( environment: Environment, - config: MutationConfig, + config: MutationConfig ): RelayCommonTypes.Disposable; // ~~~~~~~~~~~~~~~~~~~~~ @@ -1094,7 +1059,7 @@ export namespace RelayRuntimeTypes { environment: any, // FIXME - $FlowFixMe in facebook source code taggedNode: RelayCommonTypes.GraphQLTaggedNode, variables: RelayCommonTypes.Variables, - cacheConfig?: RelayCommonTypes.CacheConfig, + cacheConfig?: RelayCommonTypes.CacheConfig ): Promise; // FIXME - $FlowFixMe in facebook source code // ~~~~~~~~~~~~~~~~~~~~~ @@ -1112,7 +1077,7 @@ export namespace RelayRuntimeTypes { } function requestRelaySubscription( environment: Environment, - config: GraphQLSubscriptionConfig, + config: GraphQLSubscriptionConfig ): RelayCommonTypes.Disposable; } diff --git a/types/relay-runtime/relay-runtime-tests.tsx b/types/relay-runtime/relay-runtime-tests.tsx index c6dd9c15a2..f786e4d5fa 100644 --- a/types/relay-runtime/relay-runtime-tests.tsx +++ b/types/relay-runtime/relay-runtime-tests.tsx @@ -1,11 +1,4 @@ -import { - Environment, - Network, - RecordSource, - Store, - ConnectionHandler, - ViewerHandler, -} from 'relay-runtime'; +import { Environment, Network, RecordSource, Store, ConnectionHandler, ViewerHandler } from "relay-runtime"; const source = new RecordSource(); const store = new Store(source); @@ -15,13 +8,9 @@ const store = new Store(source); // ~~~~~~~~~~~~~~~~~~~~~ // Define a function that fetches the results of an operation (query/mutation/etc) // and returns its results as a Promise: -function fetchQuery( - operation: any, - variables: { [key: string]: string }, - cacheConfig: {}, -) { - return fetch('/graphql', { - method: 'POST', +function fetchQuery(operation: any, variables: { [key: string]: string }, cacheConfig: {}) { + return fetch("/graphql", { + method: "POST", body: JSON.stringify({ query: operation.text, // GraphQL text from input variables, @@ -50,10 +39,10 @@ const environment = new Environment({ function handlerProvider(handle: any) { switch (handle) { // Augment (or remove from) this list: - case 'connection': return ConnectionHandler; - case 'viewer': return ViewerHandler; + case "connection": + return ConnectionHandler; + case "viewer": + return ViewerHandler; } - throw new Error( - `handlerProvider: No handler provided for ${handle}` - ); + throw new Error(`handlerProvider: No handler provided for ${handle}`); } From bafb5407cb8d37c6c8d34af91a0e546545726dd8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Eloy=20Dur=C3=A1n?= Date: Wed, 11 Oct 2017 15:56:18 +0200 Subject: [PATCH 051/506] [Relay] Fix dtslint issues with test files. --- types/react-relay/{ => test}/react-relay-classic-tests.tsx | 0 types/react-relay/{ => test}/react-relay-tests.tsx | 0 types/react-relay/tsconfig.json | 6 +++--- 3 files changed, 3 insertions(+), 3 deletions(-) rename types/react-relay/{ => test}/react-relay-classic-tests.tsx (100%) rename types/react-relay/{ => test}/react-relay-tests.tsx (100%) diff --git a/types/react-relay/react-relay-classic-tests.tsx b/types/react-relay/test/react-relay-classic-tests.tsx similarity index 100% rename from types/react-relay/react-relay-classic-tests.tsx rename to types/react-relay/test/react-relay-classic-tests.tsx diff --git a/types/react-relay/react-relay-tests.tsx b/types/react-relay/test/react-relay-tests.tsx similarity index 100% rename from types/react-relay/react-relay-tests.tsx rename to types/react-relay/test/react-relay-tests.tsx diff --git a/types/react-relay/tsconfig.json b/types/react-relay/tsconfig.json index 5447ff74ca..2b992f91c8 100644 --- a/types/react-relay/tsconfig.json +++ b/types/react-relay/tsconfig.json @@ -19,10 +19,10 @@ }, "files": [ "index.d.ts", - "react-relay-tests.tsx", - "react-relay-classic-tests.tsx", "classic.d.ts", "modern.d.ts", - "compat.d.ts" + "compat.d.ts", + "test/react-relay-tests.tsx", + "test/react-relay-classic-tests.tsx" ] } From 339eadd3e10e9f6b40461c573cc2e32572ed863e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Eloy=20Dur=C3=A1n?= Date: Wed, 11 Oct 2017 15:56:44 +0200 Subject: [PATCH 052/506] [Relay] Fix namespace reference. --- types/relay-runtime/index.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/types/relay-runtime/index.d.ts b/types/relay-runtime/index.d.ts index 88abec0a9b..5b1554e929 100644 --- a/types/relay-runtime/index.d.ts +++ b/types/relay-runtime/index.d.ts @@ -90,7 +90,7 @@ export namespace RelayCommonTypes { variables: Variables, cacheConfig: CacheConfig, uploadables?: UploadableMap - ): Runtime.ObservableFromValue; + ): RelayRuntimeTypes.ObservableFromValue; /** * A function that executes a GraphQL subscription operation, returning one or @@ -104,7 +104,7 @@ export namespace RelayCommonTypes { variables: Variables, cacheConfig: CacheConfig, observer: LegacyObserver - ) => Runtime.RelayObservable | Disposable; + ) => RelayRuntimeTypes.RelayObservable | Disposable; // ~~~~~~~~~~~~~~~~~~~~~ // RelayStoreTypes From 3439a2d7a179616f834cc5bcf6d377a7f998358d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Eloy=20Dur=C3=A1n?= Date: Wed, 11 Oct 2017 15:59:12 +0200 Subject: [PATCH 053/506] [Relay] Add myself to list of maintainers. --- types/react-relay/index.d.ts | 4 +++- types/relay-runtime/index.d.ts | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/types/react-relay/index.d.ts b/types/react-relay/index.d.ts index 30cb29b3e3..cdb38afae6 100644 --- a/types/react-relay/index.d.ts +++ b/types/react-relay/index.d.ts @@ -1,6 +1,8 @@ // Type definitions for react-relay 1.3 // Project: https://github.com/facebook/relay -// Definitions by: Johannes Schickling , Matt Martin +// Definitions by: Johannes Schickling +// Matt Martin +// Eloy Durán // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.4 diff --git a/types/relay-runtime/index.d.ts b/types/relay-runtime/index.d.ts index 5b1554e929..a4867b4091 100644 --- a/types/relay-runtime/index.d.ts +++ b/types/relay-runtime/index.d.ts @@ -1,6 +1,7 @@ // Type definitions for relay-runtime 1.3 // Project: https://github.com/facebook/relay // Definitions by: Matt Martin +// Eloy Durán // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.4 From 091c46291e8635c31ed0e26ac24accd1d9697e65 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Eloy=20Dur=C3=A1n?= Date: Wed, 11 Oct 2017 16:23:14 +0200 Subject: [PATCH 054/506] [Relay] Add generics for `getConnectionFromProps`. --- types/react-relay/modern.d.ts | 6 +++--- types/react-relay/test/react-relay-tests.tsx | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/types/react-relay/modern.d.ts b/types/react-relay/modern.d.ts index 13b43bf449..d4c422b823 100644 --- a/types/react-relay/modern.d.ts +++ b/types/react-relay/modern.d.ts @@ -105,9 +105,9 @@ export function FragmentVariablesGetter( prevVars: RelayCommonTypes.Variables, totalCount: number ): RelayCommonTypes.Variables; -export interface ConnectionConfig { +export interface ConnectionConfig { direction?: "backward" | "forward"; - getConnectionFromProps?(props: object): ConnectionData | undefined | null; + getConnectionFromProps?(props: T): ConnectionData | undefined | null; getFragmentVariables?: typeof FragmentVariablesGetter; getVariables( props: { [propName: string]: any }, @@ -119,7 +119,7 @@ export interface ConnectionConfig { export function createPaginationContainer( Component: ReactBaseComponent, fragmentSpec: GraphQLTaggedNode | GeneratedNodeMap, - connectionConfig: ConnectionConfig + connectionConfig: ConnectionConfig ): ReactBaseComponent; // ~~~~~~~~~~~~~~~~~~~~~ diff --git a/types/react-relay/test/react-relay-tests.tsx b/types/react-relay/test/react-relay-tests.tsx index 97cc5d47d9..c7d144122b 100644 --- a/types/react-relay/test/react-relay-tests.tsx +++ b/types/react-relay/test/react-relay-tests.tsx @@ -182,7 +182,7 @@ const FeedPaginationContainer = createPaginationContainer( }, { direction: "forward", - getConnectionFromProps(props: { user: { feed: any } }) { + getConnectionFromProps(props) { return props.user && props.user.feed; }, getFragmentVariables(prevVars, totalCount) { From 08f193a6941ad3b3fbf701a63f0425930e6f9e86 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Eloy=20Dur=C3=A1n?= Date: Thu, 12 Oct 2017 00:46:10 +0200 Subject: [PATCH 055/506] [Relay] Return `null` instead of `void` for Flow Maybe types. --- types/react-relay/test/react-relay-tests.tsx | 6 ++++ types/relay-runtime/index.d.ts | 30 ++++++++++---------- 2 files changed, 21 insertions(+), 15 deletions(-) diff --git a/types/react-relay/test/react-relay-tests.tsx b/types/react-relay/test/react-relay-tests.tsx index c7d144122b..80380122f7 100644 --- a/types/react-relay/test/react-relay-tests.tsx +++ b/types/react-relay/test/react-relay-tests.tsx @@ -279,6 +279,12 @@ function markNotificationAsRead(source: string, storyID: string) { console.log("Response received from server."); }, onError: err => console.error(err), + updater: (store, data) => { + const field = store.get(storyID); + if (field) { + field.setValue(data.story, "story"); + } + } }); } diff --git a/types/relay-runtime/index.d.ts b/types/relay-runtime/index.d.ts index a4867b4091..69f5088ab4 100644 --- a/types/relay-runtime/index.d.ts +++ b/types/relay-runtime/index.d.ts @@ -137,17 +137,17 @@ export namespace RelayCommonTypes { interface RecordSourceSelectorProxy { create(dataID: DataID, typeName: string): RecordProxy; delete(dataID: DataID): void; - get(dataID: DataID): RecordProxy | void; + get(dataID: DataID): RecordProxy | null; getRoot(): RecordProxy; - getRootField(fieldName: string): RecordProxy | void; - getPluralRootField(fieldName: string): RecordProxy[] | void; + getRootField(fieldName: string): RecordProxy | null; + getPluralRootField(fieldName: string): RecordProxy[] | null; } interface RecordProxy { copyFieldsFrom(source: RecordProxy): void; getDataID(): DataID; - getLinkedRecord(name: string, args?: Variables): RecordProxy | void; - getLinkedRecords(name: string, args?: Variables): Array | void; + getLinkedRecord(name: string, args?: Variables): RecordProxy | null; + getLinkedRecords(name: string, args?: Variables): Array | null; getOrCreateLinkedRecord(name: string, typeName: string, args?: Variables): RecordProxy; getType(): string; getValue(name: string, args?: Variables): any; @@ -163,7 +163,7 @@ export namespace RelayCommonTypes { interface RecordSourceProxy { create(dataID: DataID, typeName: string): RecordProxy; delete(dataID: DataID): void; - get(dataID: DataID): Array | void; + get(dataID: DataID): Array | null; getRoot(): RecordProxy; } @@ -457,7 +457,7 @@ export namespace RelayCommonTypes { * const childData = environment.lookup(childSelector).data; * ``` */ - getSelector(operationVariables: Variables, fragment: TFragment, prop: any): CSelector | void; + getSelector(operationVariables: Variables, fragment: TFragment, prop: any): CSelector | null; /** * Given the result `items` from a parent that fetched `fragment`, creates a @@ -469,7 +469,7 @@ export namespace RelayCommonTypes { operationVariables: Variables, fragment: TFragment, props: any[] - ): Array> | void; + ): Array> | null; /** * Given a mapping of keys -> results and a mapping of keys -> fragments, @@ -590,8 +590,8 @@ export namespace RelayCommonTypes { } ) => void; interface NetworkLayer { - sendMutation(request: RelayMutationRequest): Promise | void; - sendQueries(requests: RelayQueryRequest[]): Promise | void; + sendMutation(request: RelayMutationRequest): Promise | null; + sendQueries(requests: RelayQueryRequest[]): Promise | null; supports(...options: string[]): boolean; } interface QueryResult { @@ -681,7 +681,7 @@ export namespace RelayRuntimeTypes { // ~~~~~~~~~~~~~~~~~~~~~ // RelayDefaultHandlerProvider // ~~~~~~~~~~~~~~~~~~~~~ - function HandlerProvider(name: string): typeof RelayCommonTypes.Handler | void; + function HandlerProvider(name: string): typeof RelayCommonTypes.Handler | null; // ~~~~~~~~~~~~~~~~~~~~~ // RelayModernEnvironment @@ -755,7 +755,7 @@ export namespace RelayRuntimeTypes { constructor(records?: RecordMap); clear(): void; delete(dataID: RelayCommonTypes.DataID): void; - get(dataID: RelayCommonTypes.DataID): Record | void; + get(dataID: RelayCommonTypes.DataID): Record | null; getRecordIDs(): RelayCommonTypes.DataID[]; getStatus(dataID: RelayCommonTypes.DataID): "EXISTENT" | "NONEXISTENT" | "UNKNOWN"; has(dataID: RelayCommonTypes.DataID): boolean; @@ -833,14 +833,14 @@ export namespace RelayRuntimeTypes { * value is another Record instead of a scalar). May throw if the field is * present but not a scalar linked record. */ - getLinkedRecord(name: string, args?: RelayCommonTypes.Variables): RecordInspector | void; + getLinkedRecord(name: string, args?: RelayCommonTypes.Variables): RecordInspector | null; /** * Returns an array of inspectors for the given plural "linked" field (a field * whose value is an array of Records instead of a scalar). May throw if the * field is present but not a plural linked record. */ - getLinkedRecords(name: string, args?: RelayCommonTypes.Variables): RecordInspector[] | void; + getLinkedRecords(name: string, args?: RelayCommonTypes.Variables): RecordInspector[] | null; } class RelayRecordSourceInspector { @@ -850,7 +850,7 @@ export namespace RelayRuntimeTypes { * Returns an inspector for the record with the given id, or null/undefined if * that record is deleted/unfetched. */ - get(dataID: RelayCommonTypes.DataID): RecordInspector | void; + get(dataID: RelayCommonTypes.DataID): RecordInspector | null; /** * Returns a list of ": " for each record in the store that has an * `id`. From 7683a9c4bcce2965f2e03e7f43c5a32e62a5570b Mon Sep 17 00:00:00 2001 From: Andy Hanson Date: Mon, 16 Oct 2017 08:20:53 -0700 Subject: [PATCH 056/506] Fix lint --- types/storybook__addon-knobs/storybook__addon-knobs-tests.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/types/storybook__addon-knobs/storybook__addon-knobs-tests.tsx b/types/storybook__addon-knobs/storybook__addon-knobs-tests.tsx index 9c2eed1e1b..9e1c1dbd6b 100644 --- a/types/storybook__addon-knobs/storybook__addon-knobs-tests.tsx +++ b/types/storybook__addon-knobs/storybook__addon-knobs-tests.tsx @@ -53,9 +53,9 @@ stories.add('with all knobs', () => { enumSelectOptions[SomeEnum.Type1] = "Type 1"; enumSelectOptions[SomeEnum.Type2] = "Type 2"; const genericSelect2: SomeEnum = select('Some generic select', enumSelectOptions, SomeEnum.Type1); - + const genericArray: string[] = array('Some generic array', ['red', 'green', 'blue']); - + const genericKnob: X = knob('Some generic knob', { value: 'a', type: 'text' }); const style = { From ca3ec2cfe85c5a4f46abfcba70b016d8bdfcb56e Mon Sep 17 00:00:00 2001 From: Rogier Schouten Date: Mon, 16 Oct 2017 17:26:29 +0200 Subject: [PATCH 057/506] fix Node net.createConnection() and Socket#connect() signatures. (#19456) * fix net.createConnection() and Socket#connect() signatures. * fix lint errors. * Fix review comments. --- types/node/index.d.ts | 47 +++++++++++++++++++++++++++++++++---- types/node/node-tests.ts | 50 +++++++++++++++++++++++++++++++++++----- 2 files changed, 86 insertions(+), 11 deletions(-) diff --git a/types/node/index.d.ts b/types/node/index.d.ts index ee1511b99d..cd60a6052f 100644 --- a/types/node/index.d.ts +++ b/types/node/index.d.ts @@ -2401,6 +2401,30 @@ declare module "dns" { declare module "net" { import * as stream from "stream"; import * as events from "events"; + import * as dns from "dns"; + + export interface SocketConstructorOpts { + fd?: number; + allowHalfOpen?: boolean; + readable?: boolean; + writable?: boolean; + } + + export interface TcpSocketConnectOpts { + port: number; + host?: string; + localAddress?: string; + localPort?: number; + hints?: number; + family?: number; + lookup?: (hostname: string, options: dns.LookupOneOptions, callback: (err: NodeJS.ErrnoException, address: string, family: number) => void) => void; + } + + export interface IpcSocketConnectOpts { + path: string; + } + + export type SocketConnectOpts = TcpSocketConnectOpts | IpcSocketConnectOpts; export interface Socket extends stream.Duplex { // Extended base methods @@ -2411,8 +2435,10 @@ declare module "net" { write(str: string, encoding?: string, fd?: string): boolean; write(data: any, encoding?: string, callback?: Function): void; - connect(port: number, host?: string, connectionListener?: Function): void; - connect(path: string, connectionListener?: Function): void; + connect(options: SocketConnectOpts, connectionListener?: Function): this; + connect(port: number, host: string, connectionListener?: Function): this; + connect(port: number, connectionListener?: Function): this; + connect(path: string, connectionListener?: Function): this; bufferSize: number; setEncoding(encoding?: string): this; destroy(err?: any): void; @@ -2515,7 +2541,7 @@ declare module "net" { } export var Socket: { - new(options?: { fd?: number; allowHalfOpen?: boolean; readable?: boolean; writable?: boolean; }): Socket; + new(options?: SocketConstructorOpts): Socket; }; export interface ListenOptions { @@ -2592,12 +2618,23 @@ declare module "net" { prependOnceListener(event: "error", listener: (err: Error) => void): this; prependOnceListener(event: "listening", listener: () => void): this; } + + export interface TcpNetConnectOpts extends TcpSocketConnectOpts, SocketConstructorOpts { + timeout?: number; + } + + export interface IpcNetConnectOpts extends IpcSocketConnectOpts, SocketConstructorOpts { + timeout?: number; + } + + export type NetConnectOpts = TcpNetConnectOpts | IpcNetConnectOpts; + export function createServer(connectionListener?: (socket: Socket) => void): Server; export function createServer(options?: { allowHalfOpen?: boolean, pauseOnConnect?: boolean }, connectionListener?: (socket: Socket) => void): Server; - export function connect(options: { port: number, host?: string, localAddress?: string, localPort?: number, family?: number, allowHalfOpen?: boolean; }, connectionListener?: Function): Socket; + export function connect(options: NetConnectOpts, connectionListener?: Function): Socket; export function connect(port: number, host?: string, connectionListener?: Function): Socket; export function connect(path: string, connectionListener?: Function): Socket; - export function createConnection(options: { port: number, host?: string, localAddress?: string, localPort?: string, family?: number, allowHalfOpen?: boolean; }, connectionListener?: Function): Socket; + export function createConnection(options: NetConnectOpts, connectionListener?: Function): Socket; export function createConnection(port: number, host?: string, connectionListener?: Function): Socket; export function createConnection(path: string, connectionListener?: Function): Socket; export function isIP(input: string): number; diff --git a/types/node/node-tests.ts b/types/node/node-tests.ts index 8e53bf74d4..596b709bbb 100644 --- a/types/node/node-tests.ts +++ b/types/node/node-tests.ts @@ -2355,6 +2355,19 @@ namespace console_tests { /////////////////////////////////////////////////// namespace net_tests { + { + const connectOpts: net.NetConnectOpts = { + allowHalfOpen: true, + family: 4, + host: "localhost", + port: 443, + timeout: 10E3 + }; + const socket: net.Socket = net.createConnection(connectOpts, (): void => { + // nothing + }); + } + { let server = net.createServer(); // Check methods which return server instances by chaining calls @@ -2375,6 +2388,13 @@ namespace net_tests { } { + const constructorOpts: net.SocketConstructorOpts = { + fd: 1, + allowHalfOpen: false, + readable: false, + writable: false + }; + /** * net.Socket - events.EventEmitter * 1. close @@ -2386,12 +2406,7 @@ namespace net_tests { * 7. lookup * 8. timeout */ - let _socket: net.Socket = new net.Socket({ - fd: 1, - allowHalfOpen: false, - readable: false, - writable: false - }); + let _socket: net.Socket = new net.Socket(constructorOpts); let bool: boolean; let buffer: Buffer; @@ -2399,6 +2414,29 @@ namespace net_tests { let str: string; let num: number; + let ipcConnectOpts: net.IpcSocketConnectOpts = { + path: "/" + }; + let tcpConnectOpts: net.TcpSocketConnectOpts = { + family: 4, + hints: 0, + host: "localhost", + localAddress: "10.0.0.1", + localPort: 1234, + lookup: (_hostname: string, _options: dns.LookupOneOptions, _callback: (err: NodeJS.ErrnoException, address: string, family: number) => void): void => { + // nothing + }, + port: 80 + }; + _socket = _socket.connect(ipcConnectOpts); + _socket = _socket.connect(ipcConnectOpts, (): void => {}); + _socket = _socket.connect(tcpConnectOpts); + _socket = _socket.connect(tcpConnectOpts, (): void => {}); + _socket = _socket.connect(80, "localhost"); + _socket = _socket.connect(80, "localhost", (): void => {}); + _socket = _socket.connect(80); + _socket = _socket.connect(80, (): void => {}); + /// addListener _socket = _socket.addListener("close", had_error => { From 75bd2c47180a20d4c05a842dff846a6246b4a3a1 Mon Sep 17 00:00:00 2001 From: Andy Hanson Date: Mon, 16 Oct 2017 08:28:20 -0700 Subject: [PATCH 058/506] Unify signatures --- types/verror/index.d.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/types/verror/index.d.ts b/types/verror/index.d.ts index 391a373a6c..bddce14924 100644 --- a/types/verror/index.d.ts +++ b/types/verror/index.d.ts @@ -30,8 +30,7 @@ declare class VError extends Error { cause(): Error | undefined; constructor(options: VError.Options | Error, message: string, ...params: any[]); - constructor(message: string, ...params: any[]); - constructor(); + constructor(message?: string, ...params: any[]); } declare namespace VError { From 55a284355b800bef9c4652f8b3fe9b0e56287a2b Mon Sep 17 00:00:00 2001 From: Martijn Schrage Date: Mon, 16 Oct 2017 17:47:24 +0200 Subject: [PATCH 059/506] Add missing method readline.emitKeypressEvents to package node (#19733) --- types/node/index.d.ts | 1 + types/node/node-tests.ts | 8 ++++++++ 2 files changed, 9 insertions(+) diff --git a/types/node/index.d.ts b/types/node/index.d.ts index cd60a6052f..89cf3156f0 100644 --- a/types/node/index.d.ts +++ b/types/node/index.d.ts @@ -1818,6 +1818,7 @@ declare module "readline" { export function createInterface(options: ReadLineOptions): ReadLine; export function cursorTo(stream: NodeJS.WritableStream, x: number, y?: number): void; + export function emitKeypressEvents(stream: NodeJS.ReadableStream, interface?: ReadLine): void; export function moveCursor(stream: NodeJS.WritableStream, dx: number | string, dy: number | string): void; export function clearLine(stream: NodeJS.WritableStream, dir: number): void; export function clearScreenDown(stream: NodeJS.WritableStream): void; diff --git a/types/node/node-tests.ts b/types/node/node-tests.ts index 596b709bbb..161388b3a7 100644 --- a/types/node/node-tests.ts +++ b/types/node/node-tests.ts @@ -1671,6 +1671,14 @@ namespace readline_tests { readline.cursorTo(stream, x, y); } + { + let stream: NodeJS.ReadableStream; + let readLineInterface: readline.ReadLine; + + readline.emitKeypressEvents(stream); + readline.emitKeypressEvents(stream, readLineInterface); + } + { let stream: NodeJS.WritableStream; let dx: number | string; From b5ae36a6f7ba27de29d2265fefc22b9f84b0ade1 Mon Sep 17 00:00:00 2001 From: Andy Hanson Date: Mon, 16 Oct 2017 08:50:21 -0700 Subject: [PATCH 060/506] Fix lint --- types/currency-formatter/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/currency-formatter/index.d.ts b/types/currency-formatter/index.d.ts index 88eb453d2d..d88f18ea7c 100644 --- a/types/currency-formatter/index.d.ts +++ b/types/currency-formatter/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for currency-formatter 1.3.0 +// Type definitions for currency-formatter 1.3 // Project: https://github.com/smirzaei/currency-formatter#readme // Definitions by: Mohamed Hegazy // David Paz From 3d41a7ce5928531e128b563a25f92c48ab30ca64 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicu=20Micleu=C8=99anu?= Date: Mon, 16 Oct 2017 19:03:27 +0300 Subject: [PATCH 061/506] react: Add support for more SVG elements (#19871) --- types/react/index.d.ts | 36 +++++++++++++++++++++++++++++++++++- 1 file changed, 35 insertions(+), 1 deletion(-) diff --git a/types/react/index.d.ts b/types/react/index.d.ts index e22b8e2890..62f1c6c151 100644 --- a/types/react/index.d.ts +++ b/types/react/index.d.ts @@ -3342,16 +3342,46 @@ declare namespace React { } interface ReactSVG { - svg: SVGFactory; animate: SVGFactory; circle: SVGFactory; + clipPath: SVGFactory; defs: SVGFactory; + desc: SVGFactory; ellipse: SVGFactory; + feBlend: SVGFactory; + feColorMatrix: SVGFactory; + feComponentTransfer: SVGFactory; + feComposite: SVGFactory; + feConvolveMatrix: SVGFactory; + feDiffuseLighting: SVGFactory; + feDisplacementMap: SVGFactory; + feDistantLight: SVGFactory; + feDropShadow: SVGFactory; + feFlood: SVGFactory; + feFuncA: SVGFactory; + feFuncB: SVGFactory; + feFuncG: SVGFactory; + feFuncR: SVGFactory; + feGaussianBlur: SVGFactory; + feImage: SVGFactory; + feMerge: SVGFactory; + feMergeNode: SVGFactory; + feMorphology: SVGFactory; + feOffset: SVGFactory; + fePointLight: SVGFactory; + feSpecularLighting: SVGFactory; + feSpotLight: SVGFactory; + feTile: SVGFactory; + feTurbulence: SVGFactory; + filter: SVGFactory; + foreignObject: SVGFactory; g: SVGFactory; image: SVGFactory; line: SVGFactory; linearGradient: SVGFactory; + marker: SVGFactory; mask: SVGFactory; + metadata: SVGFactory; path: SVGFactory; pattern: SVGFactory; polygon: SVGFactory; @@ -3359,10 +3389,14 @@ declare namespace React { radialGradient: SVGFactory; rect: SVGFactory; stop: SVGFactory; + svg: SVGFactory; + switch: SVGFactory; symbol: SVGFactory; text: SVGFactory; + textPath: SVGFactory; tspan: SVGFactory; use: SVGFactory; + view: SVGFactory; } interface ReactDOM extends ReactHTML, ReactSVG { } From ec2c36e82bafa442c382ddd6798e1664ef8c1d2c Mon Sep 17 00:00:00 2001 From: Elijah Schow Date: Mon, 16 Oct 2017 11:04:19 -0500 Subject: [PATCH 062/506] Add `$overrideModelOptions' to 'INgModelController' (closes #19136) (#19880) AngularJS Issue: https://github.com/angular/angular.js/issues/12884 AngularJS Documentation: https://docs.angularjs.org/api/ng/type/ngModel.NgModelController#$overrideModelOptions AngularJS Source: https://github.com/angular/angular.js/blob/master/src/ng/directive/ngModel.js#L863 --- types/angular/index.d.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/types/angular/index.d.ts b/types/angular/index.d.ts index 8415c6e6b7..dc310747c6 100644 --- a/types/angular/index.d.ts +++ b/types/angular/index.d.ts @@ -392,6 +392,7 @@ declare namespace angular { $rollbackViewValue(): void; $commitViewValue(): void; $isEmpty(value: any): boolean; + $overrideModelOptions(options: INgModelOptions): void; $viewValue: any; From 0b0c6b20b0133d5e49dc5e4cb2d7cd7ba37a0da3 Mon Sep 17 00:00:00 2001 From: aidandownes Date: Mon, 16 Oct 2017 09:06:56 -0700 Subject: [PATCH 063/506] Update type definition for $injector.invoke to be consistent with angular documentation/code. (#19886) - $inject.invoke also accepts optional context and locals agruments when function is an array annotation format. - Also added tests. --- types/angular/angular-tests.ts | 8 +++++++- types/angular/index.d.ts | 2 +- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/types/angular/angular-tests.ts b/types/angular/angular-tests.ts index c60da29504..03f7af5160 100644 --- a/types/angular/angular-tests.ts +++ b/types/angular/angular-tests.ts @@ -509,7 +509,13 @@ namespace TestInjector { } const anyFunction: Function = foobar; - const anyResult: string = $injector.invoke(anyFunction); + let anyResult: string = $injector.invoke(anyFunction); + + const inlineAnnotatedFunction: any[] = [false, foobar]; + anyResult = $injector.invoke(inlineAnnotatedFunction); + anyResult = $injector.invoke(inlineAnnotatedFunction, 'anyContext', 'anyLocals'); + anyResult = $injector.invoke(inlineAnnotatedFunction, 'anyContext'); + anyResult = $injector.invoke(inlineAnnotatedFunction, undefined, 'anyLocals'); } } diff --git a/types/angular/index.d.ts b/types/angular/index.d.ts index dc310747c6..bcc8ab7466 100644 --- a/types/angular/index.d.ts +++ b/types/angular/index.d.ts @@ -2079,7 +2079,7 @@ declare namespace angular { get(name: '$xhrFactory'): IXhrFactory; has(name: string): boolean; instantiate(typeConstructor: {new(...args: any[]): T}, locals?: any): T; - invoke(inlineAnnotatedFunction: any[]): any; + invoke(inlineAnnotatedFunction: any[], context?: any, locals?: any): any; invoke(func: (...args: any[]) => T, context?: any, locals?: any): T; invoke(func: Function, context?: any, locals?: any): any; strictDi: boolean; From 68fcd921ba01d38fed897721d77a6a8525125e3d Mon Sep 17 00:00:00 2001 From: Tim Kye Date: Mon, 16 Oct 2017 09:07:47 -0700 Subject: [PATCH 064/506] Yeoman-generator: add error function to base type (#19887) * add error function to base type this function is the recommended method for raising errors. http://yeoman.io/environment/Environment.html#error https://stackoverflow.com/questions/27616689/how-to-gracefully-abort-yeoman-generator-on-error * fix travis lint error * lint fix 2 --- types/yeoman-generator/index.d.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/types/yeoman-generator/index.d.ts b/types/yeoman-generator/index.d.ts index 554a38f040..a1a065931c 100644 --- a/types/yeoman-generator/index.d.ts +++ b/types/yeoman-generator/index.d.ts @@ -61,7 +61,9 @@ declare class Base extends EventEmitter { constructor(args: string|string[], options: {}); - env: {}; + env: { + error(...e: Error[]): void + }; args: {}; resolved: string; description: string; From dc7fba2b21e986d3591d7c2c28d2c34935460d97 Mon Sep 17 00:00:00 2001 From: Witchu Promjunyakul Date: Mon, 16 Oct 2017 23:17:43 +0700 Subject: [PATCH 065/506] fix TCursor.shape (#19984) add blessed.log() --- types/blessed/index.d.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/types/blessed/index.d.ts b/types/blessed/index.d.ts index abbc31d295..553942af2f 100644 --- a/types/blessed/index.d.ts +++ b/types/blessed/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for blessed 0.1.5 +// Type definitions for blessed 0.1.6 // Project: https://github.com/chjj/blessed // Definitions by: bryn austin bellomy // Definitions: https://github.com/borisyankov/DefinitelyTyped @@ -74,7 +74,7 @@ declare namespace Blessed { /** * Shape of the cursor. Can be: block, underline, or line. */ - shape: boolean; + shape: 'block'|'underline'|'line'; /** * Whether the cursor blinks. */ @@ -2821,6 +2821,7 @@ declare namespace Blessed { export function question(options?: Widgets.QuestionOptions): Widgets.QuestionElement; export function message(options?: Widgets.MessageOptions): Widgets.MessageElement; export function loading(options?: Widgets.LoadingOptions): Widgets.LoadingElement; + export function log(options?: Widgets.LogOptions): Widgets.Log; export function progressbar(options?: Widgets.ProgressBarOptions): Widgets.ProgressBarElement; export function terminal(options?: Widgets.TerminalOptions): Widgets.TerminalElement; From 3e28d5d77deec7407273fb400bbe9cb360cfa0d4 Mon Sep 17 00:00:00 2001 From: Andy Hanson Date: Mon, 16 Oct 2017 10:10:25 -0700 Subject: [PATCH 066/506] Fix test --- types/gl-matrix/gl-matrix-tests.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/types/gl-matrix/gl-matrix-tests.ts b/types/gl-matrix/gl-matrix-tests.ts index 765f871e30..02654491b4 100644 --- a/types/gl-matrix/gl-matrix-tests.ts +++ b/types/gl-matrix/gl-matrix-tests.ts @@ -70,7 +70,7 @@ outVec2 = vec2.negate(outVec2, vec2A); outVec2 = vec2.inverse(outVec2, vec2A); outVec2 = vec2.normalize(outVec2, vec2A); outVal = vec2.dot(vec2A, vec2B); -outVec2 = vec2.cross(outVec2, vec2A, vec2B); +outVec2 = vec2.cross(outVec3, vec2A, vec2B); outVec2 = vec2.lerp(outVec2, vec2A, vec2B, 0.5); outVec2 = vec2.random(outVec2); outVec2 = vec2.random(outVec2, 5.0); @@ -432,7 +432,7 @@ outVec2 = _vec2.negate(outVec2, vec2A); outVec2 = _vec2.inverse(outVec2, vec2A); outVec2 = _vec2.normalize(outVec2, vec2A); outVal = _vec2.dot(vec2A, vec2B); -outVec2 = _vec2.cross(outVec2, vec2A, vec2B); +outVec2 = _vec2.cross(outVec3, vec2A, vec2B); outVec2 = _vec2.lerp(outVec2, vec2A, vec2B, 0.5); outVec2 = _vec2.random(outVec2); outVec2 = _vec2.random(outVec2, 5.0); From b0447ecb517753d780d977dbb273e124326d6863 Mon Sep 17 00:00:00 2001 From: Sami Kukkonen Date: Mon, 16 Oct 2017 20:13:28 +0300 Subject: [PATCH 067/506] Add _destroy to for node Readable stream (#20068) From the docs: https://nodejs.org/api/stream.html#stream_readable_destroy_err_callback As specified in https://nodejs.org/api/stream.html#stream_readable_destroy_error implementors are recommended to implement this method instead of `destroy()` and the original method should be available for calling via `super`. This change matches the signatures of other Stream subclasses by annotating `callback` as `Function` instead of `(err: Error) => void`. --- types/node/index.d.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/types/node/index.d.ts b/types/node/index.d.ts index 89cf3156f0..4649880ee1 100644 --- a/types/node/index.d.ts +++ b/types/node/index.d.ts @@ -5073,6 +5073,7 @@ declare module "stream" { unshift(chunk: any): void; wrap(oldStream: NodeJS.ReadableStream): Readable; push(chunk: any, encoding?: string): boolean; + _destroy(err: Error, callback: Function): void; destroy(error?: Error): void; /** From f5dc2b6e332fa61a751aad72f01419ed4bf8674a Mon Sep 17 00:00:00 2001 From: Daniel Imms Date: Mon, 16 Oct 2017 10:15:45 -0700 Subject: [PATCH 068/506] Remove self from maintainers (#20126) --- types/node/index.d.ts | 1 - types/node/v7/index.d.ts | 1 - 2 files changed, 2 deletions(-) diff --git a/types/node/index.d.ts b/types/node/index.d.ts index 4649880ee1..c34410dc10 100644 --- a/types/node/index.d.ts +++ b/types/node/index.d.ts @@ -10,7 +10,6 @@ // Flarna // Mariusz Wiktorczyk // wwwy3y3 -// Daniel Imms // Deividas Bakanas // Kelvin Jin // Alvis HT Tang diff --git a/types/node/v7/index.d.ts b/types/node/v7/index.d.ts index bc646e013f..3a5994efbc 100644 --- a/types/node/v7/index.d.ts +++ b/types/node/v7/index.d.ts @@ -6,7 +6,6 @@ // Roberto Desideri // Christian Vaagland Tellnes // Wilco Bakker -// Daniel Imms // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /************************************************ From 8fb6da1ff474db9a9c410aaf12c15451a3e6dd42 Mon Sep 17 00:00:00 2001 From: Andy Hanson Date: Mon, 16 Oct 2017 10:17:36 -0700 Subject: [PATCH 069/506] Remove `type String` --- types/google-apps-script/google-apps-script.types.d.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/types/google-apps-script/google-apps-script.types.d.ts b/types/google-apps-script/google-apps-script.types.d.ts index b2c67e5e2f..5204a8a2a4 100644 --- a/types/google-apps-script/google-apps-script.types.d.ts +++ b/types/google-apps-script/google-apps-script.types.d.ts @@ -8,6 +8,5 @@ declare module GoogleAppsScript { type Byte = number; type Integer = number; type Char = string; - type String = string;// Should be unnecessary now that I replaced all String with string type JdbcSQL_XML = any; } From 989ce9832c3d5f121f65439c17445a8f9ff04c63 Mon Sep 17 00:00:00 2001 From: Andy Hanson Date: Mon, 16 Oct 2017 10:20:04 -0700 Subject: [PATCH 070/506] Add strictFunctionTypes --- types/sequencify/tsconfig.json | 1 + 1 file changed, 1 insertion(+) diff --git a/types/sequencify/tsconfig.json b/types/sequencify/tsconfig.json index fb43176f7c..1f6ed9d033 100644 --- a/types/sequencify/tsconfig.json +++ b/types/sequencify/tsconfig.json @@ -9,6 +9,7 @@ "noImplicitAny": true, "noImplicitThis": true, "strictNullChecks": true, + "strictFunctionTypes": true, "baseUrl": "../", "typeRoots": [ "../" From 6c91d49f9fbed3314d4e38ccaf909e3fe9e70dc3 Mon Sep 17 00:00:00 2001 From: Andy Hanson Date: Mon, 16 Oct 2017 10:23:51 -0700 Subject: [PATCH 071/506] Fix import style and add strictFunctionTypes --- types/blob-to-buffer/blob-to-buffer-tests.ts | 2 +- types/blob-to-buffer/tsconfig.json | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/types/blob-to-buffer/blob-to-buffer-tests.ts b/types/blob-to-buffer/blob-to-buffer-tests.ts index 1be7e54e7f..21d9508469 100644 --- a/types/blob-to-buffer/blob-to-buffer-tests.ts +++ b/types/blob-to-buffer/blob-to-buffer-tests.ts @@ -1,4 +1,4 @@ -import * as blobToBuffer from "blob-to-buffer"; +import blobToBuffer = require("blob-to-buffer"); blobToBuffer(new Blob(), (error, buffer) => { console.log(error); diff --git a/types/blob-to-buffer/tsconfig.json b/types/blob-to-buffer/tsconfig.json index 8861d219a1..2421ce2493 100644 --- a/types/blob-to-buffer/tsconfig.json +++ b/types/blob-to-buffer/tsconfig.json @@ -8,6 +8,7 @@ "noImplicitAny": true, "noImplicitThis": true, "strictNullChecks": true, + "strictFunctionTypes": true, "baseUrl": "../", "typeRoots": [ "../" From 0e7cad3271530e96a5496b8ebceb3e25136261a4 Mon Sep 17 00:00:00 2001 From: Alessandro Vergani Date: Mon, 16 Oct 2017 19:39:48 +0200 Subject: [PATCH 072/506] Add setMulticastInterface to node dgram (#20186) --- types/node/index.d.ts | 1 + types/node/node-tests.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/types/node/index.d.ts b/types/node/index.d.ts index c34410dc10..0d4f019d26 100644 --- a/types/node/index.d.ts +++ b/types/node/index.d.ts @@ -2685,6 +2685,7 @@ declare module "dgram" { setBroadcast(flag: boolean): void; setTTL(ttl: number): void; setMulticastTTL(ttl: number): void; + setMulticastInterface(multicastInterface: string): void; setMulticastLoopback(flag: boolean): void; addMembership(multicastAddress: string, multicastInterface?: string): void; dropMembership(multicastAddress: string, multicastInterface?: string): void; diff --git a/types/node/node-tests.ts b/types/node/node-tests.ts index 161388b3a7..20dfd7e44f 100644 --- a/types/node/node-tests.ts +++ b/types/node/node-tests.ts @@ -1332,6 +1332,7 @@ namespace dgram_tests { ds.send(new Buffer("hello"), 0, 5, 5000, "127.0.0.1", (error: Error, bytes: number): void => { }); ds.send(new Buffer("hello"), 5000, "127.0.0.1"); + ds.setMulticastInterface("127.0.0.1"); } { From faca90d1d882af7d9b15a58fe4389f94cc06b71e Mon Sep 17 00:00:00 2001 From: Max Battcher Date: Mon, 16 Oct 2017 13:42:07 -0400 Subject: [PATCH 073/506] Popper.js typings not needed (#20258) * Popper.js typings not needed Popper.js now bundles its own typings. Resolves #18442 * Fix popper semver in notNeededPackages.json --- notNeededPackages.json | 6 ++ types/popper.js/index.d.ts | 110 ----------------------------- types/popper.js/popper.js-tests.ts | 101 -------------------------- types/popper.js/tsconfig.json | 24 ------- types/popper.js/tslint.json | 7 -- 5 files changed, 6 insertions(+), 242 deletions(-) delete mode 100644 types/popper.js/index.d.ts delete mode 100644 types/popper.js/popper.js-tests.ts delete mode 100644 types/popper.js/tsconfig.json delete mode 100644 types/popper.js/tslint.json diff --git a/notNeededPackages.json b/notNeededPackages.json index 579bcf46ef..911ab62afb 100644 --- a/notNeededPackages.json +++ b/notNeededPackages.json @@ -486,6 +486,12 @@ "sourceRepoURL": "https://github.com/r3mi/poly2tri.js", "asOfVersion": "1.4.0" }, + { + "libraryName": "popper.js", + "typingsPackageName": "popper.js", + "sourceRepoURL": "https://github.com/FezVrasta/popper.js/", + "asOfVersion": "1.11.0" + }, { "libraryName": "Prando", "typingsPackageName": "prando", diff --git a/types/popper.js/index.d.ts b/types/popper.js/index.d.ts deleted file mode 100644 index 19e892cc03..0000000000 --- a/types/popper.js/index.d.ts +++ /dev/null @@ -1,110 +0,0 @@ -// Type definitions for popper.js 1.10 -// Project: https://github.com/FezVrasta/popper.js/ -// Definitions by: rhysd -// joscha -// seckardt -// marcfallows -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -declare namespace Popper { - type Position = 'top' | 'right' | 'bottom' | 'left'; - type Placement = 'auto-start' - | 'auto' - | 'auto-end' - | 'top-start' - | 'top' - | 'top-end' - | 'right-start' - | 'right' - | 'right-end' - | 'bottom-end' - | 'bottom' - | 'bottom-start' - | 'left-end' - | 'left' - | 'left-start'; - interface PopperOptions { - placement?: Placement; - eventsEnabled?: boolean; - modifiers?: Modifiers; - removeOnDestroy?: boolean; - onCreate?(data: Data): void; - onUpdate?(data: Data): void; - } - type ModifierFn = (data: Data, options: Object) => Data; - interface BaseModifier { - order?: number; - enabled?: boolean; - fn?: ModifierFn; - } - class Modifiers { - shift?: BaseModifier; - offset?: BaseModifier & { - offset?: number | string, - }; - preventOverflow?: BaseModifier & { - priority?: Position[], - padding?: number, - boundariesElement?: string | Element, - }; - keepTogether?: BaseModifier; - arrow?: BaseModifier & { - element?: string | Element, - }; - flip?: BaseModifier & { - behavior?: 'flip' | 'clockwise' | 'counterclockwise' | Position[], - padding?: number, - boundariesElement?: string | Element, - }; - inner?: BaseModifier; - hide?: BaseModifier; - applyStyle?: BaseModifier & { - onLoad?: Function, - gpuAcceleration?: boolean, - }; - } - interface Offset { - top: number; - left: number; - width: number; - height: number; - } - interface Data { - instance: Popper; - placement: Placement; - originalPlacement: Placement; - flipped: boolean; - hide: boolean; - arrowElement: Element; - styles: Object; - boundaries: Object; - offsets: { - popper: Offset, - reference: Offset, - arrow: { - top: number, - left: number, - }, - }; - } -} - -declare class Popper { - static modifiers: Object[]; - static placements: Popper.Placement[]; - static Defaults: Popper.PopperOptions; - - constructor(reference: Element, popper: Element | Object, options?: Popper.PopperOptions); - - destroy(): void; - update(): void; - scheduleUpdate(): void; - enableEventListeners(): void; - disableEventListeners(): void; -} - -// Popper.js is globally available directly, but in a module it's only available as a default export. -// tslint:disable-next-line no-single-declare-module no-declare-current-package -declare module 'popper.js' { - export default Popper; -} diff --git a/types/popper.js/popper.js-tests.ts b/types/popper.js/popper.js-tests.ts deleted file mode 100644 index b261577264..0000000000 --- a/types/popper.js/popper.js-tests.ts +++ /dev/null @@ -1,101 +0,0 @@ -import Popper from 'popper.js'; - -const reference = document.querySelector('.my-button'); -const popper = document.querySelector('.my-popper'); -const boundary = document.querySelector('.my-boundary'); -const arrow = document.querySelector('.my-arrow'); - -const thePopper = new Popper( - reference, - popper, -); -thePopper.update(); -thePopper.scheduleUpdate(); -thePopper.destroy(); -thePopper.enableEventListeners(); -thePopper.disableEventListeners(); - -Popper.modifiers.forEach(console.log.bind(console)); -Popper.placements.forEach(console.log.bind(console)); - -const thePopperWithOptions = new Popper( - reference, - popper, - { - placement: 'bottom', - eventsEnabled: true, - removeOnDestroy: true, - modifiers: { - shift: { - enabled: true, - fn: (data) => data, - order: 100, - }, - offset: { - enabled: true, - fn: (data) => data, - order: 100, - offset: 0, - }, - preventOverflow: { - enabled: true, - fn: (data) => data, - order: 100, - priority: ['top', 'bottom'], - padding: 1, - boundariesElement: boundary, - }, - keepTogether: { - enabled: false, - fn: (data) => data, - order: 200, - }, - arrow: { - enabled: true, - fn: (data) => data, - order: 400, - element: arrow, - }, - flip: { - enabled: true, - fn: (data) => data, - order: 400, - behavior: ['top', 'right'], - padding: 5, - boundariesElement: boundary, - }, - inner: { - enabled: true, - fn: (data) => data, - order: 400, - }, - hide: { - enabled: true, - fn: (data) => data, - order: 400, - }, - applyStyle: { - enabled: true, - fn: (data) => data, - order: 400, - onLoad: () => 0, - }, - } - } -); - -const anotherPoppanotherPopper = new Popper(reference, popper); - -const anotherAnotherPopper = new Popper(reference, popper, { - modifiers: { - flip: { - behavior: 'clockwise' - } - }, - onCreate: (data => console.log(data)), - onUpdate: (data => { - data.instance.scheduleUpdate(); - const p = data.offsets.popper; - console.log(`top: ${p.top}, left: ${p.left}, width: ${p.width}, height: ${p.height}`); - }) -}); diff --git a/types/popper.js/tsconfig.json b/types/popper.js/tsconfig.json deleted file mode 100644 index e5f5d39e07..0000000000 --- a/types/popper.js/tsconfig.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compilerOptions": { - "module": "commonjs", - "lib": [ - "es6", - "dom" - ], - "noImplicitAny": true, - "noImplicitThis": true, - "strictNullChecks": false, - "strictFunctionTypes": true, - "baseUrl": "../", - "typeRoots": [ - "../" - ], - "types": [], - "noEmit": true, - "forceConsistentCasingInFileNames": true - }, - "files": [ - "index.d.ts", - "popper.js-tests.ts" - ] -} \ No newline at end of file diff --git a/types/popper.js/tslint.json b/types/popper.js/tslint.json deleted file mode 100644 index fd7e538a58..0000000000 --- a/types/popper.js/tslint.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "extends": "dtslint/dt.json", - "rules": { - // TODO - "ban-types": false - } -} From 6366b6c58a7f1e2f214cc635b3d74e09a8d134d6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20P?= Date: Mon, 16 Oct 2017 19:54:30 +0200 Subject: [PATCH 074/506] Update DefinitelyTyped (#20318) * Update index.d.ts add proxyOption.proxyReq * Update index.d.ts proxyRes and proxyReq can be Function or Function[] * Update index.d.ts * Update browser-sync-tests.ts add test for proxyRes & proxyReq * Update browser-sync-tests.ts --- types/browser-sync/browser-sync-tests.ts | 40 ++++++++++++++++++++++++ types/browser-sync/index.d.ts | 8 +++-- 2 files changed, 45 insertions(+), 3 deletions(-) diff --git a/types/browser-sync/browser-sync-tests.ts b/types/browser-sync/browser-sync-tests.ts index c20f27236a..85cd464a21 100644 --- a/types/browser-sync/browser-sync-tests.ts +++ b/types/browser-sync/browser-sync-tests.ts @@ -24,6 +24,46 @@ browserSync({ proxy: "yourlocal.dev" }); +browserSync({ + proxy: { + target: "http://yourlocal.dev", + proxyReq: function(proxyReq) { + console.log(proxyReq); + } + } +}); + +browserSync({ + proxy: { + target: "http://yourlocal.dev", + proxyReq: [ + function(proxyReq) { + console.log(proxyReq); + } + ] + } +}); + +browserSync({ + proxy: { + target: "http://yourlocal.dev", + proxyRes: function(proxyRes, req, res) { + console.log(proxyRes); + } + } +}); + +browserSync({ + proxy: { + target: "http://yourlocal.dev", + proxyRes: [ + function(proxyRes, req, res) { + console.log(proxyRes); + } + ] + } +}); + var config = { server: { baseDir: "./" diff --git a/types/browser-sync/index.d.ts b/types/browser-sync/index.d.ts index ade12d3cb6..b22054c367 100644 --- a/types/browser-sync/index.d.ts +++ b/types/browser-sync/index.d.ts @@ -48,6 +48,7 @@ declare namespace browserSync { * middleware - Default: undefined * reqHeaders - Default: undefined * proxyRes - Default: undefined + * proxyReq - Default: undefined */ proxy?: string | boolean | ProxyOptions; /** @@ -291,9 +292,10 @@ declare namespace browserSync { interface ProxyOptions { target?: string; middleware?: MiddlewareHandler; - ws: boolean; - reqHeaders: (config: any) => Hash; - proxyRes: (res: http.ServerResponse, req: http.IncomingMessage, next: Function) => any; + ws?: boolean; + reqHeaders?: (config: any) => Hash; + proxyRes?: ((res: http.ServerResponse, req: http.IncomingMessage, next: Function) => any)[] | ((res: http.ServerResponse, req: http.IncomingMessage, next: Function) => any); + proxyReq?: ((res: http.ServerRequest) => any)[] | ((res: http.ServerRequest) => any); } interface MiddlewareHandler { From 95bac4fd310a968f3630c241acc184967edd26f3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mar=C3=ADa=20Mercedes=20Retolaza=20Reyna?= Date: Mon, 16 Oct 2017 12:04:07 -0600 Subject: [PATCH 075/506] add missed prop in modal header (#20358) * add missed prop in modal header * Fix CI failures * Add comma to definition authors at react-bootstrap --- types/react-bootstrap/index.d.ts | 3 ++- types/react-bootstrap/lib/ModalHeader.d.ts | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/types/react-bootstrap/index.d.ts b/types/react-bootstrap/index.d.ts index dcb5998f7a..2b84e7755c 100644 --- a/types/react-bootstrap/index.d.ts +++ b/types/react-bootstrap/index.d.ts @@ -6,8 +6,9 @@ // Batbold Gansukh , // Raymond May Jr. , // Cheng Sieu Ly , +// Mercedes Retolaza , // Kat Busch , -// Vito Samson +// Vito Samson , // Karol Janyst // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 diff --git a/types/react-bootstrap/lib/ModalHeader.d.ts b/types/react-bootstrap/lib/ModalHeader.d.ts index 0500a5e445..c7ed09c495 100644 --- a/types/react-bootstrap/lib/ModalHeader.d.ts +++ b/types/react-bootstrap/lib/ModalHeader.d.ts @@ -5,6 +5,7 @@ declare namespace ModalHeader { closeButton?: boolean; closeLabel?: string; onHide?: Function; + bsClass?: string; } } declare class ModalHeader extends React.Component { } From 57804c9a7d92d37938b95880686a08c6df3a2314 Mon Sep 17 00:00:00 2001 From: Aaron Beall Date: Mon, 16 Oct 2017 14:07:12 -0400 Subject: [PATCH 076/506] Changed title/label props on components to ReactNode instead HTML props string, per docs (#20379) * Changed TabProps.title to ReactNode not string, per docs * Fixed declaration of title/label as ReactNode for components, per docs --- types/react-bootstrap/index.d.ts | 1 + types/react-bootstrap/lib/DropdownButton.d.ts | 1 + types/react-bootstrap/lib/Popover.d.ts | 5 +++-- types/react-bootstrap/lib/ProgressBar.d.ts | 5 +++-- types/react-bootstrap/lib/SplitButton.d.ts | 6 ++++-- types/react-bootstrap/lib/Tab.d.ts | 5 +++-- .../test/react-bootstrap-individual-components-tests.tsx | 4 ++-- 7 files changed, 17 insertions(+), 10 deletions(-) diff --git a/types/react-bootstrap/index.d.ts b/types/react-bootstrap/index.d.ts index 2b84e7755c..e09bef50a4 100644 --- a/types/react-bootstrap/index.d.ts +++ b/types/react-bootstrap/index.d.ts @@ -10,6 +10,7 @@ // Kat Busch , // Vito Samson , // Karol Janyst +// Aaron Beall // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 diff --git a/types/react-bootstrap/lib/DropdownButton.d.ts b/types/react-bootstrap/lib/DropdownButton.d.ts index df66dd36dd..e2626e2bb7 100644 --- a/types/react-bootstrap/lib/DropdownButton.d.ts +++ b/types/react-bootstrap/lib/DropdownButton.d.ts @@ -10,6 +10,7 @@ declare namespace DropdownButton { navItem?: boolean; noCaret?: boolean; pullRight?: boolean; + title: React.ReactNode; } export type DropdownButtonProps = DropdownButtonBaseProps & React.HTMLProps; diff --git a/types/react-bootstrap/lib/Popover.d.ts b/types/react-bootstrap/lib/Popover.d.ts index 2af51da4b6..95abc38854 100644 --- a/types/react-bootstrap/lib/Popover.d.ts +++ b/types/react-bootstrap/lib/Popover.d.ts @@ -1,8 +1,8 @@ import * as React from 'react'; -import { Sizes } from 'react-bootstrap'; +import { Sizes, Omit } from 'react-bootstrap'; declare namespace Popover { - export interface PopoverProps extends React.HTMLProps { + export interface PopoverProps extends Omit, "title"> { // Optional arrowOffsetLeft?: number | string; arrowOffsetTop?: number | string; @@ -11,6 +11,7 @@ declare namespace Popover { placement?: string; positionLeft?: number | string; // String support added since v0.30.0 positionTop?: number | string; // String support added since v0.30.0 + title?: React.ReactNode; } } declare class Popover extends React.Component { } diff --git a/types/react-bootstrap/lib/ProgressBar.d.ts b/types/react-bootstrap/lib/ProgressBar.d.ts index 89b2e07cc0..8fc408ac65 100644 --- a/types/react-bootstrap/lib/ProgressBar.d.ts +++ b/types/react-bootstrap/lib/ProgressBar.d.ts @@ -1,8 +1,8 @@ import * as React from 'react'; -import { Sizes } from 'react-bootstrap'; +import { Sizes, Omit } from 'react-bootstrap'; declare namespace ProgressBar { - export interface ProgressBarProps extends React.HTMLProps { + export interface ProgressBarProps extends Omit, "label"> { // Optional active?: boolean; bsSize?: Sizes; @@ -13,6 +13,7 @@ declare namespace ProgressBar { now?: number; srOnly?: boolean; striped?: boolean; + label?: React.ReactNode; } } declare class ProgressBar extends React.Component { } diff --git a/types/react-bootstrap/lib/SplitButton.d.ts b/types/react-bootstrap/lib/SplitButton.d.ts index 7f3d9d7f30..7b824cd647 100644 --- a/types/react-bootstrap/lib/SplitButton.d.ts +++ b/types/react-bootstrap/lib/SplitButton.d.ts @@ -1,13 +1,15 @@ import * as React from 'react'; -import { Sizes } from 'react-bootstrap'; +import { Sizes, Omit } from 'react-bootstrap'; declare namespace SplitButton { - export interface SplitButtonProps extends React.HTMLProps { + export interface SplitButtonProps extends Omit, "title"> { bsStyle?: string; bsSize?: Sizes; dropdownTitle?: any; // TODO: Add more specific type dropup?: boolean; pullRight?: boolean; + title: React.ReactNode; + id: string; } } declare class SplitButton extends React.Component { } diff --git a/types/react-bootstrap/lib/Tab.d.ts b/types/react-bootstrap/lib/Tab.d.ts index f30264a562..1c98d8c0a3 100644 --- a/types/react-bootstrap/lib/Tab.d.ts +++ b/types/react-bootstrap/lib/Tab.d.ts @@ -1,17 +1,18 @@ import * as React from 'react'; -import { TransitionCallbacks } from 'react-bootstrap'; +import { TransitionCallbacks, Omit } from 'react-bootstrap'; import * as TabContainer from './TabContainer'; import * as TabPane from './TabPane'; import * as TabContent from './TabContent'; declare namespace Tab { - export interface TabProps extends TransitionCallbacks, React.HTMLProps { + export interface TabProps extends TransitionCallbacks, Omit, "title"> { animation?: boolean; 'aria-labelledby'?: string; bsClass?: string; eventKey?: any; // TODO: Add more specific type unmountOnExit?: boolean; tabClassName?: string; + title?: React.ReactNode; // Override HTMLProps.title to allow nodes not just strings } } declare class Tab extends React.Component { diff --git a/types/react-bootstrap/test/react-bootstrap-individual-components-tests.tsx b/types/react-bootstrap/test/react-bootstrap-individual-components-tests.tsx index 78579dc953..ff2c5b7472 100644 --- a/types/react-bootstrap/test/react-bootstrap-individual-components-tests.tsx +++ b/types/react-bootstrap/test/react-bootstrap-individual-components-tests.tsx @@ -120,7 +120,7 @@ export class ReactBootstrapIndividualComponentsTest extends React.Component { - + @@ -178,7 +178,7 @@ export class ReactBootstrapIndividualComponentsTest extends React.Component { - + From 55b81a75c508d685feca39e38ebe071820cafde1 Mon Sep 17 00:00:00 2001 From: Demiurga Date: Tue, 17 Oct 2017 02:13:13 +0800 Subject: [PATCH 077/506] Fix callback and Promise resolve type (#20404) * Fix callback and Promise resolve Promise and callback should resolve Core.Document, not just Core.Response * Update pouchdb-upsert-tests.ts * fix version format * Down the version to 2.4 --- types/pouchdb-upsert/index.d.ts | 14 +++++++------- types/pouchdb-upsert/pouchdb-upsert-tests.ts | 12 ++++++------ 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/types/pouchdb-upsert/index.d.ts b/types/pouchdb-upsert/index.d.ts index e893a052aa..0a71b0383d 100644 --- a/types/pouchdb-upsert/index.d.ts +++ b/types/pouchdb-upsert/index.d.ts @@ -1,8 +1,8 @@ -// Type definitions for pouchdb-upsert 2.0 +// Type definitions for pouchdb-upsert 2.2 // Project: https://github.com/pouchdb/upsert -// Definitions by: Keith D. Moore , Andrew Mitchell +// Definitions by: Keith D. Moore , Andrew Mitchell , Eddie Hsu // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -// TypeScript Version: 2.3 +// TypeScript Version: 2.4 /// @@ -20,7 +20,7 @@ declare namespace PouchDB { * If the document does not already exist, then {} will be the input to diffFunc. * */ - upsert(docId: Core.DocumentId, diffFun: UpsertDiffCallback): Promise; + upsert(docId: Core.DocumentId, diffFun: UpsertDiffCallback): Promise>; /** * Perform an upsert (update or insert) operation. If a callback is not provided, the Promise based version @@ -33,7 +33,7 @@ declare namespace PouchDB { * @param callback - called with the results after operation is completed. */ upsert(docId: Core.DocumentId, diffFun: UpsertDiffCallback, - callback: Core.Callback): void; + callback: Core.Callback>): void; /** * Put a new document with the given docId, if it doesn't already exist. Returns a Promise. @@ -41,7 +41,7 @@ declare namespace PouchDB { * @param doc - the document to insert. Should contain an _id if docId is not specified * If the document already exists, then the Promise will just resolve immediately. */ - putIfNotExists(doc: Core.Document): Promise; + putIfNotExists(doc: Core.Document): Promise>; // /** @@ -55,7 +55,7 @@ declare namespace PouchDB { * will return a Promise. */ putIfNotExists(doc: Core.Document, - callback: Core.Callback): void; + callback: Core.Callback>): void; } type UpsertDiffCallback = (doc: Core.Document) => Core.Document | boolean; diff --git a/types/pouchdb-upsert/pouchdb-upsert-tests.ts b/types/pouchdb-upsert/pouchdb-upsert-tests.ts index c3d261bb5c..a441f76ab4 100644 --- a/types/pouchdb-upsert/pouchdb-upsert-tests.ts +++ b/types/pouchdb-upsert/pouchdb-upsert-tests.ts @@ -12,7 +12,7 @@ function testUpsert_WithPromise_AndReturnDoc() { db.upsert(docToUpsert._id, (doc: PouchDB.Core.Document) => { // Make some updates.... return doc; - }).then((res: PouchDB.Core.Response) => { + }).then((res: PouchDB.Core.Document) => { }); } @@ -20,7 +20,7 @@ function testUpsert_WithPromise_AndReturnBoolean() { db.upsert(docToUpsert._id, (doc: PouchDB.Core.Document) => { // Make some updates.... return false; - }).then((res: PouchDB.Core.Response) => { + }).then((res: PouchDB.Core.Document) => { }); } @@ -28,7 +28,7 @@ function testUpsert_WithCallback_AndReturnDoc() { db.upsert(docToUpsert._id, (doc: PouchDB.Core.Document) => { // Make some updates.... return doc; - }, (res: PouchDB.Core.Response) => {}); + }, (res: PouchDB.Core.Document) => {}); } function testUpsert_WithCallback_AndReturnBoolean() { @@ -36,13 +36,13 @@ function testUpsert_WithCallback_AndReturnBoolean() { db.upsert(docToUpsert._id, (doc: PouchDB.Core.Document) => { // Make some updates.... return false; - }, (res: PouchDB.Core.Response) => {}); + }, (res: PouchDB.Core.Document) => {}); } function testPutIfNotExists_WithPromise() { - db.putIfNotExists(docToUpsert).then((res: PouchDB.Core.Response) => {}); + db.putIfNotExists(docToUpsert).then((res: PouchDB.Core.Document) => {}); } function testPutIfNotExists_WithCallback() { - db.putIfNotExists(docToUpsert, (res: PouchDB.Core.Response) => {}); + db.putIfNotExists(docToUpsert, (res: PouchDB.Core.Document) => {}); } From 2466ddbcff7259ca04383d318ce03f2696e24a36 Mon Sep 17 00:00:00 2001 From: Flarna Date: Mon, 16 Oct 2017 20:18:42 +0200 Subject: [PATCH 078/506] [node] Add Buffer.poolSize() and correct Buffer.byteLength() (#20419) * [node] Add Buffer.poolSize * [node] Allow more types for Buffer.byteLength() * fix lint issue --- types/node/index.d.ts | 8 ++++++-- types/node/node-tests.ts | 26 ++++++++++++++++++++++++++ 2 files changed, 32 insertions(+), 2 deletions(-) diff --git a/types/node/index.d.ts b/types/node/index.d.ts index 0d4f019d26..0806b4dafb 100644 --- a/types/node/index.d.ts +++ b/types/node/index.d.ts @@ -239,10 +239,10 @@ declare var Buffer: { * Gives the actual byte length of a string. encoding defaults to 'utf8'. * This is not the same as String.prototype.length since that returns the number of characters in a string. * - * @param string string to test. + * @param string string to test. (TypedArray is also allowed, but it is only available starting ES2017) * @param encoding encoding used to evaluate (defaults to 'utf8') */ - byteLength(string: string, encoding?: string): number; + byteLength(string: string | Buffer | DataView | ArrayBuffer, encoding?: string): number; /** * Returns a buffer which is the result of concatenating all the buffers in the list together. * @@ -282,6 +282,10 @@ declare var Buffer: { * @param size count of octets to allocate */ allocUnsafeSlow(size: number): Buffer; + /** + * This is the number of bytes used to determine the size of pre-allocated, internal Buffer instances used for pooling. This value may be modified. + */ + poolSize: number; }; /************************************************ diff --git a/types/node/node-tests.ts b/types/node/node-tests.ts index 20dfd7e44f..21151ea7cc 100644 --- a/types/node/node-tests.ts +++ b/types/node/node-tests.ts @@ -396,6 +396,32 @@ function bufferTests() { const buf2: Buffer = Buffer.from('7468697320697320612074c3a97374', 'hex'); } + // Class Method byteLenght + { + let len: number; + len = Buffer.byteLength("foo"); + len = Buffer.byteLength("foo", "utf8"); + + const b = Buffer.from("bar"); + len = Buffer.byteLength(b); + len = Buffer.byteLength(b, "utf16le"); + + const ab = new ArrayBuffer(15); + len = Buffer.byteLength(ab); + len = Buffer.byteLength(ab, "ascii"); + + const dv = new DataView(ab); + len = Buffer.byteLength(dv); + len = Buffer.byteLength(dv, "utf16le"); + } + + // Class Method poolSize + { + let s: number; + s = Buffer.poolSize; + Buffer.poolSize = 4096; + } + // Test that TS 1.6 works with the 'as Buffer' annotation // on isBuffer. var a: Buffer | number; From 112130d22bb78efc19a4c803940253631286a6de Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien?= Date: Mon, 16 Oct 2017 20:19:24 +0200 Subject: [PATCH 079/506] fix(algoliasearch): generateSecuredApiKey returns a string (not void) (#20423) * fix(algoliasearch): generateSecuredApiKey returns a string (not void) * fix(algoliasearch): use object[] instead of [{}] in saveObjects method inputs --- types/algoliasearch/index.d.ts | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/types/algoliasearch/index.d.ts b/types/algoliasearch/index.d.ts index 2f94b2c907..d848642dc0 100644 --- a/types/algoliasearch/index.d.ts +++ b/types/algoliasearch/index.d.ts @@ -1,7 +1,8 @@ -// Type definitions for algoliasearch-client-js 3.18.1 +// Type definitions for algoliasearch-client-js 3.18.2 // Project: https://github.com/algolia/algoliasearch-client-js // Definitions by: Baptiste Coquelle // Haroen Viaene +// Aurélien Hervé // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped declare namespace algoliasearch { @@ -146,7 +147,7 @@ declare namespace algoliasearch { * @param filters * https://github.com/algolia/algoliasearch-client-js#generate-key---generatesecuredapikey */ - generateSecuredApiKey(key: string, filters: AlgoliaSecuredApiOptions): void; + generateSecuredApiKey(key: string, filters: AlgoliaSecuredApiOptions): string; /** * Perform multiple operations with one API call to reduce latency * @param action @@ -326,7 +327,7 @@ declare namespace algoliasearch { * @param cb(err, res) * https://github.com/algolia/algoliasearch-client-js#update-objects---saveobjects */ - saveObjects(objects: [{}], cb: (err: Error, res: any) => void): void; + saveObjects(objects: object[], cb: (err: Error, res: any) => void): void; /** * Update parameters of a specific object * @param object @@ -540,7 +541,7 @@ declare namespace algoliasearch { * return {Promise} * https://github.com/algolia/algoliasearch-client-js#update-objects---saveobjects */ - saveObjects(objects: [{}]): Promise ; + saveObjects(objects: object[]): Promise ; /** * Update parameters of a specific object * @param object From 42cf3abe63b2642c6faedf70a2eec5998dd8268c Mon Sep 17 00:00:00 2001 From: Leonard Thieu Date: Mon, 16 Oct 2017 14:32:07 -0400 Subject: [PATCH 080/506] [jquery] Add ajaxSettings property. (#20433) --- types/jquery/index.d.ts | 5 +++++ types/jquery/jquery-tests.ts | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/types/jquery/index.d.ts b/types/jquery/index.d.ts index e557103e47..f5947549b7 100644 --- a/types/jquery/index.d.ts +++ b/types/jquery/index.d.ts @@ -41,6 +41,11 @@ type _Event = Event; type _Promise = Promise; interface JQueryStatic { + /** + * @see {@link http://api.jquery.com/jquery.ajax/#jQuery-ajax1} + * @deprecated Use jQuery.ajaxSetup(options) + */ + ajaxSettings: JQuery.AjaxSettings; /** * A factory function that returns a chainable utility object with methods to register multiple * callbacks into callback queues, invoke callback queues, and relay the success or failure state of diff --git a/types/jquery/jquery-tests.ts b/types/jquery/jquery-tests.ts index 0694ce2502..99a10c6f45 100644 --- a/types/jquery/jquery-tests.ts +++ b/types/jquery/jquery-tests.ts @@ -62,6 +62,11 @@ function JQueryStatic() { $(); } + function ajaxSettings() { + // $ExpectType JQuery.AjaxSettings + $.ajaxSettings; + } + function Event() { // $ExpectType EventStatic $.Event; From 7a99e7c48aef56acca71b5585df7cb272bff0b14 Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Gomond Date: Mon, 16 Oct 2017 20:34:19 +0200 Subject: [PATCH 081/506] Corrected type of parameter "stream" in interface Options of @types/simple-peer (#20435) --- types/simple-peer/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/simple-peer/index.d.ts b/types/simple-peer/index.d.ts index 0ddc548ea8..6e41100b41 100644 --- a/types/simple-peer/index.d.ts +++ b/types/simple-peer/index.d.ts @@ -20,7 +20,7 @@ declare namespace SimplePeer { answerConstraints?: {}; // custom answer constraints (used by createAnswer method) reconnectTimer?: boolean | number; // wait __ milliseconds after ICE 'disconnect' for reconnect attempt before emitting 'close' sdpTransform?(sdp: T): T; // function to transform the generated SDP signaling data (for advanced users) - stream?: boolean; // if video/voice is desired, pass stream returned from getUserMedia + stream?: MediaStream; // if video/voice is desired, pass stream returned from getUserMedia trickle?: boolean; // set to false to disable trickle ICE and get a single 'signal' event (slower) wrtc?: {}; // RTCPeerConnection/RTCSessionDescription/RTCIceCandidate objectMode?: boolean; // set to true to create the stream in Object Mode. In this mode, incoming string data is not automatically converted to Buffer objects. From 9c1dc77ef4e85f5d5ec18ffe768e43359f47aca0 Mon Sep 17 00:00:00 2001 From: Christopher Deutsch Date: Mon, 16 Oct 2017 13:36:31 -0500 Subject: [PATCH 082/506] Updated `react-autosuggest` for version 9.3.X (#20442) `react-autosuggest` had some breaking changes. Previously Autosuggest was defined with `any` props which meant no type checking was happening. New definition enables type checking when using `Autosuggest` component. ``` declare class Autosuggest extends React.Component {} ``` --- .github/CODEOWNERS | 2 +- types/react-autosuggest/index.d.ts | 57 +++++++++++++------ .../react-autosuggest-tests.tsx | 43 +++++++++++--- types/react-autosuggest/tsconfig.json | 2 +- 4 files changed, 77 insertions(+), 27 deletions(-) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 390df0c3ed..c9c83c77c4 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -2504,7 +2504,7 @@ /types/react/v15/ @bbenezech @pzavolinsky @digiguru @ericanderson @morcerf @tkrotoff @DovydasNavickas @onigoetz /types/react/ @johnnyreilly @bbenezech @pzavolinsky @digiguru @ericanderson @morcerf @tkrotoff @DovydasNavickas @onigoetz @richseviora /types/react-app/ @prakarshpandey -/types/react-autosuggest/ @nicolas-schmitt @pjo256 @robessog @tbayne +/types/react-autosuggest/ @nicolas-schmitt @pjo256 @robessog @tbayne @cdeutsch /types/react-body-classname/ @mhegazy /types/react-bootstrap/ @walkerburgin @vsiao @danilojrr @Batbold-Gansukh @octatone @chengsieuly @katbusch /types/react-bootstrap-date-picker/ @LKay @ssi-hu-antal-bodnar diff --git a/types/react-autosuggest/index.d.ts b/types/react-autosuggest/index.d.ts index 2afbd1960d..9205f63d4c 100644 --- a/types/react-autosuggest/index.d.ts +++ b/types/react-autosuggest/index.d.ts @@ -1,18 +1,22 @@ -// Type definitions for react-autosuggest 8.0 +// Type definitions for react-autosuggest 9.3 // Project: http://react-autosuggest.js.org/ -// Definitions by: Nicolas Schmitt , Philip Ottesen , Robert Essig , Terry Bayne +// Definitions by: Nicolas Schmitt +// Philip Ottesen +// Robert Essig +// Terry Bayne +// Christopher Deutsch // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 import * as React from 'react'; -declare class Autosuggest extends React.Component {} +declare class Autosuggest extends React.Component {} export = Autosuggest; declare namespace Autosuggest { interface SuggestionsFetchRequest { value: string; - reason: string; + reason: 'input-changed' | 'input-focused' | 'escape-pressed' | 'suggestions-revealed' | 'suggestion-selected'; } interface InputValues { @@ -20,38 +24,54 @@ declare namespace Autosuggest { valueBeforeUpDown?: string; } + interface RenderSuggestionParams { + query: string; + isHighlighted: boolean; + } + + interface SuggestionHighlightedParams { + suggestion: any; + } + interface ChangeEvent { newValue: string; method: 'down' | 'up' | 'escape' | 'enter' | 'click' | 'type'; } interface BlurEvent { - focusedSuggestion: any; + highlightedSuggestion: any; } - interface InputProps extends React.HTMLAttributes { + interface InputProps extends React.InputHTMLAttributes { value: string; onChange(event: React.FormEvent, params?: ChangeEvent): void; onBlur?(event: React.FormEvent, params?: BlurEvent): void; + [key: string]: any; } interface SuggestionSelectedEventData { - method: 'click' | 'enter'; - sectionIndex: number | null; suggestion: TSuggestion; suggestionValue: string; + suggestionIndex: number; + sectionIndex: number | null; + method: 'click' | 'enter'; } interface Theme { container?: string; containerOpen?: string; input?: string; - sectionContainer?: string; - sectionSuggestionsContainer?: string; - sectionTitle?: string; - suggestion?: string; - suggestionFocused?: string; + inputOpen?: string; + inputFocused?: string; suggestionsContainer?: string; + suggestionsContainerOpen?: string; + suggestionsList?: string; + suggestion?: string; + suggestionFirst?: string; + suggestionHighlighted?: string; + sectionContainer?: string; + sectionContainerFirst?: string; + sectionTitle?: string; } interface AutosuggestProps extends React.Props { @@ -59,18 +79,19 @@ declare namespace Autosuggest { onSuggestionsFetchRequested(request: SuggestionsFetchRequest): void; onSuggestionsClearRequested?(): void; getSuggestionValue(suggestion: any): any; - renderSuggestion(suggestion: any, inputValues: InputValues): JSX.Element; + renderSuggestion(suggestion: any, params: RenderSuggestionParams): JSX.Element; inputProps: InputProps; onSuggestionSelected?(event: React.FormEvent, data: SuggestionSelectedEventData): void; + onSuggestionHighlighted?(params: SuggestionHighlightedParams): void; shouldRenderSuggestions?(value: string): boolean; alwaysRenderSuggestions?: boolean; - focusFirstSuggestion?: boolean; + highlightFirstSuggestion?: boolean; focusInputOnSuggestionClick?: boolean; multiSection?: boolean; - renderSectionTitle?(section: any, inputValues: InputValues): JSX.Element; + renderSectionTitle?(section: any): JSX.Element; getSectionSuggestions?(section: any): any[]; - renderInputComponent?(): JSX.Element; - renderSuggestionsContainer?(children: any): JSX.Element; + renderInputComponent?(inputProps: InputProps): JSX.Element; + renderSuggestionsContainer?(containerProps: any, children: any, query: string): JSX.Element; theme?: Theme; id?: string; } diff --git a/types/react-autosuggest/react-autosuggest-tests.tsx b/types/react-autosuggest/react-autosuggest-tests.tsx index 252f5833fb..c67a5c72ad 100644 --- a/types/react-autosuggest/react-autosuggest-tests.tsx +++ b/types/react-autosuggest/react-autosuggest-tests.tsx @@ -105,8 +105,9 @@ export class ReactAutosuggestBasicTest extends React.Component { alert(`Selected language is ${data.suggestion.name} (${data.suggestion.year}).`); } - protected renderSuggestion(suggestion: Language): JSX.Element { - return {suggestion.name}; + protected renderSuggestion(suggestion: Language, params: Autosuggest.RenderSuggestionParams): JSX.Element { + const className = params.isHighlighted ? "highlighted" : undefined; + return {suggestion.name}; } // endregion region Event handlers protected onChange(event: React.FormEvent, {newValue, method}: any): void { @@ -223,7 +224,8 @@ export class ReactAutosuggestMultipleTest extends React.Component { this.state = { value: '', - suggestions: this.getSuggestions('') + suggestions: this.getSuggestions(''), + highlighted: '' }; } // endregion region Rendering methods @@ -248,6 +250,10 @@ export class ReactAutosuggestMultipleTest extends React.Component { renderSuggestion={this.renderSuggestion} renderSectionTitle={this.renderSectionTitle} getSectionSuggestions={this.getSectionSuggestions} + onSuggestionHighlighted={this.onSuggestionHighlighted} + highlightFirstSuggestion={true} + renderInputComponent={this.renderInputComponent} + renderSuggestionsContainer={this.renderSuggestionsContainer} inputProps={inputProps}/>; } @@ -256,13 +262,30 @@ export class ReactAutosuggestMultipleTest extends React.Component { alert(`Selected language is ${language.name} (${language.year}).`); } - protected renderSuggestion(suggestion: Language): JSX.Element { - return {suggestion.name}; + protected renderSuggestion(suggestion: Language, params: Autosuggest.RenderSuggestionParams): JSX.Element { + const className = params.isHighlighted ? "highlighted" : undefined; + return {suggestion.name}; } protected renderSectionTitle(section: LanguageGroup): JSX.Element { return {section.title}; } + + protected renderInputComponent(inputProps: Autosuggest.InputProps): JSX.Element { + return ( +
+ +
+ ); + } + + protected renderSuggestionsContainer(containerProps: any, children: any, query: string): JSX.Element { + return ( +
+ {children} +
+ ); + } // endregion region Event handlers protected onChange(event: React.FormEvent, {newValue, method}: any): void { this.setState({value: newValue}); @@ -303,6 +326,12 @@ export class ReactAutosuggestMultipleTest extends React.Component { protected getSectionSuggestions(section: LanguageGroup) { return section.languages; } + + protected onSuggestionHighlighted(params: Autosuggest.SuggestionHighlightedParams): void { + this.setState({ + highlighted: params.suggestion + }); + } // endregion } @@ -364,9 +393,9 @@ export class ReactAutosuggestCustomTest extends React.Component { inputProps={inputProps}/>; } - protected renderSuggestion(suggestion: Person, {value, valueBeforeUpDown}: any): JSX.Element { + protected renderSuggestion(suggestion: Person, params: Autosuggest.RenderSuggestionParams): JSX.Element { const suggestionText = `${suggestion.first} ${suggestion.last}`; - const query = (valueBeforeUpDown || value).trim(); + const query = params.query.trim(); const parts = suggestionText .split(' ') .map((part: string) => { diff --git a/types/react-autosuggest/tsconfig.json b/types/react-autosuggest/tsconfig.json index b85bc369dc..fc78293096 100644 --- a/types/react-autosuggest/tsconfig.json +++ b/types/react-autosuggest/tsconfig.json @@ -22,4 +22,4 @@ "index.d.ts", "react-autosuggest-tests.tsx" ] -} \ No newline at end of file +} From 7d955710bb8117b2356916be611e4be82344e154 Mon Sep 17 00:00:00 2001 From: Diogo Franco Date: Tue, 17 Oct 2017 03:43:19 +0900 Subject: [PATCH 083/506] [history] Mark Location's key as optional (#20447) While the `key` will always be a string value after updating history, it will not be present when the `history` object is first created, at least until the first push/replace state happens. --- types/history/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/history/index.d.ts b/types/history/index.d.ts index a7f93bba86..528ab7ff21 100644 --- a/types/history/index.d.ts +++ b/types/history/index.d.ts @@ -28,7 +28,7 @@ export interface Location { search: Search; state: LocationState; hash: Hash; - key: LocationKey; + key?: LocationKey; } export interface LocationDescriptorObject { From f530bf01f5a40c423cac36fad5a1081668d774a4 Mon Sep 17 00:00:00 2001 From: David Khourshid Date: Mon, 16 Oct 2017 14:47:33 -0400 Subject: [PATCH 084/506] Puppeteer: fixing .cookies() method type and other cleanup (#20160) * Fixing .cookies() method type and other cleanup * Reversing automatic formatting * Cookie[] -> Array * Undoing unnecessary single quoting and fixing lint errors --- types/puppeteer/index.d.ts | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/types/puppeteer/index.d.ts b/types/puppeteer/index.d.ts index fabd9060ed..f9c5741805 100644 --- a/types/puppeteer/index.d.ts +++ b/types/puppeteer/index.d.ts @@ -224,13 +224,15 @@ export interface Response { url: string; } +export type Serializable = boolean | number | string | object; + export interface FrameBase { $(selector: string): Promise; $$(selector: string): Promise; $eval( selector: string, - fn: (...args: Array) => void - ): Promise; + fn: (...args: Array) => void + ): Promise; addScriptTag(url: string): Promise; injectFile(filePath: string): Promise; evaluate( @@ -291,7 +293,16 @@ export interface Page extends FrameBase { click(selector: string, options?: ClickOptions): Promise; close(): Promise; content(): Promise; - cookies(...urls: string[]): Cookie; + cookies(...urls: string[]): Promise; + deleteCookie( + ...cookies: Array<{ + name: string; + url?: string; + domain?: string; + path?: string; + secure?: boolean; + }> + ): Promise; emulate(options: Partial): Promise; emulateMedia(mediaType: string | null): Promise; evaluateOnNewDocument( From 5f3cbdcfb3e1eb921fda9337bfbec2bd19566751 Mon Sep 17 00:00:00 2001 From: Joshua Netterfield Date: Mon, 16 Oct 2017 14:52:55 -0400 Subject: [PATCH 085/506] Update react-monaco-editor types to track 0.10 (#20464) --- types/react-monaco-editor/index.d.ts | 6 +++--- types/react-monaco-editor/package.json | 4 ++-- types/react-monaco-editor/react-monaco-editor-tests.tsx | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/types/react-monaco-editor/index.d.ts b/types/react-monaco-editor/index.d.ts index 85bb06a0f2..a493f3e194 100644 --- a/types/react-monaco-editor/index.d.ts +++ b/types/react-monaco-editor/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for react-monaco-editor 0.8 +// Type definitions for react-monaco-editor 0.10 // Project: https://github.com/superRaytin/react-monaco-editor // Definitions by: Joshua Netterfield // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped @@ -31,7 +31,7 @@ export interface ReactMonacoEditorProps { defaultValue?: string; /** - * The initial language of the auto created model in the editor. + * The initial language of the auto created model in the editor. Defaults to 'javascript'. */ language?: string; @@ -60,7 +60,7 @@ export interface ReactMonacoEditorProps { /** * An event emitted when the content of the current model has changed. */ - onChange?(val: string, ev: monaco.editor.IModelContentChangedEvent2): void; + onChange?(val: string, ev: monaco.editor.IModelContentChangedEvent): void; /** * Optional, allow to config loader url and relative path of module, refer to require.config. diff --git a/types/react-monaco-editor/package.json b/types/react-monaco-editor/package.json index d6c58f873f..c30b05905b 100644 --- a/types/react-monaco-editor/package.json +++ b/types/react-monaco-editor/package.json @@ -1,6 +1,6 @@ { "private": true, "dependencies": { - "monaco-editor": "0.8.3" + "monaco-editor": "^0.10.0" } -} \ No newline at end of file +} diff --git a/types/react-monaco-editor/react-monaco-editor-tests.tsx b/types/react-monaco-editor/react-monaco-editor-tests.tsx index 3c9d3c359b..0c46e4cfd8 100644 --- a/types/react-monaco-editor/react-monaco-editor-tests.tsx +++ b/types/react-monaco-editor/react-monaco-editor-tests.tsx @@ -21,7 +21,7 @@ class CodeEditor extends React.Component { console.log('editorDidMount', editor, editor.getValue(), editor.getModel()); this.editor = editor; } - onChange = (newValue: string, e: monaco.editor.IModelContentChangedEvent2) => { + onChange = (newValue: string, e: monaco.editor.IModelContentChangedEvent) => { console.log('onChange', newValue, e); this.setState({ code: newValue, From 38bd4efd5dc8c666f70d77b020a0b64a13ce3980 Mon Sep 17 00:00:00 2001 From: Evan Madow Date: Mon, 16 Oct 2017 11:56:13 -0700 Subject: [PATCH 086/506] Exporting nightwatch interfaces (#20465) * Exporting nightwatch interfaces * Update nightwatch-tests.ts * fixes --- types/nightwatch/index.d.ts | 60 ++++++++++++++-------------- types/nightwatch/nightwatch-tests.ts | 2 + 2 files changed, 32 insertions(+), 30 deletions(-) diff --git a/types/nightwatch/index.d.ts b/types/nightwatch/index.d.ts index 7a60aedac5..f7ba43165b 100644 --- a/types/nightwatch/index.d.ts +++ b/types/nightwatch/index.d.ts @@ -6,11 +6,11 @@ /* tslint:disable:max-line-length */ -interface NightwatchCustomPageObjects { +export interface NightwatchCustomPageObjects { page: {}; } -interface NightwatchDesiredCapabilities { +export interface NightwatchDesiredCapabilities { /** * The name of the browser being used; should be one of {android|chrome|firefox|htmlunit|internet explorer|iPhone|iPad|opera|safari}. */ @@ -111,26 +111,26 @@ interface NightwatchDesiredCapabilities { }; } -interface NightwatchScreenshotOptions { +export interface NightwatchScreenshotOptions { enabled?: boolean; on_failure?: boolean; on_error?: boolean; path?: string; } -interface NightwatchTestRunner { +export interface NightwatchTestRunner { "type"?: string; options?: { ui?: string; }; } -interface NightwatchTestWorker { +export interface NightwatchTestWorker { enabled: boolean; workers: string; } -interface NightwatchOptions { +export interface NightwatchOptions { /** * An array of folders (excluding subfolders) where the tests are located. */ @@ -200,7 +200,7 @@ interface NightwatchOptions { test_runner?: string | NightwatchTestRunner; } -interface NightwatchSeleniumOptions { +export interface NightwatchSeleniumOptions { /** * Whether or not to manage the selenium process automatically. */ @@ -250,7 +250,7 @@ interface NightwatchSeleniumOptions { cli_args: any; } -interface NightwatchTestSettingGeneric { +export interface NightwatchTestSettingGeneric { /** * A url which can be used later in the tests as the main url to load. Can be useful if your tests will run on different environments, each one with a different url. */ @@ -352,7 +352,7 @@ interface NightwatchTestSettingGeneric { skip_testcases_on_fail: boolean; } -interface NightwatchTestSettingScreenshots extends NightwatchTestSettingGeneric { +export interface NightwatchTestSettingScreenshots extends NightwatchTestSettingGeneric { /** * Selenium generates screenshots when command errors occur. With on_failure set to true, also generates screenshots for failing or erroring tests. These are saved on the disk. * Since v0.7.5 you can disable screenshots for command errors by setting "on_error" to false. @@ -367,26 +367,26 @@ interface NightwatchTestSettingScreenshots extends NightwatchTestSettingGeneric screenshots: NightwatchScreenshotOptions; } -interface NightwatchTestOptions extends NightwatchTestSettingGeneric { +export interface NightwatchTestOptions extends NightwatchTestSettingGeneric { screenshots: boolean; screenshotsPath: string; } -interface NightwatchTestSuite { +export interface NightwatchTestSuite { name: string; "module": string; group: string; results: any; } -interface NightwatchAssertionsError { +export interface NightwatchAssertionsError { name: string; message: string; showDiff: boolean; stack: string; } -interface NightwatchLanguageChains { +export interface NightwatchLanguageChains { to: Expect; be: Expect; been: Expect; @@ -401,11 +401,11 @@ interface NightwatchLanguageChains { of: Expect; } -interface NightwatchTestSettings { +export interface NightwatchTestSettings { [key: string]: NightwatchTestSettingScreenshots; } -interface Expect extends NightwatchLanguageChains, NightwatchBrowser { +export interface Expect extends NightwatchLanguageChains, NightwatchBrowser { /** * Returns the DOM Element * @param property: Css / Id property of the DOM element @@ -496,7 +496,7 @@ interface Expect extends NightwatchLanguageChains, NightwatchBrowser { visible: this; } -interface NightwatchAssertions extends NightwatchBrowser { +export interface NightwatchAssertions extends NightwatchBrowser { /** * Checks if the given attribute of an element contains the expected value. * @param selector: The selector (CSS / Xpath) used to locate the element. @@ -649,17 +649,17 @@ interface NightwatchAssertions extends NightwatchBrowser { NightwatchAssertionsError: NightwatchAssertionsError; } -interface NightwatchTypedCallbackResult { +export interface NightwatchTypedCallbackResult { status: number; value: T; state: Error | string; } // tslint:disable-next-line:no-empty-interface -interface NightwatchCallbackResult extends NightwatchTypedCallbackResult { +export interface NightwatchCallbackResult extends NightwatchTypedCallbackResult { } -interface NightwatchLogEntry { +export interface NightwatchLogEntry { /** * The log entry message. */ @@ -676,7 +676,7 @@ interface NightwatchLogEntry { level: string; } -interface NightwatchKeys { +export interface NightwatchKeys { /** Releases all held modifier keys. */ "NULL": string; /** OS-specific keystroke sequence that performs a cancel action. */ @@ -799,7 +799,7 @@ interface NightwatchKeys { "COMMAND": string; } -interface NightwatchAPI { +export interface NightwatchAPI { assert: NightwatchAssertions; expect: Expect; @@ -2256,12 +2256,12 @@ interface NightwatchAPI { } /* tslint:disable-next-line:no-empty-interface */ -interface NightwatchCustomCommands {} +export interface NightwatchCustomCommands {} /* tslint:disable-next-line:no-empty-interface */ -interface NightwatchCustomAssertions {} +export interface NightwatchCustomAssertions {} -interface NightwatchBrowser extends NightwatchAPI, NightwatchCustomCommands, NightwatchCustomAssertions, NightwatchCustomPageObjects { } +export interface NightwatchBrowser extends NightwatchAPI, NightwatchCustomCommands, NightwatchCustomAssertions, NightwatchCustomPageObjects { } /** * Performs an assertion @@ -2273,9 +2273,9 @@ interface NightwatchBrowser extends NightwatchAPI, NightwatchCustomCommands, Nig * @param abortOnFailure * @param originalStackTrace */ -type NightwatchTest = (browser: NightwatchBrowser) => void; +export type NightwatchTest = (browser: NightwatchBrowser) => void; -interface NightwatchTests { +export interface NightwatchTests { [key: string]: NightwatchTest; } @@ -2289,7 +2289,7 @@ interface NightwatchTests { * @param abortOnFailure * @param originalStackTrace */ -type NightwatchAssert = (passed: boolean, receivedValue?: any, expectedValue?: any, message?: string, abortOnFailure?: boolean, originalStackTrace?: string) => void; +export type NightwatchAssert = (passed: boolean, receivedValue?: any, expectedValue?: any, message?: string, abortOnFailure?: boolean, originalStackTrace?: string) => void; /** * Abstract assertion class that will subclass all defined assertions @@ -2303,7 +2303,7 @@ type NightwatchAssert = (passed: boolean, receivedValue?: any, expectedValue?: a * - @param {function} command * - @param {function} - Optional failure */ -interface NightwatchAssertion { +export interface NightwatchAssertion { expected: (() => void) | boolean; message: string; pass(...args: any[]): any; @@ -2313,12 +2313,12 @@ interface NightwatchAssertion { api?: NightwatchAPI; } -interface NightwatchClient { +export interface NightwatchClient { api: NightwatchAPI; assertion: NightwatchAssert; } -interface Nightwatch { +export interface Nightwatch { api: NightwatchAPI; client: NightwatchClient; } diff --git a/types/nightwatch/nightwatch-tests.ts b/types/nightwatch/nightwatch-tests.ts index 62122fb041..a40c8c466a 100644 --- a/types/nightwatch/nightwatch-tests.ts +++ b/types/nightwatch/nightwatch-tests.ts @@ -1,3 +1,5 @@ +import { NightwatchAPI, NightwatchTests } from 'nightwatch'; + const test: NightwatchTests = { 'Demo test Google': (browser) => { browser From a7a71f2be36a37bac063bed8f21fda4f744284ac Mon Sep 17 00:00:00 2001 From: Alexandre Date: Mon, 16 Oct 2017 19:57:48 +0100 Subject: [PATCH 087/506] Fix some mapbox-gl mismatching typings (#20472) * Fix some mapbox-gl mismatching typings * Increase version and fix ts options * Remove flag * Add back strictFunctionTypes: true flag * More types fix * Make fill-outline-color optional --- types/mapbox-gl/index.d.ts | 12 ++++++------ types/mapbox-gl/mapbox-gl-tests.ts | 22 +++++++++++----------- types/mapbox-gl/tsconfig.json | 4 ++-- 3 files changed, 19 insertions(+), 19 deletions(-) diff --git a/types/mapbox-gl/index.d.ts b/types/mapbox-gl/index.d.ts index ec154e4ab1..43921b1593 100644 --- a/types/mapbox-gl/index.d.ts +++ b/types/mapbox-gl/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for Mapbox GL JS v0.39.1 +// Type definitions for Mapbox GL JS v0.40.1 // Project: https://github.com/mapbox/mapbox-gl-js // Definitions by: Dominik Bruderer , Patrick Reames // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped @@ -87,7 +87,7 @@ declare namespace mapboxgl { getLayer(id: string): mapboxgl.Layer; - setFilter(layer: string, filter: any[]): this; + setFilter(layer: string, filter?: any[]): this; setLayerZoomRange(layerId: string, minzoom: number, maxzoom: number): this; @@ -224,7 +224,7 @@ declare namespace mapboxgl { /** If true, enable keyboard shortcuts (see KeyboardHandler). */ keyboard?: boolean; - logoPosition?: boolean; + logoPosition?: 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right'; /** If set, the map is constrained to the given bounds. */ maxBounds?: LngLatBoundsLike; @@ -944,7 +944,7 @@ declare namespace mapboxgl { "fill-antialias"?: boolean; "fill-opacity"?: number | StyleFunction; "fill-color"?: string | StyleFunction; - "fill-outline-color": string | StyleFunction; + "fill-outline-color"?: string | StyleFunction; "fill-translate"?: number[]; "fill-translate-anchor"?: "map" | "viewport"; "fill-pattern"?: "string"; @@ -958,9 +958,9 @@ declare namespace mapboxgl { "fill-extrusion-color"?: string | StyleFunction; "fill-extrusion-translate"?: number[]; "fill-extrusion-translate-anchor"?: "map" | "viewport"; - "fill-extrusion-pattern": string; + "fill-extrusion-pattern"?: string; "fill-extrusion-height"?: number | StyleFunction; - "fill-extrusion-base"?: number; + "fill-extrusion-base"?: number | StyleFunction; } export interface LineLayout { diff --git a/types/mapbox-gl/mapbox-gl-tests.ts b/types/mapbox-gl/mapbox-gl-tests.ts index 12fbac9010..10768549ca 100644 --- a/types/mapbox-gl/mapbox-gl-tests.ts +++ b/types/mapbox-gl/mapbox-gl-tests.ts @@ -303,16 +303,6 @@ var mapStyle = { ] }; -map = new mapboxgl.Map({ - container: 'map', - minZoom: 14, - zoom: 17, - center: [-122.514426, 37.562984], - bearing: -96, - style: videoStyle, - hash: false -}); - /** * Add video */ @@ -362,10 +352,20 @@ map = new mapboxgl.Map({ hash: false }); +map = new mapboxgl.Map({ + container: 'map', + minZoom: 14, + zoom: 17, + center: [-122.514426, 37.562984], + bearing: -96, + style: videoStyle, + hash: false +}); + /** * Marker */ -let marker = new mapboxgl.Marker(null,{offset: [10, 0]}) +let marker = new mapboxgl.Marker(undefined, {offset: [10, 0]}) .setLngLat([-50,50]) .addTo(map); diff --git a/types/mapbox-gl/tsconfig.json b/types/mapbox-gl/tsconfig.json index 2d80f414a1..4c4228132e 100644 --- a/types/mapbox-gl/tsconfig.json +++ b/types/mapbox-gl/tsconfig.json @@ -5,9 +5,9 @@ "es6", "dom" ], + "strictNullChecks": true, "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, "strictFunctionTypes": true, "baseUrl": "../", "typeRoots": [ @@ -21,4 +21,4 @@ "index.d.ts", "mapbox-gl-tests.ts" ] -} \ No newline at end of file +} From 58ad2772c3a02c774c228c926c4785c5fa1f2f2d Mon Sep 17 00:00:00 2001 From: Max Battcher Date: Mon, 16 Oct 2017 16:04:19 -0400 Subject: [PATCH 088/506] Turf hosts own type definitions (#20334) --- types/turf/index.d.ts | 1281 ----------------------------------- types/turf/tsconfig.json | 23 - types/turf/turf-tests.ts | 522 -------------- types/turf/v2/index.d.ts | 580 ---------------- types/turf/v2/tsconfig.json | 28 - types/turf/v2/turf-tests.ts | 520 -------------- 6 files changed, 2954 deletions(-) delete mode 100644 types/turf/index.d.ts delete mode 100644 types/turf/tsconfig.json delete mode 100644 types/turf/turf-tests.ts delete mode 100644 types/turf/v2/index.d.ts delete mode 100644 types/turf/v2/tsconfig.json delete mode 100644 types/turf/v2/turf-tests.ts diff --git a/types/turf/index.d.ts b/types/turf/index.d.ts deleted file mode 100644 index be6b41662e..0000000000 --- a/types/turf/index.d.ts +++ /dev/null @@ -1,1281 +0,0 @@ -// Type definitions for Turf 3.5.2 -// Project: http://turfjs.org/ -// Definitions by: Guillaume Croteau , Denis Carriere -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -/// - -/** -#### TODO: - -Update all methods with newest JSDocs & tests based on the latest TurfJS library. - -AGGREGATION -- [x] collect -MEASUREMENT -- [ ] along -- [ ] area -- [ ] bboxPolygon -- [ ] bearing -- [ ] center -- [ ] centroid -- [ ] destination -- [ ] distance -- [ ] envelope -- [ ] lineDistance -- [ ] midpoint -- [ ] pointOnSurface -- [ ] square -TRANSFORMATION -- [ ] bezier -- [ ] buffer -- [ ] concave -- [ ] convex -- [ ] difference -- [ ] intersect -- [ ] simplify -- [ ] union -MISC -- [ ] combine -- [ ] explode -- [ ] flip -- [ ] kinks -- [ ] lineSlice -- [ ] pointOnLine -HELPER -- [x] featureCollection -- [x] feature -- [x] lineString -- [x] multiLineString -- [x] point -- [x] multiPoint -- [x] polygon -- [x] multiPolygon -- [x] geometryCollection -DATA -- [x] random -- [x] sample -INTERPOLATION -- [ ] isolines -- [ ] planepoint -- [ ] tin -JOINS -- [x] inside -- [x] tag -- [ ] within -GRIDS -- [x] hexGrid -- [x] pointGrid -- [x] squareGrid -- [x] triangleGrid -CLASSIFICATION -- [ ] nearest -META -- [ ] propEach -- [ ] coordEach -- [ ] coordReduce -- [ ] featureEach -- [ ] getCoord -ASSERTIONS -- [ ] featureOf -- [ ] collectionOf -- [x] bbox -- [x] circle -- [x] geojsonType -- [x] propReduce -- [x] coordAll -- [x] tesselate - */ - -declare const turf: turf.TurfStatic; -declare const TemplateUnits: 'miles' | 'nauticalmiles' | 'degrees' | 'radians' | 'inches' | 'yards' | 'meters' | 'metres' | 'kilometers' | 'kilometres' -declare const TemplateType: 'point'| 'points' | 'polygon' | 'polygons' -declare interface OptionsRandom { - bbox?: Array - num_vertices?: number - max_radial_length?: number -} -declare type PropReduceCallback = (memo: any, coord: GeoJSON.Feature | GeoJSON.FeatureCollection) => any -declare module turf { - interface TurfStatic { - ////////////////////////////////////////////////////// - // Aggregation - ////////////////////////////////////////////////////// - - /** - * Merges a specified property from a FeatureCollection of points into a FeatureCollection of polygons. Given an `inProperty` on points and an `outProperty` for polygons, this finds every point that lies within each polygon, collects the `inProperty` values from those points, and adds them as an array to `outProperty` on the polygon. - * - * @name [collect](http://turfjs.org/docs/#collect) - * @param {FeatureCollection} polygons polygons with values on which to aggregate - * @param {FeatureCollection} points points to be aggregated - * @param {string} inProperty property to be nested from - * @param {string} outProperty property to be nested into - * @return {FeatureCollection} polygons with properties listed based on `outField` - * @example - * var poly1 = polygon([[[0,0],[10,0],[10,10],[0,10],[0,0]]]) - * var poly2 = polygon([[[10,0],[20,10],[20,20],[20,0],[10,0]]]) - * var polyFC = featurecollection([poly1, poly2]) - * var pt1 = point([5,5], {population: 200}) - * var pt2 = point([1,3], {population: 600}) - * var pt3 = point([14,2], {population: 100}) - * var pt4 = point([13,1], {population: 200}) - * var pt5 = point([19,7], {population: 300}) - * var ptFC = featurecollection([pt1, pt2, pt3, pt4, pt5]) - * var aggregated = aggregate(polyFC, ptFC, 'population', 'values') - * - * aggregated.features[0].properties.values // => [200, 600]) - */ - collect( - polygons: GeoJSON.FeatureCollection, - points: GeoJSON.FeatureCollection, - inProperty: string, - outProperty: string - ): GeoJSON.FeatureCollection; - - ////////////////////////////////////////////////////// - // Measurement - ////////////////////////////////////////////////////// - - /** - * Takes a line and returns a point at a specified distance along the line. - * @param line Input line - * @param distance Distance along the line - * @param [units=miles] 'miles', 'kilometers', 'radians' or 'degrees' - * @returns Point along the line - */ - along( - line: GeoJSON.Feature, - distance: number, - units?: typeof TemplateUnits - ): GeoJSON.Feature; - - /** - * Takes one or more features and returns their area in square meters. - * @param input Input features - * @returns Area in square meters - */ - area(input: GeoJSON.Feature | GeoJSON.FeatureCollection): number; - - /** - * Takes a set of features, calculates the bbox of all input features, and returns a bounding box. - * - * @name bbox - * @param {(Feature|FeatureCollection)} geojson input features - * @return {Array} bbox extent in [minX, minY, maxX, maxY] order - * @example - * var pt1 = point([114.175329, 22.2524]) - * var pt2 = point([114.170007, 22.267969]) - * var pt3 = point([114.200649, 22.274641]) - * var pt4 = point([114.200649, 22.274641]) - * var pt5 = point([114.186744, 22.265745]) - * var features = featureCollection([pt1, pt2, pt3, pt4, pt5]) - * - * var bbox = turf.bbox(features); - * - * var bboxPolygon = turf.bboxPolygon(bbox); - * - * //=bbox - * - * //=bboxPolygon - */ - bbox(bbox: GeoJSON.Feature | GeoJSON.FeatureCollection): Array; - - /** - * Takes a {@link Point} and calculates the circle polygon given a radius in degrees, radians, miles, or kilometers; and steps for precision. - * - * @name circle - * @param {Feature} center center point - * @param {number} radius radius of the circle - * @param {number} [steps=64] number of steps - * @param {string} [units=kilometers] miles, kilometers, degrees, or radians - * @returns {Feature} circle polygon - * @example - * var center = point([-75.343, 39.984]); - * var radius = 5; - * var steps = 10; - * var units = 'kilometers'; - * - * var circle = turf.circle(center, radius, steps, units); - * - * //=circle - */ - circle(center: GeoJSON.Feature, radius: number, steps?: number, units?: typeof TemplateUnits): GeoJSON.Feature; - - - /** - * Enforce expectations about types of GeoJSON objects for Turf. - * - * @name geojsonType - * @param {GeoJSON} value any GeoJSON object - * @param {string} type expected GeoJSON type - * @param {string} name name of calling function - * @throws {Error} if value is not the expected type. - */ - geojsonType(value: GeoJSON.Feature | GeoJSON.FeatureCollection, type: string, name: string): void - - /** - * Reduce properties in any GeoJSON object into a single value, similar to how Array.reduce works. However, in this case we lazily run the reduction, so an array of all properties is unnecessary. - * - * @name propReduce - * @param {GeoJSON} layer any GeoJSON object - * @param {Function} callback a method that takes (memo, coord) and returns a new memo - * @param {*} memo the starting value of memo: can be any type. - * @return {*} combined value - */ - propReduce(layer: GeoJSON.Feature | GeoJSON.FeatureCollection, callback: PropReduceCallback, memo: any): any - - /** - * Get all coordinates from any GeoJSON object, returning an array of coordinate arrays. - * - * @name coordAll - * @param {GeoJSON} layer any GeoJSON object - * @returns {Array>} coordinate position array - */ - coordAll(layer: GeoJSON.Feature | GeoJSON.FeatureCollection): Array> - - /** - * Tesselates a {@link Feature} into a {@link FeatureCollection} of triangles using [earcut](https://github.com/mapbox/earcut). - * - * @name tesselate - * @param {Feature} polygon the polygon to tesselate - * @returns {FeatureCollection} a geometrycollection feature - * @example - * var polygon = turf.random('polygon').features[0]; - * - * var triangles = turf.tesselate(polygon); - * - * //=triangles - */ - tesselate(poly: GeoJSON.Feature): GeoJSON.FeatureCollection - - /** - * Takes a bbox and returns an equivalent polygon. - * @param bbox An Array of bounding box coordinates in the form: [xLow, yLow, xHigh, yHigh] - * @returns A Polygon representation of the bounding box - */ - bboxPolygon(bbox: Array): GeoJSON.Feature; - - /** - * Takes two points and finds the geographic bearing between them. - * @param start Starting Point - * @param end Ending point - * @returns Bearing in decimal degrees - */ - bearing(start: GeoJSON.Feature, end: GeoJSON.Feature): number; - - /** - * Takes a FeatureCollection and returns the absolute center point of all features. - * @param features Input features - * @returns A Point feature at the absolute center point of all input features - */ - center(features: GeoJSON.FeatureCollection): GeoJSON.Feature; - - /** - * Takes one or more features and calculates the centroid using the arithmetic mean of all vertices. - * This lessens the effect of small islands and artifacts when calculating the centroid of a set of polygons. - * @param features Input features - * @returns The centroid of the input features - */ - centroid(features: GeoJSON.Feature | GeoJSON.FeatureCollection): GeoJSON.Feature; - - /** - * Takes a Point and calculates the location of a destination point given a distance in degrees, radians, miles, or kilometers and bearing in degrees. - * This uses the Haversine formula to account for global curvature. - * @param start Starting point - * @param distance Distance from the starting point - * @param bearing Ranging from -180 and 180 - * @param units 'miles', 'kilometers', 'radians', or 'degrees' - * @returns Destination point - */ - destination( - start: GeoJSON.Feature, - distance: number, - bearing: number, - units?: typeof TemplateUnits - ): GeoJSON.Feature; - - /** - * Calculates the distance between two points in degress, radians, miles, or kilometers. - * This uses the Haversine formula to account for global curvature. - * @param from Origin point - * @param to Destination point - * @param [units=kilometers] 'miles', 'kilometers', 'radians', or 'degrees' - * @returns Distance between the two points - */ - distance( - from: GeoJSON.Feature, - to: GeoJSON.Feature, - units?: typeof TemplateUnits - ): number; - - /** - * Takes any number of features and returns a rectangular Polygon that encompasses all vertices. - * @param fc Input features - * @returns A rectangular Polygon feature that encompasses all vertices - */ - envelope(fc: GeoJSON.FeatureCollection): GeoJSON.Feature; - - /** - * Takes a line and measures its length in the specified units. - * @param line Line to measure - * @param units 'miles', 'kilometers', 'radians', or 'degrees' - * @returns Length of the input line - */ - lineDistance( - line: GeoJSON.Feature, - units?: typeof TemplateUnits - ): number; - - /** - * Takes two points and returns a point midway between them. - * @param pt1 First point - * @param pt2 Second point - * @returns A point midway between pt1 and pt2 - */ - midpoint(pt1: GeoJSON.Feature, pt2: GeoJSON.Feature): GeoJSON.Feature; - - /** - * Takes a feature and returns a Point guaranteed to be on the surface of the feature. Given a Polygon, the point will be in the area of the polygon. - * Given a LineString, the point will be along the string. Given a Point, the point will the same as the input. - * @param input Any feature or set of features - * @returns A point on the surface of input - */ - pointOnSurface(input: GeoJSON.Feature | GeoJSON.FeatureCollection): GeoJSON.Feature; - - /** - * Takes a bounding box and calculates the minimum square bounding box that would contain the input. - * @param bbox A bounding box - * @returns A square surrounding bbox - */ - square(bbox: Array): Array; - - ////////////////////////////////////////////////////// - // Transformation - ////////////////////////////////////////////////////// - - /** - * Takes a line and returns a curved version by applying a Bezier spline algorithm. - * The bezier spline implementation is by Leszek Rybicki. - * @param line Input LineString - * @param [resolution=10000] Time in milliseconds between points - * @param [sharpness=0.85] A measure of how curvy the path should be between splines - * @returns Curved line - */ - bezier(line: GeoJSON.Feature, resolution?: number, sharpness?: number): GeoJSON.Feature; - - /** - * Calculates a buffer for input features for a given radius. Units supported are miles, kilometers, and degrees. - * @param feature Input to be buffered - * @param distance Distance to draw the buffer - * @param units 'miles', 'kilometers', 'radians', or 'degrees' - * @returns Buffered features - */ - buffer(feature: GeoJSON.Feature, distance: number, units?: typeof TemplateUnits): GeoJSON.Feature; - buffer(feature: GeoJSON.Feature, distance: number, units?: typeof TemplateUnits): GeoJSON.Feature; - buffer(feature: GeoJSON.Feature, distance: number, units?: typeof TemplateUnits): GeoJSON.Feature; - buffer(feature: GeoJSON.Feature, distance: number, units?: typeof TemplateUnits): GeoJSON.Feature; - buffer(feature: GeoJSON.FeatureCollection, distance: number, units?: typeof TemplateUnits): GeoJSON.FeatureCollection; - buffer(feature: GeoJSON.FeatureCollection, distance: number, units?: typeof TemplateUnits): GeoJSON.FeatureCollection; - buffer(feature: GeoJSON.FeatureCollection, distance: number, units?: typeof TemplateUnits): GeoJSON.FeatureCollection; - buffer(feature: GeoJSON.FeatureCollection, distance: number, units?: typeof TemplateUnits): GeoJSON.FeatureCollection; - - /** - * Takes a set of points and returns a concave hull polygon. Internally, this implements a Monotone chain algorithm. - * @param points Input points - * @param maxEdge The size of an edge necessary for part of the hull to become concave (in miles) - * @param units Used for maxEdge distance (miles or kilometers) - * @returns A concave hull - */ - concave( - points: GeoJSON.FeatureCollection, - maxEdge: number, - units?: typeof TemplateUnits - ): GeoJSON.Feature; - - /** - * Takes a set of points and returns a convex hull polygon. Internally this uses the convex-hull module that implements a monotone chain hull. - * @param input Input points - * @returns A convex hull - */ - convex( - input: GeoJSON.FeatureCollection - ): GeoJSON.Feature; - - /** - * Finds the difference between two polygons by clipping the second polygon from the first. - * @param poly1 Input Polygon feaure - * @param poly2 Polygon feature to difference from poly1 - * @returns A Polygon feature showing the area of poly1 excluding the area of poly2 - */ - difference( - poly1: GeoJSON.Feature, - poly2: GeoJSON.Feature - ): GeoJSON.Feature; - - /** - * Takes two Features and finds their intersection. - * If they share a border, returns the border if they don't intersect, returns undefined. - * - * @name [intersect](http://turfjs.org/docs/#intersect) - * @param {Feature} poly1 - * @param {Feature} poly2 - * @returns {Feature|undefined} A feature representing the point(s) they share (in case of a {Point} or {MultiPoint}), the borders they share (in case of a {LineString} or a {MultiLineString}), the area they share (in case of {Polygon} or {MultiPolygon}). If they do not share any point, returns `undefined`. - * @example - * var poly1 = polygon([[ - * [-122.801742, 45.48565], - * [-122.801742, 45.60491], - * [-122.584762, 45.60491], - * [-122.584762, 45.48565], - * [-122.801742, 45.48565] - * ]]); - * - * var poly2 = polygon([[ - * [-122.520217, 45.535693], - * [-122.64038, 45.553967], - * [-122.720031, 45.526554], - * [-122.669906, 45.507309], - * [-122.723464, 45.446643], - * [-122.532577, 45.408574], - * [-122.487258, 45.477466], - * [-122.520217, 45.535693] - * ]]); - * var polygons = featureCollection([poly1, poly2]); - * - * var intersection = turf.intersect(poly1, poly2); - * - * //=polygons - * - * //=intersection - */ - intersect( - feature1: GeoJSON.Feature, - feature2: GeoJSON.Feature - ): GeoJSON.Feature; - intersect( - feature1: GeoJSON.Feature, - feature2: GeoJSON.Feature - ): GeoJSON.Feature; - - /** - * Takes a LineString or Polygon and returns a simplified version. - * Internally uses simplify-js to perform simplification. - * @param feature Feature to be simplified - * @param tolerance Simplification tolerance - * @param highQuality Whether or not to spend more time to create a higher-quality simplification with a different algorithm - * @returns A simplified feature - */ - simplify(feature: GeoJSON.Feature | GeoJSON.FeatureCollection | GeoJSON.GeometryCollection, tolerance: number, highQuality: boolean): GeoJSON.Feature | GeoJSON.FeatureCollection | GeoJSON.GeometryCollection; - - /** - * Takes two polygons and returns a combined polygon. - * If the input polygons are not contiguous, this function returns a MultiPolygon feature.; - * @param poly1 Input polygon - * @param poly2 Another input polygon - * @returns A combined Polygon or MultiPolygon feature - */ - union(poly1: GeoJSON.Feature, poly2: GeoJSON.Feature): GeoJSON.Feature; - - ////////////////////////////////////////////////////// - // Misc - ////////////////////////////////////////////////////// - - /** - * Combines a FeatureCollection of Point, LineString, or Polygon features into MultiPoint, MultiLineString, or MultiPolygon features. - * @param fc A FeatureCollection of any type - * @returns A FeatureCollection of corresponding type to input - */ - combine(fc: GeoJSON.FeatureCollection): GeoJSON.FeatureCollection; - - /** - * Takes a feature or set of features and returns all positions as points. - * @param input Input features - * @returns Points representing the exploded input features - */ - explode(input: GeoJSON.Feature | GeoJSON.FeatureCollection): GeoJSON.FeatureCollection; - - /** - * Takes input features and flips all of their coordinates from [x, y] to [y, x]. - * @param input Input features - * @returns A feature or set of features of the same type as input with flipped coordinates - */ - flip(input: GeoJSON.Feature | GeoJSON.FeatureCollection): GeoJSON.Feature | GeoJSON.FeatureCollection; - - /** - * Takes a polygon and returns points at all self-intersections. - * @param polygon Input polygon - * @returns Self-intersections - */ - kinks(polygon: GeoJSON.Feature): GeoJSON.FeatureCollection; - - /** - * Takes a line, a start Point, and a stop point and returns the line in between those points. - * @param point1 Starting point - * @param point2 Stopping point - * @param line Line to slice - * @returns Sliced line - */ - lineSlice(point1: GeoJSON.Feature, point2: GeoJSON.Feature, line: GeoJSON.Feature): GeoJSON.Feature; - - /** - * Takes a Point and a LineString and calculates the closest Point on the LineString. - * @param line Line to snap to - * @param point Point to snap from - * @returns Closest point on the line to point - */ - pointOnLine(line: GeoJSON.Feature, point: GeoJSON.Feature): GeoJSON.Feature; - - ////////////////////////////////////////////////////// - // Helper - ////////////////////////////////////////////////////// - - /** - * Takes one or more {@link Feature|Features} and creates a {@link FeatureCollection}. - * - * @name [featureCollection](http://turfjs.org/docs/#featurecollection) - * @param {Feature[]} features input features - * @returns {FeatureCollection} a FeatureCollection of input features - * @example - * var features = [ - * turf.point([-75.343, 39.984], {name: 'Location A'}), - * turf.point([-75.833, 39.284], {name: 'Location B'}), - * turf.point([-75.534, 39.123], {name: 'Location C'}) - * ] - * - * var fc = turf.featureCollection(features) - * - * //=fc - */ - featureCollection(features: Array>): GeoJSON.FeatureCollection; - - /** - * Wraps a GeoJSON {@link Geometry} in a GeoJSON {@link Feature}. - * - * @name [feature](http://turfjs.org/docs/#feature) - * @param {Geometry} geometry input geometry - * @param {Object} properties properties - * @returns {FeatureCollection} a FeatureCollection of input features - * @example - * var geometry = { - * "type": "Point", - * "coordinates": [ - * 67.5, - * 32.84267363195431 - * ] - * } - * - * var feature = turf.feature(geometry) - * - * //=feature - */ - feature(geometry:GeoJSON.Feature, properties?: any): GeoJSON.Feature; - - /** - * Creates a {@link LineString} based on a coordinate array. Properties can be added optionally. - * - * @name [lineString](http://turfjs.org/docs/#linestring) - * @param {Array>} coordinates an array of Positions - * @param {Object=} properties an Object of key-value pairs to add as properties - * @returns {Feature} a LineString feature - * @throws {Error} if no coordinates are passed - * @example - * var linestring1 = turf.lineString([ - * [-21.964416, 64.148203], - * [-21.956176, 64.141316], - * [-21.93901, 64.135924], - * [-21.927337, 64.136673] - * ]) - * var linestring2 = turf.lineString([ - * [-21.929054, 64.127985], - * [-21.912918, 64.134726], - * [-21.916007, 64.141016], - * [-21.930084, 64.14446] - * ], {name: 'line 1', distance: 145}) - * - * //=linestring1 - * - * //=linestring2 - */ - lineString(coordinates: Array>, properties?: any): GeoJSON.Feature; - - /** - * Creates a {@link Feature} based on a coordinate array. Properties can be added optionally. - * - * @name [multiLineString](http://turfjs.org/docs/#multilinestring) - * @param {Array>>} coordinates an array of LineStrings - * @param {Object=} properties an Object of key-value pairs to add as properties - * @returns {Feature} a MultiLineString feature - * @throws {Error} if no coordinates are passed - * @example - * var multiLine = turf.multiLineString([[[0,0],[10,10]]]) - * - * //=multiLine - * - */ - multiLineString(coordinates: Array>>, properties?: any): GeoJSON.Feature; - - /** - * Takes coordinates and properties (optional) and returns a new {@link Point} feature. - * - * @name [point](http://turfjs.org/docs/#point) - * @param {Array} coordinates longitude, latitude position (each in decimal degrees) - * @param {Object=} properties an Object that is used as the {@link Feature}'s - * properties - * @returns {Feature} a Point feature - * @example - * var pt1 = turf.point([-75.343, 39.984]); - * - * //=pt1 - */ - point(coordinates: Array, properties?: any): GeoJSON.Feature; - - /** - * Creates a {@link Feature} based on a coordinate array. Properties can be added optionally. - * - * @name [multiPoint](http://turfjs.org/docs/#multipoint) - * @param {Array>} coordinates an array of Positions - * @param {Object=} properties an Object of key-value pairs to add as properties - * @returns {Feature} a MultiPoint feature - * @throws {Error} if no coordinates are passed - * @example - * var multiPt = turf.multiPoint([[0,0],[10,10]]) - * - * //=multiPt - * - */ - multiPoint(coordinates: Array>, properties?: any): GeoJSON.Feature; - - /** - * Takes an array of LinearRings and optionally an {@link Object} with properties and returns a {@link Polygon} feature. - * - * @name [polygon](http://turfjs.org/docs/#polygon) - * @param {Array>>} coordinates an array of LinearRings - * @param {Object=} properties a properties object - * @returns {Feature} a Polygon feature - * @throws {Error} throw an error if a LinearRing of the polygon has too few positions - * or if a LinearRing of the Polygon does not have matching Positions at the - * beginning & end. - * @example - * var polygon = turf.polygon([[ - * [-2.275543, 53.464547], - * [-2.275543, 53.489271], - * [-2.215118, 53.489271], - * [-2.215118, 53.464547], - * [-2.275543, 53.464547] - * ]], { name: 'poly1', population: 400}); - * - * //=polygon - */ - polygon(coordinates: Array>>, properties?: any): GeoJSON.Feature; - - /** - * Creates a {@link Feature} based on a coordinate array. Properties can be added optionally. - * - * @name [multiPolygon](http://turfjs.org/docs/#multipolygon) - * @param {Array>>>} coordinates an array of Polygons - * @param {Object=} properties an Object of key-value pairs to add as properties - * @returns {Feature} a multipolygon feature - * @throws {Error} if no coordinates are passed - * @example - * var multiPoly = turf.multiPolygon([[[[0,0],[0,10],[10,10],[10,0],[0,0]]]); - * - * //=multiPoly - * - */ - multiPolygon(coordinates: Array>>>, properties?: any): GeoJSON.Feature; - - /** - * Creates a {@link Feature} based on acoordinate array. Properties can be added optionally. - * - * @name [geometryCollection](http://turfjs.org/docs/#geometrycollection) - * @param {Array<{Geometry}>} geometries an array of GeoJSON Geometries - * @param {Object=} properties an Object of key-value pairs to add as properties - * @returns {Feature} a GeoJSON GeometryCollection Feature - * @example - * var point = { - * "type": "Point", - * "coordinates": [100, 0] - * }; - * var line = { - * "type": "LineString", - * "coordinates": [ [101, 0], [102, 1] ] - * }; - * var collection = turf.geometryCollection([point, line]); - * - * //=collection - */ - geometryCollection(geometries: Array, properties?: any): GeoJSON.GeometryCollection; - - ////////////////////////////////////////////////////// - // Data - ////////////////////////////////////////////////////// - - /** - * Generates random {@link GeoJSON} data, including {@link Point|Points} and {@link Polygon|Polygons}, for testing and experimentation. - * - * @name [random](http://turfjs.org/docs/#random) - * @param {String} [type='point'] type of features desired: 'points' or 'polygons' - * @param {Number} [count=1] how many geometries should be generated. - * @param {Object} options options relevant to the feature desired. Can include: - * @param {Array} options.bbox a bounding box inside of which geometries - * are placed. In the case of {@link Point} features, they are guaranteed to be within this bounds, - * while {@link Polygon} features have their centroid within the bounds. - * @param {Number} [options.num_vertices=10] options.vertices the number of vertices added - * to polygon features. - * @param {Number} [options.max_radial_length=10] the total number of decimal - * degrees longitude or latitude that a polygon can extent outwards to - * from its center. - * @return {FeatureCollection} generated random features - * @example - * var points = turf.random('points', 100, { - * bbox: [-70, 40, -60, 60] - * }) - * - * //=points - * - * var polygons = turf.random('polygons', 4, { - * bbox: [-70, 40, -60, 60] - * }) - * - * //=polygons - */ - random(type?: 'point', count?: number, options?: OptionsRandom): GeoJSON.FeatureCollection; - random(type?: 'points', count?: number, options?: OptionsRandom): GeoJSON.FeatureCollection; - random(type?: 'polygon', count?: number, options?: OptionsRandom): GeoJSON.FeatureCollection; - random(type?: 'polygons', count?: number, options?: OptionsRandom): GeoJSON.FeatureCollection; - random(type?: typeof TemplateType, count?: number, options?: OptionsRandom): GeoJSON.FeatureCollection; - - /** - * Takes a {@link FeatureCollection} and returns a FeatureCollection with given number of {@link Feature|features} at random. - * - * @name [sample](http://turfjs.org/docs/#sample) - * @param {FeatureCollection} featurecollection set of input features - * @param {number} num number of features to select - * @return {FeatureCollection} a FeatureCollection with `n` features - * @example - * var points = turf.random('points', 1000); - * - * //=points - * - * var sample = turf.sample(points, 10); - * - * //=sample - */ - sample(featurecollection: GeoJSON.FeatureCollection, num: number): GeoJSON.FeatureCollection; - - ////////////////////////////////////////////////////// - // GRIDS - ////////////////////////////////////////////////////// - - /** - * Takes a bounding box and a cell size in degrees and returns a {@link FeatureCollection} of flat-topped hexagons ({@link Polygon} features) aligned in an "odd-q" vertical grid as described in [Hexagonal Grids](http://www.redblobgames.com/grids/hexagons/). - * - * @name [hexGrid](http://turfjs.org/docs/#hexgrid) - * @param {Array} bbox bounding box in [minX, minY, maxX, maxY] order - * @param {number} cellSize dimension of cell in specified units - * @param {string} units used in calculating cellSize ('miles' or 'kilometers') - * @param {boolean} triangles whether to return as triangles instead of hexagons - * @return {FeatureCollection} a hexagonal grid - * @example - * var bbox = [-96,31,-84,40]; - * var cellSize = 50; - * var units = 'miles'; - * - * var hexgrid = turf.hexGrid(bbox, cellSize, units); - * - * //=hexgrid - */ - hexGrid( - bbox: Array, - cellSize: number, - units?: typeof TemplateUnits, - triangles?: boolean - ): GeoJSON.FeatureCollection; - - /** - * Takes a bounding box and a cell depth and returns a set of {@link Point|points} in a grid. - * - * @name [pointGrid](http://turfjs.org/docs/#pointgrid) - * @param {Array} bbox extent in [minX, minY, maxX, maxY] order - * @param {number} cellSize the distance across each cell - * @param {string} [units=kilometers] used in calculating cellSize, can be degrees, radians, miles, or kilometers - * @return {FeatureCollection} grid of points - * @example - * var extent = [-70.823364, -33.553984, -70.473175, -33.302986]; - * var cellSize = 3; - * var units = 'miles'; - * - * var grid = turf.pointGrid(extent, cellSize, units); - * - * //=grid - */ - pointGrid( - bbox: Array, - cellSize: number, - units?: typeof TemplateUnits - ): GeoJSON.FeatureCollection; - - /** - * Takes a bounding box and a cell depth and returns a set of square {@link Polygon|polygons} in a grid. - * - * @name [squareGrid](http://turfjs.org/docs/#squaregrid) - * @param {Array} bbox extent in [minX, minY, maxX, maxY] order - * @param {number} cellSize width of each cell - * @param {string} [units=kilometers] used in calculating cellSize, can be degrees, radians, miles, or kilometers - * @return {FeatureCollection} grid a grid of polygons - * @example - * var bbox = [-96,31,-84,40] - * var cellSize = 10 - * var units = 'miles' - * - * var squareGrid = turf.squareGrid(bbox, cellSize, units) - * - * //=squareGrid - */ - squareGrid( - bbox: Array, - cellSize: number, - units?: typeof TemplateUnits - ): GeoJSON.FeatureCollection; - - /** - * Takes a bounding box and a cell depth and returns a set of triangular {@link Polygon|polygons} in a grid. - * - * @name [triangleGrid](http://turfjs.org/docs/#trianglegrid)) - * @param {Array} bbox extent in [minX, minY, maxX, maxY] order - * @param {number} cellSize dimension of each cell - * @param {string} [units=kilometers] used in calculating cellSize, can be degrees, radians, miles, or kilometers - * @return {FeatureCollection} grid of polygons - * @example - * var bbox = [-96,31,-84,40] - * var cellSize = 10; - * var units = 'miles'; - * - * var triangleGrid = turf.triangleGrid(extent, cellSize, units); - * - * //=triangleGrid - */ - triangleGrid( - bbox: Array, - cellSize: number, - units?: typeof TemplateUnits - ): GeoJSON.FeatureCollection; - - ////////////////////////////////////////////////////// - // Interpolation - ////////////////////////////////////////////////////// - - /** - * Takes points with z-values and an array of value breaks and generates isolines. - * @param points Input points - * @param z The property name in points from which z-values will be pulled - * @param resolution Resolution of the underlying grid - * @param breaks Where to draw contours - * @returns Isolines - */ - isolines(points: GeoJSON.FeatureCollection, z: string, resolution: number, breaks: Array): GeoJSON.FeatureCollection; - - /** - * Takes a triangular plane as a Polygon and a Point within that triangle and returns the z-value at that point. - * The Polygon needs to have properties a, b, and c that define the values at its three corners. - * @param interpolatedPoint The Point for which a z-value will be calculated - * @param triangle A Polygon feature with three vertices - * @returns The z-value for interpolatedPoint - */ - planepoint(interpolatedpoint: GeoJSON.Feature, triangle: GeoJSON.Feature): number; - - /** - * Takes a set of points and the name of a z-value property and creates a Triangulated Irregular Network, or a TIN for short, returned as a collection of Polygons. - * These are often used for developing elevation contour maps or stepped heat visualizations. - * This triangulates the points, as well as adds properties called a, b, and c representing the value of the given propertyName at each of the points that represent the corners of the triangle. - * @param points Input points - * @param [propertyName] Name of the property from which to pull z values This is optional: if not given, then there will be no extra data added to the derived triangles. - * @returns TIN output - */ - tin(points: GeoJSON.FeatureCollection, propertyName?: string): GeoJSON.FeatureCollection; - - ////////////////////////////////////////////////////// - // Joins - ////////////////////////////////////////////////////// - - /** - * Takes a {} and a {} or {} and determines if the point resides inside the polygon. The polygon can be convex or concave. The function accounts for holes. - * - * @name [inside](http://turfjs.org/docs/#inside) - * @param {Feature} point input point - * @param {Feature<(Polygon|MultiPolygon)>} polygon input polygon or multipolygon - * @return {Boolean} `true` if the Point is inside the Polygon; `false` if the Point is not inside the Polygon - * @example - * var pt = point([-77, 44]) - * var poly = polygon([[[-81, 41], [-81, 47], [-72, 47], [-72, 41], [-81, 41]]]) - * - * var isInside = turf.inside(pt, poly) - * - * //=isInside - */ - inside( - point: GeoJSON.Feature, - polygon: GeoJSON.Feature - ): boolean; - - /** - * Takes a {FeatureCollection} and a {FeatureCollection} and performs a spatial join. - * - * @name [tag](http://turfjs.org/docs/#inside) - * @param {FeatureCollection} points input points - * @param {FeatureCollection} polygons input polygons - * @param {string} field property in `polygons` to add to joined {} features - * @param {string} outField property in `points` in which to store joined property from `polygons` - * @return {FeatureCollection} points with `containingPolyId` property containing values from `polyId` - * @example - * var pt1 = point([-77, 44]) - * var pt2 = point([-77, 38]) - * var poly1 = polygon([[[-81, 41], [-81, 47], [-72, 47], [-72, 41], [-81, 41]]], {pop: 1000}) - * var poly2 = polygon([[[-81, 35], [-81, 41], [-72, 41], [-72, 35], [-81, 35]]], {pop: 3000}) - * - * var points = featureCollection([pt1, pt2]) - * var polygons = featureCollection([poly1, poly2]) - * - * var tagged = turf.tag(points, polygons, 'pop', 'population') - * //=tagged - */ - tag( - points: GeoJSON.FeatureCollection, - polygons: GeoJSON.FeatureCollection, - field: string, - outField: string - ): GeoJSON.FeatureCollection; - - /** - * Takes a set of points and a set of polygons and returns the points that fall within the polygons. - * @param points Input points - * @param polygons Input polygons - * @returns Points that land within at least one polygon - */ - within( - points: GeoJSON.FeatureCollection, - polygons: GeoJSON.FeatureCollection - ): GeoJSON.FeatureCollection; - - ////////////////////////////////////////////////////// - // Classification - ////////////////////////////////////////////////////// - - /** - * Takes a reference point and a set of points and returns the point from the set closest to the reference. - * @param point The reference point - * @param against Input point set - * @returns The closest point in the set to the reference point - */ - nearest( - point: GeoJSON.Feature, - against: GeoJSON.FeatureCollection - ): GeoJSON.Feature; - } -} - -// NPM Stable version of Turf -declare module "turf" { - export = turf -} - -// Latest version of Turf -declare module "@turf/turf" { - export = turf -} - -// AGGREGATION -declare module "@turf/collect" { - const collect: typeof turf.collect; - export = collect; -} - -// MEASUREMENT -declare module "@turf/along" { - const along: typeof turf.along; - export = along; -} - -declare module "@turf/area" { - const area: typeof turf.area; - export = area; -} - -declare module "@turf/bbox-polygon" { - const bboxPolygon: typeof turf.bboxPolygon; - export = bboxPolygon; -} - -declare module "@turf/bearing" { - const bearing: typeof turf.bearing; - export = bearing; -} - -declare module "@turf/center" { - const center: typeof turf.center; - export = center; -} - -declare module "@turf/centroid" { - const centroid: typeof turf.centroid; - export = centroid; -} - -declare module "@turf/destination" { - const destination: typeof turf.destination; - export = destination; -} - -declare module "@turf/distance" { - const distance: typeof turf.distance; - export = distance; -} - -declare module "@turf/envelope" { - const envelope: typeof turf.envelope; - export = envelope; -} - -declare module "@turf/line-distance" { - const lineDistance: typeof turf.lineDistance; - export = lineDistance; -} - -declare module "@turf/midpoint" { - const midpoint: typeof turf.midpoint; - export = midpoint; -} - -declare module "@turf/point-on-surface" { - const pointOnSurface: typeof turf.pointOnSurface; - export = pointOnSurface; -} - -declare module "@turf/square" { - const square: typeof turf.square; - export = square; -} - -// TRANSFORMATION -declare module "@turf/bezier" { - const bezier: typeof turf.bezier; - export = bezier; -} - -declare module "@turf/buffer" { - const buffer: typeof turf.buffer; - export = buffer; -} - -declare module "@turf/concave" { - const concave: typeof turf.concave; - export = concave; -} - -declare module "@turf/convex" { - const convex: typeof turf.convex; - export = convex; -} - -declare module "@turf/difference" { - const difference: typeof turf.difference; - export = difference; -} - -declare module "@turf/intersect" { - const intersect: typeof turf.intersect; - export = intersect; -} - -declare module "@turf/simplify" { - const simplify: typeof turf.simplify; - export = simplify; -} - -declare module "@turf/union" { - const union: typeof turf.union; - export = union; -} - -// MISC -declare module "@turf/combine" { - const combine: typeof turf.combine; - export = combine; -} - -declare module "@turf/explode" { - const explode: typeof turf.explode; - export = explode; -} - -declare module "@turf/flip" { - const flip: typeof turf.flip; - export = flip; -} - -declare module "@turf/kinks" { - const kinks: typeof turf.kinks; - export = kinks; -} - -declare module "@turf/line-slice" { - const lineSlice: typeof turf.lineSlice; - export = lineSlice; -} - -declare module "@turf/point-on-line" { - const pointOnLine: typeof turf.pointOnLine; - export = pointOnLine; -} - -// HELPER -declare module "@turf/helpers" { - const helpers: { - featureCollection: typeof turf.featureCollection, - feature: typeof turf.feature, - lineString: typeof turf.lineString, - multiLineString: typeof turf.multiLineString, - point: typeof turf.point, - multiPoint: typeof turf.multiPoint, - polygon: typeof turf.polygon, - multiPolygon: typeof turf.multiPolygon, - geometryCollection: typeof turf.geometryCollection, - }; - export = helpers; -} - -// DATA -declare module "@turf/random" { - const random: typeof turf.random; - export = random; -} - -declare module "@turf/sample" { - const sample: typeof turf.sample; - export = sample; -} - -// INTERPOLATION -declare module "@turf/isolines" { - const isolines: typeof turf.isolines; - export = isolines; -} - -declare module "@turf/planepoint" { - const planepoint: typeof turf.planepoint; - export = planepoint; -} - -declare module "@turf/tin" { - const tin: typeof turf.tin; - export = tin; -} - -// JOINS -declare module "@turf/inside" { - const inside: typeof turf.inside; - export = inside; -} - -declare module "@turf/tag" { - const tag: typeof turf.tag; - export = tag; -} - -declare module "@turf/within" { - const within: typeof turf.within; - export = within; -} - -// GRIDS -declare module "@turf/hex-grid" { - const hexGrid: typeof turf.hexGrid; - export = hexGrid; -} - -declare module "@turf/point-grid" { - const pointGrid: typeof turf.pointGrid; - export = pointGrid; -} - -declare module "@turf/square-grid" { - const squareGrid: typeof turf.squareGrid; - export = squareGrid; -} - -declare module "@turf/triangle-grid" { - const triangleGrid: typeof turf.triangleGrid; - export = triangleGrid; -} - -// CLASSIFICATION -declare module "@turf/nearest" { - const nearest: typeof turf.nearest; - export = nearest; -} - -// // META -// declare module "@turf/propEach" { -// const propEach: typeof turf.propEach; -// export = propEach; -// } - -// declare module "@turf/coordEach" { -// const coordEach: typeof turf.coordEach; -// export = coordEach; -// } - -// declare module "@turf/coordReduce" { -// const coordReduce: typeof turf.coordReduce; -// export = coordReduce; -// } - -// declare module "@turf/featureEach" { -// const featureEach: typeof turf.featureEach; -// export = featureEach; -// } - -// declare module "@turf/getCoord" { -// const getCoord: typeof turf.getCoord; -// export = getCoord; -// } - -// // ASSERTIONS -// declare module "@turf/featureOf" { -// const featureOf: typeof turf.featureOf; -// export = featureOf; -// } - -// declare module "@turf/collectionOf" { -// const collectionOf: typeof turf.collectionOf; -// export = collectionOf; -// } - -declare module "@turf/bbox" { - const bbox: typeof turf.bbox; - export = bbox; -} - -declare module "@turf/circle" { - const circle: typeof turf.circle; - export = circle; -} - -declare module "@turf/geojsonType" { - const geojsonType: typeof turf.geojsonType; - export = geojsonType; -} - -declare module "@turf/propReduce" { - const propReduce: typeof turf.propReduce; - export = propReduce; -} - -declare module "@turf/coordAll" { - const coordAll: typeof turf.coordAll; - export = coordAll; -} - -declare module "@turf/tesselate" { - const tesselate: typeof turf.tesselate; - export = tesselate; -} diff --git a/types/turf/tsconfig.json b/types/turf/tsconfig.json deleted file mode 100644 index 344431ad7a..0000000000 --- a/types/turf/tsconfig.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "compilerOptions": { - "module": "commonjs", - "lib": [ - "es6" - ], - "noImplicitAny": true, - "noImplicitThis": true, - "strictNullChecks": false, - "strictFunctionTypes": true, - "baseUrl": "../", - "typeRoots": [ - "../" - ], - "types": [], - "noEmit": true, - "forceConsistentCasingInFileNames": true - }, - "files": [ - "index.d.ts", - "turf-tests.ts" - ] -} \ No newline at end of file diff --git a/types/turf/turf-tests.ts b/types/turf/turf-tests.ts deleted file mode 100644 index 1c18d01a7d..0000000000 --- a/types/turf/turf-tests.ts +++ /dev/null @@ -1,522 +0,0 @@ -import * as turf from '@turf/turf' -// AGGREGATION -import * as collect from '@turf/collect' -// MEASUREMENT -import * as along from '@turf/along' -import * as area from '@turf/area' -import * as bboxPolygon from '@turf/bbox-polygon' -import * as bearing from '@turf/bearing' -import * as center from '@turf/center' -import * as centroid from '@turf/centroid' -import * as destination from '@turf/destination' -import * as envelope from '@turf/envelope' -import * as lineDistance from '@turf/line-distance' -import * as midpoint from '@turf/midpoint' -import * as pointOnSurce from '@turf/point-on-surface' -import * as square from '@turf/square' -// TRANSFORMATION -import * as bezier from '@turf/bezier' -import * as buffer from '@turf/buffer' -import * as concave from '@turf/concave' -import * as convex from '@turf/convex' -import * as difference from '@turf/difference' -import * as intersect from '@turf/intersect' -import * as simplify from '@turf/simplify' -import * as union from '@turf/union' -// MISC -import * as combine from '@turf/combine' -import * as explode from '@turf/explode' -import * as flip from '@turf/flip' -import * as kinks from '@turf/kinks' -import * as lineSlice from '@turf/line-slice' -import * as pointOnLine from '@turf/point-on-line' -// HELPER -import { - featureCollection, - feature, - lineString, - multiLineString, - point, - multiPoint, - polygon, - multiPolygon, - geometryCollection } from '@turf/helpers' -// DATA -import * as random from '@turf/random' -import * as sample from '@turf/sample' -// INTERPOLATION -import * as isolines from '@turf/isolines' -import * as planepoint from '@turf/planepoint' -import * as tin from '@turf/tin' -// JOINS -import * as inside from '@turf/inside' -import * as tag from '@turf/tag' -import * as within from '@turf/within' -// GRIDS -import * as hexGrid from '@turf/hex-grid' -import * as pointGrid from '@turf/point-grid' -import * as squareGrid from '@turf/square-grid' -import * as triangleGrid from '@turf/triangle-grid' -// CLASSIFICATION -import * as nearest from '@turf/nearest' -// // META -// import * as propEach from '@turf/propEach' -// import * as coordEach from '@turf/coordEach' -// import * as coordReduce from '@turf/coordReduce' -// import * as featureEach from '@turf/featureEach' -// import * as getCoord from '@turf/getCoord' -// // ASSERTIONS -// import * as featureOf from '@turf/featureOf' -// import * as collectionOf from '@turf/collectionOf' -import * as bboxAssertions from '@turf/bbox' -// import * as circle from '@turf/circle' -// import * as geojsonType from '@turf/geojsonType' -// import * as propReduce from '@turf/propReduce' -// import * as coordAll from '@turf/coordAll' -// import * as tesselate from '@turf/tesselate' - -/////////////////////////////////////////// -// Tests data initialisation -/////////////////////////////////////////// -const bbox = [0, 0, 10, 10] -const properties = {pop: 3000} -const point1: GeoJSON.Feature = { - "type": "Feature", - "properties": {}, - "geometry": { - "type": "Point", - "coordinates": [-75.343, 39.984] - } -} - -const point2: GeoJSON.Feature = { - "type": "Feature", - "properties": {}, - "geometry": { - "type": "Point", - "coordinates": [-75.401, 39.884] - } -} - -const multiPoint1: GeoJSON.Feature = { - "type": "Feature", - "properties": {}, - "geometry": { - "type": "MultiPoint", - "coordinates": [ [100.0, 0.0], [101.0, 1.0] ] - } -} - -const lineString1: GeoJSON.Feature = { - "type": "Feature", - "properties": {}, - "geometry": { - "type": "LineString", - "coordinates": [ - [-77.031669, 38.878605], - [-77.029609, 38.881946], - [-77.020339, 38.884084], - [-77.025661, 38.885821], - [-77.021884, 38.889563], - [-77.019824, 38.892368] - ] - } -} - -const multiLineString1: GeoJSON.Feature = { - "type": "Feature", - "properties": {}, - "geometry": { - "type": "MultiLineString", - "coordinates": [ - [ [100.0, 0.0], [101.0, 1.0] ], - [ [102.0, 2.0], [103.0, 3.0] ] - ] - } -} - -const polygons: GeoJSON.FeatureCollection = { - "type": "FeatureCollection", - "features": [ - { - "type": "Feature", - "properties": {}, - "geometry": { - "type": "Polygon", - "coordinates": [[ - [-67.031021, 10.458102], - [-67.031021, 10.53372], - [-66.929397, 10.53372], - [-66.929397, 10.458102], - [-67.031021, 10.458102] - ]] - } - }, { - "type": "Feature", - "properties": {}, - "geometry": { - "type": "Polygon", - "coordinates": [[ - [-66.919784, 10.397325], - [-66.919784, 10.513467], - [-66.805114, 10.513467], - [-66.805114, 10.397325], - [-66.919784, 10.397325] - ]] - } - } - ] -} - -const polygon1: GeoJSON.Feature = { - "type": "Feature", - "properties": {}, - "geometry": { - "type": "Polygon", - "coordinates": [[ - [105.818939,21.004714], - [105.818939,21.061754], - [105.890007,21.061754], - [105.890007,21.004714], - [105.818939,21.004714] - ]] - } -} - -const polygon2: GeoJSON.Feature = { - "type": "Feature", - "properties": {}, - "geometry": { - "type": "Polygon", - "coordinates": [[ - [-122.520217, 45.535693], - [-122.64038, 45.553967], - [-122.720031, 45.526554], - [-122.669906, 45.507309], - [-122.723464, 45.446643], - [-122.532577, 45.408574], - [-122.487258, 45.477466], - [-122.520217, 45.535693] - ]] - } -} - -const multiPolygon1: GeoJSON.Feature = { - "type": "Feature", - "properties": {}, - "geometry": { - "type": "MultiPolygon", - "coordinates": [ - [[[102.0, 2.0], [103.0, 2.0], [103.0, 3.0], [102.0, 3.0], [102.0, 2.0]]], - [[[100.0, 0.0], [101.0, 0.0], [101.0, 1.0], [100.0, 1.0], [100.0, 0.0]], - [[100.2, 0.2], [100.8, 0.2], [100.8, 0.8], [100.2, 0.8], [100.2, 0.2]]] - ] - } -} - -const points: GeoJSON.FeatureCollection = { - "type": "FeatureCollection", - "features": [ - { - "type": "Feature", - "properties": {}, - "geometry": { - "type": "Point", - "coordinates": [-63.601226, 44.642643] - } - }, { - "type": "Feature", - "properties": {}, - "geometry": { - "type": "Point", - "coordinates": [-63.591442, 44.651436] - } - }, { - "type": "Feature", - "properties": {}, - "geometry": { - "type": "Point", - "coordinates": [-63.580799, 44.648749] - } - }, { - "type": "Feature", - "properties": {}, - "geometry": { - "type": "Point", - "coordinates": [-63.573589, 44.641788] - } - }, { - "type": "Feature", - "properties": {}, - "geometry": { - "type": "Point", - "coordinates": [-63.587665, 44.64533] - } - }, { - "type": "Feature", - "properties": {}, - "geometry": { - "type": "Point", - "coordinates": [-63.595218, 44.64765] - } - } - ] -} - -const triangle: GeoJSON.Feature = { - "type": "Feature", - "properties": {}, - "geometry": { - "type": "Polygon", - "coordinates": [[ - [-75.1221, 39.57], - [-75.58, 39.18], - [-75.97, 39.86], - [-75.1221, 39.57] - ]] - } -} - -/////////////////////////////////////////// -// Tests Measurement -/////////////////////////////////////////// - -// -- Test along -- -turf.along(lineString1, 50) -turf.along(lineString1, 50, 'miles') - -// -- Test area -- -turf.area(polygons) - -// -- Test bboxPolygon -- -turf.bboxPolygon(bbox) - -// -- Test bearing -- -turf.bearing(point1, point2) - -// -- Test center -turf.center(points) - -// -- Test centroid -- -turf.centroid(polygon1) - -// -- Test destination -- -turf.destination(point1, 50, 90) -turf.destination(point1, 50, 90, 'miles') - -// -- Test distance -- -turf.distance(point1, point2) -turf.distance(point1, point2, 'miles') - -// -- Test envelope -- -turf.envelope(polygons) - -// -- Test lineDistance -turf.lineDistance(lineString1) -turf.lineDistance(lineString1, 'miles') - -// -- Test midpoint -- -turf.midpoint(point1, point2) - -// -- Test pointOnSurface -- -turf.pointOnSurface(polygon1) - -// -- Test square -- -turf.square(bbox) - -/////////////////////////////////////////// -// Tests Transformation -/////////////////////////////////////////// - -// -- Test bezier -- -turf.bezier(lineString1) - -// -- Test buffer -- -turf.buffer(point1, 50) -turf.buffer(point1, 50, 'miles') - -// -- Test concave -- -turf.concave(points, 1, 'miles') - -// -- Test convex -- -turf.convex(points) - -// -- Test difference -- -turf.difference(polygon1, polygon2) - -// -- Test intersect -- -turf.intersect(polygon1, polygon2) -turf.intersect(point1, polygon1) -turf.intersect(point1, point1) -turf.intersect(polygon1, point1) -turf.intersect(polygon1, lineString1) -turf.intersect(lineString1, point1) - -// -- Test simplify -- - -turf.simplify(polygon1, 0.01, false) - -// -- Test union -- -turf.union(polygon1, polygon2) - -/////////////////////////////////////////// -// Tests Misc -/////////////////////////////////////////// - -// -- Test combine -- -turf.combine(points) - -// -- Test explode -- -turf.explode(polygon1) - -// -- Test flip -- -turf.flip(point1) - -// -- Test kinks -- -turf.kinks(polygon1) - -// -- Test lineSlice -- -turf.lineSlice(point1, point2, lineString1) - -// -- Test pointOnLine -- -turf.pointOnLine(lineString1, point1) - -/////////////////////////////////////////// -// Tests Helper -/////////////////////////////////////////// - -// -- Test featurecollection -- -turf.featureCollection([point1, point2]) -turf.featureCollection([point1, polygon1]) -turf.featureCollection([polygon1, polygon2]) -turf.featureCollection([lineString1, polygon1]) -turf.featureCollection([lineString1, point1]) - -// -- Test feature -- -turf.feature(point1) -turf.feature(polygon1) -turf.feature(lineString1) - -// -- Test lineString -- -turf.lineString(lineString1.geometry.coordinates) -turf.lineString(lineString1.geometry.coordinates, properties) - -// -- Test multiLineString -- -turf.multiLineString(multiLineString1.geometry.coordinates) - -// -- Test point -- -turf.point(point1.geometry.coordinates) -turf.point(point1.geometry.coordinates, properties) - -// -- Test multiPoint -- -turf.multiPoint(multiPoint1.geometry.coordinates) - -// -- Test polygon -- -turf.polygon(polygon1.geometry.coordinates, properties) - -// -- Test multiPolygon -- -turf.multiPolygon(multiPolygon1.geometry.coordinates, properties) - -// -- Test geometryCollection -- -turf.geometryCollection([point1.geometry, lineString1.geometry]); - -/////////////////////////////////////////// -// Tests Data -/////////////////////////////////////////// - -// -- Test random -- -turf.random('points', 100) -turf.random('points', 100, { bbox }) -turf.random('polygons', 100, { - bbox, - num_vertices: 10, - max_radial_length: 10 -}) - -// -- Test sample -- -turf.random('points', 100) -turf.sample(points, 10) - -/////////////////////////////////////////// -// Tests Interpolation -/////////////////////////////////////////// - -// -- Test hexGrid -- -turf.hexGrid(bbox, 50) -turf.hexGrid(bbox, 50, 'miles') - -// -- Test pointGrid -- -turf.pointGrid(bbox, 50) -turf.pointGrid(bbox, 50, 'miles') - -// -- Test squareGrid -- -turf.squareGrid(bbox, 50) -turf.squareGrid(bbox, 50, 'miles') - -// -- Test triangleGrid -- -turf.triangleGrid(bbox, 50) -turf.triangleGrid(bbox, 50, 'miles') - -/////////////////////////////////////////// -// Tests Interpolation -/////////////////////////////////////////// - -// -- Test isolines -- -turf.isolines(points, 'z', 15, [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10]) - -// -- Test planepoint -- -turf.planepoint(point1, triangle) - -// -- Test tin -- -turf.tin(points, 'z') - -/////////////////////////////////////////// -// Tests Joins -/////////////////////////////////////////// - -// -- Test inside -- -turf.inside(point1, polygon1) - -// -- Test tag -- -turf.tag(points, polygons, 'pop', 'population') - -// -- Test within -- -turf.within(points, polygons) - -/////////////////////////////////////////// -// Tests Classification -/////////////////////////////////////////// - -// -- Test nearest -- -turf.nearest(point1, points) - -/////////////////////////////////////////// -// Tests Aggregation -/////////////////////////////////////////// -turf.collect(polygons, points, 'population', 'values') - -/////////////////////////////////////////// -// Tests Assertions -/////////////////////////////////////////// -// -- Test bbox -- -turf.bbox(polygon1) -turf.bbox(point1) -turf.bbox(lineString1) -turf.bbox(multiLineString1) -turf.bbox(multiPolygon1) -// -- Test circle -- -turf.circle(point1, 10) -turf.circle(point1, 10, 32) -turf.circle(point1, 10, 64, 'miles') - -// -- Test geojsonType -- -turf.geojsonType(point1, 'point', 'Test') - -// -- Test propReduce -- -turf.propReduce(point1, (memo, coord) => {}, 'point') - -// -- Test coordAll -- -turf.coordAll(polygon1) - -// -- Test tesselate -- -turf.tesselate(polygon1) \ No newline at end of file diff --git a/types/turf/v2/index.d.ts b/types/turf/v2/index.d.ts deleted file mode 100644 index 529be0afa1..0000000000 --- a/types/turf/v2/index.d.ts +++ /dev/null @@ -1,580 +0,0 @@ -// Type definitions for Turf 2.0 -// Project: http://turfjs.org/ -// Definitions by: Guillaume Croteau -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -/// - -declare module turf { - ////////////////////////////////////////////////////// - // Aggregation - ////////////////////////////////////////////////////// - - /** - * Calculates a series of aggregations for a set of points within a set of polygons. - * Sum, average, count, min, max, and deviation are supported. - * @param polygons Polygons with values on which to aggregate - * @param points Points to be aggregated - * @param aggregations An array of aggregation objects - * @returns Polygons with properties listed based on outField values in aggregations - */ - function aggregate(polygons: GeoJSON.FeatureCollection, points: GeoJSON.FeatureCollection, aggregations: Array<{aggregation: string, inField: string, outField: string}>): GeoJSON.FeatureCollection; - - /** - * Calculates the average value of a field for a set of points within a set of polygons. - * @param polygons Polygons with values on which to average - * @param points Points from which to calculate the average - * @param field The field in the points features from which to pull values to average - * @param outField The field in polygons to put results of the averages - * @returns Polygons with the value of outField set to the calculated averages - */ - function average(polygons: GeoJSON.FeatureCollection, points: GeoJSON.FeatureCollection, field: string, outField: string): GeoJSON.FeatureCollection; - - /** - * Takes a set of points and a set of polygons and calculates the number of points that fall within the set of polygons. - * @param polygons Input polygons - * @param points Input points - * @param countField A field to append to the attributes of the Polygon features representing Point counts - * @returns Polygons with countField appended - */ - function count(polygons: GeoJSON.FeatureCollection, points: GeoJSON.FeatureCollection, countField: string): GeoJSON.FeatureCollection; - - /** - * Calculates the standard deviation value of a field for a set of points within a set of polygons. - * @param polygons Input polygons - * @param points Input points - * @param inField The field in points from which to aggregate - * @param outField The field to append to polygons representing deviation - * @returns Polygons with appended field representing deviation - */ - function deviation(polygons: GeoJSON.FeatureCollection, points: GeoJSON.FeatureCollection, inField: string, outField: string): GeoJSON.FeatureCollection; - - /** - * Calculates the maximum value of a field for a set of points within a set of polygons. - * @param polygons Input polygons - * @param points Input points - * @param inField The field in input data to analyze - * @param outField The field in which to store results - * @returns Polygons with properties listed as outField values - */ - function max(polygons: GeoJSON.FeatureCollection, points: GeoJSON.FeatureCollection, inField: string, outField: string): GeoJSON.FeatureCollection; - - /** - * Calculates the median value of a field for a set of points within a set of polygons. - * @param polygons Input polygons - * @param points Input points - * @param inField The field in input data to analyze - * @param outField The field in which to store results - * @returns Polygons with properties listed as outField values - */ - function median(polygons: GeoJSON.FeatureCollection, points: GeoJSON.FeatureCollection, inField: string, outField: string): GeoJSON.FeatureCollection; - - /** - * Calculates the minimum value of a field for a set of points within a set of polygons. - * @param polygons Input polygons - * @param points Input points - * @param inField The field in input data to analyze - * @param outField The field in which to store results - * @returns Polygons with properties listed as outField values - */ - function min(polygons: GeoJSON.FeatureCollection, points: GeoJSON.FeatureCollection, inField: string, outField: string): GeoJSON.FeatureCollection; - - /** - * Calculates the sum of a field for a set of points within a set of polygons. - * @param polygons Input polygons - * @param points Input points - * @param inField The field in input data to analyze - * @param outField The field in which to store results - * @returns Polygons with properties listed as outField - */ - function sum(polygons: GeoJSON.FeatureCollection, points: GeoJSON.FeatureCollection, inField: string, outField: string): GeoJSON.FeatureCollection; - - /** - * Calculates the variance value of a field for a set of points within a set of polygons. - * @param polygons Input polygons - * @param points Input points - * @param inField The field in input data to analyze - * @param outField The field in which to store results - * @returns Polygons with properties listed as outField - */ - function variance(polygons: GeoJSON.FeatureCollection, points: GeoJSON.FeatureCollection, inField: string, outField: string): GeoJSON.FeatureCollection; - - ////////////////////////////////////////////////////// - // Measurement - ////////////////////////////////////////////////////// - - /** - * Takes a line and returns a point at a specified distance along the line. - * @param line Input line - * @param distance Distance along the line - * @param [units=miles] 'miles', 'kilometers', 'radians' or 'degrees' - * @returns Point along the line - */ - function along(line: GeoJSON.Feature, distance: number, units?: string): GeoJSON.Feature; - - /** - * Takes one or more features and returns their area in square meters. - * @param input Input features - * @returns Area in square meters - */ - function area(input: GeoJSON.Feature | GeoJSON.FeatureCollection): number; - - /** - * Takes a bbox and returns an equivalent polygon. - * @param bbox An Array of bounding box coordinates in the form: [xLow, yLow, xHigh, yHigh] - * @returns A Polygon representation of the bounding box - */ - function bboxPolygon(bbox: Array): GeoJSON.Feature; - - /** - * Takes two points and finds the geographic bearing between them. - * @param start Starting Point - * @param end Ending point - * @returns Bearing in decimal degrees - */ - function bearing(start: GeoJSON.Feature, end: GeoJSON.Feature): number; - - /** - * Takes a FeatureCollection and returns the absolute center point of all features. - * @param features Input features - * @returns A Point feature at the absolute center point of all input features - */ - function center(features: GeoJSON.FeatureCollection): GeoJSON.Feature; - - /** - * Takes one or more features and calculates the centroid using the arithmetic mean of all vertices. - * This lessens the effect of small islands and artifacts when calculating the centroid of a set of polygons. - * @param features Input features - * @returns The centroid of the input features - */ - function centroid(features: GeoJSON.Feature | GeoJSON.FeatureCollection): GeoJSON.Feature; - - /** - * Takes a Point and calculates the location of a destination point given a distance in degrees, radians, miles, or kilometers; and bearing in degrees. - * This uses the Haversine formula to account for global curvature. - * @param start Starting point - * @param distance Distance from the starting point - * @param bearing Ranging from -180 and 180 - * @param units 'miles', 'kilometers', 'radians', or 'degrees' - * @returns Destination point - */ - function destination(start: GeoJSON.Feature, distance: number, bearing: number, units: string): GeoJSON.Feature; - - /** - * Calculates the distance between two points in degress, radians, miles, or kilometers. - * This uses the Haversine formula to account for global curvature. - * @param from Origin point - * @param to Destination point - * @param [units=kilometers] 'miles', 'kilometers', 'radians', or 'degrees' - * @returns Distance between the two points - */ - function distance(from: GeoJSON.Feature, to: GeoJSON.Feature, units?: string): number; - - /** - * Takes any number of features and returns a rectangular Polygon that encompasses all vertices. - * @param fc Input features - * @returns A rectangular Polygon feature that encompasses all vertices - */ - function envelope(fc: GeoJSON.FeatureCollection): GeoJSON.Feature; - - /** - * Takes a set of features, calculates the extent of all input features, and returns a bounding box. - * @param input Input features - * @returns The bounding box of input given as an array in WSEN order (west, south, east, north) - */ - function extent(input: GeoJSON.Feature | GeoJSON.FeatureCollection): Array; - - /** - * Takes a line and measures its length in the specified units. - * @param line Line to measure - * @param units 'miles', 'kilometers', 'radians', or 'degrees' - * @returns Length of the input line - */ - function lineDistance(line: GeoJSON.Feature, units: string): number; - - /** - * Takes two points and returns a point midway between them. - * @param pt1 First point - * @param pt2 Second point - * @returns A point midway between pt1 and pt2 - */ - function midpoint(pt1: GeoJSON.Feature, pt2: GeoJSON.Feature): GeoJSON.Feature; - - /** - * Takes a feature and returns a Point guaranteed to be on the surface of the feature. Given a Polygon, the point will be in the area of the polygon. - * Given a LineString, the point will be along the string. Given a Point, the point will the same as the input. - * @param input Any feature or set of features - * @returns A point on the surface of input - */ - function pointOnSurface(input: GeoJSON.Feature | GeoJSON.FeatureCollection): GeoJSON.Feature; - - /** - * Takes a bounding box and returns a new bounding box with a size expanded or contracted by a factor of X. - * @param bbox A bounding box - * @param factor The ratio of the new bbox to the input bbox - * @returns The resized bbox - */ - function size(bbox: Array, factor: number): Array; - - /** - * Takes a bounding box and calculates the minimum square bounding box that would contain the input. - * @param bbox A bounding box - * @returns A square surrounding bbox - */ - function square(bbox: Array): Array; - - ////////////////////////////////////////////////////// - // Transformation - ////////////////////////////////////////////////////// - - /** - * Takes a line and returns a curved version by applying a Bezier spline algorithm. - * The bezier spline implementation is by Leszek Rybicki. - * @param line Input LineString - * @param [resolution=10000] Time in milliseconds between points - * @param [sharpness=0.85] A measure of how curvy the path should be between splines - * @returns Curved line - */ - function bezier(line: GeoJSON.Feature, resolution?: number, sharpness?: number): GeoJSON.Feature; - - /** - * Calculates a buffer for input features for a given radius. Units supported are miles, kilometers, and degrees. - * @param feature Input to be buffered - * @param distance Distance to draw the buffer - * @param units 'miles', 'kilometers', 'radians', or 'degrees' - * @returns Buffered features - */ - function buffer(feature: GeoJSON.Feature | GeoJSON.FeatureCollection, distance: number, units: string): GeoJSON.FeatureCollection | GeoJSON.FeatureCollection | GeoJSON.Polygon | GeoJSON.MultiPolygon; - - /** - * Takes a set of points and returns a concave hull polygon. Internally, this implements a Monotone chain algorithm. - * @param points Input points - * @param maxEdge The size of an edge necessary for part of the hull to become concave (in miles) - * @param units Used for maxEdge distance (miles or kilometers) - * @returns A concave hull - */ - function concave(points: GeoJSON.FeatureCollection, maxEdge: number, units: string): GeoJSON.Feature; - - /** - * Takes a set of points and returns a convex hull polygon. Internally this uses the convex-hull module that implements a monotone chain hull. - * @param input Input points - * @returns A convex hull - */ - function convex(input: GeoJSON.FeatureCollection): GeoJSON.Feature; - - /** - * Finds the difference between two polygons by clipping the second polygon from the first. - * @param poly1 Input Polygon feaure - * @param poly2 Polygon feature to difference from poly1 - * @returns A Polygon feature showing the area of poly1 excluding the area of poly2 - */ - function difference(poly1: GeoJSON.Feature, poly2: GeoJSON.Feature): GeoJSON.Feature; - - /** - * Takes two polygons and finds their intersection. - * If they share a border, returns the border; if they don't intersect, returns undefined. - * @param poly1 The first polygon - * @param poly2 The second polygon - * @returns If poly1 and poly2 overlap, returns a Polygon feature representing the area they overlap; - * if poly1 and poly2 do not overlap, returns undefined; - * if poly1 and poly2 share a border, a MultiLineString of the locations where their borders are shared - */ - function intersect(poly1: GeoJSON.Feature, poly2: GeoJSON.Feature): GeoJSON.Feature | typeof undefined; - - /** - * Takes a set of polygons and returns a single merged polygon feature. - * If the input polygon features are not contiguous, this function returns a MultiPolygon feature. - * @param fc Input polygons - * @returns Merged polygon or multipolygon - */ - function merge(fc: GeoJSON.FeatureCollection): GeoJSON.Feature; - - /** - * Takes a LineString or Polygon and returns a simplified version. - * Internally uses simplify-js to perform simplification. - * @param feature Feature to be simplified - * @param tolerance Simplification tolerance - * @param highQuality Whether or not to spend more time to create a higher-quality simplification with a different algorithm - * @returns A simplified feature - */ - function simplify(feature: GeoJSON.Feature | GeoJSON.FeatureCollection | GeoJSON.GeometryCollection, tolerance: number, highQuality: boolean): GeoJSON.Feature | GeoJSON.FeatureCollection | GeoJSON.GeometryCollection; - - /** - * Takes two polygons and returns a combined polygon. - * If the input polygons are not contiguous, this function returns a MultiPolygon feature. - * @param poly1 Input polygon - * @param poly2 Another input polygon - * @returns A combined Polygon or MultiPolygon feature - */ - function union(poly1: GeoJSON.Feature, poly2: GeoJSON.Feature): GeoJSON.Feature; - - ////////////////////////////////////////////////////// - // Misc - ////////////////////////////////////////////////////// - - /** - * Combines a FeatureCollection of Point, LineString, or Polygon features into MultiPoint, MultiLineString, or MultiPolygon features. - * @param fc A FeatureCollection of any type - * @returns A FeatureCollection of corresponding type to input - */ - function combine(fc: GeoJSON.FeatureCollection): GeoJSON.FeatureCollection; - - /** - * Takes a feature or set of features and returns all positions as points. - * @param input Input features - * @returns Points representing the exploded input features - */ - function explode(input: GeoJSON.Feature | GeoJSON.FeatureCollection): GeoJSON.FeatureCollection; - - /** - * Takes input features and flips all of their coordinates from [x, y] to [y, x]. - * @param input Input features - * @returns A feature or set of features of the same type as input with flipped coordinates - */ - function flip(input: GeoJSON.Feature | GeoJSON.FeatureCollection): GeoJSON.Feature | GeoJSON.FeatureCollection; - - /** - * Takes a polygon and returns points at all self-intersections. - * @param polygon Input polygon - * @returns Self-intersections - */ - function kinks(polygon: GeoJSON.Feature): GeoJSON.FeatureCollection; - - /** - * Takes a line, a start Point, and a stop point and returns the line in between those points. - * @param point1 Starting point - * @param point2 Stopping point - * @param line Line to slice - * @returns Sliced line - */ - function lineSlice(point1: GeoJSON.Feature, point2: GeoJSON.Feature, line: GeoJSON.Feature): GeoJSON.Feature; - - /** - * Takes a Point and a LineString and calculates the closest Point on the LineString. - * @param line Line to snap to - * @param point Point to snap from - * @returns Closest point on the line to point - */ - function pointOnLine(line: GeoJSON.Feature, point: GeoJSON.Feature): GeoJSON.Feature; - - ////////////////////////////////////////////////////// - // Helper - ////////////////////////////////////////////////////// - - /** - * Takes one or more Features and creates a FeatureCollection. - * @param features Input features - * @returns A FeatureCollection of input features - */ - function featurecollection(features: Array>): GeoJSON.FeatureCollection; - - /** - * Creates a LineString based on a coordinate array. Properties can be added optionally. - * @param coordinates An array of Positions - * @param [properties] An Object of key-value pairs to add as properties - * @returns A LineString feature - */ - function linestring(coordinates: Array>, properties?: any): GeoJSON.Feature; - - /** - * Takes coordinates and properties (optional) and returns a new Point feature. - * @param coordinates Longitude, latitude position (each in decimal degrees) - * @param [properties] An Object of key-value pairs to add as properties - * @returns A Point feature - */ - function point(coordinates: Array, properties?: any): GeoJSON.Feature; - - /** - * Takes an array of LinearRings and optionally an Object with properties and returns a Polygon feature. - * @param rings An array of LinearRings - * @param [properties] An Object of key-value pairs to add as properties - * @returns A Polygon feature - */ - function polygon(rings: Array>>, properties?: any): GeoJSON.Feature; - - ////////////////////////////////////////////////////// - // Data - ////////////////////////////////////////////////////// - - /** - * Takes a FeatureCollection and filters it by a given property and value. - * @param features Input features - * @param key The property on which to filter - * @param value The value of that property on which to filter - * @returns A filtered collection with only features that match input key and value - */ - function filter(features: GeoJSON.FeatureCollection, key: string, value: string): GeoJSON.FeatureCollection; - - /** - * Generates random GeoJSON data, including Points and Polygons, for testing and experimentation. - * @param [type='point'] Type of features desired: 'points' or 'polygons' - * @param [count=1] How many geometries should be generated. - * @param [options] Options relevant to the feature desired. Can include: - * - A bounding box inside of which geometries are placed. In the case of Point features, they are guaranteed to be within this bounds, while Polygon features have their centroid within the bounds. - * - The number of vertices added to polygon features. Default is 10; - * - The total number of decimal degrees longitude or latitude that a polygon can extent outwards to from its center. Default is 10. - * @returns Generated random features - */ - function random(type?: string, count?: number, options?: {bbox?: Array; num_vertices?: number; max_radial_length?: number;}): GeoJSON.FeatureCollection; - - /** - * Takes a FeatureCollection of any type, a property, and a value and returns a FeatureCollection with features matching that property-value pair removed. - * @param features Set of input features - * @param property The property to remove - * @param value The value to remove - * @returns The resulting FeatureCollection without features that match the property-value pair - */ - function remove(features: GeoJSON.FeatureCollection, property: string, value: string): GeoJSON.FeatureCollection; - - /** - * Takes a FeatureCollection and returns a FeatureCollection with given number of features at random. - * @param features Set of input features - * @param n Number of features to select - * @returns A FeatureCollection with n features - */ - function sample(features: GeoJSON.FeatureCollection, n: number): GeoJSON.FeatureCollection; - - ////////////////////////////////////////////////////// - // Interpolation - ////////////////////////////////////////////////////// - - /** - * Takes a bounding box and a cell size in degrees and returns a FeatureCollection of flat-topped hexagons (Polygon features) aligned in an "odd-q" vertical grid as described in Hexagonal Grids. - * @param bbox Bounding box in [minX, minY, maxX, maxY] order - * @param cellWidth Width of cell in specified units - * @param units Used in calculating cellWidth ('miles' or 'kilometers') - * @returns A hexagonal grid - */ - function hexGrid(bbox: Array, cellWidth: number, units: string): GeoJSON.FeatureCollection; - - /** - * Takes points with z-values and an array of value breaks and generates isolines. - * @param points Input points - * @param z The property name in points from which z-values will be pulled - * @param resolution Resolution of the underlying grid - * @param breaks Where to draw contours - * @returns Isolines - */ - function isolines(points: GeoJSON.FeatureCollection, z: string, resolution: number, breaks: Array): GeoJSON.FeatureCollection; - - /** - * Takes a triangular plane as a Polygon and a Point within that triangle and returns the z-value at that point. - * The Polygon needs to have properties a, b, and c that define the values at its three corners. - * @param interpolatedPoint The Point for which a z-value will be calculated - * @param triangle A Polygon feature with three vertices - * @returns The z-value for interpolatedPoint - */ - function planepoint(interpolatedpoint: GeoJSON.Feature, triangle: GeoJSON.Feature): number; - - /** - * Takes a bounding box and a cell depth and returns a set of points in a grid. - * @param extent Extent in [minX, minY, maxX, maxY] order - * @param cellWidth The distance across each cell - * @param units Used in calculating cellWidth ('miles' or 'kilometers') - * @returns Grid of points - */ - function pointGrid(extent: Array, cellWidth: number, units: string): GeoJSON.FeatureCollection; - - /** - * Takes a bounding box and a cell depth and returns a set of square polygons in a grid. - * @param extent Extent in [minX, minY, maxX, maxY] order - * @param cellWidth Width of each cell - * @param units Used in calculating cellWidth ('miles' or 'kilometers') - * @returns Grid of polygons - */ - function squareGrid(extent: Array, cellWidth: number, units: string): GeoJSON.FeatureCollection; - - /** - * Takes a set of points and the name of a z-value property and creates a Triangulated Irregular Network, or a TIN for short, returned as a collection of Polygons. - * These are often used for developing elevation contour maps or stepped heat visualizations. - * This triangulates the points, as well as adds properties called a, b, and c representing the value of the given propertyName at each of the points that represent the corners of the triangle. - * @param points Input points - * @param [propertyName] Name of the property from which to pull z values This is optional: if not given, then there will be no extra data added to the derived triangles. - * @returns TIN output - */ - function tin(points: GeoJSON.FeatureCollection, propertyName?: string): GeoJSON.FeatureCollection; - - /** - * Takes a bounding box and a cell depth and returns a set of triangular polygons in a grid. - * @param extent Extent in [minX, minY, maxX, maxY] order - * @param cellWidth Width of each cell - * @param units Used in calculating cellWidth ('miles' or 'kilometers') - * @returns Grid of triangles - */ - function triangleGrid(extent: Array, cellWidth: number, units: string): GeoJSON.FeatureCollection; - - ////////////////////////////////////////////////////// - // Joins - ////////////////////////////////////////////////////// - - /** - * Takes a Point and a Polygon or MultiPolygon and determines if the point resides inside the polygon. - * The polygon can be convex or concave. The function accounts for holes. - * @param point Input point - * @param polygon Input polygon or multipolygon - * @returns true if the Point is inside the Polygon; false if the Point is not inside the Polygon - */ - function inside(point: GeoJSON.Feature, polygon: GeoJSON.Feature): boolean; - - /** - * Takes a set of points and a set of polygons and performs a spatial join. - * @param points Input points - * @param polygons Input polygons - * @param polyId Property in polygons to add to joined Point features - * @param containingPolyId Property in points in which to store joined property from polygons - * @returns Points with containingPolyId property containing values from polyId - */ - function tag(points: GeoJSON.FeatureCollection, polygons: GeoJSON.FeatureCollection, polyId: string, containingPolyId: string): GeoJSON.FeatureCollection; - - /** - * Takes a set of points and a set of polygons and returns the points that fall within the polygons. - * @param points Input points - * @param polygons Input polygons - * @returns Points that land within at least one polygon - */ - function within(points: GeoJSON.FeatureCollection, polygons: GeoJSON.FeatureCollection): GeoJSON.FeatureCollection; - - ////////////////////////////////////////////////////// - // Classification - ////////////////////////////////////////////////////// - - /** - * Takes a set of features and returns an array of the Jenks Natural breaks for a given property. - * @param input Input features - * @param field The property in input on which to calculate Jenks natural breaks - * @param numberOfBreaks Number of classes in which to group the data - * @returns The break number for each class plus the minimum and maximum values - */ - function jenks(input: GeoJSON.FeatureCollection, field: string, numberOfBreaks: number): Array; - - /** - * Takes a reference point and a set of points and returns the point from the set closest to the reference. - * @param point The reference point - * @param against Input point set - * @returns The closest point in the set to the reference point - */ - function nearest(point: GeoJSON.Feature, against: GeoJSON.FeatureCollection): GeoJSON.Feature; - - /** - * Takes a FeatureCollection, a property name, and a set of percentiles and returns a quantile array. - * @param input Set of features - * @param field The property in input from which to retrieve quantile values - * @param percentiles An Array of percentiles on which to calculate quantile values - * @returns An array of the break values - */ - function quantile(input: GeoJSON.FeatureCollection, field: string, percentiles: Array): Array; - - /** - * Takes a FeatureCollection, an input field, an output field, and an array of translations and outputs an identical FeatureCollection with the output field property populated. - * @param input Set of input features - * @param inField The field to translate - * @param outField The field in which to store translated results - * @param translations An array of translations - * @returns A FeatureCollection with identical geometries to input but with outField populated. - */ - function reclass(input: GeoJSON.FeatureCollection, inField: string, outField: string, translations: Array): GeoJSON.FeatureCollection; -} - -declare module 'turf' { - export= turf; -} diff --git a/types/turf/v2/tsconfig.json b/types/turf/v2/tsconfig.json deleted file mode 100644 index ce4a40bcfa..0000000000 --- a/types/turf/v2/tsconfig.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "compilerOptions": { - "module": "commonjs", - "lib": [ - "es6" - ], - "noImplicitAny": true, - "noImplicitThis": true, - "strictNullChecks": false, - "strictFunctionTypes": true, - "baseUrl": "../../", - "typeRoots": [ - "../../" - ], - "types": [], - "paths": { - "turf": [ - "turf/v2" - ] - }, - "noEmit": true, - "forceConsistentCasingInFileNames": true - }, - "files": [ - "index.d.ts", - "turf-tests.ts" - ] -} \ No newline at end of file diff --git a/types/turf/v2/turf-tests.ts b/types/turf/v2/turf-tests.ts deleted file mode 100644 index 22e36aa4ec..0000000000 --- a/types/turf/v2/turf-tests.ts +++ /dev/null @@ -1,520 +0,0 @@ -/////////////////////////////////////////// -// Tests data initialisation -/////////////////////////////////////////// - -var point1: GeoJSON.Feature = { - "type": "Feature", - "properties": {}, - "geometry": { - "type": "Point", - "coordinates": [-75.343, 39.984] - } -}; - -var point2: GeoJSON.Feature = { - "type": "Feature", - "properties": {}, - "geometry": { - "type": "Point", - "coordinates": [-75.534, 39.123] - } -}; - -var line: GeoJSON.Feature = { - "type": "Feature", - "properties": {}, - "geometry": { - "type": "LineString", - "coordinates": [ - [-77.031669, 38.878605], - [-77.029609, 38.881946], - [-77.020339, 38.884084], - [-77.025661, 38.885821], - [-77.021884, 38.889563], - [-77.019824, 38.892368] - ] - } -}; - -var polygons: GeoJSON.FeatureCollection = { - "type": "FeatureCollection", - "features": [ - { - "type": "Feature", - "properties": {}, - "geometry": { - "type": "Polygon", - "coordinates": [[ - [-67.031021, 10.458102], - [-67.031021, 10.53372], - [-66.929397, 10.53372], - [-66.929397, 10.458102], - [-67.031021, 10.458102] - ]] - } - }, { - "type": "Feature", - "properties": {}, - "geometry": { - "type": "Polygon", - "coordinates": [[ - [-66.919784, 10.397325], - [-66.919784, 10.513467], - [-66.805114, 10.513467], - [-66.805114, 10.397325], - [-66.919784, 10.397325] - ]] - } - } - ] -}; - -var polygon1: GeoJSON.Feature = { - "type": "Feature", - "properties": {}, - "geometry": { - "type": "Polygon", - "coordinates": [[ - [105.818939,21.004714], - [105.818939,21.061754], - [105.890007,21.061754], - [105.890007,21.004714], - [105.818939,21.004714] - ]] - } -}; - -var polygon2: GeoJSON.Feature = { - "type": "Feature", - "properties": { - "fill": "#00f" - }, - "geometry": { - "type": "Polygon", - "coordinates": [[ - [-122.520217, 45.535693], - [-122.64038, 45.553967], - [-122.720031, 45.526554], - [-122.669906, 45.507309], - [-122.723464, 45.446643], - [-122.532577, 45.408574], - [-122.487258, 45.477466], - [-122.520217, 45.535693] - ]] - } -} - -var features: GeoJSON.FeatureCollection = { - "type": "FeatureCollection", - "features": [ - { - "type": "Feature", - "properties": {}, - "geometry": { - "type": "Point", - "coordinates": [-97.522259, 35.4691] - } - }, { - "type": "Feature", - "properties": {}, - "geometry": { - "type": "Point", - "coordinates": [-97.502754, 35.463455] - } - }, { - "type": "Feature", - "properties": {}, - "geometry": { - "type": "Point", - "coordinates": [-97.508269, 35.463245] - } - }, { - "type": "Feature", - "properties": {}, - "geometry": { - "type": "Point", - "coordinates": [-97.516809, 35.465779] - } - }, { - "type": "Feature", - "properties": {}, - "geometry": { - "type": "Point", - "coordinates": [-97.515372, 35.467072] - } - }, { - "type": "Feature", - "properties": {}, - "geometry": { - "type": "Point", - "coordinates": [-97.509363, 35.463053] - } - }, { - "type": "Feature", - "properties": {}, - "geometry": { - "type": "Point", - "coordinates": [-97.511123, 35.466601] - } - }, { - "type": "Feature", - "properties": {}, - "geometry": { - "type": "Point", - "coordinates": [-97.518547, 35.469327] - } - }, { - "type": "Feature", - "properties": {}, - "geometry": { - "type": "Point", - "coordinates": [-97.519706, 35.469659] - } - }, { - "type": "Feature", - "properties": {}, - "geometry": { - "type": "Point", - "coordinates": [-97.517839, 35.466998] - } - }, { - "type": "Feature", - "properties": {}, - "geometry": { - "type": "Point", - "coordinates": [-97.508678, 35.464942] - } - }, { - "type": "Feature", - "properties": {}, - "geometry": { - "type": "Point", - "coordinates": [-97.514914, 35.463453] - } - } - ] -}; - -var triangle: GeoJSON.Feature = { - "type": "Feature", - "properties": { - "a": 11, - "b": 122, - "c": 44 - }, - "geometry": { - "type": "Polygon", - "coordinates": [[ - [-75.1221, 39.57], - [-75.58, 39.18], - [-75.97, 39.86], - [-75.1221, 39.57] - ]] - } -}; - -var aggregations = [ - { - aggregation: 'sum', - inField: 'population', - outField: 'pop_sum' - }, - { - aggregation: 'average', - inField: 'population', - outField: 'pop_avg' - }, - { - aggregation: 'median', - inField: 'population', - outField: 'pop_median' - }, - { - aggregation: 'min', - inField: 'population', - outField: 'pop_min' - }, - { - aggregation: 'max', - inField: 'population', - outField: 'pop_max' - }, - { - aggregation: 'deviation', - inField: 'population', - outField: 'pop_deviation' - }, - { - aggregation: 'variance', - inField: 'population', - outField: 'pop_variance' - }, - { - aggregation: 'count', - inField: '', - outField: 'point_count' - } -]; - -/////////////////////////////////////////// -// Tests Aggregation -/////////////////////////////////////////// - -// -- Test aggregate -- -var aggregated = turf.aggregate(polygons, points, aggregations); - -// -- Test average -- -var averaged = turf.average(polygons, points, 'population', 'pop_avg'); - -// -- Test count -- -var counted = turf.count(polygons, points, 'pt_count'); - -// -- Test deviation -- -var deviated = turf.deviation(polygons, points, 'population', 'pop_deviation'); - -// -- Test max -- -var aggregated = turf.max(polygons, points, 'population', 'max'); - -// -- Test median -- -var medians = turf.median(polygons, points, 'population', 'median'); - -// -- Test min -- -var minimums = turf.min(polygons, points, 'population', 'min'); - -// -- Test sum -- -var summed = turf.sum(polygons, points, 'population', 'sum'); - -// -- Test variance -- -var varianced = turf.variance(polygons, points, 'population', 'variance'); - -/////////////////////////////////////////// -// Tests Measurement -/////////////////////////////////////////// - -// -- Test along -- -var along = turf.along(line, 1, 'miles'); - -// -- Test area -- -var area = turf.area(polygons); - -// -- Test bboxPolygon -- -var bbox = [0, 0, 10, 10]; -var poly = turf.bboxPolygon(bbox); - -// -- Test bearing -- -var bearing = turf.bearing(point1, point2); - -// -- Test center -var centerPt = turf.center(features); - -// -- Test centroid -- -var centroidPt = turf.centroid(polygon1); - -// -- Test destination -- -var distance = 50; -var bearing = 90; -var units = 'miles'; -var destination = turf.destination(point1, distance, bearing, units); - -// -- Test distance -- -var units = "miles"; -var distance = turf.distance(point1, point2, units); - -// -- Test envelope -- -var enveloped = turf.envelope(polygons); - -// -- Test extent -- -var bbox = turf.extent(polygons); - -// -- Test lineDistance -var length = turf.lineDistance(line, 'miles'); - -// -- Test midpoint -- -var midpointed = turf.midpoint(point1, point2); - -// -- Test pointOnSurface -- -var pointOnPolygon = turf.pointOnSurface(polygon1); - -// -- Test size -- -var resized = turf.size(bbox, 2); - -// -- Test square -- -var squared = turf.square(bbox); - -/////////////////////////////////////////// -// Tests Transformation -/////////////////////////////////////////// - -// -- Test bezier -- -var curved = turf.bezier(line); - -// -- Test buffer -- -var buffered = turf.buffer(point1, 500, units); - -// -- Test concave -- -var hull = turf.concave(features, 1, 'miles'); - -// -- Test convex -- -var hull = turf.convex(features); - -// -- Test difference -- -var differenced = turf.difference(polygon1, polygon2); - -// -- Test intersect -- -var intersection = turf.intersect(polygon1, polygon2); - -// -- Test merge -- -var merged = turf.merge(polygons); - -// -- Test simplify -- -var tolerance = 0.01; -var simplified = turf.simplify(polygon1, tolerance, false); - -// -- Test union -- -var union = turf.union(polygon1, polygon2); - -/////////////////////////////////////////// -// Tests Misc -/////////////////////////////////////////// - -// -- Test combine -- -var combined = turf.combine(features); - -// -- Test explode -- -var points = turf.explode(polygon1); - -// -- Test flip -- -var flipedPoint = turf.flip(point1); - -// -- Test kinks -- -var kinks = turf.kinks(polygon1); - -// -- Test lineSlice -- -var sliced = turf.lineSlice(point1, point2, line); - -// -- Test pointOnLine -- -var snapped = turf.pointOnLine(line, point1); - -/////////////////////////////////////////// -// Tests Helper -/////////////////////////////////////////// - -// -- Test featurecollection -- -var fc = turf.featurecollection([point1, point2]); - -// -- Test linestring -- -var linestring1 = turf.linestring([ - [-21.964416, 64.148203], - [-21.956176, 64.141316], - [-21.93901, 64.135924], - [-21.927337, 64.136673] -]); -var linestring2 = turf.linestring([ - [-21.929054, 64.127985], - [-21.912918, 64.134726], - [-21.916007, 64.141016], - [-21.930084, 64.14446] -], {name: 'line 1', distance: 145}); - -// -- Test point -- -var pt1 = turf.point([-75.343, 39.984]); -var pt2 = turf.point([-75.343, 39.984], {name: 'point 1', distance: 145}); - -// -- Test polygon -- -var polygon = turf.polygon([[ - [-2.275543, 53.464547], - [-2.275543, 53.489271], - [-2.215118, 53.489271], - [-2.215118, 53.464547], - [-2.275543, 53.464547] -]], { name: 'poly1', population: 400}); - -/////////////////////////////////////////// -// Tests Data -/////////////////////////////////////////// - -// -- Test filter -- -var key = "species"; -var value = "oak"; -var filtered = turf.filter(features, key, value); - -// -- Test random -- -var randomPoints = turf.random('points', 100, { - bbox: [-70, 40, -60, 60] -}); - -var randomPoints = turf.random('points', 100, { - bbox: [-70, 40, -60, 60], - num_vertices: 2, - max_radial_length: 10 -}); - -// -- Test remove -- -var filtered = turf.remove(points, 'marker-color', '#00f'); - -// -- Test sample -- -var randomPoints = turf.random('points', 1000); -var sample = turf.sample(points, 10); - -/////////////////////////////////////////// -// Tests Interpolation -/////////////////////////////////////////// - -// -- Test hexGrid -- -var cellWidth = 50; -var hexgrid = turf.hexGrid(bbox, cellWidth, units); - -// -- Test isolines -- -var breaks = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10]; -var isolined = turf.isolines(points, 'z', 15, breaks); - -// -- Test planepoint -- -var zValue = turf.planepoint(point1, triangle); - -// -- Test pointGrid -- -var extent = [-70.823364, -33.553984, -70.473175, -33.302986]; -var cellWidth = 3; -var grid = turf.pointGrid(extent, cellWidth, units); - -// -- Test squareGrid -- -var squareGrid = turf.squareGrid(extent, cellWidth, units); - -// -- Test tin -- -var tin = turf.tin(points, 'z'); - -// -- Test triangleGrid -- -var triangleGrid = turf.triangleGrid(extent, cellWidth, units); - -/////////////////////////////////////////// -// Tests Joins -/////////////////////////////////////////// - -// -- Test inside -- -var isInside1 = turf.inside(point1, polygon); - -// -- Test tag -- -var tagged = turf.tag(points, triangleGrid, 'fill', 'marker-color'); - -// -- Test within -- -var ptsWithin = turf.within(points, polygons); - -/////////////////////////////////////////// -// Tests Classification -/////////////////////////////////////////// - -// -- Test jenks -- -var breaks = turf.jenks(points, 'population', 3); - -// -- Test nearest -- -var nearest = turf.nearest(point1, points); - -// -- Test quantile -- -var breaks = turf.quantile(points, 'population', [25, 50, 75, 99]); - -// -- Test reclass -- -var translations = [ - [0, 200, "small"], - [200, 400, "medium"], - [400, 600, "large"] -]; -var reclassed = turf.reclass(points, 'population', 'size', translations); From 32f35a9cc130737a8f90bb6b0bab5e86b0373396 Mon Sep 17 00:00:00 2001 From: Harry Date: Mon, 16 Oct 2017 21:15:03 +0100 Subject: [PATCH 089/506] Allow "Element" type for masonry element selector (#20473) --- types/masonry-layout/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/masonry-layout/index.d.ts b/types/masonry-layout/index.d.ts index 212baa2471..a771b423e5 100644 --- a/types/masonry-layout/index.d.ts +++ b/types/masonry-layout/index.d.ts @@ -10,7 +10,7 @@ export = Masonry; declare class Masonry { constructor(options?: Masonry.Options); - constructor(selector: string, options?: Masonry.Options); + constructor(selector: string | Element, options?: Masonry.Options); masonry?(): void; masonry?(eventName: string, listener: any): void; From 547c7fd61085af39f09617921a9be5659e6b1f0a Mon Sep 17 00:00:00 2001 From: "Robert K. Bell" Date: Tue, 17 Oct 2017 07:15:22 +1100 Subject: [PATCH 090/506] [types/node] Add `final` option to Stream WritableOptions (#20477) * fix: add `final` option for WritableStreams * fix: use more accurate type for `final()` * typo: whitespace * test: add `final` option as documented here: https://nodejs.org/docs/latest/api/stream.html#stream_constructor_new_stream_writable_options * fix: cb is mandatory, error is optional --- types/node/index.d.ts | 1 + types/node/node-tests.ts | 3 +++ 2 files changed, 4 insertions(+) diff --git a/types/node/index.d.ts b/types/node/index.d.ts index 0806b4dafb..e259ae44e3 100644 --- a/types/node/index.d.ts +++ b/types/node/index.d.ts @@ -5147,6 +5147,7 @@ declare module "stream" { write?: (chunk: string | Buffer, encoding: string, callback: Function) => any; writev?: (chunks: Array<{ chunk: string | Buffer, encoding: string }>, callback: Function) => any; destroy?: (error?: Error) => any; + final?: (callback: (error?: Error) => void) => void; } export class Writable extends Stream implements NodeJS.WritableStream { diff --git a/types/node/node-tests.ts b/types/node/node-tests.ts index 21151ea7cc..6788b83ea6 100644 --- a/types/node/node-tests.ts +++ b/types/node/node-tests.ts @@ -825,6 +825,9 @@ function simplified_stream_ctor_test() { }, destroy(error) { error.stack; + }, + final(cb) { + cb(null); } }); From ea8b7af8c6b87f37396342ade7cfd4c5298ac6f6 Mon Sep 17 00:00:00 2001 From: kazuyamamoto Date: Tue, 17 Oct 2017 05:16:08 +0900 Subject: [PATCH 091/506] [node] Add tls.getCiphers() and tls.DEFAULT_ECDH_CURVE (#20482) https://nodejs.org/api/tls.html#tls_tls_getciphers https://nodejs.org/api/tls.html#tls_tls_default_ecdh_curve --- types/node/index.d.ts | 3 +++ types/node/node-tests.ts | 3 +++ 2 files changed, 6 insertions(+) diff --git a/types/node/index.d.ts b/types/node/index.d.ts index e259ae44e3..923a3802ae 100644 --- a/types/node/index.d.ts +++ b/types/node/index.d.ts @@ -4882,6 +4882,9 @@ declare module "tls" { export function connect(port: number, options?: ConnectionOptions, secureConnectListener?: () => void): TLSSocket; export function createSecurePair(credentials?: crypto.Credentials, isServer?: boolean, requestCert?: boolean, rejectUnauthorized?: boolean): SecurePair; export function createSecureContext(details: SecureContextOptions): SecureContext; + export function getCiphers(): string[]; + + export var DEFAULT_ECDH_CURVE: string; } declare module "crypto" { diff --git a/types/node/node-tests.ts b/types/node/node-tests.ts index 6788b83ea6..50d9659744 100644 --- a/types/node/node-tests.ts +++ b/types/node/node-tests.ts @@ -979,6 +979,9 @@ namespace tls_tests { port: 55 }; var tlsSocket = tls.connect(connOpts); + + const ciphers: string[] = tls.getCiphers(); + const curve: string = tls.DEFAULT_ECDH_CURVE; } { From 77f13a18d67f53ea04d03f49a0a095aa420512d2 Mon Sep 17 00:00:00 2001 From: Jaye Date: Mon, 16 Oct 2017 22:16:33 +0200 Subject: [PATCH 092/506] [croppie] add missing type property for croppie 2.5 (#20484) --- types/croppie/index.d.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/types/croppie/index.d.ts b/types/croppie/index.d.ts index 78ab07ad61..ec4626aa7f 100644 --- a/types/croppie/index.d.ts +++ b/types/croppie/index.d.ts @@ -1,6 +1,7 @@ -// Type definitions for croppie 2.4 +// Type definitions for croppie 2.5 // Project: https://github.com/Foliotek/Croppie // Definitions by: Connor Peet +// dklmuc // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped export default class Croppie { @@ -31,7 +32,10 @@ export type CropType = 'square' | 'circle'; export type Format = 'jpeg' | 'png' | 'webp'; +export type Type = 'canvas' | 'base64' | 'html' | 'blob' | 'rawcanvas'; + export interface ResultOptions { + type?: Type; size?: 'viewport' | 'original' | { width: number, height: number }; format?: Format; quality?: number; From 016a82b4ebf187c78cd71b911a2f0de236caef3f Mon Sep 17 00:00:00 2001 From: Benoit V Date: Mon, 16 Oct 2017 22:19:44 +0200 Subject: [PATCH 093/506] Update index.d.ts (#20499) Reference: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a Broken by: https://github.com/DefinitelyTyped/DefinitelyTyped/commit/a24aee6125213ba20a5bda15a5d4fce8b60b2f57 React documentation for the supported "type" attribute: https://reactjs.org/docs/dom-elements.html --- types/react/index.d.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/types/react/index.d.ts b/types/react/index.d.ts index 62f1c6c151..864820aa63 100644 --- a/types/react/index.d.ts +++ b/types/react/index.d.ts @@ -2578,6 +2578,7 @@ declare namespace React { media?: string; rel?: string; target?: string; + type?: string; } // tslint:disable-next-line:no-empty-interface From 63e621265afc0c52468adb22ef0c194e03ff93c6 Mon Sep 17 00:00:00 2001 From: Karol Janyst Date: Tue, 17 Oct 2017 05:26:47 +0900 Subject: [PATCH 094/506] Update redux-saga-routines definitions (#20513) * Add definitions for redux-saga-routines * Make payload parameter optional, add test for routine --- types/redux-saga-routines/index.d.ts | 4 ++-- .../redux-saga-routines-tests.tsx | 16 ++++++++++++++++ 2 files changed, 18 insertions(+), 2 deletions(-) diff --git a/types/redux-saga-routines/index.d.ts b/types/redux-saga-routines/index.d.ts index d01e5edddf..7682fd30c1 100644 --- a/types/redux-saga-routines/index.d.ts +++ b/types/redux-saga-routines/index.d.ts @@ -10,10 +10,10 @@ import { FormSubmitHandler } from "redux-form"; export const ROUTINE_PROMISE_ACTION: string; export interface RoutineAction extends Action { - payload: T; + payload?: T; } -export type RoutineActionCreator = (payload: T) => RoutineAction; +export type RoutineActionCreator = (payload?: T) => RoutineAction; export interface ReduxRoutine { TRIGGER: string; diff --git a/types/redux-saga-routines/redux-saga-routines-tests.tsx b/types/redux-saga-routines/redux-saga-routines-tests.tsx index 4cf2a62c4a..4717750166 100644 --- a/types/redux-saga-routines/redux-saga-routines-tests.tsx +++ b/types/redux-saga-routines/redux-saga-routines-tests.tsx @@ -15,6 +15,22 @@ sagaMiddleware.run(routinePromiseWatcherSaga); const submitFormRoutine = createRoutine("SUBMIT_MY_FORM"); const submitFormHandler = bindRoutineToReduxForm(submitFormRoutine); +submitFormRoutine.TRIGGER; +submitFormRoutine.REQUEST; +submitFormRoutine.SUCCESS; +submitFormRoutine.FAILURE; +submitFormRoutine.FULFILL; +submitFormRoutine.trigger(); +submitFormRoutine.trigger("test"); +submitFormRoutine.request(); +submitFormRoutine.request("test"); +submitFormRoutine.success(); +submitFormRoutine.success("test"); +submitFormRoutine.failure(); +submitFormRoutine.failure("test"); +submitFormRoutine.fulfill(); +submitFormRoutine.fulfill("test"); + const Test = reduxForm({ form : "test" })( From 352c9814fbb63725e3bbc5dd7c7f0b8eed6aff06 Mon Sep 17 00:00:00 2001 From: Ivan Jiang Date: Mon, 16 Oct 2017 15:27:21 -0500 Subject: [PATCH 095/506] Add missing `transformErrors` definition (#20514) --- types/react-jsonschema-form/index.d.ts | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/types/react-jsonschema-form/index.d.ts b/types/react-jsonschema-form/index.d.ts index e4120ecf59..808661cb18 100644 --- a/types/react-jsonschema-form/index.d.ts +++ b/types/react-jsonschema-form/index.d.ts @@ -1,6 +1,8 @@ -// Type definitions for react-jsonschema-form 0.43.0 +// Type definitions for react-jsonschema-form 0.51.0 // Project: https://github.com/mozilla-services/react-jsonschema-form -// Definitions by: Dan Fox , Jon Surrell +// Definitions by: Dan Fox +// Jon Surrell +// Ivan Jiang // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 @@ -23,6 +25,7 @@ declare module "react-jsonschema-form" { liveValidate?: boolean; safeRenderCompletion?: boolean; FieldTemplate?: any; + transformErrors?: (errors: any) => any; } export interface IChangeEvent { @@ -34,5 +37,5 @@ declare module "react-jsonschema-form" { status: string; } - export default class Form extends React.Component {} + export default class Form extends React.Component { } } From 6980b9ff25aa57a8b21c4ff84618ea72401ba120 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Richard=20Jedli=C4=8Dka?= Date: Mon, 16 Oct 2017 22:38:21 +0200 Subject: [PATCH 096/506] [meteor] Fix meteor/ejson/EJSONableCustomType (#20523) Fixing commit 7031c869bb0d219864cdede602b2d4b2284c695e In referenced commit the `clone` and `equal` methods in EJSONableCustomType was marked as optional but forgot to update the corresponding interface in `declare module "meteor/ejson"` section. --- types/meteor/ejson.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/types/meteor/ejson.d.ts b/types/meteor/ejson.d.ts index 3ea090a7d2..aa5cd0f5f9 100644 --- a/types/meteor/ejson.d.ts +++ b/types/meteor/ejson.d.ts @@ -38,8 +38,8 @@ declare module EJSON { declare module "meteor/ejson" { interface EJSONableCustomType { - clone(): EJSONableCustomType; - equals(other: Object): boolean; + clone?(): EJSONableCustomType; + equals?(other: Object): boolean; toJSONValue(): JSONable; typeName(): string; } From e9c47be75e73f88263fef3b0db1370722bff468f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Val=C3=A9rian=20Galliat?= Date: Mon, 16 Oct 2017 16:38:41 -0400 Subject: [PATCH 097/506] request: response request always have an URI (#20526) --- types/request/index.d.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/types/request/index.d.ts b/types/request/index.d.ts index 10197579ac..080ec7cde2 100644 --- a/types/request/index.d.ts +++ b/types/request/index.d.ts @@ -177,8 +177,12 @@ declare namespace request { (error: any, response: RequestResponse, body: any): void; } + export type ResponseRequest = CoreOptions & { + uri: Url; + } + export interface RequestResponse extends http.IncomingMessage { - request: Options; + request: ResponseRequest; body: any; timingStart?: number; timings?: { From 99064aa7c7e82e17642e0e53785b7fd64baf6477 Mon Sep 17 00:00:00 2001 From: Jinwoo Lee Date: Mon, 16 Oct 2017 13:39:23 -0700 Subject: [PATCH 098/506] Add types for Writable#_writev() & Duplex#_writev(). (#20529) * Add types for Writable#_writev() & Duplex#_writev(). As written in the doc: https://nodejs.org/dist/latest-v8.x/docs/api/stream.html#stream_writable_writev_chunks_callback * change `callback` from `Function` to `(err?: Error) => void` * make _writev() optional. Per the node document, it may or may not be implemented by implementations. --- types/node/index.d.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/types/node/index.d.ts b/types/node/index.d.ts index 923a3802ae..7fad343da0 100644 --- a/types/node/index.d.ts +++ b/types/node/index.d.ts @@ -5156,7 +5156,8 @@ declare module "stream" { export class Writable extends Stream implements NodeJS.WritableStream { writable: boolean; constructor(opts?: WritableOptions); - _write(chunk: any, encoding: string, callback: Function): void; + _write(chunk: any, encoding: string, callback: (err?: Error) => void): void; + _writev?(chunks: Array<{chunk: any, encoding: string}>, callback: (err?: Error) => void): void; _destroy(err: Error, callback: Function): void; _final(callback: Function): void; write(chunk: any, cb?: Function): boolean; @@ -5246,7 +5247,8 @@ declare module "stream" { export class Duplex extends Readable implements Writable { writable: boolean; constructor(opts?: DuplexOptions); - _write(chunk: any, encoding: string, callback: Function): void; + _write(chunk: any, encoding: string, callback: (err?: Error) => void): void; + _writev?(chunks: Array<{chunk: any, encoding: string}>, callback: (err?: Error) => void): void; _destroy(err: Error, callback: Function): void; _final(callback: Function): void; write(chunk: any, cb?: Function): boolean; From 2d02d74ac723fb66689bbb5451b0690f9db4c1f4 Mon Sep 17 00:00:00 2001 From: Maarten van Vliet Date: Mon, 16 Oct 2017 22:40:25 +0200 Subject: [PATCH 099/506] @types/gm Use union types instead of overloaded functions (#20530) * Turn on unifiable signatures tslint rule * Use union types in favor of overloaded functions * Add myself to definitions editors field --- types/gm/index.d.ts | 588 +++++++++++++++++++++---------------------- types/gm/tslint.json | 6 +- 2 files changed, 285 insertions(+), 309 deletions(-) diff --git a/types/gm/index.d.ts b/types/gm/index.d.ts index 2cba86936d..0670f0ae0f 100644 --- a/types/gm/index.d.ts +++ b/types/gm/index.d.ts @@ -1,15 +1,13 @@ // Type definitions for gm 1.17 // Project: https://github.com/aheckmann/gm -// Definitions by: Joel Spadin +// Definitions by: Joel Spadin , Maarten van Vliet // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// import stream = require('stream'); -declare function m(image: string): m.State; -declare function m(stream: NodeJS.ReadableStream, image?: string): m.State; -declare function m(buffer: Buffer, image?: string): m.State; +declare function m(stream: NodeJS.ReadableStream | Buffer | string, image?: string): m.State; declare function m(width: number, height: number, color?: string): m.State; declare namespace m { @@ -27,7 +25,7 @@ declare namespace m { interface CompareOptions { file?: string; highlightColor?: string; - highlightStyle?: string; + highlightStyle?: HighlightStyle; tolerance?: number; } @@ -108,78 +106,17 @@ declare namespace m { border(width: number, height: number): State; borderColor(color: string): State; box(color: string): State; - channel(type: 'Red'): State; - channel(type: 'Green'): State; - channel(type: 'Blue'): State; - channel(type: 'Opacity'): State; - channel(type: 'Matte'): State; - channel(type: 'Cyan'): State; - channel(type: 'Magenta'): State; - channel(type: 'Yellow'): State; - channel(type: 'Black'): State; - channel(type: 'Gray'): State; - channel(type: string): State; + channel(type: NamedColor | string): State; charcoal(factor: number): State; chop(width: number, height: number, x?: number, y?: number): State; clip(): State; coalesce(): State; colorize(red: number, green: number, blue: number): State; - colorMap(type: 'shared'): State; - colorMap(type: 'private'): State; - colorMap(type: string): State; + colorMap(type: 'shared' | 'private' | string): State; colors(colors: number): State; - colorspace(space: 'CineonLog'): State; - colorspace(space: 'CMYK'): State; - colorspace(space: 'GRAY'): State; - colorspace(space: 'HSL'): State; - colorspace(space: 'HSB'): State; - colorspace(space: 'OHTA'): State; - colorspace(space: 'RGB'): State; - colorspace(space: 'Rec601Luma'): State; - colorspace(space: 'Rec709Luma'): State; - colorspace(space: 'Rec601YCbCr'): State; - colorspace(space: 'Rec709YCbCr'): State; - colorspace(space: 'Transparent'): State; - colorspace(space: 'XYZ'): State; - colorspace(space: 'YCbCr'): State; - colorspace(space: 'YIQ'): State; - colorspace(space: 'YPbPr'): State; - colorspace(space: 'YUV'): State; - colorspace(space: string): State; - compose(operator: 'Over'): State; - compose(operator: 'In'): State; - compose(operator: 'Out'): State; - compose(operator: 'Atop'): State; - compose(operator: 'Xor'): State; - compose(operator: 'Plus'): State; - compose(operator: 'Minus'): State; - compose(operator: 'Add'): State; - compose(operator: 'Subtract'): State; - compose(operator: 'Difference'): State; - compose(operator: 'Divide'): State; - compose(operator: 'Multiply'): State; - compose(operator: 'Bumpmap'): State; - compose(operator: 'Copy'): State; - compose(operator: 'CopyRed'): State; - compose(operator: 'CopyGreen'): State; - compose(operator: 'CopyBlue'): State; - compose(operator: 'CopyOpacity'): State; - compose(operator: 'CopyCyan'): State; - compose(operator: 'CopyMagenta'): State; - compose(operator: 'CopyYellow'): State; - compose(operator: 'CopyBlack'): State; - compose(operator: string): State; - compress(type: 'None'): State; - compress(type: 'BZip'): State; - compress(type: 'Fax'): State; - compress(type: 'Group4'): State; - compress(type: 'JPEG'): State; - compress(type: 'Lossless'): State; - compress(type: 'LZW'): State; - compress(type: 'RLE'): State; - compress(type: 'Zip'): State; - compress(type: 'LZMA'): State; - compress(type: string): State; + colorspace(space: ColorSpace | string): State; + compose(operator: ComposeOperator | string): State; + compress(type: CompressionType | string): State; contrast(multiplier: number): State; convolve(kernel: string): State; createDirectories(): State; @@ -192,52 +129,18 @@ declare namespace m { despeckle(): State; displace(horizontal: number, vertical: number): State; display(xServer: string): State; - dispose(method: 'Undefined'): State; - dispose(method: 'None'): State; - dispose(method: 'Background'): State; - dispose(method: 'Previous'): State; - dispose(method: string): State; + dispose(method: DisposeMethod | string): State; dissolve(percent: number): State; dither(enable?: boolean): State; edge(radius?: number): State; emboss(radius?: number): State; - encoding(encoding: 'AdobeCustom'): State; - encoding(encoding: 'AdobeExpert'): State; - encoding(encoding: 'AdobeStandard'): State; - encoding(encoding: 'AppleRoman'): State; - encoding(encoding: 'BIG5'): State; - encoding(encoding: 'GB2312'): State; - encoding(encoding: 'Latin 2'): State; - encoding(encoding: 'None'): State; - encoding(encoding: 'SJIScode'): State; - encoding(encoding: 'Symbol'): State; - encoding(encoding: 'Unicode'): State; - encoding(encoding: 'Wansung'): State; - encoding(encoding: string): State; - endian(type: 'MSB'): State; - endian(type: 'LSB'): State; - endian(type: 'Native'): State; - endian(type: string): State; + encoding(encoding: Encoding | string): State; + endian(type: EndianType | string): State; enhance(): State; equalize(): State; extent(width: number, height: number, options?: string): State; file(filename: string): State; - filter(type: 'Point'): State; - filter(type: 'Box'): State; - filter(type: 'Triangle'): State; - filter(type: 'Hermite'): State; - filter(type: 'Hanning'): State; - filter(type: 'Hamming'): State; - filter(type: 'Blackman'): State; - filter(type: 'Gaussian'): State; - filter(type: 'Quadratic'): State; - filter(type: 'Cubic'): State; - filter(type: 'Catrom'): State; - filter(type: 'Mitchell'): State; - filter(type: 'Lanczos'): State; - filter(type: 'Bessel'): State; - filter(type: 'Sinc'): State; - filter(type: string): State; + filter(type: FilterType | string): State; flatten(): State; flip(): State; flop(): State; @@ -249,52 +152,18 @@ declare namespace m { geometry(width: number, height?: number, option?: ResizeOption): State; geometry(geometry: string): State; greenPrimary(x: number, y: number): State; - gravity(direction: 'NorthWest'): State; - gravity(direction: 'North'): State; - gravity(direction: 'NorthEast'): State; - gravity(direction: 'West'): State; - gravity(direction: 'Center'): State; - gravity(direction: 'East'): State; - gravity(direction: 'SouthWest'): State; - gravity(direction: 'South'): State; - gravity(direction: 'SouthEast'): State; - gravity(direction: string): State; + gravity(direction: GravityDirection | string): State; highlightColor(color: string): State; - highlightStyle(style: 'Assign'): State; - highlightStyle(style: 'Threshold'): State; - highlightStyle(style: 'Tint'): State; - highlightStyle(style: 'XOR'): State; - highlightStyle(style: string): State; + highlightStyle(style: HighlightStyle | string): State; iconGeometry(geometry: string): State; implode(factor?: number): State; - intent(type: 'Absolute'): State; - intent(type: 'Perceptual'): State; - intent(type: 'Relative'): State; - intent(type: 'Saturation'): State; - intent(type: string): State; - interlace(type: 'None'): State; - interlace(type: 'Line'): State; - interlace(type: 'Plane'): State; - interlace(type: 'Partition'): State; - interlace(type: string): State; + intent(type: IntentType | string): State; + interlace(type: InterlaceType | string): State; label(name: string): State; lat(width: number, height: number, offset: number, percent?: boolean): State; level(blackPoint: number, gamma: number, whitePoint: number, percent?: boolean): State; - limit(type: 'disk', val: string): State; - limit(type: 'file', val: string): State; - limit(type: 'map', val: string): State; - limit(type: 'memory', val: string): State; - limit(type: 'pixels', val: string): State; - limit(type: 'threads', val: string): State; - limit(type: string, val: string): State; - list(type: string): State; - list(type: 'Color'): State; - list(type: 'Delegate'): State; - list(type: 'Format'): State; - list(type: 'Magic'): State; - list(type: 'Module'): State; - list(type: 'Resource'): State; - list(type: 'Type'): State; + limit(type: LimitType | string, val: string): State; + list(type: ListType | string): State; log(format: string): State; loop(iterations: number): State; lower(width: number, height: number): State; @@ -306,112 +175,29 @@ declare namespace m { maximumError(limit: number): State; median(radius?: number): State; minify(factor: number): State; - mode(mode: 'frame'): State; - mode(mode: 'unframe'): State; - mode(mode: 'concatenate'): State; - mode(mode: string): State; + mode(mode: OperationMode | string): State; modulate(b: number, s: number, h: number): State; monitor(): State; monochrome(): State; - morph(otherImg: string, outName: string, callback?: WriteCallback): State; - morph(otherImg: string[], outName: string, callback?: WriteCallback): State; + morph(otherImg: string | string[], outName: string, callback?: WriteCallback): State; mosaic(): State; motionBlur(radius: number, sigma?: number, angle?: number): State; name(): State; negative(): State; - noise(type: 'uniform'): State; - noise(type: 'gaussian'): State; - noise(type: 'multiplicative'): State; - noise(type: 'impulse'): State; - noise(type: 'laplacian'): State; - noise(type: 'poisson'): State; - noise(type: string): State; - noise(radius: number): State; + noise(type: NoiseType | string | number): State; noop(): State; normalize(): State; opaque(color: string): State; - operator(channel: string, operator: 'Add', rvalue: number, percent?: boolean): State; - operator(channel: string, operator: 'And', rvalue: number, percent?: boolean): State; - operator(channel: string, operator: 'Assign', rvalue: number, percent?: boolean): State; - operator(channel: string, operator: 'Depth', rvalue: number, percent?: boolean): State; - operator(channel: string, operator: 'Divide', rvalue: number, percent?: boolean): State; - operator(channel: string, operator: 'Gamma', rvalue: number, percent?: boolean): State; - operator(channel: string, operator: 'Negate', rvalue: number, percent?: boolean): State; - operator(channel: string, operator: 'LShift', rvalue: number, percent?: boolean): State; - operator(channel: string, operator: 'Log', rvalue: number, percent?: boolean): State; - operator(channel: string, operator: 'Max', rvalue: number, percent?: boolean): State; - operator(channel: string, operator: 'Min', rvalue: number, percent?: boolean): State; - operator(channel: string, operator: 'Multiply', rvalue: number, percent?: boolean): State; - operator(channel: string, operator: 'Or', rvalue: number, percent?: boolean): State; - operator(channel: string, operator: 'Pow', rvalue: number, percent?: boolean): State; - operator(channel: string, operator: 'RShift', rvalue: number, percent?: boolean): State; - operator(channel: string, operator: 'Subtract', rvalue: number, percent?: boolean): State; - operator(channel: string, operator: 'Threshold', rvalue: number, percent?: boolean): State; - operator(channel: string, operator: 'Threshold-White', rvalue: number, percent?: boolean): State; - operator(channel: string, operator: 'Threshold-White-Negate', rvalue: number, percent?: boolean): State; - operator(channel: string, operator: 'Threshold-Black', rvalue: number, percent?: boolean): State; - operator(channel: string, operator: 'Threshold-Black-Negate', rvalue: number, percent?: boolean): State; - operator(channel: string, operator: 'Xor', rvalue: number, percent?: boolean): State; - operator(channel: string, operator: 'Noise-Gaussian', rvalue: number, percent?: boolean): State; - operator(channel: string, operator: 'Noise-Impulse', rvalue: number, percent?: boolean): State; - operator(channel: string, operator: 'Noise-Laplacian', rvalue: number, percent?: boolean): State; - operator(channel: string, operator: 'Noise-Multiplicative', rvalue: number, percent?: boolean): State; - operator(channel: string, operator: 'Noise-Poisson', rvalue: number, percent?: boolean): State; - operator(channel: string, operator: 'Noise-Random', rvalue: number, percent?: boolean): State; - operator(channel: string, operator: 'Noise-Uniform', rvalue: number, percent?: boolean): State; - operator(channel: string, operator: string, rvalue: number, percent?: boolean): State; - orderedDither(channelType: 'All', NxN: string): State; - orderedDither(channelType: 'Intensity', NxN: string): State; - orderedDither(channelType: 'Red', NxN: string): State; - orderedDither(channelType: 'Green', NxN: string): State; - orderedDither(channelType: 'Blue', NxN: string): State; - orderedDither(channelType: 'Cyan', NxN: string): State; - orderedDither(channelType: 'Magenta', NxN: string): State; - orderedDither(channelType: 'Yellow', NxN: string): State; - orderedDither(channelType: 'Black', NxN: string): State; - orderedDither(channelType: 'Opacity', NxN: string): State; - orderedDither(channelType: string, NxN: string): State; + operator(channel: string, operator: ChannelOperator | string, rvalue: number, percent?: boolean): State; + orderedDither(channelType: ChannelType | string, NxN: string): State; outputDirectory(directory: string): State; - page(width: number, height: number, arg?: '%'): State; - page(width: number, height: number, arg?: '!'): State; - page(width: number, height: number, arg?: '<'): State; - page(width: number, height: number, arg?: '>'): State; - page(width: number, height: number, arg?: string): State; + page(width: number, height: number, arg?: '%' | '!' | '<' | '>' |string): State; pause(seconds: number): State; pen(color: string): State; ping(): State; pointSize(size: number): State; noProfile(): State; - preview(type: 'Rotate'): State; - preview(type: 'Shear'): State; - preview(type: 'Roll'): State; - preview(type: 'Hue'): State; - preview(type: 'Saturation'): State; - preview(type: 'Brightness'): State; - preview(type: 'Gamma'): State; - preview(type: 'Spiff'): State; - preview(type: 'Dull'): State; - preview(type: 'Grayscale'): State; - preview(type: 'Quantize'): State; - preview(type: 'Despeckle'): State; - preview(type: 'ReduceNoise'): State; - preview(type: 'AddNoise'): State; - preview(type: 'Sharpen'): State; - preview(type: 'Blur'): State; - preview(type: 'Threshold'): State; - preview(type: 'EdgeDetect'): State; - preview(type: 'Spread'): State; - preview(type: 'Shade'): State; - preview(type: 'Raise'): State; - preview(type: 'Segment'): State; - preview(type: 'Solarize'): State; - preview(type: 'Swirl'): State; - preview(type: 'Implode'): State; - preview(type: 'Wave'): State; - preview(type: 'OilPaint'): State; - preview(type: 'CharcoalDrawing'): State; - preview(type: 'JPEG'): State; - preview(type: string): State; + preview(type: PreviewType | string): State; paint(radius: number): State; process(command: string): State; profile(filename: string): State; @@ -424,8 +210,7 @@ declare namespace m { region(width: number, height: number, x?: number, y?: number): State; remote(): State; render(): State; - repage(reset: '+'): State; - repage(reset: string): State; + repage(reset: '+' | string): State; repage(width: number, height: number, xoff: number, yoff: number, arg?: string): State; sample(geometry: string): State; samplingFactor(horizontalFactor: number, verticalFactor: number): State; @@ -461,46 +246,21 @@ declare namespace m { threshold(value: number, percent?: boolean): State; thumb(width: number, height: number, outName: string, callback: WriteCallback): State; thumb(width: number, height: number, outName: string, quality: number, callback: WriteCallback): State; - thumb(width: number, height: number, outName: string, quality: number, align: 'topleft', callback: WriteCallback): State; - thumb(width: number, height: number, outName: string, quality: number, align: 'center', callback: WriteCallback): State; - thumb(width: number, height: number, outName: string, quality: number, align: string, callback: WriteCallback): State; + thumb(width: number, height: number, outName: string, quality: number, align: 'topleft' | 'center' | string, callback: WriteCallback): State; tile(filename: string): State; title(title: string): State; transform(color: string): State; transparent(color: string): State; treeDepth(depth: number): State; trim(): State; - type(type: 'Bilevel'): State; - type(type: 'Grayscale'): State; - type(type: 'Palette'): State; - type(type: 'PaletteMatte'): State; - type(type: 'TrueColor'): State; - type(type: 'TrueColorMatte'): State; - type(type: 'ColorSeparation'): State; - type(type: 'ColorSeparationMatte'): State; - type(type: 'Optimize'): State; - type(type: string): State; + type(type: ImageType | string): State; update(seconds: number): State; - units(type: 'Undefined'): State; - units(type: 'PixelsPerInch'): State; - units(type: 'PixelsPerCentimeter'): State; - units(type: string): State; + units(type: UnitType | string): State; unsharp(radius: number, sigma?: number, amount?: number, threshold?: number): State; usePixmap(): State; view(): State; - virtualPixel(method: 'Constant'): State; - virtualPixel(method: 'Edge'): State; - virtualPixel(method: 'Mirror'): State; - virtualPixel(method: 'Tile'): State; - virtualPixel(method: string): State; - visual(type: 'StaticGray'): State; - visual(type: 'GrayScale'): State; - visual(type: 'StaticColor'): State; - visual(type: 'PseudoColor'): State; - visual(type: 'TrueColor'): State; - visual(type: 'DirectColor'): State; - visual(type: 'default'): State; - visual(type: string): State; + virtualPixel(method: VirtualPixelMethod | string): State; + visual(type: VisualType | string): State; watermark(brightness: number, saturation: number): State; wave(amplitude: number, wavelength: number): State; whitePoint(x: number, y: number): State; @@ -530,46 +290,21 @@ declare namespace m { // Drawing Operations draw(args: string): State; drawArc(x0: number, y0: number, x1: number, y1: number, r0: number, r1: number): State; - drawBezier(x0: number, y0: number, x1: number, y1: number): State; - drawBezier(x0: number, y0: number, x1: number, y1: number, x2: number, y2: number): State; - drawBezier(x0: number, y0: number, x1: number, y1: number, x2: number, y2: number, ...coords: number[]): State; + drawBezier(x0: number, y0: number, x1: number, y1: number, x2?: number, y2?: number, ...coords: number[]): State; drawCircle(x0: number, y0: number, x1: number, y1: number): State; drawEllipse(x0: number, y0: number, rx: number, ry: number, a0: number, a1: number): State; drawLine(x0: number, y0: number, x1: number, y1: number): State; drawPoint(x: number, y: number): State; - drawPolygon(x0: number, y0: number, x1: number, y1: number, x2: number, y2: number): State; drawPolygon(x0: number, y0: number, x1: number, y1: number, x2: number, y2: number, ...coords: number[]): State; - drawPolyline(x0: number, y0: number, x1: number, y1: number, x2: number, y2: number): State; drawPolyline(x0: number, y0: number, x1: number, y1: number, x2: number, y2: number, ...coords: number[]): State; - drawRectangle(x0: number, y0: number, x1: number, y1: number): State; - drawRectangle(x0: number, y0: number, x1: number, y1: number, rc: number): State; - drawRectangle(x0: number, y0: number, x1: number, y1: number, wc: number, hc: number): State; - drawText(x: number, y: number, text: string, gravity: 'NorthWest'): State; - drawText(x: number, y: number, text: string, gravity: 'North'): State; - drawText(x: number, y: number, text: string, gravity: 'NorthEast'): State; - drawText(x: number, y: number, text: string, gravity: 'West'): State; - drawText(x: number, y: number, text: string, gravity: 'Center'): State; - drawText(x: number, y: number, text: string, gravity: 'East'): State; - drawText(x: number, y: number, text: string, gravity: 'SouthWest'): State; - drawText(x: number, y: number, text: string, gravity: 'South'): State; - drawText(x: number, y: number, text: string, gravity: 'SouthEast'): State; - drawText(x: number, y: number, text: string, gravity?: string): State; + drawRectangle(x0: number, y0: number, x1: number, y1: number, wc?: number, hc?: number): State; + drawText(x: number, y: number, text: string, gravity?: GravityDirection | string): State; fill(color: string): State; font(name: string, size?: number): State; fontSize(size: number): State; stroke(color: string, width?: number): State; strokeWidth(width: number): State; - setDraw(property: 'color', x: number, y: number, method: 'point'): State; - setDraw(property: 'color', x: number, y: number, method: 'replace'): State; - setDraw(property: 'color', x: number, y: number, method: 'floodfill'): State; - setDraw(property: 'color', x: number, y: number, method: 'filltoborder'): State; - setDraw(property: 'color', x: number, y: number, method: 'reset'): State; - setDraw(property: 'matte', x: number, y: number, method: 'point'): State; - setDraw(property: 'matte', x: number, y: number, method: 'replace'): State; - setDraw(property: 'matte', x: number, y: number, method: 'floodfill'): State; - setDraw(property: 'matte', x: number, y: number, method: 'filltoborder'): State; - setDraw(property: 'matte', x: number, y: number, method: 'reset'): State; - setDraw(property: string, x: number, y: number, method: string): State; + setDraw(property: SetDrawProperty | string, x: number, y: number, method: SetDrawMethod | string): State; // Commands stream(callback?: WriteCallback): stream.PassThrough; @@ -581,17 +316,45 @@ declare namespace m { interface SubClass { (image: string): State; - (stream: NodeJS.ReadableStream, image?: string): State; - (buffer: Buffer, image?: string): State; + (stream: NodeJS.ReadableStream | Buffer, image?: string): State; (width: number, height: number, color?: string): State; } function compare(filename1: string, filename2: string, callback: CompareCallback): void; - function compare(filename1: string, filename2: string, tolerance: number, callback: CompareCallback): void; - function compare(filename1: string, filename2: string, options: CompareOptions, callback: CompareCallback): void; + function compare(filename1: string, filename2: string, options: CompareOptions | number, callback: CompareCallback): void; function subClass(options: ClassOptions): SubClass; + type ChannelOperator = 'Add' + | 'And' + | 'Assign' + | 'Depth' + | 'Divide' + | 'Gamma' + | 'Negate' + | 'LShift' + | 'Log' + | 'Max' + | 'Min' + | 'Multiply' + | 'Or' + | 'Pow' + | 'RShift' + | 'Subtract' + | 'Threshold' + | 'Threshold-White' + | 'Threshold-White-Negate' + | 'Threshold-Black' + | 'Threshold-Black-Negate' + | 'Xor' + | 'Noise-Gaussian' + | 'Noise-Impulse' + | 'Noise-Laplacian' + | 'Noise-Multiplicative' + | 'Noise-Poisson' + | 'Noise-Random' + | 'Noise-Uniform'; + type ChannelType = 'All' | 'Intensity' | 'Red' @@ -603,10 +366,202 @@ declare namespace m { | 'Black' | 'Opacity'; + type ColorSpace = 'CineonLog' + | 'CMYK' + | 'GRAY' + | 'HSL' + | 'HSB' + | 'OHTA' + | 'RGB' + | 'Rec601Luma' + | 'Rec709Luma' + | 'Rec601YCbCr' + | 'Rec709YCbCr' + | 'Transparent' + | 'XYZ' + | 'YCbCr' + | 'YIQ' + | 'YPbPr' + | 'YUV'; + type CompareCallback = (err: Error, isEqual: boolean, equality: number, raw: number) => any; + type ComposeOperator = 'Over' + | 'In' + | 'Out' + | 'Atop' + | 'Xor' + | 'Plus' + | 'Minus' + | 'Add' + | 'Subtract' + | 'Difference' + | 'Divide' + | 'Multiply' + | 'Bumpmap' + | 'Copy' + | 'CopyRed' + | 'CopyGreen' + | 'CopyBlue' + | 'CopyOpacity' + | 'CopyCyan' + | 'CopyMagenta' + | 'CopyYellow' + | 'CopyBlack'; + + type CompressionType = 'None' + | 'BZip' + | 'Fax' + | 'Group4' + | 'JPEG' + | 'Lossless' + | 'LZW' + | 'RLE' + | 'Zip' + | 'LZMA'; + + type DisposeMethod = 'Undefined' + | 'None' + | 'Background' + | 'Previous'; + + type Encoding = 'AdobeCustom' + | 'AdobeExpert' + | 'AdobeStandard' + | 'AppleRoman' + | 'BIG5' + | 'GB2312' + | 'Latin 2' + | 'None' + | 'SJIScode' + | 'Symbol' + | 'Unicode' + | 'Wansung'; + + type EndianType = 'MSB' + | 'LSB' + | 'Native'; + + type FilterType = 'Point' + | 'Box' + | 'Triangle' + | 'Hermite' + | 'Hanning' + | 'Hamming' + | 'Blackman' + | 'Gaussian' + | 'Quadratic' + | 'Cubic' + | 'Catrom' + | 'Mitchell' + | 'Lanczos' + | 'Bessel' + | 'Sinc'; + type GetterCallback = (err: Error, value: T) => any; + type GravityDirection = 'NorthWest' + | 'North' + | 'NorthEast' + | 'West' + | 'Center' + | 'East' + | 'SouthWest' + | 'South' + | 'SouthEast'; + + type HighlightStyle = 'Assign' + | 'Threshold' + | 'Tint' + | 'XOR'; + + type ImageType = 'Bilevel' + | 'Grayscale' + | 'Palette' + | 'PaletteMatte' + | 'TrueColor' + | 'TrueColorMatte' + | 'ColorSeparation' + | 'ColorSeparationMatte' + | 'Optimize'; + + type IntentType = 'Absolute' + | 'Perceptual' + | 'Relative' + | 'Saturation'; + + type InterlaceType = 'None' + | 'Line' + | 'Plane' + | 'Partition'; + + type LimitType = 'disk' + | 'file' + | 'map' + | 'memory' + | 'pixels' + | 'threads'; + + type ListType = 'Color' + | 'Delegate' + | 'Format' + | 'Magic' + | 'Module' + | 'Resource' + | 'Type'; + + type NamedColor = 'Red' + | 'Green' + | 'Blue' + | 'Opacity' + | 'Matte' + | 'Cyan' + | 'Magenta' + | 'Yellow' + | 'Black' + | 'Gray'; + + type NoiseType = 'uniform' + | 'gaussian' + | 'multiplicative' + | 'impulse' + | 'laplacian' + | 'poisson'; + + type OperationMode = 'frame' + | 'unframe' + | 'concatenate'; + + type PreviewType = 'Rotate' + | 'Shear' + | 'Roll' + | 'Hue' + | 'Saturation' + | 'Brightness' + | 'Gamma' + | 'Spiff' + | 'Dull' + | 'Grayscale' + | 'Quantize' + | 'Despeckle' + | 'ReduceNoise' + | 'AddNoise' + | 'Sharpen' + | 'Blur' + | 'Threshold' + | 'EdgeDetect' + | 'Spread' + | 'Shade' + | 'Raise' + | 'Segment' + | 'Solarize' + | 'Swirl' + | 'Implode' + | 'Wave' + | 'OilPaint' + | 'CharcoalDrawing' + | 'JPEG'; + type ResizeOption = '%' /** Width and height are specified in percents */ | '@' /** Specify maximum area in pixels */ | '!' /** Ignore aspect ratio */ @@ -614,6 +569,31 @@ declare namespace m { | '<' /** Change dimensions only if image is smaller than width or height */ | '>'; /** Change dimensions only if image is larger than width or height */ + type SetDrawMethod = 'point' + | 'replace' + | 'floodfill' + | 'filltoborder' + | 'reset'; + + type SetDrawProperty = 'color' | 'matte'; + + type UnitType = 'Undefined' + | 'PixelsPerInch' + | 'PixelsPerCentimeter'; + + type VirtualPixelMethod = 'Constant' + | 'Edge' + | 'Mirror' + | 'Tile'; + + type VisualType = 'StaticGray' + | 'GrayScale' + | 'StaticColor' + | 'PseudoColor' + | 'TrueColor' + | 'DirectColor' + | 'default'; + type WriteCallback = (err: Error, stdout: string, stderr: string, cmd: string) => any; } diff --git a/types/gm/tslint.json b/types/gm/tslint.json index 7c456f533a..f93cf8562a 100644 --- a/types/gm/tslint.json +++ b/types/gm/tslint.json @@ -1,7 +1,3 @@ { - "extends": "dtslint/dt.json", - "rules": { - // This package unifiable overloaded functions, lot of effort to fix - "unified-signatures": false - } + "extends": "dtslint/dt.json" } From 173d1d4e9e6eafea23cb7f589cfac1af7a6919a5 Mon Sep 17 00:00:00 2001 From: Piotr Roszatycki Date: Mon, 16 Oct 2017 22:40:56 +0200 Subject: [PATCH 100/506] node: dgram buffer size options and methods for Node 8.7.0 (#20535) * dgram buffer size options and methods * Verify type returned by dgram.*BufferSize methods --- types/node/index.d.ts | 6 ++++++ types/node/node-tests.ts | 14 ++++++++++++++ 2 files changed, 20 insertions(+) diff --git a/types/node/index.d.ts b/types/node/index.d.ts index 7fad343da0..91514bbd53 100644 --- a/types/node/index.d.ts +++ b/types/node/index.d.ts @@ -2672,6 +2672,8 @@ declare module "dgram" { interface SocketOptions { type: SocketType; reuseAddr?: boolean; + recvBufferSize?: number; + sendBufferSize?: number; } export function createSocket(type: SocketType, callback?: (msg: Buffer, rinfo: RemoteInfo) => void): Socket; @@ -2695,6 +2697,10 @@ declare module "dgram" { dropMembership(multicastAddress: string, multicastInterface?: string): void; ref(): this; unref(): this; + setRecvBufferSize(size: number): void; + setSendBufferSize(size: number): void; + getRecvBufferSize(): number; + getSendBufferSize(): number; /** * events.EventEmitter diff --git a/types/node/node-tests.ts b/types/node/node-tests.ts index 50d9659744..d9f77c51bb 100644 --- a/types/node/node-tests.ts +++ b/types/node/node-tests.ts @@ -1436,6 +1436,20 @@ namespace dgram_tests { let _rinfo: dgram.AddressInfo = rinfo; }); } + + { + let ds: dgram.Socket = dgram.createSocket({ + type: 'udp4', + recvBufferSize: 10000, + sendBufferSize: 15000 + }); + + let size: number; + size = ds.getRecvBufferSize(); + ds.setRecvBufferSize(size); + size = ds.getSendBufferSize(); + ds.setSendBufferSize(size); + } } //////////////////////////////////////////////////// From d7f5d8fa9009f7ddf4fce473ffb2662d7010d905 Mon Sep 17 00:00:00 2001 From: Jarrad Whitaker Date: Tue, 17 Oct 2017 07:42:29 +1100 Subject: [PATCH 101/506] @types/node: Asynchooks promiseResolve and AsyncResource (#20540) * add promiseResolve hook * add AsyncResource * AsyncResource jsdoc fixes * test remaining AsyncResource methods --- types/node/index.d.ts | 47 ++++++++++++++++++++++++++++++++++++++++ types/node/node-tests.ts | 24 +++++++++++++++++++- 2 files changed, 70 insertions(+), 1 deletion(-) diff --git a/types/node/index.d.ts b/types/node/index.d.ts index 91514bbd53..6189d0b486 100644 --- a/types/node/index.d.ts +++ b/types/node/index.d.ts @@ -5940,6 +5940,13 @@ declare module "async_hooks" { */ after?(asyncId: number): void; + /** + * Called when a promise has resolve() called. This may not be in the same execution id + * as the promise itself. + * @param asyncId the unique id for the promise that was resolve()d. + */ + promiseResolve?(asyncId: number): void; + /** * Called after the resource corresponding to asyncId is destroyed * @param asyncId a unique ID for the async resource @@ -5965,6 +5972,46 @@ declare module "async_hooks" { * @return an AsyncHooks instance used for disabling and enabling hooks */ export function createHook(options: HookCallbacks): AsyncHook; + + /** + * The class AsyncResource was designed to be extended by the embedder's async resources. + * Using this users can easily trigger the lifetime events of their own resources. + */ + export class AsyncResource { + /** + * AsyncResource() is meant to be extended. Instantiating a + * new AsyncResource() also triggers init. If triggerAsyncId is omitted then + * async_hook.executionAsyncId() is used. + * @param type the name of this async resource type + * @param triggerAsyncId the unique ID of the async resource in whose execution context this async resource was created + */ + constructor(type: string, triggerAsyncId?: number) + + /** + * Call AsyncHooks before callbacks. + */ + emitBefore(): void; + + /** + * Call AsyncHooks after callbacks + */ + emitAfter(): void; + + /** + * Call AsyncHooks destroy callbacks. + */ + emitDestroy(): void; + + /** + * @return the unique ID assigned to this AsyncResource instance. + */ + asyncId(): number; + + /** + * @return the trigger ID for this AsyncResource instance. + */ + triggerAsyncId(): number; + } } declare module "http2" { diff --git a/types/node/node-tests.ts b/types/node/node-tests.ts index d9f77c51bb..0e2823ac1c 100644 --- a/types/node/node-tests.ts +++ b/types/node/node-tests.ts @@ -3012,7 +3012,8 @@ namespace async_hooks_tests { init: (asyncId: number, type: string, triggerAsyncId: number, resource: object) => void {}, before: (asyncId: number) => void {}, after: (asyncId: number) => void {}, - destroy: (asyncId: number) => void {} + destroy: (asyncId: number) => void {}, + promiseResolve: (asyncId: number) => void {} }; const asyncHook = async_hooks.createHook(hooks); @@ -3021,6 +3022,27 @@ namespace async_hooks_tests { const tId: number = async_hooks.triggerAsyncId(); const eId: number = async_hooks.executionAsyncId(); + + class TestResource extends async_hooks.AsyncResource { + constructor() { + super('TEST_RESOURCE'); + } + } + + class AnotherTestResource extends async_hooks.AsyncResource { + constructor() { + super('TEST_RESOURCE', 42); + const aId: number = this.asyncId(); + const tId: number = this.triggerAsyncId(); + } + run() { + this.emitBefore(); + this.emitAfter(); + } + destroy() { + this.emitDestroy(); + } + } } //////////////////////////////////////////////////// From cfbaa7d5181cd9f25ca9c64f84121d0385400103 Mon Sep 17 00:00:00 2001 From: Viktor Isaev Date: Mon, 16 Oct 2017 23:46:17 +0300 Subject: [PATCH 102/506] Updated typings for "restify-cookies". (#20548) * Added typings for "require-dir". * Fixed dtslint errors. * Fixed By field. * Added typings for "restify-cookies". * Added "cookies" field to Request interface. --- types/restify-cookies/index.d.ts | 4 ++++ types/restify-cookies/restify-cookies-tests.ts | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/types/restify-cookies/index.d.ts b/types/restify-cookies/index.d.ts index 842e6c425e..7e794855cb 100644 --- a/types/restify-cookies/index.d.ts +++ b/types/restify-cookies/index.d.ts @@ -16,6 +16,10 @@ declare module 'restify' { secure?: boolean; } + interface Request { + cookies: any; + } + interface Response { setCookie(key: string, val: string, options?: CookieOptions): void; } diff --git a/types/restify-cookies/restify-cookies-tests.ts b/types/restify-cookies/restify-cookies-tests.ts index e6a68e5689..6ca7d9965c 100644 --- a/types/restify-cookies/restify-cookies-tests.ts +++ b/types/restify-cookies/restify-cookies-tests.ts @@ -3,6 +3,6 @@ import 'restify-cookies'; function test(server: Server) { server.get('/api/test', (req: Request, res: Response) => { - res.setCookie('myCookie', 'test', { path: '/' }); + res.setCookie('myCookie', 'test' + req.cookies.foo, { path: '/' }); }); } From 6d460c6b6d7a5efafc22e8e99fb86d7ca7182cd0 Mon Sep 17 00:00:00 2001 From: Flarna Date: Mon, 16 Oct 2017 23:38:40 +0200 Subject: [PATCH 103/506] [net-keepalive] Remove tslint rule linebreak-style as it forces erros on windows (#20570) --- types/net-keepalive/tslint.json | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/types/net-keepalive/tslint.json b/types/net-keepalive/tslint.json index 193d7e799a..bebdb55ef0 100644 --- a/types/net-keepalive/tslint.json +++ b/types/net-keepalive/tslint.json @@ -3,7 +3,6 @@ "rules": { "semicolon": [true, "never"], "eofline": false, - "indent": [true, "spaces", 4], - "linebreak-style": [true, "LF"] + "indent": [true, "spaces", 4] } } \ No newline at end of file From 10d9fda78780b2423fe785fc237d4b90b4db77fb Mon Sep 17 00:00:00 2001 From: Travis Thieman Date: Mon, 16 Oct 2017 17:39:27 -0400 Subject: [PATCH 104/506] memory-cache: Add type parameters and expose constructor to instantiate new caches (#20501) * memory-cache: Add type parameters and expose constructor to instantiate new caches * Return arrays from keys() function * Extend dtslint and fix linting errors * Add version 0.2 to type header --- types/memory-cache/index.d.ts | 41 +++++++++++++++++------- types/memory-cache/memory-cache-tests.ts | 32 +++++++++++------- types/memory-cache/tslint.json | 1 + 3 files changed, 50 insertions(+), 24 deletions(-) create mode 100644 types/memory-cache/tslint.json diff --git a/types/memory-cache/index.d.ts b/types/memory-cache/index.d.ts index 4825fbe7a5..3c40a4b6dd 100644 --- a/types/memory-cache/index.d.ts +++ b/types/memory-cache/index.d.ts @@ -1,20 +1,37 @@ -// Type definitions for memory-cache +// Type definitions for memory-cache 0.2 // Project: https://github.com/ptarjan/node-cache // Definitions by: Jeff Goddard +// Travis Thieman // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -// Imported from: https://github.com/soywiz/typescript-node-definitions/memory-cache.d.ts +// Originally imported from: https://github.com/soywiz/typescript-node-definitions/memory-cache.d.ts +export class CacheClass { + put(key: K, value: V, time?: number, timeoutCallback?: (key: K, value: V) => void): V; + get(key: K): V; + del(key: K): void; + clear(): void; -export declare function put(key: any, value: any, time?: number, timeoutCallback?: (key: any, value: any) => void): void; -export declare function get(key: any): any; -export declare function del(key: any): void; -export declare function clear(): void; + size(): number; + memsize(): number; -export declare function size(): number; -export declare function memsize(): number; + debug(bool: boolean): void; + hits(): number; + misses(): number; + keys(): K[]; +} -export declare function debug(bool: boolean): void; -export declare function hits(): number; -export declare function misses(): number; -export declare function keys(): any; +export const Cache: typeof CacheClass; + +export function put(key: any, value: V, time?: number, timeoutCallback?: (key: any, value: any) => void): V; +export function get(key: any): any; +export function del(key: any): void; +export function clear(): void; + +export function size(): number; +export function memsize(): number; + +export function debug(bool: boolean): void; +export function hits(): number; +export function misses(): number; +export function keys(): any[]; diff --git a/types/memory-cache/memory-cache-tests.ts b/types/memory-cache/memory-cache-tests.ts index 15fad71f10..4cf5bc2a70 100644 --- a/types/memory-cache/memory-cache-tests.ts +++ b/types/memory-cache/memory-cache-tests.ts @@ -1,19 +1,16 @@ - import memoryCache = require('memory-cache'); -var key: any; -var value: any; -var bool: boolean; -var num: number; +const key: any = 'sampleKey'; +let value: string; +const bool = false; +let num: number; +let returnedValue: string; -memoryCache.put(key, value); -memoryCache.put(key, value, num); -memoryCache.put(key, value, num, (key) => { +returnedValue = memoryCache.put(key, value); +returnedValue = memoryCache.put(key, value, num); +returnedValue = memoryCache.put(key, value, num, (key) => { }); +returnedValue = memoryCache.put(key, value, num, (key, value) => { }); -}); -memoryCache.put(key, value, num, (key, value) => { - -}); value = memoryCache.get(key); memoryCache.del(key); memoryCache.clear(); @@ -24,3 +21,14 @@ num = memoryCache.memsize(); memoryCache.debug(bool); num = memoryCache.hits(); num = memoryCache.misses(); + +const customCache = new memoryCache.Cache(); + +const customKey = 'customKey'; +let customValue: boolean; +let customKeys: string[]; + +customValue = customCache.put(customKey, customValue); +customCache.get(customKey); +customCache.del(customKey); +customKeys = customCache.keys(); diff --git a/types/memory-cache/tslint.json b/types/memory-cache/tslint.json new file mode 100644 index 0000000000..3db14f85ea --- /dev/null +++ b/types/memory-cache/tslint.json @@ -0,0 +1 @@ +{ "extends": "dtslint/dt.json" } From b28f4d4ef3c130d06079480808b50ac26de04081 Mon Sep 17 00:00:00 2001 From: Flarna Date: Mon, 16 Oct 2017 23:40:52 +0200 Subject: [PATCH 105/506] [karma] Fix tests by removing dependency to log4js (#20572) log4js typings have been removed via #20518 and the typings exported by log4js 2.x don't exporte the relevant type. Created a local type to fix build. fixes #20534 --- types/karma/index.d.ts | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/types/karma/index.d.ts b/types/karma/index.d.ts index 6dabc5218d..3a77107718 100644 --- a/types/karma/index.d.ts +++ b/types/karma/index.d.ts @@ -9,7 +9,6 @@ // See Karma public API https://karma-runner.github.io/0.13/dev/public-api.html import Promise = require('bluebird'); import https = require('https'); -import log4js = require('log4js'); declare namespace karma { interface Karma { @@ -144,6 +143,16 @@ declare namespace karma { configFile: string; } + // taken from log4js 1.x typings which are gone... + interface Log4jsAppenderConfigBase { + type: string; + category?: string; + layout?: { + type: string; + [key: string]: any + } + } + interface ConfigOptions { /** * @description Enable or disable watching files and executing the tests whenever one of these files changes. @@ -283,7 +292,7 @@ declare namespace karma { * @default [{type: 'console'}] * @description A list of log appenders to be used. See the documentation for [log4js] for more information. */ - loggers?: log4js.AppenderConfigBase[]; + loggers?: Log4jsAppenderConfigBase[]; /** * @default {} * @description Redefine default mapping from file extensions to MIME-type. From c5e58787771e161ebf93c0f1d97a2af7a55b09fa Mon Sep 17 00:00:00 2001 From: Daniel Zou Date: Mon, 16 Oct 2017 17:43:37 -0400 Subject: [PATCH 106/506] Chrome debugger type patch (#20574) * Workaround to use chrome.debugger typedef * update tabs --- types/chrome/index.d.ts | 210 +++++++++++++++++++------------------ types/chrome/test/index.ts | 46 +++++++- 2 files changed, 147 insertions(+), 109 deletions(-) diff --git a/types/chrome/index.d.ts b/types/chrome/index.d.ts index 5104ab7ca1..ca7b35bf0e 100644 --- a/types/chrome/index.d.ts +++ b/types/chrome/index.d.ts @@ -1274,104 +1274,106 @@ declare namespace chrome.cookies { * Availability: Since Chrome 18. * Permissions: "debugger" */ -// TODO: Uncomment when Microsoft/TypeScript#8312 is merged in -// declare module chrome.debugger { -// /** Debuggee identifier. Either tabId or extensionId must be specified */ -// interface Debuggee { -// /** Optional. The id of the tab which you intend to debug. */ -// tabId?: number; -// /** -// * Optional. -// * Since Chrome 27. -// * The id of the extension which you intend to debug. Attaching to an extension background page is only possible when 'silent-debugger-extension-api' flag is enabled on the target browser. -// */ -// extensionId?: string; -// /** -// * Optional. -// * Since Chrome 28. -// * The opaque id of the debug target. -// */ -// targetId?: string; -// } -// -// /** -// * Since Chrome 28. -// * Debug target information -// */ -// interface TargetInfo { -// /** Target type. */ -// type: string; -// /** Target id. */ -// id: string; -// /** -// * Optional. -// * Since Chrome 30. -// * The tab id, defined if type == 'page'. -// */ -// tabId?: number; -// /** -// * Optional. -// * Since Chrome 30. -// * The extension id, defined if type = 'background_page'. -// */ -// extensionId?: string; -// /** True if debugger is already attached. */ -// attached: boolean; -// /** Target page title. */ -// title: string; -// /** Target URL. */ -// url: string; -// /** Optional. Target favicon URL. */ -// faviconUrl?: string; -// } -// -// interface DebuggerDetachedEvent extends chrome.events.Event<(source: Debuggee, reason: string) => void> {} -// -// interface DebuggerEventEvent extends chrome.events.Event<(source: Debuggee, method: string, params?: Object) => void> {} -// -// /** -// * Attaches debugger to the given target. -// * @param target Debugging target to which you want to attach. -// * @param requiredVersion Required debugging protocol version ("0.1"). One can only attach to the debuggee with matching major version and greater or equal minor version. List of the protocol versions can be obtained in the documentation pages. -// * @param callback Called once the attach operation succeeds or fails. Callback receives no arguments. If the attach fails, runtime.lastError will be set to the error message. -// * If you specify the callback parameter, it should be a function that looks like this: -// * function() {...}; -// */ -// export function attach(target: Debuggee, requiredVersion: string, callback?: () => void): void; -// /** -// * Detaches debugger from the given target. -// * @param target Debugging target from which you want to detach. -// * @param callback Called once the detach operation succeeds or fails. Callback receives no arguments. If the detach fails, runtime.lastError will be set to the error message. -// * If you specify the callback parameter, it should be a function that looks like this: -// * function() {...}; -// */ -// export function detach(target: Debuggee, callback?: () => void): void; -// /** -// * Sends given command to the debugging target. -// * @param target Debugging target to which you want to send the command. -// * @param method Method name. Should be one of the methods defined by the remote debugging protocol. -// * @param commandParams Since Chrome 22. -// * JSON object with request parameters. This object must conform to the remote debugging params scheme for given method. -// * @param callback Response body. If an error occurs while posting the message, the callback will be called with no arguments and runtime.lastError will be set to the error message. -// * If you specify the callback parameter, it should be a function that looks like this: -// * function(object result) {...}; -// */ -// export function sendCommand(target: Debuggee, method: string, commandParams?: Object, callback?: (result?: Object) => void): void; -// /** -// * Since Chrome 28. -// * Returns the list of available debug targets. -// * @param callback The callback parameter should be a function that looks like this: -// * function(array of TargetInfo result) {...}; -// * Parameter result: Array of TargetInfo objects corresponding to the available debug targets. -// */ -// export function getTargets(callback: (result: TargetInfo[]) => void): void; -// -// /** Fired when browser terminates debugging session for the tab. This happens when either the tab is being closed or Chrome DevTools is being invoked for the attached tab. */ -// var onDetach: DebuggerDetachedEvent; -// /** Fired whenever debugging target issues instrumentation event. */ -// var onEvent: DebuggerEventEvent; -// } +declare module chrome { + namespace _debugger { + /** Debuggee identifier. Either tabId or extensionId must be specified */ + interface Debuggee { + /** Optional. The id of the tab which you intend to debug. */ + tabId?: number; + /** + * Optional. + * Since Chrome 27. + * The id of the extension which you intend to debug. Attaching to an extension background page is only possible when 'silent-debugger-extension-api' flag is enabled on the target browser. + */ + extensionId?: string; + /** + * Optional. + * Since Chrome 28. + * The opaque id of the debug target. + */ + targetId?: string; + } + /** + * Since Chrome 28. + * Debug target information + */ + interface TargetInfo { + /** Target type. */ + type: string; + /** Target id. */ + id: string; + /** + * Optional. + * Since Chrome 30. + * The tab id, defined if type == 'page'. + */ + tabId?: number; + /** + * Optional. + * Since Chrome 30. + * The extension id, defined if type = 'background_page'. + */ + extensionId?: string; + /** True if debugger is already attached. */ + attached: boolean; + /** Target page title. */ + title: string; + /** Target URL. */ + url: string; + /** Optional. Target favicon URL. */ + faviconUrl?: string; + } + + interface DebuggerDetachedEvent extends chrome.events.Event<(source: Debuggee, reason: string) => void> {} + + interface DebuggerEventEvent extends chrome.events.Event<(source: Debuggee, method: string, params?: Object) => void> {} + + /** + * Attaches debugger to the given target. + * @param target Debugging target to which you want to attach. + * @param requiredVersion Required debugging protocol version ("0.1"). One can only attach to the debuggee with matching major version and greater or equal minor version. List of the protocol versions can be obtained in the documentation pages. + * @param callback Called once the attach operation succeeds or fails. Callback receives no arguments. If the attach fails, runtime.lastError will be set to the error message. + * If you specify the callback parameter, it should be a function that looks like this: + * function() {...}; + */ + export function attach(target: Debuggee, requiredVersion: string, callback?: () => void): void; + /** + * Detaches debugger from the given target. + * @param target Debugging target from which you want to detach. + * @param callback Called once the detach operation succeeds or fails. Callback receives no arguments. If the detach fails, runtime.lastError will be set to the error message. + * If you specify the callback parameter, it should be a function that looks like this: + * function() {...}; + */ + export function detach(target: Debuggee, callback?: () => void): void; + /** + * Sends given command to the debugging target. + * @param target Debugging target to which you want to send the command. + * @param method Method name. Should be one of the methods defined by the remote debugging protocol. + * @param commandParams Since Chrome 22. + * JSON object with request parameters. This object must conform to the remote debugging params scheme for given method. + * @param callback Response body. If an error occurs while posting the message, the callback will be called with no arguments and runtime.lastError will be set to the error message. + * If you specify the callback parameter, it should be a function that looks like this: + * function(object result) {...}; + */ + export function sendCommand(target: Debuggee, method: string, commandParams?: Object, callback?: (result?: Object) => void): void; + /** + * Since Chrome 28. + * Returns the list of available debug targets. + * @param callback The callback parameter should be a function that looks like this: + * function(array of TargetInfo result) {...}; + * Parameter result: Array of TargetInfo objects corresponding to the available debug targets. + */ + export function getTargets(callback: (result: TargetInfo[]) => void): void; + + /** Fired when browser terminates debugging session for the tab. This happens when either the tab is being closed or Chrome DevTools is being invoked for the attached tab. */ + var onDetach: DebuggerDetachedEvent; + /** Fired whenever debugging target issues instrumentation event. */ + var onEvent: DebuggerEventEvent; + } + + export {_debugger as debugger} +} //////////////////// // Declarative Content //////////////////// @@ -3311,13 +3313,13 @@ declare namespace chrome.history { declare namespace chrome.i18n { /** Holds detected ISO language code and its percentage in the input string */ interface DetectedLanguage { - /** An ISO language code such as 'en' or 'fr'. - * For a complete list of languages supported by this method, see [kLanguageInfoTable]{@link https://src.chromium.org/viewvc/chrome/trunk/src/third_party/cld/languages/internal/languages.cc}. + /** An ISO language code such as 'en' or 'fr'. + * For a complete list of languages supported by this method, see [kLanguageInfoTable]{@link https://src.chromium.org/viewvc/chrome/trunk/src/third_party/cld/languages/internal/languages.cc}. * For an unknown language, 'und' will be returned, which means that [percentage] of the text is unknown to CLD */ language: string; /** The percentage of the detected language */ - percentage: number; + percentage: number; } /** Holds detected language reliability and array of DetectedLanguage */ @@ -3328,7 +3330,7 @@ declare namespace chrome.i18n { /** Array of detectedLanguage */ languages: DetectedLanguage[]; } - + /** * Gets the accept-languages of the browser. This is different from the locale used by the browser; to get the locale, use i18n.getUILanguage. * @param callback The callback parameter should be a function that looks like this: @@ -3347,7 +3349,7 @@ declare namespace chrome.i18n { * @since Chrome 35. */ export function getUILanguage(): string; - + /** Detects the language of the provided text using CLD. * @param text User input string to be translated. * @param callback The callback parameter should be a function that looks like this: function(object result) {...}; @@ -6598,7 +6600,7 @@ declare namespace chrome.tabs { * @since Chrome 38. */ var onZoomChange: TabZoomChangeEvent; - + /** * An ID which represents the absence of a browser tab. * @since Chrome 46. @@ -7226,7 +7228,7 @@ declare namespace chrome.webRequest { types?: string[]; /** A list of URLs or URL patterns. Requests that cannot match any of the URLs will be filtered out. */ urls: string[]; - + /** Optional. */ windowId?: number; } diff --git a/types/chrome/test/index.ts b/types/chrome/test/index.ts index b7b7868ba3..7b37e548b5 100644 --- a/types/chrome/test/index.ts +++ b/types/chrome/test/index.ts @@ -188,18 +188,18 @@ function beforeRedditNavigation() { // for chrome.tabs.InjectDetails.frameId function executeScriptFramed () { - + const tabId = 123; const frameId = 0; - + const code = "alert('hi');"; - + chrome.tabs.executeScript({frameId, code}); chrome.tabs.insertCSS({frameId, code}); - + chrome.tabs.executeScript(tabId, {frameId, code}); chrome.tabs.insertCSS(tabId, {frameId, code}); - + } // for chrome.tabs.TAB_ID_NONE @@ -298,6 +298,42 @@ function testOptionsPage() { }); } +// https://developer.chrome.com/extensions/debugger +function testDebugger() { + chrome.debugger.attach({tabId: 123}, '1.23', () => { + console.log('This is a callback!'); + }); + + chrome.debugger.detach({tabId: 123}, () => { + console.log('This is a callback!'); + }); + + chrome.debugger.sendCommand( + {targetId: 'abc'}, 'Debugger.Cmd', {param1: 'x'}, (result) => { + console.log('Do something with the result.' + result); + }); + + chrome.debugger.getTargets((results) => { + for (let result of results) { + if (result.tabId == 123) { + // Do Something. + } + } + }); + + chrome.debugger.onEvent.addListener((source, methodName, params) => { + if (source.tabId == 123) { + console.log('Hello World.'); + } + }); + + chrome.debugger.onDetach.addListener((source, reason) => { + if (source.tabId == 123) { + console.log('Hello World.'); + } + }); +} + // https://developer.chrome.com/extensions/storage#type-StorageArea function testStorage() { function getCallback(loadedData: { [key: string]: any; }) { From 265c8949838f4e0f7f3828624000bf789d84f2f9 Mon Sep 17 00:00:00 2001 From: jwbay Date: Mon, 16 Oct 2017 17:45:16 -0400 Subject: [PATCH 107/506] [jest] use default type params for mock and spy declarations (#20577) --- types/jest/index.d.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/types/jest/index.d.ts b/types/jest/index.d.ts index cf6f2eeb0b..dec3b65be1 100644 --- a/types/jest/index.d.ts +++ b/types/jest/index.d.ts @@ -9,7 +9,7 @@ // Ika // Waseem Dahman // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -// TypeScript Version: 2.2 +// TypeScript Version: 2.3 declare var beforeAll: jest.Lifecycle; declare var beforeEach: jest.Lifecycle; @@ -488,12 +488,12 @@ declare namespace jest { new (...args: any[]): any; } - interface Mock extends Function, MockInstance { + interface Mock extends Function, MockInstance { new (...args: any[]): T; (...args: any[]): any; } - interface SpyInstance extends MockInstance { + interface SpyInstance extends MockInstance { mockRestore(): void; } From 7e936df8524260f0f51ce644514e71b02beeb62d Mon Sep 17 00:00:00 2001 From: Junyoung Choi Date: Tue, 17 Oct 2017 06:49:43 +0900 Subject: [PATCH 108/506] Add mdurl (#20581) * Add mdurl * Add strictFunctionTypes property to tsconfig --- types/mdurl/decode.d.ts | 7 +++++++ types/mdurl/encode.d.ts | 7 +++++++ types/mdurl/format.d.ts | 5 +++++ types/mdurl/index.d.ts | 26 ++++++++++++++++++++++++++ types/mdurl/mdurl-tests.ts | 32 ++++++++++++++++++++++++++++++++ types/mdurl/parse.d.ts | 5 +++++ types/mdurl/tsconfig.json | 23 +++++++++++++++++++++++ types/mdurl/tslint.json | 1 + 8 files changed, 106 insertions(+) create mode 100644 types/mdurl/decode.d.ts create mode 100644 types/mdurl/encode.d.ts create mode 100644 types/mdurl/format.d.ts create mode 100644 types/mdurl/index.d.ts create mode 100644 types/mdurl/mdurl-tests.ts create mode 100644 types/mdurl/parse.d.ts create mode 100644 types/mdurl/tsconfig.json create mode 100644 types/mdurl/tslint.json diff --git a/types/mdurl/decode.d.ts b/types/mdurl/decode.d.ts new file mode 100644 index 0000000000..f45d0854b2 --- /dev/null +++ b/types/mdurl/decode.d.ts @@ -0,0 +1,7 @@ +declare namespace decode { + const defaultChars: string; + const componentChars: string; +} +declare function decode(input: string, exclude?: string): string; + +export = decode; diff --git a/types/mdurl/encode.d.ts b/types/mdurl/encode.d.ts new file mode 100644 index 0000000000..7848d3c85e --- /dev/null +++ b/types/mdurl/encode.d.ts @@ -0,0 +1,7 @@ +declare namespace encode { + const defaultChars: string; + const componentChars: string; +} +declare function encode(str: string, exclude?: string, keepEscaped?: boolean): string; + +export = encode; diff --git a/types/mdurl/format.d.ts b/types/mdurl/format.d.ts new file mode 100644 index 0000000000..2638c76007 --- /dev/null +++ b/types/mdurl/format.d.ts @@ -0,0 +1,5 @@ +import { Url } from './' + +declare function format(url: Url): string; + +export = format; diff --git a/types/mdurl/index.d.ts b/types/mdurl/index.d.ts new file mode 100644 index 0000000000..103ca22940 --- /dev/null +++ b/types/mdurl/index.d.ts @@ -0,0 +1,26 @@ +// Type definitions for mdurl 1.0 +// Project: https://github.com/markdown-it/mdurl#readme +// Definitions by: Junyoung Choi +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +import encode = require('./encode'); +import decode = require('./decode'); +import parse = require('./parse'); +import format = require('./format'); + +export interface Url { + protocol: string; + slashes: string; + auth: string; + port: string; + hostname: string; + hash: string; + search: string; + pathname: string; +} + +export { + encode, + decode, + parse, + format +}; diff --git a/types/mdurl/mdurl-tests.ts b/types/mdurl/mdurl-tests.ts new file mode 100644 index 0000000000..28c1141ef5 --- /dev/null +++ b/types/mdurl/mdurl-tests.ts @@ -0,0 +1,32 @@ +import mdurl = require('mdurl'); +import { Url } from 'mdurl'; + +const encoded: string = mdurl.encode('%%%'); +// return '%25%25%25' + +const decoded: string = mdurl.decode(encoded); +// return '%%%' + +const url: Url = mdurl.parse('HTTP://www.example.com/'); +// return { +// 'protocol': 'HTTP:', +// 'slashes': true, +// 'hostname': 'www.example.com', +// 'pathname': '/' +// } as Url + +const urlStr: string = mdurl.format(url); +// 'HTTP://www.example.com/' + +import encode = require('mdurl/encode'); +import decode = require('mdurl/decode'); +import parse = require('mdurl/parse'); +import format = require('mdurl/format'); + +const encoded2: string = encode('%%%'); + +const decoded2: string = decode(encoded); + +const url2: Url = parse('HTTP://www.example.com/'); + +const urlStr2: string = format(url); diff --git a/types/mdurl/parse.d.ts b/types/mdurl/parse.d.ts new file mode 100644 index 0000000000..cd2c012caa --- /dev/null +++ b/types/mdurl/parse.d.ts @@ -0,0 +1,5 @@ +import { Url } from './' + +declare function parse(input: string, slashesDenoteHost?: boolean): Url; + +export = parse; diff --git a/types/mdurl/tsconfig.json b/types/mdurl/tsconfig.json new file mode 100644 index 0000000000..c00c56ef07 --- /dev/null +++ b/types/mdurl/tsconfig.json @@ -0,0 +1,23 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es6" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true, + "strictFunctionTypes": true + }, + "files": [ + "index.d.ts", + "mdurl-tests.ts" + ] +} diff --git a/types/mdurl/tslint.json b/types/mdurl/tslint.json new file mode 100644 index 0000000000..3db14f85ea --- /dev/null +++ b/types/mdurl/tslint.json @@ -0,0 +1 @@ +{ "extends": "dtslint/dt.json" } From f92fedd91973c26f0260dbb6faf98d2d3ed26c92 Mon Sep 17 00:00:00 2001 From: Rasmus Eneman Date: Tue, 17 Oct 2017 00:09:26 +0200 Subject: [PATCH 109/506] @types/react: Add documentation to confusing event properties (#20595) These properties can be non-obvious and some doc comments could be helpful --- types/react/index.d.ts | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/types/react/index.d.ts b/types/react/index.d.ts index 864820aa63..29aef75598 100644 --- a/types/react/index.d.ts +++ b/types/react/index.d.ts @@ -430,6 +430,9 @@ declare namespace React { interface SyntheticEvent { bubbles: boolean; + /** + * A reference to the element on which the event listener is registered. + */ currentTarget: EventTarget & T; cancelable: boolean; defaultPrevented: boolean; @@ -442,6 +445,12 @@ declare namespace React { isPropagationStopped(): boolean; persist(): void; // If you thought this should be `EventTarget & T`, see https://github.com/DefinitelyTyped/DefinitelyTyped/pull/12239 + /** + * A reference to the element from which the event was originally dispatched. + * This might be a child element to the element on which the event listener is registered. + * + * @see currentTarget + */ target: EventTarget; timeStamp: number; type: string; @@ -483,7 +492,13 @@ declare namespace React { altKey: boolean; charCode: number; ctrlKey: boolean; + /** + * See [DOM Level 3 Events spec](https://www.w3.org/TR/uievents-key/#keys-modifier). for a list of valid (case-sensitive) arguments to this method. + */ getModifierState(key: string): boolean; + /** + * See the [DOM Level 3 Events spec](https://www.w3.org/TR/uievents-key/#named-key-attribute-values). for possible values + */ key: string; keyCode: number; locale: string; @@ -502,6 +517,9 @@ declare namespace React { clientX: number; clientY: number; ctrlKey: boolean; + /** + * See [DOM Level 3 Events spec](https://www.w3.org/TR/uievents-key/#keys-modifier). for a list of valid (case-sensitive) arguments to this method. + */ getModifierState(key: string): boolean; metaKey: boolean; nativeEvent: NativeMouseEvent; @@ -517,6 +535,9 @@ declare namespace React { altKey: boolean; changedTouches: TouchList; ctrlKey: boolean; + /** + * See [DOM Level 3 Events spec](https://www.w3.org/TR/uievents-key/#keys-modifier). for a list of valid (case-sensitive) arguments to this method. + */ getModifierState(key: string): boolean; metaKey: boolean; nativeEvent: NativeTouchEvent; From f5a512332058a207f1e185fdd60bfddc67185c0d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Richard=20Jedli=C4=8Dka?= Date: Tue, 17 Oct 2017 00:21:29 +0200 Subject: [PATCH 110/506] [codemirror] Fix `charCoord` and `getTokenAt` methods according to docs (#20593) * [codemirror] Fix methods according to docs - `charCoords` method should have `mode` param optional: http://codemirror.net/doc/manual.html#charCoords - `getTokenAt` method should have second optional parameter `precise`: http://codemirror.net/doc/manual.html#getTokenAt * [codemirror] Fix coords mode methods parameter Fix mode parameter of methods `cursorCoords`, `charCoords`, `coordsChar`, `lineAtHeight` and add missing method `heightAtLine`. --- types/codemirror/index.d.ts | 40 ++++++++++++++++++++++--------------- 1 file changed, 24 insertions(+), 16 deletions(-) diff --git a/types/codemirror/index.d.ts b/types/codemirror/index.d.ts index 16e2611781..4bf1844114 100644 --- a/types/codemirror/index.d.ts +++ b/types/codemirror/index.d.ts @@ -104,7 +104,9 @@ declare namespace CodeMirror { function signal(target: any, name: string, ...args: any[]): void; type DOMEvent = 'mousedown' | 'dblclick' | 'touchstart' | 'contextmenu' | 'keydown' | 'keypress' | 'keyup' | 'cut' | 'copy' | 'paste' | 'dragstart' | 'dragenter' | 'dragover' | 'dragleave' | 'drop'; - + + type CoordsMode = 'window' | 'page' | 'local'; + interface Token { /** The character(on the given line) at which the token starts. */ start: number; @@ -196,12 +198,15 @@ declare namespace CodeMirror { class can be left off to remove all classes for the specified node, or be a string to remove only a specific class. */ removeLineClass(line: any, where: string, class_?: string): CodeMirror.LineHandle; - /** - * Compute the line at the given pixel height. - * - * `mode` is the relative element to use to compute this line - defaults to 'page' if not specified - */ - lineAtHeight(height: number, mode?: 'window' | 'page' | 'local'): number + /** Compute the line at the given pixel height. mode is the relative element + to use to compute this line, it may be "window", "page" (the default), or "local" */ + lineAtHeight(height: number, mode?: CoordsMode): number; + + /** Computes the height of the top of a line, in the coordinate system specified by mode, it may be "window", + "page" (the default), or "local". When a line below the bottom of the document is specified, the returned value + is the bottom of the last line in the document. By default, the position of the actual text is returned. + If includeWidgets is true and the line has line widgets, the position above the first line widget is returned. */ + heightAtLine(line: any, mode?: CoordsMode, includeWidgets?: boolean): number; /** Returns the line number, text content, and marker status of the given line, which can be either a number or a line handle. */ lineInfo(line: any): { @@ -267,25 +272,28 @@ declare namespace CodeMirror { scrollIntoView(pos: { from: CodeMirror.Position, to: CodeMirror.Position }, margin: number): void; /** Returns an { left , top , bottom } object containing the coordinates of the cursor position. - If mode is "local" , they will be relative to the top-left corner of the editable document. + If mode is "local", they will be relative to the top-left corner of the editable document. If it is "page" or not given, they are relative to the top-left corner of the page. where is a boolean indicating whether you want the start(true) or the end(false) of the selection. */ - cursorCoords(where: boolean, mode: string): { left: number; top: number; bottom: number; }; + cursorCoords(where: boolean, mode?: CoordsMode): { left: number; top: number; bottom: number; }; /** Returns an { left , top , bottom } object containing the coordinates of the cursor position. - If mode is "local" , they will be relative to the top-left corner of the editable document. + If mode is "local", they will be relative to the top-left corner of the editable document. If it is "page" or not given, they are relative to the top-left corner of the page. where specifies the precise position at which you want to measure. */ - cursorCoords(where: CodeMirror.Position, mode: string): { left: number; top: number; bottom: number; }; + cursorCoords(where: CodeMirror.Position, mode?: CoordsMode): { left: number; top: number; bottom: number; }; - /** Returns the position and dimensions of an arbitrary character.pos should be a { line , ch } object. + /** Returns the position and dimensions of an arbitrary character. pos should be a { line , ch } object. + If mode is "local", they will be relative to the top-left corner of the editable document. + If it is "page" or not given, they are relative to the top-left corner of the page. This differs from cursorCoords in that it'll give the size of the whole character, rather than just the position that the cursor would have when it would sit at that position. */ - charCoords(pos: CodeMirror.Position, mode: string): { left: number; right: number; top: number; bottom: number; }; + charCoords(pos: CodeMirror.Position, mode?: CoordsMode): { left: number; right: number; top: number; bottom: number; }; /** Given an { left , top } object , returns the { line , ch } position that corresponds to it. - The optional mode parameter determines relative to what the coordinates are interpreted. It may be "window" , "page"(the default) , or "local". */ - coordsChar(object: { left: number; top: number; }, mode?: string): CodeMirror.Position; + The optional mode parameter determines relative to what the coordinates are interpreted. + It may be "window", "page" (the default), or "local". */ + coordsChar(object: { left: number; top: number; }, mode?: CoordsMode): CodeMirror.Position; /** Returns the line height of the default font for the editor. */ defaultTextHeight(): number; @@ -304,7 +312,7 @@ declare namespace CodeMirror { refresh(): void; /** Retrieves information about the token the current mode found before the given position (a {line, ch} object). */ - getTokenAt(pos: CodeMirror.Position): Token; + getTokenAt(pos: CodeMirror.Position, precise?: boolean): Token; /** This is similar to getTokenAt, but collects all tokens for a given line into an array. */ getLineTokens(line: number, precise?: boolean): Token[]; From bbf3e9cb0bcebd8ed3eb9f7ab3265a1b2a63d87a Mon Sep 17 00:00:00 2001 From: John Gozde Date: Mon, 16 Oct 2017 16:22:04 -0600 Subject: [PATCH 111/506] [react]: Remove deprecated+removed APIs (#20409) * create-react-class: add definitions * react-dom-factories: add definitions * create-react-class: add tests, fix errors * react-dom-factories: add tests, fix lint * react: remove previously deprecated APIs * Remove deprecated usages in other definitions * redux-form: disable strictFunctionTypes Changes to react typings revealed errors in redux-form that are present in 'master'. This needs to be handled separately. * Update create-react-class, react-dom-factories author * Avoid importing create-react-class where possible * Move top-level createReactClass tests to create-react-class --- .../create-react-class-tests.ts | 106 +++++++++ types/create-react-class/index.d.ts | 13 ++ types/create-react-class/tsconfig.json | 25 +++ types/create-react-class/tslint.json | 7 + types/jsnox/jsnox-tests.ts | 4 +- .../material-ui-pagination-tests.tsx | 3 +- types/material-ui/material-ui-tests.tsx | 3 +- types/ngreact/ngreact-tests.tsx | 22 +- .../react-big-calendar-tests.tsx | 8 +- types/react-chartjs-2/test/bar.tsx | 6 +- types/react-chartjs-2/test/bubble.tsx | 6 +- types/react-chartjs-2/test/doughnut.tsx | 6 +- types/react-chartjs-2/test/horizontalBar.tsx | 6 +- types/react-chartjs-2/test/line.tsx | 6 +- types/react-chartjs-2/test/mix.tsx | 6 +- types/react-chartjs-2/test/pie.tsx | 6 +- types/react-chartjs-2/test/polar.tsx | 6 +- types/react-chartjs-2/test/radar.tsx | 6 +- types/react-chartjs-2/test/randomizedLine.tsx | 11 +- .../react-dnd-html5-backend-tests.ts | 3 +- types/react-dnd/react-dnd-tests.tsx | 3 +- types/react-dom-factories/index.d.ts | 12 + .../react-dom-factories-tests.ts | 8 + types/react-dom-factories/tsconfig.json | 23 ++ types/react-dom-factories/tslint.json | 1 + types/react-infinite/react-infinite-tests.tsx | 33 +-- .../react-is-deprecated-tests.ts | 2 +- types/react-leaflet/react-leaflet-tests.tsx | 3 +- types/react-mdl/react-mdl-tests.tsx | 159 ++++++------- .../react-props-decorators-tests.ts | 5 +- .../react-router/test/NavigateWithContext.tsx | 3 +- .../dist/es/ArrowKeyStepper.d.ts | 3 +- .../react-virtualized/dist/es/AutoSizer.d.ts | 3 +- types/react/index.d.ts | 4 - types/react/test/index.ts | 210 +++++++----------- types/redux-form/redux-form-tests.tsx | 2 + types/redux-form/tsconfig.json | 2 +- types/redux-form/v4/redux-form-tests.tsx | 3 +- types/redux-form/v6/redux-form-tests.tsx | 4 +- types/redux-form/v6/tsconfig.json | 2 +- 40 files changed, 449 insertions(+), 295 deletions(-) create mode 100644 types/create-react-class/create-react-class-tests.ts create mode 100644 types/create-react-class/index.d.ts create mode 100644 types/create-react-class/tsconfig.json create mode 100644 types/create-react-class/tslint.json create mode 100644 types/react-dom-factories/index.d.ts create mode 100644 types/react-dom-factories/react-dom-factories-tests.ts create mode 100644 types/react-dom-factories/tsconfig.json create mode 100644 types/react-dom-factories/tslint.json diff --git a/types/create-react-class/create-react-class-tests.ts b/types/create-react-class/create-react-class-tests.ts new file mode 100644 index 0000000000..c3f7c620ef --- /dev/null +++ b/types/create-react-class/create-react-class-tests.ts @@ -0,0 +1,106 @@ +import * as React from "react"; +import * as ReactDOM from "react-dom"; +import * as DOM from "react-dom-factories"; +import * as createReactClass from "create-react-class"; + +interface Props { + foo: string; +} + +interface State { + bar: number; +} + +const props: Props & React.ClassAttributes<{}> = { + foo: "foo" +}; + +const container: Element = document.createElement("div"); + +// +// Top-Level API +// -------------------------------------------------------------------------- + +const ClassicComponent: React.ClassicComponentClass = createReactClass({ + childContextTypes: {}, + componentDidCatch(err, errorInfo) { + const msg: string = err.message; + const name: string = err.name; + const stack: string | undefined = err.stack; + const componentStack: string = errorInfo.componentStack; + }, + componentDidMount() {}, + componentDidUpdate(props, state) { + const foo: string = props.foo; + const bar: number = state.bar; + }, + componentWillMount() {}, + componentWillReceiveProps(nextProps) { + const oldFoo: string = nextProps.foo; + }, + componentWillUnmount() {}, + componentWillUpdate(props, state) { + const foo: string = props.foo; + const bar: number = state.bar; + }, + contextTypes: {}, + displayName: "Test", + getDefaultProps() { + return { foo: "f" }; + }, + getInitialState() { + return { bar: 1 }; + }, + mixins: [], + propTypes: {}, + shouldComponentUpdate(this: React.ClassicComponent, nextProps, nextState) { + const newFoo: string = nextProps.foo; + const newBar: number = nextState.bar; + return newFoo !== this.props.foo && newBar !== this.state.bar; + }, + statics: { + test: 1 + }, + reset() { + this.replaceState(this.getInitialState!()); + }, + render() { + return DOM.div(null, + DOM.input({ + ref: input => this._input = input, + value: this.state.bar + })); + } +}); + +// React.createFactory +const classicFactory: React.ClassicFactory = + React.createFactory(ClassicComponent); +const classicFactoryElement: React.ClassicElement = + classicFactory(props); + +// React.createElement +const classicElement: React.ClassicElement = React.createElement(ClassicComponent, props); + +// React.cloneElement +const clonedClassicElement: React.ClassicElement = + React.cloneElement(classicElement, props); + +// ReactDOM.render +const classicComponent: React.ClassicComponent = ReactDOM.render(classicElement, container); + +// +// React Components +// -------------------------------------------------------------------------- + +const displayName: string | undefined = ClassicComponent.displayName; +const defaultProps: Props = ClassicComponent.getDefaultProps ? ClassicComponent.getDefaultProps() : {} as Props; +const propTypes: React.ValidationMap | undefined = ClassicComponent.propTypes; + +// +// Component API +// -------------------------------------------------------------------------- + +// classic +const isMounted: boolean = classicComponent.isMounted(); +classicComponent.replaceState({ inputValue: "???", seconds: 60 }); diff --git a/types/create-react-class/index.d.ts b/types/create-react-class/index.d.ts new file mode 100644 index 0000000000..211474ac16 --- /dev/null +++ b/types/create-react-class/index.d.ts @@ -0,0 +1,13 @@ +// Type definitions for create-react-class 15.6 +// Project: https://facebook.github.io/react/ +// Definitions by: John Gozde +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.3 + +import { ComponentSpec, ClassicComponentClass } from "react"; + +declare namespace createReactClass {} +declare function createReactClass(spec: ComponentSpec): ClassicComponentClass

; + +export as namespace createReactClass; +export = createReactClass; diff --git a/types/create-react-class/tsconfig.json b/types/create-react-class/tsconfig.json new file mode 100644 index 0000000000..b003c69e53 --- /dev/null +++ b/types/create-react-class/tsconfig.json @@ -0,0 +1,25 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es6", + "dom" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "strictFunctionTypes": true, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true, + "jsx": "preserve" + }, + "files": [ + "index.d.ts", + "create-react-class-tests.ts" + ] +} diff --git a/types/create-react-class/tslint.json b/types/create-react-class/tslint.json new file mode 100644 index 0000000000..08337e85f7 --- /dev/null +++ b/types/create-react-class/tslint.json @@ -0,0 +1,7 @@ +{ + "extends": "dtslint/dt.json", + "rules": { + "no-object-literal-type-assertion": false, + "no-unnecessary-generics": false + } +} diff --git a/types/jsnox/jsnox-tests.ts b/types/jsnox/jsnox-tests.ts index c274a6f491..d545581591 100644 --- a/types/jsnox/jsnox-tests.ts +++ b/types/jsnox/jsnox-tests.ts @@ -8,9 +8,9 @@ interface PersonProps { age: number; } -const Person: React.ClassicComponentClass = React.createClass({ +class Person extends React.Component { render(): React.ReactElement { return null; } -}); +} const PersonTag = React.createFactory(Person); diff --git a/types/material-ui-pagination/material-ui-pagination-tests.tsx b/types/material-ui-pagination/material-ui-pagination-tests.tsx index 6a3415d24f..09246a2646 100644 --- a/types/material-ui-pagination/material-ui-pagination-tests.tsx +++ b/types/material-ui-pagination/material-ui-pagination-tests.tsx @@ -1,5 +1,6 @@ import * as React from 'react'; -import { Component, PropTypes } from 'react'; +import * as PropTypes from 'prop-types'; +import { Component } from 'react'; import * as ReactDOM from 'react-dom'; import Pagination from 'material-ui-pagination'; import * as ui from 'material-ui'; diff --git a/types/material-ui/material-ui-tests.tsx b/types/material-ui/material-ui-tests.tsx index 3b2c50dff4..1034d47cad 100644 --- a/types/material-ui/material-ui-tests.tsx +++ b/types/material-ui/material-ui-tests.tsx @@ -1,9 +1,10 @@ import * as React from 'react'; import { - Component, ComponentClass, CSSProperties, PropTypes, + Component, ComponentClass, CSSProperties, StatelessComponent, ReactElement, ReactInstance, ValidationMap } from 'react'; import * as ReactDOM from 'react-dom'; +import * as PropTypes from 'prop-types'; import getMuiTheme from 'material-ui/styles/getMuiTheme'; import { muiThemeable } from 'material-ui/styles/muiThemeable'; import MuiThemeProvider from 'material-ui/styles/MuiThemeProvider'; diff --git a/types/ngreact/ngreact-tests.tsx b/types/ngreact/ngreact-tests.tsx index 46980dab1f..0f40df4bb8 100644 --- a/types/ngreact/ngreact-tests.tsx +++ b/types/ngreact/ngreact-tests.tsx @@ -1,5 +1,6 @@ import * as angular from "angular"; import * as React from "react"; +import * as PropTypes from "prop-types"; import { ReactDirective } from "ngreact"; const app = angular.module("app", ["react"]); @@ -24,13 +25,20 @@ app.directive('helloComponent', function(reactDirective: ReactDirective, $locati return reactDirective(HelloComponent, undefined, {}, { $location }); }); -var HelloComponent = React.createClass({ - propTypes: { - fname : React.PropTypes.string.isRequired, - lname : React.PropTypes.string.isRequired - }, - render: function() { +interface HelloProps { + fname: string; + lname: string; +} + +class HelloComponent extends React.Component { + static propTypes = { + fname : PropTypes.string.isRequired, + lname : PropTypes.string.isRequired + } + + render() { return Hello {this.props.fname} {this.props.lname}; } -}) +} + app.value('HelloComponent', HelloComponent); diff --git a/types/react-big-calendar/react-big-calendar-tests.tsx b/types/react-big-calendar/react-big-calendar-tests.tsx index 8afdc205e8..ba48c42ed0 100644 --- a/types/react-big-calendar/react-big-calendar-tests.tsx +++ b/types/react-big-calendar/react-big-calendar-tests.tsx @@ -29,7 +29,7 @@ class CalendarEvent { } // Basic Example Test -const BasicExample = React.createClass({ +class BasicExample extends React.Component { render() { return ( ); } -}); +} ReactDOM.render(, document.body); const basicExampleHtml = ReactDOMServer.renderToString(); console.log('Test Results -> BasicExample', basicExampleHtml); // Full API Example Test - based on API Documentation // http://intljusticemission.github.io/react-big-calendar/examples/index.html#api -const FullAPIExample = React.createClass({ +class FullAPIExample extends React.Component { render() { return ( ); } -}); +} ReactDOM.render(, document.body); const fullApiExampleHtml = ReactDOMServer.renderToString(); console.log('Test Results -> FullAPIExample', fullApiExampleHtml); diff --git a/types/react-chartjs-2/test/bar.tsx b/types/react-chartjs-2/test/bar.tsx index c1ff3a3567..7f05c9925b 100644 --- a/types/react-chartjs-2/test/bar.tsx +++ b/types/react-chartjs-2/test/bar.tsx @@ -16,9 +16,7 @@ const data = { ] }; -export default React.createClass({ - displayName: 'BarExample', - +export default class BarExample extends React.Component { render() { return (

@@ -34,4 +32,4 @@ export default React.createClass({
); } -}); +} diff --git a/types/react-chartjs-2/test/bubble.tsx b/types/react-chartjs-2/test/bubble.tsx index b52d306136..726113c1ea 100755 --- a/types/react-chartjs-2/test/bubble.tsx +++ b/types/react-chartjs-2/test/bubble.tsx @@ -28,9 +28,7 @@ const data = { ] }; -export default React.createClass({ - displayName: 'BubbleExample', - +export default class BubbleExample extends React.Component { render() { return (
@@ -39,4 +37,4 @@ export default React.createClass({
); } -}); +} diff --git a/types/react-chartjs-2/test/doughnut.tsx b/types/react-chartjs-2/test/doughnut.tsx index 6a25d0354b..0743ee448b 100755 --- a/types/react-chartjs-2/test/doughnut.tsx +++ b/types/react-chartjs-2/test/doughnut.tsx @@ -22,9 +22,7 @@ const data = { }] }; -export default React.createClass({ - displayName: 'DoughnutExample', - +export default class DoughnutExample extends React.Component { render() { return (
@@ -33,4 +31,4 @@ export default React.createClass({
); } -}); +} diff --git a/types/react-chartjs-2/test/horizontalBar.tsx b/types/react-chartjs-2/test/horizontalBar.tsx index bf66f6b9fc..f63d21b51b 100755 --- a/types/react-chartjs-2/test/horizontalBar.tsx +++ b/types/react-chartjs-2/test/horizontalBar.tsx @@ -16,9 +16,7 @@ const data = { ] }; -export default React.createClass({ - displayName: 'BarExample', - +export default class HorizontalBarExample extends React.Component { render() { return (
@@ -27,4 +25,4 @@ export default React.createClass({
); } -}); +} diff --git a/types/react-chartjs-2/test/line.tsx b/types/react-chartjs-2/test/line.tsx index 55b0ad73fd..132b345dce 100755 --- a/types/react-chartjs-2/test/line.tsx +++ b/types/react-chartjs-2/test/line.tsx @@ -28,9 +28,7 @@ const data = { ] }; -export default React.createClass({ - displayName: 'LineExample', - +export default class LineExample extends React.Component { render() { return (
@@ -39,4 +37,4 @@ export default React.createClass({
); } -}); +} diff --git a/types/react-chartjs-2/test/mix.tsx b/types/react-chartjs-2/test/mix.tsx index 614e61723e..56c6e01cdc 100755 --- a/types/react-chartjs-2/test/mix.tsx +++ b/types/react-chartjs-2/test/mix.tsx @@ -69,9 +69,7 @@ const options: ChartOptions = { } }; -export default React.createClass({ - displayName: 'MixExample', - +export default class MixExample extends React.Component { render() { return (
@@ -83,4 +81,4 @@ export default React.createClass({
); } -}); +} diff --git a/types/react-chartjs-2/test/pie.tsx b/types/react-chartjs-2/test/pie.tsx index 9fb1912f5b..6aaedbb20f 100755 --- a/types/react-chartjs-2/test/pie.tsx +++ b/types/react-chartjs-2/test/pie.tsx @@ -22,9 +22,7 @@ const data = { }] }; -export default React.createClass({ - displayName: 'PieExample', - +export default class PieExample extends React.Component { render() { return (
@@ -33,4 +31,4 @@ export default React.createClass({
); } -}); +} diff --git a/types/react-chartjs-2/test/polar.tsx b/types/react-chartjs-2/test/polar.tsx index d586ca44be..264c3d9f2b 100755 --- a/types/react-chartjs-2/test/polar.tsx +++ b/types/react-chartjs-2/test/polar.tsx @@ -28,9 +28,7 @@ const data = { ] }; -export default React.createClass({ - displayName: 'PolarExample', - +export default class PolarExample extends React.Component { render() { return (
@@ -39,4 +37,4 @@ export default React.createClass({
); } -}); +} diff --git a/types/react-chartjs-2/test/radar.tsx b/types/react-chartjs-2/test/radar.tsx index 5c6dbc7c7d..886b111ae6 100755 --- a/types/react-chartjs-2/test/radar.tsx +++ b/types/react-chartjs-2/test/radar.tsx @@ -27,9 +27,7 @@ const data = { ] }; -export default React.createClass({ - displayName: 'RadarExample', - +export default class RadarExample extends React.Component { render() { return (
@@ -38,4 +36,4 @@ export default React.createClass({
); } -}); +} diff --git a/types/react-chartjs-2/test/randomizedLine.tsx b/types/react-chartjs-2/test/randomizedLine.tsx index 66be548968..fc63f75141 100755 --- a/types/react-chartjs-2/test/randomizedLine.tsx +++ b/types/react-chartjs-2/test/randomizedLine.tsx @@ -43,11 +43,10 @@ class Graph extends React.Component { }); const newDataSet = { - ...oldDataSet + ...oldDataSet, + data: newData }; - newDataSet.data = newData; - this.setState({ datasets: [newDataSet] }); }, 5000); } @@ -59,9 +58,7 @@ class Graph extends React.Component { } } -export default React.createClass({ - displayName: 'RandomizedDataLineExample', - +export default class RandomizedDataLineExample extends React.Component { render() { return (
@@ -70,4 +67,4 @@ export default React.createClass({
); } -}); +} diff --git a/types/react-dnd-html5-backend/react-dnd-html5-backend-tests.ts b/types/react-dnd-html5-backend/react-dnd-html5-backend-tests.ts index 47fa6ab5d4..14463a0440 100644 --- a/types/react-dnd-html5-backend/react-dnd-html5-backend-tests.ts +++ b/types/react-dnd-html5-backend/react-dnd-html5-backend-tests.ts @@ -2,9 +2,10 @@ // http://gaearon.github.io/react-dnd/docs-tutorial.html import * as React from "react"; +import * as DOM from "react-dom-factories"; import * as ReactDnd from "react-dnd"; -const r = React.DOM; +const r = DOM; import DragSource = ReactDnd.DragSource; import DropTarget = ReactDnd.DropTarget; diff --git a/types/react-dnd/react-dnd-tests.tsx b/types/react-dnd/react-dnd-tests.tsx index 929d64b1f5..76d732f268 100644 --- a/types/react-dnd/react-dnd-tests.tsx +++ b/types/react-dnd/react-dnd-tests.tsx @@ -2,9 +2,10 @@ // http://gaearon.github.io/react-dnd/docs-tutorial.html import * as React from "react"; +import * as DOM from "react-dom-factories"; import * as ReactDnd from "react-dnd"; -var r = React.DOM; +var r = DOM; import DragSource = ReactDnd.DragSource; import DropTarget = ReactDnd.DropTarget; diff --git a/types/react-dom-factories/index.d.ts b/types/react-dom-factories/index.d.ts new file mode 100644 index 0000000000..a0c63f0562 --- /dev/null +++ b/types/react-dom-factories/index.d.ts @@ -0,0 +1,12 @@ +// Type definitions for react-dom-factories 1.0 +// Project: https://facebook.github.io/react/ +// Definitions by: John Gozde +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.3 + +export as namespace ReactDOMFactories; +export = ReactDOMFactories; + +import { ReactDOM } from "react"; + +declare const ReactDOMFactories: ReactDOM; diff --git a/types/react-dom-factories/react-dom-factories-tests.ts b/types/react-dom-factories/react-dom-factories-tests.ts new file mode 100644 index 0000000000..de3b03819c --- /dev/null +++ b/types/react-dom-factories/react-dom-factories-tests.ts @@ -0,0 +1,8 @@ +import * as DOM from "react-dom-factories"; + +// tiny sampling of factories +DOM.a({}, "a"); +DOM.div({}, + DOM.span({}, DOM.b()), + DOM.ul({}, DOM.li({}, "test")) +); diff --git a/types/react-dom-factories/tsconfig.json b/types/react-dom-factories/tsconfig.json new file mode 100644 index 0000000000..8cdf540399 --- /dev/null +++ b/types/react-dom-factories/tsconfig.json @@ -0,0 +1,23 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es6" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictFunctionTypes": true, + "strictNullChecks": true, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "react-dom-factories-tests.ts" + ] +} diff --git a/types/react-dom-factories/tslint.json b/types/react-dom-factories/tslint.json new file mode 100644 index 0000000000..3db14f85ea --- /dev/null +++ b/types/react-dom-factories/tslint.json @@ -0,0 +1 @@ +{ "extends": "dtslint/dt.json" } diff --git a/types/react-infinite/react-infinite-tests.tsx b/types/react-infinite/react-infinite-tests.tsx index 9736f979a0..2aa7a23192 100644 --- a/types/react-infinite/react-infinite-tests.tsx +++ b/types/react-infinite/react-infinite-tests.tsx @@ -51,31 +51,32 @@ class Test4 extends React.Component { } } -var ListItem = React.createClass<{key: number; num: number;}, {}>({ - render: function() { +class ListItem extends React.Component<{key: number; num: number}, {}> { + render() { return
List Item {this.props.num}
; } -}); +} -var InfiniteList = React.createClass({ - getInitialState: function() { - return { +class InfiniteList extends React.Component<{}, {elements: React.ReactElement[], isInfiniteLoading: boolean}> { + constructor(props?: {}, context?: any) { + super(props, context); + this.state = { elements: this.buildElements(0, 20), isInfiniteLoading: false - } - }, + }; + } - buildElements: function(start: number, end: number) { + buildElements(start: number, end: number) { var elements = [] as React.ReactElement[]; for (var i = start; i < end; i++) { elements.push() } return elements; - }, + } - handleInfiniteLoad: function() { + handleInfiniteLoad() { var that = this; this.setState({ isInfiniteLoading: true @@ -88,15 +89,15 @@ var InfiniteList = React.createClass({ elements: that.state.elements.concat(newElements) }); }, 2500); - }, + } - elementInfiniteLoad: function() { + elementInfiniteLoad() { return
Loading...
; - }, + } - render: function() { + render() { return ; } -}); +} diff --git a/types/react-is-deprecated/react-is-deprecated-tests.ts b/types/react-is-deprecated/react-is-deprecated-tests.ts index 2f01286189..a60364efdd 100644 --- a/types/react-is-deprecated/react-is-deprecated-tests.ts +++ b/types/react-is-deprecated/react-is-deprecated-tests.ts @@ -1,4 +1,4 @@ -import { PropTypes } from 'react'; +import * as PropTypes from 'prop-types'; import { deprecate, addIsDeprecated } from 'react-is-deprecated'; // test: one-off deprecation diff --git a/types/react-leaflet/react-leaflet-tests.tsx b/types/react-leaflet/react-leaflet-tests.tsx index c12b7d6617..fe9825c465 100644 --- a/types/react-leaflet/react-leaflet-tests.tsx +++ b/types/react-leaflet/react-leaflet-tests.tsx @@ -1,7 +1,8 @@ import * as React from 'react'; import * as ReactDOM from 'react-dom'; +import * as PropTypes from 'prop-types'; import * as L from 'leaflet'; -import { Component, PropTypes } from 'react'; +import { Component } from 'react'; import { Children, Circle, diff --git a/types/react-mdl/react-mdl-tests.tsx b/types/react-mdl/react-mdl-tests.tsx index e9405820fe..2feffaa8e0 100644 --- a/types/react-mdl/react-mdl-tests.tsx +++ b/types/react-mdl/react-mdl-tests.tsx @@ -28,8 +28,8 @@ import { Chip, ChipContact, // all tests are from the examples provided here: https://tleunen.github.io/react-mdl/ // Badge tests -React.createClass({ - render: function() { +class BadgeTests extends React.Component { + render() { return (
{/* Number badge on icon */} @@ -41,7 +41,7 @@ React.createClass({ - + {/* Number badge on text */} Inbox @@ -50,11 +50,11 @@ React.createClass({
); } -}); +} // Chip tests -React.createClass({ - render: function() { +class ChipTests extends React.Component { + render() { return (
Basic chip @@ -77,12 +77,12 @@ React.createClass({
); - } -}); + } +} // Button tests -React.createClass({ - render: function() { +class ButtonTests extends React.Component { + render() { return (
{/* Colored FAB button */} @@ -161,11 +161,11 @@ React.createClass({
); } -}) +} // Card tests -React.createClass({ - render: function() { +class CardTests extends React.Component { + render() { return (
@@ -181,7 +181,7 @@ React.createClass({ - + Update @@ -192,7 +192,7 @@ React.createClass({ - + @@ -201,7 +201,7 @@ React.createClass({ - +

@@ -219,11 +219,11 @@ React.createClass({

); } -}); +} // Checkbox tests -React.createClass({ - render: function() { +class CheckboxTests extends React.Component { + render() { return (
@@ -232,11 +232,11 @@ React.createClass({
); } -}); +} // DataTable tests -React.createClass({ - render: function() { +class DataTableTests extends React.Component { + render() { return (
); } -}); +} // Dialog tests -React.createClass({ - render: function() { +class DialogTests extends React.Component<{}, {openDialog: boolean}> { + handleOpenDialog() { } + handleCloseDialog() { } + + render() { return (
@@ -324,7 +327,7 @@ React.createClass({
- +
@@ -338,7 +341,7 @@ React.createClass({
- +
@@ -355,11 +358,11 @@ React.createClass({
); } -}); +} // Grid tests -React.createClass({ - render: function() { +class GridTests extends React.Component { + render() { return (
@@ -396,11 +399,11 @@ React.createClass({
); } -}); +} // IconToggle tests -React.createClass({ - render: function() { +class IconToggleTests extends React.Component { + render() { return (
@@ -409,11 +412,11 @@ React.createClass({
); } -}); +} // Layout tests -React.createClass({ - render: function() { +class LayoutTests extends React.Component<{}, {activeTab: number}> { + render() { return (
{/* Uses a transparent header that draws on top of the layout's background */} @@ -602,7 +605,7 @@ React.createClass({
- this.setState({ activeTab: tabId })}> + {}}> Tab1 Tab2 Tab3 @@ -689,11 +692,11 @@ React.createClass({
); } -}); +} // List tests -React.createClass({ - render: function() { +class ListTests extends React.Component { + render() { return (
@@ -800,11 +803,11 @@ React.createClass({
); } -}); +} // Menu tests -React.createClass({ - render: function() { +class MenuTests extends React.Component { + render() { return (
{/* Lower left */} @@ -853,11 +856,11 @@ React.createClass({
); } -}); +} // ProgressBar tests -React.createClass({ - render: function() { +class ProgressBarTests extends React.Component { + render() { return (
{/* Simple Progress Bar */} @@ -871,11 +874,11 @@ React.createClass({
); } -}); +} // Radio tests -React.createClass({ - render: function() { +class RadioTests extends React.Component { + render() { return (
@@ -890,11 +893,11 @@ React.createClass({
); } -}); +} // Slider tests -React.createClass({ - render: function() { +class SliderTests extends React.Component { + render() { return (
{/* Default slider */} @@ -905,11 +908,15 @@ React.createClass({
); } -}); +} // Snackbar tests -React.createClass({ - render: function() { +class SnackbarTests extends React.Component { + handleClickActionSnackbar() {} + handleShowSnackbar() {} + handleTimeoutSnackbar() {} + + render() { return (
@@ -920,7 +927,7 @@ React.createClass({ onTimeout={this.handleTimeoutSnackbar} action="Undo">Button color changed.
- +
); } -}); +} // Spinner tests -React.createClass({ - render: function() { +class SpinnerTests extends React.Component { + render() { return (
{/* Simple spinner */} @@ -947,11 +954,11 @@ React.createClass({
); } -}); +} // Switch tests -React.createClass({ - render: function() { +class SwitchTest extends React.Component { + render() { return (
Ripple switch @@ -960,11 +967,11 @@ React.createClass({
); } -}); +} // Tab tests -React.createClass({ - render: function() { +class TabTests extends React.Component<{}, {activeTab: number}> { + render() { return (
@@ -976,15 +983,15 @@ React.createClass({
Content for the tab: {this.state.activeTab}
-
+
); } -}); +} // Textfield tests -React.createClass({ - render: function() { +class TextfieldTests extends React.Component { + render() { return (
{/* Simple textfield */} @@ -1022,11 +1029,11 @@ React.createClass({
); } -}); +} // Tooltip tests -React.createClass({ - render: function() { +class TooltipTests extends React.Component { + render() { return (
{/* Simple tooltip */} @@ -1071,15 +1078,15 @@ React.createClass({
); } -}); +} // MDLComponent tests -React.createClass({ - render: function() { +class MDLComponentTests extends React.Component { + render() { return (
) } -}); +} diff --git a/types/react-props-decorators/react-props-decorators-tests.ts b/types/react-props-decorators/react-props-decorators-tests.ts index 0bc81826fd..ab6e970362 100644 --- a/types/react-props-decorators/react-props-decorators-tests.ts +++ b/types/react-props-decorators/react-props-decorators-tests.ts @@ -1,9 +1,10 @@ import * as React from 'react'; +import * as PropTypes from 'prop-types'; import { propTypes, defaultProps } from 'react-props-decorators'; @propTypes({ - foo: React.PropTypes.string, - bar: React.PropTypes.number + foo: PropTypes.string, + bar: PropTypes.number }) @defaultProps({ foo: "defaultString", diff --git a/types/react-router/test/NavigateWithContext.tsx b/types/react-router/test/NavigateWithContext.tsx index 7a58090462..cd6f45d232 100644 --- a/types/react-router/test/NavigateWithContext.tsx +++ b/types/react-router/test/NavigateWithContext.tsx @@ -1,4 +1,5 @@ import * as React from 'react'; +import * as PropTypes from 'prop-types'; import { RouterChildContext, RouteComponentProps @@ -15,7 +16,7 @@ type Props = RouteComponentProps; class ComponentThatUsesContext extends React.Component { static contextTypes = { - router: React.PropTypes.object.isRequired + router: PropTypes.object.isRequired }; context: RouterChildContext; private onClick = () => { diff --git a/types/react-virtualized/dist/es/ArrowKeyStepper.d.ts b/types/react-virtualized/dist/es/ArrowKeyStepper.d.ts index 6bc853361b..17844914af 100644 --- a/types/react-virtualized/dist/es/ArrowKeyStepper.d.ts +++ b/types/react-virtualized/dist/es/ArrowKeyStepper.d.ts @@ -1,4 +1,5 @@ -import { PropTypes, PureComponent, Validator, Requireable } from 'react' +import { PureComponent, Validator, Requireable } from 'react' +import * as PropTypes from 'prop-types' export type OnSectionRenderedParams = { columnStartIndex: number, diff --git a/types/react-virtualized/dist/es/AutoSizer.d.ts b/types/react-virtualized/dist/es/AutoSizer.d.ts index 35a9081095..b54fce89e1 100644 --- a/types/react-virtualized/dist/es/AutoSizer.d.ts +++ b/types/react-virtualized/dist/es/AutoSizer.d.ts @@ -1,4 +1,5 @@ -import { PropTypes, PureComponent, Validator, Requireable } from 'react' +import { PureComponent, Validator, Requireable } from 'react' +import * as PropTypes from 'prop-types' export type Dimensions = { height: number, diff --git a/types/react/index.d.ts b/types/react/index.d.ts index 29aef75598..4b123ecd87 100644 --- a/types/react/index.d.ts +++ b/types/react/index.d.ts @@ -167,8 +167,6 @@ declare namespace React { // Top Level API // ---------------------------------------------------------------------- - function createClass(spec: ComponentSpec): ClassicComponentClass

; - // DOM Elements function createFactory( type: keyof ReactHTML): HTMLFactory; @@ -260,8 +258,6 @@ declare namespace React { function isValidElement

(object: {}): object is ReactElement

; - const DOM: ReactDOM; - const PropTypes: ReactPropTypes; const Children: ReactChildren; const version: string; diff --git a/types/react/test/index.ts b/types/react/test/index.ts index 543063041b..b9eea759e7 100644 --- a/types/react/test/index.ts +++ b/types/react/test/index.ts @@ -10,6 +10,9 @@ import * as shallowCompare from "react-addons-shallow-compare"; import * as TestUtils from "react-addons-test-utils"; import * as TransitionGroup from "react-addons-transition-group"; import update = require("react-addons-update"); +import * as createReactClass from "create-react-class"; +import * as PropTypes from "prop-types"; +import * as DOM from "react-dom-factories"; interface Props extends React.Attributes { hello: string; @@ -47,46 +50,18 @@ const container: Element = document.createElement("div"); // Top-Level API // -------------------------------------------------------------------------- -const ClassicComponent: React.ClassicComponentClass = - React.createClass({ - displayName: "ClassicComponent", - getDefaultProps() { - return { - hello: "hello", - world: "peace", - foo: 0, - }; - }, - getInitialState() { - return { - inputValue: this.context.someValue, - seconds: this.props.foo - }; - }, - reset() { - this.replaceState(this.getInitialState()); - }, - render() { - return React.DOM.div(null, - React.DOM.input({ - ref: input => this._input = input, - value: this.state.inputValue - })); - } - }); - class ModernComponent extends React.Component implements MyComponent, React.ChildContextProvider { static propTypes: React.ValidationMap = { - foo: React.PropTypes.number + foo: PropTypes.number }; static contextTypes: React.ValidationMap = { - someValue: React.PropTypes.string + someValue: PropTypes.string }; static childContextTypes: React.ValidationMap = { - someOtherValue: React.PropTypes.string + someOtherValue: PropTypes.string }; context: Context; @@ -114,12 +89,12 @@ class ModernComponent extends React.Component private _input: HTMLInputElement | null; render() { - return React.DOM.div(null, - React.DOM.input({ + return DOM.div(null, + DOM.input({ ref: input => this._input = input, value: this.state.inputValue }), - React.DOM.input({ + DOM.input({ onChange: event => console.log(event.target) })); } @@ -131,8 +106,8 @@ class ModernComponent extends React.Component class ModernComponentArrayRender extends React.Component { render() { - return [React.DOM.h1({ key: "1" }, "1"), - React.DOM.h1({ key: "2" }, "2")]; + return [DOM.h1({ key: "1" }, "1"), + DOM.h1({ key: "2" }, "2")]; } } @@ -144,7 +119,7 @@ interface SCProps { } function StatelessComponent(props: SCProps) { - return props.foo ? React.DOM.div(null, props.foo) : null; + return props.foo ? DOM.div(null, props.foo) : null; } // tslint:disable-next-line:no-namespace @@ -155,7 +130,7 @@ namespace StatelessComponent { const StatelessComponent2: React.SFC = // props is contextually typed - props => React.DOM.div(null, props.foo); + props => DOM.div(null, props.foo); StatelessComponent2.displayName = "StatelessComponent2"; StatelessComponent2.defaultProps = { foo: 42 @@ -164,7 +139,7 @@ StatelessComponent2.defaultProps = { const StatelessComponent3: React.SFC = // allows usage of props.children // allows null return - props => props.foo ? React.DOM.div(null, props.foo, props.children) : null; + props => props.foo ? DOM.div(null, props.foo, props.children) : null; // React.createFactory const factory: React.CFactory = @@ -177,11 +152,6 @@ const statelessFactory: React.SFCFactory = const statelessFactoryElement: React.SFCElement = statelessFactory(props); -const classicFactory: React.ClassicFactory = - React.createFactory(ClassicComponent); -const classicFactoryElement: React.ClassicElement = - classicFactory(props); - const domFactory: React.DOMFactory, Element> = React.createFactory("div"); const domFactoryElement: React.DOMElement, Element> = @@ -191,7 +161,6 @@ const domFactoryElement: React.DOMElement, Element> = const element: React.CElement = React.createElement(ModernComponent, props); const elementNoState: React.CElement = React.createElement(ModernComponentNoState, props); const statelessElement: React.SFCElement = React.createElement(StatelessComponent, props); -const classicElement: React.ClassicElement = React.createElement(ClassicComponent, props); const domElement: React.DOMElement, HTMLDivElement> = React.createElement("div"); const htmlElement = React.createElement("input", { type: "text" }); const svgElement = React.createElement("svg", { accentHeight: 12 }); @@ -226,8 +195,6 @@ const clonedStatelessElement: React.SFCElement = // known problem: cloning with optional props don't work properly // workaround: cast to actual props type React.cloneElement(statelessElement, { foo: 44 } as SCProps); -const clonedClassicElement: React.ClassicElement = - React.cloneElement(classicElement, props); // Clone base DOMElement const clonedDOMElement: React.DOMElement, HTMLDivElement> = React.cloneElement(domElement, { @@ -251,7 +218,6 @@ const componentNullContainer: ModernComponent = ReactDOM.render(element, null); const componentElementOrNull: ModernComponent = ReactDOM.render(element, document.getElementById("anelement")); const componentNoState: ModernComponentNoState = ReactDOM.render(elementNoState, container); const componentNoStateElementOrNull: ModernComponentNoState = ReactDOM.render(elementNoState, document.getElementById("anelement")); -const classicComponent: React.ClassicComponent = ReactDOM.render(classicElement, container); const domComponent: Element = ReactDOM.render(domElement, container); // Other Top-Level API @@ -271,14 +237,6 @@ const type: React.ComponentClass = element.type; const elementProps: Props = element.props; const key = element.key; -// -// React Components -// -------------------------------------------------------------------------- - -const displayName: string | undefined = ClassicComponent.displayName; -const defaultProps: Props = ClassicComponent.getDefaultProps ? ClassicComponent.getDefaultProps() : {} as Props; -const propTypes: React.ValidationMap | undefined = ClassicComponent.propTypes; - // // Component API // -------------------------------------------------------------------------- @@ -288,10 +246,6 @@ const componentState: State = component.state; component.setState({ inputValue: "!!!" }); component.forceUpdate(); -// classic -const isMounted: boolean = classicComponent.isMounted(); -classicComponent.replaceState({ inputValue: "???", seconds: 60 }); - const myComponent = component as MyComponent; myComponent.reset(); @@ -315,18 +269,18 @@ RefComponent.create({ ref: c => componentRef = c }); componentRef.refMethod(); let domNodeRef: Element | null; -React.DOM.div({ ref: "domRef" }); +DOM.div({ ref: "domRef" }); // type of node should be inferred -React.DOM.div({ ref: node => domNodeRef = node }); +DOM.div({ ref: node => domNodeRef = node }); let inputNodeRef: HTMLInputElement | null; -React.DOM.input({ ref: node => inputNodeRef = node as HTMLInputElement }); +DOM.input({ ref: node => inputNodeRef = node as HTMLInputElement }); // // Attributes // -------------------------------------------------------------------------- -const children: any[] = ["Hello world", [null], React.DOM.span(null)]; +const children: any[] = ["Hello world", [null], DOM.span(null)]; const divStyle: React.CSSProperties = { // CSSProperties flex: "1 1 main-size", backgroundImage: "url('hello.png')" @@ -353,15 +307,15 @@ const htmlAttr: React.HTMLProps = { __html: "STRONG" } }; -React.DOM.div(htmlAttr); -React.DOM.span(htmlAttr); -React.DOM.input(htmlAttr); +DOM.div(htmlAttr); +DOM.span(htmlAttr); +DOM.input(htmlAttr); -React.DOM.svg({ +DOM.svg({ viewBox: "0 0 48 48", xmlns: "http://www.w3.org/2000/svg" }, - React.DOM.rect({ + DOM.rect({ className: 'foobar', id: 'foo', color: 'black', @@ -372,7 +326,7 @@ React.DOM.svg({ strokeDasharray: '30%', strokeDashoffset: '20%' }), - React.DOM.rect({ + DOM.rect({ x: 10, y: 22, width: 28, @@ -380,7 +334,7 @@ React.DOM.svg({ strokeDasharray: 30, strokeDashoffset: 20 }), - React.DOM.path({ + DOM.path({ d: "M0,0V3H3V0ZM1,1V2H2V1Z", fill: "#999999", fillRule: "evenodd" @@ -388,34 +342,34 @@ React.DOM.svg({ ); // -// React.PropTypes +// PropTypes // -------------------------------------------------------------------------- const PropTypesSpecification: React.ComponentSpec = { propTypes: { - optionalArray: React.PropTypes.array, - optionalBool: React.PropTypes.bool, - optionalFunc: React.PropTypes.func, - optionalNumber: React.PropTypes.number, - optionalObject: React.PropTypes.object, - optionalString: React.PropTypes.string, - optionalNode: React.PropTypes.node, - optionalElement: React.PropTypes.element, - optionalMessage: React.PropTypes.instanceOf(Date), - optionalEnum: React.PropTypes.oneOf(["News", "Photos"]), - optionalUnion: React.PropTypes.oneOfType([ - React.PropTypes.string, - React.PropTypes.number, - React.PropTypes.instanceOf(Date) + optionalArray: PropTypes.array, + optionalBool: PropTypes.bool, + optionalFunc: PropTypes.func, + optionalNumber: PropTypes.number, + optionalObject: PropTypes.object, + optionalString: PropTypes.string, + optionalNode: PropTypes.node, + optionalElement: PropTypes.element, + optionalMessage: PropTypes.instanceOf(Date), + optionalEnum: PropTypes.oneOf(["News", "Photos"]), + optionalUnion: PropTypes.oneOfType([ + PropTypes.string, + PropTypes.number, + PropTypes.instanceOf(Date) ]), - optionalArrayOf: React.PropTypes.arrayOf(React.PropTypes.number), - optionalObjectOf: React.PropTypes.objectOf(React.PropTypes.number), - optionalObjectWithShape: React.PropTypes.shape({ - color: React.PropTypes.string, - fontSize: React.PropTypes.number + optionalArrayOf: PropTypes.arrayOf(PropTypes.number), + optionalObjectOf: PropTypes.objectOf(PropTypes.number), + optionalObjectWithShape: PropTypes.shape({ + color: PropTypes.string, + fontSize: PropTypes.number }), - requiredFunc: React.PropTypes.func.isRequired, - requiredAny: React.PropTypes.any.isRequired, + requiredFunc: PropTypes.func.isRequired, + requiredAny: PropTypes.any.isRequired, customProp(props: any, propName: string, componentName: string): Error | null { if (!/matchme/.test(props[propName])) { return new Error("Validation failed!"); @@ -424,7 +378,7 @@ const PropTypesSpecification: React.ComponentSpec = { }, // https://facebook.github.io/react/warnings/dont-call-proptypes.html#fixing-the-false-positive-in-third-party-proptypes percentage: (object: any, key: string, componentName: string, ...rest: any[]): Error | null => { - const error = React.PropTypes.number(object, key, componentName, ...rest); + const error = PropTypes.number(object, key, componentName, ...rest); if (error) { return error; } @@ -445,29 +399,29 @@ const PropTypesSpecification: React.ComponentSpec = { const ContextTypesSpecification: React.ComponentSpec = { contextTypes: { - optionalArray: React.PropTypes.array, - optionalBool: React.PropTypes.bool, - optionalFunc: React.PropTypes.func, - optionalNumber: React.PropTypes.number, - optionalObject: React.PropTypes.object, - optionalString: React.PropTypes.string, - optionalNode: React.PropTypes.node, - optionalElement: React.PropTypes.element, - optionalMessage: React.PropTypes.instanceOf(Date), - optionalEnum: React.PropTypes.oneOf(["News", "Photos"]), - optionalUnion: React.PropTypes.oneOfType([ - React.PropTypes.string, - React.PropTypes.number, - React.PropTypes.instanceOf(Date) + optionalArray: PropTypes.array, + optionalBool: PropTypes.bool, + optionalFunc: PropTypes.func, + optionalNumber: PropTypes.number, + optionalObject: PropTypes.object, + optionalString: PropTypes.string, + optionalNode: PropTypes.node, + optionalElement: PropTypes.element, + optionalMessage: PropTypes.instanceOf(Date), + optionalEnum: PropTypes.oneOf(["News", "Photos"]), + optionalUnion: PropTypes.oneOfType([ + PropTypes.string, + PropTypes.number, + PropTypes.instanceOf(Date) ]), - optionalArrayOf: React.PropTypes.arrayOf(React.PropTypes.number), - optionalObjectOf: React.PropTypes.objectOf(React.PropTypes.number), - optionalObjectWithShape: React.PropTypes.shape({ - color: React.PropTypes.string, - fontSize: React.PropTypes.number + optionalArrayOf: PropTypes.arrayOf(PropTypes.number), + optionalObjectOf: PropTypes.objectOf(PropTypes.number), + optionalObjectWithShape: PropTypes.shape({ + color: PropTypes.string, + fontSize: PropTypes.number }), - requiredFunc: React.PropTypes.func.isRequired, - requiredAny: React.PropTypes.any.isRequired, + requiredFunc: PropTypes.func.isRequired, + requiredAny: PropTypes.any.isRequired, customProp(props: any, propName: string, componentName: string): Error | null { if (!/matchme/.test(props[propName])) { return new Error("Validation failed!"); @@ -488,7 +442,7 @@ const mappedChildrenArray: number[] = React.Children.map(children, (child) => 42); React.Children.forEach(children, (child) => { }); const nChildren: number = React.Children.count(children); -let onlyChild: React.ReactElement = React.Children.only(React.DOM.div()); // ok +let onlyChild: React.ReactElement = React.Children.only(DOM.div()); // ok onlyChild = React.Children.only([null, [[["Hallo"], true]], false]); // error const childrenToArray: React.ReactChild[] = React.Children.toArray(children); @@ -516,7 +470,7 @@ class Timer extends React.Component<{}, TimerState> { clearInterval(this._interval); } render() { - return React.DOM.div( + return DOM.div( null, "Seconds Elapsed: ", this.state.secondsElapsed @@ -529,7 +483,7 @@ ReactDOM.render(React.createElement(Timer), container); // createFragment addon // -------------------------------------------------------------------------- createFragment({ - a: React.DOM.div(), + a: DOM.div(), b: ["a", false, React.createElement("span")] }); @@ -537,7 +491,7 @@ createFragment({ // CSSTransitionGroup addon // -------------------------------------------------------------------------- React.createFactory(CSSTransitionGroup)({ - component: React.createClass({ + component: createReactClass({ render: (): null => null }), childFactory: (c) => c, @@ -563,7 +517,7 @@ React.createFactory(CSSTransitionGroup)({ // // LinkedStateMixin addon // -------------------------------------------------------------------------- -React.createClass({ +createReactClass({ mixins: [LinkedStateMixin], getInitialState() { return { @@ -572,12 +526,12 @@ React.createClass({ }; }, render() { - return React.DOM.div(null, - React.DOM.input({ + return DOM.div(null, + DOM.input({ type: "checkbox", checkedLink: this.linkState("isChecked") }), - React.DOM.input({ + DOM.input({ type: "text", valueLink: this.linkState("message") }) @@ -616,9 +570,9 @@ Perf.printDOM(); // // PureRenderMixin addon // -------------------------------------------------------------------------- -React.createClass({ +createReactClass({ mixins: [PureRenderMixin], - render() { return React.DOM.div(null); } + render() { return DOM.div(null); } }); // @@ -626,7 +580,7 @@ React.createClass({ // -------------------------------------------------------------------------- const inst: ModernComponent = TestUtils.renderIntoDocument(element); -const node: Element = TestUtils.renderIntoDocument(React.DOM.div()); +const node: Element = TestUtils.renderIntoDocument(DOM.div()); TestUtils.Simulate.click(node); TestUtils.Simulate.change(node); @@ -698,14 +652,14 @@ class SyntheticEventTargetValue extends React.Component<{}, { value: string }> { this.state = { value: 'a' }; } render() { - return React.DOM.textarea({ + return DOM.textarea({ value: this.state.value, onChange: e => this.setState({ value: e.target.value }) }); } } -React.DOM.input({ +DOM.input({ onChange: event => { // `event.target` is guaranteed to be HTMLInputElement event.target.value; diff --git a/types/redux-form/redux-form-tests.tsx b/types/redux-form/redux-form-tests.tsx index 3648e9b452..dba9b95633 100644 --- a/types/redux-form/redux-form-tests.tsx +++ b/types/redux-form/redux-form-tests.tsx @@ -37,6 +37,8 @@ import libFormValueSelector from "redux-form/lib/formValueSelector"; import libReduxForm from "redux-form/lib/reduxForm"; import libActions from "redux-form/lib/actions"; + // TODO: tests fail in TypeScript@next when strictFunctionTypes=true + /* Decorated components */ interface TestFormData { foo: string; diff --git a/types/redux-form/tsconfig.json b/types/redux-form/tsconfig.json index 2c5cee3acb..f4a4b5a502 100644 --- a/types/redux-form/tsconfig.json +++ b/types/redux-form/tsconfig.json @@ -37,4 +37,4 @@ "lib/selectors.d.ts", "lib/SubmissionError.d.ts" ] -} \ No newline at end of file +} diff --git a/types/redux-form/v4/redux-form-tests.tsx b/types/redux-form/v4/redux-form-tests.tsx index 424c87c609..f8f2923be8 100644 --- a/types/redux-form/v4/redux-form-tests.tsx +++ b/types/redux-form/v4/redux-form-tests.tsx @@ -1,6 +1,7 @@ import * as React from 'react'; -import { Component, PropTypes } from 'react'; +import { Component } from 'react'; +import * as PropTypes from 'prop-types'; import {createStore, combineReducers} from 'redux'; import {reduxForm, reducer as reduxFormReducer, ReduxFormProps} from 'redux-form'; diff --git a/types/redux-form/v6/redux-form-tests.tsx b/types/redux-form/v6/redux-form-tests.tsx index 086e03f319..9609dac965 100644 --- a/types/redux-form/v6/redux-form-tests.tsx +++ b/types/redux-form/v6/redux-form-tests.tsx @@ -3,6 +3,8 @@ import { Component } from 'react'; import { Action } from 'redux'; import { Field, GenericField, reduxForm, WrappedFieldProps, BaseFieldProps, FormProps, FormAction, actionTypes, reducer } from "redux-form"; + // TODO: tests fail in TypeScript@next when strictFunctionTypes=true + interface CustomComponentProps { customProp: string; } @@ -86,7 +88,7 @@ reduxForm({ // adapted from: http://redux-form.com/6.0.0-alpha.4/examples/initializeFromState/ import { connect, DispatchProp } from 'react-redux' -const { DOM: { input } } = React +import { input } from 'react-dom-factories'; interface DataShape { firstName: string; diff --git a/types/redux-form/v6/tsconfig.json b/types/redux-form/v6/tsconfig.json index 51ee26293e..b0b8c098f5 100644 --- a/types/redux-form/v6/tsconfig.json +++ b/types/redux-form/v6/tsconfig.json @@ -31,4 +31,4 @@ "index.d.ts", "redux-form-tests.tsx" ] -} \ No newline at end of file +} From 0532b90f49dd9a1a3b898a6408896b0c16998934 Mon Sep 17 00:00:00 2001 From: Karol Janyst Date: Tue, 17 Oct 2017 08:50:29 +0900 Subject: [PATCH 112/506] Fix exports for files in lib (#20448) * Fix exports for react-icons lib to comply with commonjs * Regenrate lib definitions files * Change lib file template, regenrate files --- types/react-icons/index.d.ts | 1 + types/react-icons/lib/fa/500px.d.ts | 3 +- types/react-icons/lib/fa/adjust.d.ts | 3 +- types/react-icons/lib/fa/adn.d.ts | 3 +- types/react-icons/lib/fa/align-center.d.ts | 3 +- types/react-icons/lib/fa/align-justify.d.ts | 3 +- types/react-icons/lib/fa/align-left.d.ts | 3 +- types/react-icons/lib/fa/align-right.d.ts | 3 +- types/react-icons/lib/fa/amazon.d.ts | 3 +- types/react-icons/lib/fa/ambulance.d.ts | 3 +- .../american-sign-language-interpreting.d.ts | 3 +- types/react-icons/lib/fa/anchor.d.ts | 3 +- types/react-icons/lib/fa/android.d.ts | 3 +- types/react-icons/lib/fa/angellist.d.ts | 3 +- .../react-icons/lib/fa/angle-double-down.d.ts | 3 +- .../react-icons/lib/fa/angle-double-left.d.ts | 3 +- .../lib/fa/angle-double-right.d.ts | 3 +- types/react-icons/lib/fa/angle-double-up.d.ts | 3 +- types/react-icons/lib/fa/angle-down.d.ts | 3 +- types/react-icons/lib/fa/angle-left.d.ts | 3 +- types/react-icons/lib/fa/angle-right.d.ts | 3 +- types/react-icons/lib/fa/angle-up.d.ts | 3 +- types/react-icons/lib/fa/apple.d.ts | 3 +- types/react-icons/lib/fa/archive.d.ts | 3 +- types/react-icons/lib/fa/area-chart.d.ts | 3 +- .../react-icons/lib/fa/arrow-circle-down.d.ts | 3 +- .../react-icons/lib/fa/arrow-circle-left.d.ts | 3 +- .../lib/fa/arrow-circle-o-down.d.ts | 3 +- .../lib/fa/arrow-circle-o-left.d.ts | 3 +- .../lib/fa/arrow-circle-o-right.d.ts | 3 +- .../react-icons/lib/fa/arrow-circle-o-up.d.ts | 3 +- .../lib/fa/arrow-circle-right.d.ts | 3 +- types/react-icons/lib/fa/arrow-circle-up.d.ts | 3 +- types/react-icons/lib/fa/arrow-down.d.ts | 3 +- types/react-icons/lib/fa/arrow-left.d.ts | 3 +- types/react-icons/lib/fa/arrow-right.d.ts | 3 +- types/react-icons/lib/fa/arrow-up.d.ts | 3 +- types/react-icons/lib/fa/arrows-alt.d.ts | 3 +- types/react-icons/lib/fa/arrows-h.d.ts | 3 +- types/react-icons/lib/fa/arrows-v.d.ts | 3 +- types/react-icons/lib/fa/arrows.d.ts | 3 +- .../lib/fa/assistive-listening-systems.d.ts | 3 +- types/react-icons/lib/fa/asterisk.d.ts | 3 +- types/react-icons/lib/fa/at.d.ts | 3 +- .../react-icons/lib/fa/audio-description.d.ts | 3 +- types/react-icons/lib/fa/automobile.d.ts | 3 +- types/react-icons/lib/fa/backward.d.ts | 3 +- types/react-icons/lib/fa/balance-scale.d.ts | 3 +- types/react-icons/lib/fa/ban.d.ts | 3 +- types/react-icons/lib/fa/bank.d.ts | 3 +- types/react-icons/lib/fa/bar-chart.d.ts | 3 +- types/react-icons/lib/fa/barcode.d.ts | 3 +- types/react-icons/lib/fa/bars.d.ts | 3 +- types/react-icons/lib/fa/battery-0.d.ts | 3 +- types/react-icons/lib/fa/battery-1.d.ts | 3 +- types/react-icons/lib/fa/battery-2.d.ts | 3 +- types/react-icons/lib/fa/battery-3.d.ts | 3 +- types/react-icons/lib/fa/battery-4.d.ts | 3 +- types/react-icons/lib/fa/bed.d.ts | 3 +- types/react-icons/lib/fa/beer.d.ts | 3 +- types/react-icons/lib/fa/behance-square.d.ts | 3 +- types/react-icons/lib/fa/behance.d.ts | 3 +- types/react-icons/lib/fa/bell-o.d.ts | 3 +- types/react-icons/lib/fa/bell-slash-o.d.ts | 3 +- types/react-icons/lib/fa/bell-slash.d.ts | 3 +- types/react-icons/lib/fa/bell.d.ts | 3 +- types/react-icons/lib/fa/bicycle.d.ts | 3 +- types/react-icons/lib/fa/binoculars.d.ts | 3 +- types/react-icons/lib/fa/birthday-cake.d.ts | 3 +- .../react-icons/lib/fa/bitbucket-square.d.ts | 3 +- types/react-icons/lib/fa/bitbucket.d.ts | 3 +- types/react-icons/lib/fa/bitcoin.d.ts | 3 +- types/react-icons/lib/fa/black-tie.d.ts | 3 +- types/react-icons/lib/fa/blind.d.ts | 3 +- types/react-icons/lib/fa/bluetooth-b.d.ts | 3 +- types/react-icons/lib/fa/bluetooth.d.ts | 3 +- types/react-icons/lib/fa/bold.d.ts | 3 +- types/react-icons/lib/fa/bolt.d.ts | 3 +- types/react-icons/lib/fa/bomb.d.ts | 3 +- types/react-icons/lib/fa/book.d.ts | 3 +- types/react-icons/lib/fa/bookmark-o.d.ts | 3 +- types/react-icons/lib/fa/bookmark.d.ts | 3 +- types/react-icons/lib/fa/braille.d.ts | 3 +- types/react-icons/lib/fa/briefcase.d.ts | 3 +- types/react-icons/lib/fa/bug.d.ts | 3 +- types/react-icons/lib/fa/building-o.d.ts | 3 +- types/react-icons/lib/fa/building.d.ts | 3 +- types/react-icons/lib/fa/bullhorn.d.ts | 3 +- types/react-icons/lib/fa/bullseye.d.ts | 3 +- types/react-icons/lib/fa/bus.d.ts | 3 +- types/react-icons/lib/fa/buysellads.d.ts | 3 +- types/react-icons/lib/fa/cab.d.ts | 3 +- types/react-icons/lib/fa/calculator.d.ts | 3 +- .../react-icons/lib/fa/calendar-check-o.d.ts | 3 +- .../react-icons/lib/fa/calendar-minus-o.d.ts | 3 +- types/react-icons/lib/fa/calendar-o.d.ts | 3 +- types/react-icons/lib/fa/calendar-plus-o.d.ts | 3 +- .../react-icons/lib/fa/calendar-times-o.d.ts | 3 +- types/react-icons/lib/fa/calendar.d.ts | 3 +- types/react-icons/lib/fa/camera-retro.d.ts | 3 +- types/react-icons/lib/fa/camera.d.ts | 3 +- types/react-icons/lib/fa/caret-down.d.ts | 3 +- types/react-icons/lib/fa/caret-left.d.ts | 3 +- types/react-icons/lib/fa/caret-right.d.ts | 3 +- .../lib/fa/caret-square-o-down.d.ts | 3 +- .../lib/fa/caret-square-o-left.d.ts | 3 +- .../lib/fa/caret-square-o-right.d.ts | 3 +- .../react-icons/lib/fa/caret-square-o-up.d.ts | 3 +- types/react-icons/lib/fa/caret-up.d.ts | 3 +- types/react-icons/lib/fa/cart-arrow-down.d.ts | 3 +- types/react-icons/lib/fa/cart-plus.d.ts | 3 +- types/react-icons/lib/fa/cc-amex.d.ts | 3 +- types/react-icons/lib/fa/cc-diners-club.d.ts | 3 +- types/react-icons/lib/fa/cc-discover.d.ts | 3 +- types/react-icons/lib/fa/cc-jcb.d.ts | 3 +- types/react-icons/lib/fa/cc-mastercard.d.ts | 3 +- types/react-icons/lib/fa/cc-paypal.d.ts | 3 +- types/react-icons/lib/fa/cc-stripe.d.ts | 3 +- types/react-icons/lib/fa/cc-visa.d.ts | 3 +- types/react-icons/lib/fa/cc.d.ts | 3 +- types/react-icons/lib/fa/certificate.d.ts | 3 +- types/react-icons/lib/fa/chain-broken.d.ts | 3 +- types/react-icons/lib/fa/chain.d.ts | 3 +- types/react-icons/lib/fa/check-circle-o.d.ts | 3 +- types/react-icons/lib/fa/check-circle.d.ts | 3 +- types/react-icons/lib/fa/check-square-o.d.ts | 3 +- types/react-icons/lib/fa/check-square.d.ts | 3 +- types/react-icons/lib/fa/check.d.ts | 3 +- .../lib/fa/chevron-circle-down.d.ts | 3 +- .../lib/fa/chevron-circle-left.d.ts | 3 +- .../lib/fa/chevron-circle-right.d.ts | 3 +- .../react-icons/lib/fa/chevron-circle-up.d.ts | 3 +- types/react-icons/lib/fa/chevron-down.d.ts | 3 +- types/react-icons/lib/fa/chevron-left.d.ts | 3 +- types/react-icons/lib/fa/chevron-right.d.ts | 3 +- types/react-icons/lib/fa/chevron-up.d.ts | 3 +- types/react-icons/lib/fa/child.d.ts | 3 +- types/react-icons/lib/fa/chrome.d.ts | 3 +- types/react-icons/lib/fa/circle-o-notch.d.ts | 3 +- types/react-icons/lib/fa/circle-o.d.ts | 3 +- types/react-icons/lib/fa/circle-thin.d.ts | 3 +- types/react-icons/lib/fa/circle.d.ts | 3 +- types/react-icons/lib/fa/clipboard.d.ts | 3 +- types/react-icons/lib/fa/clock-o.d.ts | 3 +- types/react-icons/lib/fa/clone.d.ts | 3 +- types/react-icons/lib/fa/close.d.ts | 3 +- types/react-icons/lib/fa/cloud-download.d.ts | 3 +- types/react-icons/lib/fa/cloud-upload.d.ts | 3 +- types/react-icons/lib/fa/cloud.d.ts | 3 +- types/react-icons/lib/fa/cny.d.ts | 3 +- types/react-icons/lib/fa/code-fork.d.ts | 3 +- types/react-icons/lib/fa/code.d.ts | 3 +- types/react-icons/lib/fa/codepen.d.ts | 3 +- types/react-icons/lib/fa/codiepie.d.ts | 3 +- types/react-icons/lib/fa/coffee.d.ts | 3 +- types/react-icons/lib/fa/cog.d.ts | 3 +- types/react-icons/lib/fa/cogs.d.ts | 3 +- types/react-icons/lib/fa/columns.d.ts | 3 +- types/react-icons/lib/fa/comment-o.d.ts | 3 +- types/react-icons/lib/fa/comment.d.ts | 3 +- types/react-icons/lib/fa/commenting-o.d.ts | 3 +- types/react-icons/lib/fa/commenting.d.ts | 3 +- types/react-icons/lib/fa/comments-o.d.ts | 3 +- types/react-icons/lib/fa/comments.d.ts | 3 +- types/react-icons/lib/fa/compass.d.ts | 3 +- types/react-icons/lib/fa/compress.d.ts | 3 +- types/react-icons/lib/fa/connectdevelop.d.ts | 3 +- types/react-icons/lib/fa/contao.d.ts | 3 +- types/react-icons/lib/fa/copy.d.ts | 3 +- types/react-icons/lib/fa/copyright.d.ts | 3 +- .../react-icons/lib/fa/creative-commons.d.ts | 3 +- types/react-icons/lib/fa/credit-card-alt.d.ts | 3 +- types/react-icons/lib/fa/credit-card.d.ts | 3 +- types/react-icons/lib/fa/crop.d.ts | 3 +- types/react-icons/lib/fa/crosshairs.d.ts | 3 +- types/react-icons/lib/fa/css3.d.ts | 3 +- types/react-icons/lib/fa/cube.d.ts | 3 +- types/react-icons/lib/fa/cubes.d.ts | 3 +- types/react-icons/lib/fa/cut.d.ts | 3 +- types/react-icons/lib/fa/cutlery.d.ts | 3 +- types/react-icons/lib/fa/dashboard.d.ts | 3 +- types/react-icons/lib/fa/dashcube.d.ts | 3 +- types/react-icons/lib/fa/database.d.ts | 3 +- types/react-icons/lib/fa/deaf.d.ts | 3 +- types/react-icons/lib/fa/dedent.d.ts | 3 +- types/react-icons/lib/fa/delicious.d.ts | 3 +- types/react-icons/lib/fa/desktop.d.ts | 3 +- types/react-icons/lib/fa/deviantart.d.ts | 3 +- types/react-icons/lib/fa/diamond.d.ts | 3 +- types/react-icons/lib/fa/digg.d.ts | 3 +- types/react-icons/lib/fa/dollar.d.ts | 3 +- types/react-icons/lib/fa/dot-circle-o.d.ts | 3 +- types/react-icons/lib/fa/download.d.ts | 3 +- types/react-icons/lib/fa/dribbble.d.ts | 3 +- types/react-icons/lib/fa/dropbox.d.ts | 3 +- types/react-icons/lib/fa/drupal.d.ts | 3 +- types/react-icons/lib/fa/edge.d.ts | 3 +- types/react-icons/lib/fa/edit.d.ts | 3 +- types/react-icons/lib/fa/eject.d.ts | 3 +- types/react-icons/lib/fa/ellipsis-h.d.ts | 3 +- types/react-icons/lib/fa/ellipsis-v.d.ts | 3 +- types/react-icons/lib/fa/empire.d.ts | 3 +- types/react-icons/lib/fa/envelope-o.d.ts | 3 +- types/react-icons/lib/fa/envelope-square.d.ts | 3 +- types/react-icons/lib/fa/envelope.d.ts | 3 +- types/react-icons/lib/fa/envira.d.ts | 3 +- types/react-icons/lib/fa/eraser.d.ts | 3 +- types/react-icons/lib/fa/eur.d.ts | 3 +- types/react-icons/lib/fa/exchange.d.ts | 3 +- .../lib/fa/exclamation-circle.d.ts | 3 +- .../lib/fa/exclamation-triangle.d.ts | 3 +- types/react-icons/lib/fa/exclamation.d.ts | 3 +- types/react-icons/lib/fa/expand.d.ts | 3 +- types/react-icons/lib/fa/expeditedssl.d.ts | 3 +- .../lib/fa/external-link-square.d.ts | 3 +- types/react-icons/lib/fa/external-link.d.ts | 3 +- types/react-icons/lib/fa/eye-slash.d.ts | 3 +- types/react-icons/lib/fa/eye.d.ts | 3 +- types/react-icons/lib/fa/eyedropper.d.ts | 3 +- .../react-icons/lib/fa/facebook-official.d.ts | 3 +- types/react-icons/lib/fa/facebook-square.d.ts | 3 +- types/react-icons/lib/fa/facebook.d.ts | 3 +- types/react-icons/lib/fa/fast-backward.d.ts | 3 +- types/react-icons/lib/fa/fast-forward.d.ts | 3 +- types/react-icons/lib/fa/fax.d.ts | 3 +- types/react-icons/lib/fa/feed.d.ts | 3 +- types/react-icons/lib/fa/female.d.ts | 3 +- types/react-icons/lib/fa/fighter-jet.d.ts | 3 +- types/react-icons/lib/fa/file-archive-o.d.ts | 3 +- types/react-icons/lib/fa/file-audio-o.d.ts | 3 +- types/react-icons/lib/fa/file-code-o.d.ts | 3 +- types/react-icons/lib/fa/file-excel-o.d.ts | 3 +- types/react-icons/lib/fa/file-image-o.d.ts | 3 +- types/react-icons/lib/fa/file-movie-o.d.ts | 3 +- types/react-icons/lib/fa/file-o.d.ts | 3 +- types/react-icons/lib/fa/file-pdf-o.d.ts | 3 +- .../react-icons/lib/fa/file-powerpoint-o.d.ts | 3 +- types/react-icons/lib/fa/file-text-o.d.ts | 3 +- types/react-icons/lib/fa/file-text.d.ts | 3 +- types/react-icons/lib/fa/file-word-o.d.ts | 3 +- types/react-icons/lib/fa/file.d.ts | 3 +- types/react-icons/lib/fa/film.d.ts | 3 +- types/react-icons/lib/fa/filter.d.ts | 3 +- .../react-icons/lib/fa/fire-extinguisher.d.ts | 3 +- types/react-icons/lib/fa/fire.d.ts | 3 +- types/react-icons/lib/fa/firefox.d.ts | 3 +- types/react-icons/lib/fa/flag-checkered.d.ts | 3 +- types/react-icons/lib/fa/flag-o.d.ts | 3 +- types/react-icons/lib/fa/flag.d.ts | 3 +- types/react-icons/lib/fa/flask.d.ts | 3 +- types/react-icons/lib/fa/flickr.d.ts | 3 +- types/react-icons/lib/fa/floppy-o.d.ts | 3 +- types/react-icons/lib/fa/folder-o.d.ts | 3 +- types/react-icons/lib/fa/folder-open-o.d.ts | 3 +- types/react-icons/lib/fa/folder-open.d.ts | 3 +- types/react-icons/lib/fa/folder.d.ts | 3 +- types/react-icons/lib/fa/font.d.ts | 3 +- types/react-icons/lib/fa/fonticons.d.ts | 3 +- types/react-icons/lib/fa/fort-awesome.d.ts | 3 +- types/react-icons/lib/fa/forumbee.d.ts | 3 +- types/react-icons/lib/fa/forward.d.ts | 3 +- types/react-icons/lib/fa/foursquare.d.ts | 3 +- types/react-icons/lib/fa/frown-o.d.ts | 3 +- types/react-icons/lib/fa/futbol-o.d.ts | 3 +- types/react-icons/lib/fa/gamepad.d.ts | 3 +- types/react-icons/lib/fa/gavel.d.ts | 3 +- types/react-icons/lib/fa/gbp.d.ts | 3 +- types/react-icons/lib/fa/genderless.d.ts | 3 +- types/react-icons/lib/fa/get-pocket.d.ts | 3 +- types/react-icons/lib/fa/gg-circle.d.ts | 3 +- types/react-icons/lib/fa/gg.d.ts | 3 +- types/react-icons/lib/fa/gift.d.ts | 3 +- types/react-icons/lib/fa/git-square.d.ts | 3 +- types/react-icons/lib/fa/git.d.ts | 3 +- types/react-icons/lib/fa/github-alt.d.ts | 3 +- types/react-icons/lib/fa/github-square.d.ts | 3 +- types/react-icons/lib/fa/github.d.ts | 3 +- types/react-icons/lib/fa/gitlab.d.ts | 3 +- types/react-icons/lib/fa/gittip.d.ts | 3 +- types/react-icons/lib/fa/glass.d.ts | 3 +- types/react-icons/lib/fa/glide-g.d.ts | 3 +- types/react-icons/lib/fa/glide.d.ts | 3 +- types/react-icons/lib/fa/globe.d.ts | 3 +- .../lib/fa/google-plus-square.d.ts | 3 +- types/react-icons/lib/fa/google-plus.d.ts | 3 +- types/react-icons/lib/fa/google-wallet.d.ts | 3 +- types/react-icons/lib/fa/google.d.ts | 3 +- types/react-icons/lib/fa/graduation-cap.d.ts | 3 +- types/react-icons/lib/fa/group.d.ts | 3 +- types/react-icons/lib/fa/h-square.d.ts | 3 +- types/react-icons/lib/fa/hacker-news.d.ts | 3 +- types/react-icons/lib/fa/hand-grab-o.d.ts | 3 +- types/react-icons/lib/fa/hand-lizard-o.d.ts | 3 +- types/react-icons/lib/fa/hand-o-down.d.ts | 3 +- types/react-icons/lib/fa/hand-o-left.d.ts | 3 +- types/react-icons/lib/fa/hand-o-right.d.ts | 3 +- types/react-icons/lib/fa/hand-o-up.d.ts | 3 +- types/react-icons/lib/fa/hand-paper-o.d.ts | 3 +- types/react-icons/lib/fa/hand-peace-o.d.ts | 3 +- types/react-icons/lib/fa/hand-pointer-o.d.ts | 3 +- types/react-icons/lib/fa/hand-scissors-o.d.ts | 3 +- types/react-icons/lib/fa/hand-spock-o.d.ts | 3 +- types/react-icons/lib/fa/hashtag.d.ts | 3 +- types/react-icons/lib/fa/hdd-o.d.ts | 3 +- types/react-icons/lib/fa/header.d.ts | 3 +- types/react-icons/lib/fa/headphones.d.ts | 3 +- types/react-icons/lib/fa/heart-o.d.ts | 3 +- types/react-icons/lib/fa/heart.d.ts | 3 +- types/react-icons/lib/fa/heartbeat.d.ts | 3 +- types/react-icons/lib/fa/history.d.ts | 3 +- types/react-icons/lib/fa/home.d.ts | 3 +- types/react-icons/lib/fa/hospital-o.d.ts | 3 +- types/react-icons/lib/fa/hourglass-1.d.ts | 3 +- types/react-icons/lib/fa/hourglass-2.d.ts | 3 +- types/react-icons/lib/fa/hourglass-3.d.ts | 3 +- types/react-icons/lib/fa/hourglass-o.d.ts | 3 +- types/react-icons/lib/fa/hourglass.d.ts | 3 +- types/react-icons/lib/fa/houzz.d.ts | 3 +- types/react-icons/lib/fa/html5.d.ts | 3 +- types/react-icons/lib/fa/i-cursor.d.ts | 3 +- types/react-icons/lib/fa/ils.d.ts | 3 +- types/react-icons/lib/fa/image.d.ts | 3 +- types/react-icons/lib/fa/inbox.d.ts | 3 +- types/react-icons/lib/fa/indent.d.ts | 3 +- types/react-icons/lib/fa/index.d.ts | 1256 +++++------ types/react-icons/lib/fa/industry.d.ts | 3 +- types/react-icons/lib/fa/info-circle.d.ts | 3 +- types/react-icons/lib/fa/info.d.ts | 3 +- types/react-icons/lib/fa/inr.d.ts | 3 +- types/react-icons/lib/fa/instagram.d.ts | 3 +- .../react-icons/lib/fa/internet-explorer.d.ts | 3 +- types/react-icons/lib/fa/intersex.d.ts | 3 +- types/react-icons/lib/fa/ioxhost.d.ts | 3 +- types/react-icons/lib/fa/italic.d.ts | 3 +- types/react-icons/lib/fa/joomla.d.ts | 3 +- types/react-icons/lib/fa/jsfiddle.d.ts | 3 +- types/react-icons/lib/fa/key.d.ts | 3 +- types/react-icons/lib/fa/keyboard-o.d.ts | 3 +- types/react-icons/lib/fa/krw.d.ts | 3 +- types/react-icons/lib/fa/language.d.ts | 3 +- types/react-icons/lib/fa/laptop.d.ts | 3 +- types/react-icons/lib/fa/lastfm-square.d.ts | 3 +- types/react-icons/lib/fa/lastfm.d.ts | 3 +- types/react-icons/lib/fa/leaf.d.ts | 3 +- types/react-icons/lib/fa/leanpub.d.ts | 3 +- types/react-icons/lib/fa/lemon-o.d.ts | 3 +- types/react-icons/lib/fa/level-down.d.ts | 3 +- types/react-icons/lib/fa/level-up.d.ts | 3 +- types/react-icons/lib/fa/life-bouy.d.ts | 3 +- types/react-icons/lib/fa/lightbulb-o.d.ts | 3 +- types/react-icons/lib/fa/line-chart.d.ts | 3 +- types/react-icons/lib/fa/linkedin-square.d.ts | 3 +- types/react-icons/lib/fa/linkedin.d.ts | 3 +- types/react-icons/lib/fa/linux.d.ts | 3 +- types/react-icons/lib/fa/list-alt.d.ts | 3 +- types/react-icons/lib/fa/list-ol.d.ts | 3 +- types/react-icons/lib/fa/list-ul.d.ts | 3 +- types/react-icons/lib/fa/list.d.ts | 3 +- types/react-icons/lib/fa/location-arrow.d.ts | 3 +- types/react-icons/lib/fa/lock.d.ts | 3 +- types/react-icons/lib/fa/long-arrow-down.d.ts | 3 +- types/react-icons/lib/fa/long-arrow-left.d.ts | 3 +- .../react-icons/lib/fa/long-arrow-right.d.ts | 3 +- types/react-icons/lib/fa/long-arrow-up.d.ts | 3 +- types/react-icons/lib/fa/low-vision.d.ts | 3 +- types/react-icons/lib/fa/magic.d.ts | 3 +- types/react-icons/lib/fa/magnet.d.ts | 3 +- types/react-icons/lib/fa/mail-forward.d.ts | 3 +- types/react-icons/lib/fa/mail-reply-all.d.ts | 3 +- types/react-icons/lib/fa/mail-reply.d.ts | 3 +- types/react-icons/lib/fa/male.d.ts | 3 +- types/react-icons/lib/fa/map-marker.d.ts | 3 +- types/react-icons/lib/fa/map-o.d.ts | 3 +- types/react-icons/lib/fa/map-pin.d.ts | 3 +- types/react-icons/lib/fa/map-signs.d.ts | 3 +- types/react-icons/lib/fa/map.d.ts | 3 +- types/react-icons/lib/fa/mars-double.d.ts | 3 +- types/react-icons/lib/fa/mars-stroke-h.d.ts | 3 +- types/react-icons/lib/fa/mars-stroke-v.d.ts | 3 +- types/react-icons/lib/fa/mars-stroke.d.ts | 3 +- types/react-icons/lib/fa/mars.d.ts | 3 +- types/react-icons/lib/fa/maxcdn.d.ts | 3 +- types/react-icons/lib/fa/meanpath.d.ts | 3 +- types/react-icons/lib/fa/medium.d.ts | 3 +- types/react-icons/lib/fa/medkit.d.ts | 3 +- types/react-icons/lib/fa/meh-o.d.ts | 3 +- types/react-icons/lib/fa/mercury.d.ts | 3 +- .../react-icons/lib/fa/microphone-slash.d.ts | 3 +- types/react-icons/lib/fa/microphone.d.ts | 3 +- types/react-icons/lib/fa/minus-circle.d.ts | 3 +- types/react-icons/lib/fa/minus-square-o.d.ts | 3 +- types/react-icons/lib/fa/minus-square.d.ts | 3 +- types/react-icons/lib/fa/minus.d.ts | 3 +- types/react-icons/lib/fa/mixcloud.d.ts | 3 +- types/react-icons/lib/fa/mobile.d.ts | 3 +- types/react-icons/lib/fa/modx.d.ts | 3 +- types/react-icons/lib/fa/money.d.ts | 3 +- types/react-icons/lib/fa/moon-o.d.ts | 3 +- types/react-icons/lib/fa/motorcycle.d.ts | 3 +- types/react-icons/lib/fa/mouse-pointer.d.ts | 3 +- types/react-icons/lib/fa/music.d.ts | 3 +- types/react-icons/lib/fa/neuter.d.ts | 3 +- types/react-icons/lib/fa/newspaper-o.d.ts | 3 +- types/react-icons/lib/fa/object-group.d.ts | 3 +- types/react-icons/lib/fa/object-ungroup.d.ts | 3 +- .../lib/fa/odnoklassniki-square.d.ts | 3 +- types/react-icons/lib/fa/odnoklassniki.d.ts | 3 +- types/react-icons/lib/fa/opencart.d.ts | 3 +- types/react-icons/lib/fa/openid.d.ts | 3 +- types/react-icons/lib/fa/opera.d.ts | 3 +- types/react-icons/lib/fa/optin-monster.d.ts | 3 +- types/react-icons/lib/fa/pagelines.d.ts | 3 +- types/react-icons/lib/fa/paint-brush.d.ts | 3 +- types/react-icons/lib/fa/paper-plane-o.d.ts | 3 +- types/react-icons/lib/fa/paper-plane.d.ts | 3 +- types/react-icons/lib/fa/paperclip.d.ts | 3 +- types/react-icons/lib/fa/paragraph.d.ts | 3 +- types/react-icons/lib/fa/pause-circle-o.d.ts | 3 +- types/react-icons/lib/fa/pause-circle.d.ts | 3 +- types/react-icons/lib/fa/pause.d.ts | 3 +- types/react-icons/lib/fa/paw.d.ts | 3 +- types/react-icons/lib/fa/paypal.d.ts | 3 +- types/react-icons/lib/fa/pencil-square.d.ts | 3 +- types/react-icons/lib/fa/pencil.d.ts | 3 +- types/react-icons/lib/fa/percent.d.ts | 3 +- types/react-icons/lib/fa/phone-square.d.ts | 3 +- types/react-icons/lib/fa/phone.d.ts | 3 +- types/react-icons/lib/fa/pie-chart.d.ts | 3 +- types/react-icons/lib/fa/pied-piper-alt.d.ts | 3 +- types/react-icons/lib/fa/pied-piper.d.ts | 3 +- types/react-icons/lib/fa/pinterest-p.d.ts | 3 +- .../react-icons/lib/fa/pinterest-square.d.ts | 3 +- types/react-icons/lib/fa/pinterest.d.ts | 3 +- types/react-icons/lib/fa/plane.d.ts | 3 +- types/react-icons/lib/fa/play-circle-o.d.ts | 3 +- types/react-icons/lib/fa/play-circle.d.ts | 3 +- types/react-icons/lib/fa/play.d.ts | 3 +- types/react-icons/lib/fa/plug.d.ts | 3 +- types/react-icons/lib/fa/plus-circle.d.ts | 3 +- types/react-icons/lib/fa/plus-square-o.d.ts | 3 +- types/react-icons/lib/fa/plus-square.d.ts | 3 +- types/react-icons/lib/fa/plus.d.ts | 3 +- types/react-icons/lib/fa/power-off.d.ts | 3 +- types/react-icons/lib/fa/print.d.ts | 3 +- types/react-icons/lib/fa/product-hunt.d.ts | 3 +- types/react-icons/lib/fa/puzzle-piece.d.ts | 3 +- types/react-icons/lib/fa/qq.d.ts | 3 +- types/react-icons/lib/fa/qrcode.d.ts | 3 +- .../react-icons/lib/fa/question-circle-o.d.ts | 3 +- types/react-icons/lib/fa/question-circle.d.ts | 3 +- types/react-icons/lib/fa/question.d.ts | 3 +- types/react-icons/lib/fa/quote-left.d.ts | 3 +- types/react-icons/lib/fa/quote-right.d.ts | 3 +- types/react-icons/lib/fa/ra.d.ts | 3 +- types/react-icons/lib/fa/random.d.ts | 3 +- types/react-icons/lib/fa/recycle.d.ts | 3 +- types/react-icons/lib/fa/reddit-alien.d.ts | 3 +- types/react-icons/lib/fa/reddit-square.d.ts | 3 +- types/react-icons/lib/fa/reddit.d.ts | 3 +- types/react-icons/lib/fa/refresh.d.ts | 3 +- types/react-icons/lib/fa/registered.d.ts | 3 +- types/react-icons/lib/fa/renren.d.ts | 3 +- types/react-icons/lib/fa/repeat.d.ts | 3 +- types/react-icons/lib/fa/retweet.d.ts | 3 +- types/react-icons/lib/fa/road.d.ts | 3 +- types/react-icons/lib/fa/rocket.d.ts | 3 +- types/react-icons/lib/fa/rotate-left.d.ts | 3 +- types/react-icons/lib/fa/rouble.d.ts | 3 +- types/react-icons/lib/fa/rss-square.d.ts | 3 +- types/react-icons/lib/fa/safari.d.ts | 3 +- types/react-icons/lib/fa/scribd.d.ts | 3 +- types/react-icons/lib/fa/search-minus.d.ts | 3 +- types/react-icons/lib/fa/search-plus.d.ts | 3 +- types/react-icons/lib/fa/search.d.ts | 3 +- types/react-icons/lib/fa/sellsy.d.ts | 3 +- types/react-icons/lib/fa/server.d.ts | 3 +- .../react-icons/lib/fa/share-alt-square.d.ts | 3 +- types/react-icons/lib/fa/share-alt.d.ts | 3 +- types/react-icons/lib/fa/share-square-o.d.ts | 3 +- types/react-icons/lib/fa/share-square.d.ts | 3 +- types/react-icons/lib/fa/shield.d.ts | 3 +- types/react-icons/lib/fa/ship.d.ts | 3 +- types/react-icons/lib/fa/shirtsinbulk.d.ts | 3 +- types/react-icons/lib/fa/shopping-bag.d.ts | 3 +- types/react-icons/lib/fa/shopping-basket.d.ts | 3 +- types/react-icons/lib/fa/shopping-cart.d.ts | 3 +- types/react-icons/lib/fa/sign-in.d.ts | 3 +- types/react-icons/lib/fa/sign-language.d.ts | 3 +- types/react-icons/lib/fa/sign-out.d.ts | 3 +- types/react-icons/lib/fa/signal.d.ts | 3 +- types/react-icons/lib/fa/simplybuilt.d.ts | 3 +- types/react-icons/lib/fa/sitemap.d.ts | 3 +- types/react-icons/lib/fa/skyatlas.d.ts | 3 +- types/react-icons/lib/fa/skype.d.ts | 3 +- types/react-icons/lib/fa/slack.d.ts | 3 +- types/react-icons/lib/fa/sliders.d.ts | 3 +- types/react-icons/lib/fa/slideshare.d.ts | 3 +- types/react-icons/lib/fa/smile-o.d.ts | 3 +- types/react-icons/lib/fa/snapchat-ghost.d.ts | 3 +- types/react-icons/lib/fa/snapchat-square.d.ts | 3 +- types/react-icons/lib/fa/snapchat.d.ts | 3 +- types/react-icons/lib/fa/sort-alpha-asc.d.ts | 3 +- types/react-icons/lib/fa/sort-alpha-desc.d.ts | 3 +- types/react-icons/lib/fa/sort-amount-asc.d.ts | 3 +- .../react-icons/lib/fa/sort-amount-desc.d.ts | 3 +- types/react-icons/lib/fa/sort-asc.d.ts | 3 +- types/react-icons/lib/fa/sort-desc.d.ts | 3 +- .../react-icons/lib/fa/sort-numeric-asc.d.ts | 3 +- .../react-icons/lib/fa/sort-numeric-desc.d.ts | 3 +- types/react-icons/lib/fa/sort.d.ts | 3 +- types/react-icons/lib/fa/soundcloud.d.ts | 3 +- types/react-icons/lib/fa/space-shuttle.d.ts | 3 +- types/react-icons/lib/fa/spinner.d.ts | 3 +- types/react-icons/lib/fa/spoon.d.ts | 3 +- types/react-icons/lib/fa/spotify.d.ts | 3 +- types/react-icons/lib/fa/square-o.d.ts | 3 +- types/react-icons/lib/fa/square.d.ts | 3 +- types/react-icons/lib/fa/stack-exchange.d.ts | 3 +- types/react-icons/lib/fa/stack-overflow.d.ts | 3 +- types/react-icons/lib/fa/star-half-empty.d.ts | 3 +- types/react-icons/lib/fa/star-half.d.ts | 3 +- types/react-icons/lib/fa/star-o.d.ts | 3 +- types/react-icons/lib/fa/star.d.ts | 3 +- types/react-icons/lib/fa/steam-square.d.ts | 3 +- types/react-icons/lib/fa/steam.d.ts | 3 +- types/react-icons/lib/fa/step-backward.d.ts | 3 +- types/react-icons/lib/fa/step-forward.d.ts | 3 +- types/react-icons/lib/fa/stethoscope.d.ts | 3 +- types/react-icons/lib/fa/sticky-note-o.d.ts | 3 +- types/react-icons/lib/fa/sticky-note.d.ts | 3 +- types/react-icons/lib/fa/stop-circle-o.d.ts | 3 +- types/react-icons/lib/fa/stop-circle.d.ts | 3 +- types/react-icons/lib/fa/stop.d.ts | 3 +- types/react-icons/lib/fa/street-view.d.ts | 3 +- types/react-icons/lib/fa/strikethrough.d.ts | 3 +- .../lib/fa/stumbleupon-circle.d.ts | 3 +- types/react-icons/lib/fa/stumbleupon.d.ts | 3 +- types/react-icons/lib/fa/subscript.d.ts | 3 +- types/react-icons/lib/fa/subway.d.ts | 3 +- types/react-icons/lib/fa/suitcase.d.ts | 3 +- types/react-icons/lib/fa/sun-o.d.ts | 3 +- types/react-icons/lib/fa/superscript.d.ts | 3 +- types/react-icons/lib/fa/table.d.ts | 3 +- types/react-icons/lib/fa/tablet.d.ts | 3 +- types/react-icons/lib/fa/tag.d.ts | 3 +- types/react-icons/lib/fa/tags.d.ts | 3 +- types/react-icons/lib/fa/tasks.d.ts | 3 +- types/react-icons/lib/fa/television.d.ts | 3 +- types/react-icons/lib/fa/tencent-weibo.d.ts | 3 +- types/react-icons/lib/fa/terminal.d.ts | 3 +- types/react-icons/lib/fa/text-height.d.ts | 3 +- types/react-icons/lib/fa/text-width.d.ts | 3 +- types/react-icons/lib/fa/th-large.d.ts | 3 +- types/react-icons/lib/fa/th-list.d.ts | 3 +- types/react-icons/lib/fa/th.d.ts | 3 +- types/react-icons/lib/fa/thumb-tack.d.ts | 3 +- types/react-icons/lib/fa/thumbs-down.d.ts | 3 +- types/react-icons/lib/fa/thumbs-o-down.d.ts | 3 +- types/react-icons/lib/fa/thumbs-o-up.d.ts | 3 +- types/react-icons/lib/fa/thumbs-up.d.ts | 3 +- types/react-icons/lib/fa/ticket.d.ts | 3 +- types/react-icons/lib/fa/times-circle-o.d.ts | 3 +- types/react-icons/lib/fa/times-circle.d.ts | 3 +- types/react-icons/lib/fa/tint.d.ts | 3 +- types/react-icons/lib/fa/toggle-off.d.ts | 3 +- types/react-icons/lib/fa/toggle-on.d.ts | 3 +- types/react-icons/lib/fa/trademark.d.ts | 3 +- types/react-icons/lib/fa/train.d.ts | 3 +- types/react-icons/lib/fa/transgender-alt.d.ts | 3 +- types/react-icons/lib/fa/trash-o.d.ts | 3 +- types/react-icons/lib/fa/trash.d.ts | 3 +- types/react-icons/lib/fa/tree.d.ts | 3 +- types/react-icons/lib/fa/trello.d.ts | 3 +- types/react-icons/lib/fa/tripadvisor.d.ts | 3 +- types/react-icons/lib/fa/trophy.d.ts | 3 +- types/react-icons/lib/fa/truck.d.ts | 3 +- types/react-icons/lib/fa/try.d.ts | 3 +- types/react-icons/lib/fa/tty.d.ts | 3 +- types/react-icons/lib/fa/tumblr-square.d.ts | 3 +- types/react-icons/lib/fa/tumblr.d.ts | 3 +- types/react-icons/lib/fa/twitch.d.ts | 3 +- types/react-icons/lib/fa/twitter-square.d.ts | 3 +- types/react-icons/lib/fa/twitter.d.ts | 3 +- types/react-icons/lib/fa/umbrella.d.ts | 3 +- types/react-icons/lib/fa/underline.d.ts | 3 +- .../react-icons/lib/fa/universal-access.d.ts | 3 +- types/react-icons/lib/fa/unlock-alt.d.ts | 3 +- types/react-icons/lib/fa/unlock.d.ts | 3 +- types/react-icons/lib/fa/upload.d.ts | 3 +- types/react-icons/lib/fa/usb.d.ts | 3 +- types/react-icons/lib/fa/user-md.d.ts | 3 +- types/react-icons/lib/fa/user-plus.d.ts | 3 +- types/react-icons/lib/fa/user-secret.d.ts | 3 +- types/react-icons/lib/fa/user-times.d.ts | 3 +- types/react-icons/lib/fa/user.d.ts | 3 +- types/react-icons/lib/fa/venus-double.d.ts | 3 +- types/react-icons/lib/fa/venus-mars.d.ts | 3 +- types/react-icons/lib/fa/venus.d.ts | 3 +- types/react-icons/lib/fa/viacoin.d.ts | 3 +- types/react-icons/lib/fa/viadeo-square.d.ts | 3 +- types/react-icons/lib/fa/viadeo.d.ts | 3 +- types/react-icons/lib/fa/video-camera.d.ts | 3 +- types/react-icons/lib/fa/vimeo-square.d.ts | 3 +- types/react-icons/lib/fa/vimeo.d.ts | 3 +- types/react-icons/lib/fa/vine.d.ts | 3 +- types/react-icons/lib/fa/vk.d.ts | 3 +- .../lib/fa/volume-control-phone.d.ts | 3 +- types/react-icons/lib/fa/volume-down.d.ts | 3 +- types/react-icons/lib/fa/volume-off.d.ts | 3 +- types/react-icons/lib/fa/volume-up.d.ts | 3 +- types/react-icons/lib/fa/wechat.d.ts | 3 +- types/react-icons/lib/fa/weibo.d.ts | 3 +- types/react-icons/lib/fa/whatsapp.d.ts | 3 +- types/react-icons/lib/fa/wheelchair-alt.d.ts | 3 +- types/react-icons/lib/fa/wheelchair.d.ts | 3 +- types/react-icons/lib/fa/wifi.d.ts | 3 +- types/react-icons/lib/fa/wikipedia-w.d.ts | 3 +- types/react-icons/lib/fa/windows.d.ts | 3 +- types/react-icons/lib/fa/wordpress.d.ts | 3 +- types/react-icons/lib/fa/wpbeginner.d.ts | 3 +- types/react-icons/lib/fa/wpforms.d.ts | 3 +- types/react-icons/lib/fa/wrench.d.ts | 3 +- types/react-icons/lib/fa/xing-square.d.ts | 3 +- types/react-icons/lib/fa/xing.d.ts | 3 +- types/react-icons/lib/fa/y-combinator.d.ts | 3 +- types/react-icons/lib/fa/yahoo.d.ts | 3 +- types/react-icons/lib/fa/yelp.d.ts | 3 +- types/react-icons/lib/fa/youtube-play.d.ts | 3 +- types/react-icons/lib/fa/youtube-square.d.ts | 3 +- types/react-icons/lib/fa/youtube.d.ts | 3 +- types/react-icons/lib/go/alert.d.ts | 3 +- types/react-icons/lib/go/alignment-align.d.ts | 3 +- .../lib/go/alignment-aligned-to.d.ts | 3 +- .../react-icons/lib/go/alignment-unalign.d.ts | 3 +- types/react-icons/lib/go/arrow-down.d.ts | 3 +- types/react-icons/lib/go/arrow-left.d.ts | 3 +- types/react-icons/lib/go/arrow-right.d.ts | 3 +- .../react-icons/lib/go/arrow-small-down.d.ts | 3 +- .../react-icons/lib/go/arrow-small-left.d.ts | 3 +- .../react-icons/lib/go/arrow-small-right.d.ts | 3 +- types/react-icons/lib/go/arrow-small-up.d.ts | 3 +- types/react-icons/lib/go/arrow-up.d.ts | 3 +- types/react-icons/lib/go/beer.d.ts | 3 +- types/react-icons/lib/go/book.d.ts | 3 +- types/react-icons/lib/go/bookmark.d.ts | 3 +- types/react-icons/lib/go/briefcase.d.ts | 3 +- types/react-icons/lib/go/broadcast.d.ts | 3 +- types/react-icons/lib/go/browser.d.ts | 3 +- types/react-icons/lib/go/bug.d.ts | 3 +- types/react-icons/lib/go/calendar.d.ts | 3 +- types/react-icons/lib/go/check.d.ts | 3 +- types/react-icons/lib/go/checklist.d.ts | 3 +- types/react-icons/lib/go/chevron-down.d.ts | 3 +- types/react-icons/lib/go/chevron-left.d.ts | 3 +- types/react-icons/lib/go/chevron-right.d.ts | 3 +- types/react-icons/lib/go/chevron-up.d.ts | 3 +- types/react-icons/lib/go/circle-slash.d.ts | 3 +- types/react-icons/lib/go/circuit-board.d.ts | 3 +- types/react-icons/lib/go/clippy.d.ts | 3 +- types/react-icons/lib/go/clock.d.ts | 3 +- types/react-icons/lib/go/cloud-download.d.ts | 3 +- types/react-icons/lib/go/cloud-upload.d.ts | 3 +- types/react-icons/lib/go/code.d.ts | 3 +- types/react-icons/lib/go/color-mode.d.ts | 3 +- .../lib/go/comment-discussion.d.ts | 3 +- types/react-icons/lib/go/comment.d.ts | 3 +- types/react-icons/lib/go/credit-card.d.ts | 3 +- types/react-icons/lib/go/dash.d.ts | 3 +- types/react-icons/lib/go/dashboard.d.ts | 3 +- types/react-icons/lib/go/database.d.ts | 3 +- .../lib/go/device-camera-video.d.ts | 3 +- types/react-icons/lib/go/device-camera.d.ts | 3 +- types/react-icons/lib/go/device-desktop.d.ts | 3 +- types/react-icons/lib/go/device-mobile.d.ts | 3 +- types/react-icons/lib/go/diff-added.d.ts | 3 +- types/react-icons/lib/go/diff-ignored.d.ts | 3 +- types/react-icons/lib/go/diff-modified.d.ts | 3 +- types/react-icons/lib/go/diff-removed.d.ts | 3 +- types/react-icons/lib/go/diff-renamed.d.ts | 3 +- types/react-icons/lib/go/diff.d.ts | 3 +- types/react-icons/lib/go/ellipsis.d.ts | 3 +- types/react-icons/lib/go/eye.d.ts | 3 +- types/react-icons/lib/go/file-binary.d.ts | 3 +- types/react-icons/lib/go/file-code.d.ts | 3 +- types/react-icons/lib/go/file-directory.d.ts | 3 +- types/react-icons/lib/go/file-media.d.ts | 3 +- types/react-icons/lib/go/file-pdf.d.ts | 3 +- types/react-icons/lib/go/file-submodule.d.ts | 3 +- .../lib/go/file-symlink-directory.d.ts | 3 +- .../react-icons/lib/go/file-symlink-file.d.ts | 3 +- types/react-icons/lib/go/file-text.d.ts | 3 +- types/react-icons/lib/go/file-zip.d.ts | 3 +- types/react-icons/lib/go/flame.d.ts | 3 +- types/react-icons/lib/go/fold.d.ts | 3 +- types/react-icons/lib/go/gear.d.ts | 3 +- types/react-icons/lib/go/gift.d.ts | 3 +- types/react-icons/lib/go/gist-secret.d.ts | 3 +- types/react-icons/lib/go/gist.d.ts | 3 +- types/react-icons/lib/go/git-branch.d.ts | 3 +- types/react-icons/lib/go/git-commit.d.ts | 3 +- types/react-icons/lib/go/git-compare.d.ts | 3 +- types/react-icons/lib/go/git-merge.d.ts | 3 +- .../react-icons/lib/go/git-pull-request.d.ts | 3 +- types/react-icons/lib/go/globe.d.ts | 3 +- types/react-icons/lib/go/graph.d.ts | 3 +- types/react-icons/lib/go/heart.d.ts | 3 +- types/react-icons/lib/go/history.d.ts | 3 +- types/react-icons/lib/go/home.d.ts | 3 +- types/react-icons/lib/go/horizontal-rule.d.ts | 3 +- types/react-icons/lib/go/hourglass.d.ts | 3 +- types/react-icons/lib/go/hubot.d.ts | 3 +- types/react-icons/lib/go/inbox.d.ts | 3 +- types/react-icons/lib/go/index.d.ts | 354 +-- types/react-icons/lib/go/info.d.ts | 3 +- types/react-icons/lib/go/issue-closed.d.ts | 3 +- types/react-icons/lib/go/issue-opened.d.ts | 3 +- types/react-icons/lib/go/issue-reopened.d.ts | 3 +- types/react-icons/lib/go/jersey.d.ts | 3 +- types/react-icons/lib/go/jump-down.d.ts | 3 +- types/react-icons/lib/go/jump-left.d.ts | 3 +- types/react-icons/lib/go/jump-right.d.ts | 3 +- types/react-icons/lib/go/jump-up.d.ts | 3 +- types/react-icons/lib/go/key.d.ts | 3 +- types/react-icons/lib/go/keyboard.d.ts | 3 +- types/react-icons/lib/go/law.d.ts | 3 +- types/react-icons/lib/go/light-bulb.d.ts | 3 +- types/react-icons/lib/go/link-external.d.ts | 3 +- types/react-icons/lib/go/link.d.ts | 3 +- types/react-icons/lib/go/list-ordered.d.ts | 3 +- types/react-icons/lib/go/list-unordered.d.ts | 3 +- types/react-icons/lib/go/location.d.ts | 3 +- types/react-icons/lib/go/lock.d.ts | 3 +- types/react-icons/lib/go/logo-github.d.ts | 3 +- types/react-icons/lib/go/mail-read.d.ts | 3 +- types/react-icons/lib/go/mail-reply.d.ts | 3 +- types/react-icons/lib/go/mail.d.ts | 3 +- types/react-icons/lib/go/mark-github.d.ts | 3 +- types/react-icons/lib/go/markdown.d.ts | 3 +- types/react-icons/lib/go/megaphone.d.ts | 3 +- types/react-icons/lib/go/mention.d.ts | 3 +- types/react-icons/lib/go/microscope.d.ts | 3 +- types/react-icons/lib/go/milestone.d.ts | 3 +- types/react-icons/lib/go/mirror.d.ts | 3 +- types/react-icons/lib/go/mortar-board.d.ts | 3 +- types/react-icons/lib/go/move-down.d.ts | 3 +- types/react-icons/lib/go/move-left.d.ts | 3 +- types/react-icons/lib/go/move-right.d.ts | 3 +- types/react-icons/lib/go/move-up.d.ts | 3 +- types/react-icons/lib/go/mute.d.ts | 3 +- types/react-icons/lib/go/no-newline.d.ts | 3 +- types/react-icons/lib/go/octoface.d.ts | 3 +- types/react-icons/lib/go/organization.d.ts | 3 +- types/react-icons/lib/go/package.d.ts | 3 +- types/react-icons/lib/go/paintcan.d.ts | 3 +- types/react-icons/lib/go/pencil.d.ts | 3 +- types/react-icons/lib/go/person.d.ts | 3 +- types/react-icons/lib/go/pin.d.ts | 3 +- .../lib/go/playback-fast-forward.d.ts | 3 +- types/react-icons/lib/go/playback-pause.d.ts | 3 +- types/react-icons/lib/go/playback-play.d.ts | 3 +- types/react-icons/lib/go/playback-rewind.d.ts | 3 +- types/react-icons/lib/go/plug.d.ts | 3 +- types/react-icons/lib/go/plus.d.ts | 3 +- types/react-icons/lib/go/podium.d.ts | 3 +- types/react-icons/lib/go/primitive-dot.d.ts | 3 +- .../react-icons/lib/go/primitive-square.d.ts | 3 +- types/react-icons/lib/go/pulse.d.ts | 3 +- types/react-icons/lib/go/puzzle.d.ts | 3 +- types/react-icons/lib/go/question.d.ts | 3 +- types/react-icons/lib/go/quote.d.ts | 3 +- types/react-icons/lib/go/radio-tower.d.ts | 3 +- types/react-icons/lib/go/repo-clone.d.ts | 3 +- types/react-icons/lib/go/repo-force-push.d.ts | 3 +- types/react-icons/lib/go/repo-forked.d.ts | 3 +- types/react-icons/lib/go/repo-pull.d.ts | 3 +- types/react-icons/lib/go/repo-push.d.ts | 3 +- types/react-icons/lib/go/repo.d.ts | 3 +- types/react-icons/lib/go/rocket.d.ts | 3 +- types/react-icons/lib/go/rss.d.ts | 3 +- types/react-icons/lib/go/ruby.d.ts | 3 +- types/react-icons/lib/go/screen-full.d.ts | 3 +- types/react-icons/lib/go/screen-normal.d.ts | 3 +- types/react-icons/lib/go/search.d.ts | 3 +- types/react-icons/lib/go/server.d.ts | 3 +- types/react-icons/lib/go/settings.d.ts | 3 +- types/react-icons/lib/go/sign-in.d.ts | 3 +- types/react-icons/lib/go/sign-out.d.ts | 3 +- types/react-icons/lib/go/split.d.ts | 3 +- types/react-icons/lib/go/squirrel.d.ts | 3 +- types/react-icons/lib/go/star.d.ts | 3 +- types/react-icons/lib/go/steps.d.ts | 3 +- types/react-icons/lib/go/stop.d.ts | 3 +- types/react-icons/lib/go/sync.d.ts | 3 +- types/react-icons/lib/go/tag.d.ts | 3 +- types/react-icons/lib/go/telescope.d.ts | 3 +- types/react-icons/lib/go/terminal.d.ts | 3 +- types/react-icons/lib/go/three-bars.d.ts | 3 +- types/react-icons/lib/go/tools.d.ts | 3 +- types/react-icons/lib/go/trashcan.d.ts | 3 +- types/react-icons/lib/go/triangle-down.d.ts | 3 +- types/react-icons/lib/go/triangle-left.d.ts | 3 +- types/react-icons/lib/go/triangle-right.d.ts | 3 +- types/react-icons/lib/go/triangle-up.d.ts | 3 +- types/react-icons/lib/go/unfold.d.ts | 3 +- types/react-icons/lib/go/unmute.d.ts | 3 +- types/react-icons/lib/go/versions.d.ts | 3 +- types/react-icons/lib/go/x.d.ts | 3 +- types/react-icons/lib/go/zap.d.ts | 3 +- types/react-icons/lib/io/alert-circled.d.ts | 3 +- types/react-icons/lib/io/alert.d.ts | 3 +- .../lib/io/android-add-circle.d.ts | 3 +- types/react-icons/lib/io/android-add.d.ts | 3 +- .../lib/io/android-alarm-clock.d.ts | 3 +- types/react-icons/lib/io/android-alert.d.ts | 3 +- types/react-icons/lib/io/android-apps.d.ts | 3 +- types/react-icons/lib/io/android-archive.d.ts | 3 +- .../lib/io/android-arrow-back.d.ts | 3 +- .../lib/io/android-arrow-down.d.ts | 3 +- .../lib/io/android-arrow-dropdown-circle.d.ts | 3 +- .../lib/io/android-arrow-dropdown.d.ts | 3 +- .../lib/io/android-arrow-dropleft-circle.d.ts | 3 +- .../lib/io/android-arrow-dropleft.d.ts | 3 +- .../io/android-arrow-dropright-circle.d.ts | 3 +- .../lib/io/android-arrow-dropright.d.ts | 3 +- .../lib/io/android-arrow-dropup-circle.d.ts | 3 +- .../lib/io/android-arrow-dropup.d.ts | 3 +- .../lib/io/android-arrow-forward.d.ts | 3 +- .../react-icons/lib/io/android-arrow-up.d.ts | 3 +- types/react-icons/lib/io/android-attach.d.ts | 3 +- types/react-icons/lib/io/android-bar.d.ts | 3 +- types/react-icons/lib/io/android-bicycle.d.ts | 3 +- types/react-icons/lib/io/android-boat.d.ts | 3 +- .../react-icons/lib/io/android-bookmark.d.ts | 3 +- types/react-icons/lib/io/android-bulb.d.ts | 3 +- types/react-icons/lib/io/android-bus.d.ts | 3 +- .../react-icons/lib/io/android-calendar.d.ts | 3 +- types/react-icons/lib/io/android-call.d.ts | 3 +- types/react-icons/lib/io/android-camera.d.ts | 3 +- types/react-icons/lib/io/android-cancel.d.ts | 3 +- types/react-icons/lib/io/android-car.d.ts | 3 +- types/react-icons/lib/io/android-cart.d.ts | 3 +- types/react-icons/lib/io/android-chat.d.ts | 3 +- .../lib/io/android-checkbox-blank.d.ts | 3 +- .../io/android-checkbox-outline-blank.d.ts | 3 +- .../lib/io/android-checkbox-outline.d.ts | 3 +- .../react-icons/lib/io/android-checkbox.d.ts | 3 +- .../lib/io/android-checkmark-circle.d.ts | 3 +- .../react-icons/lib/io/android-clipboard.d.ts | 3 +- types/react-icons/lib/io/android-close.d.ts | 3 +- .../lib/io/android-cloud-circle.d.ts | 3 +- .../lib/io/android-cloud-done.d.ts | 3 +- .../lib/io/android-cloud-outline.d.ts | 3 +- types/react-icons/lib/io/android-cloud.d.ts | 3 +- .../lib/io/android-color-palette.d.ts | 3 +- types/react-icons/lib/io/android-compass.d.ts | 3 +- types/react-icons/lib/io/android-contact.d.ts | 3 +- .../react-icons/lib/io/android-contacts.d.ts | 3 +- .../react-icons/lib/io/android-contract.d.ts | 3 +- types/react-icons/lib/io/android-create.d.ts | 3 +- types/react-icons/lib/io/android-delete.d.ts | 3 +- types/react-icons/lib/io/android-desktop.d.ts | 3 +- .../react-icons/lib/io/android-document.d.ts | 3 +- .../react-icons/lib/io/android-done-all.d.ts | 3 +- types/react-icons/lib/io/android-done.d.ts | 3 +- .../react-icons/lib/io/android-download.d.ts | 3 +- types/react-icons/lib/io/android-drafts.d.ts | 3 +- types/react-icons/lib/io/android-exit.d.ts | 3 +- types/react-icons/lib/io/android-expand.d.ts | 3 +- .../lib/io/android-favorite-outline.d.ts | 3 +- .../react-icons/lib/io/android-favorite.d.ts | 3 +- types/react-icons/lib/io/android-film.d.ts | 3 +- .../lib/io/android-folder-open.d.ts | 3 +- types/react-icons/lib/io/android-folder.d.ts | 3 +- types/react-icons/lib/io/android-funnel.d.ts | 3 +- types/react-icons/lib/io/android-globe.d.ts | 3 +- types/react-icons/lib/io/android-hand.d.ts | 3 +- types/react-icons/lib/io/android-hangout.d.ts | 3 +- types/react-icons/lib/io/android-happy.d.ts | 3 +- types/react-icons/lib/io/android-home.d.ts | 3 +- types/react-icons/lib/io/android-image.d.ts | 3 +- types/react-icons/lib/io/android-laptop.d.ts | 3 +- types/react-icons/lib/io/android-list.d.ts | 3 +- types/react-icons/lib/io/android-locate.d.ts | 3 +- types/react-icons/lib/io/android-lock.d.ts | 3 +- types/react-icons/lib/io/android-mail.d.ts | 3 +- types/react-icons/lib/io/android-map.d.ts | 3 +- types/react-icons/lib/io/android-menu.d.ts | 3 +- .../lib/io/android-microphone-off.d.ts | 3 +- .../lib/io/android-microphone.d.ts | 3 +- .../lib/io/android-more-horizontal.d.ts | 3 +- .../lib/io/android-more-vertical.d.ts | 3 +- .../react-icons/lib/io/android-navigate.d.ts | 3 +- .../lib/io/android-notifications-none.d.ts | 3 +- .../lib/io/android-notifications-off.d.ts | 3 +- .../lib/io/android-notifications.d.ts | 3 +- types/react-icons/lib/io/android-open.d.ts | 3 +- types/react-icons/lib/io/android-options.d.ts | 3 +- types/react-icons/lib/io/android-people.d.ts | 3 +- .../lib/io/android-person-add.d.ts | 3 +- types/react-icons/lib/io/android-person.d.ts | 3 +- .../lib/io/android-phone-landscape.d.ts | 3 +- .../lib/io/android-phone-portrait.d.ts | 3 +- types/react-icons/lib/io/android-pin.d.ts | 3 +- types/react-icons/lib/io/android-plane.d.ts | 3 +- .../react-icons/lib/io/android-playstore.d.ts | 3 +- types/react-icons/lib/io/android-print.d.ts | 3 +- .../lib/io/android-radio-button-off.d.ts | 3 +- .../lib/io/android-radio-button-on.d.ts | 3 +- types/react-icons/lib/io/android-refresh.d.ts | 3 +- .../lib/io/android-remove-circle.d.ts | 3 +- types/react-icons/lib/io/android-remove.d.ts | 3 +- .../lib/io/android-restaurant.d.ts | 3 +- types/react-icons/lib/io/android-sad.d.ts | 3 +- types/react-icons/lib/io/android-search.d.ts | 3 +- types/react-icons/lib/io/android-send.d.ts | 3 +- .../react-icons/lib/io/android-settings.d.ts | 3 +- .../react-icons/lib/io/android-share-alt.d.ts | 3 +- types/react-icons/lib/io/android-share.d.ts | 3 +- .../react-icons/lib/io/android-star-half.d.ts | 3 +- .../lib/io/android-star-outline.d.ts | 3 +- types/react-icons/lib/io/android-star.d.ts | 3 +- .../react-icons/lib/io/android-stopwatch.d.ts | 3 +- types/react-icons/lib/io/android-subway.d.ts | 3 +- types/react-icons/lib/io/android-sunny.d.ts | 3 +- types/react-icons/lib/io/android-sync.d.ts | 3 +- types/react-icons/lib/io/android-textsms.d.ts | 3 +- types/react-icons/lib/io/android-time.d.ts | 3 +- types/react-icons/lib/io/android-train.d.ts | 3 +- types/react-icons/lib/io/android-unlock.d.ts | 3 +- types/react-icons/lib/io/android-upload.d.ts | 3 +- .../lib/io/android-volume-down.d.ts | 3 +- .../lib/io/android-volume-mute.d.ts | 3 +- .../lib/io/android-volume-off.d.ts | 3 +- .../react-icons/lib/io/android-volume-up.d.ts | 3 +- types/react-icons/lib/io/android-walk.d.ts | 3 +- types/react-icons/lib/io/android-warning.d.ts | 3 +- types/react-icons/lib/io/android-watch.d.ts | 3 +- types/react-icons/lib/io/android-wifi.d.ts | 3 +- types/react-icons/lib/io/aperture.d.ts | 3 +- types/react-icons/lib/io/archive.d.ts | 3 +- types/react-icons/lib/io/arrow-down-a.d.ts | 3 +- types/react-icons/lib/io/arrow-down-b.d.ts | 3 +- types/react-icons/lib/io/arrow-down-c.d.ts | 3 +- types/react-icons/lib/io/arrow-expand.d.ts | 3 +- .../lib/io/arrow-graph-down-left.d.ts | 3 +- .../lib/io/arrow-graph-down-right.d.ts | 3 +- .../lib/io/arrow-graph-up-left.d.ts | 3 +- .../lib/io/arrow-graph-up-right.d.ts | 3 +- types/react-icons/lib/io/arrow-left-a.d.ts | 3 +- types/react-icons/lib/io/arrow-left-b.d.ts | 3 +- types/react-icons/lib/io/arrow-left-c.d.ts | 3 +- types/react-icons/lib/io/arrow-move.d.ts | 3 +- types/react-icons/lib/io/arrow-resize.d.ts | 3 +- .../react-icons/lib/io/arrow-return-left.d.ts | 3 +- .../lib/io/arrow-return-right.d.ts | 3 +- types/react-icons/lib/io/arrow-right-a.d.ts | 3 +- types/react-icons/lib/io/arrow-right-b.d.ts | 3 +- types/react-icons/lib/io/arrow-right-c.d.ts | 3 +- types/react-icons/lib/io/arrow-shrink.d.ts | 3 +- types/react-icons/lib/io/arrow-swap.d.ts | 3 +- types/react-icons/lib/io/arrow-up-a.d.ts | 3 +- types/react-icons/lib/io/arrow-up-b.d.ts | 3 +- types/react-icons/lib/io/arrow-up-c.d.ts | 3 +- types/react-icons/lib/io/asterisk.d.ts | 3 +- types/react-icons/lib/io/at.d.ts | 3 +- .../react-icons/lib/io/backspace-outline.d.ts | 3 +- types/react-icons/lib/io/backspace.d.ts | 3 +- types/react-icons/lib/io/bag.d.ts | 3 +- .../react-icons/lib/io/battery-charging.d.ts | 3 +- types/react-icons/lib/io/battery-empty.d.ts | 3 +- types/react-icons/lib/io/battery-full.d.ts | 3 +- types/react-icons/lib/io/battery-half.d.ts | 3 +- types/react-icons/lib/io/battery-low.d.ts | 3 +- types/react-icons/lib/io/beaker.d.ts | 3 +- types/react-icons/lib/io/beer.d.ts | 3 +- types/react-icons/lib/io/bluetooth.d.ts | 3 +- types/react-icons/lib/io/bonfire.d.ts | 3 +- types/react-icons/lib/io/bookmark.d.ts | 3 +- types/react-icons/lib/io/bowtie.d.ts | 3 +- types/react-icons/lib/io/briefcase.d.ts | 3 +- types/react-icons/lib/io/bug.d.ts | 3 +- types/react-icons/lib/io/calculator.d.ts | 3 +- types/react-icons/lib/io/calendar.d.ts | 3 +- types/react-icons/lib/io/camera.d.ts | 3 +- types/react-icons/lib/io/card.d.ts | 3 +- types/react-icons/lib/io/cash.d.ts | 3 +- types/react-icons/lib/io/chatbox-working.d.ts | 3 +- types/react-icons/lib/io/chatbox.d.ts | 3 +- types/react-icons/lib/io/chatboxes.d.ts | 3 +- .../lib/io/chatbubble-working.d.ts | 3 +- types/react-icons/lib/io/chatbubble.d.ts | 3 +- types/react-icons/lib/io/chatbubbles.d.ts | 3 +- .../react-icons/lib/io/checkmark-circled.d.ts | 3 +- types/react-icons/lib/io/checkmark-round.d.ts | 3 +- types/react-icons/lib/io/checkmark.d.ts | 3 +- types/react-icons/lib/io/chevron-down.d.ts | 3 +- types/react-icons/lib/io/chevron-left.d.ts | 3 +- types/react-icons/lib/io/chevron-right.d.ts | 3 +- types/react-icons/lib/io/chevron-up.d.ts | 3 +- types/react-icons/lib/io/clipboard.d.ts | 3 +- types/react-icons/lib/io/clock.d.ts | 3 +- types/react-icons/lib/io/close-circled.d.ts | 3 +- types/react-icons/lib/io/close-round.d.ts | 3 +- types/react-icons/lib/io/close.d.ts | 3 +- .../react-icons/lib/io/closed-captioning.d.ts | 3 +- types/react-icons/lib/io/cloud.d.ts | 3 +- types/react-icons/lib/io/code-download.d.ts | 3 +- types/react-icons/lib/io/code-working.d.ts | 3 +- types/react-icons/lib/io/code.d.ts | 3 +- types/react-icons/lib/io/coffee.d.ts | 3 +- types/react-icons/lib/io/compass.d.ts | 3 +- types/react-icons/lib/io/compose.d.ts | 3 +- types/react-icons/lib/io/connectbars.d.ts | 3 +- types/react-icons/lib/io/contrast.d.ts | 3 +- types/react-icons/lib/io/crop.d.ts | 3 +- types/react-icons/lib/io/cube.d.ts | 3 +- types/react-icons/lib/io/disc.d.ts | 3 +- types/react-icons/lib/io/document-text.d.ts | 3 +- types/react-icons/lib/io/document.d.ts | 3 +- types/react-icons/lib/io/drag.d.ts | 3 +- types/react-icons/lib/io/earth.d.ts | 3 +- types/react-icons/lib/io/easel.d.ts | 3 +- types/react-icons/lib/io/edit.d.ts | 3 +- types/react-icons/lib/io/egg.d.ts | 3 +- types/react-icons/lib/io/eject.d.ts | 3 +- types/react-icons/lib/io/email-unread.d.ts | 3 +- types/react-icons/lib/io/email.d.ts | 3 +- .../lib/io/erlenmeyer-flask-bubbles.d.ts | 3 +- .../react-icons/lib/io/erlenmeyer-flask.d.ts | 3 +- types/react-icons/lib/io/eye-disabled.d.ts | 3 +- types/react-icons/lib/io/eye.d.ts | 3 +- types/react-icons/lib/io/female.d.ts | 3 +- types/react-icons/lib/io/filing.d.ts | 3 +- types/react-icons/lib/io/film-marker.d.ts | 3 +- types/react-icons/lib/io/fireball.d.ts | 3 +- types/react-icons/lib/io/flag.d.ts | 3 +- types/react-icons/lib/io/flame.d.ts | 3 +- types/react-icons/lib/io/flash-off.d.ts | 3 +- types/react-icons/lib/io/flash.d.ts | 3 +- types/react-icons/lib/io/folder.d.ts | 3 +- types/react-icons/lib/io/fork-repo.d.ts | 3 +- types/react-icons/lib/io/fork.d.ts | 3 +- types/react-icons/lib/io/forward.d.ts | 3 +- types/react-icons/lib/io/funnel.d.ts | 3 +- types/react-icons/lib/io/gear-a.d.ts | 3 +- types/react-icons/lib/io/gear-b.d.ts | 3 +- types/react-icons/lib/io/grid.d.ts | 3 +- types/react-icons/lib/io/hammer.d.ts | 3 +- types/react-icons/lib/io/happy-outline.d.ts | 3 +- types/react-icons/lib/io/happy.d.ts | 3 +- types/react-icons/lib/io/headphone.d.ts | 3 +- types/react-icons/lib/io/heart-broken.d.ts | 3 +- types/react-icons/lib/io/heart.d.ts | 3 +- types/react-icons/lib/io/help-buoy.d.ts | 3 +- types/react-icons/lib/io/help-circled.d.ts | 3 +- types/react-icons/lib/io/help.d.ts | 3 +- types/react-icons/lib/io/home.d.ts | 3 +- types/react-icons/lib/io/icecream.d.ts | 3 +- types/react-icons/lib/io/image.d.ts | 3 +- types/react-icons/lib/io/images.d.ts | 3 +- types/react-icons/lib/io/index.d.ts | 1466 ++++++------- types/react-icons/lib/io/informatcircled.d.ts | 3 +- types/react-icons/lib/io/information.d.ts | 3 +- types/react-icons/lib/io/ionic.d.ts | 3 +- .../react-icons/lib/io/ios-alarm-outline.d.ts | 3 +- types/react-icons/lib/io/ios-alarm.d.ts | 3 +- .../lib/io/ios-albums-outline.d.ts | 3 +- types/react-icons/lib/io/ios-albums.d.ts | 3 +- .../lib/io/ios-americanfootball-outline.d.ts | 3 +- .../lib/io/ios-americanfootball.d.ts | 3 +- .../lib/io/ios-analytics-outline.d.ts | 3 +- types/react-icons/lib/io/ios-analytics.d.ts | 3 +- types/react-icons/lib/io/ios-arrow-back.d.ts | 3 +- types/react-icons/lib/io/ios-arrow-down.d.ts | 3 +- .../react-icons/lib/io/ios-arrow-forward.d.ts | 3 +- types/react-icons/lib/io/ios-arrow-left.d.ts | 3 +- types/react-icons/lib/io/ios-arrow-right.d.ts | 3 +- .../lib/io/ios-arrow-thin-down.d.ts | 3 +- .../lib/io/ios-arrow-thin-left.d.ts | 3 +- .../lib/io/ios-arrow-thin-right.d.ts | 3 +- .../react-icons/lib/io/ios-arrow-thin-up.d.ts | 3 +- types/react-icons/lib/io/ios-arrow-up.d.ts | 3 +- types/react-icons/lib/io/ios-at-outline.d.ts | 3 +- types/react-icons/lib/io/ios-at.d.ts | 3 +- .../lib/io/ios-barcode-outline.d.ts | 3 +- types/react-icons/lib/io/ios-barcode.d.ts | 3 +- .../lib/io/ios-baseball-outline.d.ts | 3 +- types/react-icons/lib/io/ios-baseball.d.ts | 3 +- .../lib/io/ios-basketball-outline.d.ts | 3 +- types/react-icons/lib/io/ios-basketball.d.ts | 3 +- .../react-icons/lib/io/ios-bell-outline.d.ts | 3 +- types/react-icons/lib/io/ios-bell.d.ts | 3 +- .../react-icons/lib/io/ios-body-outline.d.ts | 3 +- types/react-icons/lib/io/ios-body.d.ts | 3 +- .../react-icons/lib/io/ios-bolt-outline.d.ts | 3 +- types/react-icons/lib/io/ios-bolt.d.ts | 3 +- .../react-icons/lib/io/ios-book-outline.d.ts | 3 +- types/react-icons/lib/io/ios-book.d.ts | 3 +- .../lib/io/ios-bookmarks-outline.d.ts | 3 +- types/react-icons/lib/io/ios-bookmarks.d.ts | 3 +- types/react-icons/lib/io/ios-box-outline.d.ts | 3 +- types/react-icons/lib/io/ios-box.d.ts | 3 +- .../lib/io/ios-briefcase-outline.d.ts | 3 +- types/react-icons/lib/io/ios-briefcase.d.ts | 3 +- .../lib/io/ios-browsers-outline.d.ts | 3 +- types/react-icons/lib/io/ios-browsers.d.ts | 3 +- .../lib/io/ios-calculator-outline.d.ts | 3 +- types/react-icons/lib/io/ios-calculator.d.ts | 3 +- .../lib/io/ios-calendar-outline.d.ts | 3 +- types/react-icons/lib/io/ios-calendar.d.ts | 3 +- .../lib/io/ios-camera-outline.d.ts | 3 +- types/react-icons/lib/io/ios-camera.d.ts | 3 +- .../react-icons/lib/io/ios-cart-outline.d.ts | 3 +- types/react-icons/lib/io/ios-cart.d.ts | 3 +- .../lib/io/ios-chatboxes-outline.d.ts | 3 +- types/react-icons/lib/io/ios-chatboxes.d.ts | 3 +- .../lib/io/ios-chatbubble-outline.d.ts | 3 +- types/react-icons/lib/io/ios-chatbubble.d.ts | 3 +- .../lib/io/ios-checkmark-empty.d.ts | 3 +- .../lib/io/ios-checkmark-outline.d.ts | 3 +- types/react-icons/lib/io/ios-checkmark.d.ts | 3 +- .../react-icons/lib/io/ios-circle-filled.d.ts | 3 +- .../lib/io/ios-circle-outline.d.ts | 3 +- .../react-icons/lib/io/ios-clock-outline.d.ts | 3 +- types/react-icons/lib/io/ios-clock.d.ts | 3 +- types/react-icons/lib/io/ios-close-empty.d.ts | 3 +- .../react-icons/lib/io/ios-close-outline.d.ts | 3 +- types/react-icons/lib/io/ios-close.d.ts | 3 +- .../lib/io/ios-cloud-download-outline.d.ts | 3 +- .../lib/io/ios-cloud-download.d.ts | 3 +- .../react-icons/lib/io/ios-cloud-outline.d.ts | 3 +- .../lib/io/ios-cloud-upload-outline.d.ts | 3 +- .../react-icons/lib/io/ios-cloud-upload.d.ts | 3 +- types/react-icons/lib/io/ios-cloud.d.ts | 3 +- .../lib/io/ios-cloudy-night-outline.d.ts | 3 +- .../react-icons/lib/io/ios-cloudy-night.d.ts | 3 +- .../lib/io/ios-cloudy-outline.d.ts | 3 +- types/react-icons/lib/io/ios-cloudy.d.ts | 3 +- types/react-icons/lib/io/ios-cog-outline.d.ts | 3 +- types/react-icons/lib/io/ios-cog.d.ts | 3 +- .../lib/io/ios-color-filter-outline.d.ts | 3 +- .../react-icons/lib/io/ios-color-filter.d.ts | 3 +- .../lib/io/ios-color-wand-outline.d.ts | 3 +- types/react-icons/lib/io/ios-color-wand.d.ts | 3 +- .../lib/io/ios-compose-outline.d.ts | 3 +- types/react-icons/lib/io/ios-compose.d.ts | 3 +- .../lib/io/ios-contact-outline.d.ts | 3 +- types/react-icons/lib/io/ios-contact.d.ts | 3 +- .../react-icons/lib/io/ios-copy-outline.d.ts | 3 +- types/react-icons/lib/io/ios-copy.d.ts | 3 +- types/react-icons/lib/io/ios-crop-strong.d.ts | 3 +- types/react-icons/lib/io/ios-crop.d.ts | 3 +- .../lib/io/ios-download-outline.d.ts | 3 +- types/react-icons/lib/io/ios-download.d.ts | 3 +- types/react-icons/lib/io/ios-drag.d.ts | 3 +- .../react-icons/lib/io/ios-email-outline.d.ts | 3 +- types/react-icons/lib/io/ios-email.d.ts | 3 +- types/react-icons/lib/io/ios-eye-outline.d.ts | 3 +- types/react-icons/lib/io/ios-eye.d.ts | 3 +- .../lib/io/ios-fastforward-outline.d.ts | 3 +- types/react-icons/lib/io/ios-fastforward.d.ts | 3 +- .../lib/io/ios-filing-outline.d.ts | 3 +- types/react-icons/lib/io/ios-filing.d.ts | 3 +- .../react-icons/lib/io/ios-film-outline.d.ts | 3 +- types/react-icons/lib/io/ios-film.d.ts | 3 +- .../react-icons/lib/io/ios-flag-outline.d.ts | 3 +- types/react-icons/lib/io/ios-flag.d.ts | 3 +- .../react-icons/lib/io/ios-flame-outline.d.ts | 3 +- types/react-icons/lib/io/ios-flame.d.ts | 3 +- .../react-icons/lib/io/ios-flask-outline.d.ts | 3 +- types/react-icons/lib/io/ios-flask.d.ts | 3 +- .../lib/io/ios-flower-outline.d.ts | 3 +- types/react-icons/lib/io/ios-flower.d.ts | 3 +- .../lib/io/ios-folder-outline.d.ts | 3 +- types/react-icons/lib/io/ios-folder.d.ts | 3 +- .../lib/io/ios-football-outline.d.ts | 3 +- types/react-icons/lib/io/ios-football.d.ts | 3 +- .../lib/io/ios-game-controller-a-outline.d.ts | 3 +- .../lib/io/ios-game-controller-a.d.ts | 3 +- .../lib/io/ios-game-controller-b-outline.d.ts | 3 +- .../lib/io/ios-game-controller-b.d.ts | 3 +- .../react-icons/lib/io/ios-gear-outline.d.ts | 3 +- types/react-icons/lib/io/ios-gear.d.ts | 3 +- .../lib/io/ios-glasses-outline.d.ts | 3 +- types/react-icons/lib/io/ios-glasses.d.ts | 3 +- .../lib/io/ios-grid-view-outline.d.ts | 3 +- types/react-icons/lib/io/ios-grid-view.d.ts | 3 +- .../react-icons/lib/io/ios-heart-outline.d.ts | 3 +- types/react-icons/lib/io/ios-heart.d.ts | 3 +- types/react-icons/lib/io/ios-help-empty.d.ts | 3 +- .../react-icons/lib/io/ios-help-outline.d.ts | 3 +- types/react-icons/lib/io/ios-help.d.ts | 3 +- .../react-icons/lib/io/ios-home-outline.d.ts | 3 +- types/react-icons/lib/io/ios-home.d.ts | 3 +- .../lib/io/ios-infinite-outline.d.ts | 3 +- types/react-icons/lib/io/ios-infinite.d.ts | 3 +- .../react-icons/lib/io/ios-informatempty.d.ts | 3 +- types/react-icons/lib/io/ios-information.d.ts | 3 +- .../lib/io/ios-informatoutline.d.ts | 3 +- .../react-icons/lib/io/ios-ionic-outline.d.ts | 3 +- .../lib/io/ios-keypad-outline.d.ts | 3 +- types/react-icons/lib/io/ios-keypad.d.ts | 3 +- .../lib/io/ios-lightbulb-outline.d.ts | 3 +- types/react-icons/lib/io/ios-lightbulb.d.ts | 3 +- .../react-icons/lib/io/ios-list-outline.d.ts | 3 +- types/react-icons/lib/io/ios-list.d.ts | 3 +- types/react-icons/lib/io/ios-location.d.ts | 3 +- .../react-icons/lib/io/ios-locatoutline.d.ts | 3 +- .../lib/io/ios-locked-outline.d.ts | 3 +- types/react-icons/lib/io/ios-locked.d.ts | 3 +- types/react-icons/lib/io/ios-loop-strong.d.ts | 3 +- types/react-icons/lib/io/ios-loop.d.ts | 3 +- .../lib/io/ios-medical-outline.d.ts | 3 +- types/react-icons/lib/io/ios-medical.d.ts | 3 +- .../lib/io/ios-medkit-outline.d.ts | 3 +- types/react-icons/lib/io/ios-medkit.d.ts | 3 +- types/react-icons/lib/io/ios-mic-off.d.ts | 3 +- types/react-icons/lib/io/ios-mic-outline.d.ts | 3 +- types/react-icons/lib/io/ios-mic.d.ts | 3 +- types/react-icons/lib/io/ios-minus-empty.d.ts | 3 +- .../react-icons/lib/io/ios-minus-outline.d.ts | 3 +- types/react-icons/lib/io/ios-minus.d.ts | 3 +- .../lib/io/ios-monitor-outline.d.ts | 3 +- types/react-icons/lib/io/ios-monitor.d.ts | 3 +- .../react-icons/lib/io/ios-moon-outline.d.ts | 3 +- types/react-icons/lib/io/ios-moon.d.ts | 3 +- .../react-icons/lib/io/ios-more-outline.d.ts | 3 +- types/react-icons/lib/io/ios-more.d.ts | 3 +- .../react-icons/lib/io/ios-musical-note.d.ts | 3 +- .../react-icons/lib/io/ios-musical-notes.d.ts | 3 +- .../lib/io/ios-navigate-outline.d.ts | 3 +- types/react-icons/lib/io/ios-navigate.d.ts | 3 +- types/react-icons/lib/io/ios-nutrition.d.ts | 3 +- .../react-icons/lib/io/ios-nutritoutline.d.ts | 3 +- .../react-icons/lib/io/ios-paper-outline.d.ts | 3 +- types/react-icons/lib/io/ios-paper.d.ts | 3 +- .../lib/io/ios-paperplane-outline.d.ts | 3 +- types/react-icons/lib/io/ios-paperplane.d.ts | 3 +- .../lib/io/ios-partlysunny-outline.d.ts | 3 +- types/react-icons/lib/io/ios-partlysunny.d.ts | 3 +- .../react-icons/lib/io/ios-pause-outline.d.ts | 3 +- types/react-icons/lib/io/ios-pause.d.ts | 3 +- types/react-icons/lib/io/ios-paw-outline.d.ts | 3 +- types/react-icons/lib/io/ios-paw.d.ts | 3 +- .../lib/io/ios-people-outline.d.ts | 3 +- types/react-icons/lib/io/ios-people.d.ts | 3 +- .../lib/io/ios-person-outline.d.ts | 3 +- types/react-icons/lib/io/ios-person.d.ts | 3 +- .../lib/io/ios-personadd-outline.d.ts | 3 +- types/react-icons/lib/io/ios-personadd.d.ts | 3 +- .../lib/io/ios-photos-outline.d.ts | 3 +- types/react-icons/lib/io/ios-photos.d.ts | 3 +- types/react-icons/lib/io/ios-pie-outline.d.ts | 3 +- types/react-icons/lib/io/ios-pie.d.ts | 3 +- .../react-icons/lib/io/ios-pint-outline.d.ts | 3 +- types/react-icons/lib/io/ios-pint.d.ts | 3 +- .../react-icons/lib/io/ios-play-outline.d.ts | 3 +- types/react-icons/lib/io/ios-play.d.ts | 3 +- types/react-icons/lib/io/ios-plus-empty.d.ts | 3 +- .../react-icons/lib/io/ios-plus-outline.d.ts | 3 +- types/react-icons/lib/io/ios-plus.d.ts | 3 +- .../lib/io/ios-pricetag-outline.d.ts | 3 +- types/react-icons/lib/io/ios-pricetag.d.ts | 3 +- .../lib/io/ios-pricetags-outline.d.ts | 3 +- types/react-icons/lib/io/ios-pricetags.d.ts | 3 +- .../lib/io/ios-printer-outline.d.ts | 3 +- types/react-icons/lib/io/ios-printer.d.ts | 3 +- .../react-icons/lib/io/ios-pulse-strong.d.ts | 3 +- types/react-icons/lib/io/ios-pulse.d.ts | 3 +- .../react-icons/lib/io/ios-rainy-outline.d.ts | 3 +- types/react-icons/lib/io/ios-rainy.d.ts | 3 +- .../lib/io/ios-recording-outline.d.ts | 3 +- types/react-icons/lib/io/ios-recording.d.ts | 3 +- .../react-icons/lib/io/ios-redo-outline.d.ts | 3 +- types/react-icons/lib/io/ios-redo.d.ts | 3 +- .../react-icons/lib/io/ios-refresh-empty.d.ts | 3 +- .../lib/io/ios-refresh-outline.d.ts | 3 +- types/react-icons/lib/io/ios-refresh.d.ts | 3 +- types/react-icons/lib/io/ios-reload.d.ts | 3 +- .../lib/io/ios-reverse-camera-outline.d.ts | 3 +- .../lib/io/ios-reverse-camera.d.ts | 3 +- .../lib/io/ios-rewind-outline.d.ts | 3 +- types/react-icons/lib/io/ios-rewind.d.ts | 3 +- .../react-icons/lib/io/ios-rose-outline.d.ts | 3 +- types/react-icons/lib/io/ios-rose.d.ts | 3 +- .../react-icons/lib/io/ios-search-strong.d.ts | 3 +- types/react-icons/lib/io/ios-search.d.ts | 3 +- .../lib/io/ios-settings-strong.d.ts | 3 +- types/react-icons/lib/io/ios-settings.d.ts | 3 +- .../lib/io/ios-shuffle-strong.d.ts | 3 +- types/react-icons/lib/io/ios-shuffle.d.ts | 3 +- .../lib/io/ios-skipbackward-outline.d.ts | 3 +- .../react-icons/lib/io/ios-skipbackward.d.ts | 3 +- .../lib/io/ios-skipforward-outline.d.ts | 3 +- types/react-icons/lib/io/ios-skipforward.d.ts | 3 +- types/react-icons/lib/io/ios-snowy.d.ts | 3 +- .../lib/io/ios-speedometer-outline.d.ts | 3 +- types/react-icons/lib/io/ios-speedometer.d.ts | 3 +- types/react-icons/lib/io/ios-star-half.d.ts | 3 +- .../react-icons/lib/io/ios-star-outline.d.ts | 3 +- types/react-icons/lib/io/ios-star.d.ts | 3 +- .../lib/io/ios-stopwatch-outline.d.ts | 3 +- types/react-icons/lib/io/ios-stopwatch.d.ts | 3 +- .../react-icons/lib/io/ios-sunny-outline.d.ts | 3 +- types/react-icons/lib/io/ios-sunny.d.ts | 3 +- .../lib/io/ios-telephone-outline.d.ts | 3 +- types/react-icons/lib/io/ios-telephone.d.ts | 3 +- .../lib/io/ios-tennisball-outline.d.ts | 3 +- types/react-icons/lib/io/ios-tennisball.d.ts | 3 +- .../lib/io/ios-thunderstorm-outline.d.ts | 3 +- .../react-icons/lib/io/ios-thunderstorm.d.ts | 3 +- .../react-icons/lib/io/ios-time-outline.d.ts | 3 +- types/react-icons/lib/io/ios-time.d.ts | 3 +- .../react-icons/lib/io/ios-timer-outline.d.ts | 3 +- types/react-icons/lib/io/ios-timer.d.ts | 3 +- .../lib/io/ios-toggle-outline.d.ts | 3 +- types/react-icons/lib/io/ios-toggle.d.ts | 3 +- .../react-icons/lib/io/ios-trash-outline.d.ts | 3 +- types/react-icons/lib/io/ios-trash.d.ts | 3 +- .../react-icons/lib/io/ios-undo-outline.d.ts | 3 +- types/react-icons/lib/io/ios-undo.d.ts | 3 +- .../lib/io/ios-unlocked-outline.d.ts | 3 +- types/react-icons/lib/io/ios-unlocked.d.ts | 3 +- .../lib/io/ios-upload-outline.d.ts | 3 +- types/react-icons/lib/io/ios-upload.d.ts | 3 +- .../lib/io/ios-videocam-outline.d.ts | 3 +- types/react-icons/lib/io/ios-videocam.d.ts | 3 +- types/react-icons/lib/io/ios-volume-high.d.ts | 3 +- types/react-icons/lib/io/ios-volume-low.d.ts | 3 +- .../lib/io/ios-wineglass-outline.d.ts | 3 +- types/react-icons/lib/io/ios-wineglass.d.ts | 3 +- .../react-icons/lib/io/ios-world-outline.d.ts | 3 +- types/react-icons/lib/io/ios-world.d.ts | 3 +- types/react-icons/lib/io/ipad.d.ts | 3 +- types/react-icons/lib/io/iphone.d.ts | 3 +- types/react-icons/lib/io/ipod.d.ts | 3 +- types/react-icons/lib/io/jet.d.ts | 3 +- types/react-icons/lib/io/key.d.ts | 3 +- types/react-icons/lib/io/knife.d.ts | 3 +- types/react-icons/lib/io/laptop.d.ts | 3 +- types/react-icons/lib/io/leaf.d.ts | 3 +- types/react-icons/lib/io/levels.d.ts | 3 +- types/react-icons/lib/io/lightbulb.d.ts | 3 +- types/react-icons/lib/io/link.d.ts | 3 +- types/react-icons/lib/io/load-a.d.ts | 3 +- types/react-icons/lib/io/load-b.d.ts | 3 +- types/react-icons/lib/io/load-c.d.ts | 3 +- types/react-icons/lib/io/load-d.d.ts | 3 +- types/react-icons/lib/io/location.d.ts | 3 +- .../react-icons/lib/io/lock-combination.d.ts | 3 +- types/react-icons/lib/io/locked.d.ts | 3 +- types/react-icons/lib/io/log-in.d.ts | 3 +- types/react-icons/lib/io/log-out.d.ts | 3 +- types/react-icons/lib/io/loop.d.ts | 3 +- types/react-icons/lib/io/magnet.d.ts | 3 +- types/react-icons/lib/io/male.d.ts | 3 +- types/react-icons/lib/io/man.d.ts | 3 +- types/react-icons/lib/io/map.d.ts | 3 +- types/react-icons/lib/io/medkit.d.ts | 3 +- types/react-icons/lib/io/merge.d.ts | 3 +- types/react-icons/lib/io/mic-a.d.ts | 3 +- types/react-icons/lib/io/mic-b.d.ts | 3 +- types/react-icons/lib/io/mic-c.d.ts | 3 +- types/react-icons/lib/io/minus-circled.d.ts | 3 +- types/react-icons/lib/io/minus-round.d.ts | 3 +- types/react-icons/lib/io/minus.d.ts | 3 +- types/react-icons/lib/io/model-s.d.ts | 3 +- types/react-icons/lib/io/monitor.d.ts | 3 +- types/react-icons/lib/io/more.d.ts | 3 +- types/react-icons/lib/io/mouse.d.ts | 3 +- types/react-icons/lib/io/music-note.d.ts | 3 +- types/react-icons/lib/io/navicon-round.d.ts | 3 +- types/react-icons/lib/io/navicon.d.ts | 3 +- types/react-icons/lib/io/navigate.d.ts | 3 +- types/react-icons/lib/io/network.d.ts | 3 +- types/react-icons/lib/io/no-smoking.d.ts | 3 +- types/react-icons/lib/io/nuclear.d.ts | 3 +- types/react-icons/lib/io/outlet.d.ts | 3 +- types/react-icons/lib/io/paintbrush.d.ts | 3 +- types/react-icons/lib/io/paintbucket.d.ts | 3 +- types/react-icons/lib/io/paper-airplane.d.ts | 3 +- types/react-icons/lib/io/paperclip.d.ts | 3 +- types/react-icons/lib/io/pause.d.ts | 3 +- types/react-icons/lib/io/person-add.d.ts | 3 +- types/react-icons/lib/io/person-stalker.d.ts | 3 +- types/react-icons/lib/io/person.d.ts | 3 +- types/react-icons/lib/io/pie-graph.d.ts | 3 +- types/react-icons/lib/io/pin.d.ts | 3 +- types/react-icons/lib/io/pinpoint.d.ts | 3 +- types/react-icons/lib/io/pizza.d.ts | 3 +- types/react-icons/lib/io/plane.d.ts | 3 +- types/react-icons/lib/io/planet.d.ts | 3 +- types/react-icons/lib/io/play.d.ts | 3 +- types/react-icons/lib/io/playstation.d.ts | 3 +- types/react-icons/lib/io/plus-circled.d.ts | 3 +- types/react-icons/lib/io/plus-round.d.ts | 3 +- types/react-icons/lib/io/plus.d.ts | 3 +- types/react-icons/lib/io/podium.d.ts | 3 +- types/react-icons/lib/io/pound.d.ts | 3 +- types/react-icons/lib/io/power.d.ts | 3 +- types/react-icons/lib/io/pricetag.d.ts | 3 +- types/react-icons/lib/io/pricetags.d.ts | 3 +- types/react-icons/lib/io/printer.d.ts | 3 +- types/react-icons/lib/io/pull-request.d.ts | 3 +- types/react-icons/lib/io/qr-scanner.d.ts | 3 +- types/react-icons/lib/io/quote.d.ts | 3 +- types/react-icons/lib/io/radio-waves.d.ts | 3 +- types/react-icons/lib/io/record.d.ts | 3 +- types/react-icons/lib/io/refresh.d.ts | 3 +- types/react-icons/lib/io/reply-all.d.ts | 3 +- types/react-icons/lib/io/reply.d.ts | 3 +- types/react-icons/lib/io/ribbon-a.d.ts | 3 +- types/react-icons/lib/io/ribbon-b.d.ts | 3 +- types/react-icons/lib/io/sad-outline.d.ts | 3 +- types/react-icons/lib/io/sad.d.ts | 3 +- types/react-icons/lib/io/scissors.d.ts | 3 +- types/react-icons/lib/io/search.d.ts | 3 +- types/react-icons/lib/io/settings.d.ts | 3 +- types/react-icons/lib/io/share.d.ts | 3 +- types/react-icons/lib/io/shuffle.d.ts | 3 +- types/react-icons/lib/io/skip-backward.d.ts | 3 +- types/react-icons/lib/io/skip-forward.d.ts | 3 +- .../lib/io/social-android-outline.d.ts | 3 +- types/react-icons/lib/io/social-android.d.ts | 3 +- .../lib/io/social-angular-outline.d.ts | 3 +- types/react-icons/lib/io/social-angular.d.ts | 3 +- .../lib/io/social-apple-outline.d.ts | 3 +- types/react-icons/lib/io/social-apple.d.ts | 3 +- .../lib/io/social-bitcoin-outline.d.ts | 3 +- types/react-icons/lib/io/social-bitcoin.d.ts | 3 +- .../lib/io/social-buffer-outline.d.ts | 3 +- types/react-icons/lib/io/social-buffer.d.ts | 3 +- .../lib/io/social-chrome-outline.d.ts | 3 +- types/react-icons/lib/io/social-chrome.d.ts | 3 +- .../lib/io/social-codepen-outline.d.ts | 3 +- types/react-icons/lib/io/social-codepen.d.ts | 3 +- .../lib/io/social-css3-outline.d.ts | 3 +- types/react-icons/lib/io/social-css3.d.ts | 3 +- .../lib/io/social-designernews-outline.d.ts | 3 +- .../lib/io/social-designernews.d.ts | 3 +- .../lib/io/social-dribbble-outline.d.ts | 3 +- types/react-icons/lib/io/social-dribbble.d.ts | 3 +- .../lib/io/social-dropbox-outline.d.ts | 3 +- types/react-icons/lib/io/social-dropbox.d.ts | 3 +- .../lib/io/social-euro-outline.d.ts | 3 +- types/react-icons/lib/io/social-euro.d.ts | 3 +- .../lib/io/social-facebook-outline.d.ts | 3 +- types/react-icons/lib/io/social-facebook.d.ts | 3 +- .../lib/io/social-foursquare-outline.d.ts | 3 +- .../react-icons/lib/io/social-foursquare.d.ts | 3 +- .../lib/io/social-freebsd-devil.d.ts | 3 +- .../lib/io/social-github-outline.d.ts | 3 +- types/react-icons/lib/io/social-github.d.ts | 3 +- .../lib/io/social-google-outline.d.ts | 3 +- types/react-icons/lib/io/social-google.d.ts | 3 +- .../lib/io/social-googleplus-outline.d.ts | 3 +- .../react-icons/lib/io/social-googleplus.d.ts | 3 +- .../lib/io/social-hackernews-outline.d.ts | 3 +- .../react-icons/lib/io/social-hackernews.d.ts | 3 +- .../lib/io/social-html5-outline.d.ts | 3 +- types/react-icons/lib/io/social-html5.d.ts | 3 +- .../lib/io/social-instagram-outline.d.ts | 3 +- .../react-icons/lib/io/social-instagram.d.ts | 3 +- .../lib/io/social-javascript-outline.d.ts | 3 +- .../react-icons/lib/io/social-javascript.d.ts | 3 +- .../lib/io/social-linkedin-outline.d.ts | 3 +- types/react-icons/lib/io/social-linkedin.d.ts | 3 +- types/react-icons/lib/io/social-markdown.d.ts | 3 +- types/react-icons/lib/io/social-nodejs.d.ts | 3 +- types/react-icons/lib/io/social-octocat.d.ts | 3 +- .../lib/io/social-pinterest-outline.d.ts | 3 +- .../react-icons/lib/io/social-pinterest.d.ts | 3 +- types/react-icons/lib/io/social-python.d.ts | 3 +- .../lib/io/social-reddit-outline.d.ts | 3 +- types/react-icons/lib/io/social-reddit.d.ts | 3 +- .../lib/io/social-rss-outline.d.ts | 3 +- types/react-icons/lib/io/social-rss.d.ts | 3 +- types/react-icons/lib/io/social-sass.d.ts | 3 +- .../lib/io/social-skype-outline.d.ts | 3 +- types/react-icons/lib/io/social-skype.d.ts | 3 +- .../lib/io/social-snapchat-outline.d.ts | 3 +- types/react-icons/lib/io/social-snapchat.d.ts | 3 +- .../lib/io/social-tumblr-outline.d.ts | 3 +- types/react-icons/lib/io/social-tumblr.d.ts | 3 +- types/react-icons/lib/io/social-tux.d.ts | 3 +- .../lib/io/social-twitch-outline.d.ts | 3 +- types/react-icons/lib/io/social-twitch.d.ts | 3 +- .../lib/io/social-twitter-outline.d.ts | 3 +- types/react-icons/lib/io/social-twitter.d.ts | 3 +- .../lib/io/social-usd-outline.d.ts | 3 +- types/react-icons/lib/io/social-usd.d.ts | 3 +- .../lib/io/social-vimeo-outline.d.ts | 3 +- types/react-icons/lib/io/social-vimeo.d.ts | 3 +- .../lib/io/social-whatsapp-outline.d.ts | 3 +- types/react-icons/lib/io/social-whatsapp.d.ts | 3 +- .../lib/io/social-windows-outline.d.ts | 3 +- types/react-icons/lib/io/social-windows.d.ts | 3 +- .../lib/io/social-wordpress-outline.d.ts | 3 +- .../react-icons/lib/io/social-wordpress.d.ts | 3 +- .../lib/io/social-yahoo-outline.d.ts | 3 +- types/react-icons/lib/io/social-yahoo.d.ts | 3 +- .../lib/io/social-yen-outline.d.ts | 3 +- types/react-icons/lib/io/social-yen.d.ts | 3 +- .../lib/io/social-youtube-outline.d.ts | 3 +- types/react-icons/lib/io/social-youtube.d.ts | 3 +- .../react-icons/lib/io/soup-can-outline.d.ts | 3 +- types/react-icons/lib/io/soup-can.d.ts | 3 +- types/react-icons/lib/io/speakerphone.d.ts | 3 +- types/react-icons/lib/io/speedometer.d.ts | 3 +- types/react-icons/lib/io/spoon.d.ts | 3 +- types/react-icons/lib/io/star.d.ts | 3 +- types/react-icons/lib/io/stats-bars.d.ts | 3 +- types/react-icons/lib/io/steam.d.ts | 3 +- types/react-icons/lib/io/stop.d.ts | 3 +- types/react-icons/lib/io/thermometer.d.ts | 3 +- types/react-icons/lib/io/thumbsdown.d.ts | 3 +- types/react-icons/lib/io/thumbsup.d.ts | 3 +- types/react-icons/lib/io/toggle-filled.d.ts | 3 +- types/react-icons/lib/io/toggle.d.ts | 3 +- types/react-icons/lib/io/transgender.d.ts | 3 +- types/react-icons/lib/io/trash-a.d.ts | 3 +- types/react-icons/lib/io/trash-b.d.ts | 3 +- types/react-icons/lib/io/trophy.d.ts | 3 +- types/react-icons/lib/io/tshirt-outline.d.ts | 3 +- types/react-icons/lib/io/tshirt.d.ts | 3 +- types/react-icons/lib/io/umbrella.d.ts | 3 +- types/react-icons/lib/io/university.d.ts | 3 +- types/react-icons/lib/io/unlocked.d.ts | 3 +- types/react-icons/lib/io/upload.d.ts | 3 +- types/react-icons/lib/io/usb.d.ts | 3 +- types/react-icons/lib/io/videocamera.d.ts | 3 +- types/react-icons/lib/io/volume-high.d.ts | 3 +- types/react-icons/lib/io/volume-low.d.ts | 3 +- types/react-icons/lib/io/volume-medium.d.ts | 3 +- types/react-icons/lib/io/volume-mute.d.ts | 3 +- types/react-icons/lib/io/wand.d.ts | 3 +- types/react-icons/lib/io/waterdrop.d.ts | 3 +- types/react-icons/lib/io/wifi.d.ts | 3 +- types/react-icons/lib/io/wineglass.d.ts | 3 +- types/react-icons/lib/io/woman.d.ts | 3 +- types/react-icons/lib/io/wrench.d.ts | 3 +- types/react-icons/lib/io/xbox.d.ts | 3 +- types/react-icons/lib/md/3d-rotation.d.ts | 3 +- types/react-icons/lib/md/ac-unit.d.ts | 3 +- types/react-icons/lib/md/access-alarm.d.ts | 3 +- types/react-icons/lib/md/access-alarms.d.ts | 3 +- types/react-icons/lib/md/access-time.d.ts | 3 +- types/react-icons/lib/md/accessibility.d.ts | 3 +- types/react-icons/lib/md/accessible.d.ts | 3 +- .../lib/md/account-balance-wallet.d.ts | 3 +- types/react-icons/lib/md/account-balance.d.ts | 3 +- types/react-icons/lib/md/account-box.d.ts | 3 +- types/react-icons/lib/md/account-circle.d.ts | 3 +- types/react-icons/lib/md/adb.d.ts | 3 +- types/react-icons/lib/md/add-a-photo.d.ts | 3 +- types/react-icons/lib/md/add-alarm.d.ts | 3 +- types/react-icons/lib/md/add-alert.d.ts | 3 +- types/react-icons/lib/md/add-box.d.ts | 3 +- .../lib/md/add-circle-outline.d.ts | 3 +- types/react-icons/lib/md/add-circle.d.ts | 3 +- types/react-icons/lib/md/add-location.d.ts | 3 +- .../react-icons/lib/md/add-shopping-cart.d.ts | 3 +- types/react-icons/lib/md/add-to-photos.d.ts | 3 +- types/react-icons/lib/md/add-to-queue.d.ts | 3 +- types/react-icons/lib/md/add.d.ts | 3 +- types/react-icons/lib/md/adjust.d.ts | 3 +- .../lib/md/airline-seat-flat-angled.d.ts | 3 +- .../react-icons/lib/md/airline-seat-flat.d.ts | 3 +- .../lib/md/airline-seat-individual-suite.d.ts | 3 +- .../lib/md/airline-seat-legroom-extra.d.ts | 3 +- .../lib/md/airline-seat-legroom-normal.d.ts | 3 +- .../lib/md/airline-seat-legroom-reduced.d.ts | 3 +- .../lib/md/airline-seat-recline-extra.d.ts | 3 +- .../lib/md/airline-seat-recline-normal.d.ts | 3 +- .../lib/md/airplanemode-active.d.ts | 3 +- .../lib/md/airplanemode-inactive.d.ts | 3 +- types/react-icons/lib/md/airplay.d.ts | 3 +- types/react-icons/lib/md/airport-shuttle.d.ts | 3 +- types/react-icons/lib/md/alarm-add.d.ts | 3 +- types/react-icons/lib/md/alarm-off.d.ts | 3 +- types/react-icons/lib/md/alarm-on.d.ts | 3 +- types/react-icons/lib/md/alarm.d.ts | 3 +- types/react-icons/lib/md/album.d.ts | 3 +- types/react-icons/lib/md/all-inclusive.d.ts | 3 +- types/react-icons/lib/md/all-out.d.ts | 3 +- types/react-icons/lib/md/android.d.ts | 3 +- types/react-icons/lib/md/announcement.d.ts | 3 +- types/react-icons/lib/md/apps.d.ts | 3 +- types/react-icons/lib/md/archive.d.ts | 3 +- types/react-icons/lib/md/arrow-back.d.ts | 3 +- types/react-icons/lib/md/arrow-downward.d.ts | 3 +- .../lib/md/arrow-drop-down-circle.d.ts | 3 +- types/react-icons/lib/md/arrow-drop-down.d.ts | 3 +- types/react-icons/lib/md/arrow-drop-up.d.ts | 3 +- types/react-icons/lib/md/arrow-forward.d.ts | 3 +- types/react-icons/lib/md/arrow-upward.d.ts | 3 +- types/react-icons/lib/md/art-track.d.ts | 3 +- types/react-icons/lib/md/aspect-ratio.d.ts | 3 +- types/react-icons/lib/md/assessment.d.ts | 3 +- types/react-icons/lib/md/assignment-ind.d.ts | 3 +- types/react-icons/lib/md/assignment-late.d.ts | 3 +- .../react-icons/lib/md/assignment-return.d.ts | 3 +- .../lib/md/assignment-returned.d.ts | 3 +- .../lib/md/assignment-turned-in.d.ts | 3 +- types/react-icons/lib/md/assignment.d.ts | 3 +- types/react-icons/lib/md/assistant-photo.d.ts | 3 +- types/react-icons/lib/md/assistant.d.ts | 3 +- types/react-icons/lib/md/attach-file.d.ts | 3 +- types/react-icons/lib/md/attach-money.d.ts | 3 +- types/react-icons/lib/md/attachment.d.ts | 3 +- types/react-icons/lib/md/audiotrack.d.ts | 3 +- types/react-icons/lib/md/autorenew.d.ts | 3 +- types/react-icons/lib/md/av-timer.d.ts | 3 +- types/react-icons/lib/md/backspace.d.ts | 3 +- types/react-icons/lib/md/backup.d.ts | 3 +- types/react-icons/lib/md/battery-alert.d.ts | 3 +- .../lib/md/battery-charging-full.d.ts | 3 +- types/react-icons/lib/md/battery-full.d.ts | 3 +- types/react-icons/lib/md/battery-std.d.ts | 3 +- types/react-icons/lib/md/battery-unknown.d.ts | 3 +- types/react-icons/lib/md/beach-access.d.ts | 3 +- types/react-icons/lib/md/beenhere.d.ts | 3 +- types/react-icons/lib/md/block.d.ts | 3 +- types/react-icons/lib/md/bluetooth-audio.d.ts | 3 +- .../lib/md/bluetooth-connected.d.ts | 3 +- .../lib/md/bluetooth-disabled.d.ts | 3 +- .../lib/md/bluetooth-searching.d.ts | 3 +- types/react-icons/lib/md/bluetooth.d.ts | 3 +- types/react-icons/lib/md/blur-circular.d.ts | 3 +- types/react-icons/lib/md/blur-linear.d.ts | 3 +- types/react-icons/lib/md/blur-off.d.ts | 3 +- types/react-icons/lib/md/blur-on.d.ts | 3 +- types/react-icons/lib/md/book.d.ts | 3 +- .../react-icons/lib/md/bookmark-outline.d.ts | 3 +- types/react-icons/lib/md/bookmark.d.ts | 3 +- types/react-icons/lib/md/border-all.d.ts | 3 +- types/react-icons/lib/md/border-bottom.d.ts | 3 +- types/react-icons/lib/md/border-clear.d.ts | 3 +- types/react-icons/lib/md/border-color.d.ts | 3 +- .../react-icons/lib/md/border-horizontal.d.ts | 3 +- types/react-icons/lib/md/border-inner.d.ts | 3 +- types/react-icons/lib/md/border-left.d.ts | 3 +- types/react-icons/lib/md/border-outer.d.ts | 3 +- types/react-icons/lib/md/border-right.d.ts | 3 +- types/react-icons/lib/md/border-style.d.ts | 3 +- types/react-icons/lib/md/border-top.d.ts | 3 +- types/react-icons/lib/md/border-vertical.d.ts | 3 +- .../lib/md/branding-watermark.d.ts | 3 +- types/react-icons/lib/md/brightness-1.d.ts | 3 +- types/react-icons/lib/md/brightness-2.d.ts | 3 +- types/react-icons/lib/md/brightness-3.d.ts | 3 +- types/react-icons/lib/md/brightness-4.d.ts | 3 +- types/react-icons/lib/md/brightness-5.d.ts | 3 +- types/react-icons/lib/md/brightness-6.d.ts | 3 +- types/react-icons/lib/md/brightness-7.d.ts | 3 +- types/react-icons/lib/md/brightness-auto.d.ts | 3 +- types/react-icons/lib/md/brightness-high.d.ts | 3 +- types/react-icons/lib/md/brightness-low.d.ts | 3 +- .../react-icons/lib/md/brightness-medium.d.ts | 3 +- types/react-icons/lib/md/broken-image.d.ts | 3 +- types/react-icons/lib/md/brush.d.ts | 3 +- types/react-icons/lib/md/bubble-chart.d.ts | 3 +- types/react-icons/lib/md/bug-report.d.ts | 3 +- types/react-icons/lib/md/build.d.ts | 3 +- types/react-icons/lib/md/burst-mode.d.ts | 3 +- types/react-icons/lib/md/business-center.d.ts | 3 +- types/react-icons/lib/md/business.d.ts | 3 +- types/react-icons/lib/md/cached.d.ts | 3 +- types/react-icons/lib/md/cake.d.ts | 3 +- types/react-icons/lib/md/call-end.d.ts | 3 +- types/react-icons/lib/md/call-made.d.ts | 3 +- types/react-icons/lib/md/call-merge.d.ts | 3 +- .../lib/md/call-missed-outgoing.d.ts | 3 +- types/react-icons/lib/md/call-missed.d.ts | 3 +- types/react-icons/lib/md/call-received.d.ts | 3 +- types/react-icons/lib/md/call-split.d.ts | 3 +- types/react-icons/lib/md/call-to-action.d.ts | 3 +- types/react-icons/lib/md/call.d.ts | 3 +- types/react-icons/lib/md/camera-alt.d.ts | 3 +- types/react-icons/lib/md/camera-enhance.d.ts | 3 +- types/react-icons/lib/md/camera-front.d.ts | 3 +- types/react-icons/lib/md/camera-rear.d.ts | 3 +- types/react-icons/lib/md/camera-roll.d.ts | 3 +- types/react-icons/lib/md/camera.d.ts | 3 +- types/react-icons/lib/md/cancel.d.ts | 3 +- types/react-icons/lib/md/card-giftcard.d.ts | 3 +- types/react-icons/lib/md/card-membership.d.ts | 3 +- types/react-icons/lib/md/card-travel.d.ts | 3 +- types/react-icons/lib/md/casino.d.ts | 3 +- types/react-icons/lib/md/cast-connected.d.ts | 3 +- types/react-icons/lib/md/cast.d.ts | 3 +- .../lib/md/center-focus-strong.d.ts | 3 +- .../react-icons/lib/md/center-focus-weak.d.ts | 3 +- types/react-icons/lib/md/change-history.d.ts | 3 +- .../lib/md/chat-bubble-outline.d.ts | 3 +- types/react-icons/lib/md/chat-bubble.d.ts | 3 +- types/react-icons/lib/md/chat.d.ts | 3 +- .../lib/md/check-box-outline-blank.d.ts | 3 +- types/react-icons/lib/md/check-box.d.ts | 3 +- types/react-icons/lib/md/check-circle.d.ts | 3 +- types/react-icons/lib/md/check.d.ts | 3 +- types/react-icons/lib/md/chevron-left.d.ts | 3 +- types/react-icons/lib/md/chevron-right.d.ts | 3 +- types/react-icons/lib/md/child-care.d.ts | 3 +- types/react-icons/lib/md/child-friendly.d.ts | 3 +- .../lib/md/chrome-reader-mode.d.ts | 3 +- types/react-icons/lib/md/class.d.ts | 3 +- types/react-icons/lib/md/clear-all.d.ts | 3 +- types/react-icons/lib/md/clear.d.ts | 3 +- types/react-icons/lib/md/close.d.ts | 3 +- types/react-icons/lib/md/closed-caption.d.ts | 3 +- types/react-icons/lib/md/cloud-circle.d.ts | 3 +- types/react-icons/lib/md/cloud-done.d.ts | 3 +- types/react-icons/lib/md/cloud-download.d.ts | 3 +- types/react-icons/lib/md/cloud-off.d.ts | 3 +- types/react-icons/lib/md/cloud-queue.d.ts | 3 +- types/react-icons/lib/md/cloud-upload.d.ts | 3 +- types/react-icons/lib/md/cloud.d.ts | 3 +- types/react-icons/lib/md/code.d.ts | 3 +- .../lib/md/collections-bookmark.d.ts | 3 +- types/react-icons/lib/md/collections.d.ts | 3 +- types/react-icons/lib/md/color-lens.d.ts | 3 +- types/react-icons/lib/md/colorize.d.ts | 3 +- types/react-icons/lib/md/comment.d.ts | 3 +- types/react-icons/lib/md/compare-arrows.d.ts | 3 +- types/react-icons/lib/md/compare.d.ts | 3 +- types/react-icons/lib/md/computer.d.ts | 3 +- .../lib/md/confirmation-number.d.ts | 3 +- types/react-icons/lib/md/contact-mail.d.ts | 3 +- types/react-icons/lib/md/contact-phone.d.ts | 3 +- types/react-icons/lib/md/contacts.d.ts | 3 +- types/react-icons/lib/md/content-copy.d.ts | 3 +- types/react-icons/lib/md/content-cut.d.ts | 3 +- types/react-icons/lib/md/content-paste.d.ts | 3 +- .../lib/md/control-point-duplicate.d.ts | 3 +- types/react-icons/lib/md/control-point.d.ts | 3 +- types/react-icons/lib/md/copyright.d.ts | 3 +- .../react-icons/lib/md/create-new-folder.d.ts | 3 +- types/react-icons/lib/md/create.d.ts | 3 +- types/react-icons/lib/md/credit-card.d.ts | 3 +- types/react-icons/lib/md/crop-16-9.d.ts | 3 +- types/react-icons/lib/md/crop-3-2.d.ts | 3 +- types/react-icons/lib/md/crop-5-4.d.ts | 3 +- types/react-icons/lib/md/crop-7-5.d.ts | 3 +- types/react-icons/lib/md/crop-din.d.ts | 3 +- types/react-icons/lib/md/crop-free.d.ts | 3 +- types/react-icons/lib/md/crop-landscape.d.ts | 3 +- types/react-icons/lib/md/crop-original.d.ts | 3 +- types/react-icons/lib/md/crop-portrait.d.ts | 3 +- types/react-icons/lib/md/crop-rotate.d.ts | 3 +- types/react-icons/lib/md/crop-square.d.ts | 3 +- types/react-icons/lib/md/crop.d.ts | 3 +- types/react-icons/lib/md/dashboard.d.ts | 3 +- types/react-icons/lib/md/data-usage.d.ts | 3 +- types/react-icons/lib/md/date-range.d.ts | 3 +- types/react-icons/lib/md/dehaze.d.ts | 3 +- types/react-icons/lib/md/delete-forever.d.ts | 3 +- types/react-icons/lib/md/delete-sweep.d.ts | 3 +- types/react-icons/lib/md/delete.d.ts | 3 +- types/react-icons/lib/md/description.d.ts | 3 +- types/react-icons/lib/md/desktop-mac.d.ts | 3 +- types/react-icons/lib/md/desktop-windows.d.ts | 3 +- types/react-icons/lib/md/details.d.ts | 3 +- types/react-icons/lib/md/developer-board.d.ts | 3 +- types/react-icons/lib/md/developer-mode.d.ts | 3 +- types/react-icons/lib/md/device-hub.d.ts | 3 +- types/react-icons/lib/md/devices-other.d.ts | 3 +- types/react-icons/lib/md/devices.d.ts | 3 +- types/react-icons/lib/md/dialer-sip.d.ts | 3 +- types/react-icons/lib/md/dialpad.d.ts | 3 +- types/react-icons/lib/md/directions-bike.d.ts | 3 +- types/react-icons/lib/md/directions-boat.d.ts | 3 +- types/react-icons/lib/md/directions-bus.d.ts | 3 +- types/react-icons/lib/md/directions-car.d.ts | 3 +- .../react-icons/lib/md/directions-ferry.d.ts | 3 +- .../lib/md/directions-railway.d.ts | 3 +- types/react-icons/lib/md/directions-run.d.ts | 3 +- .../react-icons/lib/md/directions-subway.d.ts | 3 +- .../lib/md/directions-transit.d.ts | 3 +- types/react-icons/lib/md/directions-walk.d.ts | 3 +- types/react-icons/lib/md/directions.d.ts | 3 +- types/react-icons/lib/md/disc-full.d.ts | 3 +- types/react-icons/lib/md/dns.d.ts | 3 +- .../lib/md/do-not-disturb-alt.d.ts | 3 +- .../lib/md/do-not-disturb-off.d.ts | 3 +- types/react-icons/lib/md/do-not-disturb.d.ts | 3 +- types/react-icons/lib/md/dock.d.ts | 3 +- types/react-icons/lib/md/domain.d.ts | 3 +- types/react-icons/lib/md/done-all.d.ts | 3 +- types/react-icons/lib/md/done.d.ts | 3 +- types/react-icons/lib/md/donut-large.d.ts | 3 +- types/react-icons/lib/md/donut-small.d.ts | 3 +- types/react-icons/lib/md/drafts.d.ts | 3 +- types/react-icons/lib/md/drag-handle.d.ts | 3 +- types/react-icons/lib/md/drive-eta.d.ts | 3 +- types/react-icons/lib/md/dvr.d.ts | 3 +- types/react-icons/lib/md/edit-location.d.ts | 3 +- types/react-icons/lib/md/edit.d.ts | 3 +- types/react-icons/lib/md/eject.d.ts | 3 +- types/react-icons/lib/md/email.d.ts | 3 +- .../lib/md/enhanced-encryption.d.ts | 3 +- types/react-icons/lib/md/equalizer.d.ts | 3 +- types/react-icons/lib/md/error-outline.d.ts | 3 +- types/react-icons/lib/md/error.d.ts | 3 +- types/react-icons/lib/md/euro-symbol.d.ts | 3 +- types/react-icons/lib/md/ev-station.d.ts | 3 +- types/react-icons/lib/md/event-available.d.ts | 3 +- types/react-icons/lib/md/event-busy.d.ts | 3 +- types/react-icons/lib/md/event-note.d.ts | 3 +- types/react-icons/lib/md/event-seat.d.ts | 3 +- types/react-icons/lib/md/event.d.ts | 3 +- types/react-icons/lib/md/exit-to-app.d.ts | 3 +- types/react-icons/lib/md/expand-less.d.ts | 3 +- types/react-icons/lib/md/expand-more.d.ts | 3 +- types/react-icons/lib/md/explicit.d.ts | 3 +- types/react-icons/lib/md/explore.d.ts | 3 +- .../react-icons/lib/md/exposure-minus-1.d.ts | 3 +- .../react-icons/lib/md/exposure-minus-2.d.ts | 3 +- types/react-icons/lib/md/exposure-neg-1.d.ts | 3 +- types/react-icons/lib/md/exposure-neg-2.d.ts | 3 +- types/react-icons/lib/md/exposure-plus-1.d.ts | 3 +- types/react-icons/lib/md/exposure-plus-2.d.ts | 3 +- types/react-icons/lib/md/exposure-zero.d.ts | 3 +- types/react-icons/lib/md/exposure.d.ts | 3 +- types/react-icons/lib/md/extension.d.ts | 3 +- types/react-icons/lib/md/face.d.ts | 3 +- types/react-icons/lib/md/fast-forward.d.ts | 3 +- types/react-icons/lib/md/fast-rewind.d.ts | 3 +- types/react-icons/lib/md/favorite-border.d.ts | 3 +- .../react-icons/lib/md/favorite-outline.d.ts | 3 +- types/react-icons/lib/md/favorite.d.ts | 3 +- .../lib/md/featured-play-list.d.ts | 3 +- types/react-icons/lib/md/featured-video.d.ts | 3 +- types/react-icons/lib/md/feedback.d.ts | 3 +- types/react-icons/lib/md/fiber-dvr.d.ts | 3 +- .../lib/md/fiber-manual-record.d.ts | 3 +- types/react-icons/lib/md/fiber-new.d.ts | 3 +- types/react-icons/lib/md/fiber-pin.d.ts | 3 +- .../lib/md/fiber-smart-record.d.ts | 3 +- types/react-icons/lib/md/file-download.d.ts | 3 +- types/react-icons/lib/md/file-upload.d.ts | 3 +- types/react-icons/lib/md/filter-1.d.ts | 3 +- types/react-icons/lib/md/filter-2.d.ts | 3 +- types/react-icons/lib/md/filter-3.d.ts | 3 +- types/react-icons/lib/md/filter-4.d.ts | 3 +- types/react-icons/lib/md/filter-5.d.ts | 3 +- types/react-icons/lib/md/filter-6.d.ts | 3 +- types/react-icons/lib/md/filter-7.d.ts | 3 +- types/react-icons/lib/md/filter-8.d.ts | 3 +- types/react-icons/lib/md/filter-9-plus.d.ts | 3 +- types/react-icons/lib/md/filter-9.d.ts | 3 +- types/react-icons/lib/md/filter-b-and-w.d.ts | 3 +- .../lib/md/filter-center-focus.d.ts | 3 +- types/react-icons/lib/md/filter-drama.d.ts | 3 +- types/react-icons/lib/md/filter-frames.d.ts | 3 +- types/react-icons/lib/md/filter-hdr.d.ts | 3 +- types/react-icons/lib/md/filter-list.d.ts | 3 +- types/react-icons/lib/md/filter-none.d.ts | 3 +- .../react-icons/lib/md/filter-tilt-shift.d.ts | 3 +- types/react-icons/lib/md/filter-vintage.d.ts | 3 +- types/react-icons/lib/md/filter.d.ts | 3 +- types/react-icons/lib/md/find-in-page.d.ts | 3 +- types/react-icons/lib/md/find-replace.d.ts | 3 +- types/react-icons/lib/md/fingerprint.d.ts | 3 +- types/react-icons/lib/md/first-page.d.ts | 3 +- types/react-icons/lib/md/fitness-center.d.ts | 3 +- types/react-icons/lib/md/flag.d.ts | 3 +- types/react-icons/lib/md/flare.d.ts | 3 +- types/react-icons/lib/md/flash-auto.d.ts | 3 +- types/react-icons/lib/md/flash-off.d.ts | 3 +- types/react-icons/lib/md/flash-on.d.ts | 3 +- types/react-icons/lib/md/flight-land.d.ts | 3 +- types/react-icons/lib/md/flight-takeoff.d.ts | 3 +- types/react-icons/lib/md/flight.d.ts | 3 +- types/react-icons/lib/md/flip-to-back.d.ts | 3 +- types/react-icons/lib/md/flip-to-front.d.ts | 3 +- types/react-icons/lib/md/flip.d.ts | 3 +- types/react-icons/lib/md/folder-open.d.ts | 3 +- types/react-icons/lib/md/folder-shared.d.ts | 3 +- types/react-icons/lib/md/folder-special.d.ts | 3 +- types/react-icons/lib/md/folder.d.ts | 3 +- types/react-icons/lib/md/font-download.d.ts | 3 +- .../lib/md/format-align-center.d.ts | 3 +- .../lib/md/format-align-justify.d.ts | 3 +- .../react-icons/lib/md/format-align-left.d.ts | 3 +- .../lib/md/format-align-right.d.ts | 3 +- types/react-icons/lib/md/format-bold.d.ts | 3 +- types/react-icons/lib/md/format-clear.d.ts | 3 +- .../react-icons/lib/md/format-color-fill.d.ts | 3 +- .../lib/md/format-color-reset.d.ts | 3 +- .../react-icons/lib/md/format-color-text.d.ts | 3 +- .../lib/md/format-indent-decrease.d.ts | 3 +- .../lib/md/format-indent-increase.d.ts | 3 +- types/react-icons/lib/md/format-italic.d.ts | 3 +- .../lib/md/format-line-spacing.d.ts | 3 +- .../lib/md/format-list-bulleted.d.ts | 3 +- .../lib/md/format-list-numbered.d.ts | 3 +- types/react-icons/lib/md/format-paint.d.ts | 3 +- types/react-icons/lib/md/format-quote.d.ts | 3 +- types/react-icons/lib/md/format-shapes.d.ts | 3 +- types/react-icons/lib/md/format-size.d.ts | 3 +- .../lib/md/format-strikethrough.d.ts | 3 +- .../lib/md/format-textdirection-l-to-r.d.ts | 3 +- .../lib/md/format-textdirection-r-to-l.d.ts | 3 +- .../react-icons/lib/md/format-underlined.d.ts | 3 +- types/react-icons/lib/md/forum.d.ts | 3 +- types/react-icons/lib/md/forward-10.d.ts | 3 +- types/react-icons/lib/md/forward-30.d.ts | 3 +- types/react-icons/lib/md/forward-5.d.ts | 3 +- types/react-icons/lib/md/forward.d.ts | 3 +- types/react-icons/lib/md/free-breakfast.d.ts | 3 +- types/react-icons/lib/md/fullscreen-exit.d.ts | 3 +- types/react-icons/lib/md/fullscreen.d.ts | 3 +- types/react-icons/lib/md/functions.d.ts | 3 +- types/react-icons/lib/md/g-translate.d.ts | 3 +- types/react-icons/lib/md/gamepad.d.ts | 3 +- types/react-icons/lib/md/games.d.ts | 3 +- types/react-icons/lib/md/gavel.d.ts | 3 +- types/react-icons/lib/md/gesture.d.ts | 3 +- types/react-icons/lib/md/get-app.d.ts | 3 +- types/react-icons/lib/md/gif.d.ts | 3 +- types/react-icons/lib/md/goat.d.ts | 3 +- types/react-icons/lib/md/golf-course.d.ts | 3 +- types/react-icons/lib/md/gps-fixed.d.ts | 3 +- types/react-icons/lib/md/gps-not-fixed.d.ts | 3 +- types/react-icons/lib/md/gps-off.d.ts | 3 +- types/react-icons/lib/md/grade.d.ts | 3 +- types/react-icons/lib/md/gradient.d.ts | 3 +- types/react-icons/lib/md/grain.d.ts | 3 +- types/react-icons/lib/md/graphic-eq.d.ts | 3 +- types/react-icons/lib/md/grid-off.d.ts | 3 +- types/react-icons/lib/md/grid-on.d.ts | 3 +- types/react-icons/lib/md/group-add.d.ts | 3 +- types/react-icons/lib/md/group-work.d.ts | 3 +- types/react-icons/lib/md/group.d.ts | 3 +- types/react-icons/lib/md/hd.d.ts | 3 +- types/react-icons/lib/md/hdr-off.d.ts | 3 +- types/react-icons/lib/md/hdr-on.d.ts | 3 +- types/react-icons/lib/md/hdr-strong.d.ts | 3 +- types/react-icons/lib/md/hdr-weak.d.ts | 3 +- types/react-icons/lib/md/headset-mic.d.ts | 3 +- types/react-icons/lib/md/headset.d.ts | 3 +- types/react-icons/lib/md/healing.d.ts | 3 +- types/react-icons/lib/md/hearing.d.ts | 3 +- types/react-icons/lib/md/help-outline.d.ts | 3 +- types/react-icons/lib/md/help.d.ts | 3 +- types/react-icons/lib/md/high-quality.d.ts | 3 +- types/react-icons/lib/md/highlight-off.d.ts | 3 +- .../react-icons/lib/md/highlight-remove.d.ts | 3 +- types/react-icons/lib/md/highlight.d.ts | 3 +- types/react-icons/lib/md/history.d.ts | 3 +- types/react-icons/lib/md/home.d.ts | 3 +- types/react-icons/lib/md/hot-tub.d.ts | 3 +- types/react-icons/lib/md/hotel.d.ts | 3 +- types/react-icons/lib/md/hourglass-empty.d.ts | 3 +- types/react-icons/lib/md/hourglass-full.d.ts | 3 +- types/react-icons/lib/md/http.d.ts | 3 +- types/react-icons/lib/md/https.d.ts | 3 +- .../lib/md/image-aspect-ratio.d.ts | 3 +- types/react-icons/lib/md/image.d.ts | 3 +- types/react-icons/lib/md/import-contacts.d.ts | 3 +- types/react-icons/lib/md/import-export.d.ts | 3 +- .../react-icons/lib/md/important-devices.d.ts | 3 +- types/react-icons/lib/md/inbox.d.ts | 3 +- .../lib/md/indeterminate-check-box.d.ts | 3 +- types/react-icons/lib/md/index.d.ts | 1892 ++++++++--------- types/react-icons/lib/md/info-outline.d.ts | 3 +- types/react-icons/lib/md/info.d.ts | 3 +- types/react-icons/lib/md/input.d.ts | 3 +- types/react-icons/lib/md/insert-chart.d.ts | 3 +- types/react-icons/lib/md/insert-comment.d.ts | 3 +- .../react-icons/lib/md/insert-drive-file.d.ts | 3 +- types/react-icons/lib/md/insert-emoticon.d.ts | 3 +- .../react-icons/lib/md/insert-invitation.d.ts | 3 +- types/react-icons/lib/md/insert-link.d.ts | 3 +- types/react-icons/lib/md/insert-photo.d.ts | 3 +- .../react-icons/lib/md/invert-colors-off.d.ts | 3 +- .../react-icons/lib/md/invert-colors-on.d.ts | 3 +- types/react-icons/lib/md/invert-colors.d.ts | 3 +- types/react-icons/lib/md/iso.d.ts | 3 +- .../lib/md/keyboard-arrow-down.d.ts | 3 +- .../lib/md/keyboard-arrow-left.d.ts | 3 +- .../lib/md/keyboard-arrow-right.d.ts | 3 +- .../react-icons/lib/md/keyboard-arrow-up.d.ts | 3 +- .../lib/md/keyboard-backspace.d.ts | 3 +- .../react-icons/lib/md/keyboard-capslock.d.ts | 3 +- .../react-icons/lib/md/keyboard-control.d.ts | 3 +- types/react-icons/lib/md/keyboard-hide.d.ts | 3 +- types/react-icons/lib/md/keyboard-return.d.ts | 3 +- types/react-icons/lib/md/keyboard-tab.d.ts | 3 +- types/react-icons/lib/md/keyboard-voice.d.ts | 3 +- types/react-icons/lib/md/keyboard.d.ts | 3 +- types/react-icons/lib/md/kitchen.d.ts | 3 +- types/react-icons/lib/md/label-outline.d.ts | 3 +- types/react-icons/lib/md/label.d.ts | 3 +- types/react-icons/lib/md/landscape.d.ts | 3 +- types/react-icons/lib/md/language.d.ts | 3 +- .../react-icons/lib/md/laptop-chromebook.d.ts | 3 +- types/react-icons/lib/md/laptop-mac.d.ts | 3 +- types/react-icons/lib/md/laptop-windows.d.ts | 3 +- types/react-icons/lib/md/laptop.d.ts | 3 +- types/react-icons/lib/md/last-page.d.ts | 3 +- types/react-icons/lib/md/launch.d.ts | 3 +- types/react-icons/lib/md/layers-clear.d.ts | 3 +- types/react-icons/lib/md/layers.d.ts | 3 +- types/react-icons/lib/md/leak-add.d.ts | 3 +- types/react-icons/lib/md/leak-remove.d.ts | 3 +- types/react-icons/lib/md/lens.d.ts | 3 +- types/react-icons/lib/md/library-add.d.ts | 3 +- types/react-icons/lib/md/library-books.d.ts | 3 +- types/react-icons/lib/md/library-music.d.ts | 3 +- .../react-icons/lib/md/lightbulb-outline.d.ts | 3 +- types/react-icons/lib/md/line-style.d.ts | 3 +- types/react-icons/lib/md/line-weight.d.ts | 3 +- types/react-icons/lib/md/linear-scale.d.ts | 3 +- types/react-icons/lib/md/link.d.ts | 3 +- types/react-icons/lib/md/linked-camera.d.ts | 3 +- types/react-icons/lib/md/list.d.ts | 3 +- types/react-icons/lib/md/live-help.d.ts | 3 +- types/react-icons/lib/md/live-tv.d.ts | 3 +- types/react-icons/lib/md/local-airport.d.ts | 3 +- types/react-icons/lib/md/local-atm.d.ts | 3 +- .../react-icons/lib/md/local-attraction.d.ts | 3 +- types/react-icons/lib/md/local-bar.d.ts | 3 +- types/react-icons/lib/md/local-cafe.d.ts | 3 +- types/react-icons/lib/md/local-car-wash.d.ts | 3 +- .../lib/md/local-convenience-store.d.ts | 3 +- types/react-icons/lib/md/local-drink.d.ts | 3 +- types/react-icons/lib/md/local-florist.d.ts | 3 +- .../react-icons/lib/md/local-gas-station.d.ts | 3 +- .../lib/md/local-grocery-store.d.ts | 3 +- types/react-icons/lib/md/local-hospital.d.ts | 3 +- types/react-icons/lib/md/local-hotel.d.ts | 3 +- .../lib/md/local-laundry-service.d.ts | 3 +- types/react-icons/lib/md/local-library.d.ts | 3 +- types/react-icons/lib/md/local-mall.d.ts | 3 +- types/react-icons/lib/md/local-movies.d.ts | 3 +- types/react-icons/lib/md/local-offer.d.ts | 3 +- types/react-icons/lib/md/local-parking.d.ts | 3 +- types/react-icons/lib/md/local-pharmacy.d.ts | 3 +- types/react-icons/lib/md/local-phone.d.ts | 3 +- types/react-icons/lib/md/local-pizza.d.ts | 3 +- types/react-icons/lib/md/local-play.d.ts | 3 +- .../react-icons/lib/md/local-post-office.d.ts | 3 +- .../react-icons/lib/md/local-print-shop.d.ts | 3 +- .../react-icons/lib/md/local-restaurant.d.ts | 3 +- types/react-icons/lib/md/local-see.d.ts | 3 +- types/react-icons/lib/md/local-shipping.d.ts | 3 +- types/react-icons/lib/md/local-taxi.d.ts | 3 +- types/react-icons/lib/md/location-city.d.ts | 3 +- .../react-icons/lib/md/location-disabled.d.ts | 3 +- .../react-icons/lib/md/location-history.d.ts | 3 +- types/react-icons/lib/md/location-off.d.ts | 3 +- types/react-icons/lib/md/location-on.d.ts | 3 +- .../lib/md/location-searching.d.ts | 3 +- types/react-icons/lib/md/lock-open.d.ts | 3 +- types/react-icons/lib/md/lock-outline.d.ts | 3 +- types/react-icons/lib/md/lock.d.ts | 3 +- types/react-icons/lib/md/looks-3.d.ts | 3 +- types/react-icons/lib/md/looks-4.d.ts | 3 +- types/react-icons/lib/md/looks-5.d.ts | 3 +- types/react-icons/lib/md/looks-6.d.ts | 3 +- types/react-icons/lib/md/looks-one.d.ts | 3 +- types/react-icons/lib/md/looks-two.d.ts | 3 +- types/react-icons/lib/md/looks.d.ts | 3 +- types/react-icons/lib/md/loop.d.ts | 3 +- types/react-icons/lib/md/loupe.d.ts | 3 +- types/react-icons/lib/md/low-priority.d.ts | 3 +- types/react-icons/lib/md/loyalty.d.ts | 3 +- types/react-icons/lib/md/mail-outline.d.ts | 3 +- types/react-icons/lib/md/mail.d.ts | 3 +- types/react-icons/lib/md/map.d.ts | 3 +- .../lib/md/markunread-mailbox.d.ts | 3 +- types/react-icons/lib/md/markunread.d.ts | 3 +- types/react-icons/lib/md/memory.d.ts | 3 +- types/react-icons/lib/md/menu.d.ts | 3 +- types/react-icons/lib/md/merge-type.d.ts | 3 +- types/react-icons/lib/md/message.d.ts | 3 +- types/react-icons/lib/md/mic-none.d.ts | 3 +- types/react-icons/lib/md/mic-off.d.ts | 3 +- types/react-icons/lib/md/mic.d.ts | 3 +- types/react-icons/lib/md/mms.d.ts | 3 +- types/react-icons/lib/md/mode-comment.d.ts | 3 +- types/react-icons/lib/md/mode-edit.d.ts | 3 +- types/react-icons/lib/md/monetization-on.d.ts | 3 +- types/react-icons/lib/md/money-off.d.ts | 3 +- .../react-icons/lib/md/monochrome-photos.d.ts | 3 +- types/react-icons/lib/md/mood-bad.d.ts | 3 +- types/react-icons/lib/md/mood.d.ts | 3 +- types/react-icons/lib/md/more-horiz.d.ts | 3 +- types/react-icons/lib/md/more-vert.d.ts | 3 +- types/react-icons/lib/md/more.d.ts | 3 +- types/react-icons/lib/md/motorcycle.d.ts | 3 +- types/react-icons/lib/md/mouse.d.ts | 3 +- types/react-icons/lib/md/move-to-inbox.d.ts | 3 +- types/react-icons/lib/md/movie-creation.d.ts | 3 +- types/react-icons/lib/md/movie-filter.d.ts | 3 +- types/react-icons/lib/md/movie.d.ts | 3 +- types/react-icons/lib/md/multiline-chart.d.ts | 3 +- types/react-icons/lib/md/music-note.d.ts | 3 +- types/react-icons/lib/md/music-video.d.ts | 3 +- types/react-icons/lib/md/my-location.d.ts | 3 +- types/react-icons/lib/md/nature-people.d.ts | 3 +- types/react-icons/lib/md/nature.d.ts | 3 +- types/react-icons/lib/md/navigate-before.d.ts | 3 +- types/react-icons/lib/md/navigate-next.d.ts | 3 +- types/react-icons/lib/md/navigation.d.ts | 3 +- types/react-icons/lib/md/near-me.d.ts | 3 +- types/react-icons/lib/md/network-cell.d.ts | 3 +- types/react-icons/lib/md/network-check.d.ts | 3 +- types/react-icons/lib/md/network-locked.d.ts | 3 +- types/react-icons/lib/md/network-wifi.d.ts | 3 +- types/react-icons/lib/md/new-releases.d.ts | 3 +- types/react-icons/lib/md/next-week.d.ts | 3 +- types/react-icons/lib/md/nfc.d.ts | 3 +- types/react-icons/lib/md/no-encryption.d.ts | 3 +- types/react-icons/lib/md/no-sim.d.ts | 3 +- types/react-icons/lib/md/not-interested.d.ts | 3 +- types/react-icons/lib/md/note-add.d.ts | 3 +- types/react-icons/lib/md/note.d.ts | 3 +- .../lib/md/notifications-active.d.ts | 3 +- .../lib/md/notifications-none.d.ts | 3 +- .../react-icons/lib/md/notifications-off.d.ts | 3 +- .../lib/md/notifications-paused.d.ts | 3 +- types/react-icons/lib/md/notifications.d.ts | 3 +- types/react-icons/lib/md/now-wallpaper.d.ts | 3 +- types/react-icons/lib/md/now-widgets.d.ts | 3 +- types/react-icons/lib/md/offline-pin.d.ts | 3 +- types/react-icons/lib/md/ondemand-video.d.ts | 3 +- types/react-icons/lib/md/opacity.d.ts | 3 +- types/react-icons/lib/md/open-in-browser.d.ts | 3 +- types/react-icons/lib/md/open-in-new.d.ts | 3 +- types/react-icons/lib/md/open-with.d.ts | 3 +- types/react-icons/lib/md/pages.d.ts | 3 +- types/react-icons/lib/md/pageview.d.ts | 3 +- types/react-icons/lib/md/palette.d.ts | 3 +- types/react-icons/lib/md/pan-tool.d.ts | 3 +- .../react-icons/lib/md/panorama-fish-eye.d.ts | 3 +- .../lib/md/panorama-horizontal.d.ts | 3 +- .../react-icons/lib/md/panorama-vertical.d.ts | 3 +- .../lib/md/panorama-wide-angle.d.ts | 3 +- types/react-icons/lib/md/panorama.d.ts | 3 +- types/react-icons/lib/md/party-mode.d.ts | 3 +- .../lib/md/pause-circle-filled.d.ts | 3 +- .../lib/md/pause-circle-outline.d.ts | 3 +- types/react-icons/lib/md/pause.d.ts | 3 +- types/react-icons/lib/md/payment.d.ts | 3 +- types/react-icons/lib/md/people-outline.d.ts | 3 +- types/react-icons/lib/md/people.d.ts | 3 +- types/react-icons/lib/md/perm-camera-mic.d.ts | 3 +- .../lib/md/perm-contact-calendar.d.ts | 3 +- .../react-icons/lib/md/perm-data-setting.d.ts | 3 +- .../lib/md/perm-device-information.d.ts | 3 +- types/react-icons/lib/md/perm-identity.d.ts | 3 +- types/react-icons/lib/md/perm-media.d.ts | 3 +- types/react-icons/lib/md/perm-phone-msg.d.ts | 3 +- types/react-icons/lib/md/perm-scan-wifi.d.ts | 3 +- types/react-icons/lib/md/person-add.d.ts | 3 +- types/react-icons/lib/md/person-outline.d.ts | 3 +- .../react-icons/lib/md/person-pin-circle.d.ts | 3 +- types/react-icons/lib/md/person-pin.d.ts | 3 +- types/react-icons/lib/md/person.d.ts | 3 +- types/react-icons/lib/md/personal-video.d.ts | 3 +- types/react-icons/lib/md/pets.d.ts | 3 +- types/react-icons/lib/md/phone-android.d.ts | 3 +- .../lib/md/phone-bluetooth-speaker.d.ts | 3 +- types/react-icons/lib/md/phone-forwarded.d.ts | 3 +- types/react-icons/lib/md/phone-in-talk.d.ts | 3 +- types/react-icons/lib/md/phone-iphone.d.ts | 3 +- types/react-icons/lib/md/phone-locked.d.ts | 3 +- types/react-icons/lib/md/phone-missed.d.ts | 3 +- types/react-icons/lib/md/phone-paused.d.ts | 3 +- types/react-icons/lib/md/phone.d.ts | 3 +- types/react-icons/lib/md/phonelink-erase.d.ts | 3 +- types/react-icons/lib/md/phonelink-lock.d.ts | 3 +- types/react-icons/lib/md/phonelink-off.d.ts | 3 +- types/react-icons/lib/md/phonelink-ring.d.ts | 3 +- types/react-icons/lib/md/phonelink-setup.d.ts | 3 +- types/react-icons/lib/md/phonelink.d.ts | 3 +- types/react-icons/lib/md/photo-album.d.ts | 3 +- types/react-icons/lib/md/photo-camera.d.ts | 3 +- types/react-icons/lib/md/photo-filter.d.ts | 3 +- types/react-icons/lib/md/photo-library.d.ts | 3 +- .../lib/md/photo-size-select-actual.d.ts | 3 +- .../lib/md/photo-size-select-large.d.ts | 3 +- .../lib/md/photo-size-select-small.d.ts | 3 +- types/react-icons/lib/md/photo.d.ts | 3 +- types/react-icons/lib/md/picture-as-pdf.d.ts | 3 +- .../lib/md/picture-in-picture-alt.d.ts | 3 +- .../lib/md/picture-in-picture.d.ts | 3 +- .../lib/md/pie-chart-outlined.d.ts | 3 +- types/react-icons/lib/md/pie-chart.d.ts | 3 +- types/react-icons/lib/md/pin-drop.d.ts | 3 +- types/react-icons/lib/md/place.d.ts | 3 +- types/react-icons/lib/md/play-arrow.d.ts | 3 +- .../lib/md/play-circle-filled.d.ts | 3 +- .../lib/md/play-circle-outline.d.ts | 3 +- types/react-icons/lib/md/play-for-work.d.ts | 3 +- .../lib/md/playlist-add-check.d.ts | 3 +- types/react-icons/lib/md/playlist-add.d.ts | 3 +- types/react-icons/lib/md/playlist-play.d.ts | 3 +- types/react-icons/lib/md/plus-one.d.ts | 3 +- types/react-icons/lib/md/poll.d.ts | 3 +- types/react-icons/lib/md/polymer.d.ts | 3 +- types/react-icons/lib/md/pool.d.ts | 3 +- .../react-icons/lib/md/portable-wifi-off.d.ts | 3 +- types/react-icons/lib/md/portrait.d.ts | 3 +- types/react-icons/lib/md/power-input.d.ts | 3 +- .../lib/md/power-settings-new.d.ts | 3 +- types/react-icons/lib/md/power.d.ts | 3 +- types/react-icons/lib/md/pregnant-woman.d.ts | 3 +- types/react-icons/lib/md/present-to-all.d.ts | 3 +- types/react-icons/lib/md/print.d.ts | 3 +- types/react-icons/lib/md/priority-high.d.ts | 3 +- types/react-icons/lib/md/public.d.ts | 3 +- types/react-icons/lib/md/publish.d.ts | 3 +- types/react-icons/lib/md/query-builder.d.ts | 3 +- types/react-icons/lib/md/question-answer.d.ts | 3 +- types/react-icons/lib/md/queue-music.d.ts | 3 +- types/react-icons/lib/md/queue-play-next.d.ts | 3 +- types/react-icons/lib/md/queue.d.ts | 3 +- .../lib/md/radio-button-checked.d.ts | 3 +- .../lib/md/radio-button-unchecked.d.ts | 3 +- types/react-icons/lib/md/radio.d.ts | 3 +- types/react-icons/lib/md/rate-review.d.ts | 3 +- types/react-icons/lib/md/receipt.d.ts | 3 +- types/react-icons/lib/md/recent-actors.d.ts | 3 +- .../react-icons/lib/md/record-voice-over.d.ts | 3 +- types/react-icons/lib/md/redeem.d.ts | 3 +- types/react-icons/lib/md/redo.d.ts | 3 +- types/react-icons/lib/md/refresh.d.ts | 3 +- .../lib/md/remove-circle-outline.d.ts | 3 +- types/react-icons/lib/md/remove-circle.d.ts | 3 +- .../react-icons/lib/md/remove-from-queue.d.ts | 3 +- types/react-icons/lib/md/remove-red-eye.d.ts | 3 +- .../lib/md/remove-shopping-cart.d.ts | 3 +- types/react-icons/lib/md/remove.d.ts | 3 +- types/react-icons/lib/md/reorder.d.ts | 3 +- types/react-icons/lib/md/repeat-one.d.ts | 3 +- types/react-icons/lib/md/repeat.d.ts | 3 +- types/react-icons/lib/md/replay-10.d.ts | 3 +- types/react-icons/lib/md/replay-30.d.ts | 3 +- types/react-icons/lib/md/replay-5.d.ts | 3 +- types/react-icons/lib/md/replay.d.ts | 3 +- types/react-icons/lib/md/reply-all.d.ts | 3 +- types/react-icons/lib/md/reply.d.ts | 3 +- types/react-icons/lib/md/report-problem.d.ts | 3 +- types/react-icons/lib/md/report.d.ts | 3 +- types/react-icons/lib/md/restaurant-menu.d.ts | 3 +- types/react-icons/lib/md/restaurant.d.ts | 3 +- types/react-icons/lib/md/restore-page.d.ts | 3 +- types/react-icons/lib/md/restore.d.ts | 3 +- types/react-icons/lib/md/ring-volume.d.ts | 3 +- types/react-icons/lib/md/room-service.d.ts | 3 +- types/react-icons/lib/md/room.d.ts | 3 +- .../lib/md/rotate-90-degrees-ccw.d.ts | 3 +- types/react-icons/lib/md/rotate-left.d.ts | 3 +- types/react-icons/lib/md/rotate-right.d.ts | 3 +- types/react-icons/lib/md/rounded-corner.d.ts | 3 +- types/react-icons/lib/md/router.d.ts | 3 +- types/react-icons/lib/md/rowing.d.ts | 3 +- types/react-icons/lib/md/rss-feed.d.ts | 3 +- types/react-icons/lib/md/rv-hookup.d.ts | 3 +- types/react-icons/lib/md/satellite.d.ts | 3 +- types/react-icons/lib/md/save.d.ts | 3 +- types/react-icons/lib/md/scanner.d.ts | 3 +- types/react-icons/lib/md/schedule.d.ts | 3 +- types/react-icons/lib/md/school.d.ts | 3 +- .../lib/md/screen-lock-landscape.d.ts | 3 +- .../lib/md/screen-lock-portrait.d.ts | 3 +- .../lib/md/screen-lock-rotation.d.ts | 3 +- types/react-icons/lib/md/screen-rotation.d.ts | 3 +- types/react-icons/lib/md/screen-share.d.ts | 3 +- types/react-icons/lib/md/sd-card.d.ts | 3 +- types/react-icons/lib/md/sd-storage.d.ts | 3 +- types/react-icons/lib/md/search.d.ts | 3 +- types/react-icons/lib/md/security.d.ts | 3 +- types/react-icons/lib/md/select-all.d.ts | 3 +- types/react-icons/lib/md/send.d.ts | 3 +- .../lib/md/sentiment-dissatisfied.d.ts | 3 +- .../react-icons/lib/md/sentiment-neutral.d.ts | 3 +- .../lib/md/sentiment-satisfied.d.ts | 3 +- .../lib/md/sentiment-very-dissatisfied.d.ts | 3 +- .../lib/md/sentiment-very-satisfied.d.ts | 3 +- .../lib/md/settings-applications.d.ts | 3 +- .../lib/md/settings-backup-restore.d.ts | 3 +- .../lib/md/settings-bluetooth.d.ts | 3 +- .../lib/md/settings-brightness.d.ts | 3 +- types/react-icons/lib/md/settings-cell.d.ts | 3 +- .../react-icons/lib/md/settings-ethernet.d.ts | 3 +- .../lib/md/settings-input-antenna.d.ts | 3 +- .../lib/md/settings-input-component.d.ts | 3 +- .../lib/md/settings-input-composite.d.ts | 3 +- .../lib/md/settings-input-hdmi.d.ts | 3 +- .../lib/md/settings-input-svideo.d.ts | 3 +- .../react-icons/lib/md/settings-overscan.d.ts | 3 +- types/react-icons/lib/md/settings-phone.d.ts | 3 +- types/react-icons/lib/md/settings-power.d.ts | 3 +- types/react-icons/lib/md/settings-remote.d.ts | 3 +- .../lib/md/settings-system-daydream.d.ts | 3 +- types/react-icons/lib/md/settings-voice.d.ts | 3 +- types/react-icons/lib/md/settings.d.ts | 3 +- types/react-icons/lib/md/share.d.ts | 3 +- types/react-icons/lib/md/shop-two.d.ts | 3 +- types/react-icons/lib/md/shop.d.ts | 3 +- types/react-icons/lib/md/shopping-basket.d.ts | 3 +- types/react-icons/lib/md/shopping-cart.d.ts | 3 +- types/react-icons/lib/md/short-text.d.ts | 3 +- types/react-icons/lib/md/show-chart.d.ts | 3 +- types/react-icons/lib/md/shuffle.d.ts | 3 +- .../lib/md/signal-cellular-4-bar.d.ts | 3 +- ...-cellular-connected-no-internet-4-bar.d.ts | 3 +- .../lib/md/signal-cellular-no-sim.d.ts | 3 +- .../lib/md/signal-cellular-null.d.ts | 3 +- .../lib/md/signal-cellular-off.d.ts | 3 +- .../lib/md/signal-wifi-4-bar-lock.d.ts | 3 +- .../react-icons/lib/md/signal-wifi-4-bar.d.ts | 3 +- types/react-icons/lib/md/signal-wifi-off.d.ts | 3 +- types/react-icons/lib/md/sim-card-alert.d.ts | 3 +- types/react-icons/lib/md/sim-card.d.ts | 3 +- types/react-icons/lib/md/skip-next.d.ts | 3 +- types/react-icons/lib/md/skip-previous.d.ts | 3 +- types/react-icons/lib/md/slideshow.d.ts | 3 +- .../react-icons/lib/md/slow-motion-video.d.ts | 3 +- types/react-icons/lib/md/smartphone.d.ts | 3 +- types/react-icons/lib/md/smoke-free.d.ts | 3 +- types/react-icons/lib/md/smoking-rooms.d.ts | 3 +- types/react-icons/lib/md/sms-failed.d.ts | 3 +- types/react-icons/lib/md/sms.d.ts | 3 +- types/react-icons/lib/md/snooze.d.ts | 3 +- types/react-icons/lib/md/sort-by-alpha.d.ts | 3 +- types/react-icons/lib/md/sort.d.ts | 3 +- types/react-icons/lib/md/spa.d.ts | 3 +- types/react-icons/lib/md/space-bar.d.ts | 3 +- types/react-icons/lib/md/speaker-group.d.ts | 3 +- .../react-icons/lib/md/speaker-notes-off.d.ts | 3 +- types/react-icons/lib/md/speaker-notes.d.ts | 3 +- types/react-icons/lib/md/speaker-phone.d.ts | 3 +- types/react-icons/lib/md/speaker.d.ts | 3 +- types/react-icons/lib/md/spellcheck.d.ts | 3 +- types/react-icons/lib/md/star-border.d.ts | 3 +- types/react-icons/lib/md/star-half.d.ts | 3 +- types/react-icons/lib/md/star-outline.d.ts | 3 +- types/react-icons/lib/md/star.d.ts | 3 +- types/react-icons/lib/md/stars.d.ts | 3 +- .../lib/md/stay-current-landscape.d.ts | 3 +- .../lib/md/stay-current-portrait.d.ts | 3 +- .../lib/md/stay-primary-landscape.d.ts | 3 +- .../lib/md/stay-primary-portrait.d.ts | 3 +- .../react-icons/lib/md/stop-screen-share.d.ts | 3 +- types/react-icons/lib/md/stop.d.ts | 3 +- types/react-icons/lib/md/storage.d.ts | 3 +- .../lib/md/store-mall-directory.d.ts | 3 +- types/react-icons/lib/md/store.d.ts | 3 +- types/react-icons/lib/md/straighten.d.ts | 3 +- types/react-icons/lib/md/streetview.d.ts | 3 +- types/react-icons/lib/md/strikethrough-s.d.ts | 3 +- types/react-icons/lib/md/style.d.ts | 3 +- .../lib/md/subdirectory-arrow-left.d.ts | 3 +- .../lib/md/subdirectory-arrow-right.d.ts | 3 +- types/react-icons/lib/md/subject.d.ts | 3 +- types/react-icons/lib/md/subscriptions.d.ts | 3 +- types/react-icons/lib/md/subtitles.d.ts | 3 +- types/react-icons/lib/md/subway.d.ts | 3 +- .../lib/md/supervisor-account.d.ts | 3 +- types/react-icons/lib/md/surround-sound.d.ts | 3 +- types/react-icons/lib/md/swap-calls.d.ts | 3 +- types/react-icons/lib/md/swap-horiz.d.ts | 3 +- types/react-icons/lib/md/swap-vert.d.ts | 3 +- .../lib/md/swap-vertical-circle.d.ts | 3 +- types/react-icons/lib/md/switch-camera.d.ts | 3 +- types/react-icons/lib/md/switch-video.d.ts | 3 +- types/react-icons/lib/md/sync-disabled.d.ts | 3 +- types/react-icons/lib/md/sync-problem.d.ts | 3 +- types/react-icons/lib/md/sync.d.ts | 3 +- .../react-icons/lib/md/system-update-alt.d.ts | 3 +- types/react-icons/lib/md/system-update.d.ts | 3 +- types/react-icons/lib/md/tab-unselected.d.ts | 3 +- types/react-icons/lib/md/tab.d.ts | 3 +- types/react-icons/lib/md/tablet-android.d.ts | 3 +- types/react-icons/lib/md/tablet-mac.d.ts | 3 +- types/react-icons/lib/md/tablet.d.ts | 3 +- types/react-icons/lib/md/tag-faces.d.ts | 3 +- types/react-icons/lib/md/tap-and-play.d.ts | 3 +- types/react-icons/lib/md/terrain.d.ts | 3 +- types/react-icons/lib/md/text-fields.d.ts | 3 +- types/react-icons/lib/md/text-format.d.ts | 3 +- types/react-icons/lib/md/textsms.d.ts | 3 +- types/react-icons/lib/md/texture.d.ts | 3 +- types/react-icons/lib/md/theaters.d.ts | 3 +- types/react-icons/lib/md/thumb-down.d.ts | 3 +- types/react-icons/lib/md/thumb-up.d.ts | 3 +- types/react-icons/lib/md/thumbs-up-down.d.ts | 3 +- types/react-icons/lib/md/time-to-leave.d.ts | 3 +- types/react-icons/lib/md/timelapse.d.ts | 3 +- types/react-icons/lib/md/timeline.d.ts | 3 +- types/react-icons/lib/md/timer-10.d.ts | 3 +- types/react-icons/lib/md/timer-3.d.ts | 3 +- types/react-icons/lib/md/timer-off.d.ts | 3 +- types/react-icons/lib/md/timer.d.ts | 3 +- types/react-icons/lib/md/title.d.ts | 3 +- types/react-icons/lib/md/toc.d.ts | 3 +- types/react-icons/lib/md/today.d.ts | 3 +- types/react-icons/lib/md/toll.d.ts | 3 +- types/react-icons/lib/md/tonality.d.ts | 3 +- types/react-icons/lib/md/touch-app.d.ts | 3 +- types/react-icons/lib/md/toys.d.ts | 3 +- types/react-icons/lib/md/track-changes.d.ts | 3 +- types/react-icons/lib/md/traffic.d.ts | 3 +- types/react-icons/lib/md/train.d.ts | 3 +- types/react-icons/lib/md/tram.d.ts | 3 +- .../lib/md/transfer-within-a-station.d.ts | 3 +- types/react-icons/lib/md/transform.d.ts | 3 +- types/react-icons/lib/md/translate.d.ts | 3 +- types/react-icons/lib/md/trending-down.d.ts | 3 +- types/react-icons/lib/md/trending-flat.d.ts | 3 +- .../react-icons/lib/md/trending-neutral.d.ts | 3 +- types/react-icons/lib/md/trending-up.d.ts | 3 +- types/react-icons/lib/md/tune.d.ts | 3 +- types/react-icons/lib/md/turned-in-not.d.ts | 3 +- types/react-icons/lib/md/turned-in.d.ts | 3 +- types/react-icons/lib/md/tv.d.ts | 3 +- types/react-icons/lib/md/unarchive.d.ts | 3 +- types/react-icons/lib/md/undo.d.ts | 3 +- types/react-icons/lib/md/unfold-less.d.ts | 3 +- types/react-icons/lib/md/unfold-more.d.ts | 3 +- types/react-icons/lib/md/update.d.ts | 3 +- types/react-icons/lib/md/usb.d.ts | 3 +- types/react-icons/lib/md/verified-user.d.ts | 3 +- .../lib/md/vertical-align-bottom.d.ts | 3 +- .../lib/md/vertical-align-center.d.ts | 3 +- .../lib/md/vertical-align-top.d.ts | 3 +- types/react-icons/lib/md/vibration.d.ts | 3 +- types/react-icons/lib/md/video-call.d.ts | 3 +- .../react-icons/lib/md/video-collection.d.ts | 3 +- types/react-icons/lib/md/video-label.d.ts | 3 +- types/react-icons/lib/md/video-library.d.ts | 3 +- types/react-icons/lib/md/videocam-off.d.ts | 3 +- types/react-icons/lib/md/videocam.d.ts | 3 +- types/react-icons/lib/md/videogame-asset.d.ts | 3 +- types/react-icons/lib/md/view-agenda.d.ts | 3 +- types/react-icons/lib/md/view-array.d.ts | 3 +- types/react-icons/lib/md/view-carousel.d.ts | 3 +- types/react-icons/lib/md/view-column.d.ts | 3 +- .../react-icons/lib/md/view-comfortable.d.ts | 3 +- types/react-icons/lib/md/view-comfy.d.ts | 3 +- types/react-icons/lib/md/view-compact.d.ts | 3 +- types/react-icons/lib/md/view-day.d.ts | 3 +- types/react-icons/lib/md/view-headline.d.ts | 3 +- types/react-icons/lib/md/view-list.d.ts | 3 +- types/react-icons/lib/md/view-module.d.ts | 3 +- types/react-icons/lib/md/view-quilt.d.ts | 3 +- types/react-icons/lib/md/view-stream.d.ts | 3 +- types/react-icons/lib/md/view-week.d.ts | 3 +- types/react-icons/lib/md/vignette.d.ts | 3 +- types/react-icons/lib/md/visibility-off.d.ts | 3 +- types/react-icons/lib/md/visibility.d.ts | 3 +- types/react-icons/lib/md/voice-chat.d.ts | 3 +- types/react-icons/lib/md/voicemail.d.ts | 3 +- types/react-icons/lib/md/volume-down.d.ts | 3 +- types/react-icons/lib/md/volume-mute.d.ts | 3 +- types/react-icons/lib/md/volume-off.d.ts | 3 +- types/react-icons/lib/md/volume-up.d.ts | 3 +- types/react-icons/lib/md/vpn-key.d.ts | 3 +- types/react-icons/lib/md/vpn-lock.d.ts | 3 +- types/react-icons/lib/md/wallpaper.d.ts | 3 +- types/react-icons/lib/md/warning.d.ts | 3 +- types/react-icons/lib/md/watch-later.d.ts | 3 +- types/react-icons/lib/md/watch.d.ts | 3 +- types/react-icons/lib/md/wb-auto.d.ts | 3 +- types/react-icons/lib/md/wb-cloudy.d.ts | 3 +- types/react-icons/lib/md/wb-incandescent.d.ts | 3 +- types/react-icons/lib/md/wb-iridescent.d.ts | 3 +- types/react-icons/lib/md/wb-sunny.d.ts | 3 +- types/react-icons/lib/md/wc.d.ts | 3 +- types/react-icons/lib/md/web-asset.d.ts | 3 +- types/react-icons/lib/md/web.d.ts | 3 +- types/react-icons/lib/md/weekend.d.ts | 3 +- types/react-icons/lib/md/whatshot.d.ts | 3 +- types/react-icons/lib/md/widgets.d.ts | 3 +- types/react-icons/lib/md/wifi-lock.d.ts | 3 +- types/react-icons/lib/md/wifi-tethering.d.ts | 3 +- types/react-icons/lib/md/wifi.d.ts | 3 +- types/react-icons/lib/md/work.d.ts | 3 +- types/react-icons/lib/md/wrap-text.d.ts | 3 +- .../lib/md/youtube-searched-for.d.ts | 3 +- types/react-icons/lib/md/zoom-in.d.ts | 3 +- types/react-icons/lib/md/zoom-out-map.d.ts | 3 +- types/react-icons/lib/md/zoom-out.d.ts | 3 +- .../react-icons/lib/ti/adjust-brightness.d.ts | 3 +- types/react-icons/lib/ti/adjust-contrast.d.ts | 3 +- types/react-icons/lib/ti/anchor-outline.d.ts | 3 +- types/react-icons/lib/ti/anchor.d.ts | 3 +- types/react-icons/lib/ti/archive.d.ts | 3 +- .../lib/ti/arrow-back-outline.d.ts | 3 +- types/react-icons/lib/ti/arrow-back.d.ts | 3 +- .../lib/ti/arrow-down-outline.d.ts | 3 +- .../react-icons/lib/ti/arrow-down-thick.d.ts | 3 +- types/react-icons/lib/ti/arrow-down.d.ts | 3 +- .../lib/ti/arrow-forward-outline.d.ts | 3 +- types/react-icons/lib/ti/arrow-forward.d.ts | 3 +- .../lib/ti/arrow-left-outline.d.ts | 3 +- .../react-icons/lib/ti/arrow-left-thick.d.ts | 3 +- types/react-icons/lib/ti/arrow-left.d.ts | 3 +- .../lib/ti/arrow-loop-outline.d.ts | 3 +- types/react-icons/lib/ti/arrow-loop.d.ts | 3 +- .../lib/ti/arrow-maximise-outline.d.ts | 3 +- types/react-icons/lib/ti/arrow-maximise.d.ts | 3 +- .../lib/ti/arrow-minimise-outline.d.ts | 3 +- types/react-icons/lib/ti/arrow-minimise.d.ts | 3 +- .../lib/ti/arrow-move-outline.d.ts | 3 +- types/react-icons/lib/ti/arrow-move.d.ts | 3 +- .../lib/ti/arrow-repeat-outline.d.ts | 3 +- types/react-icons/lib/ti/arrow-repeat.d.ts | 3 +- .../lib/ti/arrow-right-outline.d.ts | 3 +- .../react-icons/lib/ti/arrow-right-thick.d.ts | 3 +- types/react-icons/lib/ti/arrow-right.d.ts | 3 +- types/react-icons/lib/ti/arrow-shuffle.d.ts | 3 +- .../react-icons/lib/ti/arrow-sorted-down.d.ts | 3 +- types/react-icons/lib/ti/arrow-sorted-up.d.ts | 3 +- .../lib/ti/arrow-sync-outline.d.ts | 3 +- types/react-icons/lib/ti/arrow-sync.d.ts | 3 +- types/react-icons/lib/ti/arrow-unsorted.d.ts | 3 +- .../react-icons/lib/ti/arrow-up-outline.d.ts | 3 +- types/react-icons/lib/ti/arrow-up-thick.d.ts | 3 +- types/react-icons/lib/ti/arrow-up.d.ts | 3 +- types/react-icons/lib/ti/at.d.ts | 3 +- .../lib/ti/attachment-outline.d.ts | 3 +- types/react-icons/lib/ti/attachment.d.ts | 3 +- .../react-icons/lib/ti/backspace-outline.d.ts | 3 +- types/react-icons/lib/ti/backspace.d.ts | 3 +- types/react-icons/lib/ti/battery-charge.d.ts | 3 +- types/react-icons/lib/ti/battery-full.d.ts | 3 +- types/react-icons/lib/ti/battery-high.d.ts | 3 +- types/react-icons/lib/ti/battery-low.d.ts | 3 +- types/react-icons/lib/ti/battery-mid.d.ts | 3 +- types/react-icons/lib/ti/beaker.d.ts | 3 +- types/react-icons/lib/ti/beer.d.ts | 3 +- types/react-icons/lib/ti/bell.d.ts | 3 +- types/react-icons/lib/ti/book.d.ts | 3 +- types/react-icons/lib/ti/bookmark.d.ts | 3 +- types/react-icons/lib/ti/briefcase.d.ts | 3 +- types/react-icons/lib/ti/brush.d.ts | 3 +- types/react-icons/lib/ti/business-card.d.ts | 3 +- types/react-icons/lib/ti/calculator.d.ts | 3 +- .../react-icons/lib/ti/calendar-outline.d.ts | 3 +- types/react-icons/lib/ti/calendar.d.ts | 3 +- .../react-icons/lib/ti/calender-outline.d.ts | 3 +- types/react-icons/lib/ti/calender.d.ts | 3 +- types/react-icons/lib/ti/camera-outline.d.ts | 3 +- types/react-icons/lib/ti/camera.d.ts | 3 +- types/react-icons/lib/ti/cancel-outline.d.ts | 3 +- types/react-icons/lib/ti/cancel.d.ts | 3 +- .../lib/ti/chart-area-outline.d.ts | 3 +- types/react-icons/lib/ti/chart-area.d.ts | 3 +- .../react-icons/lib/ti/chart-bar-outline.d.ts | 3 +- types/react-icons/lib/ti/chart-bar.d.ts | 3 +- .../lib/ti/chart-line-outline.d.ts | 3 +- types/react-icons/lib/ti/chart-line.d.ts | 3 +- .../react-icons/lib/ti/chart-pie-outline.d.ts | 3 +- types/react-icons/lib/ti/chart-pie.d.ts | 3 +- .../lib/ti/chevron-left-outline.d.ts | 3 +- types/react-icons/lib/ti/chevron-left.d.ts | 3 +- .../lib/ti/chevron-right-outline.d.ts | 3 +- types/react-icons/lib/ti/chevron-right.d.ts | 3 +- types/react-icons/lib/ti/clipboard.d.ts | 3 +- .../lib/ti/cloud-storage-outline.d.ts | 3 +- types/react-icons/lib/ti/cloud-storage.d.ts | 3 +- types/react-icons/lib/ti/code-outline.d.ts | 3 +- types/react-icons/lib/ti/code.d.ts | 3 +- types/react-icons/lib/ti/coffee.d.ts | 3 +- types/react-icons/lib/ti/cog-outline.d.ts | 3 +- types/react-icons/lib/ti/cog.d.ts | 3 +- types/react-icons/lib/ti/compass.d.ts | 3 +- types/react-icons/lib/ti/contacts.d.ts | 3 +- types/react-icons/lib/ti/credit-card.d.ts | 3 +- types/react-icons/lib/ti/cross.d.ts | 3 +- types/react-icons/lib/ti/css3.d.ts | 3 +- types/react-icons/lib/ti/database.d.ts | 3 +- types/react-icons/lib/ti/delete-outline.d.ts | 3 +- types/react-icons/lib/ti/delete.d.ts | 3 +- types/react-icons/lib/ti/device-desktop.d.ts | 3 +- types/react-icons/lib/ti/device-laptop.d.ts | 3 +- types/react-icons/lib/ti/device-phone.d.ts | 3 +- types/react-icons/lib/ti/device-tablet.d.ts | 3 +- types/react-icons/lib/ti/directions.d.ts | 3 +- types/react-icons/lib/ti/divide-outline.d.ts | 3 +- types/react-icons/lib/ti/divide.d.ts | 3 +- types/react-icons/lib/ti/document-add.d.ts | 3 +- types/react-icons/lib/ti/document-delete.d.ts | 3 +- types/react-icons/lib/ti/document-text.d.ts | 3 +- types/react-icons/lib/ti/document.d.ts | 3 +- .../react-icons/lib/ti/download-outline.d.ts | 3 +- types/react-icons/lib/ti/download.d.ts | 3 +- types/react-icons/lib/ti/dropbox.d.ts | 3 +- types/react-icons/lib/ti/edit.d.ts | 3 +- types/react-icons/lib/ti/eject-outline.d.ts | 3 +- types/react-icons/lib/ti/eject.d.ts | 3 +- types/react-icons/lib/ti/equals-outline.d.ts | 3 +- types/react-icons/lib/ti/equals.d.ts | 3 +- types/react-icons/lib/ti/export-outline.d.ts | 3 +- types/react-icons/lib/ti/export.d.ts | 3 +- types/react-icons/lib/ti/eye-outline.d.ts | 3 +- types/react-icons/lib/ti/eye.d.ts | 3 +- types/react-icons/lib/ti/feather.d.ts | 3 +- types/react-icons/lib/ti/film.d.ts | 3 +- types/react-icons/lib/ti/filter.d.ts | 3 +- types/react-icons/lib/ti/flag-outline.d.ts | 3 +- types/react-icons/lib/ti/flag.d.ts | 3 +- types/react-icons/lib/ti/flash-outline.d.ts | 3 +- types/react-icons/lib/ti/flash.d.ts | 3 +- types/react-icons/lib/ti/flow-children.d.ts | 3 +- types/react-icons/lib/ti/flow-merge.d.ts | 3 +- types/react-icons/lib/ti/flow-parallel.d.ts | 3 +- types/react-icons/lib/ti/flow-switch.d.ts | 3 +- types/react-icons/lib/ti/folder-add.d.ts | 3 +- types/react-icons/lib/ti/folder-delete.d.ts | 3 +- types/react-icons/lib/ti/folder-open.d.ts | 3 +- types/react-icons/lib/ti/folder.d.ts | 3 +- types/react-icons/lib/ti/gift.d.ts | 3 +- types/react-icons/lib/ti/globe-outline.d.ts | 3 +- types/react-icons/lib/ti/globe.d.ts | 3 +- types/react-icons/lib/ti/group-outline.d.ts | 3 +- types/react-icons/lib/ti/group.d.ts | 3 +- types/react-icons/lib/ti/headphones.d.ts | 3 +- .../lib/ti/heart-full-outline.d.ts | 3 +- .../lib/ti/heart-half-outline.d.ts | 3 +- types/react-icons/lib/ti/heart-outline.d.ts | 3 +- types/react-icons/lib/ti/heart.d.ts | 3 +- types/react-icons/lib/ti/home-outline.d.ts | 3 +- types/react-icons/lib/ti/home.d.ts | 3 +- types/react-icons/lib/ti/html5.d.ts | 3 +- types/react-icons/lib/ti/image-outline.d.ts | 3 +- types/react-icons/lib/ti/image.d.ts | 3 +- types/react-icons/lib/ti/index.d.ts | 678 +++--- .../react-icons/lib/ti/infinity-outline.d.ts | 3 +- types/react-icons/lib/ti/infinity.d.ts | 3 +- .../lib/ti/info-large-outline.d.ts | 3 +- types/react-icons/lib/ti/info-large.d.ts | 3 +- types/react-icons/lib/ti/info-outline.d.ts | 3 +- types/react-icons/lib/ti/info.d.ts | 3 +- .../lib/ti/input-checked-outline.d.ts | 3 +- types/react-icons/lib/ti/input-checked.d.ts | 3 +- types/react-icons/lib/ti/key-outline.d.ts | 3 +- types/react-icons/lib/ti/key.d.ts | 3 +- types/react-icons/lib/ti/keyboard.d.ts | 3 +- types/react-icons/lib/ti/leaf.d.ts | 3 +- types/react-icons/lib/ti/lightbulb.d.ts | 3 +- types/react-icons/lib/ti/link-outline.d.ts | 3 +- types/react-icons/lib/ti/link.d.ts | 3 +- .../lib/ti/location-arrow-outline.d.ts | 3 +- types/react-icons/lib/ti/location-arrow.d.ts | 3 +- .../react-icons/lib/ti/location-outline.d.ts | 3 +- types/react-icons/lib/ti/location.d.ts | 3 +- .../lib/ti/lock-closed-outline.d.ts | 3 +- types/react-icons/lib/ti/lock-closed.d.ts | 3 +- .../react-icons/lib/ti/lock-open-outline.d.ts | 3 +- types/react-icons/lib/ti/lock-open.d.ts | 3 +- types/react-icons/lib/ti/mail.d.ts | 3 +- types/react-icons/lib/ti/map.d.ts | 3 +- .../lib/ti/media-eject-outline.d.ts | 3 +- types/react-icons/lib/ti/media-eject.d.ts | 3 +- .../lib/ti/media-fast-forward-outline.d.ts | 3 +- .../lib/ti/media-fast-forward.d.ts | 3 +- .../lib/ti/media-pause-outline.d.ts | 3 +- types/react-icons/lib/ti/media-pause.d.ts | 3 +- .../lib/ti/media-play-outline.d.ts | 3 +- .../lib/ti/media-play-reverse-outline.d.ts | 3 +- .../lib/ti/media-play-reverse.d.ts | 3 +- types/react-icons/lib/ti/media-play.d.ts | 3 +- .../lib/ti/media-record-outline.d.ts | 3 +- types/react-icons/lib/ti/media-record.d.ts | 3 +- .../lib/ti/media-rewind-outline.d.ts | 3 +- types/react-icons/lib/ti/media-rewind.d.ts | 3 +- .../lib/ti/media-stop-outline.d.ts | 3 +- types/react-icons/lib/ti/media-stop.d.ts | 3 +- types/react-icons/lib/ti/message-typing.d.ts | 3 +- types/react-icons/lib/ti/message.d.ts | 3 +- types/react-icons/lib/ti/messages.d.ts | 3 +- .../lib/ti/microphone-outline.d.ts | 3 +- types/react-icons/lib/ti/microphone.d.ts | 3 +- types/react-icons/lib/ti/minus-outline.d.ts | 3 +- types/react-icons/lib/ti/minus.d.ts | 3 +- types/react-icons/lib/ti/mortar-board.d.ts | 3 +- types/react-icons/lib/ti/news.d.ts | 3 +- types/react-icons/lib/ti/notes-outline.d.ts | 3 +- types/react-icons/lib/ti/notes.d.ts | 3 +- types/react-icons/lib/ti/pen.d.ts | 3 +- types/react-icons/lib/ti/pencil.d.ts | 3 +- types/react-icons/lib/ti/phone-outline.d.ts | 3 +- types/react-icons/lib/ti/phone.d.ts | 3 +- types/react-icons/lib/ti/pi-outline.d.ts | 3 +- types/react-icons/lib/ti/pi.d.ts | 3 +- types/react-icons/lib/ti/pin-outline.d.ts | 3 +- types/react-icons/lib/ti/pin.d.ts | 3 +- types/react-icons/lib/ti/pipette.d.ts | 3 +- types/react-icons/lib/ti/plane-outline.d.ts | 3 +- types/react-icons/lib/ti/plane.d.ts | 3 +- types/react-icons/lib/ti/plug.d.ts | 3 +- types/react-icons/lib/ti/plus-outline.d.ts | 3 +- types/react-icons/lib/ti/plus.d.ts | 3 +- .../lib/ti/point-of-interest-outline.d.ts | 3 +- .../react-icons/lib/ti/point-of-interest.d.ts | 3 +- types/react-icons/lib/ti/power-outline.d.ts | 3 +- types/react-icons/lib/ti/power.d.ts | 3 +- types/react-icons/lib/ti/printer.d.ts | 3 +- types/react-icons/lib/ti/puzzle-outline.d.ts | 3 +- types/react-icons/lib/ti/puzzle.d.ts | 3 +- types/react-icons/lib/ti/radar-outline.d.ts | 3 +- types/react-icons/lib/ti/radar.d.ts | 3 +- types/react-icons/lib/ti/refresh-outline.d.ts | 3 +- types/react-icons/lib/ti/refresh.d.ts | 3 +- types/react-icons/lib/ti/rss-outline.d.ts | 3 +- types/react-icons/lib/ti/rss.d.ts | 3 +- .../react-icons/lib/ti/scissors-outline.d.ts | 3 +- types/react-icons/lib/ti/scissors.d.ts | 3 +- types/react-icons/lib/ti/shopping-bag.d.ts | 3 +- types/react-icons/lib/ti/shopping-cart.d.ts | 3 +- .../lib/ti/social-at-circular.d.ts | 3 +- .../lib/ti/social-dribbble-circular.d.ts | 3 +- types/react-icons/lib/ti/social-dribbble.d.ts | 3 +- .../lib/ti/social-facebook-circular.d.ts | 3 +- types/react-icons/lib/ti/social-facebook.d.ts | 3 +- .../lib/ti/social-flickr-circular.d.ts | 3 +- types/react-icons/lib/ti/social-flickr.d.ts | 3 +- .../lib/ti/social-github-circular.d.ts | 3 +- types/react-icons/lib/ti/social-github.d.ts | 3 +- .../lib/ti/social-google-plus-circular.d.ts | 3 +- .../lib/ti/social-google-plus.d.ts | 3 +- .../lib/ti/social-instagram-circular.d.ts | 3 +- .../react-icons/lib/ti/social-instagram.d.ts | 3 +- .../lib/ti/social-last-fm-circular.d.ts | 3 +- types/react-icons/lib/ti/social-last-fm.d.ts | 3 +- .../lib/ti/social-linkedin-circular.d.ts | 3 +- types/react-icons/lib/ti/social-linkedin.d.ts | 3 +- .../lib/ti/social-pinterest-circular.d.ts | 3 +- .../react-icons/lib/ti/social-pinterest.d.ts | 3 +- .../lib/ti/social-skype-outline.d.ts | 3 +- types/react-icons/lib/ti/social-skype.d.ts | 3 +- .../lib/ti/social-tumbler-circular.d.ts | 3 +- types/react-icons/lib/ti/social-tumbler.d.ts | 3 +- .../lib/ti/social-twitter-circular.d.ts | 3 +- types/react-icons/lib/ti/social-twitter.d.ts | 3 +- .../lib/ti/social-vimeo-circular.d.ts | 3 +- types/react-icons/lib/ti/social-vimeo.d.ts | 3 +- .../lib/ti/social-youtube-circular.d.ts | 3 +- types/react-icons/lib/ti/social-youtube.d.ts | 3 +- .../lib/ti/sort-alphabetically-outline.d.ts | 3 +- .../lib/ti/sort-alphabetically.d.ts | 3 +- .../lib/ti/sort-numerically-outline.d.ts | 3 +- .../react-icons/lib/ti/sort-numerically.d.ts | 3 +- types/react-icons/lib/ti/spanner-outline.d.ts | 3 +- types/react-icons/lib/ti/spanner.d.ts | 3 +- types/react-icons/lib/ti/spiral.d.ts | 3 +- .../react-icons/lib/ti/star-full-outline.d.ts | 3 +- .../react-icons/lib/ti/star-half-outline.d.ts | 3 +- types/react-icons/lib/ti/star-half.d.ts | 3 +- types/react-icons/lib/ti/star-outline.d.ts | 3 +- types/react-icons/lib/ti/star.d.ts | 3 +- .../react-icons/lib/ti/starburst-outline.d.ts | 3 +- types/react-icons/lib/ti/starburst.d.ts | 3 +- types/react-icons/lib/ti/stopwatch.d.ts | 3 +- types/react-icons/lib/ti/support.d.ts | 3 +- types/react-icons/lib/ti/tabs-outline.d.ts | 3 +- types/react-icons/lib/ti/tag.d.ts | 3 +- types/react-icons/lib/ti/tags.d.ts | 3 +- .../react-icons/lib/ti/th-large-outline.d.ts | 3 +- types/react-icons/lib/ti/th-large.d.ts | 3 +- types/react-icons/lib/ti/th-list-outline.d.ts | 3 +- types/react-icons/lib/ti/th-list.d.ts | 3 +- types/react-icons/lib/ti/th-menu-outline.d.ts | 3 +- types/react-icons/lib/ti/th-menu.d.ts | 3 +- .../react-icons/lib/ti/th-small-outline.d.ts | 3 +- types/react-icons/lib/ti/th-small.d.ts | 3 +- types/react-icons/lib/ti/thermometer.d.ts | 3 +- types/react-icons/lib/ti/thumbs-down.d.ts | 3 +- types/react-icons/lib/ti/thumbs-ok.d.ts | 3 +- types/react-icons/lib/ti/thumbs-up.d.ts | 3 +- types/react-icons/lib/ti/tick-outline.d.ts | 3 +- types/react-icons/lib/ti/tick.d.ts | 3 +- types/react-icons/lib/ti/ticket.d.ts | 3 +- types/react-icons/lib/ti/time.d.ts | 3 +- types/react-icons/lib/ti/times-outline.d.ts | 3 +- types/react-icons/lib/ti/times.d.ts | 3 +- types/react-icons/lib/ti/trash.d.ts | 3 +- types/react-icons/lib/ti/tree.d.ts | 3 +- types/react-icons/lib/ti/upload-outline.d.ts | 3 +- types/react-icons/lib/ti/upload.d.ts | 3 +- .../react-icons/lib/ti/user-add-outline.d.ts | 3 +- types/react-icons/lib/ti/user-add.d.ts | 3 +- .../lib/ti/user-delete-outline.d.ts | 3 +- types/react-icons/lib/ti/user-delete.d.ts | 3 +- types/react-icons/lib/ti/user-outline.d.ts | 3 +- types/react-icons/lib/ti/user.d.ts | 3 +- types/react-icons/lib/ti/vendor-android.d.ts | 3 +- types/react-icons/lib/ti/vendor-apple.d.ts | 3 +- .../react-icons/lib/ti/vendor-microsoft.d.ts | 3 +- types/react-icons/lib/ti/video-outline.d.ts | 3 +- types/react-icons/lib/ti/video.d.ts | 3 +- types/react-icons/lib/ti/volume-down.d.ts | 3 +- types/react-icons/lib/ti/volume-mute.d.ts | 3 +- types/react-icons/lib/ti/volume-up.d.ts | 3 +- types/react-icons/lib/ti/volume.d.ts | 3 +- types/react-icons/lib/ti/warning-outline.d.ts | 3 +- types/react-icons/lib/ti/warning.d.ts | 3 +- types/react-icons/lib/ti/watch.d.ts | 3 +- types/react-icons/lib/ti/waves-outline.d.ts | 3 +- types/react-icons/lib/ti/waves.d.ts | 3 +- types/react-icons/lib/ti/weather-cloudy.d.ts | 3 +- .../react-icons/lib/ti/weather-downpour.d.ts | 3 +- types/react-icons/lib/ti/weather-night.d.ts | 3 +- .../lib/ti/weather-partly-sunny.d.ts | 3 +- types/react-icons/lib/ti/weather-shower.d.ts | 3 +- types/react-icons/lib/ti/weather-snow.d.ts | 3 +- types/react-icons/lib/ti/weather-stormy.d.ts | 3 +- types/react-icons/lib/ti/weather-sunny.d.ts | 3 +- .../lib/ti/weather-windy-cloudy.d.ts | 3 +- types/react-icons/lib/ti/weather-windy.d.ts | 3 +- types/react-icons/lib/ti/wi-fi-outline.d.ts | 3 +- types/react-icons/lib/ti/wi-fi.d.ts | 3 +- types/react-icons/lib/ti/wine.d.ts | 3 +- types/react-icons/lib/ti/world-outline.d.ts | 3 +- types/react-icons/lib/ti/world.d.ts | 3 +- types/react-icons/lib/ti/zoom-in-outline.d.ts | 3 +- types/react-icons/lib/ti/zoom-in.d.ts | 3 +- .../react-icons/lib/ti/zoom-out-outline.d.ts | 3 +- types/react-icons/lib/ti/zoom-out.d.ts | 3 +- types/react-icons/lib/ti/zoom-outline.d.ts | 3 +- types/react-icons/lib/ti/zoom.d.ts | 3 +- types/react-icons/react-icons-tests.tsx | 2 +- types/react-icons/scripts/generate.ts | 18 +- 2831 files changed, 8484 insertions(+), 5652 deletions(-) diff --git a/types/react-icons/index.d.ts b/types/react-icons/index.d.ts index 7c926b347f..fb0026ff40 100644 --- a/types/react-icons/index.d.ts +++ b/types/react-icons/index.d.ts @@ -2,5 +2,6 @@ // Project: https://github.com/gorangajic/react-icons#readme // Definitions by: Alexandre Paré // John Reilly +// Karol Janyst // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 diff --git a/types/react-icons/lib/fa/500px.d.ts b/types/react-icons/lib/fa/500px.d.ts index 29c3f639f8..d70cfd4f19 100644 --- a/types/react-icons/lib/fa/500px.d.ts +++ b/types/react-icons/lib/fa/500px.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class Fa500px extends React.Component { } +declare class Fa500px extends React.Component { } +export = Fa500px; diff --git a/types/react-icons/lib/fa/adjust.d.ts b/types/react-icons/lib/fa/adjust.d.ts index 7ca3d2cf03..af4b024240 100644 --- a/types/react-icons/lib/fa/adjust.d.ts +++ b/types/react-icons/lib/fa/adjust.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaAdjust extends React.Component { } +declare class FaAdjust extends React.Component { } +export = FaAdjust; diff --git a/types/react-icons/lib/fa/adn.d.ts b/types/react-icons/lib/fa/adn.d.ts index c2c5676047..f1b5d2be13 100644 --- a/types/react-icons/lib/fa/adn.d.ts +++ b/types/react-icons/lib/fa/adn.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaAdn extends React.Component { } +declare class FaAdn extends React.Component { } +export = FaAdn; diff --git a/types/react-icons/lib/fa/align-center.d.ts b/types/react-icons/lib/fa/align-center.d.ts index 718d401bcc..ffd972db6a 100644 --- a/types/react-icons/lib/fa/align-center.d.ts +++ b/types/react-icons/lib/fa/align-center.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaAlignCenter extends React.Component { } +declare class FaAlignCenter extends React.Component { } +export = FaAlignCenter; diff --git a/types/react-icons/lib/fa/align-justify.d.ts b/types/react-icons/lib/fa/align-justify.d.ts index 87df2f26fc..43432a6126 100644 --- a/types/react-icons/lib/fa/align-justify.d.ts +++ b/types/react-icons/lib/fa/align-justify.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaAlignJustify extends React.Component { } +declare class FaAlignJustify extends React.Component { } +export = FaAlignJustify; diff --git a/types/react-icons/lib/fa/align-left.d.ts b/types/react-icons/lib/fa/align-left.d.ts index 7a1c956b3f..ba9d433ee3 100644 --- a/types/react-icons/lib/fa/align-left.d.ts +++ b/types/react-icons/lib/fa/align-left.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaAlignLeft extends React.Component { } +declare class FaAlignLeft extends React.Component { } +export = FaAlignLeft; diff --git a/types/react-icons/lib/fa/align-right.d.ts b/types/react-icons/lib/fa/align-right.d.ts index 0ec0226c13..a85c63eb0f 100644 --- a/types/react-icons/lib/fa/align-right.d.ts +++ b/types/react-icons/lib/fa/align-right.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaAlignRight extends React.Component { } +declare class FaAlignRight extends React.Component { } +export = FaAlignRight; diff --git a/types/react-icons/lib/fa/amazon.d.ts b/types/react-icons/lib/fa/amazon.d.ts index d514c69672..bb037b45c4 100644 --- a/types/react-icons/lib/fa/amazon.d.ts +++ b/types/react-icons/lib/fa/amazon.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaAmazon extends React.Component { } +declare class FaAmazon extends React.Component { } +export = FaAmazon; diff --git a/types/react-icons/lib/fa/ambulance.d.ts b/types/react-icons/lib/fa/ambulance.d.ts index fbaa0eec3b..b826f5571a 100644 --- a/types/react-icons/lib/fa/ambulance.d.ts +++ b/types/react-icons/lib/fa/ambulance.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaAmbulance extends React.Component { } +declare class FaAmbulance extends React.Component { } +export = FaAmbulance; diff --git a/types/react-icons/lib/fa/american-sign-language-interpreting.d.ts b/types/react-icons/lib/fa/american-sign-language-interpreting.d.ts index 06925c79e5..5c83ce813a 100644 --- a/types/react-icons/lib/fa/american-sign-language-interpreting.d.ts +++ b/types/react-icons/lib/fa/american-sign-language-interpreting.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaAmericanSignLanguageInterpreting extends React.Component { } +declare class FaAmericanSignLanguageInterpreting extends React.Component { } +export = FaAmericanSignLanguageInterpreting; diff --git a/types/react-icons/lib/fa/anchor.d.ts b/types/react-icons/lib/fa/anchor.d.ts index 8812734dc4..340f0da07a 100644 --- a/types/react-icons/lib/fa/anchor.d.ts +++ b/types/react-icons/lib/fa/anchor.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaAnchor extends React.Component { } +declare class FaAnchor extends React.Component { } +export = FaAnchor; diff --git a/types/react-icons/lib/fa/android.d.ts b/types/react-icons/lib/fa/android.d.ts index 2ee9f5fb18..5f7c1fd608 100644 --- a/types/react-icons/lib/fa/android.d.ts +++ b/types/react-icons/lib/fa/android.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaAndroid extends React.Component { } +declare class FaAndroid extends React.Component { } +export = FaAndroid; diff --git a/types/react-icons/lib/fa/angellist.d.ts b/types/react-icons/lib/fa/angellist.d.ts index ce8afe7eda..e89b663a80 100644 --- a/types/react-icons/lib/fa/angellist.d.ts +++ b/types/react-icons/lib/fa/angellist.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaAngellist extends React.Component { } +declare class FaAngellist extends React.Component { } +export = FaAngellist; diff --git a/types/react-icons/lib/fa/angle-double-down.d.ts b/types/react-icons/lib/fa/angle-double-down.d.ts index 93ce66d6b4..2d556e859e 100644 --- a/types/react-icons/lib/fa/angle-double-down.d.ts +++ b/types/react-icons/lib/fa/angle-double-down.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaAngleDoubleDown extends React.Component { } +declare class FaAngleDoubleDown extends React.Component { } +export = FaAngleDoubleDown; diff --git a/types/react-icons/lib/fa/angle-double-left.d.ts b/types/react-icons/lib/fa/angle-double-left.d.ts index ff9d38e1ad..6813d50bd2 100644 --- a/types/react-icons/lib/fa/angle-double-left.d.ts +++ b/types/react-icons/lib/fa/angle-double-left.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaAngleDoubleLeft extends React.Component { } +declare class FaAngleDoubleLeft extends React.Component { } +export = FaAngleDoubleLeft; diff --git a/types/react-icons/lib/fa/angle-double-right.d.ts b/types/react-icons/lib/fa/angle-double-right.d.ts index 2642210681..196cedf761 100644 --- a/types/react-icons/lib/fa/angle-double-right.d.ts +++ b/types/react-icons/lib/fa/angle-double-right.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaAngleDoubleRight extends React.Component { } +declare class FaAngleDoubleRight extends React.Component { } +export = FaAngleDoubleRight; diff --git a/types/react-icons/lib/fa/angle-double-up.d.ts b/types/react-icons/lib/fa/angle-double-up.d.ts index 9a3af8e4bf..b0084150ce 100644 --- a/types/react-icons/lib/fa/angle-double-up.d.ts +++ b/types/react-icons/lib/fa/angle-double-up.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaAngleDoubleUp extends React.Component { } +declare class FaAngleDoubleUp extends React.Component { } +export = FaAngleDoubleUp; diff --git a/types/react-icons/lib/fa/angle-down.d.ts b/types/react-icons/lib/fa/angle-down.d.ts index d9e5083f2a..6ff5e062e4 100644 --- a/types/react-icons/lib/fa/angle-down.d.ts +++ b/types/react-icons/lib/fa/angle-down.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaAngleDown extends React.Component { } +declare class FaAngleDown extends React.Component { } +export = FaAngleDown; diff --git a/types/react-icons/lib/fa/angle-left.d.ts b/types/react-icons/lib/fa/angle-left.d.ts index bea87f2edd..4ce5ba28d0 100644 --- a/types/react-icons/lib/fa/angle-left.d.ts +++ b/types/react-icons/lib/fa/angle-left.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaAngleLeft extends React.Component { } +declare class FaAngleLeft extends React.Component { } +export = FaAngleLeft; diff --git a/types/react-icons/lib/fa/angle-right.d.ts b/types/react-icons/lib/fa/angle-right.d.ts index c5ecf220c6..5329f3c345 100644 --- a/types/react-icons/lib/fa/angle-right.d.ts +++ b/types/react-icons/lib/fa/angle-right.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaAngleRight extends React.Component { } +declare class FaAngleRight extends React.Component { } +export = FaAngleRight; diff --git a/types/react-icons/lib/fa/angle-up.d.ts b/types/react-icons/lib/fa/angle-up.d.ts index cdbc2fd506..6c069a95cd 100644 --- a/types/react-icons/lib/fa/angle-up.d.ts +++ b/types/react-icons/lib/fa/angle-up.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaAngleUp extends React.Component { } +declare class FaAngleUp extends React.Component { } +export = FaAngleUp; diff --git a/types/react-icons/lib/fa/apple.d.ts b/types/react-icons/lib/fa/apple.d.ts index 81a903285f..ab5ab406ac 100644 --- a/types/react-icons/lib/fa/apple.d.ts +++ b/types/react-icons/lib/fa/apple.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaApple extends React.Component { } +declare class FaApple extends React.Component { } +export = FaApple; diff --git a/types/react-icons/lib/fa/archive.d.ts b/types/react-icons/lib/fa/archive.d.ts index a86eaae4d2..c61ba115a6 100644 --- a/types/react-icons/lib/fa/archive.d.ts +++ b/types/react-icons/lib/fa/archive.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaArchive extends React.Component { } +declare class FaArchive extends React.Component { } +export = FaArchive; diff --git a/types/react-icons/lib/fa/area-chart.d.ts b/types/react-icons/lib/fa/area-chart.d.ts index 989eaa3b5d..7950cbc4ac 100644 --- a/types/react-icons/lib/fa/area-chart.d.ts +++ b/types/react-icons/lib/fa/area-chart.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaAreaChart extends React.Component { } +declare class FaAreaChart extends React.Component { } +export = FaAreaChart; diff --git a/types/react-icons/lib/fa/arrow-circle-down.d.ts b/types/react-icons/lib/fa/arrow-circle-down.d.ts index e5551c84a8..034a89aa1b 100644 --- a/types/react-icons/lib/fa/arrow-circle-down.d.ts +++ b/types/react-icons/lib/fa/arrow-circle-down.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaArrowCircleDown extends React.Component { } +declare class FaArrowCircleDown extends React.Component { } +export = FaArrowCircleDown; diff --git a/types/react-icons/lib/fa/arrow-circle-left.d.ts b/types/react-icons/lib/fa/arrow-circle-left.d.ts index af722a058d..a6bd782c7b 100644 --- a/types/react-icons/lib/fa/arrow-circle-left.d.ts +++ b/types/react-icons/lib/fa/arrow-circle-left.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaArrowCircleLeft extends React.Component { } +declare class FaArrowCircleLeft extends React.Component { } +export = FaArrowCircleLeft; diff --git a/types/react-icons/lib/fa/arrow-circle-o-down.d.ts b/types/react-icons/lib/fa/arrow-circle-o-down.d.ts index 3e06f22917..a0af735c04 100644 --- a/types/react-icons/lib/fa/arrow-circle-o-down.d.ts +++ b/types/react-icons/lib/fa/arrow-circle-o-down.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaArrowCircleODown extends React.Component { } +declare class FaArrowCircleODown extends React.Component { } +export = FaArrowCircleODown; diff --git a/types/react-icons/lib/fa/arrow-circle-o-left.d.ts b/types/react-icons/lib/fa/arrow-circle-o-left.d.ts index 687373f29c..da661fb85c 100644 --- a/types/react-icons/lib/fa/arrow-circle-o-left.d.ts +++ b/types/react-icons/lib/fa/arrow-circle-o-left.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaArrowCircleOLeft extends React.Component { } +declare class FaArrowCircleOLeft extends React.Component { } +export = FaArrowCircleOLeft; diff --git a/types/react-icons/lib/fa/arrow-circle-o-right.d.ts b/types/react-icons/lib/fa/arrow-circle-o-right.d.ts index c1378c89b6..e850fbc8b2 100644 --- a/types/react-icons/lib/fa/arrow-circle-o-right.d.ts +++ b/types/react-icons/lib/fa/arrow-circle-o-right.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaArrowCircleORight extends React.Component { } +declare class FaArrowCircleORight extends React.Component { } +export = FaArrowCircleORight; diff --git a/types/react-icons/lib/fa/arrow-circle-o-up.d.ts b/types/react-icons/lib/fa/arrow-circle-o-up.d.ts index 6d67c2f160..38dfda171a 100644 --- a/types/react-icons/lib/fa/arrow-circle-o-up.d.ts +++ b/types/react-icons/lib/fa/arrow-circle-o-up.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaArrowCircleOUp extends React.Component { } +declare class FaArrowCircleOUp extends React.Component { } +export = FaArrowCircleOUp; diff --git a/types/react-icons/lib/fa/arrow-circle-right.d.ts b/types/react-icons/lib/fa/arrow-circle-right.d.ts index 0916b5328d..3875683a1d 100644 --- a/types/react-icons/lib/fa/arrow-circle-right.d.ts +++ b/types/react-icons/lib/fa/arrow-circle-right.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaArrowCircleRight extends React.Component { } +declare class FaArrowCircleRight extends React.Component { } +export = FaArrowCircleRight; diff --git a/types/react-icons/lib/fa/arrow-circle-up.d.ts b/types/react-icons/lib/fa/arrow-circle-up.d.ts index 1d4af5320c..a58794ce34 100644 --- a/types/react-icons/lib/fa/arrow-circle-up.d.ts +++ b/types/react-icons/lib/fa/arrow-circle-up.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaArrowCircleUp extends React.Component { } +declare class FaArrowCircleUp extends React.Component { } +export = FaArrowCircleUp; diff --git a/types/react-icons/lib/fa/arrow-down.d.ts b/types/react-icons/lib/fa/arrow-down.d.ts index 845ae5bda7..f69d965a52 100644 --- a/types/react-icons/lib/fa/arrow-down.d.ts +++ b/types/react-icons/lib/fa/arrow-down.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaArrowDown extends React.Component { } +declare class FaArrowDown extends React.Component { } +export = FaArrowDown; diff --git a/types/react-icons/lib/fa/arrow-left.d.ts b/types/react-icons/lib/fa/arrow-left.d.ts index b5333dd62c..2d0d8a3243 100644 --- a/types/react-icons/lib/fa/arrow-left.d.ts +++ b/types/react-icons/lib/fa/arrow-left.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaArrowLeft extends React.Component { } +declare class FaArrowLeft extends React.Component { } +export = FaArrowLeft; diff --git a/types/react-icons/lib/fa/arrow-right.d.ts b/types/react-icons/lib/fa/arrow-right.d.ts index 7cad9380d5..cc35c17bd7 100644 --- a/types/react-icons/lib/fa/arrow-right.d.ts +++ b/types/react-icons/lib/fa/arrow-right.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaArrowRight extends React.Component { } +declare class FaArrowRight extends React.Component { } +export = FaArrowRight; diff --git a/types/react-icons/lib/fa/arrow-up.d.ts b/types/react-icons/lib/fa/arrow-up.d.ts index eb96f4b47d..ad5df3bf2f 100644 --- a/types/react-icons/lib/fa/arrow-up.d.ts +++ b/types/react-icons/lib/fa/arrow-up.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaArrowUp extends React.Component { } +declare class FaArrowUp extends React.Component { } +export = FaArrowUp; diff --git a/types/react-icons/lib/fa/arrows-alt.d.ts b/types/react-icons/lib/fa/arrows-alt.d.ts index 0497e59469..b1b0e83089 100644 --- a/types/react-icons/lib/fa/arrows-alt.d.ts +++ b/types/react-icons/lib/fa/arrows-alt.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaArrowsAlt extends React.Component { } +declare class FaArrowsAlt extends React.Component { } +export = FaArrowsAlt; diff --git a/types/react-icons/lib/fa/arrows-h.d.ts b/types/react-icons/lib/fa/arrows-h.d.ts index 53e31e5671..fe27c6704c 100644 --- a/types/react-icons/lib/fa/arrows-h.d.ts +++ b/types/react-icons/lib/fa/arrows-h.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaArrowsH extends React.Component { } +declare class FaArrowsH extends React.Component { } +export = FaArrowsH; diff --git a/types/react-icons/lib/fa/arrows-v.d.ts b/types/react-icons/lib/fa/arrows-v.d.ts index 6b4cb60249..fe497bc606 100644 --- a/types/react-icons/lib/fa/arrows-v.d.ts +++ b/types/react-icons/lib/fa/arrows-v.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaArrowsV extends React.Component { } +declare class FaArrowsV extends React.Component { } +export = FaArrowsV; diff --git a/types/react-icons/lib/fa/arrows.d.ts b/types/react-icons/lib/fa/arrows.d.ts index 16175f7688..37a13e7360 100644 --- a/types/react-icons/lib/fa/arrows.d.ts +++ b/types/react-icons/lib/fa/arrows.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaArrows extends React.Component { } +declare class FaArrows extends React.Component { } +export = FaArrows; diff --git a/types/react-icons/lib/fa/assistive-listening-systems.d.ts b/types/react-icons/lib/fa/assistive-listening-systems.d.ts index f6e1649de6..09c0dc1a5c 100644 --- a/types/react-icons/lib/fa/assistive-listening-systems.d.ts +++ b/types/react-icons/lib/fa/assistive-listening-systems.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaAssistiveListeningSystems extends React.Component { } +declare class FaAssistiveListeningSystems extends React.Component { } +export = FaAssistiveListeningSystems; diff --git a/types/react-icons/lib/fa/asterisk.d.ts b/types/react-icons/lib/fa/asterisk.d.ts index 89fc42ca05..943431df3b 100644 --- a/types/react-icons/lib/fa/asterisk.d.ts +++ b/types/react-icons/lib/fa/asterisk.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaAsterisk extends React.Component { } +declare class FaAsterisk extends React.Component { } +export = FaAsterisk; diff --git a/types/react-icons/lib/fa/at.d.ts b/types/react-icons/lib/fa/at.d.ts index a871055990..86af31e86b 100644 --- a/types/react-icons/lib/fa/at.d.ts +++ b/types/react-icons/lib/fa/at.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaAt extends React.Component { } +declare class FaAt extends React.Component { } +export = FaAt; diff --git a/types/react-icons/lib/fa/audio-description.d.ts b/types/react-icons/lib/fa/audio-description.d.ts index 476ef84b6a..97655de683 100644 --- a/types/react-icons/lib/fa/audio-description.d.ts +++ b/types/react-icons/lib/fa/audio-description.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaAudioDescription extends React.Component { } +declare class FaAudioDescription extends React.Component { } +export = FaAudioDescription; diff --git a/types/react-icons/lib/fa/automobile.d.ts b/types/react-icons/lib/fa/automobile.d.ts index 4a6a259ff3..224b7fa8c4 100644 --- a/types/react-icons/lib/fa/automobile.d.ts +++ b/types/react-icons/lib/fa/automobile.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaAutomobile extends React.Component { } +declare class FaAutomobile extends React.Component { } +export = FaAutomobile; diff --git a/types/react-icons/lib/fa/backward.d.ts b/types/react-icons/lib/fa/backward.d.ts index ac9bc7b820..3897d97cf0 100644 --- a/types/react-icons/lib/fa/backward.d.ts +++ b/types/react-icons/lib/fa/backward.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaBackward extends React.Component { } +declare class FaBackward extends React.Component { } +export = FaBackward; diff --git a/types/react-icons/lib/fa/balance-scale.d.ts b/types/react-icons/lib/fa/balance-scale.d.ts index ae8446ed1b..70cb498e76 100644 --- a/types/react-icons/lib/fa/balance-scale.d.ts +++ b/types/react-icons/lib/fa/balance-scale.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaBalanceScale extends React.Component { } +declare class FaBalanceScale extends React.Component { } +export = FaBalanceScale; diff --git a/types/react-icons/lib/fa/ban.d.ts b/types/react-icons/lib/fa/ban.d.ts index b2f668bcef..aa11e72dfd 100644 --- a/types/react-icons/lib/fa/ban.d.ts +++ b/types/react-icons/lib/fa/ban.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaBan extends React.Component { } +declare class FaBan extends React.Component { } +export = FaBan; diff --git a/types/react-icons/lib/fa/bank.d.ts b/types/react-icons/lib/fa/bank.d.ts index 0d3a14ebf8..c52ff017ca 100644 --- a/types/react-icons/lib/fa/bank.d.ts +++ b/types/react-icons/lib/fa/bank.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaBank extends React.Component { } +declare class FaBank extends React.Component { } +export = FaBank; diff --git a/types/react-icons/lib/fa/bar-chart.d.ts b/types/react-icons/lib/fa/bar-chart.d.ts index b184edbda5..6dd339888f 100644 --- a/types/react-icons/lib/fa/bar-chart.d.ts +++ b/types/react-icons/lib/fa/bar-chart.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaBarChart extends React.Component { } +declare class FaBarChart extends React.Component { } +export = FaBarChart; diff --git a/types/react-icons/lib/fa/barcode.d.ts b/types/react-icons/lib/fa/barcode.d.ts index 4f764358a7..14fcd7483f 100644 --- a/types/react-icons/lib/fa/barcode.d.ts +++ b/types/react-icons/lib/fa/barcode.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaBarcode extends React.Component { } +declare class FaBarcode extends React.Component { } +export = FaBarcode; diff --git a/types/react-icons/lib/fa/bars.d.ts b/types/react-icons/lib/fa/bars.d.ts index 5a3272c896..4eb2a2c4ec 100644 --- a/types/react-icons/lib/fa/bars.d.ts +++ b/types/react-icons/lib/fa/bars.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaBars extends React.Component { } +declare class FaBars extends React.Component { } +export = FaBars; diff --git a/types/react-icons/lib/fa/battery-0.d.ts b/types/react-icons/lib/fa/battery-0.d.ts index c7ad0b12b1..b522ea5f95 100644 --- a/types/react-icons/lib/fa/battery-0.d.ts +++ b/types/react-icons/lib/fa/battery-0.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaBattery0 extends React.Component { } +declare class FaBattery0 extends React.Component { } +export = FaBattery0; diff --git a/types/react-icons/lib/fa/battery-1.d.ts b/types/react-icons/lib/fa/battery-1.d.ts index a7db7a950f..51e5018032 100644 --- a/types/react-icons/lib/fa/battery-1.d.ts +++ b/types/react-icons/lib/fa/battery-1.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaBattery1 extends React.Component { } +declare class FaBattery1 extends React.Component { } +export = FaBattery1; diff --git a/types/react-icons/lib/fa/battery-2.d.ts b/types/react-icons/lib/fa/battery-2.d.ts index 345d261889..b203f533d3 100644 --- a/types/react-icons/lib/fa/battery-2.d.ts +++ b/types/react-icons/lib/fa/battery-2.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaBattery2 extends React.Component { } +declare class FaBattery2 extends React.Component { } +export = FaBattery2; diff --git a/types/react-icons/lib/fa/battery-3.d.ts b/types/react-icons/lib/fa/battery-3.d.ts index bc2a62de56..c95a67cd36 100644 --- a/types/react-icons/lib/fa/battery-3.d.ts +++ b/types/react-icons/lib/fa/battery-3.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaBattery3 extends React.Component { } +declare class FaBattery3 extends React.Component { } +export = FaBattery3; diff --git a/types/react-icons/lib/fa/battery-4.d.ts b/types/react-icons/lib/fa/battery-4.d.ts index 0541fd5f79..da0aabf0b7 100644 --- a/types/react-icons/lib/fa/battery-4.d.ts +++ b/types/react-icons/lib/fa/battery-4.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaBattery4 extends React.Component { } +declare class FaBattery4 extends React.Component { } +export = FaBattery4; diff --git a/types/react-icons/lib/fa/bed.d.ts b/types/react-icons/lib/fa/bed.d.ts index 5eab8918d4..81f8b9973f 100644 --- a/types/react-icons/lib/fa/bed.d.ts +++ b/types/react-icons/lib/fa/bed.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaBed extends React.Component { } +declare class FaBed extends React.Component { } +export = FaBed; diff --git a/types/react-icons/lib/fa/beer.d.ts b/types/react-icons/lib/fa/beer.d.ts index 79bbeb09d2..eb032e6207 100644 --- a/types/react-icons/lib/fa/beer.d.ts +++ b/types/react-icons/lib/fa/beer.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaBeer extends React.Component { } +declare class FaBeer extends React.Component { } +export = FaBeer; diff --git a/types/react-icons/lib/fa/behance-square.d.ts b/types/react-icons/lib/fa/behance-square.d.ts index 550cb6b841..de83781aba 100644 --- a/types/react-icons/lib/fa/behance-square.d.ts +++ b/types/react-icons/lib/fa/behance-square.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaBehanceSquare extends React.Component { } +declare class FaBehanceSquare extends React.Component { } +export = FaBehanceSquare; diff --git a/types/react-icons/lib/fa/behance.d.ts b/types/react-icons/lib/fa/behance.d.ts index e51df4de64..9c15559ce1 100644 --- a/types/react-icons/lib/fa/behance.d.ts +++ b/types/react-icons/lib/fa/behance.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaBehance extends React.Component { } +declare class FaBehance extends React.Component { } +export = FaBehance; diff --git a/types/react-icons/lib/fa/bell-o.d.ts b/types/react-icons/lib/fa/bell-o.d.ts index 13f162cd71..813bd69eea 100644 --- a/types/react-icons/lib/fa/bell-o.d.ts +++ b/types/react-icons/lib/fa/bell-o.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaBellO extends React.Component { } +declare class FaBellO extends React.Component { } +export = FaBellO; diff --git a/types/react-icons/lib/fa/bell-slash-o.d.ts b/types/react-icons/lib/fa/bell-slash-o.d.ts index 49ae89d8d4..8db73c3d1f 100644 --- a/types/react-icons/lib/fa/bell-slash-o.d.ts +++ b/types/react-icons/lib/fa/bell-slash-o.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaBellSlashO extends React.Component { } +declare class FaBellSlashO extends React.Component { } +export = FaBellSlashO; diff --git a/types/react-icons/lib/fa/bell-slash.d.ts b/types/react-icons/lib/fa/bell-slash.d.ts index 305b77912b..d035fa6a1f 100644 --- a/types/react-icons/lib/fa/bell-slash.d.ts +++ b/types/react-icons/lib/fa/bell-slash.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaBellSlash extends React.Component { } +declare class FaBellSlash extends React.Component { } +export = FaBellSlash; diff --git a/types/react-icons/lib/fa/bell.d.ts b/types/react-icons/lib/fa/bell.d.ts index 4ec0031ae6..0fbffd107f 100644 --- a/types/react-icons/lib/fa/bell.d.ts +++ b/types/react-icons/lib/fa/bell.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaBell extends React.Component { } +declare class FaBell extends React.Component { } +export = FaBell; diff --git a/types/react-icons/lib/fa/bicycle.d.ts b/types/react-icons/lib/fa/bicycle.d.ts index e0017c15ca..15b474f323 100644 --- a/types/react-icons/lib/fa/bicycle.d.ts +++ b/types/react-icons/lib/fa/bicycle.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaBicycle extends React.Component { } +declare class FaBicycle extends React.Component { } +export = FaBicycle; diff --git a/types/react-icons/lib/fa/binoculars.d.ts b/types/react-icons/lib/fa/binoculars.d.ts index 5dd06d8ed4..510cbc7f7e 100644 --- a/types/react-icons/lib/fa/binoculars.d.ts +++ b/types/react-icons/lib/fa/binoculars.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaBinoculars extends React.Component { } +declare class FaBinoculars extends React.Component { } +export = FaBinoculars; diff --git a/types/react-icons/lib/fa/birthday-cake.d.ts b/types/react-icons/lib/fa/birthday-cake.d.ts index 24af4a13f7..b24bb44278 100644 --- a/types/react-icons/lib/fa/birthday-cake.d.ts +++ b/types/react-icons/lib/fa/birthday-cake.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaBirthdayCake extends React.Component { } +declare class FaBirthdayCake extends React.Component { } +export = FaBirthdayCake; diff --git a/types/react-icons/lib/fa/bitbucket-square.d.ts b/types/react-icons/lib/fa/bitbucket-square.d.ts index e9c80979f9..6a7c1e9415 100644 --- a/types/react-icons/lib/fa/bitbucket-square.d.ts +++ b/types/react-icons/lib/fa/bitbucket-square.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaBitbucketSquare extends React.Component { } +declare class FaBitbucketSquare extends React.Component { } +export = FaBitbucketSquare; diff --git a/types/react-icons/lib/fa/bitbucket.d.ts b/types/react-icons/lib/fa/bitbucket.d.ts index 3e46e9e0a9..fcced54555 100644 --- a/types/react-icons/lib/fa/bitbucket.d.ts +++ b/types/react-icons/lib/fa/bitbucket.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaBitbucket extends React.Component { } +declare class FaBitbucket extends React.Component { } +export = FaBitbucket; diff --git a/types/react-icons/lib/fa/bitcoin.d.ts b/types/react-icons/lib/fa/bitcoin.d.ts index 34e0ee64b3..0e8499c6f9 100644 --- a/types/react-icons/lib/fa/bitcoin.d.ts +++ b/types/react-icons/lib/fa/bitcoin.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaBitcoin extends React.Component { } +declare class FaBitcoin extends React.Component { } +export = FaBitcoin; diff --git a/types/react-icons/lib/fa/black-tie.d.ts b/types/react-icons/lib/fa/black-tie.d.ts index 4586a07039..84def8b91a 100644 --- a/types/react-icons/lib/fa/black-tie.d.ts +++ b/types/react-icons/lib/fa/black-tie.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaBlackTie extends React.Component { } +declare class FaBlackTie extends React.Component { } +export = FaBlackTie; diff --git a/types/react-icons/lib/fa/blind.d.ts b/types/react-icons/lib/fa/blind.d.ts index eb3606ac4c..9407689ee6 100644 --- a/types/react-icons/lib/fa/blind.d.ts +++ b/types/react-icons/lib/fa/blind.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaBlind extends React.Component { } +declare class FaBlind extends React.Component { } +export = FaBlind; diff --git a/types/react-icons/lib/fa/bluetooth-b.d.ts b/types/react-icons/lib/fa/bluetooth-b.d.ts index 4ca6448c1a..0c88c2dad5 100644 --- a/types/react-icons/lib/fa/bluetooth-b.d.ts +++ b/types/react-icons/lib/fa/bluetooth-b.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaBluetoothB extends React.Component { } +declare class FaBluetoothB extends React.Component { } +export = FaBluetoothB; diff --git a/types/react-icons/lib/fa/bluetooth.d.ts b/types/react-icons/lib/fa/bluetooth.d.ts index 0aba8d08f5..79251f2caa 100644 --- a/types/react-icons/lib/fa/bluetooth.d.ts +++ b/types/react-icons/lib/fa/bluetooth.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaBluetooth extends React.Component { } +declare class FaBluetooth extends React.Component { } +export = FaBluetooth; diff --git a/types/react-icons/lib/fa/bold.d.ts b/types/react-icons/lib/fa/bold.d.ts index 65c28daedc..60666c9484 100644 --- a/types/react-icons/lib/fa/bold.d.ts +++ b/types/react-icons/lib/fa/bold.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaBold extends React.Component { } +declare class FaBold extends React.Component { } +export = FaBold; diff --git a/types/react-icons/lib/fa/bolt.d.ts b/types/react-icons/lib/fa/bolt.d.ts index f4ecb5e36e..0eeb09b26e 100644 --- a/types/react-icons/lib/fa/bolt.d.ts +++ b/types/react-icons/lib/fa/bolt.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaBolt extends React.Component { } +declare class FaBolt extends React.Component { } +export = FaBolt; diff --git a/types/react-icons/lib/fa/bomb.d.ts b/types/react-icons/lib/fa/bomb.d.ts index 7d8f3fff70..e2e806217b 100644 --- a/types/react-icons/lib/fa/bomb.d.ts +++ b/types/react-icons/lib/fa/bomb.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaBomb extends React.Component { } +declare class FaBomb extends React.Component { } +export = FaBomb; diff --git a/types/react-icons/lib/fa/book.d.ts b/types/react-icons/lib/fa/book.d.ts index 2925f2f925..977bc019b9 100644 --- a/types/react-icons/lib/fa/book.d.ts +++ b/types/react-icons/lib/fa/book.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaBook extends React.Component { } +declare class FaBook extends React.Component { } +export = FaBook; diff --git a/types/react-icons/lib/fa/bookmark-o.d.ts b/types/react-icons/lib/fa/bookmark-o.d.ts index 07b10ae683..ee3ada48ce 100644 --- a/types/react-icons/lib/fa/bookmark-o.d.ts +++ b/types/react-icons/lib/fa/bookmark-o.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaBookmarkO extends React.Component { } +declare class FaBookmarkO extends React.Component { } +export = FaBookmarkO; diff --git a/types/react-icons/lib/fa/bookmark.d.ts b/types/react-icons/lib/fa/bookmark.d.ts index 60f758e9ae..7dbc33515b 100644 --- a/types/react-icons/lib/fa/bookmark.d.ts +++ b/types/react-icons/lib/fa/bookmark.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaBookmark extends React.Component { } +declare class FaBookmark extends React.Component { } +export = FaBookmark; diff --git a/types/react-icons/lib/fa/braille.d.ts b/types/react-icons/lib/fa/braille.d.ts index 4619546218..022d390d2b 100644 --- a/types/react-icons/lib/fa/braille.d.ts +++ b/types/react-icons/lib/fa/braille.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaBraille extends React.Component { } +declare class FaBraille extends React.Component { } +export = FaBraille; diff --git a/types/react-icons/lib/fa/briefcase.d.ts b/types/react-icons/lib/fa/briefcase.d.ts index ef7d7a3e67..302ba644f7 100644 --- a/types/react-icons/lib/fa/briefcase.d.ts +++ b/types/react-icons/lib/fa/briefcase.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaBriefcase extends React.Component { } +declare class FaBriefcase extends React.Component { } +export = FaBriefcase; diff --git a/types/react-icons/lib/fa/bug.d.ts b/types/react-icons/lib/fa/bug.d.ts index 3a386909a9..01098a9aa2 100644 --- a/types/react-icons/lib/fa/bug.d.ts +++ b/types/react-icons/lib/fa/bug.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaBug extends React.Component { } +declare class FaBug extends React.Component { } +export = FaBug; diff --git a/types/react-icons/lib/fa/building-o.d.ts b/types/react-icons/lib/fa/building-o.d.ts index 1dab73f883..c3045c9cd7 100644 --- a/types/react-icons/lib/fa/building-o.d.ts +++ b/types/react-icons/lib/fa/building-o.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaBuildingO extends React.Component { } +declare class FaBuildingO extends React.Component { } +export = FaBuildingO; diff --git a/types/react-icons/lib/fa/building.d.ts b/types/react-icons/lib/fa/building.d.ts index 1094d0547b..b1b7dce542 100644 --- a/types/react-icons/lib/fa/building.d.ts +++ b/types/react-icons/lib/fa/building.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaBuilding extends React.Component { } +declare class FaBuilding extends React.Component { } +export = FaBuilding; diff --git a/types/react-icons/lib/fa/bullhorn.d.ts b/types/react-icons/lib/fa/bullhorn.d.ts index 83424c5116..75d62ada6c 100644 --- a/types/react-icons/lib/fa/bullhorn.d.ts +++ b/types/react-icons/lib/fa/bullhorn.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaBullhorn extends React.Component { } +declare class FaBullhorn extends React.Component { } +export = FaBullhorn; diff --git a/types/react-icons/lib/fa/bullseye.d.ts b/types/react-icons/lib/fa/bullseye.d.ts index eaa9ba66fe..07754ecece 100644 --- a/types/react-icons/lib/fa/bullseye.d.ts +++ b/types/react-icons/lib/fa/bullseye.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaBullseye extends React.Component { } +declare class FaBullseye extends React.Component { } +export = FaBullseye; diff --git a/types/react-icons/lib/fa/bus.d.ts b/types/react-icons/lib/fa/bus.d.ts index 7fc2f7bfc5..f665b70b03 100644 --- a/types/react-icons/lib/fa/bus.d.ts +++ b/types/react-icons/lib/fa/bus.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaBus extends React.Component { } +declare class FaBus extends React.Component { } +export = FaBus; diff --git a/types/react-icons/lib/fa/buysellads.d.ts b/types/react-icons/lib/fa/buysellads.d.ts index 304c070cce..5c4ff08cec 100644 --- a/types/react-icons/lib/fa/buysellads.d.ts +++ b/types/react-icons/lib/fa/buysellads.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaBuysellads extends React.Component { } +declare class FaBuysellads extends React.Component { } +export = FaBuysellads; diff --git a/types/react-icons/lib/fa/cab.d.ts b/types/react-icons/lib/fa/cab.d.ts index cd6af6ddd4..0fef928008 100644 --- a/types/react-icons/lib/fa/cab.d.ts +++ b/types/react-icons/lib/fa/cab.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaCab extends React.Component { } +declare class FaCab extends React.Component { } +export = FaCab; diff --git a/types/react-icons/lib/fa/calculator.d.ts b/types/react-icons/lib/fa/calculator.d.ts index ed26af229f..529ee803cb 100644 --- a/types/react-icons/lib/fa/calculator.d.ts +++ b/types/react-icons/lib/fa/calculator.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaCalculator extends React.Component { } +declare class FaCalculator extends React.Component { } +export = FaCalculator; diff --git a/types/react-icons/lib/fa/calendar-check-o.d.ts b/types/react-icons/lib/fa/calendar-check-o.d.ts index 9829dc60c3..5d1cb2ff90 100644 --- a/types/react-icons/lib/fa/calendar-check-o.d.ts +++ b/types/react-icons/lib/fa/calendar-check-o.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaCalendarCheckO extends React.Component { } +declare class FaCalendarCheckO extends React.Component { } +export = FaCalendarCheckO; diff --git a/types/react-icons/lib/fa/calendar-minus-o.d.ts b/types/react-icons/lib/fa/calendar-minus-o.d.ts index 64a2d3a3e3..3543a84dee 100644 --- a/types/react-icons/lib/fa/calendar-minus-o.d.ts +++ b/types/react-icons/lib/fa/calendar-minus-o.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaCalendarMinusO extends React.Component { } +declare class FaCalendarMinusO extends React.Component { } +export = FaCalendarMinusO; diff --git a/types/react-icons/lib/fa/calendar-o.d.ts b/types/react-icons/lib/fa/calendar-o.d.ts index 8a70d1c368..800d56b20e 100644 --- a/types/react-icons/lib/fa/calendar-o.d.ts +++ b/types/react-icons/lib/fa/calendar-o.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaCalendarO extends React.Component { } +declare class FaCalendarO extends React.Component { } +export = FaCalendarO; diff --git a/types/react-icons/lib/fa/calendar-plus-o.d.ts b/types/react-icons/lib/fa/calendar-plus-o.d.ts index 0ff42b4d29..3aad9661ce 100644 --- a/types/react-icons/lib/fa/calendar-plus-o.d.ts +++ b/types/react-icons/lib/fa/calendar-plus-o.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaCalendarPlusO extends React.Component { } +declare class FaCalendarPlusO extends React.Component { } +export = FaCalendarPlusO; diff --git a/types/react-icons/lib/fa/calendar-times-o.d.ts b/types/react-icons/lib/fa/calendar-times-o.d.ts index 2a81539d66..5553fd7d71 100644 --- a/types/react-icons/lib/fa/calendar-times-o.d.ts +++ b/types/react-icons/lib/fa/calendar-times-o.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaCalendarTimesO extends React.Component { } +declare class FaCalendarTimesO extends React.Component { } +export = FaCalendarTimesO; diff --git a/types/react-icons/lib/fa/calendar.d.ts b/types/react-icons/lib/fa/calendar.d.ts index deec1eaeb4..e013516f56 100644 --- a/types/react-icons/lib/fa/calendar.d.ts +++ b/types/react-icons/lib/fa/calendar.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaCalendar extends React.Component { } +declare class FaCalendar extends React.Component { } +export = FaCalendar; diff --git a/types/react-icons/lib/fa/camera-retro.d.ts b/types/react-icons/lib/fa/camera-retro.d.ts index 64821f1f67..3874bc78d8 100644 --- a/types/react-icons/lib/fa/camera-retro.d.ts +++ b/types/react-icons/lib/fa/camera-retro.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaCameraRetro extends React.Component { } +declare class FaCameraRetro extends React.Component { } +export = FaCameraRetro; diff --git a/types/react-icons/lib/fa/camera.d.ts b/types/react-icons/lib/fa/camera.d.ts index 4928697191..65c011e1ac 100644 --- a/types/react-icons/lib/fa/camera.d.ts +++ b/types/react-icons/lib/fa/camera.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaCamera extends React.Component { } +declare class FaCamera extends React.Component { } +export = FaCamera; diff --git a/types/react-icons/lib/fa/caret-down.d.ts b/types/react-icons/lib/fa/caret-down.d.ts index dbc43f0466..9c2cfb0314 100644 --- a/types/react-icons/lib/fa/caret-down.d.ts +++ b/types/react-icons/lib/fa/caret-down.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaCaretDown extends React.Component { } +declare class FaCaretDown extends React.Component { } +export = FaCaretDown; diff --git a/types/react-icons/lib/fa/caret-left.d.ts b/types/react-icons/lib/fa/caret-left.d.ts index 420ce16ba3..c4d40cd908 100644 --- a/types/react-icons/lib/fa/caret-left.d.ts +++ b/types/react-icons/lib/fa/caret-left.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaCaretLeft extends React.Component { } +declare class FaCaretLeft extends React.Component { } +export = FaCaretLeft; diff --git a/types/react-icons/lib/fa/caret-right.d.ts b/types/react-icons/lib/fa/caret-right.d.ts index 44e7429916..fa5bed855e 100644 --- a/types/react-icons/lib/fa/caret-right.d.ts +++ b/types/react-icons/lib/fa/caret-right.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaCaretRight extends React.Component { } +declare class FaCaretRight extends React.Component { } +export = FaCaretRight; diff --git a/types/react-icons/lib/fa/caret-square-o-down.d.ts b/types/react-icons/lib/fa/caret-square-o-down.d.ts index dd6d132183..c8a67aa27c 100644 --- a/types/react-icons/lib/fa/caret-square-o-down.d.ts +++ b/types/react-icons/lib/fa/caret-square-o-down.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaCaretSquareODown extends React.Component { } +declare class FaCaretSquareODown extends React.Component { } +export = FaCaretSquareODown; diff --git a/types/react-icons/lib/fa/caret-square-o-left.d.ts b/types/react-icons/lib/fa/caret-square-o-left.d.ts index 042ada389c..5aad5ec1e4 100644 --- a/types/react-icons/lib/fa/caret-square-o-left.d.ts +++ b/types/react-icons/lib/fa/caret-square-o-left.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaCaretSquareOLeft extends React.Component { } +declare class FaCaretSquareOLeft extends React.Component { } +export = FaCaretSquareOLeft; diff --git a/types/react-icons/lib/fa/caret-square-o-right.d.ts b/types/react-icons/lib/fa/caret-square-o-right.d.ts index 12cee8faf7..f84499954b 100644 --- a/types/react-icons/lib/fa/caret-square-o-right.d.ts +++ b/types/react-icons/lib/fa/caret-square-o-right.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaCaretSquareORight extends React.Component { } +declare class FaCaretSquareORight extends React.Component { } +export = FaCaretSquareORight; diff --git a/types/react-icons/lib/fa/caret-square-o-up.d.ts b/types/react-icons/lib/fa/caret-square-o-up.d.ts index 36e0c7bee6..905bb5f071 100644 --- a/types/react-icons/lib/fa/caret-square-o-up.d.ts +++ b/types/react-icons/lib/fa/caret-square-o-up.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaCaretSquareOUp extends React.Component { } +declare class FaCaretSquareOUp extends React.Component { } +export = FaCaretSquareOUp; diff --git a/types/react-icons/lib/fa/caret-up.d.ts b/types/react-icons/lib/fa/caret-up.d.ts index 4eaad4bb41..7960d7953b 100644 --- a/types/react-icons/lib/fa/caret-up.d.ts +++ b/types/react-icons/lib/fa/caret-up.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaCaretUp extends React.Component { } +declare class FaCaretUp extends React.Component { } +export = FaCaretUp; diff --git a/types/react-icons/lib/fa/cart-arrow-down.d.ts b/types/react-icons/lib/fa/cart-arrow-down.d.ts index 539933f702..d62cc7ab36 100644 --- a/types/react-icons/lib/fa/cart-arrow-down.d.ts +++ b/types/react-icons/lib/fa/cart-arrow-down.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaCartArrowDown extends React.Component { } +declare class FaCartArrowDown extends React.Component { } +export = FaCartArrowDown; diff --git a/types/react-icons/lib/fa/cart-plus.d.ts b/types/react-icons/lib/fa/cart-plus.d.ts index 00e645e840..c8d1c7df7b 100644 --- a/types/react-icons/lib/fa/cart-plus.d.ts +++ b/types/react-icons/lib/fa/cart-plus.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaCartPlus extends React.Component { } +declare class FaCartPlus extends React.Component { } +export = FaCartPlus; diff --git a/types/react-icons/lib/fa/cc-amex.d.ts b/types/react-icons/lib/fa/cc-amex.d.ts index daede8980e..799b2ef861 100644 --- a/types/react-icons/lib/fa/cc-amex.d.ts +++ b/types/react-icons/lib/fa/cc-amex.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaCcAmex extends React.Component { } +declare class FaCcAmex extends React.Component { } +export = FaCcAmex; diff --git a/types/react-icons/lib/fa/cc-diners-club.d.ts b/types/react-icons/lib/fa/cc-diners-club.d.ts index 5263120cb0..24a9063012 100644 --- a/types/react-icons/lib/fa/cc-diners-club.d.ts +++ b/types/react-icons/lib/fa/cc-diners-club.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaCcDinersClub extends React.Component { } +declare class FaCcDinersClub extends React.Component { } +export = FaCcDinersClub; diff --git a/types/react-icons/lib/fa/cc-discover.d.ts b/types/react-icons/lib/fa/cc-discover.d.ts index 0d5e5d6daa..ab5013f5be 100644 --- a/types/react-icons/lib/fa/cc-discover.d.ts +++ b/types/react-icons/lib/fa/cc-discover.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaCcDiscover extends React.Component { } +declare class FaCcDiscover extends React.Component { } +export = FaCcDiscover; diff --git a/types/react-icons/lib/fa/cc-jcb.d.ts b/types/react-icons/lib/fa/cc-jcb.d.ts index 3aeb4c483f..abce375354 100644 --- a/types/react-icons/lib/fa/cc-jcb.d.ts +++ b/types/react-icons/lib/fa/cc-jcb.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaCcJcb extends React.Component { } +declare class FaCcJcb extends React.Component { } +export = FaCcJcb; diff --git a/types/react-icons/lib/fa/cc-mastercard.d.ts b/types/react-icons/lib/fa/cc-mastercard.d.ts index 58e0e375c0..ef56888e0d 100644 --- a/types/react-icons/lib/fa/cc-mastercard.d.ts +++ b/types/react-icons/lib/fa/cc-mastercard.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaCcMastercard extends React.Component { } +declare class FaCcMastercard extends React.Component { } +export = FaCcMastercard; diff --git a/types/react-icons/lib/fa/cc-paypal.d.ts b/types/react-icons/lib/fa/cc-paypal.d.ts index 4fb116f8ab..5eb38ef785 100644 --- a/types/react-icons/lib/fa/cc-paypal.d.ts +++ b/types/react-icons/lib/fa/cc-paypal.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaCcPaypal extends React.Component { } +declare class FaCcPaypal extends React.Component { } +export = FaCcPaypal; diff --git a/types/react-icons/lib/fa/cc-stripe.d.ts b/types/react-icons/lib/fa/cc-stripe.d.ts index afb2d4cac8..fd72b8aa13 100644 --- a/types/react-icons/lib/fa/cc-stripe.d.ts +++ b/types/react-icons/lib/fa/cc-stripe.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaCcStripe extends React.Component { } +declare class FaCcStripe extends React.Component { } +export = FaCcStripe; diff --git a/types/react-icons/lib/fa/cc-visa.d.ts b/types/react-icons/lib/fa/cc-visa.d.ts index 4e5b06b45f..d0dc3e793c 100644 --- a/types/react-icons/lib/fa/cc-visa.d.ts +++ b/types/react-icons/lib/fa/cc-visa.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaCcVisa extends React.Component { } +declare class FaCcVisa extends React.Component { } +export = FaCcVisa; diff --git a/types/react-icons/lib/fa/cc.d.ts b/types/react-icons/lib/fa/cc.d.ts index e2c4036439..4a74a0e2c4 100644 --- a/types/react-icons/lib/fa/cc.d.ts +++ b/types/react-icons/lib/fa/cc.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaCc extends React.Component { } +declare class FaCc extends React.Component { } +export = FaCc; diff --git a/types/react-icons/lib/fa/certificate.d.ts b/types/react-icons/lib/fa/certificate.d.ts index c8845fb117..edbb804b75 100644 --- a/types/react-icons/lib/fa/certificate.d.ts +++ b/types/react-icons/lib/fa/certificate.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaCertificate extends React.Component { } +declare class FaCertificate extends React.Component { } +export = FaCertificate; diff --git a/types/react-icons/lib/fa/chain-broken.d.ts b/types/react-icons/lib/fa/chain-broken.d.ts index 87a8310d0a..e799c01fed 100644 --- a/types/react-icons/lib/fa/chain-broken.d.ts +++ b/types/react-icons/lib/fa/chain-broken.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaChainBroken extends React.Component { } +declare class FaChainBroken extends React.Component { } +export = FaChainBroken; diff --git a/types/react-icons/lib/fa/chain.d.ts b/types/react-icons/lib/fa/chain.d.ts index 8359a5f773..851a1bcc8e 100644 --- a/types/react-icons/lib/fa/chain.d.ts +++ b/types/react-icons/lib/fa/chain.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaChain extends React.Component { } +declare class FaChain extends React.Component { } +export = FaChain; diff --git a/types/react-icons/lib/fa/check-circle-o.d.ts b/types/react-icons/lib/fa/check-circle-o.d.ts index 32390d5c4c..dbb3f5bb83 100644 --- a/types/react-icons/lib/fa/check-circle-o.d.ts +++ b/types/react-icons/lib/fa/check-circle-o.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaCheckCircleO extends React.Component { } +declare class FaCheckCircleO extends React.Component { } +export = FaCheckCircleO; diff --git a/types/react-icons/lib/fa/check-circle.d.ts b/types/react-icons/lib/fa/check-circle.d.ts index c30263a3be..121f56e87a 100644 --- a/types/react-icons/lib/fa/check-circle.d.ts +++ b/types/react-icons/lib/fa/check-circle.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaCheckCircle extends React.Component { } +declare class FaCheckCircle extends React.Component { } +export = FaCheckCircle; diff --git a/types/react-icons/lib/fa/check-square-o.d.ts b/types/react-icons/lib/fa/check-square-o.d.ts index b4aef21d8c..fdd433d5a7 100644 --- a/types/react-icons/lib/fa/check-square-o.d.ts +++ b/types/react-icons/lib/fa/check-square-o.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaCheckSquareO extends React.Component { } +declare class FaCheckSquareO extends React.Component { } +export = FaCheckSquareO; diff --git a/types/react-icons/lib/fa/check-square.d.ts b/types/react-icons/lib/fa/check-square.d.ts index f6ba4ce0bd..3c83c64db3 100644 --- a/types/react-icons/lib/fa/check-square.d.ts +++ b/types/react-icons/lib/fa/check-square.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaCheckSquare extends React.Component { } +declare class FaCheckSquare extends React.Component { } +export = FaCheckSquare; diff --git a/types/react-icons/lib/fa/check.d.ts b/types/react-icons/lib/fa/check.d.ts index b30727c61c..28ef292a15 100644 --- a/types/react-icons/lib/fa/check.d.ts +++ b/types/react-icons/lib/fa/check.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaCheck extends React.Component { } +declare class FaCheck extends React.Component { } +export = FaCheck; diff --git a/types/react-icons/lib/fa/chevron-circle-down.d.ts b/types/react-icons/lib/fa/chevron-circle-down.d.ts index 35eb978aec..4faa5f1df4 100644 --- a/types/react-icons/lib/fa/chevron-circle-down.d.ts +++ b/types/react-icons/lib/fa/chevron-circle-down.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaChevronCircleDown extends React.Component { } +declare class FaChevronCircleDown extends React.Component { } +export = FaChevronCircleDown; diff --git a/types/react-icons/lib/fa/chevron-circle-left.d.ts b/types/react-icons/lib/fa/chevron-circle-left.d.ts index e84cdd9146..b704b3f359 100644 --- a/types/react-icons/lib/fa/chevron-circle-left.d.ts +++ b/types/react-icons/lib/fa/chevron-circle-left.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaChevronCircleLeft extends React.Component { } +declare class FaChevronCircleLeft extends React.Component { } +export = FaChevronCircleLeft; diff --git a/types/react-icons/lib/fa/chevron-circle-right.d.ts b/types/react-icons/lib/fa/chevron-circle-right.d.ts index d5e4d2429c..19672a33b7 100644 --- a/types/react-icons/lib/fa/chevron-circle-right.d.ts +++ b/types/react-icons/lib/fa/chevron-circle-right.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaChevronCircleRight extends React.Component { } +declare class FaChevronCircleRight extends React.Component { } +export = FaChevronCircleRight; diff --git a/types/react-icons/lib/fa/chevron-circle-up.d.ts b/types/react-icons/lib/fa/chevron-circle-up.d.ts index bedcb877d6..8cb4ba33e8 100644 --- a/types/react-icons/lib/fa/chevron-circle-up.d.ts +++ b/types/react-icons/lib/fa/chevron-circle-up.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaChevronCircleUp extends React.Component { } +declare class FaChevronCircleUp extends React.Component { } +export = FaChevronCircleUp; diff --git a/types/react-icons/lib/fa/chevron-down.d.ts b/types/react-icons/lib/fa/chevron-down.d.ts index 5c9ae23cf8..7a113a7bd3 100644 --- a/types/react-icons/lib/fa/chevron-down.d.ts +++ b/types/react-icons/lib/fa/chevron-down.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaChevronDown extends React.Component { } +declare class FaChevronDown extends React.Component { } +export = FaChevronDown; diff --git a/types/react-icons/lib/fa/chevron-left.d.ts b/types/react-icons/lib/fa/chevron-left.d.ts index b07fae8a5e..2a797f7bfb 100644 --- a/types/react-icons/lib/fa/chevron-left.d.ts +++ b/types/react-icons/lib/fa/chevron-left.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaChevronLeft extends React.Component { } +declare class FaChevronLeft extends React.Component { } +export = FaChevronLeft; diff --git a/types/react-icons/lib/fa/chevron-right.d.ts b/types/react-icons/lib/fa/chevron-right.d.ts index 27f6264560..0022750994 100644 --- a/types/react-icons/lib/fa/chevron-right.d.ts +++ b/types/react-icons/lib/fa/chevron-right.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaChevronRight extends React.Component { } +declare class FaChevronRight extends React.Component { } +export = FaChevronRight; diff --git a/types/react-icons/lib/fa/chevron-up.d.ts b/types/react-icons/lib/fa/chevron-up.d.ts index 3847054d06..b1cece9f2c 100644 --- a/types/react-icons/lib/fa/chevron-up.d.ts +++ b/types/react-icons/lib/fa/chevron-up.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaChevronUp extends React.Component { } +declare class FaChevronUp extends React.Component { } +export = FaChevronUp; diff --git a/types/react-icons/lib/fa/child.d.ts b/types/react-icons/lib/fa/child.d.ts index 08209ee585..3a9361e176 100644 --- a/types/react-icons/lib/fa/child.d.ts +++ b/types/react-icons/lib/fa/child.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaChild extends React.Component { } +declare class FaChild extends React.Component { } +export = FaChild; diff --git a/types/react-icons/lib/fa/chrome.d.ts b/types/react-icons/lib/fa/chrome.d.ts index 703caadb19..691dec5b26 100644 --- a/types/react-icons/lib/fa/chrome.d.ts +++ b/types/react-icons/lib/fa/chrome.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaChrome extends React.Component { } +declare class FaChrome extends React.Component { } +export = FaChrome; diff --git a/types/react-icons/lib/fa/circle-o-notch.d.ts b/types/react-icons/lib/fa/circle-o-notch.d.ts index ed18a9f78d..b58f16f73d 100644 --- a/types/react-icons/lib/fa/circle-o-notch.d.ts +++ b/types/react-icons/lib/fa/circle-o-notch.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaCircleONotch extends React.Component { } +declare class FaCircleONotch extends React.Component { } +export = FaCircleONotch; diff --git a/types/react-icons/lib/fa/circle-o.d.ts b/types/react-icons/lib/fa/circle-o.d.ts index 05001b7669..f39a3363db 100644 --- a/types/react-icons/lib/fa/circle-o.d.ts +++ b/types/react-icons/lib/fa/circle-o.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaCircleO extends React.Component { } +declare class FaCircleO extends React.Component { } +export = FaCircleO; diff --git a/types/react-icons/lib/fa/circle-thin.d.ts b/types/react-icons/lib/fa/circle-thin.d.ts index 017b8a0e4d..20bb05625d 100644 --- a/types/react-icons/lib/fa/circle-thin.d.ts +++ b/types/react-icons/lib/fa/circle-thin.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaCircleThin extends React.Component { } +declare class FaCircleThin extends React.Component { } +export = FaCircleThin; diff --git a/types/react-icons/lib/fa/circle.d.ts b/types/react-icons/lib/fa/circle.d.ts index 14b042ae0b..868df82fd0 100644 --- a/types/react-icons/lib/fa/circle.d.ts +++ b/types/react-icons/lib/fa/circle.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaCircle extends React.Component { } +declare class FaCircle extends React.Component { } +export = FaCircle; diff --git a/types/react-icons/lib/fa/clipboard.d.ts b/types/react-icons/lib/fa/clipboard.d.ts index 6a15d300fb..e22d01efc8 100644 --- a/types/react-icons/lib/fa/clipboard.d.ts +++ b/types/react-icons/lib/fa/clipboard.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaClipboard extends React.Component { } +declare class FaClipboard extends React.Component { } +export = FaClipboard; diff --git a/types/react-icons/lib/fa/clock-o.d.ts b/types/react-icons/lib/fa/clock-o.d.ts index 021deeb65e..cdc63f0cff 100644 --- a/types/react-icons/lib/fa/clock-o.d.ts +++ b/types/react-icons/lib/fa/clock-o.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaClockO extends React.Component { } +declare class FaClockO extends React.Component { } +export = FaClockO; diff --git a/types/react-icons/lib/fa/clone.d.ts b/types/react-icons/lib/fa/clone.d.ts index 60b8d9d0b9..f0f4ffb33a 100644 --- a/types/react-icons/lib/fa/clone.d.ts +++ b/types/react-icons/lib/fa/clone.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaClone extends React.Component { } +declare class FaClone extends React.Component { } +export = FaClone; diff --git a/types/react-icons/lib/fa/close.d.ts b/types/react-icons/lib/fa/close.d.ts index 81b3c24102..094b3e1b85 100644 --- a/types/react-icons/lib/fa/close.d.ts +++ b/types/react-icons/lib/fa/close.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaClose extends React.Component { } +declare class FaClose extends React.Component { } +export = FaClose; diff --git a/types/react-icons/lib/fa/cloud-download.d.ts b/types/react-icons/lib/fa/cloud-download.d.ts index 76834995ef..7c43077f87 100644 --- a/types/react-icons/lib/fa/cloud-download.d.ts +++ b/types/react-icons/lib/fa/cloud-download.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaCloudDownload extends React.Component { } +declare class FaCloudDownload extends React.Component { } +export = FaCloudDownload; diff --git a/types/react-icons/lib/fa/cloud-upload.d.ts b/types/react-icons/lib/fa/cloud-upload.d.ts index 68e7a59934..a1889f0e7a 100644 --- a/types/react-icons/lib/fa/cloud-upload.d.ts +++ b/types/react-icons/lib/fa/cloud-upload.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaCloudUpload extends React.Component { } +declare class FaCloudUpload extends React.Component { } +export = FaCloudUpload; diff --git a/types/react-icons/lib/fa/cloud.d.ts b/types/react-icons/lib/fa/cloud.d.ts index 555b3f5a09..3731c7dc7f 100644 --- a/types/react-icons/lib/fa/cloud.d.ts +++ b/types/react-icons/lib/fa/cloud.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaCloud extends React.Component { } +declare class FaCloud extends React.Component { } +export = FaCloud; diff --git a/types/react-icons/lib/fa/cny.d.ts b/types/react-icons/lib/fa/cny.d.ts index 816523c44e..0beb3d9267 100644 --- a/types/react-icons/lib/fa/cny.d.ts +++ b/types/react-icons/lib/fa/cny.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaCny extends React.Component { } +declare class FaCny extends React.Component { } +export = FaCny; diff --git a/types/react-icons/lib/fa/code-fork.d.ts b/types/react-icons/lib/fa/code-fork.d.ts index 520f347006..629cb69d31 100644 --- a/types/react-icons/lib/fa/code-fork.d.ts +++ b/types/react-icons/lib/fa/code-fork.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaCodeFork extends React.Component { } +declare class FaCodeFork extends React.Component { } +export = FaCodeFork; diff --git a/types/react-icons/lib/fa/code.d.ts b/types/react-icons/lib/fa/code.d.ts index 5a9b025804..c326599c5b 100644 --- a/types/react-icons/lib/fa/code.d.ts +++ b/types/react-icons/lib/fa/code.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaCode extends React.Component { } +declare class FaCode extends React.Component { } +export = FaCode; diff --git a/types/react-icons/lib/fa/codepen.d.ts b/types/react-icons/lib/fa/codepen.d.ts index e317fd7e6e..fca3ca9958 100644 --- a/types/react-icons/lib/fa/codepen.d.ts +++ b/types/react-icons/lib/fa/codepen.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaCodepen extends React.Component { } +declare class FaCodepen extends React.Component { } +export = FaCodepen; diff --git a/types/react-icons/lib/fa/codiepie.d.ts b/types/react-icons/lib/fa/codiepie.d.ts index 74deac600a..fe85ee642b 100644 --- a/types/react-icons/lib/fa/codiepie.d.ts +++ b/types/react-icons/lib/fa/codiepie.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaCodiepie extends React.Component { } +declare class FaCodiepie extends React.Component { } +export = FaCodiepie; diff --git a/types/react-icons/lib/fa/coffee.d.ts b/types/react-icons/lib/fa/coffee.d.ts index defdc05087..c180b18989 100644 --- a/types/react-icons/lib/fa/coffee.d.ts +++ b/types/react-icons/lib/fa/coffee.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaCoffee extends React.Component { } +declare class FaCoffee extends React.Component { } +export = FaCoffee; diff --git a/types/react-icons/lib/fa/cog.d.ts b/types/react-icons/lib/fa/cog.d.ts index 1fe2c08345..1a334e597a 100644 --- a/types/react-icons/lib/fa/cog.d.ts +++ b/types/react-icons/lib/fa/cog.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaCog extends React.Component { } +declare class FaCog extends React.Component { } +export = FaCog; diff --git a/types/react-icons/lib/fa/cogs.d.ts b/types/react-icons/lib/fa/cogs.d.ts index daf4b449d3..af3acaec4d 100644 --- a/types/react-icons/lib/fa/cogs.d.ts +++ b/types/react-icons/lib/fa/cogs.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaCogs extends React.Component { } +declare class FaCogs extends React.Component { } +export = FaCogs; diff --git a/types/react-icons/lib/fa/columns.d.ts b/types/react-icons/lib/fa/columns.d.ts index 8e88628b63..c4654d0a77 100644 --- a/types/react-icons/lib/fa/columns.d.ts +++ b/types/react-icons/lib/fa/columns.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaColumns extends React.Component { } +declare class FaColumns extends React.Component { } +export = FaColumns; diff --git a/types/react-icons/lib/fa/comment-o.d.ts b/types/react-icons/lib/fa/comment-o.d.ts index e627ec6248..dd54ac16e0 100644 --- a/types/react-icons/lib/fa/comment-o.d.ts +++ b/types/react-icons/lib/fa/comment-o.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaCommentO extends React.Component { } +declare class FaCommentO extends React.Component { } +export = FaCommentO; diff --git a/types/react-icons/lib/fa/comment.d.ts b/types/react-icons/lib/fa/comment.d.ts index 82043adb6a..a047b84b08 100644 --- a/types/react-icons/lib/fa/comment.d.ts +++ b/types/react-icons/lib/fa/comment.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaComment extends React.Component { } +declare class FaComment extends React.Component { } +export = FaComment; diff --git a/types/react-icons/lib/fa/commenting-o.d.ts b/types/react-icons/lib/fa/commenting-o.d.ts index 40a4c3f058..62f564350d 100644 --- a/types/react-icons/lib/fa/commenting-o.d.ts +++ b/types/react-icons/lib/fa/commenting-o.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaCommentingO extends React.Component { } +declare class FaCommentingO extends React.Component { } +export = FaCommentingO; diff --git a/types/react-icons/lib/fa/commenting.d.ts b/types/react-icons/lib/fa/commenting.d.ts index 1031cc0ad6..d441889bfa 100644 --- a/types/react-icons/lib/fa/commenting.d.ts +++ b/types/react-icons/lib/fa/commenting.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaCommenting extends React.Component { } +declare class FaCommenting extends React.Component { } +export = FaCommenting; diff --git a/types/react-icons/lib/fa/comments-o.d.ts b/types/react-icons/lib/fa/comments-o.d.ts index 191de8b6a3..fc8d61a241 100644 --- a/types/react-icons/lib/fa/comments-o.d.ts +++ b/types/react-icons/lib/fa/comments-o.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaCommentsO extends React.Component { } +declare class FaCommentsO extends React.Component { } +export = FaCommentsO; diff --git a/types/react-icons/lib/fa/comments.d.ts b/types/react-icons/lib/fa/comments.d.ts index e77e9f4b42..bfcc34638d 100644 --- a/types/react-icons/lib/fa/comments.d.ts +++ b/types/react-icons/lib/fa/comments.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaComments extends React.Component { } +declare class FaComments extends React.Component { } +export = FaComments; diff --git a/types/react-icons/lib/fa/compass.d.ts b/types/react-icons/lib/fa/compass.d.ts index 36d4843b21..723d54adc2 100644 --- a/types/react-icons/lib/fa/compass.d.ts +++ b/types/react-icons/lib/fa/compass.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaCompass extends React.Component { } +declare class FaCompass extends React.Component { } +export = FaCompass; diff --git a/types/react-icons/lib/fa/compress.d.ts b/types/react-icons/lib/fa/compress.d.ts index 7f2f48ca22..b74cdb1972 100644 --- a/types/react-icons/lib/fa/compress.d.ts +++ b/types/react-icons/lib/fa/compress.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaCompress extends React.Component { } +declare class FaCompress extends React.Component { } +export = FaCompress; diff --git a/types/react-icons/lib/fa/connectdevelop.d.ts b/types/react-icons/lib/fa/connectdevelop.d.ts index aae5bfa48c..efbff96350 100644 --- a/types/react-icons/lib/fa/connectdevelop.d.ts +++ b/types/react-icons/lib/fa/connectdevelop.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaConnectdevelop extends React.Component { } +declare class FaConnectdevelop extends React.Component { } +export = FaConnectdevelop; diff --git a/types/react-icons/lib/fa/contao.d.ts b/types/react-icons/lib/fa/contao.d.ts index c99ab675b4..bef2e66ee5 100644 --- a/types/react-icons/lib/fa/contao.d.ts +++ b/types/react-icons/lib/fa/contao.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaContao extends React.Component { } +declare class FaContao extends React.Component { } +export = FaContao; diff --git a/types/react-icons/lib/fa/copy.d.ts b/types/react-icons/lib/fa/copy.d.ts index 3e6e11bf31..df23e99f5c 100644 --- a/types/react-icons/lib/fa/copy.d.ts +++ b/types/react-icons/lib/fa/copy.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaCopy extends React.Component { } +declare class FaCopy extends React.Component { } +export = FaCopy; diff --git a/types/react-icons/lib/fa/copyright.d.ts b/types/react-icons/lib/fa/copyright.d.ts index 630383979f..5e4d25dddf 100644 --- a/types/react-icons/lib/fa/copyright.d.ts +++ b/types/react-icons/lib/fa/copyright.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaCopyright extends React.Component { } +declare class FaCopyright extends React.Component { } +export = FaCopyright; diff --git a/types/react-icons/lib/fa/creative-commons.d.ts b/types/react-icons/lib/fa/creative-commons.d.ts index eecacfd23c..0d7a0f343d 100644 --- a/types/react-icons/lib/fa/creative-commons.d.ts +++ b/types/react-icons/lib/fa/creative-commons.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaCreativeCommons extends React.Component { } +declare class FaCreativeCommons extends React.Component { } +export = FaCreativeCommons; diff --git a/types/react-icons/lib/fa/credit-card-alt.d.ts b/types/react-icons/lib/fa/credit-card-alt.d.ts index c9d2f20993..6a21316ced 100644 --- a/types/react-icons/lib/fa/credit-card-alt.d.ts +++ b/types/react-icons/lib/fa/credit-card-alt.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaCreditCardAlt extends React.Component { } +declare class FaCreditCardAlt extends React.Component { } +export = FaCreditCardAlt; diff --git a/types/react-icons/lib/fa/credit-card.d.ts b/types/react-icons/lib/fa/credit-card.d.ts index 374f9efdda..0a66aa3502 100644 --- a/types/react-icons/lib/fa/credit-card.d.ts +++ b/types/react-icons/lib/fa/credit-card.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaCreditCard extends React.Component { } +declare class FaCreditCard extends React.Component { } +export = FaCreditCard; diff --git a/types/react-icons/lib/fa/crop.d.ts b/types/react-icons/lib/fa/crop.d.ts index aa47690da9..d5a8fca0c0 100644 --- a/types/react-icons/lib/fa/crop.d.ts +++ b/types/react-icons/lib/fa/crop.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaCrop extends React.Component { } +declare class FaCrop extends React.Component { } +export = FaCrop; diff --git a/types/react-icons/lib/fa/crosshairs.d.ts b/types/react-icons/lib/fa/crosshairs.d.ts index c54203bb33..9d0eec3c43 100644 --- a/types/react-icons/lib/fa/crosshairs.d.ts +++ b/types/react-icons/lib/fa/crosshairs.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaCrosshairs extends React.Component { } +declare class FaCrosshairs extends React.Component { } +export = FaCrosshairs; diff --git a/types/react-icons/lib/fa/css3.d.ts b/types/react-icons/lib/fa/css3.d.ts index 361b20e295..09da385a81 100644 --- a/types/react-icons/lib/fa/css3.d.ts +++ b/types/react-icons/lib/fa/css3.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaCss3 extends React.Component { } +declare class FaCss3 extends React.Component { } +export = FaCss3; diff --git a/types/react-icons/lib/fa/cube.d.ts b/types/react-icons/lib/fa/cube.d.ts index ad9dc6b033..8ecf9e7fdb 100644 --- a/types/react-icons/lib/fa/cube.d.ts +++ b/types/react-icons/lib/fa/cube.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaCube extends React.Component { } +declare class FaCube extends React.Component { } +export = FaCube; diff --git a/types/react-icons/lib/fa/cubes.d.ts b/types/react-icons/lib/fa/cubes.d.ts index a2cdf49c8c..e2d2ea0f93 100644 --- a/types/react-icons/lib/fa/cubes.d.ts +++ b/types/react-icons/lib/fa/cubes.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaCubes extends React.Component { } +declare class FaCubes extends React.Component { } +export = FaCubes; diff --git a/types/react-icons/lib/fa/cut.d.ts b/types/react-icons/lib/fa/cut.d.ts index 0c93d3cbc2..bba94e53ba 100644 --- a/types/react-icons/lib/fa/cut.d.ts +++ b/types/react-icons/lib/fa/cut.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaCut extends React.Component { } +declare class FaCut extends React.Component { } +export = FaCut; diff --git a/types/react-icons/lib/fa/cutlery.d.ts b/types/react-icons/lib/fa/cutlery.d.ts index f4496c61e3..74ace7cf30 100644 --- a/types/react-icons/lib/fa/cutlery.d.ts +++ b/types/react-icons/lib/fa/cutlery.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaCutlery extends React.Component { } +declare class FaCutlery extends React.Component { } +export = FaCutlery; diff --git a/types/react-icons/lib/fa/dashboard.d.ts b/types/react-icons/lib/fa/dashboard.d.ts index d763edb50d..20824e5f61 100644 --- a/types/react-icons/lib/fa/dashboard.d.ts +++ b/types/react-icons/lib/fa/dashboard.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaDashboard extends React.Component { } +declare class FaDashboard extends React.Component { } +export = FaDashboard; diff --git a/types/react-icons/lib/fa/dashcube.d.ts b/types/react-icons/lib/fa/dashcube.d.ts index ed15f887b2..2b11b28908 100644 --- a/types/react-icons/lib/fa/dashcube.d.ts +++ b/types/react-icons/lib/fa/dashcube.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaDashcube extends React.Component { } +declare class FaDashcube extends React.Component { } +export = FaDashcube; diff --git a/types/react-icons/lib/fa/database.d.ts b/types/react-icons/lib/fa/database.d.ts index cfb7bcbedd..ac4aae49de 100644 --- a/types/react-icons/lib/fa/database.d.ts +++ b/types/react-icons/lib/fa/database.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaDatabase extends React.Component { } +declare class FaDatabase extends React.Component { } +export = FaDatabase; diff --git a/types/react-icons/lib/fa/deaf.d.ts b/types/react-icons/lib/fa/deaf.d.ts index a53c48b057..a1c6fdd7b6 100644 --- a/types/react-icons/lib/fa/deaf.d.ts +++ b/types/react-icons/lib/fa/deaf.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaDeaf extends React.Component { } +declare class FaDeaf extends React.Component { } +export = FaDeaf; diff --git a/types/react-icons/lib/fa/dedent.d.ts b/types/react-icons/lib/fa/dedent.d.ts index 30db3c96d4..9d7c8bcf7c 100644 --- a/types/react-icons/lib/fa/dedent.d.ts +++ b/types/react-icons/lib/fa/dedent.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaDedent extends React.Component { } +declare class FaDedent extends React.Component { } +export = FaDedent; diff --git a/types/react-icons/lib/fa/delicious.d.ts b/types/react-icons/lib/fa/delicious.d.ts index 7a069105b3..b2e522393f 100644 --- a/types/react-icons/lib/fa/delicious.d.ts +++ b/types/react-icons/lib/fa/delicious.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaDelicious extends React.Component { } +declare class FaDelicious extends React.Component { } +export = FaDelicious; diff --git a/types/react-icons/lib/fa/desktop.d.ts b/types/react-icons/lib/fa/desktop.d.ts index 7ada5afec8..46bc3de05f 100644 --- a/types/react-icons/lib/fa/desktop.d.ts +++ b/types/react-icons/lib/fa/desktop.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaDesktop extends React.Component { } +declare class FaDesktop extends React.Component { } +export = FaDesktop; diff --git a/types/react-icons/lib/fa/deviantart.d.ts b/types/react-icons/lib/fa/deviantart.d.ts index d3d8521e04..f81be1f6c7 100644 --- a/types/react-icons/lib/fa/deviantart.d.ts +++ b/types/react-icons/lib/fa/deviantart.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaDeviantart extends React.Component { } +declare class FaDeviantart extends React.Component { } +export = FaDeviantart; diff --git a/types/react-icons/lib/fa/diamond.d.ts b/types/react-icons/lib/fa/diamond.d.ts index 1d54c78101..7e5ae9df3b 100644 --- a/types/react-icons/lib/fa/diamond.d.ts +++ b/types/react-icons/lib/fa/diamond.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaDiamond extends React.Component { } +declare class FaDiamond extends React.Component { } +export = FaDiamond; diff --git a/types/react-icons/lib/fa/digg.d.ts b/types/react-icons/lib/fa/digg.d.ts index 7ba32cbe41..23583964a5 100644 --- a/types/react-icons/lib/fa/digg.d.ts +++ b/types/react-icons/lib/fa/digg.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaDigg extends React.Component { } +declare class FaDigg extends React.Component { } +export = FaDigg; diff --git a/types/react-icons/lib/fa/dollar.d.ts b/types/react-icons/lib/fa/dollar.d.ts index 339fc41f86..5311f1a562 100644 --- a/types/react-icons/lib/fa/dollar.d.ts +++ b/types/react-icons/lib/fa/dollar.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaDollar extends React.Component { } +declare class FaDollar extends React.Component { } +export = FaDollar; diff --git a/types/react-icons/lib/fa/dot-circle-o.d.ts b/types/react-icons/lib/fa/dot-circle-o.d.ts index 8479c5a1c1..35f9eb9650 100644 --- a/types/react-icons/lib/fa/dot-circle-o.d.ts +++ b/types/react-icons/lib/fa/dot-circle-o.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaDotCircleO extends React.Component { } +declare class FaDotCircleO extends React.Component { } +export = FaDotCircleO; diff --git a/types/react-icons/lib/fa/download.d.ts b/types/react-icons/lib/fa/download.d.ts index bd458b4c21..256c59de79 100644 --- a/types/react-icons/lib/fa/download.d.ts +++ b/types/react-icons/lib/fa/download.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaDownload extends React.Component { } +declare class FaDownload extends React.Component { } +export = FaDownload; diff --git a/types/react-icons/lib/fa/dribbble.d.ts b/types/react-icons/lib/fa/dribbble.d.ts index 97c095c7f0..668a16710b 100644 --- a/types/react-icons/lib/fa/dribbble.d.ts +++ b/types/react-icons/lib/fa/dribbble.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaDribbble extends React.Component { } +declare class FaDribbble extends React.Component { } +export = FaDribbble; diff --git a/types/react-icons/lib/fa/dropbox.d.ts b/types/react-icons/lib/fa/dropbox.d.ts index 1534075582..8f780c1b1a 100644 --- a/types/react-icons/lib/fa/dropbox.d.ts +++ b/types/react-icons/lib/fa/dropbox.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaDropbox extends React.Component { } +declare class FaDropbox extends React.Component { } +export = FaDropbox; diff --git a/types/react-icons/lib/fa/drupal.d.ts b/types/react-icons/lib/fa/drupal.d.ts index c4318c69ed..7e1f23e073 100644 --- a/types/react-icons/lib/fa/drupal.d.ts +++ b/types/react-icons/lib/fa/drupal.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaDrupal extends React.Component { } +declare class FaDrupal extends React.Component { } +export = FaDrupal; diff --git a/types/react-icons/lib/fa/edge.d.ts b/types/react-icons/lib/fa/edge.d.ts index bfe0ccba18..38b4368b33 100644 --- a/types/react-icons/lib/fa/edge.d.ts +++ b/types/react-icons/lib/fa/edge.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaEdge extends React.Component { } +declare class FaEdge extends React.Component { } +export = FaEdge; diff --git a/types/react-icons/lib/fa/edit.d.ts b/types/react-icons/lib/fa/edit.d.ts index e207eca02c..989dc37c64 100644 --- a/types/react-icons/lib/fa/edit.d.ts +++ b/types/react-icons/lib/fa/edit.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaEdit extends React.Component { } +declare class FaEdit extends React.Component { } +export = FaEdit; diff --git a/types/react-icons/lib/fa/eject.d.ts b/types/react-icons/lib/fa/eject.d.ts index 6a8ba89e5b..bc9e34c4a8 100644 --- a/types/react-icons/lib/fa/eject.d.ts +++ b/types/react-icons/lib/fa/eject.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaEject extends React.Component { } +declare class FaEject extends React.Component { } +export = FaEject; diff --git a/types/react-icons/lib/fa/ellipsis-h.d.ts b/types/react-icons/lib/fa/ellipsis-h.d.ts index 6c97cce7ac..d00da1e799 100644 --- a/types/react-icons/lib/fa/ellipsis-h.d.ts +++ b/types/react-icons/lib/fa/ellipsis-h.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaEllipsisH extends React.Component { } +declare class FaEllipsisH extends React.Component { } +export = FaEllipsisH; diff --git a/types/react-icons/lib/fa/ellipsis-v.d.ts b/types/react-icons/lib/fa/ellipsis-v.d.ts index a6a862fcc0..d9d4e1c84e 100644 --- a/types/react-icons/lib/fa/ellipsis-v.d.ts +++ b/types/react-icons/lib/fa/ellipsis-v.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaEllipsisV extends React.Component { } +declare class FaEllipsisV extends React.Component { } +export = FaEllipsisV; diff --git a/types/react-icons/lib/fa/empire.d.ts b/types/react-icons/lib/fa/empire.d.ts index c898a570aa..5cc1dad476 100644 --- a/types/react-icons/lib/fa/empire.d.ts +++ b/types/react-icons/lib/fa/empire.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaEmpire extends React.Component { } +declare class FaEmpire extends React.Component { } +export = FaEmpire; diff --git a/types/react-icons/lib/fa/envelope-o.d.ts b/types/react-icons/lib/fa/envelope-o.d.ts index 91552afcb2..4469389609 100644 --- a/types/react-icons/lib/fa/envelope-o.d.ts +++ b/types/react-icons/lib/fa/envelope-o.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaEnvelopeO extends React.Component { } +declare class FaEnvelopeO extends React.Component { } +export = FaEnvelopeO; diff --git a/types/react-icons/lib/fa/envelope-square.d.ts b/types/react-icons/lib/fa/envelope-square.d.ts index c984bceac4..6d3c1cf0f8 100644 --- a/types/react-icons/lib/fa/envelope-square.d.ts +++ b/types/react-icons/lib/fa/envelope-square.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaEnvelopeSquare extends React.Component { } +declare class FaEnvelopeSquare extends React.Component { } +export = FaEnvelopeSquare; diff --git a/types/react-icons/lib/fa/envelope.d.ts b/types/react-icons/lib/fa/envelope.d.ts index c93f0c144b..219156d484 100644 --- a/types/react-icons/lib/fa/envelope.d.ts +++ b/types/react-icons/lib/fa/envelope.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaEnvelope extends React.Component { } +declare class FaEnvelope extends React.Component { } +export = FaEnvelope; diff --git a/types/react-icons/lib/fa/envira.d.ts b/types/react-icons/lib/fa/envira.d.ts index 8ccf1e8183..4ab89938e7 100644 --- a/types/react-icons/lib/fa/envira.d.ts +++ b/types/react-icons/lib/fa/envira.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaEnvira extends React.Component { } +declare class FaEnvira extends React.Component { } +export = FaEnvira; diff --git a/types/react-icons/lib/fa/eraser.d.ts b/types/react-icons/lib/fa/eraser.d.ts index 1751f58630..ad40c75975 100644 --- a/types/react-icons/lib/fa/eraser.d.ts +++ b/types/react-icons/lib/fa/eraser.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaEraser extends React.Component { } +declare class FaEraser extends React.Component { } +export = FaEraser; diff --git a/types/react-icons/lib/fa/eur.d.ts b/types/react-icons/lib/fa/eur.d.ts index 466c340a42..6d18711dd5 100644 --- a/types/react-icons/lib/fa/eur.d.ts +++ b/types/react-icons/lib/fa/eur.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaEur extends React.Component { } +declare class FaEur extends React.Component { } +export = FaEur; diff --git a/types/react-icons/lib/fa/exchange.d.ts b/types/react-icons/lib/fa/exchange.d.ts index 61f666fcc6..86e1df628d 100644 --- a/types/react-icons/lib/fa/exchange.d.ts +++ b/types/react-icons/lib/fa/exchange.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaExchange extends React.Component { } +declare class FaExchange extends React.Component { } +export = FaExchange; diff --git a/types/react-icons/lib/fa/exclamation-circle.d.ts b/types/react-icons/lib/fa/exclamation-circle.d.ts index 074285abc3..b421e2dd49 100644 --- a/types/react-icons/lib/fa/exclamation-circle.d.ts +++ b/types/react-icons/lib/fa/exclamation-circle.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaExclamationCircle extends React.Component { } +declare class FaExclamationCircle extends React.Component { } +export = FaExclamationCircle; diff --git a/types/react-icons/lib/fa/exclamation-triangle.d.ts b/types/react-icons/lib/fa/exclamation-triangle.d.ts index 0e6a2039ef..340cdae80e 100644 --- a/types/react-icons/lib/fa/exclamation-triangle.d.ts +++ b/types/react-icons/lib/fa/exclamation-triangle.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaExclamationTriangle extends React.Component { } +declare class FaExclamationTriangle extends React.Component { } +export = FaExclamationTriangle; diff --git a/types/react-icons/lib/fa/exclamation.d.ts b/types/react-icons/lib/fa/exclamation.d.ts index 822c50b207..9faa259a47 100644 --- a/types/react-icons/lib/fa/exclamation.d.ts +++ b/types/react-icons/lib/fa/exclamation.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaExclamation extends React.Component { } +declare class FaExclamation extends React.Component { } +export = FaExclamation; diff --git a/types/react-icons/lib/fa/expand.d.ts b/types/react-icons/lib/fa/expand.d.ts index 4648b519b9..8a85cf0f71 100644 --- a/types/react-icons/lib/fa/expand.d.ts +++ b/types/react-icons/lib/fa/expand.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaExpand extends React.Component { } +declare class FaExpand extends React.Component { } +export = FaExpand; diff --git a/types/react-icons/lib/fa/expeditedssl.d.ts b/types/react-icons/lib/fa/expeditedssl.d.ts index e30594333e..881ce2621c 100644 --- a/types/react-icons/lib/fa/expeditedssl.d.ts +++ b/types/react-icons/lib/fa/expeditedssl.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaExpeditedssl extends React.Component { } +declare class FaExpeditedssl extends React.Component { } +export = FaExpeditedssl; diff --git a/types/react-icons/lib/fa/external-link-square.d.ts b/types/react-icons/lib/fa/external-link-square.d.ts index f49858db95..9fb66091cb 100644 --- a/types/react-icons/lib/fa/external-link-square.d.ts +++ b/types/react-icons/lib/fa/external-link-square.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaExternalLinkSquare extends React.Component { } +declare class FaExternalLinkSquare extends React.Component { } +export = FaExternalLinkSquare; diff --git a/types/react-icons/lib/fa/external-link.d.ts b/types/react-icons/lib/fa/external-link.d.ts index 69b539a542..eb4af13164 100644 --- a/types/react-icons/lib/fa/external-link.d.ts +++ b/types/react-icons/lib/fa/external-link.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaExternalLink extends React.Component { } +declare class FaExternalLink extends React.Component { } +export = FaExternalLink; diff --git a/types/react-icons/lib/fa/eye-slash.d.ts b/types/react-icons/lib/fa/eye-slash.d.ts index cbf60ac206..ca8008324d 100644 --- a/types/react-icons/lib/fa/eye-slash.d.ts +++ b/types/react-icons/lib/fa/eye-slash.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaEyeSlash extends React.Component { } +declare class FaEyeSlash extends React.Component { } +export = FaEyeSlash; diff --git a/types/react-icons/lib/fa/eye.d.ts b/types/react-icons/lib/fa/eye.d.ts index bec2d41708..74acb8f8d6 100644 --- a/types/react-icons/lib/fa/eye.d.ts +++ b/types/react-icons/lib/fa/eye.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaEye extends React.Component { } +declare class FaEye extends React.Component { } +export = FaEye; diff --git a/types/react-icons/lib/fa/eyedropper.d.ts b/types/react-icons/lib/fa/eyedropper.d.ts index 87b2d74f41..41ec80d371 100644 --- a/types/react-icons/lib/fa/eyedropper.d.ts +++ b/types/react-icons/lib/fa/eyedropper.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaEyedropper extends React.Component { } +declare class FaEyedropper extends React.Component { } +export = FaEyedropper; diff --git a/types/react-icons/lib/fa/facebook-official.d.ts b/types/react-icons/lib/fa/facebook-official.d.ts index 3424fb90dd..1f1a4d12ff 100644 --- a/types/react-icons/lib/fa/facebook-official.d.ts +++ b/types/react-icons/lib/fa/facebook-official.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaFacebookOfficial extends React.Component { } +declare class FaFacebookOfficial extends React.Component { } +export = FaFacebookOfficial; diff --git a/types/react-icons/lib/fa/facebook-square.d.ts b/types/react-icons/lib/fa/facebook-square.d.ts index fb5c101a6b..9913daf360 100644 --- a/types/react-icons/lib/fa/facebook-square.d.ts +++ b/types/react-icons/lib/fa/facebook-square.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaFacebookSquare extends React.Component { } +declare class FaFacebookSquare extends React.Component { } +export = FaFacebookSquare; diff --git a/types/react-icons/lib/fa/facebook.d.ts b/types/react-icons/lib/fa/facebook.d.ts index d837e533dd..1644fe29eb 100644 --- a/types/react-icons/lib/fa/facebook.d.ts +++ b/types/react-icons/lib/fa/facebook.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaFacebook extends React.Component { } +declare class FaFacebook extends React.Component { } +export = FaFacebook; diff --git a/types/react-icons/lib/fa/fast-backward.d.ts b/types/react-icons/lib/fa/fast-backward.d.ts index 73f95fd419..1e7d42c3b6 100644 --- a/types/react-icons/lib/fa/fast-backward.d.ts +++ b/types/react-icons/lib/fa/fast-backward.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaFastBackward extends React.Component { } +declare class FaFastBackward extends React.Component { } +export = FaFastBackward; diff --git a/types/react-icons/lib/fa/fast-forward.d.ts b/types/react-icons/lib/fa/fast-forward.d.ts index c28ea39eb7..6321e070d6 100644 --- a/types/react-icons/lib/fa/fast-forward.d.ts +++ b/types/react-icons/lib/fa/fast-forward.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaFastForward extends React.Component { } +declare class FaFastForward extends React.Component { } +export = FaFastForward; diff --git a/types/react-icons/lib/fa/fax.d.ts b/types/react-icons/lib/fa/fax.d.ts index 9ca411f7f9..9b132d388d 100644 --- a/types/react-icons/lib/fa/fax.d.ts +++ b/types/react-icons/lib/fa/fax.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaFax extends React.Component { } +declare class FaFax extends React.Component { } +export = FaFax; diff --git a/types/react-icons/lib/fa/feed.d.ts b/types/react-icons/lib/fa/feed.d.ts index 448c3a2e24..38127134e7 100644 --- a/types/react-icons/lib/fa/feed.d.ts +++ b/types/react-icons/lib/fa/feed.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaFeed extends React.Component { } +declare class FaFeed extends React.Component { } +export = FaFeed; diff --git a/types/react-icons/lib/fa/female.d.ts b/types/react-icons/lib/fa/female.d.ts index d18a20d305..03d6b92278 100644 --- a/types/react-icons/lib/fa/female.d.ts +++ b/types/react-icons/lib/fa/female.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaFemale extends React.Component { } +declare class FaFemale extends React.Component { } +export = FaFemale; diff --git a/types/react-icons/lib/fa/fighter-jet.d.ts b/types/react-icons/lib/fa/fighter-jet.d.ts index 124b4d63e3..e6cf5be901 100644 --- a/types/react-icons/lib/fa/fighter-jet.d.ts +++ b/types/react-icons/lib/fa/fighter-jet.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaFighterJet extends React.Component { } +declare class FaFighterJet extends React.Component { } +export = FaFighterJet; diff --git a/types/react-icons/lib/fa/file-archive-o.d.ts b/types/react-icons/lib/fa/file-archive-o.d.ts index 6a3390c936..ff25fc06ad 100644 --- a/types/react-icons/lib/fa/file-archive-o.d.ts +++ b/types/react-icons/lib/fa/file-archive-o.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaFileArchiveO extends React.Component { } +declare class FaFileArchiveO extends React.Component { } +export = FaFileArchiveO; diff --git a/types/react-icons/lib/fa/file-audio-o.d.ts b/types/react-icons/lib/fa/file-audio-o.d.ts index a360a79960..211c6fa6d9 100644 --- a/types/react-icons/lib/fa/file-audio-o.d.ts +++ b/types/react-icons/lib/fa/file-audio-o.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaFileAudioO extends React.Component { } +declare class FaFileAudioO extends React.Component { } +export = FaFileAudioO; diff --git a/types/react-icons/lib/fa/file-code-o.d.ts b/types/react-icons/lib/fa/file-code-o.d.ts index 754fcb2d04..9a29a3c9b2 100644 --- a/types/react-icons/lib/fa/file-code-o.d.ts +++ b/types/react-icons/lib/fa/file-code-o.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaFileCodeO extends React.Component { } +declare class FaFileCodeO extends React.Component { } +export = FaFileCodeO; diff --git a/types/react-icons/lib/fa/file-excel-o.d.ts b/types/react-icons/lib/fa/file-excel-o.d.ts index dd41811e82..4bbfd0bcea 100644 --- a/types/react-icons/lib/fa/file-excel-o.d.ts +++ b/types/react-icons/lib/fa/file-excel-o.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaFileExcelO extends React.Component { } +declare class FaFileExcelO extends React.Component { } +export = FaFileExcelO; diff --git a/types/react-icons/lib/fa/file-image-o.d.ts b/types/react-icons/lib/fa/file-image-o.d.ts index 7c6b77a296..11ae1f0c6f 100644 --- a/types/react-icons/lib/fa/file-image-o.d.ts +++ b/types/react-icons/lib/fa/file-image-o.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaFileImageO extends React.Component { } +declare class FaFileImageO extends React.Component { } +export = FaFileImageO; diff --git a/types/react-icons/lib/fa/file-movie-o.d.ts b/types/react-icons/lib/fa/file-movie-o.d.ts index ec9a9e0e0d..9ed9155780 100644 --- a/types/react-icons/lib/fa/file-movie-o.d.ts +++ b/types/react-icons/lib/fa/file-movie-o.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaFileMovieO extends React.Component { } +declare class FaFileMovieO extends React.Component { } +export = FaFileMovieO; diff --git a/types/react-icons/lib/fa/file-o.d.ts b/types/react-icons/lib/fa/file-o.d.ts index 726de80769..d999ac3e54 100644 --- a/types/react-icons/lib/fa/file-o.d.ts +++ b/types/react-icons/lib/fa/file-o.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaFileO extends React.Component { } +declare class FaFileO extends React.Component { } +export = FaFileO; diff --git a/types/react-icons/lib/fa/file-pdf-o.d.ts b/types/react-icons/lib/fa/file-pdf-o.d.ts index 79ae492b23..e2abcd0736 100644 --- a/types/react-icons/lib/fa/file-pdf-o.d.ts +++ b/types/react-icons/lib/fa/file-pdf-o.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaFilePdfO extends React.Component { } +declare class FaFilePdfO extends React.Component { } +export = FaFilePdfO; diff --git a/types/react-icons/lib/fa/file-powerpoint-o.d.ts b/types/react-icons/lib/fa/file-powerpoint-o.d.ts index fd4016615c..447f354ee1 100644 --- a/types/react-icons/lib/fa/file-powerpoint-o.d.ts +++ b/types/react-icons/lib/fa/file-powerpoint-o.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaFilePowerpointO extends React.Component { } +declare class FaFilePowerpointO extends React.Component { } +export = FaFilePowerpointO; diff --git a/types/react-icons/lib/fa/file-text-o.d.ts b/types/react-icons/lib/fa/file-text-o.d.ts index 5bf9475839..8d1d06d3fc 100644 --- a/types/react-icons/lib/fa/file-text-o.d.ts +++ b/types/react-icons/lib/fa/file-text-o.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaFileTextO extends React.Component { } +declare class FaFileTextO extends React.Component { } +export = FaFileTextO; diff --git a/types/react-icons/lib/fa/file-text.d.ts b/types/react-icons/lib/fa/file-text.d.ts index 287aa5d5e9..d551df577a 100644 --- a/types/react-icons/lib/fa/file-text.d.ts +++ b/types/react-icons/lib/fa/file-text.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaFileText extends React.Component { } +declare class FaFileText extends React.Component { } +export = FaFileText; diff --git a/types/react-icons/lib/fa/file-word-o.d.ts b/types/react-icons/lib/fa/file-word-o.d.ts index e8790d5988..7dd12a0dbb 100644 --- a/types/react-icons/lib/fa/file-word-o.d.ts +++ b/types/react-icons/lib/fa/file-word-o.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaFileWordO extends React.Component { } +declare class FaFileWordO extends React.Component { } +export = FaFileWordO; diff --git a/types/react-icons/lib/fa/file.d.ts b/types/react-icons/lib/fa/file.d.ts index 92fb6d073a..90eea6dacf 100644 --- a/types/react-icons/lib/fa/file.d.ts +++ b/types/react-icons/lib/fa/file.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaFile extends React.Component { } +declare class FaFile extends React.Component { } +export = FaFile; diff --git a/types/react-icons/lib/fa/film.d.ts b/types/react-icons/lib/fa/film.d.ts index 639ec938b8..ccc05405ee 100644 --- a/types/react-icons/lib/fa/film.d.ts +++ b/types/react-icons/lib/fa/film.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaFilm extends React.Component { } +declare class FaFilm extends React.Component { } +export = FaFilm; diff --git a/types/react-icons/lib/fa/filter.d.ts b/types/react-icons/lib/fa/filter.d.ts index 971ec8a2ab..02308d24fd 100644 --- a/types/react-icons/lib/fa/filter.d.ts +++ b/types/react-icons/lib/fa/filter.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaFilter extends React.Component { } +declare class FaFilter extends React.Component { } +export = FaFilter; diff --git a/types/react-icons/lib/fa/fire-extinguisher.d.ts b/types/react-icons/lib/fa/fire-extinguisher.d.ts index 347abc3091..2f2637ebfc 100644 --- a/types/react-icons/lib/fa/fire-extinguisher.d.ts +++ b/types/react-icons/lib/fa/fire-extinguisher.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaFireExtinguisher extends React.Component { } +declare class FaFireExtinguisher extends React.Component { } +export = FaFireExtinguisher; diff --git a/types/react-icons/lib/fa/fire.d.ts b/types/react-icons/lib/fa/fire.d.ts index 361e6b3f2a..16231c9435 100644 --- a/types/react-icons/lib/fa/fire.d.ts +++ b/types/react-icons/lib/fa/fire.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaFire extends React.Component { } +declare class FaFire extends React.Component { } +export = FaFire; diff --git a/types/react-icons/lib/fa/firefox.d.ts b/types/react-icons/lib/fa/firefox.d.ts index fb5b6faf5b..e4270d68f1 100644 --- a/types/react-icons/lib/fa/firefox.d.ts +++ b/types/react-icons/lib/fa/firefox.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaFirefox extends React.Component { } +declare class FaFirefox extends React.Component { } +export = FaFirefox; diff --git a/types/react-icons/lib/fa/flag-checkered.d.ts b/types/react-icons/lib/fa/flag-checkered.d.ts index ad9439fe74..0593962a85 100644 --- a/types/react-icons/lib/fa/flag-checkered.d.ts +++ b/types/react-icons/lib/fa/flag-checkered.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaFlagCheckered extends React.Component { } +declare class FaFlagCheckered extends React.Component { } +export = FaFlagCheckered; diff --git a/types/react-icons/lib/fa/flag-o.d.ts b/types/react-icons/lib/fa/flag-o.d.ts index 4af124ebe3..799d680b87 100644 --- a/types/react-icons/lib/fa/flag-o.d.ts +++ b/types/react-icons/lib/fa/flag-o.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaFlagO extends React.Component { } +declare class FaFlagO extends React.Component { } +export = FaFlagO; diff --git a/types/react-icons/lib/fa/flag.d.ts b/types/react-icons/lib/fa/flag.d.ts index 05b3a41500..0ffe7c5e21 100644 --- a/types/react-icons/lib/fa/flag.d.ts +++ b/types/react-icons/lib/fa/flag.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaFlag extends React.Component { } +declare class FaFlag extends React.Component { } +export = FaFlag; diff --git a/types/react-icons/lib/fa/flask.d.ts b/types/react-icons/lib/fa/flask.d.ts index 53edd95b1c..3c6ed4067e 100644 --- a/types/react-icons/lib/fa/flask.d.ts +++ b/types/react-icons/lib/fa/flask.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaFlask extends React.Component { } +declare class FaFlask extends React.Component { } +export = FaFlask; diff --git a/types/react-icons/lib/fa/flickr.d.ts b/types/react-icons/lib/fa/flickr.d.ts index 0642e63424..b35696f10a 100644 --- a/types/react-icons/lib/fa/flickr.d.ts +++ b/types/react-icons/lib/fa/flickr.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaFlickr extends React.Component { } +declare class FaFlickr extends React.Component { } +export = FaFlickr; diff --git a/types/react-icons/lib/fa/floppy-o.d.ts b/types/react-icons/lib/fa/floppy-o.d.ts index a36898567d..2eacb6d2da 100644 --- a/types/react-icons/lib/fa/floppy-o.d.ts +++ b/types/react-icons/lib/fa/floppy-o.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaFloppyO extends React.Component { } +declare class FaFloppyO extends React.Component { } +export = FaFloppyO; diff --git a/types/react-icons/lib/fa/folder-o.d.ts b/types/react-icons/lib/fa/folder-o.d.ts index 86c2f0853c..df997f3bbb 100644 --- a/types/react-icons/lib/fa/folder-o.d.ts +++ b/types/react-icons/lib/fa/folder-o.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaFolderO extends React.Component { } +declare class FaFolderO extends React.Component { } +export = FaFolderO; diff --git a/types/react-icons/lib/fa/folder-open-o.d.ts b/types/react-icons/lib/fa/folder-open-o.d.ts index 13c270457c..99f32e2b2c 100644 --- a/types/react-icons/lib/fa/folder-open-o.d.ts +++ b/types/react-icons/lib/fa/folder-open-o.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaFolderOpenO extends React.Component { } +declare class FaFolderOpenO extends React.Component { } +export = FaFolderOpenO; diff --git a/types/react-icons/lib/fa/folder-open.d.ts b/types/react-icons/lib/fa/folder-open.d.ts index 27eefcf390..0e9fac95ac 100644 --- a/types/react-icons/lib/fa/folder-open.d.ts +++ b/types/react-icons/lib/fa/folder-open.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaFolderOpen extends React.Component { } +declare class FaFolderOpen extends React.Component { } +export = FaFolderOpen; diff --git a/types/react-icons/lib/fa/folder.d.ts b/types/react-icons/lib/fa/folder.d.ts index 348ac25522..710bee7179 100644 --- a/types/react-icons/lib/fa/folder.d.ts +++ b/types/react-icons/lib/fa/folder.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaFolder extends React.Component { } +declare class FaFolder extends React.Component { } +export = FaFolder; diff --git a/types/react-icons/lib/fa/font.d.ts b/types/react-icons/lib/fa/font.d.ts index 70459022df..0ab7e0ef5c 100644 --- a/types/react-icons/lib/fa/font.d.ts +++ b/types/react-icons/lib/fa/font.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaFont extends React.Component { } +declare class FaFont extends React.Component { } +export = FaFont; diff --git a/types/react-icons/lib/fa/fonticons.d.ts b/types/react-icons/lib/fa/fonticons.d.ts index a124cfb0c2..a219058840 100644 --- a/types/react-icons/lib/fa/fonticons.d.ts +++ b/types/react-icons/lib/fa/fonticons.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaFonticons extends React.Component { } +declare class FaFonticons extends React.Component { } +export = FaFonticons; diff --git a/types/react-icons/lib/fa/fort-awesome.d.ts b/types/react-icons/lib/fa/fort-awesome.d.ts index a88e6a0118..af5c2699ca 100644 --- a/types/react-icons/lib/fa/fort-awesome.d.ts +++ b/types/react-icons/lib/fa/fort-awesome.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaFortAwesome extends React.Component { } +declare class FaFortAwesome extends React.Component { } +export = FaFortAwesome; diff --git a/types/react-icons/lib/fa/forumbee.d.ts b/types/react-icons/lib/fa/forumbee.d.ts index 58b96a9d83..6ba90b5966 100644 --- a/types/react-icons/lib/fa/forumbee.d.ts +++ b/types/react-icons/lib/fa/forumbee.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaForumbee extends React.Component { } +declare class FaForumbee extends React.Component { } +export = FaForumbee; diff --git a/types/react-icons/lib/fa/forward.d.ts b/types/react-icons/lib/fa/forward.d.ts index 12eacceb4b..5a25112852 100644 --- a/types/react-icons/lib/fa/forward.d.ts +++ b/types/react-icons/lib/fa/forward.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaForward extends React.Component { } +declare class FaForward extends React.Component { } +export = FaForward; diff --git a/types/react-icons/lib/fa/foursquare.d.ts b/types/react-icons/lib/fa/foursquare.d.ts index 8c2bf2cbf5..1092fdbd86 100644 --- a/types/react-icons/lib/fa/foursquare.d.ts +++ b/types/react-icons/lib/fa/foursquare.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaFoursquare extends React.Component { } +declare class FaFoursquare extends React.Component { } +export = FaFoursquare; diff --git a/types/react-icons/lib/fa/frown-o.d.ts b/types/react-icons/lib/fa/frown-o.d.ts index 06ebd02274..989c142ac7 100644 --- a/types/react-icons/lib/fa/frown-o.d.ts +++ b/types/react-icons/lib/fa/frown-o.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaFrownO extends React.Component { } +declare class FaFrownO extends React.Component { } +export = FaFrownO; diff --git a/types/react-icons/lib/fa/futbol-o.d.ts b/types/react-icons/lib/fa/futbol-o.d.ts index eaa4922a85..e98209d9ed 100644 --- a/types/react-icons/lib/fa/futbol-o.d.ts +++ b/types/react-icons/lib/fa/futbol-o.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaFutbolO extends React.Component { } +declare class FaFutbolO extends React.Component { } +export = FaFutbolO; diff --git a/types/react-icons/lib/fa/gamepad.d.ts b/types/react-icons/lib/fa/gamepad.d.ts index 9acea2828f..5c747b4850 100644 --- a/types/react-icons/lib/fa/gamepad.d.ts +++ b/types/react-icons/lib/fa/gamepad.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaGamepad extends React.Component { } +declare class FaGamepad extends React.Component { } +export = FaGamepad; diff --git a/types/react-icons/lib/fa/gavel.d.ts b/types/react-icons/lib/fa/gavel.d.ts index 66e5593ffa..5e5e0e5084 100644 --- a/types/react-icons/lib/fa/gavel.d.ts +++ b/types/react-icons/lib/fa/gavel.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaGavel extends React.Component { } +declare class FaGavel extends React.Component { } +export = FaGavel; diff --git a/types/react-icons/lib/fa/gbp.d.ts b/types/react-icons/lib/fa/gbp.d.ts index 1fb48290e3..ec7abd138a 100644 --- a/types/react-icons/lib/fa/gbp.d.ts +++ b/types/react-icons/lib/fa/gbp.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaGbp extends React.Component { } +declare class FaGbp extends React.Component { } +export = FaGbp; diff --git a/types/react-icons/lib/fa/genderless.d.ts b/types/react-icons/lib/fa/genderless.d.ts index 5ad672ddb3..a28ebcf09d 100644 --- a/types/react-icons/lib/fa/genderless.d.ts +++ b/types/react-icons/lib/fa/genderless.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaGenderless extends React.Component { } +declare class FaGenderless extends React.Component { } +export = FaGenderless; diff --git a/types/react-icons/lib/fa/get-pocket.d.ts b/types/react-icons/lib/fa/get-pocket.d.ts index 1f04b2974b..8184834bc9 100644 --- a/types/react-icons/lib/fa/get-pocket.d.ts +++ b/types/react-icons/lib/fa/get-pocket.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaGetPocket extends React.Component { } +declare class FaGetPocket extends React.Component { } +export = FaGetPocket; diff --git a/types/react-icons/lib/fa/gg-circle.d.ts b/types/react-icons/lib/fa/gg-circle.d.ts index 580b37668c..08edcf12d9 100644 --- a/types/react-icons/lib/fa/gg-circle.d.ts +++ b/types/react-icons/lib/fa/gg-circle.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaGgCircle extends React.Component { } +declare class FaGgCircle extends React.Component { } +export = FaGgCircle; diff --git a/types/react-icons/lib/fa/gg.d.ts b/types/react-icons/lib/fa/gg.d.ts index 2aaf1c7b23..923b9e251c 100644 --- a/types/react-icons/lib/fa/gg.d.ts +++ b/types/react-icons/lib/fa/gg.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaGg extends React.Component { } +declare class FaGg extends React.Component { } +export = FaGg; diff --git a/types/react-icons/lib/fa/gift.d.ts b/types/react-icons/lib/fa/gift.d.ts index 79b22324f5..3f2bbab5bd 100644 --- a/types/react-icons/lib/fa/gift.d.ts +++ b/types/react-icons/lib/fa/gift.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaGift extends React.Component { } +declare class FaGift extends React.Component { } +export = FaGift; diff --git a/types/react-icons/lib/fa/git-square.d.ts b/types/react-icons/lib/fa/git-square.d.ts index 28cf85a92a..6f35bf4d1e 100644 --- a/types/react-icons/lib/fa/git-square.d.ts +++ b/types/react-icons/lib/fa/git-square.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaGitSquare extends React.Component { } +declare class FaGitSquare extends React.Component { } +export = FaGitSquare; diff --git a/types/react-icons/lib/fa/git.d.ts b/types/react-icons/lib/fa/git.d.ts index 427ad2a4b8..e2f02405d1 100644 --- a/types/react-icons/lib/fa/git.d.ts +++ b/types/react-icons/lib/fa/git.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaGit extends React.Component { } +declare class FaGit extends React.Component { } +export = FaGit; diff --git a/types/react-icons/lib/fa/github-alt.d.ts b/types/react-icons/lib/fa/github-alt.d.ts index 8f3b4c4175..83433ff8c4 100644 --- a/types/react-icons/lib/fa/github-alt.d.ts +++ b/types/react-icons/lib/fa/github-alt.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaGithubAlt extends React.Component { } +declare class FaGithubAlt extends React.Component { } +export = FaGithubAlt; diff --git a/types/react-icons/lib/fa/github-square.d.ts b/types/react-icons/lib/fa/github-square.d.ts index 8feea6aea6..97e33a57ce 100644 --- a/types/react-icons/lib/fa/github-square.d.ts +++ b/types/react-icons/lib/fa/github-square.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaGithubSquare extends React.Component { } +declare class FaGithubSquare extends React.Component { } +export = FaGithubSquare; diff --git a/types/react-icons/lib/fa/github.d.ts b/types/react-icons/lib/fa/github.d.ts index 6e5ff98328..47d9b29a3d 100644 --- a/types/react-icons/lib/fa/github.d.ts +++ b/types/react-icons/lib/fa/github.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaGithub extends React.Component { } +declare class FaGithub extends React.Component { } +export = FaGithub; diff --git a/types/react-icons/lib/fa/gitlab.d.ts b/types/react-icons/lib/fa/gitlab.d.ts index 1d185afb32..109562b8e7 100644 --- a/types/react-icons/lib/fa/gitlab.d.ts +++ b/types/react-icons/lib/fa/gitlab.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaGitlab extends React.Component { } +declare class FaGitlab extends React.Component { } +export = FaGitlab; diff --git a/types/react-icons/lib/fa/gittip.d.ts b/types/react-icons/lib/fa/gittip.d.ts index c96eaa0026..f24ab2ec75 100644 --- a/types/react-icons/lib/fa/gittip.d.ts +++ b/types/react-icons/lib/fa/gittip.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaGittip extends React.Component { } +declare class FaGittip extends React.Component { } +export = FaGittip; diff --git a/types/react-icons/lib/fa/glass.d.ts b/types/react-icons/lib/fa/glass.d.ts index 7f0fa030d9..daf740f992 100644 --- a/types/react-icons/lib/fa/glass.d.ts +++ b/types/react-icons/lib/fa/glass.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaGlass extends React.Component { } +declare class FaGlass extends React.Component { } +export = FaGlass; diff --git a/types/react-icons/lib/fa/glide-g.d.ts b/types/react-icons/lib/fa/glide-g.d.ts index c5601a2e6f..b3125de468 100644 --- a/types/react-icons/lib/fa/glide-g.d.ts +++ b/types/react-icons/lib/fa/glide-g.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaGlideG extends React.Component { } +declare class FaGlideG extends React.Component { } +export = FaGlideG; diff --git a/types/react-icons/lib/fa/glide.d.ts b/types/react-icons/lib/fa/glide.d.ts index 7a7e2300f7..ff48d02cfd 100644 --- a/types/react-icons/lib/fa/glide.d.ts +++ b/types/react-icons/lib/fa/glide.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaGlide extends React.Component { } +declare class FaGlide extends React.Component { } +export = FaGlide; diff --git a/types/react-icons/lib/fa/globe.d.ts b/types/react-icons/lib/fa/globe.d.ts index e71a1f6bd9..609ce3127a 100644 --- a/types/react-icons/lib/fa/globe.d.ts +++ b/types/react-icons/lib/fa/globe.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaGlobe extends React.Component { } +declare class FaGlobe extends React.Component { } +export = FaGlobe; diff --git a/types/react-icons/lib/fa/google-plus-square.d.ts b/types/react-icons/lib/fa/google-plus-square.d.ts index 9d3428ec25..3f5f54ebe1 100644 --- a/types/react-icons/lib/fa/google-plus-square.d.ts +++ b/types/react-icons/lib/fa/google-plus-square.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaGooglePlusSquare extends React.Component { } +declare class FaGooglePlusSquare extends React.Component { } +export = FaGooglePlusSquare; diff --git a/types/react-icons/lib/fa/google-plus.d.ts b/types/react-icons/lib/fa/google-plus.d.ts index 3c1eba715e..080f4dcba2 100644 --- a/types/react-icons/lib/fa/google-plus.d.ts +++ b/types/react-icons/lib/fa/google-plus.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaGooglePlus extends React.Component { } +declare class FaGooglePlus extends React.Component { } +export = FaGooglePlus; diff --git a/types/react-icons/lib/fa/google-wallet.d.ts b/types/react-icons/lib/fa/google-wallet.d.ts index 8ab0d78a56..b19019fcff 100644 --- a/types/react-icons/lib/fa/google-wallet.d.ts +++ b/types/react-icons/lib/fa/google-wallet.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaGoogleWallet extends React.Component { } +declare class FaGoogleWallet extends React.Component { } +export = FaGoogleWallet; diff --git a/types/react-icons/lib/fa/google.d.ts b/types/react-icons/lib/fa/google.d.ts index 3879f1c233..4318a2f68c 100644 --- a/types/react-icons/lib/fa/google.d.ts +++ b/types/react-icons/lib/fa/google.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaGoogle extends React.Component { } +declare class FaGoogle extends React.Component { } +export = FaGoogle; diff --git a/types/react-icons/lib/fa/graduation-cap.d.ts b/types/react-icons/lib/fa/graduation-cap.d.ts index 5c489d1118..daafb2481f 100644 --- a/types/react-icons/lib/fa/graduation-cap.d.ts +++ b/types/react-icons/lib/fa/graduation-cap.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaGraduationCap extends React.Component { } +declare class FaGraduationCap extends React.Component { } +export = FaGraduationCap; diff --git a/types/react-icons/lib/fa/group.d.ts b/types/react-icons/lib/fa/group.d.ts index 554bfb5fe6..9dbd8004a0 100644 --- a/types/react-icons/lib/fa/group.d.ts +++ b/types/react-icons/lib/fa/group.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaGroup extends React.Component { } +declare class FaGroup extends React.Component { } +export = FaGroup; diff --git a/types/react-icons/lib/fa/h-square.d.ts b/types/react-icons/lib/fa/h-square.d.ts index 0269ea9ebf..1f83d2fe5c 100644 --- a/types/react-icons/lib/fa/h-square.d.ts +++ b/types/react-icons/lib/fa/h-square.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaHSquare extends React.Component { } +declare class FaHSquare extends React.Component { } +export = FaHSquare; diff --git a/types/react-icons/lib/fa/hacker-news.d.ts b/types/react-icons/lib/fa/hacker-news.d.ts index 70ce441a26..fe36aed2e0 100644 --- a/types/react-icons/lib/fa/hacker-news.d.ts +++ b/types/react-icons/lib/fa/hacker-news.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaHackerNews extends React.Component { } +declare class FaHackerNews extends React.Component { } +export = FaHackerNews; diff --git a/types/react-icons/lib/fa/hand-grab-o.d.ts b/types/react-icons/lib/fa/hand-grab-o.d.ts index 44d508b041..d814d66263 100644 --- a/types/react-icons/lib/fa/hand-grab-o.d.ts +++ b/types/react-icons/lib/fa/hand-grab-o.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaHandGrabO extends React.Component { } +declare class FaHandGrabO extends React.Component { } +export = FaHandGrabO; diff --git a/types/react-icons/lib/fa/hand-lizard-o.d.ts b/types/react-icons/lib/fa/hand-lizard-o.d.ts index 633375b976..7e239112be 100644 --- a/types/react-icons/lib/fa/hand-lizard-o.d.ts +++ b/types/react-icons/lib/fa/hand-lizard-o.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaHandLizardO extends React.Component { } +declare class FaHandLizardO extends React.Component { } +export = FaHandLizardO; diff --git a/types/react-icons/lib/fa/hand-o-down.d.ts b/types/react-icons/lib/fa/hand-o-down.d.ts index d2a8580c81..1f2308b32e 100644 --- a/types/react-icons/lib/fa/hand-o-down.d.ts +++ b/types/react-icons/lib/fa/hand-o-down.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaHandODown extends React.Component { } +declare class FaHandODown extends React.Component { } +export = FaHandODown; diff --git a/types/react-icons/lib/fa/hand-o-left.d.ts b/types/react-icons/lib/fa/hand-o-left.d.ts index ffce9da58b..6f6dd87b13 100644 --- a/types/react-icons/lib/fa/hand-o-left.d.ts +++ b/types/react-icons/lib/fa/hand-o-left.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaHandOLeft extends React.Component { } +declare class FaHandOLeft extends React.Component { } +export = FaHandOLeft; diff --git a/types/react-icons/lib/fa/hand-o-right.d.ts b/types/react-icons/lib/fa/hand-o-right.d.ts index 4cc734bfe4..968a22b1db 100644 --- a/types/react-icons/lib/fa/hand-o-right.d.ts +++ b/types/react-icons/lib/fa/hand-o-right.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaHandORight extends React.Component { } +declare class FaHandORight extends React.Component { } +export = FaHandORight; diff --git a/types/react-icons/lib/fa/hand-o-up.d.ts b/types/react-icons/lib/fa/hand-o-up.d.ts index 4c108e1765..38b891f8bc 100644 --- a/types/react-icons/lib/fa/hand-o-up.d.ts +++ b/types/react-icons/lib/fa/hand-o-up.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaHandOUp extends React.Component { } +declare class FaHandOUp extends React.Component { } +export = FaHandOUp; diff --git a/types/react-icons/lib/fa/hand-paper-o.d.ts b/types/react-icons/lib/fa/hand-paper-o.d.ts index 634685b3ba..93dc962baf 100644 --- a/types/react-icons/lib/fa/hand-paper-o.d.ts +++ b/types/react-icons/lib/fa/hand-paper-o.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaHandPaperO extends React.Component { } +declare class FaHandPaperO extends React.Component { } +export = FaHandPaperO; diff --git a/types/react-icons/lib/fa/hand-peace-o.d.ts b/types/react-icons/lib/fa/hand-peace-o.d.ts index f5f4c083e0..10e5aff762 100644 --- a/types/react-icons/lib/fa/hand-peace-o.d.ts +++ b/types/react-icons/lib/fa/hand-peace-o.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaHandPeaceO extends React.Component { } +declare class FaHandPeaceO extends React.Component { } +export = FaHandPeaceO; diff --git a/types/react-icons/lib/fa/hand-pointer-o.d.ts b/types/react-icons/lib/fa/hand-pointer-o.d.ts index 98d03e1641..5ab960e769 100644 --- a/types/react-icons/lib/fa/hand-pointer-o.d.ts +++ b/types/react-icons/lib/fa/hand-pointer-o.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaHandPointerO extends React.Component { } +declare class FaHandPointerO extends React.Component { } +export = FaHandPointerO; diff --git a/types/react-icons/lib/fa/hand-scissors-o.d.ts b/types/react-icons/lib/fa/hand-scissors-o.d.ts index 8f95ce7463..18e8fda827 100644 --- a/types/react-icons/lib/fa/hand-scissors-o.d.ts +++ b/types/react-icons/lib/fa/hand-scissors-o.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaHandScissorsO extends React.Component { } +declare class FaHandScissorsO extends React.Component { } +export = FaHandScissorsO; diff --git a/types/react-icons/lib/fa/hand-spock-o.d.ts b/types/react-icons/lib/fa/hand-spock-o.d.ts index e1ae444a79..7c52267033 100644 --- a/types/react-icons/lib/fa/hand-spock-o.d.ts +++ b/types/react-icons/lib/fa/hand-spock-o.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaHandSpockO extends React.Component { } +declare class FaHandSpockO extends React.Component { } +export = FaHandSpockO; diff --git a/types/react-icons/lib/fa/hashtag.d.ts b/types/react-icons/lib/fa/hashtag.d.ts index c7c9be99a9..f992235c21 100644 --- a/types/react-icons/lib/fa/hashtag.d.ts +++ b/types/react-icons/lib/fa/hashtag.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaHashtag extends React.Component { } +declare class FaHashtag extends React.Component { } +export = FaHashtag; diff --git a/types/react-icons/lib/fa/hdd-o.d.ts b/types/react-icons/lib/fa/hdd-o.d.ts index 1a04908493..e936e29487 100644 --- a/types/react-icons/lib/fa/hdd-o.d.ts +++ b/types/react-icons/lib/fa/hdd-o.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaHddO extends React.Component { } +declare class FaHddO extends React.Component { } +export = FaHddO; diff --git a/types/react-icons/lib/fa/header.d.ts b/types/react-icons/lib/fa/header.d.ts index 6f2e5d9137..386ceda142 100644 --- a/types/react-icons/lib/fa/header.d.ts +++ b/types/react-icons/lib/fa/header.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaHeader extends React.Component { } +declare class FaHeader extends React.Component { } +export = FaHeader; diff --git a/types/react-icons/lib/fa/headphones.d.ts b/types/react-icons/lib/fa/headphones.d.ts index 9e6b4dc42a..b829255129 100644 --- a/types/react-icons/lib/fa/headphones.d.ts +++ b/types/react-icons/lib/fa/headphones.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaHeadphones extends React.Component { } +declare class FaHeadphones extends React.Component { } +export = FaHeadphones; diff --git a/types/react-icons/lib/fa/heart-o.d.ts b/types/react-icons/lib/fa/heart-o.d.ts index e965f0636c..eba3e6b5cc 100644 --- a/types/react-icons/lib/fa/heart-o.d.ts +++ b/types/react-icons/lib/fa/heart-o.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaHeartO extends React.Component { } +declare class FaHeartO extends React.Component { } +export = FaHeartO; diff --git a/types/react-icons/lib/fa/heart.d.ts b/types/react-icons/lib/fa/heart.d.ts index 495c26a5b3..57d8acf1b2 100644 --- a/types/react-icons/lib/fa/heart.d.ts +++ b/types/react-icons/lib/fa/heart.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaHeart extends React.Component { } +declare class FaHeart extends React.Component { } +export = FaHeart; diff --git a/types/react-icons/lib/fa/heartbeat.d.ts b/types/react-icons/lib/fa/heartbeat.d.ts index 74d47f94b1..706f8826c9 100644 --- a/types/react-icons/lib/fa/heartbeat.d.ts +++ b/types/react-icons/lib/fa/heartbeat.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaHeartbeat extends React.Component { } +declare class FaHeartbeat extends React.Component { } +export = FaHeartbeat; diff --git a/types/react-icons/lib/fa/history.d.ts b/types/react-icons/lib/fa/history.d.ts index 8af7a784c9..55885501cf 100644 --- a/types/react-icons/lib/fa/history.d.ts +++ b/types/react-icons/lib/fa/history.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaHistory extends React.Component { } +declare class FaHistory extends React.Component { } +export = FaHistory; diff --git a/types/react-icons/lib/fa/home.d.ts b/types/react-icons/lib/fa/home.d.ts index 404898ad6c..43b95643c9 100644 --- a/types/react-icons/lib/fa/home.d.ts +++ b/types/react-icons/lib/fa/home.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaHome extends React.Component { } +declare class FaHome extends React.Component { } +export = FaHome; diff --git a/types/react-icons/lib/fa/hospital-o.d.ts b/types/react-icons/lib/fa/hospital-o.d.ts index 1016140f7a..8b73adbf4a 100644 --- a/types/react-icons/lib/fa/hospital-o.d.ts +++ b/types/react-icons/lib/fa/hospital-o.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaHospitalO extends React.Component { } +declare class FaHospitalO extends React.Component { } +export = FaHospitalO; diff --git a/types/react-icons/lib/fa/hourglass-1.d.ts b/types/react-icons/lib/fa/hourglass-1.d.ts index 8ec87f4877..df93b9799e 100644 --- a/types/react-icons/lib/fa/hourglass-1.d.ts +++ b/types/react-icons/lib/fa/hourglass-1.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaHourglass1 extends React.Component { } +declare class FaHourglass1 extends React.Component { } +export = FaHourglass1; diff --git a/types/react-icons/lib/fa/hourglass-2.d.ts b/types/react-icons/lib/fa/hourglass-2.d.ts index 600933c5e6..674576be63 100644 --- a/types/react-icons/lib/fa/hourglass-2.d.ts +++ b/types/react-icons/lib/fa/hourglass-2.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaHourglass2 extends React.Component { } +declare class FaHourglass2 extends React.Component { } +export = FaHourglass2; diff --git a/types/react-icons/lib/fa/hourglass-3.d.ts b/types/react-icons/lib/fa/hourglass-3.d.ts index 31e8de7b99..eb3fa708bc 100644 --- a/types/react-icons/lib/fa/hourglass-3.d.ts +++ b/types/react-icons/lib/fa/hourglass-3.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaHourglass3 extends React.Component { } +declare class FaHourglass3 extends React.Component { } +export = FaHourglass3; diff --git a/types/react-icons/lib/fa/hourglass-o.d.ts b/types/react-icons/lib/fa/hourglass-o.d.ts index 5f2962e102..4052d297c9 100644 --- a/types/react-icons/lib/fa/hourglass-o.d.ts +++ b/types/react-icons/lib/fa/hourglass-o.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaHourglassO extends React.Component { } +declare class FaHourglassO extends React.Component { } +export = FaHourglassO; diff --git a/types/react-icons/lib/fa/hourglass.d.ts b/types/react-icons/lib/fa/hourglass.d.ts index 8bdcd7c8db..2e05acd88c 100644 --- a/types/react-icons/lib/fa/hourglass.d.ts +++ b/types/react-icons/lib/fa/hourglass.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaHourglass extends React.Component { } +declare class FaHourglass extends React.Component { } +export = FaHourglass; diff --git a/types/react-icons/lib/fa/houzz.d.ts b/types/react-icons/lib/fa/houzz.d.ts index ec4c55aecb..68e7283cc2 100644 --- a/types/react-icons/lib/fa/houzz.d.ts +++ b/types/react-icons/lib/fa/houzz.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaHouzz extends React.Component { } +declare class FaHouzz extends React.Component { } +export = FaHouzz; diff --git a/types/react-icons/lib/fa/html5.d.ts b/types/react-icons/lib/fa/html5.d.ts index 3b8bfcacbe..4829905b68 100644 --- a/types/react-icons/lib/fa/html5.d.ts +++ b/types/react-icons/lib/fa/html5.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaHtml5 extends React.Component { } +declare class FaHtml5 extends React.Component { } +export = FaHtml5; diff --git a/types/react-icons/lib/fa/i-cursor.d.ts b/types/react-icons/lib/fa/i-cursor.d.ts index 77e0964814..fcbe8c366d 100644 --- a/types/react-icons/lib/fa/i-cursor.d.ts +++ b/types/react-icons/lib/fa/i-cursor.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaICursor extends React.Component { } +declare class FaICursor extends React.Component { } +export = FaICursor; diff --git a/types/react-icons/lib/fa/ils.d.ts b/types/react-icons/lib/fa/ils.d.ts index 966e8bb384..046d06284a 100644 --- a/types/react-icons/lib/fa/ils.d.ts +++ b/types/react-icons/lib/fa/ils.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaIls extends React.Component { } +declare class FaIls extends React.Component { } +export = FaIls; diff --git a/types/react-icons/lib/fa/image.d.ts b/types/react-icons/lib/fa/image.d.ts index 69e435b56a..72edc4be49 100644 --- a/types/react-icons/lib/fa/image.d.ts +++ b/types/react-icons/lib/fa/image.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaImage extends React.Component { } +declare class FaImage extends React.Component { } +export = FaImage; diff --git a/types/react-icons/lib/fa/inbox.d.ts b/types/react-icons/lib/fa/inbox.d.ts index 401aba5577..272e6a209c 100644 --- a/types/react-icons/lib/fa/inbox.d.ts +++ b/types/react-icons/lib/fa/inbox.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaInbox extends React.Component { } +declare class FaInbox extends React.Component { } +export = FaInbox; diff --git a/types/react-icons/lib/fa/indent.d.ts b/types/react-icons/lib/fa/indent.d.ts index c3022d3fc3..2829ca18c3 100644 --- a/types/react-icons/lib/fa/indent.d.ts +++ b/types/react-icons/lib/fa/indent.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaIndent extends React.Component { } +declare class FaIndent extends React.Component { } +export = FaIndent; diff --git a/types/react-icons/lib/fa/index.d.ts b/types/react-icons/lib/fa/index.d.ts index 04750fc303..073a1797a9 100644 --- a/types/react-icons/lib/fa/index.d.ts +++ b/types/react-icons/lib/fa/index.d.ts @@ -1,628 +1,628 @@ -export { default as Fa500px } from "./500px"; -export { default as FaAdjust } from "./adjust"; -export { default as FaAdn } from "./adn"; -export { default as FaAlignCenter } from "./align-center"; -export { default as FaAlignJustify } from "./align-justify"; -export { default as FaAlignLeft } from "./align-left"; -export { default as FaAlignRight } from "./align-right"; -export { default as FaAmazon } from "./amazon"; -export { default as FaAmbulance } from "./ambulance"; -export { default as FaAmericanSignLanguageInterpreting } from "./american-sign-language-interpreting"; -export { default as FaAnchor } from "./anchor"; -export { default as FaAndroid } from "./android"; -export { default as FaAngellist } from "./angellist"; -export { default as FaAngleDoubleDown } from "./angle-double-down"; -export { default as FaAngleDoubleLeft } from "./angle-double-left"; -export { default as FaAngleDoubleRight } from "./angle-double-right"; -export { default as FaAngleDoubleUp } from "./angle-double-up"; -export { default as FaAngleDown } from "./angle-down"; -export { default as FaAngleLeft } from "./angle-left"; -export { default as FaAngleRight } from "./angle-right"; -export { default as FaAngleUp } from "./angle-up"; -export { default as FaApple } from "./apple"; -export { default as FaArchive } from "./archive"; -export { default as FaAreaChart } from "./area-chart"; -export { default as FaArrowCircleDown } from "./arrow-circle-down"; -export { default as FaArrowCircleLeft } from "./arrow-circle-left"; -export { default as FaArrowCircleODown } from "./arrow-circle-o-down"; -export { default as FaArrowCircleOLeft } from "./arrow-circle-o-left"; -export { default as FaArrowCircleORight } from "./arrow-circle-o-right"; -export { default as FaArrowCircleOUp } from "./arrow-circle-o-up"; -export { default as FaArrowCircleRight } from "./arrow-circle-right"; -export { default as FaArrowCircleUp } from "./arrow-circle-up"; -export { default as FaArrowDown } from "./arrow-down"; -export { default as FaArrowLeft } from "./arrow-left"; -export { default as FaArrowRight } from "./arrow-right"; -export { default as FaArrowUp } from "./arrow-up"; -export { default as FaArrowsAlt } from "./arrows-alt"; -export { default as FaArrowsH } from "./arrows-h"; -export { default as FaArrowsV } from "./arrows-v"; -export { default as FaArrows } from "./arrows"; -export { default as FaAssistiveListeningSystems } from "./assistive-listening-systems"; -export { default as FaAsterisk } from "./asterisk"; -export { default as FaAt } from "./at"; -export { default as FaAudioDescription } from "./audio-description"; -export { default as FaAutomobile } from "./automobile"; -export { default as FaBackward } from "./backward"; -export { default as FaBalanceScale } from "./balance-scale"; -export { default as FaBan } from "./ban"; -export { default as FaBank } from "./bank"; -export { default as FaBarChart } from "./bar-chart"; -export { default as FaBarcode } from "./barcode"; -export { default as FaBars } from "./bars"; -export { default as FaBattery0 } from "./battery-0"; -export { default as FaBattery1 } from "./battery-1"; -export { default as FaBattery2 } from "./battery-2"; -export { default as FaBattery3 } from "./battery-3"; -export { default as FaBattery4 } from "./battery-4"; -export { default as FaBed } from "./bed"; -export { default as FaBeer } from "./beer"; -export { default as FaBehanceSquare } from "./behance-square"; -export { default as FaBehance } from "./behance"; -export { default as FaBellO } from "./bell-o"; -export { default as FaBellSlashO } from "./bell-slash-o"; -export { default as FaBellSlash } from "./bell-slash"; -export { default as FaBell } from "./bell"; -export { default as FaBicycle } from "./bicycle"; -export { default as FaBinoculars } from "./binoculars"; -export { default as FaBirthdayCake } from "./birthday-cake"; -export { default as FaBitbucketSquare } from "./bitbucket-square"; -export { default as FaBitbucket } from "./bitbucket"; -export { default as FaBitcoin } from "./bitcoin"; -export { default as FaBlackTie } from "./black-tie"; -export { default as FaBlind } from "./blind"; -export { default as FaBluetoothB } from "./bluetooth-b"; -export { default as FaBluetooth } from "./bluetooth"; -export { default as FaBold } from "./bold"; -export { default as FaBolt } from "./bolt"; -export { default as FaBomb } from "./bomb"; -export { default as FaBook } from "./book"; -export { default as FaBookmarkO } from "./bookmark-o"; -export { default as FaBookmark } from "./bookmark"; -export { default as FaBraille } from "./braille"; -export { default as FaBriefcase } from "./briefcase"; -export { default as FaBug } from "./bug"; -export { default as FaBuildingO } from "./building-o"; -export { default as FaBuilding } from "./building"; -export { default as FaBullhorn } from "./bullhorn"; -export { default as FaBullseye } from "./bullseye"; -export { default as FaBus } from "./bus"; -export { default as FaBuysellads } from "./buysellads"; -export { default as FaCab } from "./cab"; -export { default as FaCalculator } from "./calculator"; -export { default as FaCalendarCheckO } from "./calendar-check-o"; -export { default as FaCalendarMinusO } from "./calendar-minus-o"; -export { default as FaCalendarO } from "./calendar-o"; -export { default as FaCalendarPlusO } from "./calendar-plus-o"; -export { default as FaCalendarTimesO } from "./calendar-times-o"; -export { default as FaCalendar } from "./calendar"; -export { default as FaCameraRetro } from "./camera-retro"; -export { default as FaCamera } from "./camera"; -export { default as FaCaretDown } from "./caret-down"; -export { default as FaCaretLeft } from "./caret-left"; -export { default as FaCaretRight } from "./caret-right"; -export { default as FaCaretSquareODown } from "./caret-square-o-down"; -export { default as FaCaretSquareOLeft } from "./caret-square-o-left"; -export { default as FaCaretSquareORight } from "./caret-square-o-right"; -export { default as FaCaretSquareOUp } from "./caret-square-o-up"; -export { default as FaCaretUp } from "./caret-up"; -export { default as FaCartArrowDown } from "./cart-arrow-down"; -export { default as FaCartPlus } from "./cart-plus"; -export { default as FaCcAmex } from "./cc-amex"; -export { default as FaCcDinersClub } from "./cc-diners-club"; -export { default as FaCcDiscover } from "./cc-discover"; -export { default as FaCcJcb } from "./cc-jcb"; -export { default as FaCcMastercard } from "./cc-mastercard"; -export { default as FaCcPaypal } from "./cc-paypal"; -export { default as FaCcStripe } from "./cc-stripe"; -export { default as FaCcVisa } from "./cc-visa"; -export { default as FaCc } from "./cc"; -export { default as FaCertificate } from "./certificate"; -export { default as FaChainBroken } from "./chain-broken"; -export { default as FaChain } from "./chain"; -export { default as FaCheckCircleO } from "./check-circle-o"; -export { default as FaCheckCircle } from "./check-circle"; -export { default as FaCheckSquareO } from "./check-square-o"; -export { default as FaCheckSquare } from "./check-square"; -export { default as FaCheck } from "./check"; -export { default as FaChevronCircleDown } from "./chevron-circle-down"; -export { default as FaChevronCircleLeft } from "./chevron-circle-left"; -export { default as FaChevronCircleRight } from "./chevron-circle-right"; -export { default as FaChevronCircleUp } from "./chevron-circle-up"; -export { default as FaChevronDown } from "./chevron-down"; -export { default as FaChevronLeft } from "./chevron-left"; -export { default as FaChevronRight } from "./chevron-right"; -export { default as FaChevronUp } from "./chevron-up"; -export { default as FaChild } from "./child"; -export { default as FaChrome } from "./chrome"; -export { default as FaCircleONotch } from "./circle-o-notch"; -export { default as FaCircleO } from "./circle-o"; -export { default as FaCircleThin } from "./circle-thin"; -export { default as FaCircle } from "./circle"; -export { default as FaClipboard } from "./clipboard"; -export { default as FaClockO } from "./clock-o"; -export { default as FaClone } from "./clone"; -export { default as FaClose } from "./close"; -export { default as FaCloudDownload } from "./cloud-download"; -export { default as FaCloudUpload } from "./cloud-upload"; -export { default as FaCloud } from "./cloud"; -export { default as FaCny } from "./cny"; -export { default as FaCodeFork } from "./code-fork"; -export { default as FaCode } from "./code"; -export { default as FaCodepen } from "./codepen"; -export { default as FaCodiepie } from "./codiepie"; -export { default as FaCoffee } from "./coffee"; -export { default as FaCog } from "./cog"; -export { default as FaCogs } from "./cogs"; -export { default as FaColumns } from "./columns"; -export { default as FaCommentO } from "./comment-o"; -export { default as FaComment } from "./comment"; -export { default as FaCommentingO } from "./commenting-o"; -export { default as FaCommenting } from "./commenting"; -export { default as FaCommentsO } from "./comments-o"; -export { default as FaComments } from "./comments"; -export { default as FaCompass } from "./compass"; -export { default as FaCompress } from "./compress"; -export { default as FaConnectdevelop } from "./connectdevelop"; -export { default as FaContao } from "./contao"; -export { default as FaCopy } from "./copy"; -export { default as FaCopyright } from "./copyright"; -export { default as FaCreativeCommons } from "./creative-commons"; -export { default as FaCreditCardAlt } from "./credit-card-alt"; -export { default as FaCreditCard } from "./credit-card"; -export { default as FaCrop } from "./crop"; -export { default as FaCrosshairs } from "./crosshairs"; -export { default as FaCss3 } from "./css3"; -export { default as FaCube } from "./cube"; -export { default as FaCubes } from "./cubes"; -export { default as FaCut } from "./cut"; -export { default as FaCutlery } from "./cutlery"; -export { default as FaDashboard } from "./dashboard"; -export { default as FaDashcube } from "./dashcube"; -export { default as FaDatabase } from "./database"; -export { default as FaDeaf } from "./deaf"; -export { default as FaDedent } from "./dedent"; -export { default as FaDelicious } from "./delicious"; -export { default as FaDesktop } from "./desktop"; -export { default as FaDeviantart } from "./deviantart"; -export { default as FaDiamond } from "./diamond"; -export { default as FaDigg } from "./digg"; -export { default as FaDollar } from "./dollar"; -export { default as FaDotCircleO } from "./dot-circle-o"; -export { default as FaDownload } from "./download"; -export { default as FaDribbble } from "./dribbble"; -export { default as FaDropbox } from "./dropbox"; -export { default as FaDrupal } from "./drupal"; -export { default as FaEdge } from "./edge"; -export { default as FaEdit } from "./edit"; -export { default as FaEject } from "./eject"; -export { default as FaEllipsisH } from "./ellipsis-h"; -export { default as FaEllipsisV } from "./ellipsis-v"; -export { default as FaEmpire } from "./empire"; -export { default as FaEnvelopeO } from "./envelope-o"; -export { default as FaEnvelopeSquare } from "./envelope-square"; -export { default as FaEnvelope } from "./envelope"; -export { default as FaEnvira } from "./envira"; -export { default as FaEraser } from "./eraser"; -export { default as FaEur } from "./eur"; -export { default as FaExchange } from "./exchange"; -export { default as FaExclamationCircle } from "./exclamation-circle"; -export { default as FaExclamationTriangle } from "./exclamation-triangle"; -export { default as FaExclamation } from "./exclamation"; -export { default as FaExpand } from "./expand"; -export { default as FaExpeditedssl } from "./expeditedssl"; -export { default as FaExternalLinkSquare } from "./external-link-square"; -export { default as FaExternalLink } from "./external-link"; -export { default as FaEyeSlash } from "./eye-slash"; -export { default as FaEye } from "./eye"; -export { default as FaEyedropper } from "./eyedropper"; -export { default as FaFacebookOfficial } from "./facebook-official"; -export { default as FaFacebookSquare } from "./facebook-square"; -export { default as FaFacebook } from "./facebook"; -export { default as FaFastBackward } from "./fast-backward"; -export { default as FaFastForward } from "./fast-forward"; -export { default as FaFax } from "./fax"; -export { default as FaFeed } from "./feed"; -export { default as FaFemale } from "./female"; -export { default as FaFighterJet } from "./fighter-jet"; -export { default as FaFileArchiveO } from "./file-archive-o"; -export { default as FaFileAudioO } from "./file-audio-o"; -export { default as FaFileCodeO } from "./file-code-o"; -export { default as FaFileExcelO } from "./file-excel-o"; -export { default as FaFileImageO } from "./file-image-o"; -export { default as FaFileMovieO } from "./file-movie-o"; -export { default as FaFileO } from "./file-o"; -export { default as FaFilePdfO } from "./file-pdf-o"; -export { default as FaFilePowerpointO } from "./file-powerpoint-o"; -export { default as FaFileTextO } from "./file-text-o"; -export { default as FaFileText } from "./file-text"; -export { default as FaFileWordO } from "./file-word-o"; -export { default as FaFile } from "./file"; -export { default as FaFilm } from "./film"; -export { default as FaFilter } from "./filter"; -export { default as FaFireExtinguisher } from "./fire-extinguisher"; -export { default as FaFire } from "./fire"; -export { default as FaFirefox } from "./firefox"; -export { default as FaFlagCheckered } from "./flag-checkered"; -export { default as FaFlagO } from "./flag-o"; -export { default as FaFlag } from "./flag"; -export { default as FaFlask } from "./flask"; -export { default as FaFlickr } from "./flickr"; -export { default as FaFloppyO } from "./floppy-o"; -export { default as FaFolderO } from "./folder-o"; -export { default as FaFolderOpenO } from "./folder-open-o"; -export { default as FaFolderOpen } from "./folder-open"; -export { default as FaFolder } from "./folder"; -export { default as FaFont } from "./font"; -export { default as FaFonticons } from "./fonticons"; -export { default as FaFortAwesome } from "./fort-awesome"; -export { default as FaForumbee } from "./forumbee"; -export { default as FaForward } from "./forward"; -export { default as FaFoursquare } from "./foursquare"; -export { default as FaFrownO } from "./frown-o"; -export { default as FaFutbolO } from "./futbol-o"; -export { default as FaGamepad } from "./gamepad"; -export { default as FaGavel } from "./gavel"; -export { default as FaGbp } from "./gbp"; -export { default as FaGenderless } from "./genderless"; -export { default as FaGetPocket } from "./get-pocket"; -export { default as FaGgCircle } from "./gg-circle"; -export { default as FaGg } from "./gg"; -export { default as FaGift } from "./gift"; -export { default as FaGitSquare } from "./git-square"; -export { default as FaGit } from "./git"; -export { default as FaGithubAlt } from "./github-alt"; -export { default as FaGithubSquare } from "./github-square"; -export { default as FaGithub } from "./github"; -export { default as FaGitlab } from "./gitlab"; -export { default as FaGittip } from "./gittip"; -export { default as FaGlass } from "./glass"; -export { default as FaGlideG } from "./glide-g"; -export { default as FaGlide } from "./glide"; -export { default as FaGlobe } from "./globe"; -export { default as FaGooglePlusSquare } from "./google-plus-square"; -export { default as FaGooglePlus } from "./google-plus"; -export { default as FaGoogleWallet } from "./google-wallet"; -export { default as FaGoogle } from "./google"; -export { default as FaGraduationCap } from "./graduation-cap"; -export { default as FaGroup } from "./group"; -export { default as FaHSquare } from "./h-square"; -export { default as FaHackerNews } from "./hacker-news"; -export { default as FaHandGrabO } from "./hand-grab-o"; -export { default as FaHandLizardO } from "./hand-lizard-o"; -export { default as FaHandODown } from "./hand-o-down"; -export { default as FaHandOLeft } from "./hand-o-left"; -export { default as FaHandORight } from "./hand-o-right"; -export { default as FaHandOUp } from "./hand-o-up"; -export { default as FaHandPaperO } from "./hand-paper-o"; -export { default as FaHandPeaceO } from "./hand-peace-o"; -export { default as FaHandPointerO } from "./hand-pointer-o"; -export { default as FaHandScissorsO } from "./hand-scissors-o"; -export { default as FaHandSpockO } from "./hand-spock-o"; -export { default as FaHashtag } from "./hashtag"; -export { default as FaHddO } from "./hdd-o"; -export { default as FaHeader } from "./header"; -export { default as FaHeadphones } from "./headphones"; -export { default as FaHeartO } from "./heart-o"; -export { default as FaHeart } from "./heart"; -export { default as FaHeartbeat } from "./heartbeat"; -export { default as FaHistory } from "./history"; -export { default as FaHome } from "./home"; -export { default as FaHospitalO } from "./hospital-o"; -export { default as FaHourglass1 } from "./hourglass-1"; -export { default as FaHourglass2 } from "./hourglass-2"; -export { default as FaHourglass3 } from "./hourglass-3"; -export { default as FaHourglassO } from "./hourglass-o"; -export { default as FaHourglass } from "./hourglass"; -export { default as FaHouzz } from "./houzz"; -export { default as FaHtml5 } from "./html5"; -export { default as FaICursor } from "./i-cursor"; -export { default as FaIls } from "./ils"; -export { default as FaImage } from "./image"; -export { default as FaInbox } from "./inbox"; -export { default as FaIndent } from "./indent"; -export { default as FaIndustry } from "./industry"; -export { default as FaInfoCircle } from "./info-circle"; -export { default as FaInfo } from "./info"; -export { default as FaInr } from "./inr"; -export { default as FaInstagram } from "./instagram"; -export { default as FaInternetExplorer } from "./internet-explorer"; -export { default as FaIntersex } from "./intersex"; -export { default as FaIoxhost } from "./ioxhost"; -export { default as FaItalic } from "./italic"; -export { default as FaJoomla } from "./joomla"; -export { default as FaJsfiddle } from "./jsfiddle"; -export { default as FaKey } from "./key"; -export { default as FaKeyboardO } from "./keyboard-o"; -export { default as FaKrw } from "./krw"; -export { default as FaLanguage } from "./language"; -export { default as FaLaptop } from "./laptop"; -export { default as FaLastfmSquare } from "./lastfm-square"; -export { default as FaLastfm } from "./lastfm"; -export { default as FaLeaf } from "./leaf"; -export { default as FaLeanpub } from "./leanpub"; -export { default as FaLemonO } from "./lemon-o"; -export { default as FaLevelDown } from "./level-down"; -export { default as FaLevelUp } from "./level-up"; -export { default as FaLifeBouy } from "./life-bouy"; -export { default as FaLightbulbO } from "./lightbulb-o"; -export { default as FaLineChart } from "./line-chart"; -export { default as FaLinkedinSquare } from "./linkedin-square"; -export { default as FaLinkedin } from "./linkedin"; -export { default as FaLinux } from "./linux"; -export { default as FaListAlt } from "./list-alt"; -export { default as FaListOl } from "./list-ol"; -export { default as FaListUl } from "./list-ul"; -export { default as FaList } from "./list"; -export { default as FaLocationArrow } from "./location-arrow"; -export { default as FaLock } from "./lock"; -export { default as FaLongArrowDown } from "./long-arrow-down"; -export { default as FaLongArrowLeft } from "./long-arrow-left"; -export { default as FaLongArrowRight } from "./long-arrow-right"; -export { default as FaLongArrowUp } from "./long-arrow-up"; -export { default as FaLowVision } from "./low-vision"; -export { default as FaMagic } from "./magic"; -export { default as FaMagnet } from "./magnet"; -export { default as FaMailForward } from "./mail-forward"; -export { default as FaMailReplyAll } from "./mail-reply-all"; -export { default as FaMailReply } from "./mail-reply"; -export { default as FaMale } from "./male"; -export { default as FaMapMarker } from "./map-marker"; -export { default as FaMapO } from "./map-o"; -export { default as FaMapPin } from "./map-pin"; -export { default as FaMapSigns } from "./map-signs"; -export { default as FaMap } from "./map"; -export { default as FaMarsDouble } from "./mars-double"; -export { default as FaMarsStrokeH } from "./mars-stroke-h"; -export { default as FaMarsStrokeV } from "./mars-stroke-v"; -export { default as FaMarsStroke } from "./mars-stroke"; -export { default as FaMars } from "./mars"; -export { default as FaMaxcdn } from "./maxcdn"; -export { default as FaMeanpath } from "./meanpath"; -export { default as FaMedium } from "./medium"; -export { default as FaMedkit } from "./medkit"; -export { default as FaMehO } from "./meh-o"; -export { default as FaMercury } from "./mercury"; -export { default as FaMicrophoneSlash } from "./microphone-slash"; -export { default as FaMicrophone } from "./microphone"; -export { default as FaMinusCircle } from "./minus-circle"; -export { default as FaMinusSquareO } from "./minus-square-o"; -export { default as FaMinusSquare } from "./minus-square"; -export { default as FaMinus } from "./minus"; -export { default as FaMixcloud } from "./mixcloud"; -export { default as FaMobile } from "./mobile"; -export { default as FaModx } from "./modx"; -export { default as FaMoney } from "./money"; -export { default as FaMoonO } from "./moon-o"; -export { default as FaMotorcycle } from "./motorcycle"; -export { default as FaMousePointer } from "./mouse-pointer"; -export { default as FaMusic } from "./music"; -export { default as FaNeuter } from "./neuter"; -export { default as FaNewspaperO } from "./newspaper-o"; -export { default as FaObjectGroup } from "./object-group"; -export { default as FaObjectUngroup } from "./object-ungroup"; -export { default as FaOdnoklassnikiSquare } from "./odnoklassniki-square"; -export { default as FaOdnoklassniki } from "./odnoklassniki"; -export { default as FaOpencart } from "./opencart"; -export { default as FaOpenid } from "./openid"; -export { default as FaOpera } from "./opera"; -export { default as FaOptinMonster } from "./optin-monster"; -export { default as FaPagelines } from "./pagelines"; -export { default as FaPaintBrush } from "./paint-brush"; -export { default as FaPaperPlaneO } from "./paper-plane-o"; -export { default as FaPaperPlane } from "./paper-plane"; -export { default as FaPaperclip } from "./paperclip"; -export { default as FaParagraph } from "./paragraph"; -export { default as FaPauseCircleO } from "./pause-circle-o"; -export { default as FaPauseCircle } from "./pause-circle"; -export { default as FaPause } from "./pause"; -export { default as FaPaw } from "./paw"; -export { default as FaPaypal } from "./paypal"; -export { default as FaPencilSquare } from "./pencil-square"; -export { default as FaPencil } from "./pencil"; -export { default as FaPercent } from "./percent"; -export { default as FaPhoneSquare } from "./phone-square"; -export { default as FaPhone } from "./phone"; -export { default as FaPieChart } from "./pie-chart"; -export { default as FaPiedPiperAlt } from "./pied-piper-alt"; -export { default as FaPiedPiper } from "./pied-piper"; -export { default as FaPinterestP } from "./pinterest-p"; -export { default as FaPinterestSquare } from "./pinterest-square"; -export { default as FaPinterest } from "./pinterest"; -export { default as FaPlane } from "./plane"; -export { default as FaPlayCircleO } from "./play-circle-o"; -export { default as FaPlayCircle } from "./play-circle"; -export { default as FaPlay } from "./play"; -export { default as FaPlug } from "./plug"; -export { default as FaPlusCircle } from "./plus-circle"; -export { default as FaPlusSquareO } from "./plus-square-o"; -export { default as FaPlusSquare } from "./plus-square"; -export { default as FaPlus } from "./plus"; -export { default as FaPowerOff } from "./power-off"; -export { default as FaPrint } from "./print"; -export { default as FaProductHunt } from "./product-hunt"; -export { default as FaPuzzlePiece } from "./puzzle-piece"; -export { default as FaQq } from "./qq"; -export { default as FaQrcode } from "./qrcode"; -export { default as FaQuestionCircleO } from "./question-circle-o"; -export { default as FaQuestionCircle } from "./question-circle"; -export { default as FaQuestion } from "./question"; -export { default as FaQuoteLeft } from "./quote-left"; -export { default as FaQuoteRight } from "./quote-right"; -export { default as FaRa } from "./ra"; -export { default as FaRandom } from "./random"; -export { default as FaRecycle } from "./recycle"; -export { default as FaRedditAlien } from "./reddit-alien"; -export { default as FaRedditSquare } from "./reddit-square"; -export { default as FaReddit } from "./reddit"; -export { default as FaRefresh } from "./refresh"; -export { default as FaRegistered } from "./registered"; -export { default as FaRenren } from "./renren"; -export { default as FaRepeat } from "./repeat"; -export { default as FaRetweet } from "./retweet"; -export { default as FaRoad } from "./road"; -export { default as FaRocket } from "./rocket"; -export { default as FaRotateLeft } from "./rotate-left"; -export { default as FaRouble } from "./rouble"; -export { default as FaRssSquare } from "./rss-square"; -export { default as FaSafari } from "./safari"; -export { default as FaScribd } from "./scribd"; -export { default as FaSearchMinus } from "./search-minus"; -export { default as FaSearchPlus } from "./search-plus"; -export { default as FaSearch } from "./search"; -export { default as FaSellsy } from "./sellsy"; -export { default as FaServer } from "./server"; -export { default as FaShareAltSquare } from "./share-alt-square"; -export { default as FaShareAlt } from "./share-alt"; -export { default as FaShareSquareO } from "./share-square-o"; -export { default as FaShareSquare } from "./share-square"; -export { default as FaShield } from "./shield"; -export { default as FaShip } from "./ship"; -export { default as FaShirtsinbulk } from "./shirtsinbulk"; -export { default as FaShoppingBag } from "./shopping-bag"; -export { default as FaShoppingBasket } from "./shopping-basket"; -export { default as FaShoppingCart } from "./shopping-cart"; -export { default as FaSignIn } from "./sign-in"; -export { default as FaSignLanguage } from "./sign-language"; -export { default as FaSignOut } from "./sign-out"; -export { default as FaSignal } from "./signal"; -export { default as FaSimplybuilt } from "./simplybuilt"; -export { default as FaSitemap } from "./sitemap"; -export { default as FaSkyatlas } from "./skyatlas"; -export { default as FaSkype } from "./skype"; -export { default as FaSlack } from "./slack"; -export { default as FaSliders } from "./sliders"; -export { default as FaSlideshare } from "./slideshare"; -export { default as FaSmileO } from "./smile-o"; -export { default as FaSnapchatGhost } from "./snapchat-ghost"; -export { default as FaSnapchatSquare } from "./snapchat-square"; -export { default as FaSnapchat } from "./snapchat"; -export { default as FaSortAlphaAsc } from "./sort-alpha-asc"; -export { default as FaSortAlphaDesc } from "./sort-alpha-desc"; -export { default as FaSortAmountAsc } from "./sort-amount-asc"; -export { default as FaSortAmountDesc } from "./sort-amount-desc"; -export { default as FaSortAsc } from "./sort-asc"; -export { default as FaSortDesc } from "./sort-desc"; -export { default as FaSortNumericAsc } from "./sort-numeric-asc"; -export { default as FaSortNumericDesc } from "./sort-numeric-desc"; -export { default as FaSort } from "./sort"; -export { default as FaSoundcloud } from "./soundcloud"; -export { default as FaSpaceShuttle } from "./space-shuttle"; -export { default as FaSpinner } from "./spinner"; -export { default as FaSpoon } from "./spoon"; -export { default as FaSpotify } from "./spotify"; -export { default as FaSquareO } from "./square-o"; -export { default as FaSquare } from "./square"; -export { default as FaStackExchange } from "./stack-exchange"; -export { default as FaStackOverflow } from "./stack-overflow"; -export { default as FaStarHalfEmpty } from "./star-half-empty"; -export { default as FaStarHalf } from "./star-half"; -export { default as FaStarO } from "./star-o"; -export { default as FaStar } from "./star"; -export { default as FaSteamSquare } from "./steam-square"; -export { default as FaSteam } from "./steam"; -export { default as FaStepBackward } from "./step-backward"; -export { default as FaStepForward } from "./step-forward"; -export { default as FaStethoscope } from "./stethoscope"; -export { default as FaStickyNoteO } from "./sticky-note-o"; -export { default as FaStickyNote } from "./sticky-note"; -export { default as FaStopCircleO } from "./stop-circle-o"; -export { default as FaStopCircle } from "./stop-circle"; -export { default as FaStop } from "./stop"; -export { default as FaStreetView } from "./street-view"; -export { default as FaStrikethrough } from "./strikethrough"; -export { default as FaStumbleuponCircle } from "./stumbleupon-circle"; -export { default as FaStumbleupon } from "./stumbleupon"; -export { default as FaSubscript } from "./subscript"; -export { default as FaSubway } from "./subway"; -export { default as FaSuitcase } from "./suitcase"; -export { default as FaSunO } from "./sun-o"; -export { default as FaSuperscript } from "./superscript"; -export { default as FaTable } from "./table"; -export { default as FaTablet } from "./tablet"; -export { default as FaTag } from "./tag"; -export { default as FaTags } from "./tags"; -export { default as FaTasks } from "./tasks"; -export { default as FaTelevision } from "./television"; -export { default as FaTencentWeibo } from "./tencent-weibo"; -export { default as FaTerminal } from "./terminal"; -export { default as FaTextHeight } from "./text-height"; -export { default as FaTextWidth } from "./text-width"; -export { default as FaThLarge } from "./th-large"; -export { default as FaThList } from "./th-list"; -export { default as FaTh } from "./th"; -export { default as FaThumbTack } from "./thumb-tack"; -export { default as FaThumbsDown } from "./thumbs-down"; -export { default as FaThumbsODown } from "./thumbs-o-down"; -export { default as FaThumbsOUp } from "./thumbs-o-up"; -export { default as FaThumbsUp } from "./thumbs-up"; -export { default as FaTicket } from "./ticket"; -export { default as FaTimesCircleO } from "./times-circle-o"; -export { default as FaTimesCircle } from "./times-circle"; -export { default as FaTint } from "./tint"; -export { default as FaToggleOff } from "./toggle-off"; -export { default as FaToggleOn } from "./toggle-on"; -export { default as FaTrademark } from "./trademark"; -export { default as FaTrain } from "./train"; -export { default as FaTransgenderAlt } from "./transgender-alt"; -export { default as FaTrashO } from "./trash-o"; -export { default as FaTrash } from "./trash"; -export { default as FaTree } from "./tree"; -export { default as FaTrello } from "./trello"; -export { default as FaTripadvisor } from "./tripadvisor"; -export { default as FaTrophy } from "./trophy"; -export { default as FaTruck } from "./truck"; -export { default as FaTry } from "./try"; -export { default as FaTty } from "./tty"; -export { default as FaTumblrSquare } from "./tumblr-square"; -export { default as FaTumblr } from "./tumblr"; -export { default as FaTwitch } from "./twitch"; -export { default as FaTwitterSquare } from "./twitter-square"; -export { default as FaTwitter } from "./twitter"; -export { default as FaUmbrella } from "./umbrella"; -export { default as FaUnderline } from "./underline"; -export { default as FaUniversalAccess } from "./universal-access"; -export { default as FaUnlockAlt } from "./unlock-alt"; -export { default as FaUnlock } from "./unlock"; -export { default as FaUpload } from "./upload"; -export { default as FaUsb } from "./usb"; -export { default as FaUserMd } from "./user-md"; -export { default as FaUserPlus } from "./user-plus"; -export { default as FaUserSecret } from "./user-secret"; -export { default as FaUserTimes } from "./user-times"; -export { default as FaUser } from "./user"; -export { default as FaVenusDouble } from "./venus-double"; -export { default as FaVenusMars } from "./venus-mars"; -export { default as FaVenus } from "./venus"; -export { default as FaViacoin } from "./viacoin"; -export { default as FaViadeoSquare } from "./viadeo-square"; -export { default as FaViadeo } from "./viadeo"; -export { default as FaVideoCamera } from "./video-camera"; -export { default as FaVimeoSquare } from "./vimeo-square"; -export { default as FaVimeo } from "./vimeo"; -export { default as FaVine } from "./vine"; -export { default as FaVk } from "./vk"; -export { default as FaVolumeControlPhone } from "./volume-control-phone"; -export { default as FaVolumeDown } from "./volume-down"; -export { default as FaVolumeOff } from "./volume-off"; -export { default as FaVolumeUp } from "./volume-up"; -export { default as FaWechat } from "./wechat"; -export { default as FaWeibo } from "./weibo"; -export { default as FaWhatsapp } from "./whatsapp"; -export { default as FaWheelchairAlt } from "./wheelchair-alt"; -export { default as FaWheelchair } from "./wheelchair"; -export { default as FaWifi } from "./wifi"; -export { default as FaWikipediaW } from "./wikipedia-w"; -export { default as FaWindows } from "./windows"; -export { default as FaWordpress } from "./wordpress"; -export { default as FaWpbeginner } from "./wpbeginner"; -export { default as FaWpforms } from "./wpforms"; -export { default as FaWrench } from "./wrench"; -export { default as FaXingSquare } from "./xing-square"; -export { default as FaXing } from "./xing"; -export { default as FaYCombinator } from "./y-combinator"; -export { default as FaYahoo } from "./yahoo"; -export { default as FaYelp } from "./yelp"; -export { default as FaYoutubePlay } from "./youtube-play"; -export { default as FaYoutubeSquare } from "./youtube-square"; -export { default as FaYoutube } from "./youtube"; +export { default as Fa500px } from "../../fa/500px"; +export { default as FaAdjust } from "../../fa/adjust"; +export { default as FaAdn } from "../../fa/adn"; +export { default as FaAlignCenter } from "../../fa/align-center"; +export { default as FaAlignJustify } from "../../fa/align-justify"; +export { default as FaAlignLeft } from "../../fa/align-left"; +export { default as FaAlignRight } from "../../fa/align-right"; +export { default as FaAmazon } from "../../fa/amazon"; +export { default as FaAmbulance } from "../../fa/ambulance"; +export { default as FaAmericanSignLanguageInterpreting } from "../../fa/american-sign-language-interpreting"; +export { default as FaAnchor } from "../../fa/anchor"; +export { default as FaAndroid } from "../../fa/android"; +export { default as FaAngellist } from "../../fa/angellist"; +export { default as FaAngleDoubleDown } from "../../fa/angle-double-down"; +export { default as FaAngleDoubleLeft } from "../../fa/angle-double-left"; +export { default as FaAngleDoubleRight } from "../../fa/angle-double-right"; +export { default as FaAngleDoubleUp } from "../../fa/angle-double-up"; +export { default as FaAngleDown } from "../../fa/angle-down"; +export { default as FaAngleLeft } from "../../fa/angle-left"; +export { default as FaAngleRight } from "../../fa/angle-right"; +export { default as FaAngleUp } from "../../fa/angle-up"; +export { default as FaApple } from "../../fa/apple"; +export { default as FaArchive } from "../../fa/archive"; +export { default as FaAreaChart } from "../../fa/area-chart"; +export { default as FaArrowCircleDown } from "../../fa/arrow-circle-down"; +export { default as FaArrowCircleLeft } from "../../fa/arrow-circle-left"; +export { default as FaArrowCircleODown } from "../../fa/arrow-circle-o-down"; +export { default as FaArrowCircleOLeft } from "../../fa/arrow-circle-o-left"; +export { default as FaArrowCircleORight } from "../../fa/arrow-circle-o-right"; +export { default as FaArrowCircleOUp } from "../../fa/arrow-circle-o-up"; +export { default as FaArrowCircleRight } from "../../fa/arrow-circle-right"; +export { default as FaArrowCircleUp } from "../../fa/arrow-circle-up"; +export { default as FaArrowDown } from "../../fa/arrow-down"; +export { default as FaArrowLeft } from "../../fa/arrow-left"; +export { default as FaArrowRight } from "../../fa/arrow-right"; +export { default as FaArrowUp } from "../../fa/arrow-up"; +export { default as FaArrowsAlt } from "../../fa/arrows-alt"; +export { default as FaArrowsH } from "../../fa/arrows-h"; +export { default as FaArrowsV } from "../../fa/arrows-v"; +export { default as FaArrows } from "../../fa/arrows"; +export { default as FaAssistiveListeningSystems } from "../../fa/assistive-listening-systems"; +export { default as FaAsterisk } from "../../fa/asterisk"; +export { default as FaAt } from "../../fa/at"; +export { default as FaAudioDescription } from "../../fa/audio-description"; +export { default as FaAutomobile } from "../../fa/automobile"; +export { default as FaBackward } from "../../fa/backward"; +export { default as FaBalanceScale } from "../../fa/balance-scale"; +export { default as FaBan } from "../../fa/ban"; +export { default as FaBank } from "../../fa/bank"; +export { default as FaBarChart } from "../../fa/bar-chart"; +export { default as FaBarcode } from "../../fa/barcode"; +export { default as FaBars } from "../../fa/bars"; +export { default as FaBattery0 } from "../../fa/battery-0"; +export { default as FaBattery1 } from "../../fa/battery-1"; +export { default as FaBattery2 } from "../../fa/battery-2"; +export { default as FaBattery3 } from "../../fa/battery-3"; +export { default as FaBattery4 } from "../../fa/battery-4"; +export { default as FaBed } from "../../fa/bed"; +export { default as FaBeer } from "../../fa/beer"; +export { default as FaBehanceSquare } from "../../fa/behance-square"; +export { default as FaBehance } from "../../fa/behance"; +export { default as FaBellO } from "../../fa/bell-o"; +export { default as FaBellSlashO } from "../../fa/bell-slash-o"; +export { default as FaBellSlash } from "../../fa/bell-slash"; +export { default as FaBell } from "../../fa/bell"; +export { default as FaBicycle } from "../../fa/bicycle"; +export { default as FaBinoculars } from "../../fa/binoculars"; +export { default as FaBirthdayCake } from "../../fa/birthday-cake"; +export { default as FaBitbucketSquare } from "../../fa/bitbucket-square"; +export { default as FaBitbucket } from "../../fa/bitbucket"; +export { default as FaBitcoin } from "../../fa/bitcoin"; +export { default as FaBlackTie } from "../../fa/black-tie"; +export { default as FaBlind } from "../../fa/blind"; +export { default as FaBluetoothB } from "../../fa/bluetooth-b"; +export { default as FaBluetooth } from "../../fa/bluetooth"; +export { default as FaBold } from "../../fa/bold"; +export { default as FaBolt } from "../../fa/bolt"; +export { default as FaBomb } from "../../fa/bomb"; +export { default as FaBook } from "../../fa/book"; +export { default as FaBookmarkO } from "../../fa/bookmark-o"; +export { default as FaBookmark } from "../../fa/bookmark"; +export { default as FaBraille } from "../../fa/braille"; +export { default as FaBriefcase } from "../../fa/briefcase"; +export { default as FaBug } from "../../fa/bug"; +export { default as FaBuildingO } from "../../fa/building-o"; +export { default as FaBuilding } from "../../fa/building"; +export { default as FaBullhorn } from "../../fa/bullhorn"; +export { default as FaBullseye } from "../../fa/bullseye"; +export { default as FaBus } from "../../fa/bus"; +export { default as FaBuysellads } from "../../fa/buysellads"; +export { default as FaCab } from "../../fa/cab"; +export { default as FaCalculator } from "../../fa/calculator"; +export { default as FaCalendarCheckO } from "../../fa/calendar-check-o"; +export { default as FaCalendarMinusO } from "../../fa/calendar-minus-o"; +export { default as FaCalendarO } from "../../fa/calendar-o"; +export { default as FaCalendarPlusO } from "../../fa/calendar-plus-o"; +export { default as FaCalendarTimesO } from "../../fa/calendar-times-o"; +export { default as FaCalendar } from "../../fa/calendar"; +export { default as FaCameraRetro } from "../../fa/camera-retro"; +export { default as FaCamera } from "../../fa/camera"; +export { default as FaCaretDown } from "../../fa/caret-down"; +export { default as FaCaretLeft } from "../../fa/caret-left"; +export { default as FaCaretRight } from "../../fa/caret-right"; +export { default as FaCaretSquareODown } from "../../fa/caret-square-o-down"; +export { default as FaCaretSquareOLeft } from "../../fa/caret-square-o-left"; +export { default as FaCaretSquareORight } from "../../fa/caret-square-o-right"; +export { default as FaCaretSquareOUp } from "../../fa/caret-square-o-up"; +export { default as FaCaretUp } from "../../fa/caret-up"; +export { default as FaCartArrowDown } from "../../fa/cart-arrow-down"; +export { default as FaCartPlus } from "../../fa/cart-plus"; +export { default as FaCcAmex } from "../../fa/cc-amex"; +export { default as FaCcDinersClub } from "../../fa/cc-diners-club"; +export { default as FaCcDiscover } from "../../fa/cc-discover"; +export { default as FaCcJcb } from "../../fa/cc-jcb"; +export { default as FaCcMastercard } from "../../fa/cc-mastercard"; +export { default as FaCcPaypal } from "../../fa/cc-paypal"; +export { default as FaCcStripe } from "../../fa/cc-stripe"; +export { default as FaCcVisa } from "../../fa/cc-visa"; +export { default as FaCc } from "../../fa/cc"; +export { default as FaCertificate } from "../../fa/certificate"; +export { default as FaChainBroken } from "../../fa/chain-broken"; +export { default as FaChain } from "../../fa/chain"; +export { default as FaCheckCircleO } from "../../fa/check-circle-o"; +export { default as FaCheckCircle } from "../../fa/check-circle"; +export { default as FaCheckSquareO } from "../../fa/check-square-o"; +export { default as FaCheckSquare } from "../../fa/check-square"; +export { default as FaCheck } from "../../fa/check"; +export { default as FaChevronCircleDown } from "../../fa/chevron-circle-down"; +export { default as FaChevronCircleLeft } from "../../fa/chevron-circle-left"; +export { default as FaChevronCircleRight } from "../../fa/chevron-circle-right"; +export { default as FaChevronCircleUp } from "../../fa/chevron-circle-up"; +export { default as FaChevronDown } from "../../fa/chevron-down"; +export { default as FaChevronLeft } from "../../fa/chevron-left"; +export { default as FaChevronRight } from "../../fa/chevron-right"; +export { default as FaChevronUp } from "../../fa/chevron-up"; +export { default as FaChild } from "../../fa/child"; +export { default as FaChrome } from "../../fa/chrome"; +export { default as FaCircleONotch } from "../../fa/circle-o-notch"; +export { default as FaCircleO } from "../../fa/circle-o"; +export { default as FaCircleThin } from "../../fa/circle-thin"; +export { default as FaCircle } from "../../fa/circle"; +export { default as FaClipboard } from "../../fa/clipboard"; +export { default as FaClockO } from "../../fa/clock-o"; +export { default as FaClone } from "../../fa/clone"; +export { default as FaClose } from "../../fa/close"; +export { default as FaCloudDownload } from "../../fa/cloud-download"; +export { default as FaCloudUpload } from "../../fa/cloud-upload"; +export { default as FaCloud } from "../../fa/cloud"; +export { default as FaCny } from "../../fa/cny"; +export { default as FaCodeFork } from "../../fa/code-fork"; +export { default as FaCode } from "../../fa/code"; +export { default as FaCodepen } from "../../fa/codepen"; +export { default as FaCodiepie } from "../../fa/codiepie"; +export { default as FaCoffee } from "../../fa/coffee"; +export { default as FaCog } from "../../fa/cog"; +export { default as FaCogs } from "../../fa/cogs"; +export { default as FaColumns } from "../../fa/columns"; +export { default as FaCommentO } from "../../fa/comment-o"; +export { default as FaComment } from "../../fa/comment"; +export { default as FaCommentingO } from "../../fa/commenting-o"; +export { default as FaCommenting } from "../../fa/commenting"; +export { default as FaCommentsO } from "../../fa/comments-o"; +export { default as FaComments } from "../../fa/comments"; +export { default as FaCompass } from "../../fa/compass"; +export { default as FaCompress } from "../../fa/compress"; +export { default as FaConnectdevelop } from "../../fa/connectdevelop"; +export { default as FaContao } from "../../fa/contao"; +export { default as FaCopy } from "../../fa/copy"; +export { default as FaCopyright } from "../../fa/copyright"; +export { default as FaCreativeCommons } from "../../fa/creative-commons"; +export { default as FaCreditCardAlt } from "../../fa/credit-card-alt"; +export { default as FaCreditCard } from "../../fa/credit-card"; +export { default as FaCrop } from "../../fa/crop"; +export { default as FaCrosshairs } from "../../fa/crosshairs"; +export { default as FaCss3 } from "../../fa/css3"; +export { default as FaCube } from "../../fa/cube"; +export { default as FaCubes } from "../../fa/cubes"; +export { default as FaCut } from "../../fa/cut"; +export { default as FaCutlery } from "../../fa/cutlery"; +export { default as FaDashboard } from "../../fa/dashboard"; +export { default as FaDashcube } from "../../fa/dashcube"; +export { default as FaDatabase } from "../../fa/database"; +export { default as FaDeaf } from "../../fa/deaf"; +export { default as FaDedent } from "../../fa/dedent"; +export { default as FaDelicious } from "../../fa/delicious"; +export { default as FaDesktop } from "../../fa/desktop"; +export { default as FaDeviantart } from "../../fa/deviantart"; +export { default as FaDiamond } from "../../fa/diamond"; +export { default as FaDigg } from "../../fa/digg"; +export { default as FaDollar } from "../../fa/dollar"; +export { default as FaDotCircleO } from "../../fa/dot-circle-o"; +export { default as FaDownload } from "../../fa/download"; +export { default as FaDribbble } from "../../fa/dribbble"; +export { default as FaDropbox } from "../../fa/dropbox"; +export { default as FaDrupal } from "../../fa/drupal"; +export { default as FaEdge } from "../../fa/edge"; +export { default as FaEdit } from "../../fa/edit"; +export { default as FaEject } from "../../fa/eject"; +export { default as FaEllipsisH } from "../../fa/ellipsis-h"; +export { default as FaEllipsisV } from "../../fa/ellipsis-v"; +export { default as FaEmpire } from "../../fa/empire"; +export { default as FaEnvelopeO } from "../../fa/envelope-o"; +export { default as FaEnvelopeSquare } from "../../fa/envelope-square"; +export { default as FaEnvelope } from "../../fa/envelope"; +export { default as FaEnvira } from "../../fa/envira"; +export { default as FaEraser } from "../../fa/eraser"; +export { default as FaEur } from "../../fa/eur"; +export { default as FaExchange } from "../../fa/exchange"; +export { default as FaExclamationCircle } from "../../fa/exclamation-circle"; +export { default as FaExclamationTriangle } from "../../fa/exclamation-triangle"; +export { default as FaExclamation } from "../../fa/exclamation"; +export { default as FaExpand } from "../../fa/expand"; +export { default as FaExpeditedssl } from "../../fa/expeditedssl"; +export { default as FaExternalLinkSquare } from "../../fa/external-link-square"; +export { default as FaExternalLink } from "../../fa/external-link"; +export { default as FaEyeSlash } from "../../fa/eye-slash"; +export { default as FaEye } from "../../fa/eye"; +export { default as FaEyedropper } from "../../fa/eyedropper"; +export { default as FaFacebookOfficial } from "../../fa/facebook-official"; +export { default as FaFacebookSquare } from "../../fa/facebook-square"; +export { default as FaFacebook } from "../../fa/facebook"; +export { default as FaFastBackward } from "../../fa/fast-backward"; +export { default as FaFastForward } from "../../fa/fast-forward"; +export { default as FaFax } from "../../fa/fax"; +export { default as FaFeed } from "../../fa/feed"; +export { default as FaFemale } from "../../fa/female"; +export { default as FaFighterJet } from "../../fa/fighter-jet"; +export { default as FaFileArchiveO } from "../../fa/file-archive-o"; +export { default as FaFileAudioO } from "../../fa/file-audio-o"; +export { default as FaFileCodeO } from "../../fa/file-code-o"; +export { default as FaFileExcelO } from "../../fa/file-excel-o"; +export { default as FaFileImageO } from "../../fa/file-image-o"; +export { default as FaFileMovieO } from "../../fa/file-movie-o"; +export { default as FaFileO } from "../../fa/file-o"; +export { default as FaFilePdfO } from "../../fa/file-pdf-o"; +export { default as FaFilePowerpointO } from "../../fa/file-powerpoint-o"; +export { default as FaFileTextO } from "../../fa/file-text-o"; +export { default as FaFileText } from "../../fa/file-text"; +export { default as FaFileWordO } from "../../fa/file-word-o"; +export { default as FaFile } from "../../fa/file"; +export { default as FaFilm } from "../../fa/film"; +export { default as FaFilter } from "../../fa/filter"; +export { default as FaFireExtinguisher } from "../../fa/fire-extinguisher"; +export { default as FaFire } from "../../fa/fire"; +export { default as FaFirefox } from "../../fa/firefox"; +export { default as FaFlagCheckered } from "../../fa/flag-checkered"; +export { default as FaFlagO } from "../../fa/flag-o"; +export { default as FaFlag } from "../../fa/flag"; +export { default as FaFlask } from "../../fa/flask"; +export { default as FaFlickr } from "../../fa/flickr"; +export { default as FaFloppyO } from "../../fa/floppy-o"; +export { default as FaFolderO } from "../../fa/folder-o"; +export { default as FaFolderOpenO } from "../../fa/folder-open-o"; +export { default as FaFolderOpen } from "../../fa/folder-open"; +export { default as FaFolder } from "../../fa/folder"; +export { default as FaFont } from "../../fa/font"; +export { default as FaFonticons } from "../../fa/fonticons"; +export { default as FaFortAwesome } from "../../fa/fort-awesome"; +export { default as FaForumbee } from "../../fa/forumbee"; +export { default as FaForward } from "../../fa/forward"; +export { default as FaFoursquare } from "../../fa/foursquare"; +export { default as FaFrownO } from "../../fa/frown-o"; +export { default as FaFutbolO } from "../../fa/futbol-o"; +export { default as FaGamepad } from "../../fa/gamepad"; +export { default as FaGavel } from "../../fa/gavel"; +export { default as FaGbp } from "../../fa/gbp"; +export { default as FaGenderless } from "../../fa/genderless"; +export { default as FaGetPocket } from "../../fa/get-pocket"; +export { default as FaGgCircle } from "../../fa/gg-circle"; +export { default as FaGg } from "../../fa/gg"; +export { default as FaGift } from "../../fa/gift"; +export { default as FaGitSquare } from "../../fa/git-square"; +export { default as FaGit } from "../../fa/git"; +export { default as FaGithubAlt } from "../../fa/github-alt"; +export { default as FaGithubSquare } from "../../fa/github-square"; +export { default as FaGithub } from "../../fa/github"; +export { default as FaGitlab } from "../../fa/gitlab"; +export { default as FaGittip } from "../../fa/gittip"; +export { default as FaGlass } from "../../fa/glass"; +export { default as FaGlideG } from "../../fa/glide-g"; +export { default as FaGlide } from "../../fa/glide"; +export { default as FaGlobe } from "../../fa/globe"; +export { default as FaGooglePlusSquare } from "../../fa/google-plus-square"; +export { default as FaGooglePlus } from "../../fa/google-plus"; +export { default as FaGoogleWallet } from "../../fa/google-wallet"; +export { default as FaGoogle } from "../../fa/google"; +export { default as FaGraduationCap } from "../../fa/graduation-cap"; +export { default as FaGroup } from "../../fa/group"; +export { default as FaHSquare } from "../../fa/h-square"; +export { default as FaHackerNews } from "../../fa/hacker-news"; +export { default as FaHandGrabO } from "../../fa/hand-grab-o"; +export { default as FaHandLizardO } from "../../fa/hand-lizard-o"; +export { default as FaHandODown } from "../../fa/hand-o-down"; +export { default as FaHandOLeft } from "../../fa/hand-o-left"; +export { default as FaHandORight } from "../../fa/hand-o-right"; +export { default as FaHandOUp } from "../../fa/hand-o-up"; +export { default as FaHandPaperO } from "../../fa/hand-paper-o"; +export { default as FaHandPeaceO } from "../../fa/hand-peace-o"; +export { default as FaHandPointerO } from "../../fa/hand-pointer-o"; +export { default as FaHandScissorsO } from "../../fa/hand-scissors-o"; +export { default as FaHandSpockO } from "../../fa/hand-spock-o"; +export { default as FaHashtag } from "../../fa/hashtag"; +export { default as FaHddO } from "../../fa/hdd-o"; +export { default as FaHeader } from "../../fa/header"; +export { default as FaHeadphones } from "../../fa/headphones"; +export { default as FaHeartO } from "../../fa/heart-o"; +export { default as FaHeart } from "../../fa/heart"; +export { default as FaHeartbeat } from "../../fa/heartbeat"; +export { default as FaHistory } from "../../fa/history"; +export { default as FaHome } from "../../fa/home"; +export { default as FaHospitalO } from "../../fa/hospital-o"; +export { default as FaHourglass1 } from "../../fa/hourglass-1"; +export { default as FaHourglass2 } from "../../fa/hourglass-2"; +export { default as FaHourglass3 } from "../../fa/hourglass-3"; +export { default as FaHourglassO } from "../../fa/hourglass-o"; +export { default as FaHourglass } from "../../fa/hourglass"; +export { default as FaHouzz } from "../../fa/houzz"; +export { default as FaHtml5 } from "../../fa/html5"; +export { default as FaICursor } from "../../fa/i-cursor"; +export { default as FaIls } from "../../fa/ils"; +export { default as FaImage } from "../../fa/image"; +export { default as FaInbox } from "../../fa/inbox"; +export { default as FaIndent } from "../../fa/indent"; +export { default as FaIndustry } from "../../fa/industry"; +export { default as FaInfoCircle } from "../../fa/info-circle"; +export { default as FaInfo } from "../../fa/info"; +export { default as FaInr } from "../../fa/inr"; +export { default as FaInstagram } from "../../fa/instagram"; +export { default as FaInternetExplorer } from "../../fa/internet-explorer"; +export { default as FaIntersex } from "../../fa/intersex"; +export { default as FaIoxhost } from "../../fa/ioxhost"; +export { default as FaItalic } from "../../fa/italic"; +export { default as FaJoomla } from "../../fa/joomla"; +export { default as FaJsfiddle } from "../../fa/jsfiddle"; +export { default as FaKey } from "../../fa/key"; +export { default as FaKeyboardO } from "../../fa/keyboard-o"; +export { default as FaKrw } from "../../fa/krw"; +export { default as FaLanguage } from "../../fa/language"; +export { default as FaLaptop } from "../../fa/laptop"; +export { default as FaLastfmSquare } from "../../fa/lastfm-square"; +export { default as FaLastfm } from "../../fa/lastfm"; +export { default as FaLeaf } from "../../fa/leaf"; +export { default as FaLeanpub } from "../../fa/leanpub"; +export { default as FaLemonO } from "../../fa/lemon-o"; +export { default as FaLevelDown } from "../../fa/level-down"; +export { default as FaLevelUp } from "../../fa/level-up"; +export { default as FaLifeBouy } from "../../fa/life-bouy"; +export { default as FaLightbulbO } from "../../fa/lightbulb-o"; +export { default as FaLineChart } from "../../fa/line-chart"; +export { default as FaLinkedinSquare } from "../../fa/linkedin-square"; +export { default as FaLinkedin } from "../../fa/linkedin"; +export { default as FaLinux } from "../../fa/linux"; +export { default as FaListAlt } from "../../fa/list-alt"; +export { default as FaListOl } from "../../fa/list-ol"; +export { default as FaListUl } from "../../fa/list-ul"; +export { default as FaList } from "../../fa/list"; +export { default as FaLocationArrow } from "../../fa/location-arrow"; +export { default as FaLock } from "../../fa/lock"; +export { default as FaLongArrowDown } from "../../fa/long-arrow-down"; +export { default as FaLongArrowLeft } from "../../fa/long-arrow-left"; +export { default as FaLongArrowRight } from "../../fa/long-arrow-right"; +export { default as FaLongArrowUp } from "../../fa/long-arrow-up"; +export { default as FaLowVision } from "../../fa/low-vision"; +export { default as FaMagic } from "../../fa/magic"; +export { default as FaMagnet } from "../../fa/magnet"; +export { default as FaMailForward } from "../../fa/mail-forward"; +export { default as FaMailReplyAll } from "../../fa/mail-reply-all"; +export { default as FaMailReply } from "../../fa/mail-reply"; +export { default as FaMale } from "../../fa/male"; +export { default as FaMapMarker } from "../../fa/map-marker"; +export { default as FaMapO } from "../../fa/map-o"; +export { default as FaMapPin } from "../../fa/map-pin"; +export { default as FaMapSigns } from "../../fa/map-signs"; +export { default as FaMap } from "../../fa/map"; +export { default as FaMarsDouble } from "../../fa/mars-double"; +export { default as FaMarsStrokeH } from "../../fa/mars-stroke-h"; +export { default as FaMarsStrokeV } from "../../fa/mars-stroke-v"; +export { default as FaMarsStroke } from "../../fa/mars-stroke"; +export { default as FaMars } from "../../fa/mars"; +export { default as FaMaxcdn } from "../../fa/maxcdn"; +export { default as FaMeanpath } from "../../fa/meanpath"; +export { default as FaMedium } from "../../fa/medium"; +export { default as FaMedkit } from "../../fa/medkit"; +export { default as FaMehO } from "../../fa/meh-o"; +export { default as FaMercury } from "../../fa/mercury"; +export { default as FaMicrophoneSlash } from "../../fa/microphone-slash"; +export { default as FaMicrophone } from "../../fa/microphone"; +export { default as FaMinusCircle } from "../../fa/minus-circle"; +export { default as FaMinusSquareO } from "../../fa/minus-square-o"; +export { default as FaMinusSquare } from "../../fa/minus-square"; +export { default as FaMinus } from "../../fa/minus"; +export { default as FaMixcloud } from "../../fa/mixcloud"; +export { default as FaMobile } from "../../fa/mobile"; +export { default as FaModx } from "../../fa/modx"; +export { default as FaMoney } from "../../fa/money"; +export { default as FaMoonO } from "../../fa/moon-o"; +export { default as FaMotorcycle } from "../../fa/motorcycle"; +export { default as FaMousePointer } from "../../fa/mouse-pointer"; +export { default as FaMusic } from "../../fa/music"; +export { default as FaNeuter } from "../../fa/neuter"; +export { default as FaNewspaperO } from "../../fa/newspaper-o"; +export { default as FaObjectGroup } from "../../fa/object-group"; +export { default as FaObjectUngroup } from "../../fa/object-ungroup"; +export { default as FaOdnoklassnikiSquare } from "../../fa/odnoklassniki-square"; +export { default as FaOdnoklassniki } from "../../fa/odnoklassniki"; +export { default as FaOpencart } from "../../fa/opencart"; +export { default as FaOpenid } from "../../fa/openid"; +export { default as FaOpera } from "../../fa/opera"; +export { default as FaOptinMonster } from "../../fa/optin-monster"; +export { default as FaPagelines } from "../../fa/pagelines"; +export { default as FaPaintBrush } from "../../fa/paint-brush"; +export { default as FaPaperPlaneO } from "../../fa/paper-plane-o"; +export { default as FaPaperPlane } from "../../fa/paper-plane"; +export { default as FaPaperclip } from "../../fa/paperclip"; +export { default as FaParagraph } from "../../fa/paragraph"; +export { default as FaPauseCircleO } from "../../fa/pause-circle-o"; +export { default as FaPauseCircle } from "../../fa/pause-circle"; +export { default as FaPause } from "../../fa/pause"; +export { default as FaPaw } from "../../fa/paw"; +export { default as FaPaypal } from "../../fa/paypal"; +export { default as FaPencilSquare } from "../../fa/pencil-square"; +export { default as FaPencil } from "../../fa/pencil"; +export { default as FaPercent } from "../../fa/percent"; +export { default as FaPhoneSquare } from "../../fa/phone-square"; +export { default as FaPhone } from "../../fa/phone"; +export { default as FaPieChart } from "../../fa/pie-chart"; +export { default as FaPiedPiperAlt } from "../../fa/pied-piper-alt"; +export { default as FaPiedPiper } from "../../fa/pied-piper"; +export { default as FaPinterestP } from "../../fa/pinterest-p"; +export { default as FaPinterestSquare } from "../../fa/pinterest-square"; +export { default as FaPinterest } from "../../fa/pinterest"; +export { default as FaPlane } from "../../fa/plane"; +export { default as FaPlayCircleO } from "../../fa/play-circle-o"; +export { default as FaPlayCircle } from "../../fa/play-circle"; +export { default as FaPlay } from "../../fa/play"; +export { default as FaPlug } from "../../fa/plug"; +export { default as FaPlusCircle } from "../../fa/plus-circle"; +export { default as FaPlusSquareO } from "../../fa/plus-square-o"; +export { default as FaPlusSquare } from "../../fa/plus-square"; +export { default as FaPlus } from "../../fa/plus"; +export { default as FaPowerOff } from "../../fa/power-off"; +export { default as FaPrint } from "../../fa/print"; +export { default as FaProductHunt } from "../../fa/product-hunt"; +export { default as FaPuzzlePiece } from "../../fa/puzzle-piece"; +export { default as FaQq } from "../../fa/qq"; +export { default as FaQrcode } from "../../fa/qrcode"; +export { default as FaQuestionCircleO } from "../../fa/question-circle-o"; +export { default as FaQuestionCircle } from "../../fa/question-circle"; +export { default as FaQuestion } from "../../fa/question"; +export { default as FaQuoteLeft } from "../../fa/quote-left"; +export { default as FaQuoteRight } from "../../fa/quote-right"; +export { default as FaRa } from "../../fa/ra"; +export { default as FaRandom } from "../../fa/random"; +export { default as FaRecycle } from "../../fa/recycle"; +export { default as FaRedditAlien } from "../../fa/reddit-alien"; +export { default as FaRedditSquare } from "../../fa/reddit-square"; +export { default as FaReddit } from "../../fa/reddit"; +export { default as FaRefresh } from "../../fa/refresh"; +export { default as FaRegistered } from "../../fa/registered"; +export { default as FaRenren } from "../../fa/renren"; +export { default as FaRepeat } from "../../fa/repeat"; +export { default as FaRetweet } from "../../fa/retweet"; +export { default as FaRoad } from "../../fa/road"; +export { default as FaRocket } from "../../fa/rocket"; +export { default as FaRotateLeft } from "../../fa/rotate-left"; +export { default as FaRouble } from "../../fa/rouble"; +export { default as FaRssSquare } from "../../fa/rss-square"; +export { default as FaSafari } from "../../fa/safari"; +export { default as FaScribd } from "../../fa/scribd"; +export { default as FaSearchMinus } from "../../fa/search-minus"; +export { default as FaSearchPlus } from "../../fa/search-plus"; +export { default as FaSearch } from "../../fa/search"; +export { default as FaSellsy } from "../../fa/sellsy"; +export { default as FaServer } from "../../fa/server"; +export { default as FaShareAltSquare } from "../../fa/share-alt-square"; +export { default as FaShareAlt } from "../../fa/share-alt"; +export { default as FaShareSquareO } from "../../fa/share-square-o"; +export { default as FaShareSquare } from "../../fa/share-square"; +export { default as FaShield } from "../../fa/shield"; +export { default as FaShip } from "../../fa/ship"; +export { default as FaShirtsinbulk } from "../../fa/shirtsinbulk"; +export { default as FaShoppingBag } from "../../fa/shopping-bag"; +export { default as FaShoppingBasket } from "../../fa/shopping-basket"; +export { default as FaShoppingCart } from "../../fa/shopping-cart"; +export { default as FaSignIn } from "../../fa/sign-in"; +export { default as FaSignLanguage } from "../../fa/sign-language"; +export { default as FaSignOut } from "../../fa/sign-out"; +export { default as FaSignal } from "../../fa/signal"; +export { default as FaSimplybuilt } from "../../fa/simplybuilt"; +export { default as FaSitemap } from "../../fa/sitemap"; +export { default as FaSkyatlas } from "../../fa/skyatlas"; +export { default as FaSkype } from "../../fa/skype"; +export { default as FaSlack } from "../../fa/slack"; +export { default as FaSliders } from "../../fa/sliders"; +export { default as FaSlideshare } from "../../fa/slideshare"; +export { default as FaSmileO } from "../../fa/smile-o"; +export { default as FaSnapchatGhost } from "../../fa/snapchat-ghost"; +export { default as FaSnapchatSquare } from "../../fa/snapchat-square"; +export { default as FaSnapchat } from "../../fa/snapchat"; +export { default as FaSortAlphaAsc } from "../../fa/sort-alpha-asc"; +export { default as FaSortAlphaDesc } from "../../fa/sort-alpha-desc"; +export { default as FaSortAmountAsc } from "../../fa/sort-amount-asc"; +export { default as FaSortAmountDesc } from "../../fa/sort-amount-desc"; +export { default as FaSortAsc } from "../../fa/sort-asc"; +export { default as FaSortDesc } from "../../fa/sort-desc"; +export { default as FaSortNumericAsc } from "../../fa/sort-numeric-asc"; +export { default as FaSortNumericDesc } from "../../fa/sort-numeric-desc"; +export { default as FaSort } from "../../fa/sort"; +export { default as FaSoundcloud } from "../../fa/soundcloud"; +export { default as FaSpaceShuttle } from "../../fa/space-shuttle"; +export { default as FaSpinner } from "../../fa/spinner"; +export { default as FaSpoon } from "../../fa/spoon"; +export { default as FaSpotify } from "../../fa/spotify"; +export { default as FaSquareO } from "../../fa/square-o"; +export { default as FaSquare } from "../../fa/square"; +export { default as FaStackExchange } from "../../fa/stack-exchange"; +export { default as FaStackOverflow } from "../../fa/stack-overflow"; +export { default as FaStarHalfEmpty } from "../../fa/star-half-empty"; +export { default as FaStarHalf } from "../../fa/star-half"; +export { default as FaStarO } from "../../fa/star-o"; +export { default as FaStar } from "../../fa/star"; +export { default as FaSteamSquare } from "../../fa/steam-square"; +export { default as FaSteam } from "../../fa/steam"; +export { default as FaStepBackward } from "../../fa/step-backward"; +export { default as FaStepForward } from "../../fa/step-forward"; +export { default as FaStethoscope } from "../../fa/stethoscope"; +export { default as FaStickyNoteO } from "../../fa/sticky-note-o"; +export { default as FaStickyNote } from "../../fa/sticky-note"; +export { default as FaStopCircleO } from "../../fa/stop-circle-o"; +export { default as FaStopCircle } from "../../fa/stop-circle"; +export { default as FaStop } from "../../fa/stop"; +export { default as FaStreetView } from "../../fa/street-view"; +export { default as FaStrikethrough } from "../../fa/strikethrough"; +export { default as FaStumbleuponCircle } from "../../fa/stumbleupon-circle"; +export { default as FaStumbleupon } from "../../fa/stumbleupon"; +export { default as FaSubscript } from "../../fa/subscript"; +export { default as FaSubway } from "../../fa/subway"; +export { default as FaSuitcase } from "../../fa/suitcase"; +export { default as FaSunO } from "../../fa/sun-o"; +export { default as FaSuperscript } from "../../fa/superscript"; +export { default as FaTable } from "../../fa/table"; +export { default as FaTablet } from "../../fa/tablet"; +export { default as FaTag } from "../../fa/tag"; +export { default as FaTags } from "../../fa/tags"; +export { default as FaTasks } from "../../fa/tasks"; +export { default as FaTelevision } from "../../fa/television"; +export { default as FaTencentWeibo } from "../../fa/tencent-weibo"; +export { default as FaTerminal } from "../../fa/terminal"; +export { default as FaTextHeight } from "../../fa/text-height"; +export { default as FaTextWidth } from "../../fa/text-width"; +export { default as FaThLarge } from "../../fa/th-large"; +export { default as FaThList } from "../../fa/th-list"; +export { default as FaTh } from "../../fa/th"; +export { default as FaThumbTack } from "../../fa/thumb-tack"; +export { default as FaThumbsDown } from "../../fa/thumbs-down"; +export { default as FaThumbsODown } from "../../fa/thumbs-o-down"; +export { default as FaThumbsOUp } from "../../fa/thumbs-o-up"; +export { default as FaThumbsUp } from "../../fa/thumbs-up"; +export { default as FaTicket } from "../../fa/ticket"; +export { default as FaTimesCircleO } from "../../fa/times-circle-o"; +export { default as FaTimesCircle } from "../../fa/times-circle"; +export { default as FaTint } from "../../fa/tint"; +export { default as FaToggleOff } from "../../fa/toggle-off"; +export { default as FaToggleOn } from "../../fa/toggle-on"; +export { default as FaTrademark } from "../../fa/trademark"; +export { default as FaTrain } from "../../fa/train"; +export { default as FaTransgenderAlt } from "../../fa/transgender-alt"; +export { default as FaTrashO } from "../../fa/trash-o"; +export { default as FaTrash } from "../../fa/trash"; +export { default as FaTree } from "../../fa/tree"; +export { default as FaTrello } from "../../fa/trello"; +export { default as FaTripadvisor } from "../../fa/tripadvisor"; +export { default as FaTrophy } from "../../fa/trophy"; +export { default as FaTruck } from "../../fa/truck"; +export { default as FaTry } from "../../fa/try"; +export { default as FaTty } from "../../fa/tty"; +export { default as FaTumblrSquare } from "../../fa/tumblr-square"; +export { default as FaTumblr } from "../../fa/tumblr"; +export { default as FaTwitch } from "../../fa/twitch"; +export { default as FaTwitterSquare } from "../../fa/twitter-square"; +export { default as FaTwitter } from "../../fa/twitter"; +export { default as FaUmbrella } from "../../fa/umbrella"; +export { default as FaUnderline } from "../../fa/underline"; +export { default as FaUniversalAccess } from "../../fa/universal-access"; +export { default as FaUnlockAlt } from "../../fa/unlock-alt"; +export { default as FaUnlock } from "../../fa/unlock"; +export { default as FaUpload } from "../../fa/upload"; +export { default as FaUsb } from "../../fa/usb"; +export { default as FaUserMd } from "../../fa/user-md"; +export { default as FaUserPlus } from "../../fa/user-plus"; +export { default as FaUserSecret } from "../../fa/user-secret"; +export { default as FaUserTimes } from "../../fa/user-times"; +export { default as FaUser } from "../../fa/user"; +export { default as FaVenusDouble } from "../../fa/venus-double"; +export { default as FaVenusMars } from "../../fa/venus-mars"; +export { default as FaVenus } from "../../fa/venus"; +export { default as FaViacoin } from "../../fa/viacoin"; +export { default as FaViadeoSquare } from "../../fa/viadeo-square"; +export { default as FaViadeo } from "../../fa/viadeo"; +export { default as FaVideoCamera } from "../../fa/video-camera"; +export { default as FaVimeoSquare } from "../../fa/vimeo-square"; +export { default as FaVimeo } from "../../fa/vimeo"; +export { default as FaVine } from "../../fa/vine"; +export { default as FaVk } from "../../fa/vk"; +export { default as FaVolumeControlPhone } from "../../fa/volume-control-phone"; +export { default as FaVolumeDown } from "../../fa/volume-down"; +export { default as FaVolumeOff } from "../../fa/volume-off"; +export { default as FaVolumeUp } from "../../fa/volume-up"; +export { default as FaWechat } from "../../fa/wechat"; +export { default as FaWeibo } from "../../fa/weibo"; +export { default as FaWhatsapp } from "../../fa/whatsapp"; +export { default as FaWheelchairAlt } from "../../fa/wheelchair-alt"; +export { default as FaWheelchair } from "../../fa/wheelchair"; +export { default as FaWifi } from "../../fa/wifi"; +export { default as FaWikipediaW } from "../../fa/wikipedia-w"; +export { default as FaWindows } from "../../fa/windows"; +export { default as FaWordpress } from "../../fa/wordpress"; +export { default as FaWpbeginner } from "../../fa/wpbeginner"; +export { default as FaWpforms } from "../../fa/wpforms"; +export { default as FaWrench } from "../../fa/wrench"; +export { default as FaXingSquare } from "../../fa/xing-square"; +export { default as FaXing } from "../../fa/xing"; +export { default as FaYCombinator } from "../../fa/y-combinator"; +export { default as FaYahoo } from "../../fa/yahoo"; +export { default as FaYelp } from "../../fa/yelp"; +export { default as FaYoutubePlay } from "../../fa/youtube-play"; +export { default as FaYoutubeSquare } from "../../fa/youtube-square"; +export { default as FaYoutube } from "../../fa/youtube"; diff --git a/types/react-icons/lib/fa/industry.d.ts b/types/react-icons/lib/fa/industry.d.ts index 70d7057743..be16903151 100644 --- a/types/react-icons/lib/fa/industry.d.ts +++ b/types/react-icons/lib/fa/industry.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaIndustry extends React.Component { } +declare class FaIndustry extends React.Component { } +export = FaIndustry; diff --git a/types/react-icons/lib/fa/info-circle.d.ts b/types/react-icons/lib/fa/info-circle.d.ts index 7ed29e6eec..dde66daea7 100644 --- a/types/react-icons/lib/fa/info-circle.d.ts +++ b/types/react-icons/lib/fa/info-circle.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaInfoCircle extends React.Component { } +declare class FaInfoCircle extends React.Component { } +export = FaInfoCircle; diff --git a/types/react-icons/lib/fa/info.d.ts b/types/react-icons/lib/fa/info.d.ts index c67b3190a9..cfab006429 100644 --- a/types/react-icons/lib/fa/info.d.ts +++ b/types/react-icons/lib/fa/info.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaInfo extends React.Component { } +declare class FaInfo extends React.Component { } +export = FaInfo; diff --git a/types/react-icons/lib/fa/inr.d.ts b/types/react-icons/lib/fa/inr.d.ts index b47cb31531..bcbf062b74 100644 --- a/types/react-icons/lib/fa/inr.d.ts +++ b/types/react-icons/lib/fa/inr.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaInr extends React.Component { } +declare class FaInr extends React.Component { } +export = FaInr; diff --git a/types/react-icons/lib/fa/instagram.d.ts b/types/react-icons/lib/fa/instagram.d.ts index 7770e19043..835238de67 100644 --- a/types/react-icons/lib/fa/instagram.d.ts +++ b/types/react-icons/lib/fa/instagram.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaInstagram extends React.Component { } +declare class FaInstagram extends React.Component { } +export = FaInstagram; diff --git a/types/react-icons/lib/fa/internet-explorer.d.ts b/types/react-icons/lib/fa/internet-explorer.d.ts index 924654fee2..055c5df0a4 100644 --- a/types/react-icons/lib/fa/internet-explorer.d.ts +++ b/types/react-icons/lib/fa/internet-explorer.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaInternetExplorer extends React.Component { } +declare class FaInternetExplorer extends React.Component { } +export = FaInternetExplorer; diff --git a/types/react-icons/lib/fa/intersex.d.ts b/types/react-icons/lib/fa/intersex.d.ts index 77580bbb2d..f8948a1934 100644 --- a/types/react-icons/lib/fa/intersex.d.ts +++ b/types/react-icons/lib/fa/intersex.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaIntersex extends React.Component { } +declare class FaIntersex extends React.Component { } +export = FaIntersex; diff --git a/types/react-icons/lib/fa/ioxhost.d.ts b/types/react-icons/lib/fa/ioxhost.d.ts index b713d2c54a..9d2e89cf0f 100644 --- a/types/react-icons/lib/fa/ioxhost.d.ts +++ b/types/react-icons/lib/fa/ioxhost.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaIoxhost extends React.Component { } +declare class FaIoxhost extends React.Component { } +export = FaIoxhost; diff --git a/types/react-icons/lib/fa/italic.d.ts b/types/react-icons/lib/fa/italic.d.ts index 57572f5dbc..a33d3414d4 100644 --- a/types/react-icons/lib/fa/italic.d.ts +++ b/types/react-icons/lib/fa/italic.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaItalic extends React.Component { } +declare class FaItalic extends React.Component { } +export = FaItalic; diff --git a/types/react-icons/lib/fa/joomla.d.ts b/types/react-icons/lib/fa/joomla.d.ts index cdf3539275..39c73065c5 100644 --- a/types/react-icons/lib/fa/joomla.d.ts +++ b/types/react-icons/lib/fa/joomla.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaJoomla extends React.Component { } +declare class FaJoomla extends React.Component { } +export = FaJoomla; diff --git a/types/react-icons/lib/fa/jsfiddle.d.ts b/types/react-icons/lib/fa/jsfiddle.d.ts index e17414bd20..8ff305e6b0 100644 --- a/types/react-icons/lib/fa/jsfiddle.d.ts +++ b/types/react-icons/lib/fa/jsfiddle.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaJsfiddle extends React.Component { } +declare class FaJsfiddle extends React.Component { } +export = FaJsfiddle; diff --git a/types/react-icons/lib/fa/key.d.ts b/types/react-icons/lib/fa/key.d.ts index b1fc11d702..cf50ee7c88 100644 --- a/types/react-icons/lib/fa/key.d.ts +++ b/types/react-icons/lib/fa/key.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaKey extends React.Component { } +declare class FaKey extends React.Component { } +export = FaKey; diff --git a/types/react-icons/lib/fa/keyboard-o.d.ts b/types/react-icons/lib/fa/keyboard-o.d.ts index d8676809fd..1c63b5099a 100644 --- a/types/react-icons/lib/fa/keyboard-o.d.ts +++ b/types/react-icons/lib/fa/keyboard-o.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaKeyboardO extends React.Component { } +declare class FaKeyboardO extends React.Component { } +export = FaKeyboardO; diff --git a/types/react-icons/lib/fa/krw.d.ts b/types/react-icons/lib/fa/krw.d.ts index a23710bcfd..79de06001e 100644 --- a/types/react-icons/lib/fa/krw.d.ts +++ b/types/react-icons/lib/fa/krw.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaKrw extends React.Component { } +declare class FaKrw extends React.Component { } +export = FaKrw; diff --git a/types/react-icons/lib/fa/language.d.ts b/types/react-icons/lib/fa/language.d.ts index a04950506c..25b2433653 100644 --- a/types/react-icons/lib/fa/language.d.ts +++ b/types/react-icons/lib/fa/language.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaLanguage extends React.Component { } +declare class FaLanguage extends React.Component { } +export = FaLanguage; diff --git a/types/react-icons/lib/fa/laptop.d.ts b/types/react-icons/lib/fa/laptop.d.ts index d13d583fb7..eec3856a86 100644 --- a/types/react-icons/lib/fa/laptop.d.ts +++ b/types/react-icons/lib/fa/laptop.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaLaptop extends React.Component { } +declare class FaLaptop extends React.Component { } +export = FaLaptop; diff --git a/types/react-icons/lib/fa/lastfm-square.d.ts b/types/react-icons/lib/fa/lastfm-square.d.ts index 057f801895..22115486cd 100644 --- a/types/react-icons/lib/fa/lastfm-square.d.ts +++ b/types/react-icons/lib/fa/lastfm-square.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaLastfmSquare extends React.Component { } +declare class FaLastfmSquare extends React.Component { } +export = FaLastfmSquare; diff --git a/types/react-icons/lib/fa/lastfm.d.ts b/types/react-icons/lib/fa/lastfm.d.ts index c8124c95ce..d155de9853 100644 --- a/types/react-icons/lib/fa/lastfm.d.ts +++ b/types/react-icons/lib/fa/lastfm.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaLastfm extends React.Component { } +declare class FaLastfm extends React.Component { } +export = FaLastfm; diff --git a/types/react-icons/lib/fa/leaf.d.ts b/types/react-icons/lib/fa/leaf.d.ts index 9c4514a54f..330210dddf 100644 --- a/types/react-icons/lib/fa/leaf.d.ts +++ b/types/react-icons/lib/fa/leaf.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaLeaf extends React.Component { } +declare class FaLeaf extends React.Component { } +export = FaLeaf; diff --git a/types/react-icons/lib/fa/leanpub.d.ts b/types/react-icons/lib/fa/leanpub.d.ts index de2024c7a8..bbae6093d9 100644 --- a/types/react-icons/lib/fa/leanpub.d.ts +++ b/types/react-icons/lib/fa/leanpub.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaLeanpub extends React.Component { } +declare class FaLeanpub extends React.Component { } +export = FaLeanpub; diff --git a/types/react-icons/lib/fa/lemon-o.d.ts b/types/react-icons/lib/fa/lemon-o.d.ts index 74886cb79c..dc2e3f8f72 100644 --- a/types/react-icons/lib/fa/lemon-o.d.ts +++ b/types/react-icons/lib/fa/lemon-o.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaLemonO extends React.Component { } +declare class FaLemonO extends React.Component { } +export = FaLemonO; diff --git a/types/react-icons/lib/fa/level-down.d.ts b/types/react-icons/lib/fa/level-down.d.ts index caba9cef44..b906bf1a0e 100644 --- a/types/react-icons/lib/fa/level-down.d.ts +++ b/types/react-icons/lib/fa/level-down.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaLevelDown extends React.Component { } +declare class FaLevelDown extends React.Component { } +export = FaLevelDown; diff --git a/types/react-icons/lib/fa/level-up.d.ts b/types/react-icons/lib/fa/level-up.d.ts index 977a2d2c97..aaa9f46a90 100644 --- a/types/react-icons/lib/fa/level-up.d.ts +++ b/types/react-icons/lib/fa/level-up.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaLevelUp extends React.Component { } +declare class FaLevelUp extends React.Component { } +export = FaLevelUp; diff --git a/types/react-icons/lib/fa/life-bouy.d.ts b/types/react-icons/lib/fa/life-bouy.d.ts index 85205b3e62..d6a5ab382b 100644 --- a/types/react-icons/lib/fa/life-bouy.d.ts +++ b/types/react-icons/lib/fa/life-bouy.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaLifeBouy extends React.Component { } +declare class FaLifeBouy extends React.Component { } +export = FaLifeBouy; diff --git a/types/react-icons/lib/fa/lightbulb-o.d.ts b/types/react-icons/lib/fa/lightbulb-o.d.ts index 48646e6261..3dfc3d7e82 100644 --- a/types/react-icons/lib/fa/lightbulb-o.d.ts +++ b/types/react-icons/lib/fa/lightbulb-o.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaLightbulbO extends React.Component { } +declare class FaLightbulbO extends React.Component { } +export = FaLightbulbO; diff --git a/types/react-icons/lib/fa/line-chart.d.ts b/types/react-icons/lib/fa/line-chart.d.ts index f0109467e2..0a08799a31 100644 --- a/types/react-icons/lib/fa/line-chart.d.ts +++ b/types/react-icons/lib/fa/line-chart.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaLineChart extends React.Component { } +declare class FaLineChart extends React.Component { } +export = FaLineChart; diff --git a/types/react-icons/lib/fa/linkedin-square.d.ts b/types/react-icons/lib/fa/linkedin-square.d.ts index 2c538f5349..be3ee736d6 100644 --- a/types/react-icons/lib/fa/linkedin-square.d.ts +++ b/types/react-icons/lib/fa/linkedin-square.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaLinkedinSquare extends React.Component { } +declare class FaLinkedinSquare extends React.Component { } +export = FaLinkedinSquare; diff --git a/types/react-icons/lib/fa/linkedin.d.ts b/types/react-icons/lib/fa/linkedin.d.ts index 7e011b8f8f..2f6d18f996 100644 --- a/types/react-icons/lib/fa/linkedin.d.ts +++ b/types/react-icons/lib/fa/linkedin.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaLinkedin extends React.Component { } +declare class FaLinkedin extends React.Component { } +export = FaLinkedin; diff --git a/types/react-icons/lib/fa/linux.d.ts b/types/react-icons/lib/fa/linux.d.ts index 55eb44cddb..1e2f751318 100644 --- a/types/react-icons/lib/fa/linux.d.ts +++ b/types/react-icons/lib/fa/linux.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaLinux extends React.Component { } +declare class FaLinux extends React.Component { } +export = FaLinux; diff --git a/types/react-icons/lib/fa/list-alt.d.ts b/types/react-icons/lib/fa/list-alt.d.ts index 4987907f75..168926a8e8 100644 --- a/types/react-icons/lib/fa/list-alt.d.ts +++ b/types/react-icons/lib/fa/list-alt.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaListAlt extends React.Component { } +declare class FaListAlt extends React.Component { } +export = FaListAlt; diff --git a/types/react-icons/lib/fa/list-ol.d.ts b/types/react-icons/lib/fa/list-ol.d.ts index 25c4509dd8..a741c78a9d 100644 --- a/types/react-icons/lib/fa/list-ol.d.ts +++ b/types/react-icons/lib/fa/list-ol.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaListOl extends React.Component { } +declare class FaListOl extends React.Component { } +export = FaListOl; diff --git a/types/react-icons/lib/fa/list-ul.d.ts b/types/react-icons/lib/fa/list-ul.d.ts index be0d49470c..38d0b3db98 100644 --- a/types/react-icons/lib/fa/list-ul.d.ts +++ b/types/react-icons/lib/fa/list-ul.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaListUl extends React.Component { } +declare class FaListUl extends React.Component { } +export = FaListUl; diff --git a/types/react-icons/lib/fa/list.d.ts b/types/react-icons/lib/fa/list.d.ts index 9b98e5d332..f17ee7343f 100644 --- a/types/react-icons/lib/fa/list.d.ts +++ b/types/react-icons/lib/fa/list.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaList extends React.Component { } +declare class FaList extends React.Component { } +export = FaList; diff --git a/types/react-icons/lib/fa/location-arrow.d.ts b/types/react-icons/lib/fa/location-arrow.d.ts index 67e69c5917..91d33d7ff4 100644 --- a/types/react-icons/lib/fa/location-arrow.d.ts +++ b/types/react-icons/lib/fa/location-arrow.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaLocationArrow extends React.Component { } +declare class FaLocationArrow extends React.Component { } +export = FaLocationArrow; diff --git a/types/react-icons/lib/fa/lock.d.ts b/types/react-icons/lib/fa/lock.d.ts index 751ba49fd6..3a200b8bfc 100644 --- a/types/react-icons/lib/fa/lock.d.ts +++ b/types/react-icons/lib/fa/lock.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaLock extends React.Component { } +declare class FaLock extends React.Component { } +export = FaLock; diff --git a/types/react-icons/lib/fa/long-arrow-down.d.ts b/types/react-icons/lib/fa/long-arrow-down.d.ts index 81282ef698..85adda07a2 100644 --- a/types/react-icons/lib/fa/long-arrow-down.d.ts +++ b/types/react-icons/lib/fa/long-arrow-down.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaLongArrowDown extends React.Component { } +declare class FaLongArrowDown extends React.Component { } +export = FaLongArrowDown; diff --git a/types/react-icons/lib/fa/long-arrow-left.d.ts b/types/react-icons/lib/fa/long-arrow-left.d.ts index 673d2e6a36..3d6ad0f59a 100644 --- a/types/react-icons/lib/fa/long-arrow-left.d.ts +++ b/types/react-icons/lib/fa/long-arrow-left.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaLongArrowLeft extends React.Component { } +declare class FaLongArrowLeft extends React.Component { } +export = FaLongArrowLeft; diff --git a/types/react-icons/lib/fa/long-arrow-right.d.ts b/types/react-icons/lib/fa/long-arrow-right.d.ts index 1fafea7de3..b67d25b068 100644 --- a/types/react-icons/lib/fa/long-arrow-right.d.ts +++ b/types/react-icons/lib/fa/long-arrow-right.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaLongArrowRight extends React.Component { } +declare class FaLongArrowRight extends React.Component { } +export = FaLongArrowRight; diff --git a/types/react-icons/lib/fa/long-arrow-up.d.ts b/types/react-icons/lib/fa/long-arrow-up.d.ts index 6982118eef..844ceabee7 100644 --- a/types/react-icons/lib/fa/long-arrow-up.d.ts +++ b/types/react-icons/lib/fa/long-arrow-up.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaLongArrowUp extends React.Component { } +declare class FaLongArrowUp extends React.Component { } +export = FaLongArrowUp; diff --git a/types/react-icons/lib/fa/low-vision.d.ts b/types/react-icons/lib/fa/low-vision.d.ts index 60f19827fa..2e86c1f55b 100644 --- a/types/react-icons/lib/fa/low-vision.d.ts +++ b/types/react-icons/lib/fa/low-vision.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaLowVision extends React.Component { } +declare class FaLowVision extends React.Component { } +export = FaLowVision; diff --git a/types/react-icons/lib/fa/magic.d.ts b/types/react-icons/lib/fa/magic.d.ts index 7dca91beb2..adbed81f80 100644 --- a/types/react-icons/lib/fa/magic.d.ts +++ b/types/react-icons/lib/fa/magic.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaMagic extends React.Component { } +declare class FaMagic extends React.Component { } +export = FaMagic; diff --git a/types/react-icons/lib/fa/magnet.d.ts b/types/react-icons/lib/fa/magnet.d.ts index 11cc56ef42..b6933258f5 100644 --- a/types/react-icons/lib/fa/magnet.d.ts +++ b/types/react-icons/lib/fa/magnet.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaMagnet extends React.Component { } +declare class FaMagnet extends React.Component { } +export = FaMagnet; diff --git a/types/react-icons/lib/fa/mail-forward.d.ts b/types/react-icons/lib/fa/mail-forward.d.ts index 84585713b8..61680d6ff7 100644 --- a/types/react-icons/lib/fa/mail-forward.d.ts +++ b/types/react-icons/lib/fa/mail-forward.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaMailForward extends React.Component { } +declare class FaMailForward extends React.Component { } +export = FaMailForward; diff --git a/types/react-icons/lib/fa/mail-reply-all.d.ts b/types/react-icons/lib/fa/mail-reply-all.d.ts index 7c8c4ed7eb..edad2bb045 100644 --- a/types/react-icons/lib/fa/mail-reply-all.d.ts +++ b/types/react-icons/lib/fa/mail-reply-all.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaMailReplyAll extends React.Component { } +declare class FaMailReplyAll extends React.Component { } +export = FaMailReplyAll; diff --git a/types/react-icons/lib/fa/mail-reply.d.ts b/types/react-icons/lib/fa/mail-reply.d.ts index 571aa76b4f..d179e93960 100644 --- a/types/react-icons/lib/fa/mail-reply.d.ts +++ b/types/react-icons/lib/fa/mail-reply.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaMailReply extends React.Component { } +declare class FaMailReply extends React.Component { } +export = FaMailReply; diff --git a/types/react-icons/lib/fa/male.d.ts b/types/react-icons/lib/fa/male.d.ts index 9bb9f216af..09dabdb0e6 100644 --- a/types/react-icons/lib/fa/male.d.ts +++ b/types/react-icons/lib/fa/male.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaMale extends React.Component { } +declare class FaMale extends React.Component { } +export = FaMale; diff --git a/types/react-icons/lib/fa/map-marker.d.ts b/types/react-icons/lib/fa/map-marker.d.ts index 116680b4b7..abd5361f41 100644 --- a/types/react-icons/lib/fa/map-marker.d.ts +++ b/types/react-icons/lib/fa/map-marker.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaMapMarker extends React.Component { } +declare class FaMapMarker extends React.Component { } +export = FaMapMarker; diff --git a/types/react-icons/lib/fa/map-o.d.ts b/types/react-icons/lib/fa/map-o.d.ts index 366c05d45b..587fc2d689 100644 --- a/types/react-icons/lib/fa/map-o.d.ts +++ b/types/react-icons/lib/fa/map-o.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaMapO extends React.Component { } +declare class FaMapO extends React.Component { } +export = FaMapO; diff --git a/types/react-icons/lib/fa/map-pin.d.ts b/types/react-icons/lib/fa/map-pin.d.ts index e46a8ca0e3..9ed4ed4c3a 100644 --- a/types/react-icons/lib/fa/map-pin.d.ts +++ b/types/react-icons/lib/fa/map-pin.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaMapPin extends React.Component { } +declare class FaMapPin extends React.Component { } +export = FaMapPin; diff --git a/types/react-icons/lib/fa/map-signs.d.ts b/types/react-icons/lib/fa/map-signs.d.ts index 4c4a9c2f69..fab1cfec7a 100644 --- a/types/react-icons/lib/fa/map-signs.d.ts +++ b/types/react-icons/lib/fa/map-signs.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaMapSigns extends React.Component { } +declare class FaMapSigns extends React.Component { } +export = FaMapSigns; diff --git a/types/react-icons/lib/fa/map.d.ts b/types/react-icons/lib/fa/map.d.ts index 52c55baf7f..e7fcc24810 100644 --- a/types/react-icons/lib/fa/map.d.ts +++ b/types/react-icons/lib/fa/map.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaMap extends React.Component { } +declare class FaMap extends React.Component { } +export = FaMap; diff --git a/types/react-icons/lib/fa/mars-double.d.ts b/types/react-icons/lib/fa/mars-double.d.ts index c6f7f4aa5d..23ae057446 100644 --- a/types/react-icons/lib/fa/mars-double.d.ts +++ b/types/react-icons/lib/fa/mars-double.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaMarsDouble extends React.Component { } +declare class FaMarsDouble extends React.Component { } +export = FaMarsDouble; diff --git a/types/react-icons/lib/fa/mars-stroke-h.d.ts b/types/react-icons/lib/fa/mars-stroke-h.d.ts index e6d9f035d0..8c413b89a1 100644 --- a/types/react-icons/lib/fa/mars-stroke-h.d.ts +++ b/types/react-icons/lib/fa/mars-stroke-h.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaMarsStrokeH extends React.Component { } +declare class FaMarsStrokeH extends React.Component { } +export = FaMarsStrokeH; diff --git a/types/react-icons/lib/fa/mars-stroke-v.d.ts b/types/react-icons/lib/fa/mars-stroke-v.d.ts index cc1a01a592..7662429ca8 100644 --- a/types/react-icons/lib/fa/mars-stroke-v.d.ts +++ b/types/react-icons/lib/fa/mars-stroke-v.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaMarsStrokeV extends React.Component { } +declare class FaMarsStrokeV extends React.Component { } +export = FaMarsStrokeV; diff --git a/types/react-icons/lib/fa/mars-stroke.d.ts b/types/react-icons/lib/fa/mars-stroke.d.ts index 69e9aec8b5..29c906f503 100644 --- a/types/react-icons/lib/fa/mars-stroke.d.ts +++ b/types/react-icons/lib/fa/mars-stroke.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaMarsStroke extends React.Component { } +declare class FaMarsStroke extends React.Component { } +export = FaMarsStroke; diff --git a/types/react-icons/lib/fa/mars.d.ts b/types/react-icons/lib/fa/mars.d.ts index 7e21f481b4..c98f0b0963 100644 --- a/types/react-icons/lib/fa/mars.d.ts +++ b/types/react-icons/lib/fa/mars.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaMars extends React.Component { } +declare class FaMars extends React.Component { } +export = FaMars; diff --git a/types/react-icons/lib/fa/maxcdn.d.ts b/types/react-icons/lib/fa/maxcdn.d.ts index ee9c0b0546..764a8a7cc9 100644 --- a/types/react-icons/lib/fa/maxcdn.d.ts +++ b/types/react-icons/lib/fa/maxcdn.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaMaxcdn extends React.Component { } +declare class FaMaxcdn extends React.Component { } +export = FaMaxcdn; diff --git a/types/react-icons/lib/fa/meanpath.d.ts b/types/react-icons/lib/fa/meanpath.d.ts index f479c77a85..70aeb9617a 100644 --- a/types/react-icons/lib/fa/meanpath.d.ts +++ b/types/react-icons/lib/fa/meanpath.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaMeanpath extends React.Component { } +declare class FaMeanpath extends React.Component { } +export = FaMeanpath; diff --git a/types/react-icons/lib/fa/medium.d.ts b/types/react-icons/lib/fa/medium.d.ts index a272177d20..178c3fb116 100644 --- a/types/react-icons/lib/fa/medium.d.ts +++ b/types/react-icons/lib/fa/medium.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaMedium extends React.Component { } +declare class FaMedium extends React.Component { } +export = FaMedium; diff --git a/types/react-icons/lib/fa/medkit.d.ts b/types/react-icons/lib/fa/medkit.d.ts index 4de9fc61f9..3b119f1fcb 100644 --- a/types/react-icons/lib/fa/medkit.d.ts +++ b/types/react-icons/lib/fa/medkit.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaMedkit extends React.Component { } +declare class FaMedkit extends React.Component { } +export = FaMedkit; diff --git a/types/react-icons/lib/fa/meh-o.d.ts b/types/react-icons/lib/fa/meh-o.d.ts index 2a07cde429..07f39b354d 100644 --- a/types/react-icons/lib/fa/meh-o.d.ts +++ b/types/react-icons/lib/fa/meh-o.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaMehO extends React.Component { } +declare class FaMehO extends React.Component { } +export = FaMehO; diff --git a/types/react-icons/lib/fa/mercury.d.ts b/types/react-icons/lib/fa/mercury.d.ts index 616714b2fb..1ec67322b1 100644 --- a/types/react-icons/lib/fa/mercury.d.ts +++ b/types/react-icons/lib/fa/mercury.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaMercury extends React.Component { } +declare class FaMercury extends React.Component { } +export = FaMercury; diff --git a/types/react-icons/lib/fa/microphone-slash.d.ts b/types/react-icons/lib/fa/microphone-slash.d.ts index 39ddcefe4b..e57c4c0040 100644 --- a/types/react-icons/lib/fa/microphone-slash.d.ts +++ b/types/react-icons/lib/fa/microphone-slash.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaMicrophoneSlash extends React.Component { } +declare class FaMicrophoneSlash extends React.Component { } +export = FaMicrophoneSlash; diff --git a/types/react-icons/lib/fa/microphone.d.ts b/types/react-icons/lib/fa/microphone.d.ts index b12fcd389c..30306ea4f7 100644 --- a/types/react-icons/lib/fa/microphone.d.ts +++ b/types/react-icons/lib/fa/microphone.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaMicrophone extends React.Component { } +declare class FaMicrophone extends React.Component { } +export = FaMicrophone; diff --git a/types/react-icons/lib/fa/minus-circle.d.ts b/types/react-icons/lib/fa/minus-circle.d.ts index 839cee0dbe..274e152b11 100644 --- a/types/react-icons/lib/fa/minus-circle.d.ts +++ b/types/react-icons/lib/fa/minus-circle.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaMinusCircle extends React.Component { } +declare class FaMinusCircle extends React.Component { } +export = FaMinusCircle; diff --git a/types/react-icons/lib/fa/minus-square-o.d.ts b/types/react-icons/lib/fa/minus-square-o.d.ts index d2bfd3dbba..413f6b5da1 100644 --- a/types/react-icons/lib/fa/minus-square-o.d.ts +++ b/types/react-icons/lib/fa/minus-square-o.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaMinusSquareO extends React.Component { } +declare class FaMinusSquareO extends React.Component { } +export = FaMinusSquareO; diff --git a/types/react-icons/lib/fa/minus-square.d.ts b/types/react-icons/lib/fa/minus-square.d.ts index 8946d33f30..a4e9551139 100644 --- a/types/react-icons/lib/fa/minus-square.d.ts +++ b/types/react-icons/lib/fa/minus-square.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaMinusSquare extends React.Component { } +declare class FaMinusSquare extends React.Component { } +export = FaMinusSquare; diff --git a/types/react-icons/lib/fa/minus.d.ts b/types/react-icons/lib/fa/minus.d.ts index e7ae38ca8e..6d534eef94 100644 --- a/types/react-icons/lib/fa/minus.d.ts +++ b/types/react-icons/lib/fa/minus.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaMinus extends React.Component { } +declare class FaMinus extends React.Component { } +export = FaMinus; diff --git a/types/react-icons/lib/fa/mixcloud.d.ts b/types/react-icons/lib/fa/mixcloud.d.ts index 51b4f23bf2..5a7c07d730 100644 --- a/types/react-icons/lib/fa/mixcloud.d.ts +++ b/types/react-icons/lib/fa/mixcloud.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaMixcloud extends React.Component { } +declare class FaMixcloud extends React.Component { } +export = FaMixcloud; diff --git a/types/react-icons/lib/fa/mobile.d.ts b/types/react-icons/lib/fa/mobile.d.ts index e15d976418..b05eb0cd2f 100644 --- a/types/react-icons/lib/fa/mobile.d.ts +++ b/types/react-icons/lib/fa/mobile.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaMobile extends React.Component { } +declare class FaMobile extends React.Component { } +export = FaMobile; diff --git a/types/react-icons/lib/fa/modx.d.ts b/types/react-icons/lib/fa/modx.d.ts index c08b2d39fa..e54efad1ce 100644 --- a/types/react-icons/lib/fa/modx.d.ts +++ b/types/react-icons/lib/fa/modx.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaModx extends React.Component { } +declare class FaModx extends React.Component { } +export = FaModx; diff --git a/types/react-icons/lib/fa/money.d.ts b/types/react-icons/lib/fa/money.d.ts index 4e14ce5956..0aa8c505ae 100644 --- a/types/react-icons/lib/fa/money.d.ts +++ b/types/react-icons/lib/fa/money.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaMoney extends React.Component { } +declare class FaMoney extends React.Component { } +export = FaMoney; diff --git a/types/react-icons/lib/fa/moon-o.d.ts b/types/react-icons/lib/fa/moon-o.d.ts index c1c2371ed0..bbcf6097ac 100644 --- a/types/react-icons/lib/fa/moon-o.d.ts +++ b/types/react-icons/lib/fa/moon-o.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaMoonO extends React.Component { } +declare class FaMoonO extends React.Component { } +export = FaMoonO; diff --git a/types/react-icons/lib/fa/motorcycle.d.ts b/types/react-icons/lib/fa/motorcycle.d.ts index 2fd0d87361..428b96d4be 100644 --- a/types/react-icons/lib/fa/motorcycle.d.ts +++ b/types/react-icons/lib/fa/motorcycle.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaMotorcycle extends React.Component { } +declare class FaMotorcycle extends React.Component { } +export = FaMotorcycle; diff --git a/types/react-icons/lib/fa/mouse-pointer.d.ts b/types/react-icons/lib/fa/mouse-pointer.d.ts index 8c220aa32b..cd05b52643 100644 --- a/types/react-icons/lib/fa/mouse-pointer.d.ts +++ b/types/react-icons/lib/fa/mouse-pointer.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaMousePointer extends React.Component { } +declare class FaMousePointer extends React.Component { } +export = FaMousePointer; diff --git a/types/react-icons/lib/fa/music.d.ts b/types/react-icons/lib/fa/music.d.ts index 711455b587..7b897563e3 100644 --- a/types/react-icons/lib/fa/music.d.ts +++ b/types/react-icons/lib/fa/music.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaMusic extends React.Component { } +declare class FaMusic extends React.Component { } +export = FaMusic; diff --git a/types/react-icons/lib/fa/neuter.d.ts b/types/react-icons/lib/fa/neuter.d.ts index a5ce0a9c93..54bc040a21 100644 --- a/types/react-icons/lib/fa/neuter.d.ts +++ b/types/react-icons/lib/fa/neuter.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaNeuter extends React.Component { } +declare class FaNeuter extends React.Component { } +export = FaNeuter; diff --git a/types/react-icons/lib/fa/newspaper-o.d.ts b/types/react-icons/lib/fa/newspaper-o.d.ts index 6f7f62737e..04afa361a9 100644 --- a/types/react-icons/lib/fa/newspaper-o.d.ts +++ b/types/react-icons/lib/fa/newspaper-o.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaNewspaperO extends React.Component { } +declare class FaNewspaperO extends React.Component { } +export = FaNewspaperO; diff --git a/types/react-icons/lib/fa/object-group.d.ts b/types/react-icons/lib/fa/object-group.d.ts index 5454030a44..2f584e9792 100644 --- a/types/react-icons/lib/fa/object-group.d.ts +++ b/types/react-icons/lib/fa/object-group.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaObjectGroup extends React.Component { } +declare class FaObjectGroup extends React.Component { } +export = FaObjectGroup; diff --git a/types/react-icons/lib/fa/object-ungroup.d.ts b/types/react-icons/lib/fa/object-ungroup.d.ts index 705abb0623..64ef562d0b 100644 --- a/types/react-icons/lib/fa/object-ungroup.d.ts +++ b/types/react-icons/lib/fa/object-ungroup.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaObjectUngroup extends React.Component { } +declare class FaObjectUngroup extends React.Component { } +export = FaObjectUngroup; diff --git a/types/react-icons/lib/fa/odnoklassniki-square.d.ts b/types/react-icons/lib/fa/odnoklassniki-square.d.ts index d6d1c3fb5e..9eef0f65bc 100644 --- a/types/react-icons/lib/fa/odnoklassniki-square.d.ts +++ b/types/react-icons/lib/fa/odnoklassniki-square.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaOdnoklassnikiSquare extends React.Component { } +declare class FaOdnoklassnikiSquare extends React.Component { } +export = FaOdnoklassnikiSquare; diff --git a/types/react-icons/lib/fa/odnoklassniki.d.ts b/types/react-icons/lib/fa/odnoklassniki.d.ts index c9cdfc3f99..bd08137730 100644 --- a/types/react-icons/lib/fa/odnoklassniki.d.ts +++ b/types/react-icons/lib/fa/odnoklassniki.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaOdnoklassniki extends React.Component { } +declare class FaOdnoklassniki extends React.Component { } +export = FaOdnoklassniki; diff --git a/types/react-icons/lib/fa/opencart.d.ts b/types/react-icons/lib/fa/opencart.d.ts index dde7963cd7..6b91510b98 100644 --- a/types/react-icons/lib/fa/opencart.d.ts +++ b/types/react-icons/lib/fa/opencart.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaOpencart extends React.Component { } +declare class FaOpencart extends React.Component { } +export = FaOpencart; diff --git a/types/react-icons/lib/fa/openid.d.ts b/types/react-icons/lib/fa/openid.d.ts index 763d13e24d..a2440e94c0 100644 --- a/types/react-icons/lib/fa/openid.d.ts +++ b/types/react-icons/lib/fa/openid.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaOpenid extends React.Component { } +declare class FaOpenid extends React.Component { } +export = FaOpenid; diff --git a/types/react-icons/lib/fa/opera.d.ts b/types/react-icons/lib/fa/opera.d.ts index c66bee6dca..5e4a4ad5d1 100644 --- a/types/react-icons/lib/fa/opera.d.ts +++ b/types/react-icons/lib/fa/opera.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaOpera extends React.Component { } +declare class FaOpera extends React.Component { } +export = FaOpera; diff --git a/types/react-icons/lib/fa/optin-monster.d.ts b/types/react-icons/lib/fa/optin-monster.d.ts index 3a4973ca67..35a77228aa 100644 --- a/types/react-icons/lib/fa/optin-monster.d.ts +++ b/types/react-icons/lib/fa/optin-monster.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaOptinMonster extends React.Component { } +declare class FaOptinMonster extends React.Component { } +export = FaOptinMonster; diff --git a/types/react-icons/lib/fa/pagelines.d.ts b/types/react-icons/lib/fa/pagelines.d.ts index b9db5fd4ab..48db91303e 100644 --- a/types/react-icons/lib/fa/pagelines.d.ts +++ b/types/react-icons/lib/fa/pagelines.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaPagelines extends React.Component { } +declare class FaPagelines extends React.Component { } +export = FaPagelines; diff --git a/types/react-icons/lib/fa/paint-brush.d.ts b/types/react-icons/lib/fa/paint-brush.d.ts index 4d56d06006..e00ca97541 100644 --- a/types/react-icons/lib/fa/paint-brush.d.ts +++ b/types/react-icons/lib/fa/paint-brush.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaPaintBrush extends React.Component { } +declare class FaPaintBrush extends React.Component { } +export = FaPaintBrush; diff --git a/types/react-icons/lib/fa/paper-plane-o.d.ts b/types/react-icons/lib/fa/paper-plane-o.d.ts index 5fa53c13f7..b21b883cde 100644 --- a/types/react-icons/lib/fa/paper-plane-o.d.ts +++ b/types/react-icons/lib/fa/paper-plane-o.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaPaperPlaneO extends React.Component { } +declare class FaPaperPlaneO extends React.Component { } +export = FaPaperPlaneO; diff --git a/types/react-icons/lib/fa/paper-plane.d.ts b/types/react-icons/lib/fa/paper-plane.d.ts index 18d0a9fada..f0396a87cf 100644 --- a/types/react-icons/lib/fa/paper-plane.d.ts +++ b/types/react-icons/lib/fa/paper-plane.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaPaperPlane extends React.Component { } +declare class FaPaperPlane extends React.Component { } +export = FaPaperPlane; diff --git a/types/react-icons/lib/fa/paperclip.d.ts b/types/react-icons/lib/fa/paperclip.d.ts index e037d9d2a9..073d3f8172 100644 --- a/types/react-icons/lib/fa/paperclip.d.ts +++ b/types/react-icons/lib/fa/paperclip.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaPaperclip extends React.Component { } +declare class FaPaperclip extends React.Component { } +export = FaPaperclip; diff --git a/types/react-icons/lib/fa/paragraph.d.ts b/types/react-icons/lib/fa/paragraph.d.ts index 2895b28ecb..16f3b33755 100644 --- a/types/react-icons/lib/fa/paragraph.d.ts +++ b/types/react-icons/lib/fa/paragraph.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaParagraph extends React.Component { } +declare class FaParagraph extends React.Component { } +export = FaParagraph; diff --git a/types/react-icons/lib/fa/pause-circle-o.d.ts b/types/react-icons/lib/fa/pause-circle-o.d.ts index 4b02099cf7..237f29bba3 100644 --- a/types/react-icons/lib/fa/pause-circle-o.d.ts +++ b/types/react-icons/lib/fa/pause-circle-o.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaPauseCircleO extends React.Component { } +declare class FaPauseCircleO extends React.Component { } +export = FaPauseCircleO; diff --git a/types/react-icons/lib/fa/pause-circle.d.ts b/types/react-icons/lib/fa/pause-circle.d.ts index 96fcbf12d2..e596ec02db 100644 --- a/types/react-icons/lib/fa/pause-circle.d.ts +++ b/types/react-icons/lib/fa/pause-circle.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaPauseCircle extends React.Component { } +declare class FaPauseCircle extends React.Component { } +export = FaPauseCircle; diff --git a/types/react-icons/lib/fa/pause.d.ts b/types/react-icons/lib/fa/pause.d.ts index 87af546f21..d84c25805f 100644 --- a/types/react-icons/lib/fa/pause.d.ts +++ b/types/react-icons/lib/fa/pause.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaPause extends React.Component { } +declare class FaPause extends React.Component { } +export = FaPause; diff --git a/types/react-icons/lib/fa/paw.d.ts b/types/react-icons/lib/fa/paw.d.ts index 6f88ab466f..6d0dd51dad 100644 --- a/types/react-icons/lib/fa/paw.d.ts +++ b/types/react-icons/lib/fa/paw.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaPaw extends React.Component { } +declare class FaPaw extends React.Component { } +export = FaPaw; diff --git a/types/react-icons/lib/fa/paypal.d.ts b/types/react-icons/lib/fa/paypal.d.ts index d2878fe144..ac59970a20 100644 --- a/types/react-icons/lib/fa/paypal.d.ts +++ b/types/react-icons/lib/fa/paypal.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaPaypal extends React.Component { } +declare class FaPaypal extends React.Component { } +export = FaPaypal; diff --git a/types/react-icons/lib/fa/pencil-square.d.ts b/types/react-icons/lib/fa/pencil-square.d.ts index ae8d368315..d9853f6fea 100644 --- a/types/react-icons/lib/fa/pencil-square.d.ts +++ b/types/react-icons/lib/fa/pencil-square.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaPencilSquare extends React.Component { } +declare class FaPencilSquare extends React.Component { } +export = FaPencilSquare; diff --git a/types/react-icons/lib/fa/pencil.d.ts b/types/react-icons/lib/fa/pencil.d.ts index bae947d1d9..f4624c1974 100644 --- a/types/react-icons/lib/fa/pencil.d.ts +++ b/types/react-icons/lib/fa/pencil.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaPencil extends React.Component { } +declare class FaPencil extends React.Component { } +export = FaPencil; diff --git a/types/react-icons/lib/fa/percent.d.ts b/types/react-icons/lib/fa/percent.d.ts index 447838a4d4..6c63e0b1b0 100644 --- a/types/react-icons/lib/fa/percent.d.ts +++ b/types/react-icons/lib/fa/percent.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaPercent extends React.Component { } +declare class FaPercent extends React.Component { } +export = FaPercent; diff --git a/types/react-icons/lib/fa/phone-square.d.ts b/types/react-icons/lib/fa/phone-square.d.ts index 8595e9338b..c64fac18e4 100644 --- a/types/react-icons/lib/fa/phone-square.d.ts +++ b/types/react-icons/lib/fa/phone-square.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaPhoneSquare extends React.Component { } +declare class FaPhoneSquare extends React.Component { } +export = FaPhoneSquare; diff --git a/types/react-icons/lib/fa/phone.d.ts b/types/react-icons/lib/fa/phone.d.ts index 985d9a8867..7c9113a801 100644 --- a/types/react-icons/lib/fa/phone.d.ts +++ b/types/react-icons/lib/fa/phone.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaPhone extends React.Component { } +declare class FaPhone extends React.Component { } +export = FaPhone; diff --git a/types/react-icons/lib/fa/pie-chart.d.ts b/types/react-icons/lib/fa/pie-chart.d.ts index b5bd5b2c5c..b1f1532a75 100644 --- a/types/react-icons/lib/fa/pie-chart.d.ts +++ b/types/react-icons/lib/fa/pie-chart.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaPieChart extends React.Component { } +declare class FaPieChart extends React.Component { } +export = FaPieChart; diff --git a/types/react-icons/lib/fa/pied-piper-alt.d.ts b/types/react-icons/lib/fa/pied-piper-alt.d.ts index 8a23255cad..c3e62c90c1 100644 --- a/types/react-icons/lib/fa/pied-piper-alt.d.ts +++ b/types/react-icons/lib/fa/pied-piper-alt.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaPiedPiperAlt extends React.Component { } +declare class FaPiedPiperAlt extends React.Component { } +export = FaPiedPiperAlt; diff --git a/types/react-icons/lib/fa/pied-piper.d.ts b/types/react-icons/lib/fa/pied-piper.d.ts index e925634cd2..bcdea4439a 100644 --- a/types/react-icons/lib/fa/pied-piper.d.ts +++ b/types/react-icons/lib/fa/pied-piper.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaPiedPiper extends React.Component { } +declare class FaPiedPiper extends React.Component { } +export = FaPiedPiper; diff --git a/types/react-icons/lib/fa/pinterest-p.d.ts b/types/react-icons/lib/fa/pinterest-p.d.ts index c53adc8749..5387cd9430 100644 --- a/types/react-icons/lib/fa/pinterest-p.d.ts +++ b/types/react-icons/lib/fa/pinterest-p.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaPinterestP extends React.Component { } +declare class FaPinterestP extends React.Component { } +export = FaPinterestP; diff --git a/types/react-icons/lib/fa/pinterest-square.d.ts b/types/react-icons/lib/fa/pinterest-square.d.ts index a90c930b91..9f9dbb3869 100644 --- a/types/react-icons/lib/fa/pinterest-square.d.ts +++ b/types/react-icons/lib/fa/pinterest-square.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaPinterestSquare extends React.Component { } +declare class FaPinterestSquare extends React.Component { } +export = FaPinterestSquare; diff --git a/types/react-icons/lib/fa/pinterest.d.ts b/types/react-icons/lib/fa/pinterest.d.ts index c380cf2092..cc4dd7d77b 100644 --- a/types/react-icons/lib/fa/pinterest.d.ts +++ b/types/react-icons/lib/fa/pinterest.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaPinterest extends React.Component { } +declare class FaPinterest extends React.Component { } +export = FaPinterest; diff --git a/types/react-icons/lib/fa/plane.d.ts b/types/react-icons/lib/fa/plane.d.ts index 13373d06d7..d8c14730b6 100644 --- a/types/react-icons/lib/fa/plane.d.ts +++ b/types/react-icons/lib/fa/plane.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaPlane extends React.Component { } +declare class FaPlane extends React.Component { } +export = FaPlane; diff --git a/types/react-icons/lib/fa/play-circle-o.d.ts b/types/react-icons/lib/fa/play-circle-o.d.ts index 7fa9627c4c..eff8fcd09f 100644 --- a/types/react-icons/lib/fa/play-circle-o.d.ts +++ b/types/react-icons/lib/fa/play-circle-o.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaPlayCircleO extends React.Component { } +declare class FaPlayCircleO extends React.Component { } +export = FaPlayCircleO; diff --git a/types/react-icons/lib/fa/play-circle.d.ts b/types/react-icons/lib/fa/play-circle.d.ts index ea4f568b34..850c43afb9 100644 --- a/types/react-icons/lib/fa/play-circle.d.ts +++ b/types/react-icons/lib/fa/play-circle.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaPlayCircle extends React.Component { } +declare class FaPlayCircle extends React.Component { } +export = FaPlayCircle; diff --git a/types/react-icons/lib/fa/play.d.ts b/types/react-icons/lib/fa/play.d.ts index f6c6dafb12..54a66a1994 100644 --- a/types/react-icons/lib/fa/play.d.ts +++ b/types/react-icons/lib/fa/play.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaPlay extends React.Component { } +declare class FaPlay extends React.Component { } +export = FaPlay; diff --git a/types/react-icons/lib/fa/plug.d.ts b/types/react-icons/lib/fa/plug.d.ts index e88fc8c2ae..601b908307 100644 --- a/types/react-icons/lib/fa/plug.d.ts +++ b/types/react-icons/lib/fa/plug.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaPlug extends React.Component { } +declare class FaPlug extends React.Component { } +export = FaPlug; diff --git a/types/react-icons/lib/fa/plus-circle.d.ts b/types/react-icons/lib/fa/plus-circle.d.ts index 9bf8af4e8d..af1595428f 100644 --- a/types/react-icons/lib/fa/plus-circle.d.ts +++ b/types/react-icons/lib/fa/plus-circle.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaPlusCircle extends React.Component { } +declare class FaPlusCircle extends React.Component { } +export = FaPlusCircle; diff --git a/types/react-icons/lib/fa/plus-square-o.d.ts b/types/react-icons/lib/fa/plus-square-o.d.ts index e9b582ec2d..e9fb5b2ca1 100644 --- a/types/react-icons/lib/fa/plus-square-o.d.ts +++ b/types/react-icons/lib/fa/plus-square-o.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaPlusSquareO extends React.Component { } +declare class FaPlusSquareO extends React.Component { } +export = FaPlusSquareO; diff --git a/types/react-icons/lib/fa/plus-square.d.ts b/types/react-icons/lib/fa/plus-square.d.ts index b69d337311..478a80a7a4 100644 --- a/types/react-icons/lib/fa/plus-square.d.ts +++ b/types/react-icons/lib/fa/plus-square.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaPlusSquare extends React.Component { } +declare class FaPlusSquare extends React.Component { } +export = FaPlusSquare; diff --git a/types/react-icons/lib/fa/plus.d.ts b/types/react-icons/lib/fa/plus.d.ts index f6649123fb..3a8423a776 100644 --- a/types/react-icons/lib/fa/plus.d.ts +++ b/types/react-icons/lib/fa/plus.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaPlus extends React.Component { } +declare class FaPlus extends React.Component { } +export = FaPlus; diff --git a/types/react-icons/lib/fa/power-off.d.ts b/types/react-icons/lib/fa/power-off.d.ts index 538e8c9886..091d3ee694 100644 --- a/types/react-icons/lib/fa/power-off.d.ts +++ b/types/react-icons/lib/fa/power-off.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaPowerOff extends React.Component { } +declare class FaPowerOff extends React.Component { } +export = FaPowerOff; diff --git a/types/react-icons/lib/fa/print.d.ts b/types/react-icons/lib/fa/print.d.ts index 5e49c43315..8efbedf76f 100644 --- a/types/react-icons/lib/fa/print.d.ts +++ b/types/react-icons/lib/fa/print.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaPrint extends React.Component { } +declare class FaPrint extends React.Component { } +export = FaPrint; diff --git a/types/react-icons/lib/fa/product-hunt.d.ts b/types/react-icons/lib/fa/product-hunt.d.ts index 2d790f199c..64b2613692 100644 --- a/types/react-icons/lib/fa/product-hunt.d.ts +++ b/types/react-icons/lib/fa/product-hunt.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaProductHunt extends React.Component { } +declare class FaProductHunt extends React.Component { } +export = FaProductHunt; diff --git a/types/react-icons/lib/fa/puzzle-piece.d.ts b/types/react-icons/lib/fa/puzzle-piece.d.ts index f25059cc09..200b21237b 100644 --- a/types/react-icons/lib/fa/puzzle-piece.d.ts +++ b/types/react-icons/lib/fa/puzzle-piece.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaPuzzlePiece extends React.Component { } +declare class FaPuzzlePiece extends React.Component { } +export = FaPuzzlePiece; diff --git a/types/react-icons/lib/fa/qq.d.ts b/types/react-icons/lib/fa/qq.d.ts index ff62c8cf78..84fde8990e 100644 --- a/types/react-icons/lib/fa/qq.d.ts +++ b/types/react-icons/lib/fa/qq.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaQq extends React.Component { } +declare class FaQq extends React.Component { } +export = FaQq; diff --git a/types/react-icons/lib/fa/qrcode.d.ts b/types/react-icons/lib/fa/qrcode.d.ts index 23c52561db..2fba577719 100644 --- a/types/react-icons/lib/fa/qrcode.d.ts +++ b/types/react-icons/lib/fa/qrcode.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaQrcode extends React.Component { } +declare class FaQrcode extends React.Component { } +export = FaQrcode; diff --git a/types/react-icons/lib/fa/question-circle-o.d.ts b/types/react-icons/lib/fa/question-circle-o.d.ts index e3176c764b..6188c56712 100644 --- a/types/react-icons/lib/fa/question-circle-o.d.ts +++ b/types/react-icons/lib/fa/question-circle-o.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaQuestionCircleO extends React.Component { } +declare class FaQuestionCircleO extends React.Component { } +export = FaQuestionCircleO; diff --git a/types/react-icons/lib/fa/question-circle.d.ts b/types/react-icons/lib/fa/question-circle.d.ts index a3474eab77..c822c62d7e 100644 --- a/types/react-icons/lib/fa/question-circle.d.ts +++ b/types/react-icons/lib/fa/question-circle.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaQuestionCircle extends React.Component { } +declare class FaQuestionCircle extends React.Component { } +export = FaQuestionCircle; diff --git a/types/react-icons/lib/fa/question.d.ts b/types/react-icons/lib/fa/question.d.ts index c825b26b4f..0d0756e81f 100644 --- a/types/react-icons/lib/fa/question.d.ts +++ b/types/react-icons/lib/fa/question.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaQuestion extends React.Component { } +declare class FaQuestion extends React.Component { } +export = FaQuestion; diff --git a/types/react-icons/lib/fa/quote-left.d.ts b/types/react-icons/lib/fa/quote-left.d.ts index 904a81703f..ca59dc3f83 100644 --- a/types/react-icons/lib/fa/quote-left.d.ts +++ b/types/react-icons/lib/fa/quote-left.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaQuoteLeft extends React.Component { } +declare class FaQuoteLeft extends React.Component { } +export = FaQuoteLeft; diff --git a/types/react-icons/lib/fa/quote-right.d.ts b/types/react-icons/lib/fa/quote-right.d.ts index 3a4e38743d..fa325866d1 100644 --- a/types/react-icons/lib/fa/quote-right.d.ts +++ b/types/react-icons/lib/fa/quote-right.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaQuoteRight extends React.Component { } +declare class FaQuoteRight extends React.Component { } +export = FaQuoteRight; diff --git a/types/react-icons/lib/fa/ra.d.ts b/types/react-icons/lib/fa/ra.d.ts index da2bd43b87..bf436d8019 100644 --- a/types/react-icons/lib/fa/ra.d.ts +++ b/types/react-icons/lib/fa/ra.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaRa extends React.Component { } +declare class FaRa extends React.Component { } +export = FaRa; diff --git a/types/react-icons/lib/fa/random.d.ts b/types/react-icons/lib/fa/random.d.ts index 02c7c7465e..c3864a6f9a 100644 --- a/types/react-icons/lib/fa/random.d.ts +++ b/types/react-icons/lib/fa/random.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaRandom extends React.Component { } +declare class FaRandom extends React.Component { } +export = FaRandom; diff --git a/types/react-icons/lib/fa/recycle.d.ts b/types/react-icons/lib/fa/recycle.d.ts index 3f2c35bb45..476931ca9a 100644 --- a/types/react-icons/lib/fa/recycle.d.ts +++ b/types/react-icons/lib/fa/recycle.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaRecycle extends React.Component { } +declare class FaRecycle extends React.Component { } +export = FaRecycle; diff --git a/types/react-icons/lib/fa/reddit-alien.d.ts b/types/react-icons/lib/fa/reddit-alien.d.ts index 0c6152a524..27808c318d 100644 --- a/types/react-icons/lib/fa/reddit-alien.d.ts +++ b/types/react-icons/lib/fa/reddit-alien.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaRedditAlien extends React.Component { } +declare class FaRedditAlien extends React.Component { } +export = FaRedditAlien; diff --git a/types/react-icons/lib/fa/reddit-square.d.ts b/types/react-icons/lib/fa/reddit-square.d.ts index 2fe217fd2f..2938b4cd05 100644 --- a/types/react-icons/lib/fa/reddit-square.d.ts +++ b/types/react-icons/lib/fa/reddit-square.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaRedditSquare extends React.Component { } +declare class FaRedditSquare extends React.Component { } +export = FaRedditSquare; diff --git a/types/react-icons/lib/fa/reddit.d.ts b/types/react-icons/lib/fa/reddit.d.ts index 485e46b5b0..51ba88dbb0 100644 --- a/types/react-icons/lib/fa/reddit.d.ts +++ b/types/react-icons/lib/fa/reddit.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaReddit extends React.Component { } +declare class FaReddit extends React.Component { } +export = FaReddit; diff --git a/types/react-icons/lib/fa/refresh.d.ts b/types/react-icons/lib/fa/refresh.d.ts index ebf74b1515..57c4e5cc53 100644 --- a/types/react-icons/lib/fa/refresh.d.ts +++ b/types/react-icons/lib/fa/refresh.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaRefresh extends React.Component { } +declare class FaRefresh extends React.Component { } +export = FaRefresh; diff --git a/types/react-icons/lib/fa/registered.d.ts b/types/react-icons/lib/fa/registered.d.ts index 801dc66200..975627ad01 100644 --- a/types/react-icons/lib/fa/registered.d.ts +++ b/types/react-icons/lib/fa/registered.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaRegistered extends React.Component { } +declare class FaRegistered extends React.Component { } +export = FaRegistered; diff --git a/types/react-icons/lib/fa/renren.d.ts b/types/react-icons/lib/fa/renren.d.ts index 25055289d9..a608ad598d 100644 --- a/types/react-icons/lib/fa/renren.d.ts +++ b/types/react-icons/lib/fa/renren.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaRenren extends React.Component { } +declare class FaRenren extends React.Component { } +export = FaRenren; diff --git a/types/react-icons/lib/fa/repeat.d.ts b/types/react-icons/lib/fa/repeat.d.ts index c3f51ad288..013bfad3b5 100644 --- a/types/react-icons/lib/fa/repeat.d.ts +++ b/types/react-icons/lib/fa/repeat.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaRepeat extends React.Component { } +declare class FaRepeat extends React.Component { } +export = FaRepeat; diff --git a/types/react-icons/lib/fa/retweet.d.ts b/types/react-icons/lib/fa/retweet.d.ts index f18d4bda7b..9c23c1e433 100644 --- a/types/react-icons/lib/fa/retweet.d.ts +++ b/types/react-icons/lib/fa/retweet.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaRetweet extends React.Component { } +declare class FaRetweet extends React.Component { } +export = FaRetweet; diff --git a/types/react-icons/lib/fa/road.d.ts b/types/react-icons/lib/fa/road.d.ts index 0715ec2e7e..9a9afb3a9c 100644 --- a/types/react-icons/lib/fa/road.d.ts +++ b/types/react-icons/lib/fa/road.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaRoad extends React.Component { } +declare class FaRoad extends React.Component { } +export = FaRoad; diff --git a/types/react-icons/lib/fa/rocket.d.ts b/types/react-icons/lib/fa/rocket.d.ts index 2f1c2dc834..e559d0008e 100644 --- a/types/react-icons/lib/fa/rocket.d.ts +++ b/types/react-icons/lib/fa/rocket.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaRocket extends React.Component { } +declare class FaRocket extends React.Component { } +export = FaRocket; diff --git a/types/react-icons/lib/fa/rotate-left.d.ts b/types/react-icons/lib/fa/rotate-left.d.ts index 2a93784c4e..429e6f63b4 100644 --- a/types/react-icons/lib/fa/rotate-left.d.ts +++ b/types/react-icons/lib/fa/rotate-left.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaRotateLeft extends React.Component { } +declare class FaRotateLeft extends React.Component { } +export = FaRotateLeft; diff --git a/types/react-icons/lib/fa/rouble.d.ts b/types/react-icons/lib/fa/rouble.d.ts index 9e61df412e..af4c0d834a 100644 --- a/types/react-icons/lib/fa/rouble.d.ts +++ b/types/react-icons/lib/fa/rouble.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaRouble extends React.Component { } +declare class FaRouble extends React.Component { } +export = FaRouble; diff --git a/types/react-icons/lib/fa/rss-square.d.ts b/types/react-icons/lib/fa/rss-square.d.ts index c840ec5513..ed6bad1e0d 100644 --- a/types/react-icons/lib/fa/rss-square.d.ts +++ b/types/react-icons/lib/fa/rss-square.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaRssSquare extends React.Component { } +declare class FaRssSquare extends React.Component { } +export = FaRssSquare; diff --git a/types/react-icons/lib/fa/safari.d.ts b/types/react-icons/lib/fa/safari.d.ts index 6bb95a70f0..0a4f5ffe3c 100644 --- a/types/react-icons/lib/fa/safari.d.ts +++ b/types/react-icons/lib/fa/safari.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaSafari extends React.Component { } +declare class FaSafari extends React.Component { } +export = FaSafari; diff --git a/types/react-icons/lib/fa/scribd.d.ts b/types/react-icons/lib/fa/scribd.d.ts index 39fc8c40a6..e7be0691fa 100644 --- a/types/react-icons/lib/fa/scribd.d.ts +++ b/types/react-icons/lib/fa/scribd.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaScribd extends React.Component { } +declare class FaScribd extends React.Component { } +export = FaScribd; diff --git a/types/react-icons/lib/fa/search-minus.d.ts b/types/react-icons/lib/fa/search-minus.d.ts index b0045c94f4..7f94b39768 100644 --- a/types/react-icons/lib/fa/search-minus.d.ts +++ b/types/react-icons/lib/fa/search-minus.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaSearchMinus extends React.Component { } +declare class FaSearchMinus extends React.Component { } +export = FaSearchMinus; diff --git a/types/react-icons/lib/fa/search-plus.d.ts b/types/react-icons/lib/fa/search-plus.d.ts index 3aaacffaea..59f8b7d49f 100644 --- a/types/react-icons/lib/fa/search-plus.d.ts +++ b/types/react-icons/lib/fa/search-plus.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaSearchPlus extends React.Component { } +declare class FaSearchPlus extends React.Component { } +export = FaSearchPlus; diff --git a/types/react-icons/lib/fa/search.d.ts b/types/react-icons/lib/fa/search.d.ts index 14c1b8eb87..1223413cc9 100644 --- a/types/react-icons/lib/fa/search.d.ts +++ b/types/react-icons/lib/fa/search.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaSearch extends React.Component { } +declare class FaSearch extends React.Component { } +export = FaSearch; diff --git a/types/react-icons/lib/fa/sellsy.d.ts b/types/react-icons/lib/fa/sellsy.d.ts index 9eb86d3b41..860ba7bfd4 100644 --- a/types/react-icons/lib/fa/sellsy.d.ts +++ b/types/react-icons/lib/fa/sellsy.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaSellsy extends React.Component { } +declare class FaSellsy extends React.Component { } +export = FaSellsy; diff --git a/types/react-icons/lib/fa/server.d.ts b/types/react-icons/lib/fa/server.d.ts index f34b2bef92..6dda352faa 100644 --- a/types/react-icons/lib/fa/server.d.ts +++ b/types/react-icons/lib/fa/server.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaServer extends React.Component { } +declare class FaServer extends React.Component { } +export = FaServer; diff --git a/types/react-icons/lib/fa/share-alt-square.d.ts b/types/react-icons/lib/fa/share-alt-square.d.ts index 31dc918f6c..d36315ee1f 100644 --- a/types/react-icons/lib/fa/share-alt-square.d.ts +++ b/types/react-icons/lib/fa/share-alt-square.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaShareAltSquare extends React.Component { } +declare class FaShareAltSquare extends React.Component { } +export = FaShareAltSquare; diff --git a/types/react-icons/lib/fa/share-alt.d.ts b/types/react-icons/lib/fa/share-alt.d.ts index e95e1b249e..49c3f2ff3b 100644 --- a/types/react-icons/lib/fa/share-alt.d.ts +++ b/types/react-icons/lib/fa/share-alt.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaShareAlt extends React.Component { } +declare class FaShareAlt extends React.Component { } +export = FaShareAlt; diff --git a/types/react-icons/lib/fa/share-square-o.d.ts b/types/react-icons/lib/fa/share-square-o.d.ts index fbe2893547..d23c235045 100644 --- a/types/react-icons/lib/fa/share-square-o.d.ts +++ b/types/react-icons/lib/fa/share-square-o.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaShareSquareO extends React.Component { } +declare class FaShareSquareO extends React.Component { } +export = FaShareSquareO; diff --git a/types/react-icons/lib/fa/share-square.d.ts b/types/react-icons/lib/fa/share-square.d.ts index 553b8b7d88..93c6e557f4 100644 --- a/types/react-icons/lib/fa/share-square.d.ts +++ b/types/react-icons/lib/fa/share-square.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaShareSquare extends React.Component { } +declare class FaShareSquare extends React.Component { } +export = FaShareSquare; diff --git a/types/react-icons/lib/fa/shield.d.ts b/types/react-icons/lib/fa/shield.d.ts index 0358946bb0..8ca03c4657 100644 --- a/types/react-icons/lib/fa/shield.d.ts +++ b/types/react-icons/lib/fa/shield.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaShield extends React.Component { } +declare class FaShield extends React.Component { } +export = FaShield; diff --git a/types/react-icons/lib/fa/ship.d.ts b/types/react-icons/lib/fa/ship.d.ts index bbac7fa963..71b61a6e7b 100644 --- a/types/react-icons/lib/fa/ship.d.ts +++ b/types/react-icons/lib/fa/ship.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaShip extends React.Component { } +declare class FaShip extends React.Component { } +export = FaShip; diff --git a/types/react-icons/lib/fa/shirtsinbulk.d.ts b/types/react-icons/lib/fa/shirtsinbulk.d.ts index 1cdac4b3b2..8faaa7e15b 100644 --- a/types/react-icons/lib/fa/shirtsinbulk.d.ts +++ b/types/react-icons/lib/fa/shirtsinbulk.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaShirtsinbulk extends React.Component { } +declare class FaShirtsinbulk extends React.Component { } +export = FaShirtsinbulk; diff --git a/types/react-icons/lib/fa/shopping-bag.d.ts b/types/react-icons/lib/fa/shopping-bag.d.ts index 0e9ec2fd0d..e9617d3fd4 100644 --- a/types/react-icons/lib/fa/shopping-bag.d.ts +++ b/types/react-icons/lib/fa/shopping-bag.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaShoppingBag extends React.Component { } +declare class FaShoppingBag extends React.Component { } +export = FaShoppingBag; diff --git a/types/react-icons/lib/fa/shopping-basket.d.ts b/types/react-icons/lib/fa/shopping-basket.d.ts index 05b7d1417d..e479dc7343 100644 --- a/types/react-icons/lib/fa/shopping-basket.d.ts +++ b/types/react-icons/lib/fa/shopping-basket.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaShoppingBasket extends React.Component { } +declare class FaShoppingBasket extends React.Component { } +export = FaShoppingBasket; diff --git a/types/react-icons/lib/fa/shopping-cart.d.ts b/types/react-icons/lib/fa/shopping-cart.d.ts index 17d623f44d..784aa79f93 100644 --- a/types/react-icons/lib/fa/shopping-cart.d.ts +++ b/types/react-icons/lib/fa/shopping-cart.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaShoppingCart extends React.Component { } +declare class FaShoppingCart extends React.Component { } +export = FaShoppingCart; diff --git a/types/react-icons/lib/fa/sign-in.d.ts b/types/react-icons/lib/fa/sign-in.d.ts index 6122e57cab..6761643c9d 100644 --- a/types/react-icons/lib/fa/sign-in.d.ts +++ b/types/react-icons/lib/fa/sign-in.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaSignIn extends React.Component { } +declare class FaSignIn extends React.Component { } +export = FaSignIn; diff --git a/types/react-icons/lib/fa/sign-language.d.ts b/types/react-icons/lib/fa/sign-language.d.ts index 92f5afb348..0006b1dfab 100644 --- a/types/react-icons/lib/fa/sign-language.d.ts +++ b/types/react-icons/lib/fa/sign-language.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaSignLanguage extends React.Component { } +declare class FaSignLanguage extends React.Component { } +export = FaSignLanguage; diff --git a/types/react-icons/lib/fa/sign-out.d.ts b/types/react-icons/lib/fa/sign-out.d.ts index 0432e2a806..8a32ff2252 100644 --- a/types/react-icons/lib/fa/sign-out.d.ts +++ b/types/react-icons/lib/fa/sign-out.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaSignOut extends React.Component { } +declare class FaSignOut extends React.Component { } +export = FaSignOut; diff --git a/types/react-icons/lib/fa/signal.d.ts b/types/react-icons/lib/fa/signal.d.ts index ff8c9215db..733f27f8b9 100644 --- a/types/react-icons/lib/fa/signal.d.ts +++ b/types/react-icons/lib/fa/signal.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaSignal extends React.Component { } +declare class FaSignal extends React.Component { } +export = FaSignal; diff --git a/types/react-icons/lib/fa/simplybuilt.d.ts b/types/react-icons/lib/fa/simplybuilt.d.ts index 2f6a53cab7..91a9058c72 100644 --- a/types/react-icons/lib/fa/simplybuilt.d.ts +++ b/types/react-icons/lib/fa/simplybuilt.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaSimplybuilt extends React.Component { } +declare class FaSimplybuilt extends React.Component { } +export = FaSimplybuilt; diff --git a/types/react-icons/lib/fa/sitemap.d.ts b/types/react-icons/lib/fa/sitemap.d.ts index e6a3891028..20c0543ac2 100644 --- a/types/react-icons/lib/fa/sitemap.d.ts +++ b/types/react-icons/lib/fa/sitemap.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaSitemap extends React.Component { } +declare class FaSitemap extends React.Component { } +export = FaSitemap; diff --git a/types/react-icons/lib/fa/skyatlas.d.ts b/types/react-icons/lib/fa/skyatlas.d.ts index 58a376bec4..13854503aa 100644 --- a/types/react-icons/lib/fa/skyatlas.d.ts +++ b/types/react-icons/lib/fa/skyatlas.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaSkyatlas extends React.Component { } +declare class FaSkyatlas extends React.Component { } +export = FaSkyatlas; diff --git a/types/react-icons/lib/fa/skype.d.ts b/types/react-icons/lib/fa/skype.d.ts index 3e4b8465ce..ccf59938a6 100644 --- a/types/react-icons/lib/fa/skype.d.ts +++ b/types/react-icons/lib/fa/skype.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaSkype extends React.Component { } +declare class FaSkype extends React.Component { } +export = FaSkype; diff --git a/types/react-icons/lib/fa/slack.d.ts b/types/react-icons/lib/fa/slack.d.ts index 05ae812154..6d441ba2d1 100644 --- a/types/react-icons/lib/fa/slack.d.ts +++ b/types/react-icons/lib/fa/slack.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaSlack extends React.Component { } +declare class FaSlack extends React.Component { } +export = FaSlack; diff --git a/types/react-icons/lib/fa/sliders.d.ts b/types/react-icons/lib/fa/sliders.d.ts index 5b77a2c246..6dfda35100 100644 --- a/types/react-icons/lib/fa/sliders.d.ts +++ b/types/react-icons/lib/fa/sliders.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaSliders extends React.Component { } +declare class FaSliders extends React.Component { } +export = FaSliders; diff --git a/types/react-icons/lib/fa/slideshare.d.ts b/types/react-icons/lib/fa/slideshare.d.ts index 678418e560..0553b84e9d 100644 --- a/types/react-icons/lib/fa/slideshare.d.ts +++ b/types/react-icons/lib/fa/slideshare.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaSlideshare extends React.Component { } +declare class FaSlideshare extends React.Component { } +export = FaSlideshare; diff --git a/types/react-icons/lib/fa/smile-o.d.ts b/types/react-icons/lib/fa/smile-o.d.ts index 8db866e669..16b701ab67 100644 --- a/types/react-icons/lib/fa/smile-o.d.ts +++ b/types/react-icons/lib/fa/smile-o.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaSmileO extends React.Component { } +declare class FaSmileO extends React.Component { } +export = FaSmileO; diff --git a/types/react-icons/lib/fa/snapchat-ghost.d.ts b/types/react-icons/lib/fa/snapchat-ghost.d.ts index 83ca65e891..f1da37daa1 100644 --- a/types/react-icons/lib/fa/snapchat-ghost.d.ts +++ b/types/react-icons/lib/fa/snapchat-ghost.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaSnapchatGhost extends React.Component { } +declare class FaSnapchatGhost extends React.Component { } +export = FaSnapchatGhost; diff --git a/types/react-icons/lib/fa/snapchat-square.d.ts b/types/react-icons/lib/fa/snapchat-square.d.ts index 7c1ac2dbc4..53ccacd856 100644 --- a/types/react-icons/lib/fa/snapchat-square.d.ts +++ b/types/react-icons/lib/fa/snapchat-square.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaSnapchatSquare extends React.Component { } +declare class FaSnapchatSquare extends React.Component { } +export = FaSnapchatSquare; diff --git a/types/react-icons/lib/fa/snapchat.d.ts b/types/react-icons/lib/fa/snapchat.d.ts index bbc8bb62e3..ff7b4adfc1 100644 --- a/types/react-icons/lib/fa/snapchat.d.ts +++ b/types/react-icons/lib/fa/snapchat.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaSnapchat extends React.Component { } +declare class FaSnapchat extends React.Component { } +export = FaSnapchat; diff --git a/types/react-icons/lib/fa/sort-alpha-asc.d.ts b/types/react-icons/lib/fa/sort-alpha-asc.d.ts index 6b44132473..f9f29a4c20 100644 --- a/types/react-icons/lib/fa/sort-alpha-asc.d.ts +++ b/types/react-icons/lib/fa/sort-alpha-asc.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaSortAlphaAsc extends React.Component { } +declare class FaSortAlphaAsc extends React.Component { } +export = FaSortAlphaAsc; diff --git a/types/react-icons/lib/fa/sort-alpha-desc.d.ts b/types/react-icons/lib/fa/sort-alpha-desc.d.ts index 2830f1986e..2c9d8f7b86 100644 --- a/types/react-icons/lib/fa/sort-alpha-desc.d.ts +++ b/types/react-icons/lib/fa/sort-alpha-desc.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaSortAlphaDesc extends React.Component { } +declare class FaSortAlphaDesc extends React.Component { } +export = FaSortAlphaDesc; diff --git a/types/react-icons/lib/fa/sort-amount-asc.d.ts b/types/react-icons/lib/fa/sort-amount-asc.d.ts index 05da03032c..f665f0ff3a 100644 --- a/types/react-icons/lib/fa/sort-amount-asc.d.ts +++ b/types/react-icons/lib/fa/sort-amount-asc.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaSortAmountAsc extends React.Component { } +declare class FaSortAmountAsc extends React.Component { } +export = FaSortAmountAsc; diff --git a/types/react-icons/lib/fa/sort-amount-desc.d.ts b/types/react-icons/lib/fa/sort-amount-desc.d.ts index c7e7242565..ba40b6eb2f 100644 --- a/types/react-icons/lib/fa/sort-amount-desc.d.ts +++ b/types/react-icons/lib/fa/sort-amount-desc.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaSortAmountDesc extends React.Component { } +declare class FaSortAmountDesc extends React.Component { } +export = FaSortAmountDesc; diff --git a/types/react-icons/lib/fa/sort-asc.d.ts b/types/react-icons/lib/fa/sort-asc.d.ts index ce2c9fe0a2..51b442d7c6 100644 --- a/types/react-icons/lib/fa/sort-asc.d.ts +++ b/types/react-icons/lib/fa/sort-asc.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaSortAsc extends React.Component { } +declare class FaSortAsc extends React.Component { } +export = FaSortAsc; diff --git a/types/react-icons/lib/fa/sort-desc.d.ts b/types/react-icons/lib/fa/sort-desc.d.ts index 0b4842a8f9..17888aae25 100644 --- a/types/react-icons/lib/fa/sort-desc.d.ts +++ b/types/react-icons/lib/fa/sort-desc.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaSortDesc extends React.Component { } +declare class FaSortDesc extends React.Component { } +export = FaSortDesc; diff --git a/types/react-icons/lib/fa/sort-numeric-asc.d.ts b/types/react-icons/lib/fa/sort-numeric-asc.d.ts index b7fa62fe1c..1778101b1b 100644 --- a/types/react-icons/lib/fa/sort-numeric-asc.d.ts +++ b/types/react-icons/lib/fa/sort-numeric-asc.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaSortNumericAsc extends React.Component { } +declare class FaSortNumericAsc extends React.Component { } +export = FaSortNumericAsc; diff --git a/types/react-icons/lib/fa/sort-numeric-desc.d.ts b/types/react-icons/lib/fa/sort-numeric-desc.d.ts index 2c124abd75..4ab06a613e 100644 --- a/types/react-icons/lib/fa/sort-numeric-desc.d.ts +++ b/types/react-icons/lib/fa/sort-numeric-desc.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaSortNumericDesc extends React.Component { } +declare class FaSortNumericDesc extends React.Component { } +export = FaSortNumericDesc; diff --git a/types/react-icons/lib/fa/sort.d.ts b/types/react-icons/lib/fa/sort.d.ts index ad64fd0c52..6b5e9ec071 100644 --- a/types/react-icons/lib/fa/sort.d.ts +++ b/types/react-icons/lib/fa/sort.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaSort extends React.Component { } +declare class FaSort extends React.Component { } +export = FaSort; diff --git a/types/react-icons/lib/fa/soundcloud.d.ts b/types/react-icons/lib/fa/soundcloud.d.ts index c357e174b0..774a3a60a7 100644 --- a/types/react-icons/lib/fa/soundcloud.d.ts +++ b/types/react-icons/lib/fa/soundcloud.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaSoundcloud extends React.Component { } +declare class FaSoundcloud extends React.Component { } +export = FaSoundcloud; diff --git a/types/react-icons/lib/fa/space-shuttle.d.ts b/types/react-icons/lib/fa/space-shuttle.d.ts index 0ce2f24916..a637be5956 100644 --- a/types/react-icons/lib/fa/space-shuttle.d.ts +++ b/types/react-icons/lib/fa/space-shuttle.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaSpaceShuttle extends React.Component { } +declare class FaSpaceShuttle extends React.Component { } +export = FaSpaceShuttle; diff --git a/types/react-icons/lib/fa/spinner.d.ts b/types/react-icons/lib/fa/spinner.d.ts index 36e2dd9285..dbd8124bca 100644 --- a/types/react-icons/lib/fa/spinner.d.ts +++ b/types/react-icons/lib/fa/spinner.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaSpinner extends React.Component { } +declare class FaSpinner extends React.Component { } +export = FaSpinner; diff --git a/types/react-icons/lib/fa/spoon.d.ts b/types/react-icons/lib/fa/spoon.d.ts index 1112916912..e11b2b3df5 100644 --- a/types/react-icons/lib/fa/spoon.d.ts +++ b/types/react-icons/lib/fa/spoon.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaSpoon extends React.Component { } +declare class FaSpoon extends React.Component { } +export = FaSpoon; diff --git a/types/react-icons/lib/fa/spotify.d.ts b/types/react-icons/lib/fa/spotify.d.ts index 94c862a866..1e643eaa82 100644 --- a/types/react-icons/lib/fa/spotify.d.ts +++ b/types/react-icons/lib/fa/spotify.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaSpotify extends React.Component { } +declare class FaSpotify extends React.Component { } +export = FaSpotify; diff --git a/types/react-icons/lib/fa/square-o.d.ts b/types/react-icons/lib/fa/square-o.d.ts index 0d49bd6c23..2ec8731877 100644 --- a/types/react-icons/lib/fa/square-o.d.ts +++ b/types/react-icons/lib/fa/square-o.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaSquareO extends React.Component { } +declare class FaSquareO extends React.Component { } +export = FaSquareO; diff --git a/types/react-icons/lib/fa/square.d.ts b/types/react-icons/lib/fa/square.d.ts index d95485831d..c8c55b3742 100644 --- a/types/react-icons/lib/fa/square.d.ts +++ b/types/react-icons/lib/fa/square.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaSquare extends React.Component { } +declare class FaSquare extends React.Component { } +export = FaSquare; diff --git a/types/react-icons/lib/fa/stack-exchange.d.ts b/types/react-icons/lib/fa/stack-exchange.d.ts index a1f2d0e265..9633c68c60 100644 --- a/types/react-icons/lib/fa/stack-exchange.d.ts +++ b/types/react-icons/lib/fa/stack-exchange.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaStackExchange extends React.Component { } +declare class FaStackExchange extends React.Component { } +export = FaStackExchange; diff --git a/types/react-icons/lib/fa/stack-overflow.d.ts b/types/react-icons/lib/fa/stack-overflow.d.ts index fd71beea7f..d2abb6200e 100644 --- a/types/react-icons/lib/fa/stack-overflow.d.ts +++ b/types/react-icons/lib/fa/stack-overflow.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaStackOverflow extends React.Component { } +declare class FaStackOverflow extends React.Component { } +export = FaStackOverflow; diff --git a/types/react-icons/lib/fa/star-half-empty.d.ts b/types/react-icons/lib/fa/star-half-empty.d.ts index 6e4b26ad53..6e43aa720b 100644 --- a/types/react-icons/lib/fa/star-half-empty.d.ts +++ b/types/react-icons/lib/fa/star-half-empty.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaStarHalfEmpty extends React.Component { } +declare class FaStarHalfEmpty extends React.Component { } +export = FaStarHalfEmpty; diff --git a/types/react-icons/lib/fa/star-half.d.ts b/types/react-icons/lib/fa/star-half.d.ts index d373ba6a07..4bfe025587 100644 --- a/types/react-icons/lib/fa/star-half.d.ts +++ b/types/react-icons/lib/fa/star-half.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaStarHalf extends React.Component { } +declare class FaStarHalf extends React.Component { } +export = FaStarHalf; diff --git a/types/react-icons/lib/fa/star-o.d.ts b/types/react-icons/lib/fa/star-o.d.ts index cf950d4867..1b23442802 100644 --- a/types/react-icons/lib/fa/star-o.d.ts +++ b/types/react-icons/lib/fa/star-o.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaStarO extends React.Component { } +declare class FaStarO extends React.Component { } +export = FaStarO; diff --git a/types/react-icons/lib/fa/star.d.ts b/types/react-icons/lib/fa/star.d.ts index 3113155a96..a966cea689 100644 --- a/types/react-icons/lib/fa/star.d.ts +++ b/types/react-icons/lib/fa/star.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaStar extends React.Component { } +declare class FaStar extends React.Component { } +export = FaStar; diff --git a/types/react-icons/lib/fa/steam-square.d.ts b/types/react-icons/lib/fa/steam-square.d.ts index 3ac2c21b30..0beeef5491 100644 --- a/types/react-icons/lib/fa/steam-square.d.ts +++ b/types/react-icons/lib/fa/steam-square.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaSteamSquare extends React.Component { } +declare class FaSteamSquare extends React.Component { } +export = FaSteamSquare; diff --git a/types/react-icons/lib/fa/steam.d.ts b/types/react-icons/lib/fa/steam.d.ts index e1aa2f3313..deebcf4ba4 100644 --- a/types/react-icons/lib/fa/steam.d.ts +++ b/types/react-icons/lib/fa/steam.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaSteam extends React.Component { } +declare class FaSteam extends React.Component { } +export = FaSteam; diff --git a/types/react-icons/lib/fa/step-backward.d.ts b/types/react-icons/lib/fa/step-backward.d.ts index fe571ab271..c2fd350405 100644 --- a/types/react-icons/lib/fa/step-backward.d.ts +++ b/types/react-icons/lib/fa/step-backward.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaStepBackward extends React.Component { } +declare class FaStepBackward extends React.Component { } +export = FaStepBackward; diff --git a/types/react-icons/lib/fa/step-forward.d.ts b/types/react-icons/lib/fa/step-forward.d.ts index b8b01f06a8..efc7eca537 100644 --- a/types/react-icons/lib/fa/step-forward.d.ts +++ b/types/react-icons/lib/fa/step-forward.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaStepForward extends React.Component { } +declare class FaStepForward extends React.Component { } +export = FaStepForward; diff --git a/types/react-icons/lib/fa/stethoscope.d.ts b/types/react-icons/lib/fa/stethoscope.d.ts index 3f8cdcba2e..be5295c3f6 100644 --- a/types/react-icons/lib/fa/stethoscope.d.ts +++ b/types/react-icons/lib/fa/stethoscope.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaStethoscope extends React.Component { } +declare class FaStethoscope extends React.Component { } +export = FaStethoscope; diff --git a/types/react-icons/lib/fa/sticky-note-o.d.ts b/types/react-icons/lib/fa/sticky-note-o.d.ts index 5d54ced4ec..d3a5e10c9c 100644 --- a/types/react-icons/lib/fa/sticky-note-o.d.ts +++ b/types/react-icons/lib/fa/sticky-note-o.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaStickyNoteO extends React.Component { } +declare class FaStickyNoteO extends React.Component { } +export = FaStickyNoteO; diff --git a/types/react-icons/lib/fa/sticky-note.d.ts b/types/react-icons/lib/fa/sticky-note.d.ts index d30fedcdd7..6055d0e9a1 100644 --- a/types/react-icons/lib/fa/sticky-note.d.ts +++ b/types/react-icons/lib/fa/sticky-note.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaStickyNote extends React.Component { } +declare class FaStickyNote extends React.Component { } +export = FaStickyNote; diff --git a/types/react-icons/lib/fa/stop-circle-o.d.ts b/types/react-icons/lib/fa/stop-circle-o.d.ts index 244ffeb6cc..a8ef0eabdd 100644 --- a/types/react-icons/lib/fa/stop-circle-o.d.ts +++ b/types/react-icons/lib/fa/stop-circle-o.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaStopCircleO extends React.Component { } +declare class FaStopCircleO extends React.Component { } +export = FaStopCircleO; diff --git a/types/react-icons/lib/fa/stop-circle.d.ts b/types/react-icons/lib/fa/stop-circle.d.ts index ef7a92d310..20139906d9 100644 --- a/types/react-icons/lib/fa/stop-circle.d.ts +++ b/types/react-icons/lib/fa/stop-circle.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaStopCircle extends React.Component { } +declare class FaStopCircle extends React.Component { } +export = FaStopCircle; diff --git a/types/react-icons/lib/fa/stop.d.ts b/types/react-icons/lib/fa/stop.d.ts index fd4356c3df..1b249e5195 100644 --- a/types/react-icons/lib/fa/stop.d.ts +++ b/types/react-icons/lib/fa/stop.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaStop extends React.Component { } +declare class FaStop extends React.Component { } +export = FaStop; diff --git a/types/react-icons/lib/fa/street-view.d.ts b/types/react-icons/lib/fa/street-view.d.ts index d989035bde..18e5bae2b5 100644 --- a/types/react-icons/lib/fa/street-view.d.ts +++ b/types/react-icons/lib/fa/street-view.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaStreetView extends React.Component { } +declare class FaStreetView extends React.Component { } +export = FaStreetView; diff --git a/types/react-icons/lib/fa/strikethrough.d.ts b/types/react-icons/lib/fa/strikethrough.d.ts index f472c0fd77..46f2e36143 100644 --- a/types/react-icons/lib/fa/strikethrough.d.ts +++ b/types/react-icons/lib/fa/strikethrough.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaStrikethrough extends React.Component { } +declare class FaStrikethrough extends React.Component { } +export = FaStrikethrough; diff --git a/types/react-icons/lib/fa/stumbleupon-circle.d.ts b/types/react-icons/lib/fa/stumbleupon-circle.d.ts index ecc4d2122e..67cdbea5cc 100644 --- a/types/react-icons/lib/fa/stumbleupon-circle.d.ts +++ b/types/react-icons/lib/fa/stumbleupon-circle.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaStumbleuponCircle extends React.Component { } +declare class FaStumbleuponCircle extends React.Component { } +export = FaStumbleuponCircle; diff --git a/types/react-icons/lib/fa/stumbleupon.d.ts b/types/react-icons/lib/fa/stumbleupon.d.ts index 64185df0f3..9585240ca8 100644 --- a/types/react-icons/lib/fa/stumbleupon.d.ts +++ b/types/react-icons/lib/fa/stumbleupon.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaStumbleupon extends React.Component { } +declare class FaStumbleupon extends React.Component { } +export = FaStumbleupon; diff --git a/types/react-icons/lib/fa/subscript.d.ts b/types/react-icons/lib/fa/subscript.d.ts index ac03fe6b89..a6c021ed1b 100644 --- a/types/react-icons/lib/fa/subscript.d.ts +++ b/types/react-icons/lib/fa/subscript.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaSubscript extends React.Component { } +declare class FaSubscript extends React.Component { } +export = FaSubscript; diff --git a/types/react-icons/lib/fa/subway.d.ts b/types/react-icons/lib/fa/subway.d.ts index ce4b09edbf..2be51ef087 100644 --- a/types/react-icons/lib/fa/subway.d.ts +++ b/types/react-icons/lib/fa/subway.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaSubway extends React.Component { } +declare class FaSubway extends React.Component { } +export = FaSubway; diff --git a/types/react-icons/lib/fa/suitcase.d.ts b/types/react-icons/lib/fa/suitcase.d.ts index 0bf3807780..bbf2b116f8 100644 --- a/types/react-icons/lib/fa/suitcase.d.ts +++ b/types/react-icons/lib/fa/suitcase.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaSuitcase extends React.Component { } +declare class FaSuitcase extends React.Component { } +export = FaSuitcase; diff --git a/types/react-icons/lib/fa/sun-o.d.ts b/types/react-icons/lib/fa/sun-o.d.ts index 3ac6bfbdd3..1699728fa0 100644 --- a/types/react-icons/lib/fa/sun-o.d.ts +++ b/types/react-icons/lib/fa/sun-o.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaSunO extends React.Component { } +declare class FaSunO extends React.Component { } +export = FaSunO; diff --git a/types/react-icons/lib/fa/superscript.d.ts b/types/react-icons/lib/fa/superscript.d.ts index 07a901912e..5bce0a3419 100644 --- a/types/react-icons/lib/fa/superscript.d.ts +++ b/types/react-icons/lib/fa/superscript.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaSuperscript extends React.Component { } +declare class FaSuperscript extends React.Component { } +export = FaSuperscript; diff --git a/types/react-icons/lib/fa/table.d.ts b/types/react-icons/lib/fa/table.d.ts index a8ff4e9bf5..28afb1a308 100644 --- a/types/react-icons/lib/fa/table.d.ts +++ b/types/react-icons/lib/fa/table.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaTable extends React.Component { } +declare class FaTable extends React.Component { } +export = FaTable; diff --git a/types/react-icons/lib/fa/tablet.d.ts b/types/react-icons/lib/fa/tablet.d.ts index 37ea453d17..5d06494d0f 100644 --- a/types/react-icons/lib/fa/tablet.d.ts +++ b/types/react-icons/lib/fa/tablet.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaTablet extends React.Component { } +declare class FaTablet extends React.Component { } +export = FaTablet; diff --git a/types/react-icons/lib/fa/tag.d.ts b/types/react-icons/lib/fa/tag.d.ts index 247756142e..62793c87bd 100644 --- a/types/react-icons/lib/fa/tag.d.ts +++ b/types/react-icons/lib/fa/tag.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaTag extends React.Component { } +declare class FaTag extends React.Component { } +export = FaTag; diff --git a/types/react-icons/lib/fa/tags.d.ts b/types/react-icons/lib/fa/tags.d.ts index 3518af839a..acf244ad23 100644 --- a/types/react-icons/lib/fa/tags.d.ts +++ b/types/react-icons/lib/fa/tags.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaTags extends React.Component { } +declare class FaTags extends React.Component { } +export = FaTags; diff --git a/types/react-icons/lib/fa/tasks.d.ts b/types/react-icons/lib/fa/tasks.d.ts index f0b59f374e..8b789168d7 100644 --- a/types/react-icons/lib/fa/tasks.d.ts +++ b/types/react-icons/lib/fa/tasks.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaTasks extends React.Component { } +declare class FaTasks extends React.Component { } +export = FaTasks; diff --git a/types/react-icons/lib/fa/television.d.ts b/types/react-icons/lib/fa/television.d.ts index 88b8693a6a..46612f202e 100644 --- a/types/react-icons/lib/fa/television.d.ts +++ b/types/react-icons/lib/fa/television.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaTelevision extends React.Component { } +declare class FaTelevision extends React.Component { } +export = FaTelevision; diff --git a/types/react-icons/lib/fa/tencent-weibo.d.ts b/types/react-icons/lib/fa/tencent-weibo.d.ts index ce9a04848c..294778fdf7 100644 --- a/types/react-icons/lib/fa/tencent-weibo.d.ts +++ b/types/react-icons/lib/fa/tencent-weibo.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaTencentWeibo extends React.Component { } +declare class FaTencentWeibo extends React.Component { } +export = FaTencentWeibo; diff --git a/types/react-icons/lib/fa/terminal.d.ts b/types/react-icons/lib/fa/terminal.d.ts index 75daa58c87..3dd4de7d08 100644 --- a/types/react-icons/lib/fa/terminal.d.ts +++ b/types/react-icons/lib/fa/terminal.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaTerminal extends React.Component { } +declare class FaTerminal extends React.Component { } +export = FaTerminal; diff --git a/types/react-icons/lib/fa/text-height.d.ts b/types/react-icons/lib/fa/text-height.d.ts index 69271e359f..ec3593b58c 100644 --- a/types/react-icons/lib/fa/text-height.d.ts +++ b/types/react-icons/lib/fa/text-height.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaTextHeight extends React.Component { } +declare class FaTextHeight extends React.Component { } +export = FaTextHeight; diff --git a/types/react-icons/lib/fa/text-width.d.ts b/types/react-icons/lib/fa/text-width.d.ts index 820357df60..7bd6e24937 100644 --- a/types/react-icons/lib/fa/text-width.d.ts +++ b/types/react-icons/lib/fa/text-width.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaTextWidth extends React.Component { } +declare class FaTextWidth extends React.Component { } +export = FaTextWidth; diff --git a/types/react-icons/lib/fa/th-large.d.ts b/types/react-icons/lib/fa/th-large.d.ts index f059da9990..bb2e218190 100644 --- a/types/react-icons/lib/fa/th-large.d.ts +++ b/types/react-icons/lib/fa/th-large.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaThLarge extends React.Component { } +declare class FaThLarge extends React.Component { } +export = FaThLarge; diff --git a/types/react-icons/lib/fa/th-list.d.ts b/types/react-icons/lib/fa/th-list.d.ts index 09ef167885..1fad0c7ba2 100644 --- a/types/react-icons/lib/fa/th-list.d.ts +++ b/types/react-icons/lib/fa/th-list.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaThList extends React.Component { } +declare class FaThList extends React.Component { } +export = FaThList; diff --git a/types/react-icons/lib/fa/th.d.ts b/types/react-icons/lib/fa/th.d.ts index 9d6674b5d3..f9694f9e41 100644 --- a/types/react-icons/lib/fa/th.d.ts +++ b/types/react-icons/lib/fa/th.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaTh extends React.Component { } +declare class FaTh extends React.Component { } +export = FaTh; diff --git a/types/react-icons/lib/fa/thumb-tack.d.ts b/types/react-icons/lib/fa/thumb-tack.d.ts index b84e262f77..6b89d609ea 100644 --- a/types/react-icons/lib/fa/thumb-tack.d.ts +++ b/types/react-icons/lib/fa/thumb-tack.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaThumbTack extends React.Component { } +declare class FaThumbTack extends React.Component { } +export = FaThumbTack; diff --git a/types/react-icons/lib/fa/thumbs-down.d.ts b/types/react-icons/lib/fa/thumbs-down.d.ts index c684e7ad5c..8aebed82ca 100644 --- a/types/react-icons/lib/fa/thumbs-down.d.ts +++ b/types/react-icons/lib/fa/thumbs-down.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaThumbsDown extends React.Component { } +declare class FaThumbsDown extends React.Component { } +export = FaThumbsDown; diff --git a/types/react-icons/lib/fa/thumbs-o-down.d.ts b/types/react-icons/lib/fa/thumbs-o-down.d.ts index 0c9f640d18..734b175192 100644 --- a/types/react-icons/lib/fa/thumbs-o-down.d.ts +++ b/types/react-icons/lib/fa/thumbs-o-down.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaThumbsODown extends React.Component { } +declare class FaThumbsODown extends React.Component { } +export = FaThumbsODown; diff --git a/types/react-icons/lib/fa/thumbs-o-up.d.ts b/types/react-icons/lib/fa/thumbs-o-up.d.ts index 9d5a487ae1..f01dc5e4c7 100644 --- a/types/react-icons/lib/fa/thumbs-o-up.d.ts +++ b/types/react-icons/lib/fa/thumbs-o-up.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaThumbsOUp extends React.Component { } +declare class FaThumbsOUp extends React.Component { } +export = FaThumbsOUp; diff --git a/types/react-icons/lib/fa/thumbs-up.d.ts b/types/react-icons/lib/fa/thumbs-up.d.ts index 84348d3ac2..0ffa122424 100644 --- a/types/react-icons/lib/fa/thumbs-up.d.ts +++ b/types/react-icons/lib/fa/thumbs-up.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaThumbsUp extends React.Component { } +declare class FaThumbsUp extends React.Component { } +export = FaThumbsUp; diff --git a/types/react-icons/lib/fa/ticket.d.ts b/types/react-icons/lib/fa/ticket.d.ts index 275a38e4dd..897c6bdd5b 100644 --- a/types/react-icons/lib/fa/ticket.d.ts +++ b/types/react-icons/lib/fa/ticket.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaTicket extends React.Component { } +declare class FaTicket extends React.Component { } +export = FaTicket; diff --git a/types/react-icons/lib/fa/times-circle-o.d.ts b/types/react-icons/lib/fa/times-circle-o.d.ts index 5a96466de6..66cf92eb25 100644 --- a/types/react-icons/lib/fa/times-circle-o.d.ts +++ b/types/react-icons/lib/fa/times-circle-o.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaTimesCircleO extends React.Component { } +declare class FaTimesCircleO extends React.Component { } +export = FaTimesCircleO; diff --git a/types/react-icons/lib/fa/times-circle.d.ts b/types/react-icons/lib/fa/times-circle.d.ts index d73596cfb8..6a278a7af7 100644 --- a/types/react-icons/lib/fa/times-circle.d.ts +++ b/types/react-icons/lib/fa/times-circle.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaTimesCircle extends React.Component { } +declare class FaTimesCircle extends React.Component { } +export = FaTimesCircle; diff --git a/types/react-icons/lib/fa/tint.d.ts b/types/react-icons/lib/fa/tint.d.ts index b4155f948c..0c072a94d0 100644 --- a/types/react-icons/lib/fa/tint.d.ts +++ b/types/react-icons/lib/fa/tint.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaTint extends React.Component { } +declare class FaTint extends React.Component { } +export = FaTint; diff --git a/types/react-icons/lib/fa/toggle-off.d.ts b/types/react-icons/lib/fa/toggle-off.d.ts index e4bd987307..f40e8262b0 100644 --- a/types/react-icons/lib/fa/toggle-off.d.ts +++ b/types/react-icons/lib/fa/toggle-off.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaToggleOff extends React.Component { } +declare class FaToggleOff extends React.Component { } +export = FaToggleOff; diff --git a/types/react-icons/lib/fa/toggle-on.d.ts b/types/react-icons/lib/fa/toggle-on.d.ts index 69324fdd13..facfa825d0 100644 --- a/types/react-icons/lib/fa/toggle-on.d.ts +++ b/types/react-icons/lib/fa/toggle-on.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaToggleOn extends React.Component { } +declare class FaToggleOn extends React.Component { } +export = FaToggleOn; diff --git a/types/react-icons/lib/fa/trademark.d.ts b/types/react-icons/lib/fa/trademark.d.ts index c8ddb8dbf6..19f3053e1b 100644 --- a/types/react-icons/lib/fa/trademark.d.ts +++ b/types/react-icons/lib/fa/trademark.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaTrademark extends React.Component { } +declare class FaTrademark extends React.Component { } +export = FaTrademark; diff --git a/types/react-icons/lib/fa/train.d.ts b/types/react-icons/lib/fa/train.d.ts index a686d3a677..d6220f152e 100644 --- a/types/react-icons/lib/fa/train.d.ts +++ b/types/react-icons/lib/fa/train.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaTrain extends React.Component { } +declare class FaTrain extends React.Component { } +export = FaTrain; diff --git a/types/react-icons/lib/fa/transgender-alt.d.ts b/types/react-icons/lib/fa/transgender-alt.d.ts index 0794285d19..9908511cfa 100644 --- a/types/react-icons/lib/fa/transgender-alt.d.ts +++ b/types/react-icons/lib/fa/transgender-alt.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaTransgenderAlt extends React.Component { } +declare class FaTransgenderAlt extends React.Component { } +export = FaTransgenderAlt; diff --git a/types/react-icons/lib/fa/trash-o.d.ts b/types/react-icons/lib/fa/trash-o.d.ts index c76a07e3f8..c4feb2f96e 100644 --- a/types/react-icons/lib/fa/trash-o.d.ts +++ b/types/react-icons/lib/fa/trash-o.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaTrashO extends React.Component { } +declare class FaTrashO extends React.Component { } +export = FaTrashO; diff --git a/types/react-icons/lib/fa/trash.d.ts b/types/react-icons/lib/fa/trash.d.ts index f2f4ce4117..81360b601d 100644 --- a/types/react-icons/lib/fa/trash.d.ts +++ b/types/react-icons/lib/fa/trash.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaTrash extends React.Component { } +declare class FaTrash extends React.Component { } +export = FaTrash; diff --git a/types/react-icons/lib/fa/tree.d.ts b/types/react-icons/lib/fa/tree.d.ts index 7b94f9f52e..60ef0e51dd 100644 --- a/types/react-icons/lib/fa/tree.d.ts +++ b/types/react-icons/lib/fa/tree.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaTree extends React.Component { } +declare class FaTree extends React.Component { } +export = FaTree; diff --git a/types/react-icons/lib/fa/trello.d.ts b/types/react-icons/lib/fa/trello.d.ts index a231c272aa..8cdf39ce46 100644 --- a/types/react-icons/lib/fa/trello.d.ts +++ b/types/react-icons/lib/fa/trello.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaTrello extends React.Component { } +declare class FaTrello extends React.Component { } +export = FaTrello; diff --git a/types/react-icons/lib/fa/tripadvisor.d.ts b/types/react-icons/lib/fa/tripadvisor.d.ts index 95ad22d7eb..2d3787a549 100644 --- a/types/react-icons/lib/fa/tripadvisor.d.ts +++ b/types/react-icons/lib/fa/tripadvisor.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaTripadvisor extends React.Component { } +declare class FaTripadvisor extends React.Component { } +export = FaTripadvisor; diff --git a/types/react-icons/lib/fa/trophy.d.ts b/types/react-icons/lib/fa/trophy.d.ts index 48f48edec1..24833b8bdc 100644 --- a/types/react-icons/lib/fa/trophy.d.ts +++ b/types/react-icons/lib/fa/trophy.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaTrophy extends React.Component { } +declare class FaTrophy extends React.Component { } +export = FaTrophy; diff --git a/types/react-icons/lib/fa/truck.d.ts b/types/react-icons/lib/fa/truck.d.ts index 00bc370441..a2e0768d49 100644 --- a/types/react-icons/lib/fa/truck.d.ts +++ b/types/react-icons/lib/fa/truck.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaTruck extends React.Component { } +declare class FaTruck extends React.Component { } +export = FaTruck; diff --git a/types/react-icons/lib/fa/try.d.ts b/types/react-icons/lib/fa/try.d.ts index fa4492d24b..1af849b3d9 100644 --- a/types/react-icons/lib/fa/try.d.ts +++ b/types/react-icons/lib/fa/try.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaTry extends React.Component { } +declare class FaTry extends React.Component { } +export = FaTry; diff --git a/types/react-icons/lib/fa/tty.d.ts b/types/react-icons/lib/fa/tty.d.ts index 76ec94f74e..ff3436e8ef 100644 --- a/types/react-icons/lib/fa/tty.d.ts +++ b/types/react-icons/lib/fa/tty.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaTty extends React.Component { } +declare class FaTty extends React.Component { } +export = FaTty; diff --git a/types/react-icons/lib/fa/tumblr-square.d.ts b/types/react-icons/lib/fa/tumblr-square.d.ts index 2bf15bf460..a83b269822 100644 --- a/types/react-icons/lib/fa/tumblr-square.d.ts +++ b/types/react-icons/lib/fa/tumblr-square.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaTumblrSquare extends React.Component { } +declare class FaTumblrSquare extends React.Component { } +export = FaTumblrSquare; diff --git a/types/react-icons/lib/fa/tumblr.d.ts b/types/react-icons/lib/fa/tumblr.d.ts index c60ae76806..57c62ede41 100644 --- a/types/react-icons/lib/fa/tumblr.d.ts +++ b/types/react-icons/lib/fa/tumblr.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaTumblr extends React.Component { } +declare class FaTumblr extends React.Component { } +export = FaTumblr; diff --git a/types/react-icons/lib/fa/twitch.d.ts b/types/react-icons/lib/fa/twitch.d.ts index 3e46ebac6c..7bb9fb61f2 100644 --- a/types/react-icons/lib/fa/twitch.d.ts +++ b/types/react-icons/lib/fa/twitch.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaTwitch extends React.Component { } +declare class FaTwitch extends React.Component { } +export = FaTwitch; diff --git a/types/react-icons/lib/fa/twitter-square.d.ts b/types/react-icons/lib/fa/twitter-square.d.ts index fb77d182e6..3d1eea2b7a 100644 --- a/types/react-icons/lib/fa/twitter-square.d.ts +++ b/types/react-icons/lib/fa/twitter-square.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaTwitterSquare extends React.Component { } +declare class FaTwitterSquare extends React.Component { } +export = FaTwitterSquare; diff --git a/types/react-icons/lib/fa/twitter.d.ts b/types/react-icons/lib/fa/twitter.d.ts index e3d5259918..99d6f50e59 100644 --- a/types/react-icons/lib/fa/twitter.d.ts +++ b/types/react-icons/lib/fa/twitter.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaTwitter extends React.Component { } +declare class FaTwitter extends React.Component { } +export = FaTwitter; diff --git a/types/react-icons/lib/fa/umbrella.d.ts b/types/react-icons/lib/fa/umbrella.d.ts index 74fefd9404..9f693678b6 100644 --- a/types/react-icons/lib/fa/umbrella.d.ts +++ b/types/react-icons/lib/fa/umbrella.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaUmbrella extends React.Component { } +declare class FaUmbrella extends React.Component { } +export = FaUmbrella; diff --git a/types/react-icons/lib/fa/underline.d.ts b/types/react-icons/lib/fa/underline.d.ts index af907eba18..9ed692f7ee 100644 --- a/types/react-icons/lib/fa/underline.d.ts +++ b/types/react-icons/lib/fa/underline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaUnderline extends React.Component { } +declare class FaUnderline extends React.Component { } +export = FaUnderline; diff --git a/types/react-icons/lib/fa/universal-access.d.ts b/types/react-icons/lib/fa/universal-access.d.ts index a02ba6c3be..5faf0a08df 100644 --- a/types/react-icons/lib/fa/universal-access.d.ts +++ b/types/react-icons/lib/fa/universal-access.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaUniversalAccess extends React.Component { } +declare class FaUniversalAccess extends React.Component { } +export = FaUniversalAccess; diff --git a/types/react-icons/lib/fa/unlock-alt.d.ts b/types/react-icons/lib/fa/unlock-alt.d.ts index 9d84986727..a611a062ec 100644 --- a/types/react-icons/lib/fa/unlock-alt.d.ts +++ b/types/react-icons/lib/fa/unlock-alt.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaUnlockAlt extends React.Component { } +declare class FaUnlockAlt extends React.Component { } +export = FaUnlockAlt; diff --git a/types/react-icons/lib/fa/unlock.d.ts b/types/react-icons/lib/fa/unlock.d.ts index 5b1979f0cd..c1ecdfe0b4 100644 --- a/types/react-icons/lib/fa/unlock.d.ts +++ b/types/react-icons/lib/fa/unlock.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaUnlock extends React.Component { } +declare class FaUnlock extends React.Component { } +export = FaUnlock; diff --git a/types/react-icons/lib/fa/upload.d.ts b/types/react-icons/lib/fa/upload.d.ts index 566ab8a65d..56b379f32c 100644 --- a/types/react-icons/lib/fa/upload.d.ts +++ b/types/react-icons/lib/fa/upload.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaUpload extends React.Component { } +declare class FaUpload extends React.Component { } +export = FaUpload; diff --git a/types/react-icons/lib/fa/usb.d.ts b/types/react-icons/lib/fa/usb.d.ts index 6ca16d94e8..dcf434b5e3 100644 --- a/types/react-icons/lib/fa/usb.d.ts +++ b/types/react-icons/lib/fa/usb.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaUsb extends React.Component { } +declare class FaUsb extends React.Component { } +export = FaUsb; diff --git a/types/react-icons/lib/fa/user-md.d.ts b/types/react-icons/lib/fa/user-md.d.ts index 0d6f2d9781..4250285358 100644 --- a/types/react-icons/lib/fa/user-md.d.ts +++ b/types/react-icons/lib/fa/user-md.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaUserMd extends React.Component { } +declare class FaUserMd extends React.Component { } +export = FaUserMd; diff --git a/types/react-icons/lib/fa/user-plus.d.ts b/types/react-icons/lib/fa/user-plus.d.ts index 659b2ecb13..90fc8b99da 100644 --- a/types/react-icons/lib/fa/user-plus.d.ts +++ b/types/react-icons/lib/fa/user-plus.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaUserPlus extends React.Component { } +declare class FaUserPlus extends React.Component { } +export = FaUserPlus; diff --git a/types/react-icons/lib/fa/user-secret.d.ts b/types/react-icons/lib/fa/user-secret.d.ts index 43bf4e4ac3..154cf32bf3 100644 --- a/types/react-icons/lib/fa/user-secret.d.ts +++ b/types/react-icons/lib/fa/user-secret.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaUserSecret extends React.Component { } +declare class FaUserSecret extends React.Component { } +export = FaUserSecret; diff --git a/types/react-icons/lib/fa/user-times.d.ts b/types/react-icons/lib/fa/user-times.d.ts index d235fd5463..c317fd3c0f 100644 --- a/types/react-icons/lib/fa/user-times.d.ts +++ b/types/react-icons/lib/fa/user-times.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaUserTimes extends React.Component { } +declare class FaUserTimes extends React.Component { } +export = FaUserTimes; diff --git a/types/react-icons/lib/fa/user.d.ts b/types/react-icons/lib/fa/user.d.ts index cf7b5ac689..9267b99851 100644 --- a/types/react-icons/lib/fa/user.d.ts +++ b/types/react-icons/lib/fa/user.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaUser extends React.Component { } +declare class FaUser extends React.Component { } +export = FaUser; diff --git a/types/react-icons/lib/fa/venus-double.d.ts b/types/react-icons/lib/fa/venus-double.d.ts index 5a3602b516..303aa8e94f 100644 --- a/types/react-icons/lib/fa/venus-double.d.ts +++ b/types/react-icons/lib/fa/venus-double.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaVenusDouble extends React.Component { } +declare class FaVenusDouble extends React.Component { } +export = FaVenusDouble; diff --git a/types/react-icons/lib/fa/venus-mars.d.ts b/types/react-icons/lib/fa/venus-mars.d.ts index 70d7448d7e..528d6fb07d 100644 --- a/types/react-icons/lib/fa/venus-mars.d.ts +++ b/types/react-icons/lib/fa/venus-mars.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaVenusMars extends React.Component { } +declare class FaVenusMars extends React.Component { } +export = FaVenusMars; diff --git a/types/react-icons/lib/fa/venus.d.ts b/types/react-icons/lib/fa/venus.d.ts index e80ab6053c..a36a82d280 100644 --- a/types/react-icons/lib/fa/venus.d.ts +++ b/types/react-icons/lib/fa/venus.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaVenus extends React.Component { } +declare class FaVenus extends React.Component { } +export = FaVenus; diff --git a/types/react-icons/lib/fa/viacoin.d.ts b/types/react-icons/lib/fa/viacoin.d.ts index c9f1bef6f3..aef66b99c0 100644 --- a/types/react-icons/lib/fa/viacoin.d.ts +++ b/types/react-icons/lib/fa/viacoin.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaViacoin extends React.Component { } +declare class FaViacoin extends React.Component { } +export = FaViacoin; diff --git a/types/react-icons/lib/fa/viadeo-square.d.ts b/types/react-icons/lib/fa/viadeo-square.d.ts index 7f10d8302f..1e48563584 100644 --- a/types/react-icons/lib/fa/viadeo-square.d.ts +++ b/types/react-icons/lib/fa/viadeo-square.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaViadeoSquare extends React.Component { } +declare class FaViadeoSquare extends React.Component { } +export = FaViadeoSquare; diff --git a/types/react-icons/lib/fa/viadeo.d.ts b/types/react-icons/lib/fa/viadeo.d.ts index 551545f5cc..dd10eb198e 100644 --- a/types/react-icons/lib/fa/viadeo.d.ts +++ b/types/react-icons/lib/fa/viadeo.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaViadeo extends React.Component { } +declare class FaViadeo extends React.Component { } +export = FaViadeo; diff --git a/types/react-icons/lib/fa/video-camera.d.ts b/types/react-icons/lib/fa/video-camera.d.ts index f3cf036582..48830c332c 100644 --- a/types/react-icons/lib/fa/video-camera.d.ts +++ b/types/react-icons/lib/fa/video-camera.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaVideoCamera extends React.Component { } +declare class FaVideoCamera extends React.Component { } +export = FaVideoCamera; diff --git a/types/react-icons/lib/fa/vimeo-square.d.ts b/types/react-icons/lib/fa/vimeo-square.d.ts index 9b0357e7ca..c9d881981d 100644 --- a/types/react-icons/lib/fa/vimeo-square.d.ts +++ b/types/react-icons/lib/fa/vimeo-square.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaVimeoSquare extends React.Component { } +declare class FaVimeoSquare extends React.Component { } +export = FaVimeoSquare; diff --git a/types/react-icons/lib/fa/vimeo.d.ts b/types/react-icons/lib/fa/vimeo.d.ts index 7331ef98e8..a4928a0abc 100644 --- a/types/react-icons/lib/fa/vimeo.d.ts +++ b/types/react-icons/lib/fa/vimeo.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaVimeo extends React.Component { } +declare class FaVimeo extends React.Component { } +export = FaVimeo; diff --git a/types/react-icons/lib/fa/vine.d.ts b/types/react-icons/lib/fa/vine.d.ts index b329619d15..b99a2d39e8 100644 --- a/types/react-icons/lib/fa/vine.d.ts +++ b/types/react-icons/lib/fa/vine.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaVine extends React.Component { } +declare class FaVine extends React.Component { } +export = FaVine; diff --git a/types/react-icons/lib/fa/vk.d.ts b/types/react-icons/lib/fa/vk.d.ts index 07b3cdb5a9..7851cdc69d 100644 --- a/types/react-icons/lib/fa/vk.d.ts +++ b/types/react-icons/lib/fa/vk.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaVk extends React.Component { } +declare class FaVk extends React.Component { } +export = FaVk; diff --git a/types/react-icons/lib/fa/volume-control-phone.d.ts b/types/react-icons/lib/fa/volume-control-phone.d.ts index 5212a54d80..6d23707c00 100644 --- a/types/react-icons/lib/fa/volume-control-phone.d.ts +++ b/types/react-icons/lib/fa/volume-control-phone.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaVolumeControlPhone extends React.Component { } +declare class FaVolumeControlPhone extends React.Component { } +export = FaVolumeControlPhone; diff --git a/types/react-icons/lib/fa/volume-down.d.ts b/types/react-icons/lib/fa/volume-down.d.ts index 31c63f8901..7ccbf7d5f2 100644 --- a/types/react-icons/lib/fa/volume-down.d.ts +++ b/types/react-icons/lib/fa/volume-down.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaVolumeDown extends React.Component { } +declare class FaVolumeDown extends React.Component { } +export = FaVolumeDown; diff --git a/types/react-icons/lib/fa/volume-off.d.ts b/types/react-icons/lib/fa/volume-off.d.ts index c0e0d7605e..e51c9049b9 100644 --- a/types/react-icons/lib/fa/volume-off.d.ts +++ b/types/react-icons/lib/fa/volume-off.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaVolumeOff extends React.Component { } +declare class FaVolumeOff extends React.Component { } +export = FaVolumeOff; diff --git a/types/react-icons/lib/fa/volume-up.d.ts b/types/react-icons/lib/fa/volume-up.d.ts index 957cdc648b..645bb02c6e 100644 --- a/types/react-icons/lib/fa/volume-up.d.ts +++ b/types/react-icons/lib/fa/volume-up.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaVolumeUp extends React.Component { } +declare class FaVolumeUp extends React.Component { } +export = FaVolumeUp; diff --git a/types/react-icons/lib/fa/wechat.d.ts b/types/react-icons/lib/fa/wechat.d.ts index 35b902956e..717b59bcac 100644 --- a/types/react-icons/lib/fa/wechat.d.ts +++ b/types/react-icons/lib/fa/wechat.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaWechat extends React.Component { } +declare class FaWechat extends React.Component { } +export = FaWechat; diff --git a/types/react-icons/lib/fa/weibo.d.ts b/types/react-icons/lib/fa/weibo.d.ts index afbebd68a5..3025097a79 100644 --- a/types/react-icons/lib/fa/weibo.d.ts +++ b/types/react-icons/lib/fa/weibo.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaWeibo extends React.Component { } +declare class FaWeibo extends React.Component { } +export = FaWeibo; diff --git a/types/react-icons/lib/fa/whatsapp.d.ts b/types/react-icons/lib/fa/whatsapp.d.ts index d4491b527e..0e6bda62ea 100644 --- a/types/react-icons/lib/fa/whatsapp.d.ts +++ b/types/react-icons/lib/fa/whatsapp.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaWhatsapp extends React.Component { } +declare class FaWhatsapp extends React.Component { } +export = FaWhatsapp; diff --git a/types/react-icons/lib/fa/wheelchair-alt.d.ts b/types/react-icons/lib/fa/wheelchair-alt.d.ts index beb76b7b56..dc1abda0b6 100644 --- a/types/react-icons/lib/fa/wheelchair-alt.d.ts +++ b/types/react-icons/lib/fa/wheelchair-alt.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaWheelchairAlt extends React.Component { } +declare class FaWheelchairAlt extends React.Component { } +export = FaWheelchairAlt; diff --git a/types/react-icons/lib/fa/wheelchair.d.ts b/types/react-icons/lib/fa/wheelchair.d.ts index b93d14b52d..ddbb4b4ac3 100644 --- a/types/react-icons/lib/fa/wheelchair.d.ts +++ b/types/react-icons/lib/fa/wheelchair.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaWheelchair extends React.Component { } +declare class FaWheelchair extends React.Component { } +export = FaWheelchair; diff --git a/types/react-icons/lib/fa/wifi.d.ts b/types/react-icons/lib/fa/wifi.d.ts index 001d3cfc85..588ada2e51 100644 --- a/types/react-icons/lib/fa/wifi.d.ts +++ b/types/react-icons/lib/fa/wifi.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaWifi extends React.Component { } +declare class FaWifi extends React.Component { } +export = FaWifi; diff --git a/types/react-icons/lib/fa/wikipedia-w.d.ts b/types/react-icons/lib/fa/wikipedia-w.d.ts index 279a74f1af..6403e0d3d5 100644 --- a/types/react-icons/lib/fa/wikipedia-w.d.ts +++ b/types/react-icons/lib/fa/wikipedia-w.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaWikipediaW extends React.Component { } +declare class FaWikipediaW extends React.Component { } +export = FaWikipediaW; diff --git a/types/react-icons/lib/fa/windows.d.ts b/types/react-icons/lib/fa/windows.d.ts index 7e201a440e..7f753ad855 100644 --- a/types/react-icons/lib/fa/windows.d.ts +++ b/types/react-icons/lib/fa/windows.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaWindows extends React.Component { } +declare class FaWindows extends React.Component { } +export = FaWindows; diff --git a/types/react-icons/lib/fa/wordpress.d.ts b/types/react-icons/lib/fa/wordpress.d.ts index 6419cd1638..8233d1d08c 100644 --- a/types/react-icons/lib/fa/wordpress.d.ts +++ b/types/react-icons/lib/fa/wordpress.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaWordpress extends React.Component { } +declare class FaWordpress extends React.Component { } +export = FaWordpress; diff --git a/types/react-icons/lib/fa/wpbeginner.d.ts b/types/react-icons/lib/fa/wpbeginner.d.ts index cccbdae9db..153271dd71 100644 --- a/types/react-icons/lib/fa/wpbeginner.d.ts +++ b/types/react-icons/lib/fa/wpbeginner.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaWpbeginner extends React.Component { } +declare class FaWpbeginner extends React.Component { } +export = FaWpbeginner; diff --git a/types/react-icons/lib/fa/wpforms.d.ts b/types/react-icons/lib/fa/wpforms.d.ts index 1ec4e76460..a832827f4f 100644 --- a/types/react-icons/lib/fa/wpforms.d.ts +++ b/types/react-icons/lib/fa/wpforms.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaWpforms extends React.Component { } +declare class FaWpforms extends React.Component { } +export = FaWpforms; diff --git a/types/react-icons/lib/fa/wrench.d.ts b/types/react-icons/lib/fa/wrench.d.ts index 0264b8d26b..8e0c85b7d1 100644 --- a/types/react-icons/lib/fa/wrench.d.ts +++ b/types/react-icons/lib/fa/wrench.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaWrench extends React.Component { } +declare class FaWrench extends React.Component { } +export = FaWrench; diff --git a/types/react-icons/lib/fa/xing-square.d.ts b/types/react-icons/lib/fa/xing-square.d.ts index 5f462112ea..91b9a2c908 100644 --- a/types/react-icons/lib/fa/xing-square.d.ts +++ b/types/react-icons/lib/fa/xing-square.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaXingSquare extends React.Component { } +declare class FaXingSquare extends React.Component { } +export = FaXingSquare; diff --git a/types/react-icons/lib/fa/xing.d.ts b/types/react-icons/lib/fa/xing.d.ts index 1974b8c345..a01172d7fe 100644 --- a/types/react-icons/lib/fa/xing.d.ts +++ b/types/react-icons/lib/fa/xing.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaXing extends React.Component { } +declare class FaXing extends React.Component { } +export = FaXing; diff --git a/types/react-icons/lib/fa/y-combinator.d.ts b/types/react-icons/lib/fa/y-combinator.d.ts index 00fbccab76..f1df30eaa6 100644 --- a/types/react-icons/lib/fa/y-combinator.d.ts +++ b/types/react-icons/lib/fa/y-combinator.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaYCombinator extends React.Component { } +declare class FaYCombinator extends React.Component { } +export = FaYCombinator; diff --git a/types/react-icons/lib/fa/yahoo.d.ts b/types/react-icons/lib/fa/yahoo.d.ts index 20c14e5e13..9012569101 100644 --- a/types/react-icons/lib/fa/yahoo.d.ts +++ b/types/react-icons/lib/fa/yahoo.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaYahoo extends React.Component { } +declare class FaYahoo extends React.Component { } +export = FaYahoo; diff --git a/types/react-icons/lib/fa/yelp.d.ts b/types/react-icons/lib/fa/yelp.d.ts index 72ade5360d..d0f6add472 100644 --- a/types/react-icons/lib/fa/yelp.d.ts +++ b/types/react-icons/lib/fa/yelp.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaYelp extends React.Component { } +declare class FaYelp extends React.Component { } +export = FaYelp; diff --git a/types/react-icons/lib/fa/youtube-play.d.ts b/types/react-icons/lib/fa/youtube-play.d.ts index f1829960cf..91a5d66658 100644 --- a/types/react-icons/lib/fa/youtube-play.d.ts +++ b/types/react-icons/lib/fa/youtube-play.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaYoutubePlay extends React.Component { } +declare class FaYoutubePlay extends React.Component { } +export = FaYoutubePlay; diff --git a/types/react-icons/lib/fa/youtube-square.d.ts b/types/react-icons/lib/fa/youtube-square.d.ts index c0ccac4e45..81ad16b87c 100644 --- a/types/react-icons/lib/fa/youtube-square.d.ts +++ b/types/react-icons/lib/fa/youtube-square.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaYoutubeSquare extends React.Component { } +declare class FaYoutubeSquare extends React.Component { } +export = FaYoutubeSquare; diff --git a/types/react-icons/lib/fa/youtube.d.ts b/types/react-icons/lib/fa/youtube.d.ts index 7aee8011f5..0c683aea91 100644 --- a/types/react-icons/lib/fa/youtube.d.ts +++ b/types/react-icons/lib/fa/youtube.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class FaYoutube extends React.Component { } +declare class FaYoutube extends React.Component { } +export = FaYoutube; diff --git a/types/react-icons/lib/go/alert.d.ts b/types/react-icons/lib/go/alert.d.ts index 7380b75f13..8aef8e961b 100644 --- a/types/react-icons/lib/go/alert.d.ts +++ b/types/react-icons/lib/go/alert.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class GoAlert extends React.Component { } +declare class GoAlert extends React.Component { } +export = GoAlert; diff --git a/types/react-icons/lib/go/alignment-align.d.ts b/types/react-icons/lib/go/alignment-align.d.ts index b0279982e2..43132f6c6a 100644 --- a/types/react-icons/lib/go/alignment-align.d.ts +++ b/types/react-icons/lib/go/alignment-align.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class GoAlignmentAlign extends React.Component { } +declare class GoAlignmentAlign extends React.Component { } +export = GoAlignmentAlign; diff --git a/types/react-icons/lib/go/alignment-aligned-to.d.ts b/types/react-icons/lib/go/alignment-aligned-to.d.ts index 4d42f9aff5..9aad06232d 100644 --- a/types/react-icons/lib/go/alignment-aligned-to.d.ts +++ b/types/react-icons/lib/go/alignment-aligned-to.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class GoAlignmentAlignedTo extends React.Component { } +declare class GoAlignmentAlignedTo extends React.Component { } +export = GoAlignmentAlignedTo; diff --git a/types/react-icons/lib/go/alignment-unalign.d.ts b/types/react-icons/lib/go/alignment-unalign.d.ts index fcc4e84501..76e3d0701b 100644 --- a/types/react-icons/lib/go/alignment-unalign.d.ts +++ b/types/react-icons/lib/go/alignment-unalign.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class GoAlignmentUnalign extends React.Component { } +declare class GoAlignmentUnalign extends React.Component { } +export = GoAlignmentUnalign; diff --git a/types/react-icons/lib/go/arrow-down.d.ts b/types/react-icons/lib/go/arrow-down.d.ts index 88395ee5f4..065d81a32c 100644 --- a/types/react-icons/lib/go/arrow-down.d.ts +++ b/types/react-icons/lib/go/arrow-down.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class GoArrowDown extends React.Component { } +declare class GoArrowDown extends React.Component { } +export = GoArrowDown; diff --git a/types/react-icons/lib/go/arrow-left.d.ts b/types/react-icons/lib/go/arrow-left.d.ts index 4bbebb5f65..341cada9b5 100644 --- a/types/react-icons/lib/go/arrow-left.d.ts +++ b/types/react-icons/lib/go/arrow-left.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class GoArrowLeft extends React.Component { } +declare class GoArrowLeft extends React.Component { } +export = GoArrowLeft; diff --git a/types/react-icons/lib/go/arrow-right.d.ts b/types/react-icons/lib/go/arrow-right.d.ts index 484a4f9317..f3329ea8f5 100644 --- a/types/react-icons/lib/go/arrow-right.d.ts +++ b/types/react-icons/lib/go/arrow-right.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class GoArrowRight extends React.Component { } +declare class GoArrowRight extends React.Component { } +export = GoArrowRight; diff --git a/types/react-icons/lib/go/arrow-small-down.d.ts b/types/react-icons/lib/go/arrow-small-down.d.ts index d4aa907034..764e8a0445 100644 --- a/types/react-icons/lib/go/arrow-small-down.d.ts +++ b/types/react-icons/lib/go/arrow-small-down.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class GoArrowSmallDown extends React.Component { } +declare class GoArrowSmallDown extends React.Component { } +export = GoArrowSmallDown; diff --git a/types/react-icons/lib/go/arrow-small-left.d.ts b/types/react-icons/lib/go/arrow-small-left.d.ts index a3700b5837..2df8a30523 100644 --- a/types/react-icons/lib/go/arrow-small-left.d.ts +++ b/types/react-icons/lib/go/arrow-small-left.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class GoArrowSmallLeft extends React.Component { } +declare class GoArrowSmallLeft extends React.Component { } +export = GoArrowSmallLeft; diff --git a/types/react-icons/lib/go/arrow-small-right.d.ts b/types/react-icons/lib/go/arrow-small-right.d.ts index 0ada4d71ee..5d8ff51263 100644 --- a/types/react-icons/lib/go/arrow-small-right.d.ts +++ b/types/react-icons/lib/go/arrow-small-right.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class GoArrowSmallRight extends React.Component { } +declare class GoArrowSmallRight extends React.Component { } +export = GoArrowSmallRight; diff --git a/types/react-icons/lib/go/arrow-small-up.d.ts b/types/react-icons/lib/go/arrow-small-up.d.ts index 2bd6cdb4f3..cdcf14f8b5 100644 --- a/types/react-icons/lib/go/arrow-small-up.d.ts +++ b/types/react-icons/lib/go/arrow-small-up.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class GoArrowSmallUp extends React.Component { } +declare class GoArrowSmallUp extends React.Component { } +export = GoArrowSmallUp; diff --git a/types/react-icons/lib/go/arrow-up.d.ts b/types/react-icons/lib/go/arrow-up.d.ts index 67a6866297..7fc9d7b6f7 100644 --- a/types/react-icons/lib/go/arrow-up.d.ts +++ b/types/react-icons/lib/go/arrow-up.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class GoArrowUp extends React.Component { } +declare class GoArrowUp extends React.Component { } +export = GoArrowUp; diff --git a/types/react-icons/lib/go/beer.d.ts b/types/react-icons/lib/go/beer.d.ts index 71baf9a3ac..1bd6a0bcea 100644 --- a/types/react-icons/lib/go/beer.d.ts +++ b/types/react-icons/lib/go/beer.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class GoBeer extends React.Component { } +declare class GoBeer extends React.Component { } +export = GoBeer; diff --git a/types/react-icons/lib/go/book.d.ts b/types/react-icons/lib/go/book.d.ts index cd181328b6..51a7772680 100644 --- a/types/react-icons/lib/go/book.d.ts +++ b/types/react-icons/lib/go/book.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class GoBook extends React.Component { } +declare class GoBook extends React.Component { } +export = GoBook; diff --git a/types/react-icons/lib/go/bookmark.d.ts b/types/react-icons/lib/go/bookmark.d.ts index d3b156181f..8fa0cd40fa 100644 --- a/types/react-icons/lib/go/bookmark.d.ts +++ b/types/react-icons/lib/go/bookmark.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class GoBookmark extends React.Component { } +declare class GoBookmark extends React.Component { } +export = GoBookmark; diff --git a/types/react-icons/lib/go/briefcase.d.ts b/types/react-icons/lib/go/briefcase.d.ts index 984092ba9b..3079133875 100644 --- a/types/react-icons/lib/go/briefcase.d.ts +++ b/types/react-icons/lib/go/briefcase.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class GoBriefcase extends React.Component { } +declare class GoBriefcase extends React.Component { } +export = GoBriefcase; diff --git a/types/react-icons/lib/go/broadcast.d.ts b/types/react-icons/lib/go/broadcast.d.ts index 6c40834a02..084c84f78c 100644 --- a/types/react-icons/lib/go/broadcast.d.ts +++ b/types/react-icons/lib/go/broadcast.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class GoBroadcast extends React.Component { } +declare class GoBroadcast extends React.Component { } +export = GoBroadcast; diff --git a/types/react-icons/lib/go/browser.d.ts b/types/react-icons/lib/go/browser.d.ts index c268f36ec0..beca5e62c5 100644 --- a/types/react-icons/lib/go/browser.d.ts +++ b/types/react-icons/lib/go/browser.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class GoBrowser extends React.Component { } +declare class GoBrowser extends React.Component { } +export = GoBrowser; diff --git a/types/react-icons/lib/go/bug.d.ts b/types/react-icons/lib/go/bug.d.ts index 8159ff886d..22adaa0d16 100644 --- a/types/react-icons/lib/go/bug.d.ts +++ b/types/react-icons/lib/go/bug.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class GoBug extends React.Component { } +declare class GoBug extends React.Component { } +export = GoBug; diff --git a/types/react-icons/lib/go/calendar.d.ts b/types/react-icons/lib/go/calendar.d.ts index 5c52a2bf67..120a146e51 100644 --- a/types/react-icons/lib/go/calendar.d.ts +++ b/types/react-icons/lib/go/calendar.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class GoCalendar extends React.Component { } +declare class GoCalendar extends React.Component { } +export = GoCalendar; diff --git a/types/react-icons/lib/go/check.d.ts b/types/react-icons/lib/go/check.d.ts index f1f9c1536b..9222f5e01c 100644 --- a/types/react-icons/lib/go/check.d.ts +++ b/types/react-icons/lib/go/check.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class GoCheck extends React.Component { } +declare class GoCheck extends React.Component { } +export = GoCheck; diff --git a/types/react-icons/lib/go/checklist.d.ts b/types/react-icons/lib/go/checklist.d.ts index e1bfc3a76e..f94396328b 100644 --- a/types/react-icons/lib/go/checklist.d.ts +++ b/types/react-icons/lib/go/checklist.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class GoChecklist extends React.Component { } +declare class GoChecklist extends React.Component { } +export = GoChecklist; diff --git a/types/react-icons/lib/go/chevron-down.d.ts b/types/react-icons/lib/go/chevron-down.d.ts index 4879ed7129..8e2e05efc0 100644 --- a/types/react-icons/lib/go/chevron-down.d.ts +++ b/types/react-icons/lib/go/chevron-down.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class GoChevronDown extends React.Component { } +declare class GoChevronDown extends React.Component { } +export = GoChevronDown; diff --git a/types/react-icons/lib/go/chevron-left.d.ts b/types/react-icons/lib/go/chevron-left.d.ts index 36a6c0f96a..2d35c85701 100644 --- a/types/react-icons/lib/go/chevron-left.d.ts +++ b/types/react-icons/lib/go/chevron-left.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class GoChevronLeft extends React.Component { } +declare class GoChevronLeft extends React.Component { } +export = GoChevronLeft; diff --git a/types/react-icons/lib/go/chevron-right.d.ts b/types/react-icons/lib/go/chevron-right.d.ts index 55e19d951a..785db2e7df 100644 --- a/types/react-icons/lib/go/chevron-right.d.ts +++ b/types/react-icons/lib/go/chevron-right.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class GoChevronRight extends React.Component { } +declare class GoChevronRight extends React.Component { } +export = GoChevronRight; diff --git a/types/react-icons/lib/go/chevron-up.d.ts b/types/react-icons/lib/go/chevron-up.d.ts index 2eba9e55c4..3e2a2fba3f 100644 --- a/types/react-icons/lib/go/chevron-up.d.ts +++ b/types/react-icons/lib/go/chevron-up.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class GoChevronUp extends React.Component { } +declare class GoChevronUp extends React.Component { } +export = GoChevronUp; diff --git a/types/react-icons/lib/go/circle-slash.d.ts b/types/react-icons/lib/go/circle-slash.d.ts index 4400a217f6..f600dddd01 100644 --- a/types/react-icons/lib/go/circle-slash.d.ts +++ b/types/react-icons/lib/go/circle-slash.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class GoCircleSlash extends React.Component { } +declare class GoCircleSlash extends React.Component { } +export = GoCircleSlash; diff --git a/types/react-icons/lib/go/circuit-board.d.ts b/types/react-icons/lib/go/circuit-board.d.ts index 396c2dc8e8..ca480fbb1e 100644 --- a/types/react-icons/lib/go/circuit-board.d.ts +++ b/types/react-icons/lib/go/circuit-board.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class GoCircuitBoard extends React.Component { } +declare class GoCircuitBoard extends React.Component { } +export = GoCircuitBoard; diff --git a/types/react-icons/lib/go/clippy.d.ts b/types/react-icons/lib/go/clippy.d.ts index 3483e7754e..56be220e23 100644 --- a/types/react-icons/lib/go/clippy.d.ts +++ b/types/react-icons/lib/go/clippy.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class GoClippy extends React.Component { } +declare class GoClippy extends React.Component { } +export = GoClippy; diff --git a/types/react-icons/lib/go/clock.d.ts b/types/react-icons/lib/go/clock.d.ts index 3cac2ddd8a..a17c01626d 100644 --- a/types/react-icons/lib/go/clock.d.ts +++ b/types/react-icons/lib/go/clock.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class GoClock extends React.Component { } +declare class GoClock extends React.Component { } +export = GoClock; diff --git a/types/react-icons/lib/go/cloud-download.d.ts b/types/react-icons/lib/go/cloud-download.d.ts index a04b70acac..d494af7071 100644 --- a/types/react-icons/lib/go/cloud-download.d.ts +++ b/types/react-icons/lib/go/cloud-download.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class GoCloudDownload extends React.Component { } +declare class GoCloudDownload extends React.Component { } +export = GoCloudDownload; diff --git a/types/react-icons/lib/go/cloud-upload.d.ts b/types/react-icons/lib/go/cloud-upload.d.ts index 07ac4f6286..8d0ea325a5 100644 --- a/types/react-icons/lib/go/cloud-upload.d.ts +++ b/types/react-icons/lib/go/cloud-upload.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class GoCloudUpload extends React.Component { } +declare class GoCloudUpload extends React.Component { } +export = GoCloudUpload; diff --git a/types/react-icons/lib/go/code.d.ts b/types/react-icons/lib/go/code.d.ts index 7bbb2b7348..38a49e3638 100644 --- a/types/react-icons/lib/go/code.d.ts +++ b/types/react-icons/lib/go/code.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class GoCode extends React.Component { } +declare class GoCode extends React.Component { } +export = GoCode; diff --git a/types/react-icons/lib/go/color-mode.d.ts b/types/react-icons/lib/go/color-mode.d.ts index f047381423..c5e8ef618b 100644 --- a/types/react-icons/lib/go/color-mode.d.ts +++ b/types/react-icons/lib/go/color-mode.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class GoColorMode extends React.Component { } +declare class GoColorMode extends React.Component { } +export = GoColorMode; diff --git a/types/react-icons/lib/go/comment-discussion.d.ts b/types/react-icons/lib/go/comment-discussion.d.ts index 62be81f952..ef8f85bade 100644 --- a/types/react-icons/lib/go/comment-discussion.d.ts +++ b/types/react-icons/lib/go/comment-discussion.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class GoCommentDiscussion extends React.Component { } +declare class GoCommentDiscussion extends React.Component { } +export = GoCommentDiscussion; diff --git a/types/react-icons/lib/go/comment.d.ts b/types/react-icons/lib/go/comment.d.ts index 2e14daa806..2560216eed 100644 --- a/types/react-icons/lib/go/comment.d.ts +++ b/types/react-icons/lib/go/comment.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class GoComment extends React.Component { } +declare class GoComment extends React.Component { } +export = GoComment; diff --git a/types/react-icons/lib/go/credit-card.d.ts b/types/react-icons/lib/go/credit-card.d.ts index d7dbb4127c..c312d533de 100644 --- a/types/react-icons/lib/go/credit-card.d.ts +++ b/types/react-icons/lib/go/credit-card.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class GoCreditCard extends React.Component { } +declare class GoCreditCard extends React.Component { } +export = GoCreditCard; diff --git a/types/react-icons/lib/go/dash.d.ts b/types/react-icons/lib/go/dash.d.ts index c7c6ca094f..f80213934e 100644 --- a/types/react-icons/lib/go/dash.d.ts +++ b/types/react-icons/lib/go/dash.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class GoDash extends React.Component { } +declare class GoDash extends React.Component { } +export = GoDash; diff --git a/types/react-icons/lib/go/dashboard.d.ts b/types/react-icons/lib/go/dashboard.d.ts index ab328f0213..d1eae63855 100644 --- a/types/react-icons/lib/go/dashboard.d.ts +++ b/types/react-icons/lib/go/dashboard.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class GoDashboard extends React.Component { } +declare class GoDashboard extends React.Component { } +export = GoDashboard; diff --git a/types/react-icons/lib/go/database.d.ts b/types/react-icons/lib/go/database.d.ts index 34758c332d..2a02e50ff8 100644 --- a/types/react-icons/lib/go/database.d.ts +++ b/types/react-icons/lib/go/database.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class GoDatabase extends React.Component { } +declare class GoDatabase extends React.Component { } +export = GoDatabase; diff --git a/types/react-icons/lib/go/device-camera-video.d.ts b/types/react-icons/lib/go/device-camera-video.d.ts index 9274c81fdd..a397108cd8 100644 --- a/types/react-icons/lib/go/device-camera-video.d.ts +++ b/types/react-icons/lib/go/device-camera-video.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class GoDeviceCameraVideo extends React.Component { } +declare class GoDeviceCameraVideo extends React.Component { } +export = GoDeviceCameraVideo; diff --git a/types/react-icons/lib/go/device-camera.d.ts b/types/react-icons/lib/go/device-camera.d.ts index 65a3f9aa8c..deffd102d3 100644 --- a/types/react-icons/lib/go/device-camera.d.ts +++ b/types/react-icons/lib/go/device-camera.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class GoDeviceCamera extends React.Component { } +declare class GoDeviceCamera extends React.Component { } +export = GoDeviceCamera; diff --git a/types/react-icons/lib/go/device-desktop.d.ts b/types/react-icons/lib/go/device-desktop.d.ts index 7c75dfe2f1..8f371a1599 100644 --- a/types/react-icons/lib/go/device-desktop.d.ts +++ b/types/react-icons/lib/go/device-desktop.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class GoDeviceDesktop extends React.Component { } +declare class GoDeviceDesktop extends React.Component { } +export = GoDeviceDesktop; diff --git a/types/react-icons/lib/go/device-mobile.d.ts b/types/react-icons/lib/go/device-mobile.d.ts index 046f63558d..8a83aea856 100644 --- a/types/react-icons/lib/go/device-mobile.d.ts +++ b/types/react-icons/lib/go/device-mobile.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class GoDeviceMobile extends React.Component { } +declare class GoDeviceMobile extends React.Component { } +export = GoDeviceMobile; diff --git a/types/react-icons/lib/go/diff-added.d.ts b/types/react-icons/lib/go/diff-added.d.ts index bde41f0f53..3c6b5773af 100644 --- a/types/react-icons/lib/go/diff-added.d.ts +++ b/types/react-icons/lib/go/diff-added.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class GoDiffAdded extends React.Component { } +declare class GoDiffAdded extends React.Component { } +export = GoDiffAdded; diff --git a/types/react-icons/lib/go/diff-ignored.d.ts b/types/react-icons/lib/go/diff-ignored.d.ts index 2508e07fa9..a51e557b1f 100644 --- a/types/react-icons/lib/go/diff-ignored.d.ts +++ b/types/react-icons/lib/go/diff-ignored.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class GoDiffIgnored extends React.Component { } +declare class GoDiffIgnored extends React.Component { } +export = GoDiffIgnored; diff --git a/types/react-icons/lib/go/diff-modified.d.ts b/types/react-icons/lib/go/diff-modified.d.ts index af95e1337d..731b2479a0 100644 --- a/types/react-icons/lib/go/diff-modified.d.ts +++ b/types/react-icons/lib/go/diff-modified.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class GoDiffModified extends React.Component { } +declare class GoDiffModified extends React.Component { } +export = GoDiffModified; diff --git a/types/react-icons/lib/go/diff-removed.d.ts b/types/react-icons/lib/go/diff-removed.d.ts index 46b1e78387..87c2edc408 100644 --- a/types/react-icons/lib/go/diff-removed.d.ts +++ b/types/react-icons/lib/go/diff-removed.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class GoDiffRemoved extends React.Component { } +declare class GoDiffRemoved extends React.Component { } +export = GoDiffRemoved; diff --git a/types/react-icons/lib/go/diff-renamed.d.ts b/types/react-icons/lib/go/diff-renamed.d.ts index c73850d52c..9681af78b4 100644 --- a/types/react-icons/lib/go/diff-renamed.d.ts +++ b/types/react-icons/lib/go/diff-renamed.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class GoDiffRenamed extends React.Component { } +declare class GoDiffRenamed extends React.Component { } +export = GoDiffRenamed; diff --git a/types/react-icons/lib/go/diff.d.ts b/types/react-icons/lib/go/diff.d.ts index ebc0f14e2d..0198d4eea2 100644 --- a/types/react-icons/lib/go/diff.d.ts +++ b/types/react-icons/lib/go/diff.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class GoDiff extends React.Component { } +declare class GoDiff extends React.Component { } +export = GoDiff; diff --git a/types/react-icons/lib/go/ellipsis.d.ts b/types/react-icons/lib/go/ellipsis.d.ts index b8a40f3e30..4723501dd1 100644 --- a/types/react-icons/lib/go/ellipsis.d.ts +++ b/types/react-icons/lib/go/ellipsis.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class GoEllipsis extends React.Component { } +declare class GoEllipsis extends React.Component { } +export = GoEllipsis; diff --git a/types/react-icons/lib/go/eye.d.ts b/types/react-icons/lib/go/eye.d.ts index 91e5fe5385..7938360f17 100644 --- a/types/react-icons/lib/go/eye.d.ts +++ b/types/react-icons/lib/go/eye.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class GoEye extends React.Component { } +declare class GoEye extends React.Component { } +export = GoEye; diff --git a/types/react-icons/lib/go/file-binary.d.ts b/types/react-icons/lib/go/file-binary.d.ts index b5ab33f79a..52ac8d832f 100644 --- a/types/react-icons/lib/go/file-binary.d.ts +++ b/types/react-icons/lib/go/file-binary.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class GoFileBinary extends React.Component { } +declare class GoFileBinary extends React.Component { } +export = GoFileBinary; diff --git a/types/react-icons/lib/go/file-code.d.ts b/types/react-icons/lib/go/file-code.d.ts index 297e89de52..e951dd2902 100644 --- a/types/react-icons/lib/go/file-code.d.ts +++ b/types/react-icons/lib/go/file-code.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class GoFileCode extends React.Component { } +declare class GoFileCode extends React.Component { } +export = GoFileCode; diff --git a/types/react-icons/lib/go/file-directory.d.ts b/types/react-icons/lib/go/file-directory.d.ts index a64af8f137..209cff3957 100644 --- a/types/react-icons/lib/go/file-directory.d.ts +++ b/types/react-icons/lib/go/file-directory.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class GoFileDirectory extends React.Component { } +declare class GoFileDirectory extends React.Component { } +export = GoFileDirectory; diff --git a/types/react-icons/lib/go/file-media.d.ts b/types/react-icons/lib/go/file-media.d.ts index 8cf5535220..d8e1153b32 100644 --- a/types/react-icons/lib/go/file-media.d.ts +++ b/types/react-icons/lib/go/file-media.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class GoFileMedia extends React.Component { } +declare class GoFileMedia extends React.Component { } +export = GoFileMedia; diff --git a/types/react-icons/lib/go/file-pdf.d.ts b/types/react-icons/lib/go/file-pdf.d.ts index 43ae39d5a7..afedc960c7 100644 --- a/types/react-icons/lib/go/file-pdf.d.ts +++ b/types/react-icons/lib/go/file-pdf.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class GoFilePdf extends React.Component { } +declare class GoFilePdf extends React.Component { } +export = GoFilePdf; diff --git a/types/react-icons/lib/go/file-submodule.d.ts b/types/react-icons/lib/go/file-submodule.d.ts index 5a9499dbac..d043de364d 100644 --- a/types/react-icons/lib/go/file-submodule.d.ts +++ b/types/react-icons/lib/go/file-submodule.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class GoFileSubmodule extends React.Component { } +declare class GoFileSubmodule extends React.Component { } +export = GoFileSubmodule; diff --git a/types/react-icons/lib/go/file-symlink-directory.d.ts b/types/react-icons/lib/go/file-symlink-directory.d.ts index 5337059393..3065c11ecc 100644 --- a/types/react-icons/lib/go/file-symlink-directory.d.ts +++ b/types/react-icons/lib/go/file-symlink-directory.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class GoFileSymlinkDirectory extends React.Component { } +declare class GoFileSymlinkDirectory extends React.Component { } +export = GoFileSymlinkDirectory; diff --git a/types/react-icons/lib/go/file-symlink-file.d.ts b/types/react-icons/lib/go/file-symlink-file.d.ts index 0116f9d2f0..d3fefe9e42 100644 --- a/types/react-icons/lib/go/file-symlink-file.d.ts +++ b/types/react-icons/lib/go/file-symlink-file.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class GoFileSymlinkFile extends React.Component { } +declare class GoFileSymlinkFile extends React.Component { } +export = GoFileSymlinkFile; diff --git a/types/react-icons/lib/go/file-text.d.ts b/types/react-icons/lib/go/file-text.d.ts index 23b59dfcfd..c478a383b6 100644 --- a/types/react-icons/lib/go/file-text.d.ts +++ b/types/react-icons/lib/go/file-text.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class GoFileText extends React.Component { } +declare class GoFileText extends React.Component { } +export = GoFileText; diff --git a/types/react-icons/lib/go/file-zip.d.ts b/types/react-icons/lib/go/file-zip.d.ts index e4f588b5db..c264cf3645 100644 --- a/types/react-icons/lib/go/file-zip.d.ts +++ b/types/react-icons/lib/go/file-zip.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class GoFileZip extends React.Component { } +declare class GoFileZip extends React.Component { } +export = GoFileZip; diff --git a/types/react-icons/lib/go/flame.d.ts b/types/react-icons/lib/go/flame.d.ts index baa5aa3739..d4e3186919 100644 --- a/types/react-icons/lib/go/flame.d.ts +++ b/types/react-icons/lib/go/flame.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class GoFlame extends React.Component { } +declare class GoFlame extends React.Component { } +export = GoFlame; diff --git a/types/react-icons/lib/go/fold.d.ts b/types/react-icons/lib/go/fold.d.ts index 7ae869e942..4b3c9758e7 100644 --- a/types/react-icons/lib/go/fold.d.ts +++ b/types/react-icons/lib/go/fold.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class GoFold extends React.Component { } +declare class GoFold extends React.Component { } +export = GoFold; diff --git a/types/react-icons/lib/go/gear.d.ts b/types/react-icons/lib/go/gear.d.ts index 7fd837ffbc..6b6cdecc08 100644 --- a/types/react-icons/lib/go/gear.d.ts +++ b/types/react-icons/lib/go/gear.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class GoGear extends React.Component { } +declare class GoGear extends React.Component { } +export = GoGear; diff --git a/types/react-icons/lib/go/gift.d.ts b/types/react-icons/lib/go/gift.d.ts index 98b9deb223..ff70fb3c03 100644 --- a/types/react-icons/lib/go/gift.d.ts +++ b/types/react-icons/lib/go/gift.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class GoGift extends React.Component { } +declare class GoGift extends React.Component { } +export = GoGift; diff --git a/types/react-icons/lib/go/gist-secret.d.ts b/types/react-icons/lib/go/gist-secret.d.ts index c69f135efd..6118caaefe 100644 --- a/types/react-icons/lib/go/gist-secret.d.ts +++ b/types/react-icons/lib/go/gist-secret.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class GoGistSecret extends React.Component { } +declare class GoGistSecret extends React.Component { } +export = GoGistSecret; diff --git a/types/react-icons/lib/go/gist.d.ts b/types/react-icons/lib/go/gist.d.ts index 8f1ff4e827..0575839e9c 100644 --- a/types/react-icons/lib/go/gist.d.ts +++ b/types/react-icons/lib/go/gist.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class GoGist extends React.Component { } +declare class GoGist extends React.Component { } +export = GoGist; diff --git a/types/react-icons/lib/go/git-branch.d.ts b/types/react-icons/lib/go/git-branch.d.ts index 52a90bd2a5..b6eea2dd39 100644 --- a/types/react-icons/lib/go/git-branch.d.ts +++ b/types/react-icons/lib/go/git-branch.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class GoGitBranch extends React.Component { } +declare class GoGitBranch extends React.Component { } +export = GoGitBranch; diff --git a/types/react-icons/lib/go/git-commit.d.ts b/types/react-icons/lib/go/git-commit.d.ts index a1ad866ee2..920abef608 100644 --- a/types/react-icons/lib/go/git-commit.d.ts +++ b/types/react-icons/lib/go/git-commit.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class GoGitCommit extends React.Component { } +declare class GoGitCommit extends React.Component { } +export = GoGitCommit; diff --git a/types/react-icons/lib/go/git-compare.d.ts b/types/react-icons/lib/go/git-compare.d.ts index 4336af1b22..a114d0e6ab 100644 --- a/types/react-icons/lib/go/git-compare.d.ts +++ b/types/react-icons/lib/go/git-compare.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class GoGitCompare extends React.Component { } +declare class GoGitCompare extends React.Component { } +export = GoGitCompare; diff --git a/types/react-icons/lib/go/git-merge.d.ts b/types/react-icons/lib/go/git-merge.d.ts index f7d3457db7..0773f55a13 100644 --- a/types/react-icons/lib/go/git-merge.d.ts +++ b/types/react-icons/lib/go/git-merge.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class GoGitMerge extends React.Component { } +declare class GoGitMerge extends React.Component { } +export = GoGitMerge; diff --git a/types/react-icons/lib/go/git-pull-request.d.ts b/types/react-icons/lib/go/git-pull-request.d.ts index 0c79ca8175..c956d9dff7 100644 --- a/types/react-icons/lib/go/git-pull-request.d.ts +++ b/types/react-icons/lib/go/git-pull-request.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class GoGitPullRequest extends React.Component { } +declare class GoGitPullRequest extends React.Component { } +export = GoGitPullRequest; diff --git a/types/react-icons/lib/go/globe.d.ts b/types/react-icons/lib/go/globe.d.ts index b1893d7685..7f3ed7047a 100644 --- a/types/react-icons/lib/go/globe.d.ts +++ b/types/react-icons/lib/go/globe.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class GoGlobe extends React.Component { } +declare class GoGlobe extends React.Component { } +export = GoGlobe; diff --git a/types/react-icons/lib/go/graph.d.ts b/types/react-icons/lib/go/graph.d.ts index 8f1c24ba75..8b2f64778b 100644 --- a/types/react-icons/lib/go/graph.d.ts +++ b/types/react-icons/lib/go/graph.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class GoGraph extends React.Component { } +declare class GoGraph extends React.Component { } +export = GoGraph; diff --git a/types/react-icons/lib/go/heart.d.ts b/types/react-icons/lib/go/heart.d.ts index 8f56d447ef..8184dfc37d 100644 --- a/types/react-icons/lib/go/heart.d.ts +++ b/types/react-icons/lib/go/heart.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class GoHeart extends React.Component { } +declare class GoHeart extends React.Component { } +export = GoHeart; diff --git a/types/react-icons/lib/go/history.d.ts b/types/react-icons/lib/go/history.d.ts index c91e923a69..e53a70ca2c 100644 --- a/types/react-icons/lib/go/history.d.ts +++ b/types/react-icons/lib/go/history.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class GoHistory extends React.Component { } +declare class GoHistory extends React.Component { } +export = GoHistory; diff --git a/types/react-icons/lib/go/home.d.ts b/types/react-icons/lib/go/home.d.ts index 97d032716f..a5141130b3 100644 --- a/types/react-icons/lib/go/home.d.ts +++ b/types/react-icons/lib/go/home.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class GoHome extends React.Component { } +declare class GoHome extends React.Component { } +export = GoHome; diff --git a/types/react-icons/lib/go/horizontal-rule.d.ts b/types/react-icons/lib/go/horizontal-rule.d.ts index 336e1f4eeb..543cf60a21 100644 --- a/types/react-icons/lib/go/horizontal-rule.d.ts +++ b/types/react-icons/lib/go/horizontal-rule.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class GoHorizontalRule extends React.Component { } +declare class GoHorizontalRule extends React.Component { } +export = GoHorizontalRule; diff --git a/types/react-icons/lib/go/hourglass.d.ts b/types/react-icons/lib/go/hourglass.d.ts index ad0fdf8563..e922565bbe 100644 --- a/types/react-icons/lib/go/hourglass.d.ts +++ b/types/react-icons/lib/go/hourglass.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class GoHourglass extends React.Component { } +declare class GoHourglass extends React.Component { } +export = GoHourglass; diff --git a/types/react-icons/lib/go/hubot.d.ts b/types/react-icons/lib/go/hubot.d.ts index 984cc59a02..f465aa1993 100644 --- a/types/react-icons/lib/go/hubot.d.ts +++ b/types/react-icons/lib/go/hubot.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class GoHubot extends React.Component { } +declare class GoHubot extends React.Component { } +export = GoHubot; diff --git a/types/react-icons/lib/go/inbox.d.ts b/types/react-icons/lib/go/inbox.d.ts index fe75bf017e..5e8d3432c4 100644 --- a/types/react-icons/lib/go/inbox.d.ts +++ b/types/react-icons/lib/go/inbox.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class GoInbox extends React.Component { } +declare class GoInbox extends React.Component { } +export = GoInbox; diff --git a/types/react-icons/lib/go/index.d.ts b/types/react-icons/lib/go/index.d.ts index 285be47453..8248b9cfc9 100644 --- a/types/react-icons/lib/go/index.d.ts +++ b/types/react-icons/lib/go/index.d.ts @@ -1,177 +1,177 @@ -export { default as GoAlert } from "./alert"; -export { default as GoAlignmentAlign } from "./alignment-align"; -export { default as GoAlignmentAlignedTo } from "./alignment-aligned-to"; -export { default as GoAlignmentUnalign } from "./alignment-unalign"; -export { default as GoArrowDown } from "./arrow-down"; -export { default as GoArrowLeft } from "./arrow-left"; -export { default as GoArrowRight } from "./arrow-right"; -export { default as GoArrowSmallDown } from "./arrow-small-down"; -export { default as GoArrowSmallLeft } from "./arrow-small-left"; -export { default as GoArrowSmallRight } from "./arrow-small-right"; -export { default as GoArrowSmallUp } from "./arrow-small-up"; -export { default as GoArrowUp } from "./arrow-up"; -export { default as GoBeer } from "./beer"; -export { default as GoBook } from "./book"; -export { default as GoBookmark } from "./bookmark"; -export { default as GoBriefcase } from "./briefcase"; -export { default as GoBroadcast } from "./broadcast"; -export { default as GoBrowser } from "./browser"; -export { default as GoBug } from "./bug"; -export { default as GoCalendar } from "./calendar"; -export { default as GoCheck } from "./check"; -export { default as GoChecklist } from "./checklist"; -export { default as GoChevronDown } from "./chevron-down"; -export { default as GoChevronLeft } from "./chevron-left"; -export { default as GoChevronRight } from "./chevron-right"; -export { default as GoChevronUp } from "./chevron-up"; -export { default as GoCircleSlash } from "./circle-slash"; -export { default as GoCircuitBoard } from "./circuit-board"; -export { default as GoClippy } from "./clippy"; -export { default as GoClock } from "./clock"; -export { default as GoCloudDownload } from "./cloud-download"; -export { default as GoCloudUpload } from "./cloud-upload"; -export { default as GoCode } from "./code"; -export { default as GoColorMode } from "./color-mode"; -export { default as GoCommentDiscussion } from "./comment-discussion"; -export { default as GoComment } from "./comment"; -export { default as GoCreditCard } from "./credit-card"; -export { default as GoDash } from "./dash"; -export { default as GoDashboard } from "./dashboard"; -export { default as GoDatabase } from "./database"; -export { default as GoDeviceCameraVideo } from "./device-camera-video"; -export { default as GoDeviceCamera } from "./device-camera"; -export { default as GoDeviceDesktop } from "./device-desktop"; -export { default as GoDeviceMobile } from "./device-mobile"; -export { default as GoDiffAdded } from "./diff-added"; -export { default as GoDiffIgnored } from "./diff-ignored"; -export { default as GoDiffModified } from "./diff-modified"; -export { default as GoDiffRemoved } from "./diff-removed"; -export { default as GoDiffRenamed } from "./diff-renamed"; -export { default as GoDiff } from "./diff"; -export { default as GoEllipsis } from "./ellipsis"; -export { default as GoEye } from "./eye"; -export { default as GoFileBinary } from "./file-binary"; -export { default as GoFileCode } from "./file-code"; -export { default as GoFileDirectory } from "./file-directory"; -export { default as GoFileMedia } from "./file-media"; -export { default as GoFilePdf } from "./file-pdf"; -export { default as GoFileSubmodule } from "./file-submodule"; -export { default as GoFileSymlinkDirectory } from "./file-symlink-directory"; -export { default as GoFileSymlinkFile } from "./file-symlink-file"; -export { default as GoFileText } from "./file-text"; -export { default as GoFileZip } from "./file-zip"; -export { default as GoFlame } from "./flame"; -export { default as GoFold } from "./fold"; -export { default as GoGear } from "./gear"; -export { default as GoGift } from "./gift"; -export { default as GoGistSecret } from "./gist-secret"; -export { default as GoGist } from "./gist"; -export { default as GoGitBranch } from "./git-branch"; -export { default as GoGitCommit } from "./git-commit"; -export { default as GoGitCompare } from "./git-compare"; -export { default as GoGitMerge } from "./git-merge"; -export { default as GoGitPullRequest } from "./git-pull-request"; -export { default as GoGlobe } from "./globe"; -export { default as GoGraph } from "./graph"; -export { default as GoHeart } from "./heart"; -export { default as GoHistory } from "./history"; -export { default as GoHome } from "./home"; -export { default as GoHorizontalRule } from "./horizontal-rule"; -export { default as GoHourglass } from "./hourglass"; -export { default as GoHubot } from "./hubot"; -export { default as GoInbox } from "./inbox"; -export { default as GoInfo } from "./info"; -export { default as GoIssueClosed } from "./issue-closed"; -export { default as GoIssueOpened } from "./issue-opened"; -export { default as GoIssueReopened } from "./issue-reopened"; -export { default as GoJersey } from "./jersey"; -export { default as GoJumpDown } from "./jump-down"; -export { default as GoJumpLeft } from "./jump-left"; -export { default as GoJumpRight } from "./jump-right"; -export { default as GoJumpUp } from "./jump-up"; -export { default as GoKey } from "./key"; -export { default as GoKeyboard } from "./keyboard"; -export { default as GoLaw } from "./law"; -export { default as GoLightBulb } from "./light-bulb"; -export { default as GoLinkExternal } from "./link-external"; -export { default as GoLink } from "./link"; -export { default as GoListOrdered } from "./list-ordered"; -export { default as GoListUnordered } from "./list-unordered"; -export { default as GoLocation } from "./location"; -export { default as GoLock } from "./lock"; -export { default as GoLogoGithub } from "./logo-github"; -export { default as GoMailRead } from "./mail-read"; -export { default as GoMailReply } from "./mail-reply"; -export { default as GoMail } from "./mail"; -export { default as GoMarkGithub } from "./mark-github"; -export { default as GoMarkdown } from "./markdown"; -export { default as GoMegaphone } from "./megaphone"; -export { default as GoMention } from "./mention"; -export { default as GoMicroscope } from "./microscope"; -export { default as GoMilestone } from "./milestone"; -export { default as GoMirror } from "./mirror"; -export { default as GoMortarBoard } from "./mortar-board"; -export { default as GoMoveDown } from "./move-down"; -export { default as GoMoveLeft } from "./move-left"; -export { default as GoMoveRight } from "./move-right"; -export { default as GoMoveUp } from "./move-up"; -export { default as GoMute } from "./mute"; -export { default as GoNoNewline } from "./no-newline"; -export { default as GoOctoface } from "./octoface"; -export { default as GoOrganization } from "./organization"; -export { default as GoPackage } from "./package"; -export { default as GoPaintcan } from "./paintcan"; -export { default as GoPencil } from "./pencil"; -export { default as GoPerson } from "./person"; -export { default as GoPin } from "./pin"; -export { default as GoPlaybackFastForward } from "./playback-fast-forward"; -export { default as GoPlaybackPause } from "./playback-pause"; -export { default as GoPlaybackPlay } from "./playback-play"; -export { default as GoPlaybackRewind } from "./playback-rewind"; -export { default as GoPlug } from "./plug"; -export { default as GoPlus } from "./plus"; -export { default as GoPodium } from "./podium"; -export { default as GoPrimitiveDot } from "./primitive-dot"; -export { default as GoPrimitiveSquare } from "./primitive-square"; -export { default as GoPulse } from "./pulse"; -export { default as GoPuzzle } from "./puzzle"; -export { default as GoQuestion } from "./question"; -export { default as GoQuote } from "./quote"; -export { default as GoRadioTower } from "./radio-tower"; -export { default as GoRepoClone } from "./repo-clone"; -export { default as GoRepoForcePush } from "./repo-force-push"; -export { default as GoRepoForked } from "./repo-forked"; -export { default as GoRepoPull } from "./repo-pull"; -export { default as GoRepoPush } from "./repo-push"; -export { default as GoRepo } from "./repo"; -export { default as GoRocket } from "./rocket"; -export { default as GoRss } from "./rss"; -export { default as GoRuby } from "./ruby"; -export { default as GoScreenFull } from "./screen-full"; -export { default as GoScreenNormal } from "./screen-normal"; -export { default as GoSearch } from "./search"; -export { default as GoServer } from "./server"; -export { default as GoSettings } from "./settings"; -export { default as GoSignIn } from "./sign-in"; -export { default as GoSignOut } from "./sign-out"; -export { default as GoSplit } from "./split"; -export { default as GoSquirrel } from "./squirrel"; -export { default as GoStar } from "./star"; -export { default as GoSteps } from "./steps"; -export { default as GoStop } from "./stop"; -export { default as GoSync } from "./sync"; -export { default as GoTag } from "./tag"; -export { default as GoTelescope } from "./telescope"; -export { default as GoTerminal } from "./terminal"; -export { default as GoThreeBars } from "./three-bars"; -export { default as GoTools } from "./tools"; -export { default as GoTrashcan } from "./trashcan"; -export { default as GoTriangleDown } from "./triangle-down"; -export { default as GoTriangleLeft } from "./triangle-left"; -export { default as GoTriangleRight } from "./triangle-right"; -export { default as GoTriangleUp } from "./triangle-up"; -export { default as GoUnfold } from "./unfold"; -export { default as GoUnmute } from "./unmute"; -export { default as GoVersions } from "./versions"; -export { default as GoX } from "./x"; -export { default as GoZap } from "./zap"; +export { default as GoAlert } from "../../go/alert"; +export { default as GoAlignmentAlign } from "../../go/alignment-align"; +export { default as GoAlignmentAlignedTo } from "../../go/alignment-aligned-to"; +export { default as GoAlignmentUnalign } from "../../go/alignment-unalign"; +export { default as GoArrowDown } from "../../go/arrow-down"; +export { default as GoArrowLeft } from "../../go/arrow-left"; +export { default as GoArrowRight } from "../../go/arrow-right"; +export { default as GoArrowSmallDown } from "../../go/arrow-small-down"; +export { default as GoArrowSmallLeft } from "../../go/arrow-small-left"; +export { default as GoArrowSmallRight } from "../../go/arrow-small-right"; +export { default as GoArrowSmallUp } from "../../go/arrow-small-up"; +export { default as GoArrowUp } from "../../go/arrow-up"; +export { default as GoBeer } from "../../go/beer"; +export { default as GoBook } from "../../go/book"; +export { default as GoBookmark } from "../../go/bookmark"; +export { default as GoBriefcase } from "../../go/briefcase"; +export { default as GoBroadcast } from "../../go/broadcast"; +export { default as GoBrowser } from "../../go/browser"; +export { default as GoBug } from "../../go/bug"; +export { default as GoCalendar } from "../../go/calendar"; +export { default as GoCheck } from "../../go/check"; +export { default as GoChecklist } from "../../go/checklist"; +export { default as GoChevronDown } from "../../go/chevron-down"; +export { default as GoChevronLeft } from "../../go/chevron-left"; +export { default as GoChevronRight } from "../../go/chevron-right"; +export { default as GoChevronUp } from "../../go/chevron-up"; +export { default as GoCircleSlash } from "../../go/circle-slash"; +export { default as GoCircuitBoard } from "../../go/circuit-board"; +export { default as GoClippy } from "../../go/clippy"; +export { default as GoClock } from "../../go/clock"; +export { default as GoCloudDownload } from "../../go/cloud-download"; +export { default as GoCloudUpload } from "../../go/cloud-upload"; +export { default as GoCode } from "../../go/code"; +export { default as GoColorMode } from "../../go/color-mode"; +export { default as GoCommentDiscussion } from "../../go/comment-discussion"; +export { default as GoComment } from "../../go/comment"; +export { default as GoCreditCard } from "../../go/credit-card"; +export { default as GoDash } from "../../go/dash"; +export { default as GoDashboard } from "../../go/dashboard"; +export { default as GoDatabase } from "../../go/database"; +export { default as GoDeviceCameraVideo } from "../../go/device-camera-video"; +export { default as GoDeviceCamera } from "../../go/device-camera"; +export { default as GoDeviceDesktop } from "../../go/device-desktop"; +export { default as GoDeviceMobile } from "../../go/device-mobile"; +export { default as GoDiffAdded } from "../../go/diff-added"; +export { default as GoDiffIgnored } from "../../go/diff-ignored"; +export { default as GoDiffModified } from "../../go/diff-modified"; +export { default as GoDiffRemoved } from "../../go/diff-removed"; +export { default as GoDiffRenamed } from "../../go/diff-renamed"; +export { default as GoDiff } from "../../go/diff"; +export { default as GoEllipsis } from "../../go/ellipsis"; +export { default as GoEye } from "../../go/eye"; +export { default as GoFileBinary } from "../../go/file-binary"; +export { default as GoFileCode } from "../../go/file-code"; +export { default as GoFileDirectory } from "../../go/file-directory"; +export { default as GoFileMedia } from "../../go/file-media"; +export { default as GoFilePdf } from "../../go/file-pdf"; +export { default as GoFileSubmodule } from "../../go/file-submodule"; +export { default as GoFileSymlinkDirectory } from "../../go/file-symlink-directory"; +export { default as GoFileSymlinkFile } from "../../go/file-symlink-file"; +export { default as GoFileText } from "../../go/file-text"; +export { default as GoFileZip } from "../../go/file-zip"; +export { default as GoFlame } from "../../go/flame"; +export { default as GoFold } from "../../go/fold"; +export { default as GoGear } from "../../go/gear"; +export { default as GoGift } from "../../go/gift"; +export { default as GoGistSecret } from "../../go/gist-secret"; +export { default as GoGist } from "../../go/gist"; +export { default as GoGitBranch } from "../../go/git-branch"; +export { default as GoGitCommit } from "../../go/git-commit"; +export { default as GoGitCompare } from "../../go/git-compare"; +export { default as GoGitMerge } from "../../go/git-merge"; +export { default as GoGitPullRequest } from "../../go/git-pull-request"; +export { default as GoGlobe } from "../../go/globe"; +export { default as GoGraph } from "../../go/graph"; +export { default as GoHeart } from "../../go/heart"; +export { default as GoHistory } from "../../go/history"; +export { default as GoHome } from "../../go/home"; +export { default as GoHorizontalRule } from "../../go/horizontal-rule"; +export { default as GoHourglass } from "../../go/hourglass"; +export { default as GoHubot } from "../../go/hubot"; +export { default as GoInbox } from "../../go/inbox"; +export { default as GoInfo } from "../../go/info"; +export { default as GoIssueClosed } from "../../go/issue-closed"; +export { default as GoIssueOpened } from "../../go/issue-opened"; +export { default as GoIssueReopened } from "../../go/issue-reopened"; +export { default as GoJersey } from "../../go/jersey"; +export { default as GoJumpDown } from "../../go/jump-down"; +export { default as GoJumpLeft } from "../../go/jump-left"; +export { default as GoJumpRight } from "../../go/jump-right"; +export { default as GoJumpUp } from "../../go/jump-up"; +export { default as GoKey } from "../../go/key"; +export { default as GoKeyboard } from "../../go/keyboard"; +export { default as GoLaw } from "../../go/law"; +export { default as GoLightBulb } from "../../go/light-bulb"; +export { default as GoLinkExternal } from "../../go/link-external"; +export { default as GoLink } from "../../go/link"; +export { default as GoListOrdered } from "../../go/list-ordered"; +export { default as GoListUnordered } from "../../go/list-unordered"; +export { default as GoLocation } from "../../go/location"; +export { default as GoLock } from "../../go/lock"; +export { default as GoLogoGithub } from "../../go/logo-github"; +export { default as GoMailRead } from "../../go/mail-read"; +export { default as GoMailReply } from "../../go/mail-reply"; +export { default as GoMail } from "../../go/mail"; +export { default as GoMarkGithub } from "../../go/mark-github"; +export { default as GoMarkdown } from "../../go/markdown"; +export { default as GoMegaphone } from "../../go/megaphone"; +export { default as GoMention } from "../../go/mention"; +export { default as GoMicroscope } from "../../go/microscope"; +export { default as GoMilestone } from "../../go/milestone"; +export { default as GoMirror } from "../../go/mirror"; +export { default as GoMortarBoard } from "../../go/mortar-board"; +export { default as GoMoveDown } from "../../go/move-down"; +export { default as GoMoveLeft } from "../../go/move-left"; +export { default as GoMoveRight } from "../../go/move-right"; +export { default as GoMoveUp } from "../../go/move-up"; +export { default as GoMute } from "../../go/mute"; +export { default as GoNoNewline } from "../../go/no-newline"; +export { default as GoOctoface } from "../../go/octoface"; +export { default as GoOrganization } from "../../go/organization"; +export { default as GoPackage } from "../../go/package"; +export { default as GoPaintcan } from "../../go/paintcan"; +export { default as GoPencil } from "../../go/pencil"; +export { default as GoPerson } from "../../go/person"; +export { default as GoPin } from "../../go/pin"; +export { default as GoPlaybackFastForward } from "../../go/playback-fast-forward"; +export { default as GoPlaybackPause } from "../../go/playback-pause"; +export { default as GoPlaybackPlay } from "../../go/playback-play"; +export { default as GoPlaybackRewind } from "../../go/playback-rewind"; +export { default as GoPlug } from "../../go/plug"; +export { default as GoPlus } from "../../go/plus"; +export { default as GoPodium } from "../../go/podium"; +export { default as GoPrimitiveDot } from "../../go/primitive-dot"; +export { default as GoPrimitiveSquare } from "../../go/primitive-square"; +export { default as GoPulse } from "../../go/pulse"; +export { default as GoPuzzle } from "../../go/puzzle"; +export { default as GoQuestion } from "../../go/question"; +export { default as GoQuote } from "../../go/quote"; +export { default as GoRadioTower } from "../../go/radio-tower"; +export { default as GoRepoClone } from "../../go/repo-clone"; +export { default as GoRepoForcePush } from "../../go/repo-force-push"; +export { default as GoRepoForked } from "../../go/repo-forked"; +export { default as GoRepoPull } from "../../go/repo-pull"; +export { default as GoRepoPush } from "../../go/repo-push"; +export { default as GoRepo } from "../../go/repo"; +export { default as GoRocket } from "../../go/rocket"; +export { default as GoRss } from "../../go/rss"; +export { default as GoRuby } from "../../go/ruby"; +export { default as GoScreenFull } from "../../go/screen-full"; +export { default as GoScreenNormal } from "../../go/screen-normal"; +export { default as GoSearch } from "../../go/search"; +export { default as GoServer } from "../../go/server"; +export { default as GoSettings } from "../../go/settings"; +export { default as GoSignIn } from "../../go/sign-in"; +export { default as GoSignOut } from "../../go/sign-out"; +export { default as GoSplit } from "../../go/split"; +export { default as GoSquirrel } from "../../go/squirrel"; +export { default as GoStar } from "../../go/star"; +export { default as GoSteps } from "../../go/steps"; +export { default as GoStop } from "../../go/stop"; +export { default as GoSync } from "../../go/sync"; +export { default as GoTag } from "../../go/tag"; +export { default as GoTelescope } from "../../go/telescope"; +export { default as GoTerminal } from "../../go/terminal"; +export { default as GoThreeBars } from "../../go/three-bars"; +export { default as GoTools } from "../../go/tools"; +export { default as GoTrashcan } from "../../go/trashcan"; +export { default as GoTriangleDown } from "../../go/triangle-down"; +export { default as GoTriangleLeft } from "../../go/triangle-left"; +export { default as GoTriangleRight } from "../../go/triangle-right"; +export { default as GoTriangleUp } from "../../go/triangle-up"; +export { default as GoUnfold } from "../../go/unfold"; +export { default as GoUnmute } from "../../go/unmute"; +export { default as GoVersions } from "../../go/versions"; +export { default as GoX } from "../../go/x"; +export { default as GoZap } from "../../go/zap"; diff --git a/types/react-icons/lib/go/info.d.ts b/types/react-icons/lib/go/info.d.ts index 2359f0e299..76a01cf7f8 100644 --- a/types/react-icons/lib/go/info.d.ts +++ b/types/react-icons/lib/go/info.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class GoInfo extends React.Component { } +declare class GoInfo extends React.Component { } +export = GoInfo; diff --git a/types/react-icons/lib/go/issue-closed.d.ts b/types/react-icons/lib/go/issue-closed.d.ts index b06460c581..d2754f369a 100644 --- a/types/react-icons/lib/go/issue-closed.d.ts +++ b/types/react-icons/lib/go/issue-closed.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class GoIssueClosed extends React.Component { } +declare class GoIssueClosed extends React.Component { } +export = GoIssueClosed; diff --git a/types/react-icons/lib/go/issue-opened.d.ts b/types/react-icons/lib/go/issue-opened.d.ts index 331e3754a9..d4eee6c362 100644 --- a/types/react-icons/lib/go/issue-opened.d.ts +++ b/types/react-icons/lib/go/issue-opened.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class GoIssueOpened extends React.Component { } +declare class GoIssueOpened extends React.Component { } +export = GoIssueOpened; diff --git a/types/react-icons/lib/go/issue-reopened.d.ts b/types/react-icons/lib/go/issue-reopened.d.ts index 460fb426c8..d976356a2d 100644 --- a/types/react-icons/lib/go/issue-reopened.d.ts +++ b/types/react-icons/lib/go/issue-reopened.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class GoIssueReopened extends React.Component { } +declare class GoIssueReopened extends React.Component { } +export = GoIssueReopened; diff --git a/types/react-icons/lib/go/jersey.d.ts b/types/react-icons/lib/go/jersey.d.ts index 2c85c72ff0..654f119755 100644 --- a/types/react-icons/lib/go/jersey.d.ts +++ b/types/react-icons/lib/go/jersey.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class GoJersey extends React.Component { } +declare class GoJersey extends React.Component { } +export = GoJersey; diff --git a/types/react-icons/lib/go/jump-down.d.ts b/types/react-icons/lib/go/jump-down.d.ts index 8d0497969e..ae6ad27ac3 100644 --- a/types/react-icons/lib/go/jump-down.d.ts +++ b/types/react-icons/lib/go/jump-down.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class GoJumpDown extends React.Component { } +declare class GoJumpDown extends React.Component { } +export = GoJumpDown; diff --git a/types/react-icons/lib/go/jump-left.d.ts b/types/react-icons/lib/go/jump-left.d.ts index 9be1e1ded5..14ebccb8c8 100644 --- a/types/react-icons/lib/go/jump-left.d.ts +++ b/types/react-icons/lib/go/jump-left.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class GoJumpLeft extends React.Component { } +declare class GoJumpLeft extends React.Component { } +export = GoJumpLeft; diff --git a/types/react-icons/lib/go/jump-right.d.ts b/types/react-icons/lib/go/jump-right.d.ts index efdbf77170..9f23d34e2f 100644 --- a/types/react-icons/lib/go/jump-right.d.ts +++ b/types/react-icons/lib/go/jump-right.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class GoJumpRight extends React.Component { } +declare class GoJumpRight extends React.Component { } +export = GoJumpRight; diff --git a/types/react-icons/lib/go/jump-up.d.ts b/types/react-icons/lib/go/jump-up.d.ts index f8ee7030f0..02617bd211 100644 --- a/types/react-icons/lib/go/jump-up.d.ts +++ b/types/react-icons/lib/go/jump-up.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class GoJumpUp extends React.Component { } +declare class GoJumpUp extends React.Component { } +export = GoJumpUp; diff --git a/types/react-icons/lib/go/key.d.ts b/types/react-icons/lib/go/key.d.ts index 635b754f56..7a3c114038 100644 --- a/types/react-icons/lib/go/key.d.ts +++ b/types/react-icons/lib/go/key.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class GoKey extends React.Component { } +declare class GoKey extends React.Component { } +export = GoKey; diff --git a/types/react-icons/lib/go/keyboard.d.ts b/types/react-icons/lib/go/keyboard.d.ts index 48e2f695ed..0e4b588ae8 100644 --- a/types/react-icons/lib/go/keyboard.d.ts +++ b/types/react-icons/lib/go/keyboard.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class GoKeyboard extends React.Component { } +declare class GoKeyboard extends React.Component { } +export = GoKeyboard; diff --git a/types/react-icons/lib/go/law.d.ts b/types/react-icons/lib/go/law.d.ts index 59e6dd09c6..1e8869c457 100644 --- a/types/react-icons/lib/go/law.d.ts +++ b/types/react-icons/lib/go/law.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class GoLaw extends React.Component { } +declare class GoLaw extends React.Component { } +export = GoLaw; diff --git a/types/react-icons/lib/go/light-bulb.d.ts b/types/react-icons/lib/go/light-bulb.d.ts index b020b05d25..713bad1011 100644 --- a/types/react-icons/lib/go/light-bulb.d.ts +++ b/types/react-icons/lib/go/light-bulb.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class GoLightBulb extends React.Component { } +declare class GoLightBulb extends React.Component { } +export = GoLightBulb; diff --git a/types/react-icons/lib/go/link-external.d.ts b/types/react-icons/lib/go/link-external.d.ts index 9e93717352..3e564c8593 100644 --- a/types/react-icons/lib/go/link-external.d.ts +++ b/types/react-icons/lib/go/link-external.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class GoLinkExternal extends React.Component { } +declare class GoLinkExternal extends React.Component { } +export = GoLinkExternal; diff --git a/types/react-icons/lib/go/link.d.ts b/types/react-icons/lib/go/link.d.ts index 7def9d9bd3..7959f5c753 100644 --- a/types/react-icons/lib/go/link.d.ts +++ b/types/react-icons/lib/go/link.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class GoLink extends React.Component { } +declare class GoLink extends React.Component { } +export = GoLink; diff --git a/types/react-icons/lib/go/list-ordered.d.ts b/types/react-icons/lib/go/list-ordered.d.ts index 31a2859733..b44bcc47df 100644 --- a/types/react-icons/lib/go/list-ordered.d.ts +++ b/types/react-icons/lib/go/list-ordered.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class GoListOrdered extends React.Component { } +declare class GoListOrdered extends React.Component { } +export = GoListOrdered; diff --git a/types/react-icons/lib/go/list-unordered.d.ts b/types/react-icons/lib/go/list-unordered.d.ts index 59b89e921e..fd7cbd5584 100644 --- a/types/react-icons/lib/go/list-unordered.d.ts +++ b/types/react-icons/lib/go/list-unordered.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class GoListUnordered extends React.Component { } +declare class GoListUnordered extends React.Component { } +export = GoListUnordered; diff --git a/types/react-icons/lib/go/location.d.ts b/types/react-icons/lib/go/location.d.ts index a382326479..bde5fb84db 100644 --- a/types/react-icons/lib/go/location.d.ts +++ b/types/react-icons/lib/go/location.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class GoLocation extends React.Component { } +declare class GoLocation extends React.Component { } +export = GoLocation; diff --git a/types/react-icons/lib/go/lock.d.ts b/types/react-icons/lib/go/lock.d.ts index 623ec47b53..80dc012968 100644 --- a/types/react-icons/lib/go/lock.d.ts +++ b/types/react-icons/lib/go/lock.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class GoLock extends React.Component { } +declare class GoLock extends React.Component { } +export = GoLock; diff --git a/types/react-icons/lib/go/logo-github.d.ts b/types/react-icons/lib/go/logo-github.d.ts index f57a2d07f7..9458204c5d 100644 --- a/types/react-icons/lib/go/logo-github.d.ts +++ b/types/react-icons/lib/go/logo-github.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class GoLogoGithub extends React.Component { } +declare class GoLogoGithub extends React.Component { } +export = GoLogoGithub; diff --git a/types/react-icons/lib/go/mail-read.d.ts b/types/react-icons/lib/go/mail-read.d.ts index e6820b2732..e64ee6e5d1 100644 --- a/types/react-icons/lib/go/mail-read.d.ts +++ b/types/react-icons/lib/go/mail-read.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class GoMailRead extends React.Component { } +declare class GoMailRead extends React.Component { } +export = GoMailRead; diff --git a/types/react-icons/lib/go/mail-reply.d.ts b/types/react-icons/lib/go/mail-reply.d.ts index 794cc6dca4..3a0e8d5eed 100644 --- a/types/react-icons/lib/go/mail-reply.d.ts +++ b/types/react-icons/lib/go/mail-reply.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class GoMailReply extends React.Component { } +declare class GoMailReply extends React.Component { } +export = GoMailReply; diff --git a/types/react-icons/lib/go/mail.d.ts b/types/react-icons/lib/go/mail.d.ts index bca60de455..fc209fa3a5 100644 --- a/types/react-icons/lib/go/mail.d.ts +++ b/types/react-icons/lib/go/mail.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class GoMail extends React.Component { } +declare class GoMail extends React.Component { } +export = GoMail; diff --git a/types/react-icons/lib/go/mark-github.d.ts b/types/react-icons/lib/go/mark-github.d.ts index 999521b725..9f98e3a09e 100644 --- a/types/react-icons/lib/go/mark-github.d.ts +++ b/types/react-icons/lib/go/mark-github.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class GoMarkGithub extends React.Component { } +declare class GoMarkGithub extends React.Component { } +export = GoMarkGithub; diff --git a/types/react-icons/lib/go/markdown.d.ts b/types/react-icons/lib/go/markdown.d.ts index 5533fd8deb..389bdbea07 100644 --- a/types/react-icons/lib/go/markdown.d.ts +++ b/types/react-icons/lib/go/markdown.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class GoMarkdown extends React.Component { } +declare class GoMarkdown extends React.Component { } +export = GoMarkdown; diff --git a/types/react-icons/lib/go/megaphone.d.ts b/types/react-icons/lib/go/megaphone.d.ts index c76f98d900..17341d4a48 100644 --- a/types/react-icons/lib/go/megaphone.d.ts +++ b/types/react-icons/lib/go/megaphone.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class GoMegaphone extends React.Component { } +declare class GoMegaphone extends React.Component { } +export = GoMegaphone; diff --git a/types/react-icons/lib/go/mention.d.ts b/types/react-icons/lib/go/mention.d.ts index 988f97ec6f..9e9bda7554 100644 --- a/types/react-icons/lib/go/mention.d.ts +++ b/types/react-icons/lib/go/mention.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class GoMention extends React.Component { } +declare class GoMention extends React.Component { } +export = GoMention; diff --git a/types/react-icons/lib/go/microscope.d.ts b/types/react-icons/lib/go/microscope.d.ts index 79f91de4ab..fe37fac38f 100644 --- a/types/react-icons/lib/go/microscope.d.ts +++ b/types/react-icons/lib/go/microscope.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class GoMicroscope extends React.Component { } +declare class GoMicroscope extends React.Component { } +export = GoMicroscope; diff --git a/types/react-icons/lib/go/milestone.d.ts b/types/react-icons/lib/go/milestone.d.ts index a5df7c65b1..dbcee6ba5c 100644 --- a/types/react-icons/lib/go/milestone.d.ts +++ b/types/react-icons/lib/go/milestone.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class GoMilestone extends React.Component { } +declare class GoMilestone extends React.Component { } +export = GoMilestone; diff --git a/types/react-icons/lib/go/mirror.d.ts b/types/react-icons/lib/go/mirror.d.ts index c8f5f3a988..8ebefa09ce 100644 --- a/types/react-icons/lib/go/mirror.d.ts +++ b/types/react-icons/lib/go/mirror.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class GoMirror extends React.Component { } +declare class GoMirror extends React.Component { } +export = GoMirror; diff --git a/types/react-icons/lib/go/mortar-board.d.ts b/types/react-icons/lib/go/mortar-board.d.ts index e435c2f899..e0f7816128 100644 --- a/types/react-icons/lib/go/mortar-board.d.ts +++ b/types/react-icons/lib/go/mortar-board.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class GoMortarBoard extends React.Component { } +declare class GoMortarBoard extends React.Component { } +export = GoMortarBoard; diff --git a/types/react-icons/lib/go/move-down.d.ts b/types/react-icons/lib/go/move-down.d.ts index cceb4a2fc6..6cf46433f8 100644 --- a/types/react-icons/lib/go/move-down.d.ts +++ b/types/react-icons/lib/go/move-down.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class GoMoveDown extends React.Component { } +declare class GoMoveDown extends React.Component { } +export = GoMoveDown; diff --git a/types/react-icons/lib/go/move-left.d.ts b/types/react-icons/lib/go/move-left.d.ts index 81c57b58d1..03d1b9e7af 100644 --- a/types/react-icons/lib/go/move-left.d.ts +++ b/types/react-icons/lib/go/move-left.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class GoMoveLeft extends React.Component { } +declare class GoMoveLeft extends React.Component { } +export = GoMoveLeft; diff --git a/types/react-icons/lib/go/move-right.d.ts b/types/react-icons/lib/go/move-right.d.ts index b9baed854c..c59d02e53e 100644 --- a/types/react-icons/lib/go/move-right.d.ts +++ b/types/react-icons/lib/go/move-right.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class GoMoveRight extends React.Component { } +declare class GoMoveRight extends React.Component { } +export = GoMoveRight; diff --git a/types/react-icons/lib/go/move-up.d.ts b/types/react-icons/lib/go/move-up.d.ts index b649bd2bca..323a440aa2 100644 --- a/types/react-icons/lib/go/move-up.d.ts +++ b/types/react-icons/lib/go/move-up.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class GoMoveUp extends React.Component { } +declare class GoMoveUp extends React.Component { } +export = GoMoveUp; diff --git a/types/react-icons/lib/go/mute.d.ts b/types/react-icons/lib/go/mute.d.ts index 96aa49027f..2c80d9b279 100644 --- a/types/react-icons/lib/go/mute.d.ts +++ b/types/react-icons/lib/go/mute.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class GoMute extends React.Component { } +declare class GoMute extends React.Component { } +export = GoMute; diff --git a/types/react-icons/lib/go/no-newline.d.ts b/types/react-icons/lib/go/no-newline.d.ts index 2953cea8b0..10a616941d 100644 --- a/types/react-icons/lib/go/no-newline.d.ts +++ b/types/react-icons/lib/go/no-newline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class GoNoNewline extends React.Component { } +declare class GoNoNewline extends React.Component { } +export = GoNoNewline; diff --git a/types/react-icons/lib/go/octoface.d.ts b/types/react-icons/lib/go/octoface.d.ts index 466708f844..3f7b80ae04 100644 --- a/types/react-icons/lib/go/octoface.d.ts +++ b/types/react-icons/lib/go/octoface.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class GoOctoface extends React.Component { } +declare class GoOctoface extends React.Component { } +export = GoOctoface; diff --git a/types/react-icons/lib/go/organization.d.ts b/types/react-icons/lib/go/organization.d.ts index 321899f2bd..8f52ca1022 100644 --- a/types/react-icons/lib/go/organization.d.ts +++ b/types/react-icons/lib/go/organization.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class GoOrganization extends React.Component { } +declare class GoOrganization extends React.Component { } +export = GoOrganization; diff --git a/types/react-icons/lib/go/package.d.ts b/types/react-icons/lib/go/package.d.ts index ecea623c3b..06688e276c 100644 --- a/types/react-icons/lib/go/package.d.ts +++ b/types/react-icons/lib/go/package.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class GoPackage extends React.Component { } +declare class GoPackage extends React.Component { } +export = GoPackage; diff --git a/types/react-icons/lib/go/paintcan.d.ts b/types/react-icons/lib/go/paintcan.d.ts index b38f9aa673..630fa3e367 100644 --- a/types/react-icons/lib/go/paintcan.d.ts +++ b/types/react-icons/lib/go/paintcan.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class GoPaintcan extends React.Component { } +declare class GoPaintcan extends React.Component { } +export = GoPaintcan; diff --git a/types/react-icons/lib/go/pencil.d.ts b/types/react-icons/lib/go/pencil.d.ts index 9a2cc3fe1c..4a02f3c400 100644 --- a/types/react-icons/lib/go/pencil.d.ts +++ b/types/react-icons/lib/go/pencil.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class GoPencil extends React.Component { } +declare class GoPencil extends React.Component { } +export = GoPencil; diff --git a/types/react-icons/lib/go/person.d.ts b/types/react-icons/lib/go/person.d.ts index 177c738660..2949b9d660 100644 --- a/types/react-icons/lib/go/person.d.ts +++ b/types/react-icons/lib/go/person.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class GoPerson extends React.Component { } +declare class GoPerson extends React.Component { } +export = GoPerson; diff --git a/types/react-icons/lib/go/pin.d.ts b/types/react-icons/lib/go/pin.d.ts index f083f58df7..901b36a91f 100644 --- a/types/react-icons/lib/go/pin.d.ts +++ b/types/react-icons/lib/go/pin.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class GoPin extends React.Component { } +declare class GoPin extends React.Component { } +export = GoPin; diff --git a/types/react-icons/lib/go/playback-fast-forward.d.ts b/types/react-icons/lib/go/playback-fast-forward.d.ts index faa2293f90..65348b544f 100644 --- a/types/react-icons/lib/go/playback-fast-forward.d.ts +++ b/types/react-icons/lib/go/playback-fast-forward.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class GoPlaybackFastForward extends React.Component { } +declare class GoPlaybackFastForward extends React.Component { } +export = GoPlaybackFastForward; diff --git a/types/react-icons/lib/go/playback-pause.d.ts b/types/react-icons/lib/go/playback-pause.d.ts index 43c3830eae..50f1cacef1 100644 --- a/types/react-icons/lib/go/playback-pause.d.ts +++ b/types/react-icons/lib/go/playback-pause.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class GoPlaybackPause extends React.Component { } +declare class GoPlaybackPause extends React.Component { } +export = GoPlaybackPause; diff --git a/types/react-icons/lib/go/playback-play.d.ts b/types/react-icons/lib/go/playback-play.d.ts index 6d90eadb63..68a8dab132 100644 --- a/types/react-icons/lib/go/playback-play.d.ts +++ b/types/react-icons/lib/go/playback-play.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class GoPlaybackPlay extends React.Component { } +declare class GoPlaybackPlay extends React.Component { } +export = GoPlaybackPlay; diff --git a/types/react-icons/lib/go/playback-rewind.d.ts b/types/react-icons/lib/go/playback-rewind.d.ts index 92080152af..a742b47fb6 100644 --- a/types/react-icons/lib/go/playback-rewind.d.ts +++ b/types/react-icons/lib/go/playback-rewind.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class GoPlaybackRewind extends React.Component { } +declare class GoPlaybackRewind extends React.Component { } +export = GoPlaybackRewind; diff --git a/types/react-icons/lib/go/plug.d.ts b/types/react-icons/lib/go/plug.d.ts index da0ec12aa1..8265b0a4b1 100644 --- a/types/react-icons/lib/go/plug.d.ts +++ b/types/react-icons/lib/go/plug.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class GoPlug extends React.Component { } +declare class GoPlug extends React.Component { } +export = GoPlug; diff --git a/types/react-icons/lib/go/plus.d.ts b/types/react-icons/lib/go/plus.d.ts index 867c30b643..e8c290d841 100644 --- a/types/react-icons/lib/go/plus.d.ts +++ b/types/react-icons/lib/go/plus.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class GoPlus extends React.Component { } +declare class GoPlus extends React.Component { } +export = GoPlus; diff --git a/types/react-icons/lib/go/podium.d.ts b/types/react-icons/lib/go/podium.d.ts index 1c16142450..228759200d 100644 --- a/types/react-icons/lib/go/podium.d.ts +++ b/types/react-icons/lib/go/podium.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class GoPodium extends React.Component { } +declare class GoPodium extends React.Component { } +export = GoPodium; diff --git a/types/react-icons/lib/go/primitive-dot.d.ts b/types/react-icons/lib/go/primitive-dot.d.ts index 9a74108de7..279fa40d18 100644 --- a/types/react-icons/lib/go/primitive-dot.d.ts +++ b/types/react-icons/lib/go/primitive-dot.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class GoPrimitiveDot extends React.Component { } +declare class GoPrimitiveDot extends React.Component { } +export = GoPrimitiveDot; diff --git a/types/react-icons/lib/go/primitive-square.d.ts b/types/react-icons/lib/go/primitive-square.d.ts index 4a387621dd..d3e5ab1072 100644 --- a/types/react-icons/lib/go/primitive-square.d.ts +++ b/types/react-icons/lib/go/primitive-square.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class GoPrimitiveSquare extends React.Component { } +declare class GoPrimitiveSquare extends React.Component { } +export = GoPrimitiveSquare; diff --git a/types/react-icons/lib/go/pulse.d.ts b/types/react-icons/lib/go/pulse.d.ts index 111540b6ea..946e7e1eaa 100644 --- a/types/react-icons/lib/go/pulse.d.ts +++ b/types/react-icons/lib/go/pulse.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class GoPulse extends React.Component { } +declare class GoPulse extends React.Component { } +export = GoPulse; diff --git a/types/react-icons/lib/go/puzzle.d.ts b/types/react-icons/lib/go/puzzle.d.ts index 759922a96d..d684b5837c 100644 --- a/types/react-icons/lib/go/puzzle.d.ts +++ b/types/react-icons/lib/go/puzzle.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class GoPuzzle extends React.Component { } +declare class GoPuzzle extends React.Component { } +export = GoPuzzle; diff --git a/types/react-icons/lib/go/question.d.ts b/types/react-icons/lib/go/question.d.ts index 7dd4302a96..57824568fa 100644 --- a/types/react-icons/lib/go/question.d.ts +++ b/types/react-icons/lib/go/question.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class GoQuestion extends React.Component { } +declare class GoQuestion extends React.Component { } +export = GoQuestion; diff --git a/types/react-icons/lib/go/quote.d.ts b/types/react-icons/lib/go/quote.d.ts index 47a6f2765a..13f1e5b5e7 100644 --- a/types/react-icons/lib/go/quote.d.ts +++ b/types/react-icons/lib/go/quote.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class GoQuote extends React.Component { } +declare class GoQuote extends React.Component { } +export = GoQuote; diff --git a/types/react-icons/lib/go/radio-tower.d.ts b/types/react-icons/lib/go/radio-tower.d.ts index fee3702338..81184f0449 100644 --- a/types/react-icons/lib/go/radio-tower.d.ts +++ b/types/react-icons/lib/go/radio-tower.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class GoRadioTower extends React.Component { } +declare class GoRadioTower extends React.Component { } +export = GoRadioTower; diff --git a/types/react-icons/lib/go/repo-clone.d.ts b/types/react-icons/lib/go/repo-clone.d.ts index fb9957a21d..420126bd91 100644 --- a/types/react-icons/lib/go/repo-clone.d.ts +++ b/types/react-icons/lib/go/repo-clone.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class GoRepoClone extends React.Component { } +declare class GoRepoClone extends React.Component { } +export = GoRepoClone; diff --git a/types/react-icons/lib/go/repo-force-push.d.ts b/types/react-icons/lib/go/repo-force-push.d.ts index 6b1bf3a2c1..402458e84f 100644 --- a/types/react-icons/lib/go/repo-force-push.d.ts +++ b/types/react-icons/lib/go/repo-force-push.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class GoRepoForcePush extends React.Component { } +declare class GoRepoForcePush extends React.Component { } +export = GoRepoForcePush; diff --git a/types/react-icons/lib/go/repo-forked.d.ts b/types/react-icons/lib/go/repo-forked.d.ts index e68f5a3df6..6f74430b17 100644 --- a/types/react-icons/lib/go/repo-forked.d.ts +++ b/types/react-icons/lib/go/repo-forked.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class GoRepoForked extends React.Component { } +declare class GoRepoForked extends React.Component { } +export = GoRepoForked; diff --git a/types/react-icons/lib/go/repo-pull.d.ts b/types/react-icons/lib/go/repo-pull.d.ts index 916310f2bc..d850692812 100644 --- a/types/react-icons/lib/go/repo-pull.d.ts +++ b/types/react-icons/lib/go/repo-pull.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class GoRepoPull extends React.Component { } +declare class GoRepoPull extends React.Component { } +export = GoRepoPull; diff --git a/types/react-icons/lib/go/repo-push.d.ts b/types/react-icons/lib/go/repo-push.d.ts index 5e9a25d3a6..13969c2624 100644 --- a/types/react-icons/lib/go/repo-push.d.ts +++ b/types/react-icons/lib/go/repo-push.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class GoRepoPush extends React.Component { } +declare class GoRepoPush extends React.Component { } +export = GoRepoPush; diff --git a/types/react-icons/lib/go/repo.d.ts b/types/react-icons/lib/go/repo.d.ts index 87dd983849..88447bb207 100644 --- a/types/react-icons/lib/go/repo.d.ts +++ b/types/react-icons/lib/go/repo.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class GoRepo extends React.Component { } +declare class GoRepo extends React.Component { } +export = GoRepo; diff --git a/types/react-icons/lib/go/rocket.d.ts b/types/react-icons/lib/go/rocket.d.ts index 04a9f8fbbb..598924cb0b 100644 --- a/types/react-icons/lib/go/rocket.d.ts +++ b/types/react-icons/lib/go/rocket.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class GoRocket extends React.Component { } +declare class GoRocket extends React.Component { } +export = GoRocket; diff --git a/types/react-icons/lib/go/rss.d.ts b/types/react-icons/lib/go/rss.d.ts index d18a40a2fb..589f26cd86 100644 --- a/types/react-icons/lib/go/rss.d.ts +++ b/types/react-icons/lib/go/rss.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class GoRss extends React.Component { } +declare class GoRss extends React.Component { } +export = GoRss; diff --git a/types/react-icons/lib/go/ruby.d.ts b/types/react-icons/lib/go/ruby.d.ts index 467aecdce6..bf16a7cefe 100644 --- a/types/react-icons/lib/go/ruby.d.ts +++ b/types/react-icons/lib/go/ruby.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class GoRuby extends React.Component { } +declare class GoRuby extends React.Component { } +export = GoRuby; diff --git a/types/react-icons/lib/go/screen-full.d.ts b/types/react-icons/lib/go/screen-full.d.ts index f3eae2a63e..4f324d4e81 100644 --- a/types/react-icons/lib/go/screen-full.d.ts +++ b/types/react-icons/lib/go/screen-full.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class GoScreenFull extends React.Component { } +declare class GoScreenFull extends React.Component { } +export = GoScreenFull; diff --git a/types/react-icons/lib/go/screen-normal.d.ts b/types/react-icons/lib/go/screen-normal.d.ts index 59e38edc81..433d928425 100644 --- a/types/react-icons/lib/go/screen-normal.d.ts +++ b/types/react-icons/lib/go/screen-normal.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class GoScreenNormal extends React.Component { } +declare class GoScreenNormal extends React.Component { } +export = GoScreenNormal; diff --git a/types/react-icons/lib/go/search.d.ts b/types/react-icons/lib/go/search.d.ts index 54d1144369..9cb93f69d8 100644 --- a/types/react-icons/lib/go/search.d.ts +++ b/types/react-icons/lib/go/search.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class GoSearch extends React.Component { } +declare class GoSearch extends React.Component { } +export = GoSearch; diff --git a/types/react-icons/lib/go/server.d.ts b/types/react-icons/lib/go/server.d.ts index 1de141c1a2..c421874095 100644 --- a/types/react-icons/lib/go/server.d.ts +++ b/types/react-icons/lib/go/server.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class GoServer extends React.Component { } +declare class GoServer extends React.Component { } +export = GoServer; diff --git a/types/react-icons/lib/go/settings.d.ts b/types/react-icons/lib/go/settings.d.ts index a583ebe0fe..9baafba18d 100644 --- a/types/react-icons/lib/go/settings.d.ts +++ b/types/react-icons/lib/go/settings.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class GoSettings extends React.Component { } +declare class GoSettings extends React.Component { } +export = GoSettings; diff --git a/types/react-icons/lib/go/sign-in.d.ts b/types/react-icons/lib/go/sign-in.d.ts index f1788d6395..68f20f5c22 100644 --- a/types/react-icons/lib/go/sign-in.d.ts +++ b/types/react-icons/lib/go/sign-in.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class GoSignIn extends React.Component { } +declare class GoSignIn extends React.Component { } +export = GoSignIn; diff --git a/types/react-icons/lib/go/sign-out.d.ts b/types/react-icons/lib/go/sign-out.d.ts index dd87a41f43..44fb263813 100644 --- a/types/react-icons/lib/go/sign-out.d.ts +++ b/types/react-icons/lib/go/sign-out.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class GoSignOut extends React.Component { } +declare class GoSignOut extends React.Component { } +export = GoSignOut; diff --git a/types/react-icons/lib/go/split.d.ts b/types/react-icons/lib/go/split.d.ts index 4b930df74c..66cf541941 100644 --- a/types/react-icons/lib/go/split.d.ts +++ b/types/react-icons/lib/go/split.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class GoSplit extends React.Component { } +declare class GoSplit extends React.Component { } +export = GoSplit; diff --git a/types/react-icons/lib/go/squirrel.d.ts b/types/react-icons/lib/go/squirrel.d.ts index 2c1bfdc544..fdbc692970 100644 --- a/types/react-icons/lib/go/squirrel.d.ts +++ b/types/react-icons/lib/go/squirrel.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class GoSquirrel extends React.Component { } +declare class GoSquirrel extends React.Component { } +export = GoSquirrel; diff --git a/types/react-icons/lib/go/star.d.ts b/types/react-icons/lib/go/star.d.ts index a5f1a3718e..14d2ce7f4f 100644 --- a/types/react-icons/lib/go/star.d.ts +++ b/types/react-icons/lib/go/star.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class GoStar extends React.Component { } +declare class GoStar extends React.Component { } +export = GoStar; diff --git a/types/react-icons/lib/go/steps.d.ts b/types/react-icons/lib/go/steps.d.ts index ae1bd0f758..493e4aa6d0 100644 --- a/types/react-icons/lib/go/steps.d.ts +++ b/types/react-icons/lib/go/steps.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class GoSteps extends React.Component { } +declare class GoSteps extends React.Component { } +export = GoSteps; diff --git a/types/react-icons/lib/go/stop.d.ts b/types/react-icons/lib/go/stop.d.ts index 6036ca3c7f..06ac2310bc 100644 --- a/types/react-icons/lib/go/stop.d.ts +++ b/types/react-icons/lib/go/stop.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class GoStop extends React.Component { } +declare class GoStop extends React.Component { } +export = GoStop; diff --git a/types/react-icons/lib/go/sync.d.ts b/types/react-icons/lib/go/sync.d.ts index 7a0ab4e316..b882bc2575 100644 --- a/types/react-icons/lib/go/sync.d.ts +++ b/types/react-icons/lib/go/sync.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class GoSync extends React.Component { } +declare class GoSync extends React.Component { } +export = GoSync; diff --git a/types/react-icons/lib/go/tag.d.ts b/types/react-icons/lib/go/tag.d.ts index ff161ead97..e24939fe9f 100644 --- a/types/react-icons/lib/go/tag.d.ts +++ b/types/react-icons/lib/go/tag.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class GoTag extends React.Component { } +declare class GoTag extends React.Component { } +export = GoTag; diff --git a/types/react-icons/lib/go/telescope.d.ts b/types/react-icons/lib/go/telescope.d.ts index 943c1764db..5a4f2783d7 100644 --- a/types/react-icons/lib/go/telescope.d.ts +++ b/types/react-icons/lib/go/telescope.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class GoTelescope extends React.Component { } +declare class GoTelescope extends React.Component { } +export = GoTelescope; diff --git a/types/react-icons/lib/go/terminal.d.ts b/types/react-icons/lib/go/terminal.d.ts index e21c5a9461..3cf73c9c48 100644 --- a/types/react-icons/lib/go/terminal.d.ts +++ b/types/react-icons/lib/go/terminal.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class GoTerminal extends React.Component { } +declare class GoTerminal extends React.Component { } +export = GoTerminal; diff --git a/types/react-icons/lib/go/three-bars.d.ts b/types/react-icons/lib/go/three-bars.d.ts index 75fe787e3f..6404d8df5a 100644 --- a/types/react-icons/lib/go/three-bars.d.ts +++ b/types/react-icons/lib/go/three-bars.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class GoThreeBars extends React.Component { } +declare class GoThreeBars extends React.Component { } +export = GoThreeBars; diff --git a/types/react-icons/lib/go/tools.d.ts b/types/react-icons/lib/go/tools.d.ts index 8229abce20..f5521eddd2 100644 --- a/types/react-icons/lib/go/tools.d.ts +++ b/types/react-icons/lib/go/tools.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class GoTools extends React.Component { } +declare class GoTools extends React.Component { } +export = GoTools; diff --git a/types/react-icons/lib/go/trashcan.d.ts b/types/react-icons/lib/go/trashcan.d.ts index 4b27fba299..f0fb6102fd 100644 --- a/types/react-icons/lib/go/trashcan.d.ts +++ b/types/react-icons/lib/go/trashcan.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class GoTrashcan extends React.Component { } +declare class GoTrashcan extends React.Component { } +export = GoTrashcan; diff --git a/types/react-icons/lib/go/triangle-down.d.ts b/types/react-icons/lib/go/triangle-down.d.ts index de19ba459a..faa8bad17c 100644 --- a/types/react-icons/lib/go/triangle-down.d.ts +++ b/types/react-icons/lib/go/triangle-down.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class GoTriangleDown extends React.Component { } +declare class GoTriangleDown extends React.Component { } +export = GoTriangleDown; diff --git a/types/react-icons/lib/go/triangle-left.d.ts b/types/react-icons/lib/go/triangle-left.d.ts index 309b832111..7597f35cf4 100644 --- a/types/react-icons/lib/go/triangle-left.d.ts +++ b/types/react-icons/lib/go/triangle-left.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class GoTriangleLeft extends React.Component { } +declare class GoTriangleLeft extends React.Component { } +export = GoTriangleLeft; diff --git a/types/react-icons/lib/go/triangle-right.d.ts b/types/react-icons/lib/go/triangle-right.d.ts index 989f428fb3..78038cb7fa 100644 --- a/types/react-icons/lib/go/triangle-right.d.ts +++ b/types/react-icons/lib/go/triangle-right.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class GoTriangleRight extends React.Component { } +declare class GoTriangleRight extends React.Component { } +export = GoTriangleRight; diff --git a/types/react-icons/lib/go/triangle-up.d.ts b/types/react-icons/lib/go/triangle-up.d.ts index fae4ac1c25..36d850dddf 100644 --- a/types/react-icons/lib/go/triangle-up.d.ts +++ b/types/react-icons/lib/go/triangle-up.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class GoTriangleUp extends React.Component { } +declare class GoTriangleUp extends React.Component { } +export = GoTriangleUp; diff --git a/types/react-icons/lib/go/unfold.d.ts b/types/react-icons/lib/go/unfold.d.ts index 1c00f170d5..20945933b9 100644 --- a/types/react-icons/lib/go/unfold.d.ts +++ b/types/react-icons/lib/go/unfold.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class GoUnfold extends React.Component { } +declare class GoUnfold extends React.Component { } +export = GoUnfold; diff --git a/types/react-icons/lib/go/unmute.d.ts b/types/react-icons/lib/go/unmute.d.ts index 90eda20972..99c79e0b3f 100644 --- a/types/react-icons/lib/go/unmute.d.ts +++ b/types/react-icons/lib/go/unmute.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class GoUnmute extends React.Component { } +declare class GoUnmute extends React.Component { } +export = GoUnmute; diff --git a/types/react-icons/lib/go/versions.d.ts b/types/react-icons/lib/go/versions.d.ts index d11586398f..d1935af3ec 100644 --- a/types/react-icons/lib/go/versions.d.ts +++ b/types/react-icons/lib/go/versions.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class GoVersions extends React.Component { } +declare class GoVersions extends React.Component { } +export = GoVersions; diff --git a/types/react-icons/lib/go/x.d.ts b/types/react-icons/lib/go/x.d.ts index 379cb94d5c..3b2e98de7e 100644 --- a/types/react-icons/lib/go/x.d.ts +++ b/types/react-icons/lib/go/x.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class GoX extends React.Component { } +declare class GoX extends React.Component { } +export = GoX; diff --git a/types/react-icons/lib/go/zap.d.ts b/types/react-icons/lib/go/zap.d.ts index 9dafc26355..811445fa12 100644 --- a/types/react-icons/lib/go/zap.d.ts +++ b/types/react-icons/lib/go/zap.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class GoZap extends React.Component { } +declare class GoZap extends React.Component { } +export = GoZap; diff --git a/types/react-icons/lib/io/alert-circled.d.ts b/types/react-icons/lib/io/alert-circled.d.ts index 1fc164cf30..5f5151f700 100644 --- a/types/react-icons/lib/io/alert-circled.d.ts +++ b/types/react-icons/lib/io/alert-circled.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoAlertCircled extends React.Component { } +declare class IoAlertCircled extends React.Component { } +export = IoAlertCircled; diff --git a/types/react-icons/lib/io/alert.d.ts b/types/react-icons/lib/io/alert.d.ts index f3f236a07b..c30dcde318 100644 --- a/types/react-icons/lib/io/alert.d.ts +++ b/types/react-icons/lib/io/alert.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoAlert extends React.Component { } +declare class IoAlert extends React.Component { } +export = IoAlert; diff --git a/types/react-icons/lib/io/android-add-circle.d.ts b/types/react-icons/lib/io/android-add-circle.d.ts index 83301fe5b9..2f2e549c01 100644 --- a/types/react-icons/lib/io/android-add-circle.d.ts +++ b/types/react-icons/lib/io/android-add-circle.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoAndroidAddCircle extends React.Component { } +declare class IoAndroidAddCircle extends React.Component { } +export = IoAndroidAddCircle; diff --git a/types/react-icons/lib/io/android-add.d.ts b/types/react-icons/lib/io/android-add.d.ts index d6ec32e120..f96f955ae1 100644 --- a/types/react-icons/lib/io/android-add.d.ts +++ b/types/react-icons/lib/io/android-add.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoAndroidAdd extends React.Component { } +declare class IoAndroidAdd extends React.Component { } +export = IoAndroidAdd; diff --git a/types/react-icons/lib/io/android-alarm-clock.d.ts b/types/react-icons/lib/io/android-alarm-clock.d.ts index ba7424414a..6a168fddec 100644 --- a/types/react-icons/lib/io/android-alarm-clock.d.ts +++ b/types/react-icons/lib/io/android-alarm-clock.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoAndroidAlarmClock extends React.Component { } +declare class IoAndroidAlarmClock extends React.Component { } +export = IoAndroidAlarmClock; diff --git a/types/react-icons/lib/io/android-alert.d.ts b/types/react-icons/lib/io/android-alert.d.ts index 23f9c0fc85..0f59d0103c 100644 --- a/types/react-icons/lib/io/android-alert.d.ts +++ b/types/react-icons/lib/io/android-alert.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoAndroidAlert extends React.Component { } +declare class IoAndroidAlert extends React.Component { } +export = IoAndroidAlert; diff --git a/types/react-icons/lib/io/android-apps.d.ts b/types/react-icons/lib/io/android-apps.d.ts index 4ce9dca7c6..92be14083e 100644 --- a/types/react-icons/lib/io/android-apps.d.ts +++ b/types/react-icons/lib/io/android-apps.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoAndroidApps extends React.Component { } +declare class IoAndroidApps extends React.Component { } +export = IoAndroidApps; diff --git a/types/react-icons/lib/io/android-archive.d.ts b/types/react-icons/lib/io/android-archive.d.ts index bd86f53213..d108a68ce1 100644 --- a/types/react-icons/lib/io/android-archive.d.ts +++ b/types/react-icons/lib/io/android-archive.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoAndroidArchive extends React.Component { } +declare class IoAndroidArchive extends React.Component { } +export = IoAndroidArchive; diff --git a/types/react-icons/lib/io/android-arrow-back.d.ts b/types/react-icons/lib/io/android-arrow-back.d.ts index ccf8a5dc52..2263310de6 100644 --- a/types/react-icons/lib/io/android-arrow-back.d.ts +++ b/types/react-icons/lib/io/android-arrow-back.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoAndroidArrowBack extends React.Component { } +declare class IoAndroidArrowBack extends React.Component { } +export = IoAndroidArrowBack; diff --git a/types/react-icons/lib/io/android-arrow-down.d.ts b/types/react-icons/lib/io/android-arrow-down.d.ts index 71d5471bb6..febd414373 100644 --- a/types/react-icons/lib/io/android-arrow-down.d.ts +++ b/types/react-icons/lib/io/android-arrow-down.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoAndroidArrowDown extends React.Component { } +declare class IoAndroidArrowDown extends React.Component { } +export = IoAndroidArrowDown; diff --git a/types/react-icons/lib/io/android-arrow-dropdown-circle.d.ts b/types/react-icons/lib/io/android-arrow-dropdown-circle.d.ts index 6a11a88c20..c74ce4befc 100644 --- a/types/react-icons/lib/io/android-arrow-dropdown-circle.d.ts +++ b/types/react-icons/lib/io/android-arrow-dropdown-circle.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoAndroidArrowDropdownCircle extends React.Component { } +declare class IoAndroidArrowDropdownCircle extends React.Component { } +export = IoAndroidArrowDropdownCircle; diff --git a/types/react-icons/lib/io/android-arrow-dropdown.d.ts b/types/react-icons/lib/io/android-arrow-dropdown.d.ts index ec91403322..a11298f79e 100644 --- a/types/react-icons/lib/io/android-arrow-dropdown.d.ts +++ b/types/react-icons/lib/io/android-arrow-dropdown.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoAndroidArrowDropdown extends React.Component { } +declare class IoAndroidArrowDropdown extends React.Component { } +export = IoAndroidArrowDropdown; diff --git a/types/react-icons/lib/io/android-arrow-dropleft-circle.d.ts b/types/react-icons/lib/io/android-arrow-dropleft-circle.d.ts index a972b89ae8..ba18e42e00 100644 --- a/types/react-icons/lib/io/android-arrow-dropleft-circle.d.ts +++ b/types/react-icons/lib/io/android-arrow-dropleft-circle.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoAndroidArrowDropleftCircle extends React.Component { } +declare class IoAndroidArrowDropleftCircle extends React.Component { } +export = IoAndroidArrowDropleftCircle; diff --git a/types/react-icons/lib/io/android-arrow-dropleft.d.ts b/types/react-icons/lib/io/android-arrow-dropleft.d.ts index 0477b93c0b..4e67f8ec1c 100644 --- a/types/react-icons/lib/io/android-arrow-dropleft.d.ts +++ b/types/react-icons/lib/io/android-arrow-dropleft.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoAndroidArrowDropleft extends React.Component { } +declare class IoAndroidArrowDropleft extends React.Component { } +export = IoAndroidArrowDropleft; diff --git a/types/react-icons/lib/io/android-arrow-dropright-circle.d.ts b/types/react-icons/lib/io/android-arrow-dropright-circle.d.ts index 2e53387d79..6282d02d58 100644 --- a/types/react-icons/lib/io/android-arrow-dropright-circle.d.ts +++ b/types/react-icons/lib/io/android-arrow-dropright-circle.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoAndroidArrowDroprightCircle extends React.Component { } +declare class IoAndroidArrowDroprightCircle extends React.Component { } +export = IoAndroidArrowDroprightCircle; diff --git a/types/react-icons/lib/io/android-arrow-dropright.d.ts b/types/react-icons/lib/io/android-arrow-dropright.d.ts index b1ebcac3a3..0f6f702c6c 100644 --- a/types/react-icons/lib/io/android-arrow-dropright.d.ts +++ b/types/react-icons/lib/io/android-arrow-dropright.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoAndroidArrowDropright extends React.Component { } +declare class IoAndroidArrowDropright extends React.Component { } +export = IoAndroidArrowDropright; diff --git a/types/react-icons/lib/io/android-arrow-dropup-circle.d.ts b/types/react-icons/lib/io/android-arrow-dropup-circle.d.ts index cb8d87c3b7..0e4ed173e7 100644 --- a/types/react-icons/lib/io/android-arrow-dropup-circle.d.ts +++ b/types/react-icons/lib/io/android-arrow-dropup-circle.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoAndroidArrowDropupCircle extends React.Component { } +declare class IoAndroidArrowDropupCircle extends React.Component { } +export = IoAndroidArrowDropupCircle; diff --git a/types/react-icons/lib/io/android-arrow-dropup.d.ts b/types/react-icons/lib/io/android-arrow-dropup.d.ts index b52c196650..548a6503dc 100644 --- a/types/react-icons/lib/io/android-arrow-dropup.d.ts +++ b/types/react-icons/lib/io/android-arrow-dropup.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoAndroidArrowDropup extends React.Component { } +declare class IoAndroidArrowDropup extends React.Component { } +export = IoAndroidArrowDropup; diff --git a/types/react-icons/lib/io/android-arrow-forward.d.ts b/types/react-icons/lib/io/android-arrow-forward.d.ts index a2e4cfcf3c..e2c44b78e6 100644 --- a/types/react-icons/lib/io/android-arrow-forward.d.ts +++ b/types/react-icons/lib/io/android-arrow-forward.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoAndroidArrowForward extends React.Component { } +declare class IoAndroidArrowForward extends React.Component { } +export = IoAndroidArrowForward; diff --git a/types/react-icons/lib/io/android-arrow-up.d.ts b/types/react-icons/lib/io/android-arrow-up.d.ts index 8d30e1f1d6..67a5f46f6c 100644 --- a/types/react-icons/lib/io/android-arrow-up.d.ts +++ b/types/react-icons/lib/io/android-arrow-up.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoAndroidArrowUp extends React.Component { } +declare class IoAndroidArrowUp extends React.Component { } +export = IoAndroidArrowUp; diff --git a/types/react-icons/lib/io/android-attach.d.ts b/types/react-icons/lib/io/android-attach.d.ts index 42b704ef71..3f1e724664 100644 --- a/types/react-icons/lib/io/android-attach.d.ts +++ b/types/react-icons/lib/io/android-attach.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoAndroidAttach extends React.Component { } +declare class IoAndroidAttach extends React.Component { } +export = IoAndroidAttach; diff --git a/types/react-icons/lib/io/android-bar.d.ts b/types/react-icons/lib/io/android-bar.d.ts index 0dbc0148db..ed6e223e2b 100644 --- a/types/react-icons/lib/io/android-bar.d.ts +++ b/types/react-icons/lib/io/android-bar.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoAndroidBar extends React.Component { } +declare class IoAndroidBar extends React.Component { } +export = IoAndroidBar; diff --git a/types/react-icons/lib/io/android-bicycle.d.ts b/types/react-icons/lib/io/android-bicycle.d.ts index 7e8c1ef911..9d12e783cb 100644 --- a/types/react-icons/lib/io/android-bicycle.d.ts +++ b/types/react-icons/lib/io/android-bicycle.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoAndroidBicycle extends React.Component { } +declare class IoAndroidBicycle extends React.Component { } +export = IoAndroidBicycle; diff --git a/types/react-icons/lib/io/android-boat.d.ts b/types/react-icons/lib/io/android-boat.d.ts index 59bf285c2b..61c5a805d3 100644 --- a/types/react-icons/lib/io/android-boat.d.ts +++ b/types/react-icons/lib/io/android-boat.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoAndroidBoat extends React.Component { } +declare class IoAndroidBoat extends React.Component { } +export = IoAndroidBoat; diff --git a/types/react-icons/lib/io/android-bookmark.d.ts b/types/react-icons/lib/io/android-bookmark.d.ts index 1585e691ac..02286d994a 100644 --- a/types/react-icons/lib/io/android-bookmark.d.ts +++ b/types/react-icons/lib/io/android-bookmark.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoAndroidBookmark extends React.Component { } +declare class IoAndroidBookmark extends React.Component { } +export = IoAndroidBookmark; diff --git a/types/react-icons/lib/io/android-bulb.d.ts b/types/react-icons/lib/io/android-bulb.d.ts index 04b9d70acb..c8658f0f8a 100644 --- a/types/react-icons/lib/io/android-bulb.d.ts +++ b/types/react-icons/lib/io/android-bulb.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoAndroidBulb extends React.Component { } +declare class IoAndroidBulb extends React.Component { } +export = IoAndroidBulb; diff --git a/types/react-icons/lib/io/android-bus.d.ts b/types/react-icons/lib/io/android-bus.d.ts index 2e93dc479b..f4e7c8742e 100644 --- a/types/react-icons/lib/io/android-bus.d.ts +++ b/types/react-icons/lib/io/android-bus.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoAndroidBus extends React.Component { } +declare class IoAndroidBus extends React.Component { } +export = IoAndroidBus; diff --git a/types/react-icons/lib/io/android-calendar.d.ts b/types/react-icons/lib/io/android-calendar.d.ts index a884f3ff51..28331ff9ac 100644 --- a/types/react-icons/lib/io/android-calendar.d.ts +++ b/types/react-icons/lib/io/android-calendar.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoAndroidCalendar extends React.Component { } +declare class IoAndroidCalendar extends React.Component { } +export = IoAndroidCalendar; diff --git a/types/react-icons/lib/io/android-call.d.ts b/types/react-icons/lib/io/android-call.d.ts index 2b13615abf..130ab96563 100644 --- a/types/react-icons/lib/io/android-call.d.ts +++ b/types/react-icons/lib/io/android-call.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoAndroidCall extends React.Component { } +declare class IoAndroidCall extends React.Component { } +export = IoAndroidCall; diff --git a/types/react-icons/lib/io/android-camera.d.ts b/types/react-icons/lib/io/android-camera.d.ts index 042a0b2694..8ec2f9732a 100644 --- a/types/react-icons/lib/io/android-camera.d.ts +++ b/types/react-icons/lib/io/android-camera.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoAndroidCamera extends React.Component { } +declare class IoAndroidCamera extends React.Component { } +export = IoAndroidCamera; diff --git a/types/react-icons/lib/io/android-cancel.d.ts b/types/react-icons/lib/io/android-cancel.d.ts index 067a2a32f0..cce87b95f0 100644 --- a/types/react-icons/lib/io/android-cancel.d.ts +++ b/types/react-icons/lib/io/android-cancel.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoAndroidCancel extends React.Component { } +declare class IoAndroidCancel extends React.Component { } +export = IoAndroidCancel; diff --git a/types/react-icons/lib/io/android-car.d.ts b/types/react-icons/lib/io/android-car.d.ts index fcb7c849d8..5b808e2ee3 100644 --- a/types/react-icons/lib/io/android-car.d.ts +++ b/types/react-icons/lib/io/android-car.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoAndroidCar extends React.Component { } +declare class IoAndroidCar extends React.Component { } +export = IoAndroidCar; diff --git a/types/react-icons/lib/io/android-cart.d.ts b/types/react-icons/lib/io/android-cart.d.ts index 7d944a55c5..d821947f1a 100644 --- a/types/react-icons/lib/io/android-cart.d.ts +++ b/types/react-icons/lib/io/android-cart.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoAndroidCart extends React.Component { } +declare class IoAndroidCart extends React.Component { } +export = IoAndroidCart; diff --git a/types/react-icons/lib/io/android-chat.d.ts b/types/react-icons/lib/io/android-chat.d.ts index 8789c4f12b..ac3d6d6d84 100644 --- a/types/react-icons/lib/io/android-chat.d.ts +++ b/types/react-icons/lib/io/android-chat.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoAndroidChat extends React.Component { } +declare class IoAndroidChat extends React.Component { } +export = IoAndroidChat; diff --git a/types/react-icons/lib/io/android-checkbox-blank.d.ts b/types/react-icons/lib/io/android-checkbox-blank.d.ts index 2651183ba1..ea35930cd8 100644 --- a/types/react-icons/lib/io/android-checkbox-blank.d.ts +++ b/types/react-icons/lib/io/android-checkbox-blank.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoAndroidCheckboxBlank extends React.Component { } +declare class IoAndroidCheckboxBlank extends React.Component { } +export = IoAndroidCheckboxBlank; diff --git a/types/react-icons/lib/io/android-checkbox-outline-blank.d.ts b/types/react-icons/lib/io/android-checkbox-outline-blank.d.ts index cf6a3a3d5e..493db386e4 100644 --- a/types/react-icons/lib/io/android-checkbox-outline-blank.d.ts +++ b/types/react-icons/lib/io/android-checkbox-outline-blank.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoAndroidCheckboxOutlineBlank extends React.Component { } +declare class IoAndroidCheckboxOutlineBlank extends React.Component { } +export = IoAndroidCheckboxOutlineBlank; diff --git a/types/react-icons/lib/io/android-checkbox-outline.d.ts b/types/react-icons/lib/io/android-checkbox-outline.d.ts index 3a6347a302..8b27d97a12 100644 --- a/types/react-icons/lib/io/android-checkbox-outline.d.ts +++ b/types/react-icons/lib/io/android-checkbox-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoAndroidCheckboxOutline extends React.Component { } +declare class IoAndroidCheckboxOutline extends React.Component { } +export = IoAndroidCheckboxOutline; diff --git a/types/react-icons/lib/io/android-checkbox.d.ts b/types/react-icons/lib/io/android-checkbox.d.ts index cb21d62e65..743201b816 100644 --- a/types/react-icons/lib/io/android-checkbox.d.ts +++ b/types/react-icons/lib/io/android-checkbox.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoAndroidCheckbox extends React.Component { } +declare class IoAndroidCheckbox extends React.Component { } +export = IoAndroidCheckbox; diff --git a/types/react-icons/lib/io/android-checkmark-circle.d.ts b/types/react-icons/lib/io/android-checkmark-circle.d.ts index 3671ada3d0..b8bbf317e3 100644 --- a/types/react-icons/lib/io/android-checkmark-circle.d.ts +++ b/types/react-icons/lib/io/android-checkmark-circle.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoAndroidCheckmarkCircle extends React.Component { } +declare class IoAndroidCheckmarkCircle extends React.Component { } +export = IoAndroidCheckmarkCircle; diff --git a/types/react-icons/lib/io/android-clipboard.d.ts b/types/react-icons/lib/io/android-clipboard.d.ts index 3d93506b17..78c0a197fc 100644 --- a/types/react-icons/lib/io/android-clipboard.d.ts +++ b/types/react-icons/lib/io/android-clipboard.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoAndroidClipboard extends React.Component { } +declare class IoAndroidClipboard extends React.Component { } +export = IoAndroidClipboard; diff --git a/types/react-icons/lib/io/android-close.d.ts b/types/react-icons/lib/io/android-close.d.ts index ad32b8b302..4e9797dbb8 100644 --- a/types/react-icons/lib/io/android-close.d.ts +++ b/types/react-icons/lib/io/android-close.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoAndroidClose extends React.Component { } +declare class IoAndroidClose extends React.Component { } +export = IoAndroidClose; diff --git a/types/react-icons/lib/io/android-cloud-circle.d.ts b/types/react-icons/lib/io/android-cloud-circle.d.ts index 9c30f64677..976a7730e8 100644 --- a/types/react-icons/lib/io/android-cloud-circle.d.ts +++ b/types/react-icons/lib/io/android-cloud-circle.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoAndroidCloudCircle extends React.Component { } +declare class IoAndroidCloudCircle extends React.Component { } +export = IoAndroidCloudCircle; diff --git a/types/react-icons/lib/io/android-cloud-done.d.ts b/types/react-icons/lib/io/android-cloud-done.d.ts index 6900251eec..38baf11c4b 100644 --- a/types/react-icons/lib/io/android-cloud-done.d.ts +++ b/types/react-icons/lib/io/android-cloud-done.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoAndroidCloudDone extends React.Component { } +declare class IoAndroidCloudDone extends React.Component { } +export = IoAndroidCloudDone; diff --git a/types/react-icons/lib/io/android-cloud-outline.d.ts b/types/react-icons/lib/io/android-cloud-outline.d.ts index a8144aad15..390718504b 100644 --- a/types/react-icons/lib/io/android-cloud-outline.d.ts +++ b/types/react-icons/lib/io/android-cloud-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoAndroidCloudOutline extends React.Component { } +declare class IoAndroidCloudOutline extends React.Component { } +export = IoAndroidCloudOutline; diff --git a/types/react-icons/lib/io/android-cloud.d.ts b/types/react-icons/lib/io/android-cloud.d.ts index e0fc48bfd5..276dde52c4 100644 --- a/types/react-icons/lib/io/android-cloud.d.ts +++ b/types/react-icons/lib/io/android-cloud.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoAndroidCloud extends React.Component { } +declare class IoAndroidCloud extends React.Component { } +export = IoAndroidCloud; diff --git a/types/react-icons/lib/io/android-color-palette.d.ts b/types/react-icons/lib/io/android-color-palette.d.ts index 79ddef8b10..d27a8c686a 100644 --- a/types/react-icons/lib/io/android-color-palette.d.ts +++ b/types/react-icons/lib/io/android-color-palette.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoAndroidColorPalette extends React.Component { } +declare class IoAndroidColorPalette extends React.Component { } +export = IoAndroidColorPalette; diff --git a/types/react-icons/lib/io/android-compass.d.ts b/types/react-icons/lib/io/android-compass.d.ts index c577a6a3fd..0e09fa8b02 100644 --- a/types/react-icons/lib/io/android-compass.d.ts +++ b/types/react-icons/lib/io/android-compass.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoAndroidCompass extends React.Component { } +declare class IoAndroidCompass extends React.Component { } +export = IoAndroidCompass; diff --git a/types/react-icons/lib/io/android-contact.d.ts b/types/react-icons/lib/io/android-contact.d.ts index 933faca311..ee5ac203e7 100644 --- a/types/react-icons/lib/io/android-contact.d.ts +++ b/types/react-icons/lib/io/android-contact.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoAndroidContact extends React.Component { } +declare class IoAndroidContact extends React.Component { } +export = IoAndroidContact; diff --git a/types/react-icons/lib/io/android-contacts.d.ts b/types/react-icons/lib/io/android-contacts.d.ts index 22f23054ff..f7ad32a1c6 100644 --- a/types/react-icons/lib/io/android-contacts.d.ts +++ b/types/react-icons/lib/io/android-contacts.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoAndroidContacts extends React.Component { } +declare class IoAndroidContacts extends React.Component { } +export = IoAndroidContacts; diff --git a/types/react-icons/lib/io/android-contract.d.ts b/types/react-icons/lib/io/android-contract.d.ts index 87c6a88fa1..f5ee526460 100644 --- a/types/react-icons/lib/io/android-contract.d.ts +++ b/types/react-icons/lib/io/android-contract.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoAndroidContract extends React.Component { } +declare class IoAndroidContract extends React.Component { } +export = IoAndroidContract; diff --git a/types/react-icons/lib/io/android-create.d.ts b/types/react-icons/lib/io/android-create.d.ts index 38c4a7fa79..7974150c7b 100644 --- a/types/react-icons/lib/io/android-create.d.ts +++ b/types/react-icons/lib/io/android-create.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoAndroidCreate extends React.Component { } +declare class IoAndroidCreate extends React.Component { } +export = IoAndroidCreate; diff --git a/types/react-icons/lib/io/android-delete.d.ts b/types/react-icons/lib/io/android-delete.d.ts index 1863649507..3f4c83aa20 100644 --- a/types/react-icons/lib/io/android-delete.d.ts +++ b/types/react-icons/lib/io/android-delete.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoAndroidDelete extends React.Component { } +declare class IoAndroidDelete extends React.Component { } +export = IoAndroidDelete; diff --git a/types/react-icons/lib/io/android-desktop.d.ts b/types/react-icons/lib/io/android-desktop.d.ts index a8233e4c61..f826e3735a 100644 --- a/types/react-icons/lib/io/android-desktop.d.ts +++ b/types/react-icons/lib/io/android-desktop.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoAndroidDesktop extends React.Component { } +declare class IoAndroidDesktop extends React.Component { } +export = IoAndroidDesktop; diff --git a/types/react-icons/lib/io/android-document.d.ts b/types/react-icons/lib/io/android-document.d.ts index b2a4c4d5a3..e24e4ddb2c 100644 --- a/types/react-icons/lib/io/android-document.d.ts +++ b/types/react-icons/lib/io/android-document.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoAndroidDocument extends React.Component { } +declare class IoAndroidDocument extends React.Component { } +export = IoAndroidDocument; diff --git a/types/react-icons/lib/io/android-done-all.d.ts b/types/react-icons/lib/io/android-done-all.d.ts index 9759331f5e..55ec050491 100644 --- a/types/react-icons/lib/io/android-done-all.d.ts +++ b/types/react-icons/lib/io/android-done-all.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoAndroidDoneAll extends React.Component { } +declare class IoAndroidDoneAll extends React.Component { } +export = IoAndroidDoneAll; diff --git a/types/react-icons/lib/io/android-done.d.ts b/types/react-icons/lib/io/android-done.d.ts index ef68fc8e34..5252d05cf6 100644 --- a/types/react-icons/lib/io/android-done.d.ts +++ b/types/react-icons/lib/io/android-done.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoAndroidDone extends React.Component { } +declare class IoAndroidDone extends React.Component { } +export = IoAndroidDone; diff --git a/types/react-icons/lib/io/android-download.d.ts b/types/react-icons/lib/io/android-download.d.ts index 35caf226ba..cec9c411ca 100644 --- a/types/react-icons/lib/io/android-download.d.ts +++ b/types/react-icons/lib/io/android-download.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoAndroidDownload extends React.Component { } +declare class IoAndroidDownload extends React.Component { } +export = IoAndroidDownload; diff --git a/types/react-icons/lib/io/android-drafts.d.ts b/types/react-icons/lib/io/android-drafts.d.ts index c143e50a3d..18be5b128c 100644 --- a/types/react-icons/lib/io/android-drafts.d.ts +++ b/types/react-icons/lib/io/android-drafts.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoAndroidDrafts extends React.Component { } +declare class IoAndroidDrafts extends React.Component { } +export = IoAndroidDrafts; diff --git a/types/react-icons/lib/io/android-exit.d.ts b/types/react-icons/lib/io/android-exit.d.ts index ad1c1fa91e..f2d97ecdc5 100644 --- a/types/react-icons/lib/io/android-exit.d.ts +++ b/types/react-icons/lib/io/android-exit.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoAndroidExit extends React.Component { } +declare class IoAndroidExit extends React.Component { } +export = IoAndroidExit; diff --git a/types/react-icons/lib/io/android-expand.d.ts b/types/react-icons/lib/io/android-expand.d.ts index 01e32a17c5..e4d957b4f0 100644 --- a/types/react-icons/lib/io/android-expand.d.ts +++ b/types/react-icons/lib/io/android-expand.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoAndroidExpand extends React.Component { } +declare class IoAndroidExpand extends React.Component { } +export = IoAndroidExpand; diff --git a/types/react-icons/lib/io/android-favorite-outline.d.ts b/types/react-icons/lib/io/android-favorite-outline.d.ts index 9d26146836..b8736afb6b 100644 --- a/types/react-icons/lib/io/android-favorite-outline.d.ts +++ b/types/react-icons/lib/io/android-favorite-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoAndroidFavoriteOutline extends React.Component { } +declare class IoAndroidFavoriteOutline extends React.Component { } +export = IoAndroidFavoriteOutline; diff --git a/types/react-icons/lib/io/android-favorite.d.ts b/types/react-icons/lib/io/android-favorite.d.ts index 17fd1ebcb0..727facbe52 100644 --- a/types/react-icons/lib/io/android-favorite.d.ts +++ b/types/react-icons/lib/io/android-favorite.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoAndroidFavorite extends React.Component { } +declare class IoAndroidFavorite extends React.Component { } +export = IoAndroidFavorite; diff --git a/types/react-icons/lib/io/android-film.d.ts b/types/react-icons/lib/io/android-film.d.ts index d78bd6bf92..66b52ca996 100644 --- a/types/react-icons/lib/io/android-film.d.ts +++ b/types/react-icons/lib/io/android-film.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoAndroidFilm extends React.Component { } +declare class IoAndroidFilm extends React.Component { } +export = IoAndroidFilm; diff --git a/types/react-icons/lib/io/android-folder-open.d.ts b/types/react-icons/lib/io/android-folder-open.d.ts index b494784e58..f718448caa 100644 --- a/types/react-icons/lib/io/android-folder-open.d.ts +++ b/types/react-icons/lib/io/android-folder-open.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoAndroidFolderOpen extends React.Component { } +declare class IoAndroidFolderOpen extends React.Component { } +export = IoAndroidFolderOpen; diff --git a/types/react-icons/lib/io/android-folder.d.ts b/types/react-icons/lib/io/android-folder.d.ts index 19fa386920..378a96e3cd 100644 --- a/types/react-icons/lib/io/android-folder.d.ts +++ b/types/react-icons/lib/io/android-folder.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoAndroidFolder extends React.Component { } +declare class IoAndroidFolder extends React.Component { } +export = IoAndroidFolder; diff --git a/types/react-icons/lib/io/android-funnel.d.ts b/types/react-icons/lib/io/android-funnel.d.ts index a43e13c0e5..d831baf36e 100644 --- a/types/react-icons/lib/io/android-funnel.d.ts +++ b/types/react-icons/lib/io/android-funnel.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoAndroidFunnel extends React.Component { } +declare class IoAndroidFunnel extends React.Component { } +export = IoAndroidFunnel; diff --git a/types/react-icons/lib/io/android-globe.d.ts b/types/react-icons/lib/io/android-globe.d.ts index 7d27e58cc1..5e8ce6c9d1 100644 --- a/types/react-icons/lib/io/android-globe.d.ts +++ b/types/react-icons/lib/io/android-globe.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoAndroidGlobe extends React.Component { } +declare class IoAndroidGlobe extends React.Component { } +export = IoAndroidGlobe; diff --git a/types/react-icons/lib/io/android-hand.d.ts b/types/react-icons/lib/io/android-hand.d.ts index 280652d333..7f875b0c47 100644 --- a/types/react-icons/lib/io/android-hand.d.ts +++ b/types/react-icons/lib/io/android-hand.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoAndroidHand extends React.Component { } +declare class IoAndroidHand extends React.Component { } +export = IoAndroidHand; diff --git a/types/react-icons/lib/io/android-hangout.d.ts b/types/react-icons/lib/io/android-hangout.d.ts index 452158902c..fa4c4dc137 100644 --- a/types/react-icons/lib/io/android-hangout.d.ts +++ b/types/react-icons/lib/io/android-hangout.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoAndroidHangout extends React.Component { } +declare class IoAndroidHangout extends React.Component { } +export = IoAndroidHangout; diff --git a/types/react-icons/lib/io/android-happy.d.ts b/types/react-icons/lib/io/android-happy.d.ts index 7343ceb5dd..0d81a84b94 100644 --- a/types/react-icons/lib/io/android-happy.d.ts +++ b/types/react-icons/lib/io/android-happy.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoAndroidHappy extends React.Component { } +declare class IoAndroidHappy extends React.Component { } +export = IoAndroidHappy; diff --git a/types/react-icons/lib/io/android-home.d.ts b/types/react-icons/lib/io/android-home.d.ts index 75cc1ed488..267c85c98e 100644 --- a/types/react-icons/lib/io/android-home.d.ts +++ b/types/react-icons/lib/io/android-home.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoAndroidHome extends React.Component { } +declare class IoAndroidHome extends React.Component { } +export = IoAndroidHome; diff --git a/types/react-icons/lib/io/android-image.d.ts b/types/react-icons/lib/io/android-image.d.ts index 46d20ffdc2..8972e43e07 100644 --- a/types/react-icons/lib/io/android-image.d.ts +++ b/types/react-icons/lib/io/android-image.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoAndroidImage extends React.Component { } +declare class IoAndroidImage extends React.Component { } +export = IoAndroidImage; diff --git a/types/react-icons/lib/io/android-laptop.d.ts b/types/react-icons/lib/io/android-laptop.d.ts index 749f603ebc..d5e07af8d4 100644 --- a/types/react-icons/lib/io/android-laptop.d.ts +++ b/types/react-icons/lib/io/android-laptop.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoAndroidLaptop extends React.Component { } +declare class IoAndroidLaptop extends React.Component { } +export = IoAndroidLaptop; diff --git a/types/react-icons/lib/io/android-list.d.ts b/types/react-icons/lib/io/android-list.d.ts index d366495d98..ce01a34854 100644 --- a/types/react-icons/lib/io/android-list.d.ts +++ b/types/react-icons/lib/io/android-list.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoAndroidList extends React.Component { } +declare class IoAndroidList extends React.Component { } +export = IoAndroidList; diff --git a/types/react-icons/lib/io/android-locate.d.ts b/types/react-icons/lib/io/android-locate.d.ts index b99c14cf66..a5e54836d9 100644 --- a/types/react-icons/lib/io/android-locate.d.ts +++ b/types/react-icons/lib/io/android-locate.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoAndroidLocate extends React.Component { } +declare class IoAndroidLocate extends React.Component { } +export = IoAndroidLocate; diff --git a/types/react-icons/lib/io/android-lock.d.ts b/types/react-icons/lib/io/android-lock.d.ts index 5447214ecf..d15e9dde78 100644 --- a/types/react-icons/lib/io/android-lock.d.ts +++ b/types/react-icons/lib/io/android-lock.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoAndroidLock extends React.Component { } +declare class IoAndroidLock extends React.Component { } +export = IoAndroidLock; diff --git a/types/react-icons/lib/io/android-mail.d.ts b/types/react-icons/lib/io/android-mail.d.ts index 29529c349f..2465408b77 100644 --- a/types/react-icons/lib/io/android-mail.d.ts +++ b/types/react-icons/lib/io/android-mail.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoAndroidMail extends React.Component { } +declare class IoAndroidMail extends React.Component { } +export = IoAndroidMail; diff --git a/types/react-icons/lib/io/android-map.d.ts b/types/react-icons/lib/io/android-map.d.ts index 521561d56e..3066749134 100644 --- a/types/react-icons/lib/io/android-map.d.ts +++ b/types/react-icons/lib/io/android-map.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoAndroidMap extends React.Component { } +declare class IoAndroidMap extends React.Component { } +export = IoAndroidMap; diff --git a/types/react-icons/lib/io/android-menu.d.ts b/types/react-icons/lib/io/android-menu.d.ts index f14d3f29fa..868ad478ff 100644 --- a/types/react-icons/lib/io/android-menu.d.ts +++ b/types/react-icons/lib/io/android-menu.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoAndroidMenu extends React.Component { } +declare class IoAndroidMenu extends React.Component { } +export = IoAndroidMenu; diff --git a/types/react-icons/lib/io/android-microphone-off.d.ts b/types/react-icons/lib/io/android-microphone-off.d.ts index 57ea0597db..b3df997b00 100644 --- a/types/react-icons/lib/io/android-microphone-off.d.ts +++ b/types/react-icons/lib/io/android-microphone-off.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoAndroidMicrophoneOff extends React.Component { } +declare class IoAndroidMicrophoneOff extends React.Component { } +export = IoAndroidMicrophoneOff; diff --git a/types/react-icons/lib/io/android-microphone.d.ts b/types/react-icons/lib/io/android-microphone.d.ts index 2e9105f34a..0ea8dc5a3f 100644 --- a/types/react-icons/lib/io/android-microphone.d.ts +++ b/types/react-icons/lib/io/android-microphone.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoAndroidMicrophone extends React.Component { } +declare class IoAndroidMicrophone extends React.Component { } +export = IoAndroidMicrophone; diff --git a/types/react-icons/lib/io/android-more-horizontal.d.ts b/types/react-icons/lib/io/android-more-horizontal.d.ts index 4bdb7f35fd..231574bf5d 100644 --- a/types/react-icons/lib/io/android-more-horizontal.d.ts +++ b/types/react-icons/lib/io/android-more-horizontal.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoAndroidMoreHorizontal extends React.Component { } +declare class IoAndroidMoreHorizontal extends React.Component { } +export = IoAndroidMoreHorizontal; diff --git a/types/react-icons/lib/io/android-more-vertical.d.ts b/types/react-icons/lib/io/android-more-vertical.d.ts index f3b900b03a..aead3ae9fd 100644 --- a/types/react-icons/lib/io/android-more-vertical.d.ts +++ b/types/react-icons/lib/io/android-more-vertical.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoAndroidMoreVertical extends React.Component { } +declare class IoAndroidMoreVertical extends React.Component { } +export = IoAndroidMoreVertical; diff --git a/types/react-icons/lib/io/android-navigate.d.ts b/types/react-icons/lib/io/android-navigate.d.ts index c062fdb9a2..fdf359e643 100644 --- a/types/react-icons/lib/io/android-navigate.d.ts +++ b/types/react-icons/lib/io/android-navigate.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoAndroidNavigate extends React.Component { } +declare class IoAndroidNavigate extends React.Component { } +export = IoAndroidNavigate; diff --git a/types/react-icons/lib/io/android-notifications-none.d.ts b/types/react-icons/lib/io/android-notifications-none.d.ts index a5df08d48a..67894b2bca 100644 --- a/types/react-icons/lib/io/android-notifications-none.d.ts +++ b/types/react-icons/lib/io/android-notifications-none.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoAndroidNotificationsNone extends React.Component { } +declare class IoAndroidNotificationsNone extends React.Component { } +export = IoAndroidNotificationsNone; diff --git a/types/react-icons/lib/io/android-notifications-off.d.ts b/types/react-icons/lib/io/android-notifications-off.d.ts index 38e64be76b..2bfa60b253 100644 --- a/types/react-icons/lib/io/android-notifications-off.d.ts +++ b/types/react-icons/lib/io/android-notifications-off.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoAndroidNotificationsOff extends React.Component { } +declare class IoAndroidNotificationsOff extends React.Component { } +export = IoAndroidNotificationsOff; diff --git a/types/react-icons/lib/io/android-notifications.d.ts b/types/react-icons/lib/io/android-notifications.d.ts index f3fdc7b4fe..21f92ed397 100644 --- a/types/react-icons/lib/io/android-notifications.d.ts +++ b/types/react-icons/lib/io/android-notifications.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoAndroidNotifications extends React.Component { } +declare class IoAndroidNotifications extends React.Component { } +export = IoAndroidNotifications; diff --git a/types/react-icons/lib/io/android-open.d.ts b/types/react-icons/lib/io/android-open.d.ts index 8ef0abebde..186053e4fe 100644 --- a/types/react-icons/lib/io/android-open.d.ts +++ b/types/react-icons/lib/io/android-open.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoAndroidOpen extends React.Component { } +declare class IoAndroidOpen extends React.Component { } +export = IoAndroidOpen; diff --git a/types/react-icons/lib/io/android-options.d.ts b/types/react-icons/lib/io/android-options.d.ts index 61640a419f..1a02e94789 100644 --- a/types/react-icons/lib/io/android-options.d.ts +++ b/types/react-icons/lib/io/android-options.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoAndroidOptions extends React.Component { } +declare class IoAndroidOptions extends React.Component { } +export = IoAndroidOptions; diff --git a/types/react-icons/lib/io/android-people.d.ts b/types/react-icons/lib/io/android-people.d.ts index 4f19a67eda..f2ee5547f1 100644 --- a/types/react-icons/lib/io/android-people.d.ts +++ b/types/react-icons/lib/io/android-people.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoAndroidPeople extends React.Component { } +declare class IoAndroidPeople extends React.Component { } +export = IoAndroidPeople; diff --git a/types/react-icons/lib/io/android-person-add.d.ts b/types/react-icons/lib/io/android-person-add.d.ts index 4fe6408fe0..1a81999f85 100644 --- a/types/react-icons/lib/io/android-person-add.d.ts +++ b/types/react-icons/lib/io/android-person-add.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoAndroidPersonAdd extends React.Component { } +declare class IoAndroidPersonAdd extends React.Component { } +export = IoAndroidPersonAdd; diff --git a/types/react-icons/lib/io/android-person.d.ts b/types/react-icons/lib/io/android-person.d.ts index ad0e00481a..5ef1b2d2d5 100644 --- a/types/react-icons/lib/io/android-person.d.ts +++ b/types/react-icons/lib/io/android-person.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoAndroidPerson extends React.Component { } +declare class IoAndroidPerson extends React.Component { } +export = IoAndroidPerson; diff --git a/types/react-icons/lib/io/android-phone-landscape.d.ts b/types/react-icons/lib/io/android-phone-landscape.d.ts index bfff8ac323..ba076c50df 100644 --- a/types/react-icons/lib/io/android-phone-landscape.d.ts +++ b/types/react-icons/lib/io/android-phone-landscape.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoAndroidPhoneLandscape extends React.Component { } +declare class IoAndroidPhoneLandscape extends React.Component { } +export = IoAndroidPhoneLandscape; diff --git a/types/react-icons/lib/io/android-phone-portrait.d.ts b/types/react-icons/lib/io/android-phone-portrait.d.ts index 4a14130c8d..c0e8363ed5 100644 --- a/types/react-icons/lib/io/android-phone-portrait.d.ts +++ b/types/react-icons/lib/io/android-phone-portrait.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoAndroidPhonePortrait extends React.Component { } +declare class IoAndroidPhonePortrait extends React.Component { } +export = IoAndroidPhonePortrait; diff --git a/types/react-icons/lib/io/android-pin.d.ts b/types/react-icons/lib/io/android-pin.d.ts index 5819b33b52..928bd7247c 100644 --- a/types/react-icons/lib/io/android-pin.d.ts +++ b/types/react-icons/lib/io/android-pin.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoAndroidPin extends React.Component { } +declare class IoAndroidPin extends React.Component { } +export = IoAndroidPin; diff --git a/types/react-icons/lib/io/android-plane.d.ts b/types/react-icons/lib/io/android-plane.d.ts index 4b436e096b..98704916c8 100644 --- a/types/react-icons/lib/io/android-plane.d.ts +++ b/types/react-icons/lib/io/android-plane.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoAndroidPlane extends React.Component { } +declare class IoAndroidPlane extends React.Component { } +export = IoAndroidPlane; diff --git a/types/react-icons/lib/io/android-playstore.d.ts b/types/react-icons/lib/io/android-playstore.d.ts index 99174ccab2..26f14fea70 100644 --- a/types/react-icons/lib/io/android-playstore.d.ts +++ b/types/react-icons/lib/io/android-playstore.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoAndroidPlaystore extends React.Component { } +declare class IoAndroidPlaystore extends React.Component { } +export = IoAndroidPlaystore; diff --git a/types/react-icons/lib/io/android-print.d.ts b/types/react-icons/lib/io/android-print.d.ts index b2f5807f06..40c6cc7631 100644 --- a/types/react-icons/lib/io/android-print.d.ts +++ b/types/react-icons/lib/io/android-print.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoAndroidPrint extends React.Component { } +declare class IoAndroidPrint extends React.Component { } +export = IoAndroidPrint; diff --git a/types/react-icons/lib/io/android-radio-button-off.d.ts b/types/react-icons/lib/io/android-radio-button-off.d.ts index fc2f705ff1..d5e637b6c6 100644 --- a/types/react-icons/lib/io/android-radio-button-off.d.ts +++ b/types/react-icons/lib/io/android-radio-button-off.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoAndroidRadioButtonOff extends React.Component { } +declare class IoAndroidRadioButtonOff extends React.Component { } +export = IoAndroidRadioButtonOff; diff --git a/types/react-icons/lib/io/android-radio-button-on.d.ts b/types/react-icons/lib/io/android-radio-button-on.d.ts index be28d7626e..9ad7514123 100644 --- a/types/react-icons/lib/io/android-radio-button-on.d.ts +++ b/types/react-icons/lib/io/android-radio-button-on.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoAndroidRadioButtonOn extends React.Component { } +declare class IoAndroidRadioButtonOn extends React.Component { } +export = IoAndroidRadioButtonOn; diff --git a/types/react-icons/lib/io/android-refresh.d.ts b/types/react-icons/lib/io/android-refresh.d.ts index eee0a2b96f..deeb3fe43b 100644 --- a/types/react-icons/lib/io/android-refresh.d.ts +++ b/types/react-icons/lib/io/android-refresh.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoAndroidRefresh extends React.Component { } +declare class IoAndroidRefresh extends React.Component { } +export = IoAndroidRefresh; diff --git a/types/react-icons/lib/io/android-remove-circle.d.ts b/types/react-icons/lib/io/android-remove-circle.d.ts index 7c525668f8..80d0dfef57 100644 --- a/types/react-icons/lib/io/android-remove-circle.d.ts +++ b/types/react-icons/lib/io/android-remove-circle.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoAndroidRemoveCircle extends React.Component { } +declare class IoAndroidRemoveCircle extends React.Component { } +export = IoAndroidRemoveCircle; diff --git a/types/react-icons/lib/io/android-remove.d.ts b/types/react-icons/lib/io/android-remove.d.ts index 3767b079d3..9255e5e859 100644 --- a/types/react-icons/lib/io/android-remove.d.ts +++ b/types/react-icons/lib/io/android-remove.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoAndroidRemove extends React.Component { } +declare class IoAndroidRemove extends React.Component { } +export = IoAndroidRemove; diff --git a/types/react-icons/lib/io/android-restaurant.d.ts b/types/react-icons/lib/io/android-restaurant.d.ts index 5bb7a6ef15..492c12f5d0 100644 --- a/types/react-icons/lib/io/android-restaurant.d.ts +++ b/types/react-icons/lib/io/android-restaurant.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoAndroidRestaurant extends React.Component { } +declare class IoAndroidRestaurant extends React.Component { } +export = IoAndroidRestaurant; diff --git a/types/react-icons/lib/io/android-sad.d.ts b/types/react-icons/lib/io/android-sad.d.ts index dc45162222..1ed6bf48e8 100644 --- a/types/react-icons/lib/io/android-sad.d.ts +++ b/types/react-icons/lib/io/android-sad.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoAndroidSad extends React.Component { } +declare class IoAndroidSad extends React.Component { } +export = IoAndroidSad; diff --git a/types/react-icons/lib/io/android-search.d.ts b/types/react-icons/lib/io/android-search.d.ts index b5158286a1..e237357e4d 100644 --- a/types/react-icons/lib/io/android-search.d.ts +++ b/types/react-icons/lib/io/android-search.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoAndroidSearch extends React.Component { } +declare class IoAndroidSearch extends React.Component { } +export = IoAndroidSearch; diff --git a/types/react-icons/lib/io/android-send.d.ts b/types/react-icons/lib/io/android-send.d.ts index eebec03631..ee0efa2097 100644 --- a/types/react-icons/lib/io/android-send.d.ts +++ b/types/react-icons/lib/io/android-send.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoAndroidSend extends React.Component { } +declare class IoAndroidSend extends React.Component { } +export = IoAndroidSend; diff --git a/types/react-icons/lib/io/android-settings.d.ts b/types/react-icons/lib/io/android-settings.d.ts index c302aedf0c..ab7b4d2da1 100644 --- a/types/react-icons/lib/io/android-settings.d.ts +++ b/types/react-icons/lib/io/android-settings.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoAndroidSettings extends React.Component { } +declare class IoAndroidSettings extends React.Component { } +export = IoAndroidSettings; diff --git a/types/react-icons/lib/io/android-share-alt.d.ts b/types/react-icons/lib/io/android-share-alt.d.ts index dcdb8a648c..b833a5ea78 100644 --- a/types/react-icons/lib/io/android-share-alt.d.ts +++ b/types/react-icons/lib/io/android-share-alt.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoAndroidShareAlt extends React.Component { } +declare class IoAndroidShareAlt extends React.Component { } +export = IoAndroidShareAlt; diff --git a/types/react-icons/lib/io/android-share.d.ts b/types/react-icons/lib/io/android-share.d.ts index 6b61e7c4e9..045317149c 100644 --- a/types/react-icons/lib/io/android-share.d.ts +++ b/types/react-icons/lib/io/android-share.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoAndroidShare extends React.Component { } +declare class IoAndroidShare extends React.Component { } +export = IoAndroidShare; diff --git a/types/react-icons/lib/io/android-star-half.d.ts b/types/react-icons/lib/io/android-star-half.d.ts index 6a9ce4048a..607b5f5035 100644 --- a/types/react-icons/lib/io/android-star-half.d.ts +++ b/types/react-icons/lib/io/android-star-half.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoAndroidStarHalf extends React.Component { } +declare class IoAndroidStarHalf extends React.Component { } +export = IoAndroidStarHalf; diff --git a/types/react-icons/lib/io/android-star-outline.d.ts b/types/react-icons/lib/io/android-star-outline.d.ts index 3413a8803c..ba99643a3e 100644 --- a/types/react-icons/lib/io/android-star-outline.d.ts +++ b/types/react-icons/lib/io/android-star-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoAndroidStarOutline extends React.Component { } +declare class IoAndroidStarOutline extends React.Component { } +export = IoAndroidStarOutline; diff --git a/types/react-icons/lib/io/android-star.d.ts b/types/react-icons/lib/io/android-star.d.ts index 0c6beadab5..830503a5dc 100644 --- a/types/react-icons/lib/io/android-star.d.ts +++ b/types/react-icons/lib/io/android-star.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoAndroidStar extends React.Component { } +declare class IoAndroidStar extends React.Component { } +export = IoAndroidStar; diff --git a/types/react-icons/lib/io/android-stopwatch.d.ts b/types/react-icons/lib/io/android-stopwatch.d.ts index 1094ca3036..fab66e6072 100644 --- a/types/react-icons/lib/io/android-stopwatch.d.ts +++ b/types/react-icons/lib/io/android-stopwatch.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoAndroidStopwatch extends React.Component { } +declare class IoAndroidStopwatch extends React.Component { } +export = IoAndroidStopwatch; diff --git a/types/react-icons/lib/io/android-subway.d.ts b/types/react-icons/lib/io/android-subway.d.ts index 1939fd06d3..19adba3f4b 100644 --- a/types/react-icons/lib/io/android-subway.d.ts +++ b/types/react-icons/lib/io/android-subway.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoAndroidSubway extends React.Component { } +declare class IoAndroidSubway extends React.Component { } +export = IoAndroidSubway; diff --git a/types/react-icons/lib/io/android-sunny.d.ts b/types/react-icons/lib/io/android-sunny.d.ts index 382cc921aa..5cc49715d8 100644 --- a/types/react-icons/lib/io/android-sunny.d.ts +++ b/types/react-icons/lib/io/android-sunny.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoAndroidSunny extends React.Component { } +declare class IoAndroidSunny extends React.Component { } +export = IoAndroidSunny; diff --git a/types/react-icons/lib/io/android-sync.d.ts b/types/react-icons/lib/io/android-sync.d.ts index 27b8493ecf..e96dbf6b3d 100644 --- a/types/react-icons/lib/io/android-sync.d.ts +++ b/types/react-icons/lib/io/android-sync.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoAndroidSync extends React.Component { } +declare class IoAndroidSync extends React.Component { } +export = IoAndroidSync; diff --git a/types/react-icons/lib/io/android-textsms.d.ts b/types/react-icons/lib/io/android-textsms.d.ts index 8020ed572a..06c59d582b 100644 --- a/types/react-icons/lib/io/android-textsms.d.ts +++ b/types/react-icons/lib/io/android-textsms.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoAndroidTextsms extends React.Component { } +declare class IoAndroidTextsms extends React.Component { } +export = IoAndroidTextsms; diff --git a/types/react-icons/lib/io/android-time.d.ts b/types/react-icons/lib/io/android-time.d.ts index 741d66a005..934829c7db 100644 --- a/types/react-icons/lib/io/android-time.d.ts +++ b/types/react-icons/lib/io/android-time.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoAndroidTime extends React.Component { } +declare class IoAndroidTime extends React.Component { } +export = IoAndroidTime; diff --git a/types/react-icons/lib/io/android-train.d.ts b/types/react-icons/lib/io/android-train.d.ts index c55e985bdd..a37d8f8402 100644 --- a/types/react-icons/lib/io/android-train.d.ts +++ b/types/react-icons/lib/io/android-train.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoAndroidTrain extends React.Component { } +declare class IoAndroidTrain extends React.Component { } +export = IoAndroidTrain; diff --git a/types/react-icons/lib/io/android-unlock.d.ts b/types/react-icons/lib/io/android-unlock.d.ts index 5eec9a875c..4ee8e33508 100644 --- a/types/react-icons/lib/io/android-unlock.d.ts +++ b/types/react-icons/lib/io/android-unlock.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoAndroidUnlock extends React.Component { } +declare class IoAndroidUnlock extends React.Component { } +export = IoAndroidUnlock; diff --git a/types/react-icons/lib/io/android-upload.d.ts b/types/react-icons/lib/io/android-upload.d.ts index d5e092172f..e0643362b5 100644 --- a/types/react-icons/lib/io/android-upload.d.ts +++ b/types/react-icons/lib/io/android-upload.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoAndroidUpload extends React.Component { } +declare class IoAndroidUpload extends React.Component { } +export = IoAndroidUpload; diff --git a/types/react-icons/lib/io/android-volume-down.d.ts b/types/react-icons/lib/io/android-volume-down.d.ts index ce256873be..9ec7c47caf 100644 --- a/types/react-icons/lib/io/android-volume-down.d.ts +++ b/types/react-icons/lib/io/android-volume-down.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoAndroidVolumeDown extends React.Component { } +declare class IoAndroidVolumeDown extends React.Component { } +export = IoAndroidVolumeDown; diff --git a/types/react-icons/lib/io/android-volume-mute.d.ts b/types/react-icons/lib/io/android-volume-mute.d.ts index 0675809779..86dbdd1ca9 100644 --- a/types/react-icons/lib/io/android-volume-mute.d.ts +++ b/types/react-icons/lib/io/android-volume-mute.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoAndroidVolumeMute extends React.Component { } +declare class IoAndroidVolumeMute extends React.Component { } +export = IoAndroidVolumeMute; diff --git a/types/react-icons/lib/io/android-volume-off.d.ts b/types/react-icons/lib/io/android-volume-off.d.ts index 76cbb85947..dd077d1d06 100644 --- a/types/react-icons/lib/io/android-volume-off.d.ts +++ b/types/react-icons/lib/io/android-volume-off.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoAndroidVolumeOff extends React.Component { } +declare class IoAndroidVolumeOff extends React.Component { } +export = IoAndroidVolumeOff; diff --git a/types/react-icons/lib/io/android-volume-up.d.ts b/types/react-icons/lib/io/android-volume-up.d.ts index ff3531cf02..11ea99a2ae 100644 --- a/types/react-icons/lib/io/android-volume-up.d.ts +++ b/types/react-icons/lib/io/android-volume-up.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoAndroidVolumeUp extends React.Component { } +declare class IoAndroidVolumeUp extends React.Component { } +export = IoAndroidVolumeUp; diff --git a/types/react-icons/lib/io/android-walk.d.ts b/types/react-icons/lib/io/android-walk.d.ts index 2d9c9fdfeb..df56fc72c7 100644 --- a/types/react-icons/lib/io/android-walk.d.ts +++ b/types/react-icons/lib/io/android-walk.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoAndroidWalk extends React.Component { } +declare class IoAndroidWalk extends React.Component { } +export = IoAndroidWalk; diff --git a/types/react-icons/lib/io/android-warning.d.ts b/types/react-icons/lib/io/android-warning.d.ts index ae0512a305..54dee71508 100644 --- a/types/react-icons/lib/io/android-warning.d.ts +++ b/types/react-icons/lib/io/android-warning.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoAndroidWarning extends React.Component { } +declare class IoAndroidWarning extends React.Component { } +export = IoAndroidWarning; diff --git a/types/react-icons/lib/io/android-watch.d.ts b/types/react-icons/lib/io/android-watch.d.ts index fd4f03a21d..5df467fbda 100644 --- a/types/react-icons/lib/io/android-watch.d.ts +++ b/types/react-icons/lib/io/android-watch.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoAndroidWatch extends React.Component { } +declare class IoAndroidWatch extends React.Component { } +export = IoAndroidWatch; diff --git a/types/react-icons/lib/io/android-wifi.d.ts b/types/react-icons/lib/io/android-wifi.d.ts index 52f56bfd92..c9faee16ba 100644 --- a/types/react-icons/lib/io/android-wifi.d.ts +++ b/types/react-icons/lib/io/android-wifi.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoAndroidWifi extends React.Component { } +declare class IoAndroidWifi extends React.Component { } +export = IoAndroidWifi; diff --git a/types/react-icons/lib/io/aperture.d.ts b/types/react-icons/lib/io/aperture.d.ts index 433117938f..bae5242d92 100644 --- a/types/react-icons/lib/io/aperture.d.ts +++ b/types/react-icons/lib/io/aperture.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoAperture extends React.Component { } +declare class IoAperture extends React.Component { } +export = IoAperture; diff --git a/types/react-icons/lib/io/archive.d.ts b/types/react-icons/lib/io/archive.d.ts index 90863a6615..0408f86352 100644 --- a/types/react-icons/lib/io/archive.d.ts +++ b/types/react-icons/lib/io/archive.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoArchive extends React.Component { } +declare class IoArchive extends React.Component { } +export = IoArchive; diff --git a/types/react-icons/lib/io/arrow-down-a.d.ts b/types/react-icons/lib/io/arrow-down-a.d.ts index eadf0800bb..1dedc57504 100644 --- a/types/react-icons/lib/io/arrow-down-a.d.ts +++ b/types/react-icons/lib/io/arrow-down-a.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoArrowDownA extends React.Component { } +declare class IoArrowDownA extends React.Component { } +export = IoArrowDownA; diff --git a/types/react-icons/lib/io/arrow-down-b.d.ts b/types/react-icons/lib/io/arrow-down-b.d.ts index 281147e627..2317676b0d 100644 --- a/types/react-icons/lib/io/arrow-down-b.d.ts +++ b/types/react-icons/lib/io/arrow-down-b.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoArrowDownB extends React.Component { } +declare class IoArrowDownB extends React.Component { } +export = IoArrowDownB; diff --git a/types/react-icons/lib/io/arrow-down-c.d.ts b/types/react-icons/lib/io/arrow-down-c.d.ts index ab561572b2..9ff6bff0d2 100644 --- a/types/react-icons/lib/io/arrow-down-c.d.ts +++ b/types/react-icons/lib/io/arrow-down-c.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoArrowDownC extends React.Component { } +declare class IoArrowDownC extends React.Component { } +export = IoArrowDownC; diff --git a/types/react-icons/lib/io/arrow-expand.d.ts b/types/react-icons/lib/io/arrow-expand.d.ts index 273819c731..043d2e18a4 100644 --- a/types/react-icons/lib/io/arrow-expand.d.ts +++ b/types/react-icons/lib/io/arrow-expand.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoArrowExpand extends React.Component { } +declare class IoArrowExpand extends React.Component { } +export = IoArrowExpand; diff --git a/types/react-icons/lib/io/arrow-graph-down-left.d.ts b/types/react-icons/lib/io/arrow-graph-down-left.d.ts index db6c5aed00..e90bc57702 100644 --- a/types/react-icons/lib/io/arrow-graph-down-left.d.ts +++ b/types/react-icons/lib/io/arrow-graph-down-left.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoArrowGraphDownLeft extends React.Component { } +declare class IoArrowGraphDownLeft extends React.Component { } +export = IoArrowGraphDownLeft; diff --git a/types/react-icons/lib/io/arrow-graph-down-right.d.ts b/types/react-icons/lib/io/arrow-graph-down-right.d.ts index f64ec5a4b5..bdbb62bcc3 100644 --- a/types/react-icons/lib/io/arrow-graph-down-right.d.ts +++ b/types/react-icons/lib/io/arrow-graph-down-right.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoArrowGraphDownRight extends React.Component { } +declare class IoArrowGraphDownRight extends React.Component { } +export = IoArrowGraphDownRight; diff --git a/types/react-icons/lib/io/arrow-graph-up-left.d.ts b/types/react-icons/lib/io/arrow-graph-up-left.d.ts index d4c1f87aee..d664e9b362 100644 --- a/types/react-icons/lib/io/arrow-graph-up-left.d.ts +++ b/types/react-icons/lib/io/arrow-graph-up-left.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoArrowGraphUpLeft extends React.Component { } +declare class IoArrowGraphUpLeft extends React.Component { } +export = IoArrowGraphUpLeft; diff --git a/types/react-icons/lib/io/arrow-graph-up-right.d.ts b/types/react-icons/lib/io/arrow-graph-up-right.d.ts index 2b79959860..4a2c256739 100644 --- a/types/react-icons/lib/io/arrow-graph-up-right.d.ts +++ b/types/react-icons/lib/io/arrow-graph-up-right.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoArrowGraphUpRight extends React.Component { } +declare class IoArrowGraphUpRight extends React.Component { } +export = IoArrowGraphUpRight; diff --git a/types/react-icons/lib/io/arrow-left-a.d.ts b/types/react-icons/lib/io/arrow-left-a.d.ts index 3e7fb51bdd..b89b682227 100644 --- a/types/react-icons/lib/io/arrow-left-a.d.ts +++ b/types/react-icons/lib/io/arrow-left-a.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoArrowLeftA extends React.Component { } +declare class IoArrowLeftA extends React.Component { } +export = IoArrowLeftA; diff --git a/types/react-icons/lib/io/arrow-left-b.d.ts b/types/react-icons/lib/io/arrow-left-b.d.ts index 537365c037..30af2945b4 100644 --- a/types/react-icons/lib/io/arrow-left-b.d.ts +++ b/types/react-icons/lib/io/arrow-left-b.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoArrowLeftB extends React.Component { } +declare class IoArrowLeftB extends React.Component { } +export = IoArrowLeftB; diff --git a/types/react-icons/lib/io/arrow-left-c.d.ts b/types/react-icons/lib/io/arrow-left-c.d.ts index a831c73c50..8cfe94b64b 100644 --- a/types/react-icons/lib/io/arrow-left-c.d.ts +++ b/types/react-icons/lib/io/arrow-left-c.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoArrowLeftC extends React.Component { } +declare class IoArrowLeftC extends React.Component { } +export = IoArrowLeftC; diff --git a/types/react-icons/lib/io/arrow-move.d.ts b/types/react-icons/lib/io/arrow-move.d.ts index 1a61a6c75c..9f777b2fcc 100644 --- a/types/react-icons/lib/io/arrow-move.d.ts +++ b/types/react-icons/lib/io/arrow-move.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoArrowMove extends React.Component { } +declare class IoArrowMove extends React.Component { } +export = IoArrowMove; diff --git a/types/react-icons/lib/io/arrow-resize.d.ts b/types/react-icons/lib/io/arrow-resize.d.ts index a8efbc36cf..af774ee064 100644 --- a/types/react-icons/lib/io/arrow-resize.d.ts +++ b/types/react-icons/lib/io/arrow-resize.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoArrowResize extends React.Component { } +declare class IoArrowResize extends React.Component { } +export = IoArrowResize; diff --git a/types/react-icons/lib/io/arrow-return-left.d.ts b/types/react-icons/lib/io/arrow-return-left.d.ts index 9e0a076927..7e94317274 100644 --- a/types/react-icons/lib/io/arrow-return-left.d.ts +++ b/types/react-icons/lib/io/arrow-return-left.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoArrowReturnLeft extends React.Component { } +declare class IoArrowReturnLeft extends React.Component { } +export = IoArrowReturnLeft; diff --git a/types/react-icons/lib/io/arrow-return-right.d.ts b/types/react-icons/lib/io/arrow-return-right.d.ts index 0bab75e6e9..13fd74b5e4 100644 --- a/types/react-icons/lib/io/arrow-return-right.d.ts +++ b/types/react-icons/lib/io/arrow-return-right.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoArrowReturnRight extends React.Component { } +declare class IoArrowReturnRight extends React.Component { } +export = IoArrowReturnRight; diff --git a/types/react-icons/lib/io/arrow-right-a.d.ts b/types/react-icons/lib/io/arrow-right-a.d.ts index e91a2984da..5644440a01 100644 --- a/types/react-icons/lib/io/arrow-right-a.d.ts +++ b/types/react-icons/lib/io/arrow-right-a.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoArrowRightA extends React.Component { } +declare class IoArrowRightA extends React.Component { } +export = IoArrowRightA; diff --git a/types/react-icons/lib/io/arrow-right-b.d.ts b/types/react-icons/lib/io/arrow-right-b.d.ts index e85dce6f12..ca3ede5d9f 100644 --- a/types/react-icons/lib/io/arrow-right-b.d.ts +++ b/types/react-icons/lib/io/arrow-right-b.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoArrowRightB extends React.Component { } +declare class IoArrowRightB extends React.Component { } +export = IoArrowRightB; diff --git a/types/react-icons/lib/io/arrow-right-c.d.ts b/types/react-icons/lib/io/arrow-right-c.d.ts index 5673e8df4c..5fe6a6febb 100644 --- a/types/react-icons/lib/io/arrow-right-c.d.ts +++ b/types/react-icons/lib/io/arrow-right-c.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoArrowRightC extends React.Component { } +declare class IoArrowRightC extends React.Component { } +export = IoArrowRightC; diff --git a/types/react-icons/lib/io/arrow-shrink.d.ts b/types/react-icons/lib/io/arrow-shrink.d.ts index 5fa8093af3..92ae49b26a 100644 --- a/types/react-icons/lib/io/arrow-shrink.d.ts +++ b/types/react-icons/lib/io/arrow-shrink.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoArrowShrink extends React.Component { } +declare class IoArrowShrink extends React.Component { } +export = IoArrowShrink; diff --git a/types/react-icons/lib/io/arrow-swap.d.ts b/types/react-icons/lib/io/arrow-swap.d.ts index 885a2c27ad..731f96350b 100644 --- a/types/react-icons/lib/io/arrow-swap.d.ts +++ b/types/react-icons/lib/io/arrow-swap.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoArrowSwap extends React.Component { } +declare class IoArrowSwap extends React.Component { } +export = IoArrowSwap; diff --git a/types/react-icons/lib/io/arrow-up-a.d.ts b/types/react-icons/lib/io/arrow-up-a.d.ts index a3967e9d42..0c77386594 100644 --- a/types/react-icons/lib/io/arrow-up-a.d.ts +++ b/types/react-icons/lib/io/arrow-up-a.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoArrowUpA extends React.Component { } +declare class IoArrowUpA extends React.Component { } +export = IoArrowUpA; diff --git a/types/react-icons/lib/io/arrow-up-b.d.ts b/types/react-icons/lib/io/arrow-up-b.d.ts index 1c91d058f7..7f72760763 100644 --- a/types/react-icons/lib/io/arrow-up-b.d.ts +++ b/types/react-icons/lib/io/arrow-up-b.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoArrowUpB extends React.Component { } +declare class IoArrowUpB extends React.Component { } +export = IoArrowUpB; diff --git a/types/react-icons/lib/io/arrow-up-c.d.ts b/types/react-icons/lib/io/arrow-up-c.d.ts index 9ca25a35a9..7d7c51f6bb 100644 --- a/types/react-icons/lib/io/arrow-up-c.d.ts +++ b/types/react-icons/lib/io/arrow-up-c.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoArrowUpC extends React.Component { } +declare class IoArrowUpC extends React.Component { } +export = IoArrowUpC; diff --git a/types/react-icons/lib/io/asterisk.d.ts b/types/react-icons/lib/io/asterisk.d.ts index a5b58bd24e..240751b3f6 100644 --- a/types/react-icons/lib/io/asterisk.d.ts +++ b/types/react-icons/lib/io/asterisk.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoAsterisk extends React.Component { } +declare class IoAsterisk extends React.Component { } +export = IoAsterisk; diff --git a/types/react-icons/lib/io/at.d.ts b/types/react-icons/lib/io/at.d.ts index cb7284b40f..d6790f610c 100644 --- a/types/react-icons/lib/io/at.d.ts +++ b/types/react-icons/lib/io/at.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoAt extends React.Component { } +declare class IoAt extends React.Component { } +export = IoAt; diff --git a/types/react-icons/lib/io/backspace-outline.d.ts b/types/react-icons/lib/io/backspace-outline.d.ts index 8ce9f476c5..c990c421b2 100644 --- a/types/react-icons/lib/io/backspace-outline.d.ts +++ b/types/react-icons/lib/io/backspace-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoBackspaceOutline extends React.Component { } +declare class IoBackspaceOutline extends React.Component { } +export = IoBackspaceOutline; diff --git a/types/react-icons/lib/io/backspace.d.ts b/types/react-icons/lib/io/backspace.d.ts index a1d19677b8..fbb75f30d2 100644 --- a/types/react-icons/lib/io/backspace.d.ts +++ b/types/react-icons/lib/io/backspace.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoBackspace extends React.Component { } +declare class IoBackspace extends React.Component { } +export = IoBackspace; diff --git a/types/react-icons/lib/io/bag.d.ts b/types/react-icons/lib/io/bag.d.ts index 538f19a520..a6533db865 100644 --- a/types/react-icons/lib/io/bag.d.ts +++ b/types/react-icons/lib/io/bag.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoBag extends React.Component { } +declare class IoBag extends React.Component { } +export = IoBag; diff --git a/types/react-icons/lib/io/battery-charging.d.ts b/types/react-icons/lib/io/battery-charging.d.ts index b950673aae..1e0d59b846 100644 --- a/types/react-icons/lib/io/battery-charging.d.ts +++ b/types/react-icons/lib/io/battery-charging.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoBatteryCharging extends React.Component { } +declare class IoBatteryCharging extends React.Component { } +export = IoBatteryCharging; diff --git a/types/react-icons/lib/io/battery-empty.d.ts b/types/react-icons/lib/io/battery-empty.d.ts index 0a8268869c..6ab2c64d9b 100644 --- a/types/react-icons/lib/io/battery-empty.d.ts +++ b/types/react-icons/lib/io/battery-empty.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoBatteryEmpty extends React.Component { } +declare class IoBatteryEmpty extends React.Component { } +export = IoBatteryEmpty; diff --git a/types/react-icons/lib/io/battery-full.d.ts b/types/react-icons/lib/io/battery-full.d.ts index 493488adf3..613a0f5859 100644 --- a/types/react-icons/lib/io/battery-full.d.ts +++ b/types/react-icons/lib/io/battery-full.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoBatteryFull extends React.Component { } +declare class IoBatteryFull extends React.Component { } +export = IoBatteryFull; diff --git a/types/react-icons/lib/io/battery-half.d.ts b/types/react-icons/lib/io/battery-half.d.ts index 0671295096..3a850063a3 100644 --- a/types/react-icons/lib/io/battery-half.d.ts +++ b/types/react-icons/lib/io/battery-half.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoBatteryHalf extends React.Component { } +declare class IoBatteryHalf extends React.Component { } +export = IoBatteryHalf; diff --git a/types/react-icons/lib/io/battery-low.d.ts b/types/react-icons/lib/io/battery-low.d.ts index 3c2964a52b..105b1275e1 100644 --- a/types/react-icons/lib/io/battery-low.d.ts +++ b/types/react-icons/lib/io/battery-low.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoBatteryLow extends React.Component { } +declare class IoBatteryLow extends React.Component { } +export = IoBatteryLow; diff --git a/types/react-icons/lib/io/beaker.d.ts b/types/react-icons/lib/io/beaker.d.ts index 5f68a801f8..dd335ba0fa 100644 --- a/types/react-icons/lib/io/beaker.d.ts +++ b/types/react-icons/lib/io/beaker.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoBeaker extends React.Component { } +declare class IoBeaker extends React.Component { } +export = IoBeaker; diff --git a/types/react-icons/lib/io/beer.d.ts b/types/react-icons/lib/io/beer.d.ts index 9f2f5739ac..7328e0f20f 100644 --- a/types/react-icons/lib/io/beer.d.ts +++ b/types/react-icons/lib/io/beer.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoBeer extends React.Component { } +declare class IoBeer extends React.Component { } +export = IoBeer; diff --git a/types/react-icons/lib/io/bluetooth.d.ts b/types/react-icons/lib/io/bluetooth.d.ts index 58eb2659e0..7b3138b4ab 100644 --- a/types/react-icons/lib/io/bluetooth.d.ts +++ b/types/react-icons/lib/io/bluetooth.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoBluetooth extends React.Component { } +declare class IoBluetooth extends React.Component { } +export = IoBluetooth; diff --git a/types/react-icons/lib/io/bonfire.d.ts b/types/react-icons/lib/io/bonfire.d.ts index c0ef9d7cae..8a41727ffe 100644 --- a/types/react-icons/lib/io/bonfire.d.ts +++ b/types/react-icons/lib/io/bonfire.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoBonfire extends React.Component { } +declare class IoBonfire extends React.Component { } +export = IoBonfire; diff --git a/types/react-icons/lib/io/bookmark.d.ts b/types/react-icons/lib/io/bookmark.d.ts index 3479c40e67..acece4e02d 100644 --- a/types/react-icons/lib/io/bookmark.d.ts +++ b/types/react-icons/lib/io/bookmark.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoBookmark extends React.Component { } +declare class IoBookmark extends React.Component { } +export = IoBookmark; diff --git a/types/react-icons/lib/io/bowtie.d.ts b/types/react-icons/lib/io/bowtie.d.ts index 6f983612ce..8c7e9724ef 100644 --- a/types/react-icons/lib/io/bowtie.d.ts +++ b/types/react-icons/lib/io/bowtie.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoBowtie extends React.Component { } +declare class IoBowtie extends React.Component { } +export = IoBowtie; diff --git a/types/react-icons/lib/io/briefcase.d.ts b/types/react-icons/lib/io/briefcase.d.ts index baa5708abd..b5f1877923 100644 --- a/types/react-icons/lib/io/briefcase.d.ts +++ b/types/react-icons/lib/io/briefcase.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoBriefcase extends React.Component { } +declare class IoBriefcase extends React.Component { } +export = IoBriefcase; diff --git a/types/react-icons/lib/io/bug.d.ts b/types/react-icons/lib/io/bug.d.ts index a97e391988..600b179fe1 100644 --- a/types/react-icons/lib/io/bug.d.ts +++ b/types/react-icons/lib/io/bug.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoBug extends React.Component { } +declare class IoBug extends React.Component { } +export = IoBug; diff --git a/types/react-icons/lib/io/calculator.d.ts b/types/react-icons/lib/io/calculator.d.ts index 17bc0695d2..3b6747e607 100644 --- a/types/react-icons/lib/io/calculator.d.ts +++ b/types/react-icons/lib/io/calculator.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoCalculator extends React.Component { } +declare class IoCalculator extends React.Component { } +export = IoCalculator; diff --git a/types/react-icons/lib/io/calendar.d.ts b/types/react-icons/lib/io/calendar.d.ts index 48de2d1402..9bf379847e 100644 --- a/types/react-icons/lib/io/calendar.d.ts +++ b/types/react-icons/lib/io/calendar.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoCalendar extends React.Component { } +declare class IoCalendar extends React.Component { } +export = IoCalendar; diff --git a/types/react-icons/lib/io/camera.d.ts b/types/react-icons/lib/io/camera.d.ts index f362c37794..b64c47fede 100644 --- a/types/react-icons/lib/io/camera.d.ts +++ b/types/react-icons/lib/io/camera.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoCamera extends React.Component { } +declare class IoCamera extends React.Component { } +export = IoCamera; diff --git a/types/react-icons/lib/io/card.d.ts b/types/react-icons/lib/io/card.d.ts index 4aa32829b4..411c4a2157 100644 --- a/types/react-icons/lib/io/card.d.ts +++ b/types/react-icons/lib/io/card.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoCard extends React.Component { } +declare class IoCard extends React.Component { } +export = IoCard; diff --git a/types/react-icons/lib/io/cash.d.ts b/types/react-icons/lib/io/cash.d.ts index 8c8a23acfd..5877b0db9b 100644 --- a/types/react-icons/lib/io/cash.d.ts +++ b/types/react-icons/lib/io/cash.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoCash extends React.Component { } +declare class IoCash extends React.Component { } +export = IoCash; diff --git a/types/react-icons/lib/io/chatbox-working.d.ts b/types/react-icons/lib/io/chatbox-working.d.ts index 6574ba5b9c..01b5873626 100644 --- a/types/react-icons/lib/io/chatbox-working.d.ts +++ b/types/react-icons/lib/io/chatbox-working.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoChatboxWorking extends React.Component { } +declare class IoChatboxWorking extends React.Component { } +export = IoChatboxWorking; diff --git a/types/react-icons/lib/io/chatbox.d.ts b/types/react-icons/lib/io/chatbox.d.ts index 71907bcada..ad62e34582 100644 --- a/types/react-icons/lib/io/chatbox.d.ts +++ b/types/react-icons/lib/io/chatbox.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoChatbox extends React.Component { } +declare class IoChatbox extends React.Component { } +export = IoChatbox; diff --git a/types/react-icons/lib/io/chatboxes.d.ts b/types/react-icons/lib/io/chatboxes.d.ts index 6a4aff2857..83cb79b9a6 100644 --- a/types/react-icons/lib/io/chatboxes.d.ts +++ b/types/react-icons/lib/io/chatboxes.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoChatboxes extends React.Component { } +declare class IoChatboxes extends React.Component { } +export = IoChatboxes; diff --git a/types/react-icons/lib/io/chatbubble-working.d.ts b/types/react-icons/lib/io/chatbubble-working.d.ts index 667fb7fcde..84c5601b9a 100644 --- a/types/react-icons/lib/io/chatbubble-working.d.ts +++ b/types/react-icons/lib/io/chatbubble-working.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoChatbubbleWorking extends React.Component { } +declare class IoChatbubbleWorking extends React.Component { } +export = IoChatbubbleWorking; diff --git a/types/react-icons/lib/io/chatbubble.d.ts b/types/react-icons/lib/io/chatbubble.d.ts index 08ecb48df7..424f84e125 100644 --- a/types/react-icons/lib/io/chatbubble.d.ts +++ b/types/react-icons/lib/io/chatbubble.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoChatbubble extends React.Component { } +declare class IoChatbubble extends React.Component { } +export = IoChatbubble; diff --git a/types/react-icons/lib/io/chatbubbles.d.ts b/types/react-icons/lib/io/chatbubbles.d.ts index ebf87a1cc5..9d529047ae 100644 --- a/types/react-icons/lib/io/chatbubbles.d.ts +++ b/types/react-icons/lib/io/chatbubbles.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoChatbubbles extends React.Component { } +declare class IoChatbubbles extends React.Component { } +export = IoChatbubbles; diff --git a/types/react-icons/lib/io/checkmark-circled.d.ts b/types/react-icons/lib/io/checkmark-circled.d.ts index 892e19a107..e0f02e8dd0 100644 --- a/types/react-icons/lib/io/checkmark-circled.d.ts +++ b/types/react-icons/lib/io/checkmark-circled.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoCheckmarkCircled extends React.Component { } +declare class IoCheckmarkCircled extends React.Component { } +export = IoCheckmarkCircled; diff --git a/types/react-icons/lib/io/checkmark-round.d.ts b/types/react-icons/lib/io/checkmark-round.d.ts index 1311db9d47..49ac0d7325 100644 --- a/types/react-icons/lib/io/checkmark-round.d.ts +++ b/types/react-icons/lib/io/checkmark-round.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoCheckmarkRound extends React.Component { } +declare class IoCheckmarkRound extends React.Component { } +export = IoCheckmarkRound; diff --git a/types/react-icons/lib/io/checkmark.d.ts b/types/react-icons/lib/io/checkmark.d.ts index 0eda0d12da..7be9e5dbd7 100644 --- a/types/react-icons/lib/io/checkmark.d.ts +++ b/types/react-icons/lib/io/checkmark.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoCheckmark extends React.Component { } +declare class IoCheckmark extends React.Component { } +export = IoCheckmark; diff --git a/types/react-icons/lib/io/chevron-down.d.ts b/types/react-icons/lib/io/chevron-down.d.ts index 0d9546467d..8f6050fe52 100644 --- a/types/react-icons/lib/io/chevron-down.d.ts +++ b/types/react-icons/lib/io/chevron-down.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoChevronDown extends React.Component { } +declare class IoChevronDown extends React.Component { } +export = IoChevronDown; diff --git a/types/react-icons/lib/io/chevron-left.d.ts b/types/react-icons/lib/io/chevron-left.d.ts index 96fbe2a03f..bcd78417b8 100644 --- a/types/react-icons/lib/io/chevron-left.d.ts +++ b/types/react-icons/lib/io/chevron-left.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoChevronLeft extends React.Component { } +declare class IoChevronLeft extends React.Component { } +export = IoChevronLeft; diff --git a/types/react-icons/lib/io/chevron-right.d.ts b/types/react-icons/lib/io/chevron-right.d.ts index a83489fa83..4b19891516 100644 --- a/types/react-icons/lib/io/chevron-right.d.ts +++ b/types/react-icons/lib/io/chevron-right.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoChevronRight extends React.Component { } +declare class IoChevronRight extends React.Component { } +export = IoChevronRight; diff --git a/types/react-icons/lib/io/chevron-up.d.ts b/types/react-icons/lib/io/chevron-up.d.ts index a56e43a584..f36ac3a678 100644 --- a/types/react-icons/lib/io/chevron-up.d.ts +++ b/types/react-icons/lib/io/chevron-up.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoChevronUp extends React.Component { } +declare class IoChevronUp extends React.Component { } +export = IoChevronUp; diff --git a/types/react-icons/lib/io/clipboard.d.ts b/types/react-icons/lib/io/clipboard.d.ts index 79fc2dd2f7..bd491a79ea 100644 --- a/types/react-icons/lib/io/clipboard.d.ts +++ b/types/react-icons/lib/io/clipboard.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoClipboard extends React.Component { } +declare class IoClipboard extends React.Component { } +export = IoClipboard; diff --git a/types/react-icons/lib/io/clock.d.ts b/types/react-icons/lib/io/clock.d.ts index 50d4dd2af1..1a74b43880 100644 --- a/types/react-icons/lib/io/clock.d.ts +++ b/types/react-icons/lib/io/clock.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoClock extends React.Component { } +declare class IoClock extends React.Component { } +export = IoClock; diff --git a/types/react-icons/lib/io/close-circled.d.ts b/types/react-icons/lib/io/close-circled.d.ts index dd6fb5e9d2..73bc493bef 100644 --- a/types/react-icons/lib/io/close-circled.d.ts +++ b/types/react-icons/lib/io/close-circled.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoCloseCircled extends React.Component { } +declare class IoCloseCircled extends React.Component { } +export = IoCloseCircled; diff --git a/types/react-icons/lib/io/close-round.d.ts b/types/react-icons/lib/io/close-round.d.ts index a918a8e534..a0a2647cfe 100644 --- a/types/react-icons/lib/io/close-round.d.ts +++ b/types/react-icons/lib/io/close-round.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoCloseRound extends React.Component { } +declare class IoCloseRound extends React.Component { } +export = IoCloseRound; diff --git a/types/react-icons/lib/io/close.d.ts b/types/react-icons/lib/io/close.d.ts index acc49f00ac..e63ad69a50 100644 --- a/types/react-icons/lib/io/close.d.ts +++ b/types/react-icons/lib/io/close.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoClose extends React.Component { } +declare class IoClose extends React.Component { } +export = IoClose; diff --git a/types/react-icons/lib/io/closed-captioning.d.ts b/types/react-icons/lib/io/closed-captioning.d.ts index 5a2b68d149..6989aecb2f 100644 --- a/types/react-icons/lib/io/closed-captioning.d.ts +++ b/types/react-icons/lib/io/closed-captioning.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoClosedCaptioning extends React.Component { } +declare class IoClosedCaptioning extends React.Component { } +export = IoClosedCaptioning; diff --git a/types/react-icons/lib/io/cloud.d.ts b/types/react-icons/lib/io/cloud.d.ts index 837051ce2f..529f05f5fa 100644 --- a/types/react-icons/lib/io/cloud.d.ts +++ b/types/react-icons/lib/io/cloud.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoCloud extends React.Component { } +declare class IoCloud extends React.Component { } +export = IoCloud; diff --git a/types/react-icons/lib/io/code-download.d.ts b/types/react-icons/lib/io/code-download.d.ts index 765b401172..7d63a84630 100644 --- a/types/react-icons/lib/io/code-download.d.ts +++ b/types/react-icons/lib/io/code-download.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoCodeDownload extends React.Component { } +declare class IoCodeDownload extends React.Component { } +export = IoCodeDownload; diff --git a/types/react-icons/lib/io/code-working.d.ts b/types/react-icons/lib/io/code-working.d.ts index 48cf64ecd5..c014c9fb3b 100644 --- a/types/react-icons/lib/io/code-working.d.ts +++ b/types/react-icons/lib/io/code-working.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoCodeWorking extends React.Component { } +declare class IoCodeWorking extends React.Component { } +export = IoCodeWorking; diff --git a/types/react-icons/lib/io/code.d.ts b/types/react-icons/lib/io/code.d.ts index 3d89e7aec1..15f8af880b 100644 --- a/types/react-icons/lib/io/code.d.ts +++ b/types/react-icons/lib/io/code.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoCode extends React.Component { } +declare class IoCode extends React.Component { } +export = IoCode; diff --git a/types/react-icons/lib/io/coffee.d.ts b/types/react-icons/lib/io/coffee.d.ts index f3122b5343..ff96c293fd 100644 --- a/types/react-icons/lib/io/coffee.d.ts +++ b/types/react-icons/lib/io/coffee.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoCoffee extends React.Component { } +declare class IoCoffee extends React.Component { } +export = IoCoffee; diff --git a/types/react-icons/lib/io/compass.d.ts b/types/react-icons/lib/io/compass.d.ts index c0b78dd711..d96268517f 100644 --- a/types/react-icons/lib/io/compass.d.ts +++ b/types/react-icons/lib/io/compass.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoCompass extends React.Component { } +declare class IoCompass extends React.Component { } +export = IoCompass; diff --git a/types/react-icons/lib/io/compose.d.ts b/types/react-icons/lib/io/compose.d.ts index 5250bbf5f9..cd104c86e4 100644 --- a/types/react-icons/lib/io/compose.d.ts +++ b/types/react-icons/lib/io/compose.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoCompose extends React.Component { } +declare class IoCompose extends React.Component { } +export = IoCompose; diff --git a/types/react-icons/lib/io/connectbars.d.ts b/types/react-icons/lib/io/connectbars.d.ts index 2484005cf3..e9c503f259 100644 --- a/types/react-icons/lib/io/connectbars.d.ts +++ b/types/react-icons/lib/io/connectbars.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoConnectbars extends React.Component { } +declare class IoConnectbars extends React.Component { } +export = IoConnectbars; diff --git a/types/react-icons/lib/io/contrast.d.ts b/types/react-icons/lib/io/contrast.d.ts index 871e34e2b5..aea50a362f 100644 --- a/types/react-icons/lib/io/contrast.d.ts +++ b/types/react-icons/lib/io/contrast.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoContrast extends React.Component { } +declare class IoContrast extends React.Component { } +export = IoContrast; diff --git a/types/react-icons/lib/io/crop.d.ts b/types/react-icons/lib/io/crop.d.ts index 1d9f6fe16f..6fca72b89d 100644 --- a/types/react-icons/lib/io/crop.d.ts +++ b/types/react-icons/lib/io/crop.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoCrop extends React.Component { } +declare class IoCrop extends React.Component { } +export = IoCrop; diff --git a/types/react-icons/lib/io/cube.d.ts b/types/react-icons/lib/io/cube.d.ts index 0e20a500a0..87a041844d 100644 --- a/types/react-icons/lib/io/cube.d.ts +++ b/types/react-icons/lib/io/cube.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoCube extends React.Component { } +declare class IoCube extends React.Component { } +export = IoCube; diff --git a/types/react-icons/lib/io/disc.d.ts b/types/react-icons/lib/io/disc.d.ts index adb12527e7..ba1c411354 100644 --- a/types/react-icons/lib/io/disc.d.ts +++ b/types/react-icons/lib/io/disc.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoDisc extends React.Component { } +declare class IoDisc extends React.Component { } +export = IoDisc; diff --git a/types/react-icons/lib/io/document-text.d.ts b/types/react-icons/lib/io/document-text.d.ts index 4c419e9766..d77721e7c5 100644 --- a/types/react-icons/lib/io/document-text.d.ts +++ b/types/react-icons/lib/io/document-text.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoDocumentText extends React.Component { } +declare class IoDocumentText extends React.Component { } +export = IoDocumentText; diff --git a/types/react-icons/lib/io/document.d.ts b/types/react-icons/lib/io/document.d.ts index 098ab00b2a..58dcac1802 100644 --- a/types/react-icons/lib/io/document.d.ts +++ b/types/react-icons/lib/io/document.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoDocument extends React.Component { } +declare class IoDocument extends React.Component { } +export = IoDocument; diff --git a/types/react-icons/lib/io/drag.d.ts b/types/react-icons/lib/io/drag.d.ts index 628c38c338..fc7e0809a5 100644 --- a/types/react-icons/lib/io/drag.d.ts +++ b/types/react-icons/lib/io/drag.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoDrag extends React.Component { } +declare class IoDrag extends React.Component { } +export = IoDrag; diff --git a/types/react-icons/lib/io/earth.d.ts b/types/react-icons/lib/io/earth.d.ts index 5d502a5882..7a37407511 100644 --- a/types/react-icons/lib/io/earth.d.ts +++ b/types/react-icons/lib/io/earth.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoEarth extends React.Component { } +declare class IoEarth extends React.Component { } +export = IoEarth; diff --git a/types/react-icons/lib/io/easel.d.ts b/types/react-icons/lib/io/easel.d.ts index dc8b3ff32d..07f4eb9c1d 100644 --- a/types/react-icons/lib/io/easel.d.ts +++ b/types/react-icons/lib/io/easel.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoEasel extends React.Component { } +declare class IoEasel extends React.Component { } +export = IoEasel; diff --git a/types/react-icons/lib/io/edit.d.ts b/types/react-icons/lib/io/edit.d.ts index ea10d7df2a..b226390e6b 100644 --- a/types/react-icons/lib/io/edit.d.ts +++ b/types/react-icons/lib/io/edit.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoEdit extends React.Component { } +declare class IoEdit extends React.Component { } +export = IoEdit; diff --git a/types/react-icons/lib/io/egg.d.ts b/types/react-icons/lib/io/egg.d.ts index 39e63c2f48..7443c8e7c6 100644 --- a/types/react-icons/lib/io/egg.d.ts +++ b/types/react-icons/lib/io/egg.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoEgg extends React.Component { } +declare class IoEgg extends React.Component { } +export = IoEgg; diff --git a/types/react-icons/lib/io/eject.d.ts b/types/react-icons/lib/io/eject.d.ts index 1f859a0b76..4621d76261 100644 --- a/types/react-icons/lib/io/eject.d.ts +++ b/types/react-icons/lib/io/eject.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoEject extends React.Component { } +declare class IoEject extends React.Component { } +export = IoEject; diff --git a/types/react-icons/lib/io/email-unread.d.ts b/types/react-icons/lib/io/email-unread.d.ts index acdaefd764..76d66d544a 100644 --- a/types/react-icons/lib/io/email-unread.d.ts +++ b/types/react-icons/lib/io/email-unread.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoEmailUnread extends React.Component { } +declare class IoEmailUnread extends React.Component { } +export = IoEmailUnread; diff --git a/types/react-icons/lib/io/email.d.ts b/types/react-icons/lib/io/email.d.ts index 7323479361..5551df730a 100644 --- a/types/react-icons/lib/io/email.d.ts +++ b/types/react-icons/lib/io/email.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoEmail extends React.Component { } +declare class IoEmail extends React.Component { } +export = IoEmail; diff --git a/types/react-icons/lib/io/erlenmeyer-flask-bubbles.d.ts b/types/react-icons/lib/io/erlenmeyer-flask-bubbles.d.ts index fed2da9f1f..8075f8880b 100644 --- a/types/react-icons/lib/io/erlenmeyer-flask-bubbles.d.ts +++ b/types/react-icons/lib/io/erlenmeyer-flask-bubbles.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoErlenmeyerFlaskBubbles extends React.Component { } +declare class IoErlenmeyerFlaskBubbles extends React.Component { } +export = IoErlenmeyerFlaskBubbles; diff --git a/types/react-icons/lib/io/erlenmeyer-flask.d.ts b/types/react-icons/lib/io/erlenmeyer-flask.d.ts index 0de1fd7c42..c7ac237769 100644 --- a/types/react-icons/lib/io/erlenmeyer-flask.d.ts +++ b/types/react-icons/lib/io/erlenmeyer-flask.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoErlenmeyerFlask extends React.Component { } +declare class IoErlenmeyerFlask extends React.Component { } +export = IoErlenmeyerFlask; diff --git a/types/react-icons/lib/io/eye-disabled.d.ts b/types/react-icons/lib/io/eye-disabled.d.ts index 3bf20def2a..8950fa85cc 100644 --- a/types/react-icons/lib/io/eye-disabled.d.ts +++ b/types/react-icons/lib/io/eye-disabled.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoEyeDisabled extends React.Component { } +declare class IoEyeDisabled extends React.Component { } +export = IoEyeDisabled; diff --git a/types/react-icons/lib/io/eye.d.ts b/types/react-icons/lib/io/eye.d.ts index 270c59505f..bc243f9ed5 100644 --- a/types/react-icons/lib/io/eye.d.ts +++ b/types/react-icons/lib/io/eye.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoEye extends React.Component { } +declare class IoEye extends React.Component { } +export = IoEye; diff --git a/types/react-icons/lib/io/female.d.ts b/types/react-icons/lib/io/female.d.ts index cb795e884b..363f225e45 100644 --- a/types/react-icons/lib/io/female.d.ts +++ b/types/react-icons/lib/io/female.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoFemale extends React.Component { } +declare class IoFemale extends React.Component { } +export = IoFemale; diff --git a/types/react-icons/lib/io/filing.d.ts b/types/react-icons/lib/io/filing.d.ts index ba69d4eb8b..73e1fe47b1 100644 --- a/types/react-icons/lib/io/filing.d.ts +++ b/types/react-icons/lib/io/filing.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoFiling extends React.Component { } +declare class IoFiling extends React.Component { } +export = IoFiling; diff --git a/types/react-icons/lib/io/film-marker.d.ts b/types/react-icons/lib/io/film-marker.d.ts index 4e4a7158f2..419dc10730 100644 --- a/types/react-icons/lib/io/film-marker.d.ts +++ b/types/react-icons/lib/io/film-marker.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoFilmMarker extends React.Component { } +declare class IoFilmMarker extends React.Component { } +export = IoFilmMarker; diff --git a/types/react-icons/lib/io/fireball.d.ts b/types/react-icons/lib/io/fireball.d.ts index e7056b1534..761f0f74db 100644 --- a/types/react-icons/lib/io/fireball.d.ts +++ b/types/react-icons/lib/io/fireball.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoFireball extends React.Component { } +declare class IoFireball extends React.Component { } +export = IoFireball; diff --git a/types/react-icons/lib/io/flag.d.ts b/types/react-icons/lib/io/flag.d.ts index c06630b1a6..604aa212da 100644 --- a/types/react-icons/lib/io/flag.d.ts +++ b/types/react-icons/lib/io/flag.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoFlag extends React.Component { } +declare class IoFlag extends React.Component { } +export = IoFlag; diff --git a/types/react-icons/lib/io/flame.d.ts b/types/react-icons/lib/io/flame.d.ts index d49d1bd2db..bf3a40331a 100644 --- a/types/react-icons/lib/io/flame.d.ts +++ b/types/react-icons/lib/io/flame.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoFlame extends React.Component { } +declare class IoFlame extends React.Component { } +export = IoFlame; diff --git a/types/react-icons/lib/io/flash-off.d.ts b/types/react-icons/lib/io/flash-off.d.ts index 2b12ebe578..2a25f11369 100644 --- a/types/react-icons/lib/io/flash-off.d.ts +++ b/types/react-icons/lib/io/flash-off.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoFlashOff extends React.Component { } +declare class IoFlashOff extends React.Component { } +export = IoFlashOff; diff --git a/types/react-icons/lib/io/flash.d.ts b/types/react-icons/lib/io/flash.d.ts index 32901f5a9d..11e4b408c1 100644 --- a/types/react-icons/lib/io/flash.d.ts +++ b/types/react-icons/lib/io/flash.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoFlash extends React.Component { } +declare class IoFlash extends React.Component { } +export = IoFlash; diff --git a/types/react-icons/lib/io/folder.d.ts b/types/react-icons/lib/io/folder.d.ts index dd14763f19..2f9eeabc0c 100644 --- a/types/react-icons/lib/io/folder.d.ts +++ b/types/react-icons/lib/io/folder.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoFolder extends React.Component { } +declare class IoFolder extends React.Component { } +export = IoFolder; diff --git a/types/react-icons/lib/io/fork-repo.d.ts b/types/react-icons/lib/io/fork-repo.d.ts index 19dfd6a33c..91707b054e 100644 --- a/types/react-icons/lib/io/fork-repo.d.ts +++ b/types/react-icons/lib/io/fork-repo.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoForkRepo extends React.Component { } +declare class IoForkRepo extends React.Component { } +export = IoForkRepo; diff --git a/types/react-icons/lib/io/fork.d.ts b/types/react-icons/lib/io/fork.d.ts index b06aa1f455..c25327c58f 100644 --- a/types/react-icons/lib/io/fork.d.ts +++ b/types/react-icons/lib/io/fork.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoFork extends React.Component { } +declare class IoFork extends React.Component { } +export = IoFork; diff --git a/types/react-icons/lib/io/forward.d.ts b/types/react-icons/lib/io/forward.d.ts index 1b36aa1de7..5f8db1eb0a 100644 --- a/types/react-icons/lib/io/forward.d.ts +++ b/types/react-icons/lib/io/forward.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoForward extends React.Component { } +declare class IoForward extends React.Component { } +export = IoForward; diff --git a/types/react-icons/lib/io/funnel.d.ts b/types/react-icons/lib/io/funnel.d.ts index be56fcd18c..564d37b5dd 100644 --- a/types/react-icons/lib/io/funnel.d.ts +++ b/types/react-icons/lib/io/funnel.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoFunnel extends React.Component { } +declare class IoFunnel extends React.Component { } +export = IoFunnel; diff --git a/types/react-icons/lib/io/gear-a.d.ts b/types/react-icons/lib/io/gear-a.d.ts index b04f6af6c2..cac36e86a6 100644 --- a/types/react-icons/lib/io/gear-a.d.ts +++ b/types/react-icons/lib/io/gear-a.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoGearA extends React.Component { } +declare class IoGearA extends React.Component { } +export = IoGearA; diff --git a/types/react-icons/lib/io/gear-b.d.ts b/types/react-icons/lib/io/gear-b.d.ts index b580d2bc7c..85d2ec806a 100644 --- a/types/react-icons/lib/io/gear-b.d.ts +++ b/types/react-icons/lib/io/gear-b.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoGearB extends React.Component { } +declare class IoGearB extends React.Component { } +export = IoGearB; diff --git a/types/react-icons/lib/io/grid.d.ts b/types/react-icons/lib/io/grid.d.ts index b30f3a11c2..77f0971fc2 100644 --- a/types/react-icons/lib/io/grid.d.ts +++ b/types/react-icons/lib/io/grid.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoGrid extends React.Component { } +declare class IoGrid extends React.Component { } +export = IoGrid; diff --git a/types/react-icons/lib/io/hammer.d.ts b/types/react-icons/lib/io/hammer.d.ts index 4ea6d0c306..cb96449ad8 100644 --- a/types/react-icons/lib/io/hammer.d.ts +++ b/types/react-icons/lib/io/hammer.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoHammer extends React.Component { } +declare class IoHammer extends React.Component { } +export = IoHammer; diff --git a/types/react-icons/lib/io/happy-outline.d.ts b/types/react-icons/lib/io/happy-outline.d.ts index 3207610467..cd4ae57ef0 100644 --- a/types/react-icons/lib/io/happy-outline.d.ts +++ b/types/react-icons/lib/io/happy-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoHappyOutline extends React.Component { } +declare class IoHappyOutline extends React.Component { } +export = IoHappyOutline; diff --git a/types/react-icons/lib/io/happy.d.ts b/types/react-icons/lib/io/happy.d.ts index f773c9e528..3ab43dca46 100644 --- a/types/react-icons/lib/io/happy.d.ts +++ b/types/react-icons/lib/io/happy.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoHappy extends React.Component { } +declare class IoHappy extends React.Component { } +export = IoHappy; diff --git a/types/react-icons/lib/io/headphone.d.ts b/types/react-icons/lib/io/headphone.d.ts index e1ebdc9185..2165a1ce1d 100644 --- a/types/react-icons/lib/io/headphone.d.ts +++ b/types/react-icons/lib/io/headphone.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoHeadphone extends React.Component { } +declare class IoHeadphone extends React.Component { } +export = IoHeadphone; diff --git a/types/react-icons/lib/io/heart-broken.d.ts b/types/react-icons/lib/io/heart-broken.d.ts index 822a928ac6..3dcef8a454 100644 --- a/types/react-icons/lib/io/heart-broken.d.ts +++ b/types/react-icons/lib/io/heart-broken.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoHeartBroken extends React.Component { } +declare class IoHeartBroken extends React.Component { } +export = IoHeartBroken; diff --git a/types/react-icons/lib/io/heart.d.ts b/types/react-icons/lib/io/heart.d.ts index e543207ae6..09596470cf 100644 --- a/types/react-icons/lib/io/heart.d.ts +++ b/types/react-icons/lib/io/heart.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoHeart extends React.Component { } +declare class IoHeart extends React.Component { } +export = IoHeart; diff --git a/types/react-icons/lib/io/help-buoy.d.ts b/types/react-icons/lib/io/help-buoy.d.ts index 9a84933640..2d7596c318 100644 --- a/types/react-icons/lib/io/help-buoy.d.ts +++ b/types/react-icons/lib/io/help-buoy.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoHelpBuoy extends React.Component { } +declare class IoHelpBuoy extends React.Component { } +export = IoHelpBuoy; diff --git a/types/react-icons/lib/io/help-circled.d.ts b/types/react-icons/lib/io/help-circled.d.ts index f36a8fd5f8..51ff2fa62a 100644 --- a/types/react-icons/lib/io/help-circled.d.ts +++ b/types/react-icons/lib/io/help-circled.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoHelpCircled extends React.Component { } +declare class IoHelpCircled extends React.Component { } +export = IoHelpCircled; diff --git a/types/react-icons/lib/io/help.d.ts b/types/react-icons/lib/io/help.d.ts index 8eee2581c6..ba7fc4f358 100644 --- a/types/react-icons/lib/io/help.d.ts +++ b/types/react-icons/lib/io/help.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoHelp extends React.Component { } +declare class IoHelp extends React.Component { } +export = IoHelp; diff --git a/types/react-icons/lib/io/home.d.ts b/types/react-icons/lib/io/home.d.ts index 337bace8fa..17990b7afa 100644 --- a/types/react-icons/lib/io/home.d.ts +++ b/types/react-icons/lib/io/home.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoHome extends React.Component { } +declare class IoHome extends React.Component { } +export = IoHome; diff --git a/types/react-icons/lib/io/icecream.d.ts b/types/react-icons/lib/io/icecream.d.ts index 1c3f0bd2af..d766170158 100644 --- a/types/react-icons/lib/io/icecream.d.ts +++ b/types/react-icons/lib/io/icecream.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIcecream extends React.Component { } +declare class IoIcecream extends React.Component { } +export = IoIcecream; diff --git a/types/react-icons/lib/io/image.d.ts b/types/react-icons/lib/io/image.d.ts index 3fbf7da59a..960fbd8e35 100644 --- a/types/react-icons/lib/io/image.d.ts +++ b/types/react-icons/lib/io/image.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoImage extends React.Component { } +declare class IoImage extends React.Component { } +export = IoImage; diff --git a/types/react-icons/lib/io/images.d.ts b/types/react-icons/lib/io/images.d.ts index ae80a81b1e..562288e5b8 100644 --- a/types/react-icons/lib/io/images.d.ts +++ b/types/react-icons/lib/io/images.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoImages extends React.Component { } +declare class IoImages extends React.Component { } +export = IoImages; diff --git a/types/react-icons/lib/io/index.d.ts b/types/react-icons/lib/io/index.d.ts index ef86c25e2b..340f0a0cea 100644 --- a/types/react-icons/lib/io/index.d.ts +++ b/types/react-icons/lib/io/index.d.ts @@ -1,733 +1,733 @@ -export { default as IoAlertCircled } from "./alert-circled"; -export { default as IoAlert } from "./alert"; -export { default as IoAndroidAddCircle } from "./android-add-circle"; -export { default as IoAndroidAdd } from "./android-add"; -export { default as IoAndroidAlarmClock } from "./android-alarm-clock"; -export { default as IoAndroidAlert } from "./android-alert"; -export { default as IoAndroidApps } from "./android-apps"; -export { default as IoAndroidArchive } from "./android-archive"; -export { default as IoAndroidArrowBack } from "./android-arrow-back"; -export { default as IoAndroidArrowDown } from "./android-arrow-down"; -export { default as IoAndroidArrowDropdownCircle } from "./android-arrow-dropdown-circle"; -export { default as IoAndroidArrowDropdown } from "./android-arrow-dropdown"; -export { default as IoAndroidArrowDropleftCircle } from "./android-arrow-dropleft-circle"; -export { default as IoAndroidArrowDropleft } from "./android-arrow-dropleft"; -export { default as IoAndroidArrowDroprightCircle } from "./android-arrow-dropright-circle"; -export { default as IoAndroidArrowDropright } from "./android-arrow-dropright"; -export { default as IoAndroidArrowDropupCircle } from "./android-arrow-dropup-circle"; -export { default as IoAndroidArrowDropup } from "./android-arrow-dropup"; -export { default as IoAndroidArrowForward } from "./android-arrow-forward"; -export { default as IoAndroidArrowUp } from "./android-arrow-up"; -export { default as IoAndroidAttach } from "./android-attach"; -export { default as IoAndroidBar } from "./android-bar"; -export { default as IoAndroidBicycle } from "./android-bicycle"; -export { default as IoAndroidBoat } from "./android-boat"; -export { default as IoAndroidBookmark } from "./android-bookmark"; -export { default as IoAndroidBulb } from "./android-bulb"; -export { default as IoAndroidBus } from "./android-bus"; -export { default as IoAndroidCalendar } from "./android-calendar"; -export { default as IoAndroidCall } from "./android-call"; -export { default as IoAndroidCamera } from "./android-camera"; -export { default as IoAndroidCancel } from "./android-cancel"; -export { default as IoAndroidCar } from "./android-car"; -export { default as IoAndroidCart } from "./android-cart"; -export { default as IoAndroidChat } from "./android-chat"; -export { default as IoAndroidCheckboxBlank } from "./android-checkbox-blank"; -export { default as IoAndroidCheckboxOutlineBlank } from "./android-checkbox-outline-blank"; -export { default as IoAndroidCheckboxOutline } from "./android-checkbox-outline"; -export { default as IoAndroidCheckbox } from "./android-checkbox"; -export { default as IoAndroidCheckmarkCircle } from "./android-checkmark-circle"; -export { default as IoAndroidClipboard } from "./android-clipboard"; -export { default as IoAndroidClose } from "./android-close"; -export { default as IoAndroidCloudCircle } from "./android-cloud-circle"; -export { default as IoAndroidCloudDone } from "./android-cloud-done"; -export { default as IoAndroidCloudOutline } from "./android-cloud-outline"; -export { default as IoAndroidCloud } from "./android-cloud"; -export { default as IoAndroidColorPalette } from "./android-color-palette"; -export { default as IoAndroidCompass } from "./android-compass"; -export { default as IoAndroidContact } from "./android-contact"; -export { default as IoAndroidContacts } from "./android-contacts"; -export { default as IoAndroidContract } from "./android-contract"; -export { default as IoAndroidCreate } from "./android-create"; -export { default as IoAndroidDelete } from "./android-delete"; -export { default as IoAndroidDesktop } from "./android-desktop"; -export { default as IoAndroidDocument } from "./android-document"; -export { default as IoAndroidDoneAll } from "./android-done-all"; -export { default as IoAndroidDone } from "./android-done"; -export { default as IoAndroidDownload } from "./android-download"; -export { default as IoAndroidDrafts } from "./android-drafts"; -export { default as IoAndroidExit } from "./android-exit"; -export { default as IoAndroidExpand } from "./android-expand"; -export { default as IoAndroidFavoriteOutline } from "./android-favorite-outline"; -export { default as IoAndroidFavorite } from "./android-favorite"; -export { default as IoAndroidFilm } from "./android-film"; -export { default as IoAndroidFolderOpen } from "./android-folder-open"; -export { default as IoAndroidFolder } from "./android-folder"; -export { default as IoAndroidFunnel } from "./android-funnel"; -export { default as IoAndroidGlobe } from "./android-globe"; -export { default as IoAndroidHand } from "./android-hand"; -export { default as IoAndroidHangout } from "./android-hangout"; -export { default as IoAndroidHappy } from "./android-happy"; -export { default as IoAndroidHome } from "./android-home"; -export { default as IoAndroidImage } from "./android-image"; -export { default as IoAndroidLaptop } from "./android-laptop"; -export { default as IoAndroidList } from "./android-list"; -export { default as IoAndroidLocate } from "./android-locate"; -export { default as IoAndroidLock } from "./android-lock"; -export { default as IoAndroidMail } from "./android-mail"; -export { default as IoAndroidMap } from "./android-map"; -export { default as IoAndroidMenu } from "./android-menu"; -export { default as IoAndroidMicrophoneOff } from "./android-microphone-off"; -export { default as IoAndroidMicrophone } from "./android-microphone"; -export { default as IoAndroidMoreHorizontal } from "./android-more-horizontal"; -export { default as IoAndroidMoreVertical } from "./android-more-vertical"; -export { default as IoAndroidNavigate } from "./android-navigate"; -export { default as IoAndroidNotificationsNone } from "./android-notifications-none"; -export { default as IoAndroidNotificationsOff } from "./android-notifications-off"; -export { default as IoAndroidNotifications } from "./android-notifications"; -export { default as IoAndroidOpen } from "./android-open"; -export { default as IoAndroidOptions } from "./android-options"; -export { default as IoAndroidPeople } from "./android-people"; -export { default as IoAndroidPersonAdd } from "./android-person-add"; -export { default as IoAndroidPerson } from "./android-person"; -export { default as IoAndroidPhoneLandscape } from "./android-phone-landscape"; -export { default as IoAndroidPhonePortrait } from "./android-phone-portrait"; -export { default as IoAndroidPin } from "./android-pin"; -export { default as IoAndroidPlane } from "./android-plane"; -export { default as IoAndroidPlaystore } from "./android-playstore"; -export { default as IoAndroidPrint } from "./android-print"; -export { default as IoAndroidRadioButtonOff } from "./android-radio-button-off"; -export { default as IoAndroidRadioButtonOn } from "./android-radio-button-on"; -export { default as IoAndroidRefresh } from "./android-refresh"; -export { default as IoAndroidRemoveCircle } from "./android-remove-circle"; -export { default as IoAndroidRemove } from "./android-remove"; -export { default as IoAndroidRestaurant } from "./android-restaurant"; -export { default as IoAndroidSad } from "./android-sad"; -export { default as IoAndroidSearch } from "./android-search"; -export { default as IoAndroidSend } from "./android-send"; -export { default as IoAndroidSettings } from "./android-settings"; -export { default as IoAndroidShareAlt } from "./android-share-alt"; -export { default as IoAndroidShare } from "./android-share"; -export { default as IoAndroidStarHalf } from "./android-star-half"; -export { default as IoAndroidStarOutline } from "./android-star-outline"; -export { default as IoAndroidStar } from "./android-star"; -export { default as IoAndroidStopwatch } from "./android-stopwatch"; -export { default as IoAndroidSubway } from "./android-subway"; -export { default as IoAndroidSunny } from "./android-sunny"; -export { default as IoAndroidSync } from "./android-sync"; -export { default as IoAndroidTextsms } from "./android-textsms"; -export { default as IoAndroidTime } from "./android-time"; -export { default as IoAndroidTrain } from "./android-train"; -export { default as IoAndroidUnlock } from "./android-unlock"; -export { default as IoAndroidUpload } from "./android-upload"; -export { default as IoAndroidVolumeDown } from "./android-volume-down"; -export { default as IoAndroidVolumeMute } from "./android-volume-mute"; -export { default as IoAndroidVolumeOff } from "./android-volume-off"; -export { default as IoAndroidVolumeUp } from "./android-volume-up"; -export { default as IoAndroidWalk } from "./android-walk"; -export { default as IoAndroidWarning } from "./android-warning"; -export { default as IoAndroidWatch } from "./android-watch"; -export { default as IoAndroidWifi } from "./android-wifi"; -export { default as IoAperture } from "./aperture"; -export { default as IoArchive } from "./archive"; -export { default as IoArrowDownA } from "./arrow-down-a"; -export { default as IoArrowDownB } from "./arrow-down-b"; -export { default as IoArrowDownC } from "./arrow-down-c"; -export { default as IoArrowExpand } from "./arrow-expand"; -export { default as IoArrowGraphDownLeft } from "./arrow-graph-down-left"; -export { default as IoArrowGraphDownRight } from "./arrow-graph-down-right"; -export { default as IoArrowGraphUpLeft } from "./arrow-graph-up-left"; -export { default as IoArrowGraphUpRight } from "./arrow-graph-up-right"; -export { default as IoArrowLeftA } from "./arrow-left-a"; -export { default as IoArrowLeftB } from "./arrow-left-b"; -export { default as IoArrowLeftC } from "./arrow-left-c"; -export { default as IoArrowMove } from "./arrow-move"; -export { default as IoArrowResize } from "./arrow-resize"; -export { default as IoArrowReturnLeft } from "./arrow-return-left"; -export { default as IoArrowReturnRight } from "./arrow-return-right"; -export { default as IoArrowRightA } from "./arrow-right-a"; -export { default as IoArrowRightB } from "./arrow-right-b"; -export { default as IoArrowRightC } from "./arrow-right-c"; -export { default as IoArrowShrink } from "./arrow-shrink"; -export { default as IoArrowSwap } from "./arrow-swap"; -export { default as IoArrowUpA } from "./arrow-up-a"; -export { default as IoArrowUpB } from "./arrow-up-b"; -export { default as IoArrowUpC } from "./arrow-up-c"; -export { default as IoAsterisk } from "./asterisk"; -export { default as IoAt } from "./at"; -export { default as IoBackspaceOutline } from "./backspace-outline"; -export { default as IoBackspace } from "./backspace"; -export { default as IoBag } from "./bag"; -export { default as IoBatteryCharging } from "./battery-charging"; -export { default as IoBatteryEmpty } from "./battery-empty"; -export { default as IoBatteryFull } from "./battery-full"; -export { default as IoBatteryHalf } from "./battery-half"; -export { default as IoBatteryLow } from "./battery-low"; -export { default as IoBeaker } from "./beaker"; -export { default as IoBeer } from "./beer"; -export { default as IoBluetooth } from "./bluetooth"; -export { default as IoBonfire } from "./bonfire"; -export { default as IoBookmark } from "./bookmark"; -export { default as IoBowtie } from "./bowtie"; -export { default as IoBriefcase } from "./briefcase"; -export { default as IoBug } from "./bug"; -export { default as IoCalculator } from "./calculator"; -export { default as IoCalendar } from "./calendar"; -export { default as IoCamera } from "./camera"; -export { default as IoCard } from "./card"; -export { default as IoCash } from "./cash"; -export { default as IoChatboxWorking } from "./chatbox-working"; -export { default as IoChatbox } from "./chatbox"; -export { default as IoChatboxes } from "./chatboxes"; -export { default as IoChatbubbleWorking } from "./chatbubble-working"; -export { default as IoChatbubble } from "./chatbubble"; -export { default as IoChatbubbles } from "./chatbubbles"; -export { default as IoCheckmarkCircled } from "./checkmark-circled"; -export { default as IoCheckmarkRound } from "./checkmark-round"; -export { default as IoCheckmark } from "./checkmark"; -export { default as IoChevronDown } from "./chevron-down"; -export { default as IoChevronLeft } from "./chevron-left"; -export { default as IoChevronRight } from "./chevron-right"; -export { default as IoChevronUp } from "./chevron-up"; -export { default as IoClipboard } from "./clipboard"; -export { default as IoClock } from "./clock"; -export { default as IoCloseCircled } from "./close-circled"; -export { default as IoCloseRound } from "./close-round"; -export { default as IoClose } from "./close"; -export { default as IoClosedCaptioning } from "./closed-captioning"; -export { default as IoCloud } from "./cloud"; -export { default as IoCodeDownload } from "./code-download"; -export { default as IoCodeWorking } from "./code-working"; -export { default as IoCode } from "./code"; -export { default as IoCoffee } from "./coffee"; -export { default as IoCompass } from "./compass"; -export { default as IoCompose } from "./compose"; -export { default as IoConnectbars } from "./connectbars"; -export { default as IoContrast } from "./contrast"; -export { default as IoCrop } from "./crop"; -export { default as IoCube } from "./cube"; -export { default as IoDisc } from "./disc"; -export { default as IoDocumentText } from "./document-text"; -export { default as IoDocument } from "./document"; -export { default as IoDrag } from "./drag"; -export { default as IoEarth } from "./earth"; -export { default as IoEasel } from "./easel"; -export { default as IoEdit } from "./edit"; -export { default as IoEgg } from "./egg"; -export { default as IoEject } from "./eject"; -export { default as IoEmailUnread } from "./email-unread"; -export { default as IoEmail } from "./email"; -export { default as IoErlenmeyerFlaskBubbles } from "./erlenmeyer-flask-bubbles"; -export { default as IoErlenmeyerFlask } from "./erlenmeyer-flask"; -export { default as IoEyeDisabled } from "./eye-disabled"; -export { default as IoEye } from "./eye"; -export { default as IoFemale } from "./female"; -export { default as IoFiling } from "./filing"; -export { default as IoFilmMarker } from "./film-marker"; -export { default as IoFireball } from "./fireball"; -export { default as IoFlag } from "./flag"; -export { default as IoFlame } from "./flame"; -export { default as IoFlashOff } from "./flash-off"; -export { default as IoFlash } from "./flash"; -export { default as IoFolder } from "./folder"; -export { default as IoForkRepo } from "./fork-repo"; -export { default as IoFork } from "./fork"; -export { default as IoForward } from "./forward"; -export { default as IoFunnel } from "./funnel"; -export { default as IoGearA } from "./gear-a"; -export { default as IoGearB } from "./gear-b"; -export { default as IoGrid } from "./grid"; -export { default as IoHammer } from "./hammer"; -export { default as IoHappyOutline } from "./happy-outline"; -export { default as IoHappy } from "./happy"; -export { default as IoHeadphone } from "./headphone"; -export { default as IoHeartBroken } from "./heart-broken"; -export { default as IoHeart } from "./heart"; -export { default as IoHelpBuoy } from "./help-buoy"; -export { default as IoHelpCircled } from "./help-circled"; -export { default as IoHelp } from "./help"; -export { default as IoHome } from "./home"; -export { default as IoIcecream } from "./icecream"; -export { default as IoImage } from "./image"; -export { default as IoImages } from "./images"; -export { default as IoInformatcircled } from "./informatcircled"; -export { default as IoInformation } from "./information"; -export { default as IoIonic } from "./ionic"; -export { default as IoIosAlarmOutline } from "./ios-alarm-outline"; -export { default as IoIosAlarm } from "./ios-alarm"; -export { default as IoIosAlbumsOutline } from "./ios-albums-outline"; -export { default as IoIosAlbums } from "./ios-albums"; -export { default as IoIosAmericanfootballOutline } from "./ios-americanfootball-outline"; -export { default as IoIosAmericanfootball } from "./ios-americanfootball"; -export { default as IoIosAnalyticsOutline } from "./ios-analytics-outline"; -export { default as IoIosAnalytics } from "./ios-analytics"; -export { default as IoIosArrowBack } from "./ios-arrow-back"; -export { default as IoIosArrowDown } from "./ios-arrow-down"; -export { default as IoIosArrowForward } from "./ios-arrow-forward"; -export { default as IoIosArrowLeft } from "./ios-arrow-left"; -export { default as IoIosArrowRight } from "./ios-arrow-right"; -export { default as IoIosArrowThinDown } from "./ios-arrow-thin-down"; -export { default as IoIosArrowThinLeft } from "./ios-arrow-thin-left"; -export { default as IoIosArrowThinRight } from "./ios-arrow-thin-right"; -export { default as IoIosArrowThinUp } from "./ios-arrow-thin-up"; -export { default as IoIosArrowUp } from "./ios-arrow-up"; -export { default as IoIosAtOutline } from "./ios-at-outline"; -export { default as IoIosAt } from "./ios-at"; -export { default as IoIosBarcodeOutline } from "./ios-barcode-outline"; -export { default as IoIosBarcode } from "./ios-barcode"; -export { default as IoIosBaseballOutline } from "./ios-baseball-outline"; -export { default as IoIosBaseball } from "./ios-baseball"; -export { default as IoIosBasketballOutline } from "./ios-basketball-outline"; -export { default as IoIosBasketball } from "./ios-basketball"; -export { default as IoIosBellOutline } from "./ios-bell-outline"; -export { default as IoIosBell } from "./ios-bell"; -export { default as IoIosBodyOutline } from "./ios-body-outline"; -export { default as IoIosBody } from "./ios-body"; -export { default as IoIosBoltOutline } from "./ios-bolt-outline"; -export { default as IoIosBolt } from "./ios-bolt"; -export { default as IoIosBookOutline } from "./ios-book-outline"; -export { default as IoIosBook } from "./ios-book"; -export { default as IoIosBookmarksOutline } from "./ios-bookmarks-outline"; -export { default as IoIosBookmarks } from "./ios-bookmarks"; -export { default as IoIosBoxOutline } from "./ios-box-outline"; -export { default as IoIosBox } from "./ios-box"; -export { default as IoIosBriefcaseOutline } from "./ios-briefcase-outline"; -export { default as IoIosBriefcase } from "./ios-briefcase"; -export { default as IoIosBrowsersOutline } from "./ios-browsers-outline"; -export { default as IoIosBrowsers } from "./ios-browsers"; -export { default as IoIosCalculatorOutline } from "./ios-calculator-outline"; -export { default as IoIosCalculator } from "./ios-calculator"; -export { default as IoIosCalendarOutline } from "./ios-calendar-outline"; -export { default as IoIosCalendar } from "./ios-calendar"; -export { default as IoIosCameraOutline } from "./ios-camera-outline"; -export { default as IoIosCamera } from "./ios-camera"; -export { default as IoIosCartOutline } from "./ios-cart-outline"; -export { default as IoIosCart } from "./ios-cart"; -export { default as IoIosChatboxesOutline } from "./ios-chatboxes-outline"; -export { default as IoIosChatboxes } from "./ios-chatboxes"; -export { default as IoIosChatbubbleOutline } from "./ios-chatbubble-outline"; -export { default as IoIosChatbubble } from "./ios-chatbubble"; -export { default as IoIosCheckmarkEmpty } from "./ios-checkmark-empty"; -export { default as IoIosCheckmarkOutline } from "./ios-checkmark-outline"; -export { default as IoIosCheckmark } from "./ios-checkmark"; -export { default as IoIosCircleFilled } from "./ios-circle-filled"; -export { default as IoIosCircleOutline } from "./ios-circle-outline"; -export { default as IoIosClockOutline } from "./ios-clock-outline"; -export { default as IoIosClock } from "./ios-clock"; -export { default as IoIosCloseEmpty } from "./ios-close-empty"; -export { default as IoIosCloseOutline } from "./ios-close-outline"; -export { default as IoIosClose } from "./ios-close"; -export { default as IoIosCloudDownloadOutline } from "./ios-cloud-download-outline"; -export { default as IoIosCloudDownload } from "./ios-cloud-download"; -export { default as IoIosCloudOutline } from "./ios-cloud-outline"; -export { default as IoIosCloudUploadOutline } from "./ios-cloud-upload-outline"; -export { default as IoIosCloudUpload } from "./ios-cloud-upload"; -export { default as IoIosCloud } from "./ios-cloud"; -export { default as IoIosCloudyNightOutline } from "./ios-cloudy-night-outline"; -export { default as IoIosCloudyNight } from "./ios-cloudy-night"; -export { default as IoIosCloudyOutline } from "./ios-cloudy-outline"; -export { default as IoIosCloudy } from "./ios-cloudy"; -export { default as IoIosCogOutline } from "./ios-cog-outline"; -export { default as IoIosCog } from "./ios-cog"; -export { default as IoIosColorFilterOutline } from "./ios-color-filter-outline"; -export { default as IoIosColorFilter } from "./ios-color-filter"; -export { default as IoIosColorWandOutline } from "./ios-color-wand-outline"; -export { default as IoIosColorWand } from "./ios-color-wand"; -export { default as IoIosComposeOutline } from "./ios-compose-outline"; -export { default as IoIosCompose } from "./ios-compose"; -export { default as IoIosContactOutline } from "./ios-contact-outline"; -export { default as IoIosContact } from "./ios-contact"; -export { default as IoIosCopyOutline } from "./ios-copy-outline"; -export { default as IoIosCopy } from "./ios-copy"; -export { default as IoIosCropStrong } from "./ios-crop-strong"; -export { default as IoIosCrop } from "./ios-crop"; -export { default as IoIosDownloadOutline } from "./ios-download-outline"; -export { default as IoIosDownload } from "./ios-download"; -export { default as IoIosDrag } from "./ios-drag"; -export { default as IoIosEmailOutline } from "./ios-email-outline"; -export { default as IoIosEmail } from "./ios-email"; -export { default as IoIosEyeOutline } from "./ios-eye-outline"; -export { default as IoIosEye } from "./ios-eye"; -export { default as IoIosFastforwardOutline } from "./ios-fastforward-outline"; -export { default as IoIosFastforward } from "./ios-fastforward"; -export { default as IoIosFilingOutline } from "./ios-filing-outline"; -export { default as IoIosFiling } from "./ios-filing"; -export { default as IoIosFilmOutline } from "./ios-film-outline"; -export { default as IoIosFilm } from "./ios-film"; -export { default as IoIosFlagOutline } from "./ios-flag-outline"; -export { default as IoIosFlag } from "./ios-flag"; -export { default as IoIosFlameOutline } from "./ios-flame-outline"; -export { default as IoIosFlame } from "./ios-flame"; -export { default as IoIosFlaskOutline } from "./ios-flask-outline"; -export { default as IoIosFlask } from "./ios-flask"; -export { default as IoIosFlowerOutline } from "./ios-flower-outline"; -export { default as IoIosFlower } from "./ios-flower"; -export { default as IoIosFolderOutline } from "./ios-folder-outline"; -export { default as IoIosFolder } from "./ios-folder"; -export { default as IoIosFootballOutline } from "./ios-football-outline"; -export { default as IoIosFootball } from "./ios-football"; -export { default as IoIosGameControllerAOutline } from "./ios-game-controller-a-outline"; -export { default as IoIosGameControllerA } from "./ios-game-controller-a"; -export { default as IoIosGameControllerBOutline } from "./ios-game-controller-b-outline"; -export { default as IoIosGameControllerB } from "./ios-game-controller-b"; -export { default as IoIosGearOutline } from "./ios-gear-outline"; -export { default as IoIosGear } from "./ios-gear"; -export { default as IoIosGlassesOutline } from "./ios-glasses-outline"; -export { default as IoIosGlasses } from "./ios-glasses"; -export { default as IoIosGridViewOutline } from "./ios-grid-view-outline"; -export { default as IoIosGridView } from "./ios-grid-view"; -export { default as IoIosHeartOutline } from "./ios-heart-outline"; -export { default as IoIosHeart } from "./ios-heart"; -export { default as IoIosHelpEmpty } from "./ios-help-empty"; -export { default as IoIosHelpOutline } from "./ios-help-outline"; -export { default as IoIosHelp } from "./ios-help"; -export { default as IoIosHomeOutline } from "./ios-home-outline"; -export { default as IoIosHome } from "./ios-home"; -export { default as IoIosInfiniteOutline } from "./ios-infinite-outline"; -export { default as IoIosInfinite } from "./ios-infinite"; -export { default as IoIosInformatempty } from "./ios-informatempty"; -export { default as IoIosInformation } from "./ios-information"; -export { default as IoIosInformatoutline } from "./ios-informatoutline"; -export { default as IoIosIonicOutline } from "./ios-ionic-outline"; -export { default as IoIosKeypadOutline } from "./ios-keypad-outline"; -export { default as IoIosKeypad } from "./ios-keypad"; -export { default as IoIosLightbulbOutline } from "./ios-lightbulb-outline"; -export { default as IoIosLightbulb } from "./ios-lightbulb"; -export { default as IoIosListOutline } from "./ios-list-outline"; -export { default as IoIosList } from "./ios-list"; -export { default as IoIosLocation } from "./ios-location"; -export { default as IoIosLocatoutline } from "./ios-locatoutline"; -export { default as IoIosLockedOutline } from "./ios-locked-outline"; -export { default as IoIosLocked } from "./ios-locked"; -export { default as IoIosLoopStrong } from "./ios-loop-strong"; -export { default as IoIosLoop } from "./ios-loop"; -export { default as IoIosMedicalOutline } from "./ios-medical-outline"; -export { default as IoIosMedical } from "./ios-medical"; -export { default as IoIosMedkitOutline } from "./ios-medkit-outline"; -export { default as IoIosMedkit } from "./ios-medkit"; -export { default as IoIosMicOff } from "./ios-mic-off"; -export { default as IoIosMicOutline } from "./ios-mic-outline"; -export { default as IoIosMic } from "./ios-mic"; -export { default as IoIosMinusEmpty } from "./ios-minus-empty"; -export { default as IoIosMinusOutline } from "./ios-minus-outline"; -export { default as IoIosMinus } from "./ios-minus"; -export { default as IoIosMonitorOutline } from "./ios-monitor-outline"; -export { default as IoIosMonitor } from "./ios-monitor"; -export { default as IoIosMoonOutline } from "./ios-moon-outline"; -export { default as IoIosMoon } from "./ios-moon"; -export { default as IoIosMoreOutline } from "./ios-more-outline"; -export { default as IoIosMore } from "./ios-more"; -export { default as IoIosMusicalNote } from "./ios-musical-note"; -export { default as IoIosMusicalNotes } from "./ios-musical-notes"; -export { default as IoIosNavigateOutline } from "./ios-navigate-outline"; -export { default as IoIosNavigate } from "./ios-navigate"; -export { default as IoIosNutrition } from "./ios-nutrition"; -export { default as IoIosNutritoutline } from "./ios-nutritoutline"; -export { default as IoIosPaperOutline } from "./ios-paper-outline"; -export { default as IoIosPaper } from "./ios-paper"; -export { default as IoIosPaperplaneOutline } from "./ios-paperplane-outline"; -export { default as IoIosPaperplane } from "./ios-paperplane"; -export { default as IoIosPartlysunnyOutline } from "./ios-partlysunny-outline"; -export { default as IoIosPartlysunny } from "./ios-partlysunny"; -export { default as IoIosPauseOutline } from "./ios-pause-outline"; -export { default as IoIosPause } from "./ios-pause"; -export { default as IoIosPawOutline } from "./ios-paw-outline"; -export { default as IoIosPaw } from "./ios-paw"; -export { default as IoIosPeopleOutline } from "./ios-people-outline"; -export { default as IoIosPeople } from "./ios-people"; -export { default as IoIosPersonOutline } from "./ios-person-outline"; -export { default as IoIosPerson } from "./ios-person"; -export { default as IoIosPersonaddOutline } from "./ios-personadd-outline"; -export { default as IoIosPersonadd } from "./ios-personadd"; -export { default as IoIosPhotosOutline } from "./ios-photos-outline"; -export { default as IoIosPhotos } from "./ios-photos"; -export { default as IoIosPieOutline } from "./ios-pie-outline"; -export { default as IoIosPie } from "./ios-pie"; -export { default as IoIosPintOutline } from "./ios-pint-outline"; -export { default as IoIosPint } from "./ios-pint"; -export { default as IoIosPlayOutline } from "./ios-play-outline"; -export { default as IoIosPlay } from "./ios-play"; -export { default as IoIosPlusEmpty } from "./ios-plus-empty"; -export { default as IoIosPlusOutline } from "./ios-plus-outline"; -export { default as IoIosPlus } from "./ios-plus"; -export { default as IoIosPricetagOutline } from "./ios-pricetag-outline"; -export { default as IoIosPricetag } from "./ios-pricetag"; -export { default as IoIosPricetagsOutline } from "./ios-pricetags-outline"; -export { default as IoIosPricetags } from "./ios-pricetags"; -export { default as IoIosPrinterOutline } from "./ios-printer-outline"; -export { default as IoIosPrinter } from "./ios-printer"; -export { default as IoIosPulseStrong } from "./ios-pulse-strong"; -export { default as IoIosPulse } from "./ios-pulse"; -export { default as IoIosRainyOutline } from "./ios-rainy-outline"; -export { default as IoIosRainy } from "./ios-rainy"; -export { default as IoIosRecordingOutline } from "./ios-recording-outline"; -export { default as IoIosRecording } from "./ios-recording"; -export { default as IoIosRedoOutline } from "./ios-redo-outline"; -export { default as IoIosRedo } from "./ios-redo"; -export { default as IoIosRefreshEmpty } from "./ios-refresh-empty"; -export { default as IoIosRefreshOutline } from "./ios-refresh-outline"; -export { default as IoIosRefresh } from "./ios-refresh"; -export { default as IoIosReload } from "./ios-reload"; -export { default as IoIosReverseCameraOutline } from "./ios-reverse-camera-outline"; -export { default as IoIosReverseCamera } from "./ios-reverse-camera"; -export { default as IoIosRewindOutline } from "./ios-rewind-outline"; -export { default as IoIosRewind } from "./ios-rewind"; -export { default as IoIosRoseOutline } from "./ios-rose-outline"; -export { default as IoIosRose } from "./ios-rose"; -export { default as IoIosSearchStrong } from "./ios-search-strong"; -export { default as IoIosSearch } from "./ios-search"; -export { default as IoIosSettingsStrong } from "./ios-settings-strong"; -export { default as IoIosSettings } from "./ios-settings"; -export { default as IoIosShuffleStrong } from "./ios-shuffle-strong"; -export { default as IoIosShuffle } from "./ios-shuffle"; -export { default as IoIosSkipbackwardOutline } from "./ios-skipbackward-outline"; -export { default as IoIosSkipbackward } from "./ios-skipbackward"; -export { default as IoIosSkipforwardOutline } from "./ios-skipforward-outline"; -export { default as IoIosSkipforward } from "./ios-skipforward"; -export { default as IoIosSnowy } from "./ios-snowy"; -export { default as IoIosSpeedometerOutline } from "./ios-speedometer-outline"; -export { default as IoIosSpeedometer } from "./ios-speedometer"; -export { default as IoIosStarHalf } from "./ios-star-half"; -export { default as IoIosStarOutline } from "./ios-star-outline"; -export { default as IoIosStar } from "./ios-star"; -export { default as IoIosStopwatchOutline } from "./ios-stopwatch-outline"; -export { default as IoIosStopwatch } from "./ios-stopwatch"; -export { default as IoIosSunnyOutline } from "./ios-sunny-outline"; -export { default as IoIosSunny } from "./ios-sunny"; -export { default as IoIosTelephoneOutline } from "./ios-telephone-outline"; -export { default as IoIosTelephone } from "./ios-telephone"; -export { default as IoIosTennisballOutline } from "./ios-tennisball-outline"; -export { default as IoIosTennisball } from "./ios-tennisball"; -export { default as IoIosThunderstormOutline } from "./ios-thunderstorm-outline"; -export { default as IoIosThunderstorm } from "./ios-thunderstorm"; -export { default as IoIosTimeOutline } from "./ios-time-outline"; -export { default as IoIosTime } from "./ios-time"; -export { default as IoIosTimerOutline } from "./ios-timer-outline"; -export { default as IoIosTimer } from "./ios-timer"; -export { default as IoIosToggleOutline } from "./ios-toggle-outline"; -export { default as IoIosToggle } from "./ios-toggle"; -export { default as IoIosTrashOutline } from "./ios-trash-outline"; -export { default as IoIosTrash } from "./ios-trash"; -export { default as IoIosUndoOutline } from "./ios-undo-outline"; -export { default as IoIosUndo } from "./ios-undo"; -export { default as IoIosUnlockedOutline } from "./ios-unlocked-outline"; -export { default as IoIosUnlocked } from "./ios-unlocked"; -export { default as IoIosUploadOutline } from "./ios-upload-outline"; -export { default as IoIosUpload } from "./ios-upload"; -export { default as IoIosVideocamOutline } from "./ios-videocam-outline"; -export { default as IoIosVideocam } from "./ios-videocam"; -export { default as IoIosVolumeHigh } from "./ios-volume-high"; -export { default as IoIosVolumeLow } from "./ios-volume-low"; -export { default as IoIosWineglassOutline } from "./ios-wineglass-outline"; -export { default as IoIosWineglass } from "./ios-wineglass"; -export { default as IoIosWorldOutline } from "./ios-world-outline"; -export { default as IoIosWorld } from "./ios-world"; -export { default as IoIpad } from "./ipad"; -export { default as IoIphone } from "./iphone"; -export { default as IoIpod } from "./ipod"; -export { default as IoJet } from "./jet"; -export { default as IoKey } from "./key"; -export { default as IoKnife } from "./knife"; -export { default as IoLaptop } from "./laptop"; -export { default as IoLeaf } from "./leaf"; -export { default as IoLevels } from "./levels"; -export { default as IoLightbulb } from "./lightbulb"; -export { default as IoLink } from "./link"; -export { default as IoLoadA } from "./load-a"; -export { default as IoLoadB } from "./load-b"; -export { default as IoLoadC } from "./load-c"; -export { default as IoLoadD } from "./load-d"; -export { default as IoLocation } from "./location"; -export { default as IoLockCombination } from "./lock-combination"; -export { default as IoLocked } from "./locked"; -export { default as IoLogIn } from "./log-in"; -export { default as IoLogOut } from "./log-out"; -export { default as IoLoop } from "./loop"; -export { default as IoMagnet } from "./magnet"; -export { default as IoMale } from "./male"; -export { default as IoMan } from "./man"; -export { default as IoMap } from "./map"; -export { default as IoMedkit } from "./medkit"; -export { default as IoMerge } from "./merge"; -export { default as IoMicA } from "./mic-a"; -export { default as IoMicB } from "./mic-b"; -export { default as IoMicC } from "./mic-c"; -export { default as IoMinusCircled } from "./minus-circled"; -export { default as IoMinusRound } from "./minus-round"; -export { default as IoMinus } from "./minus"; -export { default as IoModelS } from "./model-s"; -export { default as IoMonitor } from "./monitor"; -export { default as IoMore } from "./more"; -export { default as IoMouse } from "./mouse"; -export { default as IoMusicNote } from "./music-note"; -export { default as IoNaviconRound } from "./navicon-round"; -export { default as IoNavicon } from "./navicon"; -export { default as IoNavigate } from "./navigate"; -export { default as IoNetwork } from "./network"; -export { default as IoNoSmoking } from "./no-smoking"; -export { default as IoNuclear } from "./nuclear"; -export { default as IoOutlet } from "./outlet"; -export { default as IoPaintbrush } from "./paintbrush"; -export { default as IoPaintbucket } from "./paintbucket"; -export { default as IoPaperAirplane } from "./paper-airplane"; -export { default as IoPaperclip } from "./paperclip"; -export { default as IoPause } from "./pause"; -export { default as IoPersonAdd } from "./person-add"; -export { default as IoPersonStalker } from "./person-stalker"; -export { default as IoPerson } from "./person"; -export { default as IoPieGraph } from "./pie-graph"; -export { default as IoPin } from "./pin"; -export { default as IoPinpoint } from "./pinpoint"; -export { default as IoPizza } from "./pizza"; -export { default as IoPlane } from "./plane"; -export { default as IoPlanet } from "./planet"; -export { default as IoPlay } from "./play"; -export { default as IoPlaystation } from "./playstation"; -export { default as IoPlusCircled } from "./plus-circled"; -export { default as IoPlusRound } from "./plus-round"; -export { default as IoPlus } from "./plus"; -export { default as IoPodium } from "./podium"; -export { default as IoPound } from "./pound"; -export { default as IoPower } from "./power"; -export { default as IoPricetag } from "./pricetag"; -export { default as IoPricetags } from "./pricetags"; -export { default as IoPrinter } from "./printer"; -export { default as IoPullRequest } from "./pull-request"; -export { default as IoQrScanner } from "./qr-scanner"; -export { default as IoQuote } from "./quote"; -export { default as IoRadioWaves } from "./radio-waves"; -export { default as IoRecord } from "./record"; -export { default as IoRefresh } from "./refresh"; -export { default as IoReplyAll } from "./reply-all"; -export { default as IoReply } from "./reply"; -export { default as IoRibbonA } from "./ribbon-a"; -export { default as IoRibbonB } from "./ribbon-b"; -export { default as IoSadOutline } from "./sad-outline"; -export { default as IoSad } from "./sad"; -export { default as IoScissors } from "./scissors"; -export { default as IoSearch } from "./search"; -export { default as IoSettings } from "./settings"; -export { default as IoShare } from "./share"; -export { default as IoShuffle } from "./shuffle"; -export { default as IoSkipBackward } from "./skip-backward"; -export { default as IoSkipForward } from "./skip-forward"; -export { default as IoSocialAndroidOutline } from "./social-android-outline"; -export { default as IoSocialAndroid } from "./social-android"; -export { default as IoSocialAngularOutline } from "./social-angular-outline"; -export { default as IoSocialAngular } from "./social-angular"; -export { default as IoSocialAppleOutline } from "./social-apple-outline"; -export { default as IoSocialApple } from "./social-apple"; -export { default as IoSocialBitcoinOutline } from "./social-bitcoin-outline"; -export { default as IoSocialBitcoin } from "./social-bitcoin"; -export { default as IoSocialBufferOutline } from "./social-buffer-outline"; -export { default as IoSocialBuffer } from "./social-buffer"; -export { default as IoSocialChromeOutline } from "./social-chrome-outline"; -export { default as IoSocialChrome } from "./social-chrome"; -export { default as IoSocialCodepenOutline } from "./social-codepen-outline"; -export { default as IoSocialCodepen } from "./social-codepen"; -export { default as IoSocialCss3Outline } from "./social-css3-outline"; -export { default as IoSocialCss3 } from "./social-css3"; -export { default as IoSocialDesignernewsOutline } from "./social-designernews-outline"; -export { default as IoSocialDesignernews } from "./social-designernews"; -export { default as IoSocialDribbbleOutline } from "./social-dribbble-outline"; -export { default as IoSocialDribbble } from "./social-dribbble"; -export { default as IoSocialDropboxOutline } from "./social-dropbox-outline"; -export { default as IoSocialDropbox } from "./social-dropbox"; -export { default as IoSocialEuroOutline } from "./social-euro-outline"; -export { default as IoSocialEuro } from "./social-euro"; -export { default as IoSocialFacebookOutline } from "./social-facebook-outline"; -export { default as IoSocialFacebook } from "./social-facebook"; -export { default as IoSocialFoursquareOutline } from "./social-foursquare-outline"; -export { default as IoSocialFoursquare } from "./social-foursquare"; -export { default as IoSocialFreebsdDevil } from "./social-freebsd-devil"; -export { default as IoSocialGithubOutline } from "./social-github-outline"; -export { default as IoSocialGithub } from "./social-github"; -export { default as IoSocialGoogleOutline } from "./social-google-outline"; -export { default as IoSocialGoogle } from "./social-google"; -export { default as IoSocialGoogleplusOutline } from "./social-googleplus-outline"; -export { default as IoSocialGoogleplus } from "./social-googleplus"; -export { default as IoSocialHackernewsOutline } from "./social-hackernews-outline"; -export { default as IoSocialHackernews } from "./social-hackernews"; -export { default as IoSocialHtml5Outline } from "./social-html5-outline"; -export { default as IoSocialHtml5 } from "./social-html5"; -export { default as IoSocialInstagramOutline } from "./social-instagram-outline"; -export { default as IoSocialInstagram } from "./social-instagram"; -export { default as IoSocialJavascriptOutline } from "./social-javascript-outline"; -export { default as IoSocialJavascript } from "./social-javascript"; -export { default as IoSocialLinkedinOutline } from "./social-linkedin-outline"; -export { default as IoSocialLinkedin } from "./social-linkedin"; -export { default as IoSocialMarkdown } from "./social-markdown"; -export { default as IoSocialNodejs } from "./social-nodejs"; -export { default as IoSocialOctocat } from "./social-octocat"; -export { default as IoSocialPinterestOutline } from "./social-pinterest-outline"; -export { default as IoSocialPinterest } from "./social-pinterest"; -export { default as IoSocialPython } from "./social-python"; -export { default as IoSocialRedditOutline } from "./social-reddit-outline"; -export { default as IoSocialReddit } from "./social-reddit"; -export { default as IoSocialRssOutline } from "./social-rss-outline"; -export { default as IoSocialRss } from "./social-rss"; -export { default as IoSocialSass } from "./social-sass"; -export { default as IoSocialSkypeOutline } from "./social-skype-outline"; -export { default as IoSocialSkype } from "./social-skype"; -export { default as IoSocialSnapchatOutline } from "./social-snapchat-outline"; -export { default as IoSocialSnapchat } from "./social-snapchat"; -export { default as IoSocialTumblrOutline } from "./social-tumblr-outline"; -export { default as IoSocialTumblr } from "./social-tumblr"; -export { default as IoSocialTux } from "./social-tux"; -export { default as IoSocialTwitchOutline } from "./social-twitch-outline"; -export { default as IoSocialTwitch } from "./social-twitch"; -export { default as IoSocialTwitterOutline } from "./social-twitter-outline"; -export { default as IoSocialTwitter } from "./social-twitter"; -export { default as IoSocialUsdOutline } from "./social-usd-outline"; -export { default as IoSocialUsd } from "./social-usd"; -export { default as IoSocialVimeoOutline } from "./social-vimeo-outline"; -export { default as IoSocialVimeo } from "./social-vimeo"; -export { default as IoSocialWhatsappOutline } from "./social-whatsapp-outline"; -export { default as IoSocialWhatsapp } from "./social-whatsapp"; -export { default as IoSocialWindowsOutline } from "./social-windows-outline"; -export { default as IoSocialWindows } from "./social-windows"; -export { default as IoSocialWordpressOutline } from "./social-wordpress-outline"; -export { default as IoSocialWordpress } from "./social-wordpress"; -export { default as IoSocialYahooOutline } from "./social-yahoo-outline"; -export { default as IoSocialYahoo } from "./social-yahoo"; -export { default as IoSocialYenOutline } from "./social-yen-outline"; -export { default as IoSocialYen } from "./social-yen"; -export { default as IoSocialYoutubeOutline } from "./social-youtube-outline"; -export { default as IoSocialYoutube } from "./social-youtube"; -export { default as IoSoupCanOutline } from "./soup-can-outline"; -export { default as IoSoupCan } from "./soup-can"; -export { default as IoSpeakerphone } from "./speakerphone"; -export { default as IoSpeedometer } from "./speedometer"; -export { default as IoSpoon } from "./spoon"; -export { default as IoStar } from "./star"; -export { default as IoStatsBars } from "./stats-bars"; -export { default as IoSteam } from "./steam"; -export { default as IoStop } from "./stop"; -export { default as IoThermometer } from "./thermometer"; -export { default as IoThumbsdown } from "./thumbsdown"; -export { default as IoThumbsup } from "./thumbsup"; -export { default as IoToggleFilled } from "./toggle-filled"; -export { default as IoToggle } from "./toggle"; -export { default as IoTransgender } from "./transgender"; -export { default as IoTrashA } from "./trash-a"; -export { default as IoTrashB } from "./trash-b"; -export { default as IoTrophy } from "./trophy"; -export { default as IoTshirtOutline } from "./tshirt-outline"; -export { default as IoTshirt } from "./tshirt"; -export { default as IoUmbrella } from "./umbrella"; -export { default as IoUniversity } from "./university"; -export { default as IoUnlocked } from "./unlocked"; -export { default as IoUpload } from "./upload"; -export { default as IoUsb } from "./usb"; -export { default as IoVideocamera } from "./videocamera"; -export { default as IoVolumeHigh } from "./volume-high"; -export { default as IoVolumeLow } from "./volume-low"; -export { default as IoVolumeMedium } from "./volume-medium"; -export { default as IoVolumeMute } from "./volume-mute"; -export { default as IoWand } from "./wand"; -export { default as IoWaterdrop } from "./waterdrop"; -export { default as IoWifi } from "./wifi"; -export { default as IoWineglass } from "./wineglass"; -export { default as IoWoman } from "./woman"; -export { default as IoWrench } from "./wrench"; -export { default as IoXbox } from "./xbox"; +export { default as IoAlertCircled } from "../../io/alert-circled"; +export { default as IoAlert } from "../../io/alert"; +export { default as IoAndroidAddCircle } from "../../io/android-add-circle"; +export { default as IoAndroidAdd } from "../../io/android-add"; +export { default as IoAndroidAlarmClock } from "../../io/android-alarm-clock"; +export { default as IoAndroidAlert } from "../../io/android-alert"; +export { default as IoAndroidApps } from "../../io/android-apps"; +export { default as IoAndroidArchive } from "../../io/android-archive"; +export { default as IoAndroidArrowBack } from "../../io/android-arrow-back"; +export { default as IoAndroidArrowDown } from "../../io/android-arrow-down"; +export { default as IoAndroidArrowDropdownCircle } from "../../io/android-arrow-dropdown-circle"; +export { default as IoAndroidArrowDropdown } from "../../io/android-arrow-dropdown"; +export { default as IoAndroidArrowDropleftCircle } from "../../io/android-arrow-dropleft-circle"; +export { default as IoAndroidArrowDropleft } from "../../io/android-arrow-dropleft"; +export { default as IoAndroidArrowDroprightCircle } from "../../io/android-arrow-dropright-circle"; +export { default as IoAndroidArrowDropright } from "../../io/android-arrow-dropright"; +export { default as IoAndroidArrowDropupCircle } from "../../io/android-arrow-dropup-circle"; +export { default as IoAndroidArrowDropup } from "../../io/android-arrow-dropup"; +export { default as IoAndroidArrowForward } from "../../io/android-arrow-forward"; +export { default as IoAndroidArrowUp } from "../../io/android-arrow-up"; +export { default as IoAndroidAttach } from "../../io/android-attach"; +export { default as IoAndroidBar } from "../../io/android-bar"; +export { default as IoAndroidBicycle } from "../../io/android-bicycle"; +export { default as IoAndroidBoat } from "../../io/android-boat"; +export { default as IoAndroidBookmark } from "../../io/android-bookmark"; +export { default as IoAndroidBulb } from "../../io/android-bulb"; +export { default as IoAndroidBus } from "../../io/android-bus"; +export { default as IoAndroidCalendar } from "../../io/android-calendar"; +export { default as IoAndroidCall } from "../../io/android-call"; +export { default as IoAndroidCamera } from "../../io/android-camera"; +export { default as IoAndroidCancel } from "../../io/android-cancel"; +export { default as IoAndroidCar } from "../../io/android-car"; +export { default as IoAndroidCart } from "../../io/android-cart"; +export { default as IoAndroidChat } from "../../io/android-chat"; +export { default as IoAndroidCheckboxBlank } from "../../io/android-checkbox-blank"; +export { default as IoAndroidCheckboxOutlineBlank } from "../../io/android-checkbox-outline-blank"; +export { default as IoAndroidCheckboxOutline } from "../../io/android-checkbox-outline"; +export { default as IoAndroidCheckbox } from "../../io/android-checkbox"; +export { default as IoAndroidCheckmarkCircle } from "../../io/android-checkmark-circle"; +export { default as IoAndroidClipboard } from "../../io/android-clipboard"; +export { default as IoAndroidClose } from "../../io/android-close"; +export { default as IoAndroidCloudCircle } from "../../io/android-cloud-circle"; +export { default as IoAndroidCloudDone } from "../../io/android-cloud-done"; +export { default as IoAndroidCloudOutline } from "../../io/android-cloud-outline"; +export { default as IoAndroidCloud } from "../../io/android-cloud"; +export { default as IoAndroidColorPalette } from "../../io/android-color-palette"; +export { default as IoAndroidCompass } from "../../io/android-compass"; +export { default as IoAndroidContact } from "../../io/android-contact"; +export { default as IoAndroidContacts } from "../../io/android-contacts"; +export { default as IoAndroidContract } from "../../io/android-contract"; +export { default as IoAndroidCreate } from "../../io/android-create"; +export { default as IoAndroidDelete } from "../../io/android-delete"; +export { default as IoAndroidDesktop } from "../../io/android-desktop"; +export { default as IoAndroidDocument } from "../../io/android-document"; +export { default as IoAndroidDoneAll } from "../../io/android-done-all"; +export { default as IoAndroidDone } from "../../io/android-done"; +export { default as IoAndroidDownload } from "../../io/android-download"; +export { default as IoAndroidDrafts } from "../../io/android-drafts"; +export { default as IoAndroidExit } from "../../io/android-exit"; +export { default as IoAndroidExpand } from "../../io/android-expand"; +export { default as IoAndroidFavoriteOutline } from "../../io/android-favorite-outline"; +export { default as IoAndroidFavorite } from "../../io/android-favorite"; +export { default as IoAndroidFilm } from "../../io/android-film"; +export { default as IoAndroidFolderOpen } from "../../io/android-folder-open"; +export { default as IoAndroidFolder } from "../../io/android-folder"; +export { default as IoAndroidFunnel } from "../../io/android-funnel"; +export { default as IoAndroidGlobe } from "../../io/android-globe"; +export { default as IoAndroidHand } from "../../io/android-hand"; +export { default as IoAndroidHangout } from "../../io/android-hangout"; +export { default as IoAndroidHappy } from "../../io/android-happy"; +export { default as IoAndroidHome } from "../../io/android-home"; +export { default as IoAndroidImage } from "../../io/android-image"; +export { default as IoAndroidLaptop } from "../../io/android-laptop"; +export { default as IoAndroidList } from "../../io/android-list"; +export { default as IoAndroidLocate } from "../../io/android-locate"; +export { default as IoAndroidLock } from "../../io/android-lock"; +export { default as IoAndroidMail } from "../../io/android-mail"; +export { default as IoAndroidMap } from "../../io/android-map"; +export { default as IoAndroidMenu } from "../../io/android-menu"; +export { default as IoAndroidMicrophoneOff } from "../../io/android-microphone-off"; +export { default as IoAndroidMicrophone } from "../../io/android-microphone"; +export { default as IoAndroidMoreHorizontal } from "../../io/android-more-horizontal"; +export { default as IoAndroidMoreVertical } from "../../io/android-more-vertical"; +export { default as IoAndroidNavigate } from "../../io/android-navigate"; +export { default as IoAndroidNotificationsNone } from "../../io/android-notifications-none"; +export { default as IoAndroidNotificationsOff } from "../../io/android-notifications-off"; +export { default as IoAndroidNotifications } from "../../io/android-notifications"; +export { default as IoAndroidOpen } from "../../io/android-open"; +export { default as IoAndroidOptions } from "../../io/android-options"; +export { default as IoAndroidPeople } from "../../io/android-people"; +export { default as IoAndroidPersonAdd } from "../../io/android-person-add"; +export { default as IoAndroidPerson } from "../../io/android-person"; +export { default as IoAndroidPhoneLandscape } from "../../io/android-phone-landscape"; +export { default as IoAndroidPhonePortrait } from "../../io/android-phone-portrait"; +export { default as IoAndroidPin } from "../../io/android-pin"; +export { default as IoAndroidPlane } from "../../io/android-plane"; +export { default as IoAndroidPlaystore } from "../../io/android-playstore"; +export { default as IoAndroidPrint } from "../../io/android-print"; +export { default as IoAndroidRadioButtonOff } from "../../io/android-radio-button-off"; +export { default as IoAndroidRadioButtonOn } from "../../io/android-radio-button-on"; +export { default as IoAndroidRefresh } from "../../io/android-refresh"; +export { default as IoAndroidRemoveCircle } from "../../io/android-remove-circle"; +export { default as IoAndroidRemove } from "../../io/android-remove"; +export { default as IoAndroidRestaurant } from "../../io/android-restaurant"; +export { default as IoAndroidSad } from "../../io/android-sad"; +export { default as IoAndroidSearch } from "../../io/android-search"; +export { default as IoAndroidSend } from "../../io/android-send"; +export { default as IoAndroidSettings } from "../../io/android-settings"; +export { default as IoAndroidShareAlt } from "../../io/android-share-alt"; +export { default as IoAndroidShare } from "../../io/android-share"; +export { default as IoAndroidStarHalf } from "../../io/android-star-half"; +export { default as IoAndroidStarOutline } from "../../io/android-star-outline"; +export { default as IoAndroidStar } from "../../io/android-star"; +export { default as IoAndroidStopwatch } from "../../io/android-stopwatch"; +export { default as IoAndroidSubway } from "../../io/android-subway"; +export { default as IoAndroidSunny } from "../../io/android-sunny"; +export { default as IoAndroidSync } from "../../io/android-sync"; +export { default as IoAndroidTextsms } from "../../io/android-textsms"; +export { default as IoAndroidTime } from "../../io/android-time"; +export { default as IoAndroidTrain } from "../../io/android-train"; +export { default as IoAndroidUnlock } from "../../io/android-unlock"; +export { default as IoAndroidUpload } from "../../io/android-upload"; +export { default as IoAndroidVolumeDown } from "../../io/android-volume-down"; +export { default as IoAndroidVolumeMute } from "../../io/android-volume-mute"; +export { default as IoAndroidVolumeOff } from "../../io/android-volume-off"; +export { default as IoAndroidVolumeUp } from "../../io/android-volume-up"; +export { default as IoAndroidWalk } from "../../io/android-walk"; +export { default as IoAndroidWarning } from "../../io/android-warning"; +export { default as IoAndroidWatch } from "../../io/android-watch"; +export { default as IoAndroidWifi } from "../../io/android-wifi"; +export { default as IoAperture } from "../../io/aperture"; +export { default as IoArchive } from "../../io/archive"; +export { default as IoArrowDownA } from "../../io/arrow-down-a"; +export { default as IoArrowDownB } from "../../io/arrow-down-b"; +export { default as IoArrowDownC } from "../../io/arrow-down-c"; +export { default as IoArrowExpand } from "../../io/arrow-expand"; +export { default as IoArrowGraphDownLeft } from "../../io/arrow-graph-down-left"; +export { default as IoArrowGraphDownRight } from "../../io/arrow-graph-down-right"; +export { default as IoArrowGraphUpLeft } from "../../io/arrow-graph-up-left"; +export { default as IoArrowGraphUpRight } from "../../io/arrow-graph-up-right"; +export { default as IoArrowLeftA } from "../../io/arrow-left-a"; +export { default as IoArrowLeftB } from "../../io/arrow-left-b"; +export { default as IoArrowLeftC } from "../../io/arrow-left-c"; +export { default as IoArrowMove } from "../../io/arrow-move"; +export { default as IoArrowResize } from "../../io/arrow-resize"; +export { default as IoArrowReturnLeft } from "../../io/arrow-return-left"; +export { default as IoArrowReturnRight } from "../../io/arrow-return-right"; +export { default as IoArrowRightA } from "../../io/arrow-right-a"; +export { default as IoArrowRightB } from "../../io/arrow-right-b"; +export { default as IoArrowRightC } from "../../io/arrow-right-c"; +export { default as IoArrowShrink } from "../../io/arrow-shrink"; +export { default as IoArrowSwap } from "../../io/arrow-swap"; +export { default as IoArrowUpA } from "../../io/arrow-up-a"; +export { default as IoArrowUpB } from "../../io/arrow-up-b"; +export { default as IoArrowUpC } from "../../io/arrow-up-c"; +export { default as IoAsterisk } from "../../io/asterisk"; +export { default as IoAt } from "../../io/at"; +export { default as IoBackspaceOutline } from "../../io/backspace-outline"; +export { default as IoBackspace } from "../../io/backspace"; +export { default as IoBag } from "../../io/bag"; +export { default as IoBatteryCharging } from "../../io/battery-charging"; +export { default as IoBatteryEmpty } from "../../io/battery-empty"; +export { default as IoBatteryFull } from "../../io/battery-full"; +export { default as IoBatteryHalf } from "../../io/battery-half"; +export { default as IoBatteryLow } from "../../io/battery-low"; +export { default as IoBeaker } from "../../io/beaker"; +export { default as IoBeer } from "../../io/beer"; +export { default as IoBluetooth } from "../../io/bluetooth"; +export { default as IoBonfire } from "../../io/bonfire"; +export { default as IoBookmark } from "../../io/bookmark"; +export { default as IoBowtie } from "../../io/bowtie"; +export { default as IoBriefcase } from "../../io/briefcase"; +export { default as IoBug } from "../../io/bug"; +export { default as IoCalculator } from "../../io/calculator"; +export { default as IoCalendar } from "../../io/calendar"; +export { default as IoCamera } from "../../io/camera"; +export { default as IoCard } from "../../io/card"; +export { default as IoCash } from "../../io/cash"; +export { default as IoChatboxWorking } from "../../io/chatbox-working"; +export { default as IoChatbox } from "../../io/chatbox"; +export { default as IoChatboxes } from "../../io/chatboxes"; +export { default as IoChatbubbleWorking } from "../../io/chatbubble-working"; +export { default as IoChatbubble } from "../../io/chatbubble"; +export { default as IoChatbubbles } from "../../io/chatbubbles"; +export { default as IoCheckmarkCircled } from "../../io/checkmark-circled"; +export { default as IoCheckmarkRound } from "../../io/checkmark-round"; +export { default as IoCheckmark } from "../../io/checkmark"; +export { default as IoChevronDown } from "../../io/chevron-down"; +export { default as IoChevronLeft } from "../../io/chevron-left"; +export { default as IoChevronRight } from "../../io/chevron-right"; +export { default as IoChevronUp } from "../../io/chevron-up"; +export { default as IoClipboard } from "../../io/clipboard"; +export { default as IoClock } from "../../io/clock"; +export { default as IoCloseCircled } from "../../io/close-circled"; +export { default as IoCloseRound } from "../../io/close-round"; +export { default as IoClose } from "../../io/close"; +export { default as IoClosedCaptioning } from "../../io/closed-captioning"; +export { default as IoCloud } from "../../io/cloud"; +export { default as IoCodeDownload } from "../../io/code-download"; +export { default as IoCodeWorking } from "../../io/code-working"; +export { default as IoCode } from "../../io/code"; +export { default as IoCoffee } from "../../io/coffee"; +export { default as IoCompass } from "../../io/compass"; +export { default as IoCompose } from "../../io/compose"; +export { default as IoConnectbars } from "../../io/connectbars"; +export { default as IoContrast } from "../../io/contrast"; +export { default as IoCrop } from "../../io/crop"; +export { default as IoCube } from "../../io/cube"; +export { default as IoDisc } from "../../io/disc"; +export { default as IoDocumentText } from "../../io/document-text"; +export { default as IoDocument } from "../../io/document"; +export { default as IoDrag } from "../../io/drag"; +export { default as IoEarth } from "../../io/earth"; +export { default as IoEasel } from "../../io/easel"; +export { default as IoEdit } from "../../io/edit"; +export { default as IoEgg } from "../../io/egg"; +export { default as IoEject } from "../../io/eject"; +export { default as IoEmailUnread } from "../../io/email-unread"; +export { default as IoEmail } from "../../io/email"; +export { default as IoErlenmeyerFlaskBubbles } from "../../io/erlenmeyer-flask-bubbles"; +export { default as IoErlenmeyerFlask } from "../../io/erlenmeyer-flask"; +export { default as IoEyeDisabled } from "../../io/eye-disabled"; +export { default as IoEye } from "../../io/eye"; +export { default as IoFemale } from "../../io/female"; +export { default as IoFiling } from "../../io/filing"; +export { default as IoFilmMarker } from "../../io/film-marker"; +export { default as IoFireball } from "../../io/fireball"; +export { default as IoFlag } from "../../io/flag"; +export { default as IoFlame } from "../../io/flame"; +export { default as IoFlashOff } from "../../io/flash-off"; +export { default as IoFlash } from "../../io/flash"; +export { default as IoFolder } from "../../io/folder"; +export { default as IoForkRepo } from "../../io/fork-repo"; +export { default as IoFork } from "../../io/fork"; +export { default as IoForward } from "../../io/forward"; +export { default as IoFunnel } from "../../io/funnel"; +export { default as IoGearA } from "../../io/gear-a"; +export { default as IoGearB } from "../../io/gear-b"; +export { default as IoGrid } from "../../io/grid"; +export { default as IoHammer } from "../../io/hammer"; +export { default as IoHappyOutline } from "../../io/happy-outline"; +export { default as IoHappy } from "../../io/happy"; +export { default as IoHeadphone } from "../../io/headphone"; +export { default as IoHeartBroken } from "../../io/heart-broken"; +export { default as IoHeart } from "../../io/heart"; +export { default as IoHelpBuoy } from "../../io/help-buoy"; +export { default as IoHelpCircled } from "../../io/help-circled"; +export { default as IoHelp } from "../../io/help"; +export { default as IoHome } from "../../io/home"; +export { default as IoIcecream } from "../../io/icecream"; +export { default as IoImage } from "../../io/image"; +export { default as IoImages } from "../../io/images"; +export { default as IoInformatcircled } from "../../io/informatcircled"; +export { default as IoInformation } from "../../io/information"; +export { default as IoIonic } from "../../io/ionic"; +export { default as IoIosAlarmOutline } from "../../io/ios-alarm-outline"; +export { default as IoIosAlarm } from "../../io/ios-alarm"; +export { default as IoIosAlbumsOutline } from "../../io/ios-albums-outline"; +export { default as IoIosAlbums } from "../../io/ios-albums"; +export { default as IoIosAmericanfootballOutline } from "../../io/ios-americanfootball-outline"; +export { default as IoIosAmericanfootball } from "../../io/ios-americanfootball"; +export { default as IoIosAnalyticsOutline } from "../../io/ios-analytics-outline"; +export { default as IoIosAnalytics } from "../../io/ios-analytics"; +export { default as IoIosArrowBack } from "../../io/ios-arrow-back"; +export { default as IoIosArrowDown } from "../../io/ios-arrow-down"; +export { default as IoIosArrowForward } from "../../io/ios-arrow-forward"; +export { default as IoIosArrowLeft } from "../../io/ios-arrow-left"; +export { default as IoIosArrowRight } from "../../io/ios-arrow-right"; +export { default as IoIosArrowThinDown } from "../../io/ios-arrow-thin-down"; +export { default as IoIosArrowThinLeft } from "../../io/ios-arrow-thin-left"; +export { default as IoIosArrowThinRight } from "../../io/ios-arrow-thin-right"; +export { default as IoIosArrowThinUp } from "../../io/ios-arrow-thin-up"; +export { default as IoIosArrowUp } from "../../io/ios-arrow-up"; +export { default as IoIosAtOutline } from "../../io/ios-at-outline"; +export { default as IoIosAt } from "../../io/ios-at"; +export { default as IoIosBarcodeOutline } from "../../io/ios-barcode-outline"; +export { default as IoIosBarcode } from "../../io/ios-barcode"; +export { default as IoIosBaseballOutline } from "../../io/ios-baseball-outline"; +export { default as IoIosBaseball } from "../../io/ios-baseball"; +export { default as IoIosBasketballOutline } from "../../io/ios-basketball-outline"; +export { default as IoIosBasketball } from "../../io/ios-basketball"; +export { default as IoIosBellOutline } from "../../io/ios-bell-outline"; +export { default as IoIosBell } from "../../io/ios-bell"; +export { default as IoIosBodyOutline } from "../../io/ios-body-outline"; +export { default as IoIosBody } from "../../io/ios-body"; +export { default as IoIosBoltOutline } from "../../io/ios-bolt-outline"; +export { default as IoIosBolt } from "../../io/ios-bolt"; +export { default as IoIosBookOutline } from "../../io/ios-book-outline"; +export { default as IoIosBook } from "../../io/ios-book"; +export { default as IoIosBookmarksOutline } from "../../io/ios-bookmarks-outline"; +export { default as IoIosBookmarks } from "../../io/ios-bookmarks"; +export { default as IoIosBoxOutline } from "../../io/ios-box-outline"; +export { default as IoIosBox } from "../../io/ios-box"; +export { default as IoIosBriefcaseOutline } from "../../io/ios-briefcase-outline"; +export { default as IoIosBriefcase } from "../../io/ios-briefcase"; +export { default as IoIosBrowsersOutline } from "../../io/ios-browsers-outline"; +export { default as IoIosBrowsers } from "../../io/ios-browsers"; +export { default as IoIosCalculatorOutline } from "../../io/ios-calculator-outline"; +export { default as IoIosCalculator } from "../../io/ios-calculator"; +export { default as IoIosCalendarOutline } from "../../io/ios-calendar-outline"; +export { default as IoIosCalendar } from "../../io/ios-calendar"; +export { default as IoIosCameraOutline } from "../../io/ios-camera-outline"; +export { default as IoIosCamera } from "../../io/ios-camera"; +export { default as IoIosCartOutline } from "../../io/ios-cart-outline"; +export { default as IoIosCart } from "../../io/ios-cart"; +export { default as IoIosChatboxesOutline } from "../../io/ios-chatboxes-outline"; +export { default as IoIosChatboxes } from "../../io/ios-chatboxes"; +export { default as IoIosChatbubbleOutline } from "../../io/ios-chatbubble-outline"; +export { default as IoIosChatbubble } from "../../io/ios-chatbubble"; +export { default as IoIosCheckmarkEmpty } from "../../io/ios-checkmark-empty"; +export { default as IoIosCheckmarkOutline } from "../../io/ios-checkmark-outline"; +export { default as IoIosCheckmark } from "../../io/ios-checkmark"; +export { default as IoIosCircleFilled } from "../../io/ios-circle-filled"; +export { default as IoIosCircleOutline } from "../../io/ios-circle-outline"; +export { default as IoIosClockOutline } from "../../io/ios-clock-outline"; +export { default as IoIosClock } from "../../io/ios-clock"; +export { default as IoIosCloseEmpty } from "../../io/ios-close-empty"; +export { default as IoIosCloseOutline } from "../../io/ios-close-outline"; +export { default as IoIosClose } from "../../io/ios-close"; +export { default as IoIosCloudDownloadOutline } from "../../io/ios-cloud-download-outline"; +export { default as IoIosCloudDownload } from "../../io/ios-cloud-download"; +export { default as IoIosCloudOutline } from "../../io/ios-cloud-outline"; +export { default as IoIosCloudUploadOutline } from "../../io/ios-cloud-upload-outline"; +export { default as IoIosCloudUpload } from "../../io/ios-cloud-upload"; +export { default as IoIosCloud } from "../../io/ios-cloud"; +export { default as IoIosCloudyNightOutline } from "../../io/ios-cloudy-night-outline"; +export { default as IoIosCloudyNight } from "../../io/ios-cloudy-night"; +export { default as IoIosCloudyOutline } from "../../io/ios-cloudy-outline"; +export { default as IoIosCloudy } from "../../io/ios-cloudy"; +export { default as IoIosCogOutline } from "../../io/ios-cog-outline"; +export { default as IoIosCog } from "../../io/ios-cog"; +export { default as IoIosColorFilterOutline } from "../../io/ios-color-filter-outline"; +export { default as IoIosColorFilter } from "../../io/ios-color-filter"; +export { default as IoIosColorWandOutline } from "../../io/ios-color-wand-outline"; +export { default as IoIosColorWand } from "../../io/ios-color-wand"; +export { default as IoIosComposeOutline } from "../../io/ios-compose-outline"; +export { default as IoIosCompose } from "../../io/ios-compose"; +export { default as IoIosContactOutline } from "../../io/ios-contact-outline"; +export { default as IoIosContact } from "../../io/ios-contact"; +export { default as IoIosCopyOutline } from "../../io/ios-copy-outline"; +export { default as IoIosCopy } from "../../io/ios-copy"; +export { default as IoIosCropStrong } from "../../io/ios-crop-strong"; +export { default as IoIosCrop } from "../../io/ios-crop"; +export { default as IoIosDownloadOutline } from "../../io/ios-download-outline"; +export { default as IoIosDownload } from "../../io/ios-download"; +export { default as IoIosDrag } from "../../io/ios-drag"; +export { default as IoIosEmailOutline } from "../../io/ios-email-outline"; +export { default as IoIosEmail } from "../../io/ios-email"; +export { default as IoIosEyeOutline } from "../../io/ios-eye-outline"; +export { default as IoIosEye } from "../../io/ios-eye"; +export { default as IoIosFastforwardOutline } from "../../io/ios-fastforward-outline"; +export { default as IoIosFastforward } from "../../io/ios-fastforward"; +export { default as IoIosFilingOutline } from "../../io/ios-filing-outline"; +export { default as IoIosFiling } from "../../io/ios-filing"; +export { default as IoIosFilmOutline } from "../../io/ios-film-outline"; +export { default as IoIosFilm } from "../../io/ios-film"; +export { default as IoIosFlagOutline } from "../../io/ios-flag-outline"; +export { default as IoIosFlag } from "../../io/ios-flag"; +export { default as IoIosFlameOutline } from "../../io/ios-flame-outline"; +export { default as IoIosFlame } from "../../io/ios-flame"; +export { default as IoIosFlaskOutline } from "../../io/ios-flask-outline"; +export { default as IoIosFlask } from "../../io/ios-flask"; +export { default as IoIosFlowerOutline } from "../../io/ios-flower-outline"; +export { default as IoIosFlower } from "../../io/ios-flower"; +export { default as IoIosFolderOutline } from "../../io/ios-folder-outline"; +export { default as IoIosFolder } from "../../io/ios-folder"; +export { default as IoIosFootballOutline } from "../../io/ios-football-outline"; +export { default as IoIosFootball } from "../../io/ios-football"; +export { default as IoIosGameControllerAOutline } from "../../io/ios-game-controller-a-outline"; +export { default as IoIosGameControllerA } from "../../io/ios-game-controller-a"; +export { default as IoIosGameControllerBOutline } from "../../io/ios-game-controller-b-outline"; +export { default as IoIosGameControllerB } from "../../io/ios-game-controller-b"; +export { default as IoIosGearOutline } from "../../io/ios-gear-outline"; +export { default as IoIosGear } from "../../io/ios-gear"; +export { default as IoIosGlassesOutline } from "../../io/ios-glasses-outline"; +export { default as IoIosGlasses } from "../../io/ios-glasses"; +export { default as IoIosGridViewOutline } from "../../io/ios-grid-view-outline"; +export { default as IoIosGridView } from "../../io/ios-grid-view"; +export { default as IoIosHeartOutline } from "../../io/ios-heart-outline"; +export { default as IoIosHeart } from "../../io/ios-heart"; +export { default as IoIosHelpEmpty } from "../../io/ios-help-empty"; +export { default as IoIosHelpOutline } from "../../io/ios-help-outline"; +export { default as IoIosHelp } from "../../io/ios-help"; +export { default as IoIosHomeOutline } from "../../io/ios-home-outline"; +export { default as IoIosHome } from "../../io/ios-home"; +export { default as IoIosInfiniteOutline } from "../../io/ios-infinite-outline"; +export { default as IoIosInfinite } from "../../io/ios-infinite"; +export { default as IoIosInformatempty } from "../../io/ios-informatempty"; +export { default as IoIosInformation } from "../../io/ios-information"; +export { default as IoIosInformatoutline } from "../../io/ios-informatoutline"; +export { default as IoIosIonicOutline } from "../../io/ios-ionic-outline"; +export { default as IoIosKeypadOutline } from "../../io/ios-keypad-outline"; +export { default as IoIosKeypad } from "../../io/ios-keypad"; +export { default as IoIosLightbulbOutline } from "../../io/ios-lightbulb-outline"; +export { default as IoIosLightbulb } from "../../io/ios-lightbulb"; +export { default as IoIosListOutline } from "../../io/ios-list-outline"; +export { default as IoIosList } from "../../io/ios-list"; +export { default as IoIosLocation } from "../../io/ios-location"; +export { default as IoIosLocatoutline } from "../../io/ios-locatoutline"; +export { default as IoIosLockedOutline } from "../../io/ios-locked-outline"; +export { default as IoIosLocked } from "../../io/ios-locked"; +export { default as IoIosLoopStrong } from "../../io/ios-loop-strong"; +export { default as IoIosLoop } from "../../io/ios-loop"; +export { default as IoIosMedicalOutline } from "../../io/ios-medical-outline"; +export { default as IoIosMedical } from "../../io/ios-medical"; +export { default as IoIosMedkitOutline } from "../../io/ios-medkit-outline"; +export { default as IoIosMedkit } from "../../io/ios-medkit"; +export { default as IoIosMicOff } from "../../io/ios-mic-off"; +export { default as IoIosMicOutline } from "../../io/ios-mic-outline"; +export { default as IoIosMic } from "../../io/ios-mic"; +export { default as IoIosMinusEmpty } from "../../io/ios-minus-empty"; +export { default as IoIosMinusOutline } from "../../io/ios-minus-outline"; +export { default as IoIosMinus } from "../../io/ios-minus"; +export { default as IoIosMonitorOutline } from "../../io/ios-monitor-outline"; +export { default as IoIosMonitor } from "../../io/ios-monitor"; +export { default as IoIosMoonOutline } from "../../io/ios-moon-outline"; +export { default as IoIosMoon } from "../../io/ios-moon"; +export { default as IoIosMoreOutline } from "../../io/ios-more-outline"; +export { default as IoIosMore } from "../../io/ios-more"; +export { default as IoIosMusicalNote } from "../../io/ios-musical-note"; +export { default as IoIosMusicalNotes } from "../../io/ios-musical-notes"; +export { default as IoIosNavigateOutline } from "../../io/ios-navigate-outline"; +export { default as IoIosNavigate } from "../../io/ios-navigate"; +export { default as IoIosNutrition } from "../../io/ios-nutrition"; +export { default as IoIosNutritoutline } from "../../io/ios-nutritoutline"; +export { default as IoIosPaperOutline } from "../../io/ios-paper-outline"; +export { default as IoIosPaper } from "../../io/ios-paper"; +export { default as IoIosPaperplaneOutline } from "../../io/ios-paperplane-outline"; +export { default as IoIosPaperplane } from "../../io/ios-paperplane"; +export { default as IoIosPartlysunnyOutline } from "../../io/ios-partlysunny-outline"; +export { default as IoIosPartlysunny } from "../../io/ios-partlysunny"; +export { default as IoIosPauseOutline } from "../../io/ios-pause-outline"; +export { default as IoIosPause } from "../../io/ios-pause"; +export { default as IoIosPawOutline } from "../../io/ios-paw-outline"; +export { default as IoIosPaw } from "../../io/ios-paw"; +export { default as IoIosPeopleOutline } from "../../io/ios-people-outline"; +export { default as IoIosPeople } from "../../io/ios-people"; +export { default as IoIosPersonOutline } from "../../io/ios-person-outline"; +export { default as IoIosPerson } from "../../io/ios-person"; +export { default as IoIosPersonaddOutline } from "../../io/ios-personadd-outline"; +export { default as IoIosPersonadd } from "../../io/ios-personadd"; +export { default as IoIosPhotosOutline } from "../../io/ios-photos-outline"; +export { default as IoIosPhotos } from "../../io/ios-photos"; +export { default as IoIosPieOutline } from "../../io/ios-pie-outline"; +export { default as IoIosPie } from "../../io/ios-pie"; +export { default as IoIosPintOutline } from "../../io/ios-pint-outline"; +export { default as IoIosPint } from "../../io/ios-pint"; +export { default as IoIosPlayOutline } from "../../io/ios-play-outline"; +export { default as IoIosPlay } from "../../io/ios-play"; +export { default as IoIosPlusEmpty } from "../../io/ios-plus-empty"; +export { default as IoIosPlusOutline } from "../../io/ios-plus-outline"; +export { default as IoIosPlus } from "../../io/ios-plus"; +export { default as IoIosPricetagOutline } from "../../io/ios-pricetag-outline"; +export { default as IoIosPricetag } from "../../io/ios-pricetag"; +export { default as IoIosPricetagsOutline } from "../../io/ios-pricetags-outline"; +export { default as IoIosPricetags } from "../../io/ios-pricetags"; +export { default as IoIosPrinterOutline } from "../../io/ios-printer-outline"; +export { default as IoIosPrinter } from "../../io/ios-printer"; +export { default as IoIosPulseStrong } from "../../io/ios-pulse-strong"; +export { default as IoIosPulse } from "../../io/ios-pulse"; +export { default as IoIosRainyOutline } from "../../io/ios-rainy-outline"; +export { default as IoIosRainy } from "../../io/ios-rainy"; +export { default as IoIosRecordingOutline } from "../../io/ios-recording-outline"; +export { default as IoIosRecording } from "../../io/ios-recording"; +export { default as IoIosRedoOutline } from "../../io/ios-redo-outline"; +export { default as IoIosRedo } from "../../io/ios-redo"; +export { default as IoIosRefreshEmpty } from "../../io/ios-refresh-empty"; +export { default as IoIosRefreshOutline } from "../../io/ios-refresh-outline"; +export { default as IoIosRefresh } from "../../io/ios-refresh"; +export { default as IoIosReload } from "../../io/ios-reload"; +export { default as IoIosReverseCameraOutline } from "../../io/ios-reverse-camera-outline"; +export { default as IoIosReverseCamera } from "../../io/ios-reverse-camera"; +export { default as IoIosRewindOutline } from "../../io/ios-rewind-outline"; +export { default as IoIosRewind } from "../../io/ios-rewind"; +export { default as IoIosRoseOutline } from "../../io/ios-rose-outline"; +export { default as IoIosRose } from "../../io/ios-rose"; +export { default as IoIosSearchStrong } from "../../io/ios-search-strong"; +export { default as IoIosSearch } from "../../io/ios-search"; +export { default as IoIosSettingsStrong } from "../../io/ios-settings-strong"; +export { default as IoIosSettings } from "../../io/ios-settings"; +export { default as IoIosShuffleStrong } from "../../io/ios-shuffle-strong"; +export { default as IoIosShuffle } from "../../io/ios-shuffle"; +export { default as IoIosSkipbackwardOutline } from "../../io/ios-skipbackward-outline"; +export { default as IoIosSkipbackward } from "../../io/ios-skipbackward"; +export { default as IoIosSkipforwardOutline } from "../../io/ios-skipforward-outline"; +export { default as IoIosSkipforward } from "../../io/ios-skipforward"; +export { default as IoIosSnowy } from "../../io/ios-snowy"; +export { default as IoIosSpeedometerOutline } from "../../io/ios-speedometer-outline"; +export { default as IoIosSpeedometer } from "../../io/ios-speedometer"; +export { default as IoIosStarHalf } from "../../io/ios-star-half"; +export { default as IoIosStarOutline } from "../../io/ios-star-outline"; +export { default as IoIosStar } from "../../io/ios-star"; +export { default as IoIosStopwatchOutline } from "../../io/ios-stopwatch-outline"; +export { default as IoIosStopwatch } from "../../io/ios-stopwatch"; +export { default as IoIosSunnyOutline } from "../../io/ios-sunny-outline"; +export { default as IoIosSunny } from "../../io/ios-sunny"; +export { default as IoIosTelephoneOutline } from "../../io/ios-telephone-outline"; +export { default as IoIosTelephone } from "../../io/ios-telephone"; +export { default as IoIosTennisballOutline } from "../../io/ios-tennisball-outline"; +export { default as IoIosTennisball } from "../../io/ios-tennisball"; +export { default as IoIosThunderstormOutline } from "../../io/ios-thunderstorm-outline"; +export { default as IoIosThunderstorm } from "../../io/ios-thunderstorm"; +export { default as IoIosTimeOutline } from "../../io/ios-time-outline"; +export { default as IoIosTime } from "../../io/ios-time"; +export { default as IoIosTimerOutline } from "../../io/ios-timer-outline"; +export { default as IoIosTimer } from "../../io/ios-timer"; +export { default as IoIosToggleOutline } from "../../io/ios-toggle-outline"; +export { default as IoIosToggle } from "../../io/ios-toggle"; +export { default as IoIosTrashOutline } from "../../io/ios-trash-outline"; +export { default as IoIosTrash } from "../../io/ios-trash"; +export { default as IoIosUndoOutline } from "../../io/ios-undo-outline"; +export { default as IoIosUndo } from "../../io/ios-undo"; +export { default as IoIosUnlockedOutline } from "../../io/ios-unlocked-outline"; +export { default as IoIosUnlocked } from "../../io/ios-unlocked"; +export { default as IoIosUploadOutline } from "../../io/ios-upload-outline"; +export { default as IoIosUpload } from "../../io/ios-upload"; +export { default as IoIosVideocamOutline } from "../../io/ios-videocam-outline"; +export { default as IoIosVideocam } from "../../io/ios-videocam"; +export { default as IoIosVolumeHigh } from "../../io/ios-volume-high"; +export { default as IoIosVolumeLow } from "../../io/ios-volume-low"; +export { default as IoIosWineglassOutline } from "../../io/ios-wineglass-outline"; +export { default as IoIosWineglass } from "../../io/ios-wineglass"; +export { default as IoIosWorldOutline } from "../../io/ios-world-outline"; +export { default as IoIosWorld } from "../../io/ios-world"; +export { default as IoIpad } from "../../io/ipad"; +export { default as IoIphone } from "../../io/iphone"; +export { default as IoIpod } from "../../io/ipod"; +export { default as IoJet } from "../../io/jet"; +export { default as IoKey } from "../../io/key"; +export { default as IoKnife } from "../../io/knife"; +export { default as IoLaptop } from "../../io/laptop"; +export { default as IoLeaf } from "../../io/leaf"; +export { default as IoLevels } from "../../io/levels"; +export { default as IoLightbulb } from "../../io/lightbulb"; +export { default as IoLink } from "../../io/link"; +export { default as IoLoadA } from "../../io/load-a"; +export { default as IoLoadB } from "../../io/load-b"; +export { default as IoLoadC } from "../../io/load-c"; +export { default as IoLoadD } from "../../io/load-d"; +export { default as IoLocation } from "../../io/location"; +export { default as IoLockCombination } from "../../io/lock-combination"; +export { default as IoLocked } from "../../io/locked"; +export { default as IoLogIn } from "../../io/log-in"; +export { default as IoLogOut } from "../../io/log-out"; +export { default as IoLoop } from "../../io/loop"; +export { default as IoMagnet } from "../../io/magnet"; +export { default as IoMale } from "../../io/male"; +export { default as IoMan } from "../../io/man"; +export { default as IoMap } from "../../io/map"; +export { default as IoMedkit } from "../../io/medkit"; +export { default as IoMerge } from "../../io/merge"; +export { default as IoMicA } from "../../io/mic-a"; +export { default as IoMicB } from "../../io/mic-b"; +export { default as IoMicC } from "../../io/mic-c"; +export { default as IoMinusCircled } from "../../io/minus-circled"; +export { default as IoMinusRound } from "../../io/minus-round"; +export { default as IoMinus } from "../../io/minus"; +export { default as IoModelS } from "../../io/model-s"; +export { default as IoMonitor } from "../../io/monitor"; +export { default as IoMore } from "../../io/more"; +export { default as IoMouse } from "../../io/mouse"; +export { default as IoMusicNote } from "../../io/music-note"; +export { default as IoNaviconRound } from "../../io/navicon-round"; +export { default as IoNavicon } from "../../io/navicon"; +export { default as IoNavigate } from "../../io/navigate"; +export { default as IoNetwork } from "../../io/network"; +export { default as IoNoSmoking } from "../../io/no-smoking"; +export { default as IoNuclear } from "../../io/nuclear"; +export { default as IoOutlet } from "../../io/outlet"; +export { default as IoPaintbrush } from "../../io/paintbrush"; +export { default as IoPaintbucket } from "../../io/paintbucket"; +export { default as IoPaperAirplane } from "../../io/paper-airplane"; +export { default as IoPaperclip } from "../../io/paperclip"; +export { default as IoPause } from "../../io/pause"; +export { default as IoPersonAdd } from "../../io/person-add"; +export { default as IoPersonStalker } from "../../io/person-stalker"; +export { default as IoPerson } from "../../io/person"; +export { default as IoPieGraph } from "../../io/pie-graph"; +export { default as IoPin } from "../../io/pin"; +export { default as IoPinpoint } from "../../io/pinpoint"; +export { default as IoPizza } from "../../io/pizza"; +export { default as IoPlane } from "../../io/plane"; +export { default as IoPlanet } from "../../io/planet"; +export { default as IoPlay } from "../../io/play"; +export { default as IoPlaystation } from "../../io/playstation"; +export { default as IoPlusCircled } from "../../io/plus-circled"; +export { default as IoPlusRound } from "../../io/plus-round"; +export { default as IoPlus } from "../../io/plus"; +export { default as IoPodium } from "../../io/podium"; +export { default as IoPound } from "../../io/pound"; +export { default as IoPower } from "../../io/power"; +export { default as IoPricetag } from "../../io/pricetag"; +export { default as IoPricetags } from "../../io/pricetags"; +export { default as IoPrinter } from "../../io/printer"; +export { default as IoPullRequest } from "../../io/pull-request"; +export { default as IoQrScanner } from "../../io/qr-scanner"; +export { default as IoQuote } from "../../io/quote"; +export { default as IoRadioWaves } from "../../io/radio-waves"; +export { default as IoRecord } from "../../io/record"; +export { default as IoRefresh } from "../../io/refresh"; +export { default as IoReplyAll } from "../../io/reply-all"; +export { default as IoReply } from "../../io/reply"; +export { default as IoRibbonA } from "../../io/ribbon-a"; +export { default as IoRibbonB } from "../../io/ribbon-b"; +export { default as IoSadOutline } from "../../io/sad-outline"; +export { default as IoSad } from "../../io/sad"; +export { default as IoScissors } from "../../io/scissors"; +export { default as IoSearch } from "../../io/search"; +export { default as IoSettings } from "../../io/settings"; +export { default as IoShare } from "../../io/share"; +export { default as IoShuffle } from "../../io/shuffle"; +export { default as IoSkipBackward } from "../../io/skip-backward"; +export { default as IoSkipForward } from "../../io/skip-forward"; +export { default as IoSocialAndroidOutline } from "../../io/social-android-outline"; +export { default as IoSocialAndroid } from "../../io/social-android"; +export { default as IoSocialAngularOutline } from "../../io/social-angular-outline"; +export { default as IoSocialAngular } from "../../io/social-angular"; +export { default as IoSocialAppleOutline } from "../../io/social-apple-outline"; +export { default as IoSocialApple } from "../../io/social-apple"; +export { default as IoSocialBitcoinOutline } from "../../io/social-bitcoin-outline"; +export { default as IoSocialBitcoin } from "../../io/social-bitcoin"; +export { default as IoSocialBufferOutline } from "../../io/social-buffer-outline"; +export { default as IoSocialBuffer } from "../../io/social-buffer"; +export { default as IoSocialChromeOutline } from "../../io/social-chrome-outline"; +export { default as IoSocialChrome } from "../../io/social-chrome"; +export { default as IoSocialCodepenOutline } from "../../io/social-codepen-outline"; +export { default as IoSocialCodepen } from "../../io/social-codepen"; +export { default as IoSocialCss3Outline } from "../../io/social-css3-outline"; +export { default as IoSocialCss3 } from "../../io/social-css3"; +export { default as IoSocialDesignernewsOutline } from "../../io/social-designernews-outline"; +export { default as IoSocialDesignernews } from "../../io/social-designernews"; +export { default as IoSocialDribbbleOutline } from "../../io/social-dribbble-outline"; +export { default as IoSocialDribbble } from "../../io/social-dribbble"; +export { default as IoSocialDropboxOutline } from "../../io/social-dropbox-outline"; +export { default as IoSocialDropbox } from "../../io/social-dropbox"; +export { default as IoSocialEuroOutline } from "../../io/social-euro-outline"; +export { default as IoSocialEuro } from "../../io/social-euro"; +export { default as IoSocialFacebookOutline } from "../../io/social-facebook-outline"; +export { default as IoSocialFacebook } from "../../io/social-facebook"; +export { default as IoSocialFoursquareOutline } from "../../io/social-foursquare-outline"; +export { default as IoSocialFoursquare } from "../../io/social-foursquare"; +export { default as IoSocialFreebsdDevil } from "../../io/social-freebsd-devil"; +export { default as IoSocialGithubOutline } from "../../io/social-github-outline"; +export { default as IoSocialGithub } from "../../io/social-github"; +export { default as IoSocialGoogleOutline } from "../../io/social-google-outline"; +export { default as IoSocialGoogle } from "../../io/social-google"; +export { default as IoSocialGoogleplusOutline } from "../../io/social-googleplus-outline"; +export { default as IoSocialGoogleplus } from "../../io/social-googleplus"; +export { default as IoSocialHackernewsOutline } from "../../io/social-hackernews-outline"; +export { default as IoSocialHackernews } from "../../io/social-hackernews"; +export { default as IoSocialHtml5Outline } from "../../io/social-html5-outline"; +export { default as IoSocialHtml5 } from "../../io/social-html5"; +export { default as IoSocialInstagramOutline } from "../../io/social-instagram-outline"; +export { default as IoSocialInstagram } from "../../io/social-instagram"; +export { default as IoSocialJavascriptOutline } from "../../io/social-javascript-outline"; +export { default as IoSocialJavascript } from "../../io/social-javascript"; +export { default as IoSocialLinkedinOutline } from "../../io/social-linkedin-outline"; +export { default as IoSocialLinkedin } from "../../io/social-linkedin"; +export { default as IoSocialMarkdown } from "../../io/social-markdown"; +export { default as IoSocialNodejs } from "../../io/social-nodejs"; +export { default as IoSocialOctocat } from "../../io/social-octocat"; +export { default as IoSocialPinterestOutline } from "../../io/social-pinterest-outline"; +export { default as IoSocialPinterest } from "../../io/social-pinterest"; +export { default as IoSocialPython } from "../../io/social-python"; +export { default as IoSocialRedditOutline } from "../../io/social-reddit-outline"; +export { default as IoSocialReddit } from "../../io/social-reddit"; +export { default as IoSocialRssOutline } from "../../io/social-rss-outline"; +export { default as IoSocialRss } from "../../io/social-rss"; +export { default as IoSocialSass } from "../../io/social-sass"; +export { default as IoSocialSkypeOutline } from "../../io/social-skype-outline"; +export { default as IoSocialSkype } from "../../io/social-skype"; +export { default as IoSocialSnapchatOutline } from "../../io/social-snapchat-outline"; +export { default as IoSocialSnapchat } from "../../io/social-snapchat"; +export { default as IoSocialTumblrOutline } from "../../io/social-tumblr-outline"; +export { default as IoSocialTumblr } from "../../io/social-tumblr"; +export { default as IoSocialTux } from "../../io/social-tux"; +export { default as IoSocialTwitchOutline } from "../../io/social-twitch-outline"; +export { default as IoSocialTwitch } from "../../io/social-twitch"; +export { default as IoSocialTwitterOutline } from "../../io/social-twitter-outline"; +export { default as IoSocialTwitter } from "../../io/social-twitter"; +export { default as IoSocialUsdOutline } from "../../io/social-usd-outline"; +export { default as IoSocialUsd } from "../../io/social-usd"; +export { default as IoSocialVimeoOutline } from "../../io/social-vimeo-outline"; +export { default as IoSocialVimeo } from "../../io/social-vimeo"; +export { default as IoSocialWhatsappOutline } from "../../io/social-whatsapp-outline"; +export { default as IoSocialWhatsapp } from "../../io/social-whatsapp"; +export { default as IoSocialWindowsOutline } from "../../io/social-windows-outline"; +export { default as IoSocialWindows } from "../../io/social-windows"; +export { default as IoSocialWordpressOutline } from "../../io/social-wordpress-outline"; +export { default as IoSocialWordpress } from "../../io/social-wordpress"; +export { default as IoSocialYahooOutline } from "../../io/social-yahoo-outline"; +export { default as IoSocialYahoo } from "../../io/social-yahoo"; +export { default as IoSocialYenOutline } from "../../io/social-yen-outline"; +export { default as IoSocialYen } from "../../io/social-yen"; +export { default as IoSocialYoutubeOutline } from "../../io/social-youtube-outline"; +export { default as IoSocialYoutube } from "../../io/social-youtube"; +export { default as IoSoupCanOutline } from "../../io/soup-can-outline"; +export { default as IoSoupCan } from "../../io/soup-can"; +export { default as IoSpeakerphone } from "../../io/speakerphone"; +export { default as IoSpeedometer } from "../../io/speedometer"; +export { default as IoSpoon } from "../../io/spoon"; +export { default as IoStar } from "../../io/star"; +export { default as IoStatsBars } from "../../io/stats-bars"; +export { default as IoSteam } from "../../io/steam"; +export { default as IoStop } from "../../io/stop"; +export { default as IoThermometer } from "../../io/thermometer"; +export { default as IoThumbsdown } from "../../io/thumbsdown"; +export { default as IoThumbsup } from "../../io/thumbsup"; +export { default as IoToggleFilled } from "../../io/toggle-filled"; +export { default as IoToggle } from "../../io/toggle"; +export { default as IoTransgender } from "../../io/transgender"; +export { default as IoTrashA } from "../../io/trash-a"; +export { default as IoTrashB } from "../../io/trash-b"; +export { default as IoTrophy } from "../../io/trophy"; +export { default as IoTshirtOutline } from "../../io/tshirt-outline"; +export { default as IoTshirt } from "../../io/tshirt"; +export { default as IoUmbrella } from "../../io/umbrella"; +export { default as IoUniversity } from "../../io/university"; +export { default as IoUnlocked } from "../../io/unlocked"; +export { default as IoUpload } from "../../io/upload"; +export { default as IoUsb } from "../../io/usb"; +export { default as IoVideocamera } from "../../io/videocamera"; +export { default as IoVolumeHigh } from "../../io/volume-high"; +export { default as IoVolumeLow } from "../../io/volume-low"; +export { default as IoVolumeMedium } from "../../io/volume-medium"; +export { default as IoVolumeMute } from "../../io/volume-mute"; +export { default as IoWand } from "../../io/wand"; +export { default as IoWaterdrop } from "../../io/waterdrop"; +export { default as IoWifi } from "../../io/wifi"; +export { default as IoWineglass } from "../../io/wineglass"; +export { default as IoWoman } from "../../io/woman"; +export { default as IoWrench } from "../../io/wrench"; +export { default as IoXbox } from "../../io/xbox"; diff --git a/types/react-icons/lib/io/informatcircled.d.ts b/types/react-icons/lib/io/informatcircled.d.ts index 2ef20abca7..829ad4b409 100644 --- a/types/react-icons/lib/io/informatcircled.d.ts +++ b/types/react-icons/lib/io/informatcircled.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoInformatcircled extends React.Component { } +declare class IoInformatcircled extends React.Component { } +export = IoInformatcircled; diff --git a/types/react-icons/lib/io/information.d.ts b/types/react-icons/lib/io/information.d.ts index 02652a360f..eceb48a8c3 100644 --- a/types/react-icons/lib/io/information.d.ts +++ b/types/react-icons/lib/io/information.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoInformation extends React.Component { } +declare class IoInformation extends React.Component { } +export = IoInformation; diff --git a/types/react-icons/lib/io/ionic.d.ts b/types/react-icons/lib/io/ionic.d.ts index 9e19c402cf..dcf5655c61 100644 --- a/types/react-icons/lib/io/ionic.d.ts +++ b/types/react-icons/lib/io/ionic.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIonic extends React.Component { } +declare class IoIonic extends React.Component { } +export = IoIonic; diff --git a/types/react-icons/lib/io/ios-alarm-outline.d.ts b/types/react-icons/lib/io/ios-alarm-outline.d.ts index c211ebccee..b6b321d531 100644 --- a/types/react-icons/lib/io/ios-alarm-outline.d.ts +++ b/types/react-icons/lib/io/ios-alarm-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosAlarmOutline extends React.Component { } +declare class IoIosAlarmOutline extends React.Component { } +export = IoIosAlarmOutline; diff --git a/types/react-icons/lib/io/ios-alarm.d.ts b/types/react-icons/lib/io/ios-alarm.d.ts index c61987318d..a343e709e3 100644 --- a/types/react-icons/lib/io/ios-alarm.d.ts +++ b/types/react-icons/lib/io/ios-alarm.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosAlarm extends React.Component { } +declare class IoIosAlarm extends React.Component { } +export = IoIosAlarm; diff --git a/types/react-icons/lib/io/ios-albums-outline.d.ts b/types/react-icons/lib/io/ios-albums-outline.d.ts index 48e06ad4b8..dba1c52063 100644 --- a/types/react-icons/lib/io/ios-albums-outline.d.ts +++ b/types/react-icons/lib/io/ios-albums-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosAlbumsOutline extends React.Component { } +declare class IoIosAlbumsOutline extends React.Component { } +export = IoIosAlbumsOutline; diff --git a/types/react-icons/lib/io/ios-albums.d.ts b/types/react-icons/lib/io/ios-albums.d.ts index be7c86317a..70e77f84aa 100644 --- a/types/react-icons/lib/io/ios-albums.d.ts +++ b/types/react-icons/lib/io/ios-albums.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosAlbums extends React.Component { } +declare class IoIosAlbums extends React.Component { } +export = IoIosAlbums; diff --git a/types/react-icons/lib/io/ios-americanfootball-outline.d.ts b/types/react-icons/lib/io/ios-americanfootball-outline.d.ts index d7041c17d3..0d3f7105e4 100644 --- a/types/react-icons/lib/io/ios-americanfootball-outline.d.ts +++ b/types/react-icons/lib/io/ios-americanfootball-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosAmericanfootballOutline extends React.Component { } +declare class IoIosAmericanfootballOutline extends React.Component { } +export = IoIosAmericanfootballOutline; diff --git a/types/react-icons/lib/io/ios-americanfootball.d.ts b/types/react-icons/lib/io/ios-americanfootball.d.ts index 4af77520ff..a3502d9745 100644 --- a/types/react-icons/lib/io/ios-americanfootball.d.ts +++ b/types/react-icons/lib/io/ios-americanfootball.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosAmericanfootball extends React.Component { } +declare class IoIosAmericanfootball extends React.Component { } +export = IoIosAmericanfootball; diff --git a/types/react-icons/lib/io/ios-analytics-outline.d.ts b/types/react-icons/lib/io/ios-analytics-outline.d.ts index 6192de6c58..52d3b2a664 100644 --- a/types/react-icons/lib/io/ios-analytics-outline.d.ts +++ b/types/react-icons/lib/io/ios-analytics-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosAnalyticsOutline extends React.Component { } +declare class IoIosAnalyticsOutline extends React.Component { } +export = IoIosAnalyticsOutline; diff --git a/types/react-icons/lib/io/ios-analytics.d.ts b/types/react-icons/lib/io/ios-analytics.d.ts index 9f3d9e110e..da9c6b9d91 100644 --- a/types/react-icons/lib/io/ios-analytics.d.ts +++ b/types/react-icons/lib/io/ios-analytics.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosAnalytics extends React.Component { } +declare class IoIosAnalytics extends React.Component { } +export = IoIosAnalytics; diff --git a/types/react-icons/lib/io/ios-arrow-back.d.ts b/types/react-icons/lib/io/ios-arrow-back.d.ts index 1466e59a6d..d673fc84ba 100644 --- a/types/react-icons/lib/io/ios-arrow-back.d.ts +++ b/types/react-icons/lib/io/ios-arrow-back.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosArrowBack extends React.Component { } +declare class IoIosArrowBack extends React.Component { } +export = IoIosArrowBack; diff --git a/types/react-icons/lib/io/ios-arrow-down.d.ts b/types/react-icons/lib/io/ios-arrow-down.d.ts index 91773f927b..3e206b984c 100644 --- a/types/react-icons/lib/io/ios-arrow-down.d.ts +++ b/types/react-icons/lib/io/ios-arrow-down.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosArrowDown extends React.Component { } +declare class IoIosArrowDown extends React.Component { } +export = IoIosArrowDown; diff --git a/types/react-icons/lib/io/ios-arrow-forward.d.ts b/types/react-icons/lib/io/ios-arrow-forward.d.ts index a2bf7fe213..d67662f144 100644 --- a/types/react-icons/lib/io/ios-arrow-forward.d.ts +++ b/types/react-icons/lib/io/ios-arrow-forward.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosArrowForward extends React.Component { } +declare class IoIosArrowForward extends React.Component { } +export = IoIosArrowForward; diff --git a/types/react-icons/lib/io/ios-arrow-left.d.ts b/types/react-icons/lib/io/ios-arrow-left.d.ts index 0588edeed0..93f66481cf 100644 --- a/types/react-icons/lib/io/ios-arrow-left.d.ts +++ b/types/react-icons/lib/io/ios-arrow-left.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosArrowLeft extends React.Component { } +declare class IoIosArrowLeft extends React.Component { } +export = IoIosArrowLeft; diff --git a/types/react-icons/lib/io/ios-arrow-right.d.ts b/types/react-icons/lib/io/ios-arrow-right.d.ts index 5642202b5c..cea88a4483 100644 --- a/types/react-icons/lib/io/ios-arrow-right.d.ts +++ b/types/react-icons/lib/io/ios-arrow-right.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosArrowRight extends React.Component { } +declare class IoIosArrowRight extends React.Component { } +export = IoIosArrowRight; diff --git a/types/react-icons/lib/io/ios-arrow-thin-down.d.ts b/types/react-icons/lib/io/ios-arrow-thin-down.d.ts index 183b547848..7d38c834a7 100644 --- a/types/react-icons/lib/io/ios-arrow-thin-down.d.ts +++ b/types/react-icons/lib/io/ios-arrow-thin-down.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosArrowThinDown extends React.Component { } +declare class IoIosArrowThinDown extends React.Component { } +export = IoIosArrowThinDown; diff --git a/types/react-icons/lib/io/ios-arrow-thin-left.d.ts b/types/react-icons/lib/io/ios-arrow-thin-left.d.ts index 4fea91fe45..6ca695d67f 100644 --- a/types/react-icons/lib/io/ios-arrow-thin-left.d.ts +++ b/types/react-icons/lib/io/ios-arrow-thin-left.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosArrowThinLeft extends React.Component { } +declare class IoIosArrowThinLeft extends React.Component { } +export = IoIosArrowThinLeft; diff --git a/types/react-icons/lib/io/ios-arrow-thin-right.d.ts b/types/react-icons/lib/io/ios-arrow-thin-right.d.ts index 5e70abd099..5fa30f116d 100644 --- a/types/react-icons/lib/io/ios-arrow-thin-right.d.ts +++ b/types/react-icons/lib/io/ios-arrow-thin-right.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosArrowThinRight extends React.Component { } +declare class IoIosArrowThinRight extends React.Component { } +export = IoIosArrowThinRight; diff --git a/types/react-icons/lib/io/ios-arrow-thin-up.d.ts b/types/react-icons/lib/io/ios-arrow-thin-up.d.ts index 412e0b53a2..6e3168d95d 100644 --- a/types/react-icons/lib/io/ios-arrow-thin-up.d.ts +++ b/types/react-icons/lib/io/ios-arrow-thin-up.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosArrowThinUp extends React.Component { } +declare class IoIosArrowThinUp extends React.Component { } +export = IoIosArrowThinUp; diff --git a/types/react-icons/lib/io/ios-arrow-up.d.ts b/types/react-icons/lib/io/ios-arrow-up.d.ts index 2adf431795..e140f1c883 100644 --- a/types/react-icons/lib/io/ios-arrow-up.d.ts +++ b/types/react-icons/lib/io/ios-arrow-up.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosArrowUp extends React.Component { } +declare class IoIosArrowUp extends React.Component { } +export = IoIosArrowUp; diff --git a/types/react-icons/lib/io/ios-at-outline.d.ts b/types/react-icons/lib/io/ios-at-outline.d.ts index 7d20c06912..568676c927 100644 --- a/types/react-icons/lib/io/ios-at-outline.d.ts +++ b/types/react-icons/lib/io/ios-at-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosAtOutline extends React.Component { } +declare class IoIosAtOutline extends React.Component { } +export = IoIosAtOutline; diff --git a/types/react-icons/lib/io/ios-at.d.ts b/types/react-icons/lib/io/ios-at.d.ts index 5789d0b976..bb359ef077 100644 --- a/types/react-icons/lib/io/ios-at.d.ts +++ b/types/react-icons/lib/io/ios-at.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosAt extends React.Component { } +declare class IoIosAt extends React.Component { } +export = IoIosAt; diff --git a/types/react-icons/lib/io/ios-barcode-outline.d.ts b/types/react-icons/lib/io/ios-barcode-outline.d.ts index a82a5b88c8..0e733f7426 100644 --- a/types/react-icons/lib/io/ios-barcode-outline.d.ts +++ b/types/react-icons/lib/io/ios-barcode-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosBarcodeOutline extends React.Component { } +declare class IoIosBarcodeOutline extends React.Component { } +export = IoIosBarcodeOutline; diff --git a/types/react-icons/lib/io/ios-barcode.d.ts b/types/react-icons/lib/io/ios-barcode.d.ts index 20a769e78e..170a0c1458 100644 --- a/types/react-icons/lib/io/ios-barcode.d.ts +++ b/types/react-icons/lib/io/ios-barcode.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosBarcode extends React.Component { } +declare class IoIosBarcode extends React.Component { } +export = IoIosBarcode; diff --git a/types/react-icons/lib/io/ios-baseball-outline.d.ts b/types/react-icons/lib/io/ios-baseball-outline.d.ts index 99856309a9..8893ad7e66 100644 --- a/types/react-icons/lib/io/ios-baseball-outline.d.ts +++ b/types/react-icons/lib/io/ios-baseball-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosBaseballOutline extends React.Component { } +declare class IoIosBaseballOutline extends React.Component { } +export = IoIosBaseballOutline; diff --git a/types/react-icons/lib/io/ios-baseball.d.ts b/types/react-icons/lib/io/ios-baseball.d.ts index 1470fd138c..06626537a4 100644 --- a/types/react-icons/lib/io/ios-baseball.d.ts +++ b/types/react-icons/lib/io/ios-baseball.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosBaseball extends React.Component { } +declare class IoIosBaseball extends React.Component { } +export = IoIosBaseball; diff --git a/types/react-icons/lib/io/ios-basketball-outline.d.ts b/types/react-icons/lib/io/ios-basketball-outline.d.ts index 5b2d8845df..e2387f5695 100644 --- a/types/react-icons/lib/io/ios-basketball-outline.d.ts +++ b/types/react-icons/lib/io/ios-basketball-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosBasketballOutline extends React.Component { } +declare class IoIosBasketballOutline extends React.Component { } +export = IoIosBasketballOutline; diff --git a/types/react-icons/lib/io/ios-basketball.d.ts b/types/react-icons/lib/io/ios-basketball.d.ts index 294798f648..17c4d6fd5f 100644 --- a/types/react-icons/lib/io/ios-basketball.d.ts +++ b/types/react-icons/lib/io/ios-basketball.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosBasketball extends React.Component { } +declare class IoIosBasketball extends React.Component { } +export = IoIosBasketball; diff --git a/types/react-icons/lib/io/ios-bell-outline.d.ts b/types/react-icons/lib/io/ios-bell-outline.d.ts index c03c49121e..e346d2754a 100644 --- a/types/react-icons/lib/io/ios-bell-outline.d.ts +++ b/types/react-icons/lib/io/ios-bell-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosBellOutline extends React.Component { } +declare class IoIosBellOutline extends React.Component { } +export = IoIosBellOutline; diff --git a/types/react-icons/lib/io/ios-bell.d.ts b/types/react-icons/lib/io/ios-bell.d.ts index d1b90b21f9..a899c4f941 100644 --- a/types/react-icons/lib/io/ios-bell.d.ts +++ b/types/react-icons/lib/io/ios-bell.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosBell extends React.Component { } +declare class IoIosBell extends React.Component { } +export = IoIosBell; diff --git a/types/react-icons/lib/io/ios-body-outline.d.ts b/types/react-icons/lib/io/ios-body-outline.d.ts index 235ed9bca0..5850273998 100644 --- a/types/react-icons/lib/io/ios-body-outline.d.ts +++ b/types/react-icons/lib/io/ios-body-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosBodyOutline extends React.Component { } +declare class IoIosBodyOutline extends React.Component { } +export = IoIosBodyOutline; diff --git a/types/react-icons/lib/io/ios-body.d.ts b/types/react-icons/lib/io/ios-body.d.ts index 89712f6b0e..fc8b1ecc9f 100644 --- a/types/react-icons/lib/io/ios-body.d.ts +++ b/types/react-icons/lib/io/ios-body.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosBody extends React.Component { } +declare class IoIosBody extends React.Component { } +export = IoIosBody; diff --git a/types/react-icons/lib/io/ios-bolt-outline.d.ts b/types/react-icons/lib/io/ios-bolt-outline.d.ts index acc1db40e6..86ec284228 100644 --- a/types/react-icons/lib/io/ios-bolt-outline.d.ts +++ b/types/react-icons/lib/io/ios-bolt-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosBoltOutline extends React.Component { } +declare class IoIosBoltOutline extends React.Component { } +export = IoIosBoltOutline; diff --git a/types/react-icons/lib/io/ios-bolt.d.ts b/types/react-icons/lib/io/ios-bolt.d.ts index a953af8901..74e19bba18 100644 --- a/types/react-icons/lib/io/ios-bolt.d.ts +++ b/types/react-icons/lib/io/ios-bolt.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosBolt extends React.Component { } +declare class IoIosBolt extends React.Component { } +export = IoIosBolt; diff --git a/types/react-icons/lib/io/ios-book-outline.d.ts b/types/react-icons/lib/io/ios-book-outline.d.ts index d6587de870..87ed84a220 100644 --- a/types/react-icons/lib/io/ios-book-outline.d.ts +++ b/types/react-icons/lib/io/ios-book-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosBookOutline extends React.Component { } +declare class IoIosBookOutline extends React.Component { } +export = IoIosBookOutline; diff --git a/types/react-icons/lib/io/ios-book.d.ts b/types/react-icons/lib/io/ios-book.d.ts index 9bcddd9e60..401fadbe2e 100644 --- a/types/react-icons/lib/io/ios-book.d.ts +++ b/types/react-icons/lib/io/ios-book.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosBook extends React.Component { } +declare class IoIosBook extends React.Component { } +export = IoIosBook; diff --git a/types/react-icons/lib/io/ios-bookmarks-outline.d.ts b/types/react-icons/lib/io/ios-bookmarks-outline.d.ts index c999d5cdd5..1a3428a1d5 100644 --- a/types/react-icons/lib/io/ios-bookmarks-outline.d.ts +++ b/types/react-icons/lib/io/ios-bookmarks-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosBookmarksOutline extends React.Component { } +declare class IoIosBookmarksOutline extends React.Component { } +export = IoIosBookmarksOutline; diff --git a/types/react-icons/lib/io/ios-bookmarks.d.ts b/types/react-icons/lib/io/ios-bookmarks.d.ts index 42a926adda..8910a86f2b 100644 --- a/types/react-icons/lib/io/ios-bookmarks.d.ts +++ b/types/react-icons/lib/io/ios-bookmarks.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosBookmarks extends React.Component { } +declare class IoIosBookmarks extends React.Component { } +export = IoIosBookmarks; diff --git a/types/react-icons/lib/io/ios-box-outline.d.ts b/types/react-icons/lib/io/ios-box-outline.d.ts index 02b34cefc1..d7b4985041 100644 --- a/types/react-icons/lib/io/ios-box-outline.d.ts +++ b/types/react-icons/lib/io/ios-box-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosBoxOutline extends React.Component { } +declare class IoIosBoxOutline extends React.Component { } +export = IoIosBoxOutline; diff --git a/types/react-icons/lib/io/ios-box.d.ts b/types/react-icons/lib/io/ios-box.d.ts index 67ab43d367..7dd3759007 100644 --- a/types/react-icons/lib/io/ios-box.d.ts +++ b/types/react-icons/lib/io/ios-box.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosBox extends React.Component { } +declare class IoIosBox extends React.Component { } +export = IoIosBox; diff --git a/types/react-icons/lib/io/ios-briefcase-outline.d.ts b/types/react-icons/lib/io/ios-briefcase-outline.d.ts index bcba814767..e778987aa3 100644 --- a/types/react-icons/lib/io/ios-briefcase-outline.d.ts +++ b/types/react-icons/lib/io/ios-briefcase-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosBriefcaseOutline extends React.Component { } +declare class IoIosBriefcaseOutline extends React.Component { } +export = IoIosBriefcaseOutline; diff --git a/types/react-icons/lib/io/ios-briefcase.d.ts b/types/react-icons/lib/io/ios-briefcase.d.ts index 03409c1dc4..ec269077a8 100644 --- a/types/react-icons/lib/io/ios-briefcase.d.ts +++ b/types/react-icons/lib/io/ios-briefcase.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosBriefcase extends React.Component { } +declare class IoIosBriefcase extends React.Component { } +export = IoIosBriefcase; diff --git a/types/react-icons/lib/io/ios-browsers-outline.d.ts b/types/react-icons/lib/io/ios-browsers-outline.d.ts index a85fd4dfc9..5f011531e3 100644 --- a/types/react-icons/lib/io/ios-browsers-outline.d.ts +++ b/types/react-icons/lib/io/ios-browsers-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosBrowsersOutline extends React.Component { } +declare class IoIosBrowsersOutline extends React.Component { } +export = IoIosBrowsersOutline; diff --git a/types/react-icons/lib/io/ios-browsers.d.ts b/types/react-icons/lib/io/ios-browsers.d.ts index 155d546472..dbadb14b0a 100644 --- a/types/react-icons/lib/io/ios-browsers.d.ts +++ b/types/react-icons/lib/io/ios-browsers.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosBrowsers extends React.Component { } +declare class IoIosBrowsers extends React.Component { } +export = IoIosBrowsers; diff --git a/types/react-icons/lib/io/ios-calculator-outline.d.ts b/types/react-icons/lib/io/ios-calculator-outline.d.ts index 19453725e5..b3a0eb7f5c 100644 --- a/types/react-icons/lib/io/ios-calculator-outline.d.ts +++ b/types/react-icons/lib/io/ios-calculator-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosCalculatorOutline extends React.Component { } +declare class IoIosCalculatorOutline extends React.Component { } +export = IoIosCalculatorOutline; diff --git a/types/react-icons/lib/io/ios-calculator.d.ts b/types/react-icons/lib/io/ios-calculator.d.ts index 736a4f431f..5237308ae6 100644 --- a/types/react-icons/lib/io/ios-calculator.d.ts +++ b/types/react-icons/lib/io/ios-calculator.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosCalculator extends React.Component { } +declare class IoIosCalculator extends React.Component { } +export = IoIosCalculator; diff --git a/types/react-icons/lib/io/ios-calendar-outline.d.ts b/types/react-icons/lib/io/ios-calendar-outline.d.ts index 131eba8430..2f38e2977b 100644 --- a/types/react-icons/lib/io/ios-calendar-outline.d.ts +++ b/types/react-icons/lib/io/ios-calendar-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosCalendarOutline extends React.Component { } +declare class IoIosCalendarOutline extends React.Component { } +export = IoIosCalendarOutline; diff --git a/types/react-icons/lib/io/ios-calendar.d.ts b/types/react-icons/lib/io/ios-calendar.d.ts index 3275cc770c..fdfc45ecaa 100644 --- a/types/react-icons/lib/io/ios-calendar.d.ts +++ b/types/react-icons/lib/io/ios-calendar.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosCalendar extends React.Component { } +declare class IoIosCalendar extends React.Component { } +export = IoIosCalendar; diff --git a/types/react-icons/lib/io/ios-camera-outline.d.ts b/types/react-icons/lib/io/ios-camera-outline.d.ts index 194cacb253..6cafe009b2 100644 --- a/types/react-icons/lib/io/ios-camera-outline.d.ts +++ b/types/react-icons/lib/io/ios-camera-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosCameraOutline extends React.Component { } +declare class IoIosCameraOutline extends React.Component { } +export = IoIosCameraOutline; diff --git a/types/react-icons/lib/io/ios-camera.d.ts b/types/react-icons/lib/io/ios-camera.d.ts index 346d035f8c..e909b8e2b5 100644 --- a/types/react-icons/lib/io/ios-camera.d.ts +++ b/types/react-icons/lib/io/ios-camera.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosCamera extends React.Component { } +declare class IoIosCamera extends React.Component { } +export = IoIosCamera; diff --git a/types/react-icons/lib/io/ios-cart-outline.d.ts b/types/react-icons/lib/io/ios-cart-outline.d.ts index d7f76296dd..affa96342b 100644 --- a/types/react-icons/lib/io/ios-cart-outline.d.ts +++ b/types/react-icons/lib/io/ios-cart-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosCartOutline extends React.Component { } +declare class IoIosCartOutline extends React.Component { } +export = IoIosCartOutline; diff --git a/types/react-icons/lib/io/ios-cart.d.ts b/types/react-icons/lib/io/ios-cart.d.ts index 918b941efc..2336583666 100644 --- a/types/react-icons/lib/io/ios-cart.d.ts +++ b/types/react-icons/lib/io/ios-cart.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosCart extends React.Component { } +declare class IoIosCart extends React.Component { } +export = IoIosCart; diff --git a/types/react-icons/lib/io/ios-chatboxes-outline.d.ts b/types/react-icons/lib/io/ios-chatboxes-outline.d.ts index 1db97e7086..3cb365f247 100644 --- a/types/react-icons/lib/io/ios-chatboxes-outline.d.ts +++ b/types/react-icons/lib/io/ios-chatboxes-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosChatboxesOutline extends React.Component { } +declare class IoIosChatboxesOutline extends React.Component { } +export = IoIosChatboxesOutline; diff --git a/types/react-icons/lib/io/ios-chatboxes.d.ts b/types/react-icons/lib/io/ios-chatboxes.d.ts index a32fdd72c4..3fb39f6ee1 100644 --- a/types/react-icons/lib/io/ios-chatboxes.d.ts +++ b/types/react-icons/lib/io/ios-chatboxes.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosChatboxes extends React.Component { } +declare class IoIosChatboxes extends React.Component { } +export = IoIosChatboxes; diff --git a/types/react-icons/lib/io/ios-chatbubble-outline.d.ts b/types/react-icons/lib/io/ios-chatbubble-outline.d.ts index ba2b57a053..3b45250dda 100644 --- a/types/react-icons/lib/io/ios-chatbubble-outline.d.ts +++ b/types/react-icons/lib/io/ios-chatbubble-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosChatbubbleOutline extends React.Component { } +declare class IoIosChatbubbleOutline extends React.Component { } +export = IoIosChatbubbleOutline; diff --git a/types/react-icons/lib/io/ios-chatbubble.d.ts b/types/react-icons/lib/io/ios-chatbubble.d.ts index bb9d024821..62bad0c4aa 100644 --- a/types/react-icons/lib/io/ios-chatbubble.d.ts +++ b/types/react-icons/lib/io/ios-chatbubble.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosChatbubble extends React.Component { } +declare class IoIosChatbubble extends React.Component { } +export = IoIosChatbubble; diff --git a/types/react-icons/lib/io/ios-checkmark-empty.d.ts b/types/react-icons/lib/io/ios-checkmark-empty.d.ts index 328adb1f00..a474963f5d 100644 --- a/types/react-icons/lib/io/ios-checkmark-empty.d.ts +++ b/types/react-icons/lib/io/ios-checkmark-empty.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosCheckmarkEmpty extends React.Component { } +declare class IoIosCheckmarkEmpty extends React.Component { } +export = IoIosCheckmarkEmpty; diff --git a/types/react-icons/lib/io/ios-checkmark-outline.d.ts b/types/react-icons/lib/io/ios-checkmark-outline.d.ts index cb19eebc9b..5f700d3698 100644 --- a/types/react-icons/lib/io/ios-checkmark-outline.d.ts +++ b/types/react-icons/lib/io/ios-checkmark-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosCheckmarkOutline extends React.Component { } +declare class IoIosCheckmarkOutline extends React.Component { } +export = IoIosCheckmarkOutline; diff --git a/types/react-icons/lib/io/ios-checkmark.d.ts b/types/react-icons/lib/io/ios-checkmark.d.ts index 3fcabda1bf..dd5fe54c42 100644 --- a/types/react-icons/lib/io/ios-checkmark.d.ts +++ b/types/react-icons/lib/io/ios-checkmark.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosCheckmark extends React.Component { } +declare class IoIosCheckmark extends React.Component { } +export = IoIosCheckmark; diff --git a/types/react-icons/lib/io/ios-circle-filled.d.ts b/types/react-icons/lib/io/ios-circle-filled.d.ts index 4b4192096d..f9cb3574c6 100644 --- a/types/react-icons/lib/io/ios-circle-filled.d.ts +++ b/types/react-icons/lib/io/ios-circle-filled.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosCircleFilled extends React.Component { } +declare class IoIosCircleFilled extends React.Component { } +export = IoIosCircleFilled; diff --git a/types/react-icons/lib/io/ios-circle-outline.d.ts b/types/react-icons/lib/io/ios-circle-outline.d.ts index 99a0ae723f..85165c8f58 100644 --- a/types/react-icons/lib/io/ios-circle-outline.d.ts +++ b/types/react-icons/lib/io/ios-circle-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosCircleOutline extends React.Component { } +declare class IoIosCircleOutline extends React.Component { } +export = IoIosCircleOutline; diff --git a/types/react-icons/lib/io/ios-clock-outline.d.ts b/types/react-icons/lib/io/ios-clock-outline.d.ts index 2d5febf0a9..5d6466efe1 100644 --- a/types/react-icons/lib/io/ios-clock-outline.d.ts +++ b/types/react-icons/lib/io/ios-clock-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosClockOutline extends React.Component { } +declare class IoIosClockOutline extends React.Component { } +export = IoIosClockOutline; diff --git a/types/react-icons/lib/io/ios-clock.d.ts b/types/react-icons/lib/io/ios-clock.d.ts index aa160a4bd7..7ea19dbd7b 100644 --- a/types/react-icons/lib/io/ios-clock.d.ts +++ b/types/react-icons/lib/io/ios-clock.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosClock extends React.Component { } +declare class IoIosClock extends React.Component { } +export = IoIosClock; diff --git a/types/react-icons/lib/io/ios-close-empty.d.ts b/types/react-icons/lib/io/ios-close-empty.d.ts index 44a0c8d17b..4e71a33216 100644 --- a/types/react-icons/lib/io/ios-close-empty.d.ts +++ b/types/react-icons/lib/io/ios-close-empty.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosCloseEmpty extends React.Component { } +declare class IoIosCloseEmpty extends React.Component { } +export = IoIosCloseEmpty; diff --git a/types/react-icons/lib/io/ios-close-outline.d.ts b/types/react-icons/lib/io/ios-close-outline.d.ts index 323c5b9d4a..91e3af7f9e 100644 --- a/types/react-icons/lib/io/ios-close-outline.d.ts +++ b/types/react-icons/lib/io/ios-close-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosCloseOutline extends React.Component { } +declare class IoIosCloseOutline extends React.Component { } +export = IoIosCloseOutline; diff --git a/types/react-icons/lib/io/ios-close.d.ts b/types/react-icons/lib/io/ios-close.d.ts index 21ed802d2a..2599814819 100644 --- a/types/react-icons/lib/io/ios-close.d.ts +++ b/types/react-icons/lib/io/ios-close.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosClose extends React.Component { } +declare class IoIosClose extends React.Component { } +export = IoIosClose; diff --git a/types/react-icons/lib/io/ios-cloud-download-outline.d.ts b/types/react-icons/lib/io/ios-cloud-download-outline.d.ts index 3e4358be6d..d62d37296e 100644 --- a/types/react-icons/lib/io/ios-cloud-download-outline.d.ts +++ b/types/react-icons/lib/io/ios-cloud-download-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosCloudDownloadOutline extends React.Component { } +declare class IoIosCloudDownloadOutline extends React.Component { } +export = IoIosCloudDownloadOutline; diff --git a/types/react-icons/lib/io/ios-cloud-download.d.ts b/types/react-icons/lib/io/ios-cloud-download.d.ts index 593e0c7730..ea75ea90cf 100644 --- a/types/react-icons/lib/io/ios-cloud-download.d.ts +++ b/types/react-icons/lib/io/ios-cloud-download.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosCloudDownload extends React.Component { } +declare class IoIosCloudDownload extends React.Component { } +export = IoIosCloudDownload; diff --git a/types/react-icons/lib/io/ios-cloud-outline.d.ts b/types/react-icons/lib/io/ios-cloud-outline.d.ts index c70f0794c3..34ef0e3bd6 100644 --- a/types/react-icons/lib/io/ios-cloud-outline.d.ts +++ b/types/react-icons/lib/io/ios-cloud-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosCloudOutline extends React.Component { } +declare class IoIosCloudOutline extends React.Component { } +export = IoIosCloudOutline; diff --git a/types/react-icons/lib/io/ios-cloud-upload-outline.d.ts b/types/react-icons/lib/io/ios-cloud-upload-outline.d.ts index 2796f586ec..1a2ec79df1 100644 --- a/types/react-icons/lib/io/ios-cloud-upload-outline.d.ts +++ b/types/react-icons/lib/io/ios-cloud-upload-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosCloudUploadOutline extends React.Component { } +declare class IoIosCloudUploadOutline extends React.Component { } +export = IoIosCloudUploadOutline; diff --git a/types/react-icons/lib/io/ios-cloud-upload.d.ts b/types/react-icons/lib/io/ios-cloud-upload.d.ts index b34cc692a2..75bbd1d136 100644 --- a/types/react-icons/lib/io/ios-cloud-upload.d.ts +++ b/types/react-icons/lib/io/ios-cloud-upload.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosCloudUpload extends React.Component { } +declare class IoIosCloudUpload extends React.Component { } +export = IoIosCloudUpload; diff --git a/types/react-icons/lib/io/ios-cloud.d.ts b/types/react-icons/lib/io/ios-cloud.d.ts index a802116f9f..1327ad5865 100644 --- a/types/react-icons/lib/io/ios-cloud.d.ts +++ b/types/react-icons/lib/io/ios-cloud.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosCloud extends React.Component { } +declare class IoIosCloud extends React.Component { } +export = IoIosCloud; diff --git a/types/react-icons/lib/io/ios-cloudy-night-outline.d.ts b/types/react-icons/lib/io/ios-cloudy-night-outline.d.ts index 4845f7470d..9a998a4f3d 100644 --- a/types/react-icons/lib/io/ios-cloudy-night-outline.d.ts +++ b/types/react-icons/lib/io/ios-cloudy-night-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosCloudyNightOutline extends React.Component { } +declare class IoIosCloudyNightOutline extends React.Component { } +export = IoIosCloudyNightOutline; diff --git a/types/react-icons/lib/io/ios-cloudy-night.d.ts b/types/react-icons/lib/io/ios-cloudy-night.d.ts index 9298dc5823..ce8505d3fd 100644 --- a/types/react-icons/lib/io/ios-cloudy-night.d.ts +++ b/types/react-icons/lib/io/ios-cloudy-night.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosCloudyNight extends React.Component { } +declare class IoIosCloudyNight extends React.Component { } +export = IoIosCloudyNight; diff --git a/types/react-icons/lib/io/ios-cloudy-outline.d.ts b/types/react-icons/lib/io/ios-cloudy-outline.d.ts index cfcfd72e69..e6bdfa8ca4 100644 --- a/types/react-icons/lib/io/ios-cloudy-outline.d.ts +++ b/types/react-icons/lib/io/ios-cloudy-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosCloudyOutline extends React.Component { } +declare class IoIosCloudyOutline extends React.Component { } +export = IoIosCloudyOutline; diff --git a/types/react-icons/lib/io/ios-cloudy.d.ts b/types/react-icons/lib/io/ios-cloudy.d.ts index 1d30070268..10cb92b074 100644 --- a/types/react-icons/lib/io/ios-cloudy.d.ts +++ b/types/react-icons/lib/io/ios-cloudy.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosCloudy extends React.Component { } +declare class IoIosCloudy extends React.Component { } +export = IoIosCloudy; diff --git a/types/react-icons/lib/io/ios-cog-outline.d.ts b/types/react-icons/lib/io/ios-cog-outline.d.ts index 8553742da2..4153320627 100644 --- a/types/react-icons/lib/io/ios-cog-outline.d.ts +++ b/types/react-icons/lib/io/ios-cog-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosCogOutline extends React.Component { } +declare class IoIosCogOutline extends React.Component { } +export = IoIosCogOutline; diff --git a/types/react-icons/lib/io/ios-cog.d.ts b/types/react-icons/lib/io/ios-cog.d.ts index b834fcb3c8..dc35f2908c 100644 --- a/types/react-icons/lib/io/ios-cog.d.ts +++ b/types/react-icons/lib/io/ios-cog.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosCog extends React.Component { } +declare class IoIosCog extends React.Component { } +export = IoIosCog; diff --git a/types/react-icons/lib/io/ios-color-filter-outline.d.ts b/types/react-icons/lib/io/ios-color-filter-outline.d.ts index a3a38a75c9..3efb45b3e8 100644 --- a/types/react-icons/lib/io/ios-color-filter-outline.d.ts +++ b/types/react-icons/lib/io/ios-color-filter-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosColorFilterOutline extends React.Component { } +declare class IoIosColorFilterOutline extends React.Component { } +export = IoIosColorFilterOutline; diff --git a/types/react-icons/lib/io/ios-color-filter.d.ts b/types/react-icons/lib/io/ios-color-filter.d.ts index 20fcdef6df..b06b0178e1 100644 --- a/types/react-icons/lib/io/ios-color-filter.d.ts +++ b/types/react-icons/lib/io/ios-color-filter.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosColorFilter extends React.Component { } +declare class IoIosColorFilter extends React.Component { } +export = IoIosColorFilter; diff --git a/types/react-icons/lib/io/ios-color-wand-outline.d.ts b/types/react-icons/lib/io/ios-color-wand-outline.d.ts index ddb1cb938c..c16dcb880c 100644 --- a/types/react-icons/lib/io/ios-color-wand-outline.d.ts +++ b/types/react-icons/lib/io/ios-color-wand-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosColorWandOutline extends React.Component { } +declare class IoIosColorWandOutline extends React.Component { } +export = IoIosColorWandOutline; diff --git a/types/react-icons/lib/io/ios-color-wand.d.ts b/types/react-icons/lib/io/ios-color-wand.d.ts index 2cffa4f89e..901482ab4d 100644 --- a/types/react-icons/lib/io/ios-color-wand.d.ts +++ b/types/react-icons/lib/io/ios-color-wand.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosColorWand extends React.Component { } +declare class IoIosColorWand extends React.Component { } +export = IoIosColorWand; diff --git a/types/react-icons/lib/io/ios-compose-outline.d.ts b/types/react-icons/lib/io/ios-compose-outline.d.ts index 30d416ed90..56213af99b 100644 --- a/types/react-icons/lib/io/ios-compose-outline.d.ts +++ b/types/react-icons/lib/io/ios-compose-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosComposeOutline extends React.Component { } +declare class IoIosComposeOutline extends React.Component { } +export = IoIosComposeOutline; diff --git a/types/react-icons/lib/io/ios-compose.d.ts b/types/react-icons/lib/io/ios-compose.d.ts index 9445eed5c1..700acd9df0 100644 --- a/types/react-icons/lib/io/ios-compose.d.ts +++ b/types/react-icons/lib/io/ios-compose.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosCompose extends React.Component { } +declare class IoIosCompose extends React.Component { } +export = IoIosCompose; diff --git a/types/react-icons/lib/io/ios-contact-outline.d.ts b/types/react-icons/lib/io/ios-contact-outline.d.ts index 7eb6eb546f..b6c3c9256f 100644 --- a/types/react-icons/lib/io/ios-contact-outline.d.ts +++ b/types/react-icons/lib/io/ios-contact-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosContactOutline extends React.Component { } +declare class IoIosContactOutline extends React.Component { } +export = IoIosContactOutline; diff --git a/types/react-icons/lib/io/ios-contact.d.ts b/types/react-icons/lib/io/ios-contact.d.ts index 59c2798235..b84fc3d06c 100644 --- a/types/react-icons/lib/io/ios-contact.d.ts +++ b/types/react-icons/lib/io/ios-contact.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosContact extends React.Component { } +declare class IoIosContact extends React.Component { } +export = IoIosContact; diff --git a/types/react-icons/lib/io/ios-copy-outline.d.ts b/types/react-icons/lib/io/ios-copy-outline.d.ts index 5af5717e89..a10a0de758 100644 --- a/types/react-icons/lib/io/ios-copy-outline.d.ts +++ b/types/react-icons/lib/io/ios-copy-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosCopyOutline extends React.Component { } +declare class IoIosCopyOutline extends React.Component { } +export = IoIosCopyOutline; diff --git a/types/react-icons/lib/io/ios-copy.d.ts b/types/react-icons/lib/io/ios-copy.d.ts index 2523a14f88..17210fcf39 100644 --- a/types/react-icons/lib/io/ios-copy.d.ts +++ b/types/react-icons/lib/io/ios-copy.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosCopy extends React.Component { } +declare class IoIosCopy extends React.Component { } +export = IoIosCopy; diff --git a/types/react-icons/lib/io/ios-crop-strong.d.ts b/types/react-icons/lib/io/ios-crop-strong.d.ts index b0126c2482..1d22950da5 100644 --- a/types/react-icons/lib/io/ios-crop-strong.d.ts +++ b/types/react-icons/lib/io/ios-crop-strong.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosCropStrong extends React.Component { } +declare class IoIosCropStrong extends React.Component { } +export = IoIosCropStrong; diff --git a/types/react-icons/lib/io/ios-crop.d.ts b/types/react-icons/lib/io/ios-crop.d.ts index ab76318d3a..d3dfb5e071 100644 --- a/types/react-icons/lib/io/ios-crop.d.ts +++ b/types/react-icons/lib/io/ios-crop.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosCrop extends React.Component { } +declare class IoIosCrop extends React.Component { } +export = IoIosCrop; diff --git a/types/react-icons/lib/io/ios-download-outline.d.ts b/types/react-icons/lib/io/ios-download-outline.d.ts index 4498357495..c02ba7586d 100644 --- a/types/react-icons/lib/io/ios-download-outline.d.ts +++ b/types/react-icons/lib/io/ios-download-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosDownloadOutline extends React.Component { } +declare class IoIosDownloadOutline extends React.Component { } +export = IoIosDownloadOutline; diff --git a/types/react-icons/lib/io/ios-download.d.ts b/types/react-icons/lib/io/ios-download.d.ts index 35aaac4be0..3550abd427 100644 --- a/types/react-icons/lib/io/ios-download.d.ts +++ b/types/react-icons/lib/io/ios-download.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosDownload extends React.Component { } +declare class IoIosDownload extends React.Component { } +export = IoIosDownload; diff --git a/types/react-icons/lib/io/ios-drag.d.ts b/types/react-icons/lib/io/ios-drag.d.ts index 17979b680a..22be50c994 100644 --- a/types/react-icons/lib/io/ios-drag.d.ts +++ b/types/react-icons/lib/io/ios-drag.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosDrag extends React.Component { } +declare class IoIosDrag extends React.Component { } +export = IoIosDrag; diff --git a/types/react-icons/lib/io/ios-email-outline.d.ts b/types/react-icons/lib/io/ios-email-outline.d.ts index 3ad2b9cb16..b4708c7cc9 100644 --- a/types/react-icons/lib/io/ios-email-outline.d.ts +++ b/types/react-icons/lib/io/ios-email-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosEmailOutline extends React.Component { } +declare class IoIosEmailOutline extends React.Component { } +export = IoIosEmailOutline; diff --git a/types/react-icons/lib/io/ios-email.d.ts b/types/react-icons/lib/io/ios-email.d.ts index ac81192fe0..419a9e90da 100644 --- a/types/react-icons/lib/io/ios-email.d.ts +++ b/types/react-icons/lib/io/ios-email.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosEmail extends React.Component { } +declare class IoIosEmail extends React.Component { } +export = IoIosEmail; diff --git a/types/react-icons/lib/io/ios-eye-outline.d.ts b/types/react-icons/lib/io/ios-eye-outline.d.ts index 8f83b25a13..bdb78dd911 100644 --- a/types/react-icons/lib/io/ios-eye-outline.d.ts +++ b/types/react-icons/lib/io/ios-eye-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosEyeOutline extends React.Component { } +declare class IoIosEyeOutline extends React.Component { } +export = IoIosEyeOutline; diff --git a/types/react-icons/lib/io/ios-eye.d.ts b/types/react-icons/lib/io/ios-eye.d.ts index 2a3db8b839..7910e77eb5 100644 --- a/types/react-icons/lib/io/ios-eye.d.ts +++ b/types/react-icons/lib/io/ios-eye.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosEye extends React.Component { } +declare class IoIosEye extends React.Component { } +export = IoIosEye; diff --git a/types/react-icons/lib/io/ios-fastforward-outline.d.ts b/types/react-icons/lib/io/ios-fastforward-outline.d.ts index ebc30ba915..b2f8ad2c63 100644 --- a/types/react-icons/lib/io/ios-fastforward-outline.d.ts +++ b/types/react-icons/lib/io/ios-fastforward-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosFastforwardOutline extends React.Component { } +declare class IoIosFastforwardOutline extends React.Component { } +export = IoIosFastforwardOutline; diff --git a/types/react-icons/lib/io/ios-fastforward.d.ts b/types/react-icons/lib/io/ios-fastforward.d.ts index 2fedece46c..3318050327 100644 --- a/types/react-icons/lib/io/ios-fastforward.d.ts +++ b/types/react-icons/lib/io/ios-fastforward.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosFastforward extends React.Component { } +declare class IoIosFastforward extends React.Component { } +export = IoIosFastforward; diff --git a/types/react-icons/lib/io/ios-filing-outline.d.ts b/types/react-icons/lib/io/ios-filing-outline.d.ts index 07291ebfd3..be70683001 100644 --- a/types/react-icons/lib/io/ios-filing-outline.d.ts +++ b/types/react-icons/lib/io/ios-filing-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosFilingOutline extends React.Component { } +declare class IoIosFilingOutline extends React.Component { } +export = IoIosFilingOutline; diff --git a/types/react-icons/lib/io/ios-filing.d.ts b/types/react-icons/lib/io/ios-filing.d.ts index 0ccb6e3e3b..c152ce0a54 100644 --- a/types/react-icons/lib/io/ios-filing.d.ts +++ b/types/react-icons/lib/io/ios-filing.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosFiling extends React.Component { } +declare class IoIosFiling extends React.Component { } +export = IoIosFiling; diff --git a/types/react-icons/lib/io/ios-film-outline.d.ts b/types/react-icons/lib/io/ios-film-outline.d.ts index 5528977dce..2ee7168846 100644 --- a/types/react-icons/lib/io/ios-film-outline.d.ts +++ b/types/react-icons/lib/io/ios-film-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosFilmOutline extends React.Component { } +declare class IoIosFilmOutline extends React.Component { } +export = IoIosFilmOutline; diff --git a/types/react-icons/lib/io/ios-film.d.ts b/types/react-icons/lib/io/ios-film.d.ts index 447ebbe08e..6d5738e4a3 100644 --- a/types/react-icons/lib/io/ios-film.d.ts +++ b/types/react-icons/lib/io/ios-film.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosFilm extends React.Component { } +declare class IoIosFilm extends React.Component { } +export = IoIosFilm; diff --git a/types/react-icons/lib/io/ios-flag-outline.d.ts b/types/react-icons/lib/io/ios-flag-outline.d.ts index f602c44993..33066e4133 100644 --- a/types/react-icons/lib/io/ios-flag-outline.d.ts +++ b/types/react-icons/lib/io/ios-flag-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosFlagOutline extends React.Component { } +declare class IoIosFlagOutline extends React.Component { } +export = IoIosFlagOutline; diff --git a/types/react-icons/lib/io/ios-flag.d.ts b/types/react-icons/lib/io/ios-flag.d.ts index d6095c22f3..c6ed11469c 100644 --- a/types/react-icons/lib/io/ios-flag.d.ts +++ b/types/react-icons/lib/io/ios-flag.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosFlag extends React.Component { } +declare class IoIosFlag extends React.Component { } +export = IoIosFlag; diff --git a/types/react-icons/lib/io/ios-flame-outline.d.ts b/types/react-icons/lib/io/ios-flame-outline.d.ts index 0e8b7410e9..55c2c3bc85 100644 --- a/types/react-icons/lib/io/ios-flame-outline.d.ts +++ b/types/react-icons/lib/io/ios-flame-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosFlameOutline extends React.Component { } +declare class IoIosFlameOutline extends React.Component { } +export = IoIosFlameOutline; diff --git a/types/react-icons/lib/io/ios-flame.d.ts b/types/react-icons/lib/io/ios-flame.d.ts index a21289710b..c538dca10c 100644 --- a/types/react-icons/lib/io/ios-flame.d.ts +++ b/types/react-icons/lib/io/ios-flame.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosFlame extends React.Component { } +declare class IoIosFlame extends React.Component { } +export = IoIosFlame; diff --git a/types/react-icons/lib/io/ios-flask-outline.d.ts b/types/react-icons/lib/io/ios-flask-outline.d.ts index 2082d7a326..3f746b4a81 100644 --- a/types/react-icons/lib/io/ios-flask-outline.d.ts +++ b/types/react-icons/lib/io/ios-flask-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosFlaskOutline extends React.Component { } +declare class IoIosFlaskOutline extends React.Component { } +export = IoIosFlaskOutline; diff --git a/types/react-icons/lib/io/ios-flask.d.ts b/types/react-icons/lib/io/ios-flask.d.ts index 0b622f18e2..721abe351c 100644 --- a/types/react-icons/lib/io/ios-flask.d.ts +++ b/types/react-icons/lib/io/ios-flask.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosFlask extends React.Component { } +declare class IoIosFlask extends React.Component { } +export = IoIosFlask; diff --git a/types/react-icons/lib/io/ios-flower-outline.d.ts b/types/react-icons/lib/io/ios-flower-outline.d.ts index 7886cbc193..4f7133078e 100644 --- a/types/react-icons/lib/io/ios-flower-outline.d.ts +++ b/types/react-icons/lib/io/ios-flower-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosFlowerOutline extends React.Component { } +declare class IoIosFlowerOutline extends React.Component { } +export = IoIosFlowerOutline; diff --git a/types/react-icons/lib/io/ios-flower.d.ts b/types/react-icons/lib/io/ios-flower.d.ts index 9e1ba1e0bc..3f016b41e3 100644 --- a/types/react-icons/lib/io/ios-flower.d.ts +++ b/types/react-icons/lib/io/ios-flower.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosFlower extends React.Component { } +declare class IoIosFlower extends React.Component { } +export = IoIosFlower; diff --git a/types/react-icons/lib/io/ios-folder-outline.d.ts b/types/react-icons/lib/io/ios-folder-outline.d.ts index 43c60dc202..a081df582e 100644 --- a/types/react-icons/lib/io/ios-folder-outline.d.ts +++ b/types/react-icons/lib/io/ios-folder-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosFolderOutline extends React.Component { } +declare class IoIosFolderOutline extends React.Component { } +export = IoIosFolderOutline; diff --git a/types/react-icons/lib/io/ios-folder.d.ts b/types/react-icons/lib/io/ios-folder.d.ts index 785495d440..6060787ea9 100644 --- a/types/react-icons/lib/io/ios-folder.d.ts +++ b/types/react-icons/lib/io/ios-folder.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosFolder extends React.Component { } +declare class IoIosFolder extends React.Component { } +export = IoIosFolder; diff --git a/types/react-icons/lib/io/ios-football-outline.d.ts b/types/react-icons/lib/io/ios-football-outline.d.ts index 6f669b0cd0..eb888637dd 100644 --- a/types/react-icons/lib/io/ios-football-outline.d.ts +++ b/types/react-icons/lib/io/ios-football-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosFootballOutline extends React.Component { } +declare class IoIosFootballOutline extends React.Component { } +export = IoIosFootballOutline; diff --git a/types/react-icons/lib/io/ios-football.d.ts b/types/react-icons/lib/io/ios-football.d.ts index 0ece60db03..8683cbbfe5 100644 --- a/types/react-icons/lib/io/ios-football.d.ts +++ b/types/react-icons/lib/io/ios-football.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosFootball extends React.Component { } +declare class IoIosFootball extends React.Component { } +export = IoIosFootball; diff --git a/types/react-icons/lib/io/ios-game-controller-a-outline.d.ts b/types/react-icons/lib/io/ios-game-controller-a-outline.d.ts index 200c64a673..175d7980de 100644 --- a/types/react-icons/lib/io/ios-game-controller-a-outline.d.ts +++ b/types/react-icons/lib/io/ios-game-controller-a-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosGameControllerAOutline extends React.Component { } +declare class IoIosGameControllerAOutline extends React.Component { } +export = IoIosGameControllerAOutline; diff --git a/types/react-icons/lib/io/ios-game-controller-a.d.ts b/types/react-icons/lib/io/ios-game-controller-a.d.ts index e9e7048f94..4476bd0887 100644 --- a/types/react-icons/lib/io/ios-game-controller-a.d.ts +++ b/types/react-icons/lib/io/ios-game-controller-a.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosGameControllerA extends React.Component { } +declare class IoIosGameControllerA extends React.Component { } +export = IoIosGameControllerA; diff --git a/types/react-icons/lib/io/ios-game-controller-b-outline.d.ts b/types/react-icons/lib/io/ios-game-controller-b-outline.d.ts index d7d82be788..b7bca018ab 100644 --- a/types/react-icons/lib/io/ios-game-controller-b-outline.d.ts +++ b/types/react-icons/lib/io/ios-game-controller-b-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosGameControllerBOutline extends React.Component { } +declare class IoIosGameControllerBOutline extends React.Component { } +export = IoIosGameControllerBOutline; diff --git a/types/react-icons/lib/io/ios-game-controller-b.d.ts b/types/react-icons/lib/io/ios-game-controller-b.d.ts index 6e5435416c..59cefc38a8 100644 --- a/types/react-icons/lib/io/ios-game-controller-b.d.ts +++ b/types/react-icons/lib/io/ios-game-controller-b.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosGameControllerB extends React.Component { } +declare class IoIosGameControllerB extends React.Component { } +export = IoIosGameControllerB; diff --git a/types/react-icons/lib/io/ios-gear-outline.d.ts b/types/react-icons/lib/io/ios-gear-outline.d.ts index 22181a1a55..a442d8731e 100644 --- a/types/react-icons/lib/io/ios-gear-outline.d.ts +++ b/types/react-icons/lib/io/ios-gear-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosGearOutline extends React.Component { } +declare class IoIosGearOutline extends React.Component { } +export = IoIosGearOutline; diff --git a/types/react-icons/lib/io/ios-gear.d.ts b/types/react-icons/lib/io/ios-gear.d.ts index e899faa7a9..25211de0c8 100644 --- a/types/react-icons/lib/io/ios-gear.d.ts +++ b/types/react-icons/lib/io/ios-gear.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosGear extends React.Component { } +declare class IoIosGear extends React.Component { } +export = IoIosGear; diff --git a/types/react-icons/lib/io/ios-glasses-outline.d.ts b/types/react-icons/lib/io/ios-glasses-outline.d.ts index 049fc5bd95..e49413038b 100644 --- a/types/react-icons/lib/io/ios-glasses-outline.d.ts +++ b/types/react-icons/lib/io/ios-glasses-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosGlassesOutline extends React.Component { } +declare class IoIosGlassesOutline extends React.Component { } +export = IoIosGlassesOutline; diff --git a/types/react-icons/lib/io/ios-glasses.d.ts b/types/react-icons/lib/io/ios-glasses.d.ts index 585312b1f7..0b8a7ec4d0 100644 --- a/types/react-icons/lib/io/ios-glasses.d.ts +++ b/types/react-icons/lib/io/ios-glasses.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosGlasses extends React.Component { } +declare class IoIosGlasses extends React.Component { } +export = IoIosGlasses; diff --git a/types/react-icons/lib/io/ios-grid-view-outline.d.ts b/types/react-icons/lib/io/ios-grid-view-outline.d.ts index f1cf87b7d6..705beee99d 100644 --- a/types/react-icons/lib/io/ios-grid-view-outline.d.ts +++ b/types/react-icons/lib/io/ios-grid-view-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosGridViewOutline extends React.Component { } +declare class IoIosGridViewOutline extends React.Component { } +export = IoIosGridViewOutline; diff --git a/types/react-icons/lib/io/ios-grid-view.d.ts b/types/react-icons/lib/io/ios-grid-view.d.ts index 00f6bb916c..9331805663 100644 --- a/types/react-icons/lib/io/ios-grid-view.d.ts +++ b/types/react-icons/lib/io/ios-grid-view.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosGridView extends React.Component { } +declare class IoIosGridView extends React.Component { } +export = IoIosGridView; diff --git a/types/react-icons/lib/io/ios-heart-outline.d.ts b/types/react-icons/lib/io/ios-heart-outline.d.ts index 354c5543f3..35398f9c6a 100644 --- a/types/react-icons/lib/io/ios-heart-outline.d.ts +++ b/types/react-icons/lib/io/ios-heart-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosHeartOutline extends React.Component { } +declare class IoIosHeartOutline extends React.Component { } +export = IoIosHeartOutline; diff --git a/types/react-icons/lib/io/ios-heart.d.ts b/types/react-icons/lib/io/ios-heart.d.ts index 254ce938f3..b9aa1e9f0e 100644 --- a/types/react-icons/lib/io/ios-heart.d.ts +++ b/types/react-icons/lib/io/ios-heart.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosHeart extends React.Component { } +declare class IoIosHeart extends React.Component { } +export = IoIosHeart; diff --git a/types/react-icons/lib/io/ios-help-empty.d.ts b/types/react-icons/lib/io/ios-help-empty.d.ts index cd94f6ceed..66bf6aae72 100644 --- a/types/react-icons/lib/io/ios-help-empty.d.ts +++ b/types/react-icons/lib/io/ios-help-empty.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosHelpEmpty extends React.Component { } +declare class IoIosHelpEmpty extends React.Component { } +export = IoIosHelpEmpty; diff --git a/types/react-icons/lib/io/ios-help-outline.d.ts b/types/react-icons/lib/io/ios-help-outline.d.ts index 3e73ec588b..0dd7359a78 100644 --- a/types/react-icons/lib/io/ios-help-outline.d.ts +++ b/types/react-icons/lib/io/ios-help-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosHelpOutline extends React.Component { } +declare class IoIosHelpOutline extends React.Component { } +export = IoIosHelpOutline; diff --git a/types/react-icons/lib/io/ios-help.d.ts b/types/react-icons/lib/io/ios-help.d.ts index 00ede643d8..e62f96ad19 100644 --- a/types/react-icons/lib/io/ios-help.d.ts +++ b/types/react-icons/lib/io/ios-help.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosHelp extends React.Component { } +declare class IoIosHelp extends React.Component { } +export = IoIosHelp; diff --git a/types/react-icons/lib/io/ios-home-outline.d.ts b/types/react-icons/lib/io/ios-home-outline.d.ts index 17f1432ff8..6b5123859e 100644 --- a/types/react-icons/lib/io/ios-home-outline.d.ts +++ b/types/react-icons/lib/io/ios-home-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosHomeOutline extends React.Component { } +declare class IoIosHomeOutline extends React.Component { } +export = IoIosHomeOutline; diff --git a/types/react-icons/lib/io/ios-home.d.ts b/types/react-icons/lib/io/ios-home.d.ts index c0f80ecaf3..acd8d81c24 100644 --- a/types/react-icons/lib/io/ios-home.d.ts +++ b/types/react-icons/lib/io/ios-home.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosHome extends React.Component { } +declare class IoIosHome extends React.Component { } +export = IoIosHome; diff --git a/types/react-icons/lib/io/ios-infinite-outline.d.ts b/types/react-icons/lib/io/ios-infinite-outline.d.ts index 0b043764ee..b860546ab4 100644 --- a/types/react-icons/lib/io/ios-infinite-outline.d.ts +++ b/types/react-icons/lib/io/ios-infinite-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosInfiniteOutline extends React.Component { } +declare class IoIosInfiniteOutline extends React.Component { } +export = IoIosInfiniteOutline; diff --git a/types/react-icons/lib/io/ios-infinite.d.ts b/types/react-icons/lib/io/ios-infinite.d.ts index bf78e5f95b..042c5afee0 100644 --- a/types/react-icons/lib/io/ios-infinite.d.ts +++ b/types/react-icons/lib/io/ios-infinite.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosInfinite extends React.Component { } +declare class IoIosInfinite extends React.Component { } +export = IoIosInfinite; diff --git a/types/react-icons/lib/io/ios-informatempty.d.ts b/types/react-icons/lib/io/ios-informatempty.d.ts index 34c1b0c19c..5de872ba67 100644 --- a/types/react-icons/lib/io/ios-informatempty.d.ts +++ b/types/react-icons/lib/io/ios-informatempty.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosInformatempty extends React.Component { } +declare class IoIosInformatempty extends React.Component { } +export = IoIosInformatempty; diff --git a/types/react-icons/lib/io/ios-information.d.ts b/types/react-icons/lib/io/ios-information.d.ts index f6e3295ac3..16fe378595 100644 --- a/types/react-icons/lib/io/ios-information.d.ts +++ b/types/react-icons/lib/io/ios-information.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosInformation extends React.Component { } +declare class IoIosInformation extends React.Component { } +export = IoIosInformation; diff --git a/types/react-icons/lib/io/ios-informatoutline.d.ts b/types/react-icons/lib/io/ios-informatoutline.d.ts index 038ce93a28..836c4124cf 100644 --- a/types/react-icons/lib/io/ios-informatoutline.d.ts +++ b/types/react-icons/lib/io/ios-informatoutline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosInformatoutline extends React.Component { } +declare class IoIosInformatoutline extends React.Component { } +export = IoIosInformatoutline; diff --git a/types/react-icons/lib/io/ios-ionic-outline.d.ts b/types/react-icons/lib/io/ios-ionic-outline.d.ts index bd42bf2316..54f711ed77 100644 --- a/types/react-icons/lib/io/ios-ionic-outline.d.ts +++ b/types/react-icons/lib/io/ios-ionic-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosIonicOutline extends React.Component { } +declare class IoIosIonicOutline extends React.Component { } +export = IoIosIonicOutline; diff --git a/types/react-icons/lib/io/ios-keypad-outline.d.ts b/types/react-icons/lib/io/ios-keypad-outline.d.ts index 9adff455e3..eeafb0c854 100644 --- a/types/react-icons/lib/io/ios-keypad-outline.d.ts +++ b/types/react-icons/lib/io/ios-keypad-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosKeypadOutline extends React.Component { } +declare class IoIosKeypadOutline extends React.Component { } +export = IoIosKeypadOutline; diff --git a/types/react-icons/lib/io/ios-keypad.d.ts b/types/react-icons/lib/io/ios-keypad.d.ts index a804cf857f..6e92f86ed6 100644 --- a/types/react-icons/lib/io/ios-keypad.d.ts +++ b/types/react-icons/lib/io/ios-keypad.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosKeypad extends React.Component { } +declare class IoIosKeypad extends React.Component { } +export = IoIosKeypad; diff --git a/types/react-icons/lib/io/ios-lightbulb-outline.d.ts b/types/react-icons/lib/io/ios-lightbulb-outline.d.ts index 4c92bdd5d6..70985fda1c 100644 --- a/types/react-icons/lib/io/ios-lightbulb-outline.d.ts +++ b/types/react-icons/lib/io/ios-lightbulb-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosLightbulbOutline extends React.Component { } +declare class IoIosLightbulbOutline extends React.Component { } +export = IoIosLightbulbOutline; diff --git a/types/react-icons/lib/io/ios-lightbulb.d.ts b/types/react-icons/lib/io/ios-lightbulb.d.ts index a7bbb177bb..da9af32ea4 100644 --- a/types/react-icons/lib/io/ios-lightbulb.d.ts +++ b/types/react-icons/lib/io/ios-lightbulb.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosLightbulb extends React.Component { } +declare class IoIosLightbulb extends React.Component { } +export = IoIosLightbulb; diff --git a/types/react-icons/lib/io/ios-list-outline.d.ts b/types/react-icons/lib/io/ios-list-outline.d.ts index 839d753887..5988c619a3 100644 --- a/types/react-icons/lib/io/ios-list-outline.d.ts +++ b/types/react-icons/lib/io/ios-list-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosListOutline extends React.Component { } +declare class IoIosListOutline extends React.Component { } +export = IoIosListOutline; diff --git a/types/react-icons/lib/io/ios-list.d.ts b/types/react-icons/lib/io/ios-list.d.ts index 9789a06dc7..931104f063 100644 --- a/types/react-icons/lib/io/ios-list.d.ts +++ b/types/react-icons/lib/io/ios-list.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosList extends React.Component { } +declare class IoIosList extends React.Component { } +export = IoIosList; diff --git a/types/react-icons/lib/io/ios-location.d.ts b/types/react-icons/lib/io/ios-location.d.ts index 617b853698..c8082c6164 100644 --- a/types/react-icons/lib/io/ios-location.d.ts +++ b/types/react-icons/lib/io/ios-location.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosLocation extends React.Component { } +declare class IoIosLocation extends React.Component { } +export = IoIosLocation; diff --git a/types/react-icons/lib/io/ios-locatoutline.d.ts b/types/react-icons/lib/io/ios-locatoutline.d.ts index 141e72e594..52c091939f 100644 --- a/types/react-icons/lib/io/ios-locatoutline.d.ts +++ b/types/react-icons/lib/io/ios-locatoutline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosLocatoutline extends React.Component { } +declare class IoIosLocatoutline extends React.Component { } +export = IoIosLocatoutline; diff --git a/types/react-icons/lib/io/ios-locked-outline.d.ts b/types/react-icons/lib/io/ios-locked-outline.d.ts index 3f0855a38d..c4724ffbda 100644 --- a/types/react-icons/lib/io/ios-locked-outline.d.ts +++ b/types/react-icons/lib/io/ios-locked-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosLockedOutline extends React.Component { } +declare class IoIosLockedOutline extends React.Component { } +export = IoIosLockedOutline; diff --git a/types/react-icons/lib/io/ios-locked.d.ts b/types/react-icons/lib/io/ios-locked.d.ts index b22a3238d4..a5cf385852 100644 --- a/types/react-icons/lib/io/ios-locked.d.ts +++ b/types/react-icons/lib/io/ios-locked.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosLocked extends React.Component { } +declare class IoIosLocked extends React.Component { } +export = IoIosLocked; diff --git a/types/react-icons/lib/io/ios-loop-strong.d.ts b/types/react-icons/lib/io/ios-loop-strong.d.ts index 900c41d788..3d4939fdc7 100644 --- a/types/react-icons/lib/io/ios-loop-strong.d.ts +++ b/types/react-icons/lib/io/ios-loop-strong.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosLoopStrong extends React.Component { } +declare class IoIosLoopStrong extends React.Component { } +export = IoIosLoopStrong; diff --git a/types/react-icons/lib/io/ios-loop.d.ts b/types/react-icons/lib/io/ios-loop.d.ts index 0235e4f546..9055d01a4a 100644 --- a/types/react-icons/lib/io/ios-loop.d.ts +++ b/types/react-icons/lib/io/ios-loop.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosLoop extends React.Component { } +declare class IoIosLoop extends React.Component { } +export = IoIosLoop; diff --git a/types/react-icons/lib/io/ios-medical-outline.d.ts b/types/react-icons/lib/io/ios-medical-outline.d.ts index dadb2e61ae..63cf7215ea 100644 --- a/types/react-icons/lib/io/ios-medical-outline.d.ts +++ b/types/react-icons/lib/io/ios-medical-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosMedicalOutline extends React.Component { } +declare class IoIosMedicalOutline extends React.Component { } +export = IoIosMedicalOutline; diff --git a/types/react-icons/lib/io/ios-medical.d.ts b/types/react-icons/lib/io/ios-medical.d.ts index 1d63e24694..2772059c0d 100644 --- a/types/react-icons/lib/io/ios-medical.d.ts +++ b/types/react-icons/lib/io/ios-medical.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosMedical extends React.Component { } +declare class IoIosMedical extends React.Component { } +export = IoIosMedical; diff --git a/types/react-icons/lib/io/ios-medkit-outline.d.ts b/types/react-icons/lib/io/ios-medkit-outline.d.ts index 367cb88b6f..00492e10aa 100644 --- a/types/react-icons/lib/io/ios-medkit-outline.d.ts +++ b/types/react-icons/lib/io/ios-medkit-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosMedkitOutline extends React.Component { } +declare class IoIosMedkitOutline extends React.Component { } +export = IoIosMedkitOutline; diff --git a/types/react-icons/lib/io/ios-medkit.d.ts b/types/react-icons/lib/io/ios-medkit.d.ts index bf5d378f58..72255a3bbe 100644 --- a/types/react-icons/lib/io/ios-medkit.d.ts +++ b/types/react-icons/lib/io/ios-medkit.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosMedkit extends React.Component { } +declare class IoIosMedkit extends React.Component { } +export = IoIosMedkit; diff --git a/types/react-icons/lib/io/ios-mic-off.d.ts b/types/react-icons/lib/io/ios-mic-off.d.ts index 093cc13897..d12dd27d16 100644 --- a/types/react-icons/lib/io/ios-mic-off.d.ts +++ b/types/react-icons/lib/io/ios-mic-off.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosMicOff extends React.Component { } +declare class IoIosMicOff extends React.Component { } +export = IoIosMicOff; diff --git a/types/react-icons/lib/io/ios-mic-outline.d.ts b/types/react-icons/lib/io/ios-mic-outline.d.ts index 1e2a4f7ca6..a115747ba9 100644 --- a/types/react-icons/lib/io/ios-mic-outline.d.ts +++ b/types/react-icons/lib/io/ios-mic-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosMicOutline extends React.Component { } +declare class IoIosMicOutline extends React.Component { } +export = IoIosMicOutline; diff --git a/types/react-icons/lib/io/ios-mic.d.ts b/types/react-icons/lib/io/ios-mic.d.ts index a561e50887..f017a3e55a 100644 --- a/types/react-icons/lib/io/ios-mic.d.ts +++ b/types/react-icons/lib/io/ios-mic.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosMic extends React.Component { } +declare class IoIosMic extends React.Component { } +export = IoIosMic; diff --git a/types/react-icons/lib/io/ios-minus-empty.d.ts b/types/react-icons/lib/io/ios-minus-empty.d.ts index d33c1a6e8c..a7e6545790 100644 --- a/types/react-icons/lib/io/ios-minus-empty.d.ts +++ b/types/react-icons/lib/io/ios-minus-empty.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosMinusEmpty extends React.Component { } +declare class IoIosMinusEmpty extends React.Component { } +export = IoIosMinusEmpty; diff --git a/types/react-icons/lib/io/ios-minus-outline.d.ts b/types/react-icons/lib/io/ios-minus-outline.d.ts index d7373a37df..b49b0d3293 100644 --- a/types/react-icons/lib/io/ios-minus-outline.d.ts +++ b/types/react-icons/lib/io/ios-minus-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosMinusOutline extends React.Component { } +declare class IoIosMinusOutline extends React.Component { } +export = IoIosMinusOutline; diff --git a/types/react-icons/lib/io/ios-minus.d.ts b/types/react-icons/lib/io/ios-minus.d.ts index abc0a2679e..8b5b596a71 100644 --- a/types/react-icons/lib/io/ios-minus.d.ts +++ b/types/react-icons/lib/io/ios-minus.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosMinus extends React.Component { } +declare class IoIosMinus extends React.Component { } +export = IoIosMinus; diff --git a/types/react-icons/lib/io/ios-monitor-outline.d.ts b/types/react-icons/lib/io/ios-monitor-outline.d.ts index 8dd207f86e..a12e192cc2 100644 --- a/types/react-icons/lib/io/ios-monitor-outline.d.ts +++ b/types/react-icons/lib/io/ios-monitor-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosMonitorOutline extends React.Component { } +declare class IoIosMonitorOutline extends React.Component { } +export = IoIosMonitorOutline; diff --git a/types/react-icons/lib/io/ios-monitor.d.ts b/types/react-icons/lib/io/ios-monitor.d.ts index 965a9b5d3b..5c15845b90 100644 --- a/types/react-icons/lib/io/ios-monitor.d.ts +++ b/types/react-icons/lib/io/ios-monitor.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosMonitor extends React.Component { } +declare class IoIosMonitor extends React.Component { } +export = IoIosMonitor; diff --git a/types/react-icons/lib/io/ios-moon-outline.d.ts b/types/react-icons/lib/io/ios-moon-outline.d.ts index e35e94911f..969a448406 100644 --- a/types/react-icons/lib/io/ios-moon-outline.d.ts +++ b/types/react-icons/lib/io/ios-moon-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosMoonOutline extends React.Component { } +declare class IoIosMoonOutline extends React.Component { } +export = IoIosMoonOutline; diff --git a/types/react-icons/lib/io/ios-moon.d.ts b/types/react-icons/lib/io/ios-moon.d.ts index cee7a782f1..b980bf0579 100644 --- a/types/react-icons/lib/io/ios-moon.d.ts +++ b/types/react-icons/lib/io/ios-moon.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosMoon extends React.Component { } +declare class IoIosMoon extends React.Component { } +export = IoIosMoon; diff --git a/types/react-icons/lib/io/ios-more-outline.d.ts b/types/react-icons/lib/io/ios-more-outline.d.ts index a5a83f41cf..225f87ad5e 100644 --- a/types/react-icons/lib/io/ios-more-outline.d.ts +++ b/types/react-icons/lib/io/ios-more-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosMoreOutline extends React.Component { } +declare class IoIosMoreOutline extends React.Component { } +export = IoIosMoreOutline; diff --git a/types/react-icons/lib/io/ios-more.d.ts b/types/react-icons/lib/io/ios-more.d.ts index 9fb63209db..0f980fc024 100644 --- a/types/react-icons/lib/io/ios-more.d.ts +++ b/types/react-icons/lib/io/ios-more.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosMore extends React.Component { } +declare class IoIosMore extends React.Component { } +export = IoIosMore; diff --git a/types/react-icons/lib/io/ios-musical-note.d.ts b/types/react-icons/lib/io/ios-musical-note.d.ts index 123b990474..1558f0f2cb 100644 --- a/types/react-icons/lib/io/ios-musical-note.d.ts +++ b/types/react-icons/lib/io/ios-musical-note.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosMusicalNote extends React.Component { } +declare class IoIosMusicalNote extends React.Component { } +export = IoIosMusicalNote; diff --git a/types/react-icons/lib/io/ios-musical-notes.d.ts b/types/react-icons/lib/io/ios-musical-notes.d.ts index 54daf1715e..5669628bea 100644 --- a/types/react-icons/lib/io/ios-musical-notes.d.ts +++ b/types/react-icons/lib/io/ios-musical-notes.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosMusicalNotes extends React.Component { } +declare class IoIosMusicalNotes extends React.Component { } +export = IoIosMusicalNotes; diff --git a/types/react-icons/lib/io/ios-navigate-outline.d.ts b/types/react-icons/lib/io/ios-navigate-outline.d.ts index daaafc5c76..7fef63a930 100644 --- a/types/react-icons/lib/io/ios-navigate-outline.d.ts +++ b/types/react-icons/lib/io/ios-navigate-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosNavigateOutline extends React.Component { } +declare class IoIosNavigateOutline extends React.Component { } +export = IoIosNavigateOutline; diff --git a/types/react-icons/lib/io/ios-navigate.d.ts b/types/react-icons/lib/io/ios-navigate.d.ts index 3a8a955fa6..499f1712a5 100644 --- a/types/react-icons/lib/io/ios-navigate.d.ts +++ b/types/react-icons/lib/io/ios-navigate.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosNavigate extends React.Component { } +declare class IoIosNavigate extends React.Component { } +export = IoIosNavigate; diff --git a/types/react-icons/lib/io/ios-nutrition.d.ts b/types/react-icons/lib/io/ios-nutrition.d.ts index 19b5f0eae6..ee8c95bfd7 100644 --- a/types/react-icons/lib/io/ios-nutrition.d.ts +++ b/types/react-icons/lib/io/ios-nutrition.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosNutrition extends React.Component { } +declare class IoIosNutrition extends React.Component { } +export = IoIosNutrition; diff --git a/types/react-icons/lib/io/ios-nutritoutline.d.ts b/types/react-icons/lib/io/ios-nutritoutline.d.ts index 9ce2ea6d24..5942c17ae5 100644 --- a/types/react-icons/lib/io/ios-nutritoutline.d.ts +++ b/types/react-icons/lib/io/ios-nutritoutline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosNutritoutline extends React.Component { } +declare class IoIosNutritoutline extends React.Component { } +export = IoIosNutritoutline; diff --git a/types/react-icons/lib/io/ios-paper-outline.d.ts b/types/react-icons/lib/io/ios-paper-outline.d.ts index f491c2a055..d1579a4653 100644 --- a/types/react-icons/lib/io/ios-paper-outline.d.ts +++ b/types/react-icons/lib/io/ios-paper-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosPaperOutline extends React.Component { } +declare class IoIosPaperOutline extends React.Component { } +export = IoIosPaperOutline; diff --git a/types/react-icons/lib/io/ios-paper.d.ts b/types/react-icons/lib/io/ios-paper.d.ts index bf98a1330d..8213cddccb 100644 --- a/types/react-icons/lib/io/ios-paper.d.ts +++ b/types/react-icons/lib/io/ios-paper.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosPaper extends React.Component { } +declare class IoIosPaper extends React.Component { } +export = IoIosPaper; diff --git a/types/react-icons/lib/io/ios-paperplane-outline.d.ts b/types/react-icons/lib/io/ios-paperplane-outline.d.ts index 381b337e35..5d04a87a3b 100644 --- a/types/react-icons/lib/io/ios-paperplane-outline.d.ts +++ b/types/react-icons/lib/io/ios-paperplane-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosPaperplaneOutline extends React.Component { } +declare class IoIosPaperplaneOutline extends React.Component { } +export = IoIosPaperplaneOutline; diff --git a/types/react-icons/lib/io/ios-paperplane.d.ts b/types/react-icons/lib/io/ios-paperplane.d.ts index 3999ec063c..180221081d 100644 --- a/types/react-icons/lib/io/ios-paperplane.d.ts +++ b/types/react-icons/lib/io/ios-paperplane.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosPaperplane extends React.Component { } +declare class IoIosPaperplane extends React.Component { } +export = IoIosPaperplane; diff --git a/types/react-icons/lib/io/ios-partlysunny-outline.d.ts b/types/react-icons/lib/io/ios-partlysunny-outline.d.ts index 96fddf3405..c0f6459de8 100644 --- a/types/react-icons/lib/io/ios-partlysunny-outline.d.ts +++ b/types/react-icons/lib/io/ios-partlysunny-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosPartlysunnyOutline extends React.Component { } +declare class IoIosPartlysunnyOutline extends React.Component { } +export = IoIosPartlysunnyOutline; diff --git a/types/react-icons/lib/io/ios-partlysunny.d.ts b/types/react-icons/lib/io/ios-partlysunny.d.ts index f0f7b24a0f..569d0bc712 100644 --- a/types/react-icons/lib/io/ios-partlysunny.d.ts +++ b/types/react-icons/lib/io/ios-partlysunny.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosPartlysunny extends React.Component { } +declare class IoIosPartlysunny extends React.Component { } +export = IoIosPartlysunny; diff --git a/types/react-icons/lib/io/ios-pause-outline.d.ts b/types/react-icons/lib/io/ios-pause-outline.d.ts index a3c096ec70..97bd9b6790 100644 --- a/types/react-icons/lib/io/ios-pause-outline.d.ts +++ b/types/react-icons/lib/io/ios-pause-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosPauseOutline extends React.Component { } +declare class IoIosPauseOutline extends React.Component { } +export = IoIosPauseOutline; diff --git a/types/react-icons/lib/io/ios-pause.d.ts b/types/react-icons/lib/io/ios-pause.d.ts index 5be0dbb44e..414c36c5ee 100644 --- a/types/react-icons/lib/io/ios-pause.d.ts +++ b/types/react-icons/lib/io/ios-pause.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosPause extends React.Component { } +declare class IoIosPause extends React.Component { } +export = IoIosPause; diff --git a/types/react-icons/lib/io/ios-paw-outline.d.ts b/types/react-icons/lib/io/ios-paw-outline.d.ts index 59ff2ba1f0..b6dc0e217b 100644 --- a/types/react-icons/lib/io/ios-paw-outline.d.ts +++ b/types/react-icons/lib/io/ios-paw-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosPawOutline extends React.Component { } +declare class IoIosPawOutline extends React.Component { } +export = IoIosPawOutline; diff --git a/types/react-icons/lib/io/ios-paw.d.ts b/types/react-icons/lib/io/ios-paw.d.ts index 8907243697..80db78ab15 100644 --- a/types/react-icons/lib/io/ios-paw.d.ts +++ b/types/react-icons/lib/io/ios-paw.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosPaw extends React.Component { } +declare class IoIosPaw extends React.Component { } +export = IoIosPaw; diff --git a/types/react-icons/lib/io/ios-people-outline.d.ts b/types/react-icons/lib/io/ios-people-outline.d.ts index fca7beebf0..d7b2d3b21b 100644 --- a/types/react-icons/lib/io/ios-people-outline.d.ts +++ b/types/react-icons/lib/io/ios-people-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosPeopleOutline extends React.Component { } +declare class IoIosPeopleOutline extends React.Component { } +export = IoIosPeopleOutline; diff --git a/types/react-icons/lib/io/ios-people.d.ts b/types/react-icons/lib/io/ios-people.d.ts index 47167ca242..d80eb07bea 100644 --- a/types/react-icons/lib/io/ios-people.d.ts +++ b/types/react-icons/lib/io/ios-people.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosPeople extends React.Component { } +declare class IoIosPeople extends React.Component { } +export = IoIosPeople; diff --git a/types/react-icons/lib/io/ios-person-outline.d.ts b/types/react-icons/lib/io/ios-person-outline.d.ts index d9dcad6337..d3418bba82 100644 --- a/types/react-icons/lib/io/ios-person-outline.d.ts +++ b/types/react-icons/lib/io/ios-person-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosPersonOutline extends React.Component { } +declare class IoIosPersonOutline extends React.Component { } +export = IoIosPersonOutline; diff --git a/types/react-icons/lib/io/ios-person.d.ts b/types/react-icons/lib/io/ios-person.d.ts index c0a721cdc9..742a75f87f 100644 --- a/types/react-icons/lib/io/ios-person.d.ts +++ b/types/react-icons/lib/io/ios-person.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosPerson extends React.Component { } +declare class IoIosPerson extends React.Component { } +export = IoIosPerson; diff --git a/types/react-icons/lib/io/ios-personadd-outline.d.ts b/types/react-icons/lib/io/ios-personadd-outline.d.ts index 0c2ef41134..da6f7ad817 100644 --- a/types/react-icons/lib/io/ios-personadd-outline.d.ts +++ b/types/react-icons/lib/io/ios-personadd-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosPersonaddOutline extends React.Component { } +declare class IoIosPersonaddOutline extends React.Component { } +export = IoIosPersonaddOutline; diff --git a/types/react-icons/lib/io/ios-personadd.d.ts b/types/react-icons/lib/io/ios-personadd.d.ts index 76064513f6..2c2312066b 100644 --- a/types/react-icons/lib/io/ios-personadd.d.ts +++ b/types/react-icons/lib/io/ios-personadd.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosPersonadd extends React.Component { } +declare class IoIosPersonadd extends React.Component { } +export = IoIosPersonadd; diff --git a/types/react-icons/lib/io/ios-photos-outline.d.ts b/types/react-icons/lib/io/ios-photos-outline.d.ts index b6bcf6e60a..95625f46dc 100644 --- a/types/react-icons/lib/io/ios-photos-outline.d.ts +++ b/types/react-icons/lib/io/ios-photos-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosPhotosOutline extends React.Component { } +declare class IoIosPhotosOutline extends React.Component { } +export = IoIosPhotosOutline; diff --git a/types/react-icons/lib/io/ios-photos.d.ts b/types/react-icons/lib/io/ios-photos.d.ts index 1f4a1d7b0a..938e0fc00b 100644 --- a/types/react-icons/lib/io/ios-photos.d.ts +++ b/types/react-icons/lib/io/ios-photos.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosPhotos extends React.Component { } +declare class IoIosPhotos extends React.Component { } +export = IoIosPhotos; diff --git a/types/react-icons/lib/io/ios-pie-outline.d.ts b/types/react-icons/lib/io/ios-pie-outline.d.ts index a370ac6e6e..cbe879f3a3 100644 --- a/types/react-icons/lib/io/ios-pie-outline.d.ts +++ b/types/react-icons/lib/io/ios-pie-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosPieOutline extends React.Component { } +declare class IoIosPieOutline extends React.Component { } +export = IoIosPieOutline; diff --git a/types/react-icons/lib/io/ios-pie.d.ts b/types/react-icons/lib/io/ios-pie.d.ts index 4a1c78801a..0ac63e3ed9 100644 --- a/types/react-icons/lib/io/ios-pie.d.ts +++ b/types/react-icons/lib/io/ios-pie.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosPie extends React.Component { } +declare class IoIosPie extends React.Component { } +export = IoIosPie; diff --git a/types/react-icons/lib/io/ios-pint-outline.d.ts b/types/react-icons/lib/io/ios-pint-outline.d.ts index d400fd801a..f32a6650f3 100644 --- a/types/react-icons/lib/io/ios-pint-outline.d.ts +++ b/types/react-icons/lib/io/ios-pint-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosPintOutline extends React.Component { } +declare class IoIosPintOutline extends React.Component { } +export = IoIosPintOutline; diff --git a/types/react-icons/lib/io/ios-pint.d.ts b/types/react-icons/lib/io/ios-pint.d.ts index 21bd07ccd5..39f8fea7ba 100644 --- a/types/react-icons/lib/io/ios-pint.d.ts +++ b/types/react-icons/lib/io/ios-pint.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosPint extends React.Component { } +declare class IoIosPint extends React.Component { } +export = IoIosPint; diff --git a/types/react-icons/lib/io/ios-play-outline.d.ts b/types/react-icons/lib/io/ios-play-outline.d.ts index 4c7a550e46..9f2b845a65 100644 --- a/types/react-icons/lib/io/ios-play-outline.d.ts +++ b/types/react-icons/lib/io/ios-play-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosPlayOutline extends React.Component { } +declare class IoIosPlayOutline extends React.Component { } +export = IoIosPlayOutline; diff --git a/types/react-icons/lib/io/ios-play.d.ts b/types/react-icons/lib/io/ios-play.d.ts index 18f66a8f59..c4ea5f89df 100644 --- a/types/react-icons/lib/io/ios-play.d.ts +++ b/types/react-icons/lib/io/ios-play.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosPlay extends React.Component { } +declare class IoIosPlay extends React.Component { } +export = IoIosPlay; diff --git a/types/react-icons/lib/io/ios-plus-empty.d.ts b/types/react-icons/lib/io/ios-plus-empty.d.ts index a7235d6322..8b84b5fce5 100644 --- a/types/react-icons/lib/io/ios-plus-empty.d.ts +++ b/types/react-icons/lib/io/ios-plus-empty.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosPlusEmpty extends React.Component { } +declare class IoIosPlusEmpty extends React.Component { } +export = IoIosPlusEmpty; diff --git a/types/react-icons/lib/io/ios-plus-outline.d.ts b/types/react-icons/lib/io/ios-plus-outline.d.ts index 719bce1444..abe56b67b3 100644 --- a/types/react-icons/lib/io/ios-plus-outline.d.ts +++ b/types/react-icons/lib/io/ios-plus-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosPlusOutline extends React.Component { } +declare class IoIosPlusOutline extends React.Component { } +export = IoIosPlusOutline; diff --git a/types/react-icons/lib/io/ios-plus.d.ts b/types/react-icons/lib/io/ios-plus.d.ts index 7d29ea3f40..a873d41eb9 100644 --- a/types/react-icons/lib/io/ios-plus.d.ts +++ b/types/react-icons/lib/io/ios-plus.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosPlus extends React.Component { } +declare class IoIosPlus extends React.Component { } +export = IoIosPlus; diff --git a/types/react-icons/lib/io/ios-pricetag-outline.d.ts b/types/react-icons/lib/io/ios-pricetag-outline.d.ts index 23a4c0c869..b019c2f832 100644 --- a/types/react-icons/lib/io/ios-pricetag-outline.d.ts +++ b/types/react-icons/lib/io/ios-pricetag-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosPricetagOutline extends React.Component { } +declare class IoIosPricetagOutline extends React.Component { } +export = IoIosPricetagOutline; diff --git a/types/react-icons/lib/io/ios-pricetag.d.ts b/types/react-icons/lib/io/ios-pricetag.d.ts index 601743c434..e4de3e1503 100644 --- a/types/react-icons/lib/io/ios-pricetag.d.ts +++ b/types/react-icons/lib/io/ios-pricetag.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosPricetag extends React.Component { } +declare class IoIosPricetag extends React.Component { } +export = IoIosPricetag; diff --git a/types/react-icons/lib/io/ios-pricetags-outline.d.ts b/types/react-icons/lib/io/ios-pricetags-outline.d.ts index 0e1e574dac..b138f8dc86 100644 --- a/types/react-icons/lib/io/ios-pricetags-outline.d.ts +++ b/types/react-icons/lib/io/ios-pricetags-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosPricetagsOutline extends React.Component { } +declare class IoIosPricetagsOutline extends React.Component { } +export = IoIosPricetagsOutline; diff --git a/types/react-icons/lib/io/ios-pricetags.d.ts b/types/react-icons/lib/io/ios-pricetags.d.ts index 4cc3aebb75..6587e21167 100644 --- a/types/react-icons/lib/io/ios-pricetags.d.ts +++ b/types/react-icons/lib/io/ios-pricetags.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosPricetags extends React.Component { } +declare class IoIosPricetags extends React.Component { } +export = IoIosPricetags; diff --git a/types/react-icons/lib/io/ios-printer-outline.d.ts b/types/react-icons/lib/io/ios-printer-outline.d.ts index d20dcedadf..d6925cf18f 100644 --- a/types/react-icons/lib/io/ios-printer-outline.d.ts +++ b/types/react-icons/lib/io/ios-printer-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosPrinterOutline extends React.Component { } +declare class IoIosPrinterOutline extends React.Component { } +export = IoIosPrinterOutline; diff --git a/types/react-icons/lib/io/ios-printer.d.ts b/types/react-icons/lib/io/ios-printer.d.ts index dc9bccfb25..463ae865ba 100644 --- a/types/react-icons/lib/io/ios-printer.d.ts +++ b/types/react-icons/lib/io/ios-printer.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosPrinter extends React.Component { } +declare class IoIosPrinter extends React.Component { } +export = IoIosPrinter; diff --git a/types/react-icons/lib/io/ios-pulse-strong.d.ts b/types/react-icons/lib/io/ios-pulse-strong.d.ts index 8f7e12017a..c7cb6779bd 100644 --- a/types/react-icons/lib/io/ios-pulse-strong.d.ts +++ b/types/react-icons/lib/io/ios-pulse-strong.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosPulseStrong extends React.Component { } +declare class IoIosPulseStrong extends React.Component { } +export = IoIosPulseStrong; diff --git a/types/react-icons/lib/io/ios-pulse.d.ts b/types/react-icons/lib/io/ios-pulse.d.ts index a7ff149ddf..28069451ed 100644 --- a/types/react-icons/lib/io/ios-pulse.d.ts +++ b/types/react-icons/lib/io/ios-pulse.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosPulse extends React.Component { } +declare class IoIosPulse extends React.Component { } +export = IoIosPulse; diff --git a/types/react-icons/lib/io/ios-rainy-outline.d.ts b/types/react-icons/lib/io/ios-rainy-outline.d.ts index 7e283d1cb3..4a41260cc0 100644 --- a/types/react-icons/lib/io/ios-rainy-outline.d.ts +++ b/types/react-icons/lib/io/ios-rainy-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosRainyOutline extends React.Component { } +declare class IoIosRainyOutline extends React.Component { } +export = IoIosRainyOutline; diff --git a/types/react-icons/lib/io/ios-rainy.d.ts b/types/react-icons/lib/io/ios-rainy.d.ts index a701475ef0..ae4c36367e 100644 --- a/types/react-icons/lib/io/ios-rainy.d.ts +++ b/types/react-icons/lib/io/ios-rainy.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosRainy extends React.Component { } +declare class IoIosRainy extends React.Component { } +export = IoIosRainy; diff --git a/types/react-icons/lib/io/ios-recording-outline.d.ts b/types/react-icons/lib/io/ios-recording-outline.d.ts index 9fc2e6ffca..9b29082903 100644 --- a/types/react-icons/lib/io/ios-recording-outline.d.ts +++ b/types/react-icons/lib/io/ios-recording-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosRecordingOutline extends React.Component { } +declare class IoIosRecordingOutline extends React.Component { } +export = IoIosRecordingOutline; diff --git a/types/react-icons/lib/io/ios-recording.d.ts b/types/react-icons/lib/io/ios-recording.d.ts index 77d0e299cd..41f43eb0d2 100644 --- a/types/react-icons/lib/io/ios-recording.d.ts +++ b/types/react-icons/lib/io/ios-recording.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosRecording extends React.Component { } +declare class IoIosRecording extends React.Component { } +export = IoIosRecording; diff --git a/types/react-icons/lib/io/ios-redo-outline.d.ts b/types/react-icons/lib/io/ios-redo-outline.d.ts index 47bae67c99..5223876ed7 100644 --- a/types/react-icons/lib/io/ios-redo-outline.d.ts +++ b/types/react-icons/lib/io/ios-redo-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosRedoOutline extends React.Component { } +declare class IoIosRedoOutline extends React.Component { } +export = IoIosRedoOutline; diff --git a/types/react-icons/lib/io/ios-redo.d.ts b/types/react-icons/lib/io/ios-redo.d.ts index 0935996be6..cd7edf5608 100644 --- a/types/react-icons/lib/io/ios-redo.d.ts +++ b/types/react-icons/lib/io/ios-redo.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosRedo extends React.Component { } +declare class IoIosRedo extends React.Component { } +export = IoIosRedo; diff --git a/types/react-icons/lib/io/ios-refresh-empty.d.ts b/types/react-icons/lib/io/ios-refresh-empty.d.ts index 0e7f151339..52cf8d00f7 100644 --- a/types/react-icons/lib/io/ios-refresh-empty.d.ts +++ b/types/react-icons/lib/io/ios-refresh-empty.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosRefreshEmpty extends React.Component { } +declare class IoIosRefreshEmpty extends React.Component { } +export = IoIosRefreshEmpty; diff --git a/types/react-icons/lib/io/ios-refresh-outline.d.ts b/types/react-icons/lib/io/ios-refresh-outline.d.ts index 7679405065..f9678f6488 100644 --- a/types/react-icons/lib/io/ios-refresh-outline.d.ts +++ b/types/react-icons/lib/io/ios-refresh-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosRefreshOutline extends React.Component { } +declare class IoIosRefreshOutline extends React.Component { } +export = IoIosRefreshOutline; diff --git a/types/react-icons/lib/io/ios-refresh.d.ts b/types/react-icons/lib/io/ios-refresh.d.ts index 420affa507..303ee2a427 100644 --- a/types/react-icons/lib/io/ios-refresh.d.ts +++ b/types/react-icons/lib/io/ios-refresh.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosRefresh extends React.Component { } +declare class IoIosRefresh extends React.Component { } +export = IoIosRefresh; diff --git a/types/react-icons/lib/io/ios-reload.d.ts b/types/react-icons/lib/io/ios-reload.d.ts index 93e947db67..2a82caa3db 100644 --- a/types/react-icons/lib/io/ios-reload.d.ts +++ b/types/react-icons/lib/io/ios-reload.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosReload extends React.Component { } +declare class IoIosReload extends React.Component { } +export = IoIosReload; diff --git a/types/react-icons/lib/io/ios-reverse-camera-outline.d.ts b/types/react-icons/lib/io/ios-reverse-camera-outline.d.ts index 808d6ca0bf..1e3f277186 100644 --- a/types/react-icons/lib/io/ios-reverse-camera-outline.d.ts +++ b/types/react-icons/lib/io/ios-reverse-camera-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosReverseCameraOutline extends React.Component { } +declare class IoIosReverseCameraOutline extends React.Component { } +export = IoIosReverseCameraOutline; diff --git a/types/react-icons/lib/io/ios-reverse-camera.d.ts b/types/react-icons/lib/io/ios-reverse-camera.d.ts index 0e74f82ab0..ea5a99cf35 100644 --- a/types/react-icons/lib/io/ios-reverse-camera.d.ts +++ b/types/react-icons/lib/io/ios-reverse-camera.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosReverseCamera extends React.Component { } +declare class IoIosReverseCamera extends React.Component { } +export = IoIosReverseCamera; diff --git a/types/react-icons/lib/io/ios-rewind-outline.d.ts b/types/react-icons/lib/io/ios-rewind-outline.d.ts index dfc69fc86d..8c4435f4e3 100644 --- a/types/react-icons/lib/io/ios-rewind-outline.d.ts +++ b/types/react-icons/lib/io/ios-rewind-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosRewindOutline extends React.Component { } +declare class IoIosRewindOutline extends React.Component { } +export = IoIosRewindOutline; diff --git a/types/react-icons/lib/io/ios-rewind.d.ts b/types/react-icons/lib/io/ios-rewind.d.ts index 7f883de8bf..01793439e9 100644 --- a/types/react-icons/lib/io/ios-rewind.d.ts +++ b/types/react-icons/lib/io/ios-rewind.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosRewind extends React.Component { } +declare class IoIosRewind extends React.Component { } +export = IoIosRewind; diff --git a/types/react-icons/lib/io/ios-rose-outline.d.ts b/types/react-icons/lib/io/ios-rose-outline.d.ts index dc112023a5..5fb990a6e0 100644 --- a/types/react-icons/lib/io/ios-rose-outline.d.ts +++ b/types/react-icons/lib/io/ios-rose-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosRoseOutline extends React.Component { } +declare class IoIosRoseOutline extends React.Component { } +export = IoIosRoseOutline; diff --git a/types/react-icons/lib/io/ios-rose.d.ts b/types/react-icons/lib/io/ios-rose.d.ts index 8cd590321f..d7764d477a 100644 --- a/types/react-icons/lib/io/ios-rose.d.ts +++ b/types/react-icons/lib/io/ios-rose.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosRose extends React.Component { } +declare class IoIosRose extends React.Component { } +export = IoIosRose; diff --git a/types/react-icons/lib/io/ios-search-strong.d.ts b/types/react-icons/lib/io/ios-search-strong.d.ts index 3b0ab67ed2..b182f713a2 100644 --- a/types/react-icons/lib/io/ios-search-strong.d.ts +++ b/types/react-icons/lib/io/ios-search-strong.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosSearchStrong extends React.Component { } +declare class IoIosSearchStrong extends React.Component { } +export = IoIosSearchStrong; diff --git a/types/react-icons/lib/io/ios-search.d.ts b/types/react-icons/lib/io/ios-search.d.ts index bd95701f4d..e1a76af33b 100644 --- a/types/react-icons/lib/io/ios-search.d.ts +++ b/types/react-icons/lib/io/ios-search.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosSearch extends React.Component { } +declare class IoIosSearch extends React.Component { } +export = IoIosSearch; diff --git a/types/react-icons/lib/io/ios-settings-strong.d.ts b/types/react-icons/lib/io/ios-settings-strong.d.ts index 0bb6ef49aa..cdd4bb5c03 100644 --- a/types/react-icons/lib/io/ios-settings-strong.d.ts +++ b/types/react-icons/lib/io/ios-settings-strong.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosSettingsStrong extends React.Component { } +declare class IoIosSettingsStrong extends React.Component { } +export = IoIosSettingsStrong; diff --git a/types/react-icons/lib/io/ios-settings.d.ts b/types/react-icons/lib/io/ios-settings.d.ts index 26ff75fb04..76ac7176fb 100644 --- a/types/react-icons/lib/io/ios-settings.d.ts +++ b/types/react-icons/lib/io/ios-settings.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosSettings extends React.Component { } +declare class IoIosSettings extends React.Component { } +export = IoIosSettings; diff --git a/types/react-icons/lib/io/ios-shuffle-strong.d.ts b/types/react-icons/lib/io/ios-shuffle-strong.d.ts index 15d2841c2f..6868edf37d 100644 --- a/types/react-icons/lib/io/ios-shuffle-strong.d.ts +++ b/types/react-icons/lib/io/ios-shuffle-strong.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosShuffleStrong extends React.Component { } +declare class IoIosShuffleStrong extends React.Component { } +export = IoIosShuffleStrong; diff --git a/types/react-icons/lib/io/ios-shuffle.d.ts b/types/react-icons/lib/io/ios-shuffle.d.ts index 305b4ff79b..e06f262339 100644 --- a/types/react-icons/lib/io/ios-shuffle.d.ts +++ b/types/react-icons/lib/io/ios-shuffle.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosShuffle extends React.Component { } +declare class IoIosShuffle extends React.Component { } +export = IoIosShuffle; diff --git a/types/react-icons/lib/io/ios-skipbackward-outline.d.ts b/types/react-icons/lib/io/ios-skipbackward-outline.d.ts index fa9db170bd..f9a71c7bcf 100644 --- a/types/react-icons/lib/io/ios-skipbackward-outline.d.ts +++ b/types/react-icons/lib/io/ios-skipbackward-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosSkipbackwardOutline extends React.Component { } +declare class IoIosSkipbackwardOutline extends React.Component { } +export = IoIosSkipbackwardOutline; diff --git a/types/react-icons/lib/io/ios-skipbackward.d.ts b/types/react-icons/lib/io/ios-skipbackward.d.ts index d9b009ed49..48e13dc7ad 100644 --- a/types/react-icons/lib/io/ios-skipbackward.d.ts +++ b/types/react-icons/lib/io/ios-skipbackward.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosSkipbackward extends React.Component { } +declare class IoIosSkipbackward extends React.Component { } +export = IoIosSkipbackward; diff --git a/types/react-icons/lib/io/ios-skipforward-outline.d.ts b/types/react-icons/lib/io/ios-skipforward-outline.d.ts index 63c174f6b2..3d9f4bbb95 100644 --- a/types/react-icons/lib/io/ios-skipforward-outline.d.ts +++ b/types/react-icons/lib/io/ios-skipforward-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosSkipforwardOutline extends React.Component { } +declare class IoIosSkipforwardOutline extends React.Component { } +export = IoIosSkipforwardOutline; diff --git a/types/react-icons/lib/io/ios-skipforward.d.ts b/types/react-icons/lib/io/ios-skipforward.d.ts index 39ce459a57..7ffc3c5e45 100644 --- a/types/react-icons/lib/io/ios-skipforward.d.ts +++ b/types/react-icons/lib/io/ios-skipforward.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosSkipforward extends React.Component { } +declare class IoIosSkipforward extends React.Component { } +export = IoIosSkipforward; diff --git a/types/react-icons/lib/io/ios-snowy.d.ts b/types/react-icons/lib/io/ios-snowy.d.ts index f55f087752..c142557efd 100644 --- a/types/react-icons/lib/io/ios-snowy.d.ts +++ b/types/react-icons/lib/io/ios-snowy.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosSnowy extends React.Component { } +declare class IoIosSnowy extends React.Component { } +export = IoIosSnowy; diff --git a/types/react-icons/lib/io/ios-speedometer-outline.d.ts b/types/react-icons/lib/io/ios-speedometer-outline.d.ts index b0263dc761..fe30530881 100644 --- a/types/react-icons/lib/io/ios-speedometer-outline.d.ts +++ b/types/react-icons/lib/io/ios-speedometer-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosSpeedometerOutline extends React.Component { } +declare class IoIosSpeedometerOutline extends React.Component { } +export = IoIosSpeedometerOutline; diff --git a/types/react-icons/lib/io/ios-speedometer.d.ts b/types/react-icons/lib/io/ios-speedometer.d.ts index f5d6862d1a..57bde6cf81 100644 --- a/types/react-icons/lib/io/ios-speedometer.d.ts +++ b/types/react-icons/lib/io/ios-speedometer.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosSpeedometer extends React.Component { } +declare class IoIosSpeedometer extends React.Component { } +export = IoIosSpeedometer; diff --git a/types/react-icons/lib/io/ios-star-half.d.ts b/types/react-icons/lib/io/ios-star-half.d.ts index 03adf4a4d2..8654211883 100644 --- a/types/react-icons/lib/io/ios-star-half.d.ts +++ b/types/react-icons/lib/io/ios-star-half.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosStarHalf extends React.Component { } +declare class IoIosStarHalf extends React.Component { } +export = IoIosStarHalf; diff --git a/types/react-icons/lib/io/ios-star-outline.d.ts b/types/react-icons/lib/io/ios-star-outline.d.ts index 61dfe85fc1..96a337becf 100644 --- a/types/react-icons/lib/io/ios-star-outline.d.ts +++ b/types/react-icons/lib/io/ios-star-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosStarOutline extends React.Component { } +declare class IoIosStarOutline extends React.Component { } +export = IoIosStarOutline; diff --git a/types/react-icons/lib/io/ios-star.d.ts b/types/react-icons/lib/io/ios-star.d.ts index 763d68d34c..4187ae15ff 100644 --- a/types/react-icons/lib/io/ios-star.d.ts +++ b/types/react-icons/lib/io/ios-star.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosStar extends React.Component { } +declare class IoIosStar extends React.Component { } +export = IoIosStar; diff --git a/types/react-icons/lib/io/ios-stopwatch-outline.d.ts b/types/react-icons/lib/io/ios-stopwatch-outline.d.ts index 73a9091d13..0486f760d2 100644 --- a/types/react-icons/lib/io/ios-stopwatch-outline.d.ts +++ b/types/react-icons/lib/io/ios-stopwatch-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosStopwatchOutline extends React.Component { } +declare class IoIosStopwatchOutline extends React.Component { } +export = IoIosStopwatchOutline; diff --git a/types/react-icons/lib/io/ios-stopwatch.d.ts b/types/react-icons/lib/io/ios-stopwatch.d.ts index 27bf6e3b40..b2d9823c11 100644 --- a/types/react-icons/lib/io/ios-stopwatch.d.ts +++ b/types/react-icons/lib/io/ios-stopwatch.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosStopwatch extends React.Component { } +declare class IoIosStopwatch extends React.Component { } +export = IoIosStopwatch; diff --git a/types/react-icons/lib/io/ios-sunny-outline.d.ts b/types/react-icons/lib/io/ios-sunny-outline.d.ts index 6c1f62f799..8638d5a738 100644 --- a/types/react-icons/lib/io/ios-sunny-outline.d.ts +++ b/types/react-icons/lib/io/ios-sunny-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosSunnyOutline extends React.Component { } +declare class IoIosSunnyOutline extends React.Component { } +export = IoIosSunnyOutline; diff --git a/types/react-icons/lib/io/ios-sunny.d.ts b/types/react-icons/lib/io/ios-sunny.d.ts index e570cdf17c..3993cf8f2e 100644 --- a/types/react-icons/lib/io/ios-sunny.d.ts +++ b/types/react-icons/lib/io/ios-sunny.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosSunny extends React.Component { } +declare class IoIosSunny extends React.Component { } +export = IoIosSunny; diff --git a/types/react-icons/lib/io/ios-telephone-outline.d.ts b/types/react-icons/lib/io/ios-telephone-outline.d.ts index 91d22539d0..9566ebbe70 100644 --- a/types/react-icons/lib/io/ios-telephone-outline.d.ts +++ b/types/react-icons/lib/io/ios-telephone-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosTelephoneOutline extends React.Component { } +declare class IoIosTelephoneOutline extends React.Component { } +export = IoIosTelephoneOutline; diff --git a/types/react-icons/lib/io/ios-telephone.d.ts b/types/react-icons/lib/io/ios-telephone.d.ts index 349826b187..6e8b47eacf 100644 --- a/types/react-icons/lib/io/ios-telephone.d.ts +++ b/types/react-icons/lib/io/ios-telephone.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosTelephone extends React.Component { } +declare class IoIosTelephone extends React.Component { } +export = IoIosTelephone; diff --git a/types/react-icons/lib/io/ios-tennisball-outline.d.ts b/types/react-icons/lib/io/ios-tennisball-outline.d.ts index df889878d4..469243b80e 100644 --- a/types/react-icons/lib/io/ios-tennisball-outline.d.ts +++ b/types/react-icons/lib/io/ios-tennisball-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosTennisballOutline extends React.Component { } +declare class IoIosTennisballOutline extends React.Component { } +export = IoIosTennisballOutline; diff --git a/types/react-icons/lib/io/ios-tennisball.d.ts b/types/react-icons/lib/io/ios-tennisball.d.ts index 177485e5ea..eb0fa83b49 100644 --- a/types/react-icons/lib/io/ios-tennisball.d.ts +++ b/types/react-icons/lib/io/ios-tennisball.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosTennisball extends React.Component { } +declare class IoIosTennisball extends React.Component { } +export = IoIosTennisball; diff --git a/types/react-icons/lib/io/ios-thunderstorm-outline.d.ts b/types/react-icons/lib/io/ios-thunderstorm-outline.d.ts index ac3f8120a7..8d977d2ebe 100644 --- a/types/react-icons/lib/io/ios-thunderstorm-outline.d.ts +++ b/types/react-icons/lib/io/ios-thunderstorm-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosThunderstormOutline extends React.Component { } +declare class IoIosThunderstormOutline extends React.Component { } +export = IoIosThunderstormOutline; diff --git a/types/react-icons/lib/io/ios-thunderstorm.d.ts b/types/react-icons/lib/io/ios-thunderstorm.d.ts index 9612dc49cc..fee0ea6196 100644 --- a/types/react-icons/lib/io/ios-thunderstorm.d.ts +++ b/types/react-icons/lib/io/ios-thunderstorm.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosThunderstorm extends React.Component { } +declare class IoIosThunderstorm extends React.Component { } +export = IoIosThunderstorm; diff --git a/types/react-icons/lib/io/ios-time-outline.d.ts b/types/react-icons/lib/io/ios-time-outline.d.ts index 8067387f05..cb363cf705 100644 --- a/types/react-icons/lib/io/ios-time-outline.d.ts +++ b/types/react-icons/lib/io/ios-time-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosTimeOutline extends React.Component { } +declare class IoIosTimeOutline extends React.Component { } +export = IoIosTimeOutline; diff --git a/types/react-icons/lib/io/ios-time.d.ts b/types/react-icons/lib/io/ios-time.d.ts index cdc944bd0b..f0695cc3e2 100644 --- a/types/react-icons/lib/io/ios-time.d.ts +++ b/types/react-icons/lib/io/ios-time.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosTime extends React.Component { } +declare class IoIosTime extends React.Component { } +export = IoIosTime; diff --git a/types/react-icons/lib/io/ios-timer-outline.d.ts b/types/react-icons/lib/io/ios-timer-outline.d.ts index 21b2cdca0f..901b60f19e 100644 --- a/types/react-icons/lib/io/ios-timer-outline.d.ts +++ b/types/react-icons/lib/io/ios-timer-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosTimerOutline extends React.Component { } +declare class IoIosTimerOutline extends React.Component { } +export = IoIosTimerOutline; diff --git a/types/react-icons/lib/io/ios-timer.d.ts b/types/react-icons/lib/io/ios-timer.d.ts index 729f3f79d4..5f1b5b7583 100644 --- a/types/react-icons/lib/io/ios-timer.d.ts +++ b/types/react-icons/lib/io/ios-timer.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosTimer extends React.Component { } +declare class IoIosTimer extends React.Component { } +export = IoIosTimer; diff --git a/types/react-icons/lib/io/ios-toggle-outline.d.ts b/types/react-icons/lib/io/ios-toggle-outline.d.ts index fa23191d8c..9e6db326b7 100644 --- a/types/react-icons/lib/io/ios-toggle-outline.d.ts +++ b/types/react-icons/lib/io/ios-toggle-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosToggleOutline extends React.Component { } +declare class IoIosToggleOutline extends React.Component { } +export = IoIosToggleOutline; diff --git a/types/react-icons/lib/io/ios-toggle.d.ts b/types/react-icons/lib/io/ios-toggle.d.ts index e01579ec53..0cb2bec203 100644 --- a/types/react-icons/lib/io/ios-toggle.d.ts +++ b/types/react-icons/lib/io/ios-toggle.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosToggle extends React.Component { } +declare class IoIosToggle extends React.Component { } +export = IoIosToggle; diff --git a/types/react-icons/lib/io/ios-trash-outline.d.ts b/types/react-icons/lib/io/ios-trash-outline.d.ts index 55412f0ae2..87f7970799 100644 --- a/types/react-icons/lib/io/ios-trash-outline.d.ts +++ b/types/react-icons/lib/io/ios-trash-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosTrashOutline extends React.Component { } +declare class IoIosTrashOutline extends React.Component { } +export = IoIosTrashOutline; diff --git a/types/react-icons/lib/io/ios-trash.d.ts b/types/react-icons/lib/io/ios-trash.d.ts index 296e42671e..41ae428e61 100644 --- a/types/react-icons/lib/io/ios-trash.d.ts +++ b/types/react-icons/lib/io/ios-trash.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosTrash extends React.Component { } +declare class IoIosTrash extends React.Component { } +export = IoIosTrash; diff --git a/types/react-icons/lib/io/ios-undo-outline.d.ts b/types/react-icons/lib/io/ios-undo-outline.d.ts index 093074d857..f4c5958de8 100644 --- a/types/react-icons/lib/io/ios-undo-outline.d.ts +++ b/types/react-icons/lib/io/ios-undo-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosUndoOutline extends React.Component { } +declare class IoIosUndoOutline extends React.Component { } +export = IoIosUndoOutline; diff --git a/types/react-icons/lib/io/ios-undo.d.ts b/types/react-icons/lib/io/ios-undo.d.ts index 4bcdef2e88..6f17b7375b 100644 --- a/types/react-icons/lib/io/ios-undo.d.ts +++ b/types/react-icons/lib/io/ios-undo.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosUndo extends React.Component { } +declare class IoIosUndo extends React.Component { } +export = IoIosUndo; diff --git a/types/react-icons/lib/io/ios-unlocked-outline.d.ts b/types/react-icons/lib/io/ios-unlocked-outline.d.ts index d14b0f7ffc..950ada1a97 100644 --- a/types/react-icons/lib/io/ios-unlocked-outline.d.ts +++ b/types/react-icons/lib/io/ios-unlocked-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosUnlockedOutline extends React.Component { } +declare class IoIosUnlockedOutline extends React.Component { } +export = IoIosUnlockedOutline; diff --git a/types/react-icons/lib/io/ios-unlocked.d.ts b/types/react-icons/lib/io/ios-unlocked.d.ts index d873e5f8d1..d7c8ac1110 100644 --- a/types/react-icons/lib/io/ios-unlocked.d.ts +++ b/types/react-icons/lib/io/ios-unlocked.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosUnlocked extends React.Component { } +declare class IoIosUnlocked extends React.Component { } +export = IoIosUnlocked; diff --git a/types/react-icons/lib/io/ios-upload-outline.d.ts b/types/react-icons/lib/io/ios-upload-outline.d.ts index 5f397a2bd8..04dd2108f5 100644 --- a/types/react-icons/lib/io/ios-upload-outline.d.ts +++ b/types/react-icons/lib/io/ios-upload-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosUploadOutline extends React.Component { } +declare class IoIosUploadOutline extends React.Component { } +export = IoIosUploadOutline; diff --git a/types/react-icons/lib/io/ios-upload.d.ts b/types/react-icons/lib/io/ios-upload.d.ts index 5b9acf6b9c..355a35d459 100644 --- a/types/react-icons/lib/io/ios-upload.d.ts +++ b/types/react-icons/lib/io/ios-upload.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosUpload extends React.Component { } +declare class IoIosUpload extends React.Component { } +export = IoIosUpload; diff --git a/types/react-icons/lib/io/ios-videocam-outline.d.ts b/types/react-icons/lib/io/ios-videocam-outline.d.ts index 96fac95c0e..e530729768 100644 --- a/types/react-icons/lib/io/ios-videocam-outline.d.ts +++ b/types/react-icons/lib/io/ios-videocam-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosVideocamOutline extends React.Component { } +declare class IoIosVideocamOutline extends React.Component { } +export = IoIosVideocamOutline; diff --git a/types/react-icons/lib/io/ios-videocam.d.ts b/types/react-icons/lib/io/ios-videocam.d.ts index a55ede9155..816ebb388b 100644 --- a/types/react-icons/lib/io/ios-videocam.d.ts +++ b/types/react-icons/lib/io/ios-videocam.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosVideocam extends React.Component { } +declare class IoIosVideocam extends React.Component { } +export = IoIosVideocam; diff --git a/types/react-icons/lib/io/ios-volume-high.d.ts b/types/react-icons/lib/io/ios-volume-high.d.ts index 9ae46e1936..9995c03916 100644 --- a/types/react-icons/lib/io/ios-volume-high.d.ts +++ b/types/react-icons/lib/io/ios-volume-high.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosVolumeHigh extends React.Component { } +declare class IoIosVolumeHigh extends React.Component { } +export = IoIosVolumeHigh; diff --git a/types/react-icons/lib/io/ios-volume-low.d.ts b/types/react-icons/lib/io/ios-volume-low.d.ts index 402ee999cb..829e862b24 100644 --- a/types/react-icons/lib/io/ios-volume-low.d.ts +++ b/types/react-icons/lib/io/ios-volume-low.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosVolumeLow extends React.Component { } +declare class IoIosVolumeLow extends React.Component { } +export = IoIosVolumeLow; diff --git a/types/react-icons/lib/io/ios-wineglass-outline.d.ts b/types/react-icons/lib/io/ios-wineglass-outline.d.ts index 3e34e8f73d..f4bf78ca4e 100644 --- a/types/react-icons/lib/io/ios-wineglass-outline.d.ts +++ b/types/react-icons/lib/io/ios-wineglass-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosWineglassOutline extends React.Component { } +declare class IoIosWineglassOutline extends React.Component { } +export = IoIosWineglassOutline; diff --git a/types/react-icons/lib/io/ios-wineglass.d.ts b/types/react-icons/lib/io/ios-wineglass.d.ts index aaf3e6bd56..af091597cc 100644 --- a/types/react-icons/lib/io/ios-wineglass.d.ts +++ b/types/react-icons/lib/io/ios-wineglass.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosWineglass extends React.Component { } +declare class IoIosWineglass extends React.Component { } +export = IoIosWineglass; diff --git a/types/react-icons/lib/io/ios-world-outline.d.ts b/types/react-icons/lib/io/ios-world-outline.d.ts index 4b5d4ab7b1..55e2b6d7e8 100644 --- a/types/react-icons/lib/io/ios-world-outline.d.ts +++ b/types/react-icons/lib/io/ios-world-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosWorldOutline extends React.Component { } +declare class IoIosWorldOutline extends React.Component { } +export = IoIosWorldOutline; diff --git a/types/react-icons/lib/io/ios-world.d.ts b/types/react-icons/lib/io/ios-world.d.ts index 6a2b5a3392..c00b081e91 100644 --- a/types/react-icons/lib/io/ios-world.d.ts +++ b/types/react-icons/lib/io/ios-world.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIosWorld extends React.Component { } +declare class IoIosWorld extends React.Component { } +export = IoIosWorld; diff --git a/types/react-icons/lib/io/ipad.d.ts b/types/react-icons/lib/io/ipad.d.ts index 5f534f3a70..97ef83ed9f 100644 --- a/types/react-icons/lib/io/ipad.d.ts +++ b/types/react-icons/lib/io/ipad.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIpad extends React.Component { } +declare class IoIpad extends React.Component { } +export = IoIpad; diff --git a/types/react-icons/lib/io/iphone.d.ts b/types/react-icons/lib/io/iphone.d.ts index 4b4fc084d6..068e6d873f 100644 --- a/types/react-icons/lib/io/iphone.d.ts +++ b/types/react-icons/lib/io/iphone.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIphone extends React.Component { } +declare class IoIphone extends React.Component { } +export = IoIphone; diff --git a/types/react-icons/lib/io/ipod.d.ts b/types/react-icons/lib/io/ipod.d.ts index 793b8f7f92..d88bcfd2e8 100644 --- a/types/react-icons/lib/io/ipod.d.ts +++ b/types/react-icons/lib/io/ipod.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoIpod extends React.Component { } +declare class IoIpod extends React.Component { } +export = IoIpod; diff --git a/types/react-icons/lib/io/jet.d.ts b/types/react-icons/lib/io/jet.d.ts index 7f8ef429e2..c5a5d952d4 100644 --- a/types/react-icons/lib/io/jet.d.ts +++ b/types/react-icons/lib/io/jet.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoJet extends React.Component { } +declare class IoJet extends React.Component { } +export = IoJet; diff --git a/types/react-icons/lib/io/key.d.ts b/types/react-icons/lib/io/key.d.ts index 8a84a24518..603fe5ce7f 100644 --- a/types/react-icons/lib/io/key.d.ts +++ b/types/react-icons/lib/io/key.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoKey extends React.Component { } +declare class IoKey extends React.Component { } +export = IoKey; diff --git a/types/react-icons/lib/io/knife.d.ts b/types/react-icons/lib/io/knife.d.ts index f9683f399b..9318e4eaef 100644 --- a/types/react-icons/lib/io/knife.d.ts +++ b/types/react-icons/lib/io/knife.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoKnife extends React.Component { } +declare class IoKnife extends React.Component { } +export = IoKnife; diff --git a/types/react-icons/lib/io/laptop.d.ts b/types/react-icons/lib/io/laptop.d.ts index ffd3252609..51c058f363 100644 --- a/types/react-icons/lib/io/laptop.d.ts +++ b/types/react-icons/lib/io/laptop.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoLaptop extends React.Component { } +declare class IoLaptop extends React.Component { } +export = IoLaptop; diff --git a/types/react-icons/lib/io/leaf.d.ts b/types/react-icons/lib/io/leaf.d.ts index bc0235a24a..19203a67de 100644 --- a/types/react-icons/lib/io/leaf.d.ts +++ b/types/react-icons/lib/io/leaf.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoLeaf extends React.Component { } +declare class IoLeaf extends React.Component { } +export = IoLeaf; diff --git a/types/react-icons/lib/io/levels.d.ts b/types/react-icons/lib/io/levels.d.ts index 0bd2e2c1e9..5638dc6579 100644 --- a/types/react-icons/lib/io/levels.d.ts +++ b/types/react-icons/lib/io/levels.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoLevels extends React.Component { } +declare class IoLevels extends React.Component { } +export = IoLevels; diff --git a/types/react-icons/lib/io/lightbulb.d.ts b/types/react-icons/lib/io/lightbulb.d.ts index c16e16a2fa..af434a2ba2 100644 --- a/types/react-icons/lib/io/lightbulb.d.ts +++ b/types/react-icons/lib/io/lightbulb.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoLightbulb extends React.Component { } +declare class IoLightbulb extends React.Component { } +export = IoLightbulb; diff --git a/types/react-icons/lib/io/link.d.ts b/types/react-icons/lib/io/link.d.ts index c0c376d736..fddbe7cb56 100644 --- a/types/react-icons/lib/io/link.d.ts +++ b/types/react-icons/lib/io/link.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoLink extends React.Component { } +declare class IoLink extends React.Component { } +export = IoLink; diff --git a/types/react-icons/lib/io/load-a.d.ts b/types/react-icons/lib/io/load-a.d.ts index bf0b3ec100..f82360e687 100644 --- a/types/react-icons/lib/io/load-a.d.ts +++ b/types/react-icons/lib/io/load-a.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoLoadA extends React.Component { } +declare class IoLoadA extends React.Component { } +export = IoLoadA; diff --git a/types/react-icons/lib/io/load-b.d.ts b/types/react-icons/lib/io/load-b.d.ts index 85dcae989a..65baa4d442 100644 --- a/types/react-icons/lib/io/load-b.d.ts +++ b/types/react-icons/lib/io/load-b.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoLoadB extends React.Component { } +declare class IoLoadB extends React.Component { } +export = IoLoadB; diff --git a/types/react-icons/lib/io/load-c.d.ts b/types/react-icons/lib/io/load-c.d.ts index 733dff4bfa..7c74e2c274 100644 --- a/types/react-icons/lib/io/load-c.d.ts +++ b/types/react-icons/lib/io/load-c.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoLoadC extends React.Component { } +declare class IoLoadC extends React.Component { } +export = IoLoadC; diff --git a/types/react-icons/lib/io/load-d.d.ts b/types/react-icons/lib/io/load-d.d.ts index 160d71b383..36c6555c24 100644 --- a/types/react-icons/lib/io/load-d.d.ts +++ b/types/react-icons/lib/io/load-d.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoLoadD extends React.Component { } +declare class IoLoadD extends React.Component { } +export = IoLoadD; diff --git a/types/react-icons/lib/io/location.d.ts b/types/react-icons/lib/io/location.d.ts index 04e657adc4..8726374947 100644 --- a/types/react-icons/lib/io/location.d.ts +++ b/types/react-icons/lib/io/location.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoLocation extends React.Component { } +declare class IoLocation extends React.Component { } +export = IoLocation; diff --git a/types/react-icons/lib/io/lock-combination.d.ts b/types/react-icons/lib/io/lock-combination.d.ts index d25e21ded1..b3f04cc24f 100644 --- a/types/react-icons/lib/io/lock-combination.d.ts +++ b/types/react-icons/lib/io/lock-combination.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoLockCombination extends React.Component { } +declare class IoLockCombination extends React.Component { } +export = IoLockCombination; diff --git a/types/react-icons/lib/io/locked.d.ts b/types/react-icons/lib/io/locked.d.ts index db82275a8e..b3a945c76d 100644 --- a/types/react-icons/lib/io/locked.d.ts +++ b/types/react-icons/lib/io/locked.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoLocked extends React.Component { } +declare class IoLocked extends React.Component { } +export = IoLocked; diff --git a/types/react-icons/lib/io/log-in.d.ts b/types/react-icons/lib/io/log-in.d.ts index bb045baf8e..895a82e0c5 100644 --- a/types/react-icons/lib/io/log-in.d.ts +++ b/types/react-icons/lib/io/log-in.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoLogIn extends React.Component { } +declare class IoLogIn extends React.Component { } +export = IoLogIn; diff --git a/types/react-icons/lib/io/log-out.d.ts b/types/react-icons/lib/io/log-out.d.ts index 0374ff539d..70c0aa1a31 100644 --- a/types/react-icons/lib/io/log-out.d.ts +++ b/types/react-icons/lib/io/log-out.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoLogOut extends React.Component { } +declare class IoLogOut extends React.Component { } +export = IoLogOut; diff --git a/types/react-icons/lib/io/loop.d.ts b/types/react-icons/lib/io/loop.d.ts index 2f5d563c07..39d3bb6092 100644 --- a/types/react-icons/lib/io/loop.d.ts +++ b/types/react-icons/lib/io/loop.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoLoop extends React.Component { } +declare class IoLoop extends React.Component { } +export = IoLoop; diff --git a/types/react-icons/lib/io/magnet.d.ts b/types/react-icons/lib/io/magnet.d.ts index b8625a2ccf..8730d8a15e 100644 --- a/types/react-icons/lib/io/magnet.d.ts +++ b/types/react-icons/lib/io/magnet.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoMagnet extends React.Component { } +declare class IoMagnet extends React.Component { } +export = IoMagnet; diff --git a/types/react-icons/lib/io/male.d.ts b/types/react-icons/lib/io/male.d.ts index 62bfbd5067..641a13b861 100644 --- a/types/react-icons/lib/io/male.d.ts +++ b/types/react-icons/lib/io/male.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoMale extends React.Component { } +declare class IoMale extends React.Component { } +export = IoMale; diff --git a/types/react-icons/lib/io/man.d.ts b/types/react-icons/lib/io/man.d.ts index 2770ac14e2..5c2f70ac23 100644 --- a/types/react-icons/lib/io/man.d.ts +++ b/types/react-icons/lib/io/man.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoMan extends React.Component { } +declare class IoMan extends React.Component { } +export = IoMan; diff --git a/types/react-icons/lib/io/map.d.ts b/types/react-icons/lib/io/map.d.ts index 4c48512de6..f00ba0c8a7 100644 --- a/types/react-icons/lib/io/map.d.ts +++ b/types/react-icons/lib/io/map.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoMap extends React.Component { } +declare class IoMap extends React.Component { } +export = IoMap; diff --git a/types/react-icons/lib/io/medkit.d.ts b/types/react-icons/lib/io/medkit.d.ts index e15728387c..eadeea513f 100644 --- a/types/react-icons/lib/io/medkit.d.ts +++ b/types/react-icons/lib/io/medkit.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoMedkit extends React.Component { } +declare class IoMedkit extends React.Component { } +export = IoMedkit; diff --git a/types/react-icons/lib/io/merge.d.ts b/types/react-icons/lib/io/merge.d.ts index 6a41308d9b..60cc718787 100644 --- a/types/react-icons/lib/io/merge.d.ts +++ b/types/react-icons/lib/io/merge.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoMerge extends React.Component { } +declare class IoMerge extends React.Component { } +export = IoMerge; diff --git a/types/react-icons/lib/io/mic-a.d.ts b/types/react-icons/lib/io/mic-a.d.ts index c5cf11831d..ca862a054e 100644 --- a/types/react-icons/lib/io/mic-a.d.ts +++ b/types/react-icons/lib/io/mic-a.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoMicA extends React.Component { } +declare class IoMicA extends React.Component { } +export = IoMicA; diff --git a/types/react-icons/lib/io/mic-b.d.ts b/types/react-icons/lib/io/mic-b.d.ts index 68a0acf707..8c195c04c6 100644 --- a/types/react-icons/lib/io/mic-b.d.ts +++ b/types/react-icons/lib/io/mic-b.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoMicB extends React.Component { } +declare class IoMicB extends React.Component { } +export = IoMicB; diff --git a/types/react-icons/lib/io/mic-c.d.ts b/types/react-icons/lib/io/mic-c.d.ts index 2d8ddc3be6..0f490c8680 100644 --- a/types/react-icons/lib/io/mic-c.d.ts +++ b/types/react-icons/lib/io/mic-c.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoMicC extends React.Component { } +declare class IoMicC extends React.Component { } +export = IoMicC; diff --git a/types/react-icons/lib/io/minus-circled.d.ts b/types/react-icons/lib/io/minus-circled.d.ts index 1b5edd59e7..2e20d731a1 100644 --- a/types/react-icons/lib/io/minus-circled.d.ts +++ b/types/react-icons/lib/io/minus-circled.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoMinusCircled extends React.Component { } +declare class IoMinusCircled extends React.Component { } +export = IoMinusCircled; diff --git a/types/react-icons/lib/io/minus-round.d.ts b/types/react-icons/lib/io/minus-round.d.ts index 1a75a9c5d4..e6363e0ab7 100644 --- a/types/react-icons/lib/io/minus-round.d.ts +++ b/types/react-icons/lib/io/minus-round.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoMinusRound extends React.Component { } +declare class IoMinusRound extends React.Component { } +export = IoMinusRound; diff --git a/types/react-icons/lib/io/minus.d.ts b/types/react-icons/lib/io/minus.d.ts index ee58f016db..5b0202abd2 100644 --- a/types/react-icons/lib/io/minus.d.ts +++ b/types/react-icons/lib/io/minus.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoMinus extends React.Component { } +declare class IoMinus extends React.Component { } +export = IoMinus; diff --git a/types/react-icons/lib/io/model-s.d.ts b/types/react-icons/lib/io/model-s.d.ts index 567219cde6..7d9e3b5c77 100644 --- a/types/react-icons/lib/io/model-s.d.ts +++ b/types/react-icons/lib/io/model-s.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoModelS extends React.Component { } +declare class IoModelS extends React.Component { } +export = IoModelS; diff --git a/types/react-icons/lib/io/monitor.d.ts b/types/react-icons/lib/io/monitor.d.ts index 3454bea09f..6c639ee9fe 100644 --- a/types/react-icons/lib/io/monitor.d.ts +++ b/types/react-icons/lib/io/monitor.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoMonitor extends React.Component { } +declare class IoMonitor extends React.Component { } +export = IoMonitor; diff --git a/types/react-icons/lib/io/more.d.ts b/types/react-icons/lib/io/more.d.ts index 2c528b5bae..b13a7f1141 100644 --- a/types/react-icons/lib/io/more.d.ts +++ b/types/react-icons/lib/io/more.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoMore extends React.Component { } +declare class IoMore extends React.Component { } +export = IoMore; diff --git a/types/react-icons/lib/io/mouse.d.ts b/types/react-icons/lib/io/mouse.d.ts index af862564ba..077fe8ddaf 100644 --- a/types/react-icons/lib/io/mouse.d.ts +++ b/types/react-icons/lib/io/mouse.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoMouse extends React.Component { } +declare class IoMouse extends React.Component { } +export = IoMouse; diff --git a/types/react-icons/lib/io/music-note.d.ts b/types/react-icons/lib/io/music-note.d.ts index 92875eb08a..eacac097b2 100644 --- a/types/react-icons/lib/io/music-note.d.ts +++ b/types/react-icons/lib/io/music-note.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoMusicNote extends React.Component { } +declare class IoMusicNote extends React.Component { } +export = IoMusicNote; diff --git a/types/react-icons/lib/io/navicon-round.d.ts b/types/react-icons/lib/io/navicon-round.d.ts index 5d1bc53526..6cc6ec5847 100644 --- a/types/react-icons/lib/io/navicon-round.d.ts +++ b/types/react-icons/lib/io/navicon-round.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoNaviconRound extends React.Component { } +declare class IoNaviconRound extends React.Component { } +export = IoNaviconRound; diff --git a/types/react-icons/lib/io/navicon.d.ts b/types/react-icons/lib/io/navicon.d.ts index cdae5d7238..5da09863ba 100644 --- a/types/react-icons/lib/io/navicon.d.ts +++ b/types/react-icons/lib/io/navicon.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoNavicon extends React.Component { } +declare class IoNavicon extends React.Component { } +export = IoNavicon; diff --git a/types/react-icons/lib/io/navigate.d.ts b/types/react-icons/lib/io/navigate.d.ts index 2fe67c17b2..aef1fb00a3 100644 --- a/types/react-icons/lib/io/navigate.d.ts +++ b/types/react-icons/lib/io/navigate.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoNavigate extends React.Component { } +declare class IoNavigate extends React.Component { } +export = IoNavigate; diff --git a/types/react-icons/lib/io/network.d.ts b/types/react-icons/lib/io/network.d.ts index 359c0abbd2..f2d137e6d2 100644 --- a/types/react-icons/lib/io/network.d.ts +++ b/types/react-icons/lib/io/network.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoNetwork extends React.Component { } +declare class IoNetwork extends React.Component { } +export = IoNetwork; diff --git a/types/react-icons/lib/io/no-smoking.d.ts b/types/react-icons/lib/io/no-smoking.d.ts index 074789127a..eca13e875a 100644 --- a/types/react-icons/lib/io/no-smoking.d.ts +++ b/types/react-icons/lib/io/no-smoking.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoNoSmoking extends React.Component { } +declare class IoNoSmoking extends React.Component { } +export = IoNoSmoking; diff --git a/types/react-icons/lib/io/nuclear.d.ts b/types/react-icons/lib/io/nuclear.d.ts index 559674f85e..f220fd75a6 100644 --- a/types/react-icons/lib/io/nuclear.d.ts +++ b/types/react-icons/lib/io/nuclear.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoNuclear extends React.Component { } +declare class IoNuclear extends React.Component { } +export = IoNuclear; diff --git a/types/react-icons/lib/io/outlet.d.ts b/types/react-icons/lib/io/outlet.d.ts index f68de98cb1..10b9c1c53b 100644 --- a/types/react-icons/lib/io/outlet.d.ts +++ b/types/react-icons/lib/io/outlet.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoOutlet extends React.Component { } +declare class IoOutlet extends React.Component { } +export = IoOutlet; diff --git a/types/react-icons/lib/io/paintbrush.d.ts b/types/react-icons/lib/io/paintbrush.d.ts index 1cc12bebca..798d4ec723 100644 --- a/types/react-icons/lib/io/paintbrush.d.ts +++ b/types/react-icons/lib/io/paintbrush.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoPaintbrush extends React.Component { } +declare class IoPaintbrush extends React.Component { } +export = IoPaintbrush; diff --git a/types/react-icons/lib/io/paintbucket.d.ts b/types/react-icons/lib/io/paintbucket.d.ts index 0e6dce8aa7..cae729d92e 100644 --- a/types/react-icons/lib/io/paintbucket.d.ts +++ b/types/react-icons/lib/io/paintbucket.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoPaintbucket extends React.Component { } +declare class IoPaintbucket extends React.Component { } +export = IoPaintbucket; diff --git a/types/react-icons/lib/io/paper-airplane.d.ts b/types/react-icons/lib/io/paper-airplane.d.ts index e5c2d64cb8..0cc9963b1e 100644 --- a/types/react-icons/lib/io/paper-airplane.d.ts +++ b/types/react-icons/lib/io/paper-airplane.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoPaperAirplane extends React.Component { } +declare class IoPaperAirplane extends React.Component { } +export = IoPaperAirplane; diff --git a/types/react-icons/lib/io/paperclip.d.ts b/types/react-icons/lib/io/paperclip.d.ts index cb9463bdf1..fb887470b8 100644 --- a/types/react-icons/lib/io/paperclip.d.ts +++ b/types/react-icons/lib/io/paperclip.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoPaperclip extends React.Component { } +declare class IoPaperclip extends React.Component { } +export = IoPaperclip; diff --git a/types/react-icons/lib/io/pause.d.ts b/types/react-icons/lib/io/pause.d.ts index 2680c5b1b4..1c0f437dab 100644 --- a/types/react-icons/lib/io/pause.d.ts +++ b/types/react-icons/lib/io/pause.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoPause extends React.Component { } +declare class IoPause extends React.Component { } +export = IoPause; diff --git a/types/react-icons/lib/io/person-add.d.ts b/types/react-icons/lib/io/person-add.d.ts index 43a66e58c0..53ce9e2e41 100644 --- a/types/react-icons/lib/io/person-add.d.ts +++ b/types/react-icons/lib/io/person-add.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoPersonAdd extends React.Component { } +declare class IoPersonAdd extends React.Component { } +export = IoPersonAdd; diff --git a/types/react-icons/lib/io/person-stalker.d.ts b/types/react-icons/lib/io/person-stalker.d.ts index 59ed89e000..161429c61a 100644 --- a/types/react-icons/lib/io/person-stalker.d.ts +++ b/types/react-icons/lib/io/person-stalker.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoPersonStalker extends React.Component { } +declare class IoPersonStalker extends React.Component { } +export = IoPersonStalker; diff --git a/types/react-icons/lib/io/person.d.ts b/types/react-icons/lib/io/person.d.ts index 0970df9ab0..838d276698 100644 --- a/types/react-icons/lib/io/person.d.ts +++ b/types/react-icons/lib/io/person.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoPerson extends React.Component { } +declare class IoPerson extends React.Component { } +export = IoPerson; diff --git a/types/react-icons/lib/io/pie-graph.d.ts b/types/react-icons/lib/io/pie-graph.d.ts index 4171c0ee1d..b34d737547 100644 --- a/types/react-icons/lib/io/pie-graph.d.ts +++ b/types/react-icons/lib/io/pie-graph.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoPieGraph extends React.Component { } +declare class IoPieGraph extends React.Component { } +export = IoPieGraph; diff --git a/types/react-icons/lib/io/pin.d.ts b/types/react-icons/lib/io/pin.d.ts index 7e1d58f30e..8acc70bbe7 100644 --- a/types/react-icons/lib/io/pin.d.ts +++ b/types/react-icons/lib/io/pin.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoPin extends React.Component { } +declare class IoPin extends React.Component { } +export = IoPin; diff --git a/types/react-icons/lib/io/pinpoint.d.ts b/types/react-icons/lib/io/pinpoint.d.ts index 8ecf88a45b..633ebe5f6c 100644 --- a/types/react-icons/lib/io/pinpoint.d.ts +++ b/types/react-icons/lib/io/pinpoint.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoPinpoint extends React.Component { } +declare class IoPinpoint extends React.Component { } +export = IoPinpoint; diff --git a/types/react-icons/lib/io/pizza.d.ts b/types/react-icons/lib/io/pizza.d.ts index ef5ce7525b..22b59ea468 100644 --- a/types/react-icons/lib/io/pizza.d.ts +++ b/types/react-icons/lib/io/pizza.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoPizza extends React.Component { } +declare class IoPizza extends React.Component { } +export = IoPizza; diff --git a/types/react-icons/lib/io/plane.d.ts b/types/react-icons/lib/io/plane.d.ts index 9f0b2eaff2..db6117b622 100644 --- a/types/react-icons/lib/io/plane.d.ts +++ b/types/react-icons/lib/io/plane.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoPlane extends React.Component { } +declare class IoPlane extends React.Component { } +export = IoPlane; diff --git a/types/react-icons/lib/io/planet.d.ts b/types/react-icons/lib/io/planet.d.ts index b91ae2a503..b831ee0adf 100644 --- a/types/react-icons/lib/io/planet.d.ts +++ b/types/react-icons/lib/io/planet.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoPlanet extends React.Component { } +declare class IoPlanet extends React.Component { } +export = IoPlanet; diff --git a/types/react-icons/lib/io/play.d.ts b/types/react-icons/lib/io/play.d.ts index 8a66797eb2..1b4959e9c6 100644 --- a/types/react-icons/lib/io/play.d.ts +++ b/types/react-icons/lib/io/play.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoPlay extends React.Component { } +declare class IoPlay extends React.Component { } +export = IoPlay; diff --git a/types/react-icons/lib/io/playstation.d.ts b/types/react-icons/lib/io/playstation.d.ts index 315eecce09..d10a3ca0ee 100644 --- a/types/react-icons/lib/io/playstation.d.ts +++ b/types/react-icons/lib/io/playstation.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoPlaystation extends React.Component { } +declare class IoPlaystation extends React.Component { } +export = IoPlaystation; diff --git a/types/react-icons/lib/io/plus-circled.d.ts b/types/react-icons/lib/io/plus-circled.d.ts index a74703c85d..eb6e1f8d93 100644 --- a/types/react-icons/lib/io/plus-circled.d.ts +++ b/types/react-icons/lib/io/plus-circled.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoPlusCircled extends React.Component { } +declare class IoPlusCircled extends React.Component { } +export = IoPlusCircled; diff --git a/types/react-icons/lib/io/plus-round.d.ts b/types/react-icons/lib/io/plus-round.d.ts index 3e7ba67f3a..ebd92519bf 100644 --- a/types/react-icons/lib/io/plus-round.d.ts +++ b/types/react-icons/lib/io/plus-round.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoPlusRound extends React.Component { } +declare class IoPlusRound extends React.Component { } +export = IoPlusRound; diff --git a/types/react-icons/lib/io/plus.d.ts b/types/react-icons/lib/io/plus.d.ts index f61bf82a1a..1626a1cf05 100644 --- a/types/react-icons/lib/io/plus.d.ts +++ b/types/react-icons/lib/io/plus.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoPlus extends React.Component { } +declare class IoPlus extends React.Component { } +export = IoPlus; diff --git a/types/react-icons/lib/io/podium.d.ts b/types/react-icons/lib/io/podium.d.ts index af2e204331..a70d220a19 100644 --- a/types/react-icons/lib/io/podium.d.ts +++ b/types/react-icons/lib/io/podium.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoPodium extends React.Component { } +declare class IoPodium extends React.Component { } +export = IoPodium; diff --git a/types/react-icons/lib/io/pound.d.ts b/types/react-icons/lib/io/pound.d.ts index b7b2e28b9e..ba114f6220 100644 --- a/types/react-icons/lib/io/pound.d.ts +++ b/types/react-icons/lib/io/pound.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoPound extends React.Component { } +declare class IoPound extends React.Component { } +export = IoPound; diff --git a/types/react-icons/lib/io/power.d.ts b/types/react-icons/lib/io/power.d.ts index f41d3d5e00..72880af810 100644 --- a/types/react-icons/lib/io/power.d.ts +++ b/types/react-icons/lib/io/power.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoPower extends React.Component { } +declare class IoPower extends React.Component { } +export = IoPower; diff --git a/types/react-icons/lib/io/pricetag.d.ts b/types/react-icons/lib/io/pricetag.d.ts index b8f2d47c03..c299d0f349 100644 --- a/types/react-icons/lib/io/pricetag.d.ts +++ b/types/react-icons/lib/io/pricetag.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoPricetag extends React.Component { } +declare class IoPricetag extends React.Component { } +export = IoPricetag; diff --git a/types/react-icons/lib/io/pricetags.d.ts b/types/react-icons/lib/io/pricetags.d.ts index cca52cc061..5e778059b6 100644 --- a/types/react-icons/lib/io/pricetags.d.ts +++ b/types/react-icons/lib/io/pricetags.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoPricetags extends React.Component { } +declare class IoPricetags extends React.Component { } +export = IoPricetags; diff --git a/types/react-icons/lib/io/printer.d.ts b/types/react-icons/lib/io/printer.d.ts index 33bc74b2c2..66de49844e 100644 --- a/types/react-icons/lib/io/printer.d.ts +++ b/types/react-icons/lib/io/printer.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoPrinter extends React.Component { } +declare class IoPrinter extends React.Component { } +export = IoPrinter; diff --git a/types/react-icons/lib/io/pull-request.d.ts b/types/react-icons/lib/io/pull-request.d.ts index b788efefdc..2bda8d4ff5 100644 --- a/types/react-icons/lib/io/pull-request.d.ts +++ b/types/react-icons/lib/io/pull-request.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoPullRequest extends React.Component { } +declare class IoPullRequest extends React.Component { } +export = IoPullRequest; diff --git a/types/react-icons/lib/io/qr-scanner.d.ts b/types/react-icons/lib/io/qr-scanner.d.ts index 77b1ca1dcf..1734d537a7 100644 --- a/types/react-icons/lib/io/qr-scanner.d.ts +++ b/types/react-icons/lib/io/qr-scanner.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoQrScanner extends React.Component { } +declare class IoQrScanner extends React.Component { } +export = IoQrScanner; diff --git a/types/react-icons/lib/io/quote.d.ts b/types/react-icons/lib/io/quote.d.ts index ac7f5d32ef..36bb47931e 100644 --- a/types/react-icons/lib/io/quote.d.ts +++ b/types/react-icons/lib/io/quote.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoQuote extends React.Component { } +declare class IoQuote extends React.Component { } +export = IoQuote; diff --git a/types/react-icons/lib/io/radio-waves.d.ts b/types/react-icons/lib/io/radio-waves.d.ts index 0b67b79379..a09c89c0bb 100644 --- a/types/react-icons/lib/io/radio-waves.d.ts +++ b/types/react-icons/lib/io/radio-waves.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoRadioWaves extends React.Component { } +declare class IoRadioWaves extends React.Component { } +export = IoRadioWaves; diff --git a/types/react-icons/lib/io/record.d.ts b/types/react-icons/lib/io/record.d.ts index dd7cd7a65f..9ed9157ee8 100644 --- a/types/react-icons/lib/io/record.d.ts +++ b/types/react-icons/lib/io/record.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoRecord extends React.Component { } +declare class IoRecord extends React.Component { } +export = IoRecord; diff --git a/types/react-icons/lib/io/refresh.d.ts b/types/react-icons/lib/io/refresh.d.ts index 8712271741..5a3668089b 100644 --- a/types/react-icons/lib/io/refresh.d.ts +++ b/types/react-icons/lib/io/refresh.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoRefresh extends React.Component { } +declare class IoRefresh extends React.Component { } +export = IoRefresh; diff --git a/types/react-icons/lib/io/reply-all.d.ts b/types/react-icons/lib/io/reply-all.d.ts index 568a1f8dd4..2028b2e6cb 100644 --- a/types/react-icons/lib/io/reply-all.d.ts +++ b/types/react-icons/lib/io/reply-all.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoReplyAll extends React.Component { } +declare class IoReplyAll extends React.Component { } +export = IoReplyAll; diff --git a/types/react-icons/lib/io/reply.d.ts b/types/react-icons/lib/io/reply.d.ts index 628b3c6ade..d17492f2d7 100644 --- a/types/react-icons/lib/io/reply.d.ts +++ b/types/react-icons/lib/io/reply.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoReply extends React.Component { } +declare class IoReply extends React.Component { } +export = IoReply; diff --git a/types/react-icons/lib/io/ribbon-a.d.ts b/types/react-icons/lib/io/ribbon-a.d.ts index 38d15e1fd1..16d6520b4a 100644 --- a/types/react-icons/lib/io/ribbon-a.d.ts +++ b/types/react-icons/lib/io/ribbon-a.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoRibbonA extends React.Component { } +declare class IoRibbonA extends React.Component { } +export = IoRibbonA; diff --git a/types/react-icons/lib/io/ribbon-b.d.ts b/types/react-icons/lib/io/ribbon-b.d.ts index 8e2ba836cc..1bdaef9e6d 100644 --- a/types/react-icons/lib/io/ribbon-b.d.ts +++ b/types/react-icons/lib/io/ribbon-b.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoRibbonB extends React.Component { } +declare class IoRibbonB extends React.Component { } +export = IoRibbonB; diff --git a/types/react-icons/lib/io/sad-outline.d.ts b/types/react-icons/lib/io/sad-outline.d.ts index 07ef27ecfb..edc818e119 100644 --- a/types/react-icons/lib/io/sad-outline.d.ts +++ b/types/react-icons/lib/io/sad-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoSadOutline extends React.Component { } +declare class IoSadOutline extends React.Component { } +export = IoSadOutline; diff --git a/types/react-icons/lib/io/sad.d.ts b/types/react-icons/lib/io/sad.d.ts index de6e0e3b98..4faba53e28 100644 --- a/types/react-icons/lib/io/sad.d.ts +++ b/types/react-icons/lib/io/sad.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoSad extends React.Component { } +declare class IoSad extends React.Component { } +export = IoSad; diff --git a/types/react-icons/lib/io/scissors.d.ts b/types/react-icons/lib/io/scissors.d.ts index 18b40acd88..65b7062b84 100644 --- a/types/react-icons/lib/io/scissors.d.ts +++ b/types/react-icons/lib/io/scissors.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoScissors extends React.Component { } +declare class IoScissors extends React.Component { } +export = IoScissors; diff --git a/types/react-icons/lib/io/search.d.ts b/types/react-icons/lib/io/search.d.ts index 00175f972b..0d4e410433 100644 --- a/types/react-icons/lib/io/search.d.ts +++ b/types/react-icons/lib/io/search.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoSearch extends React.Component { } +declare class IoSearch extends React.Component { } +export = IoSearch; diff --git a/types/react-icons/lib/io/settings.d.ts b/types/react-icons/lib/io/settings.d.ts index b5793e8679..3c592c9f8c 100644 --- a/types/react-icons/lib/io/settings.d.ts +++ b/types/react-icons/lib/io/settings.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoSettings extends React.Component { } +declare class IoSettings extends React.Component { } +export = IoSettings; diff --git a/types/react-icons/lib/io/share.d.ts b/types/react-icons/lib/io/share.d.ts index ba6d9a210a..24f6f37d6c 100644 --- a/types/react-icons/lib/io/share.d.ts +++ b/types/react-icons/lib/io/share.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoShare extends React.Component { } +declare class IoShare extends React.Component { } +export = IoShare; diff --git a/types/react-icons/lib/io/shuffle.d.ts b/types/react-icons/lib/io/shuffle.d.ts index fb4bf71aad..736f886ae6 100644 --- a/types/react-icons/lib/io/shuffle.d.ts +++ b/types/react-icons/lib/io/shuffle.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoShuffle extends React.Component { } +declare class IoShuffle extends React.Component { } +export = IoShuffle; diff --git a/types/react-icons/lib/io/skip-backward.d.ts b/types/react-icons/lib/io/skip-backward.d.ts index 94bf5675c3..b7c8e6a960 100644 --- a/types/react-icons/lib/io/skip-backward.d.ts +++ b/types/react-icons/lib/io/skip-backward.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoSkipBackward extends React.Component { } +declare class IoSkipBackward extends React.Component { } +export = IoSkipBackward; diff --git a/types/react-icons/lib/io/skip-forward.d.ts b/types/react-icons/lib/io/skip-forward.d.ts index 7912bd2dfa..0c8929e560 100644 --- a/types/react-icons/lib/io/skip-forward.d.ts +++ b/types/react-icons/lib/io/skip-forward.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoSkipForward extends React.Component { } +declare class IoSkipForward extends React.Component { } +export = IoSkipForward; diff --git a/types/react-icons/lib/io/social-android-outline.d.ts b/types/react-icons/lib/io/social-android-outline.d.ts index 3b306ef4a2..b770166e4a 100644 --- a/types/react-icons/lib/io/social-android-outline.d.ts +++ b/types/react-icons/lib/io/social-android-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoSocialAndroidOutline extends React.Component { } +declare class IoSocialAndroidOutline extends React.Component { } +export = IoSocialAndroidOutline; diff --git a/types/react-icons/lib/io/social-android.d.ts b/types/react-icons/lib/io/social-android.d.ts index 362c2af2c5..6b03edee68 100644 --- a/types/react-icons/lib/io/social-android.d.ts +++ b/types/react-icons/lib/io/social-android.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoSocialAndroid extends React.Component { } +declare class IoSocialAndroid extends React.Component { } +export = IoSocialAndroid; diff --git a/types/react-icons/lib/io/social-angular-outline.d.ts b/types/react-icons/lib/io/social-angular-outline.d.ts index be0ad623a7..92bbacb5e4 100644 --- a/types/react-icons/lib/io/social-angular-outline.d.ts +++ b/types/react-icons/lib/io/social-angular-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoSocialAngularOutline extends React.Component { } +declare class IoSocialAngularOutline extends React.Component { } +export = IoSocialAngularOutline; diff --git a/types/react-icons/lib/io/social-angular.d.ts b/types/react-icons/lib/io/social-angular.d.ts index 0286fd5c24..75eaa9c70b 100644 --- a/types/react-icons/lib/io/social-angular.d.ts +++ b/types/react-icons/lib/io/social-angular.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoSocialAngular extends React.Component { } +declare class IoSocialAngular extends React.Component { } +export = IoSocialAngular; diff --git a/types/react-icons/lib/io/social-apple-outline.d.ts b/types/react-icons/lib/io/social-apple-outline.d.ts index 13ef33d192..d639a99fcf 100644 --- a/types/react-icons/lib/io/social-apple-outline.d.ts +++ b/types/react-icons/lib/io/social-apple-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoSocialAppleOutline extends React.Component { } +declare class IoSocialAppleOutline extends React.Component { } +export = IoSocialAppleOutline; diff --git a/types/react-icons/lib/io/social-apple.d.ts b/types/react-icons/lib/io/social-apple.d.ts index bece372480..b10067260f 100644 --- a/types/react-icons/lib/io/social-apple.d.ts +++ b/types/react-icons/lib/io/social-apple.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoSocialApple extends React.Component { } +declare class IoSocialApple extends React.Component { } +export = IoSocialApple; diff --git a/types/react-icons/lib/io/social-bitcoin-outline.d.ts b/types/react-icons/lib/io/social-bitcoin-outline.d.ts index 9044d3dc51..de7c72ef7c 100644 --- a/types/react-icons/lib/io/social-bitcoin-outline.d.ts +++ b/types/react-icons/lib/io/social-bitcoin-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoSocialBitcoinOutline extends React.Component { } +declare class IoSocialBitcoinOutline extends React.Component { } +export = IoSocialBitcoinOutline; diff --git a/types/react-icons/lib/io/social-bitcoin.d.ts b/types/react-icons/lib/io/social-bitcoin.d.ts index f13a9ca0e2..3e606a8d6a 100644 --- a/types/react-icons/lib/io/social-bitcoin.d.ts +++ b/types/react-icons/lib/io/social-bitcoin.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoSocialBitcoin extends React.Component { } +declare class IoSocialBitcoin extends React.Component { } +export = IoSocialBitcoin; diff --git a/types/react-icons/lib/io/social-buffer-outline.d.ts b/types/react-icons/lib/io/social-buffer-outline.d.ts index 073a4d3256..7bdcf075eb 100644 --- a/types/react-icons/lib/io/social-buffer-outline.d.ts +++ b/types/react-icons/lib/io/social-buffer-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoSocialBufferOutline extends React.Component { } +declare class IoSocialBufferOutline extends React.Component { } +export = IoSocialBufferOutline; diff --git a/types/react-icons/lib/io/social-buffer.d.ts b/types/react-icons/lib/io/social-buffer.d.ts index 8f103cbc23..93858b6544 100644 --- a/types/react-icons/lib/io/social-buffer.d.ts +++ b/types/react-icons/lib/io/social-buffer.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoSocialBuffer extends React.Component { } +declare class IoSocialBuffer extends React.Component { } +export = IoSocialBuffer; diff --git a/types/react-icons/lib/io/social-chrome-outline.d.ts b/types/react-icons/lib/io/social-chrome-outline.d.ts index e0b96d90a9..3f36d316e1 100644 --- a/types/react-icons/lib/io/social-chrome-outline.d.ts +++ b/types/react-icons/lib/io/social-chrome-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoSocialChromeOutline extends React.Component { } +declare class IoSocialChromeOutline extends React.Component { } +export = IoSocialChromeOutline; diff --git a/types/react-icons/lib/io/social-chrome.d.ts b/types/react-icons/lib/io/social-chrome.d.ts index a98ec53c7b..bad155a65a 100644 --- a/types/react-icons/lib/io/social-chrome.d.ts +++ b/types/react-icons/lib/io/social-chrome.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoSocialChrome extends React.Component { } +declare class IoSocialChrome extends React.Component { } +export = IoSocialChrome; diff --git a/types/react-icons/lib/io/social-codepen-outline.d.ts b/types/react-icons/lib/io/social-codepen-outline.d.ts index 86affb85f1..a4e6ef6f98 100644 --- a/types/react-icons/lib/io/social-codepen-outline.d.ts +++ b/types/react-icons/lib/io/social-codepen-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoSocialCodepenOutline extends React.Component { } +declare class IoSocialCodepenOutline extends React.Component { } +export = IoSocialCodepenOutline; diff --git a/types/react-icons/lib/io/social-codepen.d.ts b/types/react-icons/lib/io/social-codepen.d.ts index bd6d0fe2ff..ce7a689c2a 100644 --- a/types/react-icons/lib/io/social-codepen.d.ts +++ b/types/react-icons/lib/io/social-codepen.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoSocialCodepen extends React.Component { } +declare class IoSocialCodepen extends React.Component { } +export = IoSocialCodepen; diff --git a/types/react-icons/lib/io/social-css3-outline.d.ts b/types/react-icons/lib/io/social-css3-outline.d.ts index 0d792c0e6a..3a981b6d4c 100644 --- a/types/react-icons/lib/io/social-css3-outline.d.ts +++ b/types/react-icons/lib/io/social-css3-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoSocialCss3Outline extends React.Component { } +declare class IoSocialCss3Outline extends React.Component { } +export = IoSocialCss3Outline; diff --git a/types/react-icons/lib/io/social-css3.d.ts b/types/react-icons/lib/io/social-css3.d.ts index f8ef55d480..df43ca86cf 100644 --- a/types/react-icons/lib/io/social-css3.d.ts +++ b/types/react-icons/lib/io/social-css3.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoSocialCss3 extends React.Component { } +declare class IoSocialCss3 extends React.Component { } +export = IoSocialCss3; diff --git a/types/react-icons/lib/io/social-designernews-outline.d.ts b/types/react-icons/lib/io/social-designernews-outline.d.ts index 9a84d73221..d791b282e2 100644 --- a/types/react-icons/lib/io/social-designernews-outline.d.ts +++ b/types/react-icons/lib/io/social-designernews-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoSocialDesignernewsOutline extends React.Component { } +declare class IoSocialDesignernewsOutline extends React.Component { } +export = IoSocialDesignernewsOutline; diff --git a/types/react-icons/lib/io/social-designernews.d.ts b/types/react-icons/lib/io/social-designernews.d.ts index b7f5b92381..0e462c6530 100644 --- a/types/react-icons/lib/io/social-designernews.d.ts +++ b/types/react-icons/lib/io/social-designernews.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoSocialDesignernews extends React.Component { } +declare class IoSocialDesignernews extends React.Component { } +export = IoSocialDesignernews; diff --git a/types/react-icons/lib/io/social-dribbble-outline.d.ts b/types/react-icons/lib/io/social-dribbble-outline.d.ts index ba7a99e3ab..fd75f5a0c3 100644 --- a/types/react-icons/lib/io/social-dribbble-outline.d.ts +++ b/types/react-icons/lib/io/social-dribbble-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoSocialDribbbleOutline extends React.Component { } +declare class IoSocialDribbbleOutline extends React.Component { } +export = IoSocialDribbbleOutline; diff --git a/types/react-icons/lib/io/social-dribbble.d.ts b/types/react-icons/lib/io/social-dribbble.d.ts index ef43f8d862..d239900650 100644 --- a/types/react-icons/lib/io/social-dribbble.d.ts +++ b/types/react-icons/lib/io/social-dribbble.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoSocialDribbble extends React.Component { } +declare class IoSocialDribbble extends React.Component { } +export = IoSocialDribbble; diff --git a/types/react-icons/lib/io/social-dropbox-outline.d.ts b/types/react-icons/lib/io/social-dropbox-outline.d.ts index 71959da367..d57fc423a5 100644 --- a/types/react-icons/lib/io/social-dropbox-outline.d.ts +++ b/types/react-icons/lib/io/social-dropbox-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoSocialDropboxOutline extends React.Component { } +declare class IoSocialDropboxOutline extends React.Component { } +export = IoSocialDropboxOutline; diff --git a/types/react-icons/lib/io/social-dropbox.d.ts b/types/react-icons/lib/io/social-dropbox.d.ts index e0f243a8fa..d689170efd 100644 --- a/types/react-icons/lib/io/social-dropbox.d.ts +++ b/types/react-icons/lib/io/social-dropbox.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoSocialDropbox extends React.Component { } +declare class IoSocialDropbox extends React.Component { } +export = IoSocialDropbox; diff --git a/types/react-icons/lib/io/social-euro-outline.d.ts b/types/react-icons/lib/io/social-euro-outline.d.ts index ec55bb73a5..6fefc18caa 100644 --- a/types/react-icons/lib/io/social-euro-outline.d.ts +++ b/types/react-icons/lib/io/social-euro-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoSocialEuroOutline extends React.Component { } +declare class IoSocialEuroOutline extends React.Component { } +export = IoSocialEuroOutline; diff --git a/types/react-icons/lib/io/social-euro.d.ts b/types/react-icons/lib/io/social-euro.d.ts index b0b70b5796..36ae7c5e8b 100644 --- a/types/react-icons/lib/io/social-euro.d.ts +++ b/types/react-icons/lib/io/social-euro.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoSocialEuro extends React.Component { } +declare class IoSocialEuro extends React.Component { } +export = IoSocialEuro; diff --git a/types/react-icons/lib/io/social-facebook-outline.d.ts b/types/react-icons/lib/io/social-facebook-outline.d.ts index fce2eda2b9..69cd8a1a00 100644 --- a/types/react-icons/lib/io/social-facebook-outline.d.ts +++ b/types/react-icons/lib/io/social-facebook-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoSocialFacebookOutline extends React.Component { } +declare class IoSocialFacebookOutline extends React.Component { } +export = IoSocialFacebookOutline; diff --git a/types/react-icons/lib/io/social-facebook.d.ts b/types/react-icons/lib/io/social-facebook.d.ts index 696c8f5401..1b2caa8312 100644 --- a/types/react-icons/lib/io/social-facebook.d.ts +++ b/types/react-icons/lib/io/social-facebook.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoSocialFacebook extends React.Component { } +declare class IoSocialFacebook extends React.Component { } +export = IoSocialFacebook; diff --git a/types/react-icons/lib/io/social-foursquare-outline.d.ts b/types/react-icons/lib/io/social-foursquare-outline.d.ts index aa643db79c..536f829ff0 100644 --- a/types/react-icons/lib/io/social-foursquare-outline.d.ts +++ b/types/react-icons/lib/io/social-foursquare-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoSocialFoursquareOutline extends React.Component { } +declare class IoSocialFoursquareOutline extends React.Component { } +export = IoSocialFoursquareOutline; diff --git a/types/react-icons/lib/io/social-foursquare.d.ts b/types/react-icons/lib/io/social-foursquare.d.ts index d4555bfc41..c83428b66d 100644 --- a/types/react-icons/lib/io/social-foursquare.d.ts +++ b/types/react-icons/lib/io/social-foursquare.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoSocialFoursquare extends React.Component { } +declare class IoSocialFoursquare extends React.Component { } +export = IoSocialFoursquare; diff --git a/types/react-icons/lib/io/social-freebsd-devil.d.ts b/types/react-icons/lib/io/social-freebsd-devil.d.ts index 17715e0a06..4f614b2950 100644 --- a/types/react-icons/lib/io/social-freebsd-devil.d.ts +++ b/types/react-icons/lib/io/social-freebsd-devil.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoSocialFreebsdDevil extends React.Component { } +declare class IoSocialFreebsdDevil extends React.Component { } +export = IoSocialFreebsdDevil; diff --git a/types/react-icons/lib/io/social-github-outline.d.ts b/types/react-icons/lib/io/social-github-outline.d.ts index ad810dd9f5..23f4729b8b 100644 --- a/types/react-icons/lib/io/social-github-outline.d.ts +++ b/types/react-icons/lib/io/social-github-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoSocialGithubOutline extends React.Component { } +declare class IoSocialGithubOutline extends React.Component { } +export = IoSocialGithubOutline; diff --git a/types/react-icons/lib/io/social-github.d.ts b/types/react-icons/lib/io/social-github.d.ts index dabc247815..037f125cdd 100644 --- a/types/react-icons/lib/io/social-github.d.ts +++ b/types/react-icons/lib/io/social-github.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoSocialGithub extends React.Component { } +declare class IoSocialGithub extends React.Component { } +export = IoSocialGithub; diff --git a/types/react-icons/lib/io/social-google-outline.d.ts b/types/react-icons/lib/io/social-google-outline.d.ts index 76fa21d665..42dc6df13b 100644 --- a/types/react-icons/lib/io/social-google-outline.d.ts +++ b/types/react-icons/lib/io/social-google-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoSocialGoogleOutline extends React.Component { } +declare class IoSocialGoogleOutline extends React.Component { } +export = IoSocialGoogleOutline; diff --git a/types/react-icons/lib/io/social-google.d.ts b/types/react-icons/lib/io/social-google.d.ts index c31283ade3..c6468168bc 100644 --- a/types/react-icons/lib/io/social-google.d.ts +++ b/types/react-icons/lib/io/social-google.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoSocialGoogle extends React.Component { } +declare class IoSocialGoogle extends React.Component { } +export = IoSocialGoogle; diff --git a/types/react-icons/lib/io/social-googleplus-outline.d.ts b/types/react-icons/lib/io/social-googleplus-outline.d.ts index fe28dee981..7aed37c1c7 100644 --- a/types/react-icons/lib/io/social-googleplus-outline.d.ts +++ b/types/react-icons/lib/io/social-googleplus-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoSocialGoogleplusOutline extends React.Component { } +declare class IoSocialGoogleplusOutline extends React.Component { } +export = IoSocialGoogleplusOutline; diff --git a/types/react-icons/lib/io/social-googleplus.d.ts b/types/react-icons/lib/io/social-googleplus.d.ts index 3fe4052899..563d63e295 100644 --- a/types/react-icons/lib/io/social-googleplus.d.ts +++ b/types/react-icons/lib/io/social-googleplus.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoSocialGoogleplus extends React.Component { } +declare class IoSocialGoogleplus extends React.Component { } +export = IoSocialGoogleplus; diff --git a/types/react-icons/lib/io/social-hackernews-outline.d.ts b/types/react-icons/lib/io/social-hackernews-outline.d.ts index c71910be26..5e39b1b57c 100644 --- a/types/react-icons/lib/io/social-hackernews-outline.d.ts +++ b/types/react-icons/lib/io/social-hackernews-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoSocialHackernewsOutline extends React.Component { } +declare class IoSocialHackernewsOutline extends React.Component { } +export = IoSocialHackernewsOutline; diff --git a/types/react-icons/lib/io/social-hackernews.d.ts b/types/react-icons/lib/io/social-hackernews.d.ts index 69f8ffd48e..af96aadf02 100644 --- a/types/react-icons/lib/io/social-hackernews.d.ts +++ b/types/react-icons/lib/io/social-hackernews.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoSocialHackernews extends React.Component { } +declare class IoSocialHackernews extends React.Component { } +export = IoSocialHackernews; diff --git a/types/react-icons/lib/io/social-html5-outline.d.ts b/types/react-icons/lib/io/social-html5-outline.d.ts index 3c8d43114f..c6155c0329 100644 --- a/types/react-icons/lib/io/social-html5-outline.d.ts +++ b/types/react-icons/lib/io/social-html5-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoSocialHtml5Outline extends React.Component { } +declare class IoSocialHtml5Outline extends React.Component { } +export = IoSocialHtml5Outline; diff --git a/types/react-icons/lib/io/social-html5.d.ts b/types/react-icons/lib/io/social-html5.d.ts index 9916b17e2c..1a464134d6 100644 --- a/types/react-icons/lib/io/social-html5.d.ts +++ b/types/react-icons/lib/io/social-html5.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoSocialHtml5 extends React.Component { } +declare class IoSocialHtml5 extends React.Component { } +export = IoSocialHtml5; diff --git a/types/react-icons/lib/io/social-instagram-outline.d.ts b/types/react-icons/lib/io/social-instagram-outline.d.ts index ffc74066b7..74d5470441 100644 --- a/types/react-icons/lib/io/social-instagram-outline.d.ts +++ b/types/react-icons/lib/io/social-instagram-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoSocialInstagramOutline extends React.Component { } +declare class IoSocialInstagramOutline extends React.Component { } +export = IoSocialInstagramOutline; diff --git a/types/react-icons/lib/io/social-instagram.d.ts b/types/react-icons/lib/io/social-instagram.d.ts index 7c06ae1833..5bc5559afa 100644 --- a/types/react-icons/lib/io/social-instagram.d.ts +++ b/types/react-icons/lib/io/social-instagram.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoSocialInstagram extends React.Component { } +declare class IoSocialInstagram extends React.Component { } +export = IoSocialInstagram; diff --git a/types/react-icons/lib/io/social-javascript-outline.d.ts b/types/react-icons/lib/io/social-javascript-outline.d.ts index 0f21ff7483..82e903167b 100644 --- a/types/react-icons/lib/io/social-javascript-outline.d.ts +++ b/types/react-icons/lib/io/social-javascript-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoSocialJavascriptOutline extends React.Component { } +declare class IoSocialJavascriptOutline extends React.Component { } +export = IoSocialJavascriptOutline; diff --git a/types/react-icons/lib/io/social-javascript.d.ts b/types/react-icons/lib/io/social-javascript.d.ts index 99905575bf..ee2c338e4d 100644 --- a/types/react-icons/lib/io/social-javascript.d.ts +++ b/types/react-icons/lib/io/social-javascript.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoSocialJavascript extends React.Component { } +declare class IoSocialJavascript extends React.Component { } +export = IoSocialJavascript; diff --git a/types/react-icons/lib/io/social-linkedin-outline.d.ts b/types/react-icons/lib/io/social-linkedin-outline.d.ts index 3ddee8261a..546fd5fb48 100644 --- a/types/react-icons/lib/io/social-linkedin-outline.d.ts +++ b/types/react-icons/lib/io/social-linkedin-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoSocialLinkedinOutline extends React.Component { } +declare class IoSocialLinkedinOutline extends React.Component { } +export = IoSocialLinkedinOutline; diff --git a/types/react-icons/lib/io/social-linkedin.d.ts b/types/react-icons/lib/io/social-linkedin.d.ts index 0266663678..495cdcb265 100644 --- a/types/react-icons/lib/io/social-linkedin.d.ts +++ b/types/react-icons/lib/io/social-linkedin.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoSocialLinkedin extends React.Component { } +declare class IoSocialLinkedin extends React.Component { } +export = IoSocialLinkedin; diff --git a/types/react-icons/lib/io/social-markdown.d.ts b/types/react-icons/lib/io/social-markdown.d.ts index 963119614d..0a24e7e4f2 100644 --- a/types/react-icons/lib/io/social-markdown.d.ts +++ b/types/react-icons/lib/io/social-markdown.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoSocialMarkdown extends React.Component { } +declare class IoSocialMarkdown extends React.Component { } +export = IoSocialMarkdown; diff --git a/types/react-icons/lib/io/social-nodejs.d.ts b/types/react-icons/lib/io/social-nodejs.d.ts index 642390dc4a..f49182ef27 100644 --- a/types/react-icons/lib/io/social-nodejs.d.ts +++ b/types/react-icons/lib/io/social-nodejs.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoSocialNodejs extends React.Component { } +declare class IoSocialNodejs extends React.Component { } +export = IoSocialNodejs; diff --git a/types/react-icons/lib/io/social-octocat.d.ts b/types/react-icons/lib/io/social-octocat.d.ts index 0003cb487c..dbba07c262 100644 --- a/types/react-icons/lib/io/social-octocat.d.ts +++ b/types/react-icons/lib/io/social-octocat.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoSocialOctocat extends React.Component { } +declare class IoSocialOctocat extends React.Component { } +export = IoSocialOctocat; diff --git a/types/react-icons/lib/io/social-pinterest-outline.d.ts b/types/react-icons/lib/io/social-pinterest-outline.d.ts index 4ed2d123ac..8890d054cd 100644 --- a/types/react-icons/lib/io/social-pinterest-outline.d.ts +++ b/types/react-icons/lib/io/social-pinterest-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoSocialPinterestOutline extends React.Component { } +declare class IoSocialPinterestOutline extends React.Component { } +export = IoSocialPinterestOutline; diff --git a/types/react-icons/lib/io/social-pinterest.d.ts b/types/react-icons/lib/io/social-pinterest.d.ts index f2ee95376f..4d678c979e 100644 --- a/types/react-icons/lib/io/social-pinterest.d.ts +++ b/types/react-icons/lib/io/social-pinterest.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoSocialPinterest extends React.Component { } +declare class IoSocialPinterest extends React.Component { } +export = IoSocialPinterest; diff --git a/types/react-icons/lib/io/social-python.d.ts b/types/react-icons/lib/io/social-python.d.ts index 78a6e50954..ad63062786 100644 --- a/types/react-icons/lib/io/social-python.d.ts +++ b/types/react-icons/lib/io/social-python.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoSocialPython extends React.Component { } +declare class IoSocialPython extends React.Component { } +export = IoSocialPython; diff --git a/types/react-icons/lib/io/social-reddit-outline.d.ts b/types/react-icons/lib/io/social-reddit-outline.d.ts index 9dd5355bdc..a02958937d 100644 --- a/types/react-icons/lib/io/social-reddit-outline.d.ts +++ b/types/react-icons/lib/io/social-reddit-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoSocialRedditOutline extends React.Component { } +declare class IoSocialRedditOutline extends React.Component { } +export = IoSocialRedditOutline; diff --git a/types/react-icons/lib/io/social-reddit.d.ts b/types/react-icons/lib/io/social-reddit.d.ts index e103be80d3..f52f5669fb 100644 --- a/types/react-icons/lib/io/social-reddit.d.ts +++ b/types/react-icons/lib/io/social-reddit.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoSocialReddit extends React.Component { } +declare class IoSocialReddit extends React.Component { } +export = IoSocialReddit; diff --git a/types/react-icons/lib/io/social-rss-outline.d.ts b/types/react-icons/lib/io/social-rss-outline.d.ts index 4baab1f80b..f6a65f1868 100644 --- a/types/react-icons/lib/io/social-rss-outline.d.ts +++ b/types/react-icons/lib/io/social-rss-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoSocialRssOutline extends React.Component { } +declare class IoSocialRssOutline extends React.Component { } +export = IoSocialRssOutline; diff --git a/types/react-icons/lib/io/social-rss.d.ts b/types/react-icons/lib/io/social-rss.d.ts index 2c749b4af9..b605db06e4 100644 --- a/types/react-icons/lib/io/social-rss.d.ts +++ b/types/react-icons/lib/io/social-rss.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoSocialRss extends React.Component { } +declare class IoSocialRss extends React.Component { } +export = IoSocialRss; diff --git a/types/react-icons/lib/io/social-sass.d.ts b/types/react-icons/lib/io/social-sass.d.ts index 6ba05bc9ae..3c5e724877 100644 --- a/types/react-icons/lib/io/social-sass.d.ts +++ b/types/react-icons/lib/io/social-sass.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoSocialSass extends React.Component { } +declare class IoSocialSass extends React.Component { } +export = IoSocialSass; diff --git a/types/react-icons/lib/io/social-skype-outline.d.ts b/types/react-icons/lib/io/social-skype-outline.d.ts index cefebe89c9..8a3f01062b 100644 --- a/types/react-icons/lib/io/social-skype-outline.d.ts +++ b/types/react-icons/lib/io/social-skype-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoSocialSkypeOutline extends React.Component { } +declare class IoSocialSkypeOutline extends React.Component { } +export = IoSocialSkypeOutline; diff --git a/types/react-icons/lib/io/social-skype.d.ts b/types/react-icons/lib/io/social-skype.d.ts index a49a35ce62..3c865dfde7 100644 --- a/types/react-icons/lib/io/social-skype.d.ts +++ b/types/react-icons/lib/io/social-skype.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoSocialSkype extends React.Component { } +declare class IoSocialSkype extends React.Component { } +export = IoSocialSkype; diff --git a/types/react-icons/lib/io/social-snapchat-outline.d.ts b/types/react-icons/lib/io/social-snapchat-outline.d.ts index 5fe324cb94..7a9e2ded8f 100644 --- a/types/react-icons/lib/io/social-snapchat-outline.d.ts +++ b/types/react-icons/lib/io/social-snapchat-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoSocialSnapchatOutline extends React.Component { } +declare class IoSocialSnapchatOutline extends React.Component { } +export = IoSocialSnapchatOutline; diff --git a/types/react-icons/lib/io/social-snapchat.d.ts b/types/react-icons/lib/io/social-snapchat.d.ts index ba87070d61..a4485fde56 100644 --- a/types/react-icons/lib/io/social-snapchat.d.ts +++ b/types/react-icons/lib/io/social-snapchat.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoSocialSnapchat extends React.Component { } +declare class IoSocialSnapchat extends React.Component { } +export = IoSocialSnapchat; diff --git a/types/react-icons/lib/io/social-tumblr-outline.d.ts b/types/react-icons/lib/io/social-tumblr-outline.d.ts index dbf70d2b60..6d7e99cd46 100644 --- a/types/react-icons/lib/io/social-tumblr-outline.d.ts +++ b/types/react-icons/lib/io/social-tumblr-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoSocialTumblrOutline extends React.Component { } +declare class IoSocialTumblrOutline extends React.Component { } +export = IoSocialTumblrOutline; diff --git a/types/react-icons/lib/io/social-tumblr.d.ts b/types/react-icons/lib/io/social-tumblr.d.ts index ce5c8b4170..16485cdbf6 100644 --- a/types/react-icons/lib/io/social-tumblr.d.ts +++ b/types/react-icons/lib/io/social-tumblr.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoSocialTumblr extends React.Component { } +declare class IoSocialTumblr extends React.Component { } +export = IoSocialTumblr; diff --git a/types/react-icons/lib/io/social-tux.d.ts b/types/react-icons/lib/io/social-tux.d.ts index 411ff72010..68d6a6787e 100644 --- a/types/react-icons/lib/io/social-tux.d.ts +++ b/types/react-icons/lib/io/social-tux.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoSocialTux extends React.Component { } +declare class IoSocialTux extends React.Component { } +export = IoSocialTux; diff --git a/types/react-icons/lib/io/social-twitch-outline.d.ts b/types/react-icons/lib/io/social-twitch-outline.d.ts index 5875914d98..0639dc5552 100644 --- a/types/react-icons/lib/io/social-twitch-outline.d.ts +++ b/types/react-icons/lib/io/social-twitch-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoSocialTwitchOutline extends React.Component { } +declare class IoSocialTwitchOutline extends React.Component { } +export = IoSocialTwitchOutline; diff --git a/types/react-icons/lib/io/social-twitch.d.ts b/types/react-icons/lib/io/social-twitch.d.ts index 109993f553..e62fbcda60 100644 --- a/types/react-icons/lib/io/social-twitch.d.ts +++ b/types/react-icons/lib/io/social-twitch.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoSocialTwitch extends React.Component { } +declare class IoSocialTwitch extends React.Component { } +export = IoSocialTwitch; diff --git a/types/react-icons/lib/io/social-twitter-outline.d.ts b/types/react-icons/lib/io/social-twitter-outline.d.ts index 2ecfe578dd..cc296a9604 100644 --- a/types/react-icons/lib/io/social-twitter-outline.d.ts +++ b/types/react-icons/lib/io/social-twitter-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoSocialTwitterOutline extends React.Component { } +declare class IoSocialTwitterOutline extends React.Component { } +export = IoSocialTwitterOutline; diff --git a/types/react-icons/lib/io/social-twitter.d.ts b/types/react-icons/lib/io/social-twitter.d.ts index 81b8c0817a..9a6316e86e 100644 --- a/types/react-icons/lib/io/social-twitter.d.ts +++ b/types/react-icons/lib/io/social-twitter.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoSocialTwitter extends React.Component { } +declare class IoSocialTwitter extends React.Component { } +export = IoSocialTwitter; diff --git a/types/react-icons/lib/io/social-usd-outline.d.ts b/types/react-icons/lib/io/social-usd-outline.d.ts index 8c12d195f5..94a304538b 100644 --- a/types/react-icons/lib/io/social-usd-outline.d.ts +++ b/types/react-icons/lib/io/social-usd-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoSocialUsdOutline extends React.Component { } +declare class IoSocialUsdOutline extends React.Component { } +export = IoSocialUsdOutline; diff --git a/types/react-icons/lib/io/social-usd.d.ts b/types/react-icons/lib/io/social-usd.d.ts index a6814ba496..31bff60cbf 100644 --- a/types/react-icons/lib/io/social-usd.d.ts +++ b/types/react-icons/lib/io/social-usd.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoSocialUsd extends React.Component { } +declare class IoSocialUsd extends React.Component { } +export = IoSocialUsd; diff --git a/types/react-icons/lib/io/social-vimeo-outline.d.ts b/types/react-icons/lib/io/social-vimeo-outline.d.ts index bcac0c4f79..3881531895 100644 --- a/types/react-icons/lib/io/social-vimeo-outline.d.ts +++ b/types/react-icons/lib/io/social-vimeo-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoSocialVimeoOutline extends React.Component { } +declare class IoSocialVimeoOutline extends React.Component { } +export = IoSocialVimeoOutline; diff --git a/types/react-icons/lib/io/social-vimeo.d.ts b/types/react-icons/lib/io/social-vimeo.d.ts index 5e0e068a51..2c6f6f91ef 100644 --- a/types/react-icons/lib/io/social-vimeo.d.ts +++ b/types/react-icons/lib/io/social-vimeo.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoSocialVimeo extends React.Component { } +declare class IoSocialVimeo extends React.Component { } +export = IoSocialVimeo; diff --git a/types/react-icons/lib/io/social-whatsapp-outline.d.ts b/types/react-icons/lib/io/social-whatsapp-outline.d.ts index d3945dd43a..c6f93dbc26 100644 --- a/types/react-icons/lib/io/social-whatsapp-outline.d.ts +++ b/types/react-icons/lib/io/social-whatsapp-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoSocialWhatsappOutline extends React.Component { } +declare class IoSocialWhatsappOutline extends React.Component { } +export = IoSocialWhatsappOutline; diff --git a/types/react-icons/lib/io/social-whatsapp.d.ts b/types/react-icons/lib/io/social-whatsapp.d.ts index 3f767a557e..a89d97fb8a 100644 --- a/types/react-icons/lib/io/social-whatsapp.d.ts +++ b/types/react-icons/lib/io/social-whatsapp.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoSocialWhatsapp extends React.Component { } +declare class IoSocialWhatsapp extends React.Component { } +export = IoSocialWhatsapp; diff --git a/types/react-icons/lib/io/social-windows-outline.d.ts b/types/react-icons/lib/io/social-windows-outline.d.ts index 204f5cc4ef..59e54299d1 100644 --- a/types/react-icons/lib/io/social-windows-outline.d.ts +++ b/types/react-icons/lib/io/social-windows-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoSocialWindowsOutline extends React.Component { } +declare class IoSocialWindowsOutline extends React.Component { } +export = IoSocialWindowsOutline; diff --git a/types/react-icons/lib/io/social-windows.d.ts b/types/react-icons/lib/io/social-windows.d.ts index 4a5a4854bd..3ee6ad9bd1 100644 --- a/types/react-icons/lib/io/social-windows.d.ts +++ b/types/react-icons/lib/io/social-windows.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoSocialWindows extends React.Component { } +declare class IoSocialWindows extends React.Component { } +export = IoSocialWindows; diff --git a/types/react-icons/lib/io/social-wordpress-outline.d.ts b/types/react-icons/lib/io/social-wordpress-outline.d.ts index 15e7a115dd..87bb1b446d 100644 --- a/types/react-icons/lib/io/social-wordpress-outline.d.ts +++ b/types/react-icons/lib/io/social-wordpress-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoSocialWordpressOutline extends React.Component { } +declare class IoSocialWordpressOutline extends React.Component { } +export = IoSocialWordpressOutline; diff --git a/types/react-icons/lib/io/social-wordpress.d.ts b/types/react-icons/lib/io/social-wordpress.d.ts index 4d6e02a859..5b0f9037b6 100644 --- a/types/react-icons/lib/io/social-wordpress.d.ts +++ b/types/react-icons/lib/io/social-wordpress.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoSocialWordpress extends React.Component { } +declare class IoSocialWordpress extends React.Component { } +export = IoSocialWordpress; diff --git a/types/react-icons/lib/io/social-yahoo-outline.d.ts b/types/react-icons/lib/io/social-yahoo-outline.d.ts index 5dcc671758..97fd9f19bd 100644 --- a/types/react-icons/lib/io/social-yahoo-outline.d.ts +++ b/types/react-icons/lib/io/social-yahoo-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoSocialYahooOutline extends React.Component { } +declare class IoSocialYahooOutline extends React.Component { } +export = IoSocialYahooOutline; diff --git a/types/react-icons/lib/io/social-yahoo.d.ts b/types/react-icons/lib/io/social-yahoo.d.ts index b5e6c878d6..5af9daf8ae 100644 --- a/types/react-icons/lib/io/social-yahoo.d.ts +++ b/types/react-icons/lib/io/social-yahoo.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoSocialYahoo extends React.Component { } +declare class IoSocialYahoo extends React.Component { } +export = IoSocialYahoo; diff --git a/types/react-icons/lib/io/social-yen-outline.d.ts b/types/react-icons/lib/io/social-yen-outline.d.ts index 889d6655a6..7b4afff62d 100644 --- a/types/react-icons/lib/io/social-yen-outline.d.ts +++ b/types/react-icons/lib/io/social-yen-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoSocialYenOutline extends React.Component { } +declare class IoSocialYenOutline extends React.Component { } +export = IoSocialYenOutline; diff --git a/types/react-icons/lib/io/social-yen.d.ts b/types/react-icons/lib/io/social-yen.d.ts index 59d9b2b28b..97909d13f6 100644 --- a/types/react-icons/lib/io/social-yen.d.ts +++ b/types/react-icons/lib/io/social-yen.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoSocialYen extends React.Component { } +declare class IoSocialYen extends React.Component { } +export = IoSocialYen; diff --git a/types/react-icons/lib/io/social-youtube-outline.d.ts b/types/react-icons/lib/io/social-youtube-outline.d.ts index 09812d8e86..6395697460 100644 --- a/types/react-icons/lib/io/social-youtube-outline.d.ts +++ b/types/react-icons/lib/io/social-youtube-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoSocialYoutubeOutline extends React.Component { } +declare class IoSocialYoutubeOutline extends React.Component { } +export = IoSocialYoutubeOutline; diff --git a/types/react-icons/lib/io/social-youtube.d.ts b/types/react-icons/lib/io/social-youtube.d.ts index 881e782d72..18df52b892 100644 --- a/types/react-icons/lib/io/social-youtube.d.ts +++ b/types/react-icons/lib/io/social-youtube.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoSocialYoutube extends React.Component { } +declare class IoSocialYoutube extends React.Component { } +export = IoSocialYoutube; diff --git a/types/react-icons/lib/io/soup-can-outline.d.ts b/types/react-icons/lib/io/soup-can-outline.d.ts index e1fe063808..3f06093398 100644 --- a/types/react-icons/lib/io/soup-can-outline.d.ts +++ b/types/react-icons/lib/io/soup-can-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoSoupCanOutline extends React.Component { } +declare class IoSoupCanOutline extends React.Component { } +export = IoSoupCanOutline; diff --git a/types/react-icons/lib/io/soup-can.d.ts b/types/react-icons/lib/io/soup-can.d.ts index 50b4167624..c2bf15731b 100644 --- a/types/react-icons/lib/io/soup-can.d.ts +++ b/types/react-icons/lib/io/soup-can.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoSoupCan extends React.Component { } +declare class IoSoupCan extends React.Component { } +export = IoSoupCan; diff --git a/types/react-icons/lib/io/speakerphone.d.ts b/types/react-icons/lib/io/speakerphone.d.ts index af9117f78e..780c4002fd 100644 --- a/types/react-icons/lib/io/speakerphone.d.ts +++ b/types/react-icons/lib/io/speakerphone.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoSpeakerphone extends React.Component { } +declare class IoSpeakerphone extends React.Component { } +export = IoSpeakerphone; diff --git a/types/react-icons/lib/io/speedometer.d.ts b/types/react-icons/lib/io/speedometer.d.ts index 50d69af596..cfa16db12d 100644 --- a/types/react-icons/lib/io/speedometer.d.ts +++ b/types/react-icons/lib/io/speedometer.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoSpeedometer extends React.Component { } +declare class IoSpeedometer extends React.Component { } +export = IoSpeedometer; diff --git a/types/react-icons/lib/io/spoon.d.ts b/types/react-icons/lib/io/spoon.d.ts index 107a88c9a6..d3ab8e61d0 100644 --- a/types/react-icons/lib/io/spoon.d.ts +++ b/types/react-icons/lib/io/spoon.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoSpoon extends React.Component { } +declare class IoSpoon extends React.Component { } +export = IoSpoon; diff --git a/types/react-icons/lib/io/star.d.ts b/types/react-icons/lib/io/star.d.ts index f4c1953512..8db2437a5e 100644 --- a/types/react-icons/lib/io/star.d.ts +++ b/types/react-icons/lib/io/star.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoStar extends React.Component { } +declare class IoStar extends React.Component { } +export = IoStar; diff --git a/types/react-icons/lib/io/stats-bars.d.ts b/types/react-icons/lib/io/stats-bars.d.ts index 2d5e5024cb..0a94f74c65 100644 --- a/types/react-icons/lib/io/stats-bars.d.ts +++ b/types/react-icons/lib/io/stats-bars.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoStatsBars extends React.Component { } +declare class IoStatsBars extends React.Component { } +export = IoStatsBars; diff --git a/types/react-icons/lib/io/steam.d.ts b/types/react-icons/lib/io/steam.d.ts index 097461e15c..be700cdf00 100644 --- a/types/react-icons/lib/io/steam.d.ts +++ b/types/react-icons/lib/io/steam.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoSteam extends React.Component { } +declare class IoSteam extends React.Component { } +export = IoSteam; diff --git a/types/react-icons/lib/io/stop.d.ts b/types/react-icons/lib/io/stop.d.ts index 5fed81dabb..c2910f1023 100644 --- a/types/react-icons/lib/io/stop.d.ts +++ b/types/react-icons/lib/io/stop.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoStop extends React.Component { } +declare class IoStop extends React.Component { } +export = IoStop; diff --git a/types/react-icons/lib/io/thermometer.d.ts b/types/react-icons/lib/io/thermometer.d.ts index f76efa25ac..978014255d 100644 --- a/types/react-icons/lib/io/thermometer.d.ts +++ b/types/react-icons/lib/io/thermometer.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoThermometer extends React.Component { } +declare class IoThermometer extends React.Component { } +export = IoThermometer; diff --git a/types/react-icons/lib/io/thumbsdown.d.ts b/types/react-icons/lib/io/thumbsdown.d.ts index ebbbe6a64e..c1106f88bc 100644 --- a/types/react-icons/lib/io/thumbsdown.d.ts +++ b/types/react-icons/lib/io/thumbsdown.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoThumbsdown extends React.Component { } +declare class IoThumbsdown extends React.Component { } +export = IoThumbsdown; diff --git a/types/react-icons/lib/io/thumbsup.d.ts b/types/react-icons/lib/io/thumbsup.d.ts index 285d40f186..a295066207 100644 --- a/types/react-icons/lib/io/thumbsup.d.ts +++ b/types/react-icons/lib/io/thumbsup.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoThumbsup extends React.Component { } +declare class IoThumbsup extends React.Component { } +export = IoThumbsup; diff --git a/types/react-icons/lib/io/toggle-filled.d.ts b/types/react-icons/lib/io/toggle-filled.d.ts index 93cba93938..8a97c60a00 100644 --- a/types/react-icons/lib/io/toggle-filled.d.ts +++ b/types/react-icons/lib/io/toggle-filled.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoToggleFilled extends React.Component { } +declare class IoToggleFilled extends React.Component { } +export = IoToggleFilled; diff --git a/types/react-icons/lib/io/toggle.d.ts b/types/react-icons/lib/io/toggle.d.ts index 1af341ce4f..b8c2fdb3ff 100644 --- a/types/react-icons/lib/io/toggle.d.ts +++ b/types/react-icons/lib/io/toggle.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoToggle extends React.Component { } +declare class IoToggle extends React.Component { } +export = IoToggle; diff --git a/types/react-icons/lib/io/transgender.d.ts b/types/react-icons/lib/io/transgender.d.ts index 254ada7d1a..c1a45e1897 100644 --- a/types/react-icons/lib/io/transgender.d.ts +++ b/types/react-icons/lib/io/transgender.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoTransgender extends React.Component { } +declare class IoTransgender extends React.Component { } +export = IoTransgender; diff --git a/types/react-icons/lib/io/trash-a.d.ts b/types/react-icons/lib/io/trash-a.d.ts index bfd8815599..34ab344936 100644 --- a/types/react-icons/lib/io/trash-a.d.ts +++ b/types/react-icons/lib/io/trash-a.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoTrashA extends React.Component { } +declare class IoTrashA extends React.Component { } +export = IoTrashA; diff --git a/types/react-icons/lib/io/trash-b.d.ts b/types/react-icons/lib/io/trash-b.d.ts index c7c0cde13a..c05cf3253c 100644 --- a/types/react-icons/lib/io/trash-b.d.ts +++ b/types/react-icons/lib/io/trash-b.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoTrashB extends React.Component { } +declare class IoTrashB extends React.Component { } +export = IoTrashB; diff --git a/types/react-icons/lib/io/trophy.d.ts b/types/react-icons/lib/io/trophy.d.ts index f5f159c2e2..6dd8ed7039 100644 --- a/types/react-icons/lib/io/trophy.d.ts +++ b/types/react-icons/lib/io/trophy.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoTrophy extends React.Component { } +declare class IoTrophy extends React.Component { } +export = IoTrophy; diff --git a/types/react-icons/lib/io/tshirt-outline.d.ts b/types/react-icons/lib/io/tshirt-outline.d.ts index b530f97107..859fc600ab 100644 --- a/types/react-icons/lib/io/tshirt-outline.d.ts +++ b/types/react-icons/lib/io/tshirt-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoTshirtOutline extends React.Component { } +declare class IoTshirtOutline extends React.Component { } +export = IoTshirtOutline; diff --git a/types/react-icons/lib/io/tshirt.d.ts b/types/react-icons/lib/io/tshirt.d.ts index b0072273b9..5c889dabfa 100644 --- a/types/react-icons/lib/io/tshirt.d.ts +++ b/types/react-icons/lib/io/tshirt.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoTshirt extends React.Component { } +declare class IoTshirt extends React.Component { } +export = IoTshirt; diff --git a/types/react-icons/lib/io/umbrella.d.ts b/types/react-icons/lib/io/umbrella.d.ts index b85cf5b8c9..b9311248eb 100644 --- a/types/react-icons/lib/io/umbrella.d.ts +++ b/types/react-icons/lib/io/umbrella.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoUmbrella extends React.Component { } +declare class IoUmbrella extends React.Component { } +export = IoUmbrella; diff --git a/types/react-icons/lib/io/university.d.ts b/types/react-icons/lib/io/university.d.ts index 5947ae4172..7f070ad2a9 100644 --- a/types/react-icons/lib/io/university.d.ts +++ b/types/react-icons/lib/io/university.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoUniversity extends React.Component { } +declare class IoUniversity extends React.Component { } +export = IoUniversity; diff --git a/types/react-icons/lib/io/unlocked.d.ts b/types/react-icons/lib/io/unlocked.d.ts index 741c5ea952..d1863717f1 100644 --- a/types/react-icons/lib/io/unlocked.d.ts +++ b/types/react-icons/lib/io/unlocked.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoUnlocked extends React.Component { } +declare class IoUnlocked extends React.Component { } +export = IoUnlocked; diff --git a/types/react-icons/lib/io/upload.d.ts b/types/react-icons/lib/io/upload.d.ts index 1ffb5c4aaf..2e5dfaf390 100644 --- a/types/react-icons/lib/io/upload.d.ts +++ b/types/react-icons/lib/io/upload.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoUpload extends React.Component { } +declare class IoUpload extends React.Component { } +export = IoUpload; diff --git a/types/react-icons/lib/io/usb.d.ts b/types/react-icons/lib/io/usb.d.ts index e53180c80e..7e15ce6b91 100644 --- a/types/react-icons/lib/io/usb.d.ts +++ b/types/react-icons/lib/io/usb.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoUsb extends React.Component { } +declare class IoUsb extends React.Component { } +export = IoUsb; diff --git a/types/react-icons/lib/io/videocamera.d.ts b/types/react-icons/lib/io/videocamera.d.ts index 43148acede..b87a08d27e 100644 --- a/types/react-icons/lib/io/videocamera.d.ts +++ b/types/react-icons/lib/io/videocamera.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoVideocamera extends React.Component { } +declare class IoVideocamera extends React.Component { } +export = IoVideocamera; diff --git a/types/react-icons/lib/io/volume-high.d.ts b/types/react-icons/lib/io/volume-high.d.ts index fdb362c990..3778a4f81a 100644 --- a/types/react-icons/lib/io/volume-high.d.ts +++ b/types/react-icons/lib/io/volume-high.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoVolumeHigh extends React.Component { } +declare class IoVolumeHigh extends React.Component { } +export = IoVolumeHigh; diff --git a/types/react-icons/lib/io/volume-low.d.ts b/types/react-icons/lib/io/volume-low.d.ts index 1ac513c891..0850e7f04b 100644 --- a/types/react-icons/lib/io/volume-low.d.ts +++ b/types/react-icons/lib/io/volume-low.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoVolumeLow extends React.Component { } +declare class IoVolumeLow extends React.Component { } +export = IoVolumeLow; diff --git a/types/react-icons/lib/io/volume-medium.d.ts b/types/react-icons/lib/io/volume-medium.d.ts index 7607d22632..dd63b5957c 100644 --- a/types/react-icons/lib/io/volume-medium.d.ts +++ b/types/react-icons/lib/io/volume-medium.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoVolumeMedium extends React.Component { } +declare class IoVolumeMedium extends React.Component { } +export = IoVolumeMedium; diff --git a/types/react-icons/lib/io/volume-mute.d.ts b/types/react-icons/lib/io/volume-mute.d.ts index ff7330e544..4d515705cd 100644 --- a/types/react-icons/lib/io/volume-mute.d.ts +++ b/types/react-icons/lib/io/volume-mute.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoVolumeMute extends React.Component { } +declare class IoVolumeMute extends React.Component { } +export = IoVolumeMute; diff --git a/types/react-icons/lib/io/wand.d.ts b/types/react-icons/lib/io/wand.d.ts index e1e22869ee..29428f8a3d 100644 --- a/types/react-icons/lib/io/wand.d.ts +++ b/types/react-icons/lib/io/wand.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoWand extends React.Component { } +declare class IoWand extends React.Component { } +export = IoWand; diff --git a/types/react-icons/lib/io/waterdrop.d.ts b/types/react-icons/lib/io/waterdrop.d.ts index a674835d55..503b4fd799 100644 --- a/types/react-icons/lib/io/waterdrop.d.ts +++ b/types/react-icons/lib/io/waterdrop.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoWaterdrop extends React.Component { } +declare class IoWaterdrop extends React.Component { } +export = IoWaterdrop; diff --git a/types/react-icons/lib/io/wifi.d.ts b/types/react-icons/lib/io/wifi.d.ts index 3bec1b2449..9c8322487a 100644 --- a/types/react-icons/lib/io/wifi.d.ts +++ b/types/react-icons/lib/io/wifi.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoWifi extends React.Component { } +declare class IoWifi extends React.Component { } +export = IoWifi; diff --git a/types/react-icons/lib/io/wineglass.d.ts b/types/react-icons/lib/io/wineglass.d.ts index 33b7d9843e..a7fb1c5520 100644 --- a/types/react-icons/lib/io/wineglass.d.ts +++ b/types/react-icons/lib/io/wineglass.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoWineglass extends React.Component { } +declare class IoWineglass extends React.Component { } +export = IoWineglass; diff --git a/types/react-icons/lib/io/woman.d.ts b/types/react-icons/lib/io/woman.d.ts index b3cbbd6294..4d3651cc4c 100644 --- a/types/react-icons/lib/io/woman.d.ts +++ b/types/react-icons/lib/io/woman.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoWoman extends React.Component { } +declare class IoWoman extends React.Component { } +export = IoWoman; diff --git a/types/react-icons/lib/io/wrench.d.ts b/types/react-icons/lib/io/wrench.d.ts index 6f53a0a8cd..74c56ffaa3 100644 --- a/types/react-icons/lib/io/wrench.d.ts +++ b/types/react-icons/lib/io/wrench.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoWrench extends React.Component { } +declare class IoWrench extends React.Component { } +export = IoWrench; diff --git a/types/react-icons/lib/io/xbox.d.ts b/types/react-icons/lib/io/xbox.d.ts index 2d3db0cbbc..857e10a0e4 100644 --- a/types/react-icons/lib/io/xbox.d.ts +++ b/types/react-icons/lib/io/xbox.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class IoXbox extends React.Component { } +declare class IoXbox extends React.Component { } +export = IoXbox; diff --git a/types/react-icons/lib/md/3d-rotation.d.ts b/types/react-icons/lib/md/3d-rotation.d.ts index 39d7887e16..cd124ed1dd 100644 --- a/types/react-icons/lib/md/3d-rotation.d.ts +++ b/types/react-icons/lib/md/3d-rotation.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class Md3dRotation extends React.Component { } +declare class Md3dRotation extends React.Component { } +export = Md3dRotation; diff --git a/types/react-icons/lib/md/ac-unit.d.ts b/types/react-icons/lib/md/ac-unit.d.ts index 19f6257f61..e5da2947aa 100644 --- a/types/react-icons/lib/md/ac-unit.d.ts +++ b/types/react-icons/lib/md/ac-unit.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdAcUnit extends React.Component { } +declare class MdAcUnit extends React.Component { } +export = MdAcUnit; diff --git a/types/react-icons/lib/md/access-alarm.d.ts b/types/react-icons/lib/md/access-alarm.d.ts index 8bfb8edd91..7161430611 100644 --- a/types/react-icons/lib/md/access-alarm.d.ts +++ b/types/react-icons/lib/md/access-alarm.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdAccessAlarm extends React.Component { } +declare class MdAccessAlarm extends React.Component { } +export = MdAccessAlarm; diff --git a/types/react-icons/lib/md/access-alarms.d.ts b/types/react-icons/lib/md/access-alarms.d.ts index 0d5b3fa4db..b984a238a4 100644 --- a/types/react-icons/lib/md/access-alarms.d.ts +++ b/types/react-icons/lib/md/access-alarms.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdAccessAlarms extends React.Component { } +declare class MdAccessAlarms extends React.Component { } +export = MdAccessAlarms; diff --git a/types/react-icons/lib/md/access-time.d.ts b/types/react-icons/lib/md/access-time.d.ts index 552cf439f3..bc39504143 100644 --- a/types/react-icons/lib/md/access-time.d.ts +++ b/types/react-icons/lib/md/access-time.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdAccessTime extends React.Component { } +declare class MdAccessTime extends React.Component { } +export = MdAccessTime; diff --git a/types/react-icons/lib/md/accessibility.d.ts b/types/react-icons/lib/md/accessibility.d.ts index 4160aa2c69..5ba4fd7f45 100644 --- a/types/react-icons/lib/md/accessibility.d.ts +++ b/types/react-icons/lib/md/accessibility.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdAccessibility extends React.Component { } +declare class MdAccessibility extends React.Component { } +export = MdAccessibility; diff --git a/types/react-icons/lib/md/accessible.d.ts b/types/react-icons/lib/md/accessible.d.ts index 180d7b0bc5..8ed1603dcb 100644 --- a/types/react-icons/lib/md/accessible.d.ts +++ b/types/react-icons/lib/md/accessible.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdAccessible extends React.Component { } +declare class MdAccessible extends React.Component { } +export = MdAccessible; diff --git a/types/react-icons/lib/md/account-balance-wallet.d.ts b/types/react-icons/lib/md/account-balance-wallet.d.ts index 469c3e9876..a6b7794282 100644 --- a/types/react-icons/lib/md/account-balance-wallet.d.ts +++ b/types/react-icons/lib/md/account-balance-wallet.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdAccountBalanceWallet extends React.Component { } +declare class MdAccountBalanceWallet extends React.Component { } +export = MdAccountBalanceWallet; diff --git a/types/react-icons/lib/md/account-balance.d.ts b/types/react-icons/lib/md/account-balance.d.ts index 22edcbea9a..e3677c0060 100644 --- a/types/react-icons/lib/md/account-balance.d.ts +++ b/types/react-icons/lib/md/account-balance.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdAccountBalance extends React.Component { } +declare class MdAccountBalance extends React.Component { } +export = MdAccountBalance; diff --git a/types/react-icons/lib/md/account-box.d.ts b/types/react-icons/lib/md/account-box.d.ts index c49ee5214e..4bda5e52b3 100644 --- a/types/react-icons/lib/md/account-box.d.ts +++ b/types/react-icons/lib/md/account-box.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdAccountBox extends React.Component { } +declare class MdAccountBox extends React.Component { } +export = MdAccountBox; diff --git a/types/react-icons/lib/md/account-circle.d.ts b/types/react-icons/lib/md/account-circle.d.ts index 6c9eab8aaf..fa6f5bba0b 100644 --- a/types/react-icons/lib/md/account-circle.d.ts +++ b/types/react-icons/lib/md/account-circle.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdAccountCircle extends React.Component { } +declare class MdAccountCircle extends React.Component { } +export = MdAccountCircle; diff --git a/types/react-icons/lib/md/adb.d.ts b/types/react-icons/lib/md/adb.d.ts index f056821ad5..b7d64c1770 100644 --- a/types/react-icons/lib/md/adb.d.ts +++ b/types/react-icons/lib/md/adb.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdAdb extends React.Component { } +declare class MdAdb extends React.Component { } +export = MdAdb; diff --git a/types/react-icons/lib/md/add-a-photo.d.ts b/types/react-icons/lib/md/add-a-photo.d.ts index 570d26f3da..6cb5e6913e 100644 --- a/types/react-icons/lib/md/add-a-photo.d.ts +++ b/types/react-icons/lib/md/add-a-photo.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdAddAPhoto extends React.Component { } +declare class MdAddAPhoto extends React.Component { } +export = MdAddAPhoto; diff --git a/types/react-icons/lib/md/add-alarm.d.ts b/types/react-icons/lib/md/add-alarm.d.ts index 6b6f78f4b9..9c06d74684 100644 --- a/types/react-icons/lib/md/add-alarm.d.ts +++ b/types/react-icons/lib/md/add-alarm.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdAddAlarm extends React.Component { } +declare class MdAddAlarm extends React.Component { } +export = MdAddAlarm; diff --git a/types/react-icons/lib/md/add-alert.d.ts b/types/react-icons/lib/md/add-alert.d.ts index b422649d52..cbc7689625 100644 --- a/types/react-icons/lib/md/add-alert.d.ts +++ b/types/react-icons/lib/md/add-alert.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdAddAlert extends React.Component { } +declare class MdAddAlert extends React.Component { } +export = MdAddAlert; diff --git a/types/react-icons/lib/md/add-box.d.ts b/types/react-icons/lib/md/add-box.d.ts index 51e1f765c0..4993ca9c42 100644 --- a/types/react-icons/lib/md/add-box.d.ts +++ b/types/react-icons/lib/md/add-box.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdAddBox extends React.Component { } +declare class MdAddBox extends React.Component { } +export = MdAddBox; diff --git a/types/react-icons/lib/md/add-circle-outline.d.ts b/types/react-icons/lib/md/add-circle-outline.d.ts index 981d8bb9ce..18e3b93a51 100644 --- a/types/react-icons/lib/md/add-circle-outline.d.ts +++ b/types/react-icons/lib/md/add-circle-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdAddCircleOutline extends React.Component { } +declare class MdAddCircleOutline extends React.Component { } +export = MdAddCircleOutline; diff --git a/types/react-icons/lib/md/add-circle.d.ts b/types/react-icons/lib/md/add-circle.d.ts index a0a0991c0c..ab9788a759 100644 --- a/types/react-icons/lib/md/add-circle.d.ts +++ b/types/react-icons/lib/md/add-circle.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdAddCircle extends React.Component { } +declare class MdAddCircle extends React.Component { } +export = MdAddCircle; diff --git a/types/react-icons/lib/md/add-location.d.ts b/types/react-icons/lib/md/add-location.d.ts index 98b0f328a3..c9daea88b7 100644 --- a/types/react-icons/lib/md/add-location.d.ts +++ b/types/react-icons/lib/md/add-location.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdAddLocation extends React.Component { } +declare class MdAddLocation extends React.Component { } +export = MdAddLocation; diff --git a/types/react-icons/lib/md/add-shopping-cart.d.ts b/types/react-icons/lib/md/add-shopping-cart.d.ts index 52ad95dd6f..bdaf9c181a 100644 --- a/types/react-icons/lib/md/add-shopping-cart.d.ts +++ b/types/react-icons/lib/md/add-shopping-cart.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdAddShoppingCart extends React.Component { } +declare class MdAddShoppingCart extends React.Component { } +export = MdAddShoppingCart; diff --git a/types/react-icons/lib/md/add-to-photos.d.ts b/types/react-icons/lib/md/add-to-photos.d.ts index 0eac8c47b2..6d4c39746b 100644 --- a/types/react-icons/lib/md/add-to-photos.d.ts +++ b/types/react-icons/lib/md/add-to-photos.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdAddToPhotos extends React.Component { } +declare class MdAddToPhotos extends React.Component { } +export = MdAddToPhotos; diff --git a/types/react-icons/lib/md/add-to-queue.d.ts b/types/react-icons/lib/md/add-to-queue.d.ts index 2bf4474037..fda144a00f 100644 --- a/types/react-icons/lib/md/add-to-queue.d.ts +++ b/types/react-icons/lib/md/add-to-queue.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdAddToQueue extends React.Component { } +declare class MdAddToQueue extends React.Component { } +export = MdAddToQueue; diff --git a/types/react-icons/lib/md/add.d.ts b/types/react-icons/lib/md/add.d.ts index 1b7fb63078..1d69eb0d75 100644 --- a/types/react-icons/lib/md/add.d.ts +++ b/types/react-icons/lib/md/add.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdAdd extends React.Component { } +declare class MdAdd extends React.Component { } +export = MdAdd; diff --git a/types/react-icons/lib/md/adjust.d.ts b/types/react-icons/lib/md/adjust.d.ts index c511d98a86..3c49edc056 100644 --- a/types/react-icons/lib/md/adjust.d.ts +++ b/types/react-icons/lib/md/adjust.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdAdjust extends React.Component { } +declare class MdAdjust extends React.Component { } +export = MdAdjust; diff --git a/types/react-icons/lib/md/airline-seat-flat-angled.d.ts b/types/react-icons/lib/md/airline-seat-flat-angled.d.ts index 27306970ac..4437e4979f 100644 --- a/types/react-icons/lib/md/airline-seat-flat-angled.d.ts +++ b/types/react-icons/lib/md/airline-seat-flat-angled.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdAirlineSeatFlatAngled extends React.Component { } +declare class MdAirlineSeatFlatAngled extends React.Component { } +export = MdAirlineSeatFlatAngled; diff --git a/types/react-icons/lib/md/airline-seat-flat.d.ts b/types/react-icons/lib/md/airline-seat-flat.d.ts index 2708f28c19..6b0d949980 100644 --- a/types/react-icons/lib/md/airline-seat-flat.d.ts +++ b/types/react-icons/lib/md/airline-seat-flat.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdAirlineSeatFlat extends React.Component { } +declare class MdAirlineSeatFlat extends React.Component { } +export = MdAirlineSeatFlat; diff --git a/types/react-icons/lib/md/airline-seat-individual-suite.d.ts b/types/react-icons/lib/md/airline-seat-individual-suite.d.ts index 1231fdffbc..08ca9b6c60 100644 --- a/types/react-icons/lib/md/airline-seat-individual-suite.d.ts +++ b/types/react-icons/lib/md/airline-seat-individual-suite.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdAirlineSeatIndividualSuite extends React.Component { } +declare class MdAirlineSeatIndividualSuite extends React.Component { } +export = MdAirlineSeatIndividualSuite; diff --git a/types/react-icons/lib/md/airline-seat-legroom-extra.d.ts b/types/react-icons/lib/md/airline-seat-legroom-extra.d.ts index 8e48abc5df..3fa5d3da1d 100644 --- a/types/react-icons/lib/md/airline-seat-legroom-extra.d.ts +++ b/types/react-icons/lib/md/airline-seat-legroom-extra.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdAirlineSeatLegroomExtra extends React.Component { } +declare class MdAirlineSeatLegroomExtra extends React.Component { } +export = MdAirlineSeatLegroomExtra; diff --git a/types/react-icons/lib/md/airline-seat-legroom-normal.d.ts b/types/react-icons/lib/md/airline-seat-legroom-normal.d.ts index 09cdf92d8a..e164c9cc85 100644 --- a/types/react-icons/lib/md/airline-seat-legroom-normal.d.ts +++ b/types/react-icons/lib/md/airline-seat-legroom-normal.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdAirlineSeatLegroomNormal extends React.Component { } +declare class MdAirlineSeatLegroomNormal extends React.Component { } +export = MdAirlineSeatLegroomNormal; diff --git a/types/react-icons/lib/md/airline-seat-legroom-reduced.d.ts b/types/react-icons/lib/md/airline-seat-legroom-reduced.d.ts index e969b216a4..49c72be865 100644 --- a/types/react-icons/lib/md/airline-seat-legroom-reduced.d.ts +++ b/types/react-icons/lib/md/airline-seat-legroom-reduced.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdAirlineSeatLegroomReduced extends React.Component { } +declare class MdAirlineSeatLegroomReduced extends React.Component { } +export = MdAirlineSeatLegroomReduced; diff --git a/types/react-icons/lib/md/airline-seat-recline-extra.d.ts b/types/react-icons/lib/md/airline-seat-recline-extra.d.ts index f675688c5c..62a9044496 100644 --- a/types/react-icons/lib/md/airline-seat-recline-extra.d.ts +++ b/types/react-icons/lib/md/airline-seat-recline-extra.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdAirlineSeatReclineExtra extends React.Component { } +declare class MdAirlineSeatReclineExtra extends React.Component { } +export = MdAirlineSeatReclineExtra; diff --git a/types/react-icons/lib/md/airline-seat-recline-normal.d.ts b/types/react-icons/lib/md/airline-seat-recline-normal.d.ts index 2d7aeacd54..785727e347 100644 --- a/types/react-icons/lib/md/airline-seat-recline-normal.d.ts +++ b/types/react-icons/lib/md/airline-seat-recline-normal.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdAirlineSeatReclineNormal extends React.Component { } +declare class MdAirlineSeatReclineNormal extends React.Component { } +export = MdAirlineSeatReclineNormal; diff --git a/types/react-icons/lib/md/airplanemode-active.d.ts b/types/react-icons/lib/md/airplanemode-active.d.ts index 64924f7457..e7b6ab9c76 100644 --- a/types/react-icons/lib/md/airplanemode-active.d.ts +++ b/types/react-icons/lib/md/airplanemode-active.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdAirplanemodeActive extends React.Component { } +declare class MdAirplanemodeActive extends React.Component { } +export = MdAirplanemodeActive; diff --git a/types/react-icons/lib/md/airplanemode-inactive.d.ts b/types/react-icons/lib/md/airplanemode-inactive.d.ts index bea28feef8..cbcde22bfe 100644 --- a/types/react-icons/lib/md/airplanemode-inactive.d.ts +++ b/types/react-icons/lib/md/airplanemode-inactive.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdAirplanemodeInactive extends React.Component { } +declare class MdAirplanemodeInactive extends React.Component { } +export = MdAirplanemodeInactive; diff --git a/types/react-icons/lib/md/airplay.d.ts b/types/react-icons/lib/md/airplay.d.ts index 0b7d8346dc..3b840e58a8 100644 --- a/types/react-icons/lib/md/airplay.d.ts +++ b/types/react-icons/lib/md/airplay.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdAirplay extends React.Component { } +declare class MdAirplay extends React.Component { } +export = MdAirplay; diff --git a/types/react-icons/lib/md/airport-shuttle.d.ts b/types/react-icons/lib/md/airport-shuttle.d.ts index 4d81dcca74..834d5e6b78 100644 --- a/types/react-icons/lib/md/airport-shuttle.d.ts +++ b/types/react-icons/lib/md/airport-shuttle.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdAirportShuttle extends React.Component { } +declare class MdAirportShuttle extends React.Component { } +export = MdAirportShuttle; diff --git a/types/react-icons/lib/md/alarm-add.d.ts b/types/react-icons/lib/md/alarm-add.d.ts index d54261c71e..2a27963c11 100644 --- a/types/react-icons/lib/md/alarm-add.d.ts +++ b/types/react-icons/lib/md/alarm-add.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdAlarmAdd extends React.Component { } +declare class MdAlarmAdd extends React.Component { } +export = MdAlarmAdd; diff --git a/types/react-icons/lib/md/alarm-off.d.ts b/types/react-icons/lib/md/alarm-off.d.ts index 637956f31a..c00b155183 100644 --- a/types/react-icons/lib/md/alarm-off.d.ts +++ b/types/react-icons/lib/md/alarm-off.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdAlarmOff extends React.Component { } +declare class MdAlarmOff extends React.Component { } +export = MdAlarmOff; diff --git a/types/react-icons/lib/md/alarm-on.d.ts b/types/react-icons/lib/md/alarm-on.d.ts index 8ced06b55a..4c80b52859 100644 --- a/types/react-icons/lib/md/alarm-on.d.ts +++ b/types/react-icons/lib/md/alarm-on.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdAlarmOn extends React.Component { } +declare class MdAlarmOn extends React.Component { } +export = MdAlarmOn; diff --git a/types/react-icons/lib/md/alarm.d.ts b/types/react-icons/lib/md/alarm.d.ts index 784b55604a..42fca7a006 100644 --- a/types/react-icons/lib/md/alarm.d.ts +++ b/types/react-icons/lib/md/alarm.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdAlarm extends React.Component { } +declare class MdAlarm extends React.Component { } +export = MdAlarm; diff --git a/types/react-icons/lib/md/album.d.ts b/types/react-icons/lib/md/album.d.ts index b7c2dedcad..09c212215c 100644 --- a/types/react-icons/lib/md/album.d.ts +++ b/types/react-icons/lib/md/album.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdAlbum extends React.Component { } +declare class MdAlbum extends React.Component { } +export = MdAlbum; diff --git a/types/react-icons/lib/md/all-inclusive.d.ts b/types/react-icons/lib/md/all-inclusive.d.ts index 121315d268..42e5cf6007 100644 --- a/types/react-icons/lib/md/all-inclusive.d.ts +++ b/types/react-icons/lib/md/all-inclusive.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdAllInclusive extends React.Component { } +declare class MdAllInclusive extends React.Component { } +export = MdAllInclusive; diff --git a/types/react-icons/lib/md/all-out.d.ts b/types/react-icons/lib/md/all-out.d.ts index feba801059..2c4a26c76f 100644 --- a/types/react-icons/lib/md/all-out.d.ts +++ b/types/react-icons/lib/md/all-out.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdAllOut extends React.Component { } +declare class MdAllOut extends React.Component { } +export = MdAllOut; diff --git a/types/react-icons/lib/md/android.d.ts b/types/react-icons/lib/md/android.d.ts index d5821263bd..adf4741a7c 100644 --- a/types/react-icons/lib/md/android.d.ts +++ b/types/react-icons/lib/md/android.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdAndroid extends React.Component { } +declare class MdAndroid extends React.Component { } +export = MdAndroid; diff --git a/types/react-icons/lib/md/announcement.d.ts b/types/react-icons/lib/md/announcement.d.ts index 05af68d6c9..21f51fadcb 100644 --- a/types/react-icons/lib/md/announcement.d.ts +++ b/types/react-icons/lib/md/announcement.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdAnnouncement extends React.Component { } +declare class MdAnnouncement extends React.Component { } +export = MdAnnouncement; diff --git a/types/react-icons/lib/md/apps.d.ts b/types/react-icons/lib/md/apps.d.ts index 605c867e9d..be159c2793 100644 --- a/types/react-icons/lib/md/apps.d.ts +++ b/types/react-icons/lib/md/apps.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdApps extends React.Component { } +declare class MdApps extends React.Component { } +export = MdApps; diff --git a/types/react-icons/lib/md/archive.d.ts b/types/react-icons/lib/md/archive.d.ts index 00cc76de31..2738255b53 100644 --- a/types/react-icons/lib/md/archive.d.ts +++ b/types/react-icons/lib/md/archive.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdArchive extends React.Component { } +declare class MdArchive extends React.Component { } +export = MdArchive; diff --git a/types/react-icons/lib/md/arrow-back.d.ts b/types/react-icons/lib/md/arrow-back.d.ts index d140fa63a4..0d37103473 100644 --- a/types/react-icons/lib/md/arrow-back.d.ts +++ b/types/react-icons/lib/md/arrow-back.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdArrowBack extends React.Component { } +declare class MdArrowBack extends React.Component { } +export = MdArrowBack; diff --git a/types/react-icons/lib/md/arrow-downward.d.ts b/types/react-icons/lib/md/arrow-downward.d.ts index 2d764aa5a0..e634a027a4 100644 --- a/types/react-icons/lib/md/arrow-downward.d.ts +++ b/types/react-icons/lib/md/arrow-downward.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdArrowDownward extends React.Component { } +declare class MdArrowDownward extends React.Component { } +export = MdArrowDownward; diff --git a/types/react-icons/lib/md/arrow-drop-down-circle.d.ts b/types/react-icons/lib/md/arrow-drop-down-circle.d.ts index 4a2bae7ded..1705ff9b19 100644 --- a/types/react-icons/lib/md/arrow-drop-down-circle.d.ts +++ b/types/react-icons/lib/md/arrow-drop-down-circle.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdArrowDropDownCircle extends React.Component { } +declare class MdArrowDropDownCircle extends React.Component { } +export = MdArrowDropDownCircle; diff --git a/types/react-icons/lib/md/arrow-drop-down.d.ts b/types/react-icons/lib/md/arrow-drop-down.d.ts index 0e99216f42..333105147d 100644 --- a/types/react-icons/lib/md/arrow-drop-down.d.ts +++ b/types/react-icons/lib/md/arrow-drop-down.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdArrowDropDown extends React.Component { } +declare class MdArrowDropDown extends React.Component { } +export = MdArrowDropDown; diff --git a/types/react-icons/lib/md/arrow-drop-up.d.ts b/types/react-icons/lib/md/arrow-drop-up.d.ts index efa55f2df4..87d3f77f8d 100644 --- a/types/react-icons/lib/md/arrow-drop-up.d.ts +++ b/types/react-icons/lib/md/arrow-drop-up.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdArrowDropUp extends React.Component { } +declare class MdArrowDropUp extends React.Component { } +export = MdArrowDropUp; diff --git a/types/react-icons/lib/md/arrow-forward.d.ts b/types/react-icons/lib/md/arrow-forward.d.ts index 1d3771ddd7..1d25c6bafb 100644 --- a/types/react-icons/lib/md/arrow-forward.d.ts +++ b/types/react-icons/lib/md/arrow-forward.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdArrowForward extends React.Component { } +declare class MdArrowForward extends React.Component { } +export = MdArrowForward; diff --git a/types/react-icons/lib/md/arrow-upward.d.ts b/types/react-icons/lib/md/arrow-upward.d.ts index cd8f601ed9..a734eaeaa0 100644 --- a/types/react-icons/lib/md/arrow-upward.d.ts +++ b/types/react-icons/lib/md/arrow-upward.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdArrowUpward extends React.Component { } +declare class MdArrowUpward extends React.Component { } +export = MdArrowUpward; diff --git a/types/react-icons/lib/md/art-track.d.ts b/types/react-icons/lib/md/art-track.d.ts index 9893405dfd..e9015ed4f1 100644 --- a/types/react-icons/lib/md/art-track.d.ts +++ b/types/react-icons/lib/md/art-track.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdArtTrack extends React.Component { } +declare class MdArtTrack extends React.Component { } +export = MdArtTrack; diff --git a/types/react-icons/lib/md/aspect-ratio.d.ts b/types/react-icons/lib/md/aspect-ratio.d.ts index b0d6311f3e..8a645fba11 100644 --- a/types/react-icons/lib/md/aspect-ratio.d.ts +++ b/types/react-icons/lib/md/aspect-ratio.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdAspectRatio extends React.Component { } +declare class MdAspectRatio extends React.Component { } +export = MdAspectRatio; diff --git a/types/react-icons/lib/md/assessment.d.ts b/types/react-icons/lib/md/assessment.d.ts index 1c4979bd1f..af6f64a977 100644 --- a/types/react-icons/lib/md/assessment.d.ts +++ b/types/react-icons/lib/md/assessment.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdAssessment extends React.Component { } +declare class MdAssessment extends React.Component { } +export = MdAssessment; diff --git a/types/react-icons/lib/md/assignment-ind.d.ts b/types/react-icons/lib/md/assignment-ind.d.ts index 6a0c5f2107..8518cf2402 100644 --- a/types/react-icons/lib/md/assignment-ind.d.ts +++ b/types/react-icons/lib/md/assignment-ind.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdAssignmentInd extends React.Component { } +declare class MdAssignmentInd extends React.Component { } +export = MdAssignmentInd; diff --git a/types/react-icons/lib/md/assignment-late.d.ts b/types/react-icons/lib/md/assignment-late.d.ts index 5aa4d5dcdd..c62da79ac3 100644 --- a/types/react-icons/lib/md/assignment-late.d.ts +++ b/types/react-icons/lib/md/assignment-late.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdAssignmentLate extends React.Component { } +declare class MdAssignmentLate extends React.Component { } +export = MdAssignmentLate; diff --git a/types/react-icons/lib/md/assignment-return.d.ts b/types/react-icons/lib/md/assignment-return.d.ts index e34eea0e8d..3f565dafab 100644 --- a/types/react-icons/lib/md/assignment-return.d.ts +++ b/types/react-icons/lib/md/assignment-return.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdAssignmentReturn extends React.Component { } +declare class MdAssignmentReturn extends React.Component { } +export = MdAssignmentReturn; diff --git a/types/react-icons/lib/md/assignment-returned.d.ts b/types/react-icons/lib/md/assignment-returned.d.ts index 5f3c6039ee..ec35682fdc 100644 --- a/types/react-icons/lib/md/assignment-returned.d.ts +++ b/types/react-icons/lib/md/assignment-returned.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdAssignmentReturned extends React.Component { } +declare class MdAssignmentReturned extends React.Component { } +export = MdAssignmentReturned; diff --git a/types/react-icons/lib/md/assignment-turned-in.d.ts b/types/react-icons/lib/md/assignment-turned-in.d.ts index c055e90d7f..013d97808d 100644 --- a/types/react-icons/lib/md/assignment-turned-in.d.ts +++ b/types/react-icons/lib/md/assignment-turned-in.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdAssignmentTurnedIn extends React.Component { } +declare class MdAssignmentTurnedIn extends React.Component { } +export = MdAssignmentTurnedIn; diff --git a/types/react-icons/lib/md/assignment.d.ts b/types/react-icons/lib/md/assignment.d.ts index dc96f96868..daf2f8974c 100644 --- a/types/react-icons/lib/md/assignment.d.ts +++ b/types/react-icons/lib/md/assignment.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdAssignment extends React.Component { } +declare class MdAssignment extends React.Component { } +export = MdAssignment; diff --git a/types/react-icons/lib/md/assistant-photo.d.ts b/types/react-icons/lib/md/assistant-photo.d.ts index 2bf4459503..0e25dc2286 100644 --- a/types/react-icons/lib/md/assistant-photo.d.ts +++ b/types/react-icons/lib/md/assistant-photo.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdAssistantPhoto extends React.Component { } +declare class MdAssistantPhoto extends React.Component { } +export = MdAssistantPhoto; diff --git a/types/react-icons/lib/md/assistant.d.ts b/types/react-icons/lib/md/assistant.d.ts index 06007d112b..79968f7c35 100644 --- a/types/react-icons/lib/md/assistant.d.ts +++ b/types/react-icons/lib/md/assistant.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdAssistant extends React.Component { } +declare class MdAssistant extends React.Component { } +export = MdAssistant; diff --git a/types/react-icons/lib/md/attach-file.d.ts b/types/react-icons/lib/md/attach-file.d.ts index 62aba0f830..250c8ef7dd 100644 --- a/types/react-icons/lib/md/attach-file.d.ts +++ b/types/react-icons/lib/md/attach-file.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdAttachFile extends React.Component { } +declare class MdAttachFile extends React.Component { } +export = MdAttachFile; diff --git a/types/react-icons/lib/md/attach-money.d.ts b/types/react-icons/lib/md/attach-money.d.ts index 23dfd03a14..5257e2a068 100644 --- a/types/react-icons/lib/md/attach-money.d.ts +++ b/types/react-icons/lib/md/attach-money.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdAttachMoney extends React.Component { } +declare class MdAttachMoney extends React.Component { } +export = MdAttachMoney; diff --git a/types/react-icons/lib/md/attachment.d.ts b/types/react-icons/lib/md/attachment.d.ts index 66a076a0df..b9ee26291e 100644 --- a/types/react-icons/lib/md/attachment.d.ts +++ b/types/react-icons/lib/md/attachment.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdAttachment extends React.Component { } +declare class MdAttachment extends React.Component { } +export = MdAttachment; diff --git a/types/react-icons/lib/md/audiotrack.d.ts b/types/react-icons/lib/md/audiotrack.d.ts index 0fb3a781aa..b36fbee5b7 100644 --- a/types/react-icons/lib/md/audiotrack.d.ts +++ b/types/react-icons/lib/md/audiotrack.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdAudiotrack extends React.Component { } +declare class MdAudiotrack extends React.Component { } +export = MdAudiotrack; diff --git a/types/react-icons/lib/md/autorenew.d.ts b/types/react-icons/lib/md/autorenew.d.ts index 3dc1215c35..1d1347e4f4 100644 --- a/types/react-icons/lib/md/autorenew.d.ts +++ b/types/react-icons/lib/md/autorenew.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdAutorenew extends React.Component { } +declare class MdAutorenew extends React.Component { } +export = MdAutorenew; diff --git a/types/react-icons/lib/md/av-timer.d.ts b/types/react-icons/lib/md/av-timer.d.ts index d050eb13b6..2e7d9ff423 100644 --- a/types/react-icons/lib/md/av-timer.d.ts +++ b/types/react-icons/lib/md/av-timer.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdAvTimer extends React.Component { } +declare class MdAvTimer extends React.Component { } +export = MdAvTimer; diff --git a/types/react-icons/lib/md/backspace.d.ts b/types/react-icons/lib/md/backspace.d.ts index c462bc8c5c..2b5144cf4d 100644 --- a/types/react-icons/lib/md/backspace.d.ts +++ b/types/react-icons/lib/md/backspace.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdBackspace extends React.Component { } +declare class MdBackspace extends React.Component { } +export = MdBackspace; diff --git a/types/react-icons/lib/md/backup.d.ts b/types/react-icons/lib/md/backup.d.ts index ab43c6934f..cb95ac3dfd 100644 --- a/types/react-icons/lib/md/backup.d.ts +++ b/types/react-icons/lib/md/backup.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdBackup extends React.Component { } +declare class MdBackup extends React.Component { } +export = MdBackup; diff --git a/types/react-icons/lib/md/battery-alert.d.ts b/types/react-icons/lib/md/battery-alert.d.ts index c19ea98a0b..727e2b83f6 100644 --- a/types/react-icons/lib/md/battery-alert.d.ts +++ b/types/react-icons/lib/md/battery-alert.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdBatteryAlert extends React.Component { } +declare class MdBatteryAlert extends React.Component { } +export = MdBatteryAlert; diff --git a/types/react-icons/lib/md/battery-charging-full.d.ts b/types/react-icons/lib/md/battery-charging-full.d.ts index c85f75a71a..e38bce2394 100644 --- a/types/react-icons/lib/md/battery-charging-full.d.ts +++ b/types/react-icons/lib/md/battery-charging-full.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdBatteryChargingFull extends React.Component { } +declare class MdBatteryChargingFull extends React.Component { } +export = MdBatteryChargingFull; diff --git a/types/react-icons/lib/md/battery-full.d.ts b/types/react-icons/lib/md/battery-full.d.ts index 0aca5efc47..f4670ad1f7 100644 --- a/types/react-icons/lib/md/battery-full.d.ts +++ b/types/react-icons/lib/md/battery-full.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdBatteryFull extends React.Component { } +declare class MdBatteryFull extends React.Component { } +export = MdBatteryFull; diff --git a/types/react-icons/lib/md/battery-std.d.ts b/types/react-icons/lib/md/battery-std.d.ts index 3db6971900..0886063916 100644 --- a/types/react-icons/lib/md/battery-std.d.ts +++ b/types/react-icons/lib/md/battery-std.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdBatteryStd extends React.Component { } +declare class MdBatteryStd extends React.Component { } +export = MdBatteryStd; diff --git a/types/react-icons/lib/md/battery-unknown.d.ts b/types/react-icons/lib/md/battery-unknown.d.ts index 85dc874ccb..44bae4c72d 100644 --- a/types/react-icons/lib/md/battery-unknown.d.ts +++ b/types/react-icons/lib/md/battery-unknown.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdBatteryUnknown extends React.Component { } +declare class MdBatteryUnknown extends React.Component { } +export = MdBatteryUnknown; diff --git a/types/react-icons/lib/md/beach-access.d.ts b/types/react-icons/lib/md/beach-access.d.ts index bb0f5e8d09..df62947d77 100644 --- a/types/react-icons/lib/md/beach-access.d.ts +++ b/types/react-icons/lib/md/beach-access.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdBeachAccess extends React.Component { } +declare class MdBeachAccess extends React.Component { } +export = MdBeachAccess; diff --git a/types/react-icons/lib/md/beenhere.d.ts b/types/react-icons/lib/md/beenhere.d.ts index a428d7199e..203c154745 100644 --- a/types/react-icons/lib/md/beenhere.d.ts +++ b/types/react-icons/lib/md/beenhere.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdBeenhere extends React.Component { } +declare class MdBeenhere extends React.Component { } +export = MdBeenhere; diff --git a/types/react-icons/lib/md/block.d.ts b/types/react-icons/lib/md/block.d.ts index f5496f14bb..df16af7f26 100644 --- a/types/react-icons/lib/md/block.d.ts +++ b/types/react-icons/lib/md/block.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdBlock extends React.Component { } +declare class MdBlock extends React.Component { } +export = MdBlock; diff --git a/types/react-icons/lib/md/bluetooth-audio.d.ts b/types/react-icons/lib/md/bluetooth-audio.d.ts index 29629f8a81..37d19037e0 100644 --- a/types/react-icons/lib/md/bluetooth-audio.d.ts +++ b/types/react-icons/lib/md/bluetooth-audio.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdBluetoothAudio extends React.Component { } +declare class MdBluetoothAudio extends React.Component { } +export = MdBluetoothAudio; diff --git a/types/react-icons/lib/md/bluetooth-connected.d.ts b/types/react-icons/lib/md/bluetooth-connected.d.ts index 7ea9477b1b..c43382457d 100644 --- a/types/react-icons/lib/md/bluetooth-connected.d.ts +++ b/types/react-icons/lib/md/bluetooth-connected.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdBluetoothConnected extends React.Component { } +declare class MdBluetoothConnected extends React.Component { } +export = MdBluetoothConnected; diff --git a/types/react-icons/lib/md/bluetooth-disabled.d.ts b/types/react-icons/lib/md/bluetooth-disabled.d.ts index 685074c6eb..22dedb5b6f 100644 --- a/types/react-icons/lib/md/bluetooth-disabled.d.ts +++ b/types/react-icons/lib/md/bluetooth-disabled.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdBluetoothDisabled extends React.Component { } +declare class MdBluetoothDisabled extends React.Component { } +export = MdBluetoothDisabled; diff --git a/types/react-icons/lib/md/bluetooth-searching.d.ts b/types/react-icons/lib/md/bluetooth-searching.d.ts index d258e69bd7..1096cc5867 100644 --- a/types/react-icons/lib/md/bluetooth-searching.d.ts +++ b/types/react-icons/lib/md/bluetooth-searching.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdBluetoothSearching extends React.Component { } +declare class MdBluetoothSearching extends React.Component { } +export = MdBluetoothSearching; diff --git a/types/react-icons/lib/md/bluetooth.d.ts b/types/react-icons/lib/md/bluetooth.d.ts index 9343fadbf2..26e9b31401 100644 --- a/types/react-icons/lib/md/bluetooth.d.ts +++ b/types/react-icons/lib/md/bluetooth.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdBluetooth extends React.Component { } +declare class MdBluetooth extends React.Component { } +export = MdBluetooth; diff --git a/types/react-icons/lib/md/blur-circular.d.ts b/types/react-icons/lib/md/blur-circular.d.ts index 27b3bb0ae2..e391be6aac 100644 --- a/types/react-icons/lib/md/blur-circular.d.ts +++ b/types/react-icons/lib/md/blur-circular.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdBlurCircular extends React.Component { } +declare class MdBlurCircular extends React.Component { } +export = MdBlurCircular; diff --git a/types/react-icons/lib/md/blur-linear.d.ts b/types/react-icons/lib/md/blur-linear.d.ts index e077a469b1..c7e2ed71b0 100644 --- a/types/react-icons/lib/md/blur-linear.d.ts +++ b/types/react-icons/lib/md/blur-linear.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdBlurLinear extends React.Component { } +declare class MdBlurLinear extends React.Component { } +export = MdBlurLinear; diff --git a/types/react-icons/lib/md/blur-off.d.ts b/types/react-icons/lib/md/blur-off.d.ts index df3c89e207..34bf839572 100644 --- a/types/react-icons/lib/md/blur-off.d.ts +++ b/types/react-icons/lib/md/blur-off.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdBlurOff extends React.Component { } +declare class MdBlurOff extends React.Component { } +export = MdBlurOff; diff --git a/types/react-icons/lib/md/blur-on.d.ts b/types/react-icons/lib/md/blur-on.d.ts index ade64f3147..eb427415a6 100644 --- a/types/react-icons/lib/md/blur-on.d.ts +++ b/types/react-icons/lib/md/blur-on.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdBlurOn extends React.Component { } +declare class MdBlurOn extends React.Component { } +export = MdBlurOn; diff --git a/types/react-icons/lib/md/book.d.ts b/types/react-icons/lib/md/book.d.ts index 593fefe912..4f026cc906 100644 --- a/types/react-icons/lib/md/book.d.ts +++ b/types/react-icons/lib/md/book.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdBook extends React.Component { } +declare class MdBook extends React.Component { } +export = MdBook; diff --git a/types/react-icons/lib/md/bookmark-outline.d.ts b/types/react-icons/lib/md/bookmark-outline.d.ts index 630c78b12b..49d5711340 100644 --- a/types/react-icons/lib/md/bookmark-outline.d.ts +++ b/types/react-icons/lib/md/bookmark-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdBookmarkOutline extends React.Component { } +declare class MdBookmarkOutline extends React.Component { } +export = MdBookmarkOutline; diff --git a/types/react-icons/lib/md/bookmark.d.ts b/types/react-icons/lib/md/bookmark.d.ts index b180f81ce4..1ea3fdef2f 100644 --- a/types/react-icons/lib/md/bookmark.d.ts +++ b/types/react-icons/lib/md/bookmark.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdBookmark extends React.Component { } +declare class MdBookmark extends React.Component { } +export = MdBookmark; diff --git a/types/react-icons/lib/md/border-all.d.ts b/types/react-icons/lib/md/border-all.d.ts index 111f24de6b..321dc40acf 100644 --- a/types/react-icons/lib/md/border-all.d.ts +++ b/types/react-icons/lib/md/border-all.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdBorderAll extends React.Component { } +declare class MdBorderAll extends React.Component { } +export = MdBorderAll; diff --git a/types/react-icons/lib/md/border-bottom.d.ts b/types/react-icons/lib/md/border-bottom.d.ts index 979bd252bb..4af9bc2a3e 100644 --- a/types/react-icons/lib/md/border-bottom.d.ts +++ b/types/react-icons/lib/md/border-bottom.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdBorderBottom extends React.Component { } +declare class MdBorderBottom extends React.Component { } +export = MdBorderBottom; diff --git a/types/react-icons/lib/md/border-clear.d.ts b/types/react-icons/lib/md/border-clear.d.ts index 2d76f24b12..babade9381 100644 --- a/types/react-icons/lib/md/border-clear.d.ts +++ b/types/react-icons/lib/md/border-clear.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdBorderClear extends React.Component { } +declare class MdBorderClear extends React.Component { } +export = MdBorderClear; diff --git a/types/react-icons/lib/md/border-color.d.ts b/types/react-icons/lib/md/border-color.d.ts index b9ddd9918c..3eb6611e0a 100644 --- a/types/react-icons/lib/md/border-color.d.ts +++ b/types/react-icons/lib/md/border-color.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdBorderColor extends React.Component { } +declare class MdBorderColor extends React.Component { } +export = MdBorderColor; diff --git a/types/react-icons/lib/md/border-horizontal.d.ts b/types/react-icons/lib/md/border-horizontal.d.ts index 7f1e473277..642f6f9b14 100644 --- a/types/react-icons/lib/md/border-horizontal.d.ts +++ b/types/react-icons/lib/md/border-horizontal.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdBorderHorizontal extends React.Component { } +declare class MdBorderHorizontal extends React.Component { } +export = MdBorderHorizontal; diff --git a/types/react-icons/lib/md/border-inner.d.ts b/types/react-icons/lib/md/border-inner.d.ts index 2a807b9ce2..318ee29d9c 100644 --- a/types/react-icons/lib/md/border-inner.d.ts +++ b/types/react-icons/lib/md/border-inner.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdBorderInner extends React.Component { } +declare class MdBorderInner extends React.Component { } +export = MdBorderInner; diff --git a/types/react-icons/lib/md/border-left.d.ts b/types/react-icons/lib/md/border-left.d.ts index 062bf7af75..3d710840c8 100644 --- a/types/react-icons/lib/md/border-left.d.ts +++ b/types/react-icons/lib/md/border-left.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdBorderLeft extends React.Component { } +declare class MdBorderLeft extends React.Component { } +export = MdBorderLeft; diff --git a/types/react-icons/lib/md/border-outer.d.ts b/types/react-icons/lib/md/border-outer.d.ts index 60e13b29ad..ab7a282419 100644 --- a/types/react-icons/lib/md/border-outer.d.ts +++ b/types/react-icons/lib/md/border-outer.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdBorderOuter extends React.Component { } +declare class MdBorderOuter extends React.Component { } +export = MdBorderOuter; diff --git a/types/react-icons/lib/md/border-right.d.ts b/types/react-icons/lib/md/border-right.d.ts index 8bb225c8d9..1a7799213a 100644 --- a/types/react-icons/lib/md/border-right.d.ts +++ b/types/react-icons/lib/md/border-right.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdBorderRight extends React.Component { } +declare class MdBorderRight extends React.Component { } +export = MdBorderRight; diff --git a/types/react-icons/lib/md/border-style.d.ts b/types/react-icons/lib/md/border-style.d.ts index 92da93bb6d..04a39727ca 100644 --- a/types/react-icons/lib/md/border-style.d.ts +++ b/types/react-icons/lib/md/border-style.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdBorderStyle extends React.Component { } +declare class MdBorderStyle extends React.Component { } +export = MdBorderStyle; diff --git a/types/react-icons/lib/md/border-top.d.ts b/types/react-icons/lib/md/border-top.d.ts index 32a4a828a8..d667315e57 100644 --- a/types/react-icons/lib/md/border-top.d.ts +++ b/types/react-icons/lib/md/border-top.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdBorderTop extends React.Component { } +declare class MdBorderTop extends React.Component { } +export = MdBorderTop; diff --git a/types/react-icons/lib/md/border-vertical.d.ts b/types/react-icons/lib/md/border-vertical.d.ts index dce912d6de..741ac16627 100644 --- a/types/react-icons/lib/md/border-vertical.d.ts +++ b/types/react-icons/lib/md/border-vertical.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdBorderVertical extends React.Component { } +declare class MdBorderVertical extends React.Component { } +export = MdBorderVertical; diff --git a/types/react-icons/lib/md/branding-watermark.d.ts b/types/react-icons/lib/md/branding-watermark.d.ts index 92ae821285..b23afbd356 100644 --- a/types/react-icons/lib/md/branding-watermark.d.ts +++ b/types/react-icons/lib/md/branding-watermark.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdBrandingWatermark extends React.Component { } +declare class MdBrandingWatermark extends React.Component { } +export = MdBrandingWatermark; diff --git a/types/react-icons/lib/md/brightness-1.d.ts b/types/react-icons/lib/md/brightness-1.d.ts index 2ac3e1dd25..e2ca8dc427 100644 --- a/types/react-icons/lib/md/brightness-1.d.ts +++ b/types/react-icons/lib/md/brightness-1.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdBrightness1 extends React.Component { } +declare class MdBrightness1 extends React.Component { } +export = MdBrightness1; diff --git a/types/react-icons/lib/md/brightness-2.d.ts b/types/react-icons/lib/md/brightness-2.d.ts index ad9eae9cb1..c47e7defba 100644 --- a/types/react-icons/lib/md/brightness-2.d.ts +++ b/types/react-icons/lib/md/brightness-2.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdBrightness2 extends React.Component { } +declare class MdBrightness2 extends React.Component { } +export = MdBrightness2; diff --git a/types/react-icons/lib/md/brightness-3.d.ts b/types/react-icons/lib/md/brightness-3.d.ts index 929e3196af..9f835bb24e 100644 --- a/types/react-icons/lib/md/brightness-3.d.ts +++ b/types/react-icons/lib/md/brightness-3.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdBrightness3 extends React.Component { } +declare class MdBrightness3 extends React.Component { } +export = MdBrightness3; diff --git a/types/react-icons/lib/md/brightness-4.d.ts b/types/react-icons/lib/md/brightness-4.d.ts index eeac7b21a5..9e12c4f48b 100644 --- a/types/react-icons/lib/md/brightness-4.d.ts +++ b/types/react-icons/lib/md/brightness-4.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdBrightness4 extends React.Component { } +declare class MdBrightness4 extends React.Component { } +export = MdBrightness4; diff --git a/types/react-icons/lib/md/brightness-5.d.ts b/types/react-icons/lib/md/brightness-5.d.ts index 26dc5fc08c..ee98d6a917 100644 --- a/types/react-icons/lib/md/brightness-5.d.ts +++ b/types/react-icons/lib/md/brightness-5.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdBrightness5 extends React.Component { } +declare class MdBrightness5 extends React.Component { } +export = MdBrightness5; diff --git a/types/react-icons/lib/md/brightness-6.d.ts b/types/react-icons/lib/md/brightness-6.d.ts index c59e6345b0..0266ba547c 100644 --- a/types/react-icons/lib/md/brightness-6.d.ts +++ b/types/react-icons/lib/md/brightness-6.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdBrightness6 extends React.Component { } +declare class MdBrightness6 extends React.Component { } +export = MdBrightness6; diff --git a/types/react-icons/lib/md/brightness-7.d.ts b/types/react-icons/lib/md/brightness-7.d.ts index 00510b48a7..9cf6e0e624 100644 --- a/types/react-icons/lib/md/brightness-7.d.ts +++ b/types/react-icons/lib/md/brightness-7.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdBrightness7 extends React.Component { } +declare class MdBrightness7 extends React.Component { } +export = MdBrightness7; diff --git a/types/react-icons/lib/md/brightness-auto.d.ts b/types/react-icons/lib/md/brightness-auto.d.ts index 7fd30ba582..b9d280fb13 100644 --- a/types/react-icons/lib/md/brightness-auto.d.ts +++ b/types/react-icons/lib/md/brightness-auto.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdBrightnessAuto extends React.Component { } +declare class MdBrightnessAuto extends React.Component { } +export = MdBrightnessAuto; diff --git a/types/react-icons/lib/md/brightness-high.d.ts b/types/react-icons/lib/md/brightness-high.d.ts index 65eb9716e2..cd1fec1341 100644 --- a/types/react-icons/lib/md/brightness-high.d.ts +++ b/types/react-icons/lib/md/brightness-high.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdBrightnessHigh extends React.Component { } +declare class MdBrightnessHigh extends React.Component { } +export = MdBrightnessHigh; diff --git a/types/react-icons/lib/md/brightness-low.d.ts b/types/react-icons/lib/md/brightness-low.d.ts index 7a4220918a..fa786e9ec9 100644 --- a/types/react-icons/lib/md/brightness-low.d.ts +++ b/types/react-icons/lib/md/brightness-low.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdBrightnessLow extends React.Component { } +declare class MdBrightnessLow extends React.Component { } +export = MdBrightnessLow; diff --git a/types/react-icons/lib/md/brightness-medium.d.ts b/types/react-icons/lib/md/brightness-medium.d.ts index bcae811361..0dc43fcd6d 100644 --- a/types/react-icons/lib/md/brightness-medium.d.ts +++ b/types/react-icons/lib/md/brightness-medium.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdBrightnessMedium extends React.Component { } +declare class MdBrightnessMedium extends React.Component { } +export = MdBrightnessMedium; diff --git a/types/react-icons/lib/md/broken-image.d.ts b/types/react-icons/lib/md/broken-image.d.ts index 26a5256e01..e516114b45 100644 --- a/types/react-icons/lib/md/broken-image.d.ts +++ b/types/react-icons/lib/md/broken-image.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdBrokenImage extends React.Component { } +declare class MdBrokenImage extends React.Component { } +export = MdBrokenImage; diff --git a/types/react-icons/lib/md/brush.d.ts b/types/react-icons/lib/md/brush.d.ts index 71e04689f2..757f204994 100644 --- a/types/react-icons/lib/md/brush.d.ts +++ b/types/react-icons/lib/md/brush.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdBrush extends React.Component { } +declare class MdBrush extends React.Component { } +export = MdBrush; diff --git a/types/react-icons/lib/md/bubble-chart.d.ts b/types/react-icons/lib/md/bubble-chart.d.ts index d893d4d2a1..2bb2a4998e 100644 --- a/types/react-icons/lib/md/bubble-chart.d.ts +++ b/types/react-icons/lib/md/bubble-chart.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdBubbleChart extends React.Component { } +declare class MdBubbleChart extends React.Component { } +export = MdBubbleChart; diff --git a/types/react-icons/lib/md/bug-report.d.ts b/types/react-icons/lib/md/bug-report.d.ts index 8d5b5f78ef..dd0aa9b931 100644 --- a/types/react-icons/lib/md/bug-report.d.ts +++ b/types/react-icons/lib/md/bug-report.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdBugReport extends React.Component { } +declare class MdBugReport extends React.Component { } +export = MdBugReport; diff --git a/types/react-icons/lib/md/build.d.ts b/types/react-icons/lib/md/build.d.ts index 3969a9d67d..a0ad5b0c31 100644 --- a/types/react-icons/lib/md/build.d.ts +++ b/types/react-icons/lib/md/build.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdBuild extends React.Component { } +declare class MdBuild extends React.Component { } +export = MdBuild; diff --git a/types/react-icons/lib/md/burst-mode.d.ts b/types/react-icons/lib/md/burst-mode.d.ts index 2db0673b64..4af3aab231 100644 --- a/types/react-icons/lib/md/burst-mode.d.ts +++ b/types/react-icons/lib/md/burst-mode.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdBurstMode extends React.Component { } +declare class MdBurstMode extends React.Component { } +export = MdBurstMode; diff --git a/types/react-icons/lib/md/business-center.d.ts b/types/react-icons/lib/md/business-center.d.ts index 019568bc79..c767118157 100644 --- a/types/react-icons/lib/md/business-center.d.ts +++ b/types/react-icons/lib/md/business-center.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdBusinessCenter extends React.Component { } +declare class MdBusinessCenter extends React.Component { } +export = MdBusinessCenter; diff --git a/types/react-icons/lib/md/business.d.ts b/types/react-icons/lib/md/business.d.ts index aee4700728..d6ecbe11c2 100644 --- a/types/react-icons/lib/md/business.d.ts +++ b/types/react-icons/lib/md/business.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdBusiness extends React.Component { } +declare class MdBusiness extends React.Component { } +export = MdBusiness; diff --git a/types/react-icons/lib/md/cached.d.ts b/types/react-icons/lib/md/cached.d.ts index e26b176124..a7ee38490e 100644 --- a/types/react-icons/lib/md/cached.d.ts +++ b/types/react-icons/lib/md/cached.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdCached extends React.Component { } +declare class MdCached extends React.Component { } +export = MdCached; diff --git a/types/react-icons/lib/md/cake.d.ts b/types/react-icons/lib/md/cake.d.ts index 757d94fa73..300197de73 100644 --- a/types/react-icons/lib/md/cake.d.ts +++ b/types/react-icons/lib/md/cake.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdCake extends React.Component { } +declare class MdCake extends React.Component { } +export = MdCake; diff --git a/types/react-icons/lib/md/call-end.d.ts b/types/react-icons/lib/md/call-end.d.ts index fcb323974c..7a5b08dc29 100644 --- a/types/react-icons/lib/md/call-end.d.ts +++ b/types/react-icons/lib/md/call-end.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdCallEnd extends React.Component { } +declare class MdCallEnd extends React.Component { } +export = MdCallEnd; diff --git a/types/react-icons/lib/md/call-made.d.ts b/types/react-icons/lib/md/call-made.d.ts index d7523be94c..e91641574b 100644 --- a/types/react-icons/lib/md/call-made.d.ts +++ b/types/react-icons/lib/md/call-made.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdCallMade extends React.Component { } +declare class MdCallMade extends React.Component { } +export = MdCallMade; diff --git a/types/react-icons/lib/md/call-merge.d.ts b/types/react-icons/lib/md/call-merge.d.ts index 9c7369c900..b5b3fa9314 100644 --- a/types/react-icons/lib/md/call-merge.d.ts +++ b/types/react-icons/lib/md/call-merge.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdCallMerge extends React.Component { } +declare class MdCallMerge extends React.Component { } +export = MdCallMerge; diff --git a/types/react-icons/lib/md/call-missed-outgoing.d.ts b/types/react-icons/lib/md/call-missed-outgoing.d.ts index f03613faad..553318d2b2 100644 --- a/types/react-icons/lib/md/call-missed-outgoing.d.ts +++ b/types/react-icons/lib/md/call-missed-outgoing.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdCallMissedOutgoing extends React.Component { } +declare class MdCallMissedOutgoing extends React.Component { } +export = MdCallMissedOutgoing; diff --git a/types/react-icons/lib/md/call-missed.d.ts b/types/react-icons/lib/md/call-missed.d.ts index c999bb5cab..6bd2884ffe 100644 --- a/types/react-icons/lib/md/call-missed.d.ts +++ b/types/react-icons/lib/md/call-missed.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdCallMissed extends React.Component { } +declare class MdCallMissed extends React.Component { } +export = MdCallMissed; diff --git a/types/react-icons/lib/md/call-received.d.ts b/types/react-icons/lib/md/call-received.d.ts index 29f503af3f..fcc1b3f845 100644 --- a/types/react-icons/lib/md/call-received.d.ts +++ b/types/react-icons/lib/md/call-received.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdCallReceived extends React.Component { } +declare class MdCallReceived extends React.Component { } +export = MdCallReceived; diff --git a/types/react-icons/lib/md/call-split.d.ts b/types/react-icons/lib/md/call-split.d.ts index 56330a07e8..1f8eefacb2 100644 --- a/types/react-icons/lib/md/call-split.d.ts +++ b/types/react-icons/lib/md/call-split.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdCallSplit extends React.Component { } +declare class MdCallSplit extends React.Component { } +export = MdCallSplit; diff --git a/types/react-icons/lib/md/call-to-action.d.ts b/types/react-icons/lib/md/call-to-action.d.ts index f1f8d89d80..a653748703 100644 --- a/types/react-icons/lib/md/call-to-action.d.ts +++ b/types/react-icons/lib/md/call-to-action.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdCallToAction extends React.Component { } +declare class MdCallToAction extends React.Component { } +export = MdCallToAction; diff --git a/types/react-icons/lib/md/call.d.ts b/types/react-icons/lib/md/call.d.ts index 2bfec93bfc..4b817c331b 100644 --- a/types/react-icons/lib/md/call.d.ts +++ b/types/react-icons/lib/md/call.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdCall extends React.Component { } +declare class MdCall extends React.Component { } +export = MdCall; diff --git a/types/react-icons/lib/md/camera-alt.d.ts b/types/react-icons/lib/md/camera-alt.d.ts index 4951b47b34..f620a9390e 100644 --- a/types/react-icons/lib/md/camera-alt.d.ts +++ b/types/react-icons/lib/md/camera-alt.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdCameraAlt extends React.Component { } +declare class MdCameraAlt extends React.Component { } +export = MdCameraAlt; diff --git a/types/react-icons/lib/md/camera-enhance.d.ts b/types/react-icons/lib/md/camera-enhance.d.ts index 957b0b30e4..82a1dbcc79 100644 --- a/types/react-icons/lib/md/camera-enhance.d.ts +++ b/types/react-icons/lib/md/camera-enhance.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdCameraEnhance extends React.Component { } +declare class MdCameraEnhance extends React.Component { } +export = MdCameraEnhance; diff --git a/types/react-icons/lib/md/camera-front.d.ts b/types/react-icons/lib/md/camera-front.d.ts index c6f2760218..e8569e18e1 100644 --- a/types/react-icons/lib/md/camera-front.d.ts +++ b/types/react-icons/lib/md/camera-front.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdCameraFront extends React.Component { } +declare class MdCameraFront extends React.Component { } +export = MdCameraFront; diff --git a/types/react-icons/lib/md/camera-rear.d.ts b/types/react-icons/lib/md/camera-rear.d.ts index b524f4456c..2cd439976a 100644 --- a/types/react-icons/lib/md/camera-rear.d.ts +++ b/types/react-icons/lib/md/camera-rear.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdCameraRear extends React.Component { } +declare class MdCameraRear extends React.Component { } +export = MdCameraRear; diff --git a/types/react-icons/lib/md/camera-roll.d.ts b/types/react-icons/lib/md/camera-roll.d.ts index b7c7b207e2..8d9a659a45 100644 --- a/types/react-icons/lib/md/camera-roll.d.ts +++ b/types/react-icons/lib/md/camera-roll.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdCameraRoll extends React.Component { } +declare class MdCameraRoll extends React.Component { } +export = MdCameraRoll; diff --git a/types/react-icons/lib/md/camera.d.ts b/types/react-icons/lib/md/camera.d.ts index ca2fbf55e3..e743236ad7 100644 --- a/types/react-icons/lib/md/camera.d.ts +++ b/types/react-icons/lib/md/camera.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdCamera extends React.Component { } +declare class MdCamera extends React.Component { } +export = MdCamera; diff --git a/types/react-icons/lib/md/cancel.d.ts b/types/react-icons/lib/md/cancel.d.ts index 28248ed4f6..89e7137dd0 100644 --- a/types/react-icons/lib/md/cancel.d.ts +++ b/types/react-icons/lib/md/cancel.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdCancel extends React.Component { } +declare class MdCancel extends React.Component { } +export = MdCancel; diff --git a/types/react-icons/lib/md/card-giftcard.d.ts b/types/react-icons/lib/md/card-giftcard.d.ts index 67eb5002e6..dcfd110e31 100644 --- a/types/react-icons/lib/md/card-giftcard.d.ts +++ b/types/react-icons/lib/md/card-giftcard.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdCardGiftcard extends React.Component { } +declare class MdCardGiftcard extends React.Component { } +export = MdCardGiftcard; diff --git a/types/react-icons/lib/md/card-membership.d.ts b/types/react-icons/lib/md/card-membership.d.ts index 5cb91c641d..56d04b7d7f 100644 --- a/types/react-icons/lib/md/card-membership.d.ts +++ b/types/react-icons/lib/md/card-membership.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdCardMembership extends React.Component { } +declare class MdCardMembership extends React.Component { } +export = MdCardMembership; diff --git a/types/react-icons/lib/md/card-travel.d.ts b/types/react-icons/lib/md/card-travel.d.ts index a54e339c09..2a024573ff 100644 --- a/types/react-icons/lib/md/card-travel.d.ts +++ b/types/react-icons/lib/md/card-travel.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdCardTravel extends React.Component { } +declare class MdCardTravel extends React.Component { } +export = MdCardTravel; diff --git a/types/react-icons/lib/md/casino.d.ts b/types/react-icons/lib/md/casino.d.ts index ceb6c0cf04..d99aafd815 100644 --- a/types/react-icons/lib/md/casino.d.ts +++ b/types/react-icons/lib/md/casino.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdCasino extends React.Component { } +declare class MdCasino extends React.Component { } +export = MdCasino; diff --git a/types/react-icons/lib/md/cast-connected.d.ts b/types/react-icons/lib/md/cast-connected.d.ts index d4d60dcf60..7b3337dec8 100644 --- a/types/react-icons/lib/md/cast-connected.d.ts +++ b/types/react-icons/lib/md/cast-connected.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdCastConnected extends React.Component { } +declare class MdCastConnected extends React.Component { } +export = MdCastConnected; diff --git a/types/react-icons/lib/md/cast.d.ts b/types/react-icons/lib/md/cast.d.ts index b014c40b07..cc471c69f0 100644 --- a/types/react-icons/lib/md/cast.d.ts +++ b/types/react-icons/lib/md/cast.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdCast extends React.Component { } +declare class MdCast extends React.Component { } +export = MdCast; diff --git a/types/react-icons/lib/md/center-focus-strong.d.ts b/types/react-icons/lib/md/center-focus-strong.d.ts index 6d72ae6a11..609be9f3ca 100644 --- a/types/react-icons/lib/md/center-focus-strong.d.ts +++ b/types/react-icons/lib/md/center-focus-strong.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdCenterFocusStrong extends React.Component { } +declare class MdCenterFocusStrong extends React.Component { } +export = MdCenterFocusStrong; diff --git a/types/react-icons/lib/md/center-focus-weak.d.ts b/types/react-icons/lib/md/center-focus-weak.d.ts index 5565dd7b63..5923a863c7 100644 --- a/types/react-icons/lib/md/center-focus-weak.d.ts +++ b/types/react-icons/lib/md/center-focus-weak.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdCenterFocusWeak extends React.Component { } +declare class MdCenterFocusWeak extends React.Component { } +export = MdCenterFocusWeak; diff --git a/types/react-icons/lib/md/change-history.d.ts b/types/react-icons/lib/md/change-history.d.ts index ed3344df50..da490c335a 100644 --- a/types/react-icons/lib/md/change-history.d.ts +++ b/types/react-icons/lib/md/change-history.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdChangeHistory extends React.Component { } +declare class MdChangeHistory extends React.Component { } +export = MdChangeHistory; diff --git a/types/react-icons/lib/md/chat-bubble-outline.d.ts b/types/react-icons/lib/md/chat-bubble-outline.d.ts index ad12c21318..4bbbe1a012 100644 --- a/types/react-icons/lib/md/chat-bubble-outline.d.ts +++ b/types/react-icons/lib/md/chat-bubble-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdChatBubbleOutline extends React.Component { } +declare class MdChatBubbleOutline extends React.Component { } +export = MdChatBubbleOutline; diff --git a/types/react-icons/lib/md/chat-bubble.d.ts b/types/react-icons/lib/md/chat-bubble.d.ts index 6322767617..7f1bd144b8 100644 --- a/types/react-icons/lib/md/chat-bubble.d.ts +++ b/types/react-icons/lib/md/chat-bubble.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdChatBubble extends React.Component { } +declare class MdChatBubble extends React.Component { } +export = MdChatBubble; diff --git a/types/react-icons/lib/md/chat.d.ts b/types/react-icons/lib/md/chat.d.ts index 7fecfed168..c8b48dded0 100644 --- a/types/react-icons/lib/md/chat.d.ts +++ b/types/react-icons/lib/md/chat.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdChat extends React.Component { } +declare class MdChat extends React.Component { } +export = MdChat; diff --git a/types/react-icons/lib/md/check-box-outline-blank.d.ts b/types/react-icons/lib/md/check-box-outline-blank.d.ts index 984ee8c5b0..9159ef053b 100644 --- a/types/react-icons/lib/md/check-box-outline-blank.d.ts +++ b/types/react-icons/lib/md/check-box-outline-blank.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdCheckBoxOutlineBlank extends React.Component { } +declare class MdCheckBoxOutlineBlank extends React.Component { } +export = MdCheckBoxOutlineBlank; diff --git a/types/react-icons/lib/md/check-box.d.ts b/types/react-icons/lib/md/check-box.d.ts index 0d131960ee..9b0c678b29 100644 --- a/types/react-icons/lib/md/check-box.d.ts +++ b/types/react-icons/lib/md/check-box.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdCheckBox extends React.Component { } +declare class MdCheckBox extends React.Component { } +export = MdCheckBox; diff --git a/types/react-icons/lib/md/check-circle.d.ts b/types/react-icons/lib/md/check-circle.d.ts index 350ec8918d..ffc011234d 100644 --- a/types/react-icons/lib/md/check-circle.d.ts +++ b/types/react-icons/lib/md/check-circle.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdCheckCircle extends React.Component { } +declare class MdCheckCircle extends React.Component { } +export = MdCheckCircle; diff --git a/types/react-icons/lib/md/check.d.ts b/types/react-icons/lib/md/check.d.ts index df809198db..94b93a031b 100644 --- a/types/react-icons/lib/md/check.d.ts +++ b/types/react-icons/lib/md/check.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdCheck extends React.Component { } +declare class MdCheck extends React.Component { } +export = MdCheck; diff --git a/types/react-icons/lib/md/chevron-left.d.ts b/types/react-icons/lib/md/chevron-left.d.ts index fd0b4bff5a..3fea15ec21 100644 --- a/types/react-icons/lib/md/chevron-left.d.ts +++ b/types/react-icons/lib/md/chevron-left.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdChevronLeft extends React.Component { } +declare class MdChevronLeft extends React.Component { } +export = MdChevronLeft; diff --git a/types/react-icons/lib/md/chevron-right.d.ts b/types/react-icons/lib/md/chevron-right.d.ts index fd902a1348..befb8cea98 100644 --- a/types/react-icons/lib/md/chevron-right.d.ts +++ b/types/react-icons/lib/md/chevron-right.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdChevronRight extends React.Component { } +declare class MdChevronRight extends React.Component { } +export = MdChevronRight; diff --git a/types/react-icons/lib/md/child-care.d.ts b/types/react-icons/lib/md/child-care.d.ts index 133bf02e0e..ed581fa911 100644 --- a/types/react-icons/lib/md/child-care.d.ts +++ b/types/react-icons/lib/md/child-care.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdChildCare extends React.Component { } +declare class MdChildCare extends React.Component { } +export = MdChildCare; diff --git a/types/react-icons/lib/md/child-friendly.d.ts b/types/react-icons/lib/md/child-friendly.d.ts index 87f9bc1b8e..c5f658131d 100644 --- a/types/react-icons/lib/md/child-friendly.d.ts +++ b/types/react-icons/lib/md/child-friendly.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdChildFriendly extends React.Component { } +declare class MdChildFriendly extends React.Component { } +export = MdChildFriendly; diff --git a/types/react-icons/lib/md/chrome-reader-mode.d.ts b/types/react-icons/lib/md/chrome-reader-mode.d.ts index c545db8e9b..3737f028fb 100644 --- a/types/react-icons/lib/md/chrome-reader-mode.d.ts +++ b/types/react-icons/lib/md/chrome-reader-mode.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdChromeReaderMode extends React.Component { } +declare class MdChromeReaderMode extends React.Component { } +export = MdChromeReaderMode; diff --git a/types/react-icons/lib/md/class.d.ts b/types/react-icons/lib/md/class.d.ts index e0e0e88367..74a101b1f3 100644 --- a/types/react-icons/lib/md/class.d.ts +++ b/types/react-icons/lib/md/class.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdClass extends React.Component { } +declare class MdClass extends React.Component { } +export = MdClass; diff --git a/types/react-icons/lib/md/clear-all.d.ts b/types/react-icons/lib/md/clear-all.d.ts index b73150c14e..079c95bc0b 100644 --- a/types/react-icons/lib/md/clear-all.d.ts +++ b/types/react-icons/lib/md/clear-all.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdClearAll extends React.Component { } +declare class MdClearAll extends React.Component { } +export = MdClearAll; diff --git a/types/react-icons/lib/md/clear.d.ts b/types/react-icons/lib/md/clear.d.ts index 4da44db5b5..a30ef11252 100644 --- a/types/react-icons/lib/md/clear.d.ts +++ b/types/react-icons/lib/md/clear.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdClear extends React.Component { } +declare class MdClear extends React.Component { } +export = MdClear; diff --git a/types/react-icons/lib/md/close.d.ts b/types/react-icons/lib/md/close.d.ts index 3f693c1eec..8164e66b7a 100644 --- a/types/react-icons/lib/md/close.d.ts +++ b/types/react-icons/lib/md/close.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdClose extends React.Component { } +declare class MdClose extends React.Component { } +export = MdClose; diff --git a/types/react-icons/lib/md/closed-caption.d.ts b/types/react-icons/lib/md/closed-caption.d.ts index 5adaf8fc91..5807eff5b1 100644 --- a/types/react-icons/lib/md/closed-caption.d.ts +++ b/types/react-icons/lib/md/closed-caption.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdClosedCaption extends React.Component { } +declare class MdClosedCaption extends React.Component { } +export = MdClosedCaption; diff --git a/types/react-icons/lib/md/cloud-circle.d.ts b/types/react-icons/lib/md/cloud-circle.d.ts index 55a5be23c2..dab82258ba 100644 --- a/types/react-icons/lib/md/cloud-circle.d.ts +++ b/types/react-icons/lib/md/cloud-circle.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdCloudCircle extends React.Component { } +declare class MdCloudCircle extends React.Component { } +export = MdCloudCircle; diff --git a/types/react-icons/lib/md/cloud-done.d.ts b/types/react-icons/lib/md/cloud-done.d.ts index 49f115ae3d..004c6b7f2e 100644 --- a/types/react-icons/lib/md/cloud-done.d.ts +++ b/types/react-icons/lib/md/cloud-done.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdCloudDone extends React.Component { } +declare class MdCloudDone extends React.Component { } +export = MdCloudDone; diff --git a/types/react-icons/lib/md/cloud-download.d.ts b/types/react-icons/lib/md/cloud-download.d.ts index c7b6f482bb..861d299855 100644 --- a/types/react-icons/lib/md/cloud-download.d.ts +++ b/types/react-icons/lib/md/cloud-download.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdCloudDownload extends React.Component { } +declare class MdCloudDownload extends React.Component { } +export = MdCloudDownload; diff --git a/types/react-icons/lib/md/cloud-off.d.ts b/types/react-icons/lib/md/cloud-off.d.ts index 2ebe85de9a..11923adffc 100644 --- a/types/react-icons/lib/md/cloud-off.d.ts +++ b/types/react-icons/lib/md/cloud-off.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdCloudOff extends React.Component { } +declare class MdCloudOff extends React.Component { } +export = MdCloudOff; diff --git a/types/react-icons/lib/md/cloud-queue.d.ts b/types/react-icons/lib/md/cloud-queue.d.ts index 3e7912edb7..8057c4f888 100644 --- a/types/react-icons/lib/md/cloud-queue.d.ts +++ b/types/react-icons/lib/md/cloud-queue.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdCloudQueue extends React.Component { } +declare class MdCloudQueue extends React.Component { } +export = MdCloudQueue; diff --git a/types/react-icons/lib/md/cloud-upload.d.ts b/types/react-icons/lib/md/cloud-upload.d.ts index 3813bf345b..3ff02a9a0e 100644 --- a/types/react-icons/lib/md/cloud-upload.d.ts +++ b/types/react-icons/lib/md/cloud-upload.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdCloudUpload extends React.Component { } +declare class MdCloudUpload extends React.Component { } +export = MdCloudUpload; diff --git a/types/react-icons/lib/md/cloud.d.ts b/types/react-icons/lib/md/cloud.d.ts index 774dd53424..0c904ab956 100644 --- a/types/react-icons/lib/md/cloud.d.ts +++ b/types/react-icons/lib/md/cloud.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdCloud extends React.Component { } +declare class MdCloud extends React.Component { } +export = MdCloud; diff --git a/types/react-icons/lib/md/code.d.ts b/types/react-icons/lib/md/code.d.ts index 54f942afd1..ec06a5251e 100644 --- a/types/react-icons/lib/md/code.d.ts +++ b/types/react-icons/lib/md/code.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdCode extends React.Component { } +declare class MdCode extends React.Component { } +export = MdCode; diff --git a/types/react-icons/lib/md/collections-bookmark.d.ts b/types/react-icons/lib/md/collections-bookmark.d.ts index 98d8755848..8f21854011 100644 --- a/types/react-icons/lib/md/collections-bookmark.d.ts +++ b/types/react-icons/lib/md/collections-bookmark.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdCollectionsBookmark extends React.Component { } +declare class MdCollectionsBookmark extends React.Component { } +export = MdCollectionsBookmark; diff --git a/types/react-icons/lib/md/collections.d.ts b/types/react-icons/lib/md/collections.d.ts index 7d5cf7fa68..670a27794a 100644 --- a/types/react-icons/lib/md/collections.d.ts +++ b/types/react-icons/lib/md/collections.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdCollections extends React.Component { } +declare class MdCollections extends React.Component { } +export = MdCollections; diff --git a/types/react-icons/lib/md/color-lens.d.ts b/types/react-icons/lib/md/color-lens.d.ts index 71a56bc853..93794aafd7 100644 --- a/types/react-icons/lib/md/color-lens.d.ts +++ b/types/react-icons/lib/md/color-lens.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdColorLens extends React.Component { } +declare class MdColorLens extends React.Component { } +export = MdColorLens; diff --git a/types/react-icons/lib/md/colorize.d.ts b/types/react-icons/lib/md/colorize.d.ts index f345627803..7d9c059323 100644 --- a/types/react-icons/lib/md/colorize.d.ts +++ b/types/react-icons/lib/md/colorize.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdColorize extends React.Component { } +declare class MdColorize extends React.Component { } +export = MdColorize; diff --git a/types/react-icons/lib/md/comment.d.ts b/types/react-icons/lib/md/comment.d.ts index c81ab4762a..388e899032 100644 --- a/types/react-icons/lib/md/comment.d.ts +++ b/types/react-icons/lib/md/comment.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdComment extends React.Component { } +declare class MdComment extends React.Component { } +export = MdComment; diff --git a/types/react-icons/lib/md/compare-arrows.d.ts b/types/react-icons/lib/md/compare-arrows.d.ts index 727031b8a7..094d5f9ffb 100644 --- a/types/react-icons/lib/md/compare-arrows.d.ts +++ b/types/react-icons/lib/md/compare-arrows.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdCompareArrows extends React.Component { } +declare class MdCompareArrows extends React.Component { } +export = MdCompareArrows; diff --git a/types/react-icons/lib/md/compare.d.ts b/types/react-icons/lib/md/compare.d.ts index 59338cf7c9..a980ef66c5 100644 --- a/types/react-icons/lib/md/compare.d.ts +++ b/types/react-icons/lib/md/compare.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdCompare extends React.Component { } +declare class MdCompare extends React.Component { } +export = MdCompare; diff --git a/types/react-icons/lib/md/computer.d.ts b/types/react-icons/lib/md/computer.d.ts index ef16df598d..9aa010e9f0 100644 --- a/types/react-icons/lib/md/computer.d.ts +++ b/types/react-icons/lib/md/computer.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdComputer extends React.Component { } +declare class MdComputer extends React.Component { } +export = MdComputer; diff --git a/types/react-icons/lib/md/confirmation-number.d.ts b/types/react-icons/lib/md/confirmation-number.d.ts index 8a3b8fcb8f..6d21269176 100644 --- a/types/react-icons/lib/md/confirmation-number.d.ts +++ b/types/react-icons/lib/md/confirmation-number.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdConfirmationNumber extends React.Component { } +declare class MdConfirmationNumber extends React.Component { } +export = MdConfirmationNumber; diff --git a/types/react-icons/lib/md/contact-mail.d.ts b/types/react-icons/lib/md/contact-mail.d.ts index b5027ce2da..7097c62e6b 100644 --- a/types/react-icons/lib/md/contact-mail.d.ts +++ b/types/react-icons/lib/md/contact-mail.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdContactMail extends React.Component { } +declare class MdContactMail extends React.Component { } +export = MdContactMail; diff --git a/types/react-icons/lib/md/contact-phone.d.ts b/types/react-icons/lib/md/contact-phone.d.ts index df4405a4da..46a15ce303 100644 --- a/types/react-icons/lib/md/contact-phone.d.ts +++ b/types/react-icons/lib/md/contact-phone.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdContactPhone extends React.Component { } +declare class MdContactPhone extends React.Component { } +export = MdContactPhone; diff --git a/types/react-icons/lib/md/contacts.d.ts b/types/react-icons/lib/md/contacts.d.ts index e4df5f1c11..356af4ee87 100644 --- a/types/react-icons/lib/md/contacts.d.ts +++ b/types/react-icons/lib/md/contacts.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdContacts extends React.Component { } +declare class MdContacts extends React.Component { } +export = MdContacts; diff --git a/types/react-icons/lib/md/content-copy.d.ts b/types/react-icons/lib/md/content-copy.d.ts index e069254814..a0be0e9f4f 100644 --- a/types/react-icons/lib/md/content-copy.d.ts +++ b/types/react-icons/lib/md/content-copy.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdContentCopy extends React.Component { } +declare class MdContentCopy extends React.Component { } +export = MdContentCopy; diff --git a/types/react-icons/lib/md/content-cut.d.ts b/types/react-icons/lib/md/content-cut.d.ts index 84d7b36ea0..2523e9545f 100644 --- a/types/react-icons/lib/md/content-cut.d.ts +++ b/types/react-icons/lib/md/content-cut.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdContentCut extends React.Component { } +declare class MdContentCut extends React.Component { } +export = MdContentCut; diff --git a/types/react-icons/lib/md/content-paste.d.ts b/types/react-icons/lib/md/content-paste.d.ts index d3825ed71f..d4eb4155b0 100644 --- a/types/react-icons/lib/md/content-paste.d.ts +++ b/types/react-icons/lib/md/content-paste.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdContentPaste extends React.Component { } +declare class MdContentPaste extends React.Component { } +export = MdContentPaste; diff --git a/types/react-icons/lib/md/control-point-duplicate.d.ts b/types/react-icons/lib/md/control-point-duplicate.d.ts index 8ba468f7bc..12be0cb5b2 100644 --- a/types/react-icons/lib/md/control-point-duplicate.d.ts +++ b/types/react-icons/lib/md/control-point-duplicate.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdControlPointDuplicate extends React.Component { } +declare class MdControlPointDuplicate extends React.Component { } +export = MdControlPointDuplicate; diff --git a/types/react-icons/lib/md/control-point.d.ts b/types/react-icons/lib/md/control-point.d.ts index aa32c1b7f4..9ed8996573 100644 --- a/types/react-icons/lib/md/control-point.d.ts +++ b/types/react-icons/lib/md/control-point.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdControlPoint extends React.Component { } +declare class MdControlPoint extends React.Component { } +export = MdControlPoint; diff --git a/types/react-icons/lib/md/copyright.d.ts b/types/react-icons/lib/md/copyright.d.ts index d786505dc9..6aedb414ac 100644 --- a/types/react-icons/lib/md/copyright.d.ts +++ b/types/react-icons/lib/md/copyright.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdCopyright extends React.Component { } +declare class MdCopyright extends React.Component { } +export = MdCopyright; diff --git a/types/react-icons/lib/md/create-new-folder.d.ts b/types/react-icons/lib/md/create-new-folder.d.ts index 5f81f01bff..d94d8a1ccb 100644 --- a/types/react-icons/lib/md/create-new-folder.d.ts +++ b/types/react-icons/lib/md/create-new-folder.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdCreateNewFolder extends React.Component { } +declare class MdCreateNewFolder extends React.Component { } +export = MdCreateNewFolder; diff --git a/types/react-icons/lib/md/create.d.ts b/types/react-icons/lib/md/create.d.ts index 75c2871644..2101f81ca0 100644 --- a/types/react-icons/lib/md/create.d.ts +++ b/types/react-icons/lib/md/create.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdCreate extends React.Component { } +declare class MdCreate extends React.Component { } +export = MdCreate; diff --git a/types/react-icons/lib/md/credit-card.d.ts b/types/react-icons/lib/md/credit-card.d.ts index 9515c900d0..7b830a5dec 100644 --- a/types/react-icons/lib/md/credit-card.d.ts +++ b/types/react-icons/lib/md/credit-card.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdCreditCard extends React.Component { } +declare class MdCreditCard extends React.Component { } +export = MdCreditCard; diff --git a/types/react-icons/lib/md/crop-16-9.d.ts b/types/react-icons/lib/md/crop-16-9.d.ts index d507bc9db9..70fe5e4df2 100644 --- a/types/react-icons/lib/md/crop-16-9.d.ts +++ b/types/react-icons/lib/md/crop-16-9.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdCrop169 extends React.Component { } +declare class MdCrop169 extends React.Component { } +export = MdCrop169; diff --git a/types/react-icons/lib/md/crop-3-2.d.ts b/types/react-icons/lib/md/crop-3-2.d.ts index 461cf07b2d..e3b49cac55 100644 --- a/types/react-icons/lib/md/crop-3-2.d.ts +++ b/types/react-icons/lib/md/crop-3-2.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdCrop32 extends React.Component { } +declare class MdCrop32 extends React.Component { } +export = MdCrop32; diff --git a/types/react-icons/lib/md/crop-5-4.d.ts b/types/react-icons/lib/md/crop-5-4.d.ts index 4b0cb6c7fb..f44ec1dc15 100644 --- a/types/react-icons/lib/md/crop-5-4.d.ts +++ b/types/react-icons/lib/md/crop-5-4.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdCrop54 extends React.Component { } +declare class MdCrop54 extends React.Component { } +export = MdCrop54; diff --git a/types/react-icons/lib/md/crop-7-5.d.ts b/types/react-icons/lib/md/crop-7-5.d.ts index 9063520b57..b283e385e4 100644 --- a/types/react-icons/lib/md/crop-7-5.d.ts +++ b/types/react-icons/lib/md/crop-7-5.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdCrop75 extends React.Component { } +declare class MdCrop75 extends React.Component { } +export = MdCrop75; diff --git a/types/react-icons/lib/md/crop-din.d.ts b/types/react-icons/lib/md/crop-din.d.ts index 115106ef50..f6c27311d5 100644 --- a/types/react-icons/lib/md/crop-din.d.ts +++ b/types/react-icons/lib/md/crop-din.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdCropDin extends React.Component { } +declare class MdCropDin extends React.Component { } +export = MdCropDin; diff --git a/types/react-icons/lib/md/crop-free.d.ts b/types/react-icons/lib/md/crop-free.d.ts index e68c930ff9..a526edc6ed 100644 --- a/types/react-icons/lib/md/crop-free.d.ts +++ b/types/react-icons/lib/md/crop-free.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdCropFree extends React.Component { } +declare class MdCropFree extends React.Component { } +export = MdCropFree; diff --git a/types/react-icons/lib/md/crop-landscape.d.ts b/types/react-icons/lib/md/crop-landscape.d.ts index 5ef2f2e4dd..7c224aff4c 100644 --- a/types/react-icons/lib/md/crop-landscape.d.ts +++ b/types/react-icons/lib/md/crop-landscape.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdCropLandscape extends React.Component { } +declare class MdCropLandscape extends React.Component { } +export = MdCropLandscape; diff --git a/types/react-icons/lib/md/crop-original.d.ts b/types/react-icons/lib/md/crop-original.d.ts index 26733dc24e..24310372ec 100644 --- a/types/react-icons/lib/md/crop-original.d.ts +++ b/types/react-icons/lib/md/crop-original.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdCropOriginal extends React.Component { } +declare class MdCropOriginal extends React.Component { } +export = MdCropOriginal; diff --git a/types/react-icons/lib/md/crop-portrait.d.ts b/types/react-icons/lib/md/crop-portrait.d.ts index 9a43790ec0..a9bf07301e 100644 --- a/types/react-icons/lib/md/crop-portrait.d.ts +++ b/types/react-icons/lib/md/crop-portrait.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdCropPortrait extends React.Component { } +declare class MdCropPortrait extends React.Component { } +export = MdCropPortrait; diff --git a/types/react-icons/lib/md/crop-rotate.d.ts b/types/react-icons/lib/md/crop-rotate.d.ts index 7106d1b55b..a7363f7798 100644 --- a/types/react-icons/lib/md/crop-rotate.d.ts +++ b/types/react-icons/lib/md/crop-rotate.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdCropRotate extends React.Component { } +declare class MdCropRotate extends React.Component { } +export = MdCropRotate; diff --git a/types/react-icons/lib/md/crop-square.d.ts b/types/react-icons/lib/md/crop-square.d.ts index 62ba826cfc..a33bba56d2 100644 --- a/types/react-icons/lib/md/crop-square.d.ts +++ b/types/react-icons/lib/md/crop-square.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdCropSquare extends React.Component { } +declare class MdCropSquare extends React.Component { } +export = MdCropSquare; diff --git a/types/react-icons/lib/md/crop.d.ts b/types/react-icons/lib/md/crop.d.ts index dfd01a2ad8..0375235973 100644 --- a/types/react-icons/lib/md/crop.d.ts +++ b/types/react-icons/lib/md/crop.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdCrop extends React.Component { } +declare class MdCrop extends React.Component { } +export = MdCrop; diff --git a/types/react-icons/lib/md/dashboard.d.ts b/types/react-icons/lib/md/dashboard.d.ts index 47f85672c9..741cb37968 100644 --- a/types/react-icons/lib/md/dashboard.d.ts +++ b/types/react-icons/lib/md/dashboard.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdDashboard extends React.Component { } +declare class MdDashboard extends React.Component { } +export = MdDashboard; diff --git a/types/react-icons/lib/md/data-usage.d.ts b/types/react-icons/lib/md/data-usage.d.ts index 013f33ad67..c51830af57 100644 --- a/types/react-icons/lib/md/data-usage.d.ts +++ b/types/react-icons/lib/md/data-usage.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdDataUsage extends React.Component { } +declare class MdDataUsage extends React.Component { } +export = MdDataUsage; diff --git a/types/react-icons/lib/md/date-range.d.ts b/types/react-icons/lib/md/date-range.d.ts index a9fc01751f..90a920e81e 100644 --- a/types/react-icons/lib/md/date-range.d.ts +++ b/types/react-icons/lib/md/date-range.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdDateRange extends React.Component { } +declare class MdDateRange extends React.Component { } +export = MdDateRange; diff --git a/types/react-icons/lib/md/dehaze.d.ts b/types/react-icons/lib/md/dehaze.d.ts index 9144d9822f..0c1700f065 100644 --- a/types/react-icons/lib/md/dehaze.d.ts +++ b/types/react-icons/lib/md/dehaze.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdDehaze extends React.Component { } +declare class MdDehaze extends React.Component { } +export = MdDehaze; diff --git a/types/react-icons/lib/md/delete-forever.d.ts b/types/react-icons/lib/md/delete-forever.d.ts index 9820c93b1a..e2d8ce1c53 100644 --- a/types/react-icons/lib/md/delete-forever.d.ts +++ b/types/react-icons/lib/md/delete-forever.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdDeleteForever extends React.Component { } +declare class MdDeleteForever extends React.Component { } +export = MdDeleteForever; diff --git a/types/react-icons/lib/md/delete-sweep.d.ts b/types/react-icons/lib/md/delete-sweep.d.ts index 965ce9c746..857d38f6af 100644 --- a/types/react-icons/lib/md/delete-sweep.d.ts +++ b/types/react-icons/lib/md/delete-sweep.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdDeleteSweep extends React.Component { } +declare class MdDeleteSweep extends React.Component { } +export = MdDeleteSweep; diff --git a/types/react-icons/lib/md/delete.d.ts b/types/react-icons/lib/md/delete.d.ts index f47a4b0a59..761f230dd9 100644 --- a/types/react-icons/lib/md/delete.d.ts +++ b/types/react-icons/lib/md/delete.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdDelete extends React.Component { } +declare class MdDelete extends React.Component { } +export = MdDelete; diff --git a/types/react-icons/lib/md/description.d.ts b/types/react-icons/lib/md/description.d.ts index 76bc0bbf1c..da148361f0 100644 --- a/types/react-icons/lib/md/description.d.ts +++ b/types/react-icons/lib/md/description.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdDescription extends React.Component { } +declare class MdDescription extends React.Component { } +export = MdDescription; diff --git a/types/react-icons/lib/md/desktop-mac.d.ts b/types/react-icons/lib/md/desktop-mac.d.ts index 007f0a5ae1..8bdd624240 100644 --- a/types/react-icons/lib/md/desktop-mac.d.ts +++ b/types/react-icons/lib/md/desktop-mac.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdDesktopMac extends React.Component { } +declare class MdDesktopMac extends React.Component { } +export = MdDesktopMac; diff --git a/types/react-icons/lib/md/desktop-windows.d.ts b/types/react-icons/lib/md/desktop-windows.d.ts index e735a11f72..8912843f33 100644 --- a/types/react-icons/lib/md/desktop-windows.d.ts +++ b/types/react-icons/lib/md/desktop-windows.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdDesktopWindows extends React.Component { } +declare class MdDesktopWindows extends React.Component { } +export = MdDesktopWindows; diff --git a/types/react-icons/lib/md/details.d.ts b/types/react-icons/lib/md/details.d.ts index 86ec926d65..ea077267ba 100644 --- a/types/react-icons/lib/md/details.d.ts +++ b/types/react-icons/lib/md/details.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdDetails extends React.Component { } +declare class MdDetails extends React.Component { } +export = MdDetails; diff --git a/types/react-icons/lib/md/developer-board.d.ts b/types/react-icons/lib/md/developer-board.d.ts index a3ad5d5b89..a95b8e752d 100644 --- a/types/react-icons/lib/md/developer-board.d.ts +++ b/types/react-icons/lib/md/developer-board.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdDeveloperBoard extends React.Component { } +declare class MdDeveloperBoard extends React.Component { } +export = MdDeveloperBoard; diff --git a/types/react-icons/lib/md/developer-mode.d.ts b/types/react-icons/lib/md/developer-mode.d.ts index f2032d8e74..ef6734a5c2 100644 --- a/types/react-icons/lib/md/developer-mode.d.ts +++ b/types/react-icons/lib/md/developer-mode.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdDeveloperMode extends React.Component { } +declare class MdDeveloperMode extends React.Component { } +export = MdDeveloperMode; diff --git a/types/react-icons/lib/md/device-hub.d.ts b/types/react-icons/lib/md/device-hub.d.ts index 38815bce4d..015a1b17d9 100644 --- a/types/react-icons/lib/md/device-hub.d.ts +++ b/types/react-icons/lib/md/device-hub.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdDeviceHub extends React.Component { } +declare class MdDeviceHub extends React.Component { } +export = MdDeviceHub; diff --git a/types/react-icons/lib/md/devices-other.d.ts b/types/react-icons/lib/md/devices-other.d.ts index 69ed6d847d..4eb8c7937d 100644 --- a/types/react-icons/lib/md/devices-other.d.ts +++ b/types/react-icons/lib/md/devices-other.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdDevicesOther extends React.Component { } +declare class MdDevicesOther extends React.Component { } +export = MdDevicesOther; diff --git a/types/react-icons/lib/md/devices.d.ts b/types/react-icons/lib/md/devices.d.ts index 00163cbb71..fc1d0d3521 100644 --- a/types/react-icons/lib/md/devices.d.ts +++ b/types/react-icons/lib/md/devices.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdDevices extends React.Component { } +declare class MdDevices extends React.Component { } +export = MdDevices; diff --git a/types/react-icons/lib/md/dialer-sip.d.ts b/types/react-icons/lib/md/dialer-sip.d.ts index ba4ade0a30..5e0eec11d8 100644 --- a/types/react-icons/lib/md/dialer-sip.d.ts +++ b/types/react-icons/lib/md/dialer-sip.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdDialerSip extends React.Component { } +declare class MdDialerSip extends React.Component { } +export = MdDialerSip; diff --git a/types/react-icons/lib/md/dialpad.d.ts b/types/react-icons/lib/md/dialpad.d.ts index 3d74b7ce08..cdcd0bfe91 100644 --- a/types/react-icons/lib/md/dialpad.d.ts +++ b/types/react-icons/lib/md/dialpad.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdDialpad extends React.Component { } +declare class MdDialpad extends React.Component { } +export = MdDialpad; diff --git a/types/react-icons/lib/md/directions-bike.d.ts b/types/react-icons/lib/md/directions-bike.d.ts index 3ff5b576f2..4b214023fe 100644 --- a/types/react-icons/lib/md/directions-bike.d.ts +++ b/types/react-icons/lib/md/directions-bike.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdDirectionsBike extends React.Component { } +declare class MdDirectionsBike extends React.Component { } +export = MdDirectionsBike; diff --git a/types/react-icons/lib/md/directions-boat.d.ts b/types/react-icons/lib/md/directions-boat.d.ts index 29cb6f9727..d0729a199e 100644 --- a/types/react-icons/lib/md/directions-boat.d.ts +++ b/types/react-icons/lib/md/directions-boat.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdDirectionsBoat extends React.Component { } +declare class MdDirectionsBoat extends React.Component { } +export = MdDirectionsBoat; diff --git a/types/react-icons/lib/md/directions-bus.d.ts b/types/react-icons/lib/md/directions-bus.d.ts index 12964dd1bf..12b9b704d6 100644 --- a/types/react-icons/lib/md/directions-bus.d.ts +++ b/types/react-icons/lib/md/directions-bus.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdDirectionsBus extends React.Component { } +declare class MdDirectionsBus extends React.Component { } +export = MdDirectionsBus; diff --git a/types/react-icons/lib/md/directions-car.d.ts b/types/react-icons/lib/md/directions-car.d.ts index 0055e4a7e9..3e2313c242 100644 --- a/types/react-icons/lib/md/directions-car.d.ts +++ b/types/react-icons/lib/md/directions-car.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdDirectionsCar extends React.Component { } +declare class MdDirectionsCar extends React.Component { } +export = MdDirectionsCar; diff --git a/types/react-icons/lib/md/directions-ferry.d.ts b/types/react-icons/lib/md/directions-ferry.d.ts index fa5f376ab4..c797e3804d 100644 --- a/types/react-icons/lib/md/directions-ferry.d.ts +++ b/types/react-icons/lib/md/directions-ferry.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdDirectionsFerry extends React.Component { } +declare class MdDirectionsFerry extends React.Component { } +export = MdDirectionsFerry; diff --git a/types/react-icons/lib/md/directions-railway.d.ts b/types/react-icons/lib/md/directions-railway.d.ts index ee241e2f78..b5895757b9 100644 --- a/types/react-icons/lib/md/directions-railway.d.ts +++ b/types/react-icons/lib/md/directions-railway.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdDirectionsRailway extends React.Component { } +declare class MdDirectionsRailway extends React.Component { } +export = MdDirectionsRailway; diff --git a/types/react-icons/lib/md/directions-run.d.ts b/types/react-icons/lib/md/directions-run.d.ts index 65fabf028c..2c48d943a7 100644 --- a/types/react-icons/lib/md/directions-run.d.ts +++ b/types/react-icons/lib/md/directions-run.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdDirectionsRun extends React.Component { } +declare class MdDirectionsRun extends React.Component { } +export = MdDirectionsRun; diff --git a/types/react-icons/lib/md/directions-subway.d.ts b/types/react-icons/lib/md/directions-subway.d.ts index d97b4fd1e2..cc4bf86ea1 100644 --- a/types/react-icons/lib/md/directions-subway.d.ts +++ b/types/react-icons/lib/md/directions-subway.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdDirectionsSubway extends React.Component { } +declare class MdDirectionsSubway extends React.Component { } +export = MdDirectionsSubway; diff --git a/types/react-icons/lib/md/directions-transit.d.ts b/types/react-icons/lib/md/directions-transit.d.ts index 0016d21dd1..a1cab5be50 100644 --- a/types/react-icons/lib/md/directions-transit.d.ts +++ b/types/react-icons/lib/md/directions-transit.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdDirectionsTransit extends React.Component { } +declare class MdDirectionsTransit extends React.Component { } +export = MdDirectionsTransit; diff --git a/types/react-icons/lib/md/directions-walk.d.ts b/types/react-icons/lib/md/directions-walk.d.ts index 5f02d00296..8dd9735db6 100644 --- a/types/react-icons/lib/md/directions-walk.d.ts +++ b/types/react-icons/lib/md/directions-walk.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdDirectionsWalk extends React.Component { } +declare class MdDirectionsWalk extends React.Component { } +export = MdDirectionsWalk; diff --git a/types/react-icons/lib/md/directions.d.ts b/types/react-icons/lib/md/directions.d.ts index 14a1dded8e..01ea70a407 100644 --- a/types/react-icons/lib/md/directions.d.ts +++ b/types/react-icons/lib/md/directions.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdDirections extends React.Component { } +declare class MdDirections extends React.Component { } +export = MdDirections; diff --git a/types/react-icons/lib/md/disc-full.d.ts b/types/react-icons/lib/md/disc-full.d.ts index f23e47b0bd..0f99403824 100644 --- a/types/react-icons/lib/md/disc-full.d.ts +++ b/types/react-icons/lib/md/disc-full.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdDiscFull extends React.Component { } +declare class MdDiscFull extends React.Component { } +export = MdDiscFull; diff --git a/types/react-icons/lib/md/dns.d.ts b/types/react-icons/lib/md/dns.d.ts index 42a3e45b84..ac4074dd65 100644 --- a/types/react-icons/lib/md/dns.d.ts +++ b/types/react-icons/lib/md/dns.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdDns extends React.Component { } +declare class MdDns extends React.Component { } +export = MdDns; diff --git a/types/react-icons/lib/md/do-not-disturb-alt.d.ts b/types/react-icons/lib/md/do-not-disturb-alt.d.ts index 6bad8e0875..968790ef49 100644 --- a/types/react-icons/lib/md/do-not-disturb-alt.d.ts +++ b/types/react-icons/lib/md/do-not-disturb-alt.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdDoNotDisturbAlt extends React.Component { } +declare class MdDoNotDisturbAlt extends React.Component { } +export = MdDoNotDisturbAlt; diff --git a/types/react-icons/lib/md/do-not-disturb-off.d.ts b/types/react-icons/lib/md/do-not-disturb-off.d.ts index bcbe409363..191fdbd021 100644 --- a/types/react-icons/lib/md/do-not-disturb-off.d.ts +++ b/types/react-icons/lib/md/do-not-disturb-off.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdDoNotDisturbOff extends React.Component { } +declare class MdDoNotDisturbOff extends React.Component { } +export = MdDoNotDisturbOff; diff --git a/types/react-icons/lib/md/do-not-disturb.d.ts b/types/react-icons/lib/md/do-not-disturb.d.ts index bb19ff2e39..bbf62abfa8 100644 --- a/types/react-icons/lib/md/do-not-disturb.d.ts +++ b/types/react-icons/lib/md/do-not-disturb.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdDoNotDisturb extends React.Component { } +declare class MdDoNotDisturb extends React.Component { } +export = MdDoNotDisturb; diff --git a/types/react-icons/lib/md/dock.d.ts b/types/react-icons/lib/md/dock.d.ts index 3de11f01a5..a4a7aede1d 100644 --- a/types/react-icons/lib/md/dock.d.ts +++ b/types/react-icons/lib/md/dock.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdDock extends React.Component { } +declare class MdDock extends React.Component { } +export = MdDock; diff --git a/types/react-icons/lib/md/domain.d.ts b/types/react-icons/lib/md/domain.d.ts index c9586ff2b5..742cce594e 100644 --- a/types/react-icons/lib/md/domain.d.ts +++ b/types/react-icons/lib/md/domain.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdDomain extends React.Component { } +declare class MdDomain extends React.Component { } +export = MdDomain; diff --git a/types/react-icons/lib/md/done-all.d.ts b/types/react-icons/lib/md/done-all.d.ts index 41e8241fcc..83da2f1ed2 100644 --- a/types/react-icons/lib/md/done-all.d.ts +++ b/types/react-icons/lib/md/done-all.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdDoneAll extends React.Component { } +declare class MdDoneAll extends React.Component { } +export = MdDoneAll; diff --git a/types/react-icons/lib/md/done.d.ts b/types/react-icons/lib/md/done.d.ts index 977bc177a5..d310efc5fb 100644 --- a/types/react-icons/lib/md/done.d.ts +++ b/types/react-icons/lib/md/done.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdDone extends React.Component { } +declare class MdDone extends React.Component { } +export = MdDone; diff --git a/types/react-icons/lib/md/donut-large.d.ts b/types/react-icons/lib/md/donut-large.d.ts index 01422e1fa5..19aae88f9a 100644 --- a/types/react-icons/lib/md/donut-large.d.ts +++ b/types/react-icons/lib/md/donut-large.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdDonutLarge extends React.Component { } +declare class MdDonutLarge extends React.Component { } +export = MdDonutLarge; diff --git a/types/react-icons/lib/md/donut-small.d.ts b/types/react-icons/lib/md/donut-small.d.ts index 7475720575..4006487408 100644 --- a/types/react-icons/lib/md/donut-small.d.ts +++ b/types/react-icons/lib/md/donut-small.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdDonutSmall extends React.Component { } +declare class MdDonutSmall extends React.Component { } +export = MdDonutSmall; diff --git a/types/react-icons/lib/md/drafts.d.ts b/types/react-icons/lib/md/drafts.d.ts index 3a3af21927..47ced0caf3 100644 --- a/types/react-icons/lib/md/drafts.d.ts +++ b/types/react-icons/lib/md/drafts.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdDrafts extends React.Component { } +declare class MdDrafts extends React.Component { } +export = MdDrafts; diff --git a/types/react-icons/lib/md/drag-handle.d.ts b/types/react-icons/lib/md/drag-handle.d.ts index 80ae3229cd..7a5507a43d 100644 --- a/types/react-icons/lib/md/drag-handle.d.ts +++ b/types/react-icons/lib/md/drag-handle.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdDragHandle extends React.Component { } +declare class MdDragHandle extends React.Component { } +export = MdDragHandle; diff --git a/types/react-icons/lib/md/drive-eta.d.ts b/types/react-icons/lib/md/drive-eta.d.ts index 6cecfe8799..bbfc19b784 100644 --- a/types/react-icons/lib/md/drive-eta.d.ts +++ b/types/react-icons/lib/md/drive-eta.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdDriveEta extends React.Component { } +declare class MdDriveEta extends React.Component { } +export = MdDriveEta; diff --git a/types/react-icons/lib/md/dvr.d.ts b/types/react-icons/lib/md/dvr.d.ts index c9d3aa8ce5..fe06a5720f 100644 --- a/types/react-icons/lib/md/dvr.d.ts +++ b/types/react-icons/lib/md/dvr.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdDvr extends React.Component { } +declare class MdDvr extends React.Component { } +export = MdDvr; diff --git a/types/react-icons/lib/md/edit-location.d.ts b/types/react-icons/lib/md/edit-location.d.ts index d6e3e2bfb7..b7b5b079c6 100644 --- a/types/react-icons/lib/md/edit-location.d.ts +++ b/types/react-icons/lib/md/edit-location.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdEditLocation extends React.Component { } +declare class MdEditLocation extends React.Component { } +export = MdEditLocation; diff --git a/types/react-icons/lib/md/edit.d.ts b/types/react-icons/lib/md/edit.d.ts index aaa97a382a..d93921ebed 100644 --- a/types/react-icons/lib/md/edit.d.ts +++ b/types/react-icons/lib/md/edit.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdEdit extends React.Component { } +declare class MdEdit extends React.Component { } +export = MdEdit; diff --git a/types/react-icons/lib/md/eject.d.ts b/types/react-icons/lib/md/eject.d.ts index 87c366fef5..b0f783c078 100644 --- a/types/react-icons/lib/md/eject.d.ts +++ b/types/react-icons/lib/md/eject.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdEject extends React.Component { } +declare class MdEject extends React.Component { } +export = MdEject; diff --git a/types/react-icons/lib/md/email.d.ts b/types/react-icons/lib/md/email.d.ts index 1c8b5247ee..3c6e12207f 100644 --- a/types/react-icons/lib/md/email.d.ts +++ b/types/react-icons/lib/md/email.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdEmail extends React.Component { } +declare class MdEmail extends React.Component { } +export = MdEmail; diff --git a/types/react-icons/lib/md/enhanced-encryption.d.ts b/types/react-icons/lib/md/enhanced-encryption.d.ts index be651f5c94..349a860441 100644 --- a/types/react-icons/lib/md/enhanced-encryption.d.ts +++ b/types/react-icons/lib/md/enhanced-encryption.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdEnhancedEncryption extends React.Component { } +declare class MdEnhancedEncryption extends React.Component { } +export = MdEnhancedEncryption; diff --git a/types/react-icons/lib/md/equalizer.d.ts b/types/react-icons/lib/md/equalizer.d.ts index ab7a2f20f9..7530cf7695 100644 --- a/types/react-icons/lib/md/equalizer.d.ts +++ b/types/react-icons/lib/md/equalizer.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdEqualizer extends React.Component { } +declare class MdEqualizer extends React.Component { } +export = MdEqualizer; diff --git a/types/react-icons/lib/md/error-outline.d.ts b/types/react-icons/lib/md/error-outline.d.ts index 0d8a6051a9..4e6e732a4c 100644 --- a/types/react-icons/lib/md/error-outline.d.ts +++ b/types/react-icons/lib/md/error-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdErrorOutline extends React.Component { } +declare class MdErrorOutline extends React.Component { } +export = MdErrorOutline; diff --git a/types/react-icons/lib/md/error.d.ts b/types/react-icons/lib/md/error.d.ts index c5b9fc8e71..5b2809e65d 100644 --- a/types/react-icons/lib/md/error.d.ts +++ b/types/react-icons/lib/md/error.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdError extends React.Component { } +declare class MdError extends React.Component { } +export = MdError; diff --git a/types/react-icons/lib/md/euro-symbol.d.ts b/types/react-icons/lib/md/euro-symbol.d.ts index 1e5b262514..9ae12d17be 100644 --- a/types/react-icons/lib/md/euro-symbol.d.ts +++ b/types/react-icons/lib/md/euro-symbol.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdEuroSymbol extends React.Component { } +declare class MdEuroSymbol extends React.Component { } +export = MdEuroSymbol; diff --git a/types/react-icons/lib/md/ev-station.d.ts b/types/react-icons/lib/md/ev-station.d.ts index 4254fe1ebf..b9620cae5e 100644 --- a/types/react-icons/lib/md/ev-station.d.ts +++ b/types/react-icons/lib/md/ev-station.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdEvStation extends React.Component { } +declare class MdEvStation extends React.Component { } +export = MdEvStation; diff --git a/types/react-icons/lib/md/event-available.d.ts b/types/react-icons/lib/md/event-available.d.ts index 30722d5a81..b347743558 100644 --- a/types/react-icons/lib/md/event-available.d.ts +++ b/types/react-icons/lib/md/event-available.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdEventAvailable extends React.Component { } +declare class MdEventAvailable extends React.Component { } +export = MdEventAvailable; diff --git a/types/react-icons/lib/md/event-busy.d.ts b/types/react-icons/lib/md/event-busy.d.ts index 6659755bbf..3fc3be1c59 100644 --- a/types/react-icons/lib/md/event-busy.d.ts +++ b/types/react-icons/lib/md/event-busy.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdEventBusy extends React.Component { } +declare class MdEventBusy extends React.Component { } +export = MdEventBusy; diff --git a/types/react-icons/lib/md/event-note.d.ts b/types/react-icons/lib/md/event-note.d.ts index fb3c3b0279..34a6684ae4 100644 --- a/types/react-icons/lib/md/event-note.d.ts +++ b/types/react-icons/lib/md/event-note.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdEventNote extends React.Component { } +declare class MdEventNote extends React.Component { } +export = MdEventNote; diff --git a/types/react-icons/lib/md/event-seat.d.ts b/types/react-icons/lib/md/event-seat.d.ts index 53c6fd7c85..f45d48eb2e 100644 --- a/types/react-icons/lib/md/event-seat.d.ts +++ b/types/react-icons/lib/md/event-seat.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdEventSeat extends React.Component { } +declare class MdEventSeat extends React.Component { } +export = MdEventSeat; diff --git a/types/react-icons/lib/md/event.d.ts b/types/react-icons/lib/md/event.d.ts index a5bba2458a..1237aeb777 100644 --- a/types/react-icons/lib/md/event.d.ts +++ b/types/react-icons/lib/md/event.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdEvent extends React.Component { } +declare class MdEvent extends React.Component { } +export = MdEvent; diff --git a/types/react-icons/lib/md/exit-to-app.d.ts b/types/react-icons/lib/md/exit-to-app.d.ts index 1c12dfc4b7..f8de476ba4 100644 --- a/types/react-icons/lib/md/exit-to-app.d.ts +++ b/types/react-icons/lib/md/exit-to-app.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdExitToApp extends React.Component { } +declare class MdExitToApp extends React.Component { } +export = MdExitToApp; diff --git a/types/react-icons/lib/md/expand-less.d.ts b/types/react-icons/lib/md/expand-less.d.ts index 766bf8886e..5706e4bf36 100644 --- a/types/react-icons/lib/md/expand-less.d.ts +++ b/types/react-icons/lib/md/expand-less.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdExpandLess extends React.Component { } +declare class MdExpandLess extends React.Component { } +export = MdExpandLess; diff --git a/types/react-icons/lib/md/expand-more.d.ts b/types/react-icons/lib/md/expand-more.d.ts index bef62424b7..e42c0fcebb 100644 --- a/types/react-icons/lib/md/expand-more.d.ts +++ b/types/react-icons/lib/md/expand-more.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdExpandMore extends React.Component { } +declare class MdExpandMore extends React.Component { } +export = MdExpandMore; diff --git a/types/react-icons/lib/md/explicit.d.ts b/types/react-icons/lib/md/explicit.d.ts index b10026c0af..673add9aad 100644 --- a/types/react-icons/lib/md/explicit.d.ts +++ b/types/react-icons/lib/md/explicit.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdExplicit extends React.Component { } +declare class MdExplicit extends React.Component { } +export = MdExplicit; diff --git a/types/react-icons/lib/md/explore.d.ts b/types/react-icons/lib/md/explore.d.ts index 79180f608d..c4a3f09e3f 100644 --- a/types/react-icons/lib/md/explore.d.ts +++ b/types/react-icons/lib/md/explore.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdExplore extends React.Component { } +declare class MdExplore extends React.Component { } +export = MdExplore; diff --git a/types/react-icons/lib/md/exposure-minus-1.d.ts b/types/react-icons/lib/md/exposure-minus-1.d.ts index f0c9222b4e..9446fd9e77 100644 --- a/types/react-icons/lib/md/exposure-minus-1.d.ts +++ b/types/react-icons/lib/md/exposure-minus-1.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdExposureMinus1 extends React.Component { } +declare class MdExposureMinus1 extends React.Component { } +export = MdExposureMinus1; diff --git a/types/react-icons/lib/md/exposure-minus-2.d.ts b/types/react-icons/lib/md/exposure-minus-2.d.ts index 7b70926bf1..f63ea681dc 100644 --- a/types/react-icons/lib/md/exposure-minus-2.d.ts +++ b/types/react-icons/lib/md/exposure-minus-2.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdExposureMinus2 extends React.Component { } +declare class MdExposureMinus2 extends React.Component { } +export = MdExposureMinus2; diff --git a/types/react-icons/lib/md/exposure-neg-1.d.ts b/types/react-icons/lib/md/exposure-neg-1.d.ts index 136e8abf0e..9adf29cb8e 100644 --- a/types/react-icons/lib/md/exposure-neg-1.d.ts +++ b/types/react-icons/lib/md/exposure-neg-1.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdExposureNeg1 extends React.Component { } +declare class MdExposureNeg1 extends React.Component { } +export = MdExposureNeg1; diff --git a/types/react-icons/lib/md/exposure-neg-2.d.ts b/types/react-icons/lib/md/exposure-neg-2.d.ts index ceec854625..e196f110b8 100644 --- a/types/react-icons/lib/md/exposure-neg-2.d.ts +++ b/types/react-icons/lib/md/exposure-neg-2.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdExposureNeg2 extends React.Component { } +declare class MdExposureNeg2 extends React.Component { } +export = MdExposureNeg2; diff --git a/types/react-icons/lib/md/exposure-plus-1.d.ts b/types/react-icons/lib/md/exposure-plus-1.d.ts index fbb81879c2..2a6be5aa46 100644 --- a/types/react-icons/lib/md/exposure-plus-1.d.ts +++ b/types/react-icons/lib/md/exposure-plus-1.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdExposurePlus1 extends React.Component { } +declare class MdExposurePlus1 extends React.Component { } +export = MdExposurePlus1; diff --git a/types/react-icons/lib/md/exposure-plus-2.d.ts b/types/react-icons/lib/md/exposure-plus-2.d.ts index d22a7d3123..699dc5c403 100644 --- a/types/react-icons/lib/md/exposure-plus-2.d.ts +++ b/types/react-icons/lib/md/exposure-plus-2.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdExposurePlus2 extends React.Component { } +declare class MdExposurePlus2 extends React.Component { } +export = MdExposurePlus2; diff --git a/types/react-icons/lib/md/exposure-zero.d.ts b/types/react-icons/lib/md/exposure-zero.d.ts index 27125daa24..a0309b8c9b 100644 --- a/types/react-icons/lib/md/exposure-zero.d.ts +++ b/types/react-icons/lib/md/exposure-zero.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdExposureZero extends React.Component { } +declare class MdExposureZero extends React.Component { } +export = MdExposureZero; diff --git a/types/react-icons/lib/md/exposure.d.ts b/types/react-icons/lib/md/exposure.d.ts index 1d04f364e0..308824d04c 100644 --- a/types/react-icons/lib/md/exposure.d.ts +++ b/types/react-icons/lib/md/exposure.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdExposure extends React.Component { } +declare class MdExposure extends React.Component { } +export = MdExposure; diff --git a/types/react-icons/lib/md/extension.d.ts b/types/react-icons/lib/md/extension.d.ts index bfb10535b0..b472fcea5a 100644 --- a/types/react-icons/lib/md/extension.d.ts +++ b/types/react-icons/lib/md/extension.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdExtension extends React.Component { } +declare class MdExtension extends React.Component { } +export = MdExtension; diff --git a/types/react-icons/lib/md/face.d.ts b/types/react-icons/lib/md/face.d.ts index e8042f0b48..bfecdf3a2d 100644 --- a/types/react-icons/lib/md/face.d.ts +++ b/types/react-icons/lib/md/face.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdFace extends React.Component { } +declare class MdFace extends React.Component { } +export = MdFace; diff --git a/types/react-icons/lib/md/fast-forward.d.ts b/types/react-icons/lib/md/fast-forward.d.ts index 3daeacb97a..e0364752a4 100644 --- a/types/react-icons/lib/md/fast-forward.d.ts +++ b/types/react-icons/lib/md/fast-forward.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdFastForward extends React.Component { } +declare class MdFastForward extends React.Component { } +export = MdFastForward; diff --git a/types/react-icons/lib/md/fast-rewind.d.ts b/types/react-icons/lib/md/fast-rewind.d.ts index 5b34d9c3a6..8151f3649f 100644 --- a/types/react-icons/lib/md/fast-rewind.d.ts +++ b/types/react-icons/lib/md/fast-rewind.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdFastRewind extends React.Component { } +declare class MdFastRewind extends React.Component { } +export = MdFastRewind; diff --git a/types/react-icons/lib/md/favorite-border.d.ts b/types/react-icons/lib/md/favorite-border.d.ts index cd66fdc7e2..d9a6771181 100644 --- a/types/react-icons/lib/md/favorite-border.d.ts +++ b/types/react-icons/lib/md/favorite-border.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdFavoriteBorder extends React.Component { } +declare class MdFavoriteBorder extends React.Component { } +export = MdFavoriteBorder; diff --git a/types/react-icons/lib/md/favorite-outline.d.ts b/types/react-icons/lib/md/favorite-outline.d.ts index 7b1df113ba..8eccdcbdf7 100644 --- a/types/react-icons/lib/md/favorite-outline.d.ts +++ b/types/react-icons/lib/md/favorite-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdFavoriteOutline extends React.Component { } +declare class MdFavoriteOutline extends React.Component { } +export = MdFavoriteOutline; diff --git a/types/react-icons/lib/md/favorite.d.ts b/types/react-icons/lib/md/favorite.d.ts index 84959194f9..3bd251bff4 100644 --- a/types/react-icons/lib/md/favorite.d.ts +++ b/types/react-icons/lib/md/favorite.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdFavorite extends React.Component { } +declare class MdFavorite extends React.Component { } +export = MdFavorite; diff --git a/types/react-icons/lib/md/featured-play-list.d.ts b/types/react-icons/lib/md/featured-play-list.d.ts index b8a4685778..29e8772a70 100644 --- a/types/react-icons/lib/md/featured-play-list.d.ts +++ b/types/react-icons/lib/md/featured-play-list.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdFeaturedPlayList extends React.Component { } +declare class MdFeaturedPlayList extends React.Component { } +export = MdFeaturedPlayList; diff --git a/types/react-icons/lib/md/featured-video.d.ts b/types/react-icons/lib/md/featured-video.d.ts index 67aa6eb9c5..17db25abb9 100644 --- a/types/react-icons/lib/md/featured-video.d.ts +++ b/types/react-icons/lib/md/featured-video.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdFeaturedVideo extends React.Component { } +declare class MdFeaturedVideo extends React.Component { } +export = MdFeaturedVideo; diff --git a/types/react-icons/lib/md/feedback.d.ts b/types/react-icons/lib/md/feedback.d.ts index b69aff1e22..cee4f3b289 100644 --- a/types/react-icons/lib/md/feedback.d.ts +++ b/types/react-icons/lib/md/feedback.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdFeedback extends React.Component { } +declare class MdFeedback extends React.Component { } +export = MdFeedback; diff --git a/types/react-icons/lib/md/fiber-dvr.d.ts b/types/react-icons/lib/md/fiber-dvr.d.ts index f8c841d7b0..f9a674481a 100644 --- a/types/react-icons/lib/md/fiber-dvr.d.ts +++ b/types/react-icons/lib/md/fiber-dvr.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdFiberDvr extends React.Component { } +declare class MdFiberDvr extends React.Component { } +export = MdFiberDvr; diff --git a/types/react-icons/lib/md/fiber-manual-record.d.ts b/types/react-icons/lib/md/fiber-manual-record.d.ts index 886e58432d..d89a416618 100644 --- a/types/react-icons/lib/md/fiber-manual-record.d.ts +++ b/types/react-icons/lib/md/fiber-manual-record.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdFiberManualRecord extends React.Component { } +declare class MdFiberManualRecord extends React.Component { } +export = MdFiberManualRecord; diff --git a/types/react-icons/lib/md/fiber-new.d.ts b/types/react-icons/lib/md/fiber-new.d.ts index 239b7541af..52ce6bee05 100644 --- a/types/react-icons/lib/md/fiber-new.d.ts +++ b/types/react-icons/lib/md/fiber-new.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdFiberNew extends React.Component { } +declare class MdFiberNew extends React.Component { } +export = MdFiberNew; diff --git a/types/react-icons/lib/md/fiber-pin.d.ts b/types/react-icons/lib/md/fiber-pin.d.ts index 327b456570..c5de78c3f6 100644 --- a/types/react-icons/lib/md/fiber-pin.d.ts +++ b/types/react-icons/lib/md/fiber-pin.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdFiberPin extends React.Component { } +declare class MdFiberPin extends React.Component { } +export = MdFiberPin; diff --git a/types/react-icons/lib/md/fiber-smart-record.d.ts b/types/react-icons/lib/md/fiber-smart-record.d.ts index 0054c9fff7..52ddb3eba4 100644 --- a/types/react-icons/lib/md/fiber-smart-record.d.ts +++ b/types/react-icons/lib/md/fiber-smart-record.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdFiberSmartRecord extends React.Component { } +declare class MdFiberSmartRecord extends React.Component { } +export = MdFiberSmartRecord; diff --git a/types/react-icons/lib/md/file-download.d.ts b/types/react-icons/lib/md/file-download.d.ts index 7874143a50..0b820a99c7 100644 --- a/types/react-icons/lib/md/file-download.d.ts +++ b/types/react-icons/lib/md/file-download.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdFileDownload extends React.Component { } +declare class MdFileDownload extends React.Component { } +export = MdFileDownload; diff --git a/types/react-icons/lib/md/file-upload.d.ts b/types/react-icons/lib/md/file-upload.d.ts index 96d2742e3c..ce06531303 100644 --- a/types/react-icons/lib/md/file-upload.d.ts +++ b/types/react-icons/lib/md/file-upload.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdFileUpload extends React.Component { } +declare class MdFileUpload extends React.Component { } +export = MdFileUpload; diff --git a/types/react-icons/lib/md/filter-1.d.ts b/types/react-icons/lib/md/filter-1.d.ts index 0eab79f7ff..bed4c717c7 100644 --- a/types/react-icons/lib/md/filter-1.d.ts +++ b/types/react-icons/lib/md/filter-1.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdFilter1 extends React.Component { } +declare class MdFilter1 extends React.Component { } +export = MdFilter1; diff --git a/types/react-icons/lib/md/filter-2.d.ts b/types/react-icons/lib/md/filter-2.d.ts index 7c2ee2aa23..bc9d9054c4 100644 --- a/types/react-icons/lib/md/filter-2.d.ts +++ b/types/react-icons/lib/md/filter-2.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdFilter2 extends React.Component { } +declare class MdFilter2 extends React.Component { } +export = MdFilter2; diff --git a/types/react-icons/lib/md/filter-3.d.ts b/types/react-icons/lib/md/filter-3.d.ts index 3378d361ba..5841f94ce8 100644 --- a/types/react-icons/lib/md/filter-3.d.ts +++ b/types/react-icons/lib/md/filter-3.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdFilter3 extends React.Component { } +declare class MdFilter3 extends React.Component { } +export = MdFilter3; diff --git a/types/react-icons/lib/md/filter-4.d.ts b/types/react-icons/lib/md/filter-4.d.ts index 9c781a3957..c0e7416e01 100644 --- a/types/react-icons/lib/md/filter-4.d.ts +++ b/types/react-icons/lib/md/filter-4.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdFilter4 extends React.Component { } +declare class MdFilter4 extends React.Component { } +export = MdFilter4; diff --git a/types/react-icons/lib/md/filter-5.d.ts b/types/react-icons/lib/md/filter-5.d.ts index 0231749f2e..2ff87b69ac 100644 --- a/types/react-icons/lib/md/filter-5.d.ts +++ b/types/react-icons/lib/md/filter-5.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdFilter5 extends React.Component { } +declare class MdFilter5 extends React.Component { } +export = MdFilter5; diff --git a/types/react-icons/lib/md/filter-6.d.ts b/types/react-icons/lib/md/filter-6.d.ts index 2aa32d48cd..8c2e132205 100644 --- a/types/react-icons/lib/md/filter-6.d.ts +++ b/types/react-icons/lib/md/filter-6.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdFilter6 extends React.Component { } +declare class MdFilter6 extends React.Component { } +export = MdFilter6; diff --git a/types/react-icons/lib/md/filter-7.d.ts b/types/react-icons/lib/md/filter-7.d.ts index 3a130313a7..1876e10141 100644 --- a/types/react-icons/lib/md/filter-7.d.ts +++ b/types/react-icons/lib/md/filter-7.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdFilter7 extends React.Component { } +declare class MdFilter7 extends React.Component { } +export = MdFilter7; diff --git a/types/react-icons/lib/md/filter-8.d.ts b/types/react-icons/lib/md/filter-8.d.ts index bd2690c793..3b8a1ef16b 100644 --- a/types/react-icons/lib/md/filter-8.d.ts +++ b/types/react-icons/lib/md/filter-8.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdFilter8 extends React.Component { } +declare class MdFilter8 extends React.Component { } +export = MdFilter8; diff --git a/types/react-icons/lib/md/filter-9-plus.d.ts b/types/react-icons/lib/md/filter-9-plus.d.ts index 6e11758f2e..cefab42b95 100644 --- a/types/react-icons/lib/md/filter-9-plus.d.ts +++ b/types/react-icons/lib/md/filter-9-plus.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdFilter9Plus extends React.Component { } +declare class MdFilter9Plus extends React.Component { } +export = MdFilter9Plus; diff --git a/types/react-icons/lib/md/filter-9.d.ts b/types/react-icons/lib/md/filter-9.d.ts index b4971c93f9..41f677c0a4 100644 --- a/types/react-icons/lib/md/filter-9.d.ts +++ b/types/react-icons/lib/md/filter-9.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdFilter9 extends React.Component { } +declare class MdFilter9 extends React.Component { } +export = MdFilter9; diff --git a/types/react-icons/lib/md/filter-b-and-w.d.ts b/types/react-icons/lib/md/filter-b-and-w.d.ts index 327d166bae..925b5ebe0b 100644 --- a/types/react-icons/lib/md/filter-b-and-w.d.ts +++ b/types/react-icons/lib/md/filter-b-and-w.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdFilterBAndW extends React.Component { } +declare class MdFilterBAndW extends React.Component { } +export = MdFilterBAndW; diff --git a/types/react-icons/lib/md/filter-center-focus.d.ts b/types/react-icons/lib/md/filter-center-focus.d.ts index 6001fc45a8..72de58ce3f 100644 --- a/types/react-icons/lib/md/filter-center-focus.d.ts +++ b/types/react-icons/lib/md/filter-center-focus.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdFilterCenterFocus extends React.Component { } +declare class MdFilterCenterFocus extends React.Component { } +export = MdFilterCenterFocus; diff --git a/types/react-icons/lib/md/filter-drama.d.ts b/types/react-icons/lib/md/filter-drama.d.ts index 982c0518d9..76c44d8431 100644 --- a/types/react-icons/lib/md/filter-drama.d.ts +++ b/types/react-icons/lib/md/filter-drama.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdFilterDrama extends React.Component { } +declare class MdFilterDrama extends React.Component { } +export = MdFilterDrama; diff --git a/types/react-icons/lib/md/filter-frames.d.ts b/types/react-icons/lib/md/filter-frames.d.ts index daef1b137f..7484e92211 100644 --- a/types/react-icons/lib/md/filter-frames.d.ts +++ b/types/react-icons/lib/md/filter-frames.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdFilterFrames extends React.Component { } +declare class MdFilterFrames extends React.Component { } +export = MdFilterFrames; diff --git a/types/react-icons/lib/md/filter-hdr.d.ts b/types/react-icons/lib/md/filter-hdr.d.ts index 997614833c..c503b594d5 100644 --- a/types/react-icons/lib/md/filter-hdr.d.ts +++ b/types/react-icons/lib/md/filter-hdr.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdFilterHdr extends React.Component { } +declare class MdFilterHdr extends React.Component { } +export = MdFilterHdr; diff --git a/types/react-icons/lib/md/filter-list.d.ts b/types/react-icons/lib/md/filter-list.d.ts index 546734dff6..bf51b71bb3 100644 --- a/types/react-icons/lib/md/filter-list.d.ts +++ b/types/react-icons/lib/md/filter-list.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdFilterList extends React.Component { } +declare class MdFilterList extends React.Component { } +export = MdFilterList; diff --git a/types/react-icons/lib/md/filter-none.d.ts b/types/react-icons/lib/md/filter-none.d.ts index 2e160324d8..53592bc2ba 100644 --- a/types/react-icons/lib/md/filter-none.d.ts +++ b/types/react-icons/lib/md/filter-none.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdFilterNone extends React.Component { } +declare class MdFilterNone extends React.Component { } +export = MdFilterNone; diff --git a/types/react-icons/lib/md/filter-tilt-shift.d.ts b/types/react-icons/lib/md/filter-tilt-shift.d.ts index 0e68c95a0a..05bd62ae1d 100644 --- a/types/react-icons/lib/md/filter-tilt-shift.d.ts +++ b/types/react-icons/lib/md/filter-tilt-shift.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdFilterTiltShift extends React.Component { } +declare class MdFilterTiltShift extends React.Component { } +export = MdFilterTiltShift; diff --git a/types/react-icons/lib/md/filter-vintage.d.ts b/types/react-icons/lib/md/filter-vintage.d.ts index af1243b86d..bbec939c8d 100644 --- a/types/react-icons/lib/md/filter-vintage.d.ts +++ b/types/react-icons/lib/md/filter-vintage.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdFilterVintage extends React.Component { } +declare class MdFilterVintage extends React.Component { } +export = MdFilterVintage; diff --git a/types/react-icons/lib/md/filter.d.ts b/types/react-icons/lib/md/filter.d.ts index 30fd120a11..b00d2e5cfc 100644 --- a/types/react-icons/lib/md/filter.d.ts +++ b/types/react-icons/lib/md/filter.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdFilter extends React.Component { } +declare class MdFilter extends React.Component { } +export = MdFilter; diff --git a/types/react-icons/lib/md/find-in-page.d.ts b/types/react-icons/lib/md/find-in-page.d.ts index 3dbb98ad7d..379e65cfcb 100644 --- a/types/react-icons/lib/md/find-in-page.d.ts +++ b/types/react-icons/lib/md/find-in-page.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdFindInPage extends React.Component { } +declare class MdFindInPage extends React.Component { } +export = MdFindInPage; diff --git a/types/react-icons/lib/md/find-replace.d.ts b/types/react-icons/lib/md/find-replace.d.ts index 0a066acf85..f709db2fbf 100644 --- a/types/react-icons/lib/md/find-replace.d.ts +++ b/types/react-icons/lib/md/find-replace.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdFindReplace extends React.Component { } +declare class MdFindReplace extends React.Component { } +export = MdFindReplace; diff --git a/types/react-icons/lib/md/fingerprint.d.ts b/types/react-icons/lib/md/fingerprint.d.ts index 1db6d8d427..ef44e19c98 100644 --- a/types/react-icons/lib/md/fingerprint.d.ts +++ b/types/react-icons/lib/md/fingerprint.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdFingerprint extends React.Component { } +declare class MdFingerprint extends React.Component { } +export = MdFingerprint; diff --git a/types/react-icons/lib/md/first-page.d.ts b/types/react-icons/lib/md/first-page.d.ts index 95576cd1a2..cd1d3680e0 100644 --- a/types/react-icons/lib/md/first-page.d.ts +++ b/types/react-icons/lib/md/first-page.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdFirstPage extends React.Component { } +declare class MdFirstPage extends React.Component { } +export = MdFirstPage; diff --git a/types/react-icons/lib/md/fitness-center.d.ts b/types/react-icons/lib/md/fitness-center.d.ts index 5874b3c1b7..bfcd0ed64c 100644 --- a/types/react-icons/lib/md/fitness-center.d.ts +++ b/types/react-icons/lib/md/fitness-center.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdFitnessCenter extends React.Component { } +declare class MdFitnessCenter extends React.Component { } +export = MdFitnessCenter; diff --git a/types/react-icons/lib/md/flag.d.ts b/types/react-icons/lib/md/flag.d.ts index 5767d894db..35aec0014c 100644 --- a/types/react-icons/lib/md/flag.d.ts +++ b/types/react-icons/lib/md/flag.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdFlag extends React.Component { } +declare class MdFlag extends React.Component { } +export = MdFlag; diff --git a/types/react-icons/lib/md/flare.d.ts b/types/react-icons/lib/md/flare.d.ts index 68715b9a9d..89a3e86038 100644 --- a/types/react-icons/lib/md/flare.d.ts +++ b/types/react-icons/lib/md/flare.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdFlare extends React.Component { } +declare class MdFlare extends React.Component { } +export = MdFlare; diff --git a/types/react-icons/lib/md/flash-auto.d.ts b/types/react-icons/lib/md/flash-auto.d.ts index e119dc247b..3fdf942da2 100644 --- a/types/react-icons/lib/md/flash-auto.d.ts +++ b/types/react-icons/lib/md/flash-auto.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdFlashAuto extends React.Component { } +declare class MdFlashAuto extends React.Component { } +export = MdFlashAuto; diff --git a/types/react-icons/lib/md/flash-off.d.ts b/types/react-icons/lib/md/flash-off.d.ts index fceeadc93a..2338eeaae1 100644 --- a/types/react-icons/lib/md/flash-off.d.ts +++ b/types/react-icons/lib/md/flash-off.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdFlashOff extends React.Component { } +declare class MdFlashOff extends React.Component { } +export = MdFlashOff; diff --git a/types/react-icons/lib/md/flash-on.d.ts b/types/react-icons/lib/md/flash-on.d.ts index 8fcec401bc..209f551a6c 100644 --- a/types/react-icons/lib/md/flash-on.d.ts +++ b/types/react-icons/lib/md/flash-on.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdFlashOn extends React.Component { } +declare class MdFlashOn extends React.Component { } +export = MdFlashOn; diff --git a/types/react-icons/lib/md/flight-land.d.ts b/types/react-icons/lib/md/flight-land.d.ts index f0571c691c..546ab05d11 100644 --- a/types/react-icons/lib/md/flight-land.d.ts +++ b/types/react-icons/lib/md/flight-land.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdFlightLand extends React.Component { } +declare class MdFlightLand extends React.Component { } +export = MdFlightLand; diff --git a/types/react-icons/lib/md/flight-takeoff.d.ts b/types/react-icons/lib/md/flight-takeoff.d.ts index c22f43d504..50f669a9ec 100644 --- a/types/react-icons/lib/md/flight-takeoff.d.ts +++ b/types/react-icons/lib/md/flight-takeoff.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdFlightTakeoff extends React.Component { } +declare class MdFlightTakeoff extends React.Component { } +export = MdFlightTakeoff; diff --git a/types/react-icons/lib/md/flight.d.ts b/types/react-icons/lib/md/flight.d.ts index da17781711..0850e1e1b3 100644 --- a/types/react-icons/lib/md/flight.d.ts +++ b/types/react-icons/lib/md/flight.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdFlight extends React.Component { } +declare class MdFlight extends React.Component { } +export = MdFlight; diff --git a/types/react-icons/lib/md/flip-to-back.d.ts b/types/react-icons/lib/md/flip-to-back.d.ts index a5d426d353..77c6c084e6 100644 --- a/types/react-icons/lib/md/flip-to-back.d.ts +++ b/types/react-icons/lib/md/flip-to-back.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdFlipToBack extends React.Component { } +declare class MdFlipToBack extends React.Component { } +export = MdFlipToBack; diff --git a/types/react-icons/lib/md/flip-to-front.d.ts b/types/react-icons/lib/md/flip-to-front.d.ts index 480c1d3466..4f553e292e 100644 --- a/types/react-icons/lib/md/flip-to-front.d.ts +++ b/types/react-icons/lib/md/flip-to-front.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdFlipToFront extends React.Component { } +declare class MdFlipToFront extends React.Component { } +export = MdFlipToFront; diff --git a/types/react-icons/lib/md/flip.d.ts b/types/react-icons/lib/md/flip.d.ts index 990872e643..a2919757e4 100644 --- a/types/react-icons/lib/md/flip.d.ts +++ b/types/react-icons/lib/md/flip.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdFlip extends React.Component { } +declare class MdFlip extends React.Component { } +export = MdFlip; diff --git a/types/react-icons/lib/md/folder-open.d.ts b/types/react-icons/lib/md/folder-open.d.ts index 813a57abba..7bdee8f257 100644 --- a/types/react-icons/lib/md/folder-open.d.ts +++ b/types/react-icons/lib/md/folder-open.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdFolderOpen extends React.Component { } +declare class MdFolderOpen extends React.Component { } +export = MdFolderOpen; diff --git a/types/react-icons/lib/md/folder-shared.d.ts b/types/react-icons/lib/md/folder-shared.d.ts index a1734b4440..26fe5047a6 100644 --- a/types/react-icons/lib/md/folder-shared.d.ts +++ b/types/react-icons/lib/md/folder-shared.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdFolderShared extends React.Component { } +declare class MdFolderShared extends React.Component { } +export = MdFolderShared; diff --git a/types/react-icons/lib/md/folder-special.d.ts b/types/react-icons/lib/md/folder-special.d.ts index ee62be51ce..6315da8a67 100644 --- a/types/react-icons/lib/md/folder-special.d.ts +++ b/types/react-icons/lib/md/folder-special.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdFolderSpecial extends React.Component { } +declare class MdFolderSpecial extends React.Component { } +export = MdFolderSpecial; diff --git a/types/react-icons/lib/md/folder.d.ts b/types/react-icons/lib/md/folder.d.ts index efde8117c4..274d156256 100644 --- a/types/react-icons/lib/md/folder.d.ts +++ b/types/react-icons/lib/md/folder.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdFolder extends React.Component { } +declare class MdFolder extends React.Component { } +export = MdFolder; diff --git a/types/react-icons/lib/md/font-download.d.ts b/types/react-icons/lib/md/font-download.d.ts index 61c3368b45..baaadab4bf 100644 --- a/types/react-icons/lib/md/font-download.d.ts +++ b/types/react-icons/lib/md/font-download.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdFontDownload extends React.Component { } +declare class MdFontDownload extends React.Component { } +export = MdFontDownload; diff --git a/types/react-icons/lib/md/format-align-center.d.ts b/types/react-icons/lib/md/format-align-center.d.ts index e601b4115d..6678781fab 100644 --- a/types/react-icons/lib/md/format-align-center.d.ts +++ b/types/react-icons/lib/md/format-align-center.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdFormatAlignCenter extends React.Component { } +declare class MdFormatAlignCenter extends React.Component { } +export = MdFormatAlignCenter; diff --git a/types/react-icons/lib/md/format-align-justify.d.ts b/types/react-icons/lib/md/format-align-justify.d.ts index a35ccd43cf..c169d7d4cf 100644 --- a/types/react-icons/lib/md/format-align-justify.d.ts +++ b/types/react-icons/lib/md/format-align-justify.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdFormatAlignJustify extends React.Component { } +declare class MdFormatAlignJustify extends React.Component { } +export = MdFormatAlignJustify; diff --git a/types/react-icons/lib/md/format-align-left.d.ts b/types/react-icons/lib/md/format-align-left.d.ts index 45443b3013..11fb721bb6 100644 --- a/types/react-icons/lib/md/format-align-left.d.ts +++ b/types/react-icons/lib/md/format-align-left.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdFormatAlignLeft extends React.Component { } +declare class MdFormatAlignLeft extends React.Component { } +export = MdFormatAlignLeft; diff --git a/types/react-icons/lib/md/format-align-right.d.ts b/types/react-icons/lib/md/format-align-right.d.ts index 4c965ed516..ef9444429f 100644 --- a/types/react-icons/lib/md/format-align-right.d.ts +++ b/types/react-icons/lib/md/format-align-right.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdFormatAlignRight extends React.Component { } +declare class MdFormatAlignRight extends React.Component { } +export = MdFormatAlignRight; diff --git a/types/react-icons/lib/md/format-bold.d.ts b/types/react-icons/lib/md/format-bold.d.ts index 45c6764995..ebd0027ba8 100644 --- a/types/react-icons/lib/md/format-bold.d.ts +++ b/types/react-icons/lib/md/format-bold.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdFormatBold extends React.Component { } +declare class MdFormatBold extends React.Component { } +export = MdFormatBold; diff --git a/types/react-icons/lib/md/format-clear.d.ts b/types/react-icons/lib/md/format-clear.d.ts index b60b1f0d1c..d8350f1916 100644 --- a/types/react-icons/lib/md/format-clear.d.ts +++ b/types/react-icons/lib/md/format-clear.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdFormatClear extends React.Component { } +declare class MdFormatClear extends React.Component { } +export = MdFormatClear; diff --git a/types/react-icons/lib/md/format-color-fill.d.ts b/types/react-icons/lib/md/format-color-fill.d.ts index c3a17b53ff..dac025da7d 100644 --- a/types/react-icons/lib/md/format-color-fill.d.ts +++ b/types/react-icons/lib/md/format-color-fill.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdFormatColorFill extends React.Component { } +declare class MdFormatColorFill extends React.Component { } +export = MdFormatColorFill; diff --git a/types/react-icons/lib/md/format-color-reset.d.ts b/types/react-icons/lib/md/format-color-reset.d.ts index 399c41d77e..9de4f919d4 100644 --- a/types/react-icons/lib/md/format-color-reset.d.ts +++ b/types/react-icons/lib/md/format-color-reset.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdFormatColorReset extends React.Component { } +declare class MdFormatColorReset extends React.Component { } +export = MdFormatColorReset; diff --git a/types/react-icons/lib/md/format-color-text.d.ts b/types/react-icons/lib/md/format-color-text.d.ts index 1a332ab22a..54d5d3c4fb 100644 --- a/types/react-icons/lib/md/format-color-text.d.ts +++ b/types/react-icons/lib/md/format-color-text.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdFormatColorText extends React.Component { } +declare class MdFormatColorText extends React.Component { } +export = MdFormatColorText; diff --git a/types/react-icons/lib/md/format-indent-decrease.d.ts b/types/react-icons/lib/md/format-indent-decrease.d.ts index a89c15275d..4eaf1d9537 100644 --- a/types/react-icons/lib/md/format-indent-decrease.d.ts +++ b/types/react-icons/lib/md/format-indent-decrease.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdFormatIndentDecrease extends React.Component { } +declare class MdFormatIndentDecrease extends React.Component { } +export = MdFormatIndentDecrease; diff --git a/types/react-icons/lib/md/format-indent-increase.d.ts b/types/react-icons/lib/md/format-indent-increase.d.ts index 8b2d098b69..f5e0f6008b 100644 --- a/types/react-icons/lib/md/format-indent-increase.d.ts +++ b/types/react-icons/lib/md/format-indent-increase.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdFormatIndentIncrease extends React.Component { } +declare class MdFormatIndentIncrease extends React.Component { } +export = MdFormatIndentIncrease; diff --git a/types/react-icons/lib/md/format-italic.d.ts b/types/react-icons/lib/md/format-italic.d.ts index bbc7df9a3f..c512f7deec 100644 --- a/types/react-icons/lib/md/format-italic.d.ts +++ b/types/react-icons/lib/md/format-italic.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdFormatItalic extends React.Component { } +declare class MdFormatItalic extends React.Component { } +export = MdFormatItalic; diff --git a/types/react-icons/lib/md/format-line-spacing.d.ts b/types/react-icons/lib/md/format-line-spacing.d.ts index 3731147921..8f8317af6a 100644 --- a/types/react-icons/lib/md/format-line-spacing.d.ts +++ b/types/react-icons/lib/md/format-line-spacing.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdFormatLineSpacing extends React.Component { } +declare class MdFormatLineSpacing extends React.Component { } +export = MdFormatLineSpacing; diff --git a/types/react-icons/lib/md/format-list-bulleted.d.ts b/types/react-icons/lib/md/format-list-bulleted.d.ts index 6813d2e4a4..f658fcb4d3 100644 --- a/types/react-icons/lib/md/format-list-bulleted.d.ts +++ b/types/react-icons/lib/md/format-list-bulleted.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdFormatListBulleted extends React.Component { } +declare class MdFormatListBulleted extends React.Component { } +export = MdFormatListBulleted; diff --git a/types/react-icons/lib/md/format-list-numbered.d.ts b/types/react-icons/lib/md/format-list-numbered.d.ts index 8c241c413f..3117ab5d31 100644 --- a/types/react-icons/lib/md/format-list-numbered.d.ts +++ b/types/react-icons/lib/md/format-list-numbered.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdFormatListNumbered extends React.Component { } +declare class MdFormatListNumbered extends React.Component { } +export = MdFormatListNumbered; diff --git a/types/react-icons/lib/md/format-paint.d.ts b/types/react-icons/lib/md/format-paint.d.ts index ebbc520c32..19111de135 100644 --- a/types/react-icons/lib/md/format-paint.d.ts +++ b/types/react-icons/lib/md/format-paint.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdFormatPaint extends React.Component { } +declare class MdFormatPaint extends React.Component { } +export = MdFormatPaint; diff --git a/types/react-icons/lib/md/format-quote.d.ts b/types/react-icons/lib/md/format-quote.d.ts index bd1037ab81..921ac98059 100644 --- a/types/react-icons/lib/md/format-quote.d.ts +++ b/types/react-icons/lib/md/format-quote.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdFormatQuote extends React.Component { } +declare class MdFormatQuote extends React.Component { } +export = MdFormatQuote; diff --git a/types/react-icons/lib/md/format-shapes.d.ts b/types/react-icons/lib/md/format-shapes.d.ts index c40f7411dd..6b60899f89 100644 --- a/types/react-icons/lib/md/format-shapes.d.ts +++ b/types/react-icons/lib/md/format-shapes.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdFormatShapes extends React.Component { } +declare class MdFormatShapes extends React.Component { } +export = MdFormatShapes; diff --git a/types/react-icons/lib/md/format-size.d.ts b/types/react-icons/lib/md/format-size.d.ts index 2a9e345a3e..05c91f8cde 100644 --- a/types/react-icons/lib/md/format-size.d.ts +++ b/types/react-icons/lib/md/format-size.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdFormatSize extends React.Component { } +declare class MdFormatSize extends React.Component { } +export = MdFormatSize; diff --git a/types/react-icons/lib/md/format-strikethrough.d.ts b/types/react-icons/lib/md/format-strikethrough.d.ts index fe36f12771..6253769c69 100644 --- a/types/react-icons/lib/md/format-strikethrough.d.ts +++ b/types/react-icons/lib/md/format-strikethrough.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdFormatStrikethrough extends React.Component { } +declare class MdFormatStrikethrough extends React.Component { } +export = MdFormatStrikethrough; diff --git a/types/react-icons/lib/md/format-textdirection-l-to-r.d.ts b/types/react-icons/lib/md/format-textdirection-l-to-r.d.ts index 71b083148c..6f33ceb20b 100644 --- a/types/react-icons/lib/md/format-textdirection-l-to-r.d.ts +++ b/types/react-icons/lib/md/format-textdirection-l-to-r.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdFormatTextdirectionLToR extends React.Component { } +declare class MdFormatTextdirectionLToR extends React.Component { } +export = MdFormatTextdirectionLToR; diff --git a/types/react-icons/lib/md/format-textdirection-r-to-l.d.ts b/types/react-icons/lib/md/format-textdirection-r-to-l.d.ts index 58086109e0..2c8c4372f1 100644 --- a/types/react-icons/lib/md/format-textdirection-r-to-l.d.ts +++ b/types/react-icons/lib/md/format-textdirection-r-to-l.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdFormatTextdirectionRToL extends React.Component { } +declare class MdFormatTextdirectionRToL extends React.Component { } +export = MdFormatTextdirectionRToL; diff --git a/types/react-icons/lib/md/format-underlined.d.ts b/types/react-icons/lib/md/format-underlined.d.ts index 126df5e540..c721474493 100644 --- a/types/react-icons/lib/md/format-underlined.d.ts +++ b/types/react-icons/lib/md/format-underlined.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdFormatUnderlined extends React.Component { } +declare class MdFormatUnderlined extends React.Component { } +export = MdFormatUnderlined; diff --git a/types/react-icons/lib/md/forum.d.ts b/types/react-icons/lib/md/forum.d.ts index b7bdc2c096..16570dcd85 100644 --- a/types/react-icons/lib/md/forum.d.ts +++ b/types/react-icons/lib/md/forum.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdForum extends React.Component { } +declare class MdForum extends React.Component { } +export = MdForum; diff --git a/types/react-icons/lib/md/forward-10.d.ts b/types/react-icons/lib/md/forward-10.d.ts index 295d4e89f1..97dba92f08 100644 --- a/types/react-icons/lib/md/forward-10.d.ts +++ b/types/react-icons/lib/md/forward-10.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdForward10 extends React.Component { } +declare class MdForward10 extends React.Component { } +export = MdForward10; diff --git a/types/react-icons/lib/md/forward-30.d.ts b/types/react-icons/lib/md/forward-30.d.ts index 060517c358..b23eddab5e 100644 --- a/types/react-icons/lib/md/forward-30.d.ts +++ b/types/react-icons/lib/md/forward-30.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdForward30 extends React.Component { } +declare class MdForward30 extends React.Component { } +export = MdForward30; diff --git a/types/react-icons/lib/md/forward-5.d.ts b/types/react-icons/lib/md/forward-5.d.ts index bab1bcea70..79b4fbd1a3 100644 --- a/types/react-icons/lib/md/forward-5.d.ts +++ b/types/react-icons/lib/md/forward-5.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdForward5 extends React.Component { } +declare class MdForward5 extends React.Component { } +export = MdForward5; diff --git a/types/react-icons/lib/md/forward.d.ts b/types/react-icons/lib/md/forward.d.ts index 5a3c89125d..caa23aeb8c 100644 --- a/types/react-icons/lib/md/forward.d.ts +++ b/types/react-icons/lib/md/forward.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdForward extends React.Component { } +declare class MdForward extends React.Component { } +export = MdForward; diff --git a/types/react-icons/lib/md/free-breakfast.d.ts b/types/react-icons/lib/md/free-breakfast.d.ts index 362b7036e4..ee43389bf5 100644 --- a/types/react-icons/lib/md/free-breakfast.d.ts +++ b/types/react-icons/lib/md/free-breakfast.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdFreeBreakfast extends React.Component { } +declare class MdFreeBreakfast extends React.Component { } +export = MdFreeBreakfast; diff --git a/types/react-icons/lib/md/fullscreen-exit.d.ts b/types/react-icons/lib/md/fullscreen-exit.d.ts index 0a1e720dc6..92bb42ec08 100644 --- a/types/react-icons/lib/md/fullscreen-exit.d.ts +++ b/types/react-icons/lib/md/fullscreen-exit.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdFullscreenExit extends React.Component { } +declare class MdFullscreenExit extends React.Component { } +export = MdFullscreenExit; diff --git a/types/react-icons/lib/md/fullscreen.d.ts b/types/react-icons/lib/md/fullscreen.d.ts index a31a4e460b..cf8c2bb4d3 100644 --- a/types/react-icons/lib/md/fullscreen.d.ts +++ b/types/react-icons/lib/md/fullscreen.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdFullscreen extends React.Component { } +declare class MdFullscreen extends React.Component { } +export = MdFullscreen; diff --git a/types/react-icons/lib/md/functions.d.ts b/types/react-icons/lib/md/functions.d.ts index c6b5e4e36f..1c966bb2c8 100644 --- a/types/react-icons/lib/md/functions.d.ts +++ b/types/react-icons/lib/md/functions.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdFunctions extends React.Component { } +declare class MdFunctions extends React.Component { } +export = MdFunctions; diff --git a/types/react-icons/lib/md/g-translate.d.ts b/types/react-icons/lib/md/g-translate.d.ts index 46b09234a0..f64d1592ba 100644 --- a/types/react-icons/lib/md/g-translate.d.ts +++ b/types/react-icons/lib/md/g-translate.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdGTranslate extends React.Component { } +declare class MdGTranslate extends React.Component { } +export = MdGTranslate; diff --git a/types/react-icons/lib/md/gamepad.d.ts b/types/react-icons/lib/md/gamepad.d.ts index 8596cbd26d..f568ac2428 100644 --- a/types/react-icons/lib/md/gamepad.d.ts +++ b/types/react-icons/lib/md/gamepad.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdGamepad extends React.Component { } +declare class MdGamepad extends React.Component { } +export = MdGamepad; diff --git a/types/react-icons/lib/md/games.d.ts b/types/react-icons/lib/md/games.d.ts index 3a64f429b9..207af92742 100644 --- a/types/react-icons/lib/md/games.d.ts +++ b/types/react-icons/lib/md/games.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdGames extends React.Component { } +declare class MdGames extends React.Component { } +export = MdGames; diff --git a/types/react-icons/lib/md/gavel.d.ts b/types/react-icons/lib/md/gavel.d.ts index 55fd1390e9..fe9199cd4c 100644 --- a/types/react-icons/lib/md/gavel.d.ts +++ b/types/react-icons/lib/md/gavel.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdGavel extends React.Component { } +declare class MdGavel extends React.Component { } +export = MdGavel; diff --git a/types/react-icons/lib/md/gesture.d.ts b/types/react-icons/lib/md/gesture.d.ts index a382f009b4..9457643edc 100644 --- a/types/react-icons/lib/md/gesture.d.ts +++ b/types/react-icons/lib/md/gesture.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdGesture extends React.Component { } +declare class MdGesture extends React.Component { } +export = MdGesture; diff --git a/types/react-icons/lib/md/get-app.d.ts b/types/react-icons/lib/md/get-app.d.ts index 9fe4a2a003..7695a14938 100644 --- a/types/react-icons/lib/md/get-app.d.ts +++ b/types/react-icons/lib/md/get-app.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdGetApp extends React.Component { } +declare class MdGetApp extends React.Component { } +export = MdGetApp; diff --git a/types/react-icons/lib/md/gif.d.ts b/types/react-icons/lib/md/gif.d.ts index 60d7666674..3c5642675a 100644 --- a/types/react-icons/lib/md/gif.d.ts +++ b/types/react-icons/lib/md/gif.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdGif extends React.Component { } +declare class MdGif extends React.Component { } +export = MdGif; diff --git a/types/react-icons/lib/md/goat.d.ts b/types/react-icons/lib/md/goat.d.ts index 43610ba2e6..bc65467fa7 100644 --- a/types/react-icons/lib/md/goat.d.ts +++ b/types/react-icons/lib/md/goat.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdGoat extends React.Component { } +declare class MdGoat extends React.Component { } +export = MdGoat; diff --git a/types/react-icons/lib/md/golf-course.d.ts b/types/react-icons/lib/md/golf-course.d.ts index 301ee1b707..ae70d0da1f 100644 --- a/types/react-icons/lib/md/golf-course.d.ts +++ b/types/react-icons/lib/md/golf-course.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdGolfCourse extends React.Component { } +declare class MdGolfCourse extends React.Component { } +export = MdGolfCourse; diff --git a/types/react-icons/lib/md/gps-fixed.d.ts b/types/react-icons/lib/md/gps-fixed.d.ts index 12443403df..bb5e80d727 100644 --- a/types/react-icons/lib/md/gps-fixed.d.ts +++ b/types/react-icons/lib/md/gps-fixed.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdGpsFixed extends React.Component { } +declare class MdGpsFixed extends React.Component { } +export = MdGpsFixed; diff --git a/types/react-icons/lib/md/gps-not-fixed.d.ts b/types/react-icons/lib/md/gps-not-fixed.d.ts index 8af1c95e23..2818183742 100644 --- a/types/react-icons/lib/md/gps-not-fixed.d.ts +++ b/types/react-icons/lib/md/gps-not-fixed.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdGpsNotFixed extends React.Component { } +declare class MdGpsNotFixed extends React.Component { } +export = MdGpsNotFixed; diff --git a/types/react-icons/lib/md/gps-off.d.ts b/types/react-icons/lib/md/gps-off.d.ts index c02322b7a4..b6ed83e20a 100644 --- a/types/react-icons/lib/md/gps-off.d.ts +++ b/types/react-icons/lib/md/gps-off.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdGpsOff extends React.Component { } +declare class MdGpsOff extends React.Component { } +export = MdGpsOff; diff --git a/types/react-icons/lib/md/grade.d.ts b/types/react-icons/lib/md/grade.d.ts index cebbc96aa6..6a15e0b7b3 100644 --- a/types/react-icons/lib/md/grade.d.ts +++ b/types/react-icons/lib/md/grade.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdGrade extends React.Component { } +declare class MdGrade extends React.Component { } +export = MdGrade; diff --git a/types/react-icons/lib/md/gradient.d.ts b/types/react-icons/lib/md/gradient.d.ts index 32e62169a4..b83474defd 100644 --- a/types/react-icons/lib/md/gradient.d.ts +++ b/types/react-icons/lib/md/gradient.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdGradient extends React.Component { } +declare class MdGradient extends React.Component { } +export = MdGradient; diff --git a/types/react-icons/lib/md/grain.d.ts b/types/react-icons/lib/md/grain.d.ts index 79a8b9a14d..77edc78659 100644 --- a/types/react-icons/lib/md/grain.d.ts +++ b/types/react-icons/lib/md/grain.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdGrain extends React.Component { } +declare class MdGrain extends React.Component { } +export = MdGrain; diff --git a/types/react-icons/lib/md/graphic-eq.d.ts b/types/react-icons/lib/md/graphic-eq.d.ts index 7f59fa3728..29d4259b98 100644 --- a/types/react-icons/lib/md/graphic-eq.d.ts +++ b/types/react-icons/lib/md/graphic-eq.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdGraphicEq extends React.Component { } +declare class MdGraphicEq extends React.Component { } +export = MdGraphicEq; diff --git a/types/react-icons/lib/md/grid-off.d.ts b/types/react-icons/lib/md/grid-off.d.ts index 8b5cf60336..9e9a2ff95e 100644 --- a/types/react-icons/lib/md/grid-off.d.ts +++ b/types/react-icons/lib/md/grid-off.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdGridOff extends React.Component { } +declare class MdGridOff extends React.Component { } +export = MdGridOff; diff --git a/types/react-icons/lib/md/grid-on.d.ts b/types/react-icons/lib/md/grid-on.d.ts index 4978f9912e..a96a53f50d 100644 --- a/types/react-icons/lib/md/grid-on.d.ts +++ b/types/react-icons/lib/md/grid-on.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdGridOn extends React.Component { } +declare class MdGridOn extends React.Component { } +export = MdGridOn; diff --git a/types/react-icons/lib/md/group-add.d.ts b/types/react-icons/lib/md/group-add.d.ts index bacc3ed6cf..f463e09def 100644 --- a/types/react-icons/lib/md/group-add.d.ts +++ b/types/react-icons/lib/md/group-add.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdGroupAdd extends React.Component { } +declare class MdGroupAdd extends React.Component { } +export = MdGroupAdd; diff --git a/types/react-icons/lib/md/group-work.d.ts b/types/react-icons/lib/md/group-work.d.ts index 997b1738f2..13b822ce96 100644 --- a/types/react-icons/lib/md/group-work.d.ts +++ b/types/react-icons/lib/md/group-work.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdGroupWork extends React.Component { } +declare class MdGroupWork extends React.Component { } +export = MdGroupWork; diff --git a/types/react-icons/lib/md/group.d.ts b/types/react-icons/lib/md/group.d.ts index af48b3dd81..b382d9d7f1 100644 --- a/types/react-icons/lib/md/group.d.ts +++ b/types/react-icons/lib/md/group.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdGroup extends React.Component { } +declare class MdGroup extends React.Component { } +export = MdGroup; diff --git a/types/react-icons/lib/md/hd.d.ts b/types/react-icons/lib/md/hd.d.ts index 1698da3a4d..bcc5b9fa09 100644 --- a/types/react-icons/lib/md/hd.d.ts +++ b/types/react-icons/lib/md/hd.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdHd extends React.Component { } +declare class MdHd extends React.Component { } +export = MdHd; diff --git a/types/react-icons/lib/md/hdr-off.d.ts b/types/react-icons/lib/md/hdr-off.d.ts index 4a343d8a9b..f9376a4371 100644 --- a/types/react-icons/lib/md/hdr-off.d.ts +++ b/types/react-icons/lib/md/hdr-off.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdHdrOff extends React.Component { } +declare class MdHdrOff extends React.Component { } +export = MdHdrOff; diff --git a/types/react-icons/lib/md/hdr-on.d.ts b/types/react-icons/lib/md/hdr-on.d.ts index 129aa05032..20004d19ee 100644 --- a/types/react-icons/lib/md/hdr-on.d.ts +++ b/types/react-icons/lib/md/hdr-on.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdHdrOn extends React.Component { } +declare class MdHdrOn extends React.Component { } +export = MdHdrOn; diff --git a/types/react-icons/lib/md/hdr-strong.d.ts b/types/react-icons/lib/md/hdr-strong.d.ts index f1eb6a8c80..a57a064665 100644 --- a/types/react-icons/lib/md/hdr-strong.d.ts +++ b/types/react-icons/lib/md/hdr-strong.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdHdrStrong extends React.Component { } +declare class MdHdrStrong extends React.Component { } +export = MdHdrStrong; diff --git a/types/react-icons/lib/md/hdr-weak.d.ts b/types/react-icons/lib/md/hdr-weak.d.ts index 43be31c24d..82694c3075 100644 --- a/types/react-icons/lib/md/hdr-weak.d.ts +++ b/types/react-icons/lib/md/hdr-weak.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdHdrWeak extends React.Component { } +declare class MdHdrWeak extends React.Component { } +export = MdHdrWeak; diff --git a/types/react-icons/lib/md/headset-mic.d.ts b/types/react-icons/lib/md/headset-mic.d.ts index 83c8c0547e..e168e766a8 100644 --- a/types/react-icons/lib/md/headset-mic.d.ts +++ b/types/react-icons/lib/md/headset-mic.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdHeadsetMic extends React.Component { } +declare class MdHeadsetMic extends React.Component { } +export = MdHeadsetMic; diff --git a/types/react-icons/lib/md/headset.d.ts b/types/react-icons/lib/md/headset.d.ts index 988ed4b38d..a0342ce8b0 100644 --- a/types/react-icons/lib/md/headset.d.ts +++ b/types/react-icons/lib/md/headset.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdHeadset extends React.Component { } +declare class MdHeadset extends React.Component { } +export = MdHeadset; diff --git a/types/react-icons/lib/md/healing.d.ts b/types/react-icons/lib/md/healing.d.ts index fc914063c2..a8c5255d6b 100644 --- a/types/react-icons/lib/md/healing.d.ts +++ b/types/react-icons/lib/md/healing.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdHealing extends React.Component { } +declare class MdHealing extends React.Component { } +export = MdHealing; diff --git a/types/react-icons/lib/md/hearing.d.ts b/types/react-icons/lib/md/hearing.d.ts index 134c7f1863..d2c41b7011 100644 --- a/types/react-icons/lib/md/hearing.d.ts +++ b/types/react-icons/lib/md/hearing.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdHearing extends React.Component { } +declare class MdHearing extends React.Component { } +export = MdHearing; diff --git a/types/react-icons/lib/md/help-outline.d.ts b/types/react-icons/lib/md/help-outline.d.ts index 2734400cb9..1a3ffc41f4 100644 --- a/types/react-icons/lib/md/help-outline.d.ts +++ b/types/react-icons/lib/md/help-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdHelpOutline extends React.Component { } +declare class MdHelpOutline extends React.Component { } +export = MdHelpOutline; diff --git a/types/react-icons/lib/md/help.d.ts b/types/react-icons/lib/md/help.d.ts index cce20cffd6..8aa5586697 100644 --- a/types/react-icons/lib/md/help.d.ts +++ b/types/react-icons/lib/md/help.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdHelp extends React.Component { } +declare class MdHelp extends React.Component { } +export = MdHelp; diff --git a/types/react-icons/lib/md/high-quality.d.ts b/types/react-icons/lib/md/high-quality.d.ts index 5676b35cbd..abf338bc2d 100644 --- a/types/react-icons/lib/md/high-quality.d.ts +++ b/types/react-icons/lib/md/high-quality.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdHighQuality extends React.Component { } +declare class MdHighQuality extends React.Component { } +export = MdHighQuality; diff --git a/types/react-icons/lib/md/highlight-off.d.ts b/types/react-icons/lib/md/highlight-off.d.ts index f188f1f9bd..5876802841 100644 --- a/types/react-icons/lib/md/highlight-off.d.ts +++ b/types/react-icons/lib/md/highlight-off.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdHighlightOff extends React.Component { } +declare class MdHighlightOff extends React.Component { } +export = MdHighlightOff; diff --git a/types/react-icons/lib/md/highlight-remove.d.ts b/types/react-icons/lib/md/highlight-remove.d.ts index 7a28a3b5ae..893ac99c5f 100644 --- a/types/react-icons/lib/md/highlight-remove.d.ts +++ b/types/react-icons/lib/md/highlight-remove.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdHighlightRemove extends React.Component { } +declare class MdHighlightRemove extends React.Component { } +export = MdHighlightRemove; diff --git a/types/react-icons/lib/md/highlight.d.ts b/types/react-icons/lib/md/highlight.d.ts index 0730ad41da..4930407946 100644 --- a/types/react-icons/lib/md/highlight.d.ts +++ b/types/react-icons/lib/md/highlight.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdHighlight extends React.Component { } +declare class MdHighlight extends React.Component { } +export = MdHighlight; diff --git a/types/react-icons/lib/md/history.d.ts b/types/react-icons/lib/md/history.d.ts index d97bca17d4..7f2609892d 100644 --- a/types/react-icons/lib/md/history.d.ts +++ b/types/react-icons/lib/md/history.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdHistory extends React.Component { } +declare class MdHistory extends React.Component { } +export = MdHistory; diff --git a/types/react-icons/lib/md/home.d.ts b/types/react-icons/lib/md/home.d.ts index 6defd6933f..137d98d6c1 100644 --- a/types/react-icons/lib/md/home.d.ts +++ b/types/react-icons/lib/md/home.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdHome extends React.Component { } +declare class MdHome extends React.Component { } +export = MdHome; diff --git a/types/react-icons/lib/md/hot-tub.d.ts b/types/react-icons/lib/md/hot-tub.d.ts index 89cf2e0591..84abc90459 100644 --- a/types/react-icons/lib/md/hot-tub.d.ts +++ b/types/react-icons/lib/md/hot-tub.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdHotTub extends React.Component { } +declare class MdHotTub extends React.Component { } +export = MdHotTub; diff --git a/types/react-icons/lib/md/hotel.d.ts b/types/react-icons/lib/md/hotel.d.ts index 198fb2b211..86643009a3 100644 --- a/types/react-icons/lib/md/hotel.d.ts +++ b/types/react-icons/lib/md/hotel.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdHotel extends React.Component { } +declare class MdHotel extends React.Component { } +export = MdHotel; diff --git a/types/react-icons/lib/md/hourglass-empty.d.ts b/types/react-icons/lib/md/hourglass-empty.d.ts index a7e4e25915..3598c1045c 100644 --- a/types/react-icons/lib/md/hourglass-empty.d.ts +++ b/types/react-icons/lib/md/hourglass-empty.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdHourglassEmpty extends React.Component { } +declare class MdHourglassEmpty extends React.Component { } +export = MdHourglassEmpty; diff --git a/types/react-icons/lib/md/hourglass-full.d.ts b/types/react-icons/lib/md/hourglass-full.d.ts index 2a3e1507a3..316d99a7d9 100644 --- a/types/react-icons/lib/md/hourglass-full.d.ts +++ b/types/react-icons/lib/md/hourglass-full.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdHourglassFull extends React.Component { } +declare class MdHourglassFull extends React.Component { } +export = MdHourglassFull; diff --git a/types/react-icons/lib/md/http.d.ts b/types/react-icons/lib/md/http.d.ts index def5a14ec5..0bb5db017a 100644 --- a/types/react-icons/lib/md/http.d.ts +++ b/types/react-icons/lib/md/http.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdHttp extends React.Component { } +declare class MdHttp extends React.Component { } +export = MdHttp; diff --git a/types/react-icons/lib/md/https.d.ts b/types/react-icons/lib/md/https.d.ts index 991ad252b9..b696b59968 100644 --- a/types/react-icons/lib/md/https.d.ts +++ b/types/react-icons/lib/md/https.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdHttps extends React.Component { } +declare class MdHttps extends React.Component { } +export = MdHttps; diff --git a/types/react-icons/lib/md/image-aspect-ratio.d.ts b/types/react-icons/lib/md/image-aspect-ratio.d.ts index 2cff8927ea..67cc6951bd 100644 --- a/types/react-icons/lib/md/image-aspect-ratio.d.ts +++ b/types/react-icons/lib/md/image-aspect-ratio.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdImageAspectRatio extends React.Component { } +declare class MdImageAspectRatio extends React.Component { } +export = MdImageAspectRatio; diff --git a/types/react-icons/lib/md/image.d.ts b/types/react-icons/lib/md/image.d.ts index f4246f01ed..3fe545db51 100644 --- a/types/react-icons/lib/md/image.d.ts +++ b/types/react-icons/lib/md/image.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdImage extends React.Component { } +declare class MdImage extends React.Component { } +export = MdImage; diff --git a/types/react-icons/lib/md/import-contacts.d.ts b/types/react-icons/lib/md/import-contacts.d.ts index 4012627098..790267421e 100644 --- a/types/react-icons/lib/md/import-contacts.d.ts +++ b/types/react-icons/lib/md/import-contacts.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdImportContacts extends React.Component { } +declare class MdImportContacts extends React.Component { } +export = MdImportContacts; diff --git a/types/react-icons/lib/md/import-export.d.ts b/types/react-icons/lib/md/import-export.d.ts index 9c66e17352..c15ca8f709 100644 --- a/types/react-icons/lib/md/import-export.d.ts +++ b/types/react-icons/lib/md/import-export.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdImportExport extends React.Component { } +declare class MdImportExport extends React.Component { } +export = MdImportExport; diff --git a/types/react-icons/lib/md/important-devices.d.ts b/types/react-icons/lib/md/important-devices.d.ts index 8795301e43..b5ff654e98 100644 --- a/types/react-icons/lib/md/important-devices.d.ts +++ b/types/react-icons/lib/md/important-devices.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdImportantDevices extends React.Component { } +declare class MdImportantDevices extends React.Component { } +export = MdImportantDevices; diff --git a/types/react-icons/lib/md/inbox.d.ts b/types/react-icons/lib/md/inbox.d.ts index 13d401760f..bd4f22bc83 100644 --- a/types/react-icons/lib/md/inbox.d.ts +++ b/types/react-icons/lib/md/inbox.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdInbox extends React.Component { } +declare class MdInbox extends React.Component { } +export = MdInbox; diff --git a/types/react-icons/lib/md/indeterminate-check-box.d.ts b/types/react-icons/lib/md/indeterminate-check-box.d.ts index 01b0c58730..bb3fd56252 100644 --- a/types/react-icons/lib/md/indeterminate-check-box.d.ts +++ b/types/react-icons/lib/md/indeterminate-check-box.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdIndeterminateCheckBox extends React.Component { } +declare class MdIndeterminateCheckBox extends React.Component { } +export = MdIndeterminateCheckBox; diff --git a/types/react-icons/lib/md/index.d.ts b/types/react-icons/lib/md/index.d.ts index a3e2e3e929..f850df8f58 100644 --- a/types/react-icons/lib/md/index.d.ts +++ b/types/react-icons/lib/md/index.d.ts @@ -1,946 +1,946 @@ -export { default as Md3dRotation } from "./3d-rotation"; -export { default as MdAcUnit } from "./ac-unit"; -export { default as MdAccessAlarm } from "./access-alarm"; -export { default as MdAccessAlarms } from "./access-alarms"; -export { default as MdAccessTime } from "./access-time"; -export { default as MdAccessibility } from "./accessibility"; -export { default as MdAccessible } from "./accessible"; -export { default as MdAccountBalanceWallet } from "./account-balance-wallet"; -export { default as MdAccountBalance } from "./account-balance"; -export { default as MdAccountBox } from "./account-box"; -export { default as MdAccountCircle } from "./account-circle"; -export { default as MdAdb } from "./adb"; -export { default as MdAddAPhoto } from "./add-a-photo"; -export { default as MdAddAlarm } from "./add-alarm"; -export { default as MdAddAlert } from "./add-alert"; -export { default as MdAddBox } from "./add-box"; -export { default as MdAddCircleOutline } from "./add-circle-outline"; -export { default as MdAddCircle } from "./add-circle"; -export { default as MdAddLocation } from "./add-location"; -export { default as MdAddShoppingCart } from "./add-shopping-cart"; -export { default as MdAddToPhotos } from "./add-to-photos"; -export { default as MdAddToQueue } from "./add-to-queue"; -export { default as MdAdd } from "./add"; -export { default as MdAdjust } from "./adjust"; -export { default as MdAirlineSeatFlatAngled } from "./airline-seat-flat-angled"; -export { default as MdAirlineSeatFlat } from "./airline-seat-flat"; -export { default as MdAirlineSeatIndividualSuite } from "./airline-seat-individual-suite"; -export { default as MdAirlineSeatLegroomExtra } from "./airline-seat-legroom-extra"; -export { default as MdAirlineSeatLegroomNormal } from "./airline-seat-legroom-normal"; -export { default as MdAirlineSeatLegroomReduced } from "./airline-seat-legroom-reduced"; -export { default as MdAirlineSeatReclineExtra } from "./airline-seat-recline-extra"; -export { default as MdAirlineSeatReclineNormal } from "./airline-seat-recline-normal"; -export { default as MdAirplanemodeActive } from "./airplanemode-active"; -export { default as MdAirplanemodeInactive } from "./airplanemode-inactive"; -export { default as MdAirplay } from "./airplay"; -export { default as MdAirportShuttle } from "./airport-shuttle"; -export { default as MdAlarmAdd } from "./alarm-add"; -export { default as MdAlarmOff } from "./alarm-off"; -export { default as MdAlarmOn } from "./alarm-on"; -export { default as MdAlarm } from "./alarm"; -export { default as MdAlbum } from "./album"; -export { default as MdAllInclusive } from "./all-inclusive"; -export { default as MdAllOut } from "./all-out"; -export { default as MdAndroid } from "./android"; -export { default as MdAnnouncement } from "./announcement"; -export { default as MdApps } from "./apps"; -export { default as MdArchive } from "./archive"; -export { default as MdArrowBack } from "./arrow-back"; -export { default as MdArrowDownward } from "./arrow-downward"; -export { default as MdArrowDropDownCircle } from "./arrow-drop-down-circle"; -export { default as MdArrowDropDown } from "./arrow-drop-down"; -export { default as MdArrowDropUp } from "./arrow-drop-up"; -export { default as MdArrowForward } from "./arrow-forward"; -export { default as MdArrowUpward } from "./arrow-upward"; -export { default as MdArtTrack } from "./art-track"; -export { default as MdAspectRatio } from "./aspect-ratio"; -export { default as MdAssessment } from "./assessment"; -export { default as MdAssignmentInd } from "./assignment-ind"; -export { default as MdAssignmentLate } from "./assignment-late"; -export { default as MdAssignmentReturn } from "./assignment-return"; -export { default as MdAssignmentReturned } from "./assignment-returned"; -export { default as MdAssignmentTurnedIn } from "./assignment-turned-in"; -export { default as MdAssignment } from "./assignment"; -export { default as MdAssistantPhoto } from "./assistant-photo"; -export { default as MdAssistant } from "./assistant"; -export { default as MdAttachFile } from "./attach-file"; -export { default as MdAttachMoney } from "./attach-money"; -export { default as MdAttachment } from "./attachment"; -export { default as MdAudiotrack } from "./audiotrack"; -export { default as MdAutorenew } from "./autorenew"; -export { default as MdAvTimer } from "./av-timer"; -export { default as MdBackspace } from "./backspace"; -export { default as MdBackup } from "./backup"; -export { default as MdBatteryAlert } from "./battery-alert"; -export { default as MdBatteryChargingFull } from "./battery-charging-full"; -export { default as MdBatteryFull } from "./battery-full"; -export { default as MdBatteryStd } from "./battery-std"; -export { default as MdBatteryUnknown } from "./battery-unknown"; -export { default as MdBeachAccess } from "./beach-access"; -export { default as MdBeenhere } from "./beenhere"; -export { default as MdBlock } from "./block"; -export { default as MdBluetoothAudio } from "./bluetooth-audio"; -export { default as MdBluetoothConnected } from "./bluetooth-connected"; -export { default as MdBluetoothDisabled } from "./bluetooth-disabled"; -export { default as MdBluetoothSearching } from "./bluetooth-searching"; -export { default as MdBluetooth } from "./bluetooth"; -export { default as MdBlurCircular } from "./blur-circular"; -export { default as MdBlurLinear } from "./blur-linear"; -export { default as MdBlurOff } from "./blur-off"; -export { default as MdBlurOn } from "./blur-on"; -export { default as MdBook } from "./book"; -export { default as MdBookmarkOutline } from "./bookmark-outline"; -export { default as MdBookmark } from "./bookmark"; -export { default as MdBorderAll } from "./border-all"; -export { default as MdBorderBottom } from "./border-bottom"; -export { default as MdBorderClear } from "./border-clear"; -export { default as MdBorderColor } from "./border-color"; -export { default as MdBorderHorizontal } from "./border-horizontal"; -export { default as MdBorderInner } from "./border-inner"; -export { default as MdBorderLeft } from "./border-left"; -export { default as MdBorderOuter } from "./border-outer"; -export { default as MdBorderRight } from "./border-right"; -export { default as MdBorderStyle } from "./border-style"; -export { default as MdBorderTop } from "./border-top"; -export { default as MdBorderVertical } from "./border-vertical"; -export { default as MdBrandingWatermark } from "./branding-watermark"; -export { default as MdBrightness1 } from "./brightness-1"; -export { default as MdBrightness2 } from "./brightness-2"; -export { default as MdBrightness3 } from "./brightness-3"; -export { default as MdBrightness4 } from "./brightness-4"; -export { default as MdBrightness5 } from "./brightness-5"; -export { default as MdBrightness6 } from "./brightness-6"; -export { default as MdBrightness7 } from "./brightness-7"; -export { default as MdBrightnessAuto } from "./brightness-auto"; -export { default as MdBrightnessHigh } from "./brightness-high"; -export { default as MdBrightnessLow } from "./brightness-low"; -export { default as MdBrightnessMedium } from "./brightness-medium"; -export { default as MdBrokenImage } from "./broken-image"; -export { default as MdBrush } from "./brush"; -export { default as MdBubbleChart } from "./bubble-chart"; -export { default as MdBugReport } from "./bug-report"; -export { default as MdBuild } from "./build"; -export { default as MdBurstMode } from "./burst-mode"; -export { default as MdBusinessCenter } from "./business-center"; -export { default as MdBusiness } from "./business"; -export { default as MdCached } from "./cached"; -export { default as MdCake } from "./cake"; -export { default as MdCallEnd } from "./call-end"; -export { default as MdCallMade } from "./call-made"; -export { default as MdCallMerge } from "./call-merge"; -export { default as MdCallMissedOutgoing } from "./call-missed-outgoing"; -export { default as MdCallMissed } from "./call-missed"; -export { default as MdCallReceived } from "./call-received"; -export { default as MdCallSplit } from "./call-split"; -export { default as MdCallToAction } from "./call-to-action"; -export { default as MdCall } from "./call"; -export { default as MdCameraAlt } from "./camera-alt"; -export { default as MdCameraEnhance } from "./camera-enhance"; -export { default as MdCameraFront } from "./camera-front"; -export { default as MdCameraRear } from "./camera-rear"; -export { default as MdCameraRoll } from "./camera-roll"; -export { default as MdCamera } from "./camera"; -export { default as MdCancel } from "./cancel"; -export { default as MdCardGiftcard } from "./card-giftcard"; -export { default as MdCardMembership } from "./card-membership"; -export { default as MdCardTravel } from "./card-travel"; -export { default as MdCasino } from "./casino"; -export { default as MdCastConnected } from "./cast-connected"; -export { default as MdCast } from "./cast"; -export { default as MdCenterFocusStrong } from "./center-focus-strong"; -export { default as MdCenterFocusWeak } from "./center-focus-weak"; -export { default as MdChangeHistory } from "./change-history"; -export { default as MdChatBubbleOutline } from "./chat-bubble-outline"; -export { default as MdChatBubble } from "./chat-bubble"; -export { default as MdChat } from "./chat"; -export { default as MdCheckBoxOutlineBlank } from "./check-box-outline-blank"; -export { default as MdCheckBox } from "./check-box"; -export { default as MdCheckCircle } from "./check-circle"; -export { default as MdCheck } from "./check"; -export { default as MdChevronLeft } from "./chevron-left"; -export { default as MdChevronRight } from "./chevron-right"; -export { default as MdChildCare } from "./child-care"; -export { default as MdChildFriendly } from "./child-friendly"; -export { default as MdChromeReaderMode } from "./chrome-reader-mode"; -export { default as MdClass } from "./class"; -export { default as MdClearAll } from "./clear-all"; -export { default as MdClear } from "./clear"; -export { default as MdClose } from "./close"; -export { default as MdClosedCaption } from "./closed-caption"; -export { default as MdCloudCircle } from "./cloud-circle"; -export { default as MdCloudDone } from "./cloud-done"; -export { default as MdCloudDownload } from "./cloud-download"; -export { default as MdCloudOff } from "./cloud-off"; -export { default as MdCloudQueue } from "./cloud-queue"; -export { default as MdCloudUpload } from "./cloud-upload"; -export { default as MdCloud } from "./cloud"; -export { default as MdCode } from "./code"; -export { default as MdCollectionsBookmark } from "./collections-bookmark"; -export { default as MdCollections } from "./collections"; -export { default as MdColorLens } from "./color-lens"; -export { default as MdColorize } from "./colorize"; -export { default as MdComment } from "./comment"; -export { default as MdCompareArrows } from "./compare-arrows"; -export { default as MdCompare } from "./compare"; -export { default as MdComputer } from "./computer"; -export { default as MdConfirmationNumber } from "./confirmation-number"; -export { default as MdContactMail } from "./contact-mail"; -export { default as MdContactPhone } from "./contact-phone"; -export { default as MdContacts } from "./contacts"; -export { default as MdContentCopy } from "./content-copy"; -export { default as MdContentCut } from "./content-cut"; -export { default as MdContentPaste } from "./content-paste"; -export { default as MdControlPointDuplicate } from "./control-point-duplicate"; -export { default as MdControlPoint } from "./control-point"; -export { default as MdCopyright } from "./copyright"; -export { default as MdCreateNewFolder } from "./create-new-folder"; -export { default as MdCreate } from "./create"; -export { default as MdCreditCard } from "./credit-card"; -export { default as MdCrop169 } from "./crop-16-9"; -export { default as MdCrop32 } from "./crop-3-2"; -export { default as MdCrop54 } from "./crop-5-4"; -export { default as MdCrop75 } from "./crop-7-5"; -export { default as MdCropDin } from "./crop-din"; -export { default as MdCropFree } from "./crop-free"; -export { default as MdCropLandscape } from "./crop-landscape"; -export { default as MdCropOriginal } from "./crop-original"; -export { default as MdCropPortrait } from "./crop-portrait"; -export { default as MdCropRotate } from "./crop-rotate"; -export { default as MdCropSquare } from "./crop-square"; -export { default as MdCrop } from "./crop"; -export { default as MdDashboard } from "./dashboard"; -export { default as MdDataUsage } from "./data-usage"; -export { default as MdDateRange } from "./date-range"; -export { default as MdDehaze } from "./dehaze"; -export { default as MdDeleteForever } from "./delete-forever"; -export { default as MdDeleteSweep } from "./delete-sweep"; -export { default as MdDelete } from "./delete"; -export { default as MdDescription } from "./description"; -export { default as MdDesktopMac } from "./desktop-mac"; -export { default as MdDesktopWindows } from "./desktop-windows"; -export { default as MdDetails } from "./details"; -export { default as MdDeveloperBoard } from "./developer-board"; -export { default as MdDeveloperMode } from "./developer-mode"; -export { default as MdDeviceHub } from "./device-hub"; -export { default as MdDevicesOther } from "./devices-other"; -export { default as MdDevices } from "./devices"; -export { default as MdDialerSip } from "./dialer-sip"; -export { default as MdDialpad } from "./dialpad"; -export { default as MdDirectionsBike } from "./directions-bike"; -export { default as MdDirectionsBoat } from "./directions-boat"; -export { default as MdDirectionsBus } from "./directions-bus"; -export { default as MdDirectionsCar } from "./directions-car"; -export { default as MdDirectionsFerry } from "./directions-ferry"; -export { default as MdDirectionsRailway } from "./directions-railway"; -export { default as MdDirectionsRun } from "./directions-run"; -export { default as MdDirectionsSubway } from "./directions-subway"; -export { default as MdDirectionsTransit } from "./directions-transit"; -export { default as MdDirectionsWalk } from "./directions-walk"; -export { default as MdDirections } from "./directions"; -export { default as MdDiscFull } from "./disc-full"; -export { default as MdDns } from "./dns"; -export { default as MdDoNotDisturbAlt } from "./do-not-disturb-alt"; -export { default as MdDoNotDisturbOff } from "./do-not-disturb-off"; -export { default as MdDoNotDisturb } from "./do-not-disturb"; -export { default as MdDock } from "./dock"; -export { default as MdDomain } from "./domain"; -export { default as MdDoneAll } from "./done-all"; -export { default as MdDone } from "./done"; -export { default as MdDonutLarge } from "./donut-large"; -export { default as MdDonutSmall } from "./donut-small"; -export { default as MdDrafts } from "./drafts"; -export { default as MdDragHandle } from "./drag-handle"; -export { default as MdDriveEta } from "./drive-eta"; -export { default as MdDvr } from "./dvr"; -export { default as MdEditLocation } from "./edit-location"; -export { default as MdEdit } from "./edit"; -export { default as MdEject } from "./eject"; -export { default as MdEmail } from "./email"; -export { default as MdEnhancedEncryption } from "./enhanced-encryption"; -export { default as MdEqualizer } from "./equalizer"; -export { default as MdErrorOutline } from "./error-outline"; -export { default as MdError } from "./error"; -export { default as MdEuroSymbol } from "./euro-symbol"; -export { default as MdEvStation } from "./ev-station"; -export { default as MdEventAvailable } from "./event-available"; -export { default as MdEventBusy } from "./event-busy"; -export { default as MdEventNote } from "./event-note"; -export { default as MdEventSeat } from "./event-seat"; -export { default as MdEvent } from "./event"; -export { default as MdExitToApp } from "./exit-to-app"; -export { default as MdExpandLess } from "./expand-less"; -export { default as MdExpandMore } from "./expand-more"; -export { default as MdExplicit } from "./explicit"; -export { default as MdExplore } from "./explore"; -export { default as MdExposureMinus1 } from "./exposure-minus-1"; -export { default as MdExposureMinus2 } from "./exposure-minus-2"; -export { default as MdExposureNeg1 } from "./exposure-neg-1"; -export { default as MdExposureNeg2 } from "./exposure-neg-2"; -export { default as MdExposurePlus1 } from "./exposure-plus-1"; -export { default as MdExposurePlus2 } from "./exposure-plus-2"; -export { default as MdExposureZero } from "./exposure-zero"; -export { default as MdExposure } from "./exposure"; -export { default as MdExtension } from "./extension"; -export { default as MdFace } from "./face"; -export { default as MdFastForward } from "./fast-forward"; -export { default as MdFastRewind } from "./fast-rewind"; -export { default as MdFavoriteBorder } from "./favorite-border"; -export { default as MdFavoriteOutline } from "./favorite-outline"; -export { default as MdFavorite } from "./favorite"; -export { default as MdFeaturedPlayList } from "./featured-play-list"; -export { default as MdFeaturedVideo } from "./featured-video"; -export { default as MdFeedback } from "./feedback"; -export { default as MdFiberDvr } from "./fiber-dvr"; -export { default as MdFiberManualRecord } from "./fiber-manual-record"; -export { default as MdFiberNew } from "./fiber-new"; -export { default as MdFiberPin } from "./fiber-pin"; -export { default as MdFiberSmartRecord } from "./fiber-smart-record"; -export { default as MdFileDownload } from "./file-download"; -export { default as MdFileUpload } from "./file-upload"; -export { default as MdFilter1 } from "./filter-1"; -export { default as MdFilter2 } from "./filter-2"; -export { default as MdFilter3 } from "./filter-3"; -export { default as MdFilter4 } from "./filter-4"; -export { default as MdFilter5 } from "./filter-5"; -export { default as MdFilter6 } from "./filter-6"; -export { default as MdFilter7 } from "./filter-7"; -export { default as MdFilter8 } from "./filter-8"; -export { default as MdFilter9Plus } from "./filter-9-plus"; -export { default as MdFilter9 } from "./filter-9"; -export { default as MdFilterBAndW } from "./filter-b-and-w"; -export { default as MdFilterCenterFocus } from "./filter-center-focus"; -export { default as MdFilterDrama } from "./filter-drama"; -export { default as MdFilterFrames } from "./filter-frames"; -export { default as MdFilterHdr } from "./filter-hdr"; -export { default as MdFilterList } from "./filter-list"; -export { default as MdFilterNone } from "./filter-none"; -export { default as MdFilterTiltShift } from "./filter-tilt-shift"; -export { default as MdFilterVintage } from "./filter-vintage"; -export { default as MdFilter } from "./filter"; -export { default as MdFindInPage } from "./find-in-page"; -export { default as MdFindReplace } from "./find-replace"; -export { default as MdFingerprint } from "./fingerprint"; -export { default as MdFirstPage } from "./first-page"; -export { default as MdFitnessCenter } from "./fitness-center"; -export { default as MdFlag } from "./flag"; -export { default as MdFlare } from "./flare"; -export { default as MdFlashAuto } from "./flash-auto"; -export { default as MdFlashOff } from "./flash-off"; -export { default as MdFlashOn } from "./flash-on"; -export { default as MdFlightLand } from "./flight-land"; -export { default as MdFlightTakeoff } from "./flight-takeoff"; -export { default as MdFlight } from "./flight"; -export { default as MdFlipToBack } from "./flip-to-back"; -export { default as MdFlipToFront } from "./flip-to-front"; -export { default as MdFlip } from "./flip"; -export { default as MdFolderOpen } from "./folder-open"; -export { default as MdFolderShared } from "./folder-shared"; -export { default as MdFolderSpecial } from "./folder-special"; -export { default as MdFolder } from "./folder"; -export { default as MdFontDownload } from "./font-download"; -export { default as MdFormatAlignCenter } from "./format-align-center"; -export { default as MdFormatAlignJustify } from "./format-align-justify"; -export { default as MdFormatAlignLeft } from "./format-align-left"; -export { default as MdFormatAlignRight } from "./format-align-right"; -export { default as MdFormatBold } from "./format-bold"; -export { default as MdFormatClear } from "./format-clear"; -export { default as MdFormatColorFill } from "./format-color-fill"; -export { default as MdFormatColorReset } from "./format-color-reset"; -export { default as MdFormatColorText } from "./format-color-text"; -export { default as MdFormatIndentDecrease } from "./format-indent-decrease"; -export { default as MdFormatIndentIncrease } from "./format-indent-increase"; -export { default as MdFormatItalic } from "./format-italic"; -export { default as MdFormatLineSpacing } from "./format-line-spacing"; -export { default as MdFormatListBulleted } from "./format-list-bulleted"; -export { default as MdFormatListNumbered } from "./format-list-numbered"; -export { default as MdFormatPaint } from "./format-paint"; -export { default as MdFormatQuote } from "./format-quote"; -export { default as MdFormatShapes } from "./format-shapes"; -export { default as MdFormatSize } from "./format-size"; -export { default as MdFormatStrikethrough } from "./format-strikethrough"; -export { default as MdFormatTextdirectionLToR } from "./format-textdirection-l-to-r"; -export { default as MdFormatTextdirectionRToL } from "./format-textdirection-r-to-l"; -export { default as MdFormatUnderlined } from "./format-underlined"; -export { default as MdForum } from "./forum"; -export { default as MdForward10 } from "./forward-10"; -export { default as MdForward30 } from "./forward-30"; -export { default as MdForward5 } from "./forward-5"; -export { default as MdForward } from "./forward"; -export { default as MdFreeBreakfast } from "./free-breakfast"; -export { default as MdFullscreenExit } from "./fullscreen-exit"; -export { default as MdFullscreen } from "./fullscreen"; -export { default as MdFunctions } from "./functions"; -export { default as MdGTranslate } from "./g-translate"; -export { default as MdGamepad } from "./gamepad"; -export { default as MdGames } from "./games"; -export { default as MdGavel } from "./gavel"; -export { default as MdGesture } from "./gesture"; -export { default as MdGetApp } from "./get-app"; -export { default as MdGif } from "./gif"; -export { default as MdGoat } from "./goat"; -export { default as MdGolfCourse } from "./golf-course"; -export { default as MdGpsFixed } from "./gps-fixed"; -export { default as MdGpsNotFixed } from "./gps-not-fixed"; -export { default as MdGpsOff } from "./gps-off"; -export { default as MdGrade } from "./grade"; -export { default as MdGradient } from "./gradient"; -export { default as MdGrain } from "./grain"; -export { default as MdGraphicEq } from "./graphic-eq"; -export { default as MdGridOff } from "./grid-off"; -export { default as MdGridOn } from "./grid-on"; -export { default as MdGroupAdd } from "./group-add"; -export { default as MdGroupWork } from "./group-work"; -export { default as MdGroup } from "./group"; -export { default as MdHd } from "./hd"; -export { default as MdHdrOff } from "./hdr-off"; -export { default as MdHdrOn } from "./hdr-on"; -export { default as MdHdrStrong } from "./hdr-strong"; -export { default as MdHdrWeak } from "./hdr-weak"; -export { default as MdHeadsetMic } from "./headset-mic"; -export { default as MdHeadset } from "./headset"; -export { default as MdHealing } from "./healing"; -export { default as MdHearing } from "./hearing"; -export { default as MdHelpOutline } from "./help-outline"; -export { default as MdHelp } from "./help"; -export { default as MdHighQuality } from "./high-quality"; -export { default as MdHighlightOff } from "./highlight-off"; -export { default as MdHighlightRemove } from "./highlight-remove"; -export { default as MdHighlight } from "./highlight"; -export { default as MdHistory } from "./history"; -export { default as MdHome } from "./home"; -export { default as MdHotTub } from "./hot-tub"; -export { default as MdHotel } from "./hotel"; -export { default as MdHourglassEmpty } from "./hourglass-empty"; -export { default as MdHourglassFull } from "./hourglass-full"; -export { default as MdHttp } from "./http"; -export { default as MdHttps } from "./https"; -export { default as MdImageAspectRatio } from "./image-aspect-ratio"; -export { default as MdImage } from "./image"; -export { default as MdImportContacts } from "./import-contacts"; -export { default as MdImportExport } from "./import-export"; -export { default as MdImportantDevices } from "./important-devices"; -export { default as MdInbox } from "./inbox"; -export { default as MdIndeterminateCheckBox } from "./indeterminate-check-box"; -export { default as MdInfoOutline } from "./info-outline"; -export { default as MdInfo } from "./info"; -export { default as MdInput } from "./input"; -export { default as MdInsertChart } from "./insert-chart"; -export { default as MdInsertComment } from "./insert-comment"; -export { default as MdInsertDriveFile } from "./insert-drive-file"; -export { default as MdInsertEmoticon } from "./insert-emoticon"; -export { default as MdInsertInvitation } from "./insert-invitation"; -export { default as MdInsertLink } from "./insert-link"; -export { default as MdInsertPhoto } from "./insert-photo"; -export { default as MdInvertColorsOff } from "./invert-colors-off"; -export { default as MdInvertColorsOn } from "./invert-colors-on"; -export { default as MdInvertColors } from "./invert-colors"; -export { default as MdIso } from "./iso"; -export { default as MdKeyboardArrowDown } from "./keyboard-arrow-down"; -export { default as MdKeyboardArrowLeft } from "./keyboard-arrow-left"; -export { default as MdKeyboardArrowRight } from "./keyboard-arrow-right"; -export { default as MdKeyboardArrowUp } from "./keyboard-arrow-up"; -export { default as MdKeyboardBackspace } from "./keyboard-backspace"; -export { default as MdKeyboardCapslock } from "./keyboard-capslock"; -export { default as MdKeyboardControl } from "./keyboard-control"; -export { default as MdKeyboardHide } from "./keyboard-hide"; -export { default as MdKeyboardReturn } from "./keyboard-return"; -export { default as MdKeyboardTab } from "./keyboard-tab"; -export { default as MdKeyboardVoice } from "./keyboard-voice"; -export { default as MdKeyboard } from "./keyboard"; -export { default as MdKitchen } from "./kitchen"; -export { default as MdLabelOutline } from "./label-outline"; -export { default as MdLabel } from "./label"; -export { default as MdLandscape } from "./landscape"; -export { default as MdLanguage } from "./language"; -export { default as MdLaptopChromebook } from "./laptop-chromebook"; -export { default as MdLaptopMac } from "./laptop-mac"; -export { default as MdLaptopWindows } from "./laptop-windows"; -export { default as MdLaptop } from "./laptop"; -export { default as MdLastPage } from "./last-page"; -export { default as MdLaunch } from "./launch"; -export { default as MdLayersClear } from "./layers-clear"; -export { default as MdLayers } from "./layers"; -export { default as MdLeakAdd } from "./leak-add"; -export { default as MdLeakRemove } from "./leak-remove"; -export { default as MdLens } from "./lens"; -export { default as MdLibraryAdd } from "./library-add"; -export { default as MdLibraryBooks } from "./library-books"; -export { default as MdLibraryMusic } from "./library-music"; -export { default as MdLightbulbOutline } from "./lightbulb-outline"; -export { default as MdLineStyle } from "./line-style"; -export { default as MdLineWeight } from "./line-weight"; -export { default as MdLinearScale } from "./linear-scale"; -export { default as MdLink } from "./link"; -export { default as MdLinkedCamera } from "./linked-camera"; -export { default as MdList } from "./list"; -export { default as MdLiveHelp } from "./live-help"; -export { default as MdLiveTv } from "./live-tv"; -export { default as MdLocalAirport } from "./local-airport"; -export { default as MdLocalAtm } from "./local-atm"; -export { default as MdLocalAttraction } from "./local-attraction"; -export { default as MdLocalBar } from "./local-bar"; -export { default as MdLocalCafe } from "./local-cafe"; -export { default as MdLocalCarWash } from "./local-car-wash"; -export { default as MdLocalConvenienceStore } from "./local-convenience-store"; -export { default as MdLocalDrink } from "./local-drink"; -export { default as MdLocalFlorist } from "./local-florist"; -export { default as MdLocalGasStation } from "./local-gas-station"; -export { default as MdLocalGroceryStore } from "./local-grocery-store"; -export { default as MdLocalHospital } from "./local-hospital"; -export { default as MdLocalHotel } from "./local-hotel"; -export { default as MdLocalLaundryService } from "./local-laundry-service"; -export { default as MdLocalLibrary } from "./local-library"; -export { default as MdLocalMall } from "./local-mall"; -export { default as MdLocalMovies } from "./local-movies"; -export { default as MdLocalOffer } from "./local-offer"; -export { default as MdLocalParking } from "./local-parking"; -export { default as MdLocalPharmacy } from "./local-pharmacy"; -export { default as MdLocalPhone } from "./local-phone"; -export { default as MdLocalPizza } from "./local-pizza"; -export { default as MdLocalPlay } from "./local-play"; -export { default as MdLocalPostOffice } from "./local-post-office"; -export { default as MdLocalPrintShop } from "./local-print-shop"; -export { default as MdLocalRestaurant } from "./local-restaurant"; -export { default as MdLocalSee } from "./local-see"; -export { default as MdLocalShipping } from "./local-shipping"; -export { default as MdLocalTaxi } from "./local-taxi"; -export { default as MdLocationCity } from "./location-city"; -export { default as MdLocationDisabled } from "./location-disabled"; -export { default as MdLocationHistory } from "./location-history"; -export { default as MdLocationOff } from "./location-off"; -export { default as MdLocationOn } from "./location-on"; -export { default as MdLocationSearching } from "./location-searching"; -export { default as MdLockOpen } from "./lock-open"; -export { default as MdLockOutline } from "./lock-outline"; -export { default as MdLock } from "./lock"; -export { default as MdLooks3 } from "./looks-3"; -export { default as MdLooks4 } from "./looks-4"; -export { default as MdLooks5 } from "./looks-5"; -export { default as MdLooks6 } from "./looks-6"; -export { default as MdLooksOne } from "./looks-one"; -export { default as MdLooksTwo } from "./looks-two"; -export { default as MdLooks } from "./looks"; -export { default as MdLoop } from "./loop"; -export { default as MdLoupe } from "./loupe"; -export { default as MdLowPriority } from "./low-priority"; -export { default as MdLoyalty } from "./loyalty"; -export { default as MdMailOutline } from "./mail-outline"; -export { default as MdMail } from "./mail"; -export { default as MdMap } from "./map"; -export { default as MdMarkunreadMailbox } from "./markunread-mailbox"; -export { default as MdMarkunread } from "./markunread"; -export { default as MdMemory } from "./memory"; -export { default as MdMenu } from "./menu"; -export { default as MdMergeType } from "./merge-type"; -export { default as MdMessage } from "./message"; -export { default as MdMicNone } from "./mic-none"; -export { default as MdMicOff } from "./mic-off"; -export { default as MdMic } from "./mic"; -export { default as MdMms } from "./mms"; -export { default as MdModeComment } from "./mode-comment"; -export { default as MdModeEdit } from "./mode-edit"; -export { default as MdMonetizationOn } from "./monetization-on"; -export { default as MdMoneyOff } from "./money-off"; -export { default as MdMonochromePhotos } from "./monochrome-photos"; -export { default as MdMoodBad } from "./mood-bad"; -export { default as MdMood } from "./mood"; -export { default as MdMoreHoriz } from "./more-horiz"; -export { default as MdMoreVert } from "./more-vert"; -export { default as MdMore } from "./more"; -export { default as MdMotorcycle } from "./motorcycle"; -export { default as MdMouse } from "./mouse"; -export { default as MdMoveToInbox } from "./move-to-inbox"; -export { default as MdMovieCreation } from "./movie-creation"; -export { default as MdMovieFilter } from "./movie-filter"; -export { default as MdMovie } from "./movie"; -export { default as MdMultilineChart } from "./multiline-chart"; -export { default as MdMusicNote } from "./music-note"; -export { default as MdMusicVideo } from "./music-video"; -export { default as MdMyLocation } from "./my-location"; -export { default as MdNaturePeople } from "./nature-people"; -export { default as MdNature } from "./nature"; -export { default as MdNavigateBefore } from "./navigate-before"; -export { default as MdNavigateNext } from "./navigate-next"; -export { default as MdNavigation } from "./navigation"; -export { default as MdNearMe } from "./near-me"; -export { default as MdNetworkCell } from "./network-cell"; -export { default as MdNetworkCheck } from "./network-check"; -export { default as MdNetworkLocked } from "./network-locked"; -export { default as MdNetworkWifi } from "./network-wifi"; -export { default as MdNewReleases } from "./new-releases"; -export { default as MdNextWeek } from "./next-week"; -export { default as MdNfc } from "./nfc"; -export { default as MdNoEncryption } from "./no-encryption"; -export { default as MdNoSim } from "./no-sim"; -export { default as MdNotInterested } from "./not-interested"; -export { default as MdNoteAdd } from "./note-add"; -export { default as MdNote } from "./note"; -export { default as MdNotificationsActive } from "./notifications-active"; -export { default as MdNotificationsNone } from "./notifications-none"; -export { default as MdNotificationsOff } from "./notifications-off"; -export { default as MdNotificationsPaused } from "./notifications-paused"; -export { default as MdNotifications } from "./notifications"; -export { default as MdNowWallpaper } from "./now-wallpaper"; -export { default as MdNowWidgets } from "./now-widgets"; -export { default as MdOfflinePin } from "./offline-pin"; -export { default as MdOndemandVideo } from "./ondemand-video"; -export { default as MdOpacity } from "./opacity"; -export { default as MdOpenInBrowser } from "./open-in-browser"; -export { default as MdOpenInNew } from "./open-in-new"; -export { default as MdOpenWith } from "./open-with"; -export { default as MdPages } from "./pages"; -export { default as MdPageview } from "./pageview"; -export { default as MdPalette } from "./palette"; -export { default as MdPanTool } from "./pan-tool"; -export { default as MdPanoramaFishEye } from "./panorama-fish-eye"; -export { default as MdPanoramaHorizontal } from "./panorama-horizontal"; -export { default as MdPanoramaVertical } from "./panorama-vertical"; -export { default as MdPanoramaWideAngle } from "./panorama-wide-angle"; -export { default as MdPanorama } from "./panorama"; -export { default as MdPartyMode } from "./party-mode"; -export { default as MdPauseCircleFilled } from "./pause-circle-filled"; -export { default as MdPauseCircleOutline } from "./pause-circle-outline"; -export { default as MdPause } from "./pause"; -export { default as MdPayment } from "./payment"; -export { default as MdPeopleOutline } from "./people-outline"; -export { default as MdPeople } from "./people"; -export { default as MdPermCameraMic } from "./perm-camera-mic"; -export { default as MdPermContactCalendar } from "./perm-contact-calendar"; -export { default as MdPermDataSetting } from "./perm-data-setting"; -export { default as MdPermDeviceInformation } from "./perm-device-information"; -export { default as MdPermIdentity } from "./perm-identity"; -export { default as MdPermMedia } from "./perm-media"; -export { default as MdPermPhoneMsg } from "./perm-phone-msg"; -export { default as MdPermScanWifi } from "./perm-scan-wifi"; -export { default as MdPersonAdd } from "./person-add"; -export { default as MdPersonOutline } from "./person-outline"; -export { default as MdPersonPinCircle } from "./person-pin-circle"; -export { default as MdPersonPin } from "./person-pin"; -export { default as MdPerson } from "./person"; -export { default as MdPersonalVideo } from "./personal-video"; -export { default as MdPets } from "./pets"; -export { default as MdPhoneAndroid } from "./phone-android"; -export { default as MdPhoneBluetoothSpeaker } from "./phone-bluetooth-speaker"; -export { default as MdPhoneForwarded } from "./phone-forwarded"; -export { default as MdPhoneInTalk } from "./phone-in-talk"; -export { default as MdPhoneIphone } from "./phone-iphone"; -export { default as MdPhoneLocked } from "./phone-locked"; -export { default as MdPhoneMissed } from "./phone-missed"; -export { default as MdPhonePaused } from "./phone-paused"; -export { default as MdPhone } from "./phone"; -export { default as MdPhonelinkErase } from "./phonelink-erase"; -export { default as MdPhonelinkLock } from "./phonelink-lock"; -export { default as MdPhonelinkOff } from "./phonelink-off"; -export { default as MdPhonelinkRing } from "./phonelink-ring"; -export { default as MdPhonelinkSetup } from "./phonelink-setup"; -export { default as MdPhonelink } from "./phonelink"; -export { default as MdPhotoAlbum } from "./photo-album"; -export { default as MdPhotoCamera } from "./photo-camera"; -export { default as MdPhotoFilter } from "./photo-filter"; -export { default as MdPhotoLibrary } from "./photo-library"; -export { default as MdPhotoSizeSelectActual } from "./photo-size-select-actual"; -export { default as MdPhotoSizeSelectLarge } from "./photo-size-select-large"; -export { default as MdPhotoSizeSelectSmall } from "./photo-size-select-small"; -export { default as MdPhoto } from "./photo"; -export { default as MdPictureAsPdf } from "./picture-as-pdf"; -export { default as MdPictureInPictureAlt } from "./picture-in-picture-alt"; -export { default as MdPictureInPicture } from "./picture-in-picture"; -export { default as MdPieChartOutlined } from "./pie-chart-outlined"; -export { default as MdPieChart } from "./pie-chart"; -export { default as MdPinDrop } from "./pin-drop"; -export { default as MdPlace } from "./place"; -export { default as MdPlayArrow } from "./play-arrow"; -export { default as MdPlayCircleFilled } from "./play-circle-filled"; -export { default as MdPlayCircleOutline } from "./play-circle-outline"; -export { default as MdPlayForWork } from "./play-for-work"; -export { default as MdPlaylistAddCheck } from "./playlist-add-check"; -export { default as MdPlaylistAdd } from "./playlist-add"; -export { default as MdPlaylistPlay } from "./playlist-play"; -export { default as MdPlusOne } from "./plus-one"; -export { default as MdPoll } from "./poll"; -export { default as MdPolymer } from "./polymer"; -export { default as MdPool } from "./pool"; -export { default as MdPortableWifiOff } from "./portable-wifi-off"; -export { default as MdPortrait } from "./portrait"; -export { default as MdPowerInput } from "./power-input"; -export { default as MdPowerSettingsNew } from "./power-settings-new"; -export { default as MdPower } from "./power"; -export { default as MdPregnantWoman } from "./pregnant-woman"; -export { default as MdPresentToAll } from "./present-to-all"; -export { default as MdPrint } from "./print"; -export { default as MdPriorityHigh } from "./priority-high"; -export { default as MdPublic } from "./public"; -export { default as MdPublish } from "./publish"; -export { default as MdQueryBuilder } from "./query-builder"; -export { default as MdQuestionAnswer } from "./question-answer"; -export { default as MdQueueMusic } from "./queue-music"; -export { default as MdQueuePlayNext } from "./queue-play-next"; -export { default as MdQueue } from "./queue"; -export { default as MdRadioButtonChecked } from "./radio-button-checked"; -export { default as MdRadioButtonUnchecked } from "./radio-button-unchecked"; -export { default as MdRadio } from "./radio"; -export { default as MdRateReview } from "./rate-review"; -export { default as MdReceipt } from "./receipt"; -export { default as MdRecentActors } from "./recent-actors"; -export { default as MdRecordVoiceOver } from "./record-voice-over"; -export { default as MdRedeem } from "./redeem"; -export { default as MdRedo } from "./redo"; -export { default as MdRefresh } from "./refresh"; -export { default as MdRemoveCircleOutline } from "./remove-circle-outline"; -export { default as MdRemoveCircle } from "./remove-circle"; -export { default as MdRemoveFromQueue } from "./remove-from-queue"; -export { default as MdRemoveRedEye } from "./remove-red-eye"; -export { default as MdRemoveShoppingCart } from "./remove-shopping-cart"; -export { default as MdRemove } from "./remove"; -export { default as MdReorder } from "./reorder"; -export { default as MdRepeatOne } from "./repeat-one"; -export { default as MdRepeat } from "./repeat"; -export { default as MdReplay10 } from "./replay-10"; -export { default as MdReplay30 } from "./replay-30"; -export { default as MdReplay5 } from "./replay-5"; -export { default as MdReplay } from "./replay"; -export { default as MdReplyAll } from "./reply-all"; -export { default as MdReply } from "./reply"; -export { default as MdReportProblem } from "./report-problem"; -export { default as MdReport } from "./report"; -export { default as MdRestaurantMenu } from "./restaurant-menu"; -export { default as MdRestaurant } from "./restaurant"; -export { default as MdRestorePage } from "./restore-page"; -export { default as MdRestore } from "./restore"; -export { default as MdRingVolume } from "./ring-volume"; -export { default as MdRoomService } from "./room-service"; -export { default as MdRoom } from "./room"; -export { default as MdRotate90DegreesCcw } from "./rotate-90-degrees-ccw"; -export { default as MdRotateLeft } from "./rotate-left"; -export { default as MdRotateRight } from "./rotate-right"; -export { default as MdRoundedCorner } from "./rounded-corner"; -export { default as MdRouter } from "./router"; -export { default as MdRowing } from "./rowing"; -export { default as MdRssFeed } from "./rss-feed"; -export { default as MdRvHookup } from "./rv-hookup"; -export { default as MdSatellite } from "./satellite"; -export { default as MdSave } from "./save"; -export { default as MdScanner } from "./scanner"; -export { default as MdSchedule } from "./schedule"; -export { default as MdSchool } from "./school"; -export { default as MdScreenLockLandscape } from "./screen-lock-landscape"; -export { default as MdScreenLockPortrait } from "./screen-lock-portrait"; -export { default as MdScreenLockRotation } from "./screen-lock-rotation"; -export { default as MdScreenRotation } from "./screen-rotation"; -export { default as MdScreenShare } from "./screen-share"; -export { default as MdSdCard } from "./sd-card"; -export { default as MdSdStorage } from "./sd-storage"; -export { default as MdSearch } from "./search"; -export { default as MdSecurity } from "./security"; -export { default as MdSelectAll } from "./select-all"; -export { default as MdSend } from "./send"; -export { default as MdSentimentDissatisfied } from "./sentiment-dissatisfied"; -export { default as MdSentimentNeutral } from "./sentiment-neutral"; -export { default as MdSentimentSatisfied } from "./sentiment-satisfied"; -export { default as MdSentimentVeryDissatisfied } from "./sentiment-very-dissatisfied"; -export { default as MdSentimentVerySatisfied } from "./sentiment-very-satisfied"; -export { default as MdSettingsApplications } from "./settings-applications"; -export { default as MdSettingsBackupRestore } from "./settings-backup-restore"; -export { default as MdSettingsBluetooth } from "./settings-bluetooth"; -export { default as MdSettingsBrightness } from "./settings-brightness"; -export { default as MdSettingsCell } from "./settings-cell"; -export { default as MdSettingsEthernet } from "./settings-ethernet"; -export { default as MdSettingsInputAntenna } from "./settings-input-antenna"; -export { default as MdSettingsInputComponent } from "./settings-input-component"; -export { default as MdSettingsInputComposite } from "./settings-input-composite"; -export { default as MdSettingsInputHdmi } from "./settings-input-hdmi"; -export { default as MdSettingsInputSvideo } from "./settings-input-svideo"; -export { default as MdSettingsOverscan } from "./settings-overscan"; -export { default as MdSettingsPhone } from "./settings-phone"; -export { default as MdSettingsPower } from "./settings-power"; -export { default as MdSettingsRemote } from "./settings-remote"; -export { default as MdSettingsSystemDaydream } from "./settings-system-daydream"; -export { default as MdSettingsVoice } from "./settings-voice"; -export { default as MdSettings } from "./settings"; -export { default as MdShare } from "./share"; -export { default as MdShopTwo } from "./shop-two"; -export { default as MdShop } from "./shop"; -export { default as MdShoppingBasket } from "./shopping-basket"; -export { default as MdShoppingCart } from "./shopping-cart"; -export { default as MdShortText } from "./short-text"; -export { default as MdShowChart } from "./show-chart"; -export { default as MdShuffle } from "./shuffle"; -export { default as MdSignalCellular4Bar } from "./signal-cellular-4-bar"; -export { default as MdSignalCellularConnectedNoInternet4Bar } from "./signal-cellular-connected-no-internet-4-bar"; -export { default as MdSignalCellularNoSim } from "./signal-cellular-no-sim"; -export { default as MdSignalCellularNull } from "./signal-cellular-null"; -export { default as MdSignalCellularOff } from "./signal-cellular-off"; -export { default as MdSignalWifi4BarLock } from "./signal-wifi-4-bar-lock"; -export { default as MdSignalWifi4Bar } from "./signal-wifi-4-bar"; -export { default as MdSignalWifiOff } from "./signal-wifi-off"; -export { default as MdSimCardAlert } from "./sim-card-alert"; -export { default as MdSimCard } from "./sim-card"; -export { default as MdSkipNext } from "./skip-next"; -export { default as MdSkipPrevious } from "./skip-previous"; -export { default as MdSlideshow } from "./slideshow"; -export { default as MdSlowMotionVideo } from "./slow-motion-video"; -export { default as MdSmartphone } from "./smartphone"; -export { default as MdSmokeFree } from "./smoke-free"; -export { default as MdSmokingRooms } from "./smoking-rooms"; -export { default as MdSmsFailed } from "./sms-failed"; -export { default as MdSms } from "./sms"; -export { default as MdSnooze } from "./snooze"; -export { default as MdSortByAlpha } from "./sort-by-alpha"; -export { default as MdSort } from "./sort"; -export { default as MdSpa } from "./spa"; -export { default as MdSpaceBar } from "./space-bar"; -export { default as MdSpeakerGroup } from "./speaker-group"; -export { default as MdSpeakerNotesOff } from "./speaker-notes-off"; -export { default as MdSpeakerNotes } from "./speaker-notes"; -export { default as MdSpeakerPhone } from "./speaker-phone"; -export { default as MdSpeaker } from "./speaker"; -export { default as MdSpellcheck } from "./spellcheck"; -export { default as MdStarBorder } from "./star-border"; -export { default as MdStarHalf } from "./star-half"; -export { default as MdStarOutline } from "./star-outline"; -export { default as MdStar } from "./star"; -export { default as MdStars } from "./stars"; -export { default as MdStayCurrentLandscape } from "./stay-current-landscape"; -export { default as MdStayCurrentPortrait } from "./stay-current-portrait"; -export { default as MdStayPrimaryLandscape } from "./stay-primary-landscape"; -export { default as MdStayPrimaryPortrait } from "./stay-primary-portrait"; -export { default as MdStopScreenShare } from "./stop-screen-share"; -export { default as MdStop } from "./stop"; -export { default as MdStorage } from "./storage"; -export { default as MdStoreMallDirectory } from "./store-mall-directory"; -export { default as MdStore } from "./store"; -export { default as MdStraighten } from "./straighten"; -export { default as MdStreetview } from "./streetview"; -export { default as MdStrikethroughS } from "./strikethrough-s"; -export { default as MdStyle } from "./style"; -export { default as MdSubdirectoryArrowLeft } from "./subdirectory-arrow-left"; -export { default as MdSubdirectoryArrowRight } from "./subdirectory-arrow-right"; -export { default as MdSubject } from "./subject"; -export { default as MdSubscriptions } from "./subscriptions"; -export { default as MdSubtitles } from "./subtitles"; -export { default as MdSubway } from "./subway"; -export { default as MdSupervisorAccount } from "./supervisor-account"; -export { default as MdSurroundSound } from "./surround-sound"; -export { default as MdSwapCalls } from "./swap-calls"; -export { default as MdSwapHoriz } from "./swap-horiz"; -export { default as MdSwapVert } from "./swap-vert"; -export { default as MdSwapVerticalCircle } from "./swap-vertical-circle"; -export { default as MdSwitchCamera } from "./switch-camera"; -export { default as MdSwitchVideo } from "./switch-video"; -export { default as MdSyncDisabled } from "./sync-disabled"; -export { default as MdSyncProblem } from "./sync-problem"; -export { default as MdSync } from "./sync"; -export { default as MdSystemUpdateAlt } from "./system-update-alt"; -export { default as MdSystemUpdate } from "./system-update"; -export { default as MdTabUnselected } from "./tab-unselected"; -export { default as MdTab } from "./tab"; -export { default as MdTabletAndroid } from "./tablet-android"; -export { default as MdTabletMac } from "./tablet-mac"; -export { default as MdTablet } from "./tablet"; -export { default as MdTagFaces } from "./tag-faces"; -export { default as MdTapAndPlay } from "./tap-and-play"; -export { default as MdTerrain } from "./terrain"; -export { default as MdTextFields } from "./text-fields"; -export { default as MdTextFormat } from "./text-format"; -export { default as MdTextsms } from "./textsms"; -export { default as MdTexture } from "./texture"; -export { default as MdTheaters } from "./theaters"; -export { default as MdThumbDown } from "./thumb-down"; -export { default as MdThumbUp } from "./thumb-up"; -export { default as MdThumbsUpDown } from "./thumbs-up-down"; -export { default as MdTimeToLeave } from "./time-to-leave"; -export { default as MdTimelapse } from "./timelapse"; -export { default as MdTimeline } from "./timeline"; -export { default as MdTimer10 } from "./timer-10"; -export { default as MdTimer3 } from "./timer-3"; -export { default as MdTimerOff } from "./timer-off"; -export { default as MdTimer } from "./timer"; -export { default as MdTitle } from "./title"; -export { default as MdToc } from "./toc"; -export { default as MdToday } from "./today"; -export { default as MdToll } from "./toll"; -export { default as MdTonality } from "./tonality"; -export { default as MdTouchApp } from "./touch-app"; -export { default as MdToys } from "./toys"; -export { default as MdTrackChanges } from "./track-changes"; -export { default as MdTraffic } from "./traffic"; -export { default as MdTrain } from "./train"; -export { default as MdTram } from "./tram"; -export { default as MdTransferWithinAStation } from "./transfer-within-a-station"; -export { default as MdTransform } from "./transform"; -export { default as MdTranslate } from "./translate"; -export { default as MdTrendingDown } from "./trending-down"; -export { default as MdTrendingFlat } from "./trending-flat"; -export { default as MdTrendingNeutral } from "./trending-neutral"; -export { default as MdTrendingUp } from "./trending-up"; -export { default as MdTune } from "./tune"; -export { default as MdTurnedInNot } from "./turned-in-not"; -export { default as MdTurnedIn } from "./turned-in"; -export { default as MdTv } from "./tv"; -export { default as MdUnarchive } from "./unarchive"; -export { default as MdUndo } from "./undo"; -export { default as MdUnfoldLess } from "./unfold-less"; -export { default as MdUnfoldMore } from "./unfold-more"; -export { default as MdUpdate } from "./update"; -export { default as MdUsb } from "./usb"; -export { default as MdVerifiedUser } from "./verified-user"; -export { default as MdVerticalAlignBottom } from "./vertical-align-bottom"; -export { default as MdVerticalAlignCenter } from "./vertical-align-center"; -export { default as MdVerticalAlignTop } from "./vertical-align-top"; -export { default as MdVibration } from "./vibration"; -export { default as MdVideoCall } from "./video-call"; -export { default as MdVideoCollection } from "./video-collection"; -export { default as MdVideoLabel } from "./video-label"; -export { default as MdVideoLibrary } from "./video-library"; -export { default as MdVideocamOff } from "./videocam-off"; -export { default as MdVideocam } from "./videocam"; -export { default as MdVideogameAsset } from "./videogame-asset"; -export { default as MdViewAgenda } from "./view-agenda"; -export { default as MdViewArray } from "./view-array"; -export { default as MdViewCarousel } from "./view-carousel"; -export { default as MdViewColumn } from "./view-column"; -export { default as MdViewComfortable } from "./view-comfortable"; -export { default as MdViewComfy } from "./view-comfy"; -export { default as MdViewCompact } from "./view-compact"; -export { default as MdViewDay } from "./view-day"; -export { default as MdViewHeadline } from "./view-headline"; -export { default as MdViewList } from "./view-list"; -export { default as MdViewModule } from "./view-module"; -export { default as MdViewQuilt } from "./view-quilt"; -export { default as MdViewStream } from "./view-stream"; -export { default as MdViewWeek } from "./view-week"; -export { default as MdVignette } from "./vignette"; -export { default as MdVisibilityOff } from "./visibility-off"; -export { default as MdVisibility } from "./visibility"; -export { default as MdVoiceChat } from "./voice-chat"; -export { default as MdVoicemail } from "./voicemail"; -export { default as MdVolumeDown } from "./volume-down"; -export { default as MdVolumeMute } from "./volume-mute"; -export { default as MdVolumeOff } from "./volume-off"; -export { default as MdVolumeUp } from "./volume-up"; -export { default as MdVpnKey } from "./vpn-key"; -export { default as MdVpnLock } from "./vpn-lock"; -export { default as MdWallpaper } from "./wallpaper"; -export { default as MdWarning } from "./warning"; -export { default as MdWatchLater } from "./watch-later"; -export { default as MdWatch } from "./watch"; -export { default as MdWbAuto } from "./wb-auto"; -export { default as MdWbCloudy } from "./wb-cloudy"; -export { default as MdWbIncandescent } from "./wb-incandescent"; -export { default as MdWbIridescent } from "./wb-iridescent"; -export { default as MdWbSunny } from "./wb-sunny"; -export { default as MdWc } from "./wc"; -export { default as MdWebAsset } from "./web-asset"; -export { default as MdWeb } from "./web"; -export { default as MdWeekend } from "./weekend"; -export { default as MdWhatshot } from "./whatshot"; -export { default as MdWidgets } from "./widgets"; -export { default as MdWifiLock } from "./wifi-lock"; -export { default as MdWifiTethering } from "./wifi-tethering"; -export { default as MdWifi } from "./wifi"; -export { default as MdWork } from "./work"; -export { default as MdWrapText } from "./wrap-text"; -export { default as MdYoutubeSearchedFor } from "./youtube-searched-for"; -export { default as MdZoomIn } from "./zoom-in"; -export { default as MdZoomOutMap } from "./zoom-out-map"; -export { default as MdZoomOut } from "./zoom-out"; +export { default as Md3dRotation } from "../../md/3d-rotation"; +export { default as MdAcUnit } from "../../md/ac-unit"; +export { default as MdAccessAlarm } from "../../md/access-alarm"; +export { default as MdAccessAlarms } from "../../md/access-alarms"; +export { default as MdAccessTime } from "../../md/access-time"; +export { default as MdAccessibility } from "../../md/accessibility"; +export { default as MdAccessible } from "../../md/accessible"; +export { default as MdAccountBalanceWallet } from "../../md/account-balance-wallet"; +export { default as MdAccountBalance } from "../../md/account-balance"; +export { default as MdAccountBox } from "../../md/account-box"; +export { default as MdAccountCircle } from "../../md/account-circle"; +export { default as MdAdb } from "../../md/adb"; +export { default as MdAddAPhoto } from "../../md/add-a-photo"; +export { default as MdAddAlarm } from "../../md/add-alarm"; +export { default as MdAddAlert } from "../../md/add-alert"; +export { default as MdAddBox } from "../../md/add-box"; +export { default as MdAddCircleOutline } from "../../md/add-circle-outline"; +export { default as MdAddCircle } from "../../md/add-circle"; +export { default as MdAddLocation } from "../../md/add-location"; +export { default as MdAddShoppingCart } from "../../md/add-shopping-cart"; +export { default as MdAddToPhotos } from "../../md/add-to-photos"; +export { default as MdAddToQueue } from "../../md/add-to-queue"; +export { default as MdAdd } from "../../md/add"; +export { default as MdAdjust } from "../../md/adjust"; +export { default as MdAirlineSeatFlatAngled } from "../../md/airline-seat-flat-angled"; +export { default as MdAirlineSeatFlat } from "../../md/airline-seat-flat"; +export { default as MdAirlineSeatIndividualSuite } from "../../md/airline-seat-individual-suite"; +export { default as MdAirlineSeatLegroomExtra } from "../../md/airline-seat-legroom-extra"; +export { default as MdAirlineSeatLegroomNormal } from "../../md/airline-seat-legroom-normal"; +export { default as MdAirlineSeatLegroomReduced } from "../../md/airline-seat-legroom-reduced"; +export { default as MdAirlineSeatReclineExtra } from "../../md/airline-seat-recline-extra"; +export { default as MdAirlineSeatReclineNormal } from "../../md/airline-seat-recline-normal"; +export { default as MdAirplanemodeActive } from "../../md/airplanemode-active"; +export { default as MdAirplanemodeInactive } from "../../md/airplanemode-inactive"; +export { default as MdAirplay } from "../../md/airplay"; +export { default as MdAirportShuttle } from "../../md/airport-shuttle"; +export { default as MdAlarmAdd } from "../../md/alarm-add"; +export { default as MdAlarmOff } from "../../md/alarm-off"; +export { default as MdAlarmOn } from "../../md/alarm-on"; +export { default as MdAlarm } from "../../md/alarm"; +export { default as MdAlbum } from "../../md/album"; +export { default as MdAllInclusive } from "../../md/all-inclusive"; +export { default as MdAllOut } from "../../md/all-out"; +export { default as MdAndroid } from "../../md/android"; +export { default as MdAnnouncement } from "../../md/announcement"; +export { default as MdApps } from "../../md/apps"; +export { default as MdArchive } from "../../md/archive"; +export { default as MdArrowBack } from "../../md/arrow-back"; +export { default as MdArrowDownward } from "../../md/arrow-downward"; +export { default as MdArrowDropDownCircle } from "../../md/arrow-drop-down-circle"; +export { default as MdArrowDropDown } from "../../md/arrow-drop-down"; +export { default as MdArrowDropUp } from "../../md/arrow-drop-up"; +export { default as MdArrowForward } from "../../md/arrow-forward"; +export { default as MdArrowUpward } from "../../md/arrow-upward"; +export { default as MdArtTrack } from "../../md/art-track"; +export { default as MdAspectRatio } from "../../md/aspect-ratio"; +export { default as MdAssessment } from "../../md/assessment"; +export { default as MdAssignmentInd } from "../../md/assignment-ind"; +export { default as MdAssignmentLate } from "../../md/assignment-late"; +export { default as MdAssignmentReturn } from "../../md/assignment-return"; +export { default as MdAssignmentReturned } from "../../md/assignment-returned"; +export { default as MdAssignmentTurnedIn } from "../../md/assignment-turned-in"; +export { default as MdAssignment } from "../../md/assignment"; +export { default as MdAssistantPhoto } from "../../md/assistant-photo"; +export { default as MdAssistant } from "../../md/assistant"; +export { default as MdAttachFile } from "../../md/attach-file"; +export { default as MdAttachMoney } from "../../md/attach-money"; +export { default as MdAttachment } from "../../md/attachment"; +export { default as MdAudiotrack } from "../../md/audiotrack"; +export { default as MdAutorenew } from "../../md/autorenew"; +export { default as MdAvTimer } from "../../md/av-timer"; +export { default as MdBackspace } from "../../md/backspace"; +export { default as MdBackup } from "../../md/backup"; +export { default as MdBatteryAlert } from "../../md/battery-alert"; +export { default as MdBatteryChargingFull } from "../../md/battery-charging-full"; +export { default as MdBatteryFull } from "../../md/battery-full"; +export { default as MdBatteryStd } from "../../md/battery-std"; +export { default as MdBatteryUnknown } from "../../md/battery-unknown"; +export { default as MdBeachAccess } from "../../md/beach-access"; +export { default as MdBeenhere } from "../../md/beenhere"; +export { default as MdBlock } from "../../md/block"; +export { default as MdBluetoothAudio } from "../../md/bluetooth-audio"; +export { default as MdBluetoothConnected } from "../../md/bluetooth-connected"; +export { default as MdBluetoothDisabled } from "../../md/bluetooth-disabled"; +export { default as MdBluetoothSearching } from "../../md/bluetooth-searching"; +export { default as MdBluetooth } from "../../md/bluetooth"; +export { default as MdBlurCircular } from "../../md/blur-circular"; +export { default as MdBlurLinear } from "../../md/blur-linear"; +export { default as MdBlurOff } from "../../md/blur-off"; +export { default as MdBlurOn } from "../../md/blur-on"; +export { default as MdBook } from "../../md/book"; +export { default as MdBookmarkOutline } from "../../md/bookmark-outline"; +export { default as MdBookmark } from "../../md/bookmark"; +export { default as MdBorderAll } from "../../md/border-all"; +export { default as MdBorderBottom } from "../../md/border-bottom"; +export { default as MdBorderClear } from "../../md/border-clear"; +export { default as MdBorderColor } from "../../md/border-color"; +export { default as MdBorderHorizontal } from "../../md/border-horizontal"; +export { default as MdBorderInner } from "../../md/border-inner"; +export { default as MdBorderLeft } from "../../md/border-left"; +export { default as MdBorderOuter } from "../../md/border-outer"; +export { default as MdBorderRight } from "../../md/border-right"; +export { default as MdBorderStyle } from "../../md/border-style"; +export { default as MdBorderTop } from "../../md/border-top"; +export { default as MdBorderVertical } from "../../md/border-vertical"; +export { default as MdBrandingWatermark } from "../../md/branding-watermark"; +export { default as MdBrightness1 } from "../../md/brightness-1"; +export { default as MdBrightness2 } from "../../md/brightness-2"; +export { default as MdBrightness3 } from "../../md/brightness-3"; +export { default as MdBrightness4 } from "../../md/brightness-4"; +export { default as MdBrightness5 } from "../../md/brightness-5"; +export { default as MdBrightness6 } from "../../md/brightness-6"; +export { default as MdBrightness7 } from "../../md/brightness-7"; +export { default as MdBrightnessAuto } from "../../md/brightness-auto"; +export { default as MdBrightnessHigh } from "../../md/brightness-high"; +export { default as MdBrightnessLow } from "../../md/brightness-low"; +export { default as MdBrightnessMedium } from "../../md/brightness-medium"; +export { default as MdBrokenImage } from "../../md/broken-image"; +export { default as MdBrush } from "../../md/brush"; +export { default as MdBubbleChart } from "../../md/bubble-chart"; +export { default as MdBugReport } from "../../md/bug-report"; +export { default as MdBuild } from "../../md/build"; +export { default as MdBurstMode } from "../../md/burst-mode"; +export { default as MdBusinessCenter } from "../../md/business-center"; +export { default as MdBusiness } from "../../md/business"; +export { default as MdCached } from "../../md/cached"; +export { default as MdCake } from "../../md/cake"; +export { default as MdCallEnd } from "../../md/call-end"; +export { default as MdCallMade } from "../../md/call-made"; +export { default as MdCallMerge } from "../../md/call-merge"; +export { default as MdCallMissedOutgoing } from "../../md/call-missed-outgoing"; +export { default as MdCallMissed } from "../../md/call-missed"; +export { default as MdCallReceived } from "../../md/call-received"; +export { default as MdCallSplit } from "../../md/call-split"; +export { default as MdCallToAction } from "../../md/call-to-action"; +export { default as MdCall } from "../../md/call"; +export { default as MdCameraAlt } from "../../md/camera-alt"; +export { default as MdCameraEnhance } from "../../md/camera-enhance"; +export { default as MdCameraFront } from "../../md/camera-front"; +export { default as MdCameraRear } from "../../md/camera-rear"; +export { default as MdCameraRoll } from "../../md/camera-roll"; +export { default as MdCamera } from "../../md/camera"; +export { default as MdCancel } from "../../md/cancel"; +export { default as MdCardGiftcard } from "../../md/card-giftcard"; +export { default as MdCardMembership } from "../../md/card-membership"; +export { default as MdCardTravel } from "../../md/card-travel"; +export { default as MdCasino } from "../../md/casino"; +export { default as MdCastConnected } from "../../md/cast-connected"; +export { default as MdCast } from "../../md/cast"; +export { default as MdCenterFocusStrong } from "../../md/center-focus-strong"; +export { default as MdCenterFocusWeak } from "../../md/center-focus-weak"; +export { default as MdChangeHistory } from "../../md/change-history"; +export { default as MdChatBubbleOutline } from "../../md/chat-bubble-outline"; +export { default as MdChatBubble } from "../../md/chat-bubble"; +export { default as MdChat } from "../../md/chat"; +export { default as MdCheckBoxOutlineBlank } from "../../md/check-box-outline-blank"; +export { default as MdCheckBox } from "../../md/check-box"; +export { default as MdCheckCircle } from "../../md/check-circle"; +export { default as MdCheck } from "../../md/check"; +export { default as MdChevronLeft } from "../../md/chevron-left"; +export { default as MdChevronRight } from "../../md/chevron-right"; +export { default as MdChildCare } from "../../md/child-care"; +export { default as MdChildFriendly } from "../../md/child-friendly"; +export { default as MdChromeReaderMode } from "../../md/chrome-reader-mode"; +export { default as MdClass } from "../../md/class"; +export { default as MdClearAll } from "../../md/clear-all"; +export { default as MdClear } from "../../md/clear"; +export { default as MdClose } from "../../md/close"; +export { default as MdClosedCaption } from "../../md/closed-caption"; +export { default as MdCloudCircle } from "../../md/cloud-circle"; +export { default as MdCloudDone } from "../../md/cloud-done"; +export { default as MdCloudDownload } from "../../md/cloud-download"; +export { default as MdCloudOff } from "../../md/cloud-off"; +export { default as MdCloudQueue } from "../../md/cloud-queue"; +export { default as MdCloudUpload } from "../../md/cloud-upload"; +export { default as MdCloud } from "../../md/cloud"; +export { default as MdCode } from "../../md/code"; +export { default as MdCollectionsBookmark } from "../../md/collections-bookmark"; +export { default as MdCollections } from "../../md/collections"; +export { default as MdColorLens } from "../../md/color-lens"; +export { default as MdColorize } from "../../md/colorize"; +export { default as MdComment } from "../../md/comment"; +export { default as MdCompareArrows } from "../../md/compare-arrows"; +export { default as MdCompare } from "../../md/compare"; +export { default as MdComputer } from "../../md/computer"; +export { default as MdConfirmationNumber } from "../../md/confirmation-number"; +export { default as MdContactMail } from "../../md/contact-mail"; +export { default as MdContactPhone } from "../../md/contact-phone"; +export { default as MdContacts } from "../../md/contacts"; +export { default as MdContentCopy } from "../../md/content-copy"; +export { default as MdContentCut } from "../../md/content-cut"; +export { default as MdContentPaste } from "../../md/content-paste"; +export { default as MdControlPointDuplicate } from "../../md/control-point-duplicate"; +export { default as MdControlPoint } from "../../md/control-point"; +export { default as MdCopyright } from "../../md/copyright"; +export { default as MdCreateNewFolder } from "../../md/create-new-folder"; +export { default as MdCreate } from "../../md/create"; +export { default as MdCreditCard } from "../../md/credit-card"; +export { default as MdCrop169 } from "../../md/crop-16-9"; +export { default as MdCrop32 } from "../../md/crop-3-2"; +export { default as MdCrop54 } from "../../md/crop-5-4"; +export { default as MdCrop75 } from "../../md/crop-7-5"; +export { default as MdCropDin } from "../../md/crop-din"; +export { default as MdCropFree } from "../../md/crop-free"; +export { default as MdCropLandscape } from "../../md/crop-landscape"; +export { default as MdCropOriginal } from "../../md/crop-original"; +export { default as MdCropPortrait } from "../../md/crop-portrait"; +export { default as MdCropRotate } from "../../md/crop-rotate"; +export { default as MdCropSquare } from "../../md/crop-square"; +export { default as MdCrop } from "../../md/crop"; +export { default as MdDashboard } from "../../md/dashboard"; +export { default as MdDataUsage } from "../../md/data-usage"; +export { default as MdDateRange } from "../../md/date-range"; +export { default as MdDehaze } from "../../md/dehaze"; +export { default as MdDeleteForever } from "../../md/delete-forever"; +export { default as MdDeleteSweep } from "../../md/delete-sweep"; +export { default as MdDelete } from "../../md/delete"; +export { default as MdDescription } from "../../md/description"; +export { default as MdDesktopMac } from "../../md/desktop-mac"; +export { default as MdDesktopWindows } from "../../md/desktop-windows"; +export { default as MdDetails } from "../../md/details"; +export { default as MdDeveloperBoard } from "../../md/developer-board"; +export { default as MdDeveloperMode } from "../../md/developer-mode"; +export { default as MdDeviceHub } from "../../md/device-hub"; +export { default as MdDevicesOther } from "../../md/devices-other"; +export { default as MdDevices } from "../../md/devices"; +export { default as MdDialerSip } from "../../md/dialer-sip"; +export { default as MdDialpad } from "../../md/dialpad"; +export { default as MdDirectionsBike } from "../../md/directions-bike"; +export { default as MdDirectionsBoat } from "../../md/directions-boat"; +export { default as MdDirectionsBus } from "../../md/directions-bus"; +export { default as MdDirectionsCar } from "../../md/directions-car"; +export { default as MdDirectionsFerry } from "../../md/directions-ferry"; +export { default as MdDirectionsRailway } from "../../md/directions-railway"; +export { default as MdDirectionsRun } from "../../md/directions-run"; +export { default as MdDirectionsSubway } from "../../md/directions-subway"; +export { default as MdDirectionsTransit } from "../../md/directions-transit"; +export { default as MdDirectionsWalk } from "../../md/directions-walk"; +export { default as MdDirections } from "../../md/directions"; +export { default as MdDiscFull } from "../../md/disc-full"; +export { default as MdDns } from "../../md/dns"; +export { default as MdDoNotDisturbAlt } from "../../md/do-not-disturb-alt"; +export { default as MdDoNotDisturbOff } from "../../md/do-not-disturb-off"; +export { default as MdDoNotDisturb } from "../../md/do-not-disturb"; +export { default as MdDock } from "../../md/dock"; +export { default as MdDomain } from "../../md/domain"; +export { default as MdDoneAll } from "../../md/done-all"; +export { default as MdDone } from "../../md/done"; +export { default as MdDonutLarge } from "../../md/donut-large"; +export { default as MdDonutSmall } from "../../md/donut-small"; +export { default as MdDrafts } from "../../md/drafts"; +export { default as MdDragHandle } from "../../md/drag-handle"; +export { default as MdDriveEta } from "../../md/drive-eta"; +export { default as MdDvr } from "../../md/dvr"; +export { default as MdEditLocation } from "../../md/edit-location"; +export { default as MdEdit } from "../../md/edit"; +export { default as MdEject } from "../../md/eject"; +export { default as MdEmail } from "../../md/email"; +export { default as MdEnhancedEncryption } from "../../md/enhanced-encryption"; +export { default as MdEqualizer } from "../../md/equalizer"; +export { default as MdErrorOutline } from "../../md/error-outline"; +export { default as MdError } from "../../md/error"; +export { default as MdEuroSymbol } from "../../md/euro-symbol"; +export { default as MdEvStation } from "../../md/ev-station"; +export { default as MdEventAvailable } from "../../md/event-available"; +export { default as MdEventBusy } from "../../md/event-busy"; +export { default as MdEventNote } from "../../md/event-note"; +export { default as MdEventSeat } from "../../md/event-seat"; +export { default as MdEvent } from "../../md/event"; +export { default as MdExitToApp } from "../../md/exit-to-app"; +export { default as MdExpandLess } from "../../md/expand-less"; +export { default as MdExpandMore } from "../../md/expand-more"; +export { default as MdExplicit } from "../../md/explicit"; +export { default as MdExplore } from "../../md/explore"; +export { default as MdExposureMinus1 } from "../../md/exposure-minus-1"; +export { default as MdExposureMinus2 } from "../../md/exposure-minus-2"; +export { default as MdExposureNeg1 } from "../../md/exposure-neg-1"; +export { default as MdExposureNeg2 } from "../../md/exposure-neg-2"; +export { default as MdExposurePlus1 } from "../../md/exposure-plus-1"; +export { default as MdExposurePlus2 } from "../../md/exposure-plus-2"; +export { default as MdExposureZero } from "../../md/exposure-zero"; +export { default as MdExposure } from "../../md/exposure"; +export { default as MdExtension } from "../../md/extension"; +export { default as MdFace } from "../../md/face"; +export { default as MdFastForward } from "../../md/fast-forward"; +export { default as MdFastRewind } from "../../md/fast-rewind"; +export { default as MdFavoriteBorder } from "../../md/favorite-border"; +export { default as MdFavoriteOutline } from "../../md/favorite-outline"; +export { default as MdFavorite } from "../../md/favorite"; +export { default as MdFeaturedPlayList } from "../../md/featured-play-list"; +export { default as MdFeaturedVideo } from "../../md/featured-video"; +export { default as MdFeedback } from "../../md/feedback"; +export { default as MdFiberDvr } from "../../md/fiber-dvr"; +export { default as MdFiberManualRecord } from "../../md/fiber-manual-record"; +export { default as MdFiberNew } from "../../md/fiber-new"; +export { default as MdFiberPin } from "../../md/fiber-pin"; +export { default as MdFiberSmartRecord } from "../../md/fiber-smart-record"; +export { default as MdFileDownload } from "../../md/file-download"; +export { default as MdFileUpload } from "../../md/file-upload"; +export { default as MdFilter1 } from "../../md/filter-1"; +export { default as MdFilter2 } from "../../md/filter-2"; +export { default as MdFilter3 } from "../../md/filter-3"; +export { default as MdFilter4 } from "../../md/filter-4"; +export { default as MdFilter5 } from "../../md/filter-5"; +export { default as MdFilter6 } from "../../md/filter-6"; +export { default as MdFilter7 } from "../../md/filter-7"; +export { default as MdFilter8 } from "../../md/filter-8"; +export { default as MdFilter9Plus } from "../../md/filter-9-plus"; +export { default as MdFilter9 } from "../../md/filter-9"; +export { default as MdFilterBAndW } from "../../md/filter-b-and-w"; +export { default as MdFilterCenterFocus } from "../../md/filter-center-focus"; +export { default as MdFilterDrama } from "../../md/filter-drama"; +export { default as MdFilterFrames } from "../../md/filter-frames"; +export { default as MdFilterHdr } from "../../md/filter-hdr"; +export { default as MdFilterList } from "../../md/filter-list"; +export { default as MdFilterNone } from "../../md/filter-none"; +export { default as MdFilterTiltShift } from "../../md/filter-tilt-shift"; +export { default as MdFilterVintage } from "../../md/filter-vintage"; +export { default as MdFilter } from "../../md/filter"; +export { default as MdFindInPage } from "../../md/find-in-page"; +export { default as MdFindReplace } from "../../md/find-replace"; +export { default as MdFingerprint } from "../../md/fingerprint"; +export { default as MdFirstPage } from "../../md/first-page"; +export { default as MdFitnessCenter } from "../../md/fitness-center"; +export { default as MdFlag } from "../../md/flag"; +export { default as MdFlare } from "../../md/flare"; +export { default as MdFlashAuto } from "../../md/flash-auto"; +export { default as MdFlashOff } from "../../md/flash-off"; +export { default as MdFlashOn } from "../../md/flash-on"; +export { default as MdFlightLand } from "../../md/flight-land"; +export { default as MdFlightTakeoff } from "../../md/flight-takeoff"; +export { default as MdFlight } from "../../md/flight"; +export { default as MdFlipToBack } from "../../md/flip-to-back"; +export { default as MdFlipToFront } from "../../md/flip-to-front"; +export { default as MdFlip } from "../../md/flip"; +export { default as MdFolderOpen } from "../../md/folder-open"; +export { default as MdFolderShared } from "../../md/folder-shared"; +export { default as MdFolderSpecial } from "../../md/folder-special"; +export { default as MdFolder } from "../../md/folder"; +export { default as MdFontDownload } from "../../md/font-download"; +export { default as MdFormatAlignCenter } from "../../md/format-align-center"; +export { default as MdFormatAlignJustify } from "../../md/format-align-justify"; +export { default as MdFormatAlignLeft } from "../../md/format-align-left"; +export { default as MdFormatAlignRight } from "../../md/format-align-right"; +export { default as MdFormatBold } from "../../md/format-bold"; +export { default as MdFormatClear } from "../../md/format-clear"; +export { default as MdFormatColorFill } from "../../md/format-color-fill"; +export { default as MdFormatColorReset } from "../../md/format-color-reset"; +export { default as MdFormatColorText } from "../../md/format-color-text"; +export { default as MdFormatIndentDecrease } from "../../md/format-indent-decrease"; +export { default as MdFormatIndentIncrease } from "../../md/format-indent-increase"; +export { default as MdFormatItalic } from "../../md/format-italic"; +export { default as MdFormatLineSpacing } from "../../md/format-line-spacing"; +export { default as MdFormatListBulleted } from "../../md/format-list-bulleted"; +export { default as MdFormatListNumbered } from "../../md/format-list-numbered"; +export { default as MdFormatPaint } from "../../md/format-paint"; +export { default as MdFormatQuote } from "../../md/format-quote"; +export { default as MdFormatShapes } from "../../md/format-shapes"; +export { default as MdFormatSize } from "../../md/format-size"; +export { default as MdFormatStrikethrough } from "../../md/format-strikethrough"; +export { default as MdFormatTextdirectionLToR } from "../../md/format-textdirection-l-to-r"; +export { default as MdFormatTextdirectionRToL } from "../../md/format-textdirection-r-to-l"; +export { default as MdFormatUnderlined } from "../../md/format-underlined"; +export { default as MdForum } from "../../md/forum"; +export { default as MdForward10 } from "../../md/forward-10"; +export { default as MdForward30 } from "../../md/forward-30"; +export { default as MdForward5 } from "../../md/forward-5"; +export { default as MdForward } from "../../md/forward"; +export { default as MdFreeBreakfast } from "../../md/free-breakfast"; +export { default as MdFullscreenExit } from "../../md/fullscreen-exit"; +export { default as MdFullscreen } from "../../md/fullscreen"; +export { default as MdFunctions } from "../../md/functions"; +export { default as MdGTranslate } from "../../md/g-translate"; +export { default as MdGamepad } from "../../md/gamepad"; +export { default as MdGames } from "../../md/games"; +export { default as MdGavel } from "../../md/gavel"; +export { default as MdGesture } from "../../md/gesture"; +export { default as MdGetApp } from "../../md/get-app"; +export { default as MdGif } from "../../md/gif"; +export { default as MdGoat } from "../../md/goat"; +export { default as MdGolfCourse } from "../../md/golf-course"; +export { default as MdGpsFixed } from "../../md/gps-fixed"; +export { default as MdGpsNotFixed } from "../../md/gps-not-fixed"; +export { default as MdGpsOff } from "../../md/gps-off"; +export { default as MdGrade } from "../../md/grade"; +export { default as MdGradient } from "../../md/gradient"; +export { default as MdGrain } from "../../md/grain"; +export { default as MdGraphicEq } from "../../md/graphic-eq"; +export { default as MdGridOff } from "../../md/grid-off"; +export { default as MdGridOn } from "../../md/grid-on"; +export { default as MdGroupAdd } from "../../md/group-add"; +export { default as MdGroupWork } from "../../md/group-work"; +export { default as MdGroup } from "../../md/group"; +export { default as MdHd } from "../../md/hd"; +export { default as MdHdrOff } from "../../md/hdr-off"; +export { default as MdHdrOn } from "../../md/hdr-on"; +export { default as MdHdrStrong } from "../../md/hdr-strong"; +export { default as MdHdrWeak } from "../../md/hdr-weak"; +export { default as MdHeadsetMic } from "../../md/headset-mic"; +export { default as MdHeadset } from "../../md/headset"; +export { default as MdHealing } from "../../md/healing"; +export { default as MdHearing } from "../../md/hearing"; +export { default as MdHelpOutline } from "../../md/help-outline"; +export { default as MdHelp } from "../../md/help"; +export { default as MdHighQuality } from "../../md/high-quality"; +export { default as MdHighlightOff } from "../../md/highlight-off"; +export { default as MdHighlightRemove } from "../../md/highlight-remove"; +export { default as MdHighlight } from "../../md/highlight"; +export { default as MdHistory } from "../../md/history"; +export { default as MdHome } from "../../md/home"; +export { default as MdHotTub } from "../../md/hot-tub"; +export { default as MdHotel } from "../../md/hotel"; +export { default as MdHourglassEmpty } from "../../md/hourglass-empty"; +export { default as MdHourglassFull } from "../../md/hourglass-full"; +export { default as MdHttp } from "../../md/http"; +export { default as MdHttps } from "../../md/https"; +export { default as MdImageAspectRatio } from "../../md/image-aspect-ratio"; +export { default as MdImage } from "../../md/image"; +export { default as MdImportContacts } from "../../md/import-contacts"; +export { default as MdImportExport } from "../../md/import-export"; +export { default as MdImportantDevices } from "../../md/important-devices"; +export { default as MdInbox } from "../../md/inbox"; +export { default as MdIndeterminateCheckBox } from "../../md/indeterminate-check-box"; +export { default as MdInfoOutline } from "../../md/info-outline"; +export { default as MdInfo } from "../../md/info"; +export { default as MdInput } from "../../md/input"; +export { default as MdInsertChart } from "../../md/insert-chart"; +export { default as MdInsertComment } from "../../md/insert-comment"; +export { default as MdInsertDriveFile } from "../../md/insert-drive-file"; +export { default as MdInsertEmoticon } from "../../md/insert-emoticon"; +export { default as MdInsertInvitation } from "../../md/insert-invitation"; +export { default as MdInsertLink } from "../../md/insert-link"; +export { default as MdInsertPhoto } from "../../md/insert-photo"; +export { default as MdInvertColorsOff } from "../../md/invert-colors-off"; +export { default as MdInvertColorsOn } from "../../md/invert-colors-on"; +export { default as MdInvertColors } from "../../md/invert-colors"; +export { default as MdIso } from "../../md/iso"; +export { default as MdKeyboardArrowDown } from "../../md/keyboard-arrow-down"; +export { default as MdKeyboardArrowLeft } from "../../md/keyboard-arrow-left"; +export { default as MdKeyboardArrowRight } from "../../md/keyboard-arrow-right"; +export { default as MdKeyboardArrowUp } from "../../md/keyboard-arrow-up"; +export { default as MdKeyboardBackspace } from "../../md/keyboard-backspace"; +export { default as MdKeyboardCapslock } from "../../md/keyboard-capslock"; +export { default as MdKeyboardControl } from "../../md/keyboard-control"; +export { default as MdKeyboardHide } from "../../md/keyboard-hide"; +export { default as MdKeyboardReturn } from "../../md/keyboard-return"; +export { default as MdKeyboardTab } from "../../md/keyboard-tab"; +export { default as MdKeyboardVoice } from "../../md/keyboard-voice"; +export { default as MdKeyboard } from "../../md/keyboard"; +export { default as MdKitchen } from "../../md/kitchen"; +export { default as MdLabelOutline } from "../../md/label-outline"; +export { default as MdLabel } from "../../md/label"; +export { default as MdLandscape } from "../../md/landscape"; +export { default as MdLanguage } from "../../md/language"; +export { default as MdLaptopChromebook } from "../../md/laptop-chromebook"; +export { default as MdLaptopMac } from "../../md/laptop-mac"; +export { default as MdLaptopWindows } from "../../md/laptop-windows"; +export { default as MdLaptop } from "../../md/laptop"; +export { default as MdLastPage } from "../../md/last-page"; +export { default as MdLaunch } from "../../md/launch"; +export { default as MdLayersClear } from "../../md/layers-clear"; +export { default as MdLayers } from "../../md/layers"; +export { default as MdLeakAdd } from "../../md/leak-add"; +export { default as MdLeakRemove } from "../../md/leak-remove"; +export { default as MdLens } from "../../md/lens"; +export { default as MdLibraryAdd } from "../../md/library-add"; +export { default as MdLibraryBooks } from "../../md/library-books"; +export { default as MdLibraryMusic } from "../../md/library-music"; +export { default as MdLightbulbOutline } from "../../md/lightbulb-outline"; +export { default as MdLineStyle } from "../../md/line-style"; +export { default as MdLineWeight } from "../../md/line-weight"; +export { default as MdLinearScale } from "../../md/linear-scale"; +export { default as MdLink } from "../../md/link"; +export { default as MdLinkedCamera } from "../../md/linked-camera"; +export { default as MdList } from "../../md/list"; +export { default as MdLiveHelp } from "../../md/live-help"; +export { default as MdLiveTv } from "../../md/live-tv"; +export { default as MdLocalAirport } from "../../md/local-airport"; +export { default as MdLocalAtm } from "../../md/local-atm"; +export { default as MdLocalAttraction } from "../../md/local-attraction"; +export { default as MdLocalBar } from "../../md/local-bar"; +export { default as MdLocalCafe } from "../../md/local-cafe"; +export { default as MdLocalCarWash } from "../../md/local-car-wash"; +export { default as MdLocalConvenienceStore } from "../../md/local-convenience-store"; +export { default as MdLocalDrink } from "../../md/local-drink"; +export { default as MdLocalFlorist } from "../../md/local-florist"; +export { default as MdLocalGasStation } from "../../md/local-gas-station"; +export { default as MdLocalGroceryStore } from "../../md/local-grocery-store"; +export { default as MdLocalHospital } from "../../md/local-hospital"; +export { default as MdLocalHotel } from "../../md/local-hotel"; +export { default as MdLocalLaundryService } from "../../md/local-laundry-service"; +export { default as MdLocalLibrary } from "../../md/local-library"; +export { default as MdLocalMall } from "../../md/local-mall"; +export { default as MdLocalMovies } from "../../md/local-movies"; +export { default as MdLocalOffer } from "../../md/local-offer"; +export { default as MdLocalParking } from "../../md/local-parking"; +export { default as MdLocalPharmacy } from "../../md/local-pharmacy"; +export { default as MdLocalPhone } from "../../md/local-phone"; +export { default as MdLocalPizza } from "../../md/local-pizza"; +export { default as MdLocalPlay } from "../../md/local-play"; +export { default as MdLocalPostOffice } from "../../md/local-post-office"; +export { default as MdLocalPrintShop } from "../../md/local-print-shop"; +export { default as MdLocalRestaurant } from "../../md/local-restaurant"; +export { default as MdLocalSee } from "../../md/local-see"; +export { default as MdLocalShipping } from "../../md/local-shipping"; +export { default as MdLocalTaxi } from "../../md/local-taxi"; +export { default as MdLocationCity } from "../../md/location-city"; +export { default as MdLocationDisabled } from "../../md/location-disabled"; +export { default as MdLocationHistory } from "../../md/location-history"; +export { default as MdLocationOff } from "../../md/location-off"; +export { default as MdLocationOn } from "../../md/location-on"; +export { default as MdLocationSearching } from "../../md/location-searching"; +export { default as MdLockOpen } from "../../md/lock-open"; +export { default as MdLockOutline } from "../../md/lock-outline"; +export { default as MdLock } from "../../md/lock"; +export { default as MdLooks3 } from "../../md/looks-3"; +export { default as MdLooks4 } from "../../md/looks-4"; +export { default as MdLooks5 } from "../../md/looks-5"; +export { default as MdLooks6 } from "../../md/looks-6"; +export { default as MdLooksOne } from "../../md/looks-one"; +export { default as MdLooksTwo } from "../../md/looks-two"; +export { default as MdLooks } from "../../md/looks"; +export { default as MdLoop } from "../../md/loop"; +export { default as MdLoupe } from "../../md/loupe"; +export { default as MdLowPriority } from "../../md/low-priority"; +export { default as MdLoyalty } from "../../md/loyalty"; +export { default as MdMailOutline } from "../../md/mail-outline"; +export { default as MdMail } from "../../md/mail"; +export { default as MdMap } from "../../md/map"; +export { default as MdMarkunreadMailbox } from "../../md/markunread-mailbox"; +export { default as MdMarkunread } from "../../md/markunread"; +export { default as MdMemory } from "../../md/memory"; +export { default as MdMenu } from "../../md/menu"; +export { default as MdMergeType } from "../../md/merge-type"; +export { default as MdMessage } from "../../md/message"; +export { default as MdMicNone } from "../../md/mic-none"; +export { default as MdMicOff } from "../../md/mic-off"; +export { default as MdMic } from "../../md/mic"; +export { default as MdMms } from "../../md/mms"; +export { default as MdModeComment } from "../../md/mode-comment"; +export { default as MdModeEdit } from "../../md/mode-edit"; +export { default as MdMonetizationOn } from "../../md/monetization-on"; +export { default as MdMoneyOff } from "../../md/money-off"; +export { default as MdMonochromePhotos } from "../../md/monochrome-photos"; +export { default as MdMoodBad } from "../../md/mood-bad"; +export { default as MdMood } from "../../md/mood"; +export { default as MdMoreHoriz } from "../../md/more-horiz"; +export { default as MdMoreVert } from "../../md/more-vert"; +export { default as MdMore } from "../../md/more"; +export { default as MdMotorcycle } from "../../md/motorcycle"; +export { default as MdMouse } from "../../md/mouse"; +export { default as MdMoveToInbox } from "../../md/move-to-inbox"; +export { default as MdMovieCreation } from "../../md/movie-creation"; +export { default as MdMovieFilter } from "../../md/movie-filter"; +export { default as MdMovie } from "../../md/movie"; +export { default as MdMultilineChart } from "../../md/multiline-chart"; +export { default as MdMusicNote } from "../../md/music-note"; +export { default as MdMusicVideo } from "../../md/music-video"; +export { default as MdMyLocation } from "../../md/my-location"; +export { default as MdNaturePeople } from "../../md/nature-people"; +export { default as MdNature } from "../../md/nature"; +export { default as MdNavigateBefore } from "../../md/navigate-before"; +export { default as MdNavigateNext } from "../../md/navigate-next"; +export { default as MdNavigation } from "../../md/navigation"; +export { default as MdNearMe } from "../../md/near-me"; +export { default as MdNetworkCell } from "../../md/network-cell"; +export { default as MdNetworkCheck } from "../../md/network-check"; +export { default as MdNetworkLocked } from "../../md/network-locked"; +export { default as MdNetworkWifi } from "../../md/network-wifi"; +export { default as MdNewReleases } from "../../md/new-releases"; +export { default as MdNextWeek } from "../../md/next-week"; +export { default as MdNfc } from "../../md/nfc"; +export { default as MdNoEncryption } from "../../md/no-encryption"; +export { default as MdNoSim } from "../../md/no-sim"; +export { default as MdNotInterested } from "../../md/not-interested"; +export { default as MdNoteAdd } from "../../md/note-add"; +export { default as MdNote } from "../../md/note"; +export { default as MdNotificationsActive } from "../../md/notifications-active"; +export { default as MdNotificationsNone } from "../../md/notifications-none"; +export { default as MdNotificationsOff } from "../../md/notifications-off"; +export { default as MdNotificationsPaused } from "../../md/notifications-paused"; +export { default as MdNotifications } from "../../md/notifications"; +export { default as MdNowWallpaper } from "../../md/now-wallpaper"; +export { default as MdNowWidgets } from "../../md/now-widgets"; +export { default as MdOfflinePin } from "../../md/offline-pin"; +export { default as MdOndemandVideo } from "../../md/ondemand-video"; +export { default as MdOpacity } from "../../md/opacity"; +export { default as MdOpenInBrowser } from "../../md/open-in-browser"; +export { default as MdOpenInNew } from "../../md/open-in-new"; +export { default as MdOpenWith } from "../../md/open-with"; +export { default as MdPages } from "../../md/pages"; +export { default as MdPageview } from "../../md/pageview"; +export { default as MdPalette } from "../../md/palette"; +export { default as MdPanTool } from "../../md/pan-tool"; +export { default as MdPanoramaFishEye } from "../../md/panorama-fish-eye"; +export { default as MdPanoramaHorizontal } from "../../md/panorama-horizontal"; +export { default as MdPanoramaVertical } from "../../md/panorama-vertical"; +export { default as MdPanoramaWideAngle } from "../../md/panorama-wide-angle"; +export { default as MdPanorama } from "../../md/panorama"; +export { default as MdPartyMode } from "../../md/party-mode"; +export { default as MdPauseCircleFilled } from "../../md/pause-circle-filled"; +export { default as MdPauseCircleOutline } from "../../md/pause-circle-outline"; +export { default as MdPause } from "../../md/pause"; +export { default as MdPayment } from "../../md/payment"; +export { default as MdPeopleOutline } from "../../md/people-outline"; +export { default as MdPeople } from "../../md/people"; +export { default as MdPermCameraMic } from "../../md/perm-camera-mic"; +export { default as MdPermContactCalendar } from "../../md/perm-contact-calendar"; +export { default as MdPermDataSetting } from "../../md/perm-data-setting"; +export { default as MdPermDeviceInformation } from "../../md/perm-device-information"; +export { default as MdPermIdentity } from "../../md/perm-identity"; +export { default as MdPermMedia } from "../../md/perm-media"; +export { default as MdPermPhoneMsg } from "../../md/perm-phone-msg"; +export { default as MdPermScanWifi } from "../../md/perm-scan-wifi"; +export { default as MdPersonAdd } from "../../md/person-add"; +export { default as MdPersonOutline } from "../../md/person-outline"; +export { default as MdPersonPinCircle } from "../../md/person-pin-circle"; +export { default as MdPersonPin } from "../../md/person-pin"; +export { default as MdPerson } from "../../md/person"; +export { default as MdPersonalVideo } from "../../md/personal-video"; +export { default as MdPets } from "../../md/pets"; +export { default as MdPhoneAndroid } from "../../md/phone-android"; +export { default as MdPhoneBluetoothSpeaker } from "../../md/phone-bluetooth-speaker"; +export { default as MdPhoneForwarded } from "../../md/phone-forwarded"; +export { default as MdPhoneInTalk } from "../../md/phone-in-talk"; +export { default as MdPhoneIphone } from "../../md/phone-iphone"; +export { default as MdPhoneLocked } from "../../md/phone-locked"; +export { default as MdPhoneMissed } from "../../md/phone-missed"; +export { default as MdPhonePaused } from "../../md/phone-paused"; +export { default as MdPhone } from "../../md/phone"; +export { default as MdPhonelinkErase } from "../../md/phonelink-erase"; +export { default as MdPhonelinkLock } from "../../md/phonelink-lock"; +export { default as MdPhonelinkOff } from "../../md/phonelink-off"; +export { default as MdPhonelinkRing } from "../../md/phonelink-ring"; +export { default as MdPhonelinkSetup } from "../../md/phonelink-setup"; +export { default as MdPhonelink } from "../../md/phonelink"; +export { default as MdPhotoAlbum } from "../../md/photo-album"; +export { default as MdPhotoCamera } from "../../md/photo-camera"; +export { default as MdPhotoFilter } from "../../md/photo-filter"; +export { default as MdPhotoLibrary } from "../../md/photo-library"; +export { default as MdPhotoSizeSelectActual } from "../../md/photo-size-select-actual"; +export { default as MdPhotoSizeSelectLarge } from "../../md/photo-size-select-large"; +export { default as MdPhotoSizeSelectSmall } from "../../md/photo-size-select-small"; +export { default as MdPhoto } from "../../md/photo"; +export { default as MdPictureAsPdf } from "../../md/picture-as-pdf"; +export { default as MdPictureInPictureAlt } from "../../md/picture-in-picture-alt"; +export { default as MdPictureInPicture } from "../../md/picture-in-picture"; +export { default as MdPieChartOutlined } from "../../md/pie-chart-outlined"; +export { default as MdPieChart } from "../../md/pie-chart"; +export { default as MdPinDrop } from "../../md/pin-drop"; +export { default as MdPlace } from "../../md/place"; +export { default as MdPlayArrow } from "../../md/play-arrow"; +export { default as MdPlayCircleFilled } from "../../md/play-circle-filled"; +export { default as MdPlayCircleOutline } from "../../md/play-circle-outline"; +export { default as MdPlayForWork } from "../../md/play-for-work"; +export { default as MdPlaylistAddCheck } from "../../md/playlist-add-check"; +export { default as MdPlaylistAdd } from "../../md/playlist-add"; +export { default as MdPlaylistPlay } from "../../md/playlist-play"; +export { default as MdPlusOne } from "../../md/plus-one"; +export { default as MdPoll } from "../../md/poll"; +export { default as MdPolymer } from "../../md/polymer"; +export { default as MdPool } from "../../md/pool"; +export { default as MdPortableWifiOff } from "../../md/portable-wifi-off"; +export { default as MdPortrait } from "../../md/portrait"; +export { default as MdPowerInput } from "../../md/power-input"; +export { default as MdPowerSettingsNew } from "../../md/power-settings-new"; +export { default as MdPower } from "../../md/power"; +export { default as MdPregnantWoman } from "../../md/pregnant-woman"; +export { default as MdPresentToAll } from "../../md/present-to-all"; +export { default as MdPrint } from "../../md/print"; +export { default as MdPriorityHigh } from "../../md/priority-high"; +export { default as MdPublic } from "../../md/public"; +export { default as MdPublish } from "../../md/publish"; +export { default as MdQueryBuilder } from "../../md/query-builder"; +export { default as MdQuestionAnswer } from "../../md/question-answer"; +export { default as MdQueueMusic } from "../../md/queue-music"; +export { default as MdQueuePlayNext } from "../../md/queue-play-next"; +export { default as MdQueue } from "../../md/queue"; +export { default as MdRadioButtonChecked } from "../../md/radio-button-checked"; +export { default as MdRadioButtonUnchecked } from "../../md/radio-button-unchecked"; +export { default as MdRadio } from "../../md/radio"; +export { default as MdRateReview } from "../../md/rate-review"; +export { default as MdReceipt } from "../../md/receipt"; +export { default as MdRecentActors } from "../../md/recent-actors"; +export { default as MdRecordVoiceOver } from "../../md/record-voice-over"; +export { default as MdRedeem } from "../../md/redeem"; +export { default as MdRedo } from "../../md/redo"; +export { default as MdRefresh } from "../../md/refresh"; +export { default as MdRemoveCircleOutline } from "../../md/remove-circle-outline"; +export { default as MdRemoveCircle } from "../../md/remove-circle"; +export { default as MdRemoveFromQueue } from "../../md/remove-from-queue"; +export { default as MdRemoveRedEye } from "../../md/remove-red-eye"; +export { default as MdRemoveShoppingCart } from "../../md/remove-shopping-cart"; +export { default as MdRemove } from "../../md/remove"; +export { default as MdReorder } from "../../md/reorder"; +export { default as MdRepeatOne } from "../../md/repeat-one"; +export { default as MdRepeat } from "../../md/repeat"; +export { default as MdReplay10 } from "../../md/replay-10"; +export { default as MdReplay30 } from "../../md/replay-30"; +export { default as MdReplay5 } from "../../md/replay-5"; +export { default as MdReplay } from "../../md/replay"; +export { default as MdReplyAll } from "../../md/reply-all"; +export { default as MdReply } from "../../md/reply"; +export { default as MdReportProblem } from "../../md/report-problem"; +export { default as MdReport } from "../../md/report"; +export { default as MdRestaurantMenu } from "../../md/restaurant-menu"; +export { default as MdRestaurant } from "../../md/restaurant"; +export { default as MdRestorePage } from "../../md/restore-page"; +export { default as MdRestore } from "../../md/restore"; +export { default as MdRingVolume } from "../../md/ring-volume"; +export { default as MdRoomService } from "../../md/room-service"; +export { default as MdRoom } from "../../md/room"; +export { default as MdRotate90DegreesCcw } from "../../md/rotate-90-degrees-ccw"; +export { default as MdRotateLeft } from "../../md/rotate-left"; +export { default as MdRotateRight } from "../../md/rotate-right"; +export { default as MdRoundedCorner } from "../../md/rounded-corner"; +export { default as MdRouter } from "../../md/router"; +export { default as MdRowing } from "../../md/rowing"; +export { default as MdRssFeed } from "../../md/rss-feed"; +export { default as MdRvHookup } from "../../md/rv-hookup"; +export { default as MdSatellite } from "../../md/satellite"; +export { default as MdSave } from "../../md/save"; +export { default as MdScanner } from "../../md/scanner"; +export { default as MdSchedule } from "../../md/schedule"; +export { default as MdSchool } from "../../md/school"; +export { default as MdScreenLockLandscape } from "../../md/screen-lock-landscape"; +export { default as MdScreenLockPortrait } from "../../md/screen-lock-portrait"; +export { default as MdScreenLockRotation } from "../../md/screen-lock-rotation"; +export { default as MdScreenRotation } from "../../md/screen-rotation"; +export { default as MdScreenShare } from "../../md/screen-share"; +export { default as MdSdCard } from "../../md/sd-card"; +export { default as MdSdStorage } from "../../md/sd-storage"; +export { default as MdSearch } from "../../md/search"; +export { default as MdSecurity } from "../../md/security"; +export { default as MdSelectAll } from "../../md/select-all"; +export { default as MdSend } from "../../md/send"; +export { default as MdSentimentDissatisfied } from "../../md/sentiment-dissatisfied"; +export { default as MdSentimentNeutral } from "../../md/sentiment-neutral"; +export { default as MdSentimentSatisfied } from "../../md/sentiment-satisfied"; +export { default as MdSentimentVeryDissatisfied } from "../../md/sentiment-very-dissatisfied"; +export { default as MdSentimentVerySatisfied } from "../../md/sentiment-very-satisfied"; +export { default as MdSettingsApplications } from "../../md/settings-applications"; +export { default as MdSettingsBackupRestore } from "../../md/settings-backup-restore"; +export { default as MdSettingsBluetooth } from "../../md/settings-bluetooth"; +export { default as MdSettingsBrightness } from "../../md/settings-brightness"; +export { default as MdSettingsCell } from "../../md/settings-cell"; +export { default as MdSettingsEthernet } from "../../md/settings-ethernet"; +export { default as MdSettingsInputAntenna } from "../../md/settings-input-antenna"; +export { default as MdSettingsInputComponent } from "../../md/settings-input-component"; +export { default as MdSettingsInputComposite } from "../../md/settings-input-composite"; +export { default as MdSettingsInputHdmi } from "../../md/settings-input-hdmi"; +export { default as MdSettingsInputSvideo } from "../../md/settings-input-svideo"; +export { default as MdSettingsOverscan } from "../../md/settings-overscan"; +export { default as MdSettingsPhone } from "../../md/settings-phone"; +export { default as MdSettingsPower } from "../../md/settings-power"; +export { default as MdSettingsRemote } from "../../md/settings-remote"; +export { default as MdSettingsSystemDaydream } from "../../md/settings-system-daydream"; +export { default as MdSettingsVoice } from "../../md/settings-voice"; +export { default as MdSettings } from "../../md/settings"; +export { default as MdShare } from "../../md/share"; +export { default as MdShopTwo } from "../../md/shop-two"; +export { default as MdShop } from "../../md/shop"; +export { default as MdShoppingBasket } from "../../md/shopping-basket"; +export { default as MdShoppingCart } from "../../md/shopping-cart"; +export { default as MdShortText } from "../../md/short-text"; +export { default as MdShowChart } from "../../md/show-chart"; +export { default as MdShuffle } from "../../md/shuffle"; +export { default as MdSignalCellular4Bar } from "../../md/signal-cellular-4-bar"; +export { default as MdSignalCellularConnectedNoInternet4Bar } from "../../md/signal-cellular-connected-no-internet-4-bar"; +export { default as MdSignalCellularNoSim } from "../../md/signal-cellular-no-sim"; +export { default as MdSignalCellularNull } from "../../md/signal-cellular-null"; +export { default as MdSignalCellularOff } from "../../md/signal-cellular-off"; +export { default as MdSignalWifi4BarLock } from "../../md/signal-wifi-4-bar-lock"; +export { default as MdSignalWifi4Bar } from "../../md/signal-wifi-4-bar"; +export { default as MdSignalWifiOff } from "../../md/signal-wifi-off"; +export { default as MdSimCardAlert } from "../../md/sim-card-alert"; +export { default as MdSimCard } from "../../md/sim-card"; +export { default as MdSkipNext } from "../../md/skip-next"; +export { default as MdSkipPrevious } from "../../md/skip-previous"; +export { default as MdSlideshow } from "../../md/slideshow"; +export { default as MdSlowMotionVideo } from "../../md/slow-motion-video"; +export { default as MdSmartphone } from "../../md/smartphone"; +export { default as MdSmokeFree } from "../../md/smoke-free"; +export { default as MdSmokingRooms } from "../../md/smoking-rooms"; +export { default as MdSmsFailed } from "../../md/sms-failed"; +export { default as MdSms } from "../../md/sms"; +export { default as MdSnooze } from "../../md/snooze"; +export { default as MdSortByAlpha } from "../../md/sort-by-alpha"; +export { default as MdSort } from "../../md/sort"; +export { default as MdSpa } from "../../md/spa"; +export { default as MdSpaceBar } from "../../md/space-bar"; +export { default as MdSpeakerGroup } from "../../md/speaker-group"; +export { default as MdSpeakerNotesOff } from "../../md/speaker-notes-off"; +export { default as MdSpeakerNotes } from "../../md/speaker-notes"; +export { default as MdSpeakerPhone } from "../../md/speaker-phone"; +export { default as MdSpeaker } from "../../md/speaker"; +export { default as MdSpellcheck } from "../../md/spellcheck"; +export { default as MdStarBorder } from "../../md/star-border"; +export { default as MdStarHalf } from "../../md/star-half"; +export { default as MdStarOutline } from "../../md/star-outline"; +export { default as MdStar } from "../../md/star"; +export { default as MdStars } from "../../md/stars"; +export { default as MdStayCurrentLandscape } from "../../md/stay-current-landscape"; +export { default as MdStayCurrentPortrait } from "../../md/stay-current-portrait"; +export { default as MdStayPrimaryLandscape } from "../../md/stay-primary-landscape"; +export { default as MdStayPrimaryPortrait } from "../../md/stay-primary-portrait"; +export { default as MdStopScreenShare } from "../../md/stop-screen-share"; +export { default as MdStop } from "../../md/stop"; +export { default as MdStorage } from "../../md/storage"; +export { default as MdStoreMallDirectory } from "../../md/store-mall-directory"; +export { default as MdStore } from "../../md/store"; +export { default as MdStraighten } from "../../md/straighten"; +export { default as MdStreetview } from "../../md/streetview"; +export { default as MdStrikethroughS } from "../../md/strikethrough-s"; +export { default as MdStyle } from "../../md/style"; +export { default as MdSubdirectoryArrowLeft } from "../../md/subdirectory-arrow-left"; +export { default as MdSubdirectoryArrowRight } from "../../md/subdirectory-arrow-right"; +export { default as MdSubject } from "../../md/subject"; +export { default as MdSubscriptions } from "../../md/subscriptions"; +export { default as MdSubtitles } from "../../md/subtitles"; +export { default as MdSubway } from "../../md/subway"; +export { default as MdSupervisorAccount } from "../../md/supervisor-account"; +export { default as MdSurroundSound } from "../../md/surround-sound"; +export { default as MdSwapCalls } from "../../md/swap-calls"; +export { default as MdSwapHoriz } from "../../md/swap-horiz"; +export { default as MdSwapVert } from "../../md/swap-vert"; +export { default as MdSwapVerticalCircle } from "../../md/swap-vertical-circle"; +export { default as MdSwitchCamera } from "../../md/switch-camera"; +export { default as MdSwitchVideo } from "../../md/switch-video"; +export { default as MdSyncDisabled } from "../../md/sync-disabled"; +export { default as MdSyncProblem } from "../../md/sync-problem"; +export { default as MdSync } from "../../md/sync"; +export { default as MdSystemUpdateAlt } from "../../md/system-update-alt"; +export { default as MdSystemUpdate } from "../../md/system-update"; +export { default as MdTabUnselected } from "../../md/tab-unselected"; +export { default as MdTab } from "../../md/tab"; +export { default as MdTabletAndroid } from "../../md/tablet-android"; +export { default as MdTabletMac } from "../../md/tablet-mac"; +export { default as MdTablet } from "../../md/tablet"; +export { default as MdTagFaces } from "../../md/tag-faces"; +export { default as MdTapAndPlay } from "../../md/tap-and-play"; +export { default as MdTerrain } from "../../md/terrain"; +export { default as MdTextFields } from "../../md/text-fields"; +export { default as MdTextFormat } from "../../md/text-format"; +export { default as MdTextsms } from "../../md/textsms"; +export { default as MdTexture } from "../../md/texture"; +export { default as MdTheaters } from "../../md/theaters"; +export { default as MdThumbDown } from "../../md/thumb-down"; +export { default as MdThumbUp } from "../../md/thumb-up"; +export { default as MdThumbsUpDown } from "../../md/thumbs-up-down"; +export { default as MdTimeToLeave } from "../../md/time-to-leave"; +export { default as MdTimelapse } from "../../md/timelapse"; +export { default as MdTimeline } from "../../md/timeline"; +export { default as MdTimer10 } from "../../md/timer-10"; +export { default as MdTimer3 } from "../../md/timer-3"; +export { default as MdTimerOff } from "../../md/timer-off"; +export { default as MdTimer } from "../../md/timer"; +export { default as MdTitle } from "../../md/title"; +export { default as MdToc } from "../../md/toc"; +export { default as MdToday } from "../../md/today"; +export { default as MdToll } from "../../md/toll"; +export { default as MdTonality } from "../../md/tonality"; +export { default as MdTouchApp } from "../../md/touch-app"; +export { default as MdToys } from "../../md/toys"; +export { default as MdTrackChanges } from "../../md/track-changes"; +export { default as MdTraffic } from "../../md/traffic"; +export { default as MdTrain } from "../../md/train"; +export { default as MdTram } from "../../md/tram"; +export { default as MdTransferWithinAStation } from "../../md/transfer-within-a-station"; +export { default as MdTransform } from "../../md/transform"; +export { default as MdTranslate } from "../../md/translate"; +export { default as MdTrendingDown } from "../../md/trending-down"; +export { default as MdTrendingFlat } from "../../md/trending-flat"; +export { default as MdTrendingNeutral } from "../../md/trending-neutral"; +export { default as MdTrendingUp } from "../../md/trending-up"; +export { default as MdTune } from "../../md/tune"; +export { default as MdTurnedInNot } from "../../md/turned-in-not"; +export { default as MdTurnedIn } from "../../md/turned-in"; +export { default as MdTv } from "../../md/tv"; +export { default as MdUnarchive } from "../../md/unarchive"; +export { default as MdUndo } from "../../md/undo"; +export { default as MdUnfoldLess } from "../../md/unfold-less"; +export { default as MdUnfoldMore } from "../../md/unfold-more"; +export { default as MdUpdate } from "../../md/update"; +export { default as MdUsb } from "../../md/usb"; +export { default as MdVerifiedUser } from "../../md/verified-user"; +export { default as MdVerticalAlignBottom } from "../../md/vertical-align-bottom"; +export { default as MdVerticalAlignCenter } from "../../md/vertical-align-center"; +export { default as MdVerticalAlignTop } from "../../md/vertical-align-top"; +export { default as MdVibration } from "../../md/vibration"; +export { default as MdVideoCall } from "../../md/video-call"; +export { default as MdVideoCollection } from "../../md/video-collection"; +export { default as MdVideoLabel } from "../../md/video-label"; +export { default as MdVideoLibrary } from "../../md/video-library"; +export { default as MdVideocamOff } from "../../md/videocam-off"; +export { default as MdVideocam } from "../../md/videocam"; +export { default as MdVideogameAsset } from "../../md/videogame-asset"; +export { default as MdViewAgenda } from "../../md/view-agenda"; +export { default as MdViewArray } from "../../md/view-array"; +export { default as MdViewCarousel } from "../../md/view-carousel"; +export { default as MdViewColumn } from "../../md/view-column"; +export { default as MdViewComfortable } from "../../md/view-comfortable"; +export { default as MdViewComfy } from "../../md/view-comfy"; +export { default as MdViewCompact } from "../../md/view-compact"; +export { default as MdViewDay } from "../../md/view-day"; +export { default as MdViewHeadline } from "../../md/view-headline"; +export { default as MdViewList } from "../../md/view-list"; +export { default as MdViewModule } from "../../md/view-module"; +export { default as MdViewQuilt } from "../../md/view-quilt"; +export { default as MdViewStream } from "../../md/view-stream"; +export { default as MdViewWeek } from "../../md/view-week"; +export { default as MdVignette } from "../../md/vignette"; +export { default as MdVisibilityOff } from "../../md/visibility-off"; +export { default as MdVisibility } from "../../md/visibility"; +export { default as MdVoiceChat } from "../../md/voice-chat"; +export { default as MdVoicemail } from "../../md/voicemail"; +export { default as MdVolumeDown } from "../../md/volume-down"; +export { default as MdVolumeMute } from "../../md/volume-mute"; +export { default as MdVolumeOff } from "../../md/volume-off"; +export { default as MdVolumeUp } from "../../md/volume-up"; +export { default as MdVpnKey } from "../../md/vpn-key"; +export { default as MdVpnLock } from "../../md/vpn-lock"; +export { default as MdWallpaper } from "../../md/wallpaper"; +export { default as MdWarning } from "../../md/warning"; +export { default as MdWatchLater } from "../../md/watch-later"; +export { default as MdWatch } from "../../md/watch"; +export { default as MdWbAuto } from "../../md/wb-auto"; +export { default as MdWbCloudy } from "../../md/wb-cloudy"; +export { default as MdWbIncandescent } from "../../md/wb-incandescent"; +export { default as MdWbIridescent } from "../../md/wb-iridescent"; +export { default as MdWbSunny } from "../../md/wb-sunny"; +export { default as MdWc } from "../../md/wc"; +export { default as MdWebAsset } from "../../md/web-asset"; +export { default as MdWeb } from "../../md/web"; +export { default as MdWeekend } from "../../md/weekend"; +export { default as MdWhatshot } from "../../md/whatshot"; +export { default as MdWidgets } from "../../md/widgets"; +export { default as MdWifiLock } from "../../md/wifi-lock"; +export { default as MdWifiTethering } from "../../md/wifi-tethering"; +export { default as MdWifi } from "../../md/wifi"; +export { default as MdWork } from "../../md/work"; +export { default as MdWrapText } from "../../md/wrap-text"; +export { default as MdYoutubeSearchedFor } from "../../md/youtube-searched-for"; +export { default as MdZoomIn } from "../../md/zoom-in"; +export { default as MdZoomOutMap } from "../../md/zoom-out-map"; +export { default as MdZoomOut } from "../../md/zoom-out"; diff --git a/types/react-icons/lib/md/info-outline.d.ts b/types/react-icons/lib/md/info-outline.d.ts index 6ac0500f92..5637358a59 100644 --- a/types/react-icons/lib/md/info-outline.d.ts +++ b/types/react-icons/lib/md/info-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdInfoOutline extends React.Component { } +declare class MdInfoOutline extends React.Component { } +export = MdInfoOutline; diff --git a/types/react-icons/lib/md/info.d.ts b/types/react-icons/lib/md/info.d.ts index c16ac1add7..4ab7948826 100644 --- a/types/react-icons/lib/md/info.d.ts +++ b/types/react-icons/lib/md/info.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdInfo extends React.Component { } +declare class MdInfo extends React.Component { } +export = MdInfo; diff --git a/types/react-icons/lib/md/input.d.ts b/types/react-icons/lib/md/input.d.ts index 1d620b29c8..8b3f4b415a 100644 --- a/types/react-icons/lib/md/input.d.ts +++ b/types/react-icons/lib/md/input.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdInput extends React.Component { } +declare class MdInput extends React.Component { } +export = MdInput; diff --git a/types/react-icons/lib/md/insert-chart.d.ts b/types/react-icons/lib/md/insert-chart.d.ts index c3f11f837a..3b8d6c13e2 100644 --- a/types/react-icons/lib/md/insert-chart.d.ts +++ b/types/react-icons/lib/md/insert-chart.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdInsertChart extends React.Component { } +declare class MdInsertChart extends React.Component { } +export = MdInsertChart; diff --git a/types/react-icons/lib/md/insert-comment.d.ts b/types/react-icons/lib/md/insert-comment.d.ts index 4e9435029c..1d2ad77e16 100644 --- a/types/react-icons/lib/md/insert-comment.d.ts +++ b/types/react-icons/lib/md/insert-comment.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdInsertComment extends React.Component { } +declare class MdInsertComment extends React.Component { } +export = MdInsertComment; diff --git a/types/react-icons/lib/md/insert-drive-file.d.ts b/types/react-icons/lib/md/insert-drive-file.d.ts index cbef175f50..7e20744ad2 100644 --- a/types/react-icons/lib/md/insert-drive-file.d.ts +++ b/types/react-icons/lib/md/insert-drive-file.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdInsertDriveFile extends React.Component { } +declare class MdInsertDriveFile extends React.Component { } +export = MdInsertDriveFile; diff --git a/types/react-icons/lib/md/insert-emoticon.d.ts b/types/react-icons/lib/md/insert-emoticon.d.ts index 5cce434cd9..c535f13a36 100644 --- a/types/react-icons/lib/md/insert-emoticon.d.ts +++ b/types/react-icons/lib/md/insert-emoticon.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdInsertEmoticon extends React.Component { } +declare class MdInsertEmoticon extends React.Component { } +export = MdInsertEmoticon; diff --git a/types/react-icons/lib/md/insert-invitation.d.ts b/types/react-icons/lib/md/insert-invitation.d.ts index 827e395a8d..04c3e098c6 100644 --- a/types/react-icons/lib/md/insert-invitation.d.ts +++ b/types/react-icons/lib/md/insert-invitation.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdInsertInvitation extends React.Component { } +declare class MdInsertInvitation extends React.Component { } +export = MdInsertInvitation; diff --git a/types/react-icons/lib/md/insert-link.d.ts b/types/react-icons/lib/md/insert-link.d.ts index 31aa91358d..83e4e38712 100644 --- a/types/react-icons/lib/md/insert-link.d.ts +++ b/types/react-icons/lib/md/insert-link.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdInsertLink extends React.Component { } +declare class MdInsertLink extends React.Component { } +export = MdInsertLink; diff --git a/types/react-icons/lib/md/insert-photo.d.ts b/types/react-icons/lib/md/insert-photo.d.ts index 7b023ca75f..ad583ecebc 100644 --- a/types/react-icons/lib/md/insert-photo.d.ts +++ b/types/react-icons/lib/md/insert-photo.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdInsertPhoto extends React.Component { } +declare class MdInsertPhoto extends React.Component { } +export = MdInsertPhoto; diff --git a/types/react-icons/lib/md/invert-colors-off.d.ts b/types/react-icons/lib/md/invert-colors-off.d.ts index bf08ac105a..0e0ae7da7f 100644 --- a/types/react-icons/lib/md/invert-colors-off.d.ts +++ b/types/react-icons/lib/md/invert-colors-off.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdInvertColorsOff extends React.Component { } +declare class MdInvertColorsOff extends React.Component { } +export = MdInvertColorsOff; diff --git a/types/react-icons/lib/md/invert-colors-on.d.ts b/types/react-icons/lib/md/invert-colors-on.d.ts index 41d3a30370..318cbdd0b3 100644 --- a/types/react-icons/lib/md/invert-colors-on.d.ts +++ b/types/react-icons/lib/md/invert-colors-on.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdInvertColorsOn extends React.Component { } +declare class MdInvertColorsOn extends React.Component { } +export = MdInvertColorsOn; diff --git a/types/react-icons/lib/md/invert-colors.d.ts b/types/react-icons/lib/md/invert-colors.d.ts index 6700ad9028..b07fef302d 100644 --- a/types/react-icons/lib/md/invert-colors.d.ts +++ b/types/react-icons/lib/md/invert-colors.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdInvertColors extends React.Component { } +declare class MdInvertColors extends React.Component { } +export = MdInvertColors; diff --git a/types/react-icons/lib/md/iso.d.ts b/types/react-icons/lib/md/iso.d.ts index 13e1d8da6c..e0dc190337 100644 --- a/types/react-icons/lib/md/iso.d.ts +++ b/types/react-icons/lib/md/iso.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdIso extends React.Component { } +declare class MdIso extends React.Component { } +export = MdIso; diff --git a/types/react-icons/lib/md/keyboard-arrow-down.d.ts b/types/react-icons/lib/md/keyboard-arrow-down.d.ts index 2aa3a06de4..e1ada8591b 100644 --- a/types/react-icons/lib/md/keyboard-arrow-down.d.ts +++ b/types/react-icons/lib/md/keyboard-arrow-down.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdKeyboardArrowDown extends React.Component { } +declare class MdKeyboardArrowDown extends React.Component { } +export = MdKeyboardArrowDown; diff --git a/types/react-icons/lib/md/keyboard-arrow-left.d.ts b/types/react-icons/lib/md/keyboard-arrow-left.d.ts index 6ab86f3bdc..9a617de836 100644 --- a/types/react-icons/lib/md/keyboard-arrow-left.d.ts +++ b/types/react-icons/lib/md/keyboard-arrow-left.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdKeyboardArrowLeft extends React.Component { } +declare class MdKeyboardArrowLeft extends React.Component { } +export = MdKeyboardArrowLeft; diff --git a/types/react-icons/lib/md/keyboard-arrow-right.d.ts b/types/react-icons/lib/md/keyboard-arrow-right.d.ts index 157f9cd453..e6e5f92245 100644 --- a/types/react-icons/lib/md/keyboard-arrow-right.d.ts +++ b/types/react-icons/lib/md/keyboard-arrow-right.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdKeyboardArrowRight extends React.Component { } +declare class MdKeyboardArrowRight extends React.Component { } +export = MdKeyboardArrowRight; diff --git a/types/react-icons/lib/md/keyboard-arrow-up.d.ts b/types/react-icons/lib/md/keyboard-arrow-up.d.ts index be668094a8..55dc2486e3 100644 --- a/types/react-icons/lib/md/keyboard-arrow-up.d.ts +++ b/types/react-icons/lib/md/keyboard-arrow-up.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdKeyboardArrowUp extends React.Component { } +declare class MdKeyboardArrowUp extends React.Component { } +export = MdKeyboardArrowUp; diff --git a/types/react-icons/lib/md/keyboard-backspace.d.ts b/types/react-icons/lib/md/keyboard-backspace.d.ts index 361b3eacb6..5d04cd78c9 100644 --- a/types/react-icons/lib/md/keyboard-backspace.d.ts +++ b/types/react-icons/lib/md/keyboard-backspace.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdKeyboardBackspace extends React.Component { } +declare class MdKeyboardBackspace extends React.Component { } +export = MdKeyboardBackspace; diff --git a/types/react-icons/lib/md/keyboard-capslock.d.ts b/types/react-icons/lib/md/keyboard-capslock.d.ts index e68fb04dd4..f4894cc8f5 100644 --- a/types/react-icons/lib/md/keyboard-capslock.d.ts +++ b/types/react-icons/lib/md/keyboard-capslock.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdKeyboardCapslock extends React.Component { } +declare class MdKeyboardCapslock extends React.Component { } +export = MdKeyboardCapslock; diff --git a/types/react-icons/lib/md/keyboard-control.d.ts b/types/react-icons/lib/md/keyboard-control.d.ts index 26a47f7942..83404a2333 100644 --- a/types/react-icons/lib/md/keyboard-control.d.ts +++ b/types/react-icons/lib/md/keyboard-control.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdKeyboardControl extends React.Component { } +declare class MdKeyboardControl extends React.Component { } +export = MdKeyboardControl; diff --git a/types/react-icons/lib/md/keyboard-hide.d.ts b/types/react-icons/lib/md/keyboard-hide.d.ts index 2bd9815962..99b49d804c 100644 --- a/types/react-icons/lib/md/keyboard-hide.d.ts +++ b/types/react-icons/lib/md/keyboard-hide.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdKeyboardHide extends React.Component { } +declare class MdKeyboardHide extends React.Component { } +export = MdKeyboardHide; diff --git a/types/react-icons/lib/md/keyboard-return.d.ts b/types/react-icons/lib/md/keyboard-return.d.ts index dcc67124f3..af2ed0a05f 100644 --- a/types/react-icons/lib/md/keyboard-return.d.ts +++ b/types/react-icons/lib/md/keyboard-return.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdKeyboardReturn extends React.Component { } +declare class MdKeyboardReturn extends React.Component { } +export = MdKeyboardReturn; diff --git a/types/react-icons/lib/md/keyboard-tab.d.ts b/types/react-icons/lib/md/keyboard-tab.d.ts index fc60cb1e9d..b28759381a 100644 --- a/types/react-icons/lib/md/keyboard-tab.d.ts +++ b/types/react-icons/lib/md/keyboard-tab.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdKeyboardTab extends React.Component { } +declare class MdKeyboardTab extends React.Component { } +export = MdKeyboardTab; diff --git a/types/react-icons/lib/md/keyboard-voice.d.ts b/types/react-icons/lib/md/keyboard-voice.d.ts index b0e8b84cef..6ffefcc90e 100644 --- a/types/react-icons/lib/md/keyboard-voice.d.ts +++ b/types/react-icons/lib/md/keyboard-voice.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdKeyboardVoice extends React.Component { } +declare class MdKeyboardVoice extends React.Component { } +export = MdKeyboardVoice; diff --git a/types/react-icons/lib/md/keyboard.d.ts b/types/react-icons/lib/md/keyboard.d.ts index c48881b8b4..cc3ea90276 100644 --- a/types/react-icons/lib/md/keyboard.d.ts +++ b/types/react-icons/lib/md/keyboard.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdKeyboard extends React.Component { } +declare class MdKeyboard extends React.Component { } +export = MdKeyboard; diff --git a/types/react-icons/lib/md/kitchen.d.ts b/types/react-icons/lib/md/kitchen.d.ts index 9da8c6f762..79d8c0fce3 100644 --- a/types/react-icons/lib/md/kitchen.d.ts +++ b/types/react-icons/lib/md/kitchen.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdKitchen extends React.Component { } +declare class MdKitchen extends React.Component { } +export = MdKitchen; diff --git a/types/react-icons/lib/md/label-outline.d.ts b/types/react-icons/lib/md/label-outline.d.ts index f8565aaac8..01ae937f15 100644 --- a/types/react-icons/lib/md/label-outline.d.ts +++ b/types/react-icons/lib/md/label-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdLabelOutline extends React.Component { } +declare class MdLabelOutline extends React.Component { } +export = MdLabelOutline; diff --git a/types/react-icons/lib/md/label.d.ts b/types/react-icons/lib/md/label.d.ts index 679636e231..774401589e 100644 --- a/types/react-icons/lib/md/label.d.ts +++ b/types/react-icons/lib/md/label.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdLabel extends React.Component { } +declare class MdLabel extends React.Component { } +export = MdLabel; diff --git a/types/react-icons/lib/md/landscape.d.ts b/types/react-icons/lib/md/landscape.d.ts index fb4502522b..6682f2674a 100644 --- a/types/react-icons/lib/md/landscape.d.ts +++ b/types/react-icons/lib/md/landscape.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdLandscape extends React.Component { } +declare class MdLandscape extends React.Component { } +export = MdLandscape; diff --git a/types/react-icons/lib/md/language.d.ts b/types/react-icons/lib/md/language.d.ts index a47388c654..e44dd9b1db 100644 --- a/types/react-icons/lib/md/language.d.ts +++ b/types/react-icons/lib/md/language.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdLanguage extends React.Component { } +declare class MdLanguage extends React.Component { } +export = MdLanguage; diff --git a/types/react-icons/lib/md/laptop-chromebook.d.ts b/types/react-icons/lib/md/laptop-chromebook.d.ts index d1f25cdc3b..b61654b7a0 100644 --- a/types/react-icons/lib/md/laptop-chromebook.d.ts +++ b/types/react-icons/lib/md/laptop-chromebook.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdLaptopChromebook extends React.Component { } +declare class MdLaptopChromebook extends React.Component { } +export = MdLaptopChromebook; diff --git a/types/react-icons/lib/md/laptop-mac.d.ts b/types/react-icons/lib/md/laptop-mac.d.ts index 25afe25920..47f2ea0bc7 100644 --- a/types/react-icons/lib/md/laptop-mac.d.ts +++ b/types/react-icons/lib/md/laptop-mac.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdLaptopMac extends React.Component { } +declare class MdLaptopMac extends React.Component { } +export = MdLaptopMac; diff --git a/types/react-icons/lib/md/laptop-windows.d.ts b/types/react-icons/lib/md/laptop-windows.d.ts index bd7441fea1..5b4fd277aa 100644 --- a/types/react-icons/lib/md/laptop-windows.d.ts +++ b/types/react-icons/lib/md/laptop-windows.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdLaptopWindows extends React.Component { } +declare class MdLaptopWindows extends React.Component { } +export = MdLaptopWindows; diff --git a/types/react-icons/lib/md/laptop.d.ts b/types/react-icons/lib/md/laptop.d.ts index 2510020e0c..adf918c456 100644 --- a/types/react-icons/lib/md/laptop.d.ts +++ b/types/react-icons/lib/md/laptop.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdLaptop extends React.Component { } +declare class MdLaptop extends React.Component { } +export = MdLaptop; diff --git a/types/react-icons/lib/md/last-page.d.ts b/types/react-icons/lib/md/last-page.d.ts index 162f94c0de..1b89fbe0b8 100644 --- a/types/react-icons/lib/md/last-page.d.ts +++ b/types/react-icons/lib/md/last-page.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdLastPage extends React.Component { } +declare class MdLastPage extends React.Component { } +export = MdLastPage; diff --git a/types/react-icons/lib/md/launch.d.ts b/types/react-icons/lib/md/launch.d.ts index 6bd2552cb3..20e5423921 100644 --- a/types/react-icons/lib/md/launch.d.ts +++ b/types/react-icons/lib/md/launch.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdLaunch extends React.Component { } +declare class MdLaunch extends React.Component { } +export = MdLaunch; diff --git a/types/react-icons/lib/md/layers-clear.d.ts b/types/react-icons/lib/md/layers-clear.d.ts index 136d4ab797..1d9e3d1a79 100644 --- a/types/react-icons/lib/md/layers-clear.d.ts +++ b/types/react-icons/lib/md/layers-clear.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdLayersClear extends React.Component { } +declare class MdLayersClear extends React.Component { } +export = MdLayersClear; diff --git a/types/react-icons/lib/md/layers.d.ts b/types/react-icons/lib/md/layers.d.ts index d0f2ce7f78..0afbb40d68 100644 --- a/types/react-icons/lib/md/layers.d.ts +++ b/types/react-icons/lib/md/layers.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdLayers extends React.Component { } +declare class MdLayers extends React.Component { } +export = MdLayers; diff --git a/types/react-icons/lib/md/leak-add.d.ts b/types/react-icons/lib/md/leak-add.d.ts index 95235a4a7d..5a2c27ded3 100644 --- a/types/react-icons/lib/md/leak-add.d.ts +++ b/types/react-icons/lib/md/leak-add.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdLeakAdd extends React.Component { } +declare class MdLeakAdd extends React.Component { } +export = MdLeakAdd; diff --git a/types/react-icons/lib/md/leak-remove.d.ts b/types/react-icons/lib/md/leak-remove.d.ts index 024072b36a..bb39e31d50 100644 --- a/types/react-icons/lib/md/leak-remove.d.ts +++ b/types/react-icons/lib/md/leak-remove.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdLeakRemove extends React.Component { } +declare class MdLeakRemove extends React.Component { } +export = MdLeakRemove; diff --git a/types/react-icons/lib/md/lens.d.ts b/types/react-icons/lib/md/lens.d.ts index c5d535560e..489ca62554 100644 --- a/types/react-icons/lib/md/lens.d.ts +++ b/types/react-icons/lib/md/lens.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdLens extends React.Component { } +declare class MdLens extends React.Component { } +export = MdLens; diff --git a/types/react-icons/lib/md/library-add.d.ts b/types/react-icons/lib/md/library-add.d.ts index 0d1e45a2d1..9e1e8b2501 100644 --- a/types/react-icons/lib/md/library-add.d.ts +++ b/types/react-icons/lib/md/library-add.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdLibraryAdd extends React.Component { } +declare class MdLibraryAdd extends React.Component { } +export = MdLibraryAdd; diff --git a/types/react-icons/lib/md/library-books.d.ts b/types/react-icons/lib/md/library-books.d.ts index 4cd9469a0f..bacbf10d03 100644 --- a/types/react-icons/lib/md/library-books.d.ts +++ b/types/react-icons/lib/md/library-books.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdLibraryBooks extends React.Component { } +declare class MdLibraryBooks extends React.Component { } +export = MdLibraryBooks; diff --git a/types/react-icons/lib/md/library-music.d.ts b/types/react-icons/lib/md/library-music.d.ts index 7f25717011..11c6c8bf2b 100644 --- a/types/react-icons/lib/md/library-music.d.ts +++ b/types/react-icons/lib/md/library-music.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdLibraryMusic extends React.Component { } +declare class MdLibraryMusic extends React.Component { } +export = MdLibraryMusic; diff --git a/types/react-icons/lib/md/lightbulb-outline.d.ts b/types/react-icons/lib/md/lightbulb-outline.d.ts index 013344155b..8a8548dc97 100644 --- a/types/react-icons/lib/md/lightbulb-outline.d.ts +++ b/types/react-icons/lib/md/lightbulb-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdLightbulbOutline extends React.Component { } +declare class MdLightbulbOutline extends React.Component { } +export = MdLightbulbOutline; diff --git a/types/react-icons/lib/md/line-style.d.ts b/types/react-icons/lib/md/line-style.d.ts index 01562f8705..41264e8a88 100644 --- a/types/react-icons/lib/md/line-style.d.ts +++ b/types/react-icons/lib/md/line-style.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdLineStyle extends React.Component { } +declare class MdLineStyle extends React.Component { } +export = MdLineStyle; diff --git a/types/react-icons/lib/md/line-weight.d.ts b/types/react-icons/lib/md/line-weight.d.ts index 2eaa15b7df..b46fd1b8d2 100644 --- a/types/react-icons/lib/md/line-weight.d.ts +++ b/types/react-icons/lib/md/line-weight.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdLineWeight extends React.Component { } +declare class MdLineWeight extends React.Component { } +export = MdLineWeight; diff --git a/types/react-icons/lib/md/linear-scale.d.ts b/types/react-icons/lib/md/linear-scale.d.ts index e4f2196d46..98fc794688 100644 --- a/types/react-icons/lib/md/linear-scale.d.ts +++ b/types/react-icons/lib/md/linear-scale.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdLinearScale extends React.Component { } +declare class MdLinearScale extends React.Component { } +export = MdLinearScale; diff --git a/types/react-icons/lib/md/link.d.ts b/types/react-icons/lib/md/link.d.ts index 229a79db5d..1611d9af64 100644 --- a/types/react-icons/lib/md/link.d.ts +++ b/types/react-icons/lib/md/link.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdLink extends React.Component { } +declare class MdLink extends React.Component { } +export = MdLink; diff --git a/types/react-icons/lib/md/linked-camera.d.ts b/types/react-icons/lib/md/linked-camera.d.ts index 04f1059032..3bd2a1c26d 100644 --- a/types/react-icons/lib/md/linked-camera.d.ts +++ b/types/react-icons/lib/md/linked-camera.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdLinkedCamera extends React.Component { } +declare class MdLinkedCamera extends React.Component { } +export = MdLinkedCamera; diff --git a/types/react-icons/lib/md/list.d.ts b/types/react-icons/lib/md/list.d.ts index ee687771dd..2403875d33 100644 --- a/types/react-icons/lib/md/list.d.ts +++ b/types/react-icons/lib/md/list.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdList extends React.Component { } +declare class MdList extends React.Component { } +export = MdList; diff --git a/types/react-icons/lib/md/live-help.d.ts b/types/react-icons/lib/md/live-help.d.ts index baa4ecfcea..9b174fe970 100644 --- a/types/react-icons/lib/md/live-help.d.ts +++ b/types/react-icons/lib/md/live-help.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdLiveHelp extends React.Component { } +declare class MdLiveHelp extends React.Component { } +export = MdLiveHelp; diff --git a/types/react-icons/lib/md/live-tv.d.ts b/types/react-icons/lib/md/live-tv.d.ts index 4b6700c6d7..86557bb3ce 100644 --- a/types/react-icons/lib/md/live-tv.d.ts +++ b/types/react-icons/lib/md/live-tv.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdLiveTv extends React.Component { } +declare class MdLiveTv extends React.Component { } +export = MdLiveTv; diff --git a/types/react-icons/lib/md/local-airport.d.ts b/types/react-icons/lib/md/local-airport.d.ts index c5cbc96784..1f5d71515e 100644 --- a/types/react-icons/lib/md/local-airport.d.ts +++ b/types/react-icons/lib/md/local-airport.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdLocalAirport extends React.Component { } +declare class MdLocalAirport extends React.Component { } +export = MdLocalAirport; diff --git a/types/react-icons/lib/md/local-atm.d.ts b/types/react-icons/lib/md/local-atm.d.ts index c3aebab325..b9396fbddc 100644 --- a/types/react-icons/lib/md/local-atm.d.ts +++ b/types/react-icons/lib/md/local-atm.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdLocalAtm extends React.Component { } +declare class MdLocalAtm extends React.Component { } +export = MdLocalAtm; diff --git a/types/react-icons/lib/md/local-attraction.d.ts b/types/react-icons/lib/md/local-attraction.d.ts index 4cb4733fc6..3c6ba7842b 100644 --- a/types/react-icons/lib/md/local-attraction.d.ts +++ b/types/react-icons/lib/md/local-attraction.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdLocalAttraction extends React.Component { } +declare class MdLocalAttraction extends React.Component { } +export = MdLocalAttraction; diff --git a/types/react-icons/lib/md/local-bar.d.ts b/types/react-icons/lib/md/local-bar.d.ts index 384cf80708..63886e78cb 100644 --- a/types/react-icons/lib/md/local-bar.d.ts +++ b/types/react-icons/lib/md/local-bar.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdLocalBar extends React.Component { } +declare class MdLocalBar extends React.Component { } +export = MdLocalBar; diff --git a/types/react-icons/lib/md/local-cafe.d.ts b/types/react-icons/lib/md/local-cafe.d.ts index 1edc27271a..eb9e80ad77 100644 --- a/types/react-icons/lib/md/local-cafe.d.ts +++ b/types/react-icons/lib/md/local-cafe.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdLocalCafe extends React.Component { } +declare class MdLocalCafe extends React.Component { } +export = MdLocalCafe; diff --git a/types/react-icons/lib/md/local-car-wash.d.ts b/types/react-icons/lib/md/local-car-wash.d.ts index 2f8e3424d0..fb4b04b228 100644 --- a/types/react-icons/lib/md/local-car-wash.d.ts +++ b/types/react-icons/lib/md/local-car-wash.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdLocalCarWash extends React.Component { } +declare class MdLocalCarWash extends React.Component { } +export = MdLocalCarWash; diff --git a/types/react-icons/lib/md/local-convenience-store.d.ts b/types/react-icons/lib/md/local-convenience-store.d.ts index 60ba5980c5..926d257832 100644 --- a/types/react-icons/lib/md/local-convenience-store.d.ts +++ b/types/react-icons/lib/md/local-convenience-store.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdLocalConvenienceStore extends React.Component { } +declare class MdLocalConvenienceStore extends React.Component { } +export = MdLocalConvenienceStore; diff --git a/types/react-icons/lib/md/local-drink.d.ts b/types/react-icons/lib/md/local-drink.d.ts index dd0cf01d42..d175a7f0cf 100644 --- a/types/react-icons/lib/md/local-drink.d.ts +++ b/types/react-icons/lib/md/local-drink.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdLocalDrink extends React.Component { } +declare class MdLocalDrink extends React.Component { } +export = MdLocalDrink; diff --git a/types/react-icons/lib/md/local-florist.d.ts b/types/react-icons/lib/md/local-florist.d.ts index 6744bc8c3a..217b879173 100644 --- a/types/react-icons/lib/md/local-florist.d.ts +++ b/types/react-icons/lib/md/local-florist.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdLocalFlorist extends React.Component { } +declare class MdLocalFlorist extends React.Component { } +export = MdLocalFlorist; diff --git a/types/react-icons/lib/md/local-gas-station.d.ts b/types/react-icons/lib/md/local-gas-station.d.ts index 6c6b7df0a9..21a7d020cb 100644 --- a/types/react-icons/lib/md/local-gas-station.d.ts +++ b/types/react-icons/lib/md/local-gas-station.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdLocalGasStation extends React.Component { } +declare class MdLocalGasStation extends React.Component { } +export = MdLocalGasStation; diff --git a/types/react-icons/lib/md/local-grocery-store.d.ts b/types/react-icons/lib/md/local-grocery-store.d.ts index 74be93825c..ee055fbc1b 100644 --- a/types/react-icons/lib/md/local-grocery-store.d.ts +++ b/types/react-icons/lib/md/local-grocery-store.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdLocalGroceryStore extends React.Component { } +declare class MdLocalGroceryStore extends React.Component { } +export = MdLocalGroceryStore; diff --git a/types/react-icons/lib/md/local-hospital.d.ts b/types/react-icons/lib/md/local-hospital.d.ts index 3f3d22c1f1..acce7088cd 100644 --- a/types/react-icons/lib/md/local-hospital.d.ts +++ b/types/react-icons/lib/md/local-hospital.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdLocalHospital extends React.Component { } +declare class MdLocalHospital extends React.Component { } +export = MdLocalHospital; diff --git a/types/react-icons/lib/md/local-hotel.d.ts b/types/react-icons/lib/md/local-hotel.d.ts index 72aa8116e3..378a7557ee 100644 --- a/types/react-icons/lib/md/local-hotel.d.ts +++ b/types/react-icons/lib/md/local-hotel.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdLocalHotel extends React.Component { } +declare class MdLocalHotel extends React.Component { } +export = MdLocalHotel; diff --git a/types/react-icons/lib/md/local-laundry-service.d.ts b/types/react-icons/lib/md/local-laundry-service.d.ts index bcddaa57b7..9353692a5c 100644 --- a/types/react-icons/lib/md/local-laundry-service.d.ts +++ b/types/react-icons/lib/md/local-laundry-service.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdLocalLaundryService extends React.Component { } +declare class MdLocalLaundryService extends React.Component { } +export = MdLocalLaundryService; diff --git a/types/react-icons/lib/md/local-library.d.ts b/types/react-icons/lib/md/local-library.d.ts index 66345dec71..1d455aa856 100644 --- a/types/react-icons/lib/md/local-library.d.ts +++ b/types/react-icons/lib/md/local-library.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdLocalLibrary extends React.Component { } +declare class MdLocalLibrary extends React.Component { } +export = MdLocalLibrary; diff --git a/types/react-icons/lib/md/local-mall.d.ts b/types/react-icons/lib/md/local-mall.d.ts index 4bc0bd9a6c..46dbdcb894 100644 --- a/types/react-icons/lib/md/local-mall.d.ts +++ b/types/react-icons/lib/md/local-mall.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdLocalMall extends React.Component { } +declare class MdLocalMall extends React.Component { } +export = MdLocalMall; diff --git a/types/react-icons/lib/md/local-movies.d.ts b/types/react-icons/lib/md/local-movies.d.ts index fd585253f4..58d62b2909 100644 --- a/types/react-icons/lib/md/local-movies.d.ts +++ b/types/react-icons/lib/md/local-movies.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdLocalMovies extends React.Component { } +declare class MdLocalMovies extends React.Component { } +export = MdLocalMovies; diff --git a/types/react-icons/lib/md/local-offer.d.ts b/types/react-icons/lib/md/local-offer.d.ts index d68ec81829..f137a10bb1 100644 --- a/types/react-icons/lib/md/local-offer.d.ts +++ b/types/react-icons/lib/md/local-offer.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdLocalOffer extends React.Component { } +declare class MdLocalOffer extends React.Component { } +export = MdLocalOffer; diff --git a/types/react-icons/lib/md/local-parking.d.ts b/types/react-icons/lib/md/local-parking.d.ts index 962af582ac..01d4ff13cf 100644 --- a/types/react-icons/lib/md/local-parking.d.ts +++ b/types/react-icons/lib/md/local-parking.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdLocalParking extends React.Component { } +declare class MdLocalParking extends React.Component { } +export = MdLocalParking; diff --git a/types/react-icons/lib/md/local-pharmacy.d.ts b/types/react-icons/lib/md/local-pharmacy.d.ts index 4f6253241e..ce2b6d192a 100644 --- a/types/react-icons/lib/md/local-pharmacy.d.ts +++ b/types/react-icons/lib/md/local-pharmacy.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdLocalPharmacy extends React.Component { } +declare class MdLocalPharmacy extends React.Component { } +export = MdLocalPharmacy; diff --git a/types/react-icons/lib/md/local-phone.d.ts b/types/react-icons/lib/md/local-phone.d.ts index 295b71d056..bd34f480b6 100644 --- a/types/react-icons/lib/md/local-phone.d.ts +++ b/types/react-icons/lib/md/local-phone.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdLocalPhone extends React.Component { } +declare class MdLocalPhone extends React.Component { } +export = MdLocalPhone; diff --git a/types/react-icons/lib/md/local-pizza.d.ts b/types/react-icons/lib/md/local-pizza.d.ts index fd8f1e9b3f..d6faf8bcb3 100644 --- a/types/react-icons/lib/md/local-pizza.d.ts +++ b/types/react-icons/lib/md/local-pizza.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdLocalPizza extends React.Component { } +declare class MdLocalPizza extends React.Component { } +export = MdLocalPizza; diff --git a/types/react-icons/lib/md/local-play.d.ts b/types/react-icons/lib/md/local-play.d.ts index 2323020f1f..3efcc87e1b 100644 --- a/types/react-icons/lib/md/local-play.d.ts +++ b/types/react-icons/lib/md/local-play.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdLocalPlay extends React.Component { } +declare class MdLocalPlay extends React.Component { } +export = MdLocalPlay; diff --git a/types/react-icons/lib/md/local-post-office.d.ts b/types/react-icons/lib/md/local-post-office.d.ts index d753132d88..a5f4a8f938 100644 --- a/types/react-icons/lib/md/local-post-office.d.ts +++ b/types/react-icons/lib/md/local-post-office.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdLocalPostOffice extends React.Component { } +declare class MdLocalPostOffice extends React.Component { } +export = MdLocalPostOffice; diff --git a/types/react-icons/lib/md/local-print-shop.d.ts b/types/react-icons/lib/md/local-print-shop.d.ts index f5f2318b18..3644eaa9cf 100644 --- a/types/react-icons/lib/md/local-print-shop.d.ts +++ b/types/react-icons/lib/md/local-print-shop.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdLocalPrintShop extends React.Component { } +declare class MdLocalPrintShop extends React.Component { } +export = MdLocalPrintShop; diff --git a/types/react-icons/lib/md/local-restaurant.d.ts b/types/react-icons/lib/md/local-restaurant.d.ts index 631a9bcdba..714a1c2a0e 100644 --- a/types/react-icons/lib/md/local-restaurant.d.ts +++ b/types/react-icons/lib/md/local-restaurant.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdLocalRestaurant extends React.Component { } +declare class MdLocalRestaurant extends React.Component { } +export = MdLocalRestaurant; diff --git a/types/react-icons/lib/md/local-see.d.ts b/types/react-icons/lib/md/local-see.d.ts index 6c345a7bdd..a5b631777d 100644 --- a/types/react-icons/lib/md/local-see.d.ts +++ b/types/react-icons/lib/md/local-see.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdLocalSee extends React.Component { } +declare class MdLocalSee extends React.Component { } +export = MdLocalSee; diff --git a/types/react-icons/lib/md/local-shipping.d.ts b/types/react-icons/lib/md/local-shipping.d.ts index 8862dc1e3f..f08d34f0ef 100644 --- a/types/react-icons/lib/md/local-shipping.d.ts +++ b/types/react-icons/lib/md/local-shipping.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdLocalShipping extends React.Component { } +declare class MdLocalShipping extends React.Component { } +export = MdLocalShipping; diff --git a/types/react-icons/lib/md/local-taxi.d.ts b/types/react-icons/lib/md/local-taxi.d.ts index ffee12d51a..d4a9cfe09b 100644 --- a/types/react-icons/lib/md/local-taxi.d.ts +++ b/types/react-icons/lib/md/local-taxi.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdLocalTaxi extends React.Component { } +declare class MdLocalTaxi extends React.Component { } +export = MdLocalTaxi; diff --git a/types/react-icons/lib/md/location-city.d.ts b/types/react-icons/lib/md/location-city.d.ts index d4154e0b4d..53c2f14810 100644 --- a/types/react-icons/lib/md/location-city.d.ts +++ b/types/react-icons/lib/md/location-city.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdLocationCity extends React.Component { } +declare class MdLocationCity extends React.Component { } +export = MdLocationCity; diff --git a/types/react-icons/lib/md/location-disabled.d.ts b/types/react-icons/lib/md/location-disabled.d.ts index f890985e4c..f4af27f5f3 100644 --- a/types/react-icons/lib/md/location-disabled.d.ts +++ b/types/react-icons/lib/md/location-disabled.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdLocationDisabled extends React.Component { } +declare class MdLocationDisabled extends React.Component { } +export = MdLocationDisabled; diff --git a/types/react-icons/lib/md/location-history.d.ts b/types/react-icons/lib/md/location-history.d.ts index 6d7ae193ef..555813d873 100644 --- a/types/react-icons/lib/md/location-history.d.ts +++ b/types/react-icons/lib/md/location-history.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdLocationHistory extends React.Component { } +declare class MdLocationHistory extends React.Component { } +export = MdLocationHistory; diff --git a/types/react-icons/lib/md/location-off.d.ts b/types/react-icons/lib/md/location-off.d.ts index ae7c278991..193e2a8cf6 100644 --- a/types/react-icons/lib/md/location-off.d.ts +++ b/types/react-icons/lib/md/location-off.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdLocationOff extends React.Component { } +declare class MdLocationOff extends React.Component { } +export = MdLocationOff; diff --git a/types/react-icons/lib/md/location-on.d.ts b/types/react-icons/lib/md/location-on.d.ts index 9a606064c1..77094905da 100644 --- a/types/react-icons/lib/md/location-on.d.ts +++ b/types/react-icons/lib/md/location-on.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdLocationOn extends React.Component { } +declare class MdLocationOn extends React.Component { } +export = MdLocationOn; diff --git a/types/react-icons/lib/md/location-searching.d.ts b/types/react-icons/lib/md/location-searching.d.ts index 89860efc3f..de07a33e91 100644 --- a/types/react-icons/lib/md/location-searching.d.ts +++ b/types/react-icons/lib/md/location-searching.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdLocationSearching extends React.Component { } +declare class MdLocationSearching extends React.Component { } +export = MdLocationSearching; diff --git a/types/react-icons/lib/md/lock-open.d.ts b/types/react-icons/lib/md/lock-open.d.ts index c61129c43a..38cc201800 100644 --- a/types/react-icons/lib/md/lock-open.d.ts +++ b/types/react-icons/lib/md/lock-open.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdLockOpen extends React.Component { } +declare class MdLockOpen extends React.Component { } +export = MdLockOpen; diff --git a/types/react-icons/lib/md/lock-outline.d.ts b/types/react-icons/lib/md/lock-outline.d.ts index 8d8c854627..201dab5ca3 100644 --- a/types/react-icons/lib/md/lock-outline.d.ts +++ b/types/react-icons/lib/md/lock-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdLockOutline extends React.Component { } +declare class MdLockOutline extends React.Component { } +export = MdLockOutline; diff --git a/types/react-icons/lib/md/lock.d.ts b/types/react-icons/lib/md/lock.d.ts index 08c9bebbec..415ddfc886 100644 --- a/types/react-icons/lib/md/lock.d.ts +++ b/types/react-icons/lib/md/lock.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdLock extends React.Component { } +declare class MdLock extends React.Component { } +export = MdLock; diff --git a/types/react-icons/lib/md/looks-3.d.ts b/types/react-icons/lib/md/looks-3.d.ts index 91ec18b0fa..9bf0f8b3d0 100644 --- a/types/react-icons/lib/md/looks-3.d.ts +++ b/types/react-icons/lib/md/looks-3.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdLooks3 extends React.Component { } +declare class MdLooks3 extends React.Component { } +export = MdLooks3; diff --git a/types/react-icons/lib/md/looks-4.d.ts b/types/react-icons/lib/md/looks-4.d.ts index 2005a3ef6c..030bd6c730 100644 --- a/types/react-icons/lib/md/looks-4.d.ts +++ b/types/react-icons/lib/md/looks-4.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdLooks4 extends React.Component { } +declare class MdLooks4 extends React.Component { } +export = MdLooks4; diff --git a/types/react-icons/lib/md/looks-5.d.ts b/types/react-icons/lib/md/looks-5.d.ts index 0e4c8830df..02d6aaaab3 100644 --- a/types/react-icons/lib/md/looks-5.d.ts +++ b/types/react-icons/lib/md/looks-5.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdLooks5 extends React.Component { } +declare class MdLooks5 extends React.Component { } +export = MdLooks5; diff --git a/types/react-icons/lib/md/looks-6.d.ts b/types/react-icons/lib/md/looks-6.d.ts index b00d207ffc..4c35ffd3f5 100644 --- a/types/react-icons/lib/md/looks-6.d.ts +++ b/types/react-icons/lib/md/looks-6.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdLooks6 extends React.Component { } +declare class MdLooks6 extends React.Component { } +export = MdLooks6; diff --git a/types/react-icons/lib/md/looks-one.d.ts b/types/react-icons/lib/md/looks-one.d.ts index 129ebbc28b..fd6b6cb6aa 100644 --- a/types/react-icons/lib/md/looks-one.d.ts +++ b/types/react-icons/lib/md/looks-one.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdLooksOne extends React.Component { } +declare class MdLooksOne extends React.Component { } +export = MdLooksOne; diff --git a/types/react-icons/lib/md/looks-two.d.ts b/types/react-icons/lib/md/looks-two.d.ts index 5f62cb2173..8d4dfb2d89 100644 --- a/types/react-icons/lib/md/looks-two.d.ts +++ b/types/react-icons/lib/md/looks-two.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdLooksTwo extends React.Component { } +declare class MdLooksTwo extends React.Component { } +export = MdLooksTwo; diff --git a/types/react-icons/lib/md/looks.d.ts b/types/react-icons/lib/md/looks.d.ts index 5db0141f58..41a1db63fc 100644 --- a/types/react-icons/lib/md/looks.d.ts +++ b/types/react-icons/lib/md/looks.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdLooks extends React.Component { } +declare class MdLooks extends React.Component { } +export = MdLooks; diff --git a/types/react-icons/lib/md/loop.d.ts b/types/react-icons/lib/md/loop.d.ts index 8e7f90aad0..25cff2c482 100644 --- a/types/react-icons/lib/md/loop.d.ts +++ b/types/react-icons/lib/md/loop.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdLoop extends React.Component { } +declare class MdLoop extends React.Component { } +export = MdLoop; diff --git a/types/react-icons/lib/md/loupe.d.ts b/types/react-icons/lib/md/loupe.d.ts index 8b7e0a54f1..dcae9325dd 100644 --- a/types/react-icons/lib/md/loupe.d.ts +++ b/types/react-icons/lib/md/loupe.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdLoupe extends React.Component { } +declare class MdLoupe extends React.Component { } +export = MdLoupe; diff --git a/types/react-icons/lib/md/low-priority.d.ts b/types/react-icons/lib/md/low-priority.d.ts index 61f7f79811..4b0e96dc96 100644 --- a/types/react-icons/lib/md/low-priority.d.ts +++ b/types/react-icons/lib/md/low-priority.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdLowPriority extends React.Component { } +declare class MdLowPriority extends React.Component { } +export = MdLowPriority; diff --git a/types/react-icons/lib/md/loyalty.d.ts b/types/react-icons/lib/md/loyalty.d.ts index de4ad7303f..86d7de9ec8 100644 --- a/types/react-icons/lib/md/loyalty.d.ts +++ b/types/react-icons/lib/md/loyalty.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdLoyalty extends React.Component { } +declare class MdLoyalty extends React.Component { } +export = MdLoyalty; diff --git a/types/react-icons/lib/md/mail-outline.d.ts b/types/react-icons/lib/md/mail-outline.d.ts index e2ea724b8c..7cc3fd16e0 100644 --- a/types/react-icons/lib/md/mail-outline.d.ts +++ b/types/react-icons/lib/md/mail-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdMailOutline extends React.Component { } +declare class MdMailOutline extends React.Component { } +export = MdMailOutline; diff --git a/types/react-icons/lib/md/mail.d.ts b/types/react-icons/lib/md/mail.d.ts index 4d6ae8563e..ffe42b4573 100644 --- a/types/react-icons/lib/md/mail.d.ts +++ b/types/react-icons/lib/md/mail.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdMail extends React.Component { } +declare class MdMail extends React.Component { } +export = MdMail; diff --git a/types/react-icons/lib/md/map.d.ts b/types/react-icons/lib/md/map.d.ts index e5199af23c..bf274d2db6 100644 --- a/types/react-icons/lib/md/map.d.ts +++ b/types/react-icons/lib/md/map.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdMap extends React.Component { } +declare class MdMap extends React.Component { } +export = MdMap; diff --git a/types/react-icons/lib/md/markunread-mailbox.d.ts b/types/react-icons/lib/md/markunread-mailbox.d.ts index ba5d9a5982..859f06a03b 100644 --- a/types/react-icons/lib/md/markunread-mailbox.d.ts +++ b/types/react-icons/lib/md/markunread-mailbox.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdMarkunreadMailbox extends React.Component { } +declare class MdMarkunreadMailbox extends React.Component { } +export = MdMarkunreadMailbox; diff --git a/types/react-icons/lib/md/markunread.d.ts b/types/react-icons/lib/md/markunread.d.ts index bcf1ac3569..f5783e684c 100644 --- a/types/react-icons/lib/md/markunread.d.ts +++ b/types/react-icons/lib/md/markunread.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdMarkunread extends React.Component { } +declare class MdMarkunread extends React.Component { } +export = MdMarkunread; diff --git a/types/react-icons/lib/md/memory.d.ts b/types/react-icons/lib/md/memory.d.ts index 507da2a21c..524f5bee0e 100644 --- a/types/react-icons/lib/md/memory.d.ts +++ b/types/react-icons/lib/md/memory.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdMemory extends React.Component { } +declare class MdMemory extends React.Component { } +export = MdMemory; diff --git a/types/react-icons/lib/md/menu.d.ts b/types/react-icons/lib/md/menu.d.ts index 8d71a1981f..dbd92ed628 100644 --- a/types/react-icons/lib/md/menu.d.ts +++ b/types/react-icons/lib/md/menu.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdMenu extends React.Component { } +declare class MdMenu extends React.Component { } +export = MdMenu; diff --git a/types/react-icons/lib/md/merge-type.d.ts b/types/react-icons/lib/md/merge-type.d.ts index 40e48a7b93..06a5eef508 100644 --- a/types/react-icons/lib/md/merge-type.d.ts +++ b/types/react-icons/lib/md/merge-type.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdMergeType extends React.Component { } +declare class MdMergeType extends React.Component { } +export = MdMergeType; diff --git a/types/react-icons/lib/md/message.d.ts b/types/react-icons/lib/md/message.d.ts index 64488ed66b..9eabdb10f3 100644 --- a/types/react-icons/lib/md/message.d.ts +++ b/types/react-icons/lib/md/message.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdMessage extends React.Component { } +declare class MdMessage extends React.Component { } +export = MdMessage; diff --git a/types/react-icons/lib/md/mic-none.d.ts b/types/react-icons/lib/md/mic-none.d.ts index 5b71761c02..1bab143d2d 100644 --- a/types/react-icons/lib/md/mic-none.d.ts +++ b/types/react-icons/lib/md/mic-none.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdMicNone extends React.Component { } +declare class MdMicNone extends React.Component { } +export = MdMicNone; diff --git a/types/react-icons/lib/md/mic-off.d.ts b/types/react-icons/lib/md/mic-off.d.ts index ce68ec3b85..edbe89b489 100644 --- a/types/react-icons/lib/md/mic-off.d.ts +++ b/types/react-icons/lib/md/mic-off.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdMicOff extends React.Component { } +declare class MdMicOff extends React.Component { } +export = MdMicOff; diff --git a/types/react-icons/lib/md/mic.d.ts b/types/react-icons/lib/md/mic.d.ts index e827c93aee..45380e54f7 100644 --- a/types/react-icons/lib/md/mic.d.ts +++ b/types/react-icons/lib/md/mic.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdMic extends React.Component { } +declare class MdMic extends React.Component { } +export = MdMic; diff --git a/types/react-icons/lib/md/mms.d.ts b/types/react-icons/lib/md/mms.d.ts index dd4635435c..19571556ed 100644 --- a/types/react-icons/lib/md/mms.d.ts +++ b/types/react-icons/lib/md/mms.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdMms extends React.Component { } +declare class MdMms extends React.Component { } +export = MdMms; diff --git a/types/react-icons/lib/md/mode-comment.d.ts b/types/react-icons/lib/md/mode-comment.d.ts index 4e70e6a57e..31aa14d8af 100644 --- a/types/react-icons/lib/md/mode-comment.d.ts +++ b/types/react-icons/lib/md/mode-comment.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdModeComment extends React.Component { } +declare class MdModeComment extends React.Component { } +export = MdModeComment; diff --git a/types/react-icons/lib/md/mode-edit.d.ts b/types/react-icons/lib/md/mode-edit.d.ts index 8ba0f1809c..d5e2848413 100644 --- a/types/react-icons/lib/md/mode-edit.d.ts +++ b/types/react-icons/lib/md/mode-edit.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdModeEdit extends React.Component { } +declare class MdModeEdit extends React.Component { } +export = MdModeEdit; diff --git a/types/react-icons/lib/md/monetization-on.d.ts b/types/react-icons/lib/md/monetization-on.d.ts index 5fbac94cd6..2ee7832cb5 100644 --- a/types/react-icons/lib/md/monetization-on.d.ts +++ b/types/react-icons/lib/md/monetization-on.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdMonetizationOn extends React.Component { } +declare class MdMonetizationOn extends React.Component { } +export = MdMonetizationOn; diff --git a/types/react-icons/lib/md/money-off.d.ts b/types/react-icons/lib/md/money-off.d.ts index 682df0c9e9..545019237c 100644 --- a/types/react-icons/lib/md/money-off.d.ts +++ b/types/react-icons/lib/md/money-off.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdMoneyOff extends React.Component { } +declare class MdMoneyOff extends React.Component { } +export = MdMoneyOff; diff --git a/types/react-icons/lib/md/monochrome-photos.d.ts b/types/react-icons/lib/md/monochrome-photos.d.ts index 57d0224d92..8e1ebae6c7 100644 --- a/types/react-icons/lib/md/monochrome-photos.d.ts +++ b/types/react-icons/lib/md/monochrome-photos.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdMonochromePhotos extends React.Component { } +declare class MdMonochromePhotos extends React.Component { } +export = MdMonochromePhotos; diff --git a/types/react-icons/lib/md/mood-bad.d.ts b/types/react-icons/lib/md/mood-bad.d.ts index 6cb4070c36..cd4dfc9cbb 100644 --- a/types/react-icons/lib/md/mood-bad.d.ts +++ b/types/react-icons/lib/md/mood-bad.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdMoodBad extends React.Component { } +declare class MdMoodBad extends React.Component { } +export = MdMoodBad; diff --git a/types/react-icons/lib/md/mood.d.ts b/types/react-icons/lib/md/mood.d.ts index fd15fc4d9d..e2829392f6 100644 --- a/types/react-icons/lib/md/mood.d.ts +++ b/types/react-icons/lib/md/mood.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdMood extends React.Component { } +declare class MdMood extends React.Component { } +export = MdMood; diff --git a/types/react-icons/lib/md/more-horiz.d.ts b/types/react-icons/lib/md/more-horiz.d.ts index dd46d5526c..624b97c48d 100644 --- a/types/react-icons/lib/md/more-horiz.d.ts +++ b/types/react-icons/lib/md/more-horiz.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdMoreHoriz extends React.Component { } +declare class MdMoreHoriz extends React.Component { } +export = MdMoreHoriz; diff --git a/types/react-icons/lib/md/more-vert.d.ts b/types/react-icons/lib/md/more-vert.d.ts index 9c1080b74a..4a77a45a48 100644 --- a/types/react-icons/lib/md/more-vert.d.ts +++ b/types/react-icons/lib/md/more-vert.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdMoreVert extends React.Component { } +declare class MdMoreVert extends React.Component { } +export = MdMoreVert; diff --git a/types/react-icons/lib/md/more.d.ts b/types/react-icons/lib/md/more.d.ts index 395fe8b215..c7f3e9c9b1 100644 --- a/types/react-icons/lib/md/more.d.ts +++ b/types/react-icons/lib/md/more.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdMore extends React.Component { } +declare class MdMore extends React.Component { } +export = MdMore; diff --git a/types/react-icons/lib/md/motorcycle.d.ts b/types/react-icons/lib/md/motorcycle.d.ts index b06e285368..e776752db9 100644 --- a/types/react-icons/lib/md/motorcycle.d.ts +++ b/types/react-icons/lib/md/motorcycle.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdMotorcycle extends React.Component { } +declare class MdMotorcycle extends React.Component { } +export = MdMotorcycle; diff --git a/types/react-icons/lib/md/mouse.d.ts b/types/react-icons/lib/md/mouse.d.ts index 6b48389af1..e363947b09 100644 --- a/types/react-icons/lib/md/mouse.d.ts +++ b/types/react-icons/lib/md/mouse.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdMouse extends React.Component { } +declare class MdMouse extends React.Component { } +export = MdMouse; diff --git a/types/react-icons/lib/md/move-to-inbox.d.ts b/types/react-icons/lib/md/move-to-inbox.d.ts index 2723e6516e..12769c55d2 100644 --- a/types/react-icons/lib/md/move-to-inbox.d.ts +++ b/types/react-icons/lib/md/move-to-inbox.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdMoveToInbox extends React.Component { } +declare class MdMoveToInbox extends React.Component { } +export = MdMoveToInbox; diff --git a/types/react-icons/lib/md/movie-creation.d.ts b/types/react-icons/lib/md/movie-creation.d.ts index 1e795092d6..75340b3585 100644 --- a/types/react-icons/lib/md/movie-creation.d.ts +++ b/types/react-icons/lib/md/movie-creation.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdMovieCreation extends React.Component { } +declare class MdMovieCreation extends React.Component { } +export = MdMovieCreation; diff --git a/types/react-icons/lib/md/movie-filter.d.ts b/types/react-icons/lib/md/movie-filter.d.ts index 22da6198e8..3d66ee011e 100644 --- a/types/react-icons/lib/md/movie-filter.d.ts +++ b/types/react-icons/lib/md/movie-filter.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdMovieFilter extends React.Component { } +declare class MdMovieFilter extends React.Component { } +export = MdMovieFilter; diff --git a/types/react-icons/lib/md/movie.d.ts b/types/react-icons/lib/md/movie.d.ts index 7982199452..d0f2567961 100644 --- a/types/react-icons/lib/md/movie.d.ts +++ b/types/react-icons/lib/md/movie.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdMovie extends React.Component { } +declare class MdMovie extends React.Component { } +export = MdMovie; diff --git a/types/react-icons/lib/md/multiline-chart.d.ts b/types/react-icons/lib/md/multiline-chart.d.ts index 03aba87bc1..9e1010373d 100644 --- a/types/react-icons/lib/md/multiline-chart.d.ts +++ b/types/react-icons/lib/md/multiline-chart.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdMultilineChart extends React.Component { } +declare class MdMultilineChart extends React.Component { } +export = MdMultilineChart; diff --git a/types/react-icons/lib/md/music-note.d.ts b/types/react-icons/lib/md/music-note.d.ts index b3c161252e..0851c2f214 100644 --- a/types/react-icons/lib/md/music-note.d.ts +++ b/types/react-icons/lib/md/music-note.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdMusicNote extends React.Component { } +declare class MdMusicNote extends React.Component { } +export = MdMusicNote; diff --git a/types/react-icons/lib/md/music-video.d.ts b/types/react-icons/lib/md/music-video.d.ts index e7c4890596..45b5660c4a 100644 --- a/types/react-icons/lib/md/music-video.d.ts +++ b/types/react-icons/lib/md/music-video.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdMusicVideo extends React.Component { } +declare class MdMusicVideo extends React.Component { } +export = MdMusicVideo; diff --git a/types/react-icons/lib/md/my-location.d.ts b/types/react-icons/lib/md/my-location.d.ts index e9e49e3638..1860b6ad49 100644 --- a/types/react-icons/lib/md/my-location.d.ts +++ b/types/react-icons/lib/md/my-location.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdMyLocation extends React.Component { } +declare class MdMyLocation extends React.Component { } +export = MdMyLocation; diff --git a/types/react-icons/lib/md/nature-people.d.ts b/types/react-icons/lib/md/nature-people.d.ts index 123a578eff..45f5c8625b 100644 --- a/types/react-icons/lib/md/nature-people.d.ts +++ b/types/react-icons/lib/md/nature-people.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdNaturePeople extends React.Component { } +declare class MdNaturePeople extends React.Component { } +export = MdNaturePeople; diff --git a/types/react-icons/lib/md/nature.d.ts b/types/react-icons/lib/md/nature.d.ts index 14b871e450..8391fd3e82 100644 --- a/types/react-icons/lib/md/nature.d.ts +++ b/types/react-icons/lib/md/nature.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdNature extends React.Component { } +declare class MdNature extends React.Component { } +export = MdNature; diff --git a/types/react-icons/lib/md/navigate-before.d.ts b/types/react-icons/lib/md/navigate-before.d.ts index e66fdc2c7b..d771c271f1 100644 --- a/types/react-icons/lib/md/navigate-before.d.ts +++ b/types/react-icons/lib/md/navigate-before.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdNavigateBefore extends React.Component { } +declare class MdNavigateBefore extends React.Component { } +export = MdNavigateBefore; diff --git a/types/react-icons/lib/md/navigate-next.d.ts b/types/react-icons/lib/md/navigate-next.d.ts index f39bad2270..96b04c5c81 100644 --- a/types/react-icons/lib/md/navigate-next.d.ts +++ b/types/react-icons/lib/md/navigate-next.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdNavigateNext extends React.Component { } +declare class MdNavigateNext extends React.Component { } +export = MdNavigateNext; diff --git a/types/react-icons/lib/md/navigation.d.ts b/types/react-icons/lib/md/navigation.d.ts index be44444790..b051ca0962 100644 --- a/types/react-icons/lib/md/navigation.d.ts +++ b/types/react-icons/lib/md/navigation.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdNavigation extends React.Component { } +declare class MdNavigation extends React.Component { } +export = MdNavigation; diff --git a/types/react-icons/lib/md/near-me.d.ts b/types/react-icons/lib/md/near-me.d.ts index a1fe717c03..51fd95dad4 100644 --- a/types/react-icons/lib/md/near-me.d.ts +++ b/types/react-icons/lib/md/near-me.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdNearMe extends React.Component { } +declare class MdNearMe extends React.Component { } +export = MdNearMe; diff --git a/types/react-icons/lib/md/network-cell.d.ts b/types/react-icons/lib/md/network-cell.d.ts index 9dc116de65..6c87d7551b 100644 --- a/types/react-icons/lib/md/network-cell.d.ts +++ b/types/react-icons/lib/md/network-cell.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdNetworkCell extends React.Component { } +declare class MdNetworkCell extends React.Component { } +export = MdNetworkCell; diff --git a/types/react-icons/lib/md/network-check.d.ts b/types/react-icons/lib/md/network-check.d.ts index 3497ab3224..5b50373fa4 100644 --- a/types/react-icons/lib/md/network-check.d.ts +++ b/types/react-icons/lib/md/network-check.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdNetworkCheck extends React.Component { } +declare class MdNetworkCheck extends React.Component { } +export = MdNetworkCheck; diff --git a/types/react-icons/lib/md/network-locked.d.ts b/types/react-icons/lib/md/network-locked.d.ts index e7e66850e4..3cf0e3f075 100644 --- a/types/react-icons/lib/md/network-locked.d.ts +++ b/types/react-icons/lib/md/network-locked.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdNetworkLocked extends React.Component { } +declare class MdNetworkLocked extends React.Component { } +export = MdNetworkLocked; diff --git a/types/react-icons/lib/md/network-wifi.d.ts b/types/react-icons/lib/md/network-wifi.d.ts index 2c9097fc57..c4214d04eb 100644 --- a/types/react-icons/lib/md/network-wifi.d.ts +++ b/types/react-icons/lib/md/network-wifi.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdNetworkWifi extends React.Component { } +declare class MdNetworkWifi extends React.Component { } +export = MdNetworkWifi; diff --git a/types/react-icons/lib/md/new-releases.d.ts b/types/react-icons/lib/md/new-releases.d.ts index 4ff4c3e21f..2330eee139 100644 --- a/types/react-icons/lib/md/new-releases.d.ts +++ b/types/react-icons/lib/md/new-releases.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdNewReleases extends React.Component { } +declare class MdNewReleases extends React.Component { } +export = MdNewReleases; diff --git a/types/react-icons/lib/md/next-week.d.ts b/types/react-icons/lib/md/next-week.d.ts index 4754bfc5c5..7f9635e279 100644 --- a/types/react-icons/lib/md/next-week.d.ts +++ b/types/react-icons/lib/md/next-week.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdNextWeek extends React.Component { } +declare class MdNextWeek extends React.Component { } +export = MdNextWeek; diff --git a/types/react-icons/lib/md/nfc.d.ts b/types/react-icons/lib/md/nfc.d.ts index 521ad7fe89..646eab86f4 100644 --- a/types/react-icons/lib/md/nfc.d.ts +++ b/types/react-icons/lib/md/nfc.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdNfc extends React.Component { } +declare class MdNfc extends React.Component { } +export = MdNfc; diff --git a/types/react-icons/lib/md/no-encryption.d.ts b/types/react-icons/lib/md/no-encryption.d.ts index 038f3eef3f..87ecaca4b9 100644 --- a/types/react-icons/lib/md/no-encryption.d.ts +++ b/types/react-icons/lib/md/no-encryption.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdNoEncryption extends React.Component { } +declare class MdNoEncryption extends React.Component { } +export = MdNoEncryption; diff --git a/types/react-icons/lib/md/no-sim.d.ts b/types/react-icons/lib/md/no-sim.d.ts index 09e6165201..5a0843d187 100644 --- a/types/react-icons/lib/md/no-sim.d.ts +++ b/types/react-icons/lib/md/no-sim.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdNoSim extends React.Component { } +declare class MdNoSim extends React.Component { } +export = MdNoSim; diff --git a/types/react-icons/lib/md/not-interested.d.ts b/types/react-icons/lib/md/not-interested.d.ts index a21c3ca574..4250465b0e 100644 --- a/types/react-icons/lib/md/not-interested.d.ts +++ b/types/react-icons/lib/md/not-interested.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdNotInterested extends React.Component { } +declare class MdNotInterested extends React.Component { } +export = MdNotInterested; diff --git a/types/react-icons/lib/md/note-add.d.ts b/types/react-icons/lib/md/note-add.d.ts index 7673a94b3c..81ee86856d 100644 --- a/types/react-icons/lib/md/note-add.d.ts +++ b/types/react-icons/lib/md/note-add.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdNoteAdd extends React.Component { } +declare class MdNoteAdd extends React.Component { } +export = MdNoteAdd; diff --git a/types/react-icons/lib/md/note.d.ts b/types/react-icons/lib/md/note.d.ts index 757dfc63fc..59819344cf 100644 --- a/types/react-icons/lib/md/note.d.ts +++ b/types/react-icons/lib/md/note.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdNote extends React.Component { } +declare class MdNote extends React.Component { } +export = MdNote; diff --git a/types/react-icons/lib/md/notifications-active.d.ts b/types/react-icons/lib/md/notifications-active.d.ts index afb7f84483..1fe1c7709a 100644 --- a/types/react-icons/lib/md/notifications-active.d.ts +++ b/types/react-icons/lib/md/notifications-active.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdNotificationsActive extends React.Component { } +declare class MdNotificationsActive extends React.Component { } +export = MdNotificationsActive; diff --git a/types/react-icons/lib/md/notifications-none.d.ts b/types/react-icons/lib/md/notifications-none.d.ts index d1667a5307..734c103da7 100644 --- a/types/react-icons/lib/md/notifications-none.d.ts +++ b/types/react-icons/lib/md/notifications-none.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdNotificationsNone extends React.Component { } +declare class MdNotificationsNone extends React.Component { } +export = MdNotificationsNone; diff --git a/types/react-icons/lib/md/notifications-off.d.ts b/types/react-icons/lib/md/notifications-off.d.ts index ea413b9d5c..59946687a9 100644 --- a/types/react-icons/lib/md/notifications-off.d.ts +++ b/types/react-icons/lib/md/notifications-off.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdNotificationsOff extends React.Component { } +declare class MdNotificationsOff extends React.Component { } +export = MdNotificationsOff; diff --git a/types/react-icons/lib/md/notifications-paused.d.ts b/types/react-icons/lib/md/notifications-paused.d.ts index 7181f702a7..0eccf9bc7b 100644 --- a/types/react-icons/lib/md/notifications-paused.d.ts +++ b/types/react-icons/lib/md/notifications-paused.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdNotificationsPaused extends React.Component { } +declare class MdNotificationsPaused extends React.Component { } +export = MdNotificationsPaused; diff --git a/types/react-icons/lib/md/notifications.d.ts b/types/react-icons/lib/md/notifications.d.ts index 14de6c4b4e..2865d4e06a 100644 --- a/types/react-icons/lib/md/notifications.d.ts +++ b/types/react-icons/lib/md/notifications.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdNotifications extends React.Component { } +declare class MdNotifications extends React.Component { } +export = MdNotifications; diff --git a/types/react-icons/lib/md/now-wallpaper.d.ts b/types/react-icons/lib/md/now-wallpaper.d.ts index 076ec5c4bf..ad64b79218 100644 --- a/types/react-icons/lib/md/now-wallpaper.d.ts +++ b/types/react-icons/lib/md/now-wallpaper.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdNowWallpaper extends React.Component { } +declare class MdNowWallpaper extends React.Component { } +export = MdNowWallpaper; diff --git a/types/react-icons/lib/md/now-widgets.d.ts b/types/react-icons/lib/md/now-widgets.d.ts index 0242391941..18e3df156c 100644 --- a/types/react-icons/lib/md/now-widgets.d.ts +++ b/types/react-icons/lib/md/now-widgets.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdNowWidgets extends React.Component { } +declare class MdNowWidgets extends React.Component { } +export = MdNowWidgets; diff --git a/types/react-icons/lib/md/offline-pin.d.ts b/types/react-icons/lib/md/offline-pin.d.ts index 0c691eb46c..46cd8199f9 100644 --- a/types/react-icons/lib/md/offline-pin.d.ts +++ b/types/react-icons/lib/md/offline-pin.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdOfflinePin extends React.Component { } +declare class MdOfflinePin extends React.Component { } +export = MdOfflinePin; diff --git a/types/react-icons/lib/md/ondemand-video.d.ts b/types/react-icons/lib/md/ondemand-video.d.ts index 2abd212bc0..dbf5b14687 100644 --- a/types/react-icons/lib/md/ondemand-video.d.ts +++ b/types/react-icons/lib/md/ondemand-video.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdOndemandVideo extends React.Component { } +declare class MdOndemandVideo extends React.Component { } +export = MdOndemandVideo; diff --git a/types/react-icons/lib/md/opacity.d.ts b/types/react-icons/lib/md/opacity.d.ts index abf5830ea6..17bad8db6d 100644 --- a/types/react-icons/lib/md/opacity.d.ts +++ b/types/react-icons/lib/md/opacity.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdOpacity extends React.Component { } +declare class MdOpacity extends React.Component { } +export = MdOpacity; diff --git a/types/react-icons/lib/md/open-in-browser.d.ts b/types/react-icons/lib/md/open-in-browser.d.ts index 52bb107a78..4e9b90b4da 100644 --- a/types/react-icons/lib/md/open-in-browser.d.ts +++ b/types/react-icons/lib/md/open-in-browser.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdOpenInBrowser extends React.Component { } +declare class MdOpenInBrowser extends React.Component { } +export = MdOpenInBrowser; diff --git a/types/react-icons/lib/md/open-in-new.d.ts b/types/react-icons/lib/md/open-in-new.d.ts index c9cdd9711c..0a82b41b5a 100644 --- a/types/react-icons/lib/md/open-in-new.d.ts +++ b/types/react-icons/lib/md/open-in-new.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdOpenInNew extends React.Component { } +declare class MdOpenInNew extends React.Component { } +export = MdOpenInNew; diff --git a/types/react-icons/lib/md/open-with.d.ts b/types/react-icons/lib/md/open-with.d.ts index 400d1e0deb..fbb6f98852 100644 --- a/types/react-icons/lib/md/open-with.d.ts +++ b/types/react-icons/lib/md/open-with.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdOpenWith extends React.Component { } +declare class MdOpenWith extends React.Component { } +export = MdOpenWith; diff --git a/types/react-icons/lib/md/pages.d.ts b/types/react-icons/lib/md/pages.d.ts index 6a156250cc..c26e324fb2 100644 --- a/types/react-icons/lib/md/pages.d.ts +++ b/types/react-icons/lib/md/pages.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdPages extends React.Component { } +declare class MdPages extends React.Component { } +export = MdPages; diff --git a/types/react-icons/lib/md/pageview.d.ts b/types/react-icons/lib/md/pageview.d.ts index f69c0ee9f2..3db2826beb 100644 --- a/types/react-icons/lib/md/pageview.d.ts +++ b/types/react-icons/lib/md/pageview.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdPageview extends React.Component { } +declare class MdPageview extends React.Component { } +export = MdPageview; diff --git a/types/react-icons/lib/md/palette.d.ts b/types/react-icons/lib/md/palette.d.ts index 823c529566..eddc488804 100644 --- a/types/react-icons/lib/md/palette.d.ts +++ b/types/react-icons/lib/md/palette.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdPalette extends React.Component { } +declare class MdPalette extends React.Component { } +export = MdPalette; diff --git a/types/react-icons/lib/md/pan-tool.d.ts b/types/react-icons/lib/md/pan-tool.d.ts index b208116369..cd89c9e107 100644 --- a/types/react-icons/lib/md/pan-tool.d.ts +++ b/types/react-icons/lib/md/pan-tool.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdPanTool extends React.Component { } +declare class MdPanTool extends React.Component { } +export = MdPanTool; diff --git a/types/react-icons/lib/md/panorama-fish-eye.d.ts b/types/react-icons/lib/md/panorama-fish-eye.d.ts index 29420599ae..845e5ec82c 100644 --- a/types/react-icons/lib/md/panorama-fish-eye.d.ts +++ b/types/react-icons/lib/md/panorama-fish-eye.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdPanoramaFishEye extends React.Component { } +declare class MdPanoramaFishEye extends React.Component { } +export = MdPanoramaFishEye; diff --git a/types/react-icons/lib/md/panorama-horizontal.d.ts b/types/react-icons/lib/md/panorama-horizontal.d.ts index 201fb72074..c042c5465f 100644 --- a/types/react-icons/lib/md/panorama-horizontal.d.ts +++ b/types/react-icons/lib/md/panorama-horizontal.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdPanoramaHorizontal extends React.Component { } +declare class MdPanoramaHorizontal extends React.Component { } +export = MdPanoramaHorizontal; diff --git a/types/react-icons/lib/md/panorama-vertical.d.ts b/types/react-icons/lib/md/panorama-vertical.d.ts index 460041e27d..23e9930176 100644 --- a/types/react-icons/lib/md/panorama-vertical.d.ts +++ b/types/react-icons/lib/md/panorama-vertical.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdPanoramaVertical extends React.Component { } +declare class MdPanoramaVertical extends React.Component { } +export = MdPanoramaVertical; diff --git a/types/react-icons/lib/md/panorama-wide-angle.d.ts b/types/react-icons/lib/md/panorama-wide-angle.d.ts index 58bf2f6a41..4a203d1626 100644 --- a/types/react-icons/lib/md/panorama-wide-angle.d.ts +++ b/types/react-icons/lib/md/panorama-wide-angle.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdPanoramaWideAngle extends React.Component { } +declare class MdPanoramaWideAngle extends React.Component { } +export = MdPanoramaWideAngle; diff --git a/types/react-icons/lib/md/panorama.d.ts b/types/react-icons/lib/md/panorama.d.ts index ce2631733d..bd3a7cbd25 100644 --- a/types/react-icons/lib/md/panorama.d.ts +++ b/types/react-icons/lib/md/panorama.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdPanorama extends React.Component { } +declare class MdPanorama extends React.Component { } +export = MdPanorama; diff --git a/types/react-icons/lib/md/party-mode.d.ts b/types/react-icons/lib/md/party-mode.d.ts index 61270bf1f0..83b53cea69 100644 --- a/types/react-icons/lib/md/party-mode.d.ts +++ b/types/react-icons/lib/md/party-mode.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdPartyMode extends React.Component { } +declare class MdPartyMode extends React.Component { } +export = MdPartyMode; diff --git a/types/react-icons/lib/md/pause-circle-filled.d.ts b/types/react-icons/lib/md/pause-circle-filled.d.ts index 8dcc944037..80d0552c2a 100644 --- a/types/react-icons/lib/md/pause-circle-filled.d.ts +++ b/types/react-icons/lib/md/pause-circle-filled.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdPauseCircleFilled extends React.Component { } +declare class MdPauseCircleFilled extends React.Component { } +export = MdPauseCircleFilled; diff --git a/types/react-icons/lib/md/pause-circle-outline.d.ts b/types/react-icons/lib/md/pause-circle-outline.d.ts index c694731521..a7b9df4756 100644 --- a/types/react-icons/lib/md/pause-circle-outline.d.ts +++ b/types/react-icons/lib/md/pause-circle-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdPauseCircleOutline extends React.Component { } +declare class MdPauseCircleOutline extends React.Component { } +export = MdPauseCircleOutline; diff --git a/types/react-icons/lib/md/pause.d.ts b/types/react-icons/lib/md/pause.d.ts index 29d68353f7..07da37dbc0 100644 --- a/types/react-icons/lib/md/pause.d.ts +++ b/types/react-icons/lib/md/pause.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdPause extends React.Component { } +declare class MdPause extends React.Component { } +export = MdPause; diff --git a/types/react-icons/lib/md/payment.d.ts b/types/react-icons/lib/md/payment.d.ts index bd2439d38c..62761620a7 100644 --- a/types/react-icons/lib/md/payment.d.ts +++ b/types/react-icons/lib/md/payment.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdPayment extends React.Component { } +declare class MdPayment extends React.Component { } +export = MdPayment; diff --git a/types/react-icons/lib/md/people-outline.d.ts b/types/react-icons/lib/md/people-outline.d.ts index 88a012742e..9285016a5f 100644 --- a/types/react-icons/lib/md/people-outline.d.ts +++ b/types/react-icons/lib/md/people-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdPeopleOutline extends React.Component { } +declare class MdPeopleOutline extends React.Component { } +export = MdPeopleOutline; diff --git a/types/react-icons/lib/md/people.d.ts b/types/react-icons/lib/md/people.d.ts index 75f9cbfe7e..5e256d4d2c 100644 --- a/types/react-icons/lib/md/people.d.ts +++ b/types/react-icons/lib/md/people.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdPeople extends React.Component { } +declare class MdPeople extends React.Component { } +export = MdPeople; diff --git a/types/react-icons/lib/md/perm-camera-mic.d.ts b/types/react-icons/lib/md/perm-camera-mic.d.ts index a17acb8788..fc2b9d15bc 100644 --- a/types/react-icons/lib/md/perm-camera-mic.d.ts +++ b/types/react-icons/lib/md/perm-camera-mic.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdPermCameraMic extends React.Component { } +declare class MdPermCameraMic extends React.Component { } +export = MdPermCameraMic; diff --git a/types/react-icons/lib/md/perm-contact-calendar.d.ts b/types/react-icons/lib/md/perm-contact-calendar.d.ts index 3b2105a7cf..f107c8a8b9 100644 --- a/types/react-icons/lib/md/perm-contact-calendar.d.ts +++ b/types/react-icons/lib/md/perm-contact-calendar.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdPermContactCalendar extends React.Component { } +declare class MdPermContactCalendar extends React.Component { } +export = MdPermContactCalendar; diff --git a/types/react-icons/lib/md/perm-data-setting.d.ts b/types/react-icons/lib/md/perm-data-setting.d.ts index 18d108d14f..eb93566fad 100644 --- a/types/react-icons/lib/md/perm-data-setting.d.ts +++ b/types/react-icons/lib/md/perm-data-setting.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdPermDataSetting extends React.Component { } +declare class MdPermDataSetting extends React.Component { } +export = MdPermDataSetting; diff --git a/types/react-icons/lib/md/perm-device-information.d.ts b/types/react-icons/lib/md/perm-device-information.d.ts index db2dfcc07b..8b12c216aa 100644 --- a/types/react-icons/lib/md/perm-device-information.d.ts +++ b/types/react-icons/lib/md/perm-device-information.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdPermDeviceInformation extends React.Component { } +declare class MdPermDeviceInformation extends React.Component { } +export = MdPermDeviceInformation; diff --git a/types/react-icons/lib/md/perm-identity.d.ts b/types/react-icons/lib/md/perm-identity.d.ts index d56d0b3c37..c3df601924 100644 --- a/types/react-icons/lib/md/perm-identity.d.ts +++ b/types/react-icons/lib/md/perm-identity.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdPermIdentity extends React.Component { } +declare class MdPermIdentity extends React.Component { } +export = MdPermIdentity; diff --git a/types/react-icons/lib/md/perm-media.d.ts b/types/react-icons/lib/md/perm-media.d.ts index 36f4bee6a7..cfe25c2672 100644 --- a/types/react-icons/lib/md/perm-media.d.ts +++ b/types/react-icons/lib/md/perm-media.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdPermMedia extends React.Component { } +declare class MdPermMedia extends React.Component { } +export = MdPermMedia; diff --git a/types/react-icons/lib/md/perm-phone-msg.d.ts b/types/react-icons/lib/md/perm-phone-msg.d.ts index 6352e415a6..fca1fb5d82 100644 --- a/types/react-icons/lib/md/perm-phone-msg.d.ts +++ b/types/react-icons/lib/md/perm-phone-msg.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdPermPhoneMsg extends React.Component { } +declare class MdPermPhoneMsg extends React.Component { } +export = MdPermPhoneMsg; diff --git a/types/react-icons/lib/md/perm-scan-wifi.d.ts b/types/react-icons/lib/md/perm-scan-wifi.d.ts index 20bb1186e4..dd857bfc75 100644 --- a/types/react-icons/lib/md/perm-scan-wifi.d.ts +++ b/types/react-icons/lib/md/perm-scan-wifi.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdPermScanWifi extends React.Component { } +declare class MdPermScanWifi extends React.Component { } +export = MdPermScanWifi; diff --git a/types/react-icons/lib/md/person-add.d.ts b/types/react-icons/lib/md/person-add.d.ts index 12887556b7..05c41837f4 100644 --- a/types/react-icons/lib/md/person-add.d.ts +++ b/types/react-icons/lib/md/person-add.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdPersonAdd extends React.Component { } +declare class MdPersonAdd extends React.Component { } +export = MdPersonAdd; diff --git a/types/react-icons/lib/md/person-outline.d.ts b/types/react-icons/lib/md/person-outline.d.ts index fe49015f3f..4b0e0859c8 100644 --- a/types/react-icons/lib/md/person-outline.d.ts +++ b/types/react-icons/lib/md/person-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdPersonOutline extends React.Component { } +declare class MdPersonOutline extends React.Component { } +export = MdPersonOutline; diff --git a/types/react-icons/lib/md/person-pin-circle.d.ts b/types/react-icons/lib/md/person-pin-circle.d.ts index a26c822211..7e463591c4 100644 --- a/types/react-icons/lib/md/person-pin-circle.d.ts +++ b/types/react-icons/lib/md/person-pin-circle.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdPersonPinCircle extends React.Component { } +declare class MdPersonPinCircle extends React.Component { } +export = MdPersonPinCircle; diff --git a/types/react-icons/lib/md/person-pin.d.ts b/types/react-icons/lib/md/person-pin.d.ts index ab1aa735eb..5731a64ba2 100644 --- a/types/react-icons/lib/md/person-pin.d.ts +++ b/types/react-icons/lib/md/person-pin.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdPersonPin extends React.Component { } +declare class MdPersonPin extends React.Component { } +export = MdPersonPin; diff --git a/types/react-icons/lib/md/person.d.ts b/types/react-icons/lib/md/person.d.ts index bcae2bbac8..bbaaad66da 100644 --- a/types/react-icons/lib/md/person.d.ts +++ b/types/react-icons/lib/md/person.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdPerson extends React.Component { } +declare class MdPerson extends React.Component { } +export = MdPerson; diff --git a/types/react-icons/lib/md/personal-video.d.ts b/types/react-icons/lib/md/personal-video.d.ts index 0fece81d04..f49fb640d1 100644 --- a/types/react-icons/lib/md/personal-video.d.ts +++ b/types/react-icons/lib/md/personal-video.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdPersonalVideo extends React.Component { } +declare class MdPersonalVideo extends React.Component { } +export = MdPersonalVideo; diff --git a/types/react-icons/lib/md/pets.d.ts b/types/react-icons/lib/md/pets.d.ts index 94bc0005e8..4c9793a129 100644 --- a/types/react-icons/lib/md/pets.d.ts +++ b/types/react-icons/lib/md/pets.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdPets extends React.Component { } +declare class MdPets extends React.Component { } +export = MdPets; diff --git a/types/react-icons/lib/md/phone-android.d.ts b/types/react-icons/lib/md/phone-android.d.ts index aa43921b51..30c4db75e6 100644 --- a/types/react-icons/lib/md/phone-android.d.ts +++ b/types/react-icons/lib/md/phone-android.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdPhoneAndroid extends React.Component { } +declare class MdPhoneAndroid extends React.Component { } +export = MdPhoneAndroid; diff --git a/types/react-icons/lib/md/phone-bluetooth-speaker.d.ts b/types/react-icons/lib/md/phone-bluetooth-speaker.d.ts index 08e2cd6791..be75f447df 100644 --- a/types/react-icons/lib/md/phone-bluetooth-speaker.d.ts +++ b/types/react-icons/lib/md/phone-bluetooth-speaker.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdPhoneBluetoothSpeaker extends React.Component { } +declare class MdPhoneBluetoothSpeaker extends React.Component { } +export = MdPhoneBluetoothSpeaker; diff --git a/types/react-icons/lib/md/phone-forwarded.d.ts b/types/react-icons/lib/md/phone-forwarded.d.ts index 8363d7e3ec..caeb337723 100644 --- a/types/react-icons/lib/md/phone-forwarded.d.ts +++ b/types/react-icons/lib/md/phone-forwarded.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdPhoneForwarded extends React.Component { } +declare class MdPhoneForwarded extends React.Component { } +export = MdPhoneForwarded; diff --git a/types/react-icons/lib/md/phone-in-talk.d.ts b/types/react-icons/lib/md/phone-in-talk.d.ts index 430f87b4e4..439fe99a45 100644 --- a/types/react-icons/lib/md/phone-in-talk.d.ts +++ b/types/react-icons/lib/md/phone-in-talk.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdPhoneInTalk extends React.Component { } +declare class MdPhoneInTalk extends React.Component { } +export = MdPhoneInTalk; diff --git a/types/react-icons/lib/md/phone-iphone.d.ts b/types/react-icons/lib/md/phone-iphone.d.ts index 8704ae8ad4..5a42b35412 100644 --- a/types/react-icons/lib/md/phone-iphone.d.ts +++ b/types/react-icons/lib/md/phone-iphone.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdPhoneIphone extends React.Component { } +declare class MdPhoneIphone extends React.Component { } +export = MdPhoneIphone; diff --git a/types/react-icons/lib/md/phone-locked.d.ts b/types/react-icons/lib/md/phone-locked.d.ts index 68ca6e9376..df4bdb68e0 100644 --- a/types/react-icons/lib/md/phone-locked.d.ts +++ b/types/react-icons/lib/md/phone-locked.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdPhoneLocked extends React.Component { } +declare class MdPhoneLocked extends React.Component { } +export = MdPhoneLocked; diff --git a/types/react-icons/lib/md/phone-missed.d.ts b/types/react-icons/lib/md/phone-missed.d.ts index 91b97ca8e9..57f48c1817 100644 --- a/types/react-icons/lib/md/phone-missed.d.ts +++ b/types/react-icons/lib/md/phone-missed.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdPhoneMissed extends React.Component { } +declare class MdPhoneMissed extends React.Component { } +export = MdPhoneMissed; diff --git a/types/react-icons/lib/md/phone-paused.d.ts b/types/react-icons/lib/md/phone-paused.d.ts index ba3f998fd8..fded3f9a42 100644 --- a/types/react-icons/lib/md/phone-paused.d.ts +++ b/types/react-icons/lib/md/phone-paused.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdPhonePaused extends React.Component { } +declare class MdPhonePaused extends React.Component { } +export = MdPhonePaused; diff --git a/types/react-icons/lib/md/phone.d.ts b/types/react-icons/lib/md/phone.d.ts index 6318cdc39d..e5634b5d20 100644 --- a/types/react-icons/lib/md/phone.d.ts +++ b/types/react-icons/lib/md/phone.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdPhone extends React.Component { } +declare class MdPhone extends React.Component { } +export = MdPhone; diff --git a/types/react-icons/lib/md/phonelink-erase.d.ts b/types/react-icons/lib/md/phonelink-erase.d.ts index b0cbec1c39..33787bbd4b 100644 --- a/types/react-icons/lib/md/phonelink-erase.d.ts +++ b/types/react-icons/lib/md/phonelink-erase.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdPhonelinkErase extends React.Component { } +declare class MdPhonelinkErase extends React.Component { } +export = MdPhonelinkErase; diff --git a/types/react-icons/lib/md/phonelink-lock.d.ts b/types/react-icons/lib/md/phonelink-lock.d.ts index 5bb479ddc0..81d84f10ee 100644 --- a/types/react-icons/lib/md/phonelink-lock.d.ts +++ b/types/react-icons/lib/md/phonelink-lock.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdPhonelinkLock extends React.Component { } +declare class MdPhonelinkLock extends React.Component { } +export = MdPhonelinkLock; diff --git a/types/react-icons/lib/md/phonelink-off.d.ts b/types/react-icons/lib/md/phonelink-off.d.ts index ec245ecd6f..eb8044dcca 100644 --- a/types/react-icons/lib/md/phonelink-off.d.ts +++ b/types/react-icons/lib/md/phonelink-off.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdPhonelinkOff extends React.Component { } +declare class MdPhonelinkOff extends React.Component { } +export = MdPhonelinkOff; diff --git a/types/react-icons/lib/md/phonelink-ring.d.ts b/types/react-icons/lib/md/phonelink-ring.d.ts index f14d93a479..fb4829eef1 100644 --- a/types/react-icons/lib/md/phonelink-ring.d.ts +++ b/types/react-icons/lib/md/phonelink-ring.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdPhonelinkRing extends React.Component { } +declare class MdPhonelinkRing extends React.Component { } +export = MdPhonelinkRing; diff --git a/types/react-icons/lib/md/phonelink-setup.d.ts b/types/react-icons/lib/md/phonelink-setup.d.ts index dd21188bb5..0546b0f910 100644 --- a/types/react-icons/lib/md/phonelink-setup.d.ts +++ b/types/react-icons/lib/md/phonelink-setup.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdPhonelinkSetup extends React.Component { } +declare class MdPhonelinkSetup extends React.Component { } +export = MdPhonelinkSetup; diff --git a/types/react-icons/lib/md/phonelink.d.ts b/types/react-icons/lib/md/phonelink.d.ts index 6aa5af39d7..16653325b1 100644 --- a/types/react-icons/lib/md/phonelink.d.ts +++ b/types/react-icons/lib/md/phonelink.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdPhonelink extends React.Component { } +declare class MdPhonelink extends React.Component { } +export = MdPhonelink; diff --git a/types/react-icons/lib/md/photo-album.d.ts b/types/react-icons/lib/md/photo-album.d.ts index 116f8b1ff6..dc21ce961f 100644 --- a/types/react-icons/lib/md/photo-album.d.ts +++ b/types/react-icons/lib/md/photo-album.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdPhotoAlbum extends React.Component { } +declare class MdPhotoAlbum extends React.Component { } +export = MdPhotoAlbum; diff --git a/types/react-icons/lib/md/photo-camera.d.ts b/types/react-icons/lib/md/photo-camera.d.ts index 9ca8814377..01afdf9bc8 100644 --- a/types/react-icons/lib/md/photo-camera.d.ts +++ b/types/react-icons/lib/md/photo-camera.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdPhotoCamera extends React.Component { } +declare class MdPhotoCamera extends React.Component { } +export = MdPhotoCamera; diff --git a/types/react-icons/lib/md/photo-filter.d.ts b/types/react-icons/lib/md/photo-filter.d.ts index e2b37a4b91..994d10d5e5 100644 --- a/types/react-icons/lib/md/photo-filter.d.ts +++ b/types/react-icons/lib/md/photo-filter.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdPhotoFilter extends React.Component { } +declare class MdPhotoFilter extends React.Component { } +export = MdPhotoFilter; diff --git a/types/react-icons/lib/md/photo-library.d.ts b/types/react-icons/lib/md/photo-library.d.ts index 3ec4c29cac..18f6c5a756 100644 --- a/types/react-icons/lib/md/photo-library.d.ts +++ b/types/react-icons/lib/md/photo-library.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdPhotoLibrary extends React.Component { } +declare class MdPhotoLibrary extends React.Component { } +export = MdPhotoLibrary; diff --git a/types/react-icons/lib/md/photo-size-select-actual.d.ts b/types/react-icons/lib/md/photo-size-select-actual.d.ts index 15e1777cf0..d2c24264f7 100644 --- a/types/react-icons/lib/md/photo-size-select-actual.d.ts +++ b/types/react-icons/lib/md/photo-size-select-actual.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdPhotoSizeSelectActual extends React.Component { } +declare class MdPhotoSizeSelectActual extends React.Component { } +export = MdPhotoSizeSelectActual; diff --git a/types/react-icons/lib/md/photo-size-select-large.d.ts b/types/react-icons/lib/md/photo-size-select-large.d.ts index 56025586af..d468535f85 100644 --- a/types/react-icons/lib/md/photo-size-select-large.d.ts +++ b/types/react-icons/lib/md/photo-size-select-large.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdPhotoSizeSelectLarge extends React.Component { } +declare class MdPhotoSizeSelectLarge extends React.Component { } +export = MdPhotoSizeSelectLarge; diff --git a/types/react-icons/lib/md/photo-size-select-small.d.ts b/types/react-icons/lib/md/photo-size-select-small.d.ts index f1a2547ff6..88d3b699eb 100644 --- a/types/react-icons/lib/md/photo-size-select-small.d.ts +++ b/types/react-icons/lib/md/photo-size-select-small.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdPhotoSizeSelectSmall extends React.Component { } +declare class MdPhotoSizeSelectSmall extends React.Component { } +export = MdPhotoSizeSelectSmall; diff --git a/types/react-icons/lib/md/photo.d.ts b/types/react-icons/lib/md/photo.d.ts index 3af5e8d6b9..7b6a50c063 100644 --- a/types/react-icons/lib/md/photo.d.ts +++ b/types/react-icons/lib/md/photo.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdPhoto extends React.Component { } +declare class MdPhoto extends React.Component { } +export = MdPhoto; diff --git a/types/react-icons/lib/md/picture-as-pdf.d.ts b/types/react-icons/lib/md/picture-as-pdf.d.ts index 06fd1dfb31..f771b781f3 100644 --- a/types/react-icons/lib/md/picture-as-pdf.d.ts +++ b/types/react-icons/lib/md/picture-as-pdf.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdPictureAsPdf extends React.Component { } +declare class MdPictureAsPdf extends React.Component { } +export = MdPictureAsPdf; diff --git a/types/react-icons/lib/md/picture-in-picture-alt.d.ts b/types/react-icons/lib/md/picture-in-picture-alt.d.ts index 41a6b03404..706766c7ee 100644 --- a/types/react-icons/lib/md/picture-in-picture-alt.d.ts +++ b/types/react-icons/lib/md/picture-in-picture-alt.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdPictureInPictureAlt extends React.Component { } +declare class MdPictureInPictureAlt extends React.Component { } +export = MdPictureInPictureAlt; diff --git a/types/react-icons/lib/md/picture-in-picture.d.ts b/types/react-icons/lib/md/picture-in-picture.d.ts index e174bddfd7..fd928d0435 100644 --- a/types/react-icons/lib/md/picture-in-picture.d.ts +++ b/types/react-icons/lib/md/picture-in-picture.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdPictureInPicture extends React.Component { } +declare class MdPictureInPicture extends React.Component { } +export = MdPictureInPicture; diff --git a/types/react-icons/lib/md/pie-chart-outlined.d.ts b/types/react-icons/lib/md/pie-chart-outlined.d.ts index 8fdaa68aee..d6124faded 100644 --- a/types/react-icons/lib/md/pie-chart-outlined.d.ts +++ b/types/react-icons/lib/md/pie-chart-outlined.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdPieChartOutlined extends React.Component { } +declare class MdPieChartOutlined extends React.Component { } +export = MdPieChartOutlined; diff --git a/types/react-icons/lib/md/pie-chart.d.ts b/types/react-icons/lib/md/pie-chart.d.ts index bf0203c4d9..8f7d291715 100644 --- a/types/react-icons/lib/md/pie-chart.d.ts +++ b/types/react-icons/lib/md/pie-chart.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdPieChart extends React.Component { } +declare class MdPieChart extends React.Component { } +export = MdPieChart; diff --git a/types/react-icons/lib/md/pin-drop.d.ts b/types/react-icons/lib/md/pin-drop.d.ts index b1511912aa..8f05678916 100644 --- a/types/react-icons/lib/md/pin-drop.d.ts +++ b/types/react-icons/lib/md/pin-drop.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdPinDrop extends React.Component { } +declare class MdPinDrop extends React.Component { } +export = MdPinDrop; diff --git a/types/react-icons/lib/md/place.d.ts b/types/react-icons/lib/md/place.d.ts index 6e7bc9f83d..dd5c14c216 100644 --- a/types/react-icons/lib/md/place.d.ts +++ b/types/react-icons/lib/md/place.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdPlace extends React.Component { } +declare class MdPlace extends React.Component { } +export = MdPlace; diff --git a/types/react-icons/lib/md/play-arrow.d.ts b/types/react-icons/lib/md/play-arrow.d.ts index 34eeedbfc9..7327a2b319 100644 --- a/types/react-icons/lib/md/play-arrow.d.ts +++ b/types/react-icons/lib/md/play-arrow.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdPlayArrow extends React.Component { } +declare class MdPlayArrow extends React.Component { } +export = MdPlayArrow; diff --git a/types/react-icons/lib/md/play-circle-filled.d.ts b/types/react-icons/lib/md/play-circle-filled.d.ts index a952747a1f..6a7ba9bf9c 100644 --- a/types/react-icons/lib/md/play-circle-filled.d.ts +++ b/types/react-icons/lib/md/play-circle-filled.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdPlayCircleFilled extends React.Component { } +declare class MdPlayCircleFilled extends React.Component { } +export = MdPlayCircleFilled; diff --git a/types/react-icons/lib/md/play-circle-outline.d.ts b/types/react-icons/lib/md/play-circle-outline.d.ts index e75083c2f3..6ebd23b062 100644 --- a/types/react-icons/lib/md/play-circle-outline.d.ts +++ b/types/react-icons/lib/md/play-circle-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdPlayCircleOutline extends React.Component { } +declare class MdPlayCircleOutline extends React.Component { } +export = MdPlayCircleOutline; diff --git a/types/react-icons/lib/md/play-for-work.d.ts b/types/react-icons/lib/md/play-for-work.d.ts index 4bb94a94b0..f0873e86fa 100644 --- a/types/react-icons/lib/md/play-for-work.d.ts +++ b/types/react-icons/lib/md/play-for-work.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdPlayForWork extends React.Component { } +declare class MdPlayForWork extends React.Component { } +export = MdPlayForWork; diff --git a/types/react-icons/lib/md/playlist-add-check.d.ts b/types/react-icons/lib/md/playlist-add-check.d.ts index 6b71a3b8c0..c22eb478a0 100644 --- a/types/react-icons/lib/md/playlist-add-check.d.ts +++ b/types/react-icons/lib/md/playlist-add-check.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdPlaylistAddCheck extends React.Component { } +declare class MdPlaylistAddCheck extends React.Component { } +export = MdPlaylistAddCheck; diff --git a/types/react-icons/lib/md/playlist-add.d.ts b/types/react-icons/lib/md/playlist-add.d.ts index 6cd4bf46e6..78bd803be2 100644 --- a/types/react-icons/lib/md/playlist-add.d.ts +++ b/types/react-icons/lib/md/playlist-add.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdPlaylistAdd extends React.Component { } +declare class MdPlaylistAdd extends React.Component { } +export = MdPlaylistAdd; diff --git a/types/react-icons/lib/md/playlist-play.d.ts b/types/react-icons/lib/md/playlist-play.d.ts index 1bbf520f44..06dea405bc 100644 --- a/types/react-icons/lib/md/playlist-play.d.ts +++ b/types/react-icons/lib/md/playlist-play.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdPlaylistPlay extends React.Component { } +declare class MdPlaylistPlay extends React.Component { } +export = MdPlaylistPlay; diff --git a/types/react-icons/lib/md/plus-one.d.ts b/types/react-icons/lib/md/plus-one.d.ts index 1237985ba5..be10a4d3a3 100644 --- a/types/react-icons/lib/md/plus-one.d.ts +++ b/types/react-icons/lib/md/plus-one.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdPlusOne extends React.Component { } +declare class MdPlusOne extends React.Component { } +export = MdPlusOne; diff --git a/types/react-icons/lib/md/poll.d.ts b/types/react-icons/lib/md/poll.d.ts index e0d456a28a..40fa12d1c2 100644 --- a/types/react-icons/lib/md/poll.d.ts +++ b/types/react-icons/lib/md/poll.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdPoll extends React.Component { } +declare class MdPoll extends React.Component { } +export = MdPoll; diff --git a/types/react-icons/lib/md/polymer.d.ts b/types/react-icons/lib/md/polymer.d.ts index 6ff9e004b4..7fc5f98fae 100644 --- a/types/react-icons/lib/md/polymer.d.ts +++ b/types/react-icons/lib/md/polymer.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdPolymer extends React.Component { } +declare class MdPolymer extends React.Component { } +export = MdPolymer; diff --git a/types/react-icons/lib/md/pool.d.ts b/types/react-icons/lib/md/pool.d.ts index 933c4f1448..6483e03363 100644 --- a/types/react-icons/lib/md/pool.d.ts +++ b/types/react-icons/lib/md/pool.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdPool extends React.Component { } +declare class MdPool extends React.Component { } +export = MdPool; diff --git a/types/react-icons/lib/md/portable-wifi-off.d.ts b/types/react-icons/lib/md/portable-wifi-off.d.ts index b3bdd30ff8..4fc9ef507c 100644 --- a/types/react-icons/lib/md/portable-wifi-off.d.ts +++ b/types/react-icons/lib/md/portable-wifi-off.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdPortableWifiOff extends React.Component { } +declare class MdPortableWifiOff extends React.Component { } +export = MdPortableWifiOff; diff --git a/types/react-icons/lib/md/portrait.d.ts b/types/react-icons/lib/md/portrait.d.ts index 1e9b2f717e..a587b96bfc 100644 --- a/types/react-icons/lib/md/portrait.d.ts +++ b/types/react-icons/lib/md/portrait.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdPortrait extends React.Component { } +declare class MdPortrait extends React.Component { } +export = MdPortrait; diff --git a/types/react-icons/lib/md/power-input.d.ts b/types/react-icons/lib/md/power-input.d.ts index 71f89e9e40..34a90c855f 100644 --- a/types/react-icons/lib/md/power-input.d.ts +++ b/types/react-icons/lib/md/power-input.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdPowerInput extends React.Component { } +declare class MdPowerInput extends React.Component { } +export = MdPowerInput; diff --git a/types/react-icons/lib/md/power-settings-new.d.ts b/types/react-icons/lib/md/power-settings-new.d.ts index 69221c9111..1d76b0c67e 100644 --- a/types/react-icons/lib/md/power-settings-new.d.ts +++ b/types/react-icons/lib/md/power-settings-new.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdPowerSettingsNew extends React.Component { } +declare class MdPowerSettingsNew extends React.Component { } +export = MdPowerSettingsNew; diff --git a/types/react-icons/lib/md/power.d.ts b/types/react-icons/lib/md/power.d.ts index 106471c2a5..8839984678 100644 --- a/types/react-icons/lib/md/power.d.ts +++ b/types/react-icons/lib/md/power.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdPower extends React.Component { } +declare class MdPower extends React.Component { } +export = MdPower; diff --git a/types/react-icons/lib/md/pregnant-woman.d.ts b/types/react-icons/lib/md/pregnant-woman.d.ts index 9e88eab156..7278b215e3 100644 --- a/types/react-icons/lib/md/pregnant-woman.d.ts +++ b/types/react-icons/lib/md/pregnant-woman.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdPregnantWoman extends React.Component { } +declare class MdPregnantWoman extends React.Component { } +export = MdPregnantWoman; diff --git a/types/react-icons/lib/md/present-to-all.d.ts b/types/react-icons/lib/md/present-to-all.d.ts index b88c9a45d2..93d710de16 100644 --- a/types/react-icons/lib/md/present-to-all.d.ts +++ b/types/react-icons/lib/md/present-to-all.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdPresentToAll extends React.Component { } +declare class MdPresentToAll extends React.Component { } +export = MdPresentToAll; diff --git a/types/react-icons/lib/md/print.d.ts b/types/react-icons/lib/md/print.d.ts index 74d6db2f37..62b476b9c7 100644 --- a/types/react-icons/lib/md/print.d.ts +++ b/types/react-icons/lib/md/print.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdPrint extends React.Component { } +declare class MdPrint extends React.Component { } +export = MdPrint; diff --git a/types/react-icons/lib/md/priority-high.d.ts b/types/react-icons/lib/md/priority-high.d.ts index 56c1354dae..840ab9c68a 100644 --- a/types/react-icons/lib/md/priority-high.d.ts +++ b/types/react-icons/lib/md/priority-high.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdPriorityHigh extends React.Component { } +declare class MdPriorityHigh extends React.Component { } +export = MdPriorityHigh; diff --git a/types/react-icons/lib/md/public.d.ts b/types/react-icons/lib/md/public.d.ts index 1615661bab..91706fbb9e 100644 --- a/types/react-icons/lib/md/public.d.ts +++ b/types/react-icons/lib/md/public.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdPublic extends React.Component { } +declare class MdPublic extends React.Component { } +export = MdPublic; diff --git a/types/react-icons/lib/md/publish.d.ts b/types/react-icons/lib/md/publish.d.ts index 76aae7f48b..db437f53be 100644 --- a/types/react-icons/lib/md/publish.d.ts +++ b/types/react-icons/lib/md/publish.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdPublish extends React.Component { } +declare class MdPublish extends React.Component { } +export = MdPublish; diff --git a/types/react-icons/lib/md/query-builder.d.ts b/types/react-icons/lib/md/query-builder.d.ts index 3607cbf408..8dff3909b5 100644 --- a/types/react-icons/lib/md/query-builder.d.ts +++ b/types/react-icons/lib/md/query-builder.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdQueryBuilder extends React.Component { } +declare class MdQueryBuilder extends React.Component { } +export = MdQueryBuilder; diff --git a/types/react-icons/lib/md/question-answer.d.ts b/types/react-icons/lib/md/question-answer.d.ts index b88cd376d0..76423a5ea1 100644 --- a/types/react-icons/lib/md/question-answer.d.ts +++ b/types/react-icons/lib/md/question-answer.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdQuestionAnswer extends React.Component { } +declare class MdQuestionAnswer extends React.Component { } +export = MdQuestionAnswer; diff --git a/types/react-icons/lib/md/queue-music.d.ts b/types/react-icons/lib/md/queue-music.d.ts index 0a9a451291..0186613977 100644 --- a/types/react-icons/lib/md/queue-music.d.ts +++ b/types/react-icons/lib/md/queue-music.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdQueueMusic extends React.Component { } +declare class MdQueueMusic extends React.Component { } +export = MdQueueMusic; diff --git a/types/react-icons/lib/md/queue-play-next.d.ts b/types/react-icons/lib/md/queue-play-next.d.ts index 4540a71df0..c62528bd30 100644 --- a/types/react-icons/lib/md/queue-play-next.d.ts +++ b/types/react-icons/lib/md/queue-play-next.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdQueuePlayNext extends React.Component { } +declare class MdQueuePlayNext extends React.Component { } +export = MdQueuePlayNext; diff --git a/types/react-icons/lib/md/queue.d.ts b/types/react-icons/lib/md/queue.d.ts index 80b27a7f8a..0f2250095b 100644 --- a/types/react-icons/lib/md/queue.d.ts +++ b/types/react-icons/lib/md/queue.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdQueue extends React.Component { } +declare class MdQueue extends React.Component { } +export = MdQueue; diff --git a/types/react-icons/lib/md/radio-button-checked.d.ts b/types/react-icons/lib/md/radio-button-checked.d.ts index dfa06080e6..f8e479ee43 100644 --- a/types/react-icons/lib/md/radio-button-checked.d.ts +++ b/types/react-icons/lib/md/radio-button-checked.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdRadioButtonChecked extends React.Component { } +declare class MdRadioButtonChecked extends React.Component { } +export = MdRadioButtonChecked; diff --git a/types/react-icons/lib/md/radio-button-unchecked.d.ts b/types/react-icons/lib/md/radio-button-unchecked.d.ts index b154b71305..60564b7e28 100644 --- a/types/react-icons/lib/md/radio-button-unchecked.d.ts +++ b/types/react-icons/lib/md/radio-button-unchecked.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdRadioButtonUnchecked extends React.Component { } +declare class MdRadioButtonUnchecked extends React.Component { } +export = MdRadioButtonUnchecked; diff --git a/types/react-icons/lib/md/radio.d.ts b/types/react-icons/lib/md/radio.d.ts index bd53fd4f03..af41f21e68 100644 --- a/types/react-icons/lib/md/radio.d.ts +++ b/types/react-icons/lib/md/radio.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdRadio extends React.Component { } +declare class MdRadio extends React.Component { } +export = MdRadio; diff --git a/types/react-icons/lib/md/rate-review.d.ts b/types/react-icons/lib/md/rate-review.d.ts index 6de3f28785..5f1ef5658a 100644 --- a/types/react-icons/lib/md/rate-review.d.ts +++ b/types/react-icons/lib/md/rate-review.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdRateReview extends React.Component { } +declare class MdRateReview extends React.Component { } +export = MdRateReview; diff --git a/types/react-icons/lib/md/receipt.d.ts b/types/react-icons/lib/md/receipt.d.ts index 1b781c04c7..ae345fa152 100644 --- a/types/react-icons/lib/md/receipt.d.ts +++ b/types/react-icons/lib/md/receipt.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdReceipt extends React.Component { } +declare class MdReceipt extends React.Component { } +export = MdReceipt; diff --git a/types/react-icons/lib/md/recent-actors.d.ts b/types/react-icons/lib/md/recent-actors.d.ts index cfcf0432b5..d347341dc6 100644 --- a/types/react-icons/lib/md/recent-actors.d.ts +++ b/types/react-icons/lib/md/recent-actors.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdRecentActors extends React.Component { } +declare class MdRecentActors extends React.Component { } +export = MdRecentActors; diff --git a/types/react-icons/lib/md/record-voice-over.d.ts b/types/react-icons/lib/md/record-voice-over.d.ts index ab9b2189b8..89c019ede6 100644 --- a/types/react-icons/lib/md/record-voice-over.d.ts +++ b/types/react-icons/lib/md/record-voice-over.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdRecordVoiceOver extends React.Component { } +declare class MdRecordVoiceOver extends React.Component { } +export = MdRecordVoiceOver; diff --git a/types/react-icons/lib/md/redeem.d.ts b/types/react-icons/lib/md/redeem.d.ts index 7690d10236..05195322b9 100644 --- a/types/react-icons/lib/md/redeem.d.ts +++ b/types/react-icons/lib/md/redeem.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdRedeem extends React.Component { } +declare class MdRedeem extends React.Component { } +export = MdRedeem; diff --git a/types/react-icons/lib/md/redo.d.ts b/types/react-icons/lib/md/redo.d.ts index 3e0e1fac51..355d6a28e4 100644 --- a/types/react-icons/lib/md/redo.d.ts +++ b/types/react-icons/lib/md/redo.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdRedo extends React.Component { } +declare class MdRedo extends React.Component { } +export = MdRedo; diff --git a/types/react-icons/lib/md/refresh.d.ts b/types/react-icons/lib/md/refresh.d.ts index f037c2a972..40213a11ed 100644 --- a/types/react-icons/lib/md/refresh.d.ts +++ b/types/react-icons/lib/md/refresh.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdRefresh extends React.Component { } +declare class MdRefresh extends React.Component { } +export = MdRefresh; diff --git a/types/react-icons/lib/md/remove-circle-outline.d.ts b/types/react-icons/lib/md/remove-circle-outline.d.ts index 3488b16e2a..5a06426edf 100644 --- a/types/react-icons/lib/md/remove-circle-outline.d.ts +++ b/types/react-icons/lib/md/remove-circle-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdRemoveCircleOutline extends React.Component { } +declare class MdRemoveCircleOutline extends React.Component { } +export = MdRemoveCircleOutline; diff --git a/types/react-icons/lib/md/remove-circle.d.ts b/types/react-icons/lib/md/remove-circle.d.ts index 77d8b1db6c..a79189430d 100644 --- a/types/react-icons/lib/md/remove-circle.d.ts +++ b/types/react-icons/lib/md/remove-circle.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdRemoveCircle extends React.Component { } +declare class MdRemoveCircle extends React.Component { } +export = MdRemoveCircle; diff --git a/types/react-icons/lib/md/remove-from-queue.d.ts b/types/react-icons/lib/md/remove-from-queue.d.ts index 05299a588f..bc4a8b2a60 100644 --- a/types/react-icons/lib/md/remove-from-queue.d.ts +++ b/types/react-icons/lib/md/remove-from-queue.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdRemoveFromQueue extends React.Component { } +declare class MdRemoveFromQueue extends React.Component { } +export = MdRemoveFromQueue; diff --git a/types/react-icons/lib/md/remove-red-eye.d.ts b/types/react-icons/lib/md/remove-red-eye.d.ts index 8f839358ba..08e340824f 100644 --- a/types/react-icons/lib/md/remove-red-eye.d.ts +++ b/types/react-icons/lib/md/remove-red-eye.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdRemoveRedEye extends React.Component { } +declare class MdRemoveRedEye extends React.Component { } +export = MdRemoveRedEye; diff --git a/types/react-icons/lib/md/remove-shopping-cart.d.ts b/types/react-icons/lib/md/remove-shopping-cart.d.ts index 2715486aea..d0d1a3a063 100644 --- a/types/react-icons/lib/md/remove-shopping-cart.d.ts +++ b/types/react-icons/lib/md/remove-shopping-cart.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdRemoveShoppingCart extends React.Component { } +declare class MdRemoveShoppingCart extends React.Component { } +export = MdRemoveShoppingCart; diff --git a/types/react-icons/lib/md/remove.d.ts b/types/react-icons/lib/md/remove.d.ts index 9522f25fe9..cc473fea9f 100644 --- a/types/react-icons/lib/md/remove.d.ts +++ b/types/react-icons/lib/md/remove.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdRemove extends React.Component { } +declare class MdRemove extends React.Component { } +export = MdRemove; diff --git a/types/react-icons/lib/md/reorder.d.ts b/types/react-icons/lib/md/reorder.d.ts index 9f24bc5ed5..e9550c664b 100644 --- a/types/react-icons/lib/md/reorder.d.ts +++ b/types/react-icons/lib/md/reorder.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdReorder extends React.Component { } +declare class MdReorder extends React.Component { } +export = MdReorder; diff --git a/types/react-icons/lib/md/repeat-one.d.ts b/types/react-icons/lib/md/repeat-one.d.ts index 74a3642bf5..cb17395670 100644 --- a/types/react-icons/lib/md/repeat-one.d.ts +++ b/types/react-icons/lib/md/repeat-one.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdRepeatOne extends React.Component { } +declare class MdRepeatOne extends React.Component { } +export = MdRepeatOne; diff --git a/types/react-icons/lib/md/repeat.d.ts b/types/react-icons/lib/md/repeat.d.ts index e1d7352ab9..9de29f628a 100644 --- a/types/react-icons/lib/md/repeat.d.ts +++ b/types/react-icons/lib/md/repeat.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdRepeat extends React.Component { } +declare class MdRepeat extends React.Component { } +export = MdRepeat; diff --git a/types/react-icons/lib/md/replay-10.d.ts b/types/react-icons/lib/md/replay-10.d.ts index 3d9f3ef0c4..d4a6163e66 100644 --- a/types/react-icons/lib/md/replay-10.d.ts +++ b/types/react-icons/lib/md/replay-10.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdReplay10 extends React.Component { } +declare class MdReplay10 extends React.Component { } +export = MdReplay10; diff --git a/types/react-icons/lib/md/replay-30.d.ts b/types/react-icons/lib/md/replay-30.d.ts index 402af551ba..2f7775f226 100644 --- a/types/react-icons/lib/md/replay-30.d.ts +++ b/types/react-icons/lib/md/replay-30.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdReplay30 extends React.Component { } +declare class MdReplay30 extends React.Component { } +export = MdReplay30; diff --git a/types/react-icons/lib/md/replay-5.d.ts b/types/react-icons/lib/md/replay-5.d.ts index 78905ba50c..51ee68a11f 100644 --- a/types/react-icons/lib/md/replay-5.d.ts +++ b/types/react-icons/lib/md/replay-5.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdReplay5 extends React.Component { } +declare class MdReplay5 extends React.Component { } +export = MdReplay5; diff --git a/types/react-icons/lib/md/replay.d.ts b/types/react-icons/lib/md/replay.d.ts index 47d8592a3d..4245bb86b3 100644 --- a/types/react-icons/lib/md/replay.d.ts +++ b/types/react-icons/lib/md/replay.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdReplay extends React.Component { } +declare class MdReplay extends React.Component { } +export = MdReplay; diff --git a/types/react-icons/lib/md/reply-all.d.ts b/types/react-icons/lib/md/reply-all.d.ts index 07aa5f01f2..4e7fda0551 100644 --- a/types/react-icons/lib/md/reply-all.d.ts +++ b/types/react-icons/lib/md/reply-all.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdReplyAll extends React.Component { } +declare class MdReplyAll extends React.Component { } +export = MdReplyAll; diff --git a/types/react-icons/lib/md/reply.d.ts b/types/react-icons/lib/md/reply.d.ts index 648de11ef1..e83df14565 100644 --- a/types/react-icons/lib/md/reply.d.ts +++ b/types/react-icons/lib/md/reply.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdReply extends React.Component { } +declare class MdReply extends React.Component { } +export = MdReply; diff --git a/types/react-icons/lib/md/report-problem.d.ts b/types/react-icons/lib/md/report-problem.d.ts index c3dbf0101a..d994bf6a19 100644 --- a/types/react-icons/lib/md/report-problem.d.ts +++ b/types/react-icons/lib/md/report-problem.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdReportProblem extends React.Component { } +declare class MdReportProblem extends React.Component { } +export = MdReportProblem; diff --git a/types/react-icons/lib/md/report.d.ts b/types/react-icons/lib/md/report.d.ts index af51419c00..2b90b6889c 100644 --- a/types/react-icons/lib/md/report.d.ts +++ b/types/react-icons/lib/md/report.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdReport extends React.Component { } +declare class MdReport extends React.Component { } +export = MdReport; diff --git a/types/react-icons/lib/md/restaurant-menu.d.ts b/types/react-icons/lib/md/restaurant-menu.d.ts index 306891c857..ba1f140c85 100644 --- a/types/react-icons/lib/md/restaurant-menu.d.ts +++ b/types/react-icons/lib/md/restaurant-menu.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdRestaurantMenu extends React.Component { } +declare class MdRestaurantMenu extends React.Component { } +export = MdRestaurantMenu; diff --git a/types/react-icons/lib/md/restaurant.d.ts b/types/react-icons/lib/md/restaurant.d.ts index 5adc8e8712..c73547557c 100644 --- a/types/react-icons/lib/md/restaurant.d.ts +++ b/types/react-icons/lib/md/restaurant.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdRestaurant extends React.Component { } +declare class MdRestaurant extends React.Component { } +export = MdRestaurant; diff --git a/types/react-icons/lib/md/restore-page.d.ts b/types/react-icons/lib/md/restore-page.d.ts index d836b1f669..5f8df2e582 100644 --- a/types/react-icons/lib/md/restore-page.d.ts +++ b/types/react-icons/lib/md/restore-page.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdRestorePage extends React.Component { } +declare class MdRestorePage extends React.Component { } +export = MdRestorePage; diff --git a/types/react-icons/lib/md/restore.d.ts b/types/react-icons/lib/md/restore.d.ts index aaadca1e08..1e4e89e80e 100644 --- a/types/react-icons/lib/md/restore.d.ts +++ b/types/react-icons/lib/md/restore.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdRestore extends React.Component { } +declare class MdRestore extends React.Component { } +export = MdRestore; diff --git a/types/react-icons/lib/md/ring-volume.d.ts b/types/react-icons/lib/md/ring-volume.d.ts index 41843c29bd..ad9af1db0f 100644 --- a/types/react-icons/lib/md/ring-volume.d.ts +++ b/types/react-icons/lib/md/ring-volume.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdRingVolume extends React.Component { } +declare class MdRingVolume extends React.Component { } +export = MdRingVolume; diff --git a/types/react-icons/lib/md/room-service.d.ts b/types/react-icons/lib/md/room-service.d.ts index 4b69032332..3dfd465e03 100644 --- a/types/react-icons/lib/md/room-service.d.ts +++ b/types/react-icons/lib/md/room-service.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdRoomService extends React.Component { } +declare class MdRoomService extends React.Component { } +export = MdRoomService; diff --git a/types/react-icons/lib/md/room.d.ts b/types/react-icons/lib/md/room.d.ts index 49ab4cae8d..4b6d53a92f 100644 --- a/types/react-icons/lib/md/room.d.ts +++ b/types/react-icons/lib/md/room.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdRoom extends React.Component { } +declare class MdRoom extends React.Component { } +export = MdRoom; diff --git a/types/react-icons/lib/md/rotate-90-degrees-ccw.d.ts b/types/react-icons/lib/md/rotate-90-degrees-ccw.d.ts index ba2f85b1e2..8e5da4d975 100644 --- a/types/react-icons/lib/md/rotate-90-degrees-ccw.d.ts +++ b/types/react-icons/lib/md/rotate-90-degrees-ccw.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdRotate90DegreesCcw extends React.Component { } +declare class MdRotate90DegreesCcw extends React.Component { } +export = MdRotate90DegreesCcw; diff --git a/types/react-icons/lib/md/rotate-left.d.ts b/types/react-icons/lib/md/rotate-left.d.ts index 493c21cd47..2bae5dd27a 100644 --- a/types/react-icons/lib/md/rotate-left.d.ts +++ b/types/react-icons/lib/md/rotate-left.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdRotateLeft extends React.Component { } +declare class MdRotateLeft extends React.Component { } +export = MdRotateLeft; diff --git a/types/react-icons/lib/md/rotate-right.d.ts b/types/react-icons/lib/md/rotate-right.d.ts index 936625527b..383af61134 100644 --- a/types/react-icons/lib/md/rotate-right.d.ts +++ b/types/react-icons/lib/md/rotate-right.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdRotateRight extends React.Component { } +declare class MdRotateRight extends React.Component { } +export = MdRotateRight; diff --git a/types/react-icons/lib/md/rounded-corner.d.ts b/types/react-icons/lib/md/rounded-corner.d.ts index 592818db46..e596f50c2d 100644 --- a/types/react-icons/lib/md/rounded-corner.d.ts +++ b/types/react-icons/lib/md/rounded-corner.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdRoundedCorner extends React.Component { } +declare class MdRoundedCorner extends React.Component { } +export = MdRoundedCorner; diff --git a/types/react-icons/lib/md/router.d.ts b/types/react-icons/lib/md/router.d.ts index 71effffe25..43947a6a1a 100644 --- a/types/react-icons/lib/md/router.d.ts +++ b/types/react-icons/lib/md/router.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdRouter extends React.Component { } +declare class MdRouter extends React.Component { } +export = MdRouter; diff --git a/types/react-icons/lib/md/rowing.d.ts b/types/react-icons/lib/md/rowing.d.ts index 66d50957df..bc40733522 100644 --- a/types/react-icons/lib/md/rowing.d.ts +++ b/types/react-icons/lib/md/rowing.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdRowing extends React.Component { } +declare class MdRowing extends React.Component { } +export = MdRowing; diff --git a/types/react-icons/lib/md/rss-feed.d.ts b/types/react-icons/lib/md/rss-feed.d.ts index 857453af7d..a2d809e6a5 100644 --- a/types/react-icons/lib/md/rss-feed.d.ts +++ b/types/react-icons/lib/md/rss-feed.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdRssFeed extends React.Component { } +declare class MdRssFeed extends React.Component { } +export = MdRssFeed; diff --git a/types/react-icons/lib/md/rv-hookup.d.ts b/types/react-icons/lib/md/rv-hookup.d.ts index 6b3f6b3a67..5db1b8b217 100644 --- a/types/react-icons/lib/md/rv-hookup.d.ts +++ b/types/react-icons/lib/md/rv-hookup.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdRvHookup extends React.Component { } +declare class MdRvHookup extends React.Component { } +export = MdRvHookup; diff --git a/types/react-icons/lib/md/satellite.d.ts b/types/react-icons/lib/md/satellite.d.ts index 1371e50a1d..c75656781c 100644 --- a/types/react-icons/lib/md/satellite.d.ts +++ b/types/react-icons/lib/md/satellite.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdSatellite extends React.Component { } +declare class MdSatellite extends React.Component { } +export = MdSatellite; diff --git a/types/react-icons/lib/md/save.d.ts b/types/react-icons/lib/md/save.d.ts index f3aa747a5a..52f76c62fa 100644 --- a/types/react-icons/lib/md/save.d.ts +++ b/types/react-icons/lib/md/save.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdSave extends React.Component { } +declare class MdSave extends React.Component { } +export = MdSave; diff --git a/types/react-icons/lib/md/scanner.d.ts b/types/react-icons/lib/md/scanner.d.ts index db18a8c57b..a948265dae 100644 --- a/types/react-icons/lib/md/scanner.d.ts +++ b/types/react-icons/lib/md/scanner.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdScanner extends React.Component { } +declare class MdScanner extends React.Component { } +export = MdScanner; diff --git a/types/react-icons/lib/md/schedule.d.ts b/types/react-icons/lib/md/schedule.d.ts index e85dac4d66..ea91abb209 100644 --- a/types/react-icons/lib/md/schedule.d.ts +++ b/types/react-icons/lib/md/schedule.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdSchedule extends React.Component { } +declare class MdSchedule extends React.Component { } +export = MdSchedule; diff --git a/types/react-icons/lib/md/school.d.ts b/types/react-icons/lib/md/school.d.ts index ec9ad586c7..8e6db36a55 100644 --- a/types/react-icons/lib/md/school.d.ts +++ b/types/react-icons/lib/md/school.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdSchool extends React.Component { } +declare class MdSchool extends React.Component { } +export = MdSchool; diff --git a/types/react-icons/lib/md/screen-lock-landscape.d.ts b/types/react-icons/lib/md/screen-lock-landscape.d.ts index 8bd82ab85e..83936e6cf5 100644 --- a/types/react-icons/lib/md/screen-lock-landscape.d.ts +++ b/types/react-icons/lib/md/screen-lock-landscape.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdScreenLockLandscape extends React.Component { } +declare class MdScreenLockLandscape extends React.Component { } +export = MdScreenLockLandscape; diff --git a/types/react-icons/lib/md/screen-lock-portrait.d.ts b/types/react-icons/lib/md/screen-lock-portrait.d.ts index 4439deda82..acb9616bf3 100644 --- a/types/react-icons/lib/md/screen-lock-portrait.d.ts +++ b/types/react-icons/lib/md/screen-lock-portrait.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdScreenLockPortrait extends React.Component { } +declare class MdScreenLockPortrait extends React.Component { } +export = MdScreenLockPortrait; diff --git a/types/react-icons/lib/md/screen-lock-rotation.d.ts b/types/react-icons/lib/md/screen-lock-rotation.d.ts index 7edd36c10d..3b14fad7c3 100644 --- a/types/react-icons/lib/md/screen-lock-rotation.d.ts +++ b/types/react-icons/lib/md/screen-lock-rotation.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdScreenLockRotation extends React.Component { } +declare class MdScreenLockRotation extends React.Component { } +export = MdScreenLockRotation; diff --git a/types/react-icons/lib/md/screen-rotation.d.ts b/types/react-icons/lib/md/screen-rotation.d.ts index ac2cd107e2..9fdb432b74 100644 --- a/types/react-icons/lib/md/screen-rotation.d.ts +++ b/types/react-icons/lib/md/screen-rotation.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdScreenRotation extends React.Component { } +declare class MdScreenRotation extends React.Component { } +export = MdScreenRotation; diff --git a/types/react-icons/lib/md/screen-share.d.ts b/types/react-icons/lib/md/screen-share.d.ts index 1c6e5f8f3f..38f9b890db 100644 --- a/types/react-icons/lib/md/screen-share.d.ts +++ b/types/react-icons/lib/md/screen-share.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdScreenShare extends React.Component { } +declare class MdScreenShare extends React.Component { } +export = MdScreenShare; diff --git a/types/react-icons/lib/md/sd-card.d.ts b/types/react-icons/lib/md/sd-card.d.ts index fbf66bc8ae..894db93bf7 100644 --- a/types/react-icons/lib/md/sd-card.d.ts +++ b/types/react-icons/lib/md/sd-card.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdSdCard extends React.Component { } +declare class MdSdCard extends React.Component { } +export = MdSdCard; diff --git a/types/react-icons/lib/md/sd-storage.d.ts b/types/react-icons/lib/md/sd-storage.d.ts index 645f26b009..5954597cad 100644 --- a/types/react-icons/lib/md/sd-storage.d.ts +++ b/types/react-icons/lib/md/sd-storage.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdSdStorage extends React.Component { } +declare class MdSdStorage extends React.Component { } +export = MdSdStorage; diff --git a/types/react-icons/lib/md/search.d.ts b/types/react-icons/lib/md/search.d.ts index 4c4f7aafeb..10abf14f31 100644 --- a/types/react-icons/lib/md/search.d.ts +++ b/types/react-icons/lib/md/search.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdSearch extends React.Component { } +declare class MdSearch extends React.Component { } +export = MdSearch; diff --git a/types/react-icons/lib/md/security.d.ts b/types/react-icons/lib/md/security.d.ts index ffeffbbfeb..2c3381cf2e 100644 --- a/types/react-icons/lib/md/security.d.ts +++ b/types/react-icons/lib/md/security.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdSecurity extends React.Component { } +declare class MdSecurity extends React.Component { } +export = MdSecurity; diff --git a/types/react-icons/lib/md/select-all.d.ts b/types/react-icons/lib/md/select-all.d.ts index e8d8ba116a..aacf948922 100644 --- a/types/react-icons/lib/md/select-all.d.ts +++ b/types/react-icons/lib/md/select-all.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdSelectAll extends React.Component { } +declare class MdSelectAll extends React.Component { } +export = MdSelectAll; diff --git a/types/react-icons/lib/md/send.d.ts b/types/react-icons/lib/md/send.d.ts index a643cfddfa..162137fb99 100644 --- a/types/react-icons/lib/md/send.d.ts +++ b/types/react-icons/lib/md/send.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdSend extends React.Component { } +declare class MdSend extends React.Component { } +export = MdSend; diff --git a/types/react-icons/lib/md/sentiment-dissatisfied.d.ts b/types/react-icons/lib/md/sentiment-dissatisfied.d.ts index e5e989d5ad..a62acf6df6 100644 --- a/types/react-icons/lib/md/sentiment-dissatisfied.d.ts +++ b/types/react-icons/lib/md/sentiment-dissatisfied.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdSentimentDissatisfied extends React.Component { } +declare class MdSentimentDissatisfied extends React.Component { } +export = MdSentimentDissatisfied; diff --git a/types/react-icons/lib/md/sentiment-neutral.d.ts b/types/react-icons/lib/md/sentiment-neutral.d.ts index ea95a02aea..d8091cbc2c 100644 --- a/types/react-icons/lib/md/sentiment-neutral.d.ts +++ b/types/react-icons/lib/md/sentiment-neutral.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdSentimentNeutral extends React.Component { } +declare class MdSentimentNeutral extends React.Component { } +export = MdSentimentNeutral; diff --git a/types/react-icons/lib/md/sentiment-satisfied.d.ts b/types/react-icons/lib/md/sentiment-satisfied.d.ts index ff9ba41c7e..cbe5553524 100644 --- a/types/react-icons/lib/md/sentiment-satisfied.d.ts +++ b/types/react-icons/lib/md/sentiment-satisfied.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdSentimentSatisfied extends React.Component { } +declare class MdSentimentSatisfied extends React.Component { } +export = MdSentimentSatisfied; diff --git a/types/react-icons/lib/md/sentiment-very-dissatisfied.d.ts b/types/react-icons/lib/md/sentiment-very-dissatisfied.d.ts index 9e26b053fc..1ac9808f2f 100644 --- a/types/react-icons/lib/md/sentiment-very-dissatisfied.d.ts +++ b/types/react-icons/lib/md/sentiment-very-dissatisfied.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdSentimentVeryDissatisfied extends React.Component { } +declare class MdSentimentVeryDissatisfied extends React.Component { } +export = MdSentimentVeryDissatisfied; diff --git a/types/react-icons/lib/md/sentiment-very-satisfied.d.ts b/types/react-icons/lib/md/sentiment-very-satisfied.d.ts index 570e358c3a..ef2aee237a 100644 --- a/types/react-icons/lib/md/sentiment-very-satisfied.d.ts +++ b/types/react-icons/lib/md/sentiment-very-satisfied.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdSentimentVerySatisfied extends React.Component { } +declare class MdSentimentVerySatisfied extends React.Component { } +export = MdSentimentVerySatisfied; diff --git a/types/react-icons/lib/md/settings-applications.d.ts b/types/react-icons/lib/md/settings-applications.d.ts index 75223b6af8..d2472f774b 100644 --- a/types/react-icons/lib/md/settings-applications.d.ts +++ b/types/react-icons/lib/md/settings-applications.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdSettingsApplications extends React.Component { } +declare class MdSettingsApplications extends React.Component { } +export = MdSettingsApplications; diff --git a/types/react-icons/lib/md/settings-backup-restore.d.ts b/types/react-icons/lib/md/settings-backup-restore.d.ts index beeec5199f..ad56096928 100644 --- a/types/react-icons/lib/md/settings-backup-restore.d.ts +++ b/types/react-icons/lib/md/settings-backup-restore.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdSettingsBackupRestore extends React.Component { } +declare class MdSettingsBackupRestore extends React.Component { } +export = MdSettingsBackupRestore; diff --git a/types/react-icons/lib/md/settings-bluetooth.d.ts b/types/react-icons/lib/md/settings-bluetooth.d.ts index 0f295f3c78..0951501e98 100644 --- a/types/react-icons/lib/md/settings-bluetooth.d.ts +++ b/types/react-icons/lib/md/settings-bluetooth.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdSettingsBluetooth extends React.Component { } +declare class MdSettingsBluetooth extends React.Component { } +export = MdSettingsBluetooth; diff --git a/types/react-icons/lib/md/settings-brightness.d.ts b/types/react-icons/lib/md/settings-brightness.d.ts index 41c1e8360f..78854eb65f 100644 --- a/types/react-icons/lib/md/settings-brightness.d.ts +++ b/types/react-icons/lib/md/settings-brightness.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdSettingsBrightness extends React.Component { } +declare class MdSettingsBrightness extends React.Component { } +export = MdSettingsBrightness; diff --git a/types/react-icons/lib/md/settings-cell.d.ts b/types/react-icons/lib/md/settings-cell.d.ts index 620d7e1fe5..a60a8cf1ac 100644 --- a/types/react-icons/lib/md/settings-cell.d.ts +++ b/types/react-icons/lib/md/settings-cell.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdSettingsCell extends React.Component { } +declare class MdSettingsCell extends React.Component { } +export = MdSettingsCell; diff --git a/types/react-icons/lib/md/settings-ethernet.d.ts b/types/react-icons/lib/md/settings-ethernet.d.ts index c610f8ec24..b6b30b29de 100644 --- a/types/react-icons/lib/md/settings-ethernet.d.ts +++ b/types/react-icons/lib/md/settings-ethernet.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdSettingsEthernet extends React.Component { } +declare class MdSettingsEthernet extends React.Component { } +export = MdSettingsEthernet; diff --git a/types/react-icons/lib/md/settings-input-antenna.d.ts b/types/react-icons/lib/md/settings-input-antenna.d.ts index f19536a4cb..7099f8a3f2 100644 --- a/types/react-icons/lib/md/settings-input-antenna.d.ts +++ b/types/react-icons/lib/md/settings-input-antenna.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdSettingsInputAntenna extends React.Component { } +declare class MdSettingsInputAntenna extends React.Component { } +export = MdSettingsInputAntenna; diff --git a/types/react-icons/lib/md/settings-input-component.d.ts b/types/react-icons/lib/md/settings-input-component.d.ts index e1fe37ccdf..4348ba310e 100644 --- a/types/react-icons/lib/md/settings-input-component.d.ts +++ b/types/react-icons/lib/md/settings-input-component.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdSettingsInputComponent extends React.Component { } +declare class MdSettingsInputComponent extends React.Component { } +export = MdSettingsInputComponent; diff --git a/types/react-icons/lib/md/settings-input-composite.d.ts b/types/react-icons/lib/md/settings-input-composite.d.ts index 266f9969fb..5ceda7379f 100644 --- a/types/react-icons/lib/md/settings-input-composite.d.ts +++ b/types/react-icons/lib/md/settings-input-composite.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdSettingsInputComposite extends React.Component { } +declare class MdSettingsInputComposite extends React.Component { } +export = MdSettingsInputComposite; diff --git a/types/react-icons/lib/md/settings-input-hdmi.d.ts b/types/react-icons/lib/md/settings-input-hdmi.d.ts index be910d9b17..ceaf5bae19 100644 --- a/types/react-icons/lib/md/settings-input-hdmi.d.ts +++ b/types/react-icons/lib/md/settings-input-hdmi.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdSettingsInputHdmi extends React.Component { } +declare class MdSettingsInputHdmi extends React.Component { } +export = MdSettingsInputHdmi; diff --git a/types/react-icons/lib/md/settings-input-svideo.d.ts b/types/react-icons/lib/md/settings-input-svideo.d.ts index d9254b4996..38aee4cc5b 100644 --- a/types/react-icons/lib/md/settings-input-svideo.d.ts +++ b/types/react-icons/lib/md/settings-input-svideo.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdSettingsInputSvideo extends React.Component { } +declare class MdSettingsInputSvideo extends React.Component { } +export = MdSettingsInputSvideo; diff --git a/types/react-icons/lib/md/settings-overscan.d.ts b/types/react-icons/lib/md/settings-overscan.d.ts index c74ed6c60b..c2932f567c 100644 --- a/types/react-icons/lib/md/settings-overscan.d.ts +++ b/types/react-icons/lib/md/settings-overscan.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdSettingsOverscan extends React.Component { } +declare class MdSettingsOverscan extends React.Component { } +export = MdSettingsOverscan; diff --git a/types/react-icons/lib/md/settings-phone.d.ts b/types/react-icons/lib/md/settings-phone.d.ts index a24ed75c1a..fe28d9b8df 100644 --- a/types/react-icons/lib/md/settings-phone.d.ts +++ b/types/react-icons/lib/md/settings-phone.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdSettingsPhone extends React.Component { } +declare class MdSettingsPhone extends React.Component { } +export = MdSettingsPhone; diff --git a/types/react-icons/lib/md/settings-power.d.ts b/types/react-icons/lib/md/settings-power.d.ts index f93530a007..f36622e144 100644 --- a/types/react-icons/lib/md/settings-power.d.ts +++ b/types/react-icons/lib/md/settings-power.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdSettingsPower extends React.Component { } +declare class MdSettingsPower extends React.Component { } +export = MdSettingsPower; diff --git a/types/react-icons/lib/md/settings-remote.d.ts b/types/react-icons/lib/md/settings-remote.d.ts index 19720afb98..ed8987736c 100644 --- a/types/react-icons/lib/md/settings-remote.d.ts +++ b/types/react-icons/lib/md/settings-remote.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdSettingsRemote extends React.Component { } +declare class MdSettingsRemote extends React.Component { } +export = MdSettingsRemote; diff --git a/types/react-icons/lib/md/settings-system-daydream.d.ts b/types/react-icons/lib/md/settings-system-daydream.d.ts index 654c1666d7..0ea373ba0d 100644 --- a/types/react-icons/lib/md/settings-system-daydream.d.ts +++ b/types/react-icons/lib/md/settings-system-daydream.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdSettingsSystemDaydream extends React.Component { } +declare class MdSettingsSystemDaydream extends React.Component { } +export = MdSettingsSystemDaydream; diff --git a/types/react-icons/lib/md/settings-voice.d.ts b/types/react-icons/lib/md/settings-voice.d.ts index 2ca59f4b0b..5a7d8c78b3 100644 --- a/types/react-icons/lib/md/settings-voice.d.ts +++ b/types/react-icons/lib/md/settings-voice.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdSettingsVoice extends React.Component { } +declare class MdSettingsVoice extends React.Component { } +export = MdSettingsVoice; diff --git a/types/react-icons/lib/md/settings.d.ts b/types/react-icons/lib/md/settings.d.ts index 2117b4be55..e2b820fa0e 100644 --- a/types/react-icons/lib/md/settings.d.ts +++ b/types/react-icons/lib/md/settings.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdSettings extends React.Component { } +declare class MdSettings extends React.Component { } +export = MdSettings; diff --git a/types/react-icons/lib/md/share.d.ts b/types/react-icons/lib/md/share.d.ts index 5a6639be86..db916b39a9 100644 --- a/types/react-icons/lib/md/share.d.ts +++ b/types/react-icons/lib/md/share.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdShare extends React.Component { } +declare class MdShare extends React.Component { } +export = MdShare; diff --git a/types/react-icons/lib/md/shop-two.d.ts b/types/react-icons/lib/md/shop-two.d.ts index ffd2e40d8a..3b2a284a5c 100644 --- a/types/react-icons/lib/md/shop-two.d.ts +++ b/types/react-icons/lib/md/shop-two.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdShopTwo extends React.Component { } +declare class MdShopTwo extends React.Component { } +export = MdShopTwo; diff --git a/types/react-icons/lib/md/shop.d.ts b/types/react-icons/lib/md/shop.d.ts index 0247f8919e..ecc1e9ffb9 100644 --- a/types/react-icons/lib/md/shop.d.ts +++ b/types/react-icons/lib/md/shop.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdShop extends React.Component { } +declare class MdShop extends React.Component { } +export = MdShop; diff --git a/types/react-icons/lib/md/shopping-basket.d.ts b/types/react-icons/lib/md/shopping-basket.d.ts index ce58316185..f71c3ff451 100644 --- a/types/react-icons/lib/md/shopping-basket.d.ts +++ b/types/react-icons/lib/md/shopping-basket.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdShoppingBasket extends React.Component { } +declare class MdShoppingBasket extends React.Component { } +export = MdShoppingBasket; diff --git a/types/react-icons/lib/md/shopping-cart.d.ts b/types/react-icons/lib/md/shopping-cart.d.ts index 2980434fd6..b73baac4e1 100644 --- a/types/react-icons/lib/md/shopping-cart.d.ts +++ b/types/react-icons/lib/md/shopping-cart.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdShoppingCart extends React.Component { } +declare class MdShoppingCart extends React.Component { } +export = MdShoppingCart; diff --git a/types/react-icons/lib/md/short-text.d.ts b/types/react-icons/lib/md/short-text.d.ts index 66c49133ba..f3195b2464 100644 --- a/types/react-icons/lib/md/short-text.d.ts +++ b/types/react-icons/lib/md/short-text.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdShortText extends React.Component { } +declare class MdShortText extends React.Component { } +export = MdShortText; diff --git a/types/react-icons/lib/md/show-chart.d.ts b/types/react-icons/lib/md/show-chart.d.ts index 4fc9b77c9e..f3f418e848 100644 --- a/types/react-icons/lib/md/show-chart.d.ts +++ b/types/react-icons/lib/md/show-chart.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdShowChart extends React.Component { } +declare class MdShowChart extends React.Component { } +export = MdShowChart; diff --git a/types/react-icons/lib/md/shuffle.d.ts b/types/react-icons/lib/md/shuffle.d.ts index b20fd0302e..f6410aa683 100644 --- a/types/react-icons/lib/md/shuffle.d.ts +++ b/types/react-icons/lib/md/shuffle.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdShuffle extends React.Component { } +declare class MdShuffle extends React.Component { } +export = MdShuffle; diff --git a/types/react-icons/lib/md/signal-cellular-4-bar.d.ts b/types/react-icons/lib/md/signal-cellular-4-bar.d.ts index 9961d076e8..6059ded2d6 100644 --- a/types/react-icons/lib/md/signal-cellular-4-bar.d.ts +++ b/types/react-icons/lib/md/signal-cellular-4-bar.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdSignalCellular4Bar extends React.Component { } +declare class MdSignalCellular4Bar extends React.Component { } +export = MdSignalCellular4Bar; diff --git a/types/react-icons/lib/md/signal-cellular-connected-no-internet-4-bar.d.ts b/types/react-icons/lib/md/signal-cellular-connected-no-internet-4-bar.d.ts index 35546b90db..f8f1431efa 100644 --- a/types/react-icons/lib/md/signal-cellular-connected-no-internet-4-bar.d.ts +++ b/types/react-icons/lib/md/signal-cellular-connected-no-internet-4-bar.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdSignalCellularConnectedNoInternet4Bar extends React.Component { } +declare class MdSignalCellularConnectedNoInternet4Bar extends React.Component { } +export = MdSignalCellularConnectedNoInternet4Bar; diff --git a/types/react-icons/lib/md/signal-cellular-no-sim.d.ts b/types/react-icons/lib/md/signal-cellular-no-sim.d.ts index 37c952ef33..6892f5cf7d 100644 --- a/types/react-icons/lib/md/signal-cellular-no-sim.d.ts +++ b/types/react-icons/lib/md/signal-cellular-no-sim.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdSignalCellularNoSim extends React.Component { } +declare class MdSignalCellularNoSim extends React.Component { } +export = MdSignalCellularNoSim; diff --git a/types/react-icons/lib/md/signal-cellular-null.d.ts b/types/react-icons/lib/md/signal-cellular-null.d.ts index 81c4801bac..681570828b 100644 --- a/types/react-icons/lib/md/signal-cellular-null.d.ts +++ b/types/react-icons/lib/md/signal-cellular-null.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdSignalCellularNull extends React.Component { } +declare class MdSignalCellularNull extends React.Component { } +export = MdSignalCellularNull; diff --git a/types/react-icons/lib/md/signal-cellular-off.d.ts b/types/react-icons/lib/md/signal-cellular-off.d.ts index 71b723a036..09192b3ad7 100644 --- a/types/react-icons/lib/md/signal-cellular-off.d.ts +++ b/types/react-icons/lib/md/signal-cellular-off.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdSignalCellularOff extends React.Component { } +declare class MdSignalCellularOff extends React.Component { } +export = MdSignalCellularOff; diff --git a/types/react-icons/lib/md/signal-wifi-4-bar-lock.d.ts b/types/react-icons/lib/md/signal-wifi-4-bar-lock.d.ts index 45689253f7..d927b58603 100644 --- a/types/react-icons/lib/md/signal-wifi-4-bar-lock.d.ts +++ b/types/react-icons/lib/md/signal-wifi-4-bar-lock.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdSignalWifi4BarLock extends React.Component { } +declare class MdSignalWifi4BarLock extends React.Component { } +export = MdSignalWifi4BarLock; diff --git a/types/react-icons/lib/md/signal-wifi-4-bar.d.ts b/types/react-icons/lib/md/signal-wifi-4-bar.d.ts index 9b90b1dc00..884c211a81 100644 --- a/types/react-icons/lib/md/signal-wifi-4-bar.d.ts +++ b/types/react-icons/lib/md/signal-wifi-4-bar.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdSignalWifi4Bar extends React.Component { } +declare class MdSignalWifi4Bar extends React.Component { } +export = MdSignalWifi4Bar; diff --git a/types/react-icons/lib/md/signal-wifi-off.d.ts b/types/react-icons/lib/md/signal-wifi-off.d.ts index 62c5ceee3c..cbda299e8b 100644 --- a/types/react-icons/lib/md/signal-wifi-off.d.ts +++ b/types/react-icons/lib/md/signal-wifi-off.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdSignalWifiOff extends React.Component { } +declare class MdSignalWifiOff extends React.Component { } +export = MdSignalWifiOff; diff --git a/types/react-icons/lib/md/sim-card-alert.d.ts b/types/react-icons/lib/md/sim-card-alert.d.ts index 4060c4594e..be845d108d 100644 --- a/types/react-icons/lib/md/sim-card-alert.d.ts +++ b/types/react-icons/lib/md/sim-card-alert.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdSimCardAlert extends React.Component { } +declare class MdSimCardAlert extends React.Component { } +export = MdSimCardAlert; diff --git a/types/react-icons/lib/md/sim-card.d.ts b/types/react-icons/lib/md/sim-card.d.ts index da691e53ad..1b3b765dc7 100644 --- a/types/react-icons/lib/md/sim-card.d.ts +++ b/types/react-icons/lib/md/sim-card.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdSimCard extends React.Component { } +declare class MdSimCard extends React.Component { } +export = MdSimCard; diff --git a/types/react-icons/lib/md/skip-next.d.ts b/types/react-icons/lib/md/skip-next.d.ts index ecf5c1dc78..19737d3978 100644 --- a/types/react-icons/lib/md/skip-next.d.ts +++ b/types/react-icons/lib/md/skip-next.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdSkipNext extends React.Component { } +declare class MdSkipNext extends React.Component { } +export = MdSkipNext; diff --git a/types/react-icons/lib/md/skip-previous.d.ts b/types/react-icons/lib/md/skip-previous.d.ts index 93b71643d7..ae5c25aed6 100644 --- a/types/react-icons/lib/md/skip-previous.d.ts +++ b/types/react-icons/lib/md/skip-previous.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdSkipPrevious extends React.Component { } +declare class MdSkipPrevious extends React.Component { } +export = MdSkipPrevious; diff --git a/types/react-icons/lib/md/slideshow.d.ts b/types/react-icons/lib/md/slideshow.d.ts index 3604117de4..26cbf1a3c9 100644 --- a/types/react-icons/lib/md/slideshow.d.ts +++ b/types/react-icons/lib/md/slideshow.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdSlideshow extends React.Component { } +declare class MdSlideshow extends React.Component { } +export = MdSlideshow; diff --git a/types/react-icons/lib/md/slow-motion-video.d.ts b/types/react-icons/lib/md/slow-motion-video.d.ts index b1613e9196..03f4d610cb 100644 --- a/types/react-icons/lib/md/slow-motion-video.d.ts +++ b/types/react-icons/lib/md/slow-motion-video.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdSlowMotionVideo extends React.Component { } +declare class MdSlowMotionVideo extends React.Component { } +export = MdSlowMotionVideo; diff --git a/types/react-icons/lib/md/smartphone.d.ts b/types/react-icons/lib/md/smartphone.d.ts index 48e919a7f2..697de1117a 100644 --- a/types/react-icons/lib/md/smartphone.d.ts +++ b/types/react-icons/lib/md/smartphone.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdSmartphone extends React.Component { } +declare class MdSmartphone extends React.Component { } +export = MdSmartphone; diff --git a/types/react-icons/lib/md/smoke-free.d.ts b/types/react-icons/lib/md/smoke-free.d.ts index 494a9ffbed..bd0eed47da 100644 --- a/types/react-icons/lib/md/smoke-free.d.ts +++ b/types/react-icons/lib/md/smoke-free.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdSmokeFree extends React.Component { } +declare class MdSmokeFree extends React.Component { } +export = MdSmokeFree; diff --git a/types/react-icons/lib/md/smoking-rooms.d.ts b/types/react-icons/lib/md/smoking-rooms.d.ts index 9793808427..f42b48f9b6 100644 --- a/types/react-icons/lib/md/smoking-rooms.d.ts +++ b/types/react-icons/lib/md/smoking-rooms.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdSmokingRooms extends React.Component { } +declare class MdSmokingRooms extends React.Component { } +export = MdSmokingRooms; diff --git a/types/react-icons/lib/md/sms-failed.d.ts b/types/react-icons/lib/md/sms-failed.d.ts index ed04e950bd..c242d6783f 100644 --- a/types/react-icons/lib/md/sms-failed.d.ts +++ b/types/react-icons/lib/md/sms-failed.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdSmsFailed extends React.Component { } +declare class MdSmsFailed extends React.Component { } +export = MdSmsFailed; diff --git a/types/react-icons/lib/md/sms.d.ts b/types/react-icons/lib/md/sms.d.ts index bcdc21c622..4d1b01eba0 100644 --- a/types/react-icons/lib/md/sms.d.ts +++ b/types/react-icons/lib/md/sms.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdSms extends React.Component { } +declare class MdSms extends React.Component { } +export = MdSms; diff --git a/types/react-icons/lib/md/snooze.d.ts b/types/react-icons/lib/md/snooze.d.ts index 39ef1f6213..a3e93311de 100644 --- a/types/react-icons/lib/md/snooze.d.ts +++ b/types/react-icons/lib/md/snooze.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdSnooze extends React.Component { } +declare class MdSnooze extends React.Component { } +export = MdSnooze; diff --git a/types/react-icons/lib/md/sort-by-alpha.d.ts b/types/react-icons/lib/md/sort-by-alpha.d.ts index 1d823eec21..665ed0e19d 100644 --- a/types/react-icons/lib/md/sort-by-alpha.d.ts +++ b/types/react-icons/lib/md/sort-by-alpha.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdSortByAlpha extends React.Component { } +declare class MdSortByAlpha extends React.Component { } +export = MdSortByAlpha; diff --git a/types/react-icons/lib/md/sort.d.ts b/types/react-icons/lib/md/sort.d.ts index 4ae7f76a01..a0ca8a2d38 100644 --- a/types/react-icons/lib/md/sort.d.ts +++ b/types/react-icons/lib/md/sort.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdSort extends React.Component { } +declare class MdSort extends React.Component { } +export = MdSort; diff --git a/types/react-icons/lib/md/spa.d.ts b/types/react-icons/lib/md/spa.d.ts index 328203f62f..3b521477c1 100644 --- a/types/react-icons/lib/md/spa.d.ts +++ b/types/react-icons/lib/md/spa.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdSpa extends React.Component { } +declare class MdSpa extends React.Component { } +export = MdSpa; diff --git a/types/react-icons/lib/md/space-bar.d.ts b/types/react-icons/lib/md/space-bar.d.ts index 861c34892a..4f0aee2b42 100644 --- a/types/react-icons/lib/md/space-bar.d.ts +++ b/types/react-icons/lib/md/space-bar.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdSpaceBar extends React.Component { } +declare class MdSpaceBar extends React.Component { } +export = MdSpaceBar; diff --git a/types/react-icons/lib/md/speaker-group.d.ts b/types/react-icons/lib/md/speaker-group.d.ts index 81915fc511..75ce013743 100644 --- a/types/react-icons/lib/md/speaker-group.d.ts +++ b/types/react-icons/lib/md/speaker-group.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdSpeakerGroup extends React.Component { } +declare class MdSpeakerGroup extends React.Component { } +export = MdSpeakerGroup; diff --git a/types/react-icons/lib/md/speaker-notes-off.d.ts b/types/react-icons/lib/md/speaker-notes-off.d.ts index bc5b008527..2ebed4d42f 100644 --- a/types/react-icons/lib/md/speaker-notes-off.d.ts +++ b/types/react-icons/lib/md/speaker-notes-off.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdSpeakerNotesOff extends React.Component { } +declare class MdSpeakerNotesOff extends React.Component { } +export = MdSpeakerNotesOff; diff --git a/types/react-icons/lib/md/speaker-notes.d.ts b/types/react-icons/lib/md/speaker-notes.d.ts index 1c3c0e4ddc..61dd9e47c9 100644 --- a/types/react-icons/lib/md/speaker-notes.d.ts +++ b/types/react-icons/lib/md/speaker-notes.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdSpeakerNotes extends React.Component { } +declare class MdSpeakerNotes extends React.Component { } +export = MdSpeakerNotes; diff --git a/types/react-icons/lib/md/speaker-phone.d.ts b/types/react-icons/lib/md/speaker-phone.d.ts index b459a0c395..3a4a35bdd5 100644 --- a/types/react-icons/lib/md/speaker-phone.d.ts +++ b/types/react-icons/lib/md/speaker-phone.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdSpeakerPhone extends React.Component { } +declare class MdSpeakerPhone extends React.Component { } +export = MdSpeakerPhone; diff --git a/types/react-icons/lib/md/speaker.d.ts b/types/react-icons/lib/md/speaker.d.ts index 1f28f03e88..3028b1613f 100644 --- a/types/react-icons/lib/md/speaker.d.ts +++ b/types/react-icons/lib/md/speaker.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdSpeaker extends React.Component { } +declare class MdSpeaker extends React.Component { } +export = MdSpeaker; diff --git a/types/react-icons/lib/md/spellcheck.d.ts b/types/react-icons/lib/md/spellcheck.d.ts index 6b74288ebf..b537efca19 100644 --- a/types/react-icons/lib/md/spellcheck.d.ts +++ b/types/react-icons/lib/md/spellcheck.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdSpellcheck extends React.Component { } +declare class MdSpellcheck extends React.Component { } +export = MdSpellcheck; diff --git a/types/react-icons/lib/md/star-border.d.ts b/types/react-icons/lib/md/star-border.d.ts index 2dda5ebb35..26a466ca5e 100644 --- a/types/react-icons/lib/md/star-border.d.ts +++ b/types/react-icons/lib/md/star-border.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdStarBorder extends React.Component { } +declare class MdStarBorder extends React.Component { } +export = MdStarBorder; diff --git a/types/react-icons/lib/md/star-half.d.ts b/types/react-icons/lib/md/star-half.d.ts index d6684bbfe0..d1e27756c1 100644 --- a/types/react-icons/lib/md/star-half.d.ts +++ b/types/react-icons/lib/md/star-half.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdStarHalf extends React.Component { } +declare class MdStarHalf extends React.Component { } +export = MdStarHalf; diff --git a/types/react-icons/lib/md/star-outline.d.ts b/types/react-icons/lib/md/star-outline.d.ts index 2b9f3546a3..1dcecb15ef 100644 --- a/types/react-icons/lib/md/star-outline.d.ts +++ b/types/react-icons/lib/md/star-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdStarOutline extends React.Component { } +declare class MdStarOutline extends React.Component { } +export = MdStarOutline; diff --git a/types/react-icons/lib/md/star.d.ts b/types/react-icons/lib/md/star.d.ts index f10524254e..292edc345b 100644 --- a/types/react-icons/lib/md/star.d.ts +++ b/types/react-icons/lib/md/star.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdStar extends React.Component { } +declare class MdStar extends React.Component { } +export = MdStar; diff --git a/types/react-icons/lib/md/stars.d.ts b/types/react-icons/lib/md/stars.d.ts index b92a32acd6..3d30f577df 100644 --- a/types/react-icons/lib/md/stars.d.ts +++ b/types/react-icons/lib/md/stars.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdStars extends React.Component { } +declare class MdStars extends React.Component { } +export = MdStars; diff --git a/types/react-icons/lib/md/stay-current-landscape.d.ts b/types/react-icons/lib/md/stay-current-landscape.d.ts index c2edfbaa27..8f141071de 100644 --- a/types/react-icons/lib/md/stay-current-landscape.d.ts +++ b/types/react-icons/lib/md/stay-current-landscape.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdStayCurrentLandscape extends React.Component { } +declare class MdStayCurrentLandscape extends React.Component { } +export = MdStayCurrentLandscape; diff --git a/types/react-icons/lib/md/stay-current-portrait.d.ts b/types/react-icons/lib/md/stay-current-portrait.d.ts index 9f523f0514..d54460b6b1 100644 --- a/types/react-icons/lib/md/stay-current-portrait.d.ts +++ b/types/react-icons/lib/md/stay-current-portrait.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdStayCurrentPortrait extends React.Component { } +declare class MdStayCurrentPortrait extends React.Component { } +export = MdStayCurrentPortrait; diff --git a/types/react-icons/lib/md/stay-primary-landscape.d.ts b/types/react-icons/lib/md/stay-primary-landscape.d.ts index 4cf222880a..c2259234a3 100644 --- a/types/react-icons/lib/md/stay-primary-landscape.d.ts +++ b/types/react-icons/lib/md/stay-primary-landscape.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdStayPrimaryLandscape extends React.Component { } +declare class MdStayPrimaryLandscape extends React.Component { } +export = MdStayPrimaryLandscape; diff --git a/types/react-icons/lib/md/stay-primary-portrait.d.ts b/types/react-icons/lib/md/stay-primary-portrait.d.ts index e4371a0ff9..be1a0d3817 100644 --- a/types/react-icons/lib/md/stay-primary-portrait.d.ts +++ b/types/react-icons/lib/md/stay-primary-portrait.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdStayPrimaryPortrait extends React.Component { } +declare class MdStayPrimaryPortrait extends React.Component { } +export = MdStayPrimaryPortrait; diff --git a/types/react-icons/lib/md/stop-screen-share.d.ts b/types/react-icons/lib/md/stop-screen-share.d.ts index aa6a7b1f11..0c86617ea9 100644 --- a/types/react-icons/lib/md/stop-screen-share.d.ts +++ b/types/react-icons/lib/md/stop-screen-share.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdStopScreenShare extends React.Component { } +declare class MdStopScreenShare extends React.Component { } +export = MdStopScreenShare; diff --git a/types/react-icons/lib/md/stop.d.ts b/types/react-icons/lib/md/stop.d.ts index 23972ad40d..ea68d49805 100644 --- a/types/react-icons/lib/md/stop.d.ts +++ b/types/react-icons/lib/md/stop.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdStop extends React.Component { } +declare class MdStop extends React.Component { } +export = MdStop; diff --git a/types/react-icons/lib/md/storage.d.ts b/types/react-icons/lib/md/storage.d.ts index 76cdb38312..0f4792b3d4 100644 --- a/types/react-icons/lib/md/storage.d.ts +++ b/types/react-icons/lib/md/storage.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdStorage extends React.Component { } +declare class MdStorage extends React.Component { } +export = MdStorage; diff --git a/types/react-icons/lib/md/store-mall-directory.d.ts b/types/react-icons/lib/md/store-mall-directory.d.ts index 68d4294ade..2dc34f1f35 100644 --- a/types/react-icons/lib/md/store-mall-directory.d.ts +++ b/types/react-icons/lib/md/store-mall-directory.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdStoreMallDirectory extends React.Component { } +declare class MdStoreMallDirectory extends React.Component { } +export = MdStoreMallDirectory; diff --git a/types/react-icons/lib/md/store.d.ts b/types/react-icons/lib/md/store.d.ts index c64ab33e61..1d95da2946 100644 --- a/types/react-icons/lib/md/store.d.ts +++ b/types/react-icons/lib/md/store.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdStore extends React.Component { } +declare class MdStore extends React.Component { } +export = MdStore; diff --git a/types/react-icons/lib/md/straighten.d.ts b/types/react-icons/lib/md/straighten.d.ts index fa68ffb61f..2e5a378337 100644 --- a/types/react-icons/lib/md/straighten.d.ts +++ b/types/react-icons/lib/md/straighten.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdStraighten extends React.Component { } +declare class MdStraighten extends React.Component { } +export = MdStraighten; diff --git a/types/react-icons/lib/md/streetview.d.ts b/types/react-icons/lib/md/streetview.d.ts index b786fc4504..1a7a3b45d0 100644 --- a/types/react-icons/lib/md/streetview.d.ts +++ b/types/react-icons/lib/md/streetview.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdStreetview extends React.Component { } +declare class MdStreetview extends React.Component { } +export = MdStreetview; diff --git a/types/react-icons/lib/md/strikethrough-s.d.ts b/types/react-icons/lib/md/strikethrough-s.d.ts index 8ccb18a292..87f8a8f0ab 100644 --- a/types/react-icons/lib/md/strikethrough-s.d.ts +++ b/types/react-icons/lib/md/strikethrough-s.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdStrikethroughS extends React.Component { } +declare class MdStrikethroughS extends React.Component { } +export = MdStrikethroughS; diff --git a/types/react-icons/lib/md/style.d.ts b/types/react-icons/lib/md/style.d.ts index 6826a067a7..88ee608309 100644 --- a/types/react-icons/lib/md/style.d.ts +++ b/types/react-icons/lib/md/style.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdStyle extends React.Component { } +declare class MdStyle extends React.Component { } +export = MdStyle; diff --git a/types/react-icons/lib/md/subdirectory-arrow-left.d.ts b/types/react-icons/lib/md/subdirectory-arrow-left.d.ts index ebfbf45689..a286039679 100644 --- a/types/react-icons/lib/md/subdirectory-arrow-left.d.ts +++ b/types/react-icons/lib/md/subdirectory-arrow-left.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdSubdirectoryArrowLeft extends React.Component { } +declare class MdSubdirectoryArrowLeft extends React.Component { } +export = MdSubdirectoryArrowLeft; diff --git a/types/react-icons/lib/md/subdirectory-arrow-right.d.ts b/types/react-icons/lib/md/subdirectory-arrow-right.d.ts index 435777e018..ffcfa27371 100644 --- a/types/react-icons/lib/md/subdirectory-arrow-right.d.ts +++ b/types/react-icons/lib/md/subdirectory-arrow-right.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdSubdirectoryArrowRight extends React.Component { } +declare class MdSubdirectoryArrowRight extends React.Component { } +export = MdSubdirectoryArrowRight; diff --git a/types/react-icons/lib/md/subject.d.ts b/types/react-icons/lib/md/subject.d.ts index b187b836f2..4afd51814a 100644 --- a/types/react-icons/lib/md/subject.d.ts +++ b/types/react-icons/lib/md/subject.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdSubject extends React.Component { } +declare class MdSubject extends React.Component { } +export = MdSubject; diff --git a/types/react-icons/lib/md/subscriptions.d.ts b/types/react-icons/lib/md/subscriptions.d.ts index 0baf020371..9859c711e1 100644 --- a/types/react-icons/lib/md/subscriptions.d.ts +++ b/types/react-icons/lib/md/subscriptions.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdSubscriptions extends React.Component { } +declare class MdSubscriptions extends React.Component { } +export = MdSubscriptions; diff --git a/types/react-icons/lib/md/subtitles.d.ts b/types/react-icons/lib/md/subtitles.d.ts index 2cacca492e..ffb83e2279 100644 --- a/types/react-icons/lib/md/subtitles.d.ts +++ b/types/react-icons/lib/md/subtitles.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdSubtitles extends React.Component { } +declare class MdSubtitles extends React.Component { } +export = MdSubtitles; diff --git a/types/react-icons/lib/md/subway.d.ts b/types/react-icons/lib/md/subway.d.ts index c5496480da..5e42542c3a 100644 --- a/types/react-icons/lib/md/subway.d.ts +++ b/types/react-icons/lib/md/subway.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdSubway extends React.Component { } +declare class MdSubway extends React.Component { } +export = MdSubway; diff --git a/types/react-icons/lib/md/supervisor-account.d.ts b/types/react-icons/lib/md/supervisor-account.d.ts index 4c9b87c063..5782506380 100644 --- a/types/react-icons/lib/md/supervisor-account.d.ts +++ b/types/react-icons/lib/md/supervisor-account.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdSupervisorAccount extends React.Component { } +declare class MdSupervisorAccount extends React.Component { } +export = MdSupervisorAccount; diff --git a/types/react-icons/lib/md/surround-sound.d.ts b/types/react-icons/lib/md/surround-sound.d.ts index 673f1fdb7e..657ebe3879 100644 --- a/types/react-icons/lib/md/surround-sound.d.ts +++ b/types/react-icons/lib/md/surround-sound.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdSurroundSound extends React.Component { } +declare class MdSurroundSound extends React.Component { } +export = MdSurroundSound; diff --git a/types/react-icons/lib/md/swap-calls.d.ts b/types/react-icons/lib/md/swap-calls.d.ts index 5b6c5eb55b..881b0c264a 100644 --- a/types/react-icons/lib/md/swap-calls.d.ts +++ b/types/react-icons/lib/md/swap-calls.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdSwapCalls extends React.Component { } +declare class MdSwapCalls extends React.Component { } +export = MdSwapCalls; diff --git a/types/react-icons/lib/md/swap-horiz.d.ts b/types/react-icons/lib/md/swap-horiz.d.ts index da47fa6f40..e4a1771fd4 100644 --- a/types/react-icons/lib/md/swap-horiz.d.ts +++ b/types/react-icons/lib/md/swap-horiz.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdSwapHoriz extends React.Component { } +declare class MdSwapHoriz extends React.Component { } +export = MdSwapHoriz; diff --git a/types/react-icons/lib/md/swap-vert.d.ts b/types/react-icons/lib/md/swap-vert.d.ts index d034eaf517..d9b0f456d9 100644 --- a/types/react-icons/lib/md/swap-vert.d.ts +++ b/types/react-icons/lib/md/swap-vert.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdSwapVert extends React.Component { } +declare class MdSwapVert extends React.Component { } +export = MdSwapVert; diff --git a/types/react-icons/lib/md/swap-vertical-circle.d.ts b/types/react-icons/lib/md/swap-vertical-circle.d.ts index 617a1f6d9a..4503920d5c 100644 --- a/types/react-icons/lib/md/swap-vertical-circle.d.ts +++ b/types/react-icons/lib/md/swap-vertical-circle.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdSwapVerticalCircle extends React.Component { } +declare class MdSwapVerticalCircle extends React.Component { } +export = MdSwapVerticalCircle; diff --git a/types/react-icons/lib/md/switch-camera.d.ts b/types/react-icons/lib/md/switch-camera.d.ts index c18ad57764..cb90ed5e99 100644 --- a/types/react-icons/lib/md/switch-camera.d.ts +++ b/types/react-icons/lib/md/switch-camera.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdSwitchCamera extends React.Component { } +declare class MdSwitchCamera extends React.Component { } +export = MdSwitchCamera; diff --git a/types/react-icons/lib/md/switch-video.d.ts b/types/react-icons/lib/md/switch-video.d.ts index 0c95857fed..cdd65bb1cc 100644 --- a/types/react-icons/lib/md/switch-video.d.ts +++ b/types/react-icons/lib/md/switch-video.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdSwitchVideo extends React.Component { } +declare class MdSwitchVideo extends React.Component { } +export = MdSwitchVideo; diff --git a/types/react-icons/lib/md/sync-disabled.d.ts b/types/react-icons/lib/md/sync-disabled.d.ts index 99fa13f705..dbf6969ad0 100644 --- a/types/react-icons/lib/md/sync-disabled.d.ts +++ b/types/react-icons/lib/md/sync-disabled.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdSyncDisabled extends React.Component { } +declare class MdSyncDisabled extends React.Component { } +export = MdSyncDisabled; diff --git a/types/react-icons/lib/md/sync-problem.d.ts b/types/react-icons/lib/md/sync-problem.d.ts index 4ef37a1cbb..59f319beba 100644 --- a/types/react-icons/lib/md/sync-problem.d.ts +++ b/types/react-icons/lib/md/sync-problem.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdSyncProblem extends React.Component { } +declare class MdSyncProblem extends React.Component { } +export = MdSyncProblem; diff --git a/types/react-icons/lib/md/sync.d.ts b/types/react-icons/lib/md/sync.d.ts index fefdf38258..a5c49d0df3 100644 --- a/types/react-icons/lib/md/sync.d.ts +++ b/types/react-icons/lib/md/sync.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdSync extends React.Component { } +declare class MdSync extends React.Component { } +export = MdSync; diff --git a/types/react-icons/lib/md/system-update-alt.d.ts b/types/react-icons/lib/md/system-update-alt.d.ts index 2725f7b77c..18b532e6c3 100644 --- a/types/react-icons/lib/md/system-update-alt.d.ts +++ b/types/react-icons/lib/md/system-update-alt.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdSystemUpdateAlt extends React.Component { } +declare class MdSystemUpdateAlt extends React.Component { } +export = MdSystemUpdateAlt; diff --git a/types/react-icons/lib/md/system-update.d.ts b/types/react-icons/lib/md/system-update.d.ts index 24ebe7c98c..f969e6836b 100644 --- a/types/react-icons/lib/md/system-update.d.ts +++ b/types/react-icons/lib/md/system-update.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdSystemUpdate extends React.Component { } +declare class MdSystemUpdate extends React.Component { } +export = MdSystemUpdate; diff --git a/types/react-icons/lib/md/tab-unselected.d.ts b/types/react-icons/lib/md/tab-unselected.d.ts index bac83b73ed..0b05c2debc 100644 --- a/types/react-icons/lib/md/tab-unselected.d.ts +++ b/types/react-icons/lib/md/tab-unselected.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdTabUnselected extends React.Component { } +declare class MdTabUnselected extends React.Component { } +export = MdTabUnselected; diff --git a/types/react-icons/lib/md/tab.d.ts b/types/react-icons/lib/md/tab.d.ts index 5fa18473c7..789ea85b5a 100644 --- a/types/react-icons/lib/md/tab.d.ts +++ b/types/react-icons/lib/md/tab.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdTab extends React.Component { } +declare class MdTab extends React.Component { } +export = MdTab; diff --git a/types/react-icons/lib/md/tablet-android.d.ts b/types/react-icons/lib/md/tablet-android.d.ts index 2f30739971..d7bf0e19e6 100644 --- a/types/react-icons/lib/md/tablet-android.d.ts +++ b/types/react-icons/lib/md/tablet-android.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdTabletAndroid extends React.Component { } +declare class MdTabletAndroid extends React.Component { } +export = MdTabletAndroid; diff --git a/types/react-icons/lib/md/tablet-mac.d.ts b/types/react-icons/lib/md/tablet-mac.d.ts index cad896f80b..e9cb6dd950 100644 --- a/types/react-icons/lib/md/tablet-mac.d.ts +++ b/types/react-icons/lib/md/tablet-mac.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdTabletMac extends React.Component { } +declare class MdTabletMac extends React.Component { } +export = MdTabletMac; diff --git a/types/react-icons/lib/md/tablet.d.ts b/types/react-icons/lib/md/tablet.d.ts index 839c55d2a9..b9cac8c14e 100644 --- a/types/react-icons/lib/md/tablet.d.ts +++ b/types/react-icons/lib/md/tablet.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdTablet extends React.Component { } +declare class MdTablet extends React.Component { } +export = MdTablet; diff --git a/types/react-icons/lib/md/tag-faces.d.ts b/types/react-icons/lib/md/tag-faces.d.ts index 36fe31f9f7..657eda9788 100644 --- a/types/react-icons/lib/md/tag-faces.d.ts +++ b/types/react-icons/lib/md/tag-faces.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdTagFaces extends React.Component { } +declare class MdTagFaces extends React.Component { } +export = MdTagFaces; diff --git a/types/react-icons/lib/md/tap-and-play.d.ts b/types/react-icons/lib/md/tap-and-play.d.ts index 50203118f9..547c5676fd 100644 --- a/types/react-icons/lib/md/tap-and-play.d.ts +++ b/types/react-icons/lib/md/tap-and-play.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdTapAndPlay extends React.Component { } +declare class MdTapAndPlay extends React.Component { } +export = MdTapAndPlay; diff --git a/types/react-icons/lib/md/terrain.d.ts b/types/react-icons/lib/md/terrain.d.ts index 89ddcb3ab1..faebcb3c1d 100644 --- a/types/react-icons/lib/md/terrain.d.ts +++ b/types/react-icons/lib/md/terrain.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdTerrain extends React.Component { } +declare class MdTerrain extends React.Component { } +export = MdTerrain; diff --git a/types/react-icons/lib/md/text-fields.d.ts b/types/react-icons/lib/md/text-fields.d.ts index 51d63798ed..e2f9f057b1 100644 --- a/types/react-icons/lib/md/text-fields.d.ts +++ b/types/react-icons/lib/md/text-fields.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdTextFields extends React.Component { } +declare class MdTextFields extends React.Component { } +export = MdTextFields; diff --git a/types/react-icons/lib/md/text-format.d.ts b/types/react-icons/lib/md/text-format.d.ts index ca4ef5d0b6..47ed038438 100644 --- a/types/react-icons/lib/md/text-format.d.ts +++ b/types/react-icons/lib/md/text-format.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdTextFormat extends React.Component { } +declare class MdTextFormat extends React.Component { } +export = MdTextFormat; diff --git a/types/react-icons/lib/md/textsms.d.ts b/types/react-icons/lib/md/textsms.d.ts index c8f57f986a..98e6a9b769 100644 --- a/types/react-icons/lib/md/textsms.d.ts +++ b/types/react-icons/lib/md/textsms.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdTextsms extends React.Component { } +declare class MdTextsms extends React.Component { } +export = MdTextsms; diff --git a/types/react-icons/lib/md/texture.d.ts b/types/react-icons/lib/md/texture.d.ts index 48805b49d0..c15e591c84 100644 --- a/types/react-icons/lib/md/texture.d.ts +++ b/types/react-icons/lib/md/texture.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdTexture extends React.Component { } +declare class MdTexture extends React.Component { } +export = MdTexture; diff --git a/types/react-icons/lib/md/theaters.d.ts b/types/react-icons/lib/md/theaters.d.ts index eeecdd668f..c604995528 100644 --- a/types/react-icons/lib/md/theaters.d.ts +++ b/types/react-icons/lib/md/theaters.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdTheaters extends React.Component { } +declare class MdTheaters extends React.Component { } +export = MdTheaters; diff --git a/types/react-icons/lib/md/thumb-down.d.ts b/types/react-icons/lib/md/thumb-down.d.ts index 412517a68f..fc08d83539 100644 --- a/types/react-icons/lib/md/thumb-down.d.ts +++ b/types/react-icons/lib/md/thumb-down.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdThumbDown extends React.Component { } +declare class MdThumbDown extends React.Component { } +export = MdThumbDown; diff --git a/types/react-icons/lib/md/thumb-up.d.ts b/types/react-icons/lib/md/thumb-up.d.ts index 4aedde1b4d..5057fd1814 100644 --- a/types/react-icons/lib/md/thumb-up.d.ts +++ b/types/react-icons/lib/md/thumb-up.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdThumbUp extends React.Component { } +declare class MdThumbUp extends React.Component { } +export = MdThumbUp; diff --git a/types/react-icons/lib/md/thumbs-up-down.d.ts b/types/react-icons/lib/md/thumbs-up-down.d.ts index f191397ff2..a445f15a80 100644 --- a/types/react-icons/lib/md/thumbs-up-down.d.ts +++ b/types/react-icons/lib/md/thumbs-up-down.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdThumbsUpDown extends React.Component { } +declare class MdThumbsUpDown extends React.Component { } +export = MdThumbsUpDown; diff --git a/types/react-icons/lib/md/time-to-leave.d.ts b/types/react-icons/lib/md/time-to-leave.d.ts index 6da47c86df..50743c05d3 100644 --- a/types/react-icons/lib/md/time-to-leave.d.ts +++ b/types/react-icons/lib/md/time-to-leave.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdTimeToLeave extends React.Component { } +declare class MdTimeToLeave extends React.Component { } +export = MdTimeToLeave; diff --git a/types/react-icons/lib/md/timelapse.d.ts b/types/react-icons/lib/md/timelapse.d.ts index 57ac9ba997..e9b0763ffd 100644 --- a/types/react-icons/lib/md/timelapse.d.ts +++ b/types/react-icons/lib/md/timelapse.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdTimelapse extends React.Component { } +declare class MdTimelapse extends React.Component { } +export = MdTimelapse; diff --git a/types/react-icons/lib/md/timeline.d.ts b/types/react-icons/lib/md/timeline.d.ts index e3c47270ce..ee9e8b0166 100644 --- a/types/react-icons/lib/md/timeline.d.ts +++ b/types/react-icons/lib/md/timeline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdTimeline extends React.Component { } +declare class MdTimeline extends React.Component { } +export = MdTimeline; diff --git a/types/react-icons/lib/md/timer-10.d.ts b/types/react-icons/lib/md/timer-10.d.ts index 309eb0d095..2e31fb395a 100644 --- a/types/react-icons/lib/md/timer-10.d.ts +++ b/types/react-icons/lib/md/timer-10.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdTimer10 extends React.Component { } +declare class MdTimer10 extends React.Component { } +export = MdTimer10; diff --git a/types/react-icons/lib/md/timer-3.d.ts b/types/react-icons/lib/md/timer-3.d.ts index 16ffff55b0..8c51e54da2 100644 --- a/types/react-icons/lib/md/timer-3.d.ts +++ b/types/react-icons/lib/md/timer-3.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdTimer3 extends React.Component { } +declare class MdTimer3 extends React.Component { } +export = MdTimer3; diff --git a/types/react-icons/lib/md/timer-off.d.ts b/types/react-icons/lib/md/timer-off.d.ts index 60b525d44f..1a42f31d52 100644 --- a/types/react-icons/lib/md/timer-off.d.ts +++ b/types/react-icons/lib/md/timer-off.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdTimerOff extends React.Component { } +declare class MdTimerOff extends React.Component { } +export = MdTimerOff; diff --git a/types/react-icons/lib/md/timer.d.ts b/types/react-icons/lib/md/timer.d.ts index aefa851f3e..d3afd39d90 100644 --- a/types/react-icons/lib/md/timer.d.ts +++ b/types/react-icons/lib/md/timer.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdTimer extends React.Component { } +declare class MdTimer extends React.Component { } +export = MdTimer; diff --git a/types/react-icons/lib/md/title.d.ts b/types/react-icons/lib/md/title.d.ts index 9585257382..16992b0ee7 100644 --- a/types/react-icons/lib/md/title.d.ts +++ b/types/react-icons/lib/md/title.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdTitle extends React.Component { } +declare class MdTitle extends React.Component { } +export = MdTitle; diff --git a/types/react-icons/lib/md/toc.d.ts b/types/react-icons/lib/md/toc.d.ts index cdd1be99e6..1e1f96bd5d 100644 --- a/types/react-icons/lib/md/toc.d.ts +++ b/types/react-icons/lib/md/toc.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdToc extends React.Component { } +declare class MdToc extends React.Component { } +export = MdToc; diff --git a/types/react-icons/lib/md/today.d.ts b/types/react-icons/lib/md/today.d.ts index c21725c6bb..8f96a6812c 100644 --- a/types/react-icons/lib/md/today.d.ts +++ b/types/react-icons/lib/md/today.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdToday extends React.Component { } +declare class MdToday extends React.Component { } +export = MdToday; diff --git a/types/react-icons/lib/md/toll.d.ts b/types/react-icons/lib/md/toll.d.ts index a95cb48e8e..a37073a21e 100644 --- a/types/react-icons/lib/md/toll.d.ts +++ b/types/react-icons/lib/md/toll.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdToll extends React.Component { } +declare class MdToll extends React.Component { } +export = MdToll; diff --git a/types/react-icons/lib/md/tonality.d.ts b/types/react-icons/lib/md/tonality.d.ts index 21595adc48..e685396c61 100644 --- a/types/react-icons/lib/md/tonality.d.ts +++ b/types/react-icons/lib/md/tonality.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdTonality extends React.Component { } +declare class MdTonality extends React.Component { } +export = MdTonality; diff --git a/types/react-icons/lib/md/touch-app.d.ts b/types/react-icons/lib/md/touch-app.d.ts index f5052a4d41..76f018ca9a 100644 --- a/types/react-icons/lib/md/touch-app.d.ts +++ b/types/react-icons/lib/md/touch-app.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdTouchApp extends React.Component { } +declare class MdTouchApp extends React.Component { } +export = MdTouchApp; diff --git a/types/react-icons/lib/md/toys.d.ts b/types/react-icons/lib/md/toys.d.ts index 07ecd03fbd..504755d0a8 100644 --- a/types/react-icons/lib/md/toys.d.ts +++ b/types/react-icons/lib/md/toys.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdToys extends React.Component { } +declare class MdToys extends React.Component { } +export = MdToys; diff --git a/types/react-icons/lib/md/track-changes.d.ts b/types/react-icons/lib/md/track-changes.d.ts index a729929069..a7c1b75a20 100644 --- a/types/react-icons/lib/md/track-changes.d.ts +++ b/types/react-icons/lib/md/track-changes.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdTrackChanges extends React.Component { } +declare class MdTrackChanges extends React.Component { } +export = MdTrackChanges; diff --git a/types/react-icons/lib/md/traffic.d.ts b/types/react-icons/lib/md/traffic.d.ts index 41cb955abb..b3a0a6a3a5 100644 --- a/types/react-icons/lib/md/traffic.d.ts +++ b/types/react-icons/lib/md/traffic.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdTraffic extends React.Component { } +declare class MdTraffic extends React.Component { } +export = MdTraffic; diff --git a/types/react-icons/lib/md/train.d.ts b/types/react-icons/lib/md/train.d.ts index 88b32243ca..d96eb39965 100644 --- a/types/react-icons/lib/md/train.d.ts +++ b/types/react-icons/lib/md/train.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdTrain extends React.Component { } +declare class MdTrain extends React.Component { } +export = MdTrain; diff --git a/types/react-icons/lib/md/tram.d.ts b/types/react-icons/lib/md/tram.d.ts index ac0677ac2f..c3a2eec3c2 100644 --- a/types/react-icons/lib/md/tram.d.ts +++ b/types/react-icons/lib/md/tram.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdTram extends React.Component { } +declare class MdTram extends React.Component { } +export = MdTram; diff --git a/types/react-icons/lib/md/transfer-within-a-station.d.ts b/types/react-icons/lib/md/transfer-within-a-station.d.ts index c8ab351a40..2519aeafbc 100644 --- a/types/react-icons/lib/md/transfer-within-a-station.d.ts +++ b/types/react-icons/lib/md/transfer-within-a-station.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdTransferWithinAStation extends React.Component { } +declare class MdTransferWithinAStation extends React.Component { } +export = MdTransferWithinAStation; diff --git a/types/react-icons/lib/md/transform.d.ts b/types/react-icons/lib/md/transform.d.ts index 3898a71c86..9f9278064e 100644 --- a/types/react-icons/lib/md/transform.d.ts +++ b/types/react-icons/lib/md/transform.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdTransform extends React.Component { } +declare class MdTransform extends React.Component { } +export = MdTransform; diff --git a/types/react-icons/lib/md/translate.d.ts b/types/react-icons/lib/md/translate.d.ts index f8d624afc1..cc70c04db5 100644 --- a/types/react-icons/lib/md/translate.d.ts +++ b/types/react-icons/lib/md/translate.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdTranslate extends React.Component { } +declare class MdTranslate extends React.Component { } +export = MdTranslate; diff --git a/types/react-icons/lib/md/trending-down.d.ts b/types/react-icons/lib/md/trending-down.d.ts index 00698234f5..a431260c06 100644 --- a/types/react-icons/lib/md/trending-down.d.ts +++ b/types/react-icons/lib/md/trending-down.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdTrendingDown extends React.Component { } +declare class MdTrendingDown extends React.Component { } +export = MdTrendingDown; diff --git a/types/react-icons/lib/md/trending-flat.d.ts b/types/react-icons/lib/md/trending-flat.d.ts index b511527a55..f7539405ae 100644 --- a/types/react-icons/lib/md/trending-flat.d.ts +++ b/types/react-icons/lib/md/trending-flat.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdTrendingFlat extends React.Component { } +declare class MdTrendingFlat extends React.Component { } +export = MdTrendingFlat; diff --git a/types/react-icons/lib/md/trending-neutral.d.ts b/types/react-icons/lib/md/trending-neutral.d.ts index 0c3d3d1fc1..ca17f924e5 100644 --- a/types/react-icons/lib/md/trending-neutral.d.ts +++ b/types/react-icons/lib/md/trending-neutral.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdTrendingNeutral extends React.Component { } +declare class MdTrendingNeutral extends React.Component { } +export = MdTrendingNeutral; diff --git a/types/react-icons/lib/md/trending-up.d.ts b/types/react-icons/lib/md/trending-up.d.ts index 4468236a4e..18ea6f8fdd 100644 --- a/types/react-icons/lib/md/trending-up.d.ts +++ b/types/react-icons/lib/md/trending-up.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdTrendingUp extends React.Component { } +declare class MdTrendingUp extends React.Component { } +export = MdTrendingUp; diff --git a/types/react-icons/lib/md/tune.d.ts b/types/react-icons/lib/md/tune.d.ts index 76c17a1112..ab850a0554 100644 --- a/types/react-icons/lib/md/tune.d.ts +++ b/types/react-icons/lib/md/tune.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdTune extends React.Component { } +declare class MdTune extends React.Component { } +export = MdTune; diff --git a/types/react-icons/lib/md/turned-in-not.d.ts b/types/react-icons/lib/md/turned-in-not.d.ts index a2120936f2..6a9f029393 100644 --- a/types/react-icons/lib/md/turned-in-not.d.ts +++ b/types/react-icons/lib/md/turned-in-not.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdTurnedInNot extends React.Component { } +declare class MdTurnedInNot extends React.Component { } +export = MdTurnedInNot; diff --git a/types/react-icons/lib/md/turned-in.d.ts b/types/react-icons/lib/md/turned-in.d.ts index 685e4225f4..7e1f6ff237 100644 --- a/types/react-icons/lib/md/turned-in.d.ts +++ b/types/react-icons/lib/md/turned-in.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdTurnedIn extends React.Component { } +declare class MdTurnedIn extends React.Component { } +export = MdTurnedIn; diff --git a/types/react-icons/lib/md/tv.d.ts b/types/react-icons/lib/md/tv.d.ts index 4d184b9d39..6f6e2adebf 100644 --- a/types/react-icons/lib/md/tv.d.ts +++ b/types/react-icons/lib/md/tv.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdTv extends React.Component { } +declare class MdTv extends React.Component { } +export = MdTv; diff --git a/types/react-icons/lib/md/unarchive.d.ts b/types/react-icons/lib/md/unarchive.d.ts index 5fb2297759..f165b61f65 100644 --- a/types/react-icons/lib/md/unarchive.d.ts +++ b/types/react-icons/lib/md/unarchive.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdUnarchive extends React.Component { } +declare class MdUnarchive extends React.Component { } +export = MdUnarchive; diff --git a/types/react-icons/lib/md/undo.d.ts b/types/react-icons/lib/md/undo.d.ts index 16cec6f9f2..a72def4605 100644 --- a/types/react-icons/lib/md/undo.d.ts +++ b/types/react-icons/lib/md/undo.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdUndo extends React.Component { } +declare class MdUndo extends React.Component { } +export = MdUndo; diff --git a/types/react-icons/lib/md/unfold-less.d.ts b/types/react-icons/lib/md/unfold-less.d.ts index c13b17448f..4c2ab8a745 100644 --- a/types/react-icons/lib/md/unfold-less.d.ts +++ b/types/react-icons/lib/md/unfold-less.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdUnfoldLess extends React.Component { } +declare class MdUnfoldLess extends React.Component { } +export = MdUnfoldLess; diff --git a/types/react-icons/lib/md/unfold-more.d.ts b/types/react-icons/lib/md/unfold-more.d.ts index c87c91e57d..b776d661f4 100644 --- a/types/react-icons/lib/md/unfold-more.d.ts +++ b/types/react-icons/lib/md/unfold-more.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdUnfoldMore extends React.Component { } +declare class MdUnfoldMore extends React.Component { } +export = MdUnfoldMore; diff --git a/types/react-icons/lib/md/update.d.ts b/types/react-icons/lib/md/update.d.ts index bfc17eb008..1a2aa86383 100644 --- a/types/react-icons/lib/md/update.d.ts +++ b/types/react-icons/lib/md/update.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdUpdate extends React.Component { } +declare class MdUpdate extends React.Component { } +export = MdUpdate; diff --git a/types/react-icons/lib/md/usb.d.ts b/types/react-icons/lib/md/usb.d.ts index 66f7b5444e..0fd6160e84 100644 --- a/types/react-icons/lib/md/usb.d.ts +++ b/types/react-icons/lib/md/usb.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdUsb extends React.Component { } +declare class MdUsb extends React.Component { } +export = MdUsb; diff --git a/types/react-icons/lib/md/verified-user.d.ts b/types/react-icons/lib/md/verified-user.d.ts index 680ba2575f..59252e57a8 100644 --- a/types/react-icons/lib/md/verified-user.d.ts +++ b/types/react-icons/lib/md/verified-user.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdVerifiedUser extends React.Component { } +declare class MdVerifiedUser extends React.Component { } +export = MdVerifiedUser; diff --git a/types/react-icons/lib/md/vertical-align-bottom.d.ts b/types/react-icons/lib/md/vertical-align-bottom.d.ts index e172ed18d3..12c3ec8578 100644 --- a/types/react-icons/lib/md/vertical-align-bottom.d.ts +++ b/types/react-icons/lib/md/vertical-align-bottom.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdVerticalAlignBottom extends React.Component { } +declare class MdVerticalAlignBottom extends React.Component { } +export = MdVerticalAlignBottom; diff --git a/types/react-icons/lib/md/vertical-align-center.d.ts b/types/react-icons/lib/md/vertical-align-center.d.ts index f672e556c6..82a699826e 100644 --- a/types/react-icons/lib/md/vertical-align-center.d.ts +++ b/types/react-icons/lib/md/vertical-align-center.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdVerticalAlignCenter extends React.Component { } +declare class MdVerticalAlignCenter extends React.Component { } +export = MdVerticalAlignCenter; diff --git a/types/react-icons/lib/md/vertical-align-top.d.ts b/types/react-icons/lib/md/vertical-align-top.d.ts index 712e86f0e3..db6f9b91a0 100644 --- a/types/react-icons/lib/md/vertical-align-top.d.ts +++ b/types/react-icons/lib/md/vertical-align-top.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdVerticalAlignTop extends React.Component { } +declare class MdVerticalAlignTop extends React.Component { } +export = MdVerticalAlignTop; diff --git a/types/react-icons/lib/md/vibration.d.ts b/types/react-icons/lib/md/vibration.d.ts index 6f9b90222f..f2894c8316 100644 --- a/types/react-icons/lib/md/vibration.d.ts +++ b/types/react-icons/lib/md/vibration.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdVibration extends React.Component { } +declare class MdVibration extends React.Component { } +export = MdVibration; diff --git a/types/react-icons/lib/md/video-call.d.ts b/types/react-icons/lib/md/video-call.d.ts index b22ae1fcee..5db72a0980 100644 --- a/types/react-icons/lib/md/video-call.d.ts +++ b/types/react-icons/lib/md/video-call.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdVideoCall extends React.Component { } +declare class MdVideoCall extends React.Component { } +export = MdVideoCall; diff --git a/types/react-icons/lib/md/video-collection.d.ts b/types/react-icons/lib/md/video-collection.d.ts index 037903682d..0606a4604a 100644 --- a/types/react-icons/lib/md/video-collection.d.ts +++ b/types/react-icons/lib/md/video-collection.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdVideoCollection extends React.Component { } +declare class MdVideoCollection extends React.Component { } +export = MdVideoCollection; diff --git a/types/react-icons/lib/md/video-label.d.ts b/types/react-icons/lib/md/video-label.d.ts index b2dc4eb7d1..0a2cad4961 100644 --- a/types/react-icons/lib/md/video-label.d.ts +++ b/types/react-icons/lib/md/video-label.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdVideoLabel extends React.Component { } +declare class MdVideoLabel extends React.Component { } +export = MdVideoLabel; diff --git a/types/react-icons/lib/md/video-library.d.ts b/types/react-icons/lib/md/video-library.d.ts index 75bfe2a8aa..f862e3efb5 100644 --- a/types/react-icons/lib/md/video-library.d.ts +++ b/types/react-icons/lib/md/video-library.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdVideoLibrary extends React.Component { } +declare class MdVideoLibrary extends React.Component { } +export = MdVideoLibrary; diff --git a/types/react-icons/lib/md/videocam-off.d.ts b/types/react-icons/lib/md/videocam-off.d.ts index fd9d514107..fe0fb34a6c 100644 --- a/types/react-icons/lib/md/videocam-off.d.ts +++ b/types/react-icons/lib/md/videocam-off.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdVideocamOff extends React.Component { } +declare class MdVideocamOff extends React.Component { } +export = MdVideocamOff; diff --git a/types/react-icons/lib/md/videocam.d.ts b/types/react-icons/lib/md/videocam.d.ts index 7dc49c3be4..01a77ed2cf 100644 --- a/types/react-icons/lib/md/videocam.d.ts +++ b/types/react-icons/lib/md/videocam.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdVideocam extends React.Component { } +declare class MdVideocam extends React.Component { } +export = MdVideocam; diff --git a/types/react-icons/lib/md/videogame-asset.d.ts b/types/react-icons/lib/md/videogame-asset.d.ts index 7e49edf4f8..e548061de8 100644 --- a/types/react-icons/lib/md/videogame-asset.d.ts +++ b/types/react-icons/lib/md/videogame-asset.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdVideogameAsset extends React.Component { } +declare class MdVideogameAsset extends React.Component { } +export = MdVideogameAsset; diff --git a/types/react-icons/lib/md/view-agenda.d.ts b/types/react-icons/lib/md/view-agenda.d.ts index 04beb28dd3..53fac822a9 100644 --- a/types/react-icons/lib/md/view-agenda.d.ts +++ b/types/react-icons/lib/md/view-agenda.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdViewAgenda extends React.Component { } +declare class MdViewAgenda extends React.Component { } +export = MdViewAgenda; diff --git a/types/react-icons/lib/md/view-array.d.ts b/types/react-icons/lib/md/view-array.d.ts index 6b125ee5b6..61b4beecbf 100644 --- a/types/react-icons/lib/md/view-array.d.ts +++ b/types/react-icons/lib/md/view-array.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdViewArray extends React.Component { } +declare class MdViewArray extends React.Component { } +export = MdViewArray; diff --git a/types/react-icons/lib/md/view-carousel.d.ts b/types/react-icons/lib/md/view-carousel.d.ts index da381e92f6..20a02bbfb8 100644 --- a/types/react-icons/lib/md/view-carousel.d.ts +++ b/types/react-icons/lib/md/view-carousel.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdViewCarousel extends React.Component { } +declare class MdViewCarousel extends React.Component { } +export = MdViewCarousel; diff --git a/types/react-icons/lib/md/view-column.d.ts b/types/react-icons/lib/md/view-column.d.ts index c5aaaea343..fbaa21ebf0 100644 --- a/types/react-icons/lib/md/view-column.d.ts +++ b/types/react-icons/lib/md/view-column.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdViewColumn extends React.Component { } +declare class MdViewColumn extends React.Component { } +export = MdViewColumn; diff --git a/types/react-icons/lib/md/view-comfortable.d.ts b/types/react-icons/lib/md/view-comfortable.d.ts index 4a8277c807..8181bba3c7 100644 --- a/types/react-icons/lib/md/view-comfortable.d.ts +++ b/types/react-icons/lib/md/view-comfortable.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdViewComfortable extends React.Component { } +declare class MdViewComfortable extends React.Component { } +export = MdViewComfortable; diff --git a/types/react-icons/lib/md/view-comfy.d.ts b/types/react-icons/lib/md/view-comfy.d.ts index a7004f4eee..4157bc557e 100644 --- a/types/react-icons/lib/md/view-comfy.d.ts +++ b/types/react-icons/lib/md/view-comfy.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdViewComfy extends React.Component { } +declare class MdViewComfy extends React.Component { } +export = MdViewComfy; diff --git a/types/react-icons/lib/md/view-compact.d.ts b/types/react-icons/lib/md/view-compact.d.ts index fefa73473f..6f4e159c9d 100644 --- a/types/react-icons/lib/md/view-compact.d.ts +++ b/types/react-icons/lib/md/view-compact.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdViewCompact extends React.Component { } +declare class MdViewCompact extends React.Component { } +export = MdViewCompact; diff --git a/types/react-icons/lib/md/view-day.d.ts b/types/react-icons/lib/md/view-day.d.ts index 2013b75c21..934a0b4e69 100644 --- a/types/react-icons/lib/md/view-day.d.ts +++ b/types/react-icons/lib/md/view-day.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdViewDay extends React.Component { } +declare class MdViewDay extends React.Component { } +export = MdViewDay; diff --git a/types/react-icons/lib/md/view-headline.d.ts b/types/react-icons/lib/md/view-headline.d.ts index b82272bf35..a06b4281ac 100644 --- a/types/react-icons/lib/md/view-headline.d.ts +++ b/types/react-icons/lib/md/view-headline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdViewHeadline extends React.Component { } +declare class MdViewHeadline extends React.Component { } +export = MdViewHeadline; diff --git a/types/react-icons/lib/md/view-list.d.ts b/types/react-icons/lib/md/view-list.d.ts index e4cafe07c0..e082fed3a3 100644 --- a/types/react-icons/lib/md/view-list.d.ts +++ b/types/react-icons/lib/md/view-list.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdViewList extends React.Component { } +declare class MdViewList extends React.Component { } +export = MdViewList; diff --git a/types/react-icons/lib/md/view-module.d.ts b/types/react-icons/lib/md/view-module.d.ts index 745cf535be..c506509ece 100644 --- a/types/react-icons/lib/md/view-module.d.ts +++ b/types/react-icons/lib/md/view-module.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdViewModule extends React.Component { } +declare class MdViewModule extends React.Component { } +export = MdViewModule; diff --git a/types/react-icons/lib/md/view-quilt.d.ts b/types/react-icons/lib/md/view-quilt.d.ts index f0e1e3694f..164d09766c 100644 --- a/types/react-icons/lib/md/view-quilt.d.ts +++ b/types/react-icons/lib/md/view-quilt.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdViewQuilt extends React.Component { } +declare class MdViewQuilt extends React.Component { } +export = MdViewQuilt; diff --git a/types/react-icons/lib/md/view-stream.d.ts b/types/react-icons/lib/md/view-stream.d.ts index af7906aa62..8475058133 100644 --- a/types/react-icons/lib/md/view-stream.d.ts +++ b/types/react-icons/lib/md/view-stream.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdViewStream extends React.Component { } +declare class MdViewStream extends React.Component { } +export = MdViewStream; diff --git a/types/react-icons/lib/md/view-week.d.ts b/types/react-icons/lib/md/view-week.d.ts index f40184d700..5841c02b24 100644 --- a/types/react-icons/lib/md/view-week.d.ts +++ b/types/react-icons/lib/md/view-week.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdViewWeek extends React.Component { } +declare class MdViewWeek extends React.Component { } +export = MdViewWeek; diff --git a/types/react-icons/lib/md/vignette.d.ts b/types/react-icons/lib/md/vignette.d.ts index 0f34dde7dd..68828b9c4a 100644 --- a/types/react-icons/lib/md/vignette.d.ts +++ b/types/react-icons/lib/md/vignette.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdVignette extends React.Component { } +declare class MdVignette extends React.Component { } +export = MdVignette; diff --git a/types/react-icons/lib/md/visibility-off.d.ts b/types/react-icons/lib/md/visibility-off.d.ts index 679a746bd7..264ae51949 100644 --- a/types/react-icons/lib/md/visibility-off.d.ts +++ b/types/react-icons/lib/md/visibility-off.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdVisibilityOff extends React.Component { } +declare class MdVisibilityOff extends React.Component { } +export = MdVisibilityOff; diff --git a/types/react-icons/lib/md/visibility.d.ts b/types/react-icons/lib/md/visibility.d.ts index 59c3bb1f38..b264e21de9 100644 --- a/types/react-icons/lib/md/visibility.d.ts +++ b/types/react-icons/lib/md/visibility.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdVisibility extends React.Component { } +declare class MdVisibility extends React.Component { } +export = MdVisibility; diff --git a/types/react-icons/lib/md/voice-chat.d.ts b/types/react-icons/lib/md/voice-chat.d.ts index a64ac1bee4..5a734456a1 100644 --- a/types/react-icons/lib/md/voice-chat.d.ts +++ b/types/react-icons/lib/md/voice-chat.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdVoiceChat extends React.Component { } +declare class MdVoiceChat extends React.Component { } +export = MdVoiceChat; diff --git a/types/react-icons/lib/md/voicemail.d.ts b/types/react-icons/lib/md/voicemail.d.ts index bf922ef49e..b91bb52445 100644 --- a/types/react-icons/lib/md/voicemail.d.ts +++ b/types/react-icons/lib/md/voicemail.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdVoicemail extends React.Component { } +declare class MdVoicemail extends React.Component { } +export = MdVoicemail; diff --git a/types/react-icons/lib/md/volume-down.d.ts b/types/react-icons/lib/md/volume-down.d.ts index f7a335c1c7..e0acee5522 100644 --- a/types/react-icons/lib/md/volume-down.d.ts +++ b/types/react-icons/lib/md/volume-down.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdVolumeDown extends React.Component { } +declare class MdVolumeDown extends React.Component { } +export = MdVolumeDown; diff --git a/types/react-icons/lib/md/volume-mute.d.ts b/types/react-icons/lib/md/volume-mute.d.ts index 566bbe0003..9baa94e9d3 100644 --- a/types/react-icons/lib/md/volume-mute.d.ts +++ b/types/react-icons/lib/md/volume-mute.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdVolumeMute extends React.Component { } +declare class MdVolumeMute extends React.Component { } +export = MdVolumeMute; diff --git a/types/react-icons/lib/md/volume-off.d.ts b/types/react-icons/lib/md/volume-off.d.ts index 74acca188c..91482e854b 100644 --- a/types/react-icons/lib/md/volume-off.d.ts +++ b/types/react-icons/lib/md/volume-off.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdVolumeOff extends React.Component { } +declare class MdVolumeOff extends React.Component { } +export = MdVolumeOff; diff --git a/types/react-icons/lib/md/volume-up.d.ts b/types/react-icons/lib/md/volume-up.d.ts index 28387e23f0..fae49fd042 100644 --- a/types/react-icons/lib/md/volume-up.d.ts +++ b/types/react-icons/lib/md/volume-up.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdVolumeUp extends React.Component { } +declare class MdVolumeUp extends React.Component { } +export = MdVolumeUp; diff --git a/types/react-icons/lib/md/vpn-key.d.ts b/types/react-icons/lib/md/vpn-key.d.ts index e2325babe7..aafd41a6b4 100644 --- a/types/react-icons/lib/md/vpn-key.d.ts +++ b/types/react-icons/lib/md/vpn-key.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdVpnKey extends React.Component { } +declare class MdVpnKey extends React.Component { } +export = MdVpnKey; diff --git a/types/react-icons/lib/md/vpn-lock.d.ts b/types/react-icons/lib/md/vpn-lock.d.ts index b83205b117..5495b04cd7 100644 --- a/types/react-icons/lib/md/vpn-lock.d.ts +++ b/types/react-icons/lib/md/vpn-lock.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdVpnLock extends React.Component { } +declare class MdVpnLock extends React.Component { } +export = MdVpnLock; diff --git a/types/react-icons/lib/md/wallpaper.d.ts b/types/react-icons/lib/md/wallpaper.d.ts index ea0485412f..66d579f3ee 100644 --- a/types/react-icons/lib/md/wallpaper.d.ts +++ b/types/react-icons/lib/md/wallpaper.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdWallpaper extends React.Component { } +declare class MdWallpaper extends React.Component { } +export = MdWallpaper; diff --git a/types/react-icons/lib/md/warning.d.ts b/types/react-icons/lib/md/warning.d.ts index 74ec79fe30..a8b475203d 100644 --- a/types/react-icons/lib/md/warning.d.ts +++ b/types/react-icons/lib/md/warning.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdWarning extends React.Component { } +declare class MdWarning extends React.Component { } +export = MdWarning; diff --git a/types/react-icons/lib/md/watch-later.d.ts b/types/react-icons/lib/md/watch-later.d.ts index c4dc2a3b49..21a18dda02 100644 --- a/types/react-icons/lib/md/watch-later.d.ts +++ b/types/react-icons/lib/md/watch-later.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdWatchLater extends React.Component { } +declare class MdWatchLater extends React.Component { } +export = MdWatchLater; diff --git a/types/react-icons/lib/md/watch.d.ts b/types/react-icons/lib/md/watch.d.ts index ae09dcd597..291523e27c 100644 --- a/types/react-icons/lib/md/watch.d.ts +++ b/types/react-icons/lib/md/watch.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdWatch extends React.Component { } +declare class MdWatch extends React.Component { } +export = MdWatch; diff --git a/types/react-icons/lib/md/wb-auto.d.ts b/types/react-icons/lib/md/wb-auto.d.ts index 216d3b41dc..6a04f806fa 100644 --- a/types/react-icons/lib/md/wb-auto.d.ts +++ b/types/react-icons/lib/md/wb-auto.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdWbAuto extends React.Component { } +declare class MdWbAuto extends React.Component { } +export = MdWbAuto; diff --git a/types/react-icons/lib/md/wb-cloudy.d.ts b/types/react-icons/lib/md/wb-cloudy.d.ts index 2ad62d4341..864fc65090 100644 --- a/types/react-icons/lib/md/wb-cloudy.d.ts +++ b/types/react-icons/lib/md/wb-cloudy.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdWbCloudy extends React.Component { } +declare class MdWbCloudy extends React.Component { } +export = MdWbCloudy; diff --git a/types/react-icons/lib/md/wb-incandescent.d.ts b/types/react-icons/lib/md/wb-incandescent.d.ts index 52b597fc99..05fbebfcbb 100644 --- a/types/react-icons/lib/md/wb-incandescent.d.ts +++ b/types/react-icons/lib/md/wb-incandescent.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdWbIncandescent extends React.Component { } +declare class MdWbIncandescent extends React.Component { } +export = MdWbIncandescent; diff --git a/types/react-icons/lib/md/wb-iridescent.d.ts b/types/react-icons/lib/md/wb-iridescent.d.ts index 6d16c62bba..ec599b0fc4 100644 --- a/types/react-icons/lib/md/wb-iridescent.d.ts +++ b/types/react-icons/lib/md/wb-iridescent.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdWbIridescent extends React.Component { } +declare class MdWbIridescent extends React.Component { } +export = MdWbIridescent; diff --git a/types/react-icons/lib/md/wb-sunny.d.ts b/types/react-icons/lib/md/wb-sunny.d.ts index e8bd77c743..14d7d0c115 100644 --- a/types/react-icons/lib/md/wb-sunny.d.ts +++ b/types/react-icons/lib/md/wb-sunny.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdWbSunny extends React.Component { } +declare class MdWbSunny extends React.Component { } +export = MdWbSunny; diff --git a/types/react-icons/lib/md/wc.d.ts b/types/react-icons/lib/md/wc.d.ts index 9e9cde374f..acc9160928 100644 --- a/types/react-icons/lib/md/wc.d.ts +++ b/types/react-icons/lib/md/wc.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdWc extends React.Component { } +declare class MdWc extends React.Component { } +export = MdWc; diff --git a/types/react-icons/lib/md/web-asset.d.ts b/types/react-icons/lib/md/web-asset.d.ts index 1871d94e5f..3296ddb2f3 100644 --- a/types/react-icons/lib/md/web-asset.d.ts +++ b/types/react-icons/lib/md/web-asset.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdWebAsset extends React.Component { } +declare class MdWebAsset extends React.Component { } +export = MdWebAsset; diff --git a/types/react-icons/lib/md/web.d.ts b/types/react-icons/lib/md/web.d.ts index 0a6c41e697..93fc4bf2af 100644 --- a/types/react-icons/lib/md/web.d.ts +++ b/types/react-icons/lib/md/web.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdWeb extends React.Component { } +declare class MdWeb extends React.Component { } +export = MdWeb; diff --git a/types/react-icons/lib/md/weekend.d.ts b/types/react-icons/lib/md/weekend.d.ts index 4a7c411c87..1e93ea3441 100644 --- a/types/react-icons/lib/md/weekend.d.ts +++ b/types/react-icons/lib/md/weekend.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdWeekend extends React.Component { } +declare class MdWeekend extends React.Component { } +export = MdWeekend; diff --git a/types/react-icons/lib/md/whatshot.d.ts b/types/react-icons/lib/md/whatshot.d.ts index cf16b36c37..8e520abd52 100644 --- a/types/react-icons/lib/md/whatshot.d.ts +++ b/types/react-icons/lib/md/whatshot.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdWhatshot extends React.Component { } +declare class MdWhatshot extends React.Component { } +export = MdWhatshot; diff --git a/types/react-icons/lib/md/widgets.d.ts b/types/react-icons/lib/md/widgets.d.ts index ea00e70e7b..b45a27f5ba 100644 --- a/types/react-icons/lib/md/widgets.d.ts +++ b/types/react-icons/lib/md/widgets.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdWidgets extends React.Component { } +declare class MdWidgets extends React.Component { } +export = MdWidgets; diff --git a/types/react-icons/lib/md/wifi-lock.d.ts b/types/react-icons/lib/md/wifi-lock.d.ts index 58c31bb22c..ed1338f365 100644 --- a/types/react-icons/lib/md/wifi-lock.d.ts +++ b/types/react-icons/lib/md/wifi-lock.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdWifiLock extends React.Component { } +declare class MdWifiLock extends React.Component { } +export = MdWifiLock; diff --git a/types/react-icons/lib/md/wifi-tethering.d.ts b/types/react-icons/lib/md/wifi-tethering.d.ts index 580c2fe273..8757a657b7 100644 --- a/types/react-icons/lib/md/wifi-tethering.d.ts +++ b/types/react-icons/lib/md/wifi-tethering.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdWifiTethering extends React.Component { } +declare class MdWifiTethering extends React.Component { } +export = MdWifiTethering; diff --git a/types/react-icons/lib/md/wifi.d.ts b/types/react-icons/lib/md/wifi.d.ts index ee81b9f84c..2e5f681b39 100644 --- a/types/react-icons/lib/md/wifi.d.ts +++ b/types/react-icons/lib/md/wifi.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdWifi extends React.Component { } +declare class MdWifi extends React.Component { } +export = MdWifi; diff --git a/types/react-icons/lib/md/work.d.ts b/types/react-icons/lib/md/work.d.ts index 8b1f10367f..af2a4e42e5 100644 --- a/types/react-icons/lib/md/work.d.ts +++ b/types/react-icons/lib/md/work.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdWork extends React.Component { } +declare class MdWork extends React.Component { } +export = MdWork; diff --git a/types/react-icons/lib/md/wrap-text.d.ts b/types/react-icons/lib/md/wrap-text.d.ts index 4e90b8190a..bc2554bf0e 100644 --- a/types/react-icons/lib/md/wrap-text.d.ts +++ b/types/react-icons/lib/md/wrap-text.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdWrapText extends React.Component { } +declare class MdWrapText extends React.Component { } +export = MdWrapText; diff --git a/types/react-icons/lib/md/youtube-searched-for.d.ts b/types/react-icons/lib/md/youtube-searched-for.d.ts index 0267e151dc..05c2c2c706 100644 --- a/types/react-icons/lib/md/youtube-searched-for.d.ts +++ b/types/react-icons/lib/md/youtube-searched-for.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdYoutubeSearchedFor extends React.Component { } +declare class MdYoutubeSearchedFor extends React.Component { } +export = MdYoutubeSearchedFor; diff --git a/types/react-icons/lib/md/zoom-in.d.ts b/types/react-icons/lib/md/zoom-in.d.ts index 068a0d9bd7..2bba2417c0 100644 --- a/types/react-icons/lib/md/zoom-in.d.ts +++ b/types/react-icons/lib/md/zoom-in.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdZoomIn extends React.Component { } +declare class MdZoomIn extends React.Component { } +export = MdZoomIn; diff --git a/types/react-icons/lib/md/zoom-out-map.d.ts b/types/react-icons/lib/md/zoom-out-map.d.ts index 4d526d0095..4b79de0d14 100644 --- a/types/react-icons/lib/md/zoom-out-map.d.ts +++ b/types/react-icons/lib/md/zoom-out-map.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdZoomOutMap extends React.Component { } +declare class MdZoomOutMap extends React.Component { } +export = MdZoomOutMap; diff --git a/types/react-icons/lib/md/zoom-out.d.ts b/types/react-icons/lib/md/zoom-out.d.ts index 54862f1b45..630db0d75c 100644 --- a/types/react-icons/lib/md/zoom-out.d.ts +++ b/types/react-icons/lib/md/zoom-out.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class MdZoomOut extends React.Component { } +declare class MdZoomOut extends React.Component { } +export = MdZoomOut; diff --git a/types/react-icons/lib/ti/adjust-brightness.d.ts b/types/react-icons/lib/ti/adjust-brightness.d.ts index 5beec88e6a..4f581f784b 100644 --- a/types/react-icons/lib/ti/adjust-brightness.d.ts +++ b/types/react-icons/lib/ti/adjust-brightness.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiAdjustBrightness extends React.Component { } +declare class TiAdjustBrightness extends React.Component { } +export = TiAdjustBrightness; diff --git a/types/react-icons/lib/ti/adjust-contrast.d.ts b/types/react-icons/lib/ti/adjust-contrast.d.ts index 2d49b0ce59..e85f43a11f 100644 --- a/types/react-icons/lib/ti/adjust-contrast.d.ts +++ b/types/react-icons/lib/ti/adjust-contrast.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiAdjustContrast extends React.Component { } +declare class TiAdjustContrast extends React.Component { } +export = TiAdjustContrast; diff --git a/types/react-icons/lib/ti/anchor-outline.d.ts b/types/react-icons/lib/ti/anchor-outline.d.ts index 7a9bc3ab6e..fb0b412883 100644 --- a/types/react-icons/lib/ti/anchor-outline.d.ts +++ b/types/react-icons/lib/ti/anchor-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiAnchorOutline extends React.Component { } +declare class TiAnchorOutline extends React.Component { } +export = TiAnchorOutline; diff --git a/types/react-icons/lib/ti/anchor.d.ts b/types/react-icons/lib/ti/anchor.d.ts index 3c90ca1623..ac2d26168c 100644 --- a/types/react-icons/lib/ti/anchor.d.ts +++ b/types/react-icons/lib/ti/anchor.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiAnchor extends React.Component { } +declare class TiAnchor extends React.Component { } +export = TiAnchor; diff --git a/types/react-icons/lib/ti/archive.d.ts b/types/react-icons/lib/ti/archive.d.ts index 22c92eab3d..1019b6d92a 100644 --- a/types/react-icons/lib/ti/archive.d.ts +++ b/types/react-icons/lib/ti/archive.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiArchive extends React.Component { } +declare class TiArchive extends React.Component { } +export = TiArchive; diff --git a/types/react-icons/lib/ti/arrow-back-outline.d.ts b/types/react-icons/lib/ti/arrow-back-outline.d.ts index c168ae0809..6f675bcea3 100644 --- a/types/react-icons/lib/ti/arrow-back-outline.d.ts +++ b/types/react-icons/lib/ti/arrow-back-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiArrowBackOutline extends React.Component { } +declare class TiArrowBackOutline extends React.Component { } +export = TiArrowBackOutline; diff --git a/types/react-icons/lib/ti/arrow-back.d.ts b/types/react-icons/lib/ti/arrow-back.d.ts index 5eb11665a2..8611134a00 100644 --- a/types/react-icons/lib/ti/arrow-back.d.ts +++ b/types/react-icons/lib/ti/arrow-back.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiArrowBack extends React.Component { } +declare class TiArrowBack extends React.Component { } +export = TiArrowBack; diff --git a/types/react-icons/lib/ti/arrow-down-outline.d.ts b/types/react-icons/lib/ti/arrow-down-outline.d.ts index 17ff0d0547..a86d68da84 100644 --- a/types/react-icons/lib/ti/arrow-down-outline.d.ts +++ b/types/react-icons/lib/ti/arrow-down-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiArrowDownOutline extends React.Component { } +declare class TiArrowDownOutline extends React.Component { } +export = TiArrowDownOutline; diff --git a/types/react-icons/lib/ti/arrow-down-thick.d.ts b/types/react-icons/lib/ti/arrow-down-thick.d.ts index 450cbe6467..e7a17aafb5 100644 --- a/types/react-icons/lib/ti/arrow-down-thick.d.ts +++ b/types/react-icons/lib/ti/arrow-down-thick.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiArrowDownThick extends React.Component { } +declare class TiArrowDownThick extends React.Component { } +export = TiArrowDownThick; diff --git a/types/react-icons/lib/ti/arrow-down.d.ts b/types/react-icons/lib/ti/arrow-down.d.ts index fcb3596caf..58a7f75bc3 100644 --- a/types/react-icons/lib/ti/arrow-down.d.ts +++ b/types/react-icons/lib/ti/arrow-down.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiArrowDown extends React.Component { } +declare class TiArrowDown extends React.Component { } +export = TiArrowDown; diff --git a/types/react-icons/lib/ti/arrow-forward-outline.d.ts b/types/react-icons/lib/ti/arrow-forward-outline.d.ts index 610881bf2d..6075344eba 100644 --- a/types/react-icons/lib/ti/arrow-forward-outline.d.ts +++ b/types/react-icons/lib/ti/arrow-forward-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiArrowForwardOutline extends React.Component { } +declare class TiArrowForwardOutline extends React.Component { } +export = TiArrowForwardOutline; diff --git a/types/react-icons/lib/ti/arrow-forward.d.ts b/types/react-icons/lib/ti/arrow-forward.d.ts index a4291100ca..f2729f5d2c 100644 --- a/types/react-icons/lib/ti/arrow-forward.d.ts +++ b/types/react-icons/lib/ti/arrow-forward.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiArrowForward extends React.Component { } +declare class TiArrowForward extends React.Component { } +export = TiArrowForward; diff --git a/types/react-icons/lib/ti/arrow-left-outline.d.ts b/types/react-icons/lib/ti/arrow-left-outline.d.ts index fb50e3e8ae..033e464649 100644 --- a/types/react-icons/lib/ti/arrow-left-outline.d.ts +++ b/types/react-icons/lib/ti/arrow-left-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiArrowLeftOutline extends React.Component { } +declare class TiArrowLeftOutline extends React.Component { } +export = TiArrowLeftOutline; diff --git a/types/react-icons/lib/ti/arrow-left-thick.d.ts b/types/react-icons/lib/ti/arrow-left-thick.d.ts index 4c5bf0e54e..e3a016cb1f 100644 --- a/types/react-icons/lib/ti/arrow-left-thick.d.ts +++ b/types/react-icons/lib/ti/arrow-left-thick.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiArrowLeftThick extends React.Component { } +declare class TiArrowLeftThick extends React.Component { } +export = TiArrowLeftThick; diff --git a/types/react-icons/lib/ti/arrow-left.d.ts b/types/react-icons/lib/ti/arrow-left.d.ts index f4ae370d36..0555a99412 100644 --- a/types/react-icons/lib/ti/arrow-left.d.ts +++ b/types/react-icons/lib/ti/arrow-left.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiArrowLeft extends React.Component { } +declare class TiArrowLeft extends React.Component { } +export = TiArrowLeft; diff --git a/types/react-icons/lib/ti/arrow-loop-outline.d.ts b/types/react-icons/lib/ti/arrow-loop-outline.d.ts index 40da459c5f..fdbbb8fa42 100644 --- a/types/react-icons/lib/ti/arrow-loop-outline.d.ts +++ b/types/react-icons/lib/ti/arrow-loop-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiArrowLoopOutline extends React.Component { } +declare class TiArrowLoopOutline extends React.Component { } +export = TiArrowLoopOutline; diff --git a/types/react-icons/lib/ti/arrow-loop.d.ts b/types/react-icons/lib/ti/arrow-loop.d.ts index e4d207fe46..40fee9ff24 100644 --- a/types/react-icons/lib/ti/arrow-loop.d.ts +++ b/types/react-icons/lib/ti/arrow-loop.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiArrowLoop extends React.Component { } +declare class TiArrowLoop extends React.Component { } +export = TiArrowLoop; diff --git a/types/react-icons/lib/ti/arrow-maximise-outline.d.ts b/types/react-icons/lib/ti/arrow-maximise-outline.d.ts index e6900ecdb4..431e6599f7 100644 --- a/types/react-icons/lib/ti/arrow-maximise-outline.d.ts +++ b/types/react-icons/lib/ti/arrow-maximise-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiArrowMaximiseOutline extends React.Component { } +declare class TiArrowMaximiseOutline extends React.Component { } +export = TiArrowMaximiseOutline; diff --git a/types/react-icons/lib/ti/arrow-maximise.d.ts b/types/react-icons/lib/ti/arrow-maximise.d.ts index 14797e2179..f3521df247 100644 --- a/types/react-icons/lib/ti/arrow-maximise.d.ts +++ b/types/react-icons/lib/ti/arrow-maximise.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiArrowMaximise extends React.Component { } +declare class TiArrowMaximise extends React.Component { } +export = TiArrowMaximise; diff --git a/types/react-icons/lib/ti/arrow-minimise-outline.d.ts b/types/react-icons/lib/ti/arrow-minimise-outline.d.ts index 16e1c2c67d..93cfee26c2 100644 --- a/types/react-icons/lib/ti/arrow-minimise-outline.d.ts +++ b/types/react-icons/lib/ti/arrow-minimise-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiArrowMinimiseOutline extends React.Component { } +declare class TiArrowMinimiseOutline extends React.Component { } +export = TiArrowMinimiseOutline; diff --git a/types/react-icons/lib/ti/arrow-minimise.d.ts b/types/react-icons/lib/ti/arrow-minimise.d.ts index 557625ec1a..531d6414e7 100644 --- a/types/react-icons/lib/ti/arrow-minimise.d.ts +++ b/types/react-icons/lib/ti/arrow-minimise.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiArrowMinimise extends React.Component { } +declare class TiArrowMinimise extends React.Component { } +export = TiArrowMinimise; diff --git a/types/react-icons/lib/ti/arrow-move-outline.d.ts b/types/react-icons/lib/ti/arrow-move-outline.d.ts index 0035cbddca..510ae78ebe 100644 --- a/types/react-icons/lib/ti/arrow-move-outline.d.ts +++ b/types/react-icons/lib/ti/arrow-move-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiArrowMoveOutline extends React.Component { } +declare class TiArrowMoveOutline extends React.Component { } +export = TiArrowMoveOutline; diff --git a/types/react-icons/lib/ti/arrow-move.d.ts b/types/react-icons/lib/ti/arrow-move.d.ts index 974082e4ed..ee02e3d91d 100644 --- a/types/react-icons/lib/ti/arrow-move.d.ts +++ b/types/react-icons/lib/ti/arrow-move.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiArrowMove extends React.Component { } +declare class TiArrowMove extends React.Component { } +export = TiArrowMove; diff --git a/types/react-icons/lib/ti/arrow-repeat-outline.d.ts b/types/react-icons/lib/ti/arrow-repeat-outline.d.ts index 7b4e2b2c06..94eebe9c04 100644 --- a/types/react-icons/lib/ti/arrow-repeat-outline.d.ts +++ b/types/react-icons/lib/ti/arrow-repeat-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiArrowRepeatOutline extends React.Component { } +declare class TiArrowRepeatOutline extends React.Component { } +export = TiArrowRepeatOutline; diff --git a/types/react-icons/lib/ti/arrow-repeat.d.ts b/types/react-icons/lib/ti/arrow-repeat.d.ts index 00445af479..0010ebcab4 100644 --- a/types/react-icons/lib/ti/arrow-repeat.d.ts +++ b/types/react-icons/lib/ti/arrow-repeat.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiArrowRepeat extends React.Component { } +declare class TiArrowRepeat extends React.Component { } +export = TiArrowRepeat; diff --git a/types/react-icons/lib/ti/arrow-right-outline.d.ts b/types/react-icons/lib/ti/arrow-right-outline.d.ts index 7f7319172c..04269a4ea9 100644 --- a/types/react-icons/lib/ti/arrow-right-outline.d.ts +++ b/types/react-icons/lib/ti/arrow-right-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiArrowRightOutline extends React.Component { } +declare class TiArrowRightOutline extends React.Component { } +export = TiArrowRightOutline; diff --git a/types/react-icons/lib/ti/arrow-right-thick.d.ts b/types/react-icons/lib/ti/arrow-right-thick.d.ts index cc72754ddf..322875500b 100644 --- a/types/react-icons/lib/ti/arrow-right-thick.d.ts +++ b/types/react-icons/lib/ti/arrow-right-thick.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiArrowRightThick extends React.Component { } +declare class TiArrowRightThick extends React.Component { } +export = TiArrowRightThick; diff --git a/types/react-icons/lib/ti/arrow-right.d.ts b/types/react-icons/lib/ti/arrow-right.d.ts index 0761bfd383..ae7fd5ad05 100644 --- a/types/react-icons/lib/ti/arrow-right.d.ts +++ b/types/react-icons/lib/ti/arrow-right.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiArrowRight extends React.Component { } +declare class TiArrowRight extends React.Component { } +export = TiArrowRight; diff --git a/types/react-icons/lib/ti/arrow-shuffle.d.ts b/types/react-icons/lib/ti/arrow-shuffle.d.ts index c0cb7629b3..506b10aa81 100644 --- a/types/react-icons/lib/ti/arrow-shuffle.d.ts +++ b/types/react-icons/lib/ti/arrow-shuffle.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiArrowShuffle extends React.Component { } +declare class TiArrowShuffle extends React.Component { } +export = TiArrowShuffle; diff --git a/types/react-icons/lib/ti/arrow-sorted-down.d.ts b/types/react-icons/lib/ti/arrow-sorted-down.d.ts index b7b8a436dd..a9f86a80af 100644 --- a/types/react-icons/lib/ti/arrow-sorted-down.d.ts +++ b/types/react-icons/lib/ti/arrow-sorted-down.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiArrowSortedDown extends React.Component { } +declare class TiArrowSortedDown extends React.Component { } +export = TiArrowSortedDown; diff --git a/types/react-icons/lib/ti/arrow-sorted-up.d.ts b/types/react-icons/lib/ti/arrow-sorted-up.d.ts index 66f3ef408a..849fe84ff4 100644 --- a/types/react-icons/lib/ti/arrow-sorted-up.d.ts +++ b/types/react-icons/lib/ti/arrow-sorted-up.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiArrowSortedUp extends React.Component { } +declare class TiArrowSortedUp extends React.Component { } +export = TiArrowSortedUp; diff --git a/types/react-icons/lib/ti/arrow-sync-outline.d.ts b/types/react-icons/lib/ti/arrow-sync-outline.d.ts index 91b296966b..b2577282e7 100644 --- a/types/react-icons/lib/ti/arrow-sync-outline.d.ts +++ b/types/react-icons/lib/ti/arrow-sync-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiArrowSyncOutline extends React.Component { } +declare class TiArrowSyncOutline extends React.Component { } +export = TiArrowSyncOutline; diff --git a/types/react-icons/lib/ti/arrow-sync.d.ts b/types/react-icons/lib/ti/arrow-sync.d.ts index 4a863fe22c..35b9b2e05a 100644 --- a/types/react-icons/lib/ti/arrow-sync.d.ts +++ b/types/react-icons/lib/ti/arrow-sync.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiArrowSync extends React.Component { } +declare class TiArrowSync extends React.Component { } +export = TiArrowSync; diff --git a/types/react-icons/lib/ti/arrow-unsorted.d.ts b/types/react-icons/lib/ti/arrow-unsorted.d.ts index 1fbd71c7fa..4c453df45a 100644 --- a/types/react-icons/lib/ti/arrow-unsorted.d.ts +++ b/types/react-icons/lib/ti/arrow-unsorted.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiArrowUnsorted extends React.Component { } +declare class TiArrowUnsorted extends React.Component { } +export = TiArrowUnsorted; diff --git a/types/react-icons/lib/ti/arrow-up-outline.d.ts b/types/react-icons/lib/ti/arrow-up-outline.d.ts index 5f7d9b2baa..b25077cee2 100644 --- a/types/react-icons/lib/ti/arrow-up-outline.d.ts +++ b/types/react-icons/lib/ti/arrow-up-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiArrowUpOutline extends React.Component { } +declare class TiArrowUpOutline extends React.Component { } +export = TiArrowUpOutline; diff --git a/types/react-icons/lib/ti/arrow-up-thick.d.ts b/types/react-icons/lib/ti/arrow-up-thick.d.ts index 965192a20a..6a5c487bbb 100644 --- a/types/react-icons/lib/ti/arrow-up-thick.d.ts +++ b/types/react-icons/lib/ti/arrow-up-thick.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiArrowUpThick extends React.Component { } +declare class TiArrowUpThick extends React.Component { } +export = TiArrowUpThick; diff --git a/types/react-icons/lib/ti/arrow-up.d.ts b/types/react-icons/lib/ti/arrow-up.d.ts index d8930645ae..c20aa6fab9 100644 --- a/types/react-icons/lib/ti/arrow-up.d.ts +++ b/types/react-icons/lib/ti/arrow-up.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiArrowUp extends React.Component { } +declare class TiArrowUp extends React.Component { } +export = TiArrowUp; diff --git a/types/react-icons/lib/ti/at.d.ts b/types/react-icons/lib/ti/at.d.ts index 7eaadbcb42..a22becc6cc 100644 --- a/types/react-icons/lib/ti/at.d.ts +++ b/types/react-icons/lib/ti/at.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiAt extends React.Component { } +declare class TiAt extends React.Component { } +export = TiAt; diff --git a/types/react-icons/lib/ti/attachment-outline.d.ts b/types/react-icons/lib/ti/attachment-outline.d.ts index 2f3c1c54ea..af0ea4f5fb 100644 --- a/types/react-icons/lib/ti/attachment-outline.d.ts +++ b/types/react-icons/lib/ti/attachment-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiAttachmentOutline extends React.Component { } +declare class TiAttachmentOutline extends React.Component { } +export = TiAttachmentOutline; diff --git a/types/react-icons/lib/ti/attachment.d.ts b/types/react-icons/lib/ti/attachment.d.ts index ae09ff061c..089f1b1817 100644 --- a/types/react-icons/lib/ti/attachment.d.ts +++ b/types/react-icons/lib/ti/attachment.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiAttachment extends React.Component { } +declare class TiAttachment extends React.Component { } +export = TiAttachment; diff --git a/types/react-icons/lib/ti/backspace-outline.d.ts b/types/react-icons/lib/ti/backspace-outline.d.ts index a7047f88fc..fa59aa01cd 100644 --- a/types/react-icons/lib/ti/backspace-outline.d.ts +++ b/types/react-icons/lib/ti/backspace-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiBackspaceOutline extends React.Component { } +declare class TiBackspaceOutline extends React.Component { } +export = TiBackspaceOutline; diff --git a/types/react-icons/lib/ti/backspace.d.ts b/types/react-icons/lib/ti/backspace.d.ts index fcd1490219..062be7f345 100644 --- a/types/react-icons/lib/ti/backspace.d.ts +++ b/types/react-icons/lib/ti/backspace.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiBackspace extends React.Component { } +declare class TiBackspace extends React.Component { } +export = TiBackspace; diff --git a/types/react-icons/lib/ti/battery-charge.d.ts b/types/react-icons/lib/ti/battery-charge.d.ts index 6b1af42674..b81192220a 100644 --- a/types/react-icons/lib/ti/battery-charge.d.ts +++ b/types/react-icons/lib/ti/battery-charge.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiBatteryCharge extends React.Component { } +declare class TiBatteryCharge extends React.Component { } +export = TiBatteryCharge; diff --git a/types/react-icons/lib/ti/battery-full.d.ts b/types/react-icons/lib/ti/battery-full.d.ts index 6e75957baf..85b775dee9 100644 --- a/types/react-icons/lib/ti/battery-full.d.ts +++ b/types/react-icons/lib/ti/battery-full.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiBatteryFull extends React.Component { } +declare class TiBatteryFull extends React.Component { } +export = TiBatteryFull; diff --git a/types/react-icons/lib/ti/battery-high.d.ts b/types/react-icons/lib/ti/battery-high.d.ts index 951e63a507..05af45979f 100644 --- a/types/react-icons/lib/ti/battery-high.d.ts +++ b/types/react-icons/lib/ti/battery-high.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiBatteryHigh extends React.Component { } +declare class TiBatteryHigh extends React.Component { } +export = TiBatteryHigh; diff --git a/types/react-icons/lib/ti/battery-low.d.ts b/types/react-icons/lib/ti/battery-low.d.ts index 9c0f370293..fbbc4afcfe 100644 --- a/types/react-icons/lib/ti/battery-low.d.ts +++ b/types/react-icons/lib/ti/battery-low.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiBatteryLow extends React.Component { } +declare class TiBatteryLow extends React.Component { } +export = TiBatteryLow; diff --git a/types/react-icons/lib/ti/battery-mid.d.ts b/types/react-icons/lib/ti/battery-mid.d.ts index 6625efa374..a4b1bac2a4 100644 --- a/types/react-icons/lib/ti/battery-mid.d.ts +++ b/types/react-icons/lib/ti/battery-mid.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiBatteryMid extends React.Component { } +declare class TiBatteryMid extends React.Component { } +export = TiBatteryMid; diff --git a/types/react-icons/lib/ti/beaker.d.ts b/types/react-icons/lib/ti/beaker.d.ts index 0cdfe9fc68..088105c80e 100644 --- a/types/react-icons/lib/ti/beaker.d.ts +++ b/types/react-icons/lib/ti/beaker.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiBeaker extends React.Component { } +declare class TiBeaker extends React.Component { } +export = TiBeaker; diff --git a/types/react-icons/lib/ti/beer.d.ts b/types/react-icons/lib/ti/beer.d.ts index a76c8d06f6..6525266217 100644 --- a/types/react-icons/lib/ti/beer.d.ts +++ b/types/react-icons/lib/ti/beer.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiBeer extends React.Component { } +declare class TiBeer extends React.Component { } +export = TiBeer; diff --git a/types/react-icons/lib/ti/bell.d.ts b/types/react-icons/lib/ti/bell.d.ts index d3dd3950ed..15728d828f 100644 --- a/types/react-icons/lib/ti/bell.d.ts +++ b/types/react-icons/lib/ti/bell.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiBell extends React.Component { } +declare class TiBell extends React.Component { } +export = TiBell; diff --git a/types/react-icons/lib/ti/book.d.ts b/types/react-icons/lib/ti/book.d.ts index e2a2e7d952..be301cf8bd 100644 --- a/types/react-icons/lib/ti/book.d.ts +++ b/types/react-icons/lib/ti/book.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiBook extends React.Component { } +declare class TiBook extends React.Component { } +export = TiBook; diff --git a/types/react-icons/lib/ti/bookmark.d.ts b/types/react-icons/lib/ti/bookmark.d.ts index 47dc6a5e5f..a5b1244aee 100644 --- a/types/react-icons/lib/ti/bookmark.d.ts +++ b/types/react-icons/lib/ti/bookmark.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiBookmark extends React.Component { } +declare class TiBookmark extends React.Component { } +export = TiBookmark; diff --git a/types/react-icons/lib/ti/briefcase.d.ts b/types/react-icons/lib/ti/briefcase.d.ts index c830dab76b..76635d9763 100644 --- a/types/react-icons/lib/ti/briefcase.d.ts +++ b/types/react-icons/lib/ti/briefcase.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiBriefcase extends React.Component { } +declare class TiBriefcase extends React.Component { } +export = TiBriefcase; diff --git a/types/react-icons/lib/ti/brush.d.ts b/types/react-icons/lib/ti/brush.d.ts index d8a1b5a5d8..596b8c1778 100644 --- a/types/react-icons/lib/ti/brush.d.ts +++ b/types/react-icons/lib/ti/brush.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiBrush extends React.Component { } +declare class TiBrush extends React.Component { } +export = TiBrush; diff --git a/types/react-icons/lib/ti/business-card.d.ts b/types/react-icons/lib/ti/business-card.d.ts index 1ecf3f6621..9e5b6a6657 100644 --- a/types/react-icons/lib/ti/business-card.d.ts +++ b/types/react-icons/lib/ti/business-card.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiBusinessCard extends React.Component { } +declare class TiBusinessCard extends React.Component { } +export = TiBusinessCard; diff --git a/types/react-icons/lib/ti/calculator.d.ts b/types/react-icons/lib/ti/calculator.d.ts index 403ce8c3e6..159507d0f5 100644 --- a/types/react-icons/lib/ti/calculator.d.ts +++ b/types/react-icons/lib/ti/calculator.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiCalculator extends React.Component { } +declare class TiCalculator extends React.Component { } +export = TiCalculator; diff --git a/types/react-icons/lib/ti/calendar-outline.d.ts b/types/react-icons/lib/ti/calendar-outline.d.ts index bd3dd9e9d3..feb064e20a 100644 --- a/types/react-icons/lib/ti/calendar-outline.d.ts +++ b/types/react-icons/lib/ti/calendar-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiCalendarOutline extends React.Component { } +declare class TiCalendarOutline extends React.Component { } +export = TiCalendarOutline; diff --git a/types/react-icons/lib/ti/calendar.d.ts b/types/react-icons/lib/ti/calendar.d.ts index 9b0ba315d5..85814900ba 100644 --- a/types/react-icons/lib/ti/calendar.d.ts +++ b/types/react-icons/lib/ti/calendar.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiCalendar extends React.Component { } +declare class TiCalendar extends React.Component { } +export = TiCalendar; diff --git a/types/react-icons/lib/ti/calender-outline.d.ts b/types/react-icons/lib/ti/calender-outline.d.ts index 8afcb4ef62..677982952a 100644 --- a/types/react-icons/lib/ti/calender-outline.d.ts +++ b/types/react-icons/lib/ti/calender-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiCalenderOutline extends React.Component { } +declare class TiCalenderOutline extends React.Component { } +export = TiCalenderOutline; diff --git a/types/react-icons/lib/ti/calender.d.ts b/types/react-icons/lib/ti/calender.d.ts index 0393fece08..17361d332e 100644 --- a/types/react-icons/lib/ti/calender.d.ts +++ b/types/react-icons/lib/ti/calender.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiCalender extends React.Component { } +declare class TiCalender extends React.Component { } +export = TiCalender; diff --git a/types/react-icons/lib/ti/camera-outline.d.ts b/types/react-icons/lib/ti/camera-outline.d.ts index 940ba3bd58..9b7f91566e 100644 --- a/types/react-icons/lib/ti/camera-outline.d.ts +++ b/types/react-icons/lib/ti/camera-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiCameraOutline extends React.Component { } +declare class TiCameraOutline extends React.Component { } +export = TiCameraOutline; diff --git a/types/react-icons/lib/ti/camera.d.ts b/types/react-icons/lib/ti/camera.d.ts index 8291efbd7d..ce19562cd3 100644 --- a/types/react-icons/lib/ti/camera.d.ts +++ b/types/react-icons/lib/ti/camera.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiCamera extends React.Component { } +declare class TiCamera extends React.Component { } +export = TiCamera; diff --git a/types/react-icons/lib/ti/cancel-outline.d.ts b/types/react-icons/lib/ti/cancel-outline.d.ts index 233d7b4b9b..3348e9084f 100644 --- a/types/react-icons/lib/ti/cancel-outline.d.ts +++ b/types/react-icons/lib/ti/cancel-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiCancelOutline extends React.Component { } +declare class TiCancelOutline extends React.Component { } +export = TiCancelOutline; diff --git a/types/react-icons/lib/ti/cancel.d.ts b/types/react-icons/lib/ti/cancel.d.ts index 882317d054..b03938e450 100644 --- a/types/react-icons/lib/ti/cancel.d.ts +++ b/types/react-icons/lib/ti/cancel.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiCancel extends React.Component { } +declare class TiCancel extends React.Component { } +export = TiCancel; diff --git a/types/react-icons/lib/ti/chart-area-outline.d.ts b/types/react-icons/lib/ti/chart-area-outline.d.ts index fa40a08cde..ce75645beb 100644 --- a/types/react-icons/lib/ti/chart-area-outline.d.ts +++ b/types/react-icons/lib/ti/chart-area-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiChartAreaOutline extends React.Component { } +declare class TiChartAreaOutline extends React.Component { } +export = TiChartAreaOutline; diff --git a/types/react-icons/lib/ti/chart-area.d.ts b/types/react-icons/lib/ti/chart-area.d.ts index 80806cbd7c..027f2c9c82 100644 --- a/types/react-icons/lib/ti/chart-area.d.ts +++ b/types/react-icons/lib/ti/chart-area.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiChartArea extends React.Component { } +declare class TiChartArea extends React.Component { } +export = TiChartArea; diff --git a/types/react-icons/lib/ti/chart-bar-outline.d.ts b/types/react-icons/lib/ti/chart-bar-outline.d.ts index 9ec3c4ca70..393e0e0423 100644 --- a/types/react-icons/lib/ti/chart-bar-outline.d.ts +++ b/types/react-icons/lib/ti/chart-bar-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiChartBarOutline extends React.Component { } +declare class TiChartBarOutline extends React.Component { } +export = TiChartBarOutline; diff --git a/types/react-icons/lib/ti/chart-bar.d.ts b/types/react-icons/lib/ti/chart-bar.d.ts index a98da7fe10..7fa03c097e 100644 --- a/types/react-icons/lib/ti/chart-bar.d.ts +++ b/types/react-icons/lib/ti/chart-bar.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiChartBar extends React.Component { } +declare class TiChartBar extends React.Component { } +export = TiChartBar; diff --git a/types/react-icons/lib/ti/chart-line-outline.d.ts b/types/react-icons/lib/ti/chart-line-outline.d.ts index f5a982d0f1..6b8b6bc7b6 100644 --- a/types/react-icons/lib/ti/chart-line-outline.d.ts +++ b/types/react-icons/lib/ti/chart-line-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiChartLineOutline extends React.Component { } +declare class TiChartLineOutline extends React.Component { } +export = TiChartLineOutline; diff --git a/types/react-icons/lib/ti/chart-line.d.ts b/types/react-icons/lib/ti/chart-line.d.ts index be581f2b53..15f6f776e9 100644 --- a/types/react-icons/lib/ti/chart-line.d.ts +++ b/types/react-icons/lib/ti/chart-line.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiChartLine extends React.Component { } +declare class TiChartLine extends React.Component { } +export = TiChartLine; diff --git a/types/react-icons/lib/ti/chart-pie-outline.d.ts b/types/react-icons/lib/ti/chart-pie-outline.d.ts index 449d799a79..556c2055ff 100644 --- a/types/react-icons/lib/ti/chart-pie-outline.d.ts +++ b/types/react-icons/lib/ti/chart-pie-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiChartPieOutline extends React.Component { } +declare class TiChartPieOutline extends React.Component { } +export = TiChartPieOutline; diff --git a/types/react-icons/lib/ti/chart-pie.d.ts b/types/react-icons/lib/ti/chart-pie.d.ts index 5a641290fb..98481fb073 100644 --- a/types/react-icons/lib/ti/chart-pie.d.ts +++ b/types/react-icons/lib/ti/chart-pie.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiChartPie extends React.Component { } +declare class TiChartPie extends React.Component { } +export = TiChartPie; diff --git a/types/react-icons/lib/ti/chevron-left-outline.d.ts b/types/react-icons/lib/ti/chevron-left-outline.d.ts index 38ad9ab531..186347dc7c 100644 --- a/types/react-icons/lib/ti/chevron-left-outline.d.ts +++ b/types/react-icons/lib/ti/chevron-left-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiChevronLeftOutline extends React.Component { } +declare class TiChevronLeftOutline extends React.Component { } +export = TiChevronLeftOutline; diff --git a/types/react-icons/lib/ti/chevron-left.d.ts b/types/react-icons/lib/ti/chevron-left.d.ts index d6a3e7286c..ed66b40517 100644 --- a/types/react-icons/lib/ti/chevron-left.d.ts +++ b/types/react-icons/lib/ti/chevron-left.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiChevronLeft extends React.Component { } +declare class TiChevronLeft extends React.Component { } +export = TiChevronLeft; diff --git a/types/react-icons/lib/ti/chevron-right-outline.d.ts b/types/react-icons/lib/ti/chevron-right-outline.d.ts index 09cc6370fd..f07fdf42a0 100644 --- a/types/react-icons/lib/ti/chevron-right-outline.d.ts +++ b/types/react-icons/lib/ti/chevron-right-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiChevronRightOutline extends React.Component { } +declare class TiChevronRightOutline extends React.Component { } +export = TiChevronRightOutline; diff --git a/types/react-icons/lib/ti/chevron-right.d.ts b/types/react-icons/lib/ti/chevron-right.d.ts index 311697c66a..7241aad18d 100644 --- a/types/react-icons/lib/ti/chevron-right.d.ts +++ b/types/react-icons/lib/ti/chevron-right.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiChevronRight extends React.Component { } +declare class TiChevronRight extends React.Component { } +export = TiChevronRight; diff --git a/types/react-icons/lib/ti/clipboard.d.ts b/types/react-icons/lib/ti/clipboard.d.ts index cce73b1bc7..62288a86d3 100644 --- a/types/react-icons/lib/ti/clipboard.d.ts +++ b/types/react-icons/lib/ti/clipboard.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiClipboard extends React.Component { } +declare class TiClipboard extends React.Component { } +export = TiClipboard; diff --git a/types/react-icons/lib/ti/cloud-storage-outline.d.ts b/types/react-icons/lib/ti/cloud-storage-outline.d.ts index d36a07cdb6..64b3ac5957 100644 --- a/types/react-icons/lib/ti/cloud-storage-outline.d.ts +++ b/types/react-icons/lib/ti/cloud-storage-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiCloudStorageOutline extends React.Component { } +declare class TiCloudStorageOutline extends React.Component { } +export = TiCloudStorageOutline; diff --git a/types/react-icons/lib/ti/cloud-storage.d.ts b/types/react-icons/lib/ti/cloud-storage.d.ts index 45142999f9..0d31048b85 100644 --- a/types/react-icons/lib/ti/cloud-storage.d.ts +++ b/types/react-icons/lib/ti/cloud-storage.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiCloudStorage extends React.Component { } +declare class TiCloudStorage extends React.Component { } +export = TiCloudStorage; diff --git a/types/react-icons/lib/ti/code-outline.d.ts b/types/react-icons/lib/ti/code-outline.d.ts index f7c2eec174..21dbe7a108 100644 --- a/types/react-icons/lib/ti/code-outline.d.ts +++ b/types/react-icons/lib/ti/code-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiCodeOutline extends React.Component { } +declare class TiCodeOutline extends React.Component { } +export = TiCodeOutline; diff --git a/types/react-icons/lib/ti/code.d.ts b/types/react-icons/lib/ti/code.d.ts index e6bf302269..4c23671d20 100644 --- a/types/react-icons/lib/ti/code.d.ts +++ b/types/react-icons/lib/ti/code.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiCode extends React.Component { } +declare class TiCode extends React.Component { } +export = TiCode; diff --git a/types/react-icons/lib/ti/coffee.d.ts b/types/react-icons/lib/ti/coffee.d.ts index df3aa18694..af57c5d5ee 100644 --- a/types/react-icons/lib/ti/coffee.d.ts +++ b/types/react-icons/lib/ti/coffee.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiCoffee extends React.Component { } +declare class TiCoffee extends React.Component { } +export = TiCoffee; diff --git a/types/react-icons/lib/ti/cog-outline.d.ts b/types/react-icons/lib/ti/cog-outline.d.ts index 40c76991c5..9d528d69a6 100644 --- a/types/react-icons/lib/ti/cog-outline.d.ts +++ b/types/react-icons/lib/ti/cog-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiCogOutline extends React.Component { } +declare class TiCogOutline extends React.Component { } +export = TiCogOutline; diff --git a/types/react-icons/lib/ti/cog.d.ts b/types/react-icons/lib/ti/cog.d.ts index 24573b9291..5f93130bf6 100644 --- a/types/react-icons/lib/ti/cog.d.ts +++ b/types/react-icons/lib/ti/cog.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiCog extends React.Component { } +declare class TiCog extends React.Component { } +export = TiCog; diff --git a/types/react-icons/lib/ti/compass.d.ts b/types/react-icons/lib/ti/compass.d.ts index 54c70bee8b..82578c6f74 100644 --- a/types/react-icons/lib/ti/compass.d.ts +++ b/types/react-icons/lib/ti/compass.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiCompass extends React.Component { } +declare class TiCompass extends React.Component { } +export = TiCompass; diff --git a/types/react-icons/lib/ti/contacts.d.ts b/types/react-icons/lib/ti/contacts.d.ts index f780e8ca9c..0637be6296 100644 --- a/types/react-icons/lib/ti/contacts.d.ts +++ b/types/react-icons/lib/ti/contacts.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiContacts extends React.Component { } +declare class TiContacts extends React.Component { } +export = TiContacts; diff --git a/types/react-icons/lib/ti/credit-card.d.ts b/types/react-icons/lib/ti/credit-card.d.ts index 2f05b56233..42f823b564 100644 --- a/types/react-icons/lib/ti/credit-card.d.ts +++ b/types/react-icons/lib/ti/credit-card.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiCreditCard extends React.Component { } +declare class TiCreditCard extends React.Component { } +export = TiCreditCard; diff --git a/types/react-icons/lib/ti/cross.d.ts b/types/react-icons/lib/ti/cross.d.ts index 5af003cf93..4243dc886f 100644 --- a/types/react-icons/lib/ti/cross.d.ts +++ b/types/react-icons/lib/ti/cross.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiCross extends React.Component { } +declare class TiCross extends React.Component { } +export = TiCross; diff --git a/types/react-icons/lib/ti/css3.d.ts b/types/react-icons/lib/ti/css3.d.ts index 00e79bcbce..32febf6f6b 100644 --- a/types/react-icons/lib/ti/css3.d.ts +++ b/types/react-icons/lib/ti/css3.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiCss3 extends React.Component { } +declare class TiCss3 extends React.Component { } +export = TiCss3; diff --git a/types/react-icons/lib/ti/database.d.ts b/types/react-icons/lib/ti/database.d.ts index 65dccc441f..68373db2cf 100644 --- a/types/react-icons/lib/ti/database.d.ts +++ b/types/react-icons/lib/ti/database.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiDatabase extends React.Component { } +declare class TiDatabase extends React.Component { } +export = TiDatabase; diff --git a/types/react-icons/lib/ti/delete-outline.d.ts b/types/react-icons/lib/ti/delete-outline.d.ts index bf27aa49f9..04cd5ed456 100644 --- a/types/react-icons/lib/ti/delete-outline.d.ts +++ b/types/react-icons/lib/ti/delete-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiDeleteOutline extends React.Component { } +declare class TiDeleteOutline extends React.Component { } +export = TiDeleteOutline; diff --git a/types/react-icons/lib/ti/delete.d.ts b/types/react-icons/lib/ti/delete.d.ts index 57791a71ab..8979d845c3 100644 --- a/types/react-icons/lib/ti/delete.d.ts +++ b/types/react-icons/lib/ti/delete.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiDelete extends React.Component { } +declare class TiDelete extends React.Component { } +export = TiDelete; diff --git a/types/react-icons/lib/ti/device-desktop.d.ts b/types/react-icons/lib/ti/device-desktop.d.ts index d405810142..e4243a2c7e 100644 --- a/types/react-icons/lib/ti/device-desktop.d.ts +++ b/types/react-icons/lib/ti/device-desktop.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiDeviceDesktop extends React.Component { } +declare class TiDeviceDesktop extends React.Component { } +export = TiDeviceDesktop; diff --git a/types/react-icons/lib/ti/device-laptop.d.ts b/types/react-icons/lib/ti/device-laptop.d.ts index dada29c74f..09b5e11260 100644 --- a/types/react-icons/lib/ti/device-laptop.d.ts +++ b/types/react-icons/lib/ti/device-laptop.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiDeviceLaptop extends React.Component { } +declare class TiDeviceLaptop extends React.Component { } +export = TiDeviceLaptop; diff --git a/types/react-icons/lib/ti/device-phone.d.ts b/types/react-icons/lib/ti/device-phone.d.ts index 977cf3f0f1..4f926184c3 100644 --- a/types/react-icons/lib/ti/device-phone.d.ts +++ b/types/react-icons/lib/ti/device-phone.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiDevicePhone extends React.Component { } +declare class TiDevicePhone extends React.Component { } +export = TiDevicePhone; diff --git a/types/react-icons/lib/ti/device-tablet.d.ts b/types/react-icons/lib/ti/device-tablet.d.ts index 06a9e07cca..6a3a636ca0 100644 --- a/types/react-icons/lib/ti/device-tablet.d.ts +++ b/types/react-icons/lib/ti/device-tablet.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiDeviceTablet extends React.Component { } +declare class TiDeviceTablet extends React.Component { } +export = TiDeviceTablet; diff --git a/types/react-icons/lib/ti/directions.d.ts b/types/react-icons/lib/ti/directions.d.ts index 3be0928f95..f7cc86becb 100644 --- a/types/react-icons/lib/ti/directions.d.ts +++ b/types/react-icons/lib/ti/directions.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiDirections extends React.Component { } +declare class TiDirections extends React.Component { } +export = TiDirections; diff --git a/types/react-icons/lib/ti/divide-outline.d.ts b/types/react-icons/lib/ti/divide-outline.d.ts index 9b30f64d2d..e19ab3654b 100644 --- a/types/react-icons/lib/ti/divide-outline.d.ts +++ b/types/react-icons/lib/ti/divide-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiDivideOutline extends React.Component { } +declare class TiDivideOutline extends React.Component { } +export = TiDivideOutline; diff --git a/types/react-icons/lib/ti/divide.d.ts b/types/react-icons/lib/ti/divide.d.ts index 375a79b628..c82f0439fe 100644 --- a/types/react-icons/lib/ti/divide.d.ts +++ b/types/react-icons/lib/ti/divide.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiDivide extends React.Component { } +declare class TiDivide extends React.Component { } +export = TiDivide; diff --git a/types/react-icons/lib/ti/document-add.d.ts b/types/react-icons/lib/ti/document-add.d.ts index 0b2ed20d5c..68bc331e15 100644 --- a/types/react-icons/lib/ti/document-add.d.ts +++ b/types/react-icons/lib/ti/document-add.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiDocumentAdd extends React.Component { } +declare class TiDocumentAdd extends React.Component { } +export = TiDocumentAdd; diff --git a/types/react-icons/lib/ti/document-delete.d.ts b/types/react-icons/lib/ti/document-delete.d.ts index 916608ade9..a3d444052e 100644 --- a/types/react-icons/lib/ti/document-delete.d.ts +++ b/types/react-icons/lib/ti/document-delete.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiDocumentDelete extends React.Component { } +declare class TiDocumentDelete extends React.Component { } +export = TiDocumentDelete; diff --git a/types/react-icons/lib/ti/document-text.d.ts b/types/react-icons/lib/ti/document-text.d.ts index c3af80ad89..3cad0fe733 100644 --- a/types/react-icons/lib/ti/document-text.d.ts +++ b/types/react-icons/lib/ti/document-text.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiDocumentText extends React.Component { } +declare class TiDocumentText extends React.Component { } +export = TiDocumentText; diff --git a/types/react-icons/lib/ti/document.d.ts b/types/react-icons/lib/ti/document.d.ts index 60ace2ba35..749a51cde8 100644 --- a/types/react-icons/lib/ti/document.d.ts +++ b/types/react-icons/lib/ti/document.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiDocument extends React.Component { } +declare class TiDocument extends React.Component { } +export = TiDocument; diff --git a/types/react-icons/lib/ti/download-outline.d.ts b/types/react-icons/lib/ti/download-outline.d.ts index b405ad061c..cc0849bce2 100644 --- a/types/react-icons/lib/ti/download-outline.d.ts +++ b/types/react-icons/lib/ti/download-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiDownloadOutline extends React.Component { } +declare class TiDownloadOutline extends React.Component { } +export = TiDownloadOutline; diff --git a/types/react-icons/lib/ti/download.d.ts b/types/react-icons/lib/ti/download.d.ts index 6cf13f385b..6563ae7a26 100644 --- a/types/react-icons/lib/ti/download.d.ts +++ b/types/react-icons/lib/ti/download.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiDownload extends React.Component { } +declare class TiDownload extends React.Component { } +export = TiDownload; diff --git a/types/react-icons/lib/ti/dropbox.d.ts b/types/react-icons/lib/ti/dropbox.d.ts index 000560becf..8850b30638 100644 --- a/types/react-icons/lib/ti/dropbox.d.ts +++ b/types/react-icons/lib/ti/dropbox.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiDropbox extends React.Component { } +declare class TiDropbox extends React.Component { } +export = TiDropbox; diff --git a/types/react-icons/lib/ti/edit.d.ts b/types/react-icons/lib/ti/edit.d.ts index 7a937ccd2a..cb3548a8d7 100644 --- a/types/react-icons/lib/ti/edit.d.ts +++ b/types/react-icons/lib/ti/edit.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiEdit extends React.Component { } +declare class TiEdit extends React.Component { } +export = TiEdit; diff --git a/types/react-icons/lib/ti/eject-outline.d.ts b/types/react-icons/lib/ti/eject-outline.d.ts index be15038312..995b0223ed 100644 --- a/types/react-icons/lib/ti/eject-outline.d.ts +++ b/types/react-icons/lib/ti/eject-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiEjectOutline extends React.Component { } +declare class TiEjectOutline extends React.Component { } +export = TiEjectOutline; diff --git a/types/react-icons/lib/ti/eject.d.ts b/types/react-icons/lib/ti/eject.d.ts index 3ad5cda1c4..ce559832ff 100644 --- a/types/react-icons/lib/ti/eject.d.ts +++ b/types/react-icons/lib/ti/eject.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiEject extends React.Component { } +declare class TiEject extends React.Component { } +export = TiEject; diff --git a/types/react-icons/lib/ti/equals-outline.d.ts b/types/react-icons/lib/ti/equals-outline.d.ts index 04e77346cc..838e47165e 100644 --- a/types/react-icons/lib/ti/equals-outline.d.ts +++ b/types/react-icons/lib/ti/equals-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiEqualsOutline extends React.Component { } +declare class TiEqualsOutline extends React.Component { } +export = TiEqualsOutline; diff --git a/types/react-icons/lib/ti/equals.d.ts b/types/react-icons/lib/ti/equals.d.ts index 231585549c..9b4f2fabeb 100644 --- a/types/react-icons/lib/ti/equals.d.ts +++ b/types/react-icons/lib/ti/equals.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiEquals extends React.Component { } +declare class TiEquals extends React.Component { } +export = TiEquals; diff --git a/types/react-icons/lib/ti/export-outline.d.ts b/types/react-icons/lib/ti/export-outline.d.ts index 4d51c29d1a..ba24ea3d30 100644 --- a/types/react-icons/lib/ti/export-outline.d.ts +++ b/types/react-icons/lib/ti/export-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiExportOutline extends React.Component { } +declare class TiExportOutline extends React.Component { } +export = TiExportOutline; diff --git a/types/react-icons/lib/ti/export.d.ts b/types/react-icons/lib/ti/export.d.ts index fe71d72677..62d2335260 100644 --- a/types/react-icons/lib/ti/export.d.ts +++ b/types/react-icons/lib/ti/export.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiExport extends React.Component { } +declare class TiExport extends React.Component { } +export = TiExport; diff --git a/types/react-icons/lib/ti/eye-outline.d.ts b/types/react-icons/lib/ti/eye-outline.d.ts index 1956f13f4d..201e798391 100644 --- a/types/react-icons/lib/ti/eye-outline.d.ts +++ b/types/react-icons/lib/ti/eye-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiEyeOutline extends React.Component { } +declare class TiEyeOutline extends React.Component { } +export = TiEyeOutline; diff --git a/types/react-icons/lib/ti/eye.d.ts b/types/react-icons/lib/ti/eye.d.ts index 810fdf7009..0c6a684b88 100644 --- a/types/react-icons/lib/ti/eye.d.ts +++ b/types/react-icons/lib/ti/eye.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiEye extends React.Component { } +declare class TiEye extends React.Component { } +export = TiEye; diff --git a/types/react-icons/lib/ti/feather.d.ts b/types/react-icons/lib/ti/feather.d.ts index b4a99ba3ec..4e6c4e1080 100644 --- a/types/react-icons/lib/ti/feather.d.ts +++ b/types/react-icons/lib/ti/feather.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiFeather extends React.Component { } +declare class TiFeather extends React.Component { } +export = TiFeather; diff --git a/types/react-icons/lib/ti/film.d.ts b/types/react-icons/lib/ti/film.d.ts index a035c6378d..f039b84056 100644 --- a/types/react-icons/lib/ti/film.d.ts +++ b/types/react-icons/lib/ti/film.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiFilm extends React.Component { } +declare class TiFilm extends React.Component { } +export = TiFilm; diff --git a/types/react-icons/lib/ti/filter.d.ts b/types/react-icons/lib/ti/filter.d.ts index f806a9034b..9e42eece1f 100644 --- a/types/react-icons/lib/ti/filter.d.ts +++ b/types/react-icons/lib/ti/filter.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiFilter extends React.Component { } +declare class TiFilter extends React.Component { } +export = TiFilter; diff --git a/types/react-icons/lib/ti/flag-outline.d.ts b/types/react-icons/lib/ti/flag-outline.d.ts index 164b221757..64a4c81bdd 100644 --- a/types/react-icons/lib/ti/flag-outline.d.ts +++ b/types/react-icons/lib/ti/flag-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiFlagOutline extends React.Component { } +declare class TiFlagOutline extends React.Component { } +export = TiFlagOutline; diff --git a/types/react-icons/lib/ti/flag.d.ts b/types/react-icons/lib/ti/flag.d.ts index 4aa2838c02..dab92b561d 100644 --- a/types/react-icons/lib/ti/flag.d.ts +++ b/types/react-icons/lib/ti/flag.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiFlag extends React.Component { } +declare class TiFlag extends React.Component { } +export = TiFlag; diff --git a/types/react-icons/lib/ti/flash-outline.d.ts b/types/react-icons/lib/ti/flash-outline.d.ts index 5acea29381..8889cf52ba 100644 --- a/types/react-icons/lib/ti/flash-outline.d.ts +++ b/types/react-icons/lib/ti/flash-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiFlashOutline extends React.Component { } +declare class TiFlashOutline extends React.Component { } +export = TiFlashOutline; diff --git a/types/react-icons/lib/ti/flash.d.ts b/types/react-icons/lib/ti/flash.d.ts index 27bbe63a9d..15a2371754 100644 --- a/types/react-icons/lib/ti/flash.d.ts +++ b/types/react-icons/lib/ti/flash.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiFlash extends React.Component { } +declare class TiFlash extends React.Component { } +export = TiFlash; diff --git a/types/react-icons/lib/ti/flow-children.d.ts b/types/react-icons/lib/ti/flow-children.d.ts index 8e3a8a9246..f46b1c165a 100644 --- a/types/react-icons/lib/ti/flow-children.d.ts +++ b/types/react-icons/lib/ti/flow-children.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiFlowChildren extends React.Component { } +declare class TiFlowChildren extends React.Component { } +export = TiFlowChildren; diff --git a/types/react-icons/lib/ti/flow-merge.d.ts b/types/react-icons/lib/ti/flow-merge.d.ts index c479b08b53..05a81557f6 100644 --- a/types/react-icons/lib/ti/flow-merge.d.ts +++ b/types/react-icons/lib/ti/flow-merge.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiFlowMerge extends React.Component { } +declare class TiFlowMerge extends React.Component { } +export = TiFlowMerge; diff --git a/types/react-icons/lib/ti/flow-parallel.d.ts b/types/react-icons/lib/ti/flow-parallel.d.ts index 4ed94844fc..fa1cd1c5e7 100644 --- a/types/react-icons/lib/ti/flow-parallel.d.ts +++ b/types/react-icons/lib/ti/flow-parallel.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiFlowParallel extends React.Component { } +declare class TiFlowParallel extends React.Component { } +export = TiFlowParallel; diff --git a/types/react-icons/lib/ti/flow-switch.d.ts b/types/react-icons/lib/ti/flow-switch.d.ts index 8a68f856fa..a8930e363e 100644 --- a/types/react-icons/lib/ti/flow-switch.d.ts +++ b/types/react-icons/lib/ti/flow-switch.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiFlowSwitch extends React.Component { } +declare class TiFlowSwitch extends React.Component { } +export = TiFlowSwitch; diff --git a/types/react-icons/lib/ti/folder-add.d.ts b/types/react-icons/lib/ti/folder-add.d.ts index 83a709521a..82ec1b52ef 100644 --- a/types/react-icons/lib/ti/folder-add.d.ts +++ b/types/react-icons/lib/ti/folder-add.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiFolderAdd extends React.Component { } +declare class TiFolderAdd extends React.Component { } +export = TiFolderAdd; diff --git a/types/react-icons/lib/ti/folder-delete.d.ts b/types/react-icons/lib/ti/folder-delete.d.ts index bf96e60c12..5792a710ef 100644 --- a/types/react-icons/lib/ti/folder-delete.d.ts +++ b/types/react-icons/lib/ti/folder-delete.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiFolderDelete extends React.Component { } +declare class TiFolderDelete extends React.Component { } +export = TiFolderDelete; diff --git a/types/react-icons/lib/ti/folder-open.d.ts b/types/react-icons/lib/ti/folder-open.d.ts index 3c0f2ab47f..3cc472d927 100644 --- a/types/react-icons/lib/ti/folder-open.d.ts +++ b/types/react-icons/lib/ti/folder-open.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiFolderOpen extends React.Component { } +declare class TiFolderOpen extends React.Component { } +export = TiFolderOpen; diff --git a/types/react-icons/lib/ti/folder.d.ts b/types/react-icons/lib/ti/folder.d.ts index b12e97b6c3..2adf29f6cb 100644 --- a/types/react-icons/lib/ti/folder.d.ts +++ b/types/react-icons/lib/ti/folder.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiFolder extends React.Component { } +declare class TiFolder extends React.Component { } +export = TiFolder; diff --git a/types/react-icons/lib/ti/gift.d.ts b/types/react-icons/lib/ti/gift.d.ts index 25e13a5038..adf2047b6e 100644 --- a/types/react-icons/lib/ti/gift.d.ts +++ b/types/react-icons/lib/ti/gift.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiGift extends React.Component { } +declare class TiGift extends React.Component { } +export = TiGift; diff --git a/types/react-icons/lib/ti/globe-outline.d.ts b/types/react-icons/lib/ti/globe-outline.d.ts index ee4d8cbb6b..9fbd792aa0 100644 --- a/types/react-icons/lib/ti/globe-outline.d.ts +++ b/types/react-icons/lib/ti/globe-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiGlobeOutline extends React.Component { } +declare class TiGlobeOutline extends React.Component { } +export = TiGlobeOutline; diff --git a/types/react-icons/lib/ti/globe.d.ts b/types/react-icons/lib/ti/globe.d.ts index 30912a9f17..65fcd995e4 100644 --- a/types/react-icons/lib/ti/globe.d.ts +++ b/types/react-icons/lib/ti/globe.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiGlobe extends React.Component { } +declare class TiGlobe extends React.Component { } +export = TiGlobe; diff --git a/types/react-icons/lib/ti/group-outline.d.ts b/types/react-icons/lib/ti/group-outline.d.ts index 621001d90e..ca11421d20 100644 --- a/types/react-icons/lib/ti/group-outline.d.ts +++ b/types/react-icons/lib/ti/group-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiGroupOutline extends React.Component { } +declare class TiGroupOutline extends React.Component { } +export = TiGroupOutline; diff --git a/types/react-icons/lib/ti/group.d.ts b/types/react-icons/lib/ti/group.d.ts index bb5fcf8559..ee7b592305 100644 --- a/types/react-icons/lib/ti/group.d.ts +++ b/types/react-icons/lib/ti/group.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiGroup extends React.Component { } +declare class TiGroup extends React.Component { } +export = TiGroup; diff --git a/types/react-icons/lib/ti/headphones.d.ts b/types/react-icons/lib/ti/headphones.d.ts index 90fb1a083f..372afd24ba 100644 --- a/types/react-icons/lib/ti/headphones.d.ts +++ b/types/react-icons/lib/ti/headphones.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiHeadphones extends React.Component { } +declare class TiHeadphones extends React.Component { } +export = TiHeadphones; diff --git a/types/react-icons/lib/ti/heart-full-outline.d.ts b/types/react-icons/lib/ti/heart-full-outline.d.ts index 8153a02133..959500f330 100644 --- a/types/react-icons/lib/ti/heart-full-outline.d.ts +++ b/types/react-icons/lib/ti/heart-full-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiHeartFullOutline extends React.Component { } +declare class TiHeartFullOutline extends React.Component { } +export = TiHeartFullOutline; diff --git a/types/react-icons/lib/ti/heart-half-outline.d.ts b/types/react-icons/lib/ti/heart-half-outline.d.ts index 9d7482079f..d071493105 100644 --- a/types/react-icons/lib/ti/heart-half-outline.d.ts +++ b/types/react-icons/lib/ti/heart-half-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiHeartHalfOutline extends React.Component { } +declare class TiHeartHalfOutline extends React.Component { } +export = TiHeartHalfOutline; diff --git a/types/react-icons/lib/ti/heart-outline.d.ts b/types/react-icons/lib/ti/heart-outline.d.ts index 77ebb5ba4d..dc19876c98 100644 --- a/types/react-icons/lib/ti/heart-outline.d.ts +++ b/types/react-icons/lib/ti/heart-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiHeartOutline extends React.Component { } +declare class TiHeartOutline extends React.Component { } +export = TiHeartOutline; diff --git a/types/react-icons/lib/ti/heart.d.ts b/types/react-icons/lib/ti/heart.d.ts index edf26ea22d..1c16a9e4d7 100644 --- a/types/react-icons/lib/ti/heart.d.ts +++ b/types/react-icons/lib/ti/heart.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiHeart extends React.Component { } +declare class TiHeart extends React.Component { } +export = TiHeart; diff --git a/types/react-icons/lib/ti/home-outline.d.ts b/types/react-icons/lib/ti/home-outline.d.ts index aba8177146..c8caac4085 100644 --- a/types/react-icons/lib/ti/home-outline.d.ts +++ b/types/react-icons/lib/ti/home-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiHomeOutline extends React.Component { } +declare class TiHomeOutline extends React.Component { } +export = TiHomeOutline; diff --git a/types/react-icons/lib/ti/home.d.ts b/types/react-icons/lib/ti/home.d.ts index ffd2e0a744..0f26a83396 100644 --- a/types/react-icons/lib/ti/home.d.ts +++ b/types/react-icons/lib/ti/home.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiHome extends React.Component { } +declare class TiHome extends React.Component { } +export = TiHome; diff --git a/types/react-icons/lib/ti/html5.d.ts b/types/react-icons/lib/ti/html5.d.ts index 7850028128..9e3002c65e 100644 --- a/types/react-icons/lib/ti/html5.d.ts +++ b/types/react-icons/lib/ti/html5.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiHtml5 extends React.Component { } +declare class TiHtml5 extends React.Component { } +export = TiHtml5; diff --git a/types/react-icons/lib/ti/image-outline.d.ts b/types/react-icons/lib/ti/image-outline.d.ts index e8dabff924..478d9a15e4 100644 --- a/types/react-icons/lib/ti/image-outline.d.ts +++ b/types/react-icons/lib/ti/image-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiImageOutline extends React.Component { } +declare class TiImageOutline extends React.Component { } +export = TiImageOutline; diff --git a/types/react-icons/lib/ti/image.d.ts b/types/react-icons/lib/ti/image.d.ts index f33b613d66..abe02ba9d1 100644 --- a/types/react-icons/lib/ti/image.d.ts +++ b/types/react-icons/lib/ti/image.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiImage extends React.Component { } +declare class TiImage extends React.Component { } +export = TiImage; diff --git a/types/react-icons/lib/ti/index.d.ts b/types/react-icons/lib/ti/index.d.ts index bbe2809f2e..42e1bff681 100644 --- a/types/react-icons/lib/ti/index.d.ts +++ b/types/react-icons/lib/ti/index.d.ts @@ -1,339 +1,339 @@ -export { default as TiAdjustBrightness } from "./adjust-brightness"; -export { default as TiAdjustContrast } from "./adjust-contrast"; -export { default as TiAnchorOutline } from "./anchor-outline"; -export { default as TiAnchor } from "./anchor"; -export { default as TiArchive } from "./archive"; -export { default as TiArrowBackOutline } from "./arrow-back-outline"; -export { default as TiArrowBack } from "./arrow-back"; -export { default as TiArrowDownOutline } from "./arrow-down-outline"; -export { default as TiArrowDownThick } from "./arrow-down-thick"; -export { default as TiArrowDown } from "./arrow-down"; -export { default as TiArrowForwardOutline } from "./arrow-forward-outline"; -export { default as TiArrowForward } from "./arrow-forward"; -export { default as TiArrowLeftOutline } from "./arrow-left-outline"; -export { default as TiArrowLeftThick } from "./arrow-left-thick"; -export { default as TiArrowLeft } from "./arrow-left"; -export { default as TiArrowLoopOutline } from "./arrow-loop-outline"; -export { default as TiArrowLoop } from "./arrow-loop"; -export { default as TiArrowMaximiseOutline } from "./arrow-maximise-outline"; -export { default as TiArrowMaximise } from "./arrow-maximise"; -export { default as TiArrowMinimiseOutline } from "./arrow-minimise-outline"; -export { default as TiArrowMinimise } from "./arrow-minimise"; -export { default as TiArrowMoveOutline } from "./arrow-move-outline"; -export { default as TiArrowMove } from "./arrow-move"; -export { default as TiArrowRepeatOutline } from "./arrow-repeat-outline"; -export { default as TiArrowRepeat } from "./arrow-repeat"; -export { default as TiArrowRightOutline } from "./arrow-right-outline"; -export { default as TiArrowRightThick } from "./arrow-right-thick"; -export { default as TiArrowRight } from "./arrow-right"; -export { default as TiArrowShuffle } from "./arrow-shuffle"; -export { default as TiArrowSortedDown } from "./arrow-sorted-down"; -export { default as TiArrowSortedUp } from "./arrow-sorted-up"; -export { default as TiArrowSyncOutline } from "./arrow-sync-outline"; -export { default as TiArrowSync } from "./arrow-sync"; -export { default as TiArrowUnsorted } from "./arrow-unsorted"; -export { default as TiArrowUpOutline } from "./arrow-up-outline"; -export { default as TiArrowUpThick } from "./arrow-up-thick"; -export { default as TiArrowUp } from "./arrow-up"; -export { default as TiAt } from "./at"; -export { default as TiAttachmentOutline } from "./attachment-outline"; -export { default as TiAttachment } from "./attachment"; -export { default as TiBackspaceOutline } from "./backspace-outline"; -export { default as TiBackspace } from "./backspace"; -export { default as TiBatteryCharge } from "./battery-charge"; -export { default as TiBatteryFull } from "./battery-full"; -export { default as TiBatteryHigh } from "./battery-high"; -export { default as TiBatteryLow } from "./battery-low"; -export { default as TiBatteryMid } from "./battery-mid"; -export { default as TiBeaker } from "./beaker"; -export { default as TiBeer } from "./beer"; -export { default as TiBell } from "./bell"; -export { default as TiBook } from "./book"; -export { default as TiBookmark } from "./bookmark"; -export { default as TiBriefcase } from "./briefcase"; -export { default as TiBrush } from "./brush"; -export { default as TiBusinessCard } from "./business-card"; -export { default as TiCalculator } from "./calculator"; -export { default as TiCalendarOutline } from "./calendar-outline"; -export { default as TiCalendar } from "./calendar"; -export { default as TiCalenderOutline } from "./calender-outline"; -export { default as TiCalender } from "./calender"; -export { default as TiCameraOutline } from "./camera-outline"; -export { default as TiCamera } from "./camera"; -export { default as TiCancelOutline } from "./cancel-outline"; -export { default as TiCancel } from "./cancel"; -export { default as TiChartAreaOutline } from "./chart-area-outline"; -export { default as TiChartArea } from "./chart-area"; -export { default as TiChartBarOutline } from "./chart-bar-outline"; -export { default as TiChartBar } from "./chart-bar"; -export { default as TiChartLineOutline } from "./chart-line-outline"; -export { default as TiChartLine } from "./chart-line"; -export { default as TiChartPieOutline } from "./chart-pie-outline"; -export { default as TiChartPie } from "./chart-pie"; -export { default as TiChevronLeftOutline } from "./chevron-left-outline"; -export { default as TiChevronLeft } from "./chevron-left"; -export { default as TiChevronRightOutline } from "./chevron-right-outline"; -export { default as TiChevronRight } from "./chevron-right"; -export { default as TiClipboard } from "./clipboard"; -export { default as TiCloudStorageOutline } from "./cloud-storage-outline"; -export { default as TiCloudStorage } from "./cloud-storage"; -export { default as TiCodeOutline } from "./code-outline"; -export { default as TiCode } from "./code"; -export { default as TiCoffee } from "./coffee"; -export { default as TiCogOutline } from "./cog-outline"; -export { default as TiCog } from "./cog"; -export { default as TiCompass } from "./compass"; -export { default as TiContacts } from "./contacts"; -export { default as TiCreditCard } from "./credit-card"; -export { default as TiCross } from "./cross"; -export { default as TiCss3 } from "./css3"; -export { default as TiDatabase } from "./database"; -export { default as TiDeleteOutline } from "./delete-outline"; -export { default as TiDelete } from "./delete"; -export { default as TiDeviceDesktop } from "./device-desktop"; -export { default as TiDeviceLaptop } from "./device-laptop"; -export { default as TiDevicePhone } from "./device-phone"; -export { default as TiDeviceTablet } from "./device-tablet"; -export { default as TiDirections } from "./directions"; -export { default as TiDivideOutline } from "./divide-outline"; -export { default as TiDivide } from "./divide"; -export { default as TiDocumentAdd } from "./document-add"; -export { default as TiDocumentDelete } from "./document-delete"; -export { default as TiDocumentText } from "./document-text"; -export { default as TiDocument } from "./document"; -export { default as TiDownloadOutline } from "./download-outline"; -export { default as TiDownload } from "./download"; -export { default as TiDropbox } from "./dropbox"; -export { default as TiEdit } from "./edit"; -export { default as TiEjectOutline } from "./eject-outline"; -export { default as TiEject } from "./eject"; -export { default as TiEqualsOutline } from "./equals-outline"; -export { default as TiEquals } from "./equals"; -export { default as TiExportOutline } from "./export-outline"; -export { default as TiExport } from "./export"; -export { default as TiEyeOutline } from "./eye-outline"; -export { default as TiEye } from "./eye"; -export { default as TiFeather } from "./feather"; -export { default as TiFilm } from "./film"; -export { default as TiFilter } from "./filter"; -export { default as TiFlagOutline } from "./flag-outline"; -export { default as TiFlag } from "./flag"; -export { default as TiFlashOutline } from "./flash-outline"; -export { default as TiFlash } from "./flash"; -export { default as TiFlowChildren } from "./flow-children"; -export { default as TiFlowMerge } from "./flow-merge"; -export { default as TiFlowParallel } from "./flow-parallel"; -export { default as TiFlowSwitch } from "./flow-switch"; -export { default as TiFolderAdd } from "./folder-add"; -export { default as TiFolderDelete } from "./folder-delete"; -export { default as TiFolderOpen } from "./folder-open"; -export { default as TiFolder } from "./folder"; -export { default as TiGift } from "./gift"; -export { default as TiGlobeOutline } from "./globe-outline"; -export { default as TiGlobe } from "./globe"; -export { default as TiGroupOutline } from "./group-outline"; -export { default as TiGroup } from "./group"; -export { default as TiHeadphones } from "./headphones"; -export { default as TiHeartFullOutline } from "./heart-full-outline"; -export { default as TiHeartHalfOutline } from "./heart-half-outline"; -export { default as TiHeartOutline } from "./heart-outline"; -export { default as TiHeart } from "./heart"; -export { default as TiHomeOutline } from "./home-outline"; -export { default as TiHome } from "./home"; -export { default as TiHtml5 } from "./html5"; -export { default as TiImageOutline } from "./image-outline"; -export { default as TiImage } from "./image"; -export { default as TiInfinityOutline } from "./infinity-outline"; -export { default as TiInfinity } from "./infinity"; -export { default as TiInfoLargeOutline } from "./info-large-outline"; -export { default as TiInfoLarge } from "./info-large"; -export { default as TiInfoOutline } from "./info-outline"; -export { default as TiInfo } from "./info"; -export { default as TiInputCheckedOutline } from "./input-checked-outline"; -export { default as TiInputChecked } from "./input-checked"; -export { default as TiKeyOutline } from "./key-outline"; -export { default as TiKey } from "./key"; -export { default as TiKeyboard } from "./keyboard"; -export { default as TiLeaf } from "./leaf"; -export { default as TiLightbulb } from "./lightbulb"; -export { default as TiLinkOutline } from "./link-outline"; -export { default as TiLink } from "./link"; -export { default as TiLocationArrowOutline } from "./location-arrow-outline"; -export { default as TiLocationArrow } from "./location-arrow"; -export { default as TiLocationOutline } from "./location-outline"; -export { default as TiLocation } from "./location"; -export { default as TiLockClosedOutline } from "./lock-closed-outline"; -export { default as TiLockClosed } from "./lock-closed"; -export { default as TiLockOpenOutline } from "./lock-open-outline"; -export { default as TiLockOpen } from "./lock-open"; -export { default as TiMail } from "./mail"; -export { default as TiMap } from "./map"; -export { default as TiMediaEjectOutline } from "./media-eject-outline"; -export { default as TiMediaEject } from "./media-eject"; -export { default as TiMediaFastForwardOutline } from "./media-fast-forward-outline"; -export { default as TiMediaFastForward } from "./media-fast-forward"; -export { default as TiMediaPauseOutline } from "./media-pause-outline"; -export { default as TiMediaPause } from "./media-pause"; -export { default as TiMediaPlayOutline } from "./media-play-outline"; -export { default as TiMediaPlayReverseOutline } from "./media-play-reverse-outline"; -export { default as TiMediaPlayReverse } from "./media-play-reverse"; -export { default as TiMediaPlay } from "./media-play"; -export { default as TiMediaRecordOutline } from "./media-record-outline"; -export { default as TiMediaRecord } from "./media-record"; -export { default as TiMediaRewindOutline } from "./media-rewind-outline"; -export { default as TiMediaRewind } from "./media-rewind"; -export { default as TiMediaStopOutline } from "./media-stop-outline"; -export { default as TiMediaStop } from "./media-stop"; -export { default as TiMessageTyping } from "./message-typing"; -export { default as TiMessage } from "./message"; -export { default as TiMessages } from "./messages"; -export { default as TiMicrophoneOutline } from "./microphone-outline"; -export { default as TiMicrophone } from "./microphone"; -export { default as TiMinusOutline } from "./minus-outline"; -export { default as TiMinus } from "./minus"; -export { default as TiMortarBoard } from "./mortar-board"; -export { default as TiNews } from "./news"; -export { default as TiNotesOutline } from "./notes-outline"; -export { default as TiNotes } from "./notes"; -export { default as TiPen } from "./pen"; -export { default as TiPencil } from "./pencil"; -export { default as TiPhoneOutline } from "./phone-outline"; -export { default as TiPhone } from "./phone"; -export { default as TiPiOutline } from "./pi-outline"; -export { default as TiPi } from "./pi"; -export { default as TiPinOutline } from "./pin-outline"; -export { default as TiPin } from "./pin"; -export { default as TiPipette } from "./pipette"; -export { default as TiPlaneOutline } from "./plane-outline"; -export { default as TiPlane } from "./plane"; -export { default as TiPlug } from "./plug"; -export { default as TiPlusOutline } from "./plus-outline"; -export { default as TiPlus } from "./plus"; -export { default as TiPointOfInterestOutline } from "./point-of-interest-outline"; -export { default as TiPointOfInterest } from "./point-of-interest"; -export { default as TiPowerOutline } from "./power-outline"; -export { default as TiPower } from "./power"; -export { default as TiPrinter } from "./printer"; -export { default as TiPuzzleOutline } from "./puzzle-outline"; -export { default as TiPuzzle } from "./puzzle"; -export { default as TiRadarOutline } from "./radar-outline"; -export { default as TiRadar } from "./radar"; -export { default as TiRefreshOutline } from "./refresh-outline"; -export { default as TiRefresh } from "./refresh"; -export { default as TiRssOutline } from "./rss-outline"; -export { default as TiRss } from "./rss"; -export { default as TiScissorsOutline } from "./scissors-outline"; -export { default as TiScissors } from "./scissors"; -export { default as TiShoppingBag } from "./shopping-bag"; -export { default as TiShoppingCart } from "./shopping-cart"; -export { default as TiSocialAtCircular } from "./social-at-circular"; -export { default as TiSocialDribbbleCircular } from "./social-dribbble-circular"; -export { default as TiSocialDribbble } from "./social-dribbble"; -export { default as TiSocialFacebookCircular } from "./social-facebook-circular"; -export { default as TiSocialFacebook } from "./social-facebook"; -export { default as TiSocialFlickrCircular } from "./social-flickr-circular"; -export { default as TiSocialFlickr } from "./social-flickr"; -export { default as TiSocialGithubCircular } from "./social-github-circular"; -export { default as TiSocialGithub } from "./social-github"; -export { default as TiSocialGooglePlusCircular } from "./social-google-plus-circular"; -export { default as TiSocialGooglePlus } from "./social-google-plus"; -export { default as TiSocialInstagramCircular } from "./social-instagram-circular"; -export { default as TiSocialInstagram } from "./social-instagram"; -export { default as TiSocialLastFmCircular } from "./social-last-fm-circular"; -export { default as TiSocialLastFm } from "./social-last-fm"; -export { default as TiSocialLinkedinCircular } from "./social-linkedin-circular"; -export { default as TiSocialLinkedin } from "./social-linkedin"; -export { default as TiSocialPinterestCircular } from "./social-pinterest-circular"; -export { default as TiSocialPinterest } from "./social-pinterest"; -export { default as TiSocialSkypeOutline } from "./social-skype-outline"; -export { default as TiSocialSkype } from "./social-skype"; -export { default as TiSocialTumblerCircular } from "./social-tumbler-circular"; -export { default as TiSocialTumbler } from "./social-tumbler"; -export { default as TiSocialTwitterCircular } from "./social-twitter-circular"; -export { default as TiSocialTwitter } from "./social-twitter"; -export { default as TiSocialVimeoCircular } from "./social-vimeo-circular"; -export { default as TiSocialVimeo } from "./social-vimeo"; -export { default as TiSocialYoutubeCircular } from "./social-youtube-circular"; -export { default as TiSocialYoutube } from "./social-youtube"; -export { default as TiSortAlphabeticallyOutline } from "./sort-alphabetically-outline"; -export { default as TiSortAlphabetically } from "./sort-alphabetically"; -export { default as TiSortNumericallyOutline } from "./sort-numerically-outline"; -export { default as TiSortNumerically } from "./sort-numerically"; -export { default as TiSpannerOutline } from "./spanner-outline"; -export { default as TiSpanner } from "./spanner"; -export { default as TiSpiral } from "./spiral"; -export { default as TiStarFullOutline } from "./star-full-outline"; -export { default as TiStarHalfOutline } from "./star-half-outline"; -export { default as TiStarHalf } from "./star-half"; -export { default as TiStarOutline } from "./star-outline"; -export { default as TiStar } from "./star"; -export { default as TiStarburstOutline } from "./starburst-outline"; -export { default as TiStarburst } from "./starburst"; -export { default as TiStopwatch } from "./stopwatch"; -export { default as TiSupport } from "./support"; -export { default as TiTabsOutline } from "./tabs-outline"; -export { default as TiTag } from "./tag"; -export { default as TiTags } from "./tags"; -export { default as TiThLargeOutline } from "./th-large-outline"; -export { default as TiThLarge } from "./th-large"; -export { default as TiThListOutline } from "./th-list-outline"; -export { default as TiThList } from "./th-list"; -export { default as TiThMenuOutline } from "./th-menu-outline"; -export { default as TiThMenu } from "./th-menu"; -export { default as TiThSmallOutline } from "./th-small-outline"; -export { default as TiThSmall } from "./th-small"; -export { default as TiThermometer } from "./thermometer"; -export { default as TiThumbsDown } from "./thumbs-down"; -export { default as TiThumbsOk } from "./thumbs-ok"; -export { default as TiThumbsUp } from "./thumbs-up"; -export { default as TiTickOutline } from "./tick-outline"; -export { default as TiTick } from "./tick"; -export { default as TiTicket } from "./ticket"; -export { default as TiTime } from "./time"; -export { default as TiTimesOutline } from "./times-outline"; -export { default as TiTimes } from "./times"; -export { default as TiTrash } from "./trash"; -export { default as TiTree } from "./tree"; -export { default as TiUploadOutline } from "./upload-outline"; -export { default as TiUpload } from "./upload"; -export { default as TiUserAddOutline } from "./user-add-outline"; -export { default as TiUserAdd } from "./user-add"; -export { default as TiUserDeleteOutline } from "./user-delete-outline"; -export { default as TiUserDelete } from "./user-delete"; -export { default as TiUserOutline } from "./user-outline"; -export { default as TiUser } from "./user"; -export { default as TiVendorAndroid } from "./vendor-android"; -export { default as TiVendorApple } from "./vendor-apple"; -export { default as TiVendorMicrosoft } from "./vendor-microsoft"; -export { default as TiVideoOutline } from "./video-outline"; -export { default as TiVideo } from "./video"; -export { default as TiVolumeDown } from "./volume-down"; -export { default as TiVolumeMute } from "./volume-mute"; -export { default as TiVolumeUp } from "./volume-up"; -export { default as TiVolume } from "./volume"; -export { default as TiWarningOutline } from "./warning-outline"; -export { default as TiWarning } from "./warning"; -export { default as TiWatch } from "./watch"; -export { default as TiWavesOutline } from "./waves-outline"; -export { default as TiWaves } from "./waves"; -export { default as TiWeatherCloudy } from "./weather-cloudy"; -export { default as TiWeatherDownpour } from "./weather-downpour"; -export { default as TiWeatherNight } from "./weather-night"; -export { default as TiWeatherPartlySunny } from "./weather-partly-sunny"; -export { default as TiWeatherShower } from "./weather-shower"; -export { default as TiWeatherSnow } from "./weather-snow"; -export { default as TiWeatherStormy } from "./weather-stormy"; -export { default as TiWeatherSunny } from "./weather-sunny"; -export { default as TiWeatherWindyCloudy } from "./weather-windy-cloudy"; -export { default as TiWeatherWindy } from "./weather-windy"; -export { default as TiWiFiOutline } from "./wi-fi-outline"; -export { default as TiWiFi } from "./wi-fi"; -export { default as TiWine } from "./wine"; -export { default as TiWorldOutline } from "./world-outline"; -export { default as TiWorld } from "./world"; -export { default as TiZoomInOutline } from "./zoom-in-outline"; -export { default as TiZoomIn } from "./zoom-in"; -export { default as TiZoomOutOutline } from "./zoom-out-outline"; -export { default as TiZoomOut } from "./zoom-out"; -export { default as TiZoomOutline } from "./zoom-outline"; -export { default as TiZoom } from "./zoom"; +export { default as TiAdjustBrightness } from "../../ti/adjust-brightness"; +export { default as TiAdjustContrast } from "../../ti/adjust-contrast"; +export { default as TiAnchorOutline } from "../../ti/anchor-outline"; +export { default as TiAnchor } from "../../ti/anchor"; +export { default as TiArchive } from "../../ti/archive"; +export { default as TiArrowBackOutline } from "../../ti/arrow-back-outline"; +export { default as TiArrowBack } from "../../ti/arrow-back"; +export { default as TiArrowDownOutline } from "../../ti/arrow-down-outline"; +export { default as TiArrowDownThick } from "../../ti/arrow-down-thick"; +export { default as TiArrowDown } from "../../ti/arrow-down"; +export { default as TiArrowForwardOutline } from "../../ti/arrow-forward-outline"; +export { default as TiArrowForward } from "../../ti/arrow-forward"; +export { default as TiArrowLeftOutline } from "../../ti/arrow-left-outline"; +export { default as TiArrowLeftThick } from "../../ti/arrow-left-thick"; +export { default as TiArrowLeft } from "../../ti/arrow-left"; +export { default as TiArrowLoopOutline } from "../../ti/arrow-loop-outline"; +export { default as TiArrowLoop } from "../../ti/arrow-loop"; +export { default as TiArrowMaximiseOutline } from "../../ti/arrow-maximise-outline"; +export { default as TiArrowMaximise } from "../../ti/arrow-maximise"; +export { default as TiArrowMinimiseOutline } from "../../ti/arrow-minimise-outline"; +export { default as TiArrowMinimise } from "../../ti/arrow-minimise"; +export { default as TiArrowMoveOutline } from "../../ti/arrow-move-outline"; +export { default as TiArrowMove } from "../../ti/arrow-move"; +export { default as TiArrowRepeatOutline } from "../../ti/arrow-repeat-outline"; +export { default as TiArrowRepeat } from "../../ti/arrow-repeat"; +export { default as TiArrowRightOutline } from "../../ti/arrow-right-outline"; +export { default as TiArrowRightThick } from "../../ti/arrow-right-thick"; +export { default as TiArrowRight } from "../../ti/arrow-right"; +export { default as TiArrowShuffle } from "../../ti/arrow-shuffle"; +export { default as TiArrowSortedDown } from "../../ti/arrow-sorted-down"; +export { default as TiArrowSortedUp } from "../../ti/arrow-sorted-up"; +export { default as TiArrowSyncOutline } from "../../ti/arrow-sync-outline"; +export { default as TiArrowSync } from "../../ti/arrow-sync"; +export { default as TiArrowUnsorted } from "../../ti/arrow-unsorted"; +export { default as TiArrowUpOutline } from "../../ti/arrow-up-outline"; +export { default as TiArrowUpThick } from "../../ti/arrow-up-thick"; +export { default as TiArrowUp } from "../../ti/arrow-up"; +export { default as TiAt } from "../../ti/at"; +export { default as TiAttachmentOutline } from "../../ti/attachment-outline"; +export { default as TiAttachment } from "../../ti/attachment"; +export { default as TiBackspaceOutline } from "../../ti/backspace-outline"; +export { default as TiBackspace } from "../../ti/backspace"; +export { default as TiBatteryCharge } from "../../ti/battery-charge"; +export { default as TiBatteryFull } from "../../ti/battery-full"; +export { default as TiBatteryHigh } from "../../ti/battery-high"; +export { default as TiBatteryLow } from "../../ti/battery-low"; +export { default as TiBatteryMid } from "../../ti/battery-mid"; +export { default as TiBeaker } from "../../ti/beaker"; +export { default as TiBeer } from "../../ti/beer"; +export { default as TiBell } from "../../ti/bell"; +export { default as TiBook } from "../../ti/book"; +export { default as TiBookmark } from "../../ti/bookmark"; +export { default as TiBriefcase } from "../../ti/briefcase"; +export { default as TiBrush } from "../../ti/brush"; +export { default as TiBusinessCard } from "../../ti/business-card"; +export { default as TiCalculator } from "../../ti/calculator"; +export { default as TiCalendarOutline } from "../../ti/calendar-outline"; +export { default as TiCalendar } from "../../ti/calendar"; +export { default as TiCalenderOutline } from "../../ti/calender-outline"; +export { default as TiCalender } from "../../ti/calender"; +export { default as TiCameraOutline } from "../../ti/camera-outline"; +export { default as TiCamera } from "../../ti/camera"; +export { default as TiCancelOutline } from "../../ti/cancel-outline"; +export { default as TiCancel } from "../../ti/cancel"; +export { default as TiChartAreaOutline } from "../../ti/chart-area-outline"; +export { default as TiChartArea } from "../../ti/chart-area"; +export { default as TiChartBarOutline } from "../../ti/chart-bar-outline"; +export { default as TiChartBar } from "../../ti/chart-bar"; +export { default as TiChartLineOutline } from "../../ti/chart-line-outline"; +export { default as TiChartLine } from "../../ti/chart-line"; +export { default as TiChartPieOutline } from "../../ti/chart-pie-outline"; +export { default as TiChartPie } from "../../ti/chart-pie"; +export { default as TiChevronLeftOutline } from "../../ti/chevron-left-outline"; +export { default as TiChevronLeft } from "../../ti/chevron-left"; +export { default as TiChevronRightOutline } from "../../ti/chevron-right-outline"; +export { default as TiChevronRight } from "../../ti/chevron-right"; +export { default as TiClipboard } from "../../ti/clipboard"; +export { default as TiCloudStorageOutline } from "../../ti/cloud-storage-outline"; +export { default as TiCloudStorage } from "../../ti/cloud-storage"; +export { default as TiCodeOutline } from "../../ti/code-outline"; +export { default as TiCode } from "../../ti/code"; +export { default as TiCoffee } from "../../ti/coffee"; +export { default as TiCogOutline } from "../../ti/cog-outline"; +export { default as TiCog } from "../../ti/cog"; +export { default as TiCompass } from "../../ti/compass"; +export { default as TiContacts } from "../../ti/contacts"; +export { default as TiCreditCard } from "../../ti/credit-card"; +export { default as TiCross } from "../../ti/cross"; +export { default as TiCss3 } from "../../ti/css3"; +export { default as TiDatabase } from "../../ti/database"; +export { default as TiDeleteOutline } from "../../ti/delete-outline"; +export { default as TiDelete } from "../../ti/delete"; +export { default as TiDeviceDesktop } from "../../ti/device-desktop"; +export { default as TiDeviceLaptop } from "../../ti/device-laptop"; +export { default as TiDevicePhone } from "../../ti/device-phone"; +export { default as TiDeviceTablet } from "../../ti/device-tablet"; +export { default as TiDirections } from "../../ti/directions"; +export { default as TiDivideOutline } from "../../ti/divide-outline"; +export { default as TiDivide } from "../../ti/divide"; +export { default as TiDocumentAdd } from "../../ti/document-add"; +export { default as TiDocumentDelete } from "../../ti/document-delete"; +export { default as TiDocumentText } from "../../ti/document-text"; +export { default as TiDocument } from "../../ti/document"; +export { default as TiDownloadOutline } from "../../ti/download-outline"; +export { default as TiDownload } from "../../ti/download"; +export { default as TiDropbox } from "../../ti/dropbox"; +export { default as TiEdit } from "../../ti/edit"; +export { default as TiEjectOutline } from "../../ti/eject-outline"; +export { default as TiEject } from "../../ti/eject"; +export { default as TiEqualsOutline } from "../../ti/equals-outline"; +export { default as TiEquals } from "../../ti/equals"; +export { default as TiExportOutline } from "../../ti/export-outline"; +export { default as TiExport } from "../../ti/export"; +export { default as TiEyeOutline } from "../../ti/eye-outline"; +export { default as TiEye } from "../../ti/eye"; +export { default as TiFeather } from "../../ti/feather"; +export { default as TiFilm } from "../../ti/film"; +export { default as TiFilter } from "../../ti/filter"; +export { default as TiFlagOutline } from "../../ti/flag-outline"; +export { default as TiFlag } from "../../ti/flag"; +export { default as TiFlashOutline } from "../../ti/flash-outline"; +export { default as TiFlash } from "../../ti/flash"; +export { default as TiFlowChildren } from "../../ti/flow-children"; +export { default as TiFlowMerge } from "../../ti/flow-merge"; +export { default as TiFlowParallel } from "../../ti/flow-parallel"; +export { default as TiFlowSwitch } from "../../ti/flow-switch"; +export { default as TiFolderAdd } from "../../ti/folder-add"; +export { default as TiFolderDelete } from "../../ti/folder-delete"; +export { default as TiFolderOpen } from "../../ti/folder-open"; +export { default as TiFolder } from "../../ti/folder"; +export { default as TiGift } from "../../ti/gift"; +export { default as TiGlobeOutline } from "../../ti/globe-outline"; +export { default as TiGlobe } from "../../ti/globe"; +export { default as TiGroupOutline } from "../../ti/group-outline"; +export { default as TiGroup } from "../../ti/group"; +export { default as TiHeadphones } from "../../ti/headphones"; +export { default as TiHeartFullOutline } from "../../ti/heart-full-outline"; +export { default as TiHeartHalfOutline } from "../../ti/heart-half-outline"; +export { default as TiHeartOutline } from "../../ti/heart-outline"; +export { default as TiHeart } from "../../ti/heart"; +export { default as TiHomeOutline } from "../../ti/home-outline"; +export { default as TiHome } from "../../ti/home"; +export { default as TiHtml5 } from "../../ti/html5"; +export { default as TiImageOutline } from "../../ti/image-outline"; +export { default as TiImage } from "../../ti/image"; +export { default as TiInfinityOutline } from "../../ti/infinity-outline"; +export { default as TiInfinity } from "../../ti/infinity"; +export { default as TiInfoLargeOutline } from "../../ti/info-large-outline"; +export { default as TiInfoLarge } from "../../ti/info-large"; +export { default as TiInfoOutline } from "../../ti/info-outline"; +export { default as TiInfo } from "../../ti/info"; +export { default as TiInputCheckedOutline } from "../../ti/input-checked-outline"; +export { default as TiInputChecked } from "../../ti/input-checked"; +export { default as TiKeyOutline } from "../../ti/key-outline"; +export { default as TiKey } from "../../ti/key"; +export { default as TiKeyboard } from "../../ti/keyboard"; +export { default as TiLeaf } from "../../ti/leaf"; +export { default as TiLightbulb } from "../../ti/lightbulb"; +export { default as TiLinkOutline } from "../../ti/link-outline"; +export { default as TiLink } from "../../ti/link"; +export { default as TiLocationArrowOutline } from "../../ti/location-arrow-outline"; +export { default as TiLocationArrow } from "../../ti/location-arrow"; +export { default as TiLocationOutline } from "../../ti/location-outline"; +export { default as TiLocation } from "../../ti/location"; +export { default as TiLockClosedOutline } from "../../ti/lock-closed-outline"; +export { default as TiLockClosed } from "../../ti/lock-closed"; +export { default as TiLockOpenOutline } from "../../ti/lock-open-outline"; +export { default as TiLockOpen } from "../../ti/lock-open"; +export { default as TiMail } from "../../ti/mail"; +export { default as TiMap } from "../../ti/map"; +export { default as TiMediaEjectOutline } from "../../ti/media-eject-outline"; +export { default as TiMediaEject } from "../../ti/media-eject"; +export { default as TiMediaFastForwardOutline } from "../../ti/media-fast-forward-outline"; +export { default as TiMediaFastForward } from "../../ti/media-fast-forward"; +export { default as TiMediaPauseOutline } from "../../ti/media-pause-outline"; +export { default as TiMediaPause } from "../../ti/media-pause"; +export { default as TiMediaPlayOutline } from "../../ti/media-play-outline"; +export { default as TiMediaPlayReverseOutline } from "../../ti/media-play-reverse-outline"; +export { default as TiMediaPlayReverse } from "../../ti/media-play-reverse"; +export { default as TiMediaPlay } from "../../ti/media-play"; +export { default as TiMediaRecordOutline } from "../../ti/media-record-outline"; +export { default as TiMediaRecord } from "../../ti/media-record"; +export { default as TiMediaRewindOutline } from "../../ti/media-rewind-outline"; +export { default as TiMediaRewind } from "../../ti/media-rewind"; +export { default as TiMediaStopOutline } from "../../ti/media-stop-outline"; +export { default as TiMediaStop } from "../../ti/media-stop"; +export { default as TiMessageTyping } from "../../ti/message-typing"; +export { default as TiMessage } from "../../ti/message"; +export { default as TiMessages } from "../../ti/messages"; +export { default as TiMicrophoneOutline } from "../../ti/microphone-outline"; +export { default as TiMicrophone } from "../../ti/microphone"; +export { default as TiMinusOutline } from "../../ti/minus-outline"; +export { default as TiMinus } from "../../ti/minus"; +export { default as TiMortarBoard } from "../../ti/mortar-board"; +export { default as TiNews } from "../../ti/news"; +export { default as TiNotesOutline } from "../../ti/notes-outline"; +export { default as TiNotes } from "../../ti/notes"; +export { default as TiPen } from "../../ti/pen"; +export { default as TiPencil } from "../../ti/pencil"; +export { default as TiPhoneOutline } from "../../ti/phone-outline"; +export { default as TiPhone } from "../../ti/phone"; +export { default as TiPiOutline } from "../../ti/pi-outline"; +export { default as TiPi } from "../../ti/pi"; +export { default as TiPinOutline } from "../../ti/pin-outline"; +export { default as TiPin } from "../../ti/pin"; +export { default as TiPipette } from "../../ti/pipette"; +export { default as TiPlaneOutline } from "../../ti/plane-outline"; +export { default as TiPlane } from "../../ti/plane"; +export { default as TiPlug } from "../../ti/plug"; +export { default as TiPlusOutline } from "../../ti/plus-outline"; +export { default as TiPlus } from "../../ti/plus"; +export { default as TiPointOfInterestOutline } from "../../ti/point-of-interest-outline"; +export { default as TiPointOfInterest } from "../../ti/point-of-interest"; +export { default as TiPowerOutline } from "../../ti/power-outline"; +export { default as TiPower } from "../../ti/power"; +export { default as TiPrinter } from "../../ti/printer"; +export { default as TiPuzzleOutline } from "../../ti/puzzle-outline"; +export { default as TiPuzzle } from "../../ti/puzzle"; +export { default as TiRadarOutline } from "../../ti/radar-outline"; +export { default as TiRadar } from "../../ti/radar"; +export { default as TiRefreshOutline } from "../../ti/refresh-outline"; +export { default as TiRefresh } from "../../ti/refresh"; +export { default as TiRssOutline } from "../../ti/rss-outline"; +export { default as TiRss } from "../../ti/rss"; +export { default as TiScissorsOutline } from "../../ti/scissors-outline"; +export { default as TiScissors } from "../../ti/scissors"; +export { default as TiShoppingBag } from "../../ti/shopping-bag"; +export { default as TiShoppingCart } from "../../ti/shopping-cart"; +export { default as TiSocialAtCircular } from "../../ti/social-at-circular"; +export { default as TiSocialDribbbleCircular } from "../../ti/social-dribbble-circular"; +export { default as TiSocialDribbble } from "../../ti/social-dribbble"; +export { default as TiSocialFacebookCircular } from "../../ti/social-facebook-circular"; +export { default as TiSocialFacebook } from "../../ti/social-facebook"; +export { default as TiSocialFlickrCircular } from "../../ti/social-flickr-circular"; +export { default as TiSocialFlickr } from "../../ti/social-flickr"; +export { default as TiSocialGithubCircular } from "../../ti/social-github-circular"; +export { default as TiSocialGithub } from "../../ti/social-github"; +export { default as TiSocialGooglePlusCircular } from "../../ti/social-google-plus-circular"; +export { default as TiSocialGooglePlus } from "../../ti/social-google-plus"; +export { default as TiSocialInstagramCircular } from "../../ti/social-instagram-circular"; +export { default as TiSocialInstagram } from "../../ti/social-instagram"; +export { default as TiSocialLastFmCircular } from "../../ti/social-last-fm-circular"; +export { default as TiSocialLastFm } from "../../ti/social-last-fm"; +export { default as TiSocialLinkedinCircular } from "../../ti/social-linkedin-circular"; +export { default as TiSocialLinkedin } from "../../ti/social-linkedin"; +export { default as TiSocialPinterestCircular } from "../../ti/social-pinterest-circular"; +export { default as TiSocialPinterest } from "../../ti/social-pinterest"; +export { default as TiSocialSkypeOutline } from "../../ti/social-skype-outline"; +export { default as TiSocialSkype } from "../../ti/social-skype"; +export { default as TiSocialTumblerCircular } from "../../ti/social-tumbler-circular"; +export { default as TiSocialTumbler } from "../../ti/social-tumbler"; +export { default as TiSocialTwitterCircular } from "../../ti/social-twitter-circular"; +export { default as TiSocialTwitter } from "../../ti/social-twitter"; +export { default as TiSocialVimeoCircular } from "../../ti/social-vimeo-circular"; +export { default as TiSocialVimeo } from "../../ti/social-vimeo"; +export { default as TiSocialYoutubeCircular } from "../../ti/social-youtube-circular"; +export { default as TiSocialYoutube } from "../../ti/social-youtube"; +export { default as TiSortAlphabeticallyOutline } from "../../ti/sort-alphabetically-outline"; +export { default as TiSortAlphabetically } from "../../ti/sort-alphabetically"; +export { default as TiSortNumericallyOutline } from "../../ti/sort-numerically-outline"; +export { default as TiSortNumerically } from "../../ti/sort-numerically"; +export { default as TiSpannerOutline } from "../../ti/spanner-outline"; +export { default as TiSpanner } from "../../ti/spanner"; +export { default as TiSpiral } from "../../ti/spiral"; +export { default as TiStarFullOutline } from "../../ti/star-full-outline"; +export { default as TiStarHalfOutline } from "../../ti/star-half-outline"; +export { default as TiStarHalf } from "../../ti/star-half"; +export { default as TiStarOutline } from "../../ti/star-outline"; +export { default as TiStar } from "../../ti/star"; +export { default as TiStarburstOutline } from "../../ti/starburst-outline"; +export { default as TiStarburst } from "../../ti/starburst"; +export { default as TiStopwatch } from "../../ti/stopwatch"; +export { default as TiSupport } from "../../ti/support"; +export { default as TiTabsOutline } from "../../ti/tabs-outline"; +export { default as TiTag } from "../../ti/tag"; +export { default as TiTags } from "../../ti/tags"; +export { default as TiThLargeOutline } from "../../ti/th-large-outline"; +export { default as TiThLarge } from "../../ti/th-large"; +export { default as TiThListOutline } from "../../ti/th-list-outline"; +export { default as TiThList } from "../../ti/th-list"; +export { default as TiThMenuOutline } from "../../ti/th-menu-outline"; +export { default as TiThMenu } from "../../ti/th-menu"; +export { default as TiThSmallOutline } from "../../ti/th-small-outline"; +export { default as TiThSmall } from "../../ti/th-small"; +export { default as TiThermometer } from "../../ti/thermometer"; +export { default as TiThumbsDown } from "../../ti/thumbs-down"; +export { default as TiThumbsOk } from "../../ti/thumbs-ok"; +export { default as TiThumbsUp } from "../../ti/thumbs-up"; +export { default as TiTickOutline } from "../../ti/tick-outline"; +export { default as TiTick } from "../../ti/tick"; +export { default as TiTicket } from "../../ti/ticket"; +export { default as TiTime } from "../../ti/time"; +export { default as TiTimesOutline } from "../../ti/times-outline"; +export { default as TiTimes } from "../../ti/times"; +export { default as TiTrash } from "../../ti/trash"; +export { default as TiTree } from "../../ti/tree"; +export { default as TiUploadOutline } from "../../ti/upload-outline"; +export { default as TiUpload } from "../../ti/upload"; +export { default as TiUserAddOutline } from "../../ti/user-add-outline"; +export { default as TiUserAdd } from "../../ti/user-add"; +export { default as TiUserDeleteOutline } from "../../ti/user-delete-outline"; +export { default as TiUserDelete } from "../../ti/user-delete"; +export { default as TiUserOutline } from "../../ti/user-outline"; +export { default as TiUser } from "../../ti/user"; +export { default as TiVendorAndroid } from "../../ti/vendor-android"; +export { default as TiVendorApple } from "../../ti/vendor-apple"; +export { default as TiVendorMicrosoft } from "../../ti/vendor-microsoft"; +export { default as TiVideoOutline } from "../../ti/video-outline"; +export { default as TiVideo } from "../../ti/video"; +export { default as TiVolumeDown } from "../../ti/volume-down"; +export { default as TiVolumeMute } from "../../ti/volume-mute"; +export { default as TiVolumeUp } from "../../ti/volume-up"; +export { default as TiVolume } from "../../ti/volume"; +export { default as TiWarningOutline } from "../../ti/warning-outline"; +export { default as TiWarning } from "../../ti/warning"; +export { default as TiWatch } from "../../ti/watch"; +export { default as TiWavesOutline } from "../../ti/waves-outline"; +export { default as TiWaves } from "../../ti/waves"; +export { default as TiWeatherCloudy } from "../../ti/weather-cloudy"; +export { default as TiWeatherDownpour } from "../../ti/weather-downpour"; +export { default as TiWeatherNight } from "../../ti/weather-night"; +export { default as TiWeatherPartlySunny } from "../../ti/weather-partly-sunny"; +export { default as TiWeatherShower } from "../../ti/weather-shower"; +export { default as TiWeatherSnow } from "../../ti/weather-snow"; +export { default as TiWeatherStormy } from "../../ti/weather-stormy"; +export { default as TiWeatherSunny } from "../../ti/weather-sunny"; +export { default as TiWeatherWindyCloudy } from "../../ti/weather-windy-cloudy"; +export { default as TiWeatherWindy } from "../../ti/weather-windy"; +export { default as TiWiFiOutline } from "../../ti/wi-fi-outline"; +export { default as TiWiFi } from "../../ti/wi-fi"; +export { default as TiWine } from "../../ti/wine"; +export { default as TiWorldOutline } from "../../ti/world-outline"; +export { default as TiWorld } from "../../ti/world"; +export { default as TiZoomInOutline } from "../../ti/zoom-in-outline"; +export { default as TiZoomIn } from "../../ti/zoom-in"; +export { default as TiZoomOutOutline } from "../../ti/zoom-out-outline"; +export { default as TiZoomOut } from "../../ti/zoom-out"; +export { default as TiZoomOutline } from "../../ti/zoom-outline"; +export { default as TiZoom } from "../../ti/zoom"; diff --git a/types/react-icons/lib/ti/infinity-outline.d.ts b/types/react-icons/lib/ti/infinity-outline.d.ts index 396db6cef4..acf82acb79 100644 --- a/types/react-icons/lib/ti/infinity-outline.d.ts +++ b/types/react-icons/lib/ti/infinity-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiInfinityOutline extends React.Component { } +declare class TiInfinityOutline extends React.Component { } +export = TiInfinityOutline; diff --git a/types/react-icons/lib/ti/infinity.d.ts b/types/react-icons/lib/ti/infinity.d.ts index e2e330678f..2a770bd4ae 100644 --- a/types/react-icons/lib/ti/infinity.d.ts +++ b/types/react-icons/lib/ti/infinity.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiInfinity extends React.Component { } +declare class TiInfinity extends React.Component { } +export = TiInfinity; diff --git a/types/react-icons/lib/ti/info-large-outline.d.ts b/types/react-icons/lib/ti/info-large-outline.d.ts index 3ff6a8be6c..95a74ab971 100644 --- a/types/react-icons/lib/ti/info-large-outline.d.ts +++ b/types/react-icons/lib/ti/info-large-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiInfoLargeOutline extends React.Component { } +declare class TiInfoLargeOutline extends React.Component { } +export = TiInfoLargeOutline; diff --git a/types/react-icons/lib/ti/info-large.d.ts b/types/react-icons/lib/ti/info-large.d.ts index 0ad4eb3b6a..ab649a9807 100644 --- a/types/react-icons/lib/ti/info-large.d.ts +++ b/types/react-icons/lib/ti/info-large.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiInfoLarge extends React.Component { } +declare class TiInfoLarge extends React.Component { } +export = TiInfoLarge; diff --git a/types/react-icons/lib/ti/info-outline.d.ts b/types/react-icons/lib/ti/info-outline.d.ts index b80e266196..1dbe44f7e2 100644 --- a/types/react-icons/lib/ti/info-outline.d.ts +++ b/types/react-icons/lib/ti/info-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiInfoOutline extends React.Component { } +declare class TiInfoOutline extends React.Component { } +export = TiInfoOutline; diff --git a/types/react-icons/lib/ti/info.d.ts b/types/react-icons/lib/ti/info.d.ts index ec2cd25bdf..b536268bc5 100644 --- a/types/react-icons/lib/ti/info.d.ts +++ b/types/react-icons/lib/ti/info.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiInfo extends React.Component { } +declare class TiInfo extends React.Component { } +export = TiInfo; diff --git a/types/react-icons/lib/ti/input-checked-outline.d.ts b/types/react-icons/lib/ti/input-checked-outline.d.ts index 91f4f396a0..09598d7f9c 100644 --- a/types/react-icons/lib/ti/input-checked-outline.d.ts +++ b/types/react-icons/lib/ti/input-checked-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiInputCheckedOutline extends React.Component { } +declare class TiInputCheckedOutline extends React.Component { } +export = TiInputCheckedOutline; diff --git a/types/react-icons/lib/ti/input-checked.d.ts b/types/react-icons/lib/ti/input-checked.d.ts index beb1227d76..4a0d3f49e1 100644 --- a/types/react-icons/lib/ti/input-checked.d.ts +++ b/types/react-icons/lib/ti/input-checked.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiInputChecked extends React.Component { } +declare class TiInputChecked extends React.Component { } +export = TiInputChecked; diff --git a/types/react-icons/lib/ti/key-outline.d.ts b/types/react-icons/lib/ti/key-outline.d.ts index 0a2cac24a7..3915d81fdc 100644 --- a/types/react-icons/lib/ti/key-outline.d.ts +++ b/types/react-icons/lib/ti/key-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiKeyOutline extends React.Component { } +declare class TiKeyOutline extends React.Component { } +export = TiKeyOutline; diff --git a/types/react-icons/lib/ti/key.d.ts b/types/react-icons/lib/ti/key.d.ts index c167c86f85..1e5229dd96 100644 --- a/types/react-icons/lib/ti/key.d.ts +++ b/types/react-icons/lib/ti/key.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiKey extends React.Component { } +declare class TiKey extends React.Component { } +export = TiKey; diff --git a/types/react-icons/lib/ti/keyboard.d.ts b/types/react-icons/lib/ti/keyboard.d.ts index c936d0245d..dbd41ee813 100644 --- a/types/react-icons/lib/ti/keyboard.d.ts +++ b/types/react-icons/lib/ti/keyboard.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiKeyboard extends React.Component { } +declare class TiKeyboard extends React.Component { } +export = TiKeyboard; diff --git a/types/react-icons/lib/ti/leaf.d.ts b/types/react-icons/lib/ti/leaf.d.ts index 7b34567dde..3548464823 100644 --- a/types/react-icons/lib/ti/leaf.d.ts +++ b/types/react-icons/lib/ti/leaf.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiLeaf extends React.Component { } +declare class TiLeaf extends React.Component { } +export = TiLeaf; diff --git a/types/react-icons/lib/ti/lightbulb.d.ts b/types/react-icons/lib/ti/lightbulb.d.ts index 389a15ff3e..7a77c36eb3 100644 --- a/types/react-icons/lib/ti/lightbulb.d.ts +++ b/types/react-icons/lib/ti/lightbulb.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiLightbulb extends React.Component { } +declare class TiLightbulb extends React.Component { } +export = TiLightbulb; diff --git a/types/react-icons/lib/ti/link-outline.d.ts b/types/react-icons/lib/ti/link-outline.d.ts index 8aec8924d9..2de0ad9ea8 100644 --- a/types/react-icons/lib/ti/link-outline.d.ts +++ b/types/react-icons/lib/ti/link-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiLinkOutline extends React.Component { } +declare class TiLinkOutline extends React.Component { } +export = TiLinkOutline; diff --git a/types/react-icons/lib/ti/link.d.ts b/types/react-icons/lib/ti/link.d.ts index 7de0129e97..f018f05df1 100644 --- a/types/react-icons/lib/ti/link.d.ts +++ b/types/react-icons/lib/ti/link.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiLink extends React.Component { } +declare class TiLink extends React.Component { } +export = TiLink; diff --git a/types/react-icons/lib/ti/location-arrow-outline.d.ts b/types/react-icons/lib/ti/location-arrow-outline.d.ts index be73bc68bb..fa052ba27e 100644 --- a/types/react-icons/lib/ti/location-arrow-outline.d.ts +++ b/types/react-icons/lib/ti/location-arrow-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiLocationArrowOutline extends React.Component { } +declare class TiLocationArrowOutline extends React.Component { } +export = TiLocationArrowOutline; diff --git a/types/react-icons/lib/ti/location-arrow.d.ts b/types/react-icons/lib/ti/location-arrow.d.ts index c9fca74a46..17b35056fc 100644 --- a/types/react-icons/lib/ti/location-arrow.d.ts +++ b/types/react-icons/lib/ti/location-arrow.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiLocationArrow extends React.Component { } +declare class TiLocationArrow extends React.Component { } +export = TiLocationArrow; diff --git a/types/react-icons/lib/ti/location-outline.d.ts b/types/react-icons/lib/ti/location-outline.d.ts index 5e33402d00..7d31d353d6 100644 --- a/types/react-icons/lib/ti/location-outline.d.ts +++ b/types/react-icons/lib/ti/location-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiLocationOutline extends React.Component { } +declare class TiLocationOutline extends React.Component { } +export = TiLocationOutline; diff --git a/types/react-icons/lib/ti/location.d.ts b/types/react-icons/lib/ti/location.d.ts index 4b2ad147b6..159dadd5cb 100644 --- a/types/react-icons/lib/ti/location.d.ts +++ b/types/react-icons/lib/ti/location.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiLocation extends React.Component { } +declare class TiLocation extends React.Component { } +export = TiLocation; diff --git a/types/react-icons/lib/ti/lock-closed-outline.d.ts b/types/react-icons/lib/ti/lock-closed-outline.d.ts index df9d6ffaad..1c40232eb1 100644 --- a/types/react-icons/lib/ti/lock-closed-outline.d.ts +++ b/types/react-icons/lib/ti/lock-closed-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiLockClosedOutline extends React.Component { } +declare class TiLockClosedOutline extends React.Component { } +export = TiLockClosedOutline; diff --git a/types/react-icons/lib/ti/lock-closed.d.ts b/types/react-icons/lib/ti/lock-closed.d.ts index 234cc40580..0d45e2e4f5 100644 --- a/types/react-icons/lib/ti/lock-closed.d.ts +++ b/types/react-icons/lib/ti/lock-closed.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiLockClosed extends React.Component { } +declare class TiLockClosed extends React.Component { } +export = TiLockClosed; diff --git a/types/react-icons/lib/ti/lock-open-outline.d.ts b/types/react-icons/lib/ti/lock-open-outline.d.ts index 380878a869..f2d018becf 100644 --- a/types/react-icons/lib/ti/lock-open-outline.d.ts +++ b/types/react-icons/lib/ti/lock-open-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiLockOpenOutline extends React.Component { } +declare class TiLockOpenOutline extends React.Component { } +export = TiLockOpenOutline; diff --git a/types/react-icons/lib/ti/lock-open.d.ts b/types/react-icons/lib/ti/lock-open.d.ts index c4b51c68ee..710cdb44d8 100644 --- a/types/react-icons/lib/ti/lock-open.d.ts +++ b/types/react-icons/lib/ti/lock-open.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiLockOpen extends React.Component { } +declare class TiLockOpen extends React.Component { } +export = TiLockOpen; diff --git a/types/react-icons/lib/ti/mail.d.ts b/types/react-icons/lib/ti/mail.d.ts index 34979f6b13..9ee04f24e0 100644 --- a/types/react-icons/lib/ti/mail.d.ts +++ b/types/react-icons/lib/ti/mail.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiMail extends React.Component { } +declare class TiMail extends React.Component { } +export = TiMail; diff --git a/types/react-icons/lib/ti/map.d.ts b/types/react-icons/lib/ti/map.d.ts index 8b8092f4e7..7fe15fa575 100644 --- a/types/react-icons/lib/ti/map.d.ts +++ b/types/react-icons/lib/ti/map.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiMap extends React.Component { } +declare class TiMap extends React.Component { } +export = TiMap; diff --git a/types/react-icons/lib/ti/media-eject-outline.d.ts b/types/react-icons/lib/ti/media-eject-outline.d.ts index d58fadb21b..9351fc551b 100644 --- a/types/react-icons/lib/ti/media-eject-outline.d.ts +++ b/types/react-icons/lib/ti/media-eject-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiMediaEjectOutline extends React.Component { } +declare class TiMediaEjectOutline extends React.Component { } +export = TiMediaEjectOutline; diff --git a/types/react-icons/lib/ti/media-eject.d.ts b/types/react-icons/lib/ti/media-eject.d.ts index 41a9baaea8..98aa88f232 100644 --- a/types/react-icons/lib/ti/media-eject.d.ts +++ b/types/react-icons/lib/ti/media-eject.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiMediaEject extends React.Component { } +declare class TiMediaEject extends React.Component { } +export = TiMediaEject; diff --git a/types/react-icons/lib/ti/media-fast-forward-outline.d.ts b/types/react-icons/lib/ti/media-fast-forward-outline.d.ts index 8923d0fa44..42bf3e8957 100644 --- a/types/react-icons/lib/ti/media-fast-forward-outline.d.ts +++ b/types/react-icons/lib/ti/media-fast-forward-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiMediaFastForwardOutline extends React.Component { } +declare class TiMediaFastForwardOutline extends React.Component { } +export = TiMediaFastForwardOutline; diff --git a/types/react-icons/lib/ti/media-fast-forward.d.ts b/types/react-icons/lib/ti/media-fast-forward.d.ts index e53638bf62..8793b9f4ef 100644 --- a/types/react-icons/lib/ti/media-fast-forward.d.ts +++ b/types/react-icons/lib/ti/media-fast-forward.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiMediaFastForward extends React.Component { } +declare class TiMediaFastForward extends React.Component { } +export = TiMediaFastForward; diff --git a/types/react-icons/lib/ti/media-pause-outline.d.ts b/types/react-icons/lib/ti/media-pause-outline.d.ts index e792f0c894..9773cb8afe 100644 --- a/types/react-icons/lib/ti/media-pause-outline.d.ts +++ b/types/react-icons/lib/ti/media-pause-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiMediaPauseOutline extends React.Component { } +declare class TiMediaPauseOutline extends React.Component { } +export = TiMediaPauseOutline; diff --git a/types/react-icons/lib/ti/media-pause.d.ts b/types/react-icons/lib/ti/media-pause.d.ts index b24950b19c..4a81a0a0e5 100644 --- a/types/react-icons/lib/ti/media-pause.d.ts +++ b/types/react-icons/lib/ti/media-pause.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiMediaPause extends React.Component { } +declare class TiMediaPause extends React.Component { } +export = TiMediaPause; diff --git a/types/react-icons/lib/ti/media-play-outline.d.ts b/types/react-icons/lib/ti/media-play-outline.d.ts index 8e024e323f..4b615f35f1 100644 --- a/types/react-icons/lib/ti/media-play-outline.d.ts +++ b/types/react-icons/lib/ti/media-play-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiMediaPlayOutline extends React.Component { } +declare class TiMediaPlayOutline extends React.Component { } +export = TiMediaPlayOutline; diff --git a/types/react-icons/lib/ti/media-play-reverse-outline.d.ts b/types/react-icons/lib/ti/media-play-reverse-outline.d.ts index 5594d646d8..2d7a77bb40 100644 --- a/types/react-icons/lib/ti/media-play-reverse-outline.d.ts +++ b/types/react-icons/lib/ti/media-play-reverse-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiMediaPlayReverseOutline extends React.Component { } +declare class TiMediaPlayReverseOutline extends React.Component { } +export = TiMediaPlayReverseOutline; diff --git a/types/react-icons/lib/ti/media-play-reverse.d.ts b/types/react-icons/lib/ti/media-play-reverse.d.ts index 26e71c1733..d7d528e46a 100644 --- a/types/react-icons/lib/ti/media-play-reverse.d.ts +++ b/types/react-icons/lib/ti/media-play-reverse.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiMediaPlayReverse extends React.Component { } +declare class TiMediaPlayReverse extends React.Component { } +export = TiMediaPlayReverse; diff --git a/types/react-icons/lib/ti/media-play.d.ts b/types/react-icons/lib/ti/media-play.d.ts index defa546ee7..8dd20765e2 100644 --- a/types/react-icons/lib/ti/media-play.d.ts +++ b/types/react-icons/lib/ti/media-play.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiMediaPlay extends React.Component { } +declare class TiMediaPlay extends React.Component { } +export = TiMediaPlay; diff --git a/types/react-icons/lib/ti/media-record-outline.d.ts b/types/react-icons/lib/ti/media-record-outline.d.ts index 0761437451..f59288ac3c 100644 --- a/types/react-icons/lib/ti/media-record-outline.d.ts +++ b/types/react-icons/lib/ti/media-record-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiMediaRecordOutline extends React.Component { } +declare class TiMediaRecordOutline extends React.Component { } +export = TiMediaRecordOutline; diff --git a/types/react-icons/lib/ti/media-record.d.ts b/types/react-icons/lib/ti/media-record.d.ts index d924b105b6..36c9fc9dde 100644 --- a/types/react-icons/lib/ti/media-record.d.ts +++ b/types/react-icons/lib/ti/media-record.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiMediaRecord extends React.Component { } +declare class TiMediaRecord extends React.Component { } +export = TiMediaRecord; diff --git a/types/react-icons/lib/ti/media-rewind-outline.d.ts b/types/react-icons/lib/ti/media-rewind-outline.d.ts index 11de328095..8a27d06c5e 100644 --- a/types/react-icons/lib/ti/media-rewind-outline.d.ts +++ b/types/react-icons/lib/ti/media-rewind-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiMediaRewindOutline extends React.Component { } +declare class TiMediaRewindOutline extends React.Component { } +export = TiMediaRewindOutline; diff --git a/types/react-icons/lib/ti/media-rewind.d.ts b/types/react-icons/lib/ti/media-rewind.d.ts index f0e7151590..48aff4f77f 100644 --- a/types/react-icons/lib/ti/media-rewind.d.ts +++ b/types/react-icons/lib/ti/media-rewind.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiMediaRewind extends React.Component { } +declare class TiMediaRewind extends React.Component { } +export = TiMediaRewind; diff --git a/types/react-icons/lib/ti/media-stop-outline.d.ts b/types/react-icons/lib/ti/media-stop-outline.d.ts index e8728ac857..75aefbad11 100644 --- a/types/react-icons/lib/ti/media-stop-outline.d.ts +++ b/types/react-icons/lib/ti/media-stop-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiMediaStopOutline extends React.Component { } +declare class TiMediaStopOutline extends React.Component { } +export = TiMediaStopOutline; diff --git a/types/react-icons/lib/ti/media-stop.d.ts b/types/react-icons/lib/ti/media-stop.d.ts index d38b31aa5a..abd4b9476a 100644 --- a/types/react-icons/lib/ti/media-stop.d.ts +++ b/types/react-icons/lib/ti/media-stop.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiMediaStop extends React.Component { } +declare class TiMediaStop extends React.Component { } +export = TiMediaStop; diff --git a/types/react-icons/lib/ti/message-typing.d.ts b/types/react-icons/lib/ti/message-typing.d.ts index 2cb5497a4e..56bad96be8 100644 --- a/types/react-icons/lib/ti/message-typing.d.ts +++ b/types/react-icons/lib/ti/message-typing.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiMessageTyping extends React.Component { } +declare class TiMessageTyping extends React.Component { } +export = TiMessageTyping; diff --git a/types/react-icons/lib/ti/message.d.ts b/types/react-icons/lib/ti/message.d.ts index 9edcc4226a..35cf9dd7fc 100644 --- a/types/react-icons/lib/ti/message.d.ts +++ b/types/react-icons/lib/ti/message.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiMessage extends React.Component { } +declare class TiMessage extends React.Component { } +export = TiMessage; diff --git a/types/react-icons/lib/ti/messages.d.ts b/types/react-icons/lib/ti/messages.d.ts index e21fdac0a4..8c3df81714 100644 --- a/types/react-icons/lib/ti/messages.d.ts +++ b/types/react-icons/lib/ti/messages.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiMessages extends React.Component { } +declare class TiMessages extends React.Component { } +export = TiMessages; diff --git a/types/react-icons/lib/ti/microphone-outline.d.ts b/types/react-icons/lib/ti/microphone-outline.d.ts index 27e430bd72..09a858951f 100644 --- a/types/react-icons/lib/ti/microphone-outline.d.ts +++ b/types/react-icons/lib/ti/microphone-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiMicrophoneOutline extends React.Component { } +declare class TiMicrophoneOutline extends React.Component { } +export = TiMicrophoneOutline; diff --git a/types/react-icons/lib/ti/microphone.d.ts b/types/react-icons/lib/ti/microphone.d.ts index 543db1b50a..5cf090cf45 100644 --- a/types/react-icons/lib/ti/microphone.d.ts +++ b/types/react-icons/lib/ti/microphone.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiMicrophone extends React.Component { } +declare class TiMicrophone extends React.Component { } +export = TiMicrophone; diff --git a/types/react-icons/lib/ti/minus-outline.d.ts b/types/react-icons/lib/ti/minus-outline.d.ts index 99bb9fa7df..0400f00b05 100644 --- a/types/react-icons/lib/ti/minus-outline.d.ts +++ b/types/react-icons/lib/ti/minus-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiMinusOutline extends React.Component { } +declare class TiMinusOutline extends React.Component { } +export = TiMinusOutline; diff --git a/types/react-icons/lib/ti/minus.d.ts b/types/react-icons/lib/ti/minus.d.ts index 6239684cfa..756e8e77fa 100644 --- a/types/react-icons/lib/ti/minus.d.ts +++ b/types/react-icons/lib/ti/minus.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiMinus extends React.Component { } +declare class TiMinus extends React.Component { } +export = TiMinus; diff --git a/types/react-icons/lib/ti/mortar-board.d.ts b/types/react-icons/lib/ti/mortar-board.d.ts index 84d29d2b24..b6a130c61a 100644 --- a/types/react-icons/lib/ti/mortar-board.d.ts +++ b/types/react-icons/lib/ti/mortar-board.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiMortarBoard extends React.Component { } +declare class TiMortarBoard extends React.Component { } +export = TiMortarBoard; diff --git a/types/react-icons/lib/ti/news.d.ts b/types/react-icons/lib/ti/news.d.ts index 31c3f66c1e..299b87df70 100644 --- a/types/react-icons/lib/ti/news.d.ts +++ b/types/react-icons/lib/ti/news.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiNews extends React.Component { } +declare class TiNews extends React.Component { } +export = TiNews; diff --git a/types/react-icons/lib/ti/notes-outline.d.ts b/types/react-icons/lib/ti/notes-outline.d.ts index 4613ba38af..4c88666fd1 100644 --- a/types/react-icons/lib/ti/notes-outline.d.ts +++ b/types/react-icons/lib/ti/notes-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiNotesOutline extends React.Component { } +declare class TiNotesOutline extends React.Component { } +export = TiNotesOutline; diff --git a/types/react-icons/lib/ti/notes.d.ts b/types/react-icons/lib/ti/notes.d.ts index 5d2b4160f1..cc14b2a42c 100644 --- a/types/react-icons/lib/ti/notes.d.ts +++ b/types/react-icons/lib/ti/notes.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiNotes extends React.Component { } +declare class TiNotes extends React.Component { } +export = TiNotes; diff --git a/types/react-icons/lib/ti/pen.d.ts b/types/react-icons/lib/ti/pen.d.ts index 79b4e72f1a..dca4bfb317 100644 --- a/types/react-icons/lib/ti/pen.d.ts +++ b/types/react-icons/lib/ti/pen.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiPen extends React.Component { } +declare class TiPen extends React.Component { } +export = TiPen; diff --git a/types/react-icons/lib/ti/pencil.d.ts b/types/react-icons/lib/ti/pencil.d.ts index b8726f9010..eec2177732 100644 --- a/types/react-icons/lib/ti/pencil.d.ts +++ b/types/react-icons/lib/ti/pencil.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiPencil extends React.Component { } +declare class TiPencil extends React.Component { } +export = TiPencil; diff --git a/types/react-icons/lib/ti/phone-outline.d.ts b/types/react-icons/lib/ti/phone-outline.d.ts index d84b152351..c4e2f27934 100644 --- a/types/react-icons/lib/ti/phone-outline.d.ts +++ b/types/react-icons/lib/ti/phone-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiPhoneOutline extends React.Component { } +declare class TiPhoneOutline extends React.Component { } +export = TiPhoneOutline; diff --git a/types/react-icons/lib/ti/phone.d.ts b/types/react-icons/lib/ti/phone.d.ts index af3eb027a1..b2b26a0ab6 100644 --- a/types/react-icons/lib/ti/phone.d.ts +++ b/types/react-icons/lib/ti/phone.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiPhone extends React.Component { } +declare class TiPhone extends React.Component { } +export = TiPhone; diff --git a/types/react-icons/lib/ti/pi-outline.d.ts b/types/react-icons/lib/ti/pi-outline.d.ts index 4327e47c3d..ea31a037be 100644 --- a/types/react-icons/lib/ti/pi-outline.d.ts +++ b/types/react-icons/lib/ti/pi-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiPiOutline extends React.Component { } +declare class TiPiOutline extends React.Component { } +export = TiPiOutline; diff --git a/types/react-icons/lib/ti/pi.d.ts b/types/react-icons/lib/ti/pi.d.ts index d68aefa610..f1636e20cb 100644 --- a/types/react-icons/lib/ti/pi.d.ts +++ b/types/react-icons/lib/ti/pi.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiPi extends React.Component { } +declare class TiPi extends React.Component { } +export = TiPi; diff --git a/types/react-icons/lib/ti/pin-outline.d.ts b/types/react-icons/lib/ti/pin-outline.d.ts index 5a8943532e..9cdc09aecc 100644 --- a/types/react-icons/lib/ti/pin-outline.d.ts +++ b/types/react-icons/lib/ti/pin-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiPinOutline extends React.Component { } +declare class TiPinOutline extends React.Component { } +export = TiPinOutline; diff --git a/types/react-icons/lib/ti/pin.d.ts b/types/react-icons/lib/ti/pin.d.ts index 8d887edc98..f1f8a47e48 100644 --- a/types/react-icons/lib/ti/pin.d.ts +++ b/types/react-icons/lib/ti/pin.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiPin extends React.Component { } +declare class TiPin extends React.Component { } +export = TiPin; diff --git a/types/react-icons/lib/ti/pipette.d.ts b/types/react-icons/lib/ti/pipette.d.ts index 4f48d8afd3..4c64322983 100644 --- a/types/react-icons/lib/ti/pipette.d.ts +++ b/types/react-icons/lib/ti/pipette.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiPipette extends React.Component { } +declare class TiPipette extends React.Component { } +export = TiPipette; diff --git a/types/react-icons/lib/ti/plane-outline.d.ts b/types/react-icons/lib/ti/plane-outline.d.ts index ea4ac38deb..5cb48aff97 100644 --- a/types/react-icons/lib/ti/plane-outline.d.ts +++ b/types/react-icons/lib/ti/plane-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiPlaneOutline extends React.Component { } +declare class TiPlaneOutline extends React.Component { } +export = TiPlaneOutline; diff --git a/types/react-icons/lib/ti/plane.d.ts b/types/react-icons/lib/ti/plane.d.ts index 13e32cab40..e1e7a0b826 100644 --- a/types/react-icons/lib/ti/plane.d.ts +++ b/types/react-icons/lib/ti/plane.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiPlane extends React.Component { } +declare class TiPlane extends React.Component { } +export = TiPlane; diff --git a/types/react-icons/lib/ti/plug.d.ts b/types/react-icons/lib/ti/plug.d.ts index 019e4adc15..bda51c16e7 100644 --- a/types/react-icons/lib/ti/plug.d.ts +++ b/types/react-icons/lib/ti/plug.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiPlug extends React.Component { } +declare class TiPlug extends React.Component { } +export = TiPlug; diff --git a/types/react-icons/lib/ti/plus-outline.d.ts b/types/react-icons/lib/ti/plus-outline.d.ts index 22ec83aedd..cbda5e05ae 100644 --- a/types/react-icons/lib/ti/plus-outline.d.ts +++ b/types/react-icons/lib/ti/plus-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiPlusOutline extends React.Component { } +declare class TiPlusOutline extends React.Component { } +export = TiPlusOutline; diff --git a/types/react-icons/lib/ti/plus.d.ts b/types/react-icons/lib/ti/plus.d.ts index 247f279571..ebe8bd4f33 100644 --- a/types/react-icons/lib/ti/plus.d.ts +++ b/types/react-icons/lib/ti/plus.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiPlus extends React.Component { } +declare class TiPlus extends React.Component { } +export = TiPlus; diff --git a/types/react-icons/lib/ti/point-of-interest-outline.d.ts b/types/react-icons/lib/ti/point-of-interest-outline.d.ts index 63cfa579e5..e74bd4f576 100644 --- a/types/react-icons/lib/ti/point-of-interest-outline.d.ts +++ b/types/react-icons/lib/ti/point-of-interest-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiPointOfInterestOutline extends React.Component { } +declare class TiPointOfInterestOutline extends React.Component { } +export = TiPointOfInterestOutline; diff --git a/types/react-icons/lib/ti/point-of-interest.d.ts b/types/react-icons/lib/ti/point-of-interest.d.ts index a5d480400c..eb92fad9cb 100644 --- a/types/react-icons/lib/ti/point-of-interest.d.ts +++ b/types/react-icons/lib/ti/point-of-interest.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiPointOfInterest extends React.Component { } +declare class TiPointOfInterest extends React.Component { } +export = TiPointOfInterest; diff --git a/types/react-icons/lib/ti/power-outline.d.ts b/types/react-icons/lib/ti/power-outline.d.ts index 52f6a2262c..36327686e5 100644 --- a/types/react-icons/lib/ti/power-outline.d.ts +++ b/types/react-icons/lib/ti/power-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiPowerOutline extends React.Component { } +declare class TiPowerOutline extends React.Component { } +export = TiPowerOutline; diff --git a/types/react-icons/lib/ti/power.d.ts b/types/react-icons/lib/ti/power.d.ts index 64dfece1af..6ad63f6bb4 100644 --- a/types/react-icons/lib/ti/power.d.ts +++ b/types/react-icons/lib/ti/power.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiPower extends React.Component { } +declare class TiPower extends React.Component { } +export = TiPower; diff --git a/types/react-icons/lib/ti/printer.d.ts b/types/react-icons/lib/ti/printer.d.ts index 556a9f07db..7acd512291 100644 --- a/types/react-icons/lib/ti/printer.d.ts +++ b/types/react-icons/lib/ti/printer.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiPrinter extends React.Component { } +declare class TiPrinter extends React.Component { } +export = TiPrinter; diff --git a/types/react-icons/lib/ti/puzzle-outline.d.ts b/types/react-icons/lib/ti/puzzle-outline.d.ts index 4a7341192a..24c8a7c3de 100644 --- a/types/react-icons/lib/ti/puzzle-outline.d.ts +++ b/types/react-icons/lib/ti/puzzle-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiPuzzleOutline extends React.Component { } +declare class TiPuzzleOutline extends React.Component { } +export = TiPuzzleOutline; diff --git a/types/react-icons/lib/ti/puzzle.d.ts b/types/react-icons/lib/ti/puzzle.d.ts index a0c57f6b0e..7a70e99f24 100644 --- a/types/react-icons/lib/ti/puzzle.d.ts +++ b/types/react-icons/lib/ti/puzzle.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiPuzzle extends React.Component { } +declare class TiPuzzle extends React.Component { } +export = TiPuzzle; diff --git a/types/react-icons/lib/ti/radar-outline.d.ts b/types/react-icons/lib/ti/radar-outline.d.ts index aad8289852..2721968675 100644 --- a/types/react-icons/lib/ti/radar-outline.d.ts +++ b/types/react-icons/lib/ti/radar-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiRadarOutline extends React.Component { } +declare class TiRadarOutline extends React.Component { } +export = TiRadarOutline; diff --git a/types/react-icons/lib/ti/radar.d.ts b/types/react-icons/lib/ti/radar.d.ts index b98c278714..eecdf8ed65 100644 --- a/types/react-icons/lib/ti/radar.d.ts +++ b/types/react-icons/lib/ti/radar.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiRadar extends React.Component { } +declare class TiRadar extends React.Component { } +export = TiRadar; diff --git a/types/react-icons/lib/ti/refresh-outline.d.ts b/types/react-icons/lib/ti/refresh-outline.d.ts index 38d77c5598..3f63f94c3b 100644 --- a/types/react-icons/lib/ti/refresh-outline.d.ts +++ b/types/react-icons/lib/ti/refresh-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiRefreshOutline extends React.Component { } +declare class TiRefreshOutline extends React.Component { } +export = TiRefreshOutline; diff --git a/types/react-icons/lib/ti/refresh.d.ts b/types/react-icons/lib/ti/refresh.d.ts index 6aeba2082a..52fd0e1a43 100644 --- a/types/react-icons/lib/ti/refresh.d.ts +++ b/types/react-icons/lib/ti/refresh.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiRefresh extends React.Component { } +declare class TiRefresh extends React.Component { } +export = TiRefresh; diff --git a/types/react-icons/lib/ti/rss-outline.d.ts b/types/react-icons/lib/ti/rss-outline.d.ts index 0b31e05198..005c3db586 100644 --- a/types/react-icons/lib/ti/rss-outline.d.ts +++ b/types/react-icons/lib/ti/rss-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiRssOutline extends React.Component { } +declare class TiRssOutline extends React.Component { } +export = TiRssOutline; diff --git a/types/react-icons/lib/ti/rss.d.ts b/types/react-icons/lib/ti/rss.d.ts index 13f61bf841..bd0b7a7202 100644 --- a/types/react-icons/lib/ti/rss.d.ts +++ b/types/react-icons/lib/ti/rss.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiRss extends React.Component { } +declare class TiRss extends React.Component { } +export = TiRss; diff --git a/types/react-icons/lib/ti/scissors-outline.d.ts b/types/react-icons/lib/ti/scissors-outline.d.ts index 82b195b7bd..7a51af29a1 100644 --- a/types/react-icons/lib/ti/scissors-outline.d.ts +++ b/types/react-icons/lib/ti/scissors-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiScissorsOutline extends React.Component { } +declare class TiScissorsOutline extends React.Component { } +export = TiScissorsOutline; diff --git a/types/react-icons/lib/ti/scissors.d.ts b/types/react-icons/lib/ti/scissors.d.ts index da6f78e767..546ec0f5e6 100644 --- a/types/react-icons/lib/ti/scissors.d.ts +++ b/types/react-icons/lib/ti/scissors.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiScissors extends React.Component { } +declare class TiScissors extends React.Component { } +export = TiScissors; diff --git a/types/react-icons/lib/ti/shopping-bag.d.ts b/types/react-icons/lib/ti/shopping-bag.d.ts index 6de75d8f81..4510fcf68f 100644 --- a/types/react-icons/lib/ti/shopping-bag.d.ts +++ b/types/react-icons/lib/ti/shopping-bag.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiShoppingBag extends React.Component { } +declare class TiShoppingBag extends React.Component { } +export = TiShoppingBag; diff --git a/types/react-icons/lib/ti/shopping-cart.d.ts b/types/react-icons/lib/ti/shopping-cart.d.ts index 2364dc03ba..29887be2dc 100644 --- a/types/react-icons/lib/ti/shopping-cart.d.ts +++ b/types/react-icons/lib/ti/shopping-cart.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiShoppingCart extends React.Component { } +declare class TiShoppingCart extends React.Component { } +export = TiShoppingCart; diff --git a/types/react-icons/lib/ti/social-at-circular.d.ts b/types/react-icons/lib/ti/social-at-circular.d.ts index 2c2fcee614..d361885a4e 100644 --- a/types/react-icons/lib/ti/social-at-circular.d.ts +++ b/types/react-icons/lib/ti/social-at-circular.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiSocialAtCircular extends React.Component { } +declare class TiSocialAtCircular extends React.Component { } +export = TiSocialAtCircular; diff --git a/types/react-icons/lib/ti/social-dribbble-circular.d.ts b/types/react-icons/lib/ti/social-dribbble-circular.d.ts index 7e7ddc450a..cfc66cd9cb 100644 --- a/types/react-icons/lib/ti/social-dribbble-circular.d.ts +++ b/types/react-icons/lib/ti/social-dribbble-circular.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiSocialDribbbleCircular extends React.Component { } +declare class TiSocialDribbbleCircular extends React.Component { } +export = TiSocialDribbbleCircular; diff --git a/types/react-icons/lib/ti/social-dribbble.d.ts b/types/react-icons/lib/ti/social-dribbble.d.ts index b47018320f..4c7f64be5b 100644 --- a/types/react-icons/lib/ti/social-dribbble.d.ts +++ b/types/react-icons/lib/ti/social-dribbble.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiSocialDribbble extends React.Component { } +declare class TiSocialDribbble extends React.Component { } +export = TiSocialDribbble; diff --git a/types/react-icons/lib/ti/social-facebook-circular.d.ts b/types/react-icons/lib/ti/social-facebook-circular.d.ts index e9863905d3..056fdc5d33 100644 --- a/types/react-icons/lib/ti/social-facebook-circular.d.ts +++ b/types/react-icons/lib/ti/social-facebook-circular.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiSocialFacebookCircular extends React.Component { } +declare class TiSocialFacebookCircular extends React.Component { } +export = TiSocialFacebookCircular; diff --git a/types/react-icons/lib/ti/social-facebook.d.ts b/types/react-icons/lib/ti/social-facebook.d.ts index 982ae3d78c..79f2801b96 100644 --- a/types/react-icons/lib/ti/social-facebook.d.ts +++ b/types/react-icons/lib/ti/social-facebook.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiSocialFacebook extends React.Component { } +declare class TiSocialFacebook extends React.Component { } +export = TiSocialFacebook; diff --git a/types/react-icons/lib/ti/social-flickr-circular.d.ts b/types/react-icons/lib/ti/social-flickr-circular.d.ts index 4c7b97dce4..40e5ff2f28 100644 --- a/types/react-icons/lib/ti/social-flickr-circular.d.ts +++ b/types/react-icons/lib/ti/social-flickr-circular.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiSocialFlickrCircular extends React.Component { } +declare class TiSocialFlickrCircular extends React.Component { } +export = TiSocialFlickrCircular; diff --git a/types/react-icons/lib/ti/social-flickr.d.ts b/types/react-icons/lib/ti/social-flickr.d.ts index ab945e0965..a48b8940ee 100644 --- a/types/react-icons/lib/ti/social-flickr.d.ts +++ b/types/react-icons/lib/ti/social-flickr.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiSocialFlickr extends React.Component { } +declare class TiSocialFlickr extends React.Component { } +export = TiSocialFlickr; diff --git a/types/react-icons/lib/ti/social-github-circular.d.ts b/types/react-icons/lib/ti/social-github-circular.d.ts index 1db20eba35..8649071280 100644 --- a/types/react-icons/lib/ti/social-github-circular.d.ts +++ b/types/react-icons/lib/ti/social-github-circular.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiSocialGithubCircular extends React.Component { } +declare class TiSocialGithubCircular extends React.Component { } +export = TiSocialGithubCircular; diff --git a/types/react-icons/lib/ti/social-github.d.ts b/types/react-icons/lib/ti/social-github.d.ts index d2f3b8f628..a8506883c5 100644 --- a/types/react-icons/lib/ti/social-github.d.ts +++ b/types/react-icons/lib/ti/social-github.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiSocialGithub extends React.Component { } +declare class TiSocialGithub extends React.Component { } +export = TiSocialGithub; diff --git a/types/react-icons/lib/ti/social-google-plus-circular.d.ts b/types/react-icons/lib/ti/social-google-plus-circular.d.ts index 7fd96cf1b4..0cf3b77126 100644 --- a/types/react-icons/lib/ti/social-google-plus-circular.d.ts +++ b/types/react-icons/lib/ti/social-google-plus-circular.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiSocialGooglePlusCircular extends React.Component { } +declare class TiSocialGooglePlusCircular extends React.Component { } +export = TiSocialGooglePlusCircular; diff --git a/types/react-icons/lib/ti/social-google-plus.d.ts b/types/react-icons/lib/ti/social-google-plus.d.ts index 977e3bb738..6c23799c8b 100644 --- a/types/react-icons/lib/ti/social-google-plus.d.ts +++ b/types/react-icons/lib/ti/social-google-plus.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiSocialGooglePlus extends React.Component { } +declare class TiSocialGooglePlus extends React.Component { } +export = TiSocialGooglePlus; diff --git a/types/react-icons/lib/ti/social-instagram-circular.d.ts b/types/react-icons/lib/ti/social-instagram-circular.d.ts index ef7e9ea9f1..842e587a5f 100644 --- a/types/react-icons/lib/ti/social-instagram-circular.d.ts +++ b/types/react-icons/lib/ti/social-instagram-circular.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiSocialInstagramCircular extends React.Component { } +declare class TiSocialInstagramCircular extends React.Component { } +export = TiSocialInstagramCircular; diff --git a/types/react-icons/lib/ti/social-instagram.d.ts b/types/react-icons/lib/ti/social-instagram.d.ts index ff4d5d3346..316e5f3eca 100644 --- a/types/react-icons/lib/ti/social-instagram.d.ts +++ b/types/react-icons/lib/ti/social-instagram.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiSocialInstagram extends React.Component { } +declare class TiSocialInstagram extends React.Component { } +export = TiSocialInstagram; diff --git a/types/react-icons/lib/ti/social-last-fm-circular.d.ts b/types/react-icons/lib/ti/social-last-fm-circular.d.ts index 38e8fc08be..55c95c368f 100644 --- a/types/react-icons/lib/ti/social-last-fm-circular.d.ts +++ b/types/react-icons/lib/ti/social-last-fm-circular.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiSocialLastFmCircular extends React.Component { } +declare class TiSocialLastFmCircular extends React.Component { } +export = TiSocialLastFmCircular; diff --git a/types/react-icons/lib/ti/social-last-fm.d.ts b/types/react-icons/lib/ti/social-last-fm.d.ts index fde2b626cc..9a5a0cb6b6 100644 --- a/types/react-icons/lib/ti/social-last-fm.d.ts +++ b/types/react-icons/lib/ti/social-last-fm.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiSocialLastFm extends React.Component { } +declare class TiSocialLastFm extends React.Component { } +export = TiSocialLastFm; diff --git a/types/react-icons/lib/ti/social-linkedin-circular.d.ts b/types/react-icons/lib/ti/social-linkedin-circular.d.ts index 32b5ba1add..9bddd861a6 100644 --- a/types/react-icons/lib/ti/social-linkedin-circular.d.ts +++ b/types/react-icons/lib/ti/social-linkedin-circular.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiSocialLinkedinCircular extends React.Component { } +declare class TiSocialLinkedinCircular extends React.Component { } +export = TiSocialLinkedinCircular; diff --git a/types/react-icons/lib/ti/social-linkedin.d.ts b/types/react-icons/lib/ti/social-linkedin.d.ts index 6a4f1b264b..70b5faa800 100644 --- a/types/react-icons/lib/ti/social-linkedin.d.ts +++ b/types/react-icons/lib/ti/social-linkedin.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiSocialLinkedin extends React.Component { } +declare class TiSocialLinkedin extends React.Component { } +export = TiSocialLinkedin; diff --git a/types/react-icons/lib/ti/social-pinterest-circular.d.ts b/types/react-icons/lib/ti/social-pinterest-circular.d.ts index 4278c08e25..114f038f36 100644 --- a/types/react-icons/lib/ti/social-pinterest-circular.d.ts +++ b/types/react-icons/lib/ti/social-pinterest-circular.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiSocialPinterestCircular extends React.Component { } +declare class TiSocialPinterestCircular extends React.Component { } +export = TiSocialPinterestCircular; diff --git a/types/react-icons/lib/ti/social-pinterest.d.ts b/types/react-icons/lib/ti/social-pinterest.d.ts index 1544d9d0ff..0d887417e1 100644 --- a/types/react-icons/lib/ti/social-pinterest.d.ts +++ b/types/react-icons/lib/ti/social-pinterest.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiSocialPinterest extends React.Component { } +declare class TiSocialPinterest extends React.Component { } +export = TiSocialPinterest; diff --git a/types/react-icons/lib/ti/social-skype-outline.d.ts b/types/react-icons/lib/ti/social-skype-outline.d.ts index 7bc87167e4..33c5d07b8a 100644 --- a/types/react-icons/lib/ti/social-skype-outline.d.ts +++ b/types/react-icons/lib/ti/social-skype-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiSocialSkypeOutline extends React.Component { } +declare class TiSocialSkypeOutline extends React.Component { } +export = TiSocialSkypeOutline; diff --git a/types/react-icons/lib/ti/social-skype.d.ts b/types/react-icons/lib/ti/social-skype.d.ts index 1c62817e98..43e9185d3a 100644 --- a/types/react-icons/lib/ti/social-skype.d.ts +++ b/types/react-icons/lib/ti/social-skype.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiSocialSkype extends React.Component { } +declare class TiSocialSkype extends React.Component { } +export = TiSocialSkype; diff --git a/types/react-icons/lib/ti/social-tumbler-circular.d.ts b/types/react-icons/lib/ti/social-tumbler-circular.d.ts index 1d5823a418..5dbf8a7f14 100644 --- a/types/react-icons/lib/ti/social-tumbler-circular.d.ts +++ b/types/react-icons/lib/ti/social-tumbler-circular.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiSocialTumblerCircular extends React.Component { } +declare class TiSocialTumblerCircular extends React.Component { } +export = TiSocialTumblerCircular; diff --git a/types/react-icons/lib/ti/social-tumbler.d.ts b/types/react-icons/lib/ti/social-tumbler.d.ts index 25826e8f98..151a8b0edd 100644 --- a/types/react-icons/lib/ti/social-tumbler.d.ts +++ b/types/react-icons/lib/ti/social-tumbler.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiSocialTumbler extends React.Component { } +declare class TiSocialTumbler extends React.Component { } +export = TiSocialTumbler; diff --git a/types/react-icons/lib/ti/social-twitter-circular.d.ts b/types/react-icons/lib/ti/social-twitter-circular.d.ts index 951a8a90ac..3ba0fd3df3 100644 --- a/types/react-icons/lib/ti/social-twitter-circular.d.ts +++ b/types/react-icons/lib/ti/social-twitter-circular.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiSocialTwitterCircular extends React.Component { } +declare class TiSocialTwitterCircular extends React.Component { } +export = TiSocialTwitterCircular; diff --git a/types/react-icons/lib/ti/social-twitter.d.ts b/types/react-icons/lib/ti/social-twitter.d.ts index 2f5d6e6fe2..27e930ba85 100644 --- a/types/react-icons/lib/ti/social-twitter.d.ts +++ b/types/react-icons/lib/ti/social-twitter.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiSocialTwitter extends React.Component { } +declare class TiSocialTwitter extends React.Component { } +export = TiSocialTwitter; diff --git a/types/react-icons/lib/ti/social-vimeo-circular.d.ts b/types/react-icons/lib/ti/social-vimeo-circular.d.ts index a161f647e2..bb11c7ae22 100644 --- a/types/react-icons/lib/ti/social-vimeo-circular.d.ts +++ b/types/react-icons/lib/ti/social-vimeo-circular.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiSocialVimeoCircular extends React.Component { } +declare class TiSocialVimeoCircular extends React.Component { } +export = TiSocialVimeoCircular; diff --git a/types/react-icons/lib/ti/social-vimeo.d.ts b/types/react-icons/lib/ti/social-vimeo.d.ts index 20a6fe4e96..2ac061e928 100644 --- a/types/react-icons/lib/ti/social-vimeo.d.ts +++ b/types/react-icons/lib/ti/social-vimeo.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiSocialVimeo extends React.Component { } +declare class TiSocialVimeo extends React.Component { } +export = TiSocialVimeo; diff --git a/types/react-icons/lib/ti/social-youtube-circular.d.ts b/types/react-icons/lib/ti/social-youtube-circular.d.ts index 5373438d05..c89a5225c9 100644 --- a/types/react-icons/lib/ti/social-youtube-circular.d.ts +++ b/types/react-icons/lib/ti/social-youtube-circular.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiSocialYoutubeCircular extends React.Component { } +declare class TiSocialYoutubeCircular extends React.Component { } +export = TiSocialYoutubeCircular; diff --git a/types/react-icons/lib/ti/social-youtube.d.ts b/types/react-icons/lib/ti/social-youtube.d.ts index 6040ccbd2e..e8316ce870 100644 --- a/types/react-icons/lib/ti/social-youtube.d.ts +++ b/types/react-icons/lib/ti/social-youtube.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiSocialYoutube extends React.Component { } +declare class TiSocialYoutube extends React.Component { } +export = TiSocialYoutube; diff --git a/types/react-icons/lib/ti/sort-alphabetically-outline.d.ts b/types/react-icons/lib/ti/sort-alphabetically-outline.d.ts index b822906e2c..65a5887ff5 100644 --- a/types/react-icons/lib/ti/sort-alphabetically-outline.d.ts +++ b/types/react-icons/lib/ti/sort-alphabetically-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiSortAlphabeticallyOutline extends React.Component { } +declare class TiSortAlphabeticallyOutline extends React.Component { } +export = TiSortAlphabeticallyOutline; diff --git a/types/react-icons/lib/ti/sort-alphabetically.d.ts b/types/react-icons/lib/ti/sort-alphabetically.d.ts index 75a9622393..0ffb8c6a56 100644 --- a/types/react-icons/lib/ti/sort-alphabetically.d.ts +++ b/types/react-icons/lib/ti/sort-alphabetically.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiSortAlphabetically extends React.Component { } +declare class TiSortAlphabetically extends React.Component { } +export = TiSortAlphabetically; diff --git a/types/react-icons/lib/ti/sort-numerically-outline.d.ts b/types/react-icons/lib/ti/sort-numerically-outline.d.ts index e279726f0c..d6de6bd6b3 100644 --- a/types/react-icons/lib/ti/sort-numerically-outline.d.ts +++ b/types/react-icons/lib/ti/sort-numerically-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiSortNumericallyOutline extends React.Component { } +declare class TiSortNumericallyOutline extends React.Component { } +export = TiSortNumericallyOutline; diff --git a/types/react-icons/lib/ti/sort-numerically.d.ts b/types/react-icons/lib/ti/sort-numerically.d.ts index d514d789f3..25f11dd093 100644 --- a/types/react-icons/lib/ti/sort-numerically.d.ts +++ b/types/react-icons/lib/ti/sort-numerically.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiSortNumerically extends React.Component { } +declare class TiSortNumerically extends React.Component { } +export = TiSortNumerically; diff --git a/types/react-icons/lib/ti/spanner-outline.d.ts b/types/react-icons/lib/ti/spanner-outline.d.ts index 424e07581a..eb560945b1 100644 --- a/types/react-icons/lib/ti/spanner-outline.d.ts +++ b/types/react-icons/lib/ti/spanner-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiSpannerOutline extends React.Component { } +declare class TiSpannerOutline extends React.Component { } +export = TiSpannerOutline; diff --git a/types/react-icons/lib/ti/spanner.d.ts b/types/react-icons/lib/ti/spanner.d.ts index bcfc2421d2..7603d7dae8 100644 --- a/types/react-icons/lib/ti/spanner.d.ts +++ b/types/react-icons/lib/ti/spanner.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiSpanner extends React.Component { } +declare class TiSpanner extends React.Component { } +export = TiSpanner; diff --git a/types/react-icons/lib/ti/spiral.d.ts b/types/react-icons/lib/ti/spiral.d.ts index f35df30ad0..c3c9eb04d0 100644 --- a/types/react-icons/lib/ti/spiral.d.ts +++ b/types/react-icons/lib/ti/spiral.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiSpiral extends React.Component { } +declare class TiSpiral extends React.Component { } +export = TiSpiral; diff --git a/types/react-icons/lib/ti/star-full-outline.d.ts b/types/react-icons/lib/ti/star-full-outline.d.ts index f1c40795ae..9e67992135 100644 --- a/types/react-icons/lib/ti/star-full-outline.d.ts +++ b/types/react-icons/lib/ti/star-full-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiStarFullOutline extends React.Component { } +declare class TiStarFullOutline extends React.Component { } +export = TiStarFullOutline; diff --git a/types/react-icons/lib/ti/star-half-outline.d.ts b/types/react-icons/lib/ti/star-half-outline.d.ts index 4e93ae767e..4e0da3b6b2 100644 --- a/types/react-icons/lib/ti/star-half-outline.d.ts +++ b/types/react-icons/lib/ti/star-half-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiStarHalfOutline extends React.Component { } +declare class TiStarHalfOutline extends React.Component { } +export = TiStarHalfOutline; diff --git a/types/react-icons/lib/ti/star-half.d.ts b/types/react-icons/lib/ti/star-half.d.ts index b9409290f7..cd469744f6 100644 --- a/types/react-icons/lib/ti/star-half.d.ts +++ b/types/react-icons/lib/ti/star-half.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiStarHalf extends React.Component { } +declare class TiStarHalf extends React.Component { } +export = TiStarHalf; diff --git a/types/react-icons/lib/ti/star-outline.d.ts b/types/react-icons/lib/ti/star-outline.d.ts index c5c504aec6..1478f12335 100644 --- a/types/react-icons/lib/ti/star-outline.d.ts +++ b/types/react-icons/lib/ti/star-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiStarOutline extends React.Component { } +declare class TiStarOutline extends React.Component { } +export = TiStarOutline; diff --git a/types/react-icons/lib/ti/star.d.ts b/types/react-icons/lib/ti/star.d.ts index 6c7cfe125b..c0002aca9e 100644 --- a/types/react-icons/lib/ti/star.d.ts +++ b/types/react-icons/lib/ti/star.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiStar extends React.Component { } +declare class TiStar extends React.Component { } +export = TiStar; diff --git a/types/react-icons/lib/ti/starburst-outline.d.ts b/types/react-icons/lib/ti/starburst-outline.d.ts index 621a50c206..1291dfdfaf 100644 --- a/types/react-icons/lib/ti/starburst-outline.d.ts +++ b/types/react-icons/lib/ti/starburst-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiStarburstOutline extends React.Component { } +declare class TiStarburstOutline extends React.Component { } +export = TiStarburstOutline; diff --git a/types/react-icons/lib/ti/starburst.d.ts b/types/react-icons/lib/ti/starburst.d.ts index 5deb65f908..84ddfdcda0 100644 --- a/types/react-icons/lib/ti/starburst.d.ts +++ b/types/react-icons/lib/ti/starburst.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiStarburst extends React.Component { } +declare class TiStarburst extends React.Component { } +export = TiStarburst; diff --git a/types/react-icons/lib/ti/stopwatch.d.ts b/types/react-icons/lib/ti/stopwatch.d.ts index 2433dc6b21..06dea660b4 100644 --- a/types/react-icons/lib/ti/stopwatch.d.ts +++ b/types/react-icons/lib/ti/stopwatch.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiStopwatch extends React.Component { } +declare class TiStopwatch extends React.Component { } +export = TiStopwatch; diff --git a/types/react-icons/lib/ti/support.d.ts b/types/react-icons/lib/ti/support.d.ts index 629e7c1596..e5721d0795 100644 --- a/types/react-icons/lib/ti/support.d.ts +++ b/types/react-icons/lib/ti/support.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiSupport extends React.Component { } +declare class TiSupport extends React.Component { } +export = TiSupport; diff --git a/types/react-icons/lib/ti/tabs-outline.d.ts b/types/react-icons/lib/ti/tabs-outline.d.ts index a3debbbc0a..c9a1fb6f1c 100644 --- a/types/react-icons/lib/ti/tabs-outline.d.ts +++ b/types/react-icons/lib/ti/tabs-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiTabsOutline extends React.Component { } +declare class TiTabsOutline extends React.Component { } +export = TiTabsOutline; diff --git a/types/react-icons/lib/ti/tag.d.ts b/types/react-icons/lib/ti/tag.d.ts index ec88c4ff81..98fd85c456 100644 --- a/types/react-icons/lib/ti/tag.d.ts +++ b/types/react-icons/lib/ti/tag.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiTag extends React.Component { } +declare class TiTag extends React.Component { } +export = TiTag; diff --git a/types/react-icons/lib/ti/tags.d.ts b/types/react-icons/lib/ti/tags.d.ts index a0e4a1a154..dd7602c55b 100644 --- a/types/react-icons/lib/ti/tags.d.ts +++ b/types/react-icons/lib/ti/tags.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiTags extends React.Component { } +declare class TiTags extends React.Component { } +export = TiTags; diff --git a/types/react-icons/lib/ti/th-large-outline.d.ts b/types/react-icons/lib/ti/th-large-outline.d.ts index 652b61667c..4d35e315af 100644 --- a/types/react-icons/lib/ti/th-large-outline.d.ts +++ b/types/react-icons/lib/ti/th-large-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiThLargeOutline extends React.Component { } +declare class TiThLargeOutline extends React.Component { } +export = TiThLargeOutline; diff --git a/types/react-icons/lib/ti/th-large.d.ts b/types/react-icons/lib/ti/th-large.d.ts index bde15e269a..140da5c2e8 100644 --- a/types/react-icons/lib/ti/th-large.d.ts +++ b/types/react-icons/lib/ti/th-large.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiThLarge extends React.Component { } +declare class TiThLarge extends React.Component { } +export = TiThLarge; diff --git a/types/react-icons/lib/ti/th-list-outline.d.ts b/types/react-icons/lib/ti/th-list-outline.d.ts index a906b52c05..7b7b0b60cd 100644 --- a/types/react-icons/lib/ti/th-list-outline.d.ts +++ b/types/react-icons/lib/ti/th-list-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiThListOutline extends React.Component { } +declare class TiThListOutline extends React.Component { } +export = TiThListOutline; diff --git a/types/react-icons/lib/ti/th-list.d.ts b/types/react-icons/lib/ti/th-list.d.ts index ebb6163713..115fba8852 100644 --- a/types/react-icons/lib/ti/th-list.d.ts +++ b/types/react-icons/lib/ti/th-list.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiThList extends React.Component { } +declare class TiThList extends React.Component { } +export = TiThList; diff --git a/types/react-icons/lib/ti/th-menu-outline.d.ts b/types/react-icons/lib/ti/th-menu-outline.d.ts index df09e4456f..95133b9279 100644 --- a/types/react-icons/lib/ti/th-menu-outline.d.ts +++ b/types/react-icons/lib/ti/th-menu-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiThMenuOutline extends React.Component { } +declare class TiThMenuOutline extends React.Component { } +export = TiThMenuOutline; diff --git a/types/react-icons/lib/ti/th-menu.d.ts b/types/react-icons/lib/ti/th-menu.d.ts index e03eadc959..86cdbe68a6 100644 --- a/types/react-icons/lib/ti/th-menu.d.ts +++ b/types/react-icons/lib/ti/th-menu.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiThMenu extends React.Component { } +declare class TiThMenu extends React.Component { } +export = TiThMenu; diff --git a/types/react-icons/lib/ti/th-small-outline.d.ts b/types/react-icons/lib/ti/th-small-outline.d.ts index 995c8c1f88..5698e7d2da 100644 --- a/types/react-icons/lib/ti/th-small-outline.d.ts +++ b/types/react-icons/lib/ti/th-small-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiThSmallOutline extends React.Component { } +declare class TiThSmallOutline extends React.Component { } +export = TiThSmallOutline; diff --git a/types/react-icons/lib/ti/th-small.d.ts b/types/react-icons/lib/ti/th-small.d.ts index 332f49b3f1..a62a010fb5 100644 --- a/types/react-icons/lib/ti/th-small.d.ts +++ b/types/react-icons/lib/ti/th-small.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiThSmall extends React.Component { } +declare class TiThSmall extends React.Component { } +export = TiThSmall; diff --git a/types/react-icons/lib/ti/thermometer.d.ts b/types/react-icons/lib/ti/thermometer.d.ts index 771653ad7b..215ed0b25f 100644 --- a/types/react-icons/lib/ti/thermometer.d.ts +++ b/types/react-icons/lib/ti/thermometer.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiThermometer extends React.Component { } +declare class TiThermometer extends React.Component { } +export = TiThermometer; diff --git a/types/react-icons/lib/ti/thumbs-down.d.ts b/types/react-icons/lib/ti/thumbs-down.d.ts index bb60d7aaa9..4c9dfec4db 100644 --- a/types/react-icons/lib/ti/thumbs-down.d.ts +++ b/types/react-icons/lib/ti/thumbs-down.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiThumbsDown extends React.Component { } +declare class TiThumbsDown extends React.Component { } +export = TiThumbsDown; diff --git a/types/react-icons/lib/ti/thumbs-ok.d.ts b/types/react-icons/lib/ti/thumbs-ok.d.ts index 610f5a2633..fa1dc24674 100644 --- a/types/react-icons/lib/ti/thumbs-ok.d.ts +++ b/types/react-icons/lib/ti/thumbs-ok.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiThumbsOk extends React.Component { } +declare class TiThumbsOk extends React.Component { } +export = TiThumbsOk; diff --git a/types/react-icons/lib/ti/thumbs-up.d.ts b/types/react-icons/lib/ti/thumbs-up.d.ts index 01747a7a8b..30f7d307c9 100644 --- a/types/react-icons/lib/ti/thumbs-up.d.ts +++ b/types/react-icons/lib/ti/thumbs-up.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiThumbsUp extends React.Component { } +declare class TiThumbsUp extends React.Component { } +export = TiThumbsUp; diff --git a/types/react-icons/lib/ti/tick-outline.d.ts b/types/react-icons/lib/ti/tick-outline.d.ts index 8c8fd0025c..a5e042c11f 100644 --- a/types/react-icons/lib/ti/tick-outline.d.ts +++ b/types/react-icons/lib/ti/tick-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiTickOutline extends React.Component { } +declare class TiTickOutline extends React.Component { } +export = TiTickOutline; diff --git a/types/react-icons/lib/ti/tick.d.ts b/types/react-icons/lib/ti/tick.d.ts index fc06a6fe51..3d87851d21 100644 --- a/types/react-icons/lib/ti/tick.d.ts +++ b/types/react-icons/lib/ti/tick.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiTick extends React.Component { } +declare class TiTick extends React.Component { } +export = TiTick; diff --git a/types/react-icons/lib/ti/ticket.d.ts b/types/react-icons/lib/ti/ticket.d.ts index 3248f1018c..3dae38b765 100644 --- a/types/react-icons/lib/ti/ticket.d.ts +++ b/types/react-icons/lib/ti/ticket.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiTicket extends React.Component { } +declare class TiTicket extends React.Component { } +export = TiTicket; diff --git a/types/react-icons/lib/ti/time.d.ts b/types/react-icons/lib/ti/time.d.ts index fd09903b66..8fa833fac0 100644 --- a/types/react-icons/lib/ti/time.d.ts +++ b/types/react-icons/lib/ti/time.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiTime extends React.Component { } +declare class TiTime extends React.Component { } +export = TiTime; diff --git a/types/react-icons/lib/ti/times-outline.d.ts b/types/react-icons/lib/ti/times-outline.d.ts index 52fd65e3ba..e5f1c26992 100644 --- a/types/react-icons/lib/ti/times-outline.d.ts +++ b/types/react-icons/lib/ti/times-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiTimesOutline extends React.Component { } +declare class TiTimesOutline extends React.Component { } +export = TiTimesOutline; diff --git a/types/react-icons/lib/ti/times.d.ts b/types/react-icons/lib/ti/times.d.ts index 1b60d77610..b919d26cd6 100644 --- a/types/react-icons/lib/ti/times.d.ts +++ b/types/react-icons/lib/ti/times.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiTimes extends React.Component { } +declare class TiTimes extends React.Component { } +export = TiTimes; diff --git a/types/react-icons/lib/ti/trash.d.ts b/types/react-icons/lib/ti/trash.d.ts index 2772532c76..fead6b7a52 100644 --- a/types/react-icons/lib/ti/trash.d.ts +++ b/types/react-icons/lib/ti/trash.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiTrash extends React.Component { } +declare class TiTrash extends React.Component { } +export = TiTrash; diff --git a/types/react-icons/lib/ti/tree.d.ts b/types/react-icons/lib/ti/tree.d.ts index a0f46de32e..7e65d3b2b3 100644 --- a/types/react-icons/lib/ti/tree.d.ts +++ b/types/react-icons/lib/ti/tree.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiTree extends React.Component { } +declare class TiTree extends React.Component { } +export = TiTree; diff --git a/types/react-icons/lib/ti/upload-outline.d.ts b/types/react-icons/lib/ti/upload-outline.d.ts index 541435783e..6231ad1817 100644 --- a/types/react-icons/lib/ti/upload-outline.d.ts +++ b/types/react-icons/lib/ti/upload-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiUploadOutline extends React.Component { } +declare class TiUploadOutline extends React.Component { } +export = TiUploadOutline; diff --git a/types/react-icons/lib/ti/upload.d.ts b/types/react-icons/lib/ti/upload.d.ts index 5875c4576b..9e8cef54e6 100644 --- a/types/react-icons/lib/ti/upload.d.ts +++ b/types/react-icons/lib/ti/upload.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiUpload extends React.Component { } +declare class TiUpload extends React.Component { } +export = TiUpload; diff --git a/types/react-icons/lib/ti/user-add-outline.d.ts b/types/react-icons/lib/ti/user-add-outline.d.ts index 80590bcdaa..a645e140a5 100644 --- a/types/react-icons/lib/ti/user-add-outline.d.ts +++ b/types/react-icons/lib/ti/user-add-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiUserAddOutline extends React.Component { } +declare class TiUserAddOutline extends React.Component { } +export = TiUserAddOutline; diff --git a/types/react-icons/lib/ti/user-add.d.ts b/types/react-icons/lib/ti/user-add.d.ts index 18d297cb33..86c405e8ca 100644 --- a/types/react-icons/lib/ti/user-add.d.ts +++ b/types/react-icons/lib/ti/user-add.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiUserAdd extends React.Component { } +declare class TiUserAdd extends React.Component { } +export = TiUserAdd; diff --git a/types/react-icons/lib/ti/user-delete-outline.d.ts b/types/react-icons/lib/ti/user-delete-outline.d.ts index 19f98f8eed..4410e4f2b4 100644 --- a/types/react-icons/lib/ti/user-delete-outline.d.ts +++ b/types/react-icons/lib/ti/user-delete-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiUserDeleteOutline extends React.Component { } +declare class TiUserDeleteOutline extends React.Component { } +export = TiUserDeleteOutline; diff --git a/types/react-icons/lib/ti/user-delete.d.ts b/types/react-icons/lib/ti/user-delete.d.ts index 2c12847a35..19908d00c4 100644 --- a/types/react-icons/lib/ti/user-delete.d.ts +++ b/types/react-icons/lib/ti/user-delete.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiUserDelete extends React.Component { } +declare class TiUserDelete extends React.Component { } +export = TiUserDelete; diff --git a/types/react-icons/lib/ti/user-outline.d.ts b/types/react-icons/lib/ti/user-outline.d.ts index 64e4678e0c..39ec3a974c 100644 --- a/types/react-icons/lib/ti/user-outline.d.ts +++ b/types/react-icons/lib/ti/user-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiUserOutline extends React.Component { } +declare class TiUserOutline extends React.Component { } +export = TiUserOutline; diff --git a/types/react-icons/lib/ti/user.d.ts b/types/react-icons/lib/ti/user.d.ts index a333a43892..ce655bf6a2 100644 --- a/types/react-icons/lib/ti/user.d.ts +++ b/types/react-icons/lib/ti/user.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiUser extends React.Component { } +declare class TiUser extends React.Component { } +export = TiUser; diff --git a/types/react-icons/lib/ti/vendor-android.d.ts b/types/react-icons/lib/ti/vendor-android.d.ts index 8075011cff..19874afcdf 100644 --- a/types/react-icons/lib/ti/vendor-android.d.ts +++ b/types/react-icons/lib/ti/vendor-android.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiVendorAndroid extends React.Component { } +declare class TiVendorAndroid extends React.Component { } +export = TiVendorAndroid; diff --git a/types/react-icons/lib/ti/vendor-apple.d.ts b/types/react-icons/lib/ti/vendor-apple.d.ts index d100e9de7f..bdd568dfd7 100644 --- a/types/react-icons/lib/ti/vendor-apple.d.ts +++ b/types/react-icons/lib/ti/vendor-apple.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiVendorApple extends React.Component { } +declare class TiVendorApple extends React.Component { } +export = TiVendorApple; diff --git a/types/react-icons/lib/ti/vendor-microsoft.d.ts b/types/react-icons/lib/ti/vendor-microsoft.d.ts index fc2393f6c8..864b8573b3 100644 --- a/types/react-icons/lib/ti/vendor-microsoft.d.ts +++ b/types/react-icons/lib/ti/vendor-microsoft.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiVendorMicrosoft extends React.Component { } +declare class TiVendorMicrosoft extends React.Component { } +export = TiVendorMicrosoft; diff --git a/types/react-icons/lib/ti/video-outline.d.ts b/types/react-icons/lib/ti/video-outline.d.ts index ff4ded254c..128e6dc56a 100644 --- a/types/react-icons/lib/ti/video-outline.d.ts +++ b/types/react-icons/lib/ti/video-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiVideoOutline extends React.Component { } +declare class TiVideoOutline extends React.Component { } +export = TiVideoOutline; diff --git a/types/react-icons/lib/ti/video.d.ts b/types/react-icons/lib/ti/video.d.ts index 59503c717e..8ade0ec0f8 100644 --- a/types/react-icons/lib/ti/video.d.ts +++ b/types/react-icons/lib/ti/video.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiVideo extends React.Component { } +declare class TiVideo extends React.Component { } +export = TiVideo; diff --git a/types/react-icons/lib/ti/volume-down.d.ts b/types/react-icons/lib/ti/volume-down.d.ts index cd012e5287..1b6bcb569d 100644 --- a/types/react-icons/lib/ti/volume-down.d.ts +++ b/types/react-icons/lib/ti/volume-down.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiVolumeDown extends React.Component { } +declare class TiVolumeDown extends React.Component { } +export = TiVolumeDown; diff --git a/types/react-icons/lib/ti/volume-mute.d.ts b/types/react-icons/lib/ti/volume-mute.d.ts index df323c2347..8d3c6884c0 100644 --- a/types/react-icons/lib/ti/volume-mute.d.ts +++ b/types/react-icons/lib/ti/volume-mute.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiVolumeMute extends React.Component { } +declare class TiVolumeMute extends React.Component { } +export = TiVolumeMute; diff --git a/types/react-icons/lib/ti/volume-up.d.ts b/types/react-icons/lib/ti/volume-up.d.ts index 443c4bb060..47aaba1cb8 100644 --- a/types/react-icons/lib/ti/volume-up.d.ts +++ b/types/react-icons/lib/ti/volume-up.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiVolumeUp extends React.Component { } +declare class TiVolumeUp extends React.Component { } +export = TiVolumeUp; diff --git a/types/react-icons/lib/ti/volume.d.ts b/types/react-icons/lib/ti/volume.d.ts index ebbe9bac7a..51aaf0b33b 100644 --- a/types/react-icons/lib/ti/volume.d.ts +++ b/types/react-icons/lib/ti/volume.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiVolume extends React.Component { } +declare class TiVolume extends React.Component { } +export = TiVolume; diff --git a/types/react-icons/lib/ti/warning-outline.d.ts b/types/react-icons/lib/ti/warning-outline.d.ts index 66d630a33d..5e5ebbaa1e 100644 --- a/types/react-icons/lib/ti/warning-outline.d.ts +++ b/types/react-icons/lib/ti/warning-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiWarningOutline extends React.Component { } +declare class TiWarningOutline extends React.Component { } +export = TiWarningOutline; diff --git a/types/react-icons/lib/ti/warning.d.ts b/types/react-icons/lib/ti/warning.d.ts index 394d46e315..2aeb57fdda 100644 --- a/types/react-icons/lib/ti/warning.d.ts +++ b/types/react-icons/lib/ti/warning.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiWarning extends React.Component { } +declare class TiWarning extends React.Component { } +export = TiWarning; diff --git a/types/react-icons/lib/ti/watch.d.ts b/types/react-icons/lib/ti/watch.d.ts index 191379a23f..4734c5b196 100644 --- a/types/react-icons/lib/ti/watch.d.ts +++ b/types/react-icons/lib/ti/watch.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiWatch extends React.Component { } +declare class TiWatch extends React.Component { } +export = TiWatch; diff --git a/types/react-icons/lib/ti/waves-outline.d.ts b/types/react-icons/lib/ti/waves-outline.d.ts index 814f0bb4bd..1557bbc07b 100644 --- a/types/react-icons/lib/ti/waves-outline.d.ts +++ b/types/react-icons/lib/ti/waves-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiWavesOutline extends React.Component { } +declare class TiWavesOutline extends React.Component { } +export = TiWavesOutline; diff --git a/types/react-icons/lib/ti/waves.d.ts b/types/react-icons/lib/ti/waves.d.ts index 10d88f9f9c..5a2862cc02 100644 --- a/types/react-icons/lib/ti/waves.d.ts +++ b/types/react-icons/lib/ti/waves.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiWaves extends React.Component { } +declare class TiWaves extends React.Component { } +export = TiWaves; diff --git a/types/react-icons/lib/ti/weather-cloudy.d.ts b/types/react-icons/lib/ti/weather-cloudy.d.ts index f0a7569133..198d322ec7 100644 --- a/types/react-icons/lib/ti/weather-cloudy.d.ts +++ b/types/react-icons/lib/ti/weather-cloudy.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiWeatherCloudy extends React.Component { } +declare class TiWeatherCloudy extends React.Component { } +export = TiWeatherCloudy; diff --git a/types/react-icons/lib/ti/weather-downpour.d.ts b/types/react-icons/lib/ti/weather-downpour.d.ts index 945dd0b196..b7b9b61962 100644 --- a/types/react-icons/lib/ti/weather-downpour.d.ts +++ b/types/react-icons/lib/ti/weather-downpour.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiWeatherDownpour extends React.Component { } +declare class TiWeatherDownpour extends React.Component { } +export = TiWeatherDownpour; diff --git a/types/react-icons/lib/ti/weather-night.d.ts b/types/react-icons/lib/ti/weather-night.d.ts index 72b8e61ebd..afad50979f 100644 --- a/types/react-icons/lib/ti/weather-night.d.ts +++ b/types/react-icons/lib/ti/weather-night.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiWeatherNight extends React.Component { } +declare class TiWeatherNight extends React.Component { } +export = TiWeatherNight; diff --git a/types/react-icons/lib/ti/weather-partly-sunny.d.ts b/types/react-icons/lib/ti/weather-partly-sunny.d.ts index 9acece9fcf..cb328b5118 100644 --- a/types/react-icons/lib/ti/weather-partly-sunny.d.ts +++ b/types/react-icons/lib/ti/weather-partly-sunny.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiWeatherPartlySunny extends React.Component { } +declare class TiWeatherPartlySunny extends React.Component { } +export = TiWeatherPartlySunny; diff --git a/types/react-icons/lib/ti/weather-shower.d.ts b/types/react-icons/lib/ti/weather-shower.d.ts index d96b321350..3ec7cc4daf 100644 --- a/types/react-icons/lib/ti/weather-shower.d.ts +++ b/types/react-icons/lib/ti/weather-shower.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiWeatherShower extends React.Component { } +declare class TiWeatherShower extends React.Component { } +export = TiWeatherShower; diff --git a/types/react-icons/lib/ti/weather-snow.d.ts b/types/react-icons/lib/ti/weather-snow.d.ts index 8e274c5f85..e859e5994c 100644 --- a/types/react-icons/lib/ti/weather-snow.d.ts +++ b/types/react-icons/lib/ti/weather-snow.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiWeatherSnow extends React.Component { } +declare class TiWeatherSnow extends React.Component { } +export = TiWeatherSnow; diff --git a/types/react-icons/lib/ti/weather-stormy.d.ts b/types/react-icons/lib/ti/weather-stormy.d.ts index 0fe69851dc..bd7a8efe19 100644 --- a/types/react-icons/lib/ti/weather-stormy.d.ts +++ b/types/react-icons/lib/ti/weather-stormy.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiWeatherStormy extends React.Component { } +declare class TiWeatherStormy extends React.Component { } +export = TiWeatherStormy; diff --git a/types/react-icons/lib/ti/weather-sunny.d.ts b/types/react-icons/lib/ti/weather-sunny.d.ts index 96bb430093..ce0d40f2a0 100644 --- a/types/react-icons/lib/ti/weather-sunny.d.ts +++ b/types/react-icons/lib/ti/weather-sunny.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiWeatherSunny extends React.Component { } +declare class TiWeatherSunny extends React.Component { } +export = TiWeatherSunny; diff --git a/types/react-icons/lib/ti/weather-windy-cloudy.d.ts b/types/react-icons/lib/ti/weather-windy-cloudy.d.ts index d28624e436..c13e223667 100644 --- a/types/react-icons/lib/ti/weather-windy-cloudy.d.ts +++ b/types/react-icons/lib/ti/weather-windy-cloudy.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiWeatherWindyCloudy extends React.Component { } +declare class TiWeatherWindyCloudy extends React.Component { } +export = TiWeatherWindyCloudy; diff --git a/types/react-icons/lib/ti/weather-windy.d.ts b/types/react-icons/lib/ti/weather-windy.d.ts index e5808895f1..ca7cad2b89 100644 --- a/types/react-icons/lib/ti/weather-windy.d.ts +++ b/types/react-icons/lib/ti/weather-windy.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiWeatherWindy extends React.Component { } +declare class TiWeatherWindy extends React.Component { } +export = TiWeatherWindy; diff --git a/types/react-icons/lib/ti/wi-fi-outline.d.ts b/types/react-icons/lib/ti/wi-fi-outline.d.ts index 54c27adcb2..4095d20411 100644 --- a/types/react-icons/lib/ti/wi-fi-outline.d.ts +++ b/types/react-icons/lib/ti/wi-fi-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiWiFiOutline extends React.Component { } +declare class TiWiFiOutline extends React.Component { } +export = TiWiFiOutline; diff --git a/types/react-icons/lib/ti/wi-fi.d.ts b/types/react-icons/lib/ti/wi-fi.d.ts index 46cc54f2f5..cb4b4e788e 100644 --- a/types/react-icons/lib/ti/wi-fi.d.ts +++ b/types/react-icons/lib/ti/wi-fi.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiWiFi extends React.Component { } +declare class TiWiFi extends React.Component { } +export = TiWiFi; diff --git a/types/react-icons/lib/ti/wine.d.ts b/types/react-icons/lib/ti/wine.d.ts index aab4d0d43e..fadc412a6b 100644 --- a/types/react-icons/lib/ti/wine.d.ts +++ b/types/react-icons/lib/ti/wine.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiWine extends React.Component { } +declare class TiWine extends React.Component { } +export = TiWine; diff --git a/types/react-icons/lib/ti/world-outline.d.ts b/types/react-icons/lib/ti/world-outline.d.ts index deb94cd766..e7b86d925a 100644 --- a/types/react-icons/lib/ti/world-outline.d.ts +++ b/types/react-icons/lib/ti/world-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiWorldOutline extends React.Component { } +declare class TiWorldOutline extends React.Component { } +export = TiWorldOutline; diff --git a/types/react-icons/lib/ti/world.d.ts b/types/react-icons/lib/ti/world.d.ts index 54d7682959..259dbe97a1 100644 --- a/types/react-icons/lib/ti/world.d.ts +++ b/types/react-icons/lib/ti/world.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiWorld extends React.Component { } +declare class TiWorld extends React.Component { } +export = TiWorld; diff --git a/types/react-icons/lib/ti/zoom-in-outline.d.ts b/types/react-icons/lib/ti/zoom-in-outline.d.ts index 9f0c9c98a7..b53327ba70 100644 --- a/types/react-icons/lib/ti/zoom-in-outline.d.ts +++ b/types/react-icons/lib/ti/zoom-in-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiZoomInOutline extends React.Component { } +declare class TiZoomInOutline extends React.Component { } +export = TiZoomInOutline; diff --git a/types/react-icons/lib/ti/zoom-in.d.ts b/types/react-icons/lib/ti/zoom-in.d.ts index 4b9716467b..47645f8cee 100644 --- a/types/react-icons/lib/ti/zoom-in.d.ts +++ b/types/react-icons/lib/ti/zoom-in.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiZoomIn extends React.Component { } +declare class TiZoomIn extends React.Component { } +export = TiZoomIn; diff --git a/types/react-icons/lib/ti/zoom-out-outline.d.ts b/types/react-icons/lib/ti/zoom-out-outline.d.ts index bdb15bbf3f..c5db3791a2 100644 --- a/types/react-icons/lib/ti/zoom-out-outline.d.ts +++ b/types/react-icons/lib/ti/zoom-out-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiZoomOutOutline extends React.Component { } +declare class TiZoomOutOutline extends React.Component { } +export = TiZoomOutOutline; diff --git a/types/react-icons/lib/ti/zoom-out.d.ts b/types/react-icons/lib/ti/zoom-out.d.ts index e6b1bb1bd3..50b5101667 100644 --- a/types/react-icons/lib/ti/zoom-out.d.ts +++ b/types/react-icons/lib/ti/zoom-out.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiZoomOut extends React.Component { } +declare class TiZoomOut extends React.Component { } +export = TiZoomOut; diff --git a/types/react-icons/lib/ti/zoom-outline.d.ts b/types/react-icons/lib/ti/zoom-outline.d.ts index 066a240186..b1e979f087 100644 --- a/types/react-icons/lib/ti/zoom-outline.d.ts +++ b/types/react-icons/lib/ti/zoom-outline.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiZoomOutline extends React.Component { } +declare class TiZoomOutline extends React.Component { } +export = TiZoomOutline; diff --git a/types/react-icons/lib/ti/zoom.d.ts b/types/react-icons/lib/ti/zoom.d.ts index 74bda099c6..55283917ac 100644 --- a/types/react-icons/lib/ti/zoom.d.ts +++ b/types/react-icons/lib/ti/zoom.d.ts @@ -1,3 +1,4 @@ import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; -export default class TiZoom extends React.Component { } +declare class TiZoom extends React.Component { } +export = TiZoom; diff --git a/types/react-icons/react-icons-tests.tsx b/types/react-icons/react-icons-tests.tsx index f6a0414dba..8cfacdbf4e 100644 --- a/types/react-icons/react-icons-tests.tsx +++ b/types/react-icons/react-icons-tests.tsx @@ -1,7 +1,7 @@ import * as React from 'react'; import FaBeer from 'react-icons/fa/beer'; import { FaExclamation } from 'react-icons/fa'; -import FaCog from 'react-icons/lib/fa/cog'; +import FaCog = require('react-icons/lib/fa/cog'); import { FaPowerOff } from 'react-icons/lib/fa'; class Question extends React.Component { diff --git a/types/react-icons/scripts/generate.ts b/types/react-icons/scripts/generate.ts index 604de34842..035516e57e 100644 --- a/types/react-icons/scripts/generate.ts +++ b/types/react-icons/scripts/generate.ts @@ -24,10 +24,10 @@ for (const { group } of allModules) { for (const { group, ids } of allModules) { for (const id of ids) { writeFileSync(getOutFile(group, `${id}.d.ts`), iconFile(getModuleName(group, id)), 'utf-8'); - writeFileSync(getOutLibFile(group, `${id}.d.ts`), iconFile(getModuleName(group, id)), 'utf-8'); + writeFileSync(getOutLibFile(group, `${id}.d.ts`), iconFile(getModuleName(group, id), true), 'utf-8'); } writeFileSync(getOutFile(group, 'index.d.ts'), indexFile(group, ids), 'utf-8'); - writeFileSync(getOutLibFile(group, 'index.d.ts'), indexFile(group, ids), 'utf-8'); + writeFileSync(getOutLibFile(group, 'index.d.ts'), indexFile(group, ids, true), 'utf-8'); } function getOutDir(group: string): string { @@ -46,15 +46,23 @@ function getOutLibFile(folder: string, fileName: string): string { return joinPaths(getOutLibDir(folder), fileName); } -function iconFile(name: string): string { +function iconFile(name: string, lib: boolean = false): string { + if (lib) { + return `import * as React from 'react'; +import { IconBaseProps } from 'react-icon-base'; +declare class ${name} extends React.Component { } +export = ${name}; +`; + } + return `import * as React from 'react'; import { IconBaseProps } from 'react-icon-base'; export default class ${name} extends React.Component { } `; } -function indexFile(folder: string, ids: string[]): string { - const reExports = ids.map(id => `export { default as ${getModuleName(folder, id)} } from "./${id}";`); +function indexFile(folder: string, ids: string[], lib: boolean = false): string { + const reExports = ids.map(id => `export { default as ${getModuleName(folder, id)} } from "${lib ? `../../${folder}` : "."}/${id}";`); return reExports.join("\n") + "\n"; } From 04a54cc722da211473f27bcfcce6a6b95e811c75 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Linus=20Unneb=C3=A4ck?= Date: Tue, 17 Oct 2017 15:18:35 +0100 Subject: [PATCH 113/506] [stripe-node] Add more subscription list options (#20553) * [stripe-node] add billing to ISubscriptionListOptions * [stripe-node] add status to ISubscriptionListOptions * [stripe-node] move SubscriptionStatus to separate type * [stripe-node] drop patch value from version --- types/stripe-node/index.d.ts | 24 +++++++++++++++++++----- 1 file changed, 19 insertions(+), 5 deletions(-) diff --git a/types/stripe-node/index.d.ts b/types/stripe-node/index.d.ts index 9bf45d3411..daa91487f7 100644 --- a/types/stripe-node/index.d.ts +++ b/types/stripe-node/index.d.ts @@ -1,6 +1,9 @@ -// Type definitions for stripe-node 4.7.0 +// Type definitions for stripe-node 4.7 // Project: https://github.com/stripe/stripe-node/ -// Definitions by: William Johnston , Peter Harris , Sampson Oliver +// Definitions by: William Johnston +// Peter Harris +// Sampson Oliver +// Linus Unnebäck // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// @@ -72,7 +75,7 @@ declare namespace StripeNode { products: resources.Products; skus: resources.SKUs; webhooks: resources.WebHooks; - + setHost(host: string): void; setHost(host: string, port: string|number): void; setHost(host: string, port: string|number, protocol: string): void; @@ -4020,6 +4023,7 @@ declare namespace StripeNode { } namespace subscriptions { + type SubscriptionStatus = "trialing" | "active" | "past_due" | "canceled" | "unpaid"; /** * Subscriptions allow you to charge a customer's card on a recurring basis. A subscription ties a customer to * a particular plan you've created: https://stripe.com/docs/api#create_plan @@ -4102,7 +4106,7 @@ declare namespace StripeNode { * card details will not lead to Stripe retrying the latest invoice.). After receiving updated card details from a customer, * you may choose to reopen and pay their closed invoices. */ - status: "trialing" | "active" | "past_due" | "canceled" | "unpaid"; + status: SubscriptionStatus; /** * If provided, each invoice created by this subscription will apply the tax rate, increasing the amount billed to the customer. @@ -4237,6 +4241,11 @@ declare namespace StripeNode { } interface ISubscriptionListOptions extends IListOptionsCreated { + /** + * The billing mode of the subscriptions to retrieve. + */ + billing?: "charge_automatically" | "send_invoice"; + /** * The ID of the customer whose subscriptions will be retrieved */ @@ -4246,6 +4255,11 @@ declare namespace StripeNode { * The ID of the plan whose subscriptions will be retrieved */ plan?: string; + + /** + * The status of the subscriptions to retrieve. + */ + status?: SubscriptionStatus | "all"; } } @@ -6293,7 +6307,7 @@ declare namespace StripeNode { del(skuId: string, options: HeaderOptions, response?: IResponseFn): Promise; del(skuId: string, response?: IResponseFn): Promise; } - + class WebHooks { constructEvent(requestBody: any, signature: string | string[], endpointSecret: string): webhooks.StripeWebhookEvent; } From 8ef0c39ccf2374bd4bb375710c990a73ec761b29 Mon Sep 17 00:00:00 2001 From: Piotr Roszatycki Date: Tue, 17 Oct 2017 16:44:21 +0200 Subject: [PATCH 114/506] node: process.stdin is a stream.Readable and process.stdout is a stream.Writable (#20493) * Readable.wrap returns this * Add missing properties to interface ReadableStream and WritableStream; change interfaces in fs, dgram and net into classes * Move all additional properties from ReadableStream interface to ReadStream interface (and Write...) * hexo-fs should re-export classes from 'fs' * process.stdin._destroy is a function --- types/firebird/firebird-tests.ts | 2 +- types/firebird/index.d.ts | 31 +++++-------------------------- types/hexo-fs/index.d.ts | 4 +--- types/node/index.d.ts | 31 ++++++++++++++++++++----------- types/node/node-tests.ts | 30 ++++++++++++++++++++++++++++++ types/vinyl/vinyl-tests.ts | 4 ---- 6 files changed, 57 insertions(+), 45 deletions(-) diff --git a/types/firebird/firebird-tests.ts b/types/firebird/firebird-tests.ts index 96600a7f2d..d248fe427c 100644 --- a/types/firebird/firebird-tests.ts +++ b/types/firebird/firebird-tests.ts @@ -119,4 +119,4 @@ blob._write(buffer, 10); blob._write(buffer, 10, (err: Error | null) => {}); /* Stream */ -const strm: NodeJS.ReadWriteStream = new fb.Stream(blob); +const strm = new fb.Stream(blob); diff --git a/types/firebird/index.d.ts b/types/firebird/index.d.ts index 430a3b3b60..eaa20682a6 100644 --- a/types/firebird/index.d.ts +++ b/types/firebird/index.d.ts @@ -12,6 +12,8 @@ * Original document is [here](https://www.npmjs.com/package/firebird). */ declare module 'firebird' { + import * as stream from 'stream'; + /** * @see createConnection() method will create Firebird Connection object for you */ @@ -453,24 +455,14 @@ declare module 'firebird' { * You may pipe strm to/from NodeJS Stream objects (fs or socket). * You may also look at [NodeJS Streams reference](https://nodejs.org/api/stream.html). */ - class Stream implements NodeJS.ReadWriteStream { + class Stream extends stream.Stream { constructor(blob: FBBlob); - - /* Following lines is JUST AS NodeJS.ReadStream, NodeJS.WriteStream, and NodeJS.Emmiter */ /* tslint:disable */ /* NodeJS.ReadStream */ readable: boolean; - read(size?: number): string | Buffer; - setEncoding(encoding: string | null): this; pause(): this; resume(): this; - isPaused(): boolean; - pipe(destination: T, options?: { end?: boolean; }): T; - unpipe(destination?: T): this; - unshift(chunk: string): void; - unshift(chunk: Buffer): void; - wrap(oldStream: NodeJS.ReadableStream): NodeJS.ReadableStream; /* NodeJS.WriteStream */ writable: boolean; @@ -480,22 +472,9 @@ declare module 'firebird' { end(buffer: Buffer, cb?: Function): void; end(str: string, cb?: Function): void; end(str: string, encoding?: string, cb?: Function): void; - - /* EventEmitter */ - addListener(event: string | symbol, listener: Function): this; - on(event: string | symbol, listener: Function): this; - once(event: string | symbol, listener: Function): this; - removeListener(event: string | symbol, listener: Function): this; - removeAllListeners(event?: string | symbol): this; - setMaxListeners(n: number): this; - getMaxListeners(): number; - listeners(event: string | symbol): Function[]; - emit(event: string | symbol, ...args: any[]): boolean; - listenerCount(type: string | symbol): number; - prependListener(event: string | symbol, listener: Function): this; - prependOnceListener(event: string | symbol, listener: Function): this; - eventNames(): (string | symbol)[]; + destroy(error?: Error): void; /* tslint:enable */ + check_destroyed(): void; } } diff --git a/types/hexo-fs/index.d.ts b/types/hexo-fs/index.d.ts index 896fbc24eb..237071d7c6 100644 --- a/types/hexo-fs/index.d.ts +++ b/types/hexo-fs/index.d.ts @@ -427,9 +427,7 @@ export function writeFile( export function writeFileSync(path: string, data: any, options?: string | { encoding?: string | null; mode?: string | number; flag?: string }): void; // Static classes -export let Stats: Stats; -export let ReadStream: ReadStream; -export let WriteStream: WriteStream; +export { Stats, ReadStream, WriteStream } from 'graceful-fs'; // util export function escapeEOL(str: string): string; diff --git a/types/node/index.d.ts b/types/node/index.d.ts index 6189d0b486..7f619fe377 100644 --- a/types/node/index.d.ts +++ b/types/node/index.d.ts @@ -345,7 +345,7 @@ declare namespace NodeJS { unpipe(destination?: T): this; unshift(chunk: string): void; unshift(chunk: Buffer): void; - wrap(oldStream: ReadableStream): ReadableStream; + wrap(oldStream: ReadableStream): this; } export interface WritableStream extends EventEmitter { @@ -438,10 +438,21 @@ declare namespace NodeJS { export interface WriteStream extends Socket { columns?: number; rows?: number; + _write(chunk: any, encoding: string, callback: Function): void; + _destroy(err: Error, callback: Function): void; + _final(callback: Function): void; + setDefaultEncoding(encoding: string): this; + cork(): void; + uncork(): void; + destroy(error?: Error): void; } export interface ReadStream extends Socket { isRaw?: boolean; setRawMode?(mode: boolean): void; + _read(size: number): void; + _destroy(err: Error, callback: Function): void; + push(chunk: any, encoding?: string): boolean; + destroy(error?: Error): void; } export interface Process extends EventEmitter { @@ -2430,7 +2441,9 @@ declare module "net" { export type SocketConnectOpts = TcpSocketConnectOpts | IpcSocketConnectOpts; - export interface Socket extends stream.Duplex { + export class Socket extends stream.Duplex { + constructor(options?: { fd?: number; allowHalfOpen?: boolean; readable?: boolean; writable?: boolean; }); + // Extended base methods write(buffer: Buffer): boolean; write(buffer: Buffer, cb?: Function): boolean; @@ -2544,10 +2557,6 @@ declare module "net" { prependOnceListener(event: "timeout", listener: () => void): this; } - export var Socket: { - new(options?: SocketConstructorOpts): Socket; - }; - export interface ListenOptions { port?: number; host?: string; @@ -2679,7 +2688,7 @@ declare module "dgram" { export function createSocket(type: SocketType, callback?: (msg: Buffer, rinfo: RemoteInfo) => void): Socket; export function createSocket(options: SocketOptions, callback?: (msg: Buffer, rinfo: RemoteInfo) => void): Socket; - export interface Socket extends events.EventEmitter { + export class Socket extends events.EventEmitter { send(msg: Buffer | String | any[], port: number, address: string, callback?: (error: Error | null, bytes: number) => void): void; send(msg: Buffer | String | any[], offset: number, length: number, port: number, address: string, callback?: (error: Error | null, bytes: number) => void): void; bind(port?: number, address?: string, callback?: () => void): void; @@ -2757,7 +2766,7 @@ declare module "fs" { */ export type PathLike = string | Buffer | URL; - export interface Stats { + export class Stats { isFile(): boolean; isDirectory(): boolean; isBlockDevice(): boolean; @@ -2814,7 +2823,7 @@ declare module "fs" { prependOnceListener(event: "error", listener: (error: Error) => void): this; } - export interface ReadStream extends stream.Readable { + export class ReadStream extends stream.Readable { close(): void; destroy(): void; bytesRead: number; @@ -2846,7 +2855,7 @@ declare module "fs" { prependOnceListener(event: "close", listener: () => void): this; } - export interface WriteStream extends stream.Writable { + export class WriteStream extends stream.Writable { close(): void; bytesWritten: number; path: string | Buffer; @@ -5084,7 +5093,7 @@ declare module "stream" { isPaused(): boolean; unpipe(destination?: T): this; unshift(chunk: any): void; - wrap(oldStream: NodeJS.ReadableStream): Readable; + wrap(oldStream: NodeJS.ReadableStream): this; push(chunk: any, encoding?: string): boolean; _destroy(err: Error, callback: Function): void; destroy(error?: Error): void; diff --git a/types/node/node-tests.ts b/types/node/node-tests.ts index 0e2823ac1c..7883ef10f2 100644 --- a/types/node/node-tests.ts +++ b/types/node/node-tests.ts @@ -2066,6 +2066,36 @@ namespace child_process_tests { let _sendHandle: net.Socket | net.Server = sendHandle; }); } + { + process.stdin.setEncoding('utf8'); + + process.stdin.on('readable', () => { + const chunk = process.stdin.read(); + if (chunk !== null) { + process.stdout.write(`data: ${chunk}`); + } + }); + + process.stdin.on('end', () => { + process.stdout.write('end'); + }); + + process.stdin.pipe(process.stdout); + + console.log(process.stdin.isTTY); + console.log(process.stdout.isTTY); + + console.log(process.stdin instanceof net.Socket); + console.log(process.stdout instanceof fs.ReadStream); + + var stdin: stream.Readable = process.stdin; + console.log(stdin instanceof net.Socket); + console.log(stdin instanceof fs.ReadStream); + + var stdout: stream.Writable = process.stdout; + console.log(stdout instanceof net.Socket); + console.log(stdout instanceof fs.WriteStream); + } } ////////////////////////////////////////////////////////////////////// diff --git a/types/vinyl/vinyl-tests.ts b/types/vinyl/vinyl-tests.ts index f9e71dd532..2fe95e9404 100644 --- a/types/vinyl/vinyl-tests.ts +++ b/types/vinyl/vinyl-tests.ts @@ -24,10 +24,6 @@ interface TestFile extends File { _base?: string; } -declare module 'fs' { - class Stats { } -} - var pipe: (streams: [NodeJS.ReadableStream, NodeJS.WritableStream], cb: (err?: Error) => void) => void = miss.pipe; var from: (values: any[]) => NodeJS.ReadableStream = miss.from; var concat: (fn: (d: Buffer) => void) => NodeJS.WritableStream = miss.concat; From 0905b3d2f96c76f1d56df79616da56a436318bda Mon Sep 17 00:00:00 2001 From: Alessandro Vergani Date: Tue, 17 Oct 2017 17:00:05 +0200 Subject: [PATCH 115/506] Add copyFile to node file system (#20185) --- types/node/index.d.ts | 63 ++++++++++++++++++++++++++++++++++++---- types/node/node-tests.ts | 10 +++++++ 2 files changed, 67 insertions(+), 6 deletions(-) diff --git a/types/node/index.d.ts b/types/node/index.d.ts index 7f619fe377..6455482803 100644 --- a/types/node/index.d.ts +++ b/types/node/index.d.ts @@ -108,10 +108,10 @@ interface NodeRequire extends NodeRequireFunction { } interface NodeExtensions { - '.js': (m: NodeModule, filename: string) => any; - '.json': (m: NodeModule, filename: string) => any; - '.node': (m: NodeModule, filename: string) => any; - [ext: string]: (m: NodeModule, filename: string) => any; + '.js': (m: NodeModule, filename: string) => any; + '.json': (m: NodeModule, filename: string) => any; + '.node': (m: NodeModule, filename: string) => any; + [ext: string]: (m: NodeModule, filename: string) => any; } declare var require: NodeRequire; @@ -4260,6 +4260,9 @@ declare module "fs" { /** Constant for fs.Stats mode property for determining access permissions for a file. File mode indicating executable by others. */ export const S_IXOTH: number; + + /** Constant for fs.copyFile. Flag indicating the destination file should not be overwritten if it already exists. */ + export const COPYFILE_EXCL: number; } /** @@ -4342,6 +4345,54 @@ declare module "fs" { * @param fd A file descriptor. */ export function fdatasyncSync(fd: number): void; + + /** + * Asynchronously copies src to dest. By default, dest is overwritten if it already exists. + * No arguments other than a possible exception are given to the callback function. + * Node.js makes no guarantees about the atomicity of the copy operation. + * If an error occurs after the destination file has been opened for writing, Node.js will attempt + * to remove the destination. + * @param src A path to the source file. + * @param dest A path to the destination file. + */ + export function copyFile(src: PathLike, dest: PathLike, callback: (err: NodeJS.ErrnoException) => void): void; + /** + * Asynchronously copies src to dest. By default, dest is overwritten if it already exists. + * No arguments other than a possible exception are given to the callback function. + * Node.js makes no guarantees about the atomicity of the copy operation. + * If an error occurs after the destination file has been opened for writing, Node.js will attempt + * to remove the destination. + * @param src A path to the source file. + * @param dest A path to the destination file. + * @param flags An integer that specifies the behavior of the copy operation. The only supported flag is fs.constants.COPYFILE_EXCL, which causes the copy operation to fail if dest already exists. + */ + export function copyFile(src: PathLike, dest: PathLike, flags: number, callback: (err: NodeJS.ErrnoException) => void): void; + + // NOTE: This namespace provides design-time support for util.promisify. Exported members do not exist at runtime. + export namespace copyFile { + /** + * Asynchronously copies src to dest. By default, dest is overwritten if it already exists. + * No arguments other than a possible exception are given to the callback function. + * Node.js makes no guarantees about the atomicity of the copy operation. + * If an error occurs after the destination file has been opened for writing, Node.js will attempt + * to remove the destination. + * @param src A path to the source file. + * @param dest A path to the destination file. + * @param flags An optional integer that specifies the behavior of the copy operation. The only supported flag is fs.constants.COPYFILE_EXCL, which causes the copy operation to fail if dest already exists. + */ + export function __promisify__(src: PathLike, dst: PathLike, flags?: number): Promise; + } + + /** + * Synchronously copies src to dest. By default, dest is overwritten if it already exists. + * Node.js makes no guarantees about the atomicity of the copy operation. + * If an error occurs after the destination file has been opened for writing, Node.js will attempt + * to remove the destination. + * @param src A path to the source file. + * @param dest A path to the destination file. + * @param flags An optional integer that specifies the behavior of the copy operation. The only supported flag is fs.constants.COPYFILE_EXCL, which causes the copy operation to fail if dest already exists. + */ + export function copyFileSync(src: PathLike, dest: PathLike, flags?: number): void; } declare module "path" { @@ -6404,8 +6455,8 @@ declare module "http2" { export type ClientSessionOptions = SessionOptions; export type ServerSessionOptions = SessionOptions; - export interface SecureClientSessionOptions extends ClientSessionOptions, tls.ConnectionOptions {} - export interface SecureServerSessionOptions extends ServerSessionOptions, tls.TlsOptions {} + export interface SecureClientSessionOptions extends ClientSessionOptions, tls.ConnectionOptions { } + export interface SecureServerSessionOptions extends ServerSessionOptions, tls.TlsOptions { } export interface ServerOptions extends ServerSessionOptions { allowHTTP1?: boolean; diff --git a/types/node/node-tests.ts b/types/node/node-tests.ts index 7883ef10f2..68ce6f5a18 100644 --- a/types/node/node-tests.ts +++ b/types/node/node-tests.ts @@ -339,6 +339,16 @@ namespace fs_tests { const v2 = fs.realpathSync('/path/to/folder', { encoding: s }); typeof v2 === "string" ? s = v2 : b = v2; } + + { + fs.copyFile('/path/to/src', '/path/to/dest', (err) => console.error(err)); + fs.copyFile('/path/to/src', '/path/to/dest', fs.constants.COPYFILE_EXCL, (err) => console.error(err)); + + fs.copyFileSync('/path/to/src', '/path/to/dest', fs.constants.COPYFILE_EXCL); + + const cf = util.promisify(fs.copyFile); + cf('/path/to/src', '/path/to/dest', fs.constants.COPYFILE_EXCL).then(console.log); + } } /////////////////////////////////////////////////////// From 5d2d699e6bef9fcbce76fa02a8a2cb78a734a297 Mon Sep 17 00:00:00 2001 From: Luc Matagne Date: Tue, 17 Oct 2017 17:05:03 +0200 Subject: [PATCH 116/506] [SignalsJS] Add Generic type support (#20429) * [SignalsJS] Add Generic type support * Any as default Signal type * Add default any types for other declarations --- types/signals/index.d.ts | 24 ++++++++++++------------ types/signals/signals-tests.ts | 18 +++++++++--------- 2 files changed, 21 insertions(+), 21 deletions(-) diff --git a/types/signals/index.d.ts b/types/signals/index.d.ts index 879aa189f1..3f0ed1fa84 100644 --- a/types/signals/index.d.ts +++ b/types/signals/index.d.ts @@ -10,23 +10,23 @@ export as namespace signals; declare namespace signals { - interface SignalWrapper { - Signal: Signal + interface SignalWrapper { + Signal: Signal } - interface SignalBinding { + interface SignalBinding { active: boolean; context: any; params: any; detach(): Function; execute(paramsArr?: any[]): any; - getListener(): Function; - getSignal(): Signal; + getListener(): (...params: T[]) => void; + getSignal(): Signal; isBound(): boolean; isOnce(): boolean; } - interface Signal { + interface Signal { /** * Custom event broadcaster *
- inspired by Robert Penner's AS3 Signals. @@ -34,7 +34,7 @@ declare namespace signals { * @author Miller Medeiros * @constructor */ - new (): Signal; + new (): Signal; /** * If Signal is active and should broadcast events. @@ -59,7 +59,7 @@ declare namespace signals { * @param listenercontext Context on which listener will be executed (object that should represent the `this` variable inside listener function). * @param priority The priority level of the event listener. Listeners with higher priority will be executed before listeners with lower priority. Listeners with same priority level will be executed at the same order as they were added. (default = 0) */ - add(listener: Function, listenerContext?: any, priority?: Number): SignalBinding; + add(listener: (...params: T[]) => void, listenerContext?: any, priority?: Number): SignalBinding; /** * Add listener to the signal that should be removed after first execution (will be executed only once). @@ -68,14 +68,14 @@ declare namespace signals { * @param listenercontext Context on which listener will be executed (object that should represent the `this` variable inside listener function). * @param priority The priority level of the event listener. Listeners with higher priority will be executed before listeners with lower priority. Listeners with same priority level will be executed at the same order as they were added. (default = 0) */ - addOnce(listener: Function, listenerContext?: any, priority?: Number): SignalBinding; + addOnce(listener: (...params: T[]) => void, listenerContext?: any, priority?: Number): SignalBinding; /** * Dispatch/Broadcast Signal to all listeners added to the queue. * * @param params Parameters that should be passed to each handler. */ - dispatch(...params: any[]): void; + dispatch(...params: T[]): void; /** * Remove all bindings from signal and destroy any reference to external objects (destroy Signal object). @@ -100,12 +100,12 @@ declare namespace signals { /** * Check if listener was attached to Signal. */ - has(listener: Function, context?: any): boolean; + has(listener: (...params: T[]) => void, context?: any): boolean; /** * Remove a single listener from the dispatch queue. */ - remove(listener: Function, context?: any): Function; + remove(listener: (...params: T[]) => void, context?: any): Function; removeAll(): void; } diff --git a/types/signals/signals-tests.ts b/types/signals/signals-tests.ts index a0fa8e34f1..414b91edd7 100644 --- a/types/signals/signals-tests.ts +++ b/types/signals/signals-tests.ts @@ -1,8 +1,8 @@ import signals = require("signals"); // lifted from https://github.com/millermedeiros/js-signals/wiki/Examples interface TestObject { - started: signals.Signal; - stopped: signals.Signal; + started: signals.Signal; + stopped: signals.Signal; } namespace Signals.Tests { @@ -144,11 +144,11 @@ namespace Signals.AdvancedTests { var handler = function(){ alert('foo bar'); }; - var binding: signals.SignalBinding = myObject.started.add(handler); //methods `add()` and `addOnce()` returns a SignalBinding object + var binding: signals.SignalBinding<() => void> = myObject.started.add(handler); //methods `add()` and `addOnce()` returns a SignalBinding object binding.execute(); //will alert "foo bar" //Retrieve anonymous listener - var binding:signals.SignalBinding = myObject.started.add(function(){ + var binding:signals.SignalBinding<() => void> = myObject.started.add(function(){ alert('foo bar'); }); @@ -157,7 +157,7 @@ namespace Signals.AdvancedTests { var anonymousHandler = binding.getListener(); //reference to the anonymous function //Remove / Detach anonymous listener - var binding:signals.SignalBinding = myObject.started.add(function(){ + var binding:signals.SignalBinding<() => void> = myObject.started.add(function(){ alert('foo bar'); }); myObject.started.dispatch(); //will alert "foo bar" @@ -166,10 +166,10 @@ namespace Signals.AdvancedTests { myObject.started.dispatch(); //nothing happens //Check if binding will execute only once - var binding1:signals.SignalBinding = myObject.started.add(function(){ + var binding1:signals.SignalBinding = myObject.started.add(function(){ alert('foo bar'); }); - var binding2:signals.SignalBinding = myObject.started.addOnce(function(){ + var binding2:signals.SignalBinding<() => void> = myObject.started.addOnce(function(){ alert('foo bar'); }); alert(binding1.isOnce()); //alert "false" @@ -180,7 +180,7 @@ namespace Signals.AdvancedTests { var obj = { foo : "it's over 9000!" }; - var binding:signals.SignalBinding = myObject.started.add(function(){ + var binding:signals.SignalBinding<() => void> = myObject.started.add(function(){ alert(this.foo); }); myObject.started.dispatch(); //will alert "bar" @@ -188,7 +188,7 @@ namespace Signals.AdvancedTests { myObject.started.dispatch(); //will alert "it's over 9000!" //Add default parameters to Signal dispatch (v0.6.3+) - var binding:signals.SignalBinding = myObject.started.add(function(a:string, b:string, c:string){ + var binding:signals.SignalBinding<() => void> = myObject.started.add(function(a:string, b:string, c:string){ alert(a +' '+ b +' '+ c); }); binding.params = ['lorem', 'ipsum']; //set default parameters of the binding From a531f8c43de31f3c8a407cbeff277b590a7517e1 Mon Sep 17 00:00:00 2001 From: lei xia Date: Tue, 17 Oct 2017 08:26:47 -0700 Subject: [PATCH 117/506] add koa2-cors definition (#20592) * add koa2-cors definition * strictFunctionTypes * fixed bug * origin defintion * change strictFunctionTypes to true --- types/koa2-cors/index.d.ts | 21 +++++++++++++++++++++ types/koa2-cors/koa2-cors-tests.ts | 18 ++++++++++++++++++ types/koa2-cors/tsconfig.json | 23 +++++++++++++++++++++++ types/koa2-cors/tslint.json | 1 + 4 files changed, 63 insertions(+) create mode 100644 types/koa2-cors/index.d.ts create mode 100644 types/koa2-cors/koa2-cors-tests.ts create mode 100644 types/koa2-cors/tsconfig.json create mode 100644 types/koa2-cors/tslint.json diff --git a/types/koa2-cors/index.d.ts b/types/koa2-cors/index.d.ts new file mode 100644 index 0000000000..b353904eff --- /dev/null +++ b/types/koa2-cors/index.d.ts @@ -0,0 +1,21 @@ +// Type definitions for koa2-cors 2.0 +// Project: https://github.com/zadzbw/koa2-cors#readme +// Definitions by: xialeistudio +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 + +import * as Koa from 'koa'; +declare namespace cors { + interface Options { + origin?: string | ((ctx: Koa.Context) => boolean | string); + exposeHeaders?: string[]; + maxAge?: number; + credentials?: boolean; + allowMethods?: string[]; + allowHeaders?: string[]; + } +} + +declare function cors(options?: cors.Options): Koa.Middleware; + +export = cors; diff --git a/types/koa2-cors/koa2-cors-tests.ts b/types/koa2-cors/koa2-cors-tests.ts new file mode 100644 index 0000000000..820722d635 --- /dev/null +++ b/types/koa2-cors/koa2-cors-tests.ts @@ -0,0 +1,18 @@ +import * as Koa from 'koa'; +import * as cors from 'koa2-cors'; + +const app = new Koa(); +app.use(cors({ + origin(ctx: Koa.Context) { + if (ctx.url === '/test') { + return false; + } + return '*'; + }, + exposeHeaders: ['WWW-Authenticate', 'Server-Authorization'], + maxAge: 5, + credentials: true, + allowMethods: ['GET', 'POST', 'DELETE'], + allowHeaders: ['Content-Type', 'Authorization', 'Accept'], +})); +app.listen(3000); diff --git a/types/koa2-cors/tsconfig.json b/types/koa2-cors/tsconfig.json new file mode 100644 index 0000000000..6c1a4b2374 --- /dev/null +++ b/types/koa2-cors/tsconfig.json @@ -0,0 +1,23 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es6" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "baseUrl": "../", + "strictFunctionTypes": true, + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "koa2-cors-tests.ts" + ] +} \ No newline at end of file diff --git a/types/koa2-cors/tslint.json b/types/koa2-cors/tslint.json new file mode 100644 index 0000000000..3db14f85ea --- /dev/null +++ b/types/koa2-cors/tslint.json @@ -0,0 +1 @@ +{ "extends": "dtslint/dt.json" } From fb93c75e47befe2ef44cecfa45775a3d9b50042d Mon Sep 17 00:00:00 2001 From: Jinwoo Lee Date: Tue, 17 Oct 2017 08:35:55 -0700 Subject: [PATCH 118/506] Fix type of createPushResponse() in node http2. (#20510) * Fix type of createPushResponse() in node http2. From https://github.com/nodejs/node/blob/master/lib/internal/http2/compat.js#L628: `callback` is required to be a function. And its second argument is an `Http2ServerResponse`. * `err` is nullable. * delete redundant tests that have partial arguments --- types/node/index.d.ts | 2 +- types/node/node-tests.ts | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/types/node/index.d.ts b/types/node/index.d.ts index 6455482803..2f9834e411 100644 --- a/types/node/index.d.ts +++ b/types/node/index.d.ts @@ -6616,7 +6616,7 @@ declare module "http2" { writeContinue(): void; writeHead(statusCode: number, headers?: OutgoingHttpHeaders): void; writeHead(statusCode: number, statusMessage?: string, headers?: OutgoingHttpHeaders): void; - createPushResponse(headers: OutgoingHttpHeaders, callback?: (err: Error) => void): void; + createPushResponse(headers: OutgoingHttpHeaders, callback: (err: Error | null, res: Http2ServerResponse) => void): void; addListener(event: string, listener: (...args: any[]) => void): this; addListener(event: "aborted", listener: (hadError: boolean, code: number) => void): this; diff --git a/types/node/node-tests.ts b/types/node/node-tests.ts index 68ce6f5a18..5929a0c08a 100644 --- a/types/node/node-tests.ts +++ b/types/node/node-tests.ts @@ -3353,8 +3353,7 @@ namespace http2_tests { let headersSent: boolean = response.headersSent; response.setTimeout(0, () => {}); - response.createPushResponse(outgoingHeaders); - response.createPushResponse(outgoingHeaders, (err: Error) => {}); + response.createPushResponse(outgoingHeaders, (err: Error | null, res: http2.Http2ServerResponse) => {}); response.writeContinue(); response.writeHead(200); From f56bf1addfdffcdddec0916b4ea31fab9ed1fbf2 Mon Sep 17 00:00:00 2001 From: Alessandro Vergani Date: Tue, 17 Oct 2017 17:38:53 +0200 Subject: [PATCH 119/506] Fix no-void-expression (#20631) --- types/duplexer3/duplexer3-tests.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/duplexer3/duplexer3-tests.ts b/types/duplexer3/duplexer3-tests.ts index 557437597c..c540828d5d 100644 --- a/types/duplexer3/duplexer3-tests.ts +++ b/types/duplexer3/duplexer3-tests.ts @@ -6,7 +6,7 @@ const readable = new stream.Readable({objectMode: true}); writable._write = (input, encoding, done) => { if (readable.push(input)) { - return done(); + done(); } else { readable.once('drain', <(...args: any[]) => void> done); } From bb318dc9bce0a0f1d8a3a47822915db1c8a828f8 Mon Sep 17 00:00:00 2001 From: Florian Wagner Date: Tue, 17 Oct 2017 17:39:06 +0200 Subject: [PATCH 120/506] Remove flqw (myself) as an author (#20618) --- types/loglevel/index.d.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/types/loglevel/index.d.ts b/types/loglevel/index.d.ts index c32bdf52a0..da58c45483 100644 --- a/types/loglevel/index.d.ts +++ b/types/loglevel/index.d.ts @@ -1,7 +1,6 @@ // Type definitions for loglevel 1.5 // Project: https://github.com/pimterry/loglevel // Definitions by: Stefan Profanter -// Florian Wagner // Gabor Szmetanko // Christian Rackerseder // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped From 7c4d884431b273488678d1a260bc79c9bc05ca94 Mon Sep 17 00:00:00 2001 From: madmaw Date: Wed, 18 Oct 2017 02:48:33 +1100 Subject: [PATCH 121/506] fixed some typos and missing properties in CannonJS definitions (#20599) --- types/cannon/index.d.ts | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/types/cannon/index.d.ts b/types/cannon/index.d.ts index 45e005d53d..8516d968dd 100644 --- a/types/cannon/index.d.ts +++ b/types/cannon/index.d.ts @@ -428,7 +428,7 @@ declare module CANNON { angularVelocity?: Vec3; quaternion?: Quaternion; mass?: number; - material?: number; + material?: Material; type?: number; linearDamping?: number; angularDamping?: number; @@ -478,7 +478,7 @@ declare module CANNON { interpolatedQuaternion: Quaternion; shapes: Shape[]; shapeOffsets: any[]; - shapeOrentiations: any[]; + shapeOrientations: any[]; inertia: Vec3; invInertia: Vec3; invInertiaWorld: Mat3; @@ -735,7 +735,7 @@ declare module CANNON { vertices: Vec3[]; worldVertices: Vec3[]; worldVerticesNeedsUpdate: boolean; - faces: number[]; + faces: number[][]; faceNormals: Vec3[]; uniqueEdges: Vec3[]; @@ -776,7 +776,7 @@ declare module CANNON { export class Heightfield extends Shape { - data: number[]; + data: number[][]; maxValue: number; minValue: number; elementSize: number; @@ -930,7 +930,7 @@ declare module CANNON { } export class World extends EventTarget { - + iterations: number; dt: number; allowSleep: boolean; contacts: ContactEquation[]; @@ -992,6 +992,10 @@ declare module CANNON { } + export interface ICollisionEvent extends IBodyEvent { + contact: any; + } + } From 60b5c044651176f065082f979ecc82b98d64c9f2 Mon Sep 17 00:00:00 2001 From: Justin Sprigg Date: Wed, 18 Oct 2017 02:49:41 +1100 Subject: [PATCH 122/506] Update @types/google-cloud__storage (#20602) The save method in the library uses a writeable stream. See https://nodejs.org/api/stream.html#stream_writable_end_chunk_encoding_callback. Also consider adding `any`. --- types/google-cloud__storage/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/google-cloud__storage/index.d.ts b/types/google-cloud__storage/index.d.ts index 55f3b0d3d2..544f2e095f 100644 --- a/types/google-cloud__storage/index.d.ts +++ b/types/google-cloud__storage/index.d.ts @@ -134,7 +134,7 @@ declare namespace Storage { makePublic(): Promise<[ApiResponse]>; move(destination: string | Bucket | File): Promise<[File, ApiResponse]>; name: string; - save(data: string, options?: WriteStreamOptions): Promise; + save(data: string | Buffer, options?: WriteStreamOptions): Promise; setEncryptionKey(encryptionKey: string | Buffer): File; setMetadata(metadata: FileMetadata): Promise<[ApiResponse]>; metadata?: FileMetadata; From e02343af702058313f4e9ce49f15e9f54f0ce959 Mon Sep 17 00:00:00 2001 From: damon-at-sportsbet Date: Wed, 18 Oct 2017 02:50:27 +1100 Subject: [PATCH 123/506] @types/vis separated Node color into it's own interface and added it to the Node (#20603) * separated node color into it's own interface and added it to the node definition too. * tslint fixes --- types/vis/index.d.ts | 30 ++++++++++++++++++------------ 1 file changed, 18 insertions(+), 12 deletions(-) diff --git a/types/vis/index.d.ts b/types/vis/index.d.ts index ee2c753129..dbb1d68647 100644 --- a/types/vis/index.d.ts +++ b/types/vis/index.d.ts @@ -1783,6 +1783,7 @@ export interface Node { fixed?: boolean; image?: string; shape?: string; + color?: string | Color; } export interface Edge { @@ -1848,6 +1849,22 @@ export interface Options { physics?: any; // http://visjs.org/docs/network/physics.html# } +export interface Color { + border?: string; + + background?: string; + + highlight?: string | { + border?: string; + background?: string; + }; + + hover?: string | { + border?: string; + background?: string; + }; +} + export interface NodeOptions { borderWidth?: number; @@ -1855,18 +1872,7 @@ export interface NodeOptions { brokenImage?: string; - color?: { - border?: string, - background?: string, - highlight?: string | { - border?: string, - background?: string, - }, - hover?: string | { - border?: string, - background?: string, - } - }; + color?: Color; fixed?: boolean | { x?: boolean, From 4787f17ca6938ced9c1d088fcac5a3f83b512d1c Mon Sep 17 00:00:00 2001 From: Ondrej Sevcik Date: Tue, 17 Oct 2017 17:53:05 +0200 Subject: [PATCH 124/506] Puppeteer: Change page.url() return type (#20598) * Change page.url() return type According to docs frame.url() as well as page.url() returns just string, not promise. source: https://github.com/GoogleChrome/puppeteer/blob/master/docs/api.md#frameurl * Increment version number * Increment version number to the latest puppeteer available * Set typings version to the latest released version --- types/puppeteer/index.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/types/puppeteer/index.d.ts b/types/puppeteer/index.d.ts index f9c5741805..708ad90d95 100644 --- a/types/puppeteer/index.d.ts +++ b/types/puppeteer/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for puppeteer 0.10 +// Type definitions for puppeteer 0.12 // Project: https://github.com/GoogleChrome/puppeteer#readme // Definitions by: Marvin Hagemeister // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped @@ -240,7 +240,7 @@ export interface FrameBase { ...args: Array ): Promise; title(): Promise; - url(): Promise; + url(): string; waitFor( // fn can be an abritary function // tslint:disable-next-line ban-types From 2149177050c53067c50dba88fbb99b98db119c05 Mon Sep 17 00:00:00 2001 From: CodeAnimal Date: Tue, 17 Oct 2017 16:55:35 +0100 Subject: [PATCH 125/506] Add definitions for gen-readlines 0.1 (#20609) * Add definitions for genreadlines 0.1 * Add `"strictFunctionTypes"` to tsconfig.json * Update tsconfig.json Set `"strictFunctionTypes"` to `true` --- types/gen-readlines/gen-readlines-tests.ts | 25 ++++++++++++++++++++++ types/gen-readlines/index.d.ts | 18 ++++++++++++++++ types/gen-readlines/tsconfig.json | 24 +++++++++++++++++++++ types/gen-readlines/tslint.json | 1 + 4 files changed, 68 insertions(+) create mode 100644 types/gen-readlines/gen-readlines-tests.ts create mode 100644 types/gen-readlines/index.d.ts create mode 100644 types/gen-readlines/tsconfig.json create mode 100644 types/gen-readlines/tslint.json diff --git a/types/gen-readlines/gen-readlines-tests.ts b/types/gen-readlines/gen-readlines-tests.ts new file mode 100644 index 0000000000..4326c5d108 --- /dev/null +++ b/types/gen-readlines/gen-readlines-tests.ts @@ -0,0 +1,25 @@ +/// + +import fs = require("fs"); +import readlines = require("gen-readlines"); + +const fd = fs.openSync('./somefile.txt', 'r'); +const stats = fs.fstatSync(fd); + +let str: string; + +for (const line of readlines(fd, stats.size)) { + str = line; + console.log(line.toString()); +} + +fs.closeSync(fd); + +fs.open('./test_data/hipster.txt', 'r', (err, fd) => { + fs.fstat(fd, (err, stats) => { + for (const line of readlines(fd, stats.size, 64 * 0x400, 0)) { + str = line; + console.log(line.toString()); + } + }); +}); diff --git a/types/gen-readlines/index.d.ts b/types/gen-readlines/index.d.ts new file mode 100644 index 0000000000..62b24c445a --- /dev/null +++ b/types/gen-readlines/index.d.ts @@ -0,0 +1,18 @@ +// Type definitions for gen-readlines 0.1 +// Project: https://github.com/neurosnap/gen-readlines#readme +// Definitions by: Peter Harris +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +/** + * Generator based line reader + * + * @param fd The file descriptor + * @param filesize The size of the file in bytes + * @param bufferSize The size of the buffer in bytes, default: 64*1024 + * @param position The position where to start reading the file in bytes, default: 0 + * + * @returns The generator object, yeilding each line as a string + */ +declare function readlines(fd: number, filesize: number, bufferSize?: number, position?: number): IterableIterator; + +export = readlines; diff --git a/types/gen-readlines/tsconfig.json b/types/gen-readlines/tsconfig.json new file mode 100644 index 0000000000..18d185012c --- /dev/null +++ b/types/gen-readlines/tsconfig.json @@ -0,0 +1,24 @@ +{ + "compilerOptions": { + "module": "commonjs", + "target": "es6", + "lib": [ + "es6" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true, + "strictFunctionTypes" : true + }, + "files": [ + "index.d.ts", + "gen-readlines-tests.ts" + ] +} diff --git a/types/gen-readlines/tslint.json b/types/gen-readlines/tslint.json new file mode 100644 index 0000000000..3db14f85ea --- /dev/null +++ b/types/gen-readlines/tslint.json @@ -0,0 +1 @@ +{ "extends": "dtslint/dt.json" } From 14dd64b8cba36a0c35672049366670efb07b2cdf Mon Sep 17 00:00:00 2001 From: CodeAnimal Date: Tue, 17 Oct 2017 17:02:32 +0100 Subject: [PATCH 126/506] Add csvrow 0.1 (#20614) * Add csvrow 0.1 definitions * Fix dtslint errors * add newline to end of index.d.ts * Update tsconfig.json Set `"strictFunctionTypes"` to `true` --- types/csvrow/csvrow-tests.ts | 10 ++++++++++ types/csvrow/index.d.ts | 29 +++++++++++++++++++++++++++++ types/csvrow/tsconfig.json | 23 +++++++++++++++++++++++ types/csvrow/tslint.json | 1 + 4 files changed, 63 insertions(+) create mode 100644 types/csvrow/csvrow-tests.ts create mode 100644 types/csvrow/index.d.ts create mode 100644 types/csvrow/tsconfig.json create mode 100644 types/csvrow/tslint.json diff --git a/types/csvrow/csvrow-tests.ts b/types/csvrow/csvrow-tests.ts new file mode 100644 index 0000000000..133eab5937 --- /dev/null +++ b/types/csvrow/csvrow-tests.ts @@ -0,0 +1,10 @@ +import csvrow = require("csvrow"); + +let row = "a,b,c"; +let columns: string[]; + +columns = csvrow.parse(row); + +row = csvrow.stringify(columns); + +row = csvrow.normalize(row); diff --git a/types/csvrow/index.d.ts b/types/csvrow/index.d.ts new file mode 100644 index 0000000000..53df54a249 --- /dev/null +++ b/types/csvrow/index.d.ts @@ -0,0 +1,29 @@ +// Type definitions for csvrow 0.1 +// Project: https://github.com/trentm/node-csvrow +// Definitions by: Peter Harris +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +/** + * Parse a CSV row (i.e. a single row) into an array of strings. + * + * c.f. http://en.wikipedia.org/wiki/Comma-separated_values + * + * Limitations/Opinions: + * - don't support elements with line-breaks + * - leading a trailing spaces are trimmed, unless the entry is quoted + * + * @throws {TypeError} if the given CSV row is invalid + * + * @summary Parse a CSV row into an array of strings. + */ +export function parse(row: string): string[]; + +/** + * Serialize the given array to a CSV row. + */ +export function stringify(columns: string[]): string; + +/** + * Normalize the given CSV line. + */ +export function normalize(row: string): string; diff --git a/types/csvrow/tsconfig.json b/types/csvrow/tsconfig.json new file mode 100644 index 0000000000..7fc1637725 --- /dev/null +++ b/types/csvrow/tsconfig.json @@ -0,0 +1,23 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es6" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true, + "strictFunctionTypes" : true + }, + "files": [ + "index.d.ts", + "csvrow-tests.ts" + ] +} diff --git a/types/csvrow/tslint.json b/types/csvrow/tslint.json new file mode 100644 index 0000000000..3db14f85ea --- /dev/null +++ b/types/csvrow/tslint.json @@ -0,0 +1 @@ +{ "extends": "dtslint/dt.json" } From 9266e419ed585aab552a4e93bbf14b2c13eed4b7 Mon Sep 17 00:00:00 2001 From: Shenghan Gao Date: Tue, 17 Oct 2017 09:06:08 -0700 Subject: [PATCH 127/506] fix export issue for cytoscape (#20616) --- types/cytoscape/cytoscape-tests.ts | 2 +- types/cytoscape/index.d.ts | 11 +++++------ 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/types/cytoscape/cytoscape-tests.ts b/types/cytoscape/cytoscape-tests.ts index 827a9880d3..0b7bac436e 100644 --- a/types/cytoscape/cytoscape-tests.ts +++ b/types/cytoscape/cytoscape-tests.ts @@ -1,5 +1,5 @@ 'use strict'; -import { cytoscape } from 'cytoscape'; +import cytoscape = require('cytoscape'); const parentCSS = { 'padding-top': '10px', diff --git a/types/cytoscape/index.d.ts b/types/cytoscape/index.d.ts index 7b5a9a9dbc..3a618195d1 100644 --- a/types/cytoscape/index.d.ts +++ b/types/cytoscape/index.d.ts @@ -58,19 +58,18 @@ * A number of interfaces contain nothing as they server to collect interfaces. * */ -// export as namespace Cy -// export = cytoscape; +export = cytoscape; +export as namespace cytoscape; -export function cytoscape(options?: cytoscape.CytoscapeOptions): cytoscape.Core; -export function cytoscape(extensionName: string, foo: string, bar: any): cytoscape.Core; +declare function cytoscape(options?: cytoscape.CytoscapeOptions): cytoscape.Core; +declare function cytoscape(extensionName: string, foo: string, bar: any): cytoscape.Core; -export namespace cytoscape { +declare namespace cytoscape { interface Position { x: number; y: number; } - type HtmlElement = any; type CssStyleDeclaration = any; interface ElementDefinition { From bc2da03e918e8cd50cf9edb17b8e43c11d3880da Mon Sep 17 00:00:00 2001 From: Sergii Paryzhskyi Date: Tue, 17 Oct 2017 18:07:04 +0200 Subject: [PATCH 128/506] Define types for subtract method and add tests for it (#20617) --- types/date-arithmetic/date-arithmetic-tests.ts | 10 ++++++++++ types/date-arithmetic/index.d.ts | 5 ++++- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/types/date-arithmetic/date-arithmetic-tests.ts b/types/date-arithmetic/date-arithmetic-tests.ts index 11e2dba3c6..509551dd92 100644 --- a/types/date-arithmetic/date-arithmetic-tests.ts +++ b/types/date-arithmetic/date-arithmetic-tests.ts @@ -9,3 +9,13 @@ dateArithmetic.add(new Date(2010, 7, 23), 2, 'month'); dateArithmetic.add(new Date(2010, 7, 23), 2, 'year'); dateArithmetic.add(new Date(2010, 7, 23), 2, 'decade'); dateArithmetic.add(new Date(2010, 7, 23), 2, 'century'); + +dateArithmetic.subtract(new Date(2010, 7, 30), 1, 'second'); +dateArithmetic.subtract(new Date(2010, 7, 29), 2, 'minutes'); +dateArithmetic.subtract(new Date(2010, 7, 28), 3, 'hours'); +dateArithmetic.subtract(new Date(2010, 7, 27), 4, 'day'); +dateArithmetic.subtract(new Date(2010, 7, 26), 5, 'week'); +dateArithmetic.subtract(new Date(2010, 7, 24), 6, 'month'); +dateArithmetic.subtract(new Date(2010, 7, 23), 7, 'year'); +dateArithmetic.subtract(new Date(2010, 7, 22), 8, 'decade'); +dateArithmetic.subtract(new Date(2010, 7, 21), 9, 'century'); diff --git a/types/date-arithmetic/index.d.ts b/types/date-arithmetic/index.d.ts index 813b408730..ad669fd523 100644 --- a/types/date-arithmetic/index.d.ts +++ b/types/date-arithmetic/index.d.ts @@ -7,8 +7,11 @@ type Unit = 'second' | 'minutes' | 'hours' | 'day' | 'week' | 'month' | 'year' | /** dateArithmetic Public Instance Methods */ interface dateArithmeticStatic { - /** Add specified amount of units to a provided date and return new date as a result */ + /** Add specified amount of units to a provided date and return new date as a result */ add(date: Date, num: number, unit: Unit): Date; + + /** Subtract specified amount of units from a provided date and return new date as a result */ + subtract(date: Date, num: number, unit: Unit): Date; } declare module 'dateArithmetic' { From ce9e109a99b10ed1235b53ed990b6088a4e9f531 Mon Sep 17 00:00:00 2001 From: Daniel Milbrandt Date: Tue, 17 Oct 2017 18:15:27 +0200 Subject: [PATCH 129/506] added uuid v5 to uuidStatic List (#20634) You was not able to do " import {v5} from 'uuid' ", this will fix it --- types/uuid/index.d.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/types/uuid/index.d.ts b/types/uuid/index.d.ts index 75bc7e6661..cc4c1a1ef7 100644 --- a/types/uuid/index.d.ts +++ b/types/uuid/index.d.ts @@ -10,11 +10,12 @@ // because of the existing uuid-js npm types package being at 3.3.28, // meaning that `npm install @types/uuid` was installing the typings for uuid-js, not this -import { v1, v4 } from './interfaces'; +import { v1, v4, v5 } from './interfaces'; interface UuidStatic { v1: v1; v4: v4; + v5: v5; } declare const uuid: UuidStatic & v4; From fa63fd564a015b875e4dab8156078de99e2c0a08 Mon Sep 17 00:00:00 2001 From: Richard Silverton Date: Tue, 17 Oct 2017 17:15:45 +0100 Subject: [PATCH 130/506] fix ReferenceOptions interface for Joi to include Hoek.reach options (#20635) --- types/joi/index.d.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/types/joi/index.d.ts b/types/joi/index.d.ts index 1b4c3fcbaf..02ac767427 100644 --- a/types/joi/index.d.ts +++ b/types/joi/index.d.ts @@ -138,6 +138,9 @@ export interface WhenOptions { export interface ReferenceOptions { separator?: string; contextPrefix?: string; + default?: any; + strict?: boolean; + functions?: boolean; } export interface IPOptions { From 52f686b9db28db3028c0c3277b8a9be58a134967 Mon Sep 17 00:00:00 2001 From: Alessandro Vergani Date: Tue, 17 Oct 2017 18:16:06 +0200 Subject: [PATCH 131/506] Add lookup to dgram SocketOptions (#20636) --- types/node/index.d.ts | 2 ++ types/node/node-tests.ts | 1 + 2 files changed, 3 insertions(+) diff --git a/types/node/index.d.ts b/types/node/index.d.ts index 2f9834e411..421803080d 100644 --- a/types/node/index.d.ts +++ b/types/node/index.d.ts @@ -2657,6 +2657,7 @@ declare module "net" { declare module "dgram" { import * as events from "events"; + import * as dns from "dns"; interface RemoteInfo { address: string; @@ -2683,6 +2684,7 @@ declare module "dgram" { reuseAddr?: boolean; recvBufferSize?: number; sendBufferSize?: number; + lookup?: (hostname: string, options: dns.LookupOneOptions, callback: (err: NodeJS.ErrnoException, address: string, family: number) => void) => void; } export function createSocket(type: SocketType, callback?: (msg: Buffer, rinfo: RemoteInfo) => void): Socket; diff --git a/types/node/node-tests.ts b/types/node/node-tests.ts index 5929a0c08a..9c6ca8d4d4 100644 --- a/types/node/node-tests.ts +++ b/types/node/node-tests.ts @@ -1375,6 +1375,7 @@ namespace dgram_tests { }); ds.send(new Buffer("hello"), 5000, "127.0.0.1"); ds.setMulticastInterface("127.0.0.1"); + ds = dgram.createSocket({ type: "udp4", reuseAddr: true, recvBufferSize: 1000, sendBufferSize: 1000, lookup: dns.lookup }); } { From d51849022778816836d9bbd81b3ed43edb801443 Mon Sep 17 00:00:00 2001 From: Alessandro Vergani Date: Tue, 17 Oct 2017 18:17:47 +0200 Subject: [PATCH 132/506] Add O_DSYNC flag (#20638) --- types/node/index.d.ts | 4 ++++ types/node/node-tests.ts | 1 + 2 files changed, 5 insertions(+) diff --git a/types/node/index.d.ts b/types/node/index.d.ts index 421803080d..143ae3177f 100644 --- a/types/node/index.d.ts +++ b/types/node/index.d.ts @@ -4190,6 +4190,9 @@ declare module "fs" { /** Constant for fs.open(). Flag indicating that the file is opened for synchronous I/O. */ export const O_SYNC: number; + /** Constant for fs.open(). Flag indicating that the file is opened for synchronous I/O with write operations waiting for data integrity. */ + export const O_DSYNC: number; + /** Constant for fs.open(). Flag indicating to open the symbolic link itself rather than the resource it is pointing to. */ export const O_SYMLINK: number; @@ -5735,6 +5738,7 @@ declare module "constants" { export var O_NOATIME: number; export var O_NOFOLLOW: number; export var O_SYNC: number; + export var O_DSYNC: number; export var O_SYMLINK: number; export var O_DIRECT: number; export var O_NONBLOCK: number; diff --git a/types/node/node-tests.ts b/types/node/node-tests.ts index 9c6ca8d4d4..1ec94db6b6 100644 --- a/types/node/node-tests.ts +++ b/types/node/node-tests.ts @@ -2937,6 +2937,7 @@ namespace constants_tests { num = constants.O_NOATIME; num = constants.O_NOFOLLOW; num = constants.O_SYNC; + num = constants.O_DSYNC; num = constants.O_DIRECT; num = constants.O_NONBLOCK; num = constants.S_IRWXU; From fdd6cc3a35c53f89f643b53827805b6fb21048c4 Mon Sep 17 00:00:00 2001 From: Leonard Thieu Date: Tue, 17 Oct 2017 12:26:14 -0400 Subject: [PATCH 133/506] [jquery] `after()`, `append()`, `before()`, and `prepend()` can accept an array of JQuery (#20319) * [jquery] `after()`, `append()`, `before()`, and `prepend()` can accept an array of JQuery. * [jquery] Lint. * [jquery] Disable flaky tests. * [sharepoint] Lint. * [tinymce] Lint. * [ej.web.all] Lint. * [jquery] Fix unintended change to Callbacks. * [jquery] Fix test. --- types/jquery/index.d.ts | 17 ++--- types/jquery/jquery-tests.ts | 126 +++++++++++++++++------------------ types/jquery/tslint.json | 3 + 3 files changed, 75 insertions(+), 71 deletions(-) diff --git a/types/jquery/index.d.ts b/types/jquery/index.d.ts index f5947549b7..bac194ee78 100644 --- a/types/jquery/index.d.ts +++ b/types/jquery/index.d.ts @@ -3024,7 +3024,7 @@ interface JQuery extends Iterable * @see {@link https://api.jquery.com/after/} * @since 1.0 */ - after(...contents: Array | JQuery>): this; + after(...contents: Array>>): this; /** * Insert content, specified by the parameter, after each element in the set of matched elements. * @@ -3036,7 +3036,7 @@ interface JQuery extends Iterable * @since 1.4 * @since 1.10 */ - after(fn: (this: TElement, index: number, html: string) => JQuery.htmlString | JQuery.TypeOrArray | JQuery): this; + after(fn: (this: TElement, index: number, html: string) => JQuery.htmlString | JQuery.TypeOrArray>): this; /** * Register a handler to be called when Ajax requests complete. This is an AjaxEvent. * @@ -3140,7 +3140,7 @@ interface JQuery extends Iterable * @see {@link https://api.jquery.com/append/} * @since 1.0 */ - append(...contents: Array | JQuery>): this; + append(...contents: Array>>): this; /** * Insert content, specified by the parameter, to the end of each element in the set of matched elements. * @@ -3151,7 +3151,7 @@ interface JQuery extends Iterable * @see {@link https://api.jquery.com/append/} * @since 1.4 */ - append(fn: (this: TElement, index: number, html: string) => JQuery.htmlString | JQuery.TypeOrArray | JQuery): this; + append(fn: (this: TElement, index: number, html: string) => JQuery.htmlString | JQuery.TypeOrArray>): this; /** * Insert every element in the set of matched elements to the end of the target. * @@ -3198,7 +3198,7 @@ interface JQuery extends Iterable * @see {@link https://api.jquery.com/before/} * @since 1.0 */ - before(...contents: Array | JQuery>): this; + before(...contents: Array>>): this; /** * Insert content, specified by the parameter, before each element in the set of matched elements. * @@ -3210,7 +3210,7 @@ interface JQuery extends Iterable * @since 1.4 * @since 1.10 */ - before(fn: (this: TElement, index: number, html: string) => JQuery.htmlString | JQuery.TypeOrArray | JQuery): this; + before(fn: (this: TElement, index: number, html: string) => JQuery.htmlString | JQuery.TypeOrArray>): this; // [bind() overloads] https://github.com/jquery/api.jquery.com/issues/1048 /** * Attach a handler to an event for the elements. @@ -3894,6 +3894,7 @@ interface JQuery extends Iterable * @since 1.0 * @since 1.4 */ + // HACK: The type parameter T is not used but ensures the 'event' callback parameter is typed correctly. hover(handlerInOut: JQuery.EventHandler | JQuery.EventHandlerBase> | false, handlerOut?: JQuery.EventHandler | JQuery.EventHandlerBase> | false): this; /** @@ -4602,7 +4603,7 @@ interface JQuery extends Iterable * @see {@link https://api.jquery.com/prepend/} * @since 1.0 */ - prepend(...contents: Array | JQuery>): this; + prepend(...contents: Array>>): this; /** * Insert content, specified by the parameter, to the beginning of each element in the set of matched elements. * @@ -4613,7 +4614,7 @@ interface JQuery extends Iterable * @see {@link https://api.jquery.com/prepend/} * @since 1.4 */ - prepend(fn: (this: TElement, index: number, html: string) => JQuery.htmlString | JQuery.TypeOrArray | JQuery): this; + prepend(fn: (this: TElement, index: number, html: string) => JQuery.htmlString | JQuery.TypeOrArray>): this; /** * Insert every element in the set of matched elements to the beginning of the target. * diff --git a/types/jquery/jquery-tests.ts b/types/jquery/jquery-tests.ts index 99a10c6f45..32f26b1489 100644 --- a/types/jquery/jquery-tests.ts +++ b/types/jquery/jquery-tests.ts @@ -63,7 +63,7 @@ function JQueryStatic() { } function ajaxSettings() { - // $ExpectType JQuery.AjaxSettings + // $ExpectType AjaxSettings $.ajaxSettings; } @@ -1659,8 +1659,8 @@ function JQueryStatic() { } function type() { - // $ExpectType "string" | "number" | "boolean" | "symbol" | "undefined" | "object" | "function" | "array" | "date" | "error" | "null" | "regexp" - $.type({}); + // // $ExpectType "string" | "number" | "boolean" | "symbol" | "undefined" | "object" | "function" | "array" | "date" | "error" | "null" | "regexp" + // $.type({}); } function unique() { @@ -2132,8 +2132,8 @@ function JQuery() { this; // $ExpectType string responseText; - // $ExpectType "success" | "notmodified" | "nocontent" | "error" | "timeout" | "abort" | "parsererror" - textStatus; + // // $ExpectType "success" | "notmodified" | "nocontent" | "error" | "timeout" | "abort" | "parsererror" + // textStatus; // $ExpectType jqXHR jqXHR; }); @@ -2144,8 +2144,8 @@ function JQuery() { this; // $ExpectType string responseText; - // $ExpectType "success" | "notmodified" | "nocontent" | "error" | "timeout" | "abort" | "parsererror" - textStatus; + // // $ExpectType "success" | "notmodified" | "nocontent" | "error" | "timeout" | "abort" | "parsererror" + // textStatus; // $ExpectType jqXHR jqXHR; }); @@ -2156,8 +2156,8 @@ function JQuery() { this; // $ExpectType string responseText; - // $ExpectType "success" | "notmodified" | "nocontent" | "error" | "timeout" | "abort" | "parsererror" - textStatus; + // // $ExpectType "success" | "notmodified" | "nocontent" | "error" | "timeout" | "abort" | "parsererror" + // textStatus; // $ExpectType jqXHR jqXHR; }); @@ -5135,7 +5135,7 @@ function JQuery() { function manipulation() { function after() { // $ExpectType JQuery - $('p').after('

', new Element(), new Text(), $('p').contents(), [new Element(), new Text()]); + $('p').after('

', new Element(), new Text(), $('p').contents(), [new Element(), new Text(), $('p').contents()]); // $ExpectType JQuery $('p').after(function(index, html) { @@ -5173,18 +5173,6 @@ function JQuery() { return new Text(); }); - // $ExpectType JQuery - $('p').after(function(index, html) { - // $ExpectType HTMLElement - this; - // $ExpectType number - index; - // $ExpectType string - html; - - return [new Element(), new Text()]; - }); - // $ExpectType JQuery $('p').after(function(index, html) { // $ExpectType HTMLElement @@ -5196,11 +5184,23 @@ function JQuery() { return $('p').contents(); }); + + // $ExpectType JQuery + $('p').after(function(index, html) { + // $ExpectType HTMLElement + this; + // $ExpectType number + index; + // $ExpectType string + html; + + return [new Element(), new Text(), $('p').contents()]; + }); } function append() { // $ExpectType JQuery - $('p').append('

', new Element(), new Text(), $('p').contents(), [new Element(), new Text()]); + $('p').append('

', new Element(), new Text(), $('p').contents(), [new Element(), new Text(), $('p').contents()]); // $ExpectType JQuery $('p').append(function(index, html) { @@ -5238,18 +5238,6 @@ function JQuery() { return new Text(); }); - // $ExpectType JQuery - $('p').append(function(index, html) { - // $ExpectType HTMLElement - this; - // $ExpectType number - index; - // $ExpectType string - html; - - return [new Element(), new Text()]; - }); - // $ExpectType JQuery $('p').append(function(index, html) { // $ExpectType HTMLElement @@ -5264,11 +5252,23 @@ function JQuery() { // $ExpectType JQuery $('p').append($.parseHTML('myTextNode ')); + + // $ExpectType JQuery + $('p').append(function(index, html) { + // $ExpectType HTMLElement + this; + // $ExpectType number + index; + // $ExpectType string + html; + + return [new Element(), new Text(), $('p').contents()]; + }); } function before() { // $ExpectType JQuery - $('p').before('

', new Element(), new Text(), $('p').contents(), [new Element(), new Text()]); + $('p').before('

', new Element(), new Text(), $('p').contents(), [new Element(), new Text(), $('p').contents()]); // $ExpectType JQuery $('p').before(function(index, html) { @@ -5315,7 +5315,7 @@ function JQuery() { // $ExpectType string html; - return [new Element(), new Text()]; + return $('p').contents(); }); // $ExpectType JQuery @@ -5327,13 +5327,13 @@ function JQuery() { // $ExpectType string html; - return $('p').contents(); + return [new Element(), new Text(), $('p').contents()]; }); } function prepend() { // $ExpectType JQuery - $('p').prepend('

', new Element(), new Text(), $('p').contents(), [new Element(), new Text()]); + $('p').prepend('

', new Element(), new Text(), $('p').contents(), [new Element(), new Text()], [new Element(), $('p').contents()]); // $ExpectType JQuery $('p').prepend(function(index, html) { @@ -5380,7 +5380,7 @@ function JQuery() { // $ExpectType string html; - return [new Element(), new Text()]; + return $('p').contents(); }); // $ExpectType JQuery @@ -5392,7 +5392,7 @@ function JQuery() { // $ExpectType string html; - return $('p').contents(); + return [new Element(), new Text(), $('p').contents()]; }); } @@ -6204,8 +6204,8 @@ function JQuery_AjaxSettings() { this; // $ExpectType jqXHR jqXHR; - // $ExpectType "success" | "notmodified" | "nocontent" | "error" | "timeout" | "abort" | "parsererror" - textStatus; + // // $ExpectType "success" | "notmodified" | "nocontent" | "error" | "timeout" | "abort" | "parsererror" + // textStatus; }, contents: { mycustomtype: /mycustomtype/ @@ -6315,8 +6315,8 @@ function JQuery_AjaxSettings() { this; // $ExpectType jqXHR jqXHR; - // $ExpectType "success" | "notmodified" | "nocontent" | "error" | "timeout" | "abort" | "parsererror" - textStatus; + // // $ExpectType "success" | "notmodified" | "nocontent" | "error" | "timeout" | "abort" | "parsererror" + // textStatus; }], contentType: false, data: 'myData', @@ -6524,22 +6524,22 @@ function JQuery_jqXHR() { $.ajax('/echo/json').always((data_jqXHR, textStatus, jqXHR_errorThrown) => { // $ExpectType any data_jqXHR; - // $ExpectType "success" | "notmodified" | "nocontent" | "error" | "timeout" | "abort" | "parsererror" - textStatus; + // // $ExpectType "success" | "notmodified" | "nocontent" | "error" | "timeout" | "abort" | "parsererror" + // textStatus; // $ExpectType string | jqXHR jqXHR_errorThrown; }, [(data_jqXHR, textStatus, jqXHR_errorThrown) => { // $ExpectType any data_jqXHR; - // $ExpectType "success" | "notmodified" | "nocontent" | "error" | "timeout" | "abort" | "parsererror" - textStatus; + // // $ExpectType "success" | "notmodified" | "nocontent" | "error" | "timeout" | "abort" | "parsererror" + // textStatus; // $ExpectType string | jqXHR jqXHR_errorThrown; }], (data_jqXHR, textStatus, jqXHR_errorThrown) => { // $ExpectType any data_jqXHR; - // $ExpectType "success" | "notmodified" | "nocontent" | "error" | "timeout" | "abort" | "parsererror" - textStatus; + // // $ExpectType "success" | "notmodified" | "nocontent" | "error" | "timeout" | "abort" | "parsererror" + // textStatus; // $ExpectType string | jqXHR jqXHR_errorThrown; }); @@ -6548,15 +6548,15 @@ function JQuery_jqXHR() { $.ajax('/echo/json').always((data_jqXHR, textStatus, jqXHR_errorThrown) => { // $ExpectType any data_jqXHR; - // $ExpectType "success" | "notmodified" | "nocontent" | "error" | "timeout" | "abort" | "parsererror" - textStatus; + // // $ExpectType "success" | "notmodified" | "nocontent" | "error" | "timeout" | "abort" | "parsererror" + // textStatus; // $ExpectType string | jqXHR jqXHR_errorThrown; }, [(data_jqXHR, textStatus, jqXHR_errorThrown) => { // $ExpectType any data_jqXHR; - // $ExpectType "success" | "notmodified" | "nocontent" | "error" | "timeout" | "abort" | "parsererror" - textStatus; + // // $ExpectType "success" | "notmodified" | "nocontent" | "error" | "timeout" | "abort" | "parsererror" + // textStatus; // $ExpectType string | jqXHR jqXHR_errorThrown; }]); @@ -6565,15 +6565,15 @@ function JQuery_jqXHR() { $.ajax('/echo/json').always([(data_jqXHR, textStatus, jqXHR_errorThrown) => { // $ExpectType any data_jqXHR; - // $ExpectType "success" | "notmodified" | "nocontent" | "error" | "timeout" | "abort" | "parsererror" - textStatus; + // // $ExpectType "success" | "notmodified" | "nocontent" | "error" | "timeout" | "abort" | "parsererror" + // textStatus; // $ExpectType string | jqXHR jqXHR_errorThrown; }], (data_jqXHR, textStatus, jqXHR_errorThrown) => { // $ExpectType any data_jqXHR; - // $ExpectType "success" | "notmodified" | "nocontent" | "error" | "timeout" | "abort" | "parsererror" - textStatus; + // // $ExpectType "success" | "notmodified" | "nocontent" | "error" | "timeout" | "abort" | "parsererror" + // textStatus; // $ExpectType string | jqXHR jqXHR_errorThrown; }); @@ -6582,8 +6582,8 @@ function JQuery_jqXHR() { $.ajax('/echo/json').always((data_jqXHR, textStatus, jqXHR_errorThrown) => { // $ExpectType any data_jqXHR; - // $ExpectType "success" | "notmodified" | "nocontent" | "error" | "timeout" | "abort" | "parsererror" - textStatus; + // // $ExpectType "success" | "notmodified" | "nocontent" | "error" | "timeout" | "abort" | "parsererror" + // textStatus; // $ExpectType string | jqXHR jqXHR_errorThrown; }); @@ -6592,8 +6592,8 @@ function JQuery_jqXHR() { $.ajax('/echo/json').always([(data_jqXHR, textStatus, jqXHR_errorThrown) => { // $ExpectType any data_jqXHR; - // $ExpectType "success" | "notmodified" | "nocontent" | "error" | "timeout" | "abort" | "parsererror" - textStatus; + // // $ExpectType "success" | "notmodified" | "nocontent" | "error" | "timeout" | "abort" | "parsererror" + // textStatus; // $ExpectType string | jqXHR jqXHR_errorThrown; }]); diff --git a/types/jquery/tslint.json b/types/jquery/tslint.json index da57c7462f..24680d3efb 100644 --- a/types/jquery/tslint.json +++ b/types/jquery/tslint.json @@ -5,10 +5,13 @@ "await-promise": false, "ban-types": false, "callable-types": false, + "no-any-union": false, "no-boolean-literal-compare": false, + "no-declare-current-package": false, "no-empty-interface": false, "no-misused-new": false, "no-object-literal-type-assertion": false, + "no-unnecessary-generics": false, "no-unnecessary-qualifier": false, "no-unnecessary-type-assertion": false, "no-var-keyword": false, From 135425f6da083ca147050b9ca3676a3835e3828b Mon Sep 17 00:00:00 2001 From: totano Date: Tue, 17 Oct 2017 19:13:28 +0200 Subject: [PATCH 134/506] @types/jest: added setTimeout method (#20610) * added setTimeout method * Update and rename index.d.ts to test * Rename test to index.ts * Update index.ts * Rename index.ts to index.d.ts * Update index.d.ts * Update jest-tests.ts * Update jest-tests.ts * Update jest-tests.ts * Update jest-tests.ts --- types/jest/index.d.ts | 5 +++++ types/jest/jest-tests.ts | 11 +++++++++++ 2 files changed, 16 insertions(+) diff --git a/types/jest/index.d.ts b/types/jest/index.d.ts index dec3b65be1..80afeab207 100644 --- a/types/jest/index.d.ts +++ b/types/jest/index.d.ts @@ -153,6 +153,11 @@ declare namespace jest { * for the specified module. */ function setMock(moduleName: string, moduleExports: T): typeof jest; + /** + * Set the default timeout interval for tests and before/after hooks in milliseconds. + * Note: The default timeout interval is 5 seconds if this method is not called. + */ + function setTimeout(timeout: number): typeof jest; /** * Creates a mock function similar to jest.fn but also tracks calls to object[methodName] */ diff --git a/types/jest/jest-tests.ts b/types/jest/jest-tests.ts index a6d062a148..d2b4d95a0e 100644 --- a/types/jest/jest-tests.ts +++ b/types/jest/jest-tests.ts @@ -239,6 +239,17 @@ describe('Assymetric matchers', () => { }); }); +describe('setTimeout', () => { + it('works as expected', done => { + jest.setTimeout(1000); + + setTimeout(() => { + expect(true).toBeTruthy(); + done(); + }, 900); + }); +}); + describe('Extending extend', () => { it('works', () => { expect.extend({ From fac842126498758c553d23be1cbcb1bf3ddc1532 Mon Sep 17 00:00:00 2001 From: Piotr Roszatycki Date: Tue, 17 Oct 2017 20:57:31 +0200 Subject: [PATCH 135/506] Type definitions for Nodemailer 4.1.3 (#20443) --- .../nodemailer-direct-transport/tsconfig.json | 5 + types/nodemailer-mailgun-transport/index.d.ts | 22 +- .../nodemailer-mailgun-transport-tests.ts | 3 +- .../nodemailer-pickup-transport/tsconfig.json | 5 + types/nodemailer-ses-transport/tsconfig.json | 5 + types/nodemailer-smtp-pool/tsconfig.json | 5 + types/nodemailer-smtp-transport/tsconfig.json | 5 + types/nodemailer-stub-transport/tsconfig.json | 5 + types/nodemailer/index.d.ts | 239 +-- types/nodemailer/lib/addressparser.d.ts | 24 + types/nodemailer/lib/base64.d.ts | 22 + types/nodemailer/lib/dkim.d.ts | 41 + types/nodemailer/lib/fetch/cookies.d.ts | 54 + types/nodemailer/lib/fetch/index.d.ts | 32 + types/nodemailer/lib/json-transport.d.ts | 45 + types/nodemailer/lib/mail-composer.d.ts | 25 + types/nodemailer/lib/mailer/index.d.ts | 214 +++ types/nodemailer/lib/mailer/mail-message.d.ts | 26 + types/nodemailer/lib/mime-funcs/index.d.ts | 87 ++ .../nodemailer/lib/mime-funcs/mime-types.d.ts | 2 + types/nodemailer/lib/mime-node.d.ts | 131 ++ types/nodemailer/lib/qp.d.ts | 23 + types/nodemailer/lib/sendmail-transport.d.ts | 49 + types/nodemailer/lib/ses-transport.d.ts | 84 + types/nodemailer/lib/shared.d.ts | 38 + types/nodemailer/lib/smtp-connection.d.ts | 202 +++ types/nodemailer/lib/smtp-pool.d.ts | 87 ++ types/nodemailer/lib/smtp-transport.d.ts | 80 + types/nodemailer/lib/stream-transport.d.ts | 52 + types/nodemailer/lib/well-known.d.ts | 6 + types/nodemailer/lib/xoauth2.d.ts | 104 ++ types/nodemailer/nodemailer-tests.ts | 1353 ++++++++++++++++- types/nodemailer/tsconfig.json | 24 +- types/nodemailer/tslint.json | 6 + types/nodemailer/v3/index.d.ts | 215 +++ types/nodemailer/v3/nodemailer-tests.ts | 71 + types/nodemailer/{ => v3}/package.json | 0 types/nodemailer/v3/tsconfig.json | 28 + 38 files changed, 3152 insertions(+), 267 deletions(-) create mode 100644 types/nodemailer/lib/addressparser.d.ts create mode 100644 types/nodemailer/lib/base64.d.ts create mode 100644 types/nodemailer/lib/dkim.d.ts create mode 100644 types/nodemailer/lib/fetch/cookies.d.ts create mode 100644 types/nodemailer/lib/fetch/index.d.ts create mode 100644 types/nodemailer/lib/json-transport.d.ts create mode 100644 types/nodemailer/lib/mail-composer.d.ts create mode 100644 types/nodemailer/lib/mailer/index.d.ts create mode 100644 types/nodemailer/lib/mailer/mail-message.d.ts create mode 100644 types/nodemailer/lib/mime-funcs/index.d.ts create mode 100644 types/nodemailer/lib/mime-funcs/mime-types.d.ts create mode 100644 types/nodemailer/lib/mime-node.d.ts create mode 100644 types/nodemailer/lib/qp.d.ts create mode 100644 types/nodemailer/lib/sendmail-transport.d.ts create mode 100644 types/nodemailer/lib/ses-transport.d.ts create mode 100644 types/nodemailer/lib/shared.d.ts create mode 100644 types/nodemailer/lib/smtp-connection.d.ts create mode 100644 types/nodemailer/lib/smtp-pool.d.ts create mode 100644 types/nodemailer/lib/smtp-transport.d.ts create mode 100644 types/nodemailer/lib/stream-transport.d.ts create mode 100644 types/nodemailer/lib/well-known.d.ts create mode 100644 types/nodemailer/lib/xoauth2.d.ts create mode 100644 types/nodemailer/tslint.json create mode 100644 types/nodemailer/v3/index.d.ts create mode 100644 types/nodemailer/v3/nodemailer-tests.ts rename types/nodemailer/{ => v3}/package.json (100%) create mode 100644 types/nodemailer/v3/tsconfig.json diff --git a/types/nodemailer-direct-transport/tsconfig.json b/types/nodemailer-direct-transport/tsconfig.json index 00d449ecd7..a86a4a088a 100644 --- a/types/nodemailer-direct-transport/tsconfig.json +++ b/types/nodemailer-direct-transport/tsconfig.json @@ -12,6 +12,11 @@ "typeRoots": [ "../" ], + "paths": { + "nodemailer": [ + "nodemailer/v3" + ] + }, "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true diff --git a/types/nodemailer-mailgun-transport/index.d.ts b/types/nodemailer-mailgun-transport/index.d.ts index 63db09ae29..71acb6691e 100644 --- a/types/nodemailer-mailgun-transport/index.d.ts +++ b/types/nodemailer-mailgun-transport/index.d.ts @@ -2,19 +2,33 @@ // Project: https://github.com/orliesaurus/nodemailer-mailgun-transport // Definitions by: Oto Ciulis // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.3 import * as nodemailer from 'nodemailer'; +import Mail = require('nodemailer/lib/mailer'); +import MailMessage = require('nodemailer/lib/mailer/mail-message'); declare namespace mailgunTransport { - interface Options { - auth: AuthOptions; - } interface AuthOptions { api_key: string; domain?: string; } + + interface Options { + auth: AuthOptions; + } + + type MailOptions = Mail.Options; + + type Information = object; + + class MailgunTransport implements nodemailer.Transport { + name: string; + version: string; + send(mail: MailMessage, callback: (err: Error | null, info?: Information) => void): void; + } } -declare function mailgunTransport(options: mailgunTransport.Options): nodemailer.Transport; +declare function mailgunTransport(options: mailgunTransport.Options): mailgunTransport.MailgunTransport; export = mailgunTransport; diff --git a/types/nodemailer-mailgun-transport/nodemailer-mailgun-transport-tests.ts b/types/nodemailer-mailgun-transport/nodemailer-mailgun-transport-tests.ts index 20ab33766b..0980f43cbd 100644 --- a/types/nodemailer-mailgun-transport/nodemailer-mailgun-transport-tests.ts +++ b/types/nodemailer-mailgun-transport/nodemailer-mailgun-transport-tests.ts @@ -24,6 +24,7 @@ const mailOptions: nodemailer.SendMailOptions = { text: 'Hello world ✔', // plaintext body html: 'Hello world ✔' // html body }; -transport.sendMail(mailOptions, (error: Error, info: nodemailer.SentMessageInfo): void => { + +transport.sendMail(mailOptions, (error: Error | null, info: nodemailer.SentMessageInfo): void => { // nothing }); diff --git a/types/nodemailer-pickup-transport/tsconfig.json b/types/nodemailer-pickup-transport/tsconfig.json index 777d450e29..913453977e 100644 --- a/types/nodemailer-pickup-transport/tsconfig.json +++ b/types/nodemailer-pickup-transport/tsconfig.json @@ -12,6 +12,11 @@ "typeRoots": [ "../" ], + "paths": { + "nodemailer": [ + "nodemailer/v3" + ] + }, "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true diff --git a/types/nodemailer-ses-transport/tsconfig.json b/types/nodemailer-ses-transport/tsconfig.json index 42f2bb9c76..bdaffbb222 100644 --- a/types/nodemailer-ses-transport/tsconfig.json +++ b/types/nodemailer-ses-transport/tsconfig.json @@ -13,6 +13,11 @@ "typeRoots": [ "../" ], + "paths": { + "nodemailer": [ + "nodemailer/v3" + ] + }, "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true diff --git a/types/nodemailer-smtp-pool/tsconfig.json b/types/nodemailer-smtp-pool/tsconfig.json index 26e5f2737f..63a47e4ce7 100644 --- a/types/nodemailer-smtp-pool/tsconfig.json +++ b/types/nodemailer-smtp-pool/tsconfig.json @@ -12,6 +12,11 @@ "typeRoots": [ "../" ], + "paths": { + "nodemailer": [ + "nodemailer/v3" + ] + }, "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true diff --git a/types/nodemailer-smtp-transport/tsconfig.json b/types/nodemailer-smtp-transport/tsconfig.json index c35d5cade4..4bce06278d 100644 --- a/types/nodemailer-smtp-transport/tsconfig.json +++ b/types/nodemailer-smtp-transport/tsconfig.json @@ -12,6 +12,11 @@ "typeRoots": [ "../" ], + "paths": { + "nodemailer": [ + "nodemailer/v3" + ] + }, "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true diff --git a/types/nodemailer-stub-transport/tsconfig.json b/types/nodemailer-stub-transport/tsconfig.json index 378719af41..c8fed1b487 100644 --- a/types/nodemailer-stub-transport/tsconfig.json +++ b/types/nodemailer-stub-transport/tsconfig.json @@ -12,6 +12,11 @@ "typeRoots": [ "../" ], + "paths": { + "nodemailer": [ + "nodemailer/v3" + ] + }, "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true diff --git a/types/nodemailer/index.d.ts b/types/nodemailer/index.d.ts index fb1c359625..da0605ddcf 100644 --- a/types/nodemailer/index.d.ts +++ b/types/nodemailer/index.d.ts @@ -1,215 +1,64 @@ -// Type definitions for Nodemailer 3.1.5 -// Project: https://github.com/andris9/Nodemailer +// Type definitions for Nodemailer 4.1 +// Project: https://github.com/nodemailer/nodemailer // Definitions by: Rogier Schouten +// Piotr Roszatycki // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.3 /// -import directTransport = require("nodemailer-direct-transport"); -import smtpTransport = require("nodemailer-smtp-transport"); -import sesTransport = require("nodemailer-ses-transport") +import JSONTransport = require('./lib/json-transport'); +import Mail = require('./lib/mailer'); +import MailMessage = require('./lib/mailer/mail-message'); +import SendmailTransport = require('./lib/sendmail-transport'); +import SESTransport = require('./lib/ses-transport'); +import SMTPPool = require('./lib/smtp-pool'); +import SMTPTransport = require('./lib/smtp-transport'); +import StreamTransport = require('./lib/stream-transport'); -/** - * Transporter plugin - */ -export interface Plugin { - (mail: SendMailOptions, callback?: (error: Error, info: SentMessageInfo) => void): void; -} +export type SendMailOptions = Mail.Options; -/** - * This is what you use to send mail - */ -export interface Transporter { - /** - * Send a mail with callback - */ - sendMail(mail: SendMailOptions, callback: (error: Error, info: SentMessageInfo) => void): void; +export type SentMessageInfo = any; - /** - * Send a mail - * return Promise - */ - sendMail(mail: SendMailOptions): Promise; +export type Transporter = Mail; - /** - * Attach a plugin. 'compile' and 'stream' plugins can be attached with use(plugin) method - * - * @param step is a string, either 'compile' or 'stream' thatd defines when the plugin should be hooked - * @param pluginFunc is a function that takes two arguments: the mail object and a callback function - */ - use(step: string, plugin: Plugin): void; +export interface Transport { + mailer?: Mail; - /** - * Verifies connection with server - */ - verify(callback: (error: Error, success?: boolean) => void): void; + name: string; + version: string; - /** - * Verifies connection with server - */ - verify(): Promise; + send(mail: MailMessage, callback: (err: Error | null, info: SentMessageInfo) => void): void; + + verify?(callback: (err: Error | null, success: true) => void): void; + verify?(): Promise; - /** - * Close all connections - */ close?(): void; } -/** - * Create a direct transporter - */ -export declare function createTransport(options?: directTransport.DirectOptions, defaults?: Object): Transporter; -/** - * Create an SMTP transporter - */ -export declare function createTransport(options?: smtpTransport.SmtpOptions, defaults?: Object): Transporter; -/** - * Create an SMTP transporter using a connection url - */ -export declare function createTransport(connectionUrl: string, defaults?: Object): Transporter; -/** - * Create an AWS SES transporter - */ -export declare function createTransport(options?: sesTransport.SesOptions, defaults?: Object): Transporter; -/** - * Create a transporter from a given implementation - */ -export declare function createTransport(transport: Transport, defaults?: Object): Transporter; -export interface AttachmentObject { - /** - * filename to be reported as the name of the attached file, use of unicode is allowed - */ - filename?: string; - /** - * optional content id for using inline images in HTML message source - */ - cid?: string; - /** - * Pathname or URL to use streaming - */ - path?: string; - /** - * String, Buffer or a Stream contents for the attachment - */ - content: string|Buffer|NodeJS.ReadableStream; - /** - * If set and content is string, then encodes the content to a Buffer using the specified encoding. Example values: base64, hex, 'binary' etc. Useful if you want to use binary attachments in a JSON formatted e-mail object. - */ - encoding?: string; - /** - * optional content type for the attachment, if not set will be derived from the filename property - */ - contentType?: string; - /** - * optional content disposition type for the attachment, defaults to 'attachment' - */ - contentDisposition?: string; +export interface TransportOptions { + component?: string; } -export interface SendMailOptions { - /** - * The e-mail address of the sender. All e-mail addresses can be plain 'sender@server.com' or formatted 'Sender Name ', see here for details - */ - from?: string; - /** - * An e-mail address that will appear on the Sender: field - */ - sender?: string; - /** - * Comma separated list or an array of recipients e-mail addresses that will appear on the To: field - */ - to?: string|string[]; - /** - * Comma separated list or an array of recipients e-mail addresses that will appear on the Cc: field - */ - cc?: string|string[]; - /** - * Comma separated list or an array of recipients e-mail addresses that will appear on the Bcc: field - */ - bcc?: string|string[]; - /** - * An e-mail address that will appear on the Reply-To: field - */ - replyTo?: string; - /** - * The message-id this message is replying - */ - inReplyTo?: string; - /** - * Message-id list (an array or space separated string) - */ - references?: string|string[]; - /** - * The subject of the e-mail - */ - subject?: string; - /** - * The plaintext version of the message as an Unicode string, Buffer, Stream or an object {path: '...'} - */ - text?: string|Buffer|NodeJS.ReadableStream|AttachmentObject; - /** - * The HTML version of the message as an Unicode string, Buffer, Stream or an object {path: '...'} - */ - html?: string|Buffer|NodeJS.ReadableStream|AttachmentObject; - /** - * An object or array of additional header fields (e.g. {"X-Key-Name": "key value"} or [{key: "X-Key-Name", value: "val1"}, {key: "X-Key-Name", value: "val2"}]) - */ - headers?: any; - /** - * An array of attachment objects (see below for details) - */ - attachments?: AttachmentObject[]; - /** - * An array of alternative text contents (in addition to text and html parts) (see below for details) - */ - alternatives?: AttachmentObject[]; - /** - * optional Message-Id value, random value will be generated if not set - */ - messageId?: string; - /** - * optional Date value, current UTC string will be used if not set - */ - date?: Date; - /** - * optional transfer encoding for the textual parts (defaults to 'quoted-printable') - */ - encoding?: string; +export interface TestAccount { + user: string; + pass: string; + smtp: { host: string, port: number, secure: boolean }; + imap: { host: string, port: number, secure: boolean }; + pop3: { host: string, port: number, secure: boolean }; + web: string; } -export interface SentMessageInfo { - /** - * most transports should return the final Message-Id value used with this property - */ - messageId: string; - /** - * includes the envelope object for the message - */ - envelope: any; - /** - * is an array returned by SMTP transports (includes recipient addresses that were accepted by the server) - */ - accepted: string[]; - /** - * is an array returned by SMTP transports (includes recipient addresses that were rejected by the server) - */ - rejected: string[]; - /** - * is an array returned by Direct SMTP transport. Includes recipient addresses that were temporarily rejected together with the server response - */ - pending?: string[]; - /** - * is a string returned by SMTP transports and includes the last SMTP response from the server - */ - response: string; -} +export function createTransport(transport?: SMTPTransport | SMTPTransport.Options | string, defaults?: SMTPTransport.Options): Mail; +export function createTransport(transport: SMTPPool | SMTPPool.Options, defaults?: SMTPPool.Options): Mail; +export function createTransport(transport: SendmailTransport | SendmailTransport.Options, defaults?: SendmailTransport.Options): Mail; +export function createTransport(transport: StreamTransport | StreamTransport.Options, defaults?: StreamTransport.Options): Mail; +export function createTransport(transport: JSONTransport | JSONTransport.Options, defaults?: JSONTransport.Options): Mail; +export function createTransport(transport: SESTransport | SESTransport.Options, defaults?: SESTransport.Options): Mail; +export function createTransport(transport: Transport | TransportOptions, defaults?: TransportOptions): Mail; -/** - * This is what you implement to create a new transporter yourself - */ -export interface Transport { - name: string; - version: string; - send(mail: SendMailOptions, callback?: (error: Error, info: SentMessageInfo) => void): void; - close(): void; -} +export function createTestAccount(apiUrl: string, callback: (err: Error | null, testAccount: TestAccount) => void): void; +export function createTestAccount(callback: (err: Error | null, testAccount: TestAccount) => void): void; +export function createTestAccount(apiUrl?: string): Promise; + +export function getTestMessageUrl(info: SESTransport.SentMessageInfo | SMTPTransport.SentMessageInfo): string | false; diff --git a/types/nodemailer/lib/addressparser.d.ts b/types/nodemailer/lib/addressparser.d.ts new file mode 100644 index 0000000000..4a6f2962cf --- /dev/null +++ b/types/nodemailer/lib/addressparser.d.ts @@ -0,0 +1,24 @@ +declare namespace addressparser { + interface Address { + name: string; + address: string; + } +} + +/** + * Parses structured e-mail addresses from an address field + * + * Example: + * + * 'Name ' + * + * will be converted to + * + * [{name: 'Name', address: 'address@domain'}] + * + * @param {String} str Address field + * @return {Array} An array of address objects + */ +declare function addressparser(address: string): addressparser.Address; + +export = addressparser; diff --git a/types/nodemailer/lib/base64.d.ts b/types/nodemailer/lib/base64.d.ts new file mode 100644 index 0000000000..a49feefd2a --- /dev/null +++ b/types/nodemailer/lib/base64.d.ts @@ -0,0 +1,22 @@ +/// + +import { Transform, TransformOptions } from 'stream'; + +/** Encodes a Buffer into a base64 encoded string */ +export function encode(buffer: Buffer | string): string; + +/** Adds soft line breaks to a base64 string */ +export function wrap(str: string, lineLength?: number): string; + +export interface EncoderOptions extends TransformOptions { + lineLength?: number | false; +} + +export class Encoder extends Transform { + options: TransformOptions; + + inputBytes: number; + outputBytes: number; + + constructor(options?: TransformOptions); +} diff --git a/types/nodemailer/lib/dkim.d.ts b/types/nodemailer/lib/dkim.d.ts new file mode 100644 index 0000000000..de445f9567 --- /dev/null +++ b/types/nodemailer/lib/dkim.d.ts @@ -0,0 +1,41 @@ +/// + +declare namespace DKIM { + interface OptionalOptions { + /** optional location for cached messages. If not set then caching is not used. */ + cacheDir?: string | false; + /** optional size in bytes, if message is larger than this treshold it gets cached to disk (assuming cacheDir is set and writable). Defaults to 131072 (128 kB). */ + cacheTreshold?: number; + /** optional algorithm for the body hash, defaults to ‘sha256’ */ + hashAlgo?: string; + /** an optional colon separated list of header keys to sign (eg. message-id:date:from:to...') */ + headerFieldNames?: string; + /** optional colon separated list of header keys not to sign. This is useful if you want to sign all the relevant keys but your provider changes some values, ie Message-ID and Date. In this case you should use 'message-id:date' to prevent signing these values. */ + skipFields?: string; + } + + interface SingleKeyOptions extends OptionalOptions { + /** is the domain name to use in the signature */ + domainName: string; + /** is the DKIM key selector */ + keySelector: string; + /** is the private key for the selector in PEM format */ + privateKey: string | { key: string; passphrase: string }; + } + + interface MultipleKeysOptions extends OptionalOptions { + /** is an optional array of key objects (domainName, keySelector, privateKey) if you want to add more than one signature to the message. If this value is set then the default key values are ignored */ + keys: SingleKeyOptions[]; + } + + type Options = SingleKeyOptions | MultipleKeysOptions; +} + +declare class DKIM { + options: DKIM.Options; + keys: Array; + + constructor(options: DKIM.Options); +} + +export = DKIM; diff --git a/types/nodemailer/lib/fetch/cookies.d.ts b/types/nodemailer/lib/fetch/cookies.d.ts new file mode 100644 index 0000000000..e6a2cc2acf --- /dev/null +++ b/types/nodemailer/lib/fetch/cookies.d.ts @@ -0,0 +1,54 @@ +type s = number; + +declare namespace Cookies { + interface Cookie { + name: string; + value?: string; + expires?: Date; + path?: string; + domain?: string; + secure?: boolean; + httponly?: boolean; + } + + interface Options { + sessionTimeout?: s; + } +} + +/** Creates a biskviit cookie jar for managing cookie values in memory */ +declare class Cookies { + options: Cookies.Options; + cookies: Cookies.Cookie[]; + + constructor(options?: Cookies.Options); + + /** Stores a cookie string to the cookie storage */ + set(cookieStr: string, url: string): boolean; + + /** Returns cookie string for the 'Cookie:' header. */ + get(url: string): string; + + /** Lists all valied cookie objects for the specified URL */ + list(url: string): Cookies.Cookie[]; + + /** Parses cookie string from the 'Set-Cookie:' header */ + parse(cookieStr: string): Cookies.Cookie; + + /** Checks if a cookie object is valid for a specified URL */ + match(cookie: Cookies.Cookie, url: string): boolean; + + /** Adds (or updates/removes if needed) a cookie object to the cookie storage */ + add(cookie: Cookies.Cookie): boolean; + + /** Checks if two cookie objects are the same */ + compare(a: Cookies.Cookie, b: Cookies.Cookie): boolean; + + /** Checks if a cookie is expired */ + isExpired(cookie: Cookies.Cookie): boolean; + + /** Returns normalized cookie path for an URL path argument */ + getPath(pathname: string): string; +} + +export = Cookies; diff --git a/types/nodemailer/lib/fetch/index.d.ts b/types/nodemailer/lib/fetch/index.d.ts new file mode 100644 index 0000000000..8fc814c517 --- /dev/null +++ b/types/nodemailer/lib/fetch/index.d.ts @@ -0,0 +1,32 @@ +/// + +type ms = number; + +import _Cookies = require('./cookies'); + +import { Writable } from 'stream'; +import * as tls from 'tls'; + +declare namespace fetch { + type Cookies = _Cookies; + + interface Options { + fetchRes?: Writable; + cookies?: Cookies; + cookie?: string; + redirects?: number; + maxRedirects?: number; + method?: string; + headers?: { [key: string]: string }; + userAgent?: string; + body?: Buffer | string | { [key: string]: string }; + contentType?: string | false; + tls?: tls.TlsOptions; + timeout?: ms; + allowErrorResponse?: boolean; + } +} + +declare function fetch(url: string, options?: fetch.Options): Writable; + +export = fetch; diff --git a/types/nodemailer/lib/json-transport.d.ts b/types/nodemailer/lib/json-transport.d.ts new file mode 100644 index 0000000000..f6792f4402 --- /dev/null +++ b/types/nodemailer/lib/json-transport.d.ts @@ -0,0 +1,45 @@ +/// + +import { EventEmitter } from 'events'; + +import { Transport, TransportOptions } from '..'; + +import * as shared from './shared'; + +import Mail = require('./mailer'); +import MailMessage = require('./mailer/mail-message'); +import MimeNode = require('./mime-node'); + +declare namespace JSONTransport { + type MailOptions = Mail.Options; + + interface Options extends MailOptions, TransportOptions { + jsonTransport: true; + } + + interface SentMessageInfo { + /** an envelope object {from:‘address’, to:[‘address’]} */ + envelope: MimeNode.Envelope; + /** the Message-ID header value */ + messageId: string; + /** JSON string */ + message: string; + } +} + +declare class JSONTransport implements Transport { + options: JSONTransport.Options; + + logger: shared.Logger; + mailer: Mail; + + name: string; + version: string; + + constructor(options: JSONTransport.Options); + + /** Compiles a mailcomposer message and forwards it to handler that sends it */ + send(mail: MailMessage, callback: (err: Error | null, info: JSONTransport.SentMessageInfo) => void): void; +} + +export = JSONTransport; diff --git a/types/nodemailer/lib/mail-composer.d.ts b/types/nodemailer/lib/mail-composer.d.ts new file mode 100644 index 0000000000..71df8f796f --- /dev/null +++ b/types/nodemailer/lib/mail-composer.d.ts @@ -0,0 +1,25 @@ +/// + +import { URL } from 'url'; + +import Mail = require('./mailer'); +import MimeNode = require('./mime-node'); + +/** Creates the object for composing a MimeNode instance out from the mail options */ +declare class MailComposer { + mail: Mail.Options; + message: MimeNode | false; + + constructor(mail: Mail.Options); + + /** Builds MimeNode instance */ + compile(): MimeNode; + + /** List all attachments. Resulting attachment objects can be used as input for MimeNode nodes */ + getAttachments(findRelated: boolean): Mail.Attachment[]; + + /** List alternatives. Resulting objects can be used as input for MimeNode nodes */ + getAlternatives(): Mail.Attachment[]; +} + +export = MailComposer; diff --git a/types/nodemailer/lib/mailer/index.d.ts b/types/nodemailer/lib/mailer/index.d.ts new file mode 100644 index 0000000000..f08c2d085d --- /dev/null +++ b/types/nodemailer/lib/mailer/index.d.ts @@ -0,0 +1,214 @@ +/// + +import { EventEmitter } from 'events'; +import { Socket } from 'net'; +import { Readable } from 'stream'; +import { URL } from 'url'; + +import { SentMessageInfo, Transport, TransportOptions } from '../..'; +import * as shared from '../shared'; + +import DKIM = require('../dkim'); +import MailMessage = require('./mail-message'); +import MimeNode = require('../mime-node'); +import SMTPConnection = require('../smtp-connection'); +import XOAuth2 = require('../xoauth2'); + +declare namespace Mail { + type Headers = { [key: string]: string | string[] | { prepared: boolean, value: string } } | Array<{ key: string, value: string }>; + + type ListHeader = string | { url: string, comment: string }; + + interface ListHeaders { + [key: string]: ListHeader | ListHeader[] | ListHeader[][]; + } + + type TextEncoding = 'quoted-printable' | 'base64'; + + interface Address { + name: string; + address: string; + } + + interface AttachmentLike { + /** String, Buffer or a Stream contents for the attachmentent */ + content?: string | Buffer | Readable; + /** path to a file or an URL (data uris are allowed as well) if you want to stream the file instead of including it (better for larger attachments) */ + path?: string | URL; + } + + interface Attachment extends AttachmentLike { + /** filename to be reported as the name of the attached file, use of unicode is allowed. If you do not want to use a filename, set this value as false, otherwise a filename is generated automatically */ + filename?: string | false; + /** optional content id for using inline images in HTML message source. Using cid sets the default contentDisposition to 'inline' and moves the attachment into a multipart/related mime node, so use it only if you actually want to use this attachment as an embedded image */ + cid?: string; + /** If set and content is string, then encodes the content to a Buffer using the specified encoding. Example values: base64, hex, binary etc. Useful if you want to use binary attachments in a JSON formatted e-mail object */ + encoding?: string; + /** optional content type for the attachment, if not set will be derived from the filename property */ + contentType?: string; + /** optional transfer encoding for the attachment, if not set it will be derived from the contentType property. Example values: quoted-printable, base64 */ + contentTransferEncoding?: string; + /** optional content disposition type for the attachment, defaults to ‘attachment’ */ + contentDisposition?: string; + /** is an object of additional headers */ + headers?: Headers; + /** an optional value that overrides entire node content in the mime message. If used then all other options set for this node are ignored. */ + raw?: string | Buffer | Readable | AttachmentLike; + } + + interface IcalAttachment extends AttachmentLike { + /** optional method, case insensitive, defaults to ‘publish’. Other possible values would be ‘request’, ‘reply’, ‘cancel’ or any other valid calendar method listed in RFC5546. This should match the METHOD: value in calendar event file. */ + method?: string; + /** optional filename, defaults to ‘invite.ics’ */ + filename?: string | false; + /** is an alternative for content to load the calendar data from an URL */ + href?: string; + /** defines optional content encoding, eg. ‘base64’ or ‘hex’. This only applies if the content is a string. By default an unicode string is assumed. */ + encoding?: string; + } + + interface Connection { + connection: Socket; + } + + interface Envelope { + /** the first address gets used as MAIL FROM address in SMTP */ + from?: string; + /** addresses from this value get added to RCPT TO list */ + to?: string; + /** addresses from this value get added to RCPT TO list */ + cc?: string; + /** addresses from this value get added to RCPT TO list */ + bcc?: string; + } + + interface Options { + /** The e-mail address of the sender. All e-mail addresses can be plain 'sender@server.com' or formatted 'Sender Name ' */ + from?: string | Address; + /** An e-mail address that will appear on the Sender: field */ + sender?: string | Address; + /** Comma separated list or an array of recipients e-mail addresses that will appear on the To: field */ + to?: string | Address | Array; + /** Comma separated list or an array of recipients e-mail addresses that will appear on the Cc: field */ + cc?: string | Address | Array; + /** Comma separated list or an array of recipients e-mail addresses that will appear on the Bcc: field */ + bcc?: string | Address | Array; + /** An e-mail address that will appear on the Reply-To: field */ + replyTo?: string | Address; + /** The message-id this message is replying */ + inReplyTo?: string | Address; + /** Message-id list (an array or space separated string) */ + references?: string | string[]; + /** The subject of the e-mail */ + subject?: string; + /** The plaintext version of the message */ + text?: string | Buffer | Readable | AttachmentLike; + /** The HTML version of the message */ + html?: string | Buffer | Readable | AttachmentLike; + /** Apple Watch specific HTML version of the message, same usage as with text and html */ + watchHtml?: string | Buffer | Readable | AttachmentLike; + /** iCalendar event, same usage as with text and html. Event method attribute defaults to ‘PUBLISH’ or define it yourself: {method: 'REQUEST', content: iCalString}. This value is added as an additional alternative to html or text. Only utf-8 content is allowed */ + icalEvent?: string | Buffer | Readable | IcalAttachment; + /** An object or array of additional header fields */ + headers?: Headers; + /** An object where key names are converted into list headers. List key help becomes List-Help header etc. */ + list?: ListHeaders; + /** An array of attachment objects */ + attachments?: Attachment[]; + /** An array of alternative text contents (in addition to text and html parts) */ + alternatives?: Attachment[]; + /** optional SMTP envelope, if auto generated envelope is not suitable */ + envelope?: Envelope | MimeNode.Envelope; + /** optional Message-Id value, random value will be generated if not set */ + messageId?: string; + /** optional Date value, current UTC string will be used if not set */ + date?: Date | string; + /** optional transfer encoding for the textual parts */ + encoding?: string; + /** if set then overwrites entire message output with this value. The value is not parsed, so you should still set address headers or the envelope value for the message to work */ + raw?: string | Buffer | Readable | AttachmentLike; + /** set explicitly which encoding to use for text parts (quoted-printable or base64). If not set then encoding is detected from text content (mostly ascii means quoted-printable, otherwise base64) */ + textEncoding?: TextEncoding; + /** if set to true then fails with an error when a node tries to load content from URL */ + disableUrlAccess?: boolean; + /** if set to true then fails with an error when a node tries to load content from a file */ + disableFileAccess?: boolean; + /** is an object with DKIM options */ + dkim?: DKIM.Options; + } + + type PluginFunction = (mail: MailMessage, callback: (err?: Error | null) => void) => void; +} + +/** Creates an object for exposing the Mail API */ +declare class Mail extends EventEmitter { + options: Mail.Options; + meta: Map; + dkim: DKIM; + transporter: Transport; + logger: shared.Logger; + + /** Usage: typeof transporter.MailMessage */ + MailMessage: MailMessage; + + constructor(transporter: Transport, options: TransportOptions, defaults: TransportOptions); + + /** Closes all connections in the pool. If there is a message being sent, the connection is closed later */ + close(): void; + + /** Returns true if there are free slots in the queue */ + isIdle(): boolean; + + /** Verifies SMTP configuration */ + verify(callback: (err: Error | null, success: true) => void): void; + verify(): Promise; + + use(step: string, plugin: Mail.PluginFunction): void; // TODO Plugin? + + /** Sends an email using the preselected transport object */ + sendMail(mailOptions: Mail.Options, callback: (err: Error | null, info: SentMessageInfo) => void): void; + sendMail(mailOptions: Mail.Options): Promise; + + getVersionString(): string; + + /** Sets up proxy handler for a Nodemailer object */ + setupProxy(proxyUrl: string): void; + + set(key: 'oauth2_provision_cb', value: (user: string, renew: boolean, callback: (err: Error | null, accessToken?: string, expires?: number) => void) => void): Map; + set(key: 'proxy_handler_http' | 'proxy_handler_https' | 'proxy_handler_socks' | 'proxy_handler_socks5' | 'proxy_handler_socks4' | 'proxy_handler_socks4a', value: (proxy: URL, options: TransportOptions, callback: (err: Error | null, socketOptions?: { connection: Socket }) => void) => void): Map; + set(key: string, value: any): Map; + + get(key: 'oauth2_provision_cb'): (user: string, renew: boolean, callback: (err: Error | null, accessToken: string, expires: number) => void) => void; + get(key: 'proxy_handler_http' | 'proxy_handler_https' | 'proxy_handler_socks' | 'proxy_handler_socks5' | 'proxy_handler_socks4' | 'proxy_handler_socks4a'): (proxy: URL, options: TransportOptions, callback: (err: Error | null, socketOptions: { connection: Socket }) => void) => void; + get(key: string): any; + + addListener(event: 'error', listener: (err: Error) => void): this; + addListener(event: 'idle', listener: () => void): this; + addListener(event: 'token', listener: (token: XOAuth2.Token) => void): this; + + emit(event: 'error', error: Error): boolean; + emit(event: 'idle'): boolean; + emit(event: 'token', token: XOAuth2.Token): boolean; + + on(event: 'error', listener: (err: Error) => void): this; + on(event: 'idle', listener: () => void): this; + on(event: 'token', listener: (token: XOAuth2.Token) => void): this; + + once(event: 'error', listener: (err: Error) => void): this; + once(event: 'idle', listener: () => void): this; + once(event: 'token', listener: (token: XOAuth2.Token) => void): this; + + prependListener(event: 'error', listener: (err: Error) => void): this; + prependListener(event: 'idle', listener: () => void): this; + prependListener(event: 'end', listener: (token: XOAuth2.Token) => void): this; + + prependOnceListener(event: 'error', listener: (err: Error) => void): this; + prependOnceListener(event: 'idle', listener: () => void): this; + prependOnceListener(event: 'end', listener: (token: XOAuth2.Token) => void): this; + + listeners(event: 'error'): Array<(err: Error) => void>; + listeners(event: 'idle'): Array<() => void>; + listeners(event: 'end'): Array<(token: XOAuth2.Token) => void>; +} + +export = Mail; diff --git a/types/nodemailer/lib/mailer/mail-message.d.ts b/types/nodemailer/lib/mailer/mail-message.d.ts new file mode 100644 index 0000000000..78f9c5d23d --- /dev/null +++ b/types/nodemailer/lib/mailer/mail-message.d.ts @@ -0,0 +1,26 @@ +/// + +import { Readable } from 'stream'; + +import Mail = require('.'); +import MimeNode = require('../mime-node'); + +declare class MailMessage { + mailer: Mail; + data: Mail.Options; + message: MimeNode; + + constructor(mailer: Mail, data: Mail.Options); + + resolveContent(data: object | any[], key: string | number, callback: (err: Error | null, value?: any) => any): Promise; + + resolveAll(callback: (err?: Error | null, data?: Mail.Options) => void): void; + + setMailerHeader(): void; + + setPriorityHeaders(): void; + + setListHeaders(): void; +} + +export = MailMessage; diff --git a/types/nodemailer/lib/mime-funcs/index.d.ts b/types/nodemailer/lib/mime-funcs/index.d.ts new file mode 100644 index 0000000000..49fd09c2f2 --- /dev/null +++ b/types/nodemailer/lib/mime-funcs/index.d.ts @@ -0,0 +1,87 @@ +export interface HeaderValue { + value: string; + params?: { [key: string]: string }; +} + +export interface ParsedHeaderValue extends HeaderValue { + params: { [key: string]: string }; +} + +export interface ParsedHeaderParam { + key: string; + value: string; +} + +/** Checks if a value is plaintext string (uses only printable 7bit chars) */ +export function isPlainText(value: string): boolean; + +/** + * Checks if a multi line string containes lines longer than the selected value. + * + * Useful when detecting if a mail message needs any processing at all – + * if only plaintext characters are used and lines are short, then there is + * no need to encode the values in any way. If the value is plaintext but has + * longer lines then allowed, then use format=flowed + */ +export function hasLongerLines(str: string, lineLength: number): boolean; + +/** Encodes a string or an Buffer to an UTF-8 MIME Word (rfc2047) */ +export function encodeWord(data: Buffer | string, mimeWordEncoding?: 'Q' | 'B', maxLength?: number): string; + +/** Finds word sequences with non ascii text and converts these to mime words */ +export function encodeWords(value: string, mimeWordEncoding?: 'Q' | 'B', maxLength?: number): string; + +/** + * Joins parsed header value together as 'value; param1=value1; param2=value2' + * PS: We are following RFC 822 for the list of special characters that we need to keep in quotes. + * Refer: https://www.w3.org/Protocols/rfc1341/4_Content-Type.html + */ +export function buildHeaderValue(structured: HeaderValue): string; + +/** + * Encodes a string or an Buffer to an UTF-8 Parameter Value Continuation encoding (rfc2231) + * Useful for splitting long parameter values. + * + * For example + * ``` + * title="unicode string" + * ``` + * becomes + * ``` + * title*0*=utf-8''unicode + * title*1*=%20string + * ``` + */ +export function buildHeaderParam(key: string, data: Buffer | string, maxLength?: number): ParsedHeaderParam[]; + +/** + * Parses a header value with key=value arguments into a structured + * object. + * + * ``` + * parseHeaderValue('content-type: text/plain; CHARSET='UTF-8') -> + * { + * 'value': 'text/plain', + * 'params': { + * 'charset': 'UTF-8' + * } + * } + * ``` + */ +export function parseHeaderValue(str: string): ParsedHeaderValue; + +/** Returns file extension for a content type string. If no suitable extensions are found, 'bin' is used as the default extension */ +export function detectExtension(mimeType: string): string; + +/** Returns content type for a file extension. If no suitable content types are found, 'application/octet-stream' is used as the default content type */ +export function detectMimeType(extension: string): string; + +/** Folds long lines, useful for folding header lines (afterSpace=false) and flowed text (afterSpace=true) */ +export function foldLines(str: string, lineLength?: number, afterSpace?: boolean): string; + +/** Splits a mime encoded string. Needed for dividing mime words into smaller chunks */ +export function splitMimeEncodedString(str: string, maxlen?: number): string[]; + +export function encodeURICharComponent(chr: string): string; + +export function safeEncodeURIComponent(str: string): string; diff --git a/types/nodemailer/lib/mime-funcs/mime-types.d.ts b/types/nodemailer/lib/mime-funcs/mime-types.d.ts new file mode 100644 index 0000000000..7b9f9c529c --- /dev/null +++ b/types/nodemailer/lib/mime-funcs/mime-types.d.ts @@ -0,0 +1,2 @@ +export function detectMimeType(filename: string | false): string; +export function detectExtension(mimeType: string | false): string; diff --git a/types/nodemailer/lib/mime-node.d.ts b/types/nodemailer/lib/mime-node.d.ts new file mode 100644 index 0000000000..98eda91874 --- /dev/null +++ b/types/nodemailer/lib/mime-node.d.ts @@ -0,0 +1,131 @@ +/// + +import { Readable, ReadableOptions, Transform } from 'stream'; + +import Mail = require('./mailer'); +import SMTPConnection = require('./smtp-connection'); + +declare namespace MimeNode { + interface Addresses { + from?: string[]; + sender?: string[]; + 'reply-to'?: string[]; + to?: string[]; + cc?: string[]; + bcc?: string[]; + } + + interface Envelope { + /** includes an address object or is set to false */ + from: string | false; + /** includes an array of address objects */ + to: string[]; + } + + interface Options { + /** root node for this tree */ + rootNode?: MimeNode; + /** immediate parent for this node */ + parentNode?: MimeNode; + /** filename for an attachment node */ + filename?: string; + /** shared part of the unique multipart boundary */ + baseBoundary?: string; + /** If true, do not exclude Bcc from the generated headers */ + keepBcc?: boolean; + /** either 'Q' (the default) or 'B' */ + textEncoding: 'B' | 'Q'; + } +} + +/** + * Creates a new mime tree node. Assumes 'multipart/*' as the content type + * if it is a branch, anything else counts as leaf. If rootNode is missing from + * the options, assumes this is the root. + */ +declare class MimeNode { + constructor(contentType: string, options: MimeNode.Options); + + /** Creates and appends a child node.Arguments provided are passed to MimeNode constructor */ + createChild(contentType: string, options: MimeNode.Options): MimeNode; + + /** Appends an existing node to the mime tree. Removes the node from an existing tree if needed */ + appendChild(childNode: MimeNode): MimeNode; + + /** Replaces current node with another node */ + replace(node: MimeNode): MimeNode; + + /** Removes current node from the mime tree */ + remove(): this; + + /** + * Sets a header value. If the value for selected key exists, it is overwritten. + * You can set multiple values as well by using [{key:'', value:''}] or + * {key: 'value'} as the first argument. + */ + setHeader(key: string, value: string): this; + setHeader(headers: { [key: string]: string } | Array<{ key: string, value: string }>): this; + + /** + * Adds a header value. If the value for selected key exists, the value is appended + * as a new field and old one is not touched. + * You can set multiple values as well by using [{key:'', value:''}] or + * {key: 'value'} as the first argument. + */ + addHeader(key: string, value: string): this; + addHeader(headers: { [key: string]: string } | Array<{ key: string, value: string }>): this; + + /** Retrieves the first mathcing value of a selected key */ + getHeader(key: string): string; + + /** + * Sets body content for current node. If the value is a string, charset is added automatically + * to Content-Type (if it is text/*). If the value is a Buffer, you need to specify + * the charset yourself + */ + setContent(content: string | Buffer | Readable): this; + + /** Generate the message and return it with a callback */ + build(callback: (err: Error | null, buf: Buffer) => void): void; + + getTransferEncoding(): string; + + /** Builds the header block for the mime node. Append \r\n\r\n before writing the content */ + buildHeaders(): string; + + /** + * Streams the rfc2822 message from the current node. If this is a root node, + * mandatory header fields are set if missing (Date, Message-Id, MIME-Version) + */ + createReadStream(options?: ReadableOptions): Readable; + + /** + * Appends a transform stream object to the transforms list. Final output + * is passed through this stream before exposing + */ + transform(transform: Transform): void; + + /** + * Appends a post process function. The functon is run after transforms and + * uses the following syntax + * + * processFunc(input) -> outputStream + */ + processFunc(processFunc: (outputStream: Readable) => Readable): void; + + stream(outputStream: Readable, options: ReadableOptions, done: (err?: Error | null) => void): void; + + /** Sets envelope to be used instead of the generated one */ + setEnvelope(envelope: Mail.Envelope): this; + + /** Generates and returns an object with parsed address fields */ + getAddresses(): MimeNode.Addresses; + + /** Generates and returns SMTP envelope with the sender address and a list of recipients addresses */ + getEnvelope(): MimeNode.Envelope; + + /** Sets pregenerated content that will be used as the output of this node */ + setRaw(raw: string | Buffer | Readable): this; +} + +export = MimeNode; diff --git a/types/nodemailer/lib/qp.d.ts b/types/nodemailer/lib/qp.d.ts new file mode 100644 index 0000000000..07236b30e2 --- /dev/null +++ b/types/nodemailer/lib/qp.d.ts @@ -0,0 +1,23 @@ +/// + +import { Transform, TransformOptions } from 'stream'; + +/** Encodes a Buffer into a Quoted-Printable encoded string */ +export function encode(buffer: Buffer | string): string; + +/** Adds soft line breaks to a Quoted-Printable string */ +export function wrap(str: string, lineLength?: number): string; + +export interface EncoderOptions extends TransformOptions { + lineLength?: number | false; +} + +/** Creates a transform stream for encoding data to Quoted-Printable encoding */ +export class Encoder extends Transform { + options: TransformOptions; + + inputBytes: number; + outputBytes: number; + + constructor(options?: TransformOptions); +} diff --git a/types/nodemailer/lib/sendmail-transport.d.ts b/types/nodemailer/lib/sendmail-transport.d.ts new file mode 100644 index 0000000000..92e461b01b --- /dev/null +++ b/types/nodemailer/lib/sendmail-transport.d.ts @@ -0,0 +1,49 @@ +/// + +import { EventEmitter } from 'events'; + +import { Transport, TransportOptions } from '..'; + +import * as shared from './shared'; + +import Mail = require('./mailer'); +import MailMessage = require('./mailer/mail-message'); +import MimeNode = require('./mime-node'); + +declare namespace SendmailTransport { + type MailOptions = Mail.Options; + + interface Options extends MailOptions, TransportOptions { + sendmail: true; + /** path to the sendmail command (defaults to ‘sendmail’) */ + path?: string; + /** either ‘windows’ or ‘unix’ (default). Forces all newlines in the output to either use Windows syntax or Unix syntax */ + newline?: string; + /** an optional array of command line options to pass to the sendmail command (ie. ["-f", "foo@blurdybloop.com"]). This overrides all default arguments except for ’-i’ and recipient list so you need to make sure you have all required arguments set (ie. the ‘-f’ flag). */ + args?: string[]; + } + + interface SentMessageInfo { + envelope: MimeNode.Envelope; + messageId: string; + response: string; + } +} + +declare class SendmailTransport implements Transport { + options: SendmailTransport.Options; + logger: shared.Logger; + mailer: Mail; + name: string; + version: string; + path: string; + args: string[] | false; + winbreak: boolean; + + constructor(options: SendmailTransport.Options); + + /** Compiles a mailcomposer message and forwards it to handler that sends it */ + send(mail: MailMessage, callback: (err: Error | null, info: SendmailTransport.SentMessageInfo) => void): void; +} + +export = SendmailTransport; diff --git a/types/nodemailer/lib/ses-transport.d.ts b/types/nodemailer/lib/ses-transport.d.ts new file mode 100644 index 0000000000..ba6401888a --- /dev/null +++ b/types/nodemailer/lib/ses-transport.d.ts @@ -0,0 +1,84 @@ +/// + +import { EventEmitter } from 'events'; + +import { Transport, TransportOptions } from '..'; + +import * as shared from './shared'; + +import Mail = require('./mailer'); +import MailMessage = require('./mailer/mail-message'); +import MimeNode = require('./mime-node'); + +declare namespace SESTransport { + interface MailOptions extends Mail.Options { + /** All keys are added to the SendRawEmail method options */ + ses?: object; + } + + interface Options extends MailOptions, TransportOptions { + /** is an option that expects an instantiated aws.SES object */ + SES: any; // aws-sdk.SES object + /** How many messages per second is allowed to be delivered to SES */ + maxConnections?: number; + /** How many parallel connections to allow towards SES */ + sendingRate?: number; + } + + interface SentMessageInfo { + /** an envelope object {from:‘address’, to:[‘address’]} */ + envelope: MimeNode.Envelope; + /** the Message-ID header value. This value is derived from the response of SES API, so it differs from the Message-ID values used in logging. */ + messageId: string; + response: string; + } +} + +declare class SESTransport extends EventEmitter implements Transport { + options: SESTransport.Options; + + logger: shared.Logger; + mailer: Mail; + + name: string; + version: string; + + ses: any; + + maxConnections: number; + connections: number; + sendingRate: number; + sendingRateTTL: number | null; + rateInterval: number; + rateMessages: Array<{ ts: number, pending: boolean }>; + pending: Array<{ mail: Mail; callback(err: Error | null, info: SESTransport.SentMessageInfo): void; }>; + idling: boolean; + + constructor(options: SESTransport.Options); + + /** Schedules a sending of a message */ + send(mail: MailMessage, callback: (err: Error | null, info: SESTransport.SentMessageInfo) => void): void; + + /** Returns true if there are free slots in the queue */ + isIdle(): boolean; + + /** Verifies SES configuration */ + verify(callback: (err: Error | null, success: true) => void): void; + verify(): Promise; + + addListener(event: 'idle', listener: () => void): this; + + emit(event: 'idle'): boolean; + + on(event: 'idle', listener: () => void): this; + + once(event: 'idle', listener: () => void): this; + + prependListener(event: 'idle', listener: () => void): this; + + prependOnceListener(event: 'idle', listener: () => void): this; + + listeners(event: 'idle'): Array<() => void>; +} + +export = SESTransport; diff --git a/types/nodemailer/lib/shared.d.ts b/types/nodemailer/lib/shared.d.ts new file mode 100644 index 0000000000..adec552138 --- /dev/null +++ b/types/nodemailer/lib/shared.d.ts @@ -0,0 +1,38 @@ +/// + +import SMTPConnection = require('./smtp-connection'); + +import * as stream from 'stream'; + +export type LoggerLevel = 'trace' | 'debug' | 'info' | 'warn' | 'error' | 'fatal'; + +export interface Logger { + level(level: LoggerLevel): void; + trace(...params: any[]): void; + debug(...params: any[]): void; + info(...params: any[]): void; + warn(...params: any[]): void; + error(...params: any[]): void; + fatal(...params: any[]): void; +} + +/** Parses connection url to a structured configuration object */ +export function parseConnectionUrl(url: string): SMTPConnection.Options; +/** Returns a bunyan-compatible logger interface. Uses either provided logger or creates a default console logger */ +export function getLogger(options?: { [key: string]: any }, defaults?: { [key: string]: any }): Logger; +/** Wrapper for creating a callback than either resolves or rejects a promise based on input */ +export function callbackPromise(resolve: (...args: any[]) => void, reject: (err: Error) => void): () => void; +/** + * Resolves a String or a Buffer value for content value. Useful if the value + * is a Stream or a file or an URL. If the value is a Stream, overwrites + * the stream object with the resolved value (you can't stream a value twice). + * + * This is useful when you want to create a plugin that needs a content value, + * for example the `html` or `text` value as a String or a Buffer but not as + * a file path or an URL. + */ +export function resolveContent(data: object | any[], key: string | number, callback: (err: Error | null, value: Buffer | string) => void): void; +export function resolveContent(data: object | any[], key: string | number): Promise; +/** Copies properties from source objects to target objects */ +export function assign(target: object, ...sources: object[]): object; +export function encodeXText(str: string): string; diff --git a/types/nodemailer/lib/smtp-connection.d.ts b/types/nodemailer/lib/smtp-connection.d.ts new file mode 100644 index 0000000000..a2cb095210 --- /dev/null +++ b/types/nodemailer/lib/smtp-connection.d.ts @@ -0,0 +1,202 @@ +/// + +import { EventEmitter } from 'events'; +import * as net from 'net'; +import { Writable } from 'stream'; +import * as tls from 'tls'; + +import * as shared from './shared'; + +import MimeNode = require('./mime-node'); +import XOAuth2 = require('./xoauth2'); + +type ms = number; + +declare namespace SMTPConnection { + interface Credentials { + /** the username */ + user: string; + /** then password */ + pass: string; + } + + type OAuth2 = XOAuth2.Options; + + interface AuthenticationTypeLogin extends Credentials { + /** indicates the authetication type, defaults to ‘login’, other option is ‘oauth2’ */ + type?: 'login' | 'Login' | 'LOGIN'; + } + + interface AuthenticationTypeOAuth2 extends OAuth2 { + /** indicates the authetication type, defaults to ‘login’, other option is ‘oauth2’ */ + type?: 'oauth2' | 'OAuth2' | 'OAUTH2'; + } + + type AuthenticationType = AuthenticationTypeLogin | AuthenticationTypeOAuth2; + + interface AuthenticationCredentials { + /** normal authentication object */ + credentials: Credentials; + } + + interface AuthenticationOAuth2 { + /** if set then forces smtp-connection to use XOAuth2 for authentication */ + oauth2: OAuth2; + } + + type DSNOption = 'NEVER' | 'SUCCESS' | 'FAILURE' | 'DELAY'; + + interface DSNOptions { + /** return either the full message ‘FULL’ or only headers ‘HDRS’ */ + ret?: 'Full' | 'HDRS'; + /** sender’s ‘envelope identifier’ for tracking */ + envid?: string; + /** when to send a DSN. Multiple options are OK - array or comma delimited. NEVER must appear by itself. */ + notify?: DSNOption | DSNOption[]; + /** original recipient */ + orcpt?: string; + } + + interface Envelope { + /** includes an address object or is set to false */ + from: string | false; + /** the recipient address or an array of addresses */ + to: string | string[]; + /** an optional value of the predicted size of the message in bytes. This value is used if the server supports the SIZE extension (RFC1870) */ + size?: number; + /** if true then inform the server that this message might contain bytes outside 7bit ascii range */ + use8BitMime?: boolean; + /** the dsn options */ + dsn?: DSNOptions; + } + + class SMTPError extends Error { + /** string code identifying the error, for example ‘EAUTH’ is returned when authentication */ + code: string; + /** the last response received from the server (if the error is caused by an error response from the server) */ + response: string; + /** the numeric response code of the response string (if available) */ + responseCode: string; + } + + interface SentMessageInfo { + /** an array of accepted recipient addresses. Normally this array should contain at least one address except when in LMTP mode. In this case the message itself might have succeeded but all recipients were rejected after sending the message. */ + accepted: string[]; + /** an array of rejected recipient addresses. This array includes both the addresses that were rejected before sending the message and addresses rejected after sending it if using LMTP */ + rejected: string[]; + /** if some recipients were rejected then this property holds an array of error objects for the rejected recipients */ + rejectedErrors?: SMTPError[]; + /** the last response received from the server */ + response: string; + } + + interface Options { + /** the hostname or IP address to connect to (defaults to ‘localhost’) */ + host?: string; + /** the port to connect to (defaults to 25 or 465) */ + port?: number; + /** defines authentication data */ + auth?: AuthenticationType; + /** defines if the connection should use SSL (if true) or not (if false) */ + secure?: boolean; + /** turns off STARTTLS support if true */ + ignoreTLS?: boolean; + /** forces the client to use STARTTLS. Returns an error if upgrading the connection is not possible or fails. */ + requireTLS?: boolean; + /** tries to use STARTTLS and continues normally if it fails */ + opportunisticTLS?: boolean; + /** optional hostname of the client, used for identifying to the server */ + name?: string; + /** the local interface to bind to for network connections */ + localAddress?: string; + /** how many milliseconds to wait for the connection to establish */ + connectionTimeout?: ms; + /** how many milliseconds to wait for the greeting after connection is established */ + greetingTimeout?: ms; + /** how many milliseconds of inactivity to allow */ + socketTimeout?: ms; + /** optional bunyan compatible logger instance. If set to true then logs to console. If value is not set or is false then nothing is logged */ + logger?: shared.Logger | boolean; + /** if set to true, then logs SMTP traffic without message content */ + transactionLog?: boolean; + /** if set to true, then logs SMTP traffic and message content, otherwise logs only transaction events */ + debug?: boolean; + /** defines preferred authentication method, e.g. ‘PLAIN’ */ + authMethod?: string; + /** defines additional options to be passed to the socket constructor, e.g. {rejectUnauthorized: true} */ + tls?: tls.ConnectionOptions; + /** initialized socket to use instead of creating a new one */ + socket?: net.Socket; + /** connected socket to use instead of creating and connecting a new one. If secure option is true, then socket is upgraded from plaintext to ciphertext */ + connection?: net.Socket; + } +} + +declare class SMTPConnection extends EventEmitter { + options: SMTPConnection.Options; + + logger: shared.Logger; + + id: string; + stage: 'init' | 'connected'; + + secureConnection: boolean; + alreadySecured: boolean; + + port: number; + host: string; + + name: string; + /** Expose version nr, just for the reference */ + version: string; + + /** If true, then the user is authenticated */ + authenticated: boolean; + /** If set to true, this instance is no longer active */ + destroyed: boolean; + /** Defines if the current connection is secure or not. If not, STARTTLS can be used if available */ + secure: boolean; + + lastServerResponse: string | false; + + /** The socket connecting to the server */ + _socket: net.Socket; + + constructor(options?: SMTPConnection.Options); + + /** Creates a connection to a SMTP server and sets up connection listener */ + connect(callback: () => void): void; + /** Sends QUIT */ + quit(): void; + /** Closes the connection to the server */ + close(): void; + /** Authenticate user */ + login(auth: SMTPConnection.AuthenticationCredentials | SMTPConnection.AuthenticationOAuth2 | SMTPConnection.Credentials, callback: (err: SMTPConnection.SMTPError | null) => void): void; + /** Sends a message */ + send(envelope: SMTPConnection.Envelope, message: string | Buffer | Writable, callback: (err: SMTPConnection.SMTPError | null, info: SMTPConnection.SentMessageInfo) => void): void; + /** Resets connection state */ + reset(callback: (err: Error | null) => void): void; + + addListener(event: 'connect' | 'end', listener: () => void): this; + addListener(event: 'error', listener: (err: SMTPConnection.SMTPError) => void): this; + + emit(event: 'connect' | 'end'): boolean; + emit(event: 'error', error: Error): boolean; + + on(event: 'connect' | 'end', listener: () => void): this; + on(event: 'error', listener: (err: SMTPConnection.SMTPError) => void): this; + + once(event: 'connect' | 'end', listener: () => void): this; + once(event: 'error', listener: (err: SMTPConnection.SMTPError) => void): this; + + prependListener(event: 'connect' | 'end', listener: () => void): this; + prependListener(event: 'error', listener: (err: SMTPConnection.SMTPError) => void): this; + + prependOnceListener(event: 'connect' | 'end', listener: () => void): this; + prependOnceListener(event: 'error', listener: (err: SMTPConnection.SMTPError) => void): this; + + listeners(event: 'connect' | 'end'): Array<() => void>; + listeners(event: 'error'): Array<(err: SMTPConnection.SMTPError) => void>; +} + +export = SMTPConnection; diff --git a/types/nodemailer/lib/smtp-pool.d.ts b/types/nodemailer/lib/smtp-pool.d.ts new file mode 100644 index 0000000000..af1441d8c8 --- /dev/null +++ b/types/nodemailer/lib/smtp-pool.d.ts @@ -0,0 +1,87 @@ +/// + +import { EventEmitter } from 'events'; + +import { Transport, TransportOptions } from '..'; +import * as shared from './shared'; + +import Mail = require('./mailer'); +import MailMessage = require('./mailer/mail-message'); +import MimeNode = require('./mime-node'); +import SMTPConnection = require('./smtp-connection'); + +declare namespace SMTPPool { + interface MailOptions extends Mail.Options { + auth?: SMTPConnection.AuthenticationType; + dsn?: SMTPConnection.DSNOptions; + } + + interface Options extends MailOptions, TransportOptions, SMTPConnection.Options { + /** set to true to use pooled connections (defaults to false) instead of creating a new connection for every email */ + pool: true; + service?: string; + getSocket?(options: Options, callback: (err: Error | null, socketOptions: any) => void): void; // TODO http.ClientRequest? + url?: string; + /** the count of maximum simultaneous connections to make against the SMTP server (defaults to 5) */ + maxConnections?: number; + /** limits the message count to be sent using a single connection (defaults to 100). After maxMessages is reached the connection is dropped and a new one is created for the following messages */ + maxMessages?: number; + /** defines the time measuring period in milliseconds (defaults to 1000, ie. to 1 second) for rate limiting */ + rateDelta?: number; + /** limits the message count to be sent in rateDelta time. Once rateLimit is reached, sending is paused until the end of the measuring period. This limit is shared between connections, so if one connection uses up the limit, then other connections are paused as well. If rateLimit is not set then sending rate is not limited */ + rateLimit?: number; + } + + interface SentMessageInfo extends SMTPConnection.SentMessageInfo { + /** includes the envelope object for the message */ + envelope: MimeNode.Envelope; + /** most transports should return the final Message-Id value used with this property */ + messageId: string; + } +} + +declare class SMTPPool extends EventEmitter implements Transport { + options: SMTPPool.Options; + + mailer: Mail; + logger: shared.Logger; + + name: string; + version: string; + + idling: boolean; + + constructor(options: SMTPPool.Options | string); + + /** Placeholder function for creating proxy sockets. This method immediatelly returns without a socket */ + getSocket(options: SMTPPool.Options, callback: (err: Error | null, socketOptions: any) => void): void; + + /** Sends an e-mail using the selected settings */ + send(mail: MailMessage, callback: (err: Error | null, info: SMTPPool.SentMessageInfo) => void): void; + + /** Closes all connections in the pool. If there is a message being sent, the connection is closed later */ + close(): void; + + /** Returns true if there are free slots in the queue */ + isIdle(): boolean; + + /** Verifies SMTP configuration */ + verify(callback: (err: Error | null, success: true) => void): void; + verify(): Promise; + + addListener(event: 'idle', listener: () => void): this; + + emit(event: 'idle'): boolean; + + on(event: 'idle', listener: () => void): this; + + once(event: 'idle', listener: () => void): this; + + prependListener(event: 'idle', listener: () => void): this; + + prependOnceListener(event: 'idle', listener: () => void): this; + + listeners(event: 'idle'): Array<() => void>; +} + +export = SMTPPool; diff --git a/types/nodemailer/lib/smtp-transport.d.ts b/types/nodemailer/lib/smtp-transport.d.ts new file mode 100644 index 0000000000..6302d495b8 --- /dev/null +++ b/types/nodemailer/lib/smtp-transport.d.ts @@ -0,0 +1,80 @@ +/// + +import { EventEmitter } from 'events'; +import * as stream from 'stream'; + +import { Transport, TransportOptions } from '..'; +import * as shared from './shared'; + +import Mail = require('./mailer'); +import MailMessage = require('./mailer/mail-message'); +import MimeNode = require('./mime-node'); +import SMTPConnection = require('./smtp-connection'); +import XOAuth2 = require('./xoauth2'); + +declare namespace SMTPTransport { + interface AuthenticationTypeLogin { + type: 'LOGIN'; + user: string; + credentials: SMTPConnection.Credentials; + method: string | false; + } + + interface AuthenticationTypeOAuth2 { + type: 'OAUTH2'; + user: string; + oauth2: XOAuth2; + method: 'XOAUTH2'; + } + + type AuthenticationType = AuthenticationTypeLogin | AuthenticationTypeOAuth2; + + interface MailOptions extends Mail.Options { + auth?: SMTPConnection.AuthenticationType; + dsn?: SMTPConnection.DSNOptions; + } + + interface Options extends MailOptions, TransportOptions, SMTPConnection.Options { + service?: string; + getSocket?(options: Options, callback: (err: Error | null, socketOptions: any) => void): void; // TODO http.ClientRequest? + url?: string; + } + + interface SentMessageInfo { + /** includes the envelope object for the message */ + envelope: MimeNode.Envelope; + /** most transports should return the final Message-Id value used with this property */ + messageId: string; + } +} + +declare class SMTPTransport extends EventEmitter implements Transport { + options: SMTPTransport.Options; + + mailer: Mail; + logger: shared.Logger; + + name: string; + version: string; + + auth: SMTPTransport.AuthenticationType; + + constructor(options: SMTPTransport.Options | string); + + /** Placeholder function for creating proxy sockets. This method immediatelly returns without a socket */ + getSocket(options: SMTPTransport.Options, callback: (err: Error | null, socketOptions: object) => void): void; + + getAuth(authOpts: SMTPConnection.AuthenticationTypeLogin | SMTPConnection.AuthenticationTypeOAuth2): SMTPTransport.AuthenticationType; + + /** Sends an e-mail using the selected settings */ + send(mail: MailMessage, callback: (err: Error | null, info: SMTPTransport.SentMessageInfo) => void): void; + + /** Verifies SMTP configuration */ + verify(callback: (err: Error | null, success: true) => void): void; + verify(): Promise; + + /** Releases resources */ + close(): void; +} + +export = SMTPTransport; diff --git a/types/nodemailer/lib/stream-transport.d.ts b/types/nodemailer/lib/stream-transport.d.ts new file mode 100644 index 0000000000..48c397911c --- /dev/null +++ b/types/nodemailer/lib/stream-transport.d.ts @@ -0,0 +1,52 @@ +/// + +import { EventEmitter } from 'events'; +import { Readable } from 'stream'; + +import { Transport, TransportOptions } from '..'; + +import * as shared from './shared'; + +import Mail = require('./mailer'); +import MailMessage = require('./mailer/mail-message'); +import MimeNode = require('./mime-node'); + +declare namespace StreamTransport { + type MailOptions = Mail.Options; + + interface Options extends MailOptions, TransportOptions { + streamTransport: true; + /** if true, then returns the message as a Buffer object instead of a stream */ + buffer?: boolean; + /** either ‘windows’ or ‘unix’ (default). Forces all newlines in the output to either use Windows syntax or Unix syntax */ + newline?: string; + } + + interface SentMessageInfo { + /** an envelope object {from:‘address’, to:[‘address’]} */ + envelope: MimeNode.Envelope; + /** the Message-ID header value */ + messageId: string; + /** either stream (default) of buffer depending on the options */ + message: Buffer | Readable; + } +} + +declare class StreamTransport implements Transport { + options: StreamTransport.Options; + + logger: shared.Logger; + mailer: Mail; + + name: string; + version: string; + + winbreak: boolean; + + constructor(options: StreamTransport.Options); + + /** Compiles a mailcomposer message and forwards it to handler that sends it */ + send(mail: MailMessage, callback: (err: Error | null, info: StreamTransport.SentMessageInfo) => void): void; +} + +export = StreamTransport; diff --git a/types/nodemailer/lib/well-known.d.ts b/types/nodemailer/lib/well-known.d.ts new file mode 100644 index 0000000000..2e4ae176d3 --- /dev/null +++ b/types/nodemailer/lib/well-known.d.ts @@ -0,0 +1,6 @@ +import SMTPConnection = require('./smtp-connection'); + +/** Resolves SMTP config for given key. Key can be a name (like 'Gmail'), alias (like 'Google Mail') or an email address (like 'test@googlemail.com'). */ +declare function wellKnown(key: string): SMTPConnection.Options | false; + +export = wellKnown; diff --git a/types/nodemailer/lib/xoauth2.d.ts b/types/nodemailer/lib/xoauth2.d.ts new file mode 100644 index 0000000000..689b8058fc --- /dev/null +++ b/types/nodemailer/lib/xoauth2.d.ts @@ -0,0 +1,104 @@ +/// + +import * as http from 'http'; +import { Readable, Stream } from 'stream'; + +import * as shared from './shared'; + +type ms = number; +type s = number; + +declare namespace XOAuth2 { + interface Options { + /** User e-mail address */ + user?: string; + /** Client ID value */ + clientId?: string; + /** Client secret value */ + clientSecret?: string; + /** Refresh token for an user */ + refreshToken?: string; + /** Endpoint for token generation, defaults to 'https://accounts.google.com/o/oauth2/token' */ + accessUrl?: string; + /** An existing valid accessToken */ + accessToken?: string; + /** Private key for JSW */ + privateKey?: string | { key: string; passphrase: string; }; + /** Optional Access Token expire time in ms */ + expires?: ms; + /** Optional TTL for Access Token in seconds */ + timeout?: s; + /** Function to run when a new access token is required */ + provisionCallback?(user: string, renew: boolean, callback: (err: Error | null, accessToken: string, expires: number) => void): void; + } + + interface Token { + user: string; + accessToken: string; + expires: number; + } + + interface RequestParams { + customHeaders?: http.OutgoingHttpHeaders; + } +} + +declare class XOAuth2 extends Stream { + options: XOAuth2.Options; + logger: shared.Logger; + accessToken: string | false; + expires: number; + + constructor(options: XOAuth2.Options, logger: shared.Logger); + + /** Returns or generates (if previous has expired) a XOAuth2 token */ + getToken(renew: boolean, callback: (err: Error | null, accessToken: string) => void): void; + + /** Updates token values */ + updateToken(accessToken: string, timeout: s): XOAuth2.Token; + + /** Generates a new XOAuth2 token with the credentials provided at initialization */ + generateToken(callback: (err: Error | null, accessToken: string) => void): void; + + /** Converts an access_token and user id into a base64 encoded XOAuth2 token */ + buildXOAuth2Token(accessToken: string): string; + + /** + * Custom POST request handler. + * This is only needed to keep paths short in Windows – usually this module + * is a dependency of a dependency and if it tries to require something + * like the request module the paths get way too long to handle for Windows. + * As we do only a simple POST request we do not actually require complicated + * logic support (no redirects, no nothing) anyway. + */ + postRequest(url: string, payload: string | Buffer | Readable | { [key: string]: string }, params: XOAuth2.RequestParams, callback: (err: Error | null, buf: Buffer) => void): void; + + /** Encodes a buffer or a string into Base64url format */ + toBase64URL(data: Buffer | string): string; + + /** Creates a JSON Web Token signed with RS256 (SHA256 + RSA) */ + jwtSignRS256(payload: object): string; + + addListener(event: 'error', listener: (err: Error) => void): this; + addListener(event: 'token', listener: (token: XOAuth2.Token) => void): this; + + emit(event: 'error', error: Error): boolean; + emit(event: 'token', token: XOAuth2.Token): boolean; + + on(event: 'error', listener: (err: Error) => void): this; + on(event: 'token', listener: (token: XOAuth2.Token) => void): this; + + once(event: 'error', listener: (err: Error) => void): this; + once(event: 'token', listener: (token: XOAuth2.Token) => void): this; + + prependListener(event: 'error', listener: (err: Error) => void): this; + prependListener(event: 'end', listener: (token: XOAuth2.Token) => void): this; + + prependOnceListener(event: 'error', listener: (err: Error) => void): this; + prependOnceListener(event: 'end', listener: (token: XOAuth2.Token) => void): this; + + listeners(event: 'error'): Array<(err: Error) => void>; + listeners(event: 'end'): Array<(token: XOAuth2.Token) => void>; +} + +export = XOAuth2; diff --git a/types/nodemailer/nodemailer-tests.ts b/types/nodemailer/nodemailer-tests.ts index cd26579189..8baff03674 100644 --- a/types/nodemailer/nodemailer-tests.ts +++ b/types/nodemailer/nodemailer-tests.ts @@ -1,71 +1,1292 @@ -import * as nodemailer from 'nodemailer' -import * as AWS from 'aws-sdk' +/* tslint:disable:no-namespace prefer-template */ +import * as nodemailer from 'nodemailer'; -// create reusable transporter object using SMTP transport -var transporter: nodemailer.Transporter = nodemailer.createTransport({ - service: 'Gmail', - auth: { - user: 'gmail.user@gmail.com', - pass: 'userpass' +import addressparser = require('nodemailer/lib/addressparser'); +import base64 = require('nodemailer/lib/base64'); +import fetch = require('nodemailer/lib/fetch'); +import Cookies = require('nodemailer/lib/fetch/cookies'); +import JSONTransport = require('nodemailer/lib/json-transport'); +import Mail = require('nodemailer/lib/mailer'); +import MailComposer = require('nodemailer/lib/mail-composer'); +import MailMessage = require('nodemailer/lib/mailer/mail-message'); +import mimeFuncs = require('nodemailer/lib/mime-funcs'); +import mimeTypes = require('nodemailer/lib/mime-funcs/mime-types'); +import qp = require('nodemailer/lib/qp'); +import SendmailTransport = require('nodemailer/lib/sendmail-transport'); +import SESTransport = require('nodemailer/lib/ses-transport'); +import shared = require('nodemailer/lib/shared'); +import SMTPConnection = require('nodemailer/lib/smtp-connection'); +import SMTPPool = require('nodemailer/lib/smtp-pool'); +import SMTPTransport = require('nodemailer/lib/smtp-transport'); +import StreamTransport = require('nodemailer/lib/stream-transport'); +import wellKnown = require('nodemailer/lib/well-known'); +import XOAuth2 = require('nodemailer/lib/xoauth2'); + +import * as fs from 'fs'; +import * as stream from 'stream'; + +// mock aws-sdk +const aws = { + SES: class MockSES { + constructor(options?: object) { } + }, + config: { + loadFromPath: (path: string): void => { } } -}); - -// create reusable transporter object using SMTP connection url using default options -transporter = nodemailer.createTransport("smtps://gmail.user@gmail.com:userpass@gmail/?pool=true"); - -// create reusable transporter object using SMTP connection url and specify some options -transporter = nodemailer.createTransport("smtps://gmail.user@gmail.com:userpass@gmail/?pool=true", - { - from: 'sender@address', - headers: { - 'My-Awesome-Header': '123' - } - }); - -// create reusable transporter object using SES transport and set default values for mail options. -transporter = nodemailer.createTransport({ - SES: new AWS.SES() -}) -// create reusable transporter object using SMTP transport and set default values for mail options. -transporter = nodemailer.createTransport({ - SES: new AWS.SES() -}, { - from: 'sender@address', - headers: { - 'My-Awesome-Header': '123' - } -}) - -// create reusable transporter object using SMTP transport and set default values for mail options. -transporter = nodemailer.createTransport({ - service: 'Gmail', - auth: { - user: 'gmail.user@gmail.com', - pass: 'userpass' - } -}, { - from: 'sender@address', - headers: { - 'My-Awesome-Header': '123' - } -}); - -// setup e-mail data with unicode symbols -var mailOptions: nodemailer.SendMailOptions = { - from: 'Fred Foo ✔ ', // sender address - to: 'bar@blurdybloop.com, baz@blurdybloop.com', // list of receivers - subject: 'Hello ✔', // Subject line - text: 'Hello world ✔', // plaintext body - html: 'Hello world ✔' // html body }; -// send mail with defined transport object -transporter.sendMail(mailOptions, (error: Error, info: nodemailer.SentMessageInfo): void => { - // nothing -}); +// 1. Nodemailer -// promise send mail without callback -transporter - .sendMail(mailOptions) - .then(info => info.messageId) - .catch(err => {}) \ No newline at end of file +namespace nodemailer_test { + // Generate test SMTP service account from ethereal.email + // Only needed if you don't have a real mail account for testing + nodemailer.createTestAccount((err, account) => { + if (err) { + console.log(err); + return; + } + // create reusable transporter object using the default SMTP transport + const transporter = nodemailer.createTransport({ + host: 'smtp.ethereal.email', + port: 587, + secure: false, // true for 465, false for other ports + auth: { + user: account.user, // generated ethereal user + pass: account.pass // generated ethereal password + } + }); + + // setup email data with unicode symbols + const mailOptions: Mail.Options = { + from: '"Fred Foo 👻" ', // sender address + to: 'bar@blurdybloop.com, baz@blurdybloop.com', // list of receivers + subject: 'Hello ✔', // Subject line + text: 'Hello world?', // plain text body + html: 'Hello world?' // html body + }; + + // send mail with defined transport object + transporter.sendMail(mailOptions, (err, info: SMTPTransport.SentMessageInfo) => { + if (err) { + console.log(err); + return; + } + console.log('Message sent: %s', info.messageId); + // Preview only available when sending through an Ethereal account + console.log('Preview URL: %s', nodemailer.getTestMessageUrl(info)); + + // Message sent: + // Preview URL: https://ethereal.email/message/WaQKMgKddxQDoou... + }); + }); +} + +// 3. Message configuration + +// Commmon fields + +namespace message_common_fields_test { + const message: Mail.Options = { + from: 'sender@server.com', + to: 'receiver@sender.com', + subject: 'Message title', + text: 'Plaintext version of the message', + html: '

HTML version of the message

' + }; +} + +// More advanced fields + +namespace message_more_advanced_fields_test { + const message: Mail.Options = { + headers: { + 'My-Custom-Header': 'header value' + }, + date: new Date('2000-01-01 00:00:00') + }; + + const htmlstream = fs.createReadStream('content.html'); + const transport = nodemailer.createTransport(); + transport.sendMail({ html: htmlstream }, (err) => { + if (err) { + // check if htmlstream is still open and close it to clean up + } + }); +} + +// 3. Attachments + +namespace message_attachments_test { + const message: Mail.Options = { + attachments: [ + { // utf-8 string as an attachment + filename: 'text1.txt', + content: 'hello world!' + }, + { // binary buffer as an attachment + filename: 'text2.txt', + content: new Buffer('hello world!', 'utf-8') + }, + { // file on disk as an attachment + filename: 'text3.txt', + path: '/path/to/file.txt' // stream this file + }, + { // filename and content type is derived from path + path: '/path/to/file.txt' + }, + { // stream as an attachment + filename: 'text4.txt', + content: fs.createReadStream('file.txt') + }, + { // define custom content type for the attachment + filename: 'text.bin', + content: 'hello world!', + contentType: 'text/plain' + }, + { // use URL as an attachment + filename: 'license.txt', + path: 'https://raw.github.com/nodemailer/nodemailer/master/LICENSE' + }, + { // encoded string as an attachment + filename: 'text1.txt', + content: 'aGVsbG8gd29ybGQh', + encoding: 'base64' + }, + { // data uri as an attachment + path: 'data:text/plain;base64,aGVsbG8gd29ybGQ=' + }, + { + // use pregenerated MIME node + raw: 'Content-Type: text/plain\r\n' + + 'Content-Disposition: attachment;\r\n' + + '\r\n' + + 'Hello world!' + } + ] + }; +} + +// 3. Alternatives + +namespace message_alternatives_test { + const message: Mail.Options = { + html: 'Hello world!', + alternatives: [ + { + contentType: 'text/x-web-markdown', + content: '**Hello world!**' + } + ] + }; +} + +// 3. Address object + +namespace message_address_object_test { + const message: Mail.Options = { + to: 'foobar@blurdybloop.com, "Ðоде Майлер" , "Name, User" ', + cc: [ + 'foobar@blurdybloop.com', + '"Ðоде Майлер" ', + '"Name, User" ' + ], + bcc: [ + 'foobar@blurdybloop.com', + { + name: 'Майлер, Ðоде', + address: 'foobar@blurdybloop.com' + } + ] + }; +} + +// 3. Calendar events + +// Send a REQUEST event as a string + +namespace message_calendar_request_test { + const content = 'BEGIN:VCALENDAR\r\nPRODID:-//ACME/DesktopCalendar//EN\r\nMETHOD:REQUEST\r\n...'; + + const message: Mail.Options = { + from: 'sender@example.com', + to: 'recipient@example.com', + subject: 'Appointment', + text: 'Please see the attached appointment', + icalEvent: { + filename: 'invitation.ics', + method: 'request', + content + } + }; +} + +// Send a PUBLISH event from a file + +namespace message_calendar_publish_test { + const message: Mail.Options = { + from: 'sender@example.com', + to: 'recipient@example.com', + subject: 'Appointment', + text: 'Please see the attached appointment', + icalEvent: { + method: 'PUBLISH', + path: '/path/to/file' + } + }; +} + +// Send a CANCEL event from an URL + +namespace message_calendar_cancel_test { + const message: Mail.Options = { + from: 'sender@example.com', + to: 'recipient@example.com', + subject: 'Appointment', + text: 'Please see the attached appointment', + icalEvent: { + method: 'CANCEL', + href: 'http://www.example.com/events?event=123' + } + }; +} + +// 3. Embedded images + +namespace message_embedded_images_test { + const message: Mail.Options = { + html: 'Embedded image: ', + attachments: [{ + filename: 'image.png', + path: '/path/to/file', + cid: 'unique@nodemailer.com' // same cid value as in the html img src + }] + }; +} + +// 3. List headers + +// Setup different List-* headers + +namespace message_list_headers_test { + const message: Mail.Options = { + from: 'sender@example.com', + to: 'recipient@example.com', + subject: 'List Message', + text: 'I hope no-one unsubscribes from this list!', + list: { + // List-Help: + help: 'admin@example.com?subject=help', + // List-Unsubscribe: (Comment) + unsubscribe: { + url: 'http://example.com', + comment: 'Comment' + }, + // List-Subscribe: + // List-Subscribe: (Subscribe) + subscribe: [ + 'admin@example.com?subject=subscribe', + { + url: 'http://example.com', + comment: 'Subscribe' + } + ], + // List-Post: , (Post) + post: [ + [ + 'http://example.com/post', + { + url: 'admin@example.com?subject=post', + comment: 'Post' + } + ] + ] + } + }; +} + +// 3. Custom headers + +// Set custom headers + +namespace message_custom_headers_test { + const message: Mail.Options = { + headers: { + 'x-my-key': 'header value', + 'x-another-key': 'another value' + } + }; +} + +// Multiple rows with the same key + +namespace message_multiple_rows_with_the_same_key_test { + const message: Mail.Options = { + headers: { + 'x-my-key': [ + 'value for row 1', + 'value for row 2', + 'value for row 3' + ] + } + }; +} + +// Prepared headers + +namespace message_prepared_headers_test { + const message: Mail.Options = { + headers: { + 'x-processed': 'a really long header or value with non-ascii characters 👮', + 'x-unprocessed': { + prepared: true, + value: 'a really long header or value with non-ascii characters 👮' + } + } + }; +} + +// 3. Custom source + +// Use string as a message body + +namespace message_string_body_test { + const message: Mail.Options = { + envelope: { + from: 'sender@example.com', + to: ['recipient@example.com'] + }, + raw: `From: sender@example.com +To: recipient@example.com +Subject: test message + +Hello world!` + }; +} + +// Set EML file as message body + +namespace message_eml_file_test { + const message: Mail.Options = { + envelope: { + from: 'sender@example.com', + to: ['recipient@example.com'] + }, + raw: { + path: '/path/to/message.eml' + } + }; +} + +// Set string as attachment body + +namespace message_string_attachment_test { + const message: Mail.Options = { + from: 'sender@example.com', + to: 'recipient@example.com', + subject: 'Custom attachment', + attachments: [{ + raw: `Content-Type: text/plain +Content-Disposition: attachment + +Attached text file`}] + }; +} + +// 4. SMTP transport + +// Single connection + +namespace smtp_single_connection_test { + const smtpConfig: SMTPTransport.Options = { + host: 'smtp.example.com', + port: 587, + secure: false, // upgrade later with STARTTLS + auth: { + user: 'username', + pass: 'password' + } + }; + const transporter = nodemailer.createTransport(smtpConfig); +} + +// Pooled connection + +namespace smtp_pooled_connection_test { + const smtpConfig: SMTPPool.Options = { + pool: true, + host: 'smtp.example.com', + port: 465, + secure: true, // use TLS + auth: { + user: 'username', + pass: 'password' + } + }; + const transporter = nodemailer.createTransport(smtpConfig); +} + +// Allow self-signed certificates + +namespace smtp_self_signed_test { + const smtpConfig: SMTPTransport.Options = { + host: 'my.smtp.host', + port: 465, + secure: true, // use TLS + auth: { + user: 'username', + pass: 'pass' + }, + tls: { + // do not fail on invalid certs + rejectUnauthorized: false + } + }; + const transporter = nodemailer.createTransport(smtpConfig); +} + +// Verify SMTP connection configuration + +namespace smtp_verify_test { + const transporter = nodemailer.createTransport(); + transporter.verify((error, success) => { + if (error) { + console.log(error); + } else { + console.log('Server is ready to take our messages'); + } + }); +} + +// 4. SMTP envelope + +namespace smtp_envelope_test { + const message: Mail.Options = { + from: 'mailer@nodemailer.com', // listed in rfc822 message header + to: 'daemon@nodemailer.com', // listed in rfc822 message header + envelope: { + from: 'Daemon ', // used as MAIL FROM: address for SMTP + to: 'mailer@nodemailer.com, Mailer ' // used as RCPT TO: address for SMTP + } + }; +} + +// 4. Pooled SMTP + +// transporter.close() + +namespace smtp_pool_close_test { + const transporter = nodemailer.createTransport({ pool: true }); + transporter.close(); +} + +// Event:‘idle’ + +namespace smtp_pool_idle_test { + const messages = [{ raw: 'list of messages' }]; + const transporter = nodemailer.createTransport({ pool: true }); + transporter.on('idle', () => { + // send next message from the pending queue + while (transporter.isIdle() && messages.length) { + transporter.sendMail(messages.shift()!); + } + }); +} + +// 4. Testing SMTP + +// Create a testing account on the fly + +namespace smtp_test_account_test { + nodemailer.createTestAccount((err, account) => { + if (!err) { + // create reusable transporter object using the default SMTP transport + const transporter = nodemailer.createTransport({ + host: 'smtp.ethereal.email', + port: 587, + secure: false, // true for 465, false for other ports + auth: { + user: account.user, // generated ethereal user + pass: account.pass // generated ethereal password + } + }); + } + }); +} + +// Use environment specific SMTP settings + +namespace smtp_info_test { + const transporter = nodemailer.createTransport(); + transporter.sendMail({}).then((info: SMTPTransport.SentMessageInfo) => { + console.log('Preview URL: ' + nodemailer.getTestMessageUrl(info)); + }); +} + +// 4. OAuth2 + +// Using custom token handling + +namespace oauth2_token_handling_test { + const transporter = nodemailer.createTransport(); + const userTokens: { [key: string]: string; } = {}; + transporter.set('oauth2_provision_cb', (user, renew, callback) => { + const accessToken = userTokens[user]; + if (!accessToken) { + callback(new Error('Unknown user')); + } else { + callback(null, accessToken); + } + }); +} + +// Token update notifications + +namespace oauth2_token_update_test { + const transporter = nodemailer.createTransport(); + transporter.on('token', token => { + console.log('A new access token was generated'); + console.log('User: %s', token.user); + console.log('Access Token: %s', token.accessToken); + console.log('Expires: %s', new Date(token.expires)); + }); +} + +// Authenticate using existing token + +namespace oauth2_existing_token_test { + const transporter = nodemailer.createTransport({ + host: 'smtp.gmail.com', + port: 465, + secure: true, + auth: { + type: 'OAuth2', + user: 'user@example.com', + accessToken: 'ya29.Xx_XX0xxxxx-xX0X0XxXXxXxXXXxX0x' + } + }); +} + +// Custom handler + +namespace oauth2_custom_handler_test { + const transporter = nodemailer.createTransport({ + host: 'smtp.gmail.com', + port: 465, + secure: true, + auth: { + type: 'OAuth2', + user: 'user@example.com' + } + }); + + const userTokens: { [key: string]: string; } = {}; + + transporter.set('oauth2_provision_cb', (user, renew, callback) => { + const accessToken = userTokens[user]; + if (!accessToken) { + callback(new Error('Unknown user')); + } else { + callback(null, accessToken); + } + }); +} + +// Set up 3LO authentication + +namespace oauth2_3lo_test { + const transporter = nodemailer.createTransport({ + host: 'smtp.gmail.com', + port: 465, + secure: true, + auth: { + type: 'OAuth2', + user: 'user@example.com', + clientId: '000000000000-xxx0.apps.googleusercontent.com', + clientSecret: 'XxxxxXXxX0xxxxxxxx0XXxX0', + refreshToken: '1/XXxXxsss-xxxXXXXXxXxx0XXXxxXXx0x00xxx', + accessToken: 'ya29.Xx_XX0xxxxx-xX0X0XxXXxXxXXXxX0x', + expires: 1484314697598 + } + }); +} + +// Set up 2LO authentication + +namespace oauth2_2lo_test { + const transporter = nodemailer.createTransport({ + host: 'smtp.gmail.com', + port: 465, + secure: true, + auth: { + type: 'OAuth2', + user: 'user@example.com', + serviceClient: '113600000000000000000', + privateKey: '-----BEGIN PRIVATE KEY-----\nMIIEvgIBADANBg...', + accessToken: 'ya29.Xx_XX0xxxxx-xX0X0XxXXxXxXXXxX0x', + expires: 1484314697598 + } + }); +} + +// Provide authentication details with message options + +namespace oauth2_message_options_test { + const transporter = nodemailer.createTransport({ + host: 'smtp.gmail.com', + port: 465, + secure: true, + auth: { + type: 'OAuth2', + clientId: '000000000000-xxx.apps.googleusercontent.com', + clientSecret: 'XxxxxXXxX0xxxxxxxx0XXxX0' + } + }); + + const auth: SMTPConnection.AuthenticationTypeOAuth2 = { + user: 'user@example.com', + refreshToken: '1/XXxXxsss-xxxXXXXXxXxx0XXXxxXXx0x00xxx', + accessToken: 'ya29.Xx_XX0xxxxx-xX0X0XxXXxXxXXXxX0x', + expires: 1484314697598 + }; + + const options: SMTPTransport.MailOptions = { + from: 'sender@example.com', + to: 'recipient@example.com', + subject: 'Message', + text: 'I hope this message gets through!', + auth: { + user: 'user@example.com', + refreshToken: '1/XXxXxsss-xxxXXXXXxXxx0XXXxxXXx0x00xxx', + accessToken: 'ya29.Xx_XX0xxxxx-xX0X0XxXXxXxXXXxX0x', + expires: 1484314697598 + } + }; + + transporter.sendMail(options); +} + +namespace oauth2_privision_cb_test { + const transporter = nodemailer.createTransport({ + host: 'smtp.gmail.com', + port: 465, + secure: true, + auth: { + type: 'OAuth2' + } + }); + + const userTokens: { [key: string]: string; } = {}; + + transporter.set('oauth2_provision_cb', (user, renew, callback) => { + const accessToken = userTokens[user]; + if (!accessToken) { + callback(new Error('Unknown user')); + } else { + callback(null, accessToken); + } + }); + + const options: SMTPTransport.MailOptions = { + from: 'sender@example.com', + to: 'recipient@example.com', + subject: 'Message', + text: 'I hope this message gets through!', + auth: { + user: 'user@example.com' + } + }; + + transporter.sendMail(options); +} + +// 5. Sendmail transport + +// Send a message using specific binary + +namespace sendmail_test { + const transporter = nodemailer.createTransport({ + sendmail: true, + newline: 'unix', + path: '/usr/sbin/sendmail' + }); + transporter.sendMail({ + from: 'sender@example.com', + to: 'recipient@example.com', + subject: 'Message', + text: 'I hope this message gets delivered!' + }, (err, info: SendmailTransport.SentMessageInfo) => { + if (!err) { + console.log(info.envelope); + console.log(info.messageId); + } + }); +} + +// 5. SES transport + +// Send a message using SES transport + +namespace ses_test { + // configure AWS SDK + aws.config.loadFromPath('config.json'); + + // create Nodemailer SES transporter + const transporter = nodemailer.createTransport({ + SES: new aws.SES({ + apiVersion: '2010-12-01' + }) + }); + + const options: SESTransport.MailOptions = { + from: 'sender@example.com', + to: 'recipient@example.com', + subject: 'Message', + text: 'I hope this message gets sent!', + ses: { // optional extra arguments for SendRawEmail + Tags: [{ + Name: 'tag name', + Value: 'tag value' + }] + } + }; + + // send some mail + transporter.sendMail(options, (err, info: SESTransport.SentMessageInfo) => { + if (!err) { + console.log(info.envelope); + console.log(info.messageId); + } + }); +} + +// 5. Stream transport + +// Stream a message with windows-style newlines + +namespace stream_test { + const transporter = nodemailer.createTransport({ + streamTransport: true, + newline: 'windows' + }); + transporter.sendMail({ + from: 'sender@example.com', + to: 'recipient@example.com', + subject: 'Message', + text: 'I hope this message gets streamed!' + }, (err, info: StreamTransport.SentMessageInfo) => { + if (!err) { + console.log(info.envelope); + console.log(info.messageId); + // if ('pipe' in info.message) { + if (info.message instanceof stream.Readable) { + info.message.pipe(process.stdout); + } + } + }); +} + +// Create a buffer with unix-style newlines + +namespace stream_buffer_unix_newlines_test { + const transporter = nodemailer.createTransport({ + streamTransport: true, + newline: 'unix', + buffer: true + }); + transporter.sendMail({ + from: 'sender@example.com', + to: 'recipient@example.com', + subject: 'Message', + text: 'I hope this message gets buffered!' + }, (err, info: StreamTransport.SentMessageInfo) => { + if (!err) { + console.log(info.envelope); + console.log(info.messageId); + console.log(info.message.toString()); + } + }); +} + +// Create a JSON encoded message object + +namespace json_test { + const transporter = nodemailer.createTransport({ + jsonTransport: true + }); + transporter.sendMail({ + from: 'sender@example.com', + to: 'recipient@example.com', + subject: 'Message', + text: 'I hope this message gets buffered!' + }, (err, info: JSONTransport.SentMessageInfo) => { + if (!err) { + console.log(info.envelope); + console.log(info.messageId); + console.log(info.message); // JSON string + } + }); +} + +// 6. Create plugins + +// 'compile' + +namespace plugin_compile_test { + const transporter = nodemailer.createTransport(); + + function plugin(mail: typeof transporter.MailMessage, callback: (err?: Error | null) => void) { + // if mail.data.html is a file or an url, it is returned as a Buffer + mail.resolveContent(mail.data, 'html', (err, html) => { + if (err) { + callback(err); + return; + } + console.log('HTML contents: %s', html.toString()); + callback(); + }); + } + + transporter.use('compile', (mail, callback) => { + if (!mail.data.text && mail.data.html && typeof mail.data.html === 'string') { + mail.data.text = mail.data.html.replace(/<[^>]*>/g, ' '); + } + callback(); + }); +} + +// 'stream' + +namespace plugin_stream_test { + const transformer: stream.Transform = new (require('stream').Transform)(); + + transformer._transform = function(chunk: Buffer, encoding, done) { + // replace all tabs with spaces in the stream chunk + for (let i = 0; i < chunk.length; i++) { + if (chunk[i] === 0x09) { + chunk[i] = 0x20; + } + } + this.push(chunk); + done(); + }; + + const transporter = nodemailer.createTransport(); + + transporter.use('stream', (mail, callback) => { + // apply output transformer to the raw message stream + mail.message.transform(transformer); + callback(); + }); + + transporter.use('stream', (mail, callback) => { + const addresses = mail.message.getAddresses(); + console.log('From: %s', JSON.stringify(addresses.from)); + console.log('To: %s', JSON.stringify(addresses.to)); + console.log('Cc: %s', JSON.stringify(addresses.cc)); + console.log('Bcc: %s', JSON.stringify(addresses.bcc)); + callback(); + }); +} + +// Transport Example + +namespace plugin_transport_example_test { + interface MailOptions extends Mail.Options { + mailOption?: 'foo'; + } + interface Options extends MailOptions, nodemailer.TransportOptions { + transportOptions: 'bar'; + } + interface SentMessageInfo { + SentMessageInfo: 'baz'; + } + + class Transport implements nodemailer.Transport { + name = 'minimal'; + version = '0.1.0'; + constructor(options: Options) { } + send(mail: MailMessage, callback: (err: Error | null, info: SentMessageInfo) => void): void { + const input = mail.message.createReadStream(); + input.pipe(process.stdout); + input.on('end', () => { + callback(null, { SentMessageInfo: 'baz' }); + }); + } + } + + const transporter = nodemailer.createTransport(new Transport({ + transportOptions: 'bar' + })); + + const options: MailOptions = { + from: 'sender', + to: 'receiver', + subject: 'hello', + text: 'hello world!', + mailOption: 'foo' + }; + + transporter.sendMail(options); +} + +// 7. https://nodemailer.com/dkim/ + +// Sign all messages + +namespace dkim_sign_all_test { + const opts: SMTPTransport.Options = { + host: 'smtp.example.com', + port: 465, + secure: true, + dkim: { + domainName: 'example.com', + keySelector: '2017', + privateKey: '-----BEGIN PRIVATE KEY-----\nMIIEvgIBADANBg...' + } + }; +} + +// Sign all messages with multiple keys + +namespace dkim_sign_multiple_keys_test { + const transporter = nodemailer.createTransport({ + host: 'smtp.example.com', + port: 465, + secure: true, + dkim: { + keys: [ + { + domainName: 'example.com', + keySelector: '2017', + privateKey: '-----BEGIN PRIVATE KEY-----\nMIIEvgIBADANBg...' + }, + { + domainName: 'example.com', + keySelector: '2016', + privateKey: '-----BEGIN PRIVATE KEY-----\nMIIEvgIBADANBg...' + } + ], + cacheDir: false + } + }); +} + +// Sign a specific message + +namespace dkim_sign_specific_message_test { + const transporter = nodemailer.createTransport({ + host: 'smtp.example.com', + port: 465, + secure: true + }); + const message: Mail.Options = { + from: 'sender@example.com', + to: 'recipient@example.com', + subject: 'Message', + text: 'I hope this message gets read!', + dkim: { + domainName: 'example.com', + keySelector: '2017', + privateKey: '-----BEGIN PRIVATE KEY-----\nMIIEvgIBADANBg...' + } + }; +} + +// Cache large messages for signing + +namespace dkim_cache_large_messages_test { + const transporter = nodemailer.createTransport({ + host: 'smtp.example.com', + port: 465, + secure: true, + dkim: { + domainName: 'example.com', + keySelector: '2017', + privateKey: '-----BEGIN PRIVATE KEY-----\nMIIEvgIBADANBg...', + cacheDir: '/tmp', + cacheTreshold: 100 * 1024 + } + }); +} + +// Do not sign specific header keys + +namespace dkim_specific_header_key_test { + const transporter = nodemailer.createTransport({ + host: 'smtp.example.com', + port: 465, + secure: true, + dkim: { + domainName: 'example.com', + keySelector: '2017', + privateKey: '-----BEGIN PRIVATE KEY-----\nMIIEvgIBADANBg...', + skipFields: 'message-id:date' + } + }); +} + +// 8. SMTP Connection + +// SMTP Connection + +namespace smtp_connection_test { + const connection = new SMTPConnection(); + connection.connect(() => { + connection.login({ user: 'user', pass: 'pass' }, (err) => { + if (err) throw err; + connection.send({ from: 'a@example.com', to: 'b@example.net' }, 'message', (err, info) => { + if (err) throw err; + console.log(info); + connection.reset(() => { + if (err) throw err; + connection.quit(); + connection.close(); + }); + }); + }); + }); +} + +// Mailcomposer + +// createReadStream + +namespace mailcomposer_createReadStream_test { + const mail = new MailComposer({ from: '...' }); + const stream = mail.compile().createReadStream(); + stream.pipe(process.stdout); +} + +// build + +namespace mailcomposer_build_test { + const mail = new MailComposer({ from: '...' }); + mail.compile().build((err, message) => { + process.stdout.write(message); + }); +} + +// addressparser + +namespace addressparser_test { + const input = 'andris@tr.ee'; + addressparser(input); +} + +// base64 + +namespace base64_test { + base64.encode('abcd= ÕÄÖÜ'); + + base64.encode(new Buffer([0x00, 0x01, 0x02, 0x20, 0x03])); +} + +// fetch + +namespace fetch_test { + fetch('http://localhost/'); + + fetch('http://localhost:/', { + allowErrorResponse: true, + method: 'post', + cookie: 'test=pest', + body: { + hello: 'world 😭', + another: 'value' + }, + timeout: 1000, + tls: { + rejectUnauthorized: true + } + }); +} + +// fetch/cookies + +namespace fetch_cookies_test { + const biskviit = new Cookies(); + + biskviit.getPath('/'); + + biskviit.isExpired({ + name: 'a', + value: 'b', + expires: new Date(Date.now() + 10000) + }); + + biskviit.compare( + { + name: 'zzz', + path: '/', + domain: 'example.com', + secure: false, + httponly: false + }, + { + name: 'zzz', + path: '/', + domain: 'example.com', + secure: false, + httponly: false + } + ); + + biskviit.add({ + name: 'zzz', + value: 'abc', + path: '/', + expires: new Date(Date.now() + 10000), + domain: 'example.com', + secure: false, + httponly: false + }); + + const cookie = { + name: 'zzz', + value: 'abc', + path: '/def/', + expires: new Date(Date.now() + 10000), + domain: 'example.com', + secure: false, + httponly: false + }; + + biskviit.match(cookie, 'http://example.com/def/'); + + biskviit.parse('theme=plain'); + + biskviit.list('https://www.foo.com'); + + biskviit.get('https://www.foo.com'); + + biskviit.set('theme=plain', 'https://foo.com/'); +} + +// mime-funcs + +namespace mime_funcs_test { + mimeFuncs.isPlainText('abc'); + + mimeFuncs.hasLongerLines('abc\ndef', 5); + + mimeFuncs.encodeWord('See on õhin test'); + mimeFuncs.encodeWord('See on õhin test', 'B'); + mimeFuncs.encodeWords('метель" вьюга', 'Q', 52); + mimeFuncs.encodeWords('Jõgeva Jõgeva Jõgeva mugeva Jõgeva Jõgeva Jõgeva Jõgeva Jõgeva', 'Q', 16); + mimeFuncs.encodeWords('õõõõõ õõõõõ õõõõõ mugeva õõõõõ õõõõõ õõõõõ õõõõõ Jõgeva', 'B', 30); + + mimeFuncs.buildHeaderParam('title', 'this is just a title', 500); + + const parsedHeader = mimeFuncs.parseHeaderValue('content-disposition: attachment; filename=filename'); + console.log(parsedHeader.params.filename); + + mimeFuncs.buildHeaderValue({ + value: 'test' + }); + + mimeFuncs.buildHeaderValue({ + value: 'test', + params: { + a: 'b' + } + }); + + mimeFuncs.foldLines('Testin command line', 76, true); + mimeFuncs.foldLines('Testin command line', 76); +} + +// mime-types + +namespace mime_types_test { + mimeTypes.detectExtension(false); + mimeTypes.detectExtension('unknown'); + + mimeTypes.detectMimeType(false); + mimeTypes.detectMimeType('unknown'); +} + +// qp + +namespace qp_test { + qp.encode('abcd= ÕÄÖÜ'); + + qp.encode(new Buffer([0x00, 0x01, 0x02, 0x20, 0x03])); +} + +// shared + +namespace shared_getLogger_test { + shared.getLogger({ + logger: false + }); + + shared.getLogger(); + + const options = shared.parseConnectionUrl('smtps://user:pass@localhost:123?tls.rejectUnauthorized=false&name=horizon'); + console.log(options.secure, options.auth!.user, options.tls!.rejectUnauthorized); +} + +namespace shared_resolveContent_string_test { + const mail = { + data: { + html: '

Tere, tere

vana kere!

\n' + } + }; + + shared.resolveContent(mail.data, 'html', (err, value) => { + if (!err) { + console.log(value); + } + }); + + shared.resolveContent(mail.data, 'html').then((value) => console.log(value)); +} + +namespace shared_resolveContent_buffer_test { + const mail = { + data: { + html: new Buffer('

Tere, tere

vana kere!

\n') + } + }; + + shared.resolveContent(mail.data, 'html', (err, value) => { + if (!err) { + console.log(value); + } + }); + + shared.resolveContent(mail.data, 'html').then((value) => console.log(value)); +} + +namespace shared_assing_test { + const target = { + a: 1, + b: 2, + c: 3 + }; + const arg1 = { + b: 5, + y: 66, + e: 33 + }; + + const arg2 = { + y: 17, + qq: 98 + }; + + shared.assign(target, arg1, arg2); +} + +namespace shared_encodeXText_test { + shared.encodeXText('teretere'); +} + +// well-known + +namespace well_known_test { + const options = wellKnown('Gmail'); + if (options) { + console.log(options.host, options.port, options.secure); + } +} diff --git a/types/nodemailer/tsconfig.json b/types/nodemailer/tsconfig.json index 412f3312eb..f2c1ffbbe8 100644 --- a/types/nodemailer/tsconfig.json +++ b/types/nodemailer/tsconfig.json @@ -6,8 +6,8 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": true, "strictFunctionTypes": true, + "strictNullChecks": true, "baseUrl": "../", "typeRoots": [ "../" @@ -18,6 +18,28 @@ }, "files": [ "index.d.ts", + "lib/addressparser.d.ts", + "lib/base64.d.ts", + "lib/dkim.d.ts", + "lib/fetch/index.d.ts", + "lib/fetch/cookies.d.ts", + "lib/json-transport.d.ts", + "lib/mail-composer.d.ts", + "lib/mailer/index.d.ts", + "lib/mailer/mail-message.d.ts", + "lib/mime-funcs/index.d.ts", + "lib/mime-funcs/mime-types.d.ts", + "lib/mime-node.d.ts", + "lib/qp.d.ts", + "lib/sendmail-transport.d.ts", + "lib/ses-transport.d.ts", + "lib/shared.d.ts", + "lib/smtp-connection.d.ts", + "lib/smtp-pool.d.ts", + "lib/smtp-transport.d.ts", + "lib/stream-transport.d.ts", + "lib/well-known.d.ts", + "lib/xoauth2.d.ts", "nodemailer-tests.ts" ] } \ No newline at end of file diff --git a/types/nodemailer/tslint.json b/types/nodemailer/tslint.json new file mode 100644 index 0000000000..64aace11d6 --- /dev/null +++ b/types/nodemailer/tslint.json @@ -0,0 +1,6 @@ +{ + "extends": "dtslint/dt.json", + "rules": { + "max-line-length": false + } +} diff --git a/types/nodemailer/v3/index.d.ts b/types/nodemailer/v3/index.d.ts new file mode 100644 index 0000000000..fb1c359625 --- /dev/null +++ b/types/nodemailer/v3/index.d.ts @@ -0,0 +1,215 @@ +// Type definitions for Nodemailer 3.1.5 +// Project: https://github.com/andris9/Nodemailer +// Definitions by: Rogier Schouten +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +/// + +import directTransport = require("nodemailer-direct-transport"); +import smtpTransport = require("nodemailer-smtp-transport"); +import sesTransport = require("nodemailer-ses-transport") + +/** + * Transporter plugin + */ +export interface Plugin { + (mail: SendMailOptions, callback?: (error: Error, info: SentMessageInfo) => void): void; +} + +/** + * This is what you use to send mail + */ +export interface Transporter { + /** + * Send a mail with callback + */ + sendMail(mail: SendMailOptions, callback: (error: Error, info: SentMessageInfo) => void): void; + + /** + * Send a mail + * return Promise + */ + sendMail(mail: SendMailOptions): Promise; + + /** + * Attach a plugin. 'compile' and 'stream' plugins can be attached with use(plugin) method + * + * @param step is a string, either 'compile' or 'stream' thatd defines when the plugin should be hooked + * @param pluginFunc is a function that takes two arguments: the mail object and a callback function + */ + use(step: string, plugin: Plugin): void; + + /** + * Verifies connection with server + */ + verify(callback: (error: Error, success?: boolean) => void): void; + + /** + * Verifies connection with server + */ + verify(): Promise; + + /** + * Close all connections + */ + close?(): void; +} + +/** + * Create a direct transporter + */ +export declare function createTransport(options?: directTransport.DirectOptions, defaults?: Object): Transporter; +/** + * Create an SMTP transporter + */ +export declare function createTransport(options?: smtpTransport.SmtpOptions, defaults?: Object): Transporter; +/** + * Create an SMTP transporter using a connection url + */ +export declare function createTransport(connectionUrl: string, defaults?: Object): Transporter; +/** + * Create an AWS SES transporter + */ +export declare function createTransport(options?: sesTransport.SesOptions, defaults?: Object): Transporter; +/** + * Create a transporter from a given implementation + */ +export declare function createTransport(transport: Transport, defaults?: Object): Transporter; +export interface AttachmentObject { + /** + * filename to be reported as the name of the attached file, use of unicode is allowed + */ + filename?: string; + /** + * optional content id for using inline images in HTML message source + */ + cid?: string; + /** + * Pathname or URL to use streaming + */ + path?: string; + /** + * String, Buffer or a Stream contents for the attachment + */ + content: string|Buffer|NodeJS.ReadableStream; + /** + * If set and content is string, then encodes the content to a Buffer using the specified encoding. Example values: base64, hex, 'binary' etc. Useful if you want to use binary attachments in a JSON formatted e-mail object. + */ + encoding?: string; + /** + * optional content type for the attachment, if not set will be derived from the filename property + */ + contentType?: string; + /** + * optional content disposition type for the attachment, defaults to 'attachment' + */ + contentDisposition?: string; +} + +export interface SendMailOptions { + /** + * The e-mail address of the sender. All e-mail addresses can be plain 'sender@server.com' or formatted 'Sender Name ', see here for details + */ + from?: string; + /** + * An e-mail address that will appear on the Sender: field + */ + sender?: string; + /** + * Comma separated list or an array of recipients e-mail addresses that will appear on the To: field + */ + to?: string|string[]; + /** + * Comma separated list or an array of recipients e-mail addresses that will appear on the Cc: field + */ + cc?: string|string[]; + /** + * Comma separated list or an array of recipients e-mail addresses that will appear on the Bcc: field + */ + bcc?: string|string[]; + /** + * An e-mail address that will appear on the Reply-To: field + */ + replyTo?: string; + /** + * The message-id this message is replying + */ + inReplyTo?: string; + /** + * Message-id list (an array or space separated string) + */ + references?: string|string[]; + /** + * The subject of the e-mail + */ + subject?: string; + /** + * The plaintext version of the message as an Unicode string, Buffer, Stream or an object {path: '...'} + */ + text?: string|Buffer|NodeJS.ReadableStream|AttachmentObject; + /** + * The HTML version of the message as an Unicode string, Buffer, Stream or an object {path: '...'} + */ + html?: string|Buffer|NodeJS.ReadableStream|AttachmentObject; + /** + * An object or array of additional header fields (e.g. {"X-Key-Name": "key value"} or [{key: "X-Key-Name", value: "val1"}, {key: "X-Key-Name", value: "val2"}]) + */ + headers?: any; + /** + * An array of attachment objects (see below for details) + */ + attachments?: AttachmentObject[]; + /** + * An array of alternative text contents (in addition to text and html parts) (see below for details) + */ + alternatives?: AttachmentObject[]; + /** + * optional Message-Id value, random value will be generated if not set + */ + messageId?: string; + /** + * optional Date value, current UTC string will be used if not set + */ + date?: Date; + /** + * optional transfer encoding for the textual parts (defaults to 'quoted-printable') + */ + encoding?: string; +} + +export interface SentMessageInfo { + /** + * most transports should return the final Message-Id value used with this property + */ + messageId: string; + /** + * includes the envelope object for the message + */ + envelope: any; + /** + * is an array returned by SMTP transports (includes recipient addresses that were accepted by the server) + */ + accepted: string[]; + /** + * is an array returned by SMTP transports (includes recipient addresses that were rejected by the server) + */ + rejected: string[]; + /** + * is an array returned by Direct SMTP transport. Includes recipient addresses that were temporarily rejected together with the server response + */ + pending?: string[]; + /** + * is a string returned by SMTP transports and includes the last SMTP response from the server + */ + response: string; +} + +/** + * This is what you implement to create a new transporter yourself + */ +export interface Transport { + name: string; + version: string; + send(mail: SendMailOptions, callback?: (error: Error, info: SentMessageInfo) => void): void; + close(): void; +} diff --git a/types/nodemailer/v3/nodemailer-tests.ts b/types/nodemailer/v3/nodemailer-tests.ts new file mode 100644 index 0000000000..cd26579189 --- /dev/null +++ b/types/nodemailer/v3/nodemailer-tests.ts @@ -0,0 +1,71 @@ +import * as nodemailer from 'nodemailer' +import * as AWS from 'aws-sdk' + +// create reusable transporter object using SMTP transport +var transporter: nodemailer.Transporter = nodemailer.createTransport({ + service: 'Gmail', + auth: { + user: 'gmail.user@gmail.com', + pass: 'userpass' + } +}); + +// create reusable transporter object using SMTP connection url using default options +transporter = nodemailer.createTransport("smtps://gmail.user@gmail.com:userpass@gmail/?pool=true"); + +// create reusable transporter object using SMTP connection url and specify some options +transporter = nodemailer.createTransport("smtps://gmail.user@gmail.com:userpass@gmail/?pool=true", + { + from: 'sender@address', + headers: { + 'My-Awesome-Header': '123' + } + }); + +// create reusable transporter object using SES transport and set default values for mail options. +transporter = nodemailer.createTransport({ + SES: new AWS.SES() +}) +// create reusable transporter object using SMTP transport and set default values for mail options. +transporter = nodemailer.createTransport({ + SES: new AWS.SES() +}, { + from: 'sender@address', + headers: { + 'My-Awesome-Header': '123' + } +}) + +// create reusable transporter object using SMTP transport and set default values for mail options. +transporter = nodemailer.createTransport({ + service: 'Gmail', + auth: { + user: 'gmail.user@gmail.com', + pass: 'userpass' + } +}, { + from: 'sender@address', + headers: { + 'My-Awesome-Header': '123' + } +}); + +// setup e-mail data with unicode symbols +var mailOptions: nodemailer.SendMailOptions = { + from: 'Fred Foo ✔ ', // sender address + to: 'bar@blurdybloop.com, baz@blurdybloop.com', // list of receivers + subject: 'Hello ✔', // Subject line + text: 'Hello world ✔', // plaintext body + html: 'Hello world ✔' // html body +}; + +// send mail with defined transport object +transporter.sendMail(mailOptions, (error: Error, info: nodemailer.SentMessageInfo): void => { + // nothing +}); + +// promise send mail without callback +transporter + .sendMail(mailOptions) + .then(info => info.messageId) + .catch(err => {}) \ No newline at end of file diff --git a/types/nodemailer/package.json b/types/nodemailer/v3/package.json similarity index 100% rename from types/nodemailer/package.json rename to types/nodemailer/v3/package.json diff --git a/types/nodemailer/v3/tsconfig.json b/types/nodemailer/v3/tsconfig.json new file mode 100644 index 0000000000..4ebef6b8cf --- /dev/null +++ b/types/nodemailer/v3/tsconfig.json @@ -0,0 +1,28 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es6" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "strictFunctionTypes": true, + "baseUrl": "../../", + "typeRoots": [ + "../../" + ], + "paths": { + "nodemailer": [ + "nodemailer/v3" + ] + }, + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "nodemailer-tests.ts" + ] +} \ No newline at end of file From f487a1c111ae2446bb502eef8f65aca3eb41b684 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Richard=20Jedli=C4=8Dka?= Date: Tue, 17 Oct 2017 20:58:39 +0200 Subject: [PATCH 136/506] [react] Fix `isValidElement` to accept `any` type (#20641) * [react] Fix `isValidElement` to accept `any` type * [react] Fix `isValidElement` method param type Change `object` parameter type from `any` to more explicit. --- types/react/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/react/index.d.ts b/types/react/index.d.ts index 4b123ecd87..35feb8d0ab 100644 --- a/types/react/index.d.ts +++ b/types/react/index.d.ts @@ -256,7 +256,7 @@ declare namespace React { props?: Q, // should be Q & Attributes ...children: ReactNode[]): ReactElement

; - function isValidElement

(object: {}): object is ReactElement

; + function isValidElement

(object: {} | null | undefined): object is ReactElement

; const Children: ReactChildren; const version: string; From 43a26606027a45ff30ff7e17afd7577f97aab0d8 Mon Sep 17 00:00:00 2001 From: Jeff Kenney Date: Tue, 17 Oct 2017 12:00:46 -0700 Subject: [PATCH 137/506] Fix node url and http/https request types (#18766) * [node] url.format can take a string * [node] http.request / https.request can take a string * [node] reorder Url properties to match ordering in docs * [node] DRY out the Url and UrlObject types * [node] backport split Url / UrlObject types to v0 and v4 * remove 'any' union for UrlObject.query type --- types/node/index.d.ts | 36 +++++++++++--------------- types/node/node-tests.ts | 8 ++++++ types/node/v0/index.d.ts | 50 ++++++++++++++++++++++++------------- types/node/v0/node-tests.ts | 10 ++++++++ types/node/v4/index.d.ts | 23 ++++++++++------- types/node/v4/node-tests.ts | 6 +++++ types/node/v6/index.d.ts | 28 ++++++++------------- types/node/v6/node-tests.ts | 8 ++++++ types/node/v7/index.d.ts | 40 ++++++++++++----------------- types/node/v7/node-tests.ts | 8 ++++++ 10 files changed, 126 insertions(+), 91 deletions(-) diff --git a/types/node/index.d.ts b/types/node/index.d.ts index 143ae3177f..c8a62ba3b1 100644 --- a/types/node/index.d.ts +++ b/types/node/index.d.ts @@ -2171,37 +2171,29 @@ declare module "child_process" { } declare module "url" { - export interface Url { - href?: string; - protocol?: string; + export interface UrlObject { auth?: string; - hostname?: string; - port?: string; - host?: string; - pathname?: string; - search?: string; - query?: string | any; - slashes?: boolean; hash?: string; + host?: string; + hostname?: string; + href?: string; path?: string; + pathname?: string; + port?: string | number; + protocol?: string; + query?: string | { [key: string]: any; }; + search?: string; + slashes?: boolean; } - export interface UrlObject { - protocol?: string; - slashes?: boolean; - auth?: string; - host?: string; - hostname?: string; - port?: string | number; - pathname?: string; - search?: string; - query?: { [key: string]: any; }; - hash?: string; + export interface Url extends UrlObject { + port?: string; + query?: any; } export function parse(urlStr: string, parseQueryString?: boolean, slashesDenoteHost?: boolean): Url; export function format(URL: URL, options?: URLFormatOptions): string; - export function format(urlObject: UrlObject): string; + export function format(urlObject: UrlObject | string): string; export function resolve(from: string, to: string): string; export interface URLFormatOptions { diff --git a/types/node/node-tests.ts b/types/node/node-tests.ts index 1ec94db6b6..802e47db4e 100644 --- a/types/node/node-tests.ts +++ b/types/node/node-tests.ts @@ -541,6 +541,8 @@ namespace url_tests { { url.format(url.parse('http://www.example.com/xyz')); + url.format('http://www.example.com/xyz'); + // https://google.com/search?q=you're%20a%20lizard%2C%20gary url.format({ protocol: 'https', @@ -1295,6 +1297,10 @@ namespace http_tests { http.request({ agent: undefined }); } + { + http.request('http://www.example.com/xyz'); + } + { // Make sure .listen() and .close() return a Server instance http.createServer().listen(0).close().address(); @@ -1337,6 +1343,8 @@ namespace https_tests { https.request({ agent: undefined }); + + https.request('http://www.example.com/xyz'); } //////////////////////////////////////////////////// diff --git a/types/node/v0/index.d.ts b/types/node/v0/index.d.ts index 1b4585bd66..ccf2e5e207 100644 --- a/types/node/v0/index.d.ts +++ b/types/node/v0/index.d.ts @@ -462,6 +462,23 @@ declare module "http" { import * as net from "net"; import * as stream from "stream"; + export interface RequestOptions { + protocol?: string; + host?: string; + hostname?: string; + family?: number; + port?: number; + localAddress?: string; + socketPath?: string; + method?: string; + path?: string; + headers?: { [key: string]: any }; + auth?: string; + agent?: Agent | boolean; + keepAlive?: boolean; + keepAliveMsecs?: number; + } + export interface Server extends events.EventEmitter { listen(port: number, hostname?: string, backlog?: number, callback?: Function): Server; listen(port: number, hostname?: string, callback?: Function): Server; @@ -599,7 +616,7 @@ declare module "http" { }; export function createServer(requestListener?: (request: IncomingMessage, response: ServerResponse) =>void ): Server; export function createClient(port?: number, host?: string): any; - export function request(options: any, callback?: (res: IncomingMessage) => void): ClientRequest; + export function request(options: RequestOptions | string, callback?: (res: IncomingMessage) => void): ClientRequest; export function get(options: any, callback?: (res: IncomingMessage) => void): ClientRequest; export var globalAgent: Agent; } @@ -756,15 +773,7 @@ declare module "https" { SNICallback?: (servername: string) => any; } - export interface RequestOptions { - host?: string; - hostname?: string; - port?: number; - path?: string; - method?: string; - headers?: any; - auth?: string; - agent?: any; + export interface RequestOptions extends http.RequestOptions { pfx?: any; key?: any; passphrase?: string; @@ -784,7 +793,7 @@ declare module "https" { }; export interface Server extends tls.Server { } export function createServer(options: ServerOptions, requestListener?: Function): Server; - export function request(options: RequestOptions, callback?: (res: http.IncomingMessage) =>void ): http.ClientRequest; + export function request(options: RequestOptions | string, callback?: (res: http.IncomingMessage) =>void ): http.ClientRequest; export function get(options: RequestOptions, callback?: (res: http.IncomingMessage) =>void ): http.ClientRequest; export var globalAgent: Agent; } @@ -956,23 +965,28 @@ declare module "child_process" { } declare module "url" { - export interface Url { + export interface UrlObject { href?: string; protocol?: string; + slashes?: boolean; + host?: string; auth?: string; hostname?: string; - port?: string; - host?: string; + port?: string | number; pathname?: string; search?: string; - query?: any; // string | Object - slashes?: boolean; - hash?: string; path?: string; + query?: string | { [key: string]: any; }; + hash?: string; + } + + export interface Url extends UrlObject { + port?: string; + query?: any; } export function parse(urlStr: string, parseQueryString?: boolean , slashesDenoteHost?: boolean ): Url; - export function format(url: Url): string; + export function format(urlObject: UrlObject): string; export function resolve(from: string, to: string): string; } diff --git a/types/node/v0/node-tests.ts b/types/node/v0/node-tests.ts index 91e85f5a0c..8e2443b360 100644 --- a/types/node/v0/node-tests.ts +++ b/types/node/v0/node-tests.ts @@ -8,6 +8,7 @@ import * as util from "util"; import * as crypto from "crypto"; import * as tls from "tls"; import * as http from "http"; +import * as https from "https"; import * as net from "net"; import * as dgram from "dgram"; import * as querystring from "querystring"; @@ -250,6 +251,15 @@ namespace http_tests { }); var agent: http.Agent = http.globalAgent; + + http.request('http://www.example.com/xyz'); +} + +//////////////////////////////////////////////////// +/// Https tests : http://nodejs.org/api/https.html +//////////////////////////////////////////////////// +namespace https_tests { + https.request('http://www.example.com/xyz'); } //////////////////////////////////////////////////// diff --git a/types/node/v4/index.d.ts b/types/node/v4/index.d.ts index 959cc83545..d88db82da1 100644 --- a/types/node/v4/index.d.ts +++ b/types/node/v4/index.d.ts @@ -720,7 +720,7 @@ declare module "http" { }; export function createServer(requestListener?: (request: IncomingMessage, response: ServerResponse) =>void ): Server; export function createClient(port?: number, host?: string): any; - export function request(options: RequestOptions, callback?: (res: IncomingMessage) => void): ClientRequest; + export function request(options: RequestOptions | string, callback?: (res: IncomingMessage) => void): ClientRequest; export function get(options: any, callback?: (res: IncomingMessage) => void): ClientRequest; export var globalAgent: Agent; } @@ -946,7 +946,7 @@ declare module "https" { }; export interface Server extends tls.Server { } export function createServer(options: ServerOptions, requestListener?: Function): Server; - export function request(options: RequestOptions, callback?: (res: http.IncomingMessage) =>void ): http.ClientRequest; + export function request(options: RequestOptions | string, callback?: (res: http.IncomingMessage) =>void ): http.ClientRequest; export function get(options: RequestOptions, callback?: (res: http.IncomingMessage) =>void ): http.ClientRequest; export var globalAgent: Agent; } @@ -1236,23 +1236,28 @@ declare module "child_process" { } declare module "url" { - export interface Url { + export interface UrlObject { href?: string; protocol?: string; + slashes?: boolean; + host?: string; auth?: string; hostname?: string; - port?: string; - host?: string; + port?: string | number; pathname?: string; search?: string; - query?: string | any; - slashes?: boolean; - hash?: string; path?: string; + query?: string | { [key: string]: any; }; + hash?: string; + } + + export interface Url extends UrlObject { + port?: string; + query?: any; } export function parse(urlStr: string, parseQueryString?: boolean , slashesDenoteHost?: boolean ): Url; - export function format(url: Url): string; + export function format(urlObject: UrlObject): string; export function resolve(from: string, to: string): string; } diff --git a/types/node/v4/node-tests.ts b/types/node/v4/node-tests.ts index 30bdbdda0c..05b20806cd 100644 --- a/types/node/v4/node-tests.ts +++ b/types/node/v4/node-tests.ts @@ -483,6 +483,10 @@ namespace http_tests { http.request({ agent: undefined }); } + { + http.request('http://www.example.com/xyz'); + } + { // Make sure .listen() and .close() retuern a Server instance http.createServer().listen(0).close().address(); @@ -521,6 +525,8 @@ namespace https_tests { https.request({ agent: undefined }); + + https.request('http://www.example.com/xyz'); } //////////////////////////////////////////////////// diff --git a/types/node/v6/index.d.ts b/types/node/v6/index.d.ts index e89656eedf..8f73bab752 100644 --- a/types/node/v6/index.d.ts +++ b/types/node/v6/index.d.ts @@ -1802,36 +1802,28 @@ declare module "child_process" { } declare module "url" { - export interface Url { + export interface UrlObject { href?: string; protocol?: string; - auth?: string; - hostname?: string; - port?: string; - host?: string; - pathname?: string; - search?: string; - query?: string | any; slashes?: boolean; - hash?: string; - path?: string; - } - - export interface UrlObject { - protocol?: string; - slashes?: boolean; - auth?: string; host?: string; + auth?: string; hostname?: string; port?: string | number; pathname?: string; search?: string; - query?: { [key: string]: any; }; + path?: string; + query?: string | { [key: string]: any; }; hash?: string; } + export interface Url extends UrlObject { + port?: string; + query?: any; + } + export function parse(urlStr: string, parseQueryString?: boolean, slashesDenoteHost?: boolean): Url; - export function format(urlObject: UrlObject): string; + export function format(urlObject: UrlObject | string): string; export function resolve(from: string, to: string): string; } diff --git a/types/node/v6/node-tests.ts b/types/node/v6/node-tests.ts index 3607a5bec2..15c36ef058 100644 --- a/types/node/v6/node-tests.ts +++ b/types/node/v6/node-tests.ts @@ -441,6 +441,8 @@ namespace url_tests { { url.format(url.parse('http://www.example.com/xyz')); + url.format('http://www.example.com/xyz'); + // https://google.com/search?q=you're%20a%20lizard%2C%20gary url.format({ protocol: 'https', @@ -917,6 +919,10 @@ namespace http_tests { http.request({ agent: undefined }); } + { + http.request('http://www.example.com/xyz'); + } + { // Make sure .listen() and .close() retuern a Server instance http.createServer().listen(0).close().address(); @@ -955,6 +961,8 @@ namespace https_tests { https.request({ agent: undefined }); + + https.request('http://www.example.com/xyz'); } //////////////////////////////////////////////////// diff --git a/types/node/v7/index.d.ts b/types/node/v7/index.d.ts index 3a5994efbc..45df6015fe 100644 --- a/types/node/v7/index.d.ts +++ b/types/node/v7/index.d.ts @@ -816,7 +816,7 @@ declare module "http" { }; export function createServer(requestListener?: (request: IncomingMessage, response: ServerResponse) => void): Server; export function createClient(port?: number, host?: string): any; - export function request(options: RequestOptions, callback?: (res: IncomingMessage) => void): ClientRequest; + export function request(options: RequestOptions | string, callback?: (res: IncomingMessage) => void): ClientRequest; export function get(options: any, callback?: (res: IncomingMessage) => void): ClientRequest; export var globalAgent: Agent; } @@ -1419,7 +1419,7 @@ declare module "https" { }; export interface Server extends tls.Server { } export function createServer(options: ServerOptions, requestListener?: Function): Server; - export function request(options: RequestOptions, callback?: (res: http.IncomingMessage) => void): http.ClientRequest; + export function request(options: RequestOptions | string, callback?: (res: http.IncomingMessage) => void): http.ClientRequest; export function get(options: RequestOptions, callback?: (res: http.IncomingMessage) => void): http.ClientRequest; export var globalAgent: Agent; } @@ -1869,37 +1869,29 @@ declare module "child_process" { } declare module "url" { - export interface Url { - href?: string; - protocol?: string; + export interface UrlObject { auth?: string; - hostname?: string; - port?: string; - host?: string; - pathname?: string; - search?: string; - query?: string | any; - slashes?: boolean; hash?: string; + host?: string; + hostname?: string; + href?: string; path?: string; + pathname?: string; + port?: string | number; + protocol?: string; + query?: string | { [key: string]: any; }; + search?: string; + slashes?: boolean; } - export interface UrlObject { - protocol?: string; - slashes?: boolean; - auth?: string; - host?: string; - hostname?: string; - port?: string | number; - pathname?: string; - search?: string; - query?: { [key: string]: any; }; - hash?: string; + export interface Url extends UrlObject { + port?: string; + query?: any; } export function parse(urlStr: string, parseQueryString?: boolean, slashesDenoteHost?: boolean): Url; export function format(URL: URL, options?: URLFormatOptions): string; - export function format(urlObject: UrlObject): string; + export function format(urlObject: UrlObject | string): string; export function resolve(from: string, to: string): string; export interface URLFormatOptions { diff --git a/types/node/v7/node-tests.ts b/types/node/v7/node-tests.ts index 860a4dc56b..f439a83213 100644 --- a/types/node/v7/node-tests.ts +++ b/types/node/v7/node-tests.ts @@ -442,6 +442,8 @@ namespace url_tests { { url.format(url.parse('http://www.example.com/xyz')); + url.format('http://www.example.com/xyz'); + // https://google.com/search?q=you're%20a%20lizard%2C%20gary url.format({ protocol: 'https', @@ -1014,6 +1016,10 @@ namespace http_tests { http.request({ agent: undefined }); } + { + http.request('http://www.example.com/xyz'); + } + { // Make sure .listen() and .close() retuern a Server instance http.createServer().listen(0).close().address(); @@ -1056,6 +1062,8 @@ namespace https_tests { https.request({ agent: undefined }); + + https.request('http://www.example.com/xyz'); } //////////////////////////////////////////////////// From f22d772d3ed1ecc718eb6f7a8f61a35f8308e70e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dominik=20Burgd=C3=B6rfer?= Date: Tue, 17 Oct 2017 21:54:44 +0200 Subject: [PATCH 138/506] Fix typo (#20652) --- types/nano/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/nano/index.d.ts b/types/nano/index.d.ts index 1c818dbb0a..788de4f241 100644 --- a/types/nano/index.d.ts +++ b/types/nano/index.d.ts @@ -345,7 +345,7 @@ declare namespace nano { } interface DocumentScopeFollowUpdatesParams { - inlucde_docs?: boolean; + include_docs?: boolean; since?: string; heartbeat?: number; feed?: "continuous"; From 2dfadabbb1fc1f6c34d7f818774e5187cb2cba03 Mon Sep 17 00:00:00 2001 From: moritz-h Date: Tue, 17 Oct 2017 21:55:05 +0200 Subject: [PATCH 139/506] [jszip] fix typo (#20653) --- types/jszip/index.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/types/jszip/index.d.ts b/types/jszip/index.d.ts index 7ea6180080..0962f46ff8 100644 --- a/types/jszip/index.d.ts +++ b/types/jszip/index.d.ts @@ -28,7 +28,7 @@ interface InputByType { text: string; binarystring: string; array: number[]; - unit8array: Uint8Array; + uint8array: Uint8Array; arraybuffer: ArrayBuffer; blob: Blob; } @@ -38,7 +38,7 @@ interface OutputByType { text: string; binarystring: string; array: number[]; - unit8array: Uint8Array; + uint8array: Uint8Array; arraybuffer: ArrayBuffer; blob: Blob; nodebuffer: Buffer; From 4da771ecb4187d8d93af1d59a2156707772d135d Mon Sep 17 00:00:00 2001 From: Don Waldo Date: Tue, 17 Oct 2017 14:56:32 -0500 Subject: [PATCH 140/506] #6930: Updates Dojox Charting definition module exports (#20654) * Fixes module definitions to uses import statement. * Removes unknown tsc compiler options strictFunctionTypes http://www.typescriptlang.org/docs/handbook/compiler-options.html * Puts back strictFunctionTypes flag Seems that the CI build fails unless this compiler flag is present, but doesn't seem to be representative of the current typescript options. The instructions say to run tsc, however it seems the flags may have changed between versions. The Travis CI output does not report the tsc version number being used. * Revert "Puts back strictFunctionTypes flag" This reverts commit aba384b0b3cbe904bd6632df8c152b09637022b0. * Revert "Revert "Puts back strictFunctionTypes flag"" This reverts commit 41cda05cc9baf07ea3551b2989d650c553606eb7. * Adds new line to end of file --- types/dojo/dojox.charting.d.ts | 163 +++++++++++++++++---------------- types/dojo/tsconfig.json | 3 +- 2 files changed, 84 insertions(+), 82 deletions(-) diff --git a/types/dojo/dojox.charting.d.ts b/types/dojo/dojox.charting.d.ts index 0f69eee3d4..d3336effd1 100644 --- a/types/dojo/dojox.charting.d.ts +++ b/types/dojo/dojox.charting.d.ts @@ -1,6 +1,7 @@ // Type definitions for Dojo v1.9 // Project: http://dojotoolkit.org // Definitions by: Michael Van Sickle +// Don Waldo // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped @@ -13132,326 +13133,326 @@ declare namespace dojox { } declare module "dojox/charting/Chart3D" { - var exp: dojox.charting.Chart3D + import exp = dojox.charting.Chart3D export=exp; } declare module "dojox/charting/Chart2D" { - var exp: dojox.charting.Chart2D + import exp = dojox.charting.Chart2D export=exp; } declare module "dojox/charting/DataSeries" { - var exp: dojox.charting.DataSeries + import exp = dojox.charting.DataSeries export=exp; } declare module "dojox/charting/Chart" { - var exp: dojox.charting.Chart + import exp = dojox.charting.Chart export=exp; } declare module "dojox/charting/DataChart" { - var exp: dojox.charting.DataChart + import exp = dojox.charting.DataChart export=exp; } declare module "dojox/charting/Element" { - var exp: dojox.charting.Element + import exp = dojox.charting.Element export=exp; } declare module "dojox/charting/Series" { - var exp: dojox.charting.Series + import exp = dojox.charting.Series export=exp; } declare module "dojox/charting/StoreSeries" { - var exp: dojox.charting.StoreSeries + import exp = dojox.charting.StoreSeries export=exp; } declare module "dojox/charting/SimpleTheme" { - var exp: dojox.charting.SimpleTheme + import exp = dojox.charting.SimpleTheme export=exp; } declare module "dojox/charting/SimpleTheme.defaultMarkers" { - var exp: dojox.charting.SimpleTheme.defaultMarkers + import exp = dojox.charting.SimpleTheme.defaultMarkers export=exp; } declare module "dojox/charting/SimpleTheme.defaultTheme" { - var exp: dojox.charting.SimpleTheme.defaultTheme + import exp = dojox.charting.SimpleTheme.defaultTheme export=exp; } declare module "dojox/charting/Theme" { - var exp: dojox.charting.Theme + import exp = dojox.charting.Theme export=exp; } declare module "dojox/charting/Theme.defaultMarkers" { - var exp: dojox.charting.Theme.defaultMarkers + import exp = dojox.charting.Theme.defaultMarkers export=exp; } declare module "dojox/charting/Theme.defaultTheme" { - var exp: dojox.charting.Theme.defaultTheme + import exp = dojox.charting.Theme.defaultTheme export=exp; } declare module "dojox/charting/action2d/Base" { - var exp: dojox.charting.action2d.Base + import exp = dojox.charting.action2d.Base export=exp; } declare module "dojox/charting/action2d/ChartAction" { - var exp: dojox.charting.action2d.ChartAction + import exp = dojox.charting.action2d.ChartAction export=exp; } declare module "dojox/charting/action2d/_IndicatorElement" { - var exp: dojox.charting.action2d._IndicatorElement + import exp = dojox.charting.action2d._IndicatorElement export=exp; } declare module "dojox/charting/action2d/Highlight" { - var exp: dojox.charting.action2d.Highlight + import exp = dojox.charting.action2d.Highlight export=exp; } declare module "dojox/charting/action2d/Magnify" { - var exp: dojox.charting.action2d.Magnify + import exp = dojox.charting.action2d.Magnify export=exp; } declare module "dojox/charting/action2d/MouseZoomAndPan" { - var exp: dojox.charting.action2d.MouseZoomAndPan + import exp = dojox.charting.action2d.MouseZoomAndPan export=exp; } declare module "dojox/charting/action2d/MouseIndicator" { - var exp: dojox.charting.action2d.MouseIndicator + import exp = dojox.charting.action2d.MouseIndicator export=exp; } declare module "dojox/charting/action2d/MoveSlice" { - var exp: dojox.charting.action2d.MoveSlice + import exp = dojox.charting.action2d.MoveSlice export=exp; } declare module "dojox/charting/action2d/PlotAction" { - var exp: dojox.charting.action2d.PlotAction + import exp = dojox.charting.action2d.PlotAction export=exp; } declare module "dojox/charting/action2d/Tooltip" { - var exp: dojox.charting.action2d.Tooltip + import exp = dojox.charting.action2d.Tooltip export=exp; } declare module "dojox/charting/action2d/Shake" { - var exp: dojox.charting.action2d.Shake + import exp = dojox.charting.action2d.Shake export=exp; } declare module "dojox/charting/action2d/TouchZoomAndPan" { - var exp: dojox.charting.action2d.TouchZoomAndPan + import exp = dojox.charting.action2d.TouchZoomAndPan export=exp; } declare module "dojox/charting/action2d/TouchIndicator" { - var exp: dojox.charting.action2d.TouchIndicator + import exp = dojox.charting.action2d.TouchIndicator export=exp; } declare module "dojox/charting/axis2d/common" { - var exp: dojox.charting.axis2d.common + import exp = dojox.charting.axis2d.common export=exp; } declare module "dojox/charting/axis2d/common.createText" { - var exp: dojox.charting.axis2d.common.createText + import exp = dojox.charting.axis2d.common.createText export=exp; } declare module "dojox/charting/axis2d/Base" { - var exp: dojox.charting.axis2d.Base + import exp = dojox.charting.axis2d.Base export=exp; } declare module "dojox/charting/axis2d/Invisible" { - var exp: dojox.charting.axis2d.Invisible + import exp = dojox.charting.axis2d.Invisible export=exp; } declare module "dojox/charting/axis2d/Default" { - var exp: dojox.charting.axis2d.Default + import exp = dojox.charting.axis2d.Default export=exp; } declare module "dojox/charting/bidi/_bidiutils" { - var exp: dojox.charting.bidi._bidiutils + import exp = dojox.charting.bidi._bidiutils export=exp; } declare module "dojox/charting/bidi/Chart" { - var exp: dojox.charting.bidi.Chart + import exp = dojox.charting.bidi.Chart export=exp; } declare module "dojox/charting/bidi/Chart3D" { - var exp: dojox.charting.bidi.Chart3D + import exp = dojox.charting.bidi.Chart3D export=exp; } declare module "dojox/charting/bidi/action2d/Tooltip" { - var exp: dojox.charting.bidi.action2d.Tooltip + import exp = dojox.charting.bidi.action2d.Tooltip export=exp; } declare module "dojox/charting/bidi/action2d/ZoomAndPan" { - var exp: dojox.charting.bidi.action2d.ZoomAndPan + import exp = dojox.charting.bidi.action2d.ZoomAndPan export=exp; } declare module "dojox/charting/bidi/axis2d/Default" { - var exp: dojox.charting.bidi.axis2d.Default + import exp = dojox.charting.bidi.axis2d.Default export=exp; } declare module "dojox/charting/bidi/widget/Chart" { - var exp: dojox.charting.bidi.widget.Chart + import exp = dojox.charting.bidi.widget.Chart export=exp; } declare module "dojox/charting/bidi/widget/Legend" { - var exp: dojox.charting.bidi.widget.Legend + import exp = dojox.charting.bidi.widget.Legend export=exp; } declare module "dojox/charting/plot2d/common" { - var exp: dojox.charting.plot2d.common + import exp = dojox.charting.plot2d.common export=exp; } declare module "dojox/charting/plot2d/common.defaultStats" { - var exp: dojox.charting.plot2d.common.defaultStats + import exp = dojox.charting.plot2d.common.defaultStats export=exp; } declare module "dojox/charting/plot2d/commonStacked" { - var exp: dojox.charting.plot2d.commonStacked + import exp = dojox.charting.plot2d.commonStacked export=exp; } declare module "dojox/charting/plot2d/_PlotEvents" { - var exp: dojox.charting.plot2d._PlotEvents + import exp = dojox.charting.plot2d._PlotEvents export=exp; } declare module "dojox/charting/plot2d/Areas" { - var exp: dojox.charting.plot2d.Areas + import exp = dojox.charting.plot2d.Areas export=exp; } declare module "dojox/charting/plot2d/Bars" { - var exp: dojox.charting.plot2d.Bars + import exp = dojox.charting.plot2d.Bars export=exp; } declare module "dojox/charting/plot2d/Base" { - var exp: dojox.charting.plot2d.Base + import exp = dojox.charting.plot2d.Base export=exp; } declare module "dojox/charting/plot2d/Bubble" { - var exp: dojox.charting.plot2d.Bubble + import exp = dojox.charting.plot2d.Bubble export=exp; } declare module "dojox/charting/plot2d/CartesianBase" { - var exp: dojox.charting.plot2d.CartesianBase + import exp = dojox.charting.plot2d.CartesianBase export=exp; } declare module "dojox/charting/plot2d/Candlesticks" { - var exp: dojox.charting.plot2d.Candlesticks + import exp = dojox.charting.plot2d.Candlesticks export=exp; } declare module "dojox/charting/plot2d/ClusteredBars" { - var exp: dojox.charting.plot2d.ClusteredBars + import exp = dojox.charting.plot2d.ClusteredBars export=exp; } declare module "dojox/charting/plot2d/ClusteredColumns" { - var exp: dojox.charting.plot2d.ClusteredColumns + import exp = dojox.charting.plot2d.ClusteredColumns export=exp; } declare module "dojox/charting/plot2d/Columns" { - var exp: dojox.charting.plot2d.Columns + import exp = dojox.charting.plot2d.Columns export=exp; } declare module "dojox/charting/plot2d/Grid" { - var exp: dojox.charting.plot2d.Grid + import exp = dojox.charting.plot2d.Grid export=exp; } declare module "dojox/charting/plot2d/Default" { - var exp: dojox.charting.plot2d.Default + import exp = dojox.charting.plot2d.Default export=exp; } declare module "dojox/charting/plot2d/Indicator" { - var exp: dojox.charting.plot2d.Indicator + import exp = dojox.charting.plot2d.Indicator export=exp; } declare module "dojox/charting/plot2d/Lines" { - var exp: dojox.charting.plot2d.Lines + import exp = dojox.charting.plot2d.Lines export=exp; } declare module "dojox/charting/plot2d/Markers" { - var exp: dojox.charting.plot2d.Markers + import exp = dojox.charting.plot2d.Markers export=exp; } declare module "dojox/charting/plot2d/Pie" { - var exp: dojox.charting.plot2d.Pie + import exp = dojox.charting.plot2d.Pie export=exp; } declare module "dojox/charting/plot2d/MarkersOnly" { - var exp: dojox.charting.plot2d.MarkersOnly + import exp = dojox.charting.plot2d.MarkersOnly export=exp; } declare module "dojox/charting/plot2d/OHLC" { - var exp: dojox.charting.plot2d.OHLC + import exp = dojox.charting.plot2d.OHLC export=exp; } declare module "dojox/charting/plot2d/Scatter" { - var exp: dojox.charting.plot2d.Scatter + import exp = dojox.charting.plot2d.Scatter export=exp; } declare module "dojox/charting/plot2d/Stacked" { - var exp: dojox.charting.plot2d.Stacked + import exp = dojox.charting.plot2d.Stacked export=exp; } declare module "dojox/charting/plot2d/Spider" { - var exp: dojox.charting.plot2d.Spider + import exp = dojox.charting.plot2d.Spider export=exp; } declare module "dojox/charting/plot2d/StackedAreas" { - var exp: dojox.charting.plot2d.StackedAreas + import exp = dojox.charting.plot2d.StackedAreas export=exp; } declare module "dojox/charting/plot2d/StackedBars" { - var exp: dojox.charting.plot2d.StackedBars + import exp = dojox.charting.plot2d.StackedBars export=exp; } declare module "dojox/charting/plot2d/StackedColumns" { - var exp: dojox.charting.plot2d.StackedColumns + import exp = dojox.charting.plot2d.StackedColumns export=exp; } declare module "dojox/charting/plot2d/StackedLines" { - var exp: dojox.charting.plot2d.StackedLines + import exp = dojox.charting.plot2d.StackedLines export=exp; } declare module "dojox/charting/plot3d/Bars" { - var exp: dojox.charting.plot3d.Bars + import exp = dojox.charting.plot3d.Bars export=exp; } declare module "dojox/charting/plot3d/Base" { - var exp: dojox.charting.plot3d.Base + import exp = dojox.charting.plot3d.Base export=exp; } declare module "dojox/charting/plot3d/Cylinders" { - var exp: dojox.charting.plot3d.Cylinders + import exp = dojox.charting.plot3d.Cylinders export=exp; } declare module "dojox/charting/scaler/common" { - var exp: dojox.charting.scaler.common + import exp = dojox.charting.scaler.common export=exp; } declare module "dojox/charting/scaler/primitive" { - var exp: dojox.charting.scaler.primitive + import exp = dojox.charting.scaler.primitive export=exp; } declare module "dojox/charting/scaler/linear" { - var exp: dojox.charting.scaler.linear + import exp = dojox.charting.scaler.linear export=exp; } declare module "dojox/charting/themes/common" { - var exp: dojox.charting.themes.common + import exp = dojox.charting.themes.common export=exp; } declare module "dojox/charting/themes/gradientGenerator" { - var exp: dojox.charting.themes.gradientGenerator + import exp = dojox.charting.themes.gradientGenerator export=exp; } declare module "dojox/charting/themes/PlotKit/base" { - var exp: dojox.charting.themes.PlotKit.base + import exp = dojox.charting.themes.PlotKit.base export=exp; } declare module "dojox/charting/widget/Chart2D" { - var exp: dojox.charting.widget.Chart2D + import exp = dojox.charting.widget.Chart2D export=exp; } declare module "dojox/charting/widget/Chart" { - var exp: dojox.charting.widget.Chart + import exp = dojox.charting.widget.Chart export=exp; } declare module "dojox/charting/widget/Legend" { - var exp: dojox.charting.widget.Legend + import exp = dojox.charting.widget.Legend export=exp; } declare module "dojox/charting/widget/SelectableLegend" { - var exp: dojox.charting.widget.SelectableLegend + import exp = dojox.charting.widget.SelectableLegend export=exp; } diff --git a/types/dojo/tsconfig.json b/types/dojo/tsconfig.json index 983ded2a9c..140f764554 100644 --- a/types/dojo/tsconfig.json +++ b/types/dojo/tsconfig.json @@ -83,4 +83,5 @@ "dojox.widget.d.ts", "dojox.xml.d.ts" ] -} \ No newline at end of file +} + From 9046b7c12aec2121ffe88fc7528ff440e471b434 Mon Sep 17 00:00:00 2001 From: Matt Rollins Date: Tue, 17 Oct 2017 13:57:44 -0600 Subject: [PATCH 141/506] local-dynamo types (#20655) --- types/local-dynamo/index.d.ts | 20 ++++++++++++++++++++ types/local-dynamo/local-dynamo-tests.ts | 18 ++++++++++++++++++ types/local-dynamo/tsconfig.json | 23 +++++++++++++++++++++++ types/local-dynamo/tslint.json | 1 + 4 files changed, 62 insertions(+) create mode 100644 types/local-dynamo/index.d.ts create mode 100644 types/local-dynamo/local-dynamo-tests.ts create mode 100644 types/local-dynamo/tsconfig.json create mode 100644 types/local-dynamo/tslint.json diff --git a/types/local-dynamo/index.d.ts b/types/local-dynamo/index.d.ts new file mode 100644 index 0000000000..3ceb1d35bf --- /dev/null +++ b/types/local-dynamo/index.d.ts @@ -0,0 +1,20 @@ +// Type definitions for local-dynamo 0.5 +// Project: https://github.com/Medium/local-dynamo +// Definitions by: Matt Rollins +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +/// + +import { ChildProcess } from 'child_process'; + +export interface Options { + port: number; + dir?: string; + heap?: string; + detached?: boolean; + stdio?: string; + cors?: string|string[]; + sharedDb?: boolean; +} + +export function launch(options?: Options|string, port?: number): ChildProcess; diff --git a/types/local-dynamo/local-dynamo-tests.ts b/types/local-dynamo/local-dynamo-tests.ts new file mode 100644 index 0000000000..18bc22187a --- /dev/null +++ b/types/local-dynamo/local-dynamo-tests.ts @@ -0,0 +1,18 @@ +import * as localDynamo from 'local-dynamo'; + +// From launch_test.js +localDynamo.launch({ + port: 8676, + heap: '512m', + stdio: 'pipe' +}); +localDynamo.launch({ + port: 8676, + sharedDb: true, + stdio: 'pipe' +}); +localDynamo.launch({ + port: 8676, + cors: 'medium.com', + stdio: 'pipe' +}); diff --git a/types/local-dynamo/tsconfig.json b/types/local-dynamo/tsconfig.json new file mode 100644 index 0000000000..fe3803ac8c --- /dev/null +++ b/types/local-dynamo/tsconfig.json @@ -0,0 +1,23 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es6" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictFunctionTypes": true, + "strictNullChecks": true, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "local-dynamo-tests.ts" + ] +} diff --git a/types/local-dynamo/tslint.json b/types/local-dynamo/tslint.json new file mode 100644 index 0000000000..3db14f85ea --- /dev/null +++ b/types/local-dynamo/tslint.json @@ -0,0 +1 @@ +{ "extends": "dtslint/dt.json" } From 05ac46f9a9307d43e082b7cec4b32f40df3a3b58 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martynas=20Kunig=C4=97lis?= Date: Tue, 17 Oct 2017 23:06:34 +0300 Subject: [PATCH 142/506] knex: allow calling .join() with a closure as the second argument (#20434) * Allow calling .join() with a closure as the second argument that takes the JoinClause as its first argument, not just a function w/o arguments with the JoinClause passed as this. * Call signature corrected per comment from @andy-ms, one of the tests updated accordingly. * Got rid of the this-only overload per comment from @andy-ms. --- types/knex/index.d.ts | 2 +- types/knex/knex-tests.ts | 33 +++++++++++++++++++++++++++++++++ 2 files changed, 34 insertions(+), 1 deletion(-) diff --git a/types/knex/index.d.ts b/types/knex/index.d.ts index 926e3b84db..3399c5aa52 100644 --- a/types/knex/index.d.ts +++ b/types/knex/index.d.ts @@ -179,7 +179,7 @@ declare namespace Knex { interface Join { (raw: Raw): QueryBuilder; - (tableName: TableName, clause: (this: JoinClause) => void): QueryBuilder; + (tableName: TableName, clause: (this: JoinClause, join: JoinClause) => void): QueryBuilder; (tableName: TableName, columns: { [key: string]: string | number | Raw }): QueryBuilder; (tableName: TableName, raw: Raw): QueryBuilder; (tableName: TableName, column1: string, column2: string): QueryBuilder; diff --git a/types/knex/knex-tests.ts b/types/knex/knex-tests.ts index c3d2981d9c..4c0ef8a209 100644 --- a/types/knex/knex-tests.ts +++ b/types/knex/knex-tests.ts @@ -228,6 +228,19 @@ knex.select('*').from('users').join('accounts', function() { this.on('accounts.id', '=', 'users.account_id').orOn('accounts.owner_id', '=', 'users.id') }); +knex.select('*').from('users').join('accounts', function(join: Knex.JoinClause) { + if (this !== join) { + throw new Error("join() callback call semantics wrong"); + } + this.on('accounts.id', '=', 'users.account_id').orOn('accounts.owner_id', '=', 'users.id'); + join.on('accounts.id', '=', 'users.account_id').orOn('accounts.owner_id', '=', 'users.id'); +}); + + +knex.select('*').from('users').join('accounts', (join: Knex.JoinClause) => { + join.on('accounts.id', '=', 'users.account_id').orOn('accounts.owner_id', '=', 'users.id') +}); + knex.select('*').from('users').join('accounts', 'accounts.type', knex.raw('?', ['admin'])); knex.raw('select * from users where id = :user_id', { user_id: 1 }); @@ -240,12 +253,20 @@ knex('users').innerJoin('accounts', function() { this.on('accounts.id', '=', 'users.account_id').orOn('accounts.owner_id', '=', 'users.id') }); +knex('users').innerJoin('accounts', (join: Knex.JoinClause) => { + join.on('accounts.id', '=', 'users.account_id').orOn('accounts.owner_id', '=', 'users.id'); +}); + knex.select('*').from('users').leftJoin('accounts', 'users.id', 'accounts.user_id'); knex.select('*').from('users').leftJoin('accounts', function() { this.on('accounts.id', '=', 'users.account_id').orOn('accounts.owner_id', '=', 'users.id') }); +knex.select('*').from('users').leftJoin('accounts', (join: Knex.JoinClause) => { + join.on('accounts.id', '=', 'users.account_id').orOn('accounts.owner_id', '=', 'users.id') +}); + knex.select('*').from('users').leftOuterJoin('accounts', 'users.id', 'accounts.user_id'); knex.select('*').from('users').leftOuterJoin('accounts', function() { @@ -258,6 +279,10 @@ knex.select('*').from('users').rightJoin('accounts', function() { this.on('accounts.id', '=', 'users.account_id').orOn('accounts.owner_id', '=', 'users.id') }); +knex.select('*').from('users').rightJoin('accounts', (join: Knex.JoinClause) => { + join.on('accounts.id', '=', 'users.account_id').orOn('accounts.owner_id', '=', 'users.id') +}); + knex.select('*').from('users').rightOuterJoin('accounts', 'users.id', 'accounts.user_id'); knex.select('*').from('users').rightOuterJoin('accounts', function() { @@ -270,12 +295,20 @@ knex.select('*').from('users').outerJoin('accounts', function() { this.on('accounts.id', '=', 'users.account_id').orOn('accounts.owner_id', '=', 'users.id') }); +knex.select('*').from('users').outerJoin('accounts', (join: Knex.JoinClause) => { + join.on('accounts.id', '=', 'users.account_id').orOn('accounts.owner_id', '=', 'users.id') +}); + knex.select('*').from('users').fullOuterJoin('accounts', 'users.id', 'accounts.user_id'); knex.select('*').from('users').fullOuterJoin('accounts', function() { this.on('accounts.id', '=', 'users.account_id').orOn('accounts.owner_id', '=', 'users.id') }); +knex.select('*').from('users').fullOuterJoin('accounts', (join: Knex.JoinClause) => { + join.on('accounts.id', '=', 'users.account_id').orOn('accounts.owner_id', '=', 'users.id') +}); + knex.select('*').from('users').crossJoin('accounts', 'users.id', 'accounts.user_id'); knex.select('*').from('accounts').joinRaw('natural full join table1').where('id', 1); From 95479db2fd29ddc5504b490151b51bf6bac26f95 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Eloy=20Dur=C3=A1n?= Date: Wed, 18 Oct 2017 00:15:58 +0200 Subject: [PATCH 143/506] [Relay] Simplify modules by removing namespaces. --- types/react-relay/classic.d.ts | 18 +- types/react-relay/compat.d.ts | 25 +- types/react-relay/index.d.ts | 165 +- types/react-relay/modern.d.ts | 146 -- types/react-relay/test/react-relay-tests.tsx | 7 +- types/react-relay/tsconfig.json | 1 - types/relay-runtime/index.d.ts | 2115 +++++++++--------- 7 files changed, 1216 insertions(+), 1261 deletions(-) delete mode 100644 types/react-relay/modern.d.ts diff --git a/types/react-relay/classic.d.ts b/types/react-relay/classic.d.ts index 9345199d27..0db5308975 100644 --- a/types/react-relay/classic.d.ts +++ b/types/react-relay/classic.d.ts @@ -1,5 +1,5 @@ import * as React from "react"; -import { RelayCommonTypes } from "relay-runtime"; +import * as RelayRuntimeTypes from "relay-runtime"; // ~~~~~~~~~~~~~~~~~~~~~ // Maybe Fix @@ -20,24 +20,24 @@ export interface FragmentResolver { dispose(): void; resolve( fragment: RelayQuery["Fragment"], - dataIDs: RelayCommonTypes.DataID | RelayCommonTypes.DataID[] + dataIDs: RelayRuntimeTypes.DataID | RelayRuntimeTypes.DataID[] ): StoreReaderData | StoreReaderData[] | undefined | null; } export interface RelayEnvironmentInterface { forceFetch( - querySet: RelayCommonTypes.RelayQuerySet, - onReadyStateChange: RelayCommonTypes.ReadyStateChangeCallback - ): RelayCommonTypes.Abortable; + querySet: RelayRuntimeTypes.RelayQuerySet, + onReadyStateChange: RelayRuntimeTypes.ReadyStateChangeCallback + ): RelayRuntimeTypes.Abortable; getFragmentResolver(fragment: RelayQuery["Fragment"], onNext: () => void): FragmentResolver; getStoreData(): RelayStoreData; primeCache( - querySet: RelayCommonTypes.RelayQuerySet, - onReadyStateChange: RelayCommonTypes.ReadyStateChangeCallback - ): RelayCommonTypes.Abortable; + querySet: RelayRuntimeTypes.RelayQuerySet, + onReadyStateChange: RelayRuntimeTypes.ReadyStateChangeCallback + ): RelayRuntimeTypes.Abortable; read( node: RelayQuery["Node"], - dataID: RelayCommonTypes.DataID, + dataID: RelayRuntimeTypes.DataID, options?: StoreReaderOptions ): StoreReaderData | void; readQuery(root: RelayQuery["Root"], options?: StoreReaderOptions): StoreReaderData[] | void; diff --git a/types/react-relay/compat.d.ts b/types/react-relay/compat.d.ts index 74f7f55a03..bbc69a3cc4 100644 --- a/types/react-relay/compat.d.ts +++ b/types/react-relay/compat.d.ts @@ -1,6 +1,15 @@ -import { RelayRuntimeTypes, RelayCommonTypes } from "relay-runtime"; +export { + QueryRenderer, + commitMutation, + createFragmentContainer, + createPaginationContainer, + createRefetchContainer, + fetchQuery, + graphql, +} from "react-relay"; + +import * as RelayRuntimeTypes from "relay-runtime"; import { RelayEnvironmentInterface } from "react-relay/classic"; -import {} from "react-relay/modern"; // ~~~~~~~~~~~~~~~~~~~~~ // Maybe Fix @@ -13,7 +22,7 @@ type ConcreteOperationDefinition = object; // ~~~~~~~~~~~~~~~~~~~~~ // Util // ~~~~~~~~~~~~~~~~~~~~~ -export function getFragment(q: string, v?: RelayCommonTypes.Variables): string; +export function getFragment(q: string, v?: RelayRuntimeTypes.Variables): string; export interface ComponentWithFragment extends React.ComponentClass { getFragment: typeof getFragment; } @@ -35,25 +44,25 @@ export type CompatEnvironment = RelayRuntimeTypes.Environment | RelayClassicEnvi export function commitUpdate( environment: CompatEnvironment, config: RelayRuntimeTypes.MutationConfig -): RelayCommonTypes.Disposable; +): RelayRuntimeTypes.Disposable; export function applyUpdate( environment: CompatEnvironment, config: RelayRuntimeTypes.OptimisticMutationConfig -): RelayCommonTypes.Disposable; +): RelayRuntimeTypes.Disposable; // ~~~~~~~~~~~~~~~~~~~~~ // RelayCompatContainer // ~~~~~~~~~~~~~~~~~~~~~ export interface GeneratedNodeMap { - [key: string]: RelayCommonTypes.GraphQLTaggedNode; + [key: string]: RelayRuntimeTypes.GraphQLTaggedNode; } export function createContainer( Component: ReactBaseComponent, - fragmentSpec: RelayCommonTypes.GraphQLTaggedNode | GeneratedNodeMap + fragmentSpec: RelayRuntimeTypes.GraphQLTaggedNode | GeneratedNodeMap ): ReactFragmentComponent; // ~~~~~~~~~~~~~~~~~~~~~ // injectDefaultVariablesProvider // ~~~~~~~~~~~~~~~~~~~~~ -export type VariablesProvider = () => RelayCommonTypes.Variables; +export type VariablesProvider = () => RelayRuntimeTypes.Variables; export function injectDefaultVariablesProvider(variablesProvider: VariablesProvider): void; diff --git a/types/react-relay/index.d.ts b/types/react-relay/index.d.ts index cdb38afae6..fa23ac4dd7 100644 --- a/types/react-relay/index.d.ts +++ b/types/react-relay/index.d.ts @@ -6,20 +6,157 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.4 -import { RelayRuntimeTypes } from "relay-runtime"; -import * as ReactRelayModernTypes from "react-relay/modern"; +export { + commitLocalUpdate, + commitRelayModernMutation as commitMutation, + fetchRelayModernQuery as fetchQuery, + requestRelaySubscription as requestSubscription, +} from "relay-runtime"; + +import * as React from "react"; +import * as RelayRuntimeTypes from "relay-runtime"; // ~~~~~~~~~~~~~~~~~~~~~ -// React-Relay Modern +// Maybe Fix // ~~~~~~~~~~~~~~~~~~~~~ -export import QueryRenderer = ReactRelayModernTypes.ReactRelayQueryRenderer; -export import createFragmentContainer = ReactRelayModernTypes.createFragmentContainer; -export import createPaginationContainer = ReactRelayModernTypes.createPaginationContainer; -export import createRefetchContainer = ReactRelayModernTypes.createRefetchContainer; -export import graphql = ReactRelayModernTypes.graphql; -export import commitLocalUpdate = RelayRuntimeTypes.commitLocalUpdate; -export import commitMutation = RelayRuntimeTypes.commitRelayModernMutation; -export import fetchQuery = RelayRuntimeTypes.fetchRelayModernQuery; -export import requestSubscription = RelayRuntimeTypes.requestRelaySubscription; -// exported for convenience -export import ModernTypes = ReactRelayModernTypes; +type ConcreteFragment = any; +type ConcreteBatch = any; +type ConcreteFragmentDefinition = object; +type ConcreteOperationDefinition = object; +type ReactBaseComponent = React.ComponentClass | React.StatelessComponent; + +// ~~~~~~~~~~~~~~~~~~~~~ +// RelayProp +// ~~~~~~~~~~~~~~~~~~~~~ +// note: refetch and pagination containers augment this +export interface RelayProp { + environment: RelayRuntimeTypes.Environment; +} + +// ~~~~~~~~~~~~~~~~~~~~~ +// RelayQL +// ~~~~~~~~~~~~~~~~~~~~~ +export function RelayQL(strings: string[], ...substitutions: any[]): RelayRuntimeTypes.RelayConcreteNode; + +// ~~~~~~~~~~~~~~~~~~~~~ +// RelayModernGraphQLTag +// ~~~~~~~~~~~~~~~~~~~~~ +export interface GeneratedNodeMap { + [key: string]: GraphQLTaggedNode; +} +export type GraphQLTaggedNode = + | (() => ConcreteFragment | ConcreteBatch) + | { + modern(): ConcreteFragment | ConcreteBatch; + classic(relayQL: typeof RelayQL): ConcreteFragmentDefinition | ConcreteOperationDefinition; + }; +/** + * Runtime function to correspond to the `graphql` tagged template function. + * All calls to this function should be transformed by the plugin. + */ +export interface GraphqlInterface { + (strings: string[] | TemplateStringsArray): GraphQLTaggedNode; + experimental(strings: string[] | TemplateStringsArray): GraphQLTaggedNode; +} +export const graphql: GraphqlInterface; + +// ~~~~~~~~~~~~~~~~~~~~~ +// ReactRelayQueryRenderer +// ~~~~~~~~~~~~~~~~~~~~~ +export interface QueryRendererProps { + cacheConfig?: RelayRuntimeTypes.CacheConfig; + environment: RelayRuntimeTypes.Environment; + query: GraphQLTaggedNode; + render(readyState: ReadyState): React.ReactElement | undefined | null; + variables: RelayRuntimeTypes.Variables; + rerunParamExperimental?: RelayRuntimeTypes.RerunParam; +} +export interface ReadyState { + error: Error | undefined | null; + props: { [propName: string]: any } | undefined | null; + retry?(): void; +} +export interface QueryRendererState { + readyState: ReadyState; +} +export class ReactRelayQueryRenderer extends React.Component {} +export class QueryRenderer extends ReactRelayQueryRenderer {} + +// ~~~~~~~~~~~~~~~~~~~~~ +// createFragmentContainer +// ~~~~~~~~~~~~~~~~~~~~~ +export function createFragmentContainer( + Component: ReactBaseComponent, + fragmentSpec: GraphQLTaggedNode | GeneratedNodeMap +): ReactBaseComponent; + +// ~~~~~~~~~~~~~~~~~~~~~ +// createPaginationContainer +// ~~~~~~~~~~~~~~~~~~~~~ +export interface PageInfo { + endCursor: string | undefined | null; + hasNextPage: boolean; + hasPreviousPage: boolean; + startCursor: string | undefined | null; +} +export interface ConnectionData { + edges?: any[]; + pageInfo?: PageInfo; +} +export type RelayPaginationProp = RelayProp & { + hasMore(): boolean; + isLoading(): boolean; + loadMore( + pageSize: number, + callback: (error?: Error) => void, + options?: RefetchOptions + ): RelayRuntimeTypes.Disposable | undefined | null; + refetchConnection( + totalCount: number, + callback: (error?: Error) => void, + refetchVariables?: RelayRuntimeTypes.Variables + ): RelayRuntimeTypes.Disposable | undefined | null; +}; +export function FragmentVariablesGetter( + prevVars: RelayRuntimeTypes.Variables, + totalCount: number +): RelayRuntimeTypes.Variables; +export interface ConnectionConfig { + direction?: "backward" | "forward"; + getConnectionFromProps?(props: T): ConnectionData | undefined | null; + getFragmentVariables?: typeof FragmentVariablesGetter; + getVariables( + props: { [propName: string]: any }, + paginationInfo: { count: number; cursor?: string }, + fragmentVariables: RelayRuntimeTypes.Variables + ): RelayRuntimeTypes.Variables; + query: GraphQLTaggedNode; +} +export function createPaginationContainer( + Component: ReactBaseComponent, + fragmentSpec: GraphQLTaggedNode | GeneratedNodeMap, + connectionConfig: ConnectionConfig +): ReactBaseComponent; + +// ~~~~~~~~~~~~~~~~~~~~~ +// createFragmentContainer +// ~~~~~~~~~~~~~~~~~~~~~ +export interface RefetchOptions { + force?: boolean; + rerunParamExperimental?: RelayRuntimeTypes.RerunParam; +} +export type RelayRefetchProp = RelayProp & { + refetch( + refetchVariables: + | RelayRuntimeTypes.Variables + | ((fragmentVariables: RelayRuntimeTypes.Variables) => RelayRuntimeTypes.Variables), + renderVariables?: RelayRuntimeTypes.Variables, + callback?: (error?: Error) => void, + options?: RefetchOptions + ): RelayRuntimeTypes.Disposable; +}; +export function createRefetchContainer( + Component: ReactBaseComponent, + fragmentSpec: GraphQLTaggedNode | GeneratedNodeMap, + taggedNode: GraphQLTaggedNode +): ReactBaseComponent; diff --git a/types/react-relay/modern.d.ts b/types/react-relay/modern.d.ts deleted file mode 100644 index d4c422b823..0000000000 --- a/types/react-relay/modern.d.ts +++ /dev/null @@ -1,146 +0,0 @@ -import * as React from "react"; -import { RelayCommonTypes, RelayRuntimeTypes } from "relay-runtime"; - -// ~~~~~~~~~~~~~~~~~~~~~ -// Maybe Fix -// ~~~~~~~~~~~~~~~~~~~~~ -type ConcreteFragment = any; -type ConcreteBatch = any; -type ConcreteFragmentDefinition = object; -type ConcreteOperationDefinition = object; -type ReactBaseComponent = React.ComponentClass | React.StatelessComponent; - -// ~~~~~~~~~~~~~~~~~~~~~ -// RelayProp -// ~~~~~~~~~~~~~~~~~~~~~ -// note: refetch and pagination containers augment this -export interface RelayProp { - environment: RelayRuntimeTypes.Environment; -} - -// ~~~~~~~~~~~~~~~~~~~~~ -// RelayQL -// ~~~~~~~~~~~~~~~~~~~~~ -export function RelayQL(strings: string[], ...substitutions: any[]): RelayCommonTypes.RelayConcreteNode; - -// ~~~~~~~~~~~~~~~~~~~~~ -// RelayModernGraphQLTag -// ~~~~~~~~~~~~~~~~~~~~~ -export interface GeneratedNodeMap { - [key: string]: GraphQLTaggedNode; -} -export type GraphQLTaggedNode = - | (() => ConcreteFragment | ConcreteBatch) - | { - modern(): ConcreteFragment | ConcreteBatch; - classic(relayQL: typeof RelayQL): ConcreteFragmentDefinition | ConcreteOperationDefinition; - }; -/** - * Runtime function to correspond to the `graphql` tagged template function. - * All calls to this function should be transformed by the plugin. - */ -export interface GraphqlInterface { - (strings: string[] | TemplateStringsArray): GraphQLTaggedNode; - experimental(strings: string[] | TemplateStringsArray): GraphQLTaggedNode; -} -export const graphql: GraphqlInterface; - -// ~~~~~~~~~~~~~~~~~~~~~ -// ReactRelayQueryRenderer -// ~~~~~~~~~~~~~~~~~~~~~ -export interface QueryRendererProps { - cacheConfig?: RelayCommonTypes.CacheConfig; - environment: RelayRuntimeTypes.Environment; - query: GraphQLTaggedNode; - render(readyState: ReadyState): React.ReactElement | undefined | null; - variables: RelayCommonTypes.Variables; - rerunParamExperimental?: RelayCommonTypes.RerunParam; -} -export interface ReadyState { - error: Error | undefined | null; - props: { [propName: string]: any } | undefined | null; - retry?(): void; -} -export interface QueryRendererState { - readyState: ReadyState; -} -export class ReactRelayQueryRenderer extends React.Component {} - -// ~~~~~~~~~~~~~~~~~~~~~ -// createFragmentContainer -// ~~~~~~~~~~~~~~~~~~~~~ -export function createFragmentContainer( - Component: ReactBaseComponent, - fragmentSpec: GraphQLTaggedNode | GeneratedNodeMap -): ReactBaseComponent; - -// ~~~~~~~~~~~~~~~~~~~~~ -// createPaginationContainer -// ~~~~~~~~~~~~~~~~~~~~~ -export interface PageInfo { - endCursor: string | undefined | null; - hasNextPage: boolean; - hasPreviousPage: boolean; - startCursor: string | undefined | null; -} -export interface ConnectionData { - edges?: any[]; - pageInfo?: PageInfo; -} -export type RelayPaginationProp = RelayProp & { - hasMore(): boolean; - isLoading(): boolean; - loadMore( - pageSize: number, - callback: (error?: Error) => void, - options?: RefetchOptions - ): RelayCommonTypes.Disposable | undefined | null; - refetchConnection( - totalCount: number, - callback: (error?: Error) => void, - refetchVariables?: RelayCommonTypes.Variables - ): RelayCommonTypes.Disposable | undefined | null; -}; -export function FragmentVariablesGetter( - prevVars: RelayCommonTypes.Variables, - totalCount: number -): RelayCommonTypes.Variables; -export interface ConnectionConfig { - direction?: "backward" | "forward"; - getConnectionFromProps?(props: T): ConnectionData | undefined | null; - getFragmentVariables?: typeof FragmentVariablesGetter; - getVariables( - props: { [propName: string]: any }, - paginationInfo: { count: number; cursor?: string }, - fragmentVariables: RelayCommonTypes.Variables - ): RelayCommonTypes.Variables; - query: GraphQLTaggedNode; -} -export function createPaginationContainer( - Component: ReactBaseComponent, - fragmentSpec: GraphQLTaggedNode | GeneratedNodeMap, - connectionConfig: ConnectionConfig -): ReactBaseComponent; - -// ~~~~~~~~~~~~~~~~~~~~~ -// createFragmentContainer -// ~~~~~~~~~~~~~~~~~~~~~ -export interface RefetchOptions { - force?: boolean; - rerunParamExperimental?: RelayCommonTypes.RerunParam; -} -export type RelayRefetchProp = RelayProp & { - refetch( - refetchVariables: - | RelayCommonTypes.Variables - | ((fragmentVariables: RelayCommonTypes.Variables) => RelayCommonTypes.Variables), - renderVariables?: RelayCommonTypes.Variables, - callback?: (error?: Error) => void, - options?: RefetchOptions - ): RelayCommonTypes.Disposable; -}; -export function createRefetchContainer( - Component: ReactBaseComponent, - fragmentSpec: GraphQLTaggedNode | GeneratedNodeMap, - taggedNode: GraphQLTaggedNode -): ReactBaseComponent; diff --git a/types/react-relay/test/react-relay-tests.tsx b/types/react-relay/test/react-relay-tests.tsx index 80380122f7..6caf997dba 100644 --- a/types/react-relay/test/react-relay-tests.tsx +++ b/types/react-relay/test/react-relay-tests.tsx @@ -12,7 +12,8 @@ import { createRefetchContainer, requestSubscription, QueryRenderer, - ModernTypes, + RelayRefetchProp, + RelayPaginationProp } from "react-relay"; // ~~~~~~~~~~~~~~~~~~~~~ @@ -79,7 +80,7 @@ interface StoryInterface { id: string; } interface FeedStoriesProps { - relay: ModernTypes.RelayRefetchProp; + relay: RelayRefetchProp; feed: { stories: { edges: Array<{ node: StoryInterface }> }; }; @@ -134,7 +135,7 @@ const FeedRefetchContainer = createRefetchContainer( // ~~~~~~~~~~~~~~~~~~~~~ interface FeedProps { user: { feed: { edges: Array<{ node: StoryInterface }> } }; - relay: ModernTypes.RelayPaginationProp; + relay: RelayPaginationProp; } class Feed extends React.Component { render() { diff --git a/types/react-relay/tsconfig.json b/types/react-relay/tsconfig.json index 2b992f91c8..ef2af0375f 100644 --- a/types/react-relay/tsconfig.json +++ b/types/react-relay/tsconfig.json @@ -20,7 +20,6 @@ "files": [ "index.d.ts", "classic.d.ts", - "modern.d.ts", "compat.d.ts", "test/react-relay-tests.tsx", "test/react-relay-classic-tests.tsx" diff --git a/types/relay-runtime/index.d.ts b/types/relay-runtime/index.d.ts index 69f5088ab4..bbc3e07a7a 100644 --- a/types/relay-runtime/index.d.ts +++ b/types/relay-runtime/index.d.ts @@ -5,1092 +5,1047 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.4 -// note: namespace is used so react-relay can access and inter-op -export namespace RelayCommonTypes { - /** - * SOURCE: - * Relay 1.3.0 - * https://github.com/facebook/relay/blob/b85a1d69bb72be4ace67179f55c2a54a8d761c8b/packages/react-relay/classic/environment/RelayCombinedEnvironmentTypes.js - */ - // ~~~~~~~~~~~~~~~~~~~~~ - // Maybe Fix - // ~~~~~~~~~~~~~~~~~~~~~ - type RelayConcreteNode = any; - type RelayMutationTransaction = any; - type RelayMutationRequest = any; - type RelayQueryRequest = any; - type ConcreteFragment = any; - type ConcreteBatch = any; - type ConcreteFragmentDefinition = object; - type ConcreteOperationDefinition = object; +/** + * SOURCE: + * Relay 1.3.0 + * https://github.com/facebook/relay/blob/b85a1d69bb72be4ace67179f55c2a54a8d761c8b/packages/react-relay/classic/environment/RelayCombinedEnvironmentTypes.js + */ +// ~~~~~~~~~~~~~~~~~~~~~ +// Maybe Fix +// ~~~~~~~~~~~~~~~~~~~~~ +type RelayConcreteNode = any; +type RelayMutationTransaction = any; +type RelayMutationRequest = any; +type RelayQueryRequest = any; +type ConcreteFragment = any; +type ConcreteBatch = any; +type ConcreteFragmentDefinition = object; +type ConcreteOperationDefinition = object; - /** - * FIXME: RelayContainer used to be typed with ReactClass, but - * ReactClass is broken and allows for access to any property. For example - * ReactClass.getFragment('foo') is valid even though ReactClass has no - * such getFragment() type definition. When ReactClass is fixed this causes a - * lot of errors in Relay code since methods like getFragment() are used often - * but have no definition in Relay's types. Suppressing for now. - */ - type RelayContainer = any; +/** + * FIXME: RelayContainer used to be typed with ReactClass, but + * ReactClass is broken and allows for access to any property. For example + * ReactClass.getFragment('foo') is valid even though ReactClass has no + * such getFragment() type definition. When ReactClass is fixed this causes a + * lot of errors in Relay code since methods like getFragment() are used often + * but have no definition in Relay's types. Suppressing for now. + */ +type RelayContainer = any; - // ~~~~~~~~~~~~~~~~~~~~~ - // RelayQL - // ~~~~~~~~~~~~~~~~~~~~~ - type RelayQL = (strings: string[], ...substitutions: any[]) => RelayConcreteNode; +// ~~~~~~~~~~~~~~~~~~~~~ +// RelayQL +// ~~~~~~~~~~~~~~~~~~~~~ +type RelayQL = (strings: string[], ...substitutions: any[]) => RelayConcreteNode; - // ~~~~~~~~~~~~~~~~~~~~~ - // RelayModernGraphQLTag - // ~~~~~~~~~~~~~~~~~~~~~ - interface GeneratedNodeMap { - [key: string]: GraphQLTaggedNode; - } - type GraphQLTaggedNode = - | (() => ConcreteFragment | ConcreteBatch) - | { - modern(): ConcreteFragment | ConcreteBatch; - classic(relayQL: RelayQL): ConcreteFragmentDefinition | ConcreteOperationDefinition; - }; - // ~~~~~~~~~~~~~~~~~~~~~ - // General Usage - // ~~~~~~~~~~~~~~~~~~~~~ - type DataID = string; - interface Variables { - [name: string]: any; - } - type Uploadable = File | Blob; - interface UploadableMap { - [key: string]: Uploadable; - } - - // ~~~~~~~~~~~~~~~~~~~~~ - // RelayNetworkTypes - // Version: Relay 1.3.0 - // File: https://github.com/facebook/relay/blob/master/packages/relay-runtime/network/RelayNetworkTypes.js - // ~~~~~~~~~~~~~~~~~~~~~ - - interface LegacyObserver { - onCompleted?(): void; - onError?(error: Error): void; - onNext?(data: T): void; - } - interface PayloadError { - message: string; - locations?: Array<{ - line: number; - column: number; - }>; - } - /** - * A function that executes a GraphQL operation with request/response semantics. - * - * May return an Observable or Promise of a raw server response. - */ - function FetchFunction( - operation: ConcreteBatch, - variables: Variables, - cacheConfig: CacheConfig, - uploadables?: UploadableMap - ): RelayRuntimeTypes.ObservableFromValue; - - /** - * A function that executes a GraphQL subscription operation, returning one or - * more raw server responses over time. - * - * May return an Observable, otherwise must call the callbacks found in the - * fourth parameter. - */ - type SubscribeFunction = ( - operation: ConcreteBatch, - variables: Variables, - cacheConfig: CacheConfig, - observer: LegacyObserver - ) => RelayRuntimeTypes.RelayObservable | Disposable; - - // ~~~~~~~~~~~~~~~~~~~~~ - // RelayStoreTypes - // Version: Relay 1.3.0 - // File: https://github.com/facebook/relay/blob/master/packages/relay-runtime/store/RelayStoreTypes.js - // ~~~~~~~~~~~~~~~~~~~~~ - /** - * A function that receives a proxy over the store and may trigger side-effects - * (indirectly) by calling `set*` methods on the store or its record proxies. - */ - type StoreUpdater = (store: RecordSourceProxy) => void; - - /** - * Similar to StoreUpdater, but accepts a proxy tied to a specific selector in - * order to easily access the root fields of a query/mutation as well as a - * second argument of the response object of the mutation. - */ - type SelectorStoreUpdater = ( - store: RecordSourceSelectorProxy, - // Actually RelayCombinedEnvironmentTypes#SelectorData, but mixed is - // inconvenient to access deeply in product code. - data: any // FLOW FIXME - ) => void; - - /** - * Extends the RecordSourceProxy interface with methods for accessing the root - * fields of a Selector. - */ - interface RecordSourceSelectorProxy { - create(dataID: DataID, typeName: string): RecordProxy; - delete(dataID: DataID): void; - get(dataID: DataID): RecordProxy | null; - getRoot(): RecordProxy; - getRootField(fieldName: string): RecordProxy | null; - getPluralRootField(fieldName: string): RecordProxy[] | null; - } - - interface RecordProxy { - copyFieldsFrom(source: RecordProxy): void; - getDataID(): DataID; - getLinkedRecord(name: string, args?: Variables): RecordProxy | null; - getLinkedRecords(name: string, args?: Variables): Array | null; - getOrCreateLinkedRecord(name: string, typeName: string, args?: Variables): RecordProxy; - getType(): string; - getValue(name: string, args?: Variables): any; - setLinkedRecord(record: RecordProxy, name: string, args?: Variables): RecordProxy; - setLinkedRecords( - records: Array | undefined | null, - name: string, - args?: Variables - ): RecordProxy; - setValue(value: any, name: string, args?: Variables): RecordProxy; - } - - interface RecordSourceProxy { - create(dataID: DataID, typeName: string): RecordProxy; - delete(dataID: DataID): void; - get(dataID: DataID): Array | null; - getRoot(): RecordProxy; - } - - interface HandleFieldPayload { - // The arguments that were fetched. - args: Variables; - // The __id of the record containing the source/handle field. - dataID: DataID; - // The (storage) key at which the original server data was written. - fieldKey: string; - // The name of the handle - handle: string; - // The (storage) key at which the handle's data should be written by the - // handler - handleKey: string; - } - interface HandlerInterface { - update(store: RecordSourceProxy, fieldPayload: HandleFieldPayload): void; - [functionName: string]: (...args: any[]) => any; - } - const Handler: HandlerInterface; - - // ~~~~~~~~~~~~~~~~~~~~~ - // RelayCombinedEnvironmentTypes - // Version: Relay 1.3.0 - // File: https://github.com/facebook/relay/blob/b85a1d69bb72be4ace67179f55c2a54a8d761c8b/packages/react-relay/classic/environment/RelayCombinedEnvironmentTypes.js - // ~~~~~~~~~~~~~~~~~~~~~ - /** - * Settings for how a query response may be cached. - * - * - `force`: causes a query to be issued unconditionally, irrespective of the - * state of any configured response cache. - * - `poll`: causes a query to live update by polling at the specified interval - * in milliseconds. (This value will be passed to setTimeout.) - */ - interface CacheConfig { - force?: boolean; - poll?: number; - } - - /** - * Represents any resource that must be explicitly disposed of. The most common - * use-case is as a return value for subscriptions, where calling `dispose()` - * would cancel the subscription. - */ - interface Disposable { - dispose(): void; - } - - /** - * Arbitrary data e.g. received by a container as props. - */ - interface Props { - [key: string]: any; - } - - /* - * An individual cached graph object. - */ - interface Record { - [key: string]: any; - } - - /** - * A collection of records keyed by id. - */ - interface RecordMap { - [dataID: string]: Record | null | undefined; - } - - /** - * A selector defines the starting point for a traversal into the graph for the - * purposes of targeting a subgraph. - */ - interface CSelector { - dataID: DataID; - node: TNode; - variables: Variables; - } - - /** - * A representation of a selector and its results at a particular point in time. - */ - type CSnapshot = CSelector & { - data: SelectorData | null | undefined; - seenRecords: RecordMap; - }; - - /** - * The results of a selector given a store/RecordSource. - */ - interface SelectorData { - [key: string]: any; - } - - /** - * The results of reading the results of a FragmentMap given some input - * `Props`. - */ - interface FragmentSpecResults { - [key: string]: any; - } - - /** - * A utility for resolving and subscribing to the results of a fragment spec - * (key -> fragment mapping) given some "props" that determine the root ID - * and variables to use when reading each fragment. When props are changed via - * `setProps()`, the resolver will update its results and subscriptions - * accordingly. Internally, the resolver: - * - Converts the fragment map & props map into a map of `Selector`s. - * - Removes any resolvers for any props that became null. - * - Creates resolvers for any props that became non-null. - * - Updates resolvers with the latest props. - */ - interface FragmentSpecResolver { - /** - * Stop watching for changes to the results of the fragments. - */ - dispose(): void; - - /** - * Get the current results. - */ - resolve(): FragmentSpecResults; - - /** - * Update the resolver with new inputs. Call `resolve()` to get the updated - * results. - */ - setProps(props: Props): void; - - /** - * Override the variables used to read the results of the fragments. Call - * `resolve()` to get the updated results. - */ - setVariables(variables: Variables): void; - } - - interface CFragmentMap { - [key: string]: TFragment; - } - - /** - * An operation selector describes a specific instance of a GraphQL operation - * with variables applied. - * - * - `root`: a selector intended for processing server results or retaining - * response data in the store. - * - `fragment`: a selector intended for use in reading or subscribing to - * the results of the the operation. - */ - interface COperationSelector { - fragment: CSelector; - node: TOperation; - root: CSelector; - variables: Variables; - } - - /** - * The public API of Relay core. Represents an encapsulated environment with its - * own in-memory cache. - */ - interface CEnvironment { - /** - * Read the results of a selector from in-memory records in the store. - */ - lookup(selector: CSelector): CSnapshot; - - /** - * Subscribe to changes to the results of a selector. The callback is called - * when data has been committed to the store that would cause the results of - * the snapshot's selector to change. - */ - subscribe(snapshot: CSnapshot, callback: (snapshot: CSnapshot) => void): Disposable; - - /** - * Ensure that all the records necessary to fulfill the given selector are - * retained in-memory. The records will not be eligible for garbage collection - * until the returned reference is disposed. - * - * Note: This is a no-op in the classic core. - */ - retain(selector: CSelector): Disposable; - - /** - * Send a query to the server with request/response semantics: the query will - * either complete successfully (calling `onNext` and `onCompleted`) or fail - * (calling `onError`). - * - * Note: Most applications should use `streamQuery` in order to - * optionally receive updated information over time, should that feature be - * supported by the network/server. A good rule of thumb is to use this method - * if you would otherwise immediately dispose the `streamQuery()` - * after receving the first `onNext` result. - */ - sendQuery(config: { - cacheConfig?: CacheConfig; - onCompleted?(): void; - onError?(error: Error): void; - onNext?(payload: TPayload): void; - operation: COperationSelector; - }): Disposable; - - /** - * Send a query to the server with request/subscription semantics: one or more - * responses may be returned (via `onNext`) over time followed by either - * the request completing (`onCompleted`) or an error (`onError`). - * - * Networks/servers that support subscriptions may choose to hold the - * subscription open indefinitely such that `onCompleted` is not called. - */ - streamQuery(config: { - cacheConfig?: CacheConfig; - onCompleted?(): void; - onError?(error: Error): void; - onNext?(payload: TPayload): void; - operation: COperationSelector; - }): Disposable; - - unstable_internal: CUnstableEnvironmentCore; - } - - interface CUnstableEnvironmentCore { - /** - * Create an instance of a FragmentSpecResolver. - * - * TODO: The FragmentSpecResolver *can* be implemented via the other methods - * defined here, so this could be moved out of core. It's convenient to have - * separate implementations until the experimental core is in OSS. - */ - createFragmentSpecResolver( - context: CRelayContext, - containerName: string, - fragments: CFragmentMap, - props: Props, - callback: () => void - ): FragmentSpecResolver; - - /** - * Creates an instance of an OperationSelector given an operation definition - * (see `getOperation`) and the variables to apply. The input variables are - * filtered to exclude variables that do not matche defined arguments on the - * operation, and default values are populated for null values. - */ - createOperationSelector(operation: TOperation, variables: Variables): COperationSelector; - - /** - * Given a graphql`...` tagged template, extract a fragment definition usable - * by this version of Relay core. Throws if the value is not a fragment. - */ - getFragment(node: TGraphQLTaggedNode): TFragment; - - /** - * Given a graphql`...` tagged template, extract an operation definition - * usable by this version of Relay core. Throws if the value is not an - * operation. - */ - getOperation(node: TGraphQLTaggedNode): TOperation; - - /** - * Determine if two selectors are equal (represent the same selection). Note - * that this function returns `false` when the two queries/fragments are - * different objects, even if they select the same fields. - */ - areEqualSelectors(a: CSelector, b: CSelector): boolean; - - /** - * Given the result `item` from a parent that fetched `fragment`, creates a - * selector that can be used to read the results of that fragment for that item. - * - * Example: - * - * Given two fragments as follows: - * - * ``` - * fragment Parent on User { - * id - * ...Child - * } - * fragment Child on User { - * name - * } - * ``` - * - * And given some object `parent` that is the results of `Parent` for id "4", - * the results of `Child` can be accessed by first getting a selector and then - * using that selector to `lookup()` the results against the environment: - * - * ``` - * const childSelector = getSelector(queryVariables, Child, parent); - * const childData = environment.lookup(childSelector).data; - * ``` - */ - getSelector(operationVariables: Variables, fragment: TFragment, prop: any): CSelector | null; - - /** - * Given the result `items` from a parent that fetched `fragment`, creates a - * selector that can be used to read the results of that fragment on those - * items. This is similar to `getSelector` but for "plural" fragments that - * expect an array of results and therefore return an array of selectors. - */ - getSelectorList( - operationVariables: Variables, - fragment: TFragment, - props: any[] - ): Array> | null; - - /** - * Given a mapping of keys -> results and a mapping of keys -> fragments, - * extracts the selectors for those fragments from the results. - * - * The canonical use-case for this function are Relay Containers, which - * use this function to convert (props, fragments) into selectors so that they - * can read the results to pass to the inner component. - */ - getSelectorsFromObject( - operationVariables: Variables, - fragments: CFragmentMap, - props: Props - ): { [key: string]: CSelector | Array> | null | undefined }; - - /** - * Given a mapping of keys -> results and a mapping of keys -> fragments, - * extracts a mapping of keys -> id(s) of the results. - * - * Similar to `getSelectorsFromObject()`, this function can be useful in - * determining the "identity" of the props passed to a component. - */ - getDataIDsFromObject( - fragments: CFragmentMap, - props: Props - ): { [key: string]: DataID | DataID[] | null | undefined }; - - /** - * Given a mapping of keys -> results and a mapping of keys -> fragments, - * extracts the merged variables that would be in scope for those - * fragments/results. - * - * This can be useful in determing what varaibles were used to fetch the data - * for a Relay container, for example. - */ - getVariablesFromObject( - operationVariables: Variables, - fragments: CFragmentMap, - props: Props - ): Variables; - } - - /** - * The type of the `relay` property set on React context by the React/Relay - * integration layer (e.g. QueryRenderer, FragmentContainer, etc). - */ - interface CRelayContext { - environment: TEnvironment; - variables: Variables; - } - - // ~~~~~~~~~~~~~~~~~~~~~ - // RelayTypes - /** - * Version: Relay 1.3.0 - * File: - * https://github.com/facebook/relay/blob/fa9f48ea209ee2402d433b59a84d1cbc046574e2/packages/react-relay/classic/tools/RelayTypes.js - */ - // ~~~~~~~~~~~~~~~~~~~~~ - interface RerunParam { - param: string; - import: string; - max_runs: number; - } - interface FIELDS_CHANGE { - type: "FIELDS_CHANGE"; - fieldIDs: { [fieldName: string]: DataID | DataID[] }; - } - interface RANGE_ADD { - type: "RANGE_ADD"; - parentName?: string; - parentID?: string; - connectionInfo?: Array<{ - key: string; - filters?: Variables; - rangeBehavior: string; - }>; - connectionName?: string; - edgeName: string; - rangeBehaviors?: RangeBehaviors; - } - interface NODE_DELETE { - type: "NODE_DELETE"; - parentName?: string; - parentID?: string; - connectionName?: string; - deletedIDFieldName: string; - } - interface RANGE_DELETE { - type: "RANGE_DELETE"; - parentName?: string; - parentID?: string; - connectionKeys?: Array<{ - key: string; - filters?: Variables; - }>; - connectionName?: string; - deletedIDFieldName: string | string[]; - pathToConnection: string[]; - } - interface REQUIRED_CHILDREN { - type: "REQUIRED_CHILDREN"; - children: RelayConcreteNode[]; - } - type RelayMutationConfig = FIELDS_CHANGE | RANGE_ADD | NODE_DELETE | RANGE_DELETE | REQUIRED_CHILDREN; - - interface RelayMutationTransactionCommitCallbacks { - onFailure?: RelayMutationTransactionCommitFailureCallback; - onSuccess?: RelayMutationTransactionCommitSuccessCallback; - } - type RelayMutationTransactionCommitFailureCallback = ( - transaction: RelayMutationTransaction, - preventAutoRollback: () => void - ) => void; - type RelayMutationTransactionCommitSuccessCallback = ( - response: { - [key: string]: any; - } - ) => void; - interface NetworkLayer { - sendMutation(request: RelayMutationRequest): Promise | null; - sendQueries(requests: RelayQueryRequest[]): Promise | null; - supports(...options: string[]): boolean; - } - interface QueryResult { - error?: Error; - ref_params?: { [name: string]: any }; - response: QueryPayload; - } - interface ReadyState { - aborted: boolean; - done: boolean; - error: Error | null; - events: ReadyStateEvent[]; - ready: boolean; - stale: boolean; - } - type RelayContainerErrorEventType = "CACHE_RESTORE_FAILED" | "NETWORK_QUERY_ERROR"; - type RelayContainerLoadingEventType = - | "ABORT" - | "CACHE_RESTORED_REQUIRED" - | "CACHE_RESTORE_START" - | "NETWORK_QUERY_RECEIVED_ALL" - | "NETWORK_QUERY_RECEIVED_REQUIRED" - | "NETWORK_QUERY_START" - | "STORE_FOUND_ALL" - | "STORE_FOUND_REQUIRED"; - type ReadyStateChangeCallback = (readyState: ReadyState) => void; - interface ReadyStateEvent { - type: RelayContainerLoadingEventType | RelayContainerErrorEventType; - error?: Error; - } - interface Abortable { - abort(): void; - } - - // ~~~~~~~~~~~~~~~~~~~~~ - // RelayInternalTypes - /** - * Version: Relay 1.3.0 - * File: - * https://github.com/facebook/relay/blob/master/packages/react-relay/classic/tools/RelayInternalTypes.js - */ - // ~~~~~~~~~~~~~~~~~~~~~ - interface QueryPayload { - [key: string]: any; - } - interface RelayQuerySet { - [queryName: string]: any; - } - type RangeBehaviorsFunction = ( - connectionArgs: { - [argName: string]: any; - } - ) => "APPEND" | "IGNORE" | "PREPEND" | "REFETCH" | "REMOVE"; - interface RangeBehaviorsObject { - [key: string]: "APPEND" | "IGNORE" | "PREPEND" | "REFETCH" | "REMOVE"; - } - type RangeBehaviors = RangeBehaviorsFunction | RangeBehaviorsObject; +// ~~~~~~~~~~~~~~~~~~~~~ +// RelayModernGraphQLTag +// ~~~~~~~~~~~~~~~~~~~~~ +interface GeneratedNodeMap { + [key: string]: GraphQLTaggedNode; } - -export namespace RelayRuntimeTypes { - // ~~~~~~~~~~~~~~~~~~~~~ - // Maybe Fix - // ~~~~~~~~~~~~~~~~~~~~~ - type RelayDebugger = any; - type OptimisticUpdate = any; - type OperationSelector = RelayCommonTypes.COperationSelector; - type Selector = RelayCommonTypes.CSelector; - type PayloadData = any; - type Snapshot = RelayCommonTypes.CSnapshot; - type RelayResponsePayload = any; - type MutableRecordSource = RecordSource; - - /** - * A function that returns an Observable representing the response of executing - * a GraphQL operation. - */ - type ExecuteFunction = ( - operation: object, - variables: RelayCommonTypes.Variables, - cacheConfig: RelayCommonTypes.CacheConfig, - uploadables?: RelayCommonTypes.UploadableMap - ) => Promise; - interface RelayNetwork { - execute: ExecuteFunction; - } - - // ~~~~~~~~~~~~~~~~~~~~~ - // RelayDefaultHandlerProvider - // ~~~~~~~~~~~~~~~~~~~~~ - function HandlerProvider(name: string): typeof RelayCommonTypes.Handler | null; - - // ~~~~~~~~~~~~~~~~~~~~~ - // RelayModernEnvironment - // ~~~~~~~~~~~~~~~~~~~~~ - interface EnvironmentConfig { - configName?: string; - handlerProvider?: typeof HandlerProvider; - network: Network; - store: Store; - } - class Environment { - constructor(config: EnvironmentConfig); - getStore(): Store; - getDebugger(): RelayDebugger; - applyUpdate(optimisticUpdate: OptimisticUpdate): RelayCommonTypes.Disposable; - revertUpdate(update: OptimisticUpdate): void; - replaceUpdate(update: OptimisticUpdate, newUpdate: OptimisticUpdate): void; - applyMutation(config: { - operation: OperationSelector; - optimisticUpdater?: RelayCommonTypes.SelectorStoreUpdater; - optimisticResponse?: object; - }): RelayCommonTypes.Disposable; - check(readSelector: Selector): boolean; - commitPayload(operationSelector: OperationSelector, payload: PayloadData): void; - commitUpdate(updater: RelayCommonTypes.StoreUpdater): void; - lookup(readSelector: Selector): Snapshot; - subscribe(snapshot: Snapshot, callback: (snapshot: Snapshot) => void): RelayCommonTypes.Disposable; - retain(selector: Selector): RelayCommonTypes.Disposable; - execute(config: { - operation: OperationSelector; - cacheConfig?: RelayCommonTypes.CacheConfig; - updater?: RelayCommonTypes.SelectorStoreUpdater; - }): RelayObservable; - executeMutation(config: { - operation: OperationSelector; - optimisticUpdater?: RelayCommonTypes.SelectorStoreUpdater; - optimisticResponse?: object; - updater?: RelayCommonTypes.SelectorStoreUpdater; - uploadables?: RelayCommonTypes.UploadableMap; - }): RelayObservable; - } - - // ~~~~~~~~~~~~~~~~~~~~~ - // RelayInMemoryRecordSource - // ~~~~~~~~~~~~~~~~~~~~~ - interface Record { - [key: string]: any; - } - interface RecordMap { - [dataID: string]: Record | null | undefined; - } - - // ~~~~~~~~~~~~~~~~~~~~~ - // Network - // ~~~~~~~~~~~~~~~~~~~~~ - class Network { - /** - * Creates an implementation of the `Network` interface defined in - * `RelayNetworkTypes` given `fetch` and `subscribe` functions. - */ - static create( - fetchFn: typeof RelayCommonTypes.FetchFunction, - subscribeFn?: RelayCommonTypes.SubscribeFunction - ): RelayNetwork; - } - - // ~~~~~~~~~~~~~~~~~~~~~ - // Network - // ~~~~~~~~~~~~~~~~~~~~~ - class RecordSource { - constructor(records?: RecordMap); - clear(): void; - delete(dataID: RelayCommonTypes.DataID): void; - get(dataID: RelayCommonTypes.DataID): Record | null; - getRecordIDs(): RelayCommonTypes.DataID[]; - getStatus(dataID: RelayCommonTypes.DataID): "EXISTENT" | "NONEXISTENT" | "UNKNOWN"; - has(dataID: RelayCommonTypes.DataID): boolean; - load(dataID: RelayCommonTypes.DataID, callback: (error: Error | null, record: Record | null) => void): void; - remove(dataID: RelayCommonTypes.DataID): void; - set(dataID: RelayCommonTypes.DataID, record: Record): void; - size(): number; - toJSON(): RecordMap; - } - - // ~~~~~~~~~~~~~~~~~~~~~ - // ModernStore - // ~~~~~~~~~~~~~~~~~~~~~ - class Store { - constructor(source: RecordSource); - getSource(): MutableRecordSource; - check(selector: Selector): boolean; - retain(selector: Selector): RelayCommonTypes.Disposable; - lookup(selector: Selector): Snapshot; - notify(): void; - publish(source: RecordSource): void; - subscribe(snapshot: Snapshot, callback: (snapshot: Snapshot) => void): RelayCommonTypes.Disposable; - } - - // ~~~~~~~~~~~~~~~~~~~~~ - // RelayRecordSourceInspector - // ~~~~~~~~~~~~~~~~~~~~~ - /** - * An internal class to provide a console-friendly string representation of a - * Record. - */ - class RecordSummary { - id: RelayCommonTypes.DataID; - type: string | null | undefined; - static createFromRecord(id: RelayCommonTypes.DataID, record: any): RecordSummary; - constructor(id: RelayCommonTypes.DataID, type: string | null | undefined); - toString(): string; - } - /** - * Internal class for inspecting a single Record. - */ - class RecordInspector { - constructor(sourceInspector: RelayRecordSourceInspector, record: Record); - /** - * Get the cache id of the given record. For types that implement the `Node` - * interface (or that have an `id`) this will be `id`, for other types it will be - * a synthesized identifier based on the field path from the nearest ancestor - * record that does have an `id`. - */ - getDataID(): RelayCommonTypes.DataID; - - /** - * Returns a list of the fields that have been fetched on the current record. - */ - getFields(): string[]; - - /** - * Returns the type of the record. - */ - getType(): string; - - /** - * Returns a copy of the internal representation of the record. - */ - inspect(): any; - - /** - * Returns the value of a scalar field. May throw if the given field is - * present but not actually scalar. - */ - getValue(name: string, args?: RelayCommonTypes.Variables): any; - - /** - * Returns an inspector for the given scalar "linked" field (a field whose - * value is another Record instead of a scalar). May throw if the field is - * present but not a scalar linked record. - */ - getLinkedRecord(name: string, args?: RelayCommonTypes.Variables): RecordInspector | null; - - /** - * Returns an array of inspectors for the given plural "linked" field (a field - * whose value is an array of Records instead of a scalar). May throw if the - * field is present but not a plural linked record. - */ - getLinkedRecords(name: string, args?: RelayCommonTypes.Variables): RecordInspector[] | null; - } - - class RelayRecordSourceInspector { - constructor(source: RecordSource); - static getForEnvironment(environment: Environment): RelayRecordSourceInspector; - /** - * Returns an inspector for the record with the given id, or null/undefined if - * that record is deleted/unfetched. - */ - get(dataID: RelayCommonTypes.DataID): RecordInspector | null; - /** - * Returns a list of ": " for each record in the store that has an - * `id`. - */ - getNodes(): RecordSummary[]; - /** - * Returns a list of ": " for all records in the store including - * those that do not have an `id`. - */ - getRecords(): RecordSummary[]; - - /** - * Returns an inspector for the synthesized "root" object, allowing access to - * e.g. the `viewer` object or the results of other fields on the "Query" - * type. - */ - getRoot(): RecordInspector; - } - - // ~~~~~~~~~~~~~~~~~~~~~ - // RelayObservable - // ~~~~~~~~~~~~~~~~~~~~~ - interface Subscription { - unsubscribe(): void; - readonly closed: boolean; - } - interface Observer { - start?(subscription: Subscription): any; - next?(nextThing: T): any; - error?(error: Error): any; - complete?(): any; - unsubscribe?(subscription: Subscription): any; - } - type Source = () => any; - interface Subscribable { - subscribe(observer: Observer): Subscription; - } - type ObservableFromValue = RelayObservable | Promise | T; - class RelayObservable implements Subscribable { - _source: Source; - - constructor(source: Source); - - /** - * When an unhandled error is detected, it is reported to the host environment - * (the ESObservable spec refers to this method as "HostReportErrors()"). - * - * The default implementation in development builds re-throws errors in a - * separate frame, and from production builds does nothing (swallowing - * uncaught errors). - * - * Called during application initialization, this method allows - * application-specific handling of uncaught errors. Allowing, for example, - * integration with error logging or developer tools. - */ - static onUnhandledError(callback: (error: Error) => any): void; - - /** - * Accepts various kinds of data sources, and always returns a RelayObservable - * useful for accepting the result of a user-provided FetchFunction. - */ - static from(obj: ObservableFromValue): RelayObservable; - - /** - * Creates a RelayObservable, given a function which expects a legacy - * Relay Observer as the last argument and which returns a Disposable. - * - * To support migration to Observable, the function may ignore the - * legacy Relay observer and directly return an Observable instead. - */ - static fromLegacy( - callback: ( - legacyObserver: RelayCommonTypes.LegacyObserver - ) => RelayCommonTypes.Disposable | RelayObservable - ): RelayObservable; - - /** - * Returns a new Observable which returns the same values as this one, but - * modified so that the provided Observer is called to perform a side-effects - * for all events emitted by the source. - * - * Any errors that are thrown in the side-effect Observer are unhandled, and - * do not affect the source Observable or its Observer. - * - * This is useful for when debugging your Observables or performing other - * side-effects such as logging or performance monitoring. - */ - do(observer: Observer): RelayObservable; - - /** - * Returns a new Observable which returns the same values as this one, but - * modified so that the finally callback is performed after completion, - * whether normal or due to error or unsubscription. - * - * This is useful for cleanup such as resource finalization. - */ - finally(fn: () => any): RelayObservable; - - /** - * Returns a new Observable which is identical to this one, unless this - * Observable completes before yielding any values, in which case the new - * Observable will yield the values from the alternate Observable. - * - * If this Observable does yield values, the alternate is never subscribed to. - * - * This is useful for scenarios where values may come from multiple sources - * which should be tried in order, i.e. from a cache before a network. - */ - ifEmpty(alternate: RelayObservable): RelayObservable; - - /** - * Observable's primary API: returns an unsubscribable Subscription to the - * source of this Observable. - */ - subscribe(observer: Observer): Subscription; - - /** - * Supports subscription of a legacy Relay Observer, returning a Disposable. - */ - subscribeLegacy(legacyObserver: RelayCommonTypes.LegacyObserver): RelayCommonTypes.Disposable; - - /** - * Returns a new Observerable where each value has been transformed by - * the mapping function. - */ - map(fn: (thing: T) => U): RelayObservable; - - /** - * Returns a new Observable where each value is replaced with a new Observable - * by the mapping function, the results of which returned as a single - * concattenated Observable. - */ - concatMap(fn: (thing: T) => ObservableFromValue): RelayObservable; - - /** - * Returns a new Observable which first mirrors this Observable, then when it - * completes, waits for `pollInterval` milliseconds before re-subscribing to - * this Observable again, looping in this manner until unsubscribed. - * - * The returned Observable never completes. - */ - poll(pollInterval: number): RelayObservable; - - /** - * Returns a Promise which resolves when this Observable yields a first value - * or when it completes with no value. - */ - toPromise(): Promise; - } - - // ~~~~~~~~~~~~~~~~~~~~~ - // commitLocalUpdate - // ~~~~~~~~~~~~~~~~~~~~~ - // exposed through RelayModern, not Runtime directly - type commitLocalUpdate = (environment: Environment, updater: RelayCommonTypes.StoreUpdater) => void; - - // ~~~~~~~~~~~~~~~~~~~~~ - // commitRelayModernMutation - // ~~~~~~~~~~~~~~~~~~~~~ - // exposed through RelayModern, not Runtime directly - interface MutationConfig { - configs?: RelayCommonTypes.RelayMutationConfig[]; - mutation: RelayCommonTypes.GraphQLTaggedNode; - variables: RelayCommonTypes.Variables; - uploadables?: RelayCommonTypes.UploadableMap; - onCompleted?(response: T, errors: RelayCommonTypes.PayloadError[] | null | undefined): void; - onError?(error?: Error): void; - optimisticUpdater?: RelayCommonTypes.SelectorStoreUpdater; - optimisticResponse?: object; - updater?: RelayCommonTypes.SelectorStoreUpdater; - } - function commitRelayModernMutation( - environment: Environment, - config: MutationConfig - ): RelayCommonTypes.Disposable; - - // ~~~~~~~~~~~~~~~~~~~~~ - // applyRelayModernOptimisticMutation - // ~~~~~~~~~~~~~~~~~~~~~ - // exposed through RelayModern, not Runtime directly - interface OptimisticMutationConfig { - configs?: RelayCommonTypes.RelayMutationConfig[]; - mutation: RelayCommonTypes.GraphQLTaggedNode; - variables: RelayCommonTypes.Variables; - optimisticUpdater?: RelayCommonTypes.SelectorStoreUpdater; - optimisticResponse?: object; - } - - // ~~~~~~~~~~~~~~~~~~~~~ - // fetchRelayModernQuery - // ~~~~~~~~~~~~~~~~~~~~~ - // exposed through RelayModern, not Runtime directly - /** - * A helper function to fetch the results of a query. Note that results for - * fragment spreads are masked: fields must be explicitly listed in the query in - * order to be accessible in the result object. - * - * NOTE: This module is primarily intended for integrating with classic APIs. - * Most product code should use a Renderer or Container. - * - * TODO(t16875667): The return type should be `Promise`, but - * that's not really helpful as `SelectorData` is essentially just `mixed`. We - * can probably leverage generated flow types here to return the real expected - * shape. - */ - function fetchRelayModernQuery( - environment: any, // FIXME - $FlowFixMe in facebook source code - taggedNode: RelayCommonTypes.GraphQLTaggedNode, - variables: RelayCommonTypes.Variables, - cacheConfig?: RelayCommonTypes.CacheConfig - ): Promise; // FIXME - $FlowFixMe in facebook source code - - // ~~~~~~~~~~~~~~~~~~~~~ - // requestRelaySubscription - // ~~~~~~~~~~~~~~~~~~~~~ - // exposed through RelayModern, not Runtime directly - interface GraphQLSubscriptionConfig { - configs?: RelayCommonTypes.RelayMutationConfig[]; - subscription: RelayCommonTypes.GraphQLTaggedNode; - variables: RelayCommonTypes.Variables; - onCompleted?(): void; - onError?(error: Error): void; - onNext?(response: object | null | undefined): void; - updater?(store: RelayCommonTypes.RecordSourceSelectorProxy): void; - } - function requestRelaySubscription( - environment: Environment, - config: GraphQLSubscriptionConfig - ): RelayCommonTypes.Disposable; +type GraphQLTaggedNode = + | (() => ConcreteFragment | ConcreteBatch) + | { + modern(): ConcreteFragment | ConcreteBatch; + classic(relayQL: RelayQL): ConcreteFragmentDefinition | ConcreteOperationDefinition; + }; +// ~~~~~~~~~~~~~~~~~~~~~ +// General Usage +// ~~~~~~~~~~~~~~~~~~~~~ +type DataID = string; +interface Variables { + [name: string]: any; +} +type Uploadable = File | Blob; +interface UploadableMap { + [key: string]: Uploadable; } // ~~~~~~~~~~~~~~~~~~~~~ -// Package Exports +// RelayNetworkTypes +// Version: Relay 1.3.0 +// File: https://github.com/facebook/relay/blob/master/packages/relay-runtime/network/RelayNetworkTypes.js // ~~~~~~~~~~~~~~~~~~~~~ -export import Environment = RelayRuntimeTypes.Environment; -export import Network = RelayRuntimeTypes.Network; -export import RecordSource = RelayRuntimeTypes.RecordSource; -export import Store = RelayRuntimeTypes.Store; -export import Observable = RelayRuntimeTypes.RelayObservable; + +interface LegacyObserver { + onCompleted?(): void; + onError?(error: Error): void; + onNext?(data: T): void; +} +interface PayloadError { + message: string; + locations?: Array<{ + line: number; + column: number; + }>; +} +/** + * A function that executes a GraphQL operation with request/response semantics. + * + * May return an Observable or Promise of a raw server response. + */ +declare function FetchFunction( + operation: ConcreteBatch, + variables: Variables, + cacheConfig: CacheConfig, + uploadables?: UploadableMap +): ObservableFromValue; + +/** + * A function that executes a GraphQL subscription operation, returning one or + * more raw server responses over time. + * + * May return an Observable, otherwise must call the callbacks found in the + * fourth parameter. + */ +type SubscribeFunction = ( + operation: ConcreteBatch, + variables: Variables, + cacheConfig: CacheConfig, + observer: LegacyObserver +) => RelayObservable | Disposable; + +// ~~~~~~~~~~~~~~~~~~~~~ +// RelayStoreTypes +// Version: Relay 1.3.0 +// File: https://github.com/facebook/relay/blob/master/packages/relay-runtime/store/RelayStoreTypes.js +// ~~~~~~~~~~~~~~~~~~~~~ +/** + * A function that receives a proxy over the store and may trigger side-effects + * (indirectly) by calling `set*` methods on the store or its record proxies. + */ +type StoreUpdater = (store: RecordSourceProxy) => void; + +/** + * Similar to StoreUpdater, but accepts a proxy tied to a specific selector in + * order to easily access the root fields of a query/mutation as well as a + * second argument of the response object of the mutation. + */ +type SelectorStoreUpdater = ( + store: RecordSourceSelectorProxy, + // Actually RelayCombinedEnvironmentTypes#SelectorData, but mixed is + // inconvenient to access deeply in product code. + data: any // FLOW FIXME +) => void; + +/** + * Extends the RecordSourceProxy interface with methods for accessing the root + * fields of a Selector. + */ +interface RecordSourceSelectorProxy { + create(dataID: DataID, typeName: string): RecordProxy; + delete(dataID: DataID): void; + get(dataID: DataID): RecordProxy | null; + getRoot(): RecordProxy; + getRootField(fieldName: string): RecordProxy | null; + getPluralRootField(fieldName: string): RecordProxy[] | null; +} + +interface RecordProxy { + copyFieldsFrom(source: RecordProxy): void; + getDataID(): DataID; + getLinkedRecord(name: string, args?: Variables): RecordProxy | null; + getLinkedRecords(name: string, args?: Variables): Array | null; + getOrCreateLinkedRecord(name: string, typeName: string, args?: Variables): RecordProxy; + getType(): string; + getValue(name: string, args?: Variables): any; + setLinkedRecord(record: RecordProxy, name: string, args?: Variables): RecordProxy; + setLinkedRecords( + records: Array | undefined | null, + name: string, + args?: Variables + ): RecordProxy; + setValue(value: any, name: string, args?: Variables): RecordProxy; +} + +interface RecordSourceProxy { + create(dataID: DataID, typeName: string): RecordProxy; + delete(dataID: DataID): void; + get(dataID: DataID): Array | null; + getRoot(): RecordProxy; +} + +interface HandleFieldPayload { + // The arguments that were fetched. + args: Variables; + // The __id of the record containing the source/handle field. + dataID: DataID; + // The (storage) key at which the original server data was written. + fieldKey: string; + // The name of the handle + handle: string; + // The (storage) key at which the handle's data should be written by the + // handler + handleKey: string; +} +interface HandlerInterface { + update(store: RecordSourceProxy, fieldPayload: HandleFieldPayload): void; + [functionName: string]: (...args: any[]) => any; +} +export const ConnectionHandler: HandlerInterface; +export const ViewerHandler: HandlerInterface; + +// ~~~~~~~~~~~~~~~~~~~~~ +// RelayCombinedEnvironmentTypes +// Version: Relay 1.3.0 +// File: https://github.com/facebook/relay/blob/b85a1d69bb72be4ace67179f55c2a54a8d761c8b/packages/react-relay/classic/environment/RelayCombinedEnvironmentTypes.js +// ~~~~~~~~~~~~~~~~~~~~~ +/** + * Settings for how a query response may be cached. + * + * - `force`: causes a query to be issued unconditionally, irrespective of the + * state of any configured response cache. + * - `poll`: causes a query to live update by polling at the specified interval + * in milliseconds. (This value will be passed to setTimeout.) + */ +interface CacheConfig { + force?: boolean; + poll?: number; +} + +/** + * Represents any resource that must be explicitly disposed of. The most common + * use-case is as a return value for subscriptions, where calling `dispose()` + * would cancel the subscription. + */ +interface Disposable { + dispose(): void; +} + +/** + * Arbitrary data e.g. received by a container as props. + */ +interface Props { + [key: string]: any; +} + +/** + * A selector defines the starting point for a traversal into the graph for the + * purposes of targeting a subgraph. + */ +interface CSelector { + dataID: DataID; + node: TNode; + variables: Variables; +} + +/** + * A representation of a selector and its results at a particular point in time. + */ +type CSnapshot = CSelector & { + data: SelectorData | null | undefined; + seenRecords: RecordMap; +}; + +/** + * The results of a selector given a store/RecordSource. + */ +interface SelectorData { + [key: string]: any; +} + +/** + * The results of reading the results of a FragmentMap given some input + * `Props`. + */ +interface FragmentSpecResults { + [key: string]: any; +} + +/** + * A utility for resolving and subscribing to the results of a fragment spec + * (key -> fragment mapping) given some "props" that determine the root ID + * and variables to use when reading each fragment. When props are changed via + * `setProps()`, the resolver will update its results and subscriptions + * accordingly. Internally, the resolver: + * - Converts the fragment map & props map into a map of `Selector`s. + * - Removes any resolvers for any props that became null. + * - Creates resolvers for any props that became non-null. + * - Updates resolvers with the latest props. + */ +interface FragmentSpecResolver { + /** + * Stop watching for changes to the results of the fragments. + */ + dispose(): void; + + /** + * Get the current results. + */ + resolve(): FragmentSpecResults; + + /** + * Update the resolver with new inputs. Call `resolve()` to get the updated + * results. + */ + setProps(props: Props): void; + + /** + * Override the variables used to read the results of the fragments. Call + * `resolve()` to get the updated results. + */ + setVariables(variables: Variables): void; +} + +interface CFragmentMap { + [key: string]: TFragment; +} + +/** + * An operation selector describes a specific instance of a GraphQL operation + * with variables applied. + * + * - `root`: a selector intended for processing server results or retaining + * response data in the store. + * - `fragment`: a selector intended for use in reading or subscribing to + * the results of the the operation. + */ +interface COperationSelector { + fragment: CSelector; + node: TOperation; + root: CSelector; + variables: Variables; +} + +/** + * The public API of Relay core. Represents an encapsulated environment with its + * own in-memory cache. + */ +interface CEnvironment { + /** + * Read the results of a selector from in-memory records in the store. + */ + lookup(selector: CSelector): CSnapshot; + + /** + * Subscribe to changes to the results of a selector. The callback is called + * when data has been committed to the store that would cause the results of + * the snapshot's selector to change. + */ + subscribe(snapshot: CSnapshot, callback: (snapshot: CSnapshot) => void): Disposable; + + /** + * Ensure that all the records necessary to fulfill the given selector are + * retained in-memory. The records will not be eligible for garbage collection + * until the returned reference is disposed. + * + * Note: This is a no-op in the classic core. + */ + retain(selector: CSelector): Disposable; + + /** + * Send a query to the server with request/response semantics: the query will + * either complete successfully (calling `onNext` and `onCompleted`) or fail + * (calling `onError`). + * + * Note: Most applications should use `streamQuery` in order to + * optionally receive updated information over time, should that feature be + * supported by the network/server. A good rule of thumb is to use this method + * if you would otherwise immediately dispose the `streamQuery()` + * after receving the first `onNext` result. + */ + sendQuery(config: { + cacheConfig?: CacheConfig; + onCompleted?(): void; + onError?(error: Error): void; + onNext?(payload: TPayload): void; + operation: COperationSelector; + }): Disposable; + + /** + * Send a query to the server with request/subscription semantics: one or more + * responses may be returned (via `onNext`) over time followed by either + * the request completing (`onCompleted`) or an error (`onError`). + * + * Networks/servers that support subscriptions may choose to hold the + * subscription open indefinitely such that `onCompleted` is not called. + */ + streamQuery(config: { + cacheConfig?: CacheConfig; + onCompleted?(): void; + onError?(error: Error): void; + onNext?(payload: TPayload): void; + operation: COperationSelector; + }): Disposable; + + unstable_internal: CUnstableEnvironmentCore; +} + +interface CUnstableEnvironmentCore { + /** + * Create an instance of a FragmentSpecResolver. + * + * TODO: The FragmentSpecResolver *can* be implemented via the other methods + * defined here, so this could be moved out of core. It's convenient to have + * separate implementations until the experimental core is in OSS. + */ + createFragmentSpecResolver( + context: CRelayContext, + containerName: string, + fragments: CFragmentMap, + props: Props, + callback: () => void + ): FragmentSpecResolver; + + /** + * Creates an instance of an OperationSelector given an operation definition + * (see `getOperation`) and the variables to apply. The input variables are + * filtered to exclude variables that do not matche defined arguments on the + * operation, and default values are populated for null values. + */ + createOperationSelector(operation: TOperation, variables: Variables): COperationSelector; + + /** + * Given a graphql`...` tagged template, extract a fragment definition usable + * by this version of Relay core. Throws if the value is not a fragment. + */ + getFragment(node: TGraphQLTaggedNode): TFragment; + + /** + * Given a graphql`...` tagged template, extract an operation definition + * usable by this version of Relay core. Throws if the value is not an + * operation. + */ + getOperation(node: TGraphQLTaggedNode): TOperation; + + /** + * Determine if two selectors are equal (represent the same selection). Note + * that this function returns `false` when the two queries/fragments are + * different objects, even if they select the same fields. + */ + areEqualSelectors(a: CSelector, b: CSelector): boolean; + + /** + * Given the result `item` from a parent that fetched `fragment`, creates a + * selector that can be used to read the results of that fragment for that item. + * + * Example: + * + * Given two fragments as follows: + * + * ``` + * fragment Parent on User { + * id + * ...Child + * } + * fragment Child on User { + * name + * } + * ``` + * + * And given some object `parent` that is the results of `Parent` for id "4", + * the results of `Child` can be accessed by first getting a selector and then + * using that selector to `lookup()` the results against the environment: + * + * ``` + * const childSelector = getSelector(queryVariables, Child, parent); + * const childData = environment.lookup(childSelector).data; + * ``` + */ + getSelector(operationVariables: Variables, fragment: TFragment, prop: any): CSelector | null; + + /** + * Given the result `items` from a parent that fetched `fragment`, creates a + * selector that can be used to read the results of that fragment on those + * items. This is similar to `getSelector` but for "plural" fragments that + * expect an array of results and therefore return an array of selectors. + */ + getSelectorList(operationVariables: Variables, fragment: TFragment, props: any[]): Array> | null; + + /** + * Given a mapping of keys -> results and a mapping of keys -> fragments, + * extracts the selectors for those fragments from the results. + * + * The canonical use-case for this function are Relay Containers, which + * use this function to convert (props, fragments) into selectors so that they + * can read the results to pass to the inner component. + */ + getSelectorsFromObject( + operationVariables: Variables, + fragments: CFragmentMap, + props: Props + ): { [key: string]: CSelector | Array> | null | undefined }; + + /** + * Given a mapping of keys -> results and a mapping of keys -> fragments, + * extracts a mapping of keys -> id(s) of the results. + * + * Similar to `getSelectorsFromObject()`, this function can be useful in + * determining the "identity" of the props passed to a component. + */ + getDataIDsFromObject( + fragments: CFragmentMap, + props: Props + ): { [key: string]: DataID | DataID[] | null | undefined }; + + /** + * Given a mapping of keys -> results and a mapping of keys -> fragments, + * extracts the merged variables that would be in scope for those + * fragments/results. + * + * This can be useful in determing what varaibles were used to fetch the data + * for a Relay container, for example. + */ + getVariablesFromObject(operationVariables: Variables, fragments: CFragmentMap, props: Props): Variables; +} + +/** + * The type of the `relay` property set on React context by the React/Relay + * integration layer (e.g. QueryRenderer, FragmentContainer, etc). + */ +interface CRelayContext { + environment: TEnvironment; + variables: Variables; +} + +// ~~~~~~~~~~~~~~~~~~~~~ +// RelayTypes +/** + * Version: Relay 1.3.0 + * File: + * https://github.com/facebook/relay/blob/fa9f48ea209ee2402d433b59a84d1cbc046574e2/packages/react-relay/classic/tools/RelayTypes.js + */ +// ~~~~~~~~~~~~~~~~~~~~~ +interface RerunParam { + param: string; + import: string; + max_runs: number; +} +interface FIELDS_CHANGE { + type: "FIELDS_CHANGE"; + fieldIDs: { [fieldName: string]: DataID | DataID[] }; +} +interface RANGE_ADD { + type: "RANGE_ADD"; + parentName?: string; + parentID?: string; + connectionInfo?: Array<{ + key: string; + filters?: Variables; + rangeBehavior: string; + }>; + connectionName?: string; + edgeName: string; + rangeBehaviors?: RangeBehaviors; +} +interface NODE_DELETE { + type: "NODE_DELETE"; + parentName?: string; + parentID?: string; + connectionName?: string; + deletedIDFieldName: string; +} +interface RANGE_DELETE { + type: "RANGE_DELETE"; + parentName?: string; + parentID?: string; + connectionKeys?: Array<{ + key: string; + filters?: Variables; + }>; + connectionName?: string; + deletedIDFieldName: string | string[]; + pathToConnection: string[]; +} +interface REQUIRED_CHILDREN { + type: "REQUIRED_CHILDREN"; + children: RelayConcreteNode[]; +} +type RelayMutationConfig = FIELDS_CHANGE | RANGE_ADD | NODE_DELETE | RANGE_DELETE | REQUIRED_CHILDREN; + +interface RelayMutationTransactionCommitCallbacks { + onFailure?: RelayMutationTransactionCommitFailureCallback; + onSuccess?: RelayMutationTransactionCommitSuccessCallback; +} +type RelayMutationTransactionCommitFailureCallback = ( + transaction: RelayMutationTransaction, + preventAutoRollback: () => void +) => void; +type RelayMutationTransactionCommitSuccessCallback = ( + response: { + [key: string]: any; + } +) => void; +interface NetworkLayer { + sendMutation(request: RelayMutationRequest): Promise | null; + sendQueries(requests: RelayQueryRequest[]): Promise | null; + supports(...options: string[]): boolean; +} +interface QueryResult { + error?: Error; + ref_params?: { [name: string]: any }; + response: QueryPayload; +} +interface ReadyState { + aborted: boolean; + done: boolean; + error: Error | null; + events: ReadyStateEvent[]; + ready: boolean; + stale: boolean; +} +type RelayContainerErrorEventType = "CACHE_RESTORE_FAILED" | "NETWORK_QUERY_ERROR"; +type RelayContainerLoadingEventType = + | "ABORT" + | "CACHE_RESTORED_REQUIRED" + | "CACHE_RESTORE_START" + | "NETWORK_QUERY_RECEIVED_ALL" + | "NETWORK_QUERY_RECEIVED_REQUIRED" + | "NETWORK_QUERY_START" + | "STORE_FOUND_ALL" + | "STORE_FOUND_REQUIRED"; +type ReadyStateChangeCallback = (readyState: ReadyState) => void; +interface ReadyStateEvent { + type: RelayContainerLoadingEventType | RelayContainerErrorEventType; + error?: Error; +} +interface Abortable { + abort(): void; +} + +// ~~~~~~~~~~~~~~~~~~~~~ +// RelayInternalTypes +/** + * Version: Relay 1.3.0 + * File: + * https://github.com/facebook/relay/blob/master/packages/react-relay/classic/tools/RelayInternalTypes.js + */ +// ~~~~~~~~~~~~~~~~~~~~~ +interface QueryPayload { + [key: string]: any; +} +interface RelayQuerySet { + [queryName: string]: any; +} +type RangeBehaviorsFunction = ( + connectionArgs: { + [argName: string]: any; + } +) => "APPEND" | "IGNORE" | "PREPEND" | "REFETCH" | "REMOVE"; +interface RangeBehaviorsObject { + [key: string]: "APPEND" | "IGNORE" | "PREPEND" | "REFETCH" | "REMOVE"; +} +type RangeBehaviors = RangeBehaviorsFunction | RangeBehaviorsObject; + +// ~~~~~~~~~~~~~~~~~~~~~ +// Maybe Fix +// ~~~~~~~~~~~~~~~~~~~~~ +type RelayDebugger = any; +type OptimisticUpdate = any; +type OperationSelector = COperationSelector; +type Selector = CSelector; +type PayloadData = any; +type Snapshot = CSnapshot; +type RelayResponsePayload = any; +type MutableRecordSource = RecordSource; + +/** + * A function that returns an Observable representing the response of executing + * a GraphQL operation. + */ +type ExecuteFunction = ( + operation: object, + variables: Variables, + cacheConfig: CacheConfig, + uploadables?: UploadableMap +) => Promise; +interface RelayNetwork { + execute: ExecuteFunction; +} + +// ~~~~~~~~~~~~~~~~~~~~~ +// RelayDefaultHandlerProvider +// ~~~~~~~~~~~~~~~~~~~~~ +declare function HandlerProvider(name: string): HandlerInterface | null; + +// ~~~~~~~~~~~~~~~~~~~~~ +// RelayModernEnvironment +// ~~~~~~~~~~~~~~~~~~~~~ +interface EnvironmentConfig { + configName?: string; + handlerProvider?: typeof HandlerProvider; + network: Network; + store: Store; +} +export class Environment { + constructor(config: EnvironmentConfig); + getStore(): Store; + getDebugger(): RelayDebugger; + applyUpdate(optimisticUpdate: OptimisticUpdate): Disposable; + revertUpdate(update: OptimisticUpdate): void; + replaceUpdate(update: OptimisticUpdate, newUpdate: OptimisticUpdate): void; + applyMutation(config: { + operation: OperationSelector; + optimisticUpdater?: SelectorStoreUpdater; + optimisticResponse?: object; + }): Disposable; + check(readSelector: Selector): boolean; + commitPayload(operationSelector: OperationSelector, payload: PayloadData): void; + commitUpdate(updater: StoreUpdater): void; + lookup(readSelector: Selector): Snapshot; + subscribe(snapshot: Snapshot, callback: (snapshot: Snapshot) => void): Disposable; + retain(selector: Selector): Disposable; + execute(config: { + operation: OperationSelector; + cacheConfig?: CacheConfig; + updater?: SelectorStoreUpdater; + }): RelayObservable; + executeMutation(config: { + operation: OperationSelector; + optimisticUpdater?: SelectorStoreUpdater; + optimisticResponse?: object; + updater?: SelectorStoreUpdater; + uploadables?: UploadableMap; + }): RelayObservable; +} + +// ~~~~~~~~~~~~~~~~~~~~~ +// RelayInMemoryRecordSource +// ~~~~~~~~~~~~~~~~~~~~~ +interface RelayInMemoryRecordSource { + [key: string]: any; +} +interface RecordMap { + [dataID: string]: RelayInMemoryRecordSource | null | undefined; +} + +// ~~~~~~~~~~~~~~~~~~~~~ +// Network +// ~~~~~~~~~~~~~~~~~~~~~ +export class Network { + /** + * Creates an implementation of the `Network` interface defined in + * `RelayNetworkTypes` given `fetch` and `subscribe` functions. + */ + static create(fetchFn: typeof FetchFunction, subscribeFn?: SubscribeFunction): RelayNetwork; +} + +// ~~~~~~~~~~~~~~~~~~~~~ +// Network +// ~~~~~~~~~~~~~~~~~~~~~ +declare class RecordSource { + constructor(records?: RecordMap); + clear(): void; + delete(dataID: DataID): void; + get(dataID: DataID): RelayInMemoryRecordSource | null; + getRecordIDs(): DataID[]; + getStatus(dataID: DataID): "EXISTENT" | "NONEXISTENT" | "UNKNOWN"; + has(dataID: DataID): boolean; + load(dataID: DataID, callback: (error: Error | null, record: RelayInMemoryRecordSource | null) => void): void; + remove(dataID: DataID): void; + set(dataID: DataID, record: RelayInMemoryRecordSource): void; + size(): number; + toJSON(): RecordMap; +} + +// ~~~~~~~~~~~~~~~~~~~~~ +// ModernStore +// ~~~~~~~~~~~~~~~~~~~~~ +export class Store { + constructor(source: RecordSource); + getSource(): MutableRecordSource; + check(selector: Selector): boolean; + retain(selector: Selector): Disposable; + lookup(selector: Selector): Snapshot; + notify(): void; + publish(source: RecordSource): void; + subscribe(snapshot: Snapshot, callback: (snapshot: Snapshot) => void): Disposable; +} + +// ~~~~~~~~~~~~~~~~~~~~~ +// RelayRecordSourceInspector +// ~~~~~~~~~~~~~~~~~~~~~ +/** + * An internal class to provide a console-friendly string representation of a + * RelayInMemoryRecordSource. + */ +declare class RecordSummary { + id: DataID; + type: string | null | undefined; + static createFromRecord(id: DataID, record: any): RecordSummary; + constructor(id: DataID, type: string | null | undefined); + toString(): string; +} +/** + * Internal class for inspecting a single RelayInMemoryRecordSource. + */ +declare class RecordInspector { + constructor(sourceInspector: RelayRecordSourceInspector, record: RelayInMemoryRecordSource); + /** + * Get the cache id of the given record. For types that implement the `Node` + * interface (or that have an `id`) this will be `id`, for other types it will be + * a synthesized identifier based on the field path from the nearest ancestor + * record that does have an `id`. + */ + getDataID(): DataID; + + /** + * Returns a list of the fields that have been fetched on the current record. + */ + getFields(): string[]; + + /** + * Returns the type of the record. + */ + getType(): string; + + /** + * Returns a copy of the internal representation of the record. + */ + inspect(): any; + + /** + * Returns the value of a scalar field. May throw if the given field is + * present but not actually scalar. + */ + getValue(name: string, args?: Variables): any; + + /** + * Returns an inspector for the given scalar "linked" field (a field whose + * value is another RelayInMemoryRecordSource instead of a scalar). May throw if the field is + * present but not a scalar linked record. + */ + getLinkedRecord(name: string, args?: Variables): RecordInspector | null; + + /** + * Returns an array of inspectors for the given plural "linked" field (a field + * whose value is an array of Records instead of a scalar). May throw if the + * field is present but not a plural linked record. + */ + getLinkedRecords(name: string, args?: Variables): RecordInspector[] | null; +} + +declare class RelayRecordSourceInspector { + constructor(source: RecordSource); + static getForEnvironment(environment: Environment): RelayRecordSourceInspector; + /** + * Returns an inspector for the record with the given id, or null/undefined if + * that record is deleted/unfetched. + */ + get(dataID: DataID): RecordInspector | null; + /** + * Returns a list of ": " for each record in the store that has an + * `id`. + */ + getNodes(): RecordSummary[]; + /** + * Returns a list of ": " for all records in the store including + * those that do not have an `id`. + */ + getRecords(): RecordSummary[]; + + /** + * Returns an inspector for the synthesized "root" object, allowing access to + * e.g. the `viewer` object or the results of other fields on the "Query" + * type. + */ + getRoot(): RecordInspector; +} + // note RecordSourceInspector is only available in dev environment -export import RecordSourceInspector = RelayRuntimeTypes.RelayRecordSourceInspector; -export import ConnectionHandler = RelayCommonTypes.Handler; -export import ViewerHandler = RelayCommonTypes.Handler; +export type RecordSourceInspector = RelayRecordSourceInspector; + +// ~~~~~~~~~~~~~~~~~~~~~ +// RelayObservable +// ~~~~~~~~~~~~~~~~~~~~~ +interface Subscription { + unsubscribe(): void; + readonly closed: boolean; +} +interface Observer { + start?(subscription: Subscription): any; + next?(nextThing: T): any; + error?(error: Error): any; + complete?(): any; + unsubscribe?(subscription: Subscription): any; +} +type Source = () => any; +interface Subscribable { + subscribe(observer: Observer): Subscription; +} +type ObservableFromValue = RelayObservable | Promise | T; +declare class RelayObservable implements Subscribable { + _source: Source; + + constructor(source: Source); + + /** + * When an unhandled error is detected, it is reported to the host environment + * (the ESObservable spec refers to this method as "HostReportErrors()"). + * + * The default implementation in development builds re-throws errors in a + * separate frame, and from production builds does nothing (swallowing + * uncaught errors). + * + * Called during application initialization, this method allows + * application-specific handling of uncaught errors. Allowing, for example, + * integration with error logging or developer tools. + */ + static onUnhandledError(callback: (error: Error) => any): void; + + /** + * Accepts various kinds of data sources, and always returns a RelayObservable + * useful for accepting the result of a user-provided FetchFunction. + */ + static from(obj: ObservableFromValue): RelayObservable; + + /** + * Creates a RelayObservable, given a function which expects a legacy + * Relay Observer as the last argument and which returns a Disposable. + * + * To support migration to Observable, the function may ignore the + * legacy Relay observer and directly return an Observable instead. + */ + static fromLegacy( + callback: (legacyObserver: LegacyObserver) => Disposable | RelayObservable + ): RelayObservable; + + /** + * Returns a new Observable which returns the same values as this one, but + * modified so that the provided Observer is called to perform a side-effects + * for all events emitted by the source. + * + * Any errors that are thrown in the side-effect Observer are unhandled, and + * do not affect the source Observable or its Observer. + * + * This is useful for when debugging your Observables or performing other + * side-effects such as logging or performance monitoring. + */ + do(observer: Observer): RelayObservable; + + /** + * Returns a new Observable which returns the same values as this one, but + * modified so that the finally callback is performed after completion, + * whether normal or due to error or unsubscription. + * + * This is useful for cleanup such as resource finalization. + */ + finally(fn: () => any): RelayObservable; + + /** + * Returns a new Observable which is identical to this one, unless this + * Observable completes before yielding any values, in which case the new + * Observable will yield the values from the alternate Observable. + * + * If this Observable does yield values, the alternate is never subscribed to. + * + * This is useful for scenarios where values may come from multiple sources + * which should be tried in order, i.e. from a cache before a network. + */ + ifEmpty(alternate: RelayObservable): RelayObservable; + + /** + * Observable's primary API: returns an unsubscribable Subscription to the + * source of this Observable. + */ + subscribe(observer: Observer): Subscription; + + /** + * Supports subscription of a legacy Relay Observer, returning a Disposable. + */ + subscribeLegacy(legacyObserver: LegacyObserver): Disposable; + + /** + * Returns a new Observerable where each value has been transformed by + * the mapping function. + */ + map(fn: (thing: T) => U): RelayObservable; + + /** + * Returns a new Observable where each value is replaced with a new Observable + * by the mapping function, the results of which returned as a single + * concattenated Observable. + */ + concatMap(fn: (thing: T) => ObservableFromValue): RelayObservable; + + /** + * Returns a new Observable which first mirrors this Observable, then when it + * completes, waits for `pollInterval` milliseconds before re-subscribing to + * this Observable again, looping in this manner until unsubscribed. + * + * The returned Observable never completes. + */ + poll(pollInterval: number): RelayObservable; + + /** + * Returns a Promise which resolves when this Observable yields a first value + * or when it completes with no value. + */ + toPromise(): Promise; +} + +export type Observable = RelayObservable; + +// ~~~~~~~~~~~~~~~~~~~~~ +// commitLocalUpdate +// ~~~~~~~~~~~~~~~~~~~~~ +// exposed through RelayModern, not Runtime directly +type commitLocalUpdate = (environment: Environment, updater: StoreUpdater) => void; + +// ~~~~~~~~~~~~~~~~~~~~~ +// commitRelayModernMutation +// ~~~~~~~~~~~~~~~~~~~~~ +// exposed through RelayModern, not Runtime directly +interface MutationConfig { + configs?: RelayMutationConfig[]; + mutation: GraphQLTaggedNode; + variables: Variables; + uploadables?: UploadableMap; + onCompleted?(response: T, errors: PayloadError[] | null | undefined): void; + onError?(error?: Error): void; + optimisticUpdater?: SelectorStoreUpdater; + optimisticResponse?: object; + updater?: SelectorStoreUpdater; +} +declare function commitRelayModernMutation(environment: Environment, config: MutationConfig): Disposable; + +// ~~~~~~~~~~~~~~~~~~~~~ +// applyRelayModernOptimisticMutation +// ~~~~~~~~~~~~~~~~~~~~~ +// exposed through RelayModern, not Runtime directly +interface OptimisticMutationConfig { + configs?: RelayMutationConfig[]; + mutation: GraphQLTaggedNode; + variables: Variables; + optimisticUpdater?: SelectorStoreUpdater; + optimisticResponse?: object; +} + +// ~~~~~~~~~~~~~~~~~~~~~ +// fetchRelayModernQuery +// ~~~~~~~~~~~~~~~~~~~~~ +// exposed through RelayModern, not Runtime directly +/** + * A helper function to fetch the results of a query. Note that results for + * fragment spreads are masked: fields must be explicitly listed in the query in + * order to be accessible in the result object. + * + * NOTE: This module is primarily intended for integrating with classic APIs. + * Most product code should use a Renderer or Container. + * + * TODO(t16875667): The return type should be `Promise`, but + * that's not really helpful as `SelectorData` is essentially just `mixed`. We + * can probably leverage generated flow types here to return the real expected + * shape. + */ +declare function fetchRelayModernQuery( + environment: any, // FIXME - $FlowFixMe in facebook source code + taggedNode: GraphQLTaggedNode, + variables: Variables, + cacheConfig?: CacheConfig +): Promise; // FIXME - $FlowFixMe in facebook source code + +// ~~~~~~~~~~~~~~~~~~~~~ +// requestRelaySubscription +// ~~~~~~~~~~~~~~~~~~~~~ +// exposed through RelayModern, not Runtime directly +interface GraphQLSubscriptionConfig { + configs?: RelayMutationConfig[]; + subscription: GraphQLTaggedNode; + variables: Variables; + onCompleted?(): void; + onError?(error: Error): void; + onNext?(response: object | null | undefined): void; + updater?(store: RecordSourceSelectorProxy): void; +} +declare function requestRelaySubscription(environment: Environment, config: GraphQLSubscriptionConfig): Disposable; From 7b8aacb5d6852526ed1d859950918340126c2f4c Mon Sep 17 00:00:00 2001 From: voxmatt Date: Tue, 17 Oct 2017 18:11:40 -0700 Subject: [PATCH 144/506] removing deprecated types --- types/react-relay/v1/classic.d.ts | 42 ------------------------------- types/react-relay/v1/compat.d.ts | 24 ------------------ 2 files changed, 66 deletions(-) delete mode 100644 types/react-relay/v1/classic.d.ts delete mode 100644 types/react-relay/v1/compat.d.ts diff --git a/types/react-relay/v1/classic.d.ts b/types/react-relay/v1/classic.d.ts deleted file mode 100644 index d6c3352457..0000000000 --- a/types/react-relay/v1/classic.d.ts +++ /dev/null @@ -1,42 +0,0 @@ -// Type definitions for react-relay/classic 1.3 -// Project: https://github.com/facebook/relay -// Definitions by: Johannes Schickling , Matt Martin -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -// TypeScript Version: 2.4 - -// ~~~~~~~~~~~~~~~~~~~~~ -// React-Relay Classic -// ~~~~~~~~~~~~~~~~~~~~~ -// kind of gross, but maintains compatability with previous version of types -export { - ClientMutationID, - Fragments, - CreateContainerOpts, - RelayVariables, - RelayContainerClass, - RelayQueryRequestResolve, - RelayMutationStatus, - RelayMutationTransaction, - RelayMutationRequest, - RelayQueryRequest, - RelayNetworkLayer, - DefaultNetworkLayer, - createContainer, - injectNetworkLayer, - isContainer, - QL, - Route, - Mutation, - Transaction, - StoreUpdateCallbacks, - Store, - RootContainer, - RootContainerProps, - Renderer, - RendererProps, - RenderStateConfig, - RenderCallback, - ReadyStateEvent, - OnReadyStateChange, - RelayProp, -} from './lib/react-relay-classic'; diff --git a/types/react-relay/v1/compat.d.ts b/types/react-relay/v1/compat.d.ts deleted file mode 100644 index ef11bfc509..0000000000 --- a/types/react-relay/v1/compat.d.ts +++ /dev/null @@ -1,24 +0,0 @@ -// Type definitions for react-relay/compat 1.3 -// Project: https://github.com/facebook/relay -// Definitions by: Johannes Schickling , Matt Martin -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -// TypeScript Version: 2.4 - -import { RelayRuntimeTypes } from 'relay-runtime'; -import * as ReactRelayModernTypes from './lib/react-relay-modern'; -import * as ReactRelayCompatTypes from './lib/react-relay-compat'; - -// ~~~~~~~~~~~~~~~~~~~~~ -// React-Relay Compat -// ~~~~~~~~~~~~~~~~~~~~~ -export import applyOptimisticMutation = ReactRelayCompatTypes.applyUpdate; -export import commitMutation = ReactRelayCompatTypes.commitUpdate; -export import createFragmentContainer = ReactRelayCompatTypes.createContainer; -export import createPaginationContainer = ReactRelayCompatTypes.createContainer; -export import createRefetchContainer = ReactRelayCompatTypes.createContainer; -export import injectDefaultVariablesProvider = ReactRelayCompatTypes.injectDefaultVariablesProvider; -export import QueryRenderer = ReactRelayModernTypes.ReactRelayQueryRenderer; -export import graphql = ReactRelayModernTypes.graphql; -export import fetchQuery = RelayRuntimeTypes.fetchRelayModernQuery; -// exported for convenience -export import CompatTypes = ReactRelayCompatTypes; From d12367fe0a66c7a443d52a9a9b26509c64e6485d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Eloy=20Dur=C3=A1n?= Date: Wed, 18 Oct 2017 12:30:27 +0200 Subject: [PATCH 145/506] [Relay] Fix linter issues. --- types/react-relay/compat.d.ts | 12 +- types/react-relay/index.d.ts | 16 +- types/relay-runtime/index.d.ts | 832 +++++++++++++++--------------- types/relay-runtime/tsconfig.json | 1 + 4 files changed, 431 insertions(+), 430 deletions(-) diff --git a/types/react-relay/compat.d.ts b/types/react-relay/compat.d.ts index bbc69a3cc4..d214e451ae 100644 --- a/types/react-relay/compat.d.ts +++ b/types/react-relay/compat.d.ts @@ -6,18 +6,18 @@ export { createRefetchContainer, fetchQuery, graphql, -} from "react-relay"; +} from "./index"; import * as RelayRuntimeTypes from "relay-runtime"; -import { RelayEnvironmentInterface } from "react-relay/classic"; +import { RelayEnvironmentInterface } from "./classic"; // ~~~~~~~~~~~~~~~~~~~~~ // Maybe Fix // ~~~~~~~~~~~~~~~~~~~~~ -type ConcreteFragment = any; -type ConcreteBatch = any; -type ConcreteFragmentDefinition = object; -type ConcreteOperationDefinition = object; +export type ConcreteFragment = any; +export type ConcreteBatch = any; +export type ConcreteFragmentDefinition = object; +export type ConcreteOperationDefinition = object; // ~~~~~~~~~~~~~~~~~~~~~ // Util diff --git a/types/react-relay/index.d.ts b/types/react-relay/index.d.ts index fa23ac4dd7..04c173e9e2 100644 --- a/types/react-relay/index.d.ts +++ b/types/react-relay/index.d.ts @@ -19,11 +19,11 @@ import * as RelayRuntimeTypes from "relay-runtime"; // ~~~~~~~~~~~~~~~~~~~~~ // Maybe Fix // ~~~~~~~~~~~~~~~~~~~~~ -type ConcreteFragment = any; -type ConcreteBatch = any; -type ConcreteFragmentDefinition = object; -type ConcreteOperationDefinition = object; -type ReactBaseComponent = React.ComponentClass | React.StatelessComponent; +export type ConcreteFragment = any; +export type ConcreteBatch = any; +export type ConcreteFragmentDefinition = object; +export type ConcreteOperationDefinition = object; +export type ReactBaseComponent = React.ComponentClass | React.StatelessComponent; // ~~~~~~~~~~~~~~~~~~~~~ // RelayProp @@ -51,9 +51,9 @@ export type GraphQLTaggedNode = classic(relayQL: typeof RelayQL): ConcreteFragmentDefinition | ConcreteOperationDefinition; }; /** - * Runtime function to correspond to the `graphql` tagged template function. - * All calls to this function should be transformed by the plugin. - */ + * Runtime function to correspond to the `graphql` tagged template function. + * All calls to this function should be transformed by the plugin. + */ export interface GraphqlInterface { (strings: string[] | TemplateStringsArray): GraphQLTaggedNode; experimental(strings: string[] | TemplateStringsArray): GraphQLTaggedNode; diff --git a/types/relay-runtime/index.d.ts b/types/relay-runtime/index.d.ts index bbc3e07a7a..c4c35a017e 100644 --- a/types/relay-runtime/index.d.ts +++ b/types/relay-runtime/index.d.ts @@ -6,44 +6,44 @@ // TypeScript Version: 2.4 /** - * SOURCE: - * Relay 1.3.0 - * https://github.com/facebook/relay/blob/b85a1d69bb72be4ace67179f55c2a54a8d761c8b/packages/react-relay/classic/environment/RelayCombinedEnvironmentTypes.js - */ + * SOURCE: + * Relay 1.3.0 + * https://github.com/facebook/relay/blob/b85a1d69bb72be4ace67179f55c2a54a8d761c8b/packages/react-relay/classic/environment/RelayCombinedEnvironmentTypes.js + */ // ~~~~~~~~~~~~~~~~~~~~~ // Maybe Fix // ~~~~~~~~~~~~~~~~~~~~~ -type RelayConcreteNode = any; -type RelayMutationTransaction = any; -type RelayMutationRequest = any; -type RelayQueryRequest = any; -type ConcreteFragment = any; -type ConcreteBatch = any; -type ConcreteFragmentDefinition = object; -type ConcreteOperationDefinition = object; +export type RelayConcreteNode = any; +export type RelayMutationTransaction = any; +export type RelayMutationRequest = any; +export type RelayQueryRequest = any; +export type ConcreteFragment = any; +export type ConcreteBatch = any; +export type ConcreteFragmentDefinition = object; +export type ConcreteOperationDefinition = object; /** - * FIXME: RelayContainer used to be typed with ReactClass, but - * ReactClass is broken and allows for access to any property. For example - * ReactClass.getFragment('foo') is valid even though ReactClass has no - * such getFragment() type definition. When ReactClass is fixed this causes a - * lot of errors in Relay code since methods like getFragment() are used often - * but have no definition in Relay's types. Suppressing for now. - */ -type RelayContainer = any; + * FIXME: RelayContainer used to be typed with ReactClass, but + * ReactClass is broken and allows for access to any property. For example + * ReactClass.getFragment('foo') is valid even though ReactClass has no + * such getFragment() type definition. When ReactClass is fixed this causes a + * lot of errors in Relay code since methods like getFragment() are used often + * but have no definition in Relay's types. Suppressing for now. + */ +export type RelayContainer = any; // ~~~~~~~~~~~~~~~~~~~~~ // RelayQL // ~~~~~~~~~~~~~~~~~~~~~ -type RelayQL = (strings: string[], ...substitutions: any[]) => RelayConcreteNode; +export type RelayQL = (strings: string[], ...substitutions: any[]) => RelayConcreteNode; // ~~~~~~~~~~~~~~~~~~~~~ // RelayModernGraphQLTag // ~~~~~~~~~~~~~~~~~~~~~ -interface GeneratedNodeMap { +export interface GeneratedNodeMap { [key: string]: GraphQLTaggedNode; } -type GraphQLTaggedNode = +export type GraphQLTaggedNode = | (() => ConcreteFragment | ConcreteBatch) | { modern(): ConcreteFragment | ConcreteBatch; @@ -52,12 +52,12 @@ type GraphQLTaggedNode = // ~~~~~~~~~~~~~~~~~~~~~ // General Usage // ~~~~~~~~~~~~~~~~~~~~~ -type DataID = string; -interface Variables { +export type DataID = string; +export interface Variables { [name: string]: any; } -type Uploadable = File | Blob; -interface UploadableMap { +export type Uploadable = File | Blob; +export interface UploadableMap { [key: string]: Uploadable; } @@ -67,12 +67,12 @@ interface UploadableMap { // File: https://github.com/facebook/relay/blob/master/packages/relay-runtime/network/RelayNetworkTypes.js // ~~~~~~~~~~~~~~~~~~~~~ -interface LegacyObserver { +export interface LegacyObserver { onCompleted?(): void; onError?(error: Error): void; onNext?(data: T): void; } -interface PayloadError { +export interface PayloadError { message: string; locations?: Array<{ line: number; @@ -80,11 +80,11 @@ interface PayloadError { }>; } /** - * A function that executes a GraphQL operation with request/response semantics. - * - * May return an Observable or Promise of a raw server response. - */ -declare function FetchFunction( + * A function that executes a GraphQL operation with request/response semantics. + * + * May return an Observable or Promise of a raw server response. + */ +export function FetchFunction( operation: ConcreteBatch, variables: Variables, cacheConfig: CacheConfig, @@ -92,13 +92,13 @@ declare function FetchFunction( ): ObservableFromValue; /** - * A function that executes a GraphQL subscription operation, returning one or - * more raw server responses over time. - * - * May return an Observable, otherwise must call the callbacks found in the - * fourth parameter. - */ -type SubscribeFunction = ( + * A function that executes a GraphQL subscription operation, returning one or + * more raw server responses over time. + * + * May return an Observable, otherwise must call the callbacks found in the + * fourth parameter. + */ +export type SubscribeFunction = ( operation: ConcreteBatch, variables: Variables, cacheConfig: CacheConfig, @@ -111,17 +111,17 @@ type SubscribeFunction = ( // File: https://github.com/facebook/relay/blob/master/packages/relay-runtime/store/RelayStoreTypes.js // ~~~~~~~~~~~~~~~~~~~~~ /** - * A function that receives a proxy over the store and may trigger side-effects - * (indirectly) by calling `set*` methods on the store or its record proxies. - */ -type StoreUpdater = (store: RecordSourceProxy) => void; + * A function that receives a proxy over the store and may trigger side-effects + * (indirectly) by calling `set*` methods on the store or its record proxies. + */ +export type StoreUpdater = (store: RecordSourceProxy) => void; /** - * Similar to StoreUpdater, but accepts a proxy tied to a specific selector in - * order to easily access the root fields of a query/mutation as well as a - * second argument of the response object of the mutation. - */ -type SelectorStoreUpdater = ( + * Similar to StoreUpdater, but accepts a proxy tied to a specific selector in + * order to easily access the root fields of a query/mutation as well as a + * second argument of the response object of the mutation. + */ +export type SelectorStoreUpdater = ( store: RecordSourceSelectorProxy, // Actually RelayCombinedEnvironmentTypes#SelectorData, but mixed is // inconvenient to access deeply in product code. @@ -129,10 +129,10 @@ type SelectorStoreUpdater = ( ) => void; /** - * Extends the RecordSourceProxy interface with methods for accessing the root - * fields of a Selector. - */ -interface RecordSourceSelectorProxy { + * Extends the RecordSourceProxy interface with methods for accessing the root + * fields of a Selector. + */ +export interface RecordSourceSelectorProxy { create(dataID: DataID, typeName: string): RecordProxy; delete(dataID: DataID): void; get(dataID: DataID): RecordProxy | null; @@ -141,7 +141,7 @@ interface RecordSourceSelectorProxy { getPluralRootField(fieldName: string): RecordProxy[] | null; } -interface RecordProxy { +export interface RecordProxy { copyFieldsFrom(source: RecordProxy): void; getDataID(): DataID; getLinkedRecord(name: string, args?: Variables): RecordProxy | null; @@ -158,14 +158,14 @@ interface RecordProxy { setValue(value: any, name: string, args?: Variables): RecordProxy; } -interface RecordSourceProxy { +export interface RecordSourceProxy { create(dataID: DataID, typeName: string): RecordProxy; delete(dataID: DataID): void; get(dataID: DataID): Array | null; getRoot(): RecordProxy; } -interface HandleFieldPayload { +export interface HandleFieldPayload { // The arguments that were fetched. args: Variables; // The __id of the record containing the source/handle field. @@ -178,7 +178,7 @@ interface HandleFieldPayload { // handler handleKey: string; } -interface HandlerInterface { +export interface HandlerInterface { update(store: RecordSourceProxy, fieldPayload: HandleFieldPayload): void; [functionName: string]: (...args: any[]) => any; } @@ -191,116 +191,116 @@ export const ViewerHandler: HandlerInterface; // File: https://github.com/facebook/relay/blob/b85a1d69bb72be4ace67179f55c2a54a8d761c8b/packages/react-relay/classic/environment/RelayCombinedEnvironmentTypes.js // ~~~~~~~~~~~~~~~~~~~~~ /** - * Settings for how a query response may be cached. - * - * - `force`: causes a query to be issued unconditionally, irrespective of the - * state of any configured response cache. - * - `poll`: causes a query to live update by polling at the specified interval - * in milliseconds. (This value will be passed to setTimeout.) - */ -interface CacheConfig { + * Settings for how a query response may be cached. + * + * - `force`: causes a query to be issued unconditionally, irrespective of the + * state of any configured response cache. + * - `poll`: causes a query to live update by polling at the specified interval + * in milliseconds. (This value will be passed to setTimeout.) + */ +export interface CacheConfig { force?: boolean; poll?: number; } /** - * Represents any resource that must be explicitly disposed of. The most common - * use-case is as a return value for subscriptions, where calling `dispose()` - * would cancel the subscription. - */ -interface Disposable { + * Represents any resource that must be explicitly disposed of. The most common + * use-case is as a return value for subscriptions, where calling `dispose()` + * would cancel the subscription. + */ +export interface Disposable { dispose(): void; } /** - * Arbitrary data e.g. received by a container as props. - */ -interface Props { + * Arbitrary data e.g. received by a container as props. + */ +export interface Props { [key: string]: any; } /** - * A selector defines the starting point for a traversal into the graph for the - * purposes of targeting a subgraph. - */ -interface CSelector { + * A selector defines the starting point for a traversal into the graph for the + * purposes of targeting a subgraph. + */ +export interface CSelector { dataID: DataID; node: TNode; variables: Variables; } /** - * A representation of a selector and its results at a particular point in time. - */ -type CSnapshot = CSelector & { + * A representation of a selector and its results at a particular point in time. + */ +export type CSnapshot = CSelector & { data: SelectorData | null | undefined; seenRecords: RecordMap; }; /** - * The results of a selector given a store/RecordSource. - */ -interface SelectorData { + * The results of a selector given a store/RecordSource. + */ +export interface SelectorData { [key: string]: any; } /** - * The results of reading the results of a FragmentMap given some input - * `Props`. - */ -interface FragmentSpecResults { + * The results of reading the results of a FragmentMap given some input + * `Props`. + */ +export interface FragmentSpecResults { [key: string]: any; } /** - * A utility for resolving and subscribing to the results of a fragment spec - * (key -> fragment mapping) given some "props" that determine the root ID - * and variables to use when reading each fragment. When props are changed via - * `setProps()`, the resolver will update its results and subscriptions - * accordingly. Internally, the resolver: - * - Converts the fragment map & props map into a map of `Selector`s. - * - Removes any resolvers for any props that became null. - * - Creates resolvers for any props that became non-null. - * - Updates resolvers with the latest props. - */ -interface FragmentSpecResolver { + * A utility for resolving and subscribing to the results of a fragment spec + * (key -> fragment mapping) given some "props" that determine the root ID + * and variables to use when reading each fragment. When props are changed via + * `setProps()`, the resolver will update its results and subscriptions + * accordingly. Internally, the resolver: + * - Converts the fragment map & props map into a map of `Selector`s. + * - Removes any resolvers for any props that became null. + * - Creates resolvers for any props that became non-null. + * - Updates resolvers with the latest props. + */ +export interface FragmentSpecResolver { /** - * Stop watching for changes to the results of the fragments. - */ + * Stop watching for changes to the results of the fragments. + */ dispose(): void; /** - * Get the current results. - */ + * Get the current results. + */ resolve(): FragmentSpecResults; /** - * Update the resolver with new inputs. Call `resolve()` to get the updated - * results. - */ + * Update the resolver with new inputs. Call `resolve()` to get the updated + * results. + */ setProps(props: Props): void; /** - * Override the variables used to read the results of the fragments. Call - * `resolve()` to get the updated results. - */ + * Override the variables used to read the results of the fragments. Call + * `resolve()` to get the updated results. + */ setVariables(variables: Variables): void; } -interface CFragmentMap { +export interface CFragmentMap { [key: string]: TFragment; } /** - * An operation selector describes a specific instance of a GraphQL operation - * with variables applied. - * - * - `root`: a selector intended for processing server results or retaining - * response data in the store. - * - `fragment`: a selector intended for use in reading or subscribing to - * the results of the the operation. - */ -interface COperationSelector { + * An operation selector describes a specific instance of a GraphQL operation + * with variables applied. + * + * - `root`: a selector intended for processing server results or retaining + * response data in the store. + * - `fragment`: a selector intended for use in reading or subscribing to + * the results of the the operation. + */ +export interface COperationSelector { fragment: CSelector; node: TOperation; root: CSelector; @@ -308,42 +308,42 @@ interface COperationSelector { } /** - * The public API of Relay core. Represents an encapsulated environment with its - * own in-memory cache. - */ -interface CEnvironment { + * The public API of Relay core. Represents an encapsulated environment with its + * own in-memory cache. + */ +export interface CEnvironment { /** - * Read the results of a selector from in-memory records in the store. - */ + * Read the results of a selector from in-memory records in the store. + */ lookup(selector: CSelector): CSnapshot; /** - * Subscribe to changes to the results of a selector. The callback is called - * when data has been committed to the store that would cause the results of - * the snapshot's selector to change. - */ + * Subscribe to changes to the results of a selector. The callback is called + * when data has been committed to the store that would cause the results of + * the snapshot's selector to change. + */ subscribe(snapshot: CSnapshot, callback: (snapshot: CSnapshot) => void): Disposable; /** - * Ensure that all the records necessary to fulfill the given selector are - * retained in-memory. The records will not be eligible for garbage collection - * until the returned reference is disposed. - * - * Note: This is a no-op in the classic core. - */ + * Ensure that all the records necessary to fulfill the given selector are + * retained in-memory. The records will not be eligible for garbage collection + * until the returned reference is disposed. + * + * Note: This is a no-op in the classic core. + */ retain(selector: CSelector): Disposable; /** - * Send a query to the server with request/response semantics: the query will - * either complete successfully (calling `onNext` and `onCompleted`) or fail - * (calling `onError`). - * - * Note: Most applications should use `streamQuery` in order to - * optionally receive updated information over time, should that feature be - * supported by the network/server. A good rule of thumb is to use this method - * if you would otherwise immediately dispose the `streamQuery()` - * after receving the first `onNext` result. - */ + * Send a query to the server with request/response semantics: the query will + * either complete successfully (calling `onNext` and `onCompleted`) or fail + * (calling `onError`). + * + * Note: Most applications should use `streamQuery` in order to + * optionally receive updated information over time, should that feature be + * supported by the network/server. A good rule of thumb is to use this method + * if you would otherwise immediately dispose the `streamQuery()` + * after receving the first `onNext` result. + */ sendQuery(config: { cacheConfig?: CacheConfig; onCompleted?(): void; @@ -353,13 +353,13 @@ interface CEnvironment; } -interface CUnstableEnvironmentCore { +export interface CUnstableEnvironmentCore { /** - * Create an instance of a FragmentSpecResolver. - * - * TODO: The FragmentSpecResolver *can* be implemented via the other methods - * defined here, so this could be moved out of core. It's convenient to have - * separate implementations until the experimental core is in OSS. - */ + * Create an instance of a FragmentSpecResolver. + * + * TODO: The FragmentSpecResolver *can* be implemented via the other methods + * defined here, so this could be moved out of core. It's convenient to have + * separate implementations until the experimental core is in OSS. + */ createFragmentSpecResolver( context: CRelayContext, containerName: string, @@ -388,78 +388,78 @@ interface CUnstableEnvironmentCore; /** - * Given a graphql`...` tagged template, extract a fragment definition usable - * by this version of Relay core. Throws if the value is not a fragment. - */ + * Given a graphql`...` tagged template, extract a fragment definition usable + * by this version of Relay core. Throws if the value is not a fragment. + */ getFragment(node: TGraphQLTaggedNode): TFragment; /** - * Given a graphql`...` tagged template, extract an operation definition - * usable by this version of Relay core. Throws if the value is not an - * operation. - */ + * Given a graphql`...` tagged template, extract an operation definition + * usable by this version of Relay core. Throws if the value is not an + * operation. + */ getOperation(node: TGraphQLTaggedNode): TOperation; /** - * Determine if two selectors are equal (represent the same selection). Note - * that this function returns `false` when the two queries/fragments are - * different objects, even if they select the same fields. - */ + * Determine if two selectors are equal (represent the same selection). Note + * that this function returns `false` when the two queries/fragments are + * different objects, even if they select the same fields. + */ areEqualSelectors(a: CSelector, b: CSelector): boolean; /** - * Given the result `item` from a parent that fetched `fragment`, creates a - * selector that can be used to read the results of that fragment for that item. - * - * Example: - * - * Given two fragments as follows: - * - * ``` - * fragment Parent on User { - * id - * ...Child - * } - * fragment Child on User { - * name - * } - * ``` - * - * And given some object `parent` that is the results of `Parent` for id "4", - * the results of `Child` can be accessed by first getting a selector and then - * using that selector to `lookup()` the results against the environment: - * - * ``` - * const childSelector = getSelector(queryVariables, Child, parent); - * const childData = environment.lookup(childSelector).data; - * ``` - */ + * Given the result `item` from a parent that fetched `fragment`, creates a + * selector that can be used to read the results of that fragment for that item. + * + * Example: + * + * Given two fragments as follows: + * + * ``` + * fragment Parent on User { + * id + * ...Child + * } + * fragment Child on User { + * name + * } + * ``` + * + * And given some object `parent` that is the results of `Parent` for id "4", + * the results of `Child` can be accessed by first getting a selector and then + * using that selector to `lookup()` the results against the environment: + * + * ``` + * const childSelector = getSelector(queryVariables, Child, parent); + * const childData = environment.lookup(childSelector).data; + * ``` + */ getSelector(operationVariables: Variables, fragment: TFragment, prop: any): CSelector | null; /** - * Given the result `items` from a parent that fetched `fragment`, creates a - * selector that can be used to read the results of that fragment on those - * items. This is similar to `getSelector` but for "plural" fragments that - * expect an array of results and therefore return an array of selectors. - */ + * Given the result `items` from a parent that fetched `fragment`, creates a + * selector that can be used to read the results of that fragment on those + * items. This is similar to `getSelector` but for "plural" fragments that + * expect an array of results and therefore return an array of selectors. + */ getSelectorList(operationVariables: Variables, fragment: TFragment, props: any[]): Array> | null; /** - * Given a mapping of keys -> results and a mapping of keys -> fragments, - * extracts the selectors for those fragments from the results. - * - * The canonical use-case for this function are Relay Containers, which - * use this function to convert (props, fragments) into selectors so that they - * can read the results to pass to the inner component. - */ + * Given a mapping of keys -> results and a mapping of keys -> fragments, + * extracts the selectors for those fragments from the results. + * + * The canonical use-case for this function are Relay Containers, which + * use this function to convert (props, fragments) into selectors so that they + * can read the results to pass to the inner component. + */ getSelectorsFromObject( operationVariables: Variables, fragments: CFragmentMap, @@ -467,33 +467,33 @@ interface CUnstableEnvironmentCore | Array> | null | undefined }; /** - * Given a mapping of keys -> results and a mapping of keys -> fragments, - * extracts a mapping of keys -> id(s) of the results. - * - * Similar to `getSelectorsFromObject()`, this function can be useful in - * determining the "identity" of the props passed to a component. - */ + * Given a mapping of keys -> results and a mapping of keys -> fragments, + * extracts a mapping of keys -> id(s) of the results. + * + * Similar to `getSelectorsFromObject()`, this function can be useful in + * determining the "identity" of the props passed to a component. + */ getDataIDsFromObject( fragments: CFragmentMap, props: Props ): { [key: string]: DataID | DataID[] | null | undefined }; /** - * Given a mapping of keys -> results and a mapping of keys -> fragments, - * extracts the merged variables that would be in scope for those - * fragments/results. - * - * This can be useful in determing what varaibles were used to fetch the data - * for a Relay container, for example. - */ + * Given a mapping of keys -> results and a mapping of keys -> fragments, + * extracts the merged variables that would be in scope for those + * fragments/results. + * + * This can be useful in determing what varaibles were used to fetch the data + * for a Relay container, for example. + */ getVariablesFromObject(operationVariables: Variables, fragments: CFragmentMap, props: Props): Variables; } /** - * The type of the `relay` property set on React context by the React/Relay - * integration layer (e.g. QueryRenderer, FragmentContainer, etc). - */ -interface CRelayContext { + * The type of the `relay` property set on React context by the React/Relay + * integration layer (e.g. QueryRenderer, FragmentContainer, etc). + */ +export interface CRelayContext { environment: TEnvironment; variables: Variables; } @@ -501,21 +501,21 @@ interface CRelayContext { // ~~~~~~~~~~~~~~~~~~~~~ // RelayTypes /** - * Version: Relay 1.3.0 - * File: - * https://github.com/facebook/relay/blob/fa9f48ea209ee2402d433b59a84d1cbc046574e2/packages/react-relay/classic/tools/RelayTypes.js - */ + * Version: Relay 1.3.0 + * File: + * https://github.com/facebook/relay/blob/fa9f48ea209ee2402d433b59a84d1cbc046574e2/packages/react-relay/classic/tools/RelayTypes.js + */ // ~~~~~~~~~~~~~~~~~~~~~ -interface RerunParam { +export interface RerunParam { param: string; import: string; max_runs: number; } -interface FIELDS_CHANGE { +export interface FIELDS_CHANGE { type: "FIELDS_CHANGE"; fieldIDs: { [fieldName: string]: DataID | DataID[] }; } -interface RANGE_ADD { +export interface RANGE_ADD { type: "RANGE_ADD"; parentName?: string; parentID?: string; @@ -528,14 +528,14 @@ interface RANGE_ADD { edgeName: string; rangeBehaviors?: RangeBehaviors; } -interface NODE_DELETE { +export interface NODE_DELETE { type: "NODE_DELETE"; parentName?: string; parentID?: string; connectionName?: string; deletedIDFieldName: string; } -interface RANGE_DELETE { +export interface RANGE_DELETE { type: "RANGE_DELETE"; parentName?: string; parentID?: string; @@ -547,36 +547,36 @@ interface RANGE_DELETE { deletedIDFieldName: string | string[]; pathToConnection: string[]; } -interface REQUIRED_CHILDREN { +export interface REQUIRED_CHILDREN { type: "REQUIRED_CHILDREN"; children: RelayConcreteNode[]; } -type RelayMutationConfig = FIELDS_CHANGE | RANGE_ADD | NODE_DELETE | RANGE_DELETE | REQUIRED_CHILDREN; +export type RelayMutationConfig = FIELDS_CHANGE | RANGE_ADD | NODE_DELETE | RANGE_DELETE | REQUIRED_CHILDREN; -interface RelayMutationTransactionCommitCallbacks { +export interface RelayMutationTransactionCommitCallbacks { onFailure?: RelayMutationTransactionCommitFailureCallback; onSuccess?: RelayMutationTransactionCommitSuccessCallback; } -type RelayMutationTransactionCommitFailureCallback = ( +export type RelayMutationTransactionCommitFailureCallback = ( transaction: RelayMutationTransaction, preventAutoRollback: () => void ) => void; -type RelayMutationTransactionCommitSuccessCallback = ( +export type RelayMutationTransactionCommitSuccessCallback = ( response: { [key: string]: any; } ) => void; -interface NetworkLayer { +export interface NetworkLayer { sendMutation(request: RelayMutationRequest): Promise | null; sendQueries(requests: RelayQueryRequest[]): Promise | null; supports(...options: string[]): boolean; } -interface QueryResult { +export interface QueryResult { error?: Error; ref_params?: { [name: string]: any }; response: QueryPayload; } -interface ReadyState { +export interface ReadyState { aborted: boolean; done: boolean; error: Error | null; @@ -584,8 +584,8 @@ interface ReadyState { ready: boolean; stale: boolean; } -type RelayContainerErrorEventType = "CACHE_RESTORE_FAILED" | "NETWORK_QUERY_ERROR"; -type RelayContainerLoadingEventType = +export type RelayContainerErrorEventType = "CACHE_RESTORE_FAILED" | "NETWORK_QUERY_ERROR"; +export type RelayContainerLoadingEventType = | "ABORT" | "CACHE_RESTORED_REQUIRED" | "CACHE_RESTORE_START" @@ -594,74 +594,74 @@ type RelayContainerLoadingEventType = | "NETWORK_QUERY_START" | "STORE_FOUND_ALL" | "STORE_FOUND_REQUIRED"; -type ReadyStateChangeCallback = (readyState: ReadyState) => void; -interface ReadyStateEvent { +export type ReadyStateChangeCallback = (readyState: ReadyState) => void; +export interface ReadyStateEvent { type: RelayContainerLoadingEventType | RelayContainerErrorEventType; error?: Error; } -interface Abortable { +export interface Abortable { abort(): void; } // ~~~~~~~~~~~~~~~~~~~~~ // RelayInternalTypes /** - * Version: Relay 1.3.0 - * File: - * https://github.com/facebook/relay/blob/master/packages/react-relay/classic/tools/RelayInternalTypes.js - */ + * Version: Relay 1.3.0 + * File: + * https://github.com/facebook/relay/blob/master/packages/react-relay/classic/tools/RelayInternalTypes.js + */ // ~~~~~~~~~~~~~~~~~~~~~ -interface QueryPayload { +export interface QueryPayload { [key: string]: any; } -interface RelayQuerySet { +export interface RelayQuerySet { [queryName: string]: any; } -type RangeBehaviorsFunction = ( +export type RangeBehaviorsFunction = ( connectionArgs: { [argName: string]: any; } ) => "APPEND" | "IGNORE" | "PREPEND" | "REFETCH" | "REMOVE"; -interface RangeBehaviorsObject { +export interface RangeBehaviorsObject { [key: string]: "APPEND" | "IGNORE" | "PREPEND" | "REFETCH" | "REMOVE"; } -type RangeBehaviors = RangeBehaviorsFunction | RangeBehaviorsObject; +export type RangeBehaviors = RangeBehaviorsFunction | RangeBehaviorsObject; // ~~~~~~~~~~~~~~~~~~~~~ // Maybe Fix // ~~~~~~~~~~~~~~~~~~~~~ -type RelayDebugger = any; -type OptimisticUpdate = any; -type OperationSelector = COperationSelector; -type Selector = CSelector; -type PayloadData = any; -type Snapshot = CSnapshot; -type RelayResponsePayload = any; -type MutableRecordSource = RecordSource; +export type RelayDebugger = any; +export type OptimisticUpdate = any; +export type OperationSelector = COperationSelector; +export type Selector = CSelector; +export type PayloadData = any; +export type Snapshot = CSnapshot; +export type RelayResponsePayload = any; +export type MutableRecordSource = RecordSource; /** - * A function that returns an Observable representing the response of executing - * a GraphQL operation. - */ -type ExecuteFunction = ( + * A function that returns an Observable representing the response of executing + * a GraphQL operation. + */ +export type ExecuteFunction = ( operation: object, variables: Variables, cacheConfig: CacheConfig, uploadables?: UploadableMap ) => Promise; -interface RelayNetwork { +export interface RelayNetwork { execute: ExecuteFunction; } // ~~~~~~~~~~~~~~~~~~~~~ // RelayDefaultHandlerProvider // ~~~~~~~~~~~~~~~~~~~~~ -declare function HandlerProvider(name: string): HandlerInterface | null; +export function HandlerProvider(name: string): HandlerInterface | null; // ~~~~~~~~~~~~~~~~~~~~~ // RelayModernEnvironment // ~~~~~~~~~~~~~~~~~~~~~ -interface EnvironmentConfig { +export interface EnvironmentConfig { configName?: string; handlerProvider?: typeof HandlerProvider; network: Network; @@ -702,10 +702,10 @@ export class Environment { // ~~~~~~~~~~~~~~~~~~~~~ // RelayInMemoryRecordSource // ~~~~~~~~~~~~~~~~~~~~~ -interface RelayInMemoryRecordSource { +export interface RelayInMemoryRecordSource { [key: string]: any; } -interface RecordMap { +export interface RecordMap { [dataID: string]: RelayInMemoryRecordSource | null | undefined; } @@ -714,16 +714,16 @@ interface RecordMap { // ~~~~~~~~~~~~~~~~~~~~~ export class Network { /** - * Creates an implementation of the `Network` interface defined in - * `RelayNetworkTypes` given `fetch` and `subscribe` functions. - */ + * Creates an implementation of the `Network` interface defined in + * `RelayNetworkTypes` given `fetch` and `subscribe` functions. + */ static create(fetchFn: typeof FetchFunction, subscribeFn?: SubscribeFunction): RelayNetwork; } // ~~~~~~~~~~~~~~~~~~~~~ // Network // ~~~~~~~~~~~~~~~~~~~~~ -declare class RecordSource { +export class RecordSource { constructor(records?: RecordMap); clear(): void; delete(dataID: DataID): void; @@ -756,10 +756,10 @@ export class Store { // RelayRecordSourceInspector // ~~~~~~~~~~~~~~~~~~~~~ /** - * An internal class to provide a console-friendly string representation of a - * RelayInMemoryRecordSource. - */ -declare class RecordSummary { + * An internal class to provide a console-friendly string representation of a + * RelayInMemoryRecordSource. + */ +export class RecordSummary { id: DataID; type: string | null | undefined; static createFromRecord(id: DataID, record: any): RecordSummary; @@ -767,78 +767,78 @@ declare class RecordSummary { toString(): string; } /** - * Internal class for inspecting a single RelayInMemoryRecordSource. - */ -declare class RecordInspector { + * Internal class for inspecting a single RelayInMemoryRecordSource. + */ +export class RecordInspector { constructor(sourceInspector: RelayRecordSourceInspector, record: RelayInMemoryRecordSource); /** - * Get the cache id of the given record. For types that implement the `Node` - * interface (or that have an `id`) this will be `id`, for other types it will be - * a synthesized identifier based on the field path from the nearest ancestor - * record that does have an `id`. - */ + * Get the cache id of the given record. For types that implement the `Node` + * interface (or that have an `id`) this will be `id`, for other types it will be + * a synthesized identifier based on the field path from the nearest ancestor + * record that does have an `id`. + */ getDataID(): DataID; /** - * Returns a list of the fields that have been fetched on the current record. - */ + * Returns a list of the fields that have been fetched on the current record. + */ getFields(): string[]; /** - * Returns the type of the record. - */ + * Returns the type of the record. + */ getType(): string; /** - * Returns a copy of the internal representation of the record. - */ + * Returns a copy of the internal representation of the record. + */ inspect(): any; /** - * Returns the value of a scalar field. May throw if the given field is - * present but not actually scalar. - */ + * Returns the value of a scalar field. May throw if the given field is + * present but not actually scalar. + */ getValue(name: string, args?: Variables): any; /** - * Returns an inspector for the given scalar "linked" field (a field whose - * value is another RelayInMemoryRecordSource instead of a scalar). May throw if the field is - * present but not a scalar linked record. - */ + * Returns an inspector for the given scalar "linked" field (a field whose + * value is another RelayInMemoryRecordSource instead of a scalar). May throw if the field is + * present but not a scalar linked record. + */ getLinkedRecord(name: string, args?: Variables): RecordInspector | null; /** - * Returns an array of inspectors for the given plural "linked" field (a field - * whose value is an array of Records instead of a scalar). May throw if the - * field is present but not a plural linked record. - */ + * Returns an array of inspectors for the given plural "linked" field (a field + * whose value is an array of Records instead of a scalar). May throw if the + * field is present but not a plural linked record. + */ getLinkedRecords(name: string, args?: Variables): RecordInspector[] | null; } -declare class RelayRecordSourceInspector { +export class RelayRecordSourceInspector { constructor(source: RecordSource); static getForEnvironment(environment: Environment): RelayRecordSourceInspector; /** - * Returns an inspector for the record with the given id, or null/undefined if - * that record is deleted/unfetched. - */ + * Returns an inspector for the record with the given id, or null/undefined if + * that record is deleted/unfetched. + */ get(dataID: DataID): RecordInspector | null; /** - * Returns a list of ": " for each record in the store that has an - * `id`. - */ + * Returns a list of ": " for each record in the store that has an + * `id`. + */ getNodes(): RecordSummary[]; /** - * Returns a list of ": " for all records in the store including - * those that do not have an `id`. - */ + * Returns a list of ": " for all records in the store including + * those that do not have an `id`. + */ getRecords(): RecordSummary[]; /** - * Returns an inspector for the synthesized "root" object, allowing access to - * e.g. the `viewer` object or the results of other fields on the "Query" - * type. - */ + * Returns an inspector for the synthesized "root" object, allowing access to + * e.g. the `viewer` object or the results of other fields on the "Query" + * type. + */ getRoot(): RecordInspector; } @@ -848,129 +848,129 @@ export type RecordSourceInspector = RelayRecordSourceInspector; // ~~~~~~~~~~~~~~~~~~~~~ // RelayObservable // ~~~~~~~~~~~~~~~~~~~~~ -interface Subscription { +export interface Subscription { unsubscribe(): void; readonly closed: boolean; } -interface Observer { +export interface Observer { start?(subscription: Subscription): any; next?(nextThing: T): any; error?(error: Error): any; complete?(): any; unsubscribe?(subscription: Subscription): any; } -type Source = () => any; -interface Subscribable { +export type Source = () => any; // tslint:disable-line:no-unnecessary-generics +export interface Subscribable { subscribe(observer: Observer): Subscription; } -type ObservableFromValue = RelayObservable | Promise | T; -declare class RelayObservable implements Subscribable { +export type ObservableFromValue = RelayObservable | Promise | T; +export class RelayObservable implements Subscribable { _source: Source; constructor(source: Source); /** - * When an unhandled error is detected, it is reported to the host environment - * (the ESObservable spec refers to this method as "HostReportErrors()"). - * - * The default implementation in development builds re-throws errors in a - * separate frame, and from production builds does nothing (swallowing - * uncaught errors). - * - * Called during application initialization, this method allows - * application-specific handling of uncaught errors. Allowing, for example, - * integration with error logging or developer tools. - */ + * When an unhandled error is detected, it is reported to the host environment + * (the ESObservable spec refers to this method as "HostReportErrors()"). + * + * The default implementation in development builds re-throws errors in a + * separate frame, and from production builds does nothing (swallowing + * uncaught errors). + * + * Called during application initialization, this method allows + * application-specific handling of uncaught errors. Allowing, for example, + * integration with error logging or developer tools. + */ static onUnhandledError(callback: (error: Error) => any): void; /** - * Accepts various kinds of data sources, and always returns a RelayObservable - * useful for accepting the result of a user-provided FetchFunction. - */ + * Accepts various kinds of data sources, and always returns a RelayObservable + * useful for accepting the result of a user-provided FetchFunction. + */ static from(obj: ObservableFromValue): RelayObservable; /** - * Creates a RelayObservable, given a function which expects a legacy - * Relay Observer as the last argument and which returns a Disposable. - * - * To support migration to Observable, the function may ignore the - * legacy Relay observer and directly return an Observable instead. - */ + * Creates a RelayObservable, given a function which expects a legacy + * Relay Observer as the last argument and which returns a Disposable. + * + * To support migration to Observable, the function may ignore the + * legacy Relay observer and directly return an Observable instead. + */ static fromLegacy( callback: (legacyObserver: LegacyObserver) => Disposable | RelayObservable ): RelayObservable; /** - * Returns a new Observable which returns the same values as this one, but - * modified so that the provided Observer is called to perform a side-effects - * for all events emitted by the source. - * - * Any errors that are thrown in the side-effect Observer are unhandled, and - * do not affect the source Observable or its Observer. - * - * This is useful for when debugging your Observables or performing other - * side-effects such as logging or performance monitoring. - */ + * Returns a new Observable which returns the same values as this one, but + * modified so that the provided Observer is called to perform a side-effects + * for all events emitted by the source. + * + * Any errors that are thrown in the side-effect Observer are unhandled, and + * do not affect the source Observable or its Observer. + * + * This is useful for when debugging your Observables or performing other + * side-effects such as logging or performance monitoring. + */ do(observer: Observer): RelayObservable; /** - * Returns a new Observable which returns the same values as this one, but - * modified so that the finally callback is performed after completion, - * whether normal or due to error or unsubscription. - * - * This is useful for cleanup such as resource finalization. - */ + * Returns a new Observable which returns the same values as this one, but + * modified so that the finally callback is performed after completion, + * whether normal or due to error or unsubscription. + * + * This is useful for cleanup such as resource finalization. + */ finally(fn: () => any): RelayObservable; /** - * Returns a new Observable which is identical to this one, unless this - * Observable completes before yielding any values, in which case the new - * Observable will yield the values from the alternate Observable. - * - * If this Observable does yield values, the alternate is never subscribed to. - * - * This is useful for scenarios where values may come from multiple sources - * which should be tried in order, i.e. from a cache before a network. - */ + * Returns a new Observable which is identical to this one, unless this + * Observable completes before yielding any values, in which case the new + * Observable will yield the values from the alternate Observable. + * + * If this Observable does yield values, the alternate is never subscribed to. + * + * This is useful for scenarios where values may come from multiple sources + * which should be tried in order, i.e. from a cache before a network. + */ ifEmpty(alternate: RelayObservable): RelayObservable; /** - * Observable's primary API: returns an unsubscribable Subscription to the - * source of this Observable. - */ + * Observable's primary API: returns an unsubscribable Subscription to the + * source of this Observable. + */ subscribe(observer: Observer): Subscription; /** - * Supports subscription of a legacy Relay Observer, returning a Disposable. - */ + * Supports subscription of a legacy Relay Observer, returning a Disposable. + */ subscribeLegacy(legacyObserver: LegacyObserver): Disposable; /** - * Returns a new Observerable where each value has been transformed by - * the mapping function. - */ + * Returns a new Observerable where each value has been transformed by + * the mapping function. + */ map(fn: (thing: T) => U): RelayObservable; /** - * Returns a new Observable where each value is replaced with a new Observable - * by the mapping function, the results of which returned as a single - * concattenated Observable. - */ + * Returns a new Observable where each value is replaced with a new Observable + * by the mapping function, the results of which returned as a single + * concattenated Observable. + */ concatMap(fn: (thing: T) => ObservableFromValue): RelayObservable; /** - * Returns a new Observable which first mirrors this Observable, then when it - * completes, waits for `pollInterval` milliseconds before re-subscribing to - * this Observable again, looping in this manner until unsubscribed. - * - * The returned Observable never completes. - */ + * Returns a new Observable which first mirrors this Observable, then when it + * completes, waits for `pollInterval` milliseconds before re-subscribing to + * this Observable again, looping in this manner until unsubscribed. + * + * The returned Observable never completes. + */ poll(pollInterval: number): RelayObservable; /** - * Returns a Promise which resolves when this Observable yields a first value - * or when it completes with no value. - */ + * Returns a Promise which resolves when this Observable yields a first value + * or when it completes with no value. + */ toPromise(): Promise; } @@ -980,13 +980,13 @@ export type Observable = RelayObservable; // commitLocalUpdate // ~~~~~~~~~~~~~~~~~~~~~ // exposed through RelayModern, not Runtime directly -type commitLocalUpdate = (environment: Environment, updater: StoreUpdater) => void; +export type commitLocalUpdate = (environment: Environment, updater: StoreUpdater) => void; // ~~~~~~~~~~~~~~~~~~~~~ // commitRelayModernMutation // ~~~~~~~~~~~~~~~~~~~~~ // exposed through RelayModern, not Runtime directly -interface MutationConfig { +export interface MutationConfig { configs?: RelayMutationConfig[]; mutation: GraphQLTaggedNode; variables: Variables; @@ -997,13 +997,13 @@ interface MutationConfig { optimisticResponse?: object; updater?: SelectorStoreUpdater; } -declare function commitRelayModernMutation(environment: Environment, config: MutationConfig): Disposable; +export function commitRelayModernMutation(environment: Environment, config: MutationConfig): Disposable; // ~~~~~~~~~~~~~~~~~~~~~ // applyRelayModernOptimisticMutation // ~~~~~~~~~~~~~~~~~~~~~ // exposed through RelayModern, not Runtime directly -interface OptimisticMutationConfig { +export interface OptimisticMutationConfig { configs?: RelayMutationConfig[]; mutation: GraphQLTaggedNode; variables: Variables; @@ -1016,19 +1016,19 @@ interface OptimisticMutationConfig { // ~~~~~~~~~~~~~~~~~~~~~ // exposed through RelayModern, not Runtime directly /** - * A helper function to fetch the results of a query. Note that results for - * fragment spreads are masked: fields must be explicitly listed in the query in - * order to be accessible in the result object. - * - * NOTE: This module is primarily intended for integrating with classic APIs. - * Most product code should use a Renderer or Container. - * - * TODO(t16875667): The return type should be `Promise`, but - * that's not really helpful as `SelectorData` is essentially just `mixed`. We - * can probably leverage generated flow types here to return the real expected - * shape. - */ -declare function fetchRelayModernQuery( + * A helper function to fetch the results of a query. Note that results for + * fragment spreads are masked: fields must be explicitly listed in the query in + * order to be accessible in the result object. + * + * NOTE: This module is primarily intended for integrating with classic APIs. + * Most product code should use a Renderer or Container. + * + * TODO(t16875667): The return type should be `Promise`, but + * that's not really helpful as `SelectorData` is essentially just `mixed`. We + * can probably leverage generated flow types here to return the real expected + * shape. + */ +export function fetchRelayModernQuery( environment: any, // FIXME - $FlowFixMe in facebook source code taggedNode: GraphQLTaggedNode, variables: Variables, @@ -1039,7 +1039,7 @@ declare function fetchRelayModernQuery( // requestRelaySubscription // ~~~~~~~~~~~~~~~~~~~~~ // exposed through RelayModern, not Runtime directly -interface GraphQLSubscriptionConfig { +export interface GraphQLSubscriptionConfig { configs?: RelayMutationConfig[]; subscription: GraphQLTaggedNode; variables: Variables; @@ -1048,4 +1048,4 @@ interface GraphQLSubscriptionConfig { onNext?(response: object | null | undefined): void; updater?(store: RecordSourceSelectorProxy): void; } -declare function requestRelaySubscription(environment: Environment, config: GraphQLSubscriptionConfig): Disposable; +export function requestRelaySubscription(environment: Environment, config: GraphQLSubscriptionConfig): Disposable; diff --git a/types/relay-runtime/tsconfig.json b/types/relay-runtime/tsconfig.json index dd77fca0e4..8aed884320 100644 --- a/types/relay-runtime/tsconfig.json +++ b/types/relay-runtime/tsconfig.json @@ -8,6 +8,7 @@ "noImplicitAny": true, "noImplicitThis": true, "strictNullChecks": true, + "strictFunctionTypes": true, "baseUrl": "../", "typeRoots": [ "../" From 5116960f140fedcc4b7e31844c1f172511526713 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Ferreira?= Date: Thu, 19 Oct 2017 02:21:02 +1100 Subject: [PATCH 146/506] [loglevel] Correct signature for setDefaultLevel. Fixes #20058. (#20605) * [loglevel] Correct signature for setDefaultLevel. Fixes #20058. Signed-off-by: jmnsf * Extracts type, adds UMD tests Signed-off-by: jmnsf --- types/loglevel/index.d.ts | 29 ++++++++++++----------- types/loglevel/test/loglevel-tests.ts | 6 +++++ types/loglevel/test/loglevel-umd-tests.ts | 5 ++++ types/loglevel/tsconfig.json | 2 +- 4 files changed, 27 insertions(+), 15 deletions(-) diff --git a/types/loglevel/index.d.ts b/types/loglevel/index.d.ts index da58c45483..3ad9faf707 100644 --- a/types/loglevel/index.d.ts +++ b/types/loglevel/index.d.ts @@ -28,6 +28,18 @@ declare namespace log { */ type LogLevelNumbers = LogLevel[keyof LogLevel]; + /** + * Possible log level descriptors, may be string, lower or upper case, or number. + */ + type LogLevelDesc = LogLevelNumbers + | 'trace' + | 'debug' + | 'info' + | 'warn' + | 'error' + | 'silent' + | keyof LogLevel; + type LoggingMethod = (...message: any[]) => void; type MethodFactory = (methodName: string, level: LogLevelNumbers, loggerName: string) => LoggingMethod; @@ -91,18 +103,7 @@ declare namespace log { * back to cookies if not. If neither is available in the current environment (i.e. in Node), or if you pass * false as the optional 'persist' second argument, persistence will be skipped. */ - setLevel( - level: - LogLevelNumbers - | 'trace' - | 'debug' - | 'info' - | 'warn' - | 'error' - | 'silent' - | keyof LogLevel, - persist?: boolean - ): void; + setLevel(level: LogLevelDesc, persist?: boolean): void; /** * If you're using another JavaScript library that exposes a 'log' global, you can run into conflicts with loglevel. @@ -132,9 +133,9 @@ declare namespace log { * The level argument takes is the same values that you might pass to setLevel(). Levels set using * setDefaultLevel() never persist to subsequent page loads. * - * @param level as the value from the enum + * @param level as a string, like 'error' (case-insensitive) or as a number from 0 to 5 (or as log.levels. values) */ - setDefaultLevel(level: LogLevel): void; + setDefaultLevel(level: LogLevelDesc): void; /** * This gets you a new logger object that works exactly like the root log object, but can have its level and diff --git a/types/loglevel/test/loglevel-tests.ts b/types/loglevel/test/loglevel-tests.ts index 453f81d28d..5c63c4488a 100644 --- a/types/loglevel/test/loglevel-tests.ts +++ b/types/loglevel/test/loglevel-tests.ts @@ -18,6 +18,11 @@ moduleLog.setLevel('ERROR', false); moduleLog.setLevel(moduleLog.levels.WARN); moduleLog.setLevel(moduleLog.levels.WARN, false); +moduleLog.setDefaultLevel(0); +moduleLog.setDefaultLevel('error'); +moduleLog.setDefaultLevel('ERROR'); +moduleLog.setDefaultLevel(moduleLog.levels.WARN); + moduleLog.enableAll(false); moduleLog.enableAll(); moduleLog.disableAll(true); @@ -27,6 +32,7 @@ const logLevel = moduleLog.getLevel(); const testLogger: moduleLog.Logger = moduleLog.getLogger('TestLogger'); +testLogger.setDefaultLevel(logLevel); testLogger.setLevel(logLevel); testLogger.warn('logging test'); diff --git a/types/loglevel/test/loglevel-umd-tests.ts b/types/loglevel/test/loglevel-umd-tests.ts index 97e9fe617a..3deeb20033 100644 --- a/types/loglevel/test/loglevel-umd-tests.ts +++ b/types/loglevel/test/loglevel-umd-tests.ts @@ -14,6 +14,10 @@ log.setLevel("error", false); log.setLevel(log.levels.WARN); log.setLevel(log.levels.WARN, false); +log.setDefaultLevel(1); +log.setDefaultLevel("warn"); +log.setDefaultLevel(log.levels.INFO); + log.enableAll(false); log.enableAll(); log.disableAll(true); @@ -23,6 +27,7 @@ const logLevel = log.getLevel(); const testLogger: log.Logger = log.getLogger("TestLogger"); +testLogger.setDefaultLevel(logLevel); testLogger.setLevel(logLevel); testLogger.warn("logging test"); diff --git a/types/loglevel/tsconfig.json b/types/loglevel/tsconfig.json index efcc4efad8..4d370f7a24 100644 --- a/types/loglevel/tsconfig.json +++ b/types/loglevel/tsconfig.json @@ -21,4 +21,4 @@ "test/loglevel-tests.ts", "test/loglevel-umd-tests.ts" ] -} \ No newline at end of file +} From e3f8c31b2a0faa3d2e17e409b08e5d503be026ac Mon Sep 17 00:00:00 2001 From: Andy Date: Wed, 18 Oct 2017 08:27:08 -0700 Subject: [PATCH 147/506] Rename stripe-node to stripe (#20644) * Rename stripe-node to stripe * Export class instead of function * Rename import --- types/{stripe-node => stripe}/index.d.ts | 145 ++++++++---------- .../stripe-tests.ts} | 52 +++---- types/{stripe-node => stripe}/tsconfig.json | 2 +- 3 files changed, 94 insertions(+), 105 deletions(-) rename types/{stripe-node => stripe}/index.d.ts (99%) rename types/{stripe-node/stripe-node-tests.ts => stripe/stripe-tests.ts} (95%) rename types/{stripe-node => stripe}/tsconfig.json (93%) diff --git a/types/stripe-node/index.d.ts b/types/stripe/index.d.ts similarity index 99% rename from types/stripe-node/index.d.ts rename to types/stripe/index.d.ts index daa91487f7..d67ee5d115 100644 --- a/types/stripe-node/index.d.ts +++ b/types/stripe/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for stripe-node 4.7 +// Type definitions for stripe 4.7 // Project: https://github.com/stripe/stripe-node/ // Definitions by: William Johnston // Peter Harris @@ -8,88 +8,79 @@ /// -declare module 'stripe' { - var out: StripeNode.StripeExport; - export = out; +declare class Stripe { + DEFAULT_HOST: string; + DEFAULT_PORT: string; + DEFAULT_BASE_PATH: string; + DEFAULT_API_VERSION: string; + DEFAULT_TIMEOUT: number; + PACKAGE_VERSION: string; + USER_AGENT: { + bindings_version: string; + lang: string; + lang_version: string; + platform: string; + publisher: string; + uname: string; + }; + USER_AGENT_SERIALIZED: string; + + resources: typeof Stripe.resources; + StripeResource: typeof Stripe.StripeResource; + + constructor(apiKey: string, version?: string); + + accounts: Stripe.resources.Accounts; + balance: Stripe.resources.Balance; + charges: Stripe.resources.Charges; + coupons: Stripe.resources.Coupons; + customers: Stripe.resources.Customers; + disputes: Stripe.resources.Disputes; + events: Stripe.resources.Events; + invoices: Stripe.resources.Invoices; + invoiceItems: Stripe.resources.InvoiceItems; + plans: Stripe.resources.Plans; + /** + * @deprecated + */ + recipientCards: Stripe.resources.RecipientCards; + /** + * @deprecated + */ + recipients: Stripe.resources.Recipients; + subscriptions: Stripe.resources.Subscriptions; + tokens: Stripe.resources.Tokens; + transfers: Stripe.resources.Transfers; + applicationFees: Stripe.resources.ApplicationFees; + fileUploads: Stripe.resources.FileUploads; + bitcoinReceivers: Stripe.resources.BitcoinReceivers; + refunds: Stripe.resources.Refunds; + countrySpecs: Stripe.resources.CountrySpecs; + orders: Stripe.resources.Orders; + products: Stripe.resources.Products; + skus: Stripe.resources.SKUs; + webhooks: Stripe.resources.WebHooks; + + setHost(host: string): void; + setHost(host: string, port: string|number): void; + setHost(host: string, port: string|number, protocol: string): void; + + setProtocol(protocol: string): void; + setPort(port: string|number): void; + setApiVersion(version?: string): void; + setApiKey(key?: string): void; + setTimeout(timeout?: number): void; + setHttpAgent(agent: string): void; + getConstant(c: string): any; + getClientUserAgent(response: (userAgent: string) => void): void; } +export = Stripe; -declare namespace StripeNode { - interface StripeExport extends StripeStatic { - new (apiKey: string, version?: string): Stripe; - (apiKey: string, version?: string): Stripe; - } - - interface StripeStatic { - DEFAULT_HOST: string; - DEFAULT_PORT: string; - DEFAULT_BASE_PATH: string; - DEFAULT_API_VERSION: string; - DEFAULT_TIMEOUT: number; - PACKAGE_VERSION: string; - USER_AGENT: { - bindings_version: string; - lang: string; - lang_version: string; - platform: string; - publisher: string; - uname: string; - }; - USER_AGENT_SERIALIZED: string; - - resources: typeof resources; - StripeResource: typeof StripeResource; - } - +declare namespace Stripe { // Helper type IBankAccount = bankAccounts.IBankAccount; type ICard = cards.ICard; - interface Stripe extends StripeStatic { - accounts: resources.Accounts; - balance: resources.Balance; - charges: resources.Charges; - coupons: resources.Coupons; - customers: resources.Customers; - disputes: resources.Disputes; - events: resources.Events; - invoices: resources.Invoices; - invoiceItems: resources.InvoiceItems; - plans: resources.Plans; - /** - * @deprecated - */ - recipientCards: resources.RecipientCards; - /** - * @deprecated - */ - recipients: resources.Recipients; - subscriptions: resources.Subscriptions; - tokens: resources.Tokens; - transfers: resources.Transfers; - applicationFees: resources.ApplicationFees; - fileUploads: resources.FileUploads; - bitcoinReceivers: resources.BitcoinReceivers; - refunds: resources.Refunds; - countrySpecs: resources.CountrySpecs; - orders: resources.Orders; - products: resources.Products; - skus: resources.SKUs; - webhooks: resources.WebHooks; - - setHost(host: string): void; - setHost(host: string, port: string|number): void; - setHost(host: string, port: string|number, protocol: string): void; - - setProtocol(protocol: string): void; - setPort(port: string|number): void; - setApiVersion(version?: string): void; - setApiKey(key?: string): void; - setTimeout(timeout?: number): void; - setHttpAgent(agent: string): void; - getConstant(c: string): any; - getClientUserAgent(response: (userAgent: string) => void): void; - } - namespace accounts { interface IAccount extends IResourceObject, IAccountShared { /** diff --git a/types/stripe-node/stripe-node-tests.ts b/types/stripe/stripe-tests.ts similarity index 95% rename from types/stripe-node/stripe-node-tests.ts rename to types/stripe/stripe-tests.ts index f8a3f5c353..c4b291a7ed 100644 --- a/types/stripe-node/stripe-node-tests.ts +++ b/types/stripe/stripe-tests.ts @@ -1,11 +1,9 @@ -import StripeNode = require('stripe'); +import Stripe = require('stripe'); -var stripeTor = new StripeNode("sk_test_BF573NobVn98OiIsPAv7A04K"); -var stripe = StripeNode("sk_test_BF573NobVn98OiIsPAv7A04K") +var stripe = new Stripe("sk_test_BF573NobVn98OiIsPAv7A04K") stripe.setApiVersion('2016-03-07'); - //#region Balance tests // ################################################################################## @@ -168,7 +166,7 @@ stripe.charges.updateRefund( "ch_15fvyXEe31JkLCeQOo0SwFk9", "re_15jzA4Ee31JkLCeQcxbTbjaL", { metadata: { key: "value" } }, - function (err: StripeNode.IStripeError, refund: StripeNode.refunds.IRefund) { + function (err: Stripe.IStripeError, refund: Stripe.refunds.IRefund) { // asynchronously called } @@ -315,13 +313,13 @@ stripe.customers.createSource( "cus_5rfJKDJkuxzh5Q", { source: "tok_15V2YhEe31JkLCeQy9iUgsJX" }, function (err, source) { - var card = source; - var bankAcc = source; + var card = source; + var bankAcc = source; } ); stripe.customers.createSource("cus_5rfJKDJkuxzh5Q", { source: "tok_15V2YhEe31JkLCeQy9iUgsJX" }).then(function (source) { - var card = source; - var bankAcc = source; + var card = source; + var bankAcc = source; }); stripe.customers.createSource( @@ -336,7 +334,7 @@ stripe.customers.createSource( }, function (err, card) { // asynchronously called - var obj: StripeNode.ICard = card; + var obj: Stripe.ICard = card; } ); stripe.customers.createSource( @@ -351,21 +349,21 @@ stripe.customers.createSource( }).then( function (card) { // asynchronously called - var obj: StripeNode.ICard = card; + var obj: Stripe.ICard = card; } ); stripe.customers.createSource( "cus_5rfJKDJkuxzh5Q", { source: "btok_8E264Lxsbyvj3E" }, - function (err: StripeNode.IStripeError, bankAcc: StripeNode.IBankAccount) { + function (err: Stripe.IStripeError, bankAcc: Stripe.IBankAccount) { // asynchronously called bankAcc.bank_name; } ); stripe.customers.createSource( "cus_5rfJKDJkuxzh5Q", - { source: "btok_8E264Lxsbyvj3E" }).then(function (bankAcc: StripeNode.IBankAccount) { + { source: "btok_8E264Lxsbyvj3E" }).then(function (bankAcc: Stripe.IBankAccount) { // asynchronously called bankAcc.bank_name; } @@ -376,14 +374,14 @@ stripe.customers.retrieveCard( "card_15fvyXEe31JkLCeQ9KMktP5S", function (err, card) { // asynchronously called - var obj: StripeNode.ICard = card; + var obj: Stripe.ICard = card; } ); stripe.customers.retrieveCard( "cus_5rfJKDJkuxzh5Q", "card_15fvyXEe31JkLCeQ9KMktP5S").then(function (card) { // asynchronously called - var obj: StripeNode.ICard = card; + var obj: Stripe.ICard = card; }); stripe.customers.updateCard( @@ -392,7 +390,7 @@ stripe.customers.updateCard( { name: "Jane Austen" }, function (err, card) { // asynchronously called - var obj: StripeNode.ICard = card; + var obj: Stripe.ICard = card; } ); @@ -401,7 +399,7 @@ stripe.customers.updateCard( "card_15fvyXEe31JkLCeQ9KMktP5S", { name: "Jane Austen" }).then(function (card) { // asynchronously called - var obj: StripeNode.ICard = card; + var obj: Stripe.ICard = card; }); stripe.customers.deleteCard( @@ -635,21 +633,21 @@ stripe.accounts.list( // ################################################################################## stripe.accounts.createExternalAccount("", { external_account: "btok_8E264Lxsbyvj3E" }, function (err, extAcc) { - var card = extAcc; - var bankAcc = extAcc; + var card = extAcc; + var bankAcc = extAcc; }); stripe.accounts.createExternalAccount("", { external_account: "tok_15V2YhEe31JkLCeQy9iUgsJX" }).then(function (extAcc) { - var card = extAcc; - var bankAcc = extAcc; + var card = extAcc; + var bankAcc = extAcc; }); stripe.accounts.createExternalAccount("", { external_account: "tok_15V2YhEe31JkLCeQy9iUgsJX" }, { stripe_account: "acct_17wV8KOoqMF9a2xk" }).then(function (extAcc) { - var card = extAcc; - var bankAcc = extAcc; + var card = extAcc; + var bankAcc = extAcc; }); stripe.accounts.createExternalAccount("", { external_account: "tok_15V2YhEe31JkLCeQy9iUgsJX" }, "acct_17wV8KOoqMF9a2xk").then(function (extAcc) { - var card = extAcc; - var bankAcc = extAcc; + var card = extAcc; + var bankAcc = extAcc; }); //#endregion @@ -712,7 +710,7 @@ const webhookRequest = { }; const webhookSecret = ''; -const event = stripe.webhooks.constructEvent( +const event = stripe.webhooks.constructEvent( webhookRequest.rawBody, webhookRequest.headers['stripe-signature'], webhookSecret @@ -752,7 +750,7 @@ stripe.coupons.retrieve("25OFF").then(function (coupon) { stripe.coupons.update("25OFF", { metadata: { key: "value" } -}, function (err: StripeNode.IStripeError, coupon: StripeNode.coupons.ICoupon) { +}, function (err: Stripe.IStripeError, coupon: Stripe.coupons.ICoupon) { // asynchronously called }); stripe.coupons.update("25OFF", { diff --git a/types/stripe-node/tsconfig.json b/types/stripe/tsconfig.json similarity index 93% rename from types/stripe-node/tsconfig.json rename to types/stripe/tsconfig.json index 7723446cb5..f2ac469aad 100644 --- a/types/stripe-node/tsconfig.json +++ b/types/stripe/tsconfig.json @@ -18,6 +18,6 @@ }, "files": [ "index.d.ts", - "stripe-node-tests.ts" + "stripe-tests.ts" ] } \ No newline at end of file From cfac231a5b2dbc94da42c747b039fe7a61a52a8f Mon Sep 17 00:00:00 2001 From: lei xia Date: Wed, 18 Oct 2017 08:35:39 -0700 Subject: [PATCH 148/506] add zookeeper definition (#20588) * add zookeeper definition * type defintion fixed * zookeeper --- types/zookeeper/index.d.ts | 104 +++++++++++++++++++++++++++++ types/zookeeper/tsconfig.json | 23 +++++++ types/zookeeper/tslint.json | 1 + types/zookeeper/zookeeper-tests.ts | 24 +++++++ 4 files changed, 152 insertions(+) create mode 100644 types/zookeeper/index.d.ts create mode 100644 types/zookeeper/tsconfig.json create mode 100644 types/zookeeper/tslint.json create mode 100644 types/zookeeper/zookeeper-tests.ts diff --git a/types/zookeeper/index.d.ts b/types/zookeeper/index.d.ts new file mode 100644 index 0000000000..92d1b06c96 --- /dev/null +++ b/types/zookeeper/index.d.ts @@ -0,0 +1,104 @@ +// Type definitions for zookeeper 3.4 +// Project: https://github.com/yfinkelstein/node-zookeeper#readme +// Definitions by: xialeistudio +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 +/// + +type ACL = number | { perms: number, scheme: string, auth: string }; + +interface Stat { + czxid: number; + mzxid: number; + ctime: number; + mtime: number; + version: number; + cversion: number; + aversion: number; + ephemeralOwner: string; + dataLength: number; + numChildren: number; + pzxid: number; +} + +interface ConnectionOptions { + connect?: string; + timeout?: number; + host_order_deterministic?: boolean; + data_as_buffer?: boolean; + debug_level?: number; +} + +type child2_callback = (rc: number, error: string, children: string[], stat: Stat) => void; +type watch_callback = (type: number, state: number, path: string) => void; +type acl_callback = (rc: number, error: string, acl: ACL[], stat: Stat) => void; + +type Callback = (rc: number, error: string, value: T) => void; +export = Zookeeper; + +declare class Zookeeper extends Client { + constructor(options: ConnectionOptions); + + connect(callback: (e: Error | null, client: Client) => void): void; + + close(): void; +} + +declare class Client { + client_id?: string; + client_password?: any; + state?: number; + timeout?: number; + is_unrecoverable?: boolean; + + a_create(path: string, data: string | Buffer, flags: number, callback: Callback): void; + + mkdirp(path: string, callback: (e?: Error) => void): void; + + a_exists(path: string, watch: boolean, callback: Callback): void; + + a_get(path: string, watch: boolean, callback: Callback): void; + + a_get_children(path: string, watch: boolean, callback: Callback): void; + + a_get_children2(path: string, watch: boolean, callback: child2_callback): void; + + a_set(path: string, data: Buffer | string, version: number, callback: Callback): void; + + a_delete_(path: string, version: number, callback: Callback): void; + + a_set_acl(path: string, version: number, acl: ACL[], callback: Callback): void; + + a_get_acl(path: string, callback: acl_callback): void; + + add_auth(schema: string, auth: string, callback: Callback): void; + + aw_exists(path: string, watch_callback: watch_callback, callback: Callback): void; + + aw_get(path: string, watch_callback: watch_callback, callback: Callback): void; + + aw_get_children(path: string, watch_callback: watch_callback, callback: Callback): void; + + aw_get_children2(path: string, watch_callback: watch_callback, callback: child2_callback): void; +} + +declare namespace Zookeeper { + // log levels + const ZOO_LOG_LEVEL_ERROR = 1; + const ZOO_LOG_LEVEL_WARN = 2; + const ZOO_LOG_LEVEL_INFO = 3; + const ZOO_LOG_LEVEL_DEBUG = 4; + // acl permissions + const ZOO_OPEN_ACL_UNSAFE: number; + const ZOO_READ_ACL_UNSAFE: number; + const ZOO_CREATOR_ALL_ACL: number; + const ZOO_PERM_READ = 1; + const ZOO_PERM_WRITE = 2; + const ZOO_PERM_CREATE = 4; + const ZOO_PERM_DELETE = 8; + const ZOO_PERM_ADMIN = 16; + const ZOO_PERM_ALL = 31; + // Dunno + const ZOO_EPHEMERAL = 1; + const ZOO_SEQUENCE = 2; +} diff --git a/types/zookeeper/tsconfig.json b/types/zookeeper/tsconfig.json new file mode 100644 index 0000000000..281f393e23 --- /dev/null +++ b/types/zookeeper/tsconfig.json @@ -0,0 +1,23 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es6" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "strictFunctionTypes": true, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "zookeeper-tests.ts" + ] +} diff --git a/types/zookeeper/tslint.json b/types/zookeeper/tslint.json new file mode 100644 index 0000000000..3db14f85ea --- /dev/null +++ b/types/zookeeper/tslint.json @@ -0,0 +1 @@ +{ "extends": "dtslint/dt.json" } diff --git a/types/zookeeper/zookeeper-tests.ts b/types/zookeeper/zookeeper-tests.ts new file mode 100644 index 0000000000..63f4fe5d09 --- /dev/null +++ b/types/zookeeper/zookeeper-tests.ts @@ -0,0 +1,24 @@ +import ZooKeeper = require('zookeeper'); + +const zk = new ZooKeeper({ + connect: "localhost:2181", + timeout: 2000, + debug_level: ZooKeeper.ZOO_LOG_LEVEL_WARN, + host_order_deterministic: false, + data_as_buffer: true, +}); +// test1 +zk.connect((e) => { + if (e) throw e; + console.log("zk session established, id=%s", zk.client_id); + zk.a_create("/node.js1", "some value", ZooKeeper.ZOO_SEQUENCE | ZooKeeper.ZOO_EPHEMERAL, (rc, error, path) => { + if (rc !== 0) { + console.log("zk node create result: %d, error: '%s', path=%s", rc, error, path); + } else { + console.log("created zk node %s", path); + process.nextTick(() => { + zk.close(); + }); + } + }); +}); From a7383ba782c42c68f6e94f04dcfc08d68cd96051 Mon Sep 17 00:00:00 2001 From: ajaks328 Date: Wed, 18 Oct 2017 08:38:19 -0700 Subject: [PATCH 149/506] add(selenium-webdriver): SeleniumServer to remote.d.ts (#20516) * add(selenium-webdriver): SeleniumServer to remote.d.ts * adding test for SeleniumServer * Add missing interface definition and tests * Removing "undefined" from optional interface definitions * Moving comments to invidual members --- types/selenium-webdriver/remote.d.ts | 46 +++++++++++++++++++++++++ types/selenium-webdriver/test/remote.ts | 18 ++++++++++ 2 files changed, 64 insertions(+) diff --git a/types/selenium-webdriver/remote.d.ts b/types/selenium-webdriver/remote.d.ts index d1c5e4616c..3ef73c953d 100644 --- a/types/selenium-webdriver/remote.d.ts +++ b/types/selenium-webdriver/remote.d.ts @@ -157,6 +157,52 @@ export namespace DriverService { } } +/** + * Manages the life and death of the + * + * standalone Selenium server. + */ +export class SeleniumServer extends DriverService { + /** + * @param {string} jar Path to the Selenium server jar. + * @param {SeleniumServer.Options=} opt_options Configuration options for the + * server. + * @throws {Error} If the path to the Selenium jar is not specified or if an + * invalid port is specified. + **/ + constructor(jar: string, opt_options?: SeleniumServer.Options); +} + +export namespace SeleniumServer { + /** + * Options for the Selenium server + */ + interface Options { + /** Whether the server should only be accessed on this host's loopback address.*/ + loopback?: boolean; + + /** The port to start the server on (must be > 0). If the port is provided + as a promise, the service will wait for the promise to resolve before starting. */ + port?: number|webdriver.promise.IThenable; + + /** The arguments to pass to the service. If a promise is provided, the + service will wait for it to resolve before starting. */ + args?: string[]|webdriver.promise.IThenable; + + /** The arguments to pass to the JVM. If a promise is provided, the service + will wait for it to resolve before starting. */ + jvmArgs?: string[]|webdriver.promise.IThenable; + + /** The environment variables that should be visible to the server process. + Defaults to inheriting the current process's environment.*/ + env?: {[key: string]: string}; + + /** IO configuration for the spawned server process. For more information, + refer to the documentation of `child_process.spawn`*/ + stdio?: string|Array; + } +} + /** * A {@link webdriver.FileDetector} that may be used when running * against a remote diff --git a/types/selenium-webdriver/test/remote.ts b/types/selenium-webdriver/test/remote.ts index a783101290..014fd33af4 100644 --- a/types/selenium-webdriver/test/remote.ts +++ b/types/selenium-webdriver/test/remote.ts @@ -9,3 +9,21 @@ function TestRemoteFileDetector() { const fileDetector: remote.FileDetector = new remote.FileDetector(); fileDetector.handleFile(driver, 'path/to/file').then((path: string) => { /* empty */ }); } + +function TestSeleniumServer() { + const pathToJar = '/path/to/jar'; + const seleniumServer: remote.SeleniumServer = new remote.SeleniumServer(pathToJar); +} + +function TestSeleniumServerOptions() { + const pathToJar = '/path/to/jar'; + const options: remote.SeleniumServer.Options = { + loopback: false, + port: 4444, + args: ['--testArg'], + jvmArgs: ['--testJvmArg'], + env: {test1: 'test1', test2: 'test2'}, + stdio: 'inherit' + } + const seleniumServer: remote.SeleniumServer = new remote.SeleniumServer(pathToJar, options); +} From 2be8cb24b636010f95acba50484c4a6d6fbfbed9 Mon Sep 17 00:00:00 2001 From: Oliver Joseph Ash Date: Wed, 18 Oct 2017 16:51:36 +0100 Subject: [PATCH 150/506] Correct return type of Node querystring.parse (#20651) * Correct return type of Node querystring.parse https://nodejs.org/api/querystring.html#querystring_querystring_parse_str_sep_eq_options * request-promise-native: require TS 2.2 to fix error from Node typings * Node querystring.parse: return type: query value as array of strings * Fix tests for request, request-promise, request-promise-native --- types/node/index.d.ts | 2 +- types/request-promise-native/index.d.ts | 1 + types/request-promise-native/request-promise-native-tests.ts | 2 +- types/request-promise/request-promise-tests.ts | 2 +- types/request/request-tests.ts | 2 +- 5 files changed, 5 insertions(+), 4 deletions(-) diff --git a/types/node/index.d.ts b/types/node/index.d.ts index c8a62ba3b1..8812044f3f 100644 --- a/types/node/index.d.ts +++ b/types/node/index.d.ts @@ -797,7 +797,7 @@ declare module "querystring" { } export function stringify(obj: T, sep?: string, eq?: string, options?: StringifyOptions): string; - export function parse(str: string, sep?: string, eq?: string, options?: ParseOptions): any; + export function parse(str: string, sep?: string, eq?: string, options?: ParseOptions): { [key: string]: string | string[] }; export function parse(str: string, sep?: string, eq?: string, options?: ParseOptions): T; export function escape(str: string): string; export function unescape(str: string): string; diff --git a/types/request-promise-native/index.d.ts b/types/request-promise-native/index.d.ts index 69b51d0480..02d1fc1520 100644 --- a/types/request-promise-native/index.d.ts +++ b/types/request-promise-native/index.d.ts @@ -2,6 +2,7 @@ // Project: https://github.com/request/request-promise-native // Definitions by: Gustavo Henke // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.2 import request = require('request'); import http = require('http'); diff --git a/types/request-promise-native/request-promise-native-tests.ts b/types/request-promise-native/request-promise-native-tests.ts index 7f26f5c690..469b901143 100644 --- a/types/request-promise-native/request-promise-native-tests.ts +++ b/types/request-promise-native/request-promise-native-tests.ts @@ -282,7 +282,7 @@ rpn.post({ url, oauth }, (e, r, body) => { consumer_key: CONSUMER_KEY, consumer_secret: CONSUMER_SECRET, token: auth_data.oauth_token, - token_secret: req_data.oauth_token_secret, + token_secret: req_data.oauth_token_secret as string, verifier: auth_data.oauth_verifier, }; url = 'https://api.twitter.com/oauth/access_token'; diff --git a/types/request-promise/request-promise-tests.ts b/types/request-promise/request-promise-tests.ts index 97f84a7678..e23a94dd2a 100644 --- a/types/request-promise/request-promise-tests.ts +++ b/types/request-promise/request-promise-tests.ts @@ -304,7 +304,7 @@ request.post({ url, oauth }, (e, r, body) => { consumer_key: CONSUMER_KEY, consumer_secret: CONSUMER_SECRET, token: auth_data.oauth_token, - token_secret: req_data.oauth_token_secret, + token_secret: req_data.oauth_token_secret as string, verifier: auth_data.oauth_verifier, }; const url = 'https://api.twitter.com/oauth/access_token'; diff --git a/types/request/request-tests.ts b/types/request/request-tests.ts index 2bfe7d33b0..093a7b2b5b 100644 --- a/types/request/request-tests.ts +++ b/types/request/request-tests.ts @@ -468,7 +468,7 @@ request.post({url:url, oauth:oauth}, function (e, r, body) { { consumer_key: CONSUMER_KEY , consumer_secret: CONSUMER_SECRET , token: auth_data.oauth_token - , token_secret: req_data.oauth_token_secret + , token_secret: req_data.oauth_token_secret as string , verifier: auth_data.oauth_verifier } , url = 'https://api.twitter.com/oauth/access_token' From 63605aa515aa7db31a5c8469217746ccb8ae2301 Mon Sep 17 00:00:00 2001 From: Jinwoo Lee Date: Wed, 18 Oct 2017 08:54:49 -0700 Subject: [PATCH 151/506] Node: respondWithFile()'s `options` can have onError. (#20659) * respondWithFile()'s `options` can have onError. See the Node document: https://nodejs.org/dist/latest-v8.x/docs/api/http2.html#http2_http2stream_respondwithfile_path_headers_options And also the code: https://github.com/nodejs/node/blob/master/lib/internal/http2/core.js#L1698 * update test --- types/node/index.d.ts | 6 +++++- types/node/node-tests.ts | 9 ++++++++- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/types/node/index.d.ts b/types/node/index.d.ts index 8812044f3f..553b6d6958 100644 --- a/types/node/index.d.ts +++ b/types/node/index.d.ts @@ -6118,6 +6118,10 @@ declare module "http2" { length?: number; } + export interface ServerStreamFileResponseOptionsWithError extends ServerStreamFileResponseOptions { + onError?: (err: NodeJS.ErrnoException) => void; + } + export interface Http2Stream extends stream.Duplex { readonly aborted: boolean; readonly destroyed: boolean; @@ -6264,7 +6268,7 @@ declare module "http2" { pushStream(headers: OutgoingHttpHeaders, options?: StreamPriorityOptions, callback?: (pushStream: ServerHttp2Stream) => void): void; respond(headers?: OutgoingHttpHeaders, options?: ServerStreamResponseOptions): void; respondWithFD(fd: number, headers?: OutgoingHttpHeaders, options?: ServerStreamFileResponseOptions): void; - respondWithFile(path: string, headers?: OutgoingHttpHeaders, options?: ServerStreamFileResponseOptions): void; + respondWithFile(path: string, headers?: OutgoingHttpHeaders, options?: ServerStreamFileResponseOptionsWithError): void; } // Http2Session diff --git a/types/node/node-tests.ts b/types/node/node-tests.ts index 802e47db4e..5a5558b459 100644 --- a/types/node/node-tests.ts +++ b/types/node/node-tests.ts @@ -3286,9 +3286,16 @@ namespace http2_tests { serverHttp2Stream.respondWithFD(0); serverHttp2Stream.respondWithFD(0, headers); serverHttp2Stream.respondWithFD(0, headers, options2); + let options3: http2.ServerStreamFileResponseOptionsWithError = { + onError: (err: NodeJS.ErrnoException) => {}, + statCheck: (stats: fs.Stats, headers: http2.IncomingHttpHeaders, statOptions: http2.StatOptions) => {}, + getTrailers: (trailers: http2.IncomingHttpHeaders) => {}, + offset: 0, + length: 0 + }; serverHttp2Stream.respondWithFile(''); serverHttp2Stream.respondWithFile('', headers); - serverHttp2Stream.respondWithFile('', headers, options2); + serverHttp2Stream.respondWithFile('', headers, options3); } // Http2Server / Http2SecureServer From 0960f82a0b929849dfa6ebc079af5918f98aebc5 Mon Sep 17 00:00:00 2001 From: Oliver Joseph Ash Date: Wed, 18 Oct 2017 16:56:47 +0100 Subject: [PATCH 152/506] Correct type of Node url.query (#20650) * Correct type of Node url.query https://nodejs.org/api/url.html#url_urlobject_query * Add null * Node url.query: query value as array of strings * Node: narrow query type to fix tests --- types/node/index.d.ts | 2 +- types/node/node-tests.ts | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/types/node/index.d.ts b/types/node/index.d.ts index 553b6d6958..d8e8fe3358 100644 --- a/types/node/index.d.ts +++ b/types/node/index.d.ts @@ -2181,7 +2181,7 @@ declare module "url" { pathname?: string; port?: string | number; protocol?: string; - query?: string | { [key: string]: any; }; + query?: string | null | { [key: string]: string | string[] }; search?: string; slashes?: boolean; } diff --git a/types/node/node-tests.ts b/types/node/node-tests.ts index 5a5558b459..c4cd693e03 100644 --- a/types/node/node-tests.ts +++ b/types/node/node-tests.ts @@ -557,7 +557,9 @@ namespace url_tests { { var helloUrl = url.parse('http://example.com/?hello=world', true); - assert.equal(helloUrl.query.hello, 'world'); + if (typeof helloUrl.query !== 'string') { + assert.equal(helloUrl.query.hello, 'world'); + } } { From fe0e86abe4e76c1f8b1eb45eda7d64f0faf7815d Mon Sep 17 00:00:00 2001 From: Ruben Taelman Date: Thu, 19 Oct 2017 01:02:43 +0900 Subject: [PATCH 153/506] Fix incorrect rdf-data-model data factory interface (#20666) --- types/rdf-data-model/index.d.ts | 67 +++----------------- types/rdf-data-model/rdf-data-model-tests.ts | 67 ++++---------------- 2 files changed, 20 insertions(+), 114 deletions(-) diff --git a/types/rdf-data-model/index.d.ts b/types/rdf-data-model/index.d.ts index e7cec4243d..9c15063eee 100644 --- a/types/rdf-data-model/index.d.ts +++ b/types/rdf-data-model/index.d.ts @@ -5,62 +5,11 @@ import * as RDF from "rdf-js"; -export class NamedNode implements RDF.NamedNode { - termType: "NamedNode"; - value: string; - constructor(iri: string); - equals(other: RDF.Term): boolean; -} - -export class BlankNode implements RDF.BlankNode { - static nextId: number; - termType: "BlankNode"; - value: string; - constructor(id?: string); - equals(other: RDF.Term): boolean; -} - -export class Literal implements RDF.Literal { - static readonly langStringDatatype: NamedNode; - termType: "Literal"; - value: string; - language: string; - datatype: RDF.NamedNode; - constructor(value: string, language?: string, datatype?: RDF.NamedNode); - equals(other: RDF.Term): boolean; -} - -export class Variable implements RDF.Variable { - termType: "Variable"; - value: string; - constructor(name: string); - equals(other: RDF.Term): boolean; -} - -export class DefaultGraph implements RDF.DefaultGraph { - termType: "DefaultGraph"; - value: ""; - constructor(); - equals(other: RDF.Term): boolean; -} - -export class Quad implements RDF.Quad { - subject: RDF.Term; - predicate: RDF.Term; - object: RDF.Term; - graph: RDF.Term; - constructor(subject: RDF.Term, predicate: RDF.Term, object: RDF.Term, graph?: RDF.Term); - equals(other: RDF.Quad): boolean; -} - -export class DataFactory implements RDF.DataFactory { - static defaultGraphInstance: RDF.DefaultGraph; - constructor(); - namedNode(value: string): NamedNode; - blankNode(value?: string): BlankNode; - literal(value: string, languageOrDatatype?: string | RDF.NamedNode): Literal; - variable(value: string): Variable; - defaultGraph(): DefaultGraph; - triple(subject: RDF.Term, predicate: RDF.Term, object: RDF.Term): Quad; - quad(subject: RDF.Term, predicate: RDF.Term, object: RDF.Term, graph?: RDF.Term): Quad; -} +export const defaultGraphInstance: RDF.DefaultGraph; +export function namedNode(value: string): RDF.NamedNode; +export function blankNode(value?: string): RDF.BlankNode; +export function literal(value: string, languageOrDatatype?: string | RDF.NamedNode): RDF.Literal; +export function variable(value: string): RDF.Variable; +export function defaultGraph(): RDF.DefaultGraph; +export function triple(subject: RDF.Term, predicate: RDF.Term, object: RDF.Term): RDF.Quad; +export function quad(subject: RDF.Term, predicate: RDF.Term, object: RDF.Term, graph?: RDF.Term): RDF.Quad; diff --git a/types/rdf-data-model/rdf-data-model-tests.ts b/types/rdf-data-model/rdf-data-model-tests.ts index 415df0b8a6..3e794f984d 100644 --- a/types/rdf-data-model/rdf-data-model-tests.ts +++ b/types/rdf-data-model/rdf-data-model-tests.ts @@ -1,65 +1,22 @@ import * as RDF from "rdf-js"; -import { BlankNode, DataFactory, DefaultGraph, Literal, NamedNode, Quad, Variable } from "rdf-data-model"; -import { EventEmitter } from "events"; - -function test_terms() { - // Only types are checked in this tests, - // so this does not have to be functional. - const someTerm: RDF.Term = {}; - - const namedNode: RDF.NamedNode = new NamedNode('http://example.org'); - const tt1: string = namedNode.termType; - const v1: string = namedNode.value; - const b1: boolean = namedNode.equals(someTerm); - - const blankNode1: RDF.BlankNode = new BlankNode(); - const blankNode2: RDF.BlankNode = new BlankNode('b100'); - const tt2: string = blankNode1.termType; - const v2: string = blankNode1.value; - const b2: boolean = blankNode1.equals(someTerm); - - const literal1: RDF.Literal = new Literal('abc', 'en-us'); - const literal2: RDF.Literal = new Literal('abc', 'en-us', namedNode); - const literal3: RDF.Literal = new Literal('abc', undefined, namedNode); - const tt3: string = literal1.termType; - const v3: string = literal1.value; - const lang: string = literal1.language; - const datatype: RDF.NamedNode = literal1.datatype; - const b3: boolean = literal1.equals(someTerm); - - const variable: RDF.Variable = new Variable('myvar'); - const tt4: string = variable.termType; - const v4: string = variable.value; - const b4: boolean = variable.equals(someTerm); - - const defaultGraph: RDF.DefaultGraph = new DefaultGraph(); - const tt5: string = defaultGraph.termType; - const v5: string = defaultGraph.value; - const b5: boolean = defaultGraph.equals(someTerm); - - const quad: RDF.Quad = new Quad(namedNode, namedNode, namedNode, namedNode); - const s: RDF.Term = quad.subject; - const p: RDF.Term = quad.predicate; - const o: RDF.Term = quad.object; - const g: RDF.Term = quad.graph; - const b: boolean = quad.equals(new Quad(namedNode, namedNode, namedNode)); -} +import * as DataFactory from "rdf-data-model"; function test_datafactory() { - const dataFactory: RDF.DataFactory = new DataFactory(); + const namedNode: RDF.NamedNode = DataFactory.namedNode('http://example.org'); - const namedNode: RDF.NamedNode = dataFactory.namedNode('http://example.org'); + const blankNode1: RDF.BlankNode = DataFactory.blankNode('b1'); + const blankNode2: RDF.BlankNode = DataFactory.blankNode(); - const blankNode1: RDF.BlankNode = dataFactory.blankNode('b1'); - const blankNode2: RDF.BlankNode = dataFactory.blankNode(); + const literal1: RDF.Literal = DataFactory.literal('abc'); + const literal2: RDF.Literal = DataFactory.literal('abc', 'en-us'); + const literal3: RDF.Literal = DataFactory.literal('abc', namedNode); - const literal1: RDF.Literal = dataFactory.literal('abc'); - const literal2: RDF.Literal = dataFactory.literal('abc', 'en-us'); - const literal3: RDF.Literal = dataFactory.literal('abc', namedNode); + const variable: RDF.Variable = DataFactory.variable('v1'); - const variable: RDF.Variable = dataFactory.variable ? dataFactory.variable('v1') : new Variable('myvar'); + const defaultGraph1: RDF.DefaultGraph = DataFactory.defaultGraphInstance; + const defaultGraph2: RDF.DefaultGraph = DataFactory.defaultGraph(); const term: RDF.Term = {}; - const triple: RDF.Quad = dataFactory.triple(term, term, term); - const quad: RDF.Quad = dataFactory.quad(term, term, term, term); + const triple: RDF.Quad = DataFactory.triple(term, term, term); + const quad: RDF.Quad = DataFactory.quad(term, term, term, term); } From c722838e0102afa8d065d053a841149fbe9a6b8a Mon Sep 17 00:00:00 2001 From: Demiurga Date: Thu, 19 Oct 2017 00:13:36 +0800 Subject: [PATCH 154/506] fix wrong pr #20404 (#20676) * fix wrong pr #20404 * fix wrong pr #20404 * Update pouchdb-upsert-tests.ts * Use interface instead of a type literal * Missing semicolon * Use Core.DocumentId, Core.RevisionId instead of string --- types/pouchdb-upsert/index.d.ts | 14 ++++++++++---- types/pouchdb-upsert/pouchdb-upsert-tests.ts | 12 ++++++------ 2 files changed, 16 insertions(+), 10 deletions(-) diff --git a/types/pouchdb-upsert/index.d.ts b/types/pouchdb-upsert/index.d.ts index 0a71b0383d..60b2409ff0 100644 --- a/types/pouchdb-upsert/index.d.ts +++ b/types/pouchdb-upsert/index.d.ts @@ -20,7 +20,7 @@ declare namespace PouchDB { * If the document does not already exist, then {} will be the input to diffFunc. * */ - upsert(docId: Core.DocumentId, diffFun: UpsertDiffCallback): Promise>; + upsert(docId: Core.DocumentId, diffFun: UpsertDiffCallback): Promise; /** * Perform an upsert (update or insert) operation. If a callback is not provided, the Promise based version @@ -33,7 +33,7 @@ declare namespace PouchDB { * @param callback - called with the results after operation is completed. */ upsert(docId: Core.DocumentId, diffFun: UpsertDiffCallback, - callback: Core.Callback>): void; + callback: Core.Callback): void; /** * Put a new document with the given docId, if it doesn't already exist. Returns a Promise. @@ -41,7 +41,7 @@ declare namespace PouchDB { * @param doc - the document to insert. Should contain an _id if docId is not specified * If the document already exists, then the Promise will just resolve immediately. */ - putIfNotExists(doc: Core.Document): Promise>; + putIfNotExists(doc: Core.Document): Promise; // /** @@ -55,10 +55,16 @@ declare namespace PouchDB { * will return a Promise. */ putIfNotExists(doc: Core.Document, - callback: Core.Callback>): void; + callback: Core.Callback): void; } type UpsertDiffCallback = (doc: Core.Document) => Core.Document | boolean; + + interface UpsertResponse { + id: Core.DocumentId; + rev: Core.RevisionId; + updated: boolean; + } } declare module 'pouchdb-upsert' { diff --git a/types/pouchdb-upsert/pouchdb-upsert-tests.ts b/types/pouchdb-upsert/pouchdb-upsert-tests.ts index a441f76ab4..55697e88d6 100644 --- a/types/pouchdb-upsert/pouchdb-upsert-tests.ts +++ b/types/pouchdb-upsert/pouchdb-upsert-tests.ts @@ -12,7 +12,7 @@ function testUpsert_WithPromise_AndReturnDoc() { db.upsert(docToUpsert._id, (doc: PouchDB.Core.Document) => { // Make some updates.... return doc; - }).then((res: PouchDB.Core.Document) => { + }).then((res: PouchDB.UpsertResponse) => { }); } @@ -20,7 +20,7 @@ function testUpsert_WithPromise_AndReturnBoolean() { db.upsert(docToUpsert._id, (doc: PouchDB.Core.Document) => { // Make some updates.... return false; - }).then((res: PouchDB.Core.Document) => { + }).then((res: PouchDB.UpsertResponse) => { }); } @@ -28,7 +28,7 @@ function testUpsert_WithCallback_AndReturnDoc() { db.upsert(docToUpsert._id, (doc: PouchDB.Core.Document) => { // Make some updates.... return doc; - }, (res: PouchDB.Core.Document) => {}); + }, (res: PouchDB.UpsertResponse) => {}); } function testUpsert_WithCallback_AndReturnBoolean() { @@ -36,13 +36,13 @@ function testUpsert_WithCallback_AndReturnBoolean() { db.upsert(docToUpsert._id, (doc: PouchDB.Core.Document) => { // Make some updates.... return false; - }, (res: PouchDB.Core.Document) => {}); + }, (res: PouchDB.UpsertResponse) => {}); } function testPutIfNotExists_WithPromise() { - db.putIfNotExists(docToUpsert).then((res: PouchDB.Core.Document) => {}); + db.putIfNotExists(docToUpsert).then((res: PouchDB.UpsertResponse) => {}); } function testPutIfNotExists_WithCallback() { - db.putIfNotExists(docToUpsert, (res: PouchDB.Core.Document) => {}); + db.putIfNotExists(docToUpsert, (res: PouchDB.UpsertResponse) => {}); } From fadcd865464e84a4bf47c8a58a6ee7892b2f8a9d Mon Sep 17 00:00:00 2001 From: James Bromwell <943160+thw0rted@users.noreply.github.com> Date: Wed, 18 Oct 2017 18:17:51 +0200 Subject: [PATCH 155/506] Add new methods from pluralize v5.1.0 (#20683) * Add isPlural / isSingular Test the changes to `index.d.ts`. * Add isPlural / isSingular See [release notes](https://github.com/blakeembrey/pluralize/releases), new API has been present since July. --- types/pluralize/index.d.ts | 16 +++++++++++++++- types/pluralize/pluralize-tests.ts | 8 +++++++- 2 files changed, 22 insertions(+), 2 deletions(-) diff --git a/types/pluralize/index.d.ts b/types/pluralize/index.d.ts index 0a77d87a59..7a11a23839 100644 --- a/types/pluralize/index.d.ts +++ b/types/pluralize/index.d.ts @@ -57,9 +57,23 @@ interface PluralizeStatic { * @param word */ addUncountableRule(word: string|RegExp): void; + + /** + * Test if provided word is plural. + * + * @param word + */ + isPlural(word: string): boolean; + + /** + * Test if provided word is singular. + * + * @param word + */ + isSingular(word: string): boolean; } declare module "pluralize" { export = pluralize; } -declare var pluralize: PluralizeStatic; \ No newline at end of file +declare var pluralize: PluralizeStatic; diff --git a/types/pluralize/pluralize-tests.ts b/types/pluralize/pluralize-tests.ts index 951fe0b91a..16c599aab8 100644 --- a/types/pluralize/pluralize-tests.ts +++ b/types/pluralize/pluralize-tests.ts @@ -22,4 +22,10 @@ pluralize.plural('irregular'); //=> "regular" pluralize.plural('paper'); //=> "papers" pluralize.addUncountableRule('paper'); -pluralize.plural('paper'); //=> "paper" \ No newline at end of file +pluralize.plural('paper'); //=> "paper" + +pluralize.isPlural('test') //=> false +pluralize.isSingular('test') //=> true + +pluralize.isPlural('tests') //=> true +pluralize.isSingular('tests') //=> false From 00fe65c4f5ea446cca9380b2f8111620a2392975 Mon Sep 17 00:00:00 2001 From: Ika Date: Wed, 18 Oct 2017 12:44:17 -0500 Subject: [PATCH 156/506] feat(minimist-options): initial commit (#20686) --- types/minimist-options/index.d.ts | 27 +++++++++++++++++++ .../minimist-options-tests.ts | 22 +++++++++++++++ types/minimist-options/tsconfig.json | 23 ++++++++++++++++ types/minimist-options/tslint.json | 1 + 4 files changed, 73 insertions(+) create mode 100644 types/minimist-options/index.d.ts create mode 100644 types/minimist-options/minimist-options-tests.ts create mode 100644 types/minimist-options/tsconfig.json create mode 100644 types/minimist-options/tslint.json diff --git a/types/minimist-options/index.d.ts b/types/minimist-options/index.d.ts new file mode 100644 index 0000000000..59b4bf9df9 --- /dev/null +++ b/types/minimist-options/index.d.ts @@ -0,0 +1,27 @@ +// Type definitions for minimist-options 3.0 +// Project: https://github.com/vadimdemedes/minimist-options +// Definitions by: Ika +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 + +import * as minimist from 'minimist'; + +declare function build(options?: build.Options): minimist.Opts; + +declare namespace build { + type Type = 'string' | 'boolean'; + + interface Option { + type?: Type; + alias?: string | string[]; + default?: any; + } + + type Options = { + [key: string]: Type | Option; + } & { + [K in 'stopEarly' | 'unknown' | '--']?: minimist.Opts[K]; + }; +} + +export = build; diff --git a/types/minimist-options/minimist-options-tests.ts b/types/minimist-options/minimist-options-tests.ts new file mode 100644 index 0000000000..1363665d27 --- /dev/null +++ b/types/minimist-options/minimist-options-tests.ts @@ -0,0 +1,22 @@ +import buildOptions = require("minimist-options"); +import minimist = require("minimist"); + +const options = buildOptions({ + name: { + type: "string", + alias: "n", + default: "john" + }, + + force: { + type: "boolean", + alias: ["f", "o"], + default: false + }, + + published: "boolean", + + arguments: "string" +}); + +const args = minimist(['--option', 'value', 'input'], options); diff --git a/types/minimist-options/tsconfig.json b/types/minimist-options/tsconfig.json new file mode 100644 index 0000000000..b43c584555 --- /dev/null +++ b/types/minimist-options/tsconfig.json @@ -0,0 +1,23 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es6" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "strictFunctionTypes": true, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "minimist-options-tests.ts" + ] +} diff --git a/types/minimist-options/tslint.json b/types/minimist-options/tslint.json new file mode 100644 index 0000000000..3db14f85ea --- /dev/null +++ b/types/minimist-options/tslint.json @@ -0,0 +1 @@ +{ "extends": "dtslint/dt.json" } From 499998cbaa554d20d368d91aa82c7613eb3d939c Mon Sep 17 00:00:00 2001 From: Andy Hanson Date: Wed, 18 Oct 2017 11:18:45 -0700 Subject: [PATCH 157/506] Add missing "strictFunctionTypes" --- types/tabris-plugin-firebase/tsconfig.json | 1 + 1 file changed, 1 insertion(+) diff --git a/types/tabris-plugin-firebase/tsconfig.json b/types/tabris-plugin-firebase/tsconfig.json index 38a1c8d42c..118339f812 100644 --- a/types/tabris-plugin-firebase/tsconfig.json +++ b/types/tabris-plugin-firebase/tsconfig.json @@ -7,6 +7,7 @@ "noImplicitAny": true, "noImplicitThis": true, "strictNullChecks": true, + "strictFunctionTypes": true, "baseUrl": "../", "typeRoots": [ "../" From 6436c101b03dae8e398fb7e73177e47de9fdad9d Mon Sep 17 00:00:00 2001 From: Andy Hanson Date: Wed, 18 Oct 2017 11:22:07 -0700 Subject: [PATCH 158/506] vue-*: Update based on changes to vue --- types/vue-i18n/index.d.ts | 3 +-- types/vue-i18n/package.json | 2 +- types/vue-i18n/tsconfig.json | 3 ++- types/vue-i18n/vue-i18n-tests.ts | 3 +-- types/vue-scrollto/vue-scrollto-tests.ts | 2 +- 5 files changed, 6 insertions(+), 7 deletions(-) diff --git a/types/vue-i18n/index.d.ts b/types/vue-i18n/index.d.ts index 02174cb784..19225a83dd 100644 --- a/types/vue-i18n/index.d.ts +++ b/types/vue-i18n/index.d.ts @@ -3,8 +3,7 @@ // Definitions by: Kombu // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -import * as Vue from 'vue'; -import { PluginFunction } from 'vue'; +import Vue, { PluginFunction } from 'vue'; declare namespace VueI18n { type Path = string; diff --git a/types/vue-i18n/package.json b/types/vue-i18n/package.json index c799230c79..2127792b46 100644 --- a/types/vue-i18n/package.json +++ b/types/vue-i18n/package.json @@ -3,4 +3,4 @@ "dependencies": { "vue": "^2.2.6" } -} \ No newline at end of file +} diff --git a/types/vue-i18n/tsconfig.json b/types/vue-i18n/tsconfig.json index 01d16389e6..a95a81b1d0 100644 --- a/types/vue-i18n/tsconfig.json +++ b/types/vue-i18n/tsconfig.json @@ -2,7 +2,8 @@ "compilerOptions": { "module": "commonjs", "lib": [ - "es6" + "es6", + "dom" ], "noImplicitAny": true, "noImplicitThis": true, diff --git a/types/vue-i18n/vue-i18n-tests.ts b/types/vue-i18n/vue-i18n-tests.ts index 7ff9dab6e1..693b069f52 100644 --- a/types/vue-i18n/vue-i18n-tests.ts +++ b/types/vue-i18n/vue-i18n-tests.ts @@ -3,9 +3,8 @@ const assert = console.assert; const random = () => Math.trunc(Math.exp(Math.log(Date.now()) * Math.random())); -import * as Vue from 'vue'; +import Vue, { ComponentOptions } from 'vue'; import * as VueI18n from 'vue-i18n'; -import { ComponentOptions } from 'vue'; /** * VueI18n.install diff --git a/types/vue-scrollto/vue-scrollto-tests.ts b/types/vue-scrollto/vue-scrollto-tests.ts index 55b4d32305..3ca628823b 100644 --- a/types/vue-scrollto/vue-scrollto-tests.ts +++ b/types/vue-scrollto/vue-scrollto-tests.ts @@ -1,4 +1,4 @@ -import * as Vue from "vue"; +import Vue from "vue"; import * as VueScrollTo from "vue-scrollto"; Vue.use(VueScrollTo); From 114d3030ad9fb7d8b05ba3e8b2974b02898bfe73 Mon Sep 17 00:00:00 2001 From: Andy Date: Wed, 18 Oct 2017 11:25:09 -0700 Subject: [PATCH 159/506] framebus: Fix test failure (#20688) --- types/framebus/framebus-tests.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/framebus/framebus-tests.ts b/types/framebus/framebus-tests.ts index e37186d168..b19675692e 100644 --- a/types/framebus/framebus-tests.ts +++ b/types/framebus/framebus-tests.ts @@ -1,6 +1,6 @@ import * as framebus from "framebus"; -const popup = window.open('https://example.com'); +const popup = window.open('https://example.com')!; framebus.include(popup); framebus.emit('hello popup and friends!'); From 72a17cebba2e737061dc55d31565c96fdb163be9 Mon Sep 17 00:00:00 2001 From: Mihhail Arhipov Date: Wed, 18 Oct 2017 19:34:10 +0100 Subject: [PATCH 160/506] [redux-form] - Added missing error property for FIeldState in v6 (#20522) * Added missing property for FieldState * Changed the type from string to any to match v7 --- types/redux-form/v6/index.d.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/types/redux-form/v6/index.d.ts b/types/redux-form/v6/index.d.ts index e73b4d550d..cf943129d8 100644 --- a/types/redux-form/v6/index.d.ts +++ b/types/redux-form/v6/index.d.ts @@ -16,6 +16,7 @@ export type FieldState = { active?: boolean; touched?: boolean; visited?: boolean; + error?: any; } export type FieldType = "Field" | "FieldArray"; From 93c5cb136b65048d1e5124222097421aa3a0a785 Mon Sep 17 00:00:00 2001 From: Will Ockmore Date: Wed, 18 Oct 2017 20:33:43 +0100 Subject: [PATCH 161/506] Add types for stemmer package (#20675) * Add types for stemmer package Adds type definition for single default function in package. * Change typing in stemmer package to correct format --- types/stemmer/index.d.ts | 8 ++++++++ types/stemmer/stemmer-tests.ts | 3 +++ types/stemmer/tsconfig.json | 23 +++++++++++++++++++++++ types/stemmer/tslint.json | 1 + 4 files changed, 35 insertions(+) create mode 100644 types/stemmer/index.d.ts create mode 100644 types/stemmer/stemmer-tests.ts create mode 100644 types/stemmer/tsconfig.json create mode 100644 types/stemmer/tslint.json diff --git a/types/stemmer/index.d.ts b/types/stemmer/index.d.ts new file mode 100644 index 0000000000..60bcf6ae22 --- /dev/null +++ b/types/stemmer/index.d.ts @@ -0,0 +1,8 @@ +// Type definitions for stemmer 1.0 +// Project: https://github.com/wooorm/stemmer#readme +// Definitions by: Will Ockmore +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +declare function stemmer(value: string): string; + +export = stemmer; diff --git a/types/stemmer/stemmer-tests.ts b/types/stemmer/stemmer-tests.ts new file mode 100644 index 0000000000..db9f19d996 --- /dev/null +++ b/types/stemmer/stemmer-tests.ts @@ -0,0 +1,3 @@ +import stemmer = require('stemmer'); + +stemmer('Working'); // $ExpectType string diff --git a/types/stemmer/tsconfig.json b/types/stemmer/tsconfig.json new file mode 100644 index 0000000000..7224a39eb8 --- /dev/null +++ b/types/stemmer/tsconfig.json @@ -0,0 +1,23 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es6" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "strictFunctionTypes": true, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "stemmer-tests.ts" + ] +} diff --git a/types/stemmer/tslint.json b/types/stemmer/tslint.json new file mode 100644 index 0000000000..3db14f85ea --- /dev/null +++ b/types/stemmer/tslint.json @@ -0,0 +1 @@ +{ "extends": "dtslint/dt.json" } From 28822d262c70e805b0aeab6c023ac88030e0fffd Mon Sep 17 00:00:00 2001 From: Chris Grigg Date: Wed, 18 Oct 2017 16:31:50 -0400 Subject: [PATCH 162/506] @types/rosie: allow factory.build with class constructor (#20564) * allow Rosie factory.build with class constructor to work, though type unsafe * improve types for build with constructor, improve tests --- types/rosie/index.d.ts | 2 +- types/rosie/rosie-tests.ts | 31 +++++++++++++++++++++++++++++-- 2 files changed, 30 insertions(+), 3 deletions(-) diff --git a/types/rosie/index.d.ts b/types/rosie/index.d.ts index d8cb96a231..51728127ea 100644 --- a/types/rosie/index.d.ts +++ b/types/rosie/index.d.ts @@ -14,7 +14,7 @@ declare namespace rosie { * @param {function(object): *=} constructor * @return {Factory} */ - define(name: string, constructor?: (opts?: any) => any): IFactory; + define(name: string, constructor?: ((...opts: any[]) => any) | (new(...opts: any[]) => any)): IFactory; /** * Locates a factory by name and calls #build on it. diff --git a/types/rosie/rosie-tests.ts b/types/rosie/rosie-tests.ts index e44b05b255..8d7c6d83b8 100644 --- a/types/rosie/rosie-tests.ts +++ b/types/rosie/rosie-tests.ts @@ -62,8 +62,35 @@ personFactory.attr('secretCode', ['firstName', 'lastName', 'age', 'age', 'firstN // You can go past five dependencies, but you need to specify types personFactory.attr('secretCode', ['firstName', 'lastName', 'age', 'age', 'firstName', 'firstName'], (firstName: string, lastName: string, age1: number, age2: number, firstNameAgain: string, firstNameThisIsTooMuch: string) => ({ name: firstNameAgain, value: age1 + age2 })); -const personObj = Factory.build('Person'); -if (personObj.firstName !== 'John') { throw new Error('incorrect Person build'); } +// Having defined 'Person', `build` will return an object of type Person, using the generic type. +const person = Factory.build('Person'); +let aString = ''; +aString = person.firstName; + +class CustomClass { + type: string; + + constructor(props: { type: string }) { + this.type = props.type; + } +} + +Factory.define('CustomClass', CustomClass); + +class CustomClass2 { + constructor(prop1: string, prop2: string, prop3: string) { + } +} + +Factory.define('CustomClass2', CustomClass2); + +class CustomClassWithoutConstructor { + constructor() { + // set some state + } +} + +Factory.define('CustomClassWithoutConstructor', CustomClassWithoutConstructor); import rosie = require('rosie'); From 862695fbb4618014960843f087abc3e337764808 Mon Sep 17 00:00:00 2001 From: Anatoly Demidovich Date: Wed, 18 Oct 2017 23:34:17 +0300 Subject: [PATCH 163/506] fix connect() overload (#20674) --- 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 afd32099bd..d8e646670e 100644 --- a/types/mongodb/index.d.ts +++ b/types/mongodb/index.d.ts @@ -17,8 +17,8 @@ import { ObjectID } from 'bson'; import { EventEmitter } from 'events'; import { Readable, Writable } from "stream"; -export function connect(uri: string, callback: MongoCallback): void; export function connect(uri: string, options?: MongoClientOptions): Promise; +export function connect(uri: string, callback: MongoCallback): void; export function connect(uri: string, options: MongoClientOptions, callback: MongoCallback): void; export { Binary, Double, Long, Decimal128, MaxKey, MinKey, ObjectID, ObjectId, Timestamp } from 'bson'; From 2fd1709e595544ad01ac191ef4a6fae15328109c Mon Sep 17 00:00:00 2001 From: Roberto Desideri Date: Wed, 18 Oct 2017 22:44:29 +0200 Subject: [PATCH 164/506] Remove myself from the authors (#20697) --- types/node/v7/index.d.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/types/node/v7/index.d.ts b/types/node/v7/index.d.ts index 45df6015fe..fc6cd33091 100644 --- a/types/node/v7/index.d.ts +++ b/types/node/v7/index.d.ts @@ -3,7 +3,6 @@ // Definitions by: Microsoft TypeScript // DefinitelyTyped // Parambir Singh -// Roberto Desideri // Christian Vaagland Tellnes // Wilco Bakker // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped From 0b214148d09d7c7a3d033d65007f8652cfa7ce2a Mon Sep 17 00:00:00 2001 From: Andy Hanson Date: Wed, 18 Oct 2017 14:26:11 -0700 Subject: [PATCH 165/506] Update CODEOWNERS --- .github/CODEOWNERS | 671 ++++++++++++++++++++++++++++++++++----------- 1 file changed, 510 insertions(+), 161 deletions(-) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index c9c83c77c4..8c22099cc8 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -3,15 +3,30 @@ /types/abs/ @AyaMorisawa /types/absolute/ @AyaMorisawa /types/acc-wizard/ @cyrilschumacher +/types/accept-language-parser/ @kampfgnom /types/accepts/ @bomret /types/accounting/ @gerich-home @chrisleck /types/ace/ @Diullei /types/acl/ @tkQubo /types/acorn/ @RReverser @e-cloud /types/actioncable/ @zhu1230 +/types/activex-access/ @zspitz /types/activex-adodb/ @zspitz +/types/activex-dao/ @zspitz +/types/activex-excel/ @zspitz +/types/activex-infopath/ @zspitz +/types/activex-libreoffice/ @zspitz +/types/activex-msforms/ @zspitz +/types/activex-mshtml/ @zspitz +/types/activex-msxml2/ @zspitz +/types/activex-office/ @zspitz +/types/activex-outlook/ @zspitz +/types/activex-powerpoint/ @zspitz /types/activex-scripting/ @zspitz +/types/activex-stdole/ @zspitz +/types/activex-vbide/ @zspitz /types/activex-wia/ @zspitz +/types/activex-word/ @zspitz /types/adal/ @mmaitre314 /types/adm-zip/ @jvilk @abner /types/adone/ @s0m3on3 @maxveres @@ -22,14 +37,14 @@ /types/alexa-sdk/ @petebeegle @hoo29 @pascalwhoop @blforce /types/alexa-voice-service/ @dolanmiu /types/algebra.js/ @CaselIT -/types/algoliasearch/ @cbaptiste +/types/algoliasearch/ @cbaptiste @haroenv @aherve /types/alt/ @Shearerbeard -/types/amazon-product-api/ @MattiLehtinen +/types/amazon-product-api/ @MattiLehtinen @alien35 /types/amcharts/ @aleksey-bykov /types/amplify/ @joeriks /types/amplify-deferred/ @joeriks @laurentiustamate94 /types/amplitude-js/ @Asido -/types/amqp/ @seikho +/types/amqp/ @seikho @jonnysparkplugs /types/amqp-rpc/ @wokim /types/amqplib/ @mnahkies @abreits @nfantone /types/analytics-node/ @fongandrew @@ -50,6 +65,7 @@ /types/angular-es/ @mbutsykin /types/angular-feature-flags/ @borislavjivkov /types/angular-file-saver/ @deenairn +/types/angular-file-upload/ @cyrilgandon /types/angular-formly/ @scatcher /types/angular-fullscreen/ @julienpa /types/angular-gettext/ @AkosLukacs @@ -62,7 +78,7 @@ /types/angular-idle/ @mthamil /types/angular-jwt/ @rerezz /types/angular-load/ @david-gang -/types/angular-loading-bar/ @stephenlautier +/types/angular-loading-bar/ @stephenlautier @tyronedougherty /types/angular-local-storage/ @kenfdev @dona278 /types/angular-localforage/ @reppners /types/angular-locker/ @nkovacic @@ -84,14 +100,14 @@ /types/angular-signalr-hub/ @AdamSantaniello /types/angular-spinner/ @Biegal /types/angular-storage/ @mdekrey -/types/angular-strap/ @samherrmann +/types/angular-strap/ @samherrmann @mkannwischer /types/angular-toastr/ @nkovacic @trodi /types/angular-toasty/ @muenchdo /types/angular-tooltips/ @leonard-thieu /types/angular-touchspin/ @nkovacic /types/angular-translate/ @michelsalib /types/angular-ui-bootstrap/ @xt0rted @ry8806 -/types/angular-ui-router/ @michelsalib @matiishyn +/types/angular-ui-router/ @michelsalib @matiishyn @mikehaas763 /types/angular-ui-scroll/ @marknadig /types/angular-ui-sortable/ @thgreasi /types/angular-ui-tree/ @CalvinFernandez @@ -116,6 +132,7 @@ /types/aphrodite/ @asvetliakov /types/api-error-handler/ @tkrotoff /types/apigee-access/ @CasperSkydt +/types/apollo-codegen/ @bradleyayers /types/app-root-path/ @shantmarouti /types/appframework/ @kyo-ago /types/appletvjs/ @brainded @@ -129,7 +146,7 @@ /types/archiver/ @dolanmiu @crevil /types/archy/ @vvakame /types/are-we-there-yet/ @brianloveswords -/types/argparse/ @arcticwaters +/types/argparse/ @arcticwaters @tlaziuk /types/argv/ @hookclaw /types/array-find-index/ @samverschueren /types/array-foreach/ @skysteve @@ -148,13 +165,18 @@ /types/assertsharp/ @brunolm /types/assets-webpack-plugin/ @kryops /types/async/ @borisyankov @kern0 @Penryn @fenying @pascalmartin +/types/async-cache/ @BendingBender /types/async-lock/ @elisee /types/async-polling/ @Goldsmith42 /types/async.nexttick/ @pyrho /types/asyncblock/ @horiuchi -/types/atmosphere/ @toedter -/types/atom/ @vvakame -/types/atom-keymap/ @enlight +/types/atmosphere/ @toedter @Mory1879 +/types/atmosphere.js/ @toedter @Mory1879 +/types/atom/v0/ @vvakame @smhxx +/types/atom/ @GlenCFL +/types/atom-keymap/v5/ @enlight +/types/atom-keymap/ @GlenCFL +/types/atom-mocha-test-runner/ @GlenCFL /types/atpl/ @soywiz /types/audiosprite/ @Perlmint /types/aurelia-knockout/ @code-chris @@ -172,11 +194,12 @@ /types/autoprefixer/ @odnamrataizem /types/autosize/ @kingdango @keika299 @NeekSandhu /types/awesomplete/ @webbiesdk @bmdixon @tbekolay -/types/aws-iot-device-sdk/ @niik -/types/aws-lambda/ @skarum @tobyhede @buggy @y13i @wwwy3y3 +/types/aws-iot-device-sdk/ @niik @mlamp +/types/aws-lambda/ @skarum @tobyhede @buggy @y13i @wwwy3y3 @OrthoDex /types/aws-serverless-express/ @threesquared @jcaffey @mattmeye /types/aws4/ @ajcrites /types/axel/ @ruslan-molodyko +/types/axios-mock-adapter/ @tkryskiewicz /types/azure/ @AndrewGaspar @antiveeranna @SomaticIT /types/azure-mobile-services-client/ @dmorosinotto /types/azure-sb/ @Azure @@ -184,12 +207,14 @@ /types/babel-code-frame/ @mohsen1 /types/babel-core/ @yortus @marvinhagemeister /types/babel-generator/ @yortus @johnnyestilles +/types/babel-plugin-react-pug/ @jpap /types/babel-plugin-syntax-jsx/ @marvinhagemeister /types/babel-template/ @yortus @marvinhagemeister /types/babel-traverse/ @yortus @marvinhagemeister /types/babel-types/ @yortus @baxtersa @marvinhagemeister /types/babelify/ @TeamworkGuy2 @marvinhagemeister /types/babylon/ @yortus @marvinhagemeister +/types/babylon-walk/ @czbuchi /types/babyparse/ @cdiddy77 /types/backbone/ @borisyankov @nvivo /types/backbone-associations/ @craigbrett17 @@ -202,6 +227,7 @@ /types/backbone.radio/ @alphaleonis /types/backgrid/ @jlujan /types/backlog-js/ @vvatanabe +/types/backoff/ @BendingBender /types/baconjs/ @alexander-matsievsky @gekkio /types/bagpipes/ @micmro /types/barcode/ @pvomhoff @@ -218,11 +244,11 @@ /types/bcryptjs/ @RafaelKr /types/bem-cn/ @selkinvitaly /types/better-curry/ @pocesar -/types/better-sqlite3/ @Morfent +/types/better-sqlite3/ @Morfent @matrumz /types/bezier-easing/ @ptlis /types/bezier-js/ @danmarshall /types/bgiframe/ @sumegizoltan -/types/big.js/ @nycdotnet +/types/big.js/ @nycdotnet @googol /types/bigi/ @mhegazy /types/bigint/ @Evgenus /types/bignum/ @Patman64 @@ -242,6 +268,7 @@ /types/blessed/ @brynbellomy /types/blissfuljs/ @fskorzec /types/blob-stream/ @erichillah +/types/blob-to-buffer/ @nrlquaker /types/blob-util/ @WorldMaker /types/blocks/ @ksmigiel /types/bloomfilter/ @slawiko @@ -272,15 +299,17 @@ /types/bootstrap-treeview/ @jbtronics /types/bootstrap-validator/ @BradyLiles /types/bootstrap.paginator/ @derikwhittaker -/types/bootstrap.timepicker/ @derikwhittaker +/types/bootstrap.timepicker/ @derikwhittaker @heatherbooker /types/bootstrap.v3.datetimepicker/v3/ @bayitajesi /types/bootstrap.v3.datetimepicker/ @katonap +/types/botvs/ @acrazing /types/bounce.js/ @cherrry /types/bowser/ @pocesar /types/box2d/ @jbaldwin /types/brace-expansion/ @BendingBender /types/braintree-web/ @chlela /types/breeze/ @borisyankov +/types/bricks.js/ @kondi /types/brorand/ @chrootsu /types/browser-bunyan/ @PaulLockwood @kryops /types/browser-fingerprint/ @LKay @@ -302,6 +331,7 @@ /types/bunnymq/ @cyrilschumacher /types/bunyan/ @amikhalev /types/bunyan-blackhole/ @olivr70 +/types/bunyan-bugsnag/ @pasieronen /types/bunyan-config/ @cyrilschumacher /types/bunyan-prettystream/ @jasonswearingen @enlight /types/bunyan-winston-adapter/ @stevehipwell @@ -325,6 +355,7 @@ /types/canvas-gauges/ @Mikhus /types/canvasjs/ @brutalimp /types/capitalize/ @frederickfogerty +/types/card-validator/ @ChanceM /types/cash/ @akvlko /types/casperjs/ @jedmao /types/cassandra-driver/ @Svjard @@ -334,12 +365,13 @@ /types/chai/v2/ @Bartvds @AGBrown /types/chai/ @jedmao @Bartvds @AGBrown @olivr70 @mwistrand @joshuakgoldberg @shaunluttin /types/chai-arrays/ @clementprevot -/types/chai-as-promised/ @jt000 @Kuniwak @leonard-thieu +/types/chai-as-promised/ @jt000 @Kuniwak @leonard-thieu @lazerwalker @mattbishop /types/chai-datetime/ @cliffburger /types/chai-dom/ @mattlewis92 /types/chai-enzyme/ @asvetliakov /types/chai-fuzzy/ @Bartvds /types/chai-http/ @Nemo157 @G1itcher @CaselIT +/types/chai-jest-snapshot/ @mattvperry /types/chai-jquery/ @kazimanzurrashid /types/chai-json-schema/ @ulrichheiniger /types/chai-oequal/ @mizunashi-mana @@ -351,16 +383,18 @@ /types/chance/ @cbowdon /types/change-emitter/ @iskandersierra /types/charm/ @Xananax -/types/chart.js/ @anuti @FabienLavocat @KentarouTakeda @larrybahr -/types/chartist/ @mtgibbs @psimonski +/types/chart.js/ @anuti @FabienLavocat @KentarouTakeda @larrybahr @mernen @josefpaij +/types/chartist/ @mtgibbs @psimonski @clottman /types/chartjs/ @Steve-Fenton @FanaHOVA /types/chayns/ @HenningKuehl /types/check-sum/ @BendingBender /types/checkstyle-formatter/ @mhegazy /types/checksum/ @rogierschouten /types/cheerio/ @blittle @wmaurer @umarniz -/types/chokidar/ @reppners @felixfbecker +/types/chmodr/ @BendingBender +/types/chokidar/ @reppners @felixfbecker @bayssmekanique /types/chosen-js/ @borisyankov @denisname +/types/chownr/ @BendingBender /types/chroma-js/v0/ @invliD /types/chroma-js/ @invliD @mpacholec /types/chrome/ @matthewkimber @otiai10 @couven92 @rreverser @sreimer15 @@ -373,6 +407,7 @@ /types/clean-css/ @tkrotoff /types/clean-stack/ @BendingBender /types/clear-require/ @dan-j +/types/cleave.js/ @clentfort /types/cli/ @kayahr /types/cli-color/ @ChaosinaCan /types/cli-table2/ @mgroenhoff @@ -382,9 +417,11 @@ /types/clipboard-js/ @markwongsk /types/clipboardy/ @BendingBender /types/clndr/ @jasperjn +/types/clockpicker/ @jfcere /types/closure-compiler/ @mprobst /types/cloud-env/ @Morfent /types/cloudflare-apps/ @MartynasZilinskas +/types/cls-hooked/ @aleung /types/co-body/ @geoffreak /types/co-views/ @devlee @geoffreak /types/code/ @prashaantt @@ -411,7 +448,7 @@ /types/commander/ @alan-agius4 @mdezem @vvakame /types/commangular/ @hiraash /types/comment-json/ @Jason3S -/types/common-tags/ @zuzusik +/types/common-tags/ @zuzusik @tzupengwang /types/commonmark/ @nicojs @leonard-thieu /types/compare-version/ @jpevarnek /types/complex/ @AyaMorisawa @@ -425,7 +462,7 @@ /types/conf/v0/ @SamVerschueren /types/conf/ @SamVerschueren @BendingBender /types/confidence/ @jppellerin -/types/config/ @RWander +/types/config/ @RWander @forrestbice @jndonald3 /types/configstore/ @ArcticLight /types/confit/ @ethanresnick /types/connect/ @SomaticIT @@ -435,6 +472,7 @@ /types/connect-livereload/ @SomaticIT /types/connect-modrewrite/ @tinganho /types/connect-mongo/ @Syati +/types/connect-pg-simple/ @pasieronen /types/connect-redis/ @xstoudi @morcerf /types/connect-slashes/ @samherrmann /types/connect-timeout/ @cyrilschumacher @@ -447,6 +485,7 @@ /types/contextjs/ @kernhanda /types/continuation-local-storage/ @rath @heycalmdown @aboveyou00 /types/convert-hrtime/ @BendingBender +/types/convert-layout/ @xeningem /types/convert-source-map/ @AndrewGaspar @mgroenhoff @TeamworkGuy2 /types/convict/ @Nemo157 @vesse @elyscape /types/cookie/ @pine613 @@ -463,7 +502,9 @@ /types/cordova-plugin-background-mode/ @Lordnoname /types/cordova-plugin-badge/ @timbru31 /types/cordova-plugin-ble-central/ @gjunge +/types/cordova-plugin-canvascamera/ @lordazzi /types/cordova-plugin-device-name/ @larrybahr +/types/cordova-plugin-file-opener2/ @cyrilgandon /types/cordova-plugin-ibeacon/ @Ritzlgrmft /types/cordova-plugin-insomnia/ @Ritzlgrmft /types/cordova-plugin-keyboard/ @danmana @@ -485,6 +526,8 @@ /types/cote/ @makepost /types/couchbase/ @maouida /types/countdown/ @gjuchault +/types/counterpart/ @santiagodoldan +/types/countries-and-timezones/ @zero51 /types/country-list/ @iRoachie /types/country-select-js/ @humrochagf /types/cp-file/ @BendingBender @@ -492,13 +535,14 @@ /types/cradle/ @panuhorsmalahti /types/crc/ @YuJianrong /types/create-error/ @tkrotoff +/types/create-react-class/ @jgoz /types/createjs/ @evilangelist @gyohk /types/createjs-lib/ @evilangelist @gyohk /types/credential/ @phuvo /types/credit-card-type/ @LKay /types/cron/ @horiuchi /types/cropperjs/ @stepancar -/types/croppie/ @connor4312 +/types/croppie/ @connor4312 @dklmuc /types/crossfilter/ @schmuli @iebaker /types/crossroads/ @diullei /types/cryptiles/ @awendland @@ -514,16 +558,18 @@ /types/csurf/ @horiuchi /types/csv-parse/ @davidm77 @obi-jan-kenobi /types/csv-stringify/ @rogierschouten @arjenvanderende +/types/csvrow/ @codeanimal /types/csvtojson/ @EricByers @wcarson /types/cucumber/v1/ @abraaoalves @jan-molak @isoung @BendingBender /types/cucumber/ @abraaoalves @jan-molak @isoung @BendingBender -/types/currency-formatter/ @mhegazy +/types/currency-formatter/ @mhegazy @davidmpaz /types/custom-error-generator/ @thmiceli /types/cwise/ @taoqf /types/cwise-compiler/ @taoqf /types/cwise-parser/ @taoqf /types/cybozulabs-md5/ @pine613 -/types/cypress/ @ghengeveld @mikewoudenberg +/types/cypress/ @ghengeveld @mikewoudenberg @rvanmarkus +/types/cytoscape/ @phreed @wy193777 /types/d3/v3/ @gustavderdrache @borisyankov /types/d3/ @tomwanzek @gustavderdrache @borisyankov /types/d3-array/ @gustavderdrache @borisyankov @tomwanzek @@ -553,7 +599,7 @@ /types/d3-request/ @Ledragon @gustavderdrache @borisyankov @tomwanzek /types/d3-sankey/ @tomwanzek @gustavderdrache /types/d3-scale/ @tomwanzek @gustavderdrache @borisyankov -/types/d3-scale-chromatic/ @Ledragon @gustavderdrache @borisyankov +/types/d3-scale-chromatic/ @Ledragon @gustavderdrache @borisyankov @henriquefm /types/d3-selection/ @tomwanzek @gustavderdrache @borisyankov /types/d3-selection-multi/ @gustavderdrache @borisyankov /types/d3-shape/ @tomwanzek @gustavderdrache @borisyankov @@ -568,8 +614,9 @@ /types/d3.slider/ @lk-chen /types/d3kit/ @morphatic /types/d3pie/ @mc-petry -/types/dagre/ @qinfchen +/types/dagre/ @qinfchen @Frankrike @vilterp /types/dagre-d3/ @markwongsk +/types/dagre-layout/ @qinfchen @Frankrike @vilterp /types/dargs/ @BendingBender /types/dat-gui/ @gyohk @sonic3d @rroylance /types/data-driven/ @mrhen @@ -579,6 +626,7 @@ /types/datatables.net-fixedheader/ @szechyjs /types/datatables.net-rowreorder/ @baywet /types/datatables.net-select/ @szechyjs +/types/date-arithmetic/ @HeeL /types/date.format.js/ @balrob /types/dateformat/ @aicest /types/datejs/ @rupertavery @@ -594,6 +642,7 @@ /types/decamelize/ @samverschueren /types/decay/ @enaeseth /types/decimal.js/ @musicist288 +/types/decompress/ @plantain-00 /types/decorum/ @dflor003 /types/dedent/ @douglasduteil /types/deep-assign/ @souldreamer @@ -601,8 +650,9 @@ /types/deep-equal/ @remojansen @janslow /types/deep-extend/ @rhysd /types/deep-freeze/ @Bartvds @aluanhaddad +/types/deep-freeze-es6/ @mattbishop /types/deep-freeze-strict/ @mhegazy -/types/deepmerge/ @marvinscharle +/types/deepmerge/ @marvinscharle @syy1125 /types/defaults/ @IbtihelCHNAB /types/define-lazy-prop/ @BendingBender /types/defined/ @BendingBender @@ -613,7 +663,7 @@ /types/delay/ @BendingBender /types/denodeify/ @joaomoreno /types/deoxxa-content-type/ @pine613 -/types/depd/ @danny8002 +/types/depd/ @danny8002 @BendingBender /types/deployjava/ @cyrilschumacher /types/destroy/ @BendingBender /types/destroy-on-hwm/ @BendingBender @@ -638,11 +688,12 @@ /types/discontinuous-range/ @OiCMudkips /types/disposable-email-domains/ @geoffreak /types/doccookies/ @jonegerton -/types/dockerode/ @seikho @nlaplante @isac322 +/types/dockerode/ @seikho @nlaplante @isac322 @lazarusx @meisenzahl /types/docopt/ @giggio /types/doctrine/ @rictic /types/documentdb/ @NoelAbrahams @brettferdosi @ctstone @yifanwu /types/documentdb-server/ @lith-light-g +/types/documentdb-session/ @DanielRosenwasser /types/dojo/ @vansimke /types/dom-inputevent/ @diagramatics /types/dom4/ @adidahiya @giladgray @@ -656,14 +707,15 @@ /types/dot-prop/v2/ @samverschueren /types/dot-prop/ @samverschueren @BendingBender /types/dotdotdot/ @milanjaros -/types/dotenv/v2/ @borekb @enaeseth +/types/dotenv/v2/ @jussikinnula @borekb @enaeseth /types/dotenv/ @jussikinnula @borekb @enaeseth /types/dotenv-safe/ @krenor /types/dottie/ @domarmstrong /types/doublearray/ @mzsm /types/doubleclick-gpt/ @johngeorgewright /types/downloadjs/ @cwmoo740 -/types/draft-js/ @dmitryrogozhny @eelco @ghotiphud @schwers @michael-yx-wu @willisplummer +/types/draft-js/ @dmitryrogozhny @eelco @ghotiphud @schwers @michael-yx-wu @willisplummer @smvilar +/types/drag-timetable/ @chinkan /types/draggabilly/ @jaydubu /types/dragster/ @zskovacs /types/dragula/ @pwelter34 @abruzzihraig @@ -671,12 +723,17 @@ /types/dropkickjs/ @VorobeY1326 /types/dropzone/v4/ @nvivo @outring @renuo @Hikariii /types/dropzone/ @nvivo @outring @renuo @Hikariii @tedbcsgpro +/types/dts-generator/ @mtraynham /types/duplexer2/ @Goldsmith42 /types/duplexer3/ @BendingBender +/types/duplexify/ @strax +/types/duplicate-package-checker-webpack-plugin/ @mtraynham /types/durandal/ @BlueSpire /types/dustjs-linkedin/ @mdezem /types/dw-bxslider-4/ @namerci -/types/dwt/ @yushulx +/types/dwt/v12/ @yushulx +/types/dwt/ @yushulx @jbh +/types/dygraphs/ @danvk /types/dymo-label-framework/ @thijskuipers /types/dynatable/ @francoismassart /types/each/ @misak113 @@ -696,6 +753,8 @@ /types/egg/ @sheperdwind /types/egg-mock/ @sheperdwind /types/egg.js/ @ToastHawaii +/types/egjs__axes/ @naver +/types/egjs__component/ @naver /types/ej.web.all/ @syncfusion /types/ejs-locals/ @jt000 /types/ejson/ @shantanubhadoria @@ -703,7 +762,8 @@ /types/electron-config/ @mrfunkycold @unindented /types/electron-debug/ @unindented /types/electron-devtools-installer/ @gamesmaxed -/types/electron-json-storage/ @stpettersens +/types/electron-is-dev/ @trodi +/types/electron-json-storage/ @stpettersens @nrlquaker /types/electron-notifications/ @djpereira /types/electron-notify/ @djpereira /types/electron-packager/ @SomaticIT @cortopy @@ -711,6 +771,7 @@ /types/electron-settings/ @icopp /types/electron-store/ @unindented /types/electron-window-state/ @rhysd +/types/electron-winstaller/ @shiftkey /types/element-ready/ @BendingBender /types/element-resize-event/ @rogierschouten @plgregoire /types/elm/ @thSoft @@ -718,11 +779,13 @@ /types/email-templates/ @cyrilschumacher @gurisko /types/email-validator/ @paullessing /types/ember/v1/ @jedmao -/types/ember/ @jedmao @bttf +/types/ember/ @jedmao @bttf @dwickern @chriskrycho @theroncross +/types/ember-testing-helpers/ @chriskrycho /types/emissary/ @vvakame /types/emojione/ @dbrgn /types/empower/ @vvakame /types/emscripten/ @zakki @periklis +/types/end-of-stream/ @strax /types/engine.io/ @KentarouTakeda /types/engine.io-client/ @KentarouTakeda /types/enhanced-resolve/ @e-cloud @onigoetz @@ -731,6 +794,8 @@ /types/env-to-object/ @MugeSo /types/envify/ @tkQubo /types/enzyme/ @MarianPalkus @NoHomey @jwbay @huhuanming @MartynasZilinskas @thovden +/types/enzyme-adapter-react-15/ @tkrotoff +/types/enzyme-adapter-react-16/ @tkrotoff /types/enzyme-to-json/ @joscha /types/eonasdan-bootstrap-datetimepicker/ @ToastHawaii /types/epiceditor/ @borisyankov @@ -748,7 +813,8 @@ /types/escape-string-regexp/ @kruncher /types/escodegen/ @simondel /types/eslint-plugin-prettier/ @ikatyang -/types/esprima/ @teppeis @RReverser +/types/esprima/v2/ @teppeis @RReverser +/types/esprima/ @teppeis @RReverser @peter-scott /types/esprima-walk/ @tswaters /types/esri-leaflet/ @strajuser /types/esri-leaflet-geocoder/ @BendingBender @@ -759,7 +825,8 @@ /types/eureka-js-client/ @Schnillz /types/evaporate/ @kookster @chrisrhoden /types/event-emitter/ @LKay -/types/event-kit/ @enlight +/types/event-kit/v1/ @enlight +/types/event-kit/ @GlenCFL /types/event-loop-lag/ @rogierschouten /types/event-stream/ @flcdrg /types/event-to-promise/ @flying-sheep @@ -777,17 +844,19 @@ /types/express-brute/ @cyrilschumacher /types/express-brute-memcached/ @cyrilschumacher /types/express-brute-mongo/ @cyrilschumacher +/types/express-brute-redis/ @scottharwell /types/express-debug/ @federicobond /types/express-domain-middleware/ @hookclaw /types/express-enforces-ssl/ @kevinstubbs /types/express-fileupload/ @Naktibalda /types/express-flash-2/ @mathsalmi /types/express-formidable/ @tdolsen -/types/express-graphql/ @isman-usoh @nitintutlani +/types/express-graphql/ @isman-usoh @nitintutlani @hubel /types/express-handlebars/ @stpettersens @yhaskell /types/express-jwt/ @wokim @kacepe @Sl1MBoy /types/express-less/ @xieyubo /types/express-minify/ @borislavjivkov +/types/express-mongo-sanitize/ @ericbyers /types/express-mung/ @cyrilschumacher /types/express-myconnection/ @Cellule /types/express-mysql-session/ @Akim95 @@ -822,6 +891,7 @@ /types/farbtastic/ @EnableSoftware /types/fast-diff/ @djrenren /types/fast-levenshtein/ @mizunashi-mana +/types/fast-list/ @BendingBender /types/fast-stats/ @rogierschouten /types/fastclick/ @shinnn /types/favico.js/ @drowse314-dev-ymat @@ -829,6 +899,7 @@ /types/fbemitter/ @kmxz /types/featherlight/ @xStrom /types/fecha/ @9y5 +/types/feedme/ @codeanimal /types/fetch-jsonp/ @tkrotoff /types/fetch-mock/ @asvetliakov @tamird @merrywhether @chrissinclair /types/fetch.io/ @newraina @@ -840,6 +911,7 @@ /types/file-exists/ @BendingBender /types/file-saver/ @cyrilschumacher @DaIgeb /types/file-type/ @tcaesvk @BendingBender +/types/file-url/ @coderslagoon /types/filenamify/ @rokt33r /types/filesize/ @GiedriusGrabauskas /types/fill-pdf/ @westy92 @@ -855,12 +927,14 @@ /types/firebird/ @karak /types/firefox/ @vvakame /types/firmata/ @troywweber7 -/types/first-mate/ @enlight +/types/first-mate/v4/ @enlight +/types/first-mate/ @GlenCFL /types/fixed-data-table/ @pepaar @stephenjelfs /types/flat/ @chrootsu /types/flatpickr/v2/ @UnwrittenFun /types/flatpickr/ @UnwrittenFun @rowellx68 @wagich /types/flexslider/ @diullei +/types/flickity/ @clmcgrath @wagich /types/flight/ @jonathanhedren /types/flightplan/ @borislavjivkov /types/flipsnap/ @kubosho @gsino @mayuki @@ -868,7 +942,7 @@ /types/flowjs/ @ryan10132 /types/fluent-ffmpeg/ @tcaesvk @DingWeizhe /types/flux/ @stkb @GiedriusGrabauskas -/types/flux-standard-action/ @tkqubo +/types/flux-standard-action/ @tkqubo @zimme /types/fluxxor/ @mrk21 /types/fm-websync/ @markusmauch /types/fontfaceobserver/ @RandScullard @@ -888,24 +962,26 @@ /types/freedom/ @jpevarnek /types/freeport/ @atd-schubert /types/fresh/ @BendingBender +/types/friendly-errors-webpack-plugin/ @bahlo /types/frisby/ @johnny4753 /types/from/ @Bartvds /types/from2/ @BendingBender /types/fromjs/ @glenndierckx /types/fromnow/ @marinewater /types/fs-ext/ @OguzhanE -/types/fs-extra/ @alan-agius4 @midknight41 @shiftkey +/types/fs-extra/ @alan-agius4 @midknight41 @shiftkey @mees- /types/fs-extra-promise/ @midknight41 @jasonswearingen @HiromiShikata /types/fs-extra-promise-es6/ @midknight41 @jasonswearingen @geoffreak @HiromiShikata /types/fs-finder/ @misak113 /types/fs-mock/ @rogierschouten /types/fs-promise/ @tarruda +/types/fs-readdir-recursive/ @pscanf /types/fsevents/ @BendingBender /types/ftdomdelegate/ @dotnetnerd /types/ftp/ @rogierschouten /types/ftpd/ @rogierschouten /types/fullcalendar/v1/ @nestalk @hasellcamargo -/types/fullcalendar/ @nestalk @hasellcamargo @panic175 +/types/fullcalendar/ @nestalk @hasellcamargo @panic175 @hmil /types/fullname/ @kayahr /types/fuse/ @smrq /types/fusioncharts/ @rohitkr @shivarajkv @@ -920,6 +996,131 @@ /types/gapi.analytics/ @gatsbimantico /types/gapi.auth2/ @flawless2011 /types/gapi.calendar/ @tkrotoff +/types/gapi.client/ @Bolisov +/types/gapi.client.acceleratedmobilepageurl/ @Bolisov +/types/gapi.client.adexchangebuyer/ @Bolisov +/types/gapi.client.adexchangebuyer2/ @Bolisov +/types/gapi.client.adexchangeseller/ @Bolisov +/types/gapi.client.adexperiencereport/ @Bolisov +/types/gapi.client.admin/ @Bolisov +/types/gapi.client.adsense/ @Bolisov +/types/gapi.client.adsensehost/ @Bolisov +/types/gapi.client.analytics/ @Bolisov +/types/gapi.client.analyticsreporting/ @Bolisov +/types/gapi.client.androiddeviceprovisioning/ @Bolisov +/types/gapi.client.androidenterprise/ @Bolisov +/types/gapi.client.androidmanagement/ @Bolisov +/types/gapi.client.androidpublisher/ @Bolisov +/types/gapi.client.appengine/ @Bolisov +/types/gapi.client.appsactivity/ @Bolisov +/types/gapi.client.appstate/ @Bolisov +/types/gapi.client.bigquery/ @Bolisov +/types/gapi.client.bigquerydatatransfer/ @Bolisov +/types/gapi.client.blogger/ @Bolisov +/types/gapi.client.books/ @Bolisov +/types/gapi.client.calendar/ @Bolisov +/types/gapi.client.civicinfo/ @Bolisov +/types/gapi.client.classroom/ @Bolisov +/types/gapi.client.cloudbilling/ @Bolisov +/types/gapi.client.cloudbuild/ @Bolisov +/types/gapi.client.clouddebugger/ @Bolisov +/types/gapi.client.clouderrorreporting/ @Bolisov +/types/gapi.client.cloudfunctions/ @Bolisov +/types/gapi.client.cloudiot/ @Bolisov +/types/gapi.client.cloudkms/ @Bolisov +/types/gapi.client.cloudmonitoring/ @Bolisov +/types/gapi.client.cloudresourcemanager/ @Bolisov +/types/gapi.client.cloudtasks/ @Bolisov +/types/gapi.client.cloudtrace/ @Bolisov +/types/gapi.client.clouduseraccounts/ @Bolisov +/types/gapi.client.compute/ @Bolisov +/types/gapi.client.consumersurveys/ @Bolisov +/types/gapi.client.container/ @Bolisov +/types/gapi.client.content/ @Bolisov +/types/gapi.client.customsearch/ @Bolisov +/types/gapi.client.dataflow/ @Bolisov +/types/gapi.client.dataproc/ @Bolisov +/types/gapi.client.datastore/ @Bolisov +/types/gapi.client.deploymentmanager/ @Bolisov +/types/gapi.client.dfareporting/ @Bolisov +/types/gapi.client.discovery/ @Bolisov +/types/gapi.client.dlp/ @Bolisov +/types/gapi.client.dns/ @Bolisov +/types/gapi.client.doubleclickbidmanager/ @Bolisov +/types/gapi.client.doubleclicksearch/ @Bolisov +/types/gapi.client.drive/ @Bolisov +/types/gapi.client.firebasedynamiclinks/ @Bolisov +/types/gapi.client.firebaseremoteconfig/ @Bolisov +/types/gapi.client.firebaserules/ @Bolisov +/types/gapi.client.firestore/ @Bolisov +/types/gapi.client.fitness/ @Bolisov +/types/gapi.client.fusiontables/ @Bolisov +/types/gapi.client.games/ @Bolisov +/types/gapi.client.gamesconfiguration/ @Bolisov +/types/gapi.client.gamesmanagement/ @Bolisov +/types/gapi.client.genomics/ @Bolisov +/types/gapi.client.gmail/ @Bolisov +/types/gapi.client.groupsmigration/ @Bolisov +/types/gapi.client.groupssettings/ @Bolisov +/types/gapi.client.iam/ @Bolisov +/types/gapi.client.identitytoolkit/ @Bolisov +/types/gapi.client.kgsearch/ @Bolisov +/types/gapi.client.language/ @Bolisov +/types/gapi.client.licensing/ @Bolisov +/types/gapi.client.logging/ @Bolisov +/types/gapi.client.manufacturers/ @Bolisov +/types/gapi.client.mirror/ @Bolisov +/types/gapi.client.ml/ @Bolisov +/types/gapi.client.monitoring/ @Bolisov +/types/gapi.client.oauth2/ @Bolisov +/types/gapi.client.oslogin/ @Bolisov +/types/gapi.client.pagespeedonline/ @Bolisov +/types/gapi.client.partners/ @Bolisov +/types/gapi.client.people/ @Bolisov +/types/gapi.client.playcustomapp/ @Bolisov +/types/gapi.client.playmoviespartner/ @Bolisov +/types/gapi.client.plus/ @Bolisov +/types/gapi.client.plusdomains/ @Bolisov +/types/gapi.client.prediction/ @Bolisov +/types/gapi.client.proximitybeacon/ @Bolisov +/types/gapi.client.pubsub/ @Bolisov +/types/gapi.client.qpxexpress/ @Bolisov +/types/gapi.client.reseller/ @Bolisov +/types/gapi.client.resourceviews/ @Bolisov +/types/gapi.client.runtimeconfig/ @Bolisov +/types/gapi.client.safebrowsing/ @Bolisov +/types/gapi.client.script/ @Bolisov +/types/gapi.client.searchconsole/ @Bolisov +/types/gapi.client.servicecontrol/ @Bolisov +/types/gapi.client.servicemanagement/ @Bolisov +/types/gapi.client.serviceuser/ @Bolisov +/types/gapi.client.sheets/ @Bolisov +/types/gapi.client.siteverification/ @Bolisov +/types/gapi.client.slides/ @Bolisov +/types/gapi.client.sourcerepo/ @Bolisov +/types/gapi.client.spanner/ @Bolisov +/types/gapi.client.spectrum/ @Bolisov +/types/gapi.client.speech/ @Bolisov +/types/gapi.client.sqladmin/ @Bolisov +/types/gapi.client.storage/ @Bolisov +/types/gapi.client.storagetransfer/ @Bolisov +/types/gapi.client.streetviewpublish/ @Bolisov +/types/gapi.client.surveys/ @Bolisov +/types/gapi.client.tagmanager/ @Bolisov +/types/gapi.client.taskqueue/ @Bolisov +/types/gapi.client.tasks/ @Bolisov +/types/gapi.client.testing/ @Bolisov +/types/gapi.client.toolresults/ @Bolisov +/types/gapi.client.translate/ @Bolisov +/types/gapi.client.urlshortener/ @Bolisov +/types/gapi.client.vault/ @Bolisov +/types/gapi.client.videointelligence/ @Bolisov +/types/gapi.client.vision/ @Bolisov +/types/gapi.client.webfonts/ @Bolisov +/types/gapi.client.webmasters/ @Bolisov +/types/gapi.client.youtube/ @Bolisov +/types/gapi.client.youtubeanalytics/ @Bolisov +/types/gapi.client.youtubereporting/ @Bolisov /types/gapi.drive/ @baxtersa /types/gapi.pagespeedonline/ @sgtfrankieboy /types/gapi.people/ @tkrotoff @@ -929,6 +1130,7 @@ /types/gapi.youtube/ @sgtfrankieboy /types/gapi.youtubeanalytics/ @sgtfrankieboy /types/gaussian/ @scttcper +/types/gen-readlines/ @CodeAnimal /types/generic-functions/ @stpettersens /types/generic-pool/ @jerray /types/gently/ @bonnici @@ -949,7 +1151,7 @@ /types/git/ @vvakame /types/git-config/ @stpettersens /types/git-remote-origin-url/ @janslow -/types/gl-matrix/ @mattijskneppers @tatchx +/types/gl-matrix/ @mattijskneppers @tatchx @nbabanov @auzmartist /types/gldatepicker/ @qcz /types/glidejs/ @milanjaros /types/glob/ @vvakame @voy @@ -959,12 +1161,13 @@ /types/global-tunnel-ng/ @BendingBender /types/globalize/ @gcastre @afromogli /types/globalize-compiler/ @iclanton -/types/globby/ @douglasduteil +/types/globby/ @douglasduteil @ikatyang /types/globule/ @durad -/types/gm/ @ChaosinaCan +/types/gm/ @ChaosinaCan @maartenvanvliet /types/go/ @NorthwoodsSoftware /types/google-adwords-scripts/ @jafaircl /types/google-apps-script/ @motemen +/types/google-cloud__datastore/ @beaulac /types/google-cloud__storage/ @blove @nbperry /types/google-earth/ @icholy /types/google-images/ @dolanmiu @@ -976,20 +1179,22 @@ /types/google.fonts/ @danmarshall /types/google.geolocation/ @vbortone /types/google.picker/ @grapswiz -/types/google.visualization/ @danludwig @gmoore-sjcorg @danmana @mlcheng @IvanBisultanov +/types/google.visualization/ @danludwig @gmoore-sjcorg @danmana @mlcheng @IvanBisultanov @glebm /types/googlemaps/ @cgwrench @nertzy @xaolas @mrmcnerd @martincostello /types/googlemaps.infobubble/ @Dashue /types/got/ @BendingBender @LinusU -/types/graceful-fs/ @Bartvds +/types/graceful-fs/v2/ @Bartvds +/types/graceful-fs/ @Bartvds @BendingBender /types/graham_scan/ @hberntsen /types/graphene-pk11/ @microshine /types/graphite-udp/ @EricByers -/types/graphql/ @TonyPythoneer @calebmer @intellix @firede @kepennar @freiksenet +/types/graphql/ @TonyPythoneer @calebmer @intellix @firede @kepennar @freiksenet @IvanGoncharov @DxCx /types/graphql-date/ @enaeseth /types/graphql-relay/ @arvitaly @nitintutlani @Grelinfo /types/graphql-type-json/ @schfkt /types/graphviz/ @mhfrantz /types/gravatar/ @denis-sokolov +/types/gravatar-url/ @ivangabriele /types/greasemonkey/ @kotas /types/grecaptcha/ @DethAriel /types/gregorian-calendar/ @cwalv @@ -1058,6 +1263,7 @@ /types/gulp-useref/ @tkrotoff /types/gulp-util/ @jedmao /types/gulp-watch/ @tkrotoff +/types/gulp-zip/ @dudeofawesome /types/gzip-size/ @plantain-00 /types/h2o2/ @jasonswearingen @AJamesPhillips /types/halfred/ @dherges @@ -1093,9 +1299,13 @@ /types/helmet/ @cyrilschumacher @EvanHahn @bluehatbrit /types/heredatalens/ @denyo /types/heremaps/ @Josh-ES @denyo +/types/heroku-logger/ @kylevogt +/types/hexo-bunyan/ @segayuu +/types/hexo-fs/ @segayuu +/types/hexo-log/ @segayuu /types/highcharts/ @damianog @baltie @AlbertOzimek @hanssens /types/highcharts-ng/ @scatcher -/types/highland/ @Bartvds @hgwood @iwllyu +/types/highland/ @Bartvds @hgwood @iwllyu @alvis /types/highlight.js/ @nikeee @sourrust /types/hiredis/ @titan /types/history/v2/ @sergey-buturlakin @ngbrown @@ -1107,8 +1317,8 @@ /types/hoek/ @prashaantt /types/homeworks/ @KennethanCeyer /types/hooker/ @misak113 -/types/hopscotch/ @pimterry -/types/howler/ @xperiments @tdukart +/types/hopscotch/ @pimterry @Aurimas1 +/types/howler/ @xperiments @tdukart @alien35 @nicholashza /types/hpp/ @kryops /types/html-entities/ @xstoudi /types/html-minifier/ @tkrotoff @@ -1118,7 +1328,7 @@ /types/html-webpack-template/ @bumbleblym /types/html2canvas/ @rwhepburn @tan9 /types/htmlbars-inline-precompile/ @chriskrycho -/types/htmlparser2/ @staticfunction +/types/htmlparser2/ @staticfunction @LinusU /types/htmltojsx/ @basarat /types/http-assert/ @jkeylu /types/http-aws-es/ @marcogrcr @@ -1126,6 +1336,7 @@ /types/http-errors/ @tkrotoff @BendingBender /types/http-proxy/ @SomaticIT /types/http-proxy-middleware/ @zebMcCorkle @BendingBender +/types/http-server/ @plantain-00 /types/http-status/ @misak113 /types/http-status-codes/ @JoshMcCullough /types/http-string-parser/ @pine613 @@ -1187,6 +1398,7 @@ /types/insight/ @vvakame /types/integer/ @Morfent /types/interact.js/ @dduugg @adidahiya @thasner +/types/intercom-web/ @fongandrew @salbahra /types/intercomjs/ @spencerwi /types/internal-ip/ @BendingBender /types/intl/ @RagibHasin @@ -1234,7 +1446,13 @@ /types/isomorphic-fetch/ @toddlucas /types/isotope-layout/ @avidenic /types/istanbul/ @tkrotoff +/types/istanbul-lib-coverage/ @jason0x43 +/types/istanbul-lib-hook/ @jason0x43 +/types/istanbul-lib-instrument/ @jason0x43 +/types/istanbul-lib-report/ @jason0x43 +/types/istanbul-lib-source-maps/ @jason0x43 /types/istanbul-middleware/ @hookclaw +/types/istanbul-reports/ @jason0x43 /types/ityped/ @DanielRosenwasser /types/ix.js/ @Igorbek /types/jade/ @panuhorsmalahti @@ -1265,8 +1483,13 @@ /types/jdataview/ @RReverser /types/jdenticon/ @mtr /types/jest/v16/ @NoHomey @jwbay -/types/jest/ @NoHomey @jwbay @asvetliakov @alexjoverm @epicallan @ikatyang +/types/jest/ @NoHomey @jwbay @asvetliakov @alexjoverm @epicallan @ikatyang @wsmd +/types/jest-diff/ @myabc +/types/jest-docblock/ @ikatyang +/types/jest-get-type/ @myabc +/types/jest-matcher-utils/ @myabc /types/jest-matchers/ @joscha +/types/jest-validate/ @ikatyang /types/jfs/ @tlaziuk /types/jimp/ @Jack-Works /types/jjv/ @Nemo157 @@ -1275,9 +1498,10 @@ /types/jodata/ @cgwrench /types/johnny-five/ @nakakura /types/joi/v6/ @Bartvds @laurence-myers @cglantschnig @DavidBR-SW -/types/joi/ @Bartvds @laurence-myers @cglantschnig @DavidBR-SW @GaelMagnan @ralekna @schfkt +/types/joi/ @Bartvds @laurence-myers @cglantschnig @DavidBR-SW @GaelMagnan @ralekna @schfkt @rokoroku /types/joigoose/ @boothwhack /types/jointjs/ @areel @DavidDurman @DenEwout @CaselIT @ChrisMoran +/types/jpeg-js/ @DanielRosenwasser /types/jpm/ @github-account-because-they-want-it /types/jqgrid/ @lokeshpeta /types/jqrangeslider/ @qcz @@ -1326,6 +1550,7 @@ /types/jquery.dynatree/ @fdecampredon /types/jquery.elang/ @sumegizoltan /types/jquery.fancytree/ @alphaleonis @abedi-ir +/types/jquery.filtertable/ @totpero /types/jquery.finger/ @maxackley /types/jquery.flagstrap/ @felipedgarcia /types/jquery.fullscreen/ @piraveen @@ -1379,9 +1604,7 @@ /types/js-beautify/ @JoshuaKGoldberg @hansrwindhoff /types/js-clipper/ @omni360 /types/js-combinatorics/ @outring -/types/js-cookie/ @theodorejb -/types/js-data/v1/ @reppners -/types/js-data/ @reppners +/types/js-cookie/ @theodorejb @BendingBender /types/js-data-angular/ @reppners /types/js-data-http/ @reppners /types/js-fixtures/ @kazimanzurrashid @@ -1409,14 +1632,16 @@ /types/json-merge-patch/ @senyaarseniy /types/json-patch/ @vvakame /types/json-pointer/ @Bartvds -/types/json-rpc-ws/ @npenin +/types/json-rpc-ws/ @npenin @mlamp /types/json-schema/ @bcherny /types/json-socket/ @svi3c /types/json-stable-stringify/ @mhfrantz /types/json-stringify-safe/ @BendingBender /types/json2md/ @MartynasZilinskas +/types/jsonata/ @nick121212 /types/jsoneditor/ @alejo90 /types/jsoneditoronline/ @vbortone +/types/jsonfile/ @dbowring /types/jsonminify/ @no23reason /types/jsonnet/ @hookclaw /types/jsonp/ @surenkov @@ -1426,6 +1651,7 @@ /types/jsonwebtoken/ @SomaticIT @danielheim /types/jspdf/ @amberjs /types/jsplumb/ @shearnie +/types/jsqrcode/ @lordazzi /types/jsrender/ @zakki /types/jsrp/ @harryshipton /types/jss/ @Ptival @@ -1438,14 +1664,15 @@ /types/jsuri/ @coldacid @flqw /types/jsurl/ @agorshkov23 /types/jsx-chai/ @nupplaphil -/types/jszip/ @mzeiher +/types/jszip/ @mzeiher @forabi /types/jug/ @yevt /types/jui/ @easylogic /types/jui-core/ @easylogic /types/jui-grid/ @easylogic /types/jweixin/ @taoqf -/types/jwplayer/ @martinduparc +/types/jwplayer/ @martinduparc @kutomer /types/jwt-client/ @timoteoponce +/types/jwt-decode/v1/ @QuatroDevOfficial /types/jwt-decode/ @GiedriusGrabauskas @madsmadsen /types/jwt-simple/ @kenfdev @GaelMagnan /types/kafka-node/ @dansitu @bkim54 @sfrooster @amiram @@ -1455,10 +1682,11 @@ /types/karma-coverage/ @tkrotoff /types/karma-fixture/ @evictor /types/karma-jasmine/ @michelsalib +/types/karma-webpack/ @mtraynham /types/katex/ @mrand01 /types/kcors/ @Xstoudi @izayoiko /types/kdbush/ @DenisCarriere -/types/kefir/ @AyaMorisawa +/types/kefir/ @AyaMorisawa @HitoriSensei /types/kendo-ui/ @telerik /types/keyboardjs/ @vbortone @piranha771 /types/keycloak-js/ @eppsilon @@ -1472,6 +1700,7 @@ /types/klaw/ @mceachen /types/klaw-sync/ @shiftkey /types/knex/ @tkQubo @baronfel +/types/knex-postgis/ @vesse /types/knockback/ @borisyankov /types/knockout/ @EnableSoftware @BenjaminEckardt /types/knockout-amd-helpers/ @DavidSichau @@ -1498,17 +1727,20 @@ /types/koa-compose/ @jkeylu /types/koa-compress/ @hellopao /types/koa-favicon/ @hellopao -/types/koa-generic-session/ @nsimmons +/types/koa-generic-session/ @nsimmons @Ragg- /types/koa-hbs/ @jcbmln @mudkipme /types/koa-helmet/ @me /types/koa-json/ @brooklyndev /types/koa-json-error/ @mudkipme /types/koa-jwt/ @brunokrebs /types/koa-logger/ @geoffreak +/types/koa-logger-winston/ @stevehipwell /types/koa-morgan/ @vesse /types/koa-mount/ @amirsaber /types/koa-passport/ @horiuchi +/types/koa-pino-logger/ @khell /types/koa-pug/ @Xstoudi +/types/koa-range/ @strax /types/koa-redis/ @nsimmons /types/koa-route/ @migstopheles /types/koa-router/ @hellopao @schfkt @@ -1518,15 +1750,17 @@ /types/koa-static/ @hellopao /types/koa-views/ @brooklyndev /types/koa-websocket/ @me +/types/koa2-cors/ @xialeistudio +/types/koa__cors/ @Xstoudi @izayoiko @stevehipwell /types/kolite/ @borisyankov /types/konami.js/ @mareek /types/kramed/ @tonicblue /types/kss/ @giladgray /types/kue/ @drudge @amiram @pc-jedi -/types/kuromoji/ @mzsm +/types/kurento-utils/ @nenadalm +/types/kuromoji/ @mzsm @kgtkr /types/lab/ @prashaantt /types/ladda/ @dflor003 @leemicw -/types/lambda-phi/ @elitechance /types/later/ @jasond-s /types/latinize/ @GiedriusGrabauskas /types/launchpad/ @rictic @@ -1538,13 +1772,16 @@ /types/leaflet/ @alejo90 /types/leaflet-areaselect/ @awallat /types/leaflet-curve/ @onikiienko -/types/leaflet-draw/ @matt-guest @reblace +/types/leaflet-draw/ @matt-guest @reblace @YunS-Stacy /types/leaflet-editable/ @dalie /types/leaflet-fullscreen/ @DenisCarriere +/types/leaflet-geocoder-mapzen/ @leezu +/types/leaflet-gpx/ @soucekv /types/leaflet-imageoverlay-rotated/ @tkleinke /types/leaflet-label/ @Nemo157 /types/leaflet-polylinedecorator/ @soucekv /types/leaflet-providers/ @BendingBender +/types/leaflet-rotatedmarker/ @robert-prib-polestar /types/leaflet.awesome-markers/v0/ @Odrin @sebek64 /types/leaflet.awesome-markers/ @sebek64 /types/leaflet.fullscreen/ @wcomartin @@ -1577,15 +1814,17 @@ /types/loader-runner/ @e-cloud /types/loader-utils/ @Perlmint /types/lobibox/ @itboy87 +/types/local-dynamo/ @Sicilica /types/localforage-cordovasqlitedriver/ @thgreasi /types/localized-countries/ @coderslagoon +/types/localizejs-library/ @salbahra /types/locate-path/ @me /types/lockfile/v0/ @Bartvds /types/lockfile/ @Bartvds @BendingBender /types/lockr/ @droritos /types/locutus/ @hookclaw /types/lodash/v3/ @bczengel @chrootsu -/types/lodash/ @bczengel @chrootsu @stepancar @ericanderson @aj-r @ailrun +/types/lodash/ @bczengel @chrootsu @stepancar @ericanderson @aj-r @ailrun @e-cloud /types/lodash-es/ @stephenlautier /types/lodash-webpack-plugin/ @bumbleblym /types/lodash.add/ @bczengel @chrootsu @stepancar @@ -1613,6 +1852,7 @@ /types/lodash.clonewith/ @bczengel @chrootsu @stepancar /types/lodash.compact/ @bczengel @chrootsu @stepancar /types/lodash.concat/ @bczengel @chrootsu @stepancar +/types/lodash.cond/ @bczengel @chrootsu @stepancar /types/lodash.constant/ @bczengel @chrootsu @stepancar /types/lodash.countby/ @bczengel @chrootsu @stepancar /types/lodash.create/ @bczengel @chrootsu @stepancar @@ -1627,6 +1867,7 @@ /types/lodash.difference/ @bczengel @chrootsu @stepancar /types/lodash.differenceby/ @bczengel @chrootsu @stepancar /types/lodash.differencewith/ @bczengel @chrootsu @stepancar +/types/lodash.divide/ @bczengel @chrootsu @stepancar /types/lodash.drop/ @bczengel @chrootsu @stepancar /types/lodash.dropright/ @bczengel @chrootsu @stepancar /types/lodash.droprightwhile/ @bczengel @chrootsu @stepancar @@ -1646,6 +1887,8 @@ /types/lodash.findlastkey/ @bczengel @chrootsu @stepancar /types/lodash.first/ @bczengel @chrootsu @stepancar /types/lodash.flatmap/ @bczengel @chrootsu @stepancar +/types/lodash.flatmapdeep/ @bczengel @chrootsu @stepancar +/types/lodash.flatmapdepth/ @bczengel @chrootsu @stepancar /types/lodash.flatten/ @bczengel @chrootsu @stepancar /types/lodash.flattendeep/ @bczengel @chrootsu @stepancar /types/lodash.flattendepth/ @bczengel @chrootsu @stepancar @@ -1773,6 +2016,7 @@ /types/lodash.pull/ @bczengel @chrootsu @stepancar /types/lodash.pullall/ @bczengel @chrootsu @stepancar /types/lodash.pullallby/ @bczengel @chrootsu @stepancar +/types/lodash.pullallwith/ @bczengel @chrootsu @stepancar /types/lodash.pullat/ @bczengel @chrootsu @stepancar /types/lodash.random/ @bczengel @chrootsu @stepancar /types/lodash.range/ @bczengel @chrootsu @stepancar @@ -1822,6 +2066,7 @@ /types/lodash.throttle/ @bczengel @chrootsu @stepancar /types/lodash.times/ @bczengel @chrootsu @stepancar /types/lodash.toarray/ @bczengel @chrootsu @stepancar +/types/lodash.tofinite/ @bczengel @chrootsu @stepancar /types/lodash.tointeger/ @bczengel @chrootsu @stepancar /types/lodash.tolength/ @bczengel @chrootsu @stepancar /types/lodash.tolower/ @bczengel @chrootsu @stepancar @@ -1851,6 +2096,7 @@ /types/lodash.unzip/ @bczengel @chrootsu @stepancar /types/lodash.unzipwith/ @bczengel @chrootsu @stepancar /types/lodash.update/ @bczengel @chrootsu @stepancar +/types/lodash.updatewith/ @bczengel @chrootsu @stepancar /types/lodash.uppercase/ @bczengel @chrootsu @stepancar /types/lodash.upperfirst/ @bczengel @chrootsu @stepancar /types/lodash.values/ @bczengel @chrootsu @stepancar @@ -1868,16 +2114,15 @@ /types/log-symbols/ @BendingBender /types/log-update/ @BendingBender /types/log4javascript/ @Ritzlgrmft -/types/log4js/ @armorik83 /types/logat/ @krvikash35 /types/logg/ @blittle /types/loggly/ @rmartone @geoffreak -/types/loglevel/ @Pro @flqw @szmeti +/types/loglevel/ @Pro @szmeti @screendriver /types/logrotate-stream/ @rogierschouten /types/lokijs/ @TeamworkGuy2 /types/lolex/ @Nemo157 @joshuakgoldberg /types/long/ @peterkooijmans -/types/loopback/ @kattsushi +/types/loopback/ @kattsushi @enko @sequoia @drmikecrowe /types/loopback-boot/ @kattsushi /types/lorem-ipsum/ @durad /types/lory.js/ @kubosho @milkisevil @@ -1885,11 +2130,13 @@ /types/lovefield/ @freshp86 /types/lowdb/ @typicode /types/lowlight/ @NoHomey -/types/lru-cache/ @Bartvds +/types/lozad/ @plantain-00 +/types/lru-cache/ @Bartvds @BendingBender /types/lscache/ @Chris-Martinezz /types/ltx/ @PJakcson /types/luaparse/ @stpettersens -/types/lunr/ @sebastian-lenz +/types/lunr/v0/ @sebastian-lenz +/types/lunr/ @seantanly /types/lwip/ @AyaMorisawa /types/lz-string/ @M0ns1gn0r /types/magic-number/ @stpettersens @@ -1905,7 +2152,7 @@ /types/mandrill-api/ @pocesar /types/map-obj/ @BendingBender /types/mapbox/ @anahkiasen -/types/mapbox-gl/ @dobrud +/types/mapbox-gl/ @dobrud @patrickr /types/mapbox__shelf-pack/ @Perlmint /types/mapsjs/ @davismj /types/mariasql/ @bennett000 @@ -1914,7 +2161,7 @@ /types/markdown-it-container/ @hronex /types/marked/ @worr @BendingBender /types/marker-animate-unobtrusive/ @viskin -/types/markerclustererplus/ @enanox +/types/markerclustererplus/ @enanox @mxl /types/markitup/ @drillbits /types/maskedinput/ @lokeshpeta /types/masonry-layout/ @m-a-wilson @warriorrocker @@ -1931,12 +2178,13 @@ /types/mcustomscrollbar/ @flurg /types/md5/ @arcdev1 @jprogrammer /types/mdns/ @reppners +/types/mdurl/ @rokt33r /types/media-typer/ @BendingBender /types/medium-editor/ @keika299 /types/mem/ @SamVerschueren /types/memcached/ @KentarouTakeda /types/memoizee/ @juanpicado -/types/memory-cache/ @jedigo +/types/memory-cache/ @jedigo @thieman /types/memory-fs/ @e-cloud /types/memwatch-next/ @cyrilschumacher /types/meow/ @KnisterPeter @@ -1959,6 +2207,7 @@ /types/methods/ @cprecioso /types/metismenu/ @onokumus @denisname /types/metric-suffix/ @davidm77 +/types/mfiles/ @avonwyss /types/micro/ @kaoDev /types/microgears/ @marcusdb /types/micromatch/ @glen-84 @@ -1966,16 +2215,17 @@ /types/microsoft-ajax/ @pjmagee /types/microsoft-live-connect/ @jvilk /types/microsoft-sdk-soap/ @markusmauch -/types/microsoftteams/ @OfficeDev +/types/microsoftteams/ @WrathOfZombies @jayongg @ydogandjiev /types/microtime/ @vincekovacs /types/milkcocoa/ @odangosan -/types/mime/ @jedigo +/types/mime/ @jedigo @dhritzkiv /types/mime-db/ @AJamesPhillips /types/mime-types/ @Perlmint /types/mimos/ @AJamesPhillips /types/mina/ @lhk @mattanja @kant2002 /types/minimatch/ @vvakame @shantmarouti /types/minimist/ @Bartvds @Necroskillz @kamranayub +/types/minimist-options/ @ikatyang /types/minipass/ @BendingBender /types/mithril/ @spacejack @andraaspar @isiahmeadows /types/mithril-global/ @spacejack @isiahmeadows @@ -2000,7 +2250,7 @@ /types/moment-range/ @Burgov @wilgert @franjuan @MartynasZilinskas /types/moment-round/ @jacobbaskin /types/moment-timezone/ @michelsalib -/types/mongodb/ @CaselIT @alanmarcell @kikar +/types/mongodb/ @CaselIT @alanmarcell @kikar @bitjson @dante-101 /types/mongoose/ @simonxca @horiuchi @sindrenm @lukasz-zak /types/mongoose-auto-increment/ @AyaMorisawa /types/mongoose-deep-populate/ @AyaMorisawa @@ -2009,18 +2259,18 @@ /types/mongoose-promise/ @simonxca /types/mongoose-seeder/ @Crevil /types/mongoose-sequence/ @linusbrolin -/types/mongoose-simple-random/ @me +/types/mongoose-simple-random/ @rsxdalv /types/mongoose-unique-validator/ @stevehipwell /types/monk/ @wzr1337 /types/moo/ @deltaidea -/types/morgan/ @staticfunction +/types/moonjs/ @DanielRosenwasser +/types/morgan/ @staticfunction @pscanf /types/morris.js/ @mareek @sindilevich /types/mousetrap/ @qcz /types/move-concurrently/ @mgroenhoff /types/moviedb/ @basarat @0x6368656174 /types/moxios/ @itoasuka /types/mpromise/ @sgkim126 -/types/mqtt/ @PekkaPLeppanen /types/mri/ @shiftkey @j-f1 /types/ms/ @danny8002 /types/msgpack-lite/ @endel @efokschaner @@ -2032,7 +2282,7 @@ /types/multer/ @jt000 @DavidBR-SW @mxl @hyunseob /types/multer-gridfs-storage/v1/ @devconcept /types/multer-gridfs-storage/ @devconcept -/types/multer-s3/ @tcaesvk +/types/multer-s3/ @tcaesvk @galtalmor /types/multi-typeof/ @mhegazy /types/multimatch/ @stephenlautier /types/multiparty/ @kenfdev @@ -2041,14 +2291,16 @@ /types/murmurhash3js/ @dlee-nvisia /types/musicmetadata/ @Xstoudi /types/mustache/ @markashleybell +/types/mv/ @nenadalm /types/mysql/ @wjohnsto @kacepe /types/mz/ @ThomasHickman /types/n3/ @phreed -/types/nano/ @timjacobi +/types/nano/ @timjacobi @vincekovacs /types/nanoajax/ @nathancahill /types/nanomsg/ @titan /types/nanoscroller/ @zihark17 /types/nanp/ @karn +/types/nats-hemera/ @vforv /types/natsort/ @mgroenhoff /types/natural/ @dmoonfire /types/natural-sort/ @a-morales @@ -2059,14 +2311,16 @@ /types/nconf/ @jedigo @jmthibault /types/ncp/ @bartvds /types/ndarray/ @pawsong @taoqf -/types/nearley/ @deltaidea -/types/nedb/ @reppners +/types/nearley/ @deltaidea @BendingBender +/types/nedb/ @reppners @anthonynichols /types/nedb-logger/ @thisboyiscrazy /types/needle/v0/ @bigsan -/types/needle/ @bigsan @nikeee +/types/needle/v1/ @bigsan @nikeee +/types/needle/ @bigsan @nikeee @sindilevich /types/negotiator/ @BendingBender /types/neo4j/ @cyrilschumacher /types/nes/ @NoHomey +/types/net-keepalive/ @hertzg /types/netmask/ @mhfrantz /types/nexpect/ @vvakame /types/next/ @dru89 @@ -2092,12 +2346,13 @@ /types/ngtoaster/ @btesser /types/ngwysiwyg/ @patrick-mackay /types/nightmare/ @horiuchi @samyang-au -/types/noble/ @swook @wind-rider @shantanubhadoria @lukel99 @bioball +/types/nightwatch/ @rkavalap @schlesiger +/types/noble/ @swook @wind-rider @shantanubhadoria @lukel99 @bioball @keton /types/nock/ @bonnici @horiuchi /types/nodal/ @charrondev -/types/node/v6/ @WilcoBakker -/types/node/v7/ @parambirs @RobDesideri @tellnes @WilcoBakker @Tyriar -/types/node/ @parambirs @RobDesideri @tellnes @WilcoBakker @octo-sniffle @smac89 @Flarna @mwiktorczyk @wwwy3y3 @Tyriar @DeividasBakanas +/types/node/v6/ @WilcoBakker @inlined +/types/node/v7/ @parambirs @RobDesideri @tellnes @WilcoBakker +/types/node/ @parambirs @tellnes @WilcoBakker @octo-sniffle @smac89 @Flarna @mwiktorczyk @wwwy3y3 @DeividasBakanas @kjin @alvis /types/node-7z/ @erkie /types/node-array-ext/ @Beng89 /types/node-cache/ @chrootsu @dthunell @@ -2112,10 +2367,11 @@ /types/node-fibers/ @caryhaynie /types/node-forge/ @westy92 @flynetworks @a-k-g /types/node-gcm/ @horiuchi +/types/node-geocoder/ @rosek86 /types/node-getopt/ @kcauchy /types/node-hid/ @mhegazy @ert78gb /types/node-hue-api/ @fjmorel -/types/node-int64/ @x3cion +/types/node-int64/ @x3cion @kevin-greene-ck /types/node-ipc/ @arvitaly /types/node-jsfl-runner/ @mrand01 /types/node-json-db/ @kuzn-ilya @@ -2125,6 +2381,7 @@ /types/node-polyglot/ @timjk /types/node-powershell/ @rodrigoff /types/node-ral/ @ssddi456 +/types/node-red/ @andersea /types/node-rsa/ @alitaheri /types/node-schedule/ @cyrilschumacher @flowpl /types/node-slack/ @tkQubo @@ -2132,7 +2389,7 @@ /types/node-sprite-generator/ @Perlmint /types/node-static/ @Morfent /types/node-statsd/ @alexturek @convoyinc -/types/node-telegram-bot-api/ @ammuench @agadar +/types/node-telegram-bot-api/ @ammuench @agadar @Dabolus /types/node-uuid/ @jeffmay /types/node-validator/ @kengorab /types/node-vault/ @YuJianrong @@ -2140,10 +2397,11 @@ /types/node-wit/ @julienduf /types/node-xmpp-client/ @PJakcson /types/node-xmpp-core/ @PJakcson -/types/node-zookeeper-client/ @plantain-00 +/types/node-zookeeper-client/ @plantain-00 @jessezhang91 /types/node_redis/ @borisyankov /types/nodegit/ @dolanmiu -/types/nodemailer/ @rogierschouten +/types/nodemailer/v3/ @rogierschouten +/types/nodemailer/ @rogierschouten @dex4er /types/nodemailer-direct-transport/ @rogierschouten /types/nodemailer-mailgun-transport/ @otociulis /types/nodemailer-pickup-transport/ @psnider @@ -2186,6 +2444,7 @@ /types/object-assign/ @chbrown /types/object-diff/ @rogierschouten /types/object-hash/ @misak113 +/types/object-map/ @wolfgang42 /types/object-path/ @pocesar /types/object-refs/ @3fd /types/oblo-util/ @Oblosys @@ -2202,6 +2461,7 @@ /types/on-headers/ @jjeffery @BendingBender /types/once/ @denis-sokolov @BendingBender /types/onetime/ @BendingBender +/types/oniguruma/ @smhxx /types/onoff/ @marcel-ernst /types/open/ @Bartvds /types/opener/ @tikurahul @@ -2209,7 +2469,7 @@ /types/openjscad/ @danmarshall /types/openlayers/v2/ @bolhovsky /types/openlayers/v3/ @osechet @matthiasdailey-ccri -/types/openlayers/ @osechet @ganlhi +/types/openlayers/ @osechet @wb14123 @ailrun @mylen /types/openstack-wrapper/ @sanjaymadane /types/opentok/ @westy92 @CatGuardian /types/opentype.js/ @danmarshall @@ -2230,6 +2490,8 @@ /types/os-tmpdir/ @mhegazy /types/osmosis/ @jurajkocan /types/osmtogeojson/ @tkqubo +/types/osrm/ @DenisCarriere +/types/owl.carousel/ @igorissen /types/owlcarousel/ @dpiatkowski /types/p-all/ @BendingBender /types/p-any/ @BendingBender @@ -2266,10 +2528,10 @@ /types/pad/ @mhegazy /types/paho-mqtt/ @amikhalev /types/pako/ @cappellin @calebegg -/types/papaparse/ @torpedro @rainshen49 +/types/papaparse/ @torpedro @rainshen49 @jfloff /types/paper/ @clark-stevenson /types/paralleljs/ @jbaldwin -/types/parse/ @dpoetzsch @jaeggerr +/types/parse/ @dpoetzsch @jaeggerr @flavionegrao /types/parse-git-config/ @leonard-thieu /types/parse-glob/ @glen-84 /types/parse-link-header/ @zelein @@ -2292,9 +2554,9 @@ /types/passport-google-oauth2/ @bluehatbrit /types/passport-http/ @krizalys /types/passport-http-bearer/ @isman-usoh -/types/passport-jwt/ @mugeso @alsiola /types/passport-local/ @SomaticIT /types/passport-local-mongoose/ @linusbrolin +/types/passport-oauth2/ @pasieronen /types/passport-oauth2-client-password/ @akaNightmare /types/passport-saml/ @cjbarth /types/passport-steam/ @kzay @@ -2308,7 +2570,8 @@ /types/path-is-absolute/ @mhegazy /types/pathfinding/ @BNedry /types/pathjs/ @lokeshpeta -/types/pathwatcher/ @vvakame +/types/pathwatcher/v0/ @vvakame +/types/pathwatcher/ @GlenCFL /types/pause/ @BendingBender /types/payment/ @apare /types/paypal-cordova-plugin/ @Justin-Credible @@ -2318,13 +2581,18 @@ /types/pdfkit/ @erichillah /types/pdfobject/ @nielsboogaard /types/pebblekitjs/ @makotokw +/types/peer-dial/ @RealTYPICAL /types/peerjs/ @nakakura /types/pegjs/ @vvakame @SrTobi @siegebell /types/pem/ @tony19 @DethAriel /types/perfect-scrollbar/ @aicest @CarbonAtom /types/persona/ @Nycto /types/pet-finder-api/ @me +/types/pg/v6/ @pspeter3 +/types/pg/ @pspeter3 /types/pg-connection-string/ @bradleyayers +/types/pg-ears/ @bradleyayers +/types/pg-escape/ @khell /types/pg-pool/ @aleung /types/pg-query-stream/ @asmarques /types/pg-types/ @waratuman @@ -2346,9 +2614,11 @@ /types/pi-spi/ @marcel-ernst /types/pick-weight/ @rsxdalv /types/pickadate/ @theodorejb @leonard-thieu +/types/picturefill/ @alaz /types/pidusage/ @cyrilschumacher -/types/pify/ @samverschueren +/types/pify/ @samverschueren @mad-mike /types/pigpio/ @manerfan +/types/pikaday/ @MidnightDesign @wake42 /types/pikaday-time/ @Sayan751 /types/pinkyswear/ @chances /types/pino/v3/ @psnider @@ -2365,6 +2635,7 @@ /types/plupload/ @patrickbussmann /types/pluralize/ @ukyo /types/png-async/ @kanreisa +/types/pngjs/ @jason0x43 /types/podcast/ @nikeee /types/podium/ @AJamesPhillips /types/point-in-polygon/ @dyst5422 @kogai @@ -2373,7 +2644,6 @@ /types/polymer/ @lgrignon @laco0416 /types/polymer-ts/ @lgrignon /types/popcorn/ @grapswiz -/types/popper.js/ @joscha @seckardt @marcfallows /types/portscanner/ @douglasduteil /types/postal/ @lokeshpeta @myitcv /types/postmark/ @benbayard @@ -2394,7 +2664,7 @@ /types/pouchdb-mapreduce/ @spaulg @geppy @fredgalvao /types/pouchdb-node/ @spaulg @geppy @fredgalvao /types/pouchdb-replication/ @trubit -/types/pouchdb-upsert/ @keithdmoore @hotforfeature +/types/pouchdb-upsert/ @keithdmoore @hotforfeature @apolkingg8 /types/power-assert/ @vvakame /types/power-assert-formatter/ @vvakame /types/precise/ @codeanimal @@ -2403,6 +2673,7 @@ /types/prelude-ls/ @AyaMorisawa /types/prettier/ @ikatyang /types/pretty-bytes/ @plantain-00 +/types/pretty-format/ @ikatyang /types/pretty-ms/ @BendingBender /types/printf/ @AluisioASG /types/priorityqueuejs/ @geoffreak @@ -2439,6 +2710,7 @@ /types/prosemirror-schema-basic/ @bradleyayers @davidka /types/prosemirror-schema-list/ @bradleyayers @davidka /types/prosemirror-state/ @bradleyayers @davidka +/types/prosemirror-tables/ @superchu @eshvedai /types/prosemirror-transform/ @bradleyayers @davidka /types/prosemirror-view/ @bradleyayers @davidka /types/protobufjs/ @panuhorsmalahti @@ -2453,6 +2725,7 @@ /types/pug/ @TonyPythoneer @19majkel94 /types/pulltorefreshjs/ @DanielRosenwasser /types/pump/ @tlaziuk +/types/puppeteer/ @marvinhagemeister /types/pure-render-decorator/ @seansfkelley /types/purl/ @danfma /types/pusher-js/ @tkqubo @@ -2483,7 +2756,7 @@ /types/rabbit.js/ @wokim /types/radium/ @alexgorbatchev @nupplaphil @asvetliakov @mihe /types/radius/ @codeanimal -/types/ramda/ @donnut @mdekrey @LiamGoodacre @mrdziuban @sbking @afharo @teves-castro @1M0reBug @hojberg +/types/ramda/ @donnut @mdekrey @LiamGoodacre @mrdziuban @sbking @afharo @teves-castro @1M0reBug @hojberg @charlespwd /types/random-js/ @pistacchio /types/random-seed/ @endel /types/random-string/ @stpettersens @@ -2501,15 +2774,19 @@ /types/rc-slider/ @mantasmarcinkus @mattoni /types/rc-tree/ @johnnyreilly /types/rcloader/ @panuhorsmalahti +/types/rdf-data-model/ @rubensworks +/types/rdf-js/ @rubensworks /types/react/v15/ @bbenezech @pzavolinsky @digiguru @ericanderson @morcerf @tkrotoff @DovydasNavickas @onigoetz /types/react/ @johnnyreilly @bbenezech @pzavolinsky @digiguru @ericanderson @morcerf @tkrotoff @DovydasNavickas @onigoetz @richseviora /types/react-app/ @prakarshpandey +/types/react-aria-menubutton/ @forabi @crohlfs /types/react-autosuggest/ @nicolas-schmitt @pjo256 @robessog @tbayne @cdeutsch +/types/react-beautiful-dnd/ @varHarrie /types/react-body-classname/ @mhegazy -/types/react-bootstrap/ @walkerburgin @vsiao @danilojrr @Batbold-Gansukh @octatone @chengsieuly @katbusch +/types/react-bootstrap/ @walkerburgin @vsiao @danilojrr @Batbold-Gansukh @octatone @chengsieuly @mretolaza @katbusch @vitosamson @LKay @aaronbeall /types/react-bootstrap-date-picker/ @LKay @ssi-hu-antal-bodnar /types/react-bootstrap-daterangepicker/ @ianks -/types/react-bootstrap-table/ @flaub @alelode +/types/react-bootstrap-table/ @flaub @alelode @UJosue10 /types/react-breadcrumbs/ @KostyaEsmukov /types/react-burger-menu/ @radziksh /types/react-calendar-timeline/ @radziksh @@ -2525,15 +2802,18 @@ /types/react-data-grid/v1/ @SupernaviX /types/react-data-grid/ @SupernaviX @KieranPeat @martinnov92 /types/react-datagrid/ @stephenjelfs -/types/react-datepicker/ @radziksh @andrewBalekha @smrq @Rogach +/types/react-datepicker/ @radziksh @andrewBalekha @smrq @Rogach @royxue /types/react-daterange-picker/ @uncovertruth @MartynasZilinskas /types/react-dates/ @Artur-A /types/react-daum-postcode/ @Sa-ryong /types/react-dnd-html5-backend/ @oizie /types/react-document-title/ @cleverguy25 +/types/react-dom/v15/ @MartynasZilinskas /types/react-dom/ @MartynasZilinskas +/types/react-dom-factories/ @jgoz /types/react-dropzone/v2/ @matdube @LynxEyes @goblindegook @benbayard -/types/react-dropzone/ @matdube @LynxEyes @goblindegook @benbayard @LKay +/types/react-dropzone/v3/ @matdube @LynxEyes @goblindegook @benbayard @LKay +/types/react-dropzone/ @matdube @LynxEyes @goblindegook @benbayard @LKay @codeaid /types/react-easy-chart/ @danzel /types/react-event-listener/ @asvetliakov /types/react-fa/ @flaub @patsissons @LKay @@ -2546,10 +2826,12 @@ /types/react-flexr/ @pushplay /types/react-flip-move/ @jmhain /types/react-fontawesome/ @timurrustamov @dublicator @vincaslt @gavingregory +/types/react-form/ @cameron-mcateer +/types/react-foundation/ @danielearwicker /types/react-ga/ @telshin /types/react-geosuggest/ @brmenchl /types/react-gravatar/ @invliD -/types/react-grid-layout/ @abirkholz @alitaheri @ZheyangSong +/types/react-grid-layout/ @abirkholz @alitaheri @ZheyangSong @andrewhathaway /types/react-hamburger-menu/ @grzesie2k /types/react-helmet/v4/ @evanbb @isman-usoh /types/react-helmet/ @evanbb @isman-usoh @lith-light-g @sammkj @yuit @@ -2560,7 +2842,7 @@ /types/react-i18next/v1/ @KostyaEsmukov /types/react-i18next/ @GiedriusGrabauskas /types/react-icon-base/ @apare @LKay -/types/react-icons/ @apare +/types/react-icons/ @apare @johnnyreilly @LKay /types/react-imageloader/ @stephenjelfs /types/react-infinite/ @rhysd /types/react-infinite-scroller/ @Lapanti @psrebniak @@ -2571,15 +2853,17 @@ /types/react-intl-redux/ @LKay /types/react-is-deprecated/ @seansfkelley /types/react-joyride/ @DanielRosenwasser @bendxn +/types/react-json/ @spielc /types/react-json-pretty/ @LKay /types/react-json-tree/ @gnestor -/types/react-jsonschema-form/ @iamdanfox @sirreal +/types/react-jsonschema-form/ @iamdanfox @sirreal @iplus26 /types/react-lazyload/ @m0a /types/react-leaflet/ @danzel @davschne @yuit /types/react-list/ @buptyyf /types/react-loadable/ @Kovensky @odensc /types/react-loader/ @artfuldev /types/react-maskedinput/ @LKay @lavoaster @CarlosBonetti +/types/react-mce/ @morphologue /types/react-mdl/ @bradzacher /types/react-measure/ @asvetliakov @marcfallows /types/react-mixin/ @tkqubo @@ -2587,32 +2871,40 @@ /types/react-monaco-editor/ @jnetterf /types/react-motion/ @stepancar @asvetliakov /types/react-motion-slider/ @asvetliakov -/types/react-native/ @alloy @gyzerok @huhuanming @iRoachie @timwangdev @kamal +/types/react-native/ @alloy @huhuanming @iRoachie @timwangdev @kamal /types/react-native-collapsible/ @iRoachie /types/react-native-communications/ @huhuanming /types/react-native-datepicker/ @jacobbaskin +/types/react-native-doc-viewer/ @iRoachie /types/react-native-drawer/ @jnbt /types/react-native-drawer-layout/ @jmfirth -/types/react-native-elements/ @iRoachie +/types/react-native-elements/ @iRoachie @ifiokjr /types/react-native-fbsdk/ @ifiokjr /types/react-native-fetch-blob/ @MNBuyskih /types/react-native-fs/ @pocesar /types/react-native-goby/ @MessageDream /types/react-native-google-analytics-bridge/ @huhuanming @nbperry +/types/react-native-google-signin/ @j-fro /types/react-native-keep-awake/ @huhuanming +/types/react-native-linear-gradient/ @j-fro /types/react-native-material-design-searchbar/ @iRoachie +/types/react-native-material-kit/ @iRoachie /types/react-native-material-ui/ @iRoachie +/types/react-native-modal/ @ifiokjr /types/react-native-modalbox/ @iRoachie /types/react-native-orientation/ @MoLow +/types/react-native-safari-view/ @mrand01 /types/react-native-scrollable-tab-view/ @CaiHuan /types/react-native-sensor-manager/ @SahinVardar /types/react-native-snap-carousel/ @jnbt /types/react-native-sortable-list/ @sivolobov /types/react-native-svg-uri/ @iRoachie /types/react-native-swiper/ @CaiHuan @huhuanming @mhcgrq +/types/react-native-tab-navigator/ @iRoachie +/types/react-native-tab-view/ @kaoDev /types/react-native-touch-id/ @huhuanming /types/react-native-vector-icons/ @iRoachie @timwangdev -/types/react-native-video/ @huhuanming +/types/react-native-video/ @huhuanming @abrahambotros /types/react-navigation/ @huhuanming @mhcgrq @fangpenlin @abrahambotros @petejkim @iRoachie @phanalpha @charlesfamu @timwangdev /types/react-notification-system/ @GiedriusGrabauskas @DeividasBakanas @LKay @sztobar /types/react-notification-system-redux/ @LKay @@ -2624,13 +2916,13 @@ /types/react-portal/ @shuntksh /types/react-props-decorators/ @tkqubo /types/react-recaptcha/ @mhegazy -/types/react-redux/ @tkqubo @seansfkelley @thasner @kenzierocks @clayne11 @tansongyang +/types/react-redux/ @tkqubo @thasner @kenzierocks @clayne11 @tansongyang @nicholasboll @mdibyo /types/react-redux-i18n/ @clementdevos /types/react-redux-toastr/ @Smiche @artyomsv @kulmajaba /types/react-relay/ @graphcool /types/react-responsive/ @asvetliakov /types/react-router/v2/ @sergey-buturlakin @mrk21 @vasek17 @ngbrown @awendland @KostyaEsmukov -/types/react-router/v3/ @sergey-buturlakin @mrk21 @vasek17 @ngbrown @awendland @KostyaEsmukov @johnnyreilly @LKay @DovydasNavickas +/types/react-router/v3/ @sergey-buturlakin @mrk21 @vasek17 @ngbrown @awendland @KostyaEsmukov @johnnyreilly @LKay @DovydasNavickas @ssorallen /types/react-router/ @sergey-buturlakin @mrk21 @vasek17 @ngbrown @awendland @KostyaEsmukov @johnnyreilly @LKay @DovydasNavickas @tkrotoff @huy-nguyen @grmiade @DaIgeb @egorshulga /types/react-router-bootstrap/ @vlesierse @LKay @olmobrutall /types/react-router-config/ @lith-light-g @@ -2641,67 +2933,77 @@ /types/react-router-redux/ @huy-nguyen @8398a7 /types/react-scroll/ @sudoplz @GiedriusGrabauskas /types/react-scrollbar/ @stephenjelfs -/types/react-select/ @Hesquibet @giladgray @iebaker @skirsdeda @vujevits @devrelm @MartynasZilinskas +/types/react-select/ @Hesquibet @giladgray @iebaker @skirsdeda @vujevits @devrelm @MartynasZilinskas @onatm @ninjaferret @tehbi4 /types/react-side-effect/ @remojansen /types/react-sidebar/ @jeroenvervaeke /types/react-slick/ @andrewBalekha @GiedriusGrabauskas /types/react-smooth-scrollbar/ @asvetliakov /types/react-sortable-hoc/ @NoHomey @charlesrey -/types/react-sortable-tree/ @wouterhardeman +/types/react-sortable-tree/ @wouterhardeman @jzoric /types/react-spinkit/v1/ @tkqubo @mleko @pelotom /types/react-spinkit/ @tkqubo @mleko @pelotom @zzanol /types/react-split-pane/ @rcchen /types/react-sticky/ @curtisw0 +/types/react-stripe-elements/ @dan-j /types/react-svg-pan-zoom/ @huy-nguyen /types/react-swf/ @stepancar /types/react-swipe/ @DeividasBakanas /types/react-swipeable/ @GiedriusGrabauskas @mctep /types/react-swipeable-views/ @mxl @DeividasBakanas /types/react-syntax-highlighter/ @NoHomey +/types/react-table/ @royxue @psakalo /types/react-tabs/ @danez /types/react-tag-input/ @Ogglas @jankarres /types/react-tagcloud/ @wassname /types/react-tap-event-plugin/ @mxl -/types/react-test-renderer/ @arvitaly @lochbrunner @lochbrunner @johnnyreilly +/types/react-test-renderer/v15/ @arvitaly @lochbrunner @lochbrunner @johnnyreilly +/types/react-test-renderer/ @arvitaly @lochbrunner @johnnyreilly @jgoz /types/react-tether/ @ryprice /types/react-textarea-autosize/ @asvetliakov @zry656565 /types/react-toggle/v2/ @LKay /types/react-toggle/ @LKay /types/react-tooltip/ @DeividasBakanas /types/react-touch/ @grzesie2k +/types/react-tracking/ @alloy /types/react-transition-group/v1/ @LKay /types/react-transition-group/ @LKay +/types/react-treeview/ @janslow +/types/react-truncate/ @mattvperry /types/react-user-tour/ @ccancellieri /types/react-virtual-keyboard/ @bsurai -/types/react-virtualized/ @kaoDev @guntherjh @wasd171 +/types/react-virtualized/ @kaoDev @guntherjh @wasd171 @szabolcsx /types/react-virtualized-select/ @seansfkelley /types/react-weui/ @tairan /types/react-widgets/ @rogierschouten @sanyatuning @frodehansen2 +/types/react-youtube/ @kgtkr /types/reactable/ @spielc /types/reactcss/ @chrisgervang @LKay -/types/reactstrap/ @alihammad @mfal @danilobjr +/types/reactstrap/ @alihammad @mfal @danilobjr @fabiopaiva /types/read/ @timjk +/types/read-chunk/ @crispybee /types/read-package-tree/ @mgroenhoff +/types/read-pkg-up/ @dudeofawesome /types/readdir-stream/ @Bartvds /types/readline-sync/ @jonestristand -/types/realm/ @Akim95 /types/reapop/ @Barrokgl /types/recaptcha/ @brentj73 /types/recase/ @18steps -/types/recharts/ @mthmulders @rapmue +/types/recharts/ @mthmulders @rapmue @royxue /types/recompose/ @iskandersierra @mrapogee @clayne11 /types/reconnectingwebsocket/ @nguarracino -/types/recursive-readdir/ @elisee +/types/recursive-readdir/v1/ @elisee +/types/recursive-readdir/ @elisee @MicahZoltu /types/redis/ @soywiz @CodeAnimal @MugeSo /types/redis-mock/ @BendingBender /types/redis-rate-limiter/ @westy92 /types/redis-scripto/ @westy92 /types/redlock/v2/ @chrootsu /types/redlock/ @chrootsu @BendingBender +/types/redom/ @RauliL /types/reduce-reducers/ @huy-nguyen /types/redux-action/ @newraina /types/redux-action-utils/ @tkqubo -/types/redux-actions/ @jaysoo @alexgorbatchev +/types/redux-actions/ @jaysoo @alexgorbatchev @alechill /types/redux-auth-wrapper/v1/ @LKay /types/redux-auth-wrapper/ @LKay /types/redux-batched-subscribe/ @mDibyo @@ -2712,16 +3014,17 @@ /types/redux-devtools-log-monitor/ @mc-petry /types/redux-doghouse/ @BendingBender /types/redux-first-router/ @Valbrand @viggyfresh +/types/redux-first-router-link/ @janb87 /types/redux-form/v4/ @aikoven /types/redux-form/v6/ @carsonf @aikoven @LKay @bancek -/types/redux-form/ @carsonf @aikoven @LKay @bancek +/types/redux-form/ @carsonf @aikoven @LKay @bancek @alsiola /types/redux-immutable/ @oizie @sebald @gavingregory /types/redux-immutable-state-invariant/ @remojansen @highflying /types/redux-infinite-scroll/ @silkyfray /types/redux-localstorage/ @LKay /types/redux-localstorage-debounce/ @LKay /types/redux-localstorage-filter/ @LKay -/types/redux-logger/ @arusakov +/types/redux-logger/ @arusakov @kgroat /types/redux-mock-store/ @MarianPalkus /types/redux-optimistic-ui/ @asvetliakov /types/redux-pack/ @tansongyang @@ -2731,7 +3034,9 @@ /types/redux-promise-middleware/ @ianks /types/redux-recycle/ @LKay /types/redux-router/ @stepancar +/types/redux-saga-routines/ @LKay /types/redux-storage/ @asvetliakov +/types/redux-storage-engine-jsurl/ @screendriver /types/redux-ui/ @andyshuxin /types/ref/ @loyd /types/ref-array/ @loyd @@ -2744,11 +3049,12 @@ /types/remote-redux-devtools/ @ColinEberhardt @unindented /types/remove-markdown/ @RagibHasin /types/replace-ext/ @DeividasBakanas -/types/request/ @soywiz @bonnici @Bartvds @joeskeen @ccurrens +/types/request/ @soywiz @bonnici @Bartvds @joeskeen @ccurrens @lookfirst /types/request-ip/ @mrhen /types/request-promise/ @cglantschnig @joeskeen @AyaMorisawa /types/request-promise-native/ @gustavohenke -/types/requestretry/ @EricByers +/types/requestretry/ @EricByers @trainerbill +/types/require-dir/ @weekens /types/require-directory/ @Igmat /types/require-from-string/ @ikatyang /types/requirejs/ @jbaldwin @@ -2762,10 +3068,12 @@ /types/restful.js/ @tkqubo /types/restify/v4/ @blittle @stevehipwell /types/restify/ @blittle @stevehipwell +/types/restify-cookies/ @weekens /types/restify-cors-middleware/ @dthunell /types/restify-errors/ @stevehipwell /types/restify-plugins/ @KostyaTretyak /types/restler/ @cyrilschumacher +/types/restling/ @loghorn /types/resumablejs/ @DanielMcAssey /types/rethinkdb/ @alexgorbatchev /types/retry/ @krenor @@ -2784,14 +3092,13 @@ /types/riotcontrol/ @chrootsu /types/riotjs/ @vvakame /types/rison/ @impworks -/types/rivets/ @TrevorDev +/types/rivets/ @TrevorDev @matjanos /types/rollup/ @flying-sheep /types/ronomon__crypto-async/ @BendingBender -/types/rosie/ @abner +/types/rosie/ @abner @subvertallchris /types/roslib/ @Pro @skycoop /types/rot-js/ @atiaxi /types/route-parser/ @ianks @bobbuehler -/types/router5/ @sandersky /types/routie/ @Adilson /types/royalslider/ @csrakowski /types/rpio/ @DominikPalo @@ -2800,7 +3107,7 @@ /types/rsmq/ @MugeSo /types/rsmq-worker/ @MugeSo /types/rss/ @secondwtq -/types/rsvp/ @Taytay @mkohlmyr @theroncross @chriskrycho +/types/rsvp/ @chriskrycho /types/rsync/ @philippstucki /types/rtree/ @oefirouz /types/run-sequence/ @k-kagurazaka @@ -2835,7 +3142,7 @@ /types/sandboxed-module/ @svi3c /types/sane/ @BendingBender /types/sanitize-filename/ @Nemo157 -/types/sanitize-html/ @rogierschouten @afshin +/types/sanitize-html/ @rogierschouten @afshin @BehindTheMath /types/sap__xsenv/ @mad-mike /types/sass-graph/ @marvinhagemeister /types/sat/ @omni360 @@ -2881,29 +3188,34 @@ /types/semantic-ui-visibility/ @leonard-thieu /types/semaphore/ @mhfrantz /types/semver/ @Bartvds @BendingBender @LucianBuzzo +/types/semver-compare/ @vincekovacs /types/semver-diff/ @chrismbarr /types/sencha_touch/ @brian428 /types/send/ @MikeJerred /types/seneca/ @psnider /types/sequelize/v3/ @samuelneff @codeanimal @drinchev @morpheusxaut @torhal -/types/sequelize/ @samuelneff @codeanimal @drinchev @babolivier @kukoo1 @morpheusxaut +/types/sequelize/ @samuelneff @codeanimal @drinchev @babolivier @kukoo1 @oktapodia @morpheusxaut /types/sequelize-fixtures/ @cschwarz +/types/sequencify/ @npenin /types/sequester/ @Strate /types/serialize-javascript/ @lith-light-g /types/serialport/ @codefoster /types/serve-favicon/ @urossmolnik /types/serve-index/ @tkrotoff /types/serve-static/ @urossmolnik +/types/server-destroy/ @gyszalai /types/session-file-store/ @blendsdk /types/set-cookie-parser/ @nickp10 /types/sha1/ @arcdev1 /types/shallowequal/ @seansfkelley /types/shapefile/ @DenisCarriere /types/sharedworker/ @nakakura -/types/sharepoint/ @baywet +/types/sharepoint/ @gandjustas @andrei-markeev @baywet @teroarvola /types/sharp/ @lith-light-g +/types/sharp-timer/v0/ @afractal /types/sharp-timer/ @afractal /types/sheetify/ @toddself +/types/shell-escape/ @nenadalm /types/shell-quote/ @jason0x43 /types/shelljs/ @nikeee @voy /types/shipit/ @cyrilschumacher @@ -2917,9 +3229,11 @@ /types/siema/ @Irmiz /types/siesta/ @bquarmby /types/sigmajs/ @qinfchen +/types/sigmund/ @BendingBender /types/signalr/ @borisyankov @keesey @GiedriusGrabauskas +/types/signalr-no-jquery/ @gjoshevski /types/signals/ @diullei -/types/signature_pad/ @AbubakerB +/types/signature_pad/ @AbubakerB @jrmihalick /types/simple-assign/ @NoHomey /types/simple-cw-node/ @vvakame /types/simple-mock/ @leonyu @@ -2961,14 +3275,15 @@ /types/smooth-scrollbar/ @asvetliakov /types/smoothie/ @mikehhawley /types/smoothscroll-polyfill/ @kryops -/types/smtp-server/ @markisme +/types/smtp-server/ @markisme @Taisiias /types/smtpapi/ @a-morales /types/snapsvg/ @lhk @mattanja @kant2002 /types/snazzy-info-window/ @milosd92 /types/snekfetch/ @DarkerTV /types/snoowrap/ @vitosamson +/types/snowboy/ @dolanmiu /types/soap/ @aleung @cagefox -/types/socket.io/ @progre @divillysausages @florentpoujol @KentarouTakeda +/types/socket.io/ @progre @divillysausages @florentpoujol @KentarouTakeda @gigi /types/socket.io-client/ @progre @divillysausages @florentpoujol /types/socket.io-redis/ @nupplaphil /types/socket.io.users/ @kataras @@ -2978,6 +3293,7 @@ /types/sockjs-client/ @vladev @arusakov @BendingBender /types/solution-center-communicator/ @dami-gg /types/sortablejs/ @Maw-Fox +/types/soundmanager2/ @elton2048 /types/source-list-map/ @e-cloud /types/source-map/ @MortenHoustonLudvigsen @rbuckton /types/source-map-support/ @Bartvds @jason0x43 @@ -2986,6 +3302,7 @@ /types/sparkly/ @BendingBender /types/sparkpost/v1/ @geoffreak /types/sparkpost/ @geoffreak @bondz +/types/sparqljs/ @AlexeyMz /types/spatialite/ @atd-schubert /types/spdy/ @tony19 /types/speakeasy/ @legendecas @mrOlorin @@ -2994,17 +3311,20 @@ /types/spectrum/ @M-Zuber /types/spin.js/ @borisyankov @theodorejb /types/split/ @marcinporebski +/types/split.js/ @icholy /types/split2/ @mugeso /types/spotify-api/ @skovmand -/types/sprintf/ @soywiz +/types/sprintf/ @soywiz @BendingBender +/types/sprintf-js/ @jasonswearingen @BendingBender /types/sql.js/ @Hozuki /types/sqlite3/ @nmalaguti @dpyro /types/sqlstring/ @marvinhagemeister /types/squirejs/ @bradleyayers /types/srp/ @Patman64 /types/ss-utils/ @mythz +/types/ssh-key-decrypt/ @BendingBender /types/ssh2/ @tkQubo @rbuckton -/types/ssh2-sftp-client/ @igrayson +/types/ssh2-sftp-client/ @igrayson @ascariandrea /types/ssh2-streams/ @rbuckton /types/sshpk/ @mabels /types/stack-mapper/ @rogierschouten @@ -3021,9 +3341,12 @@ /types/statuses/ @tkrotoff @BendingBender /types/steam/ @kant2002 /types/steed/ @Paul-Isache +/types/stemmer/ @will-ockmore /types/stompjs/ @jimic -/types/storejs/ @vbortone +/types/stoppable/ @EricByers +/types/storejs/ @vbortone @harry0000 /types/storybook__addon-actions/ @joscha +/types/storybook__addon-info/ @mkornblum /types/storybook__addon-knobs/ @joscha @martynaskadisa /types/storybook__addon-links/ @joscha /types/storybook__addon-notes/ @joscha @@ -3046,20 +3369,22 @@ /types/strip-ansi/ @mhegazy /types/strip-bom/ @mhegazy /types/strip-json-comments/ @dmoonfire +/types/stripe/ @wjohnsto @codeanimal @sampsonjoliver @LinusU /types/stripe-checkout/ @cgwrench -/types/stripe-node/ @wjohnsto @codeanimal /types/stripe-v2/ @ejsmith @amritk @adamcmiel @jleider @galuszkak /types/stripe-v3/ @ejsmith @amritk @adamcmiel @jleider @galuszkak /types/striptags/ @ccitro /types/strong-cluster-control/ @shuntksh /types/strophe/ @DavidKDeutsch /types/stylelint/ @alan-agius4 +/types/stylelint-webpack-plugin/ @bahlo /types/stylus/ @SomaticIT /types/subsume/ @BendingBender /types/succinct/ @EnableSoftware /types/sudo-block/ @BendingBender /types/suitescript/ @darrenhillconsulting /types/sumo-logger/ @forabi +/types/superagent/v2/ @varju @NicoZelaya @mxl /types/superagent/ @NicoZelaya @mxl @paplorinc /types/superagent-no-cache/ @mxl /types/superagent-prefix/ @mxl @@ -3072,10 +3397,11 @@ /types/svg-pan-zoom/v2/ @Promact /types/svg-pan-zoom/ @Yimiprod /types/svg-sprite/ @tkqubo -/types/svg2png/ @hansrwindhoff +/types/svg2png/ @hansrwindhoff @sccgithub /types/svg4everybody/ @BendingBender /types/svgjs.draggable/ @LiFeleSs /types/svgjs.resize/ @jkevingutierrez +/types/svgo/ @bradleyayers /types/swag/ @shiwano /types/swagger-express-middleware/ @alexandreroba /types/swagger-express-mw/ @micmro @@ -3101,12 +3427,14 @@ /types/sylvester/ @StephaneAlie /types/synaptic/ @ToastHawaii @austincummings /types/systeminformation/ @PixelcrabAT -/types/systemjs/ @ludohenin @NathanWalker @GiedriusGrabauskas +/types/systemjs/ @ludohenin @NathanWalker @GiedriusGrabauskas @aluanhaddad /types/table/ @evanshortiss +/types/tabris-plugin-firebase/ @eclipsesource /types/tabtab/ @vojtechhabarta +/types/tabulator/ @euginio /types/tapable/ @e-cloud /types/tape/ @Bartvds @sodatea @DennisSchwartz -/types/tar/ @SomaticIT +/types/tar/ @SomaticIT @connor4312 /types/tedious/ @rogierschouten @cjthompson /types/tedious-connection-pool/ @sandorfr /types/telebot/ @mariotsi @@ -3119,10 +3447,11 @@ /types/tether/ @adidahiya /types/tether-drop/ @adidahiya /types/tether-shepherd/ @mtgibbs -/types/text-buffer/ @vvakame +/types/text-buffer/v0/ @vvakame +/types/text-buffer/ @GlenCFL /types/text-encoding/ @pine613 /types/three/ @gyohk @florentpoujol @SereznoKot @omni360 @ivoisbelongtous @piranha771 @qszhusightp @nakakura @s093294 @Pro @efokschaner -/types/thrift/ @kamek-pf +/types/thrift/ @kamek-pf @kevin-greene-ck @jessezhang91 /types/throng/ @cyrilschumacher /types/throttle/ @BendingBender /types/through/ @AndrewGaspar @@ -3145,37 +3474,39 @@ /types/title/ @fa7ad /types/tldjs/ @geoffreak /types/tmp/ @optical @Perlmint +/types/to-camel-case/ @j-f1 /types/to-markdown/ @SuperPaintman /types/to-title-case-gouch/ @stpettersens /types/toastr/ @borisyankov +/types/tocktimer/ @evanshortiss /types/tooltipster/ @stephenlautier /types/topojson/ @ricardo-mello @chenzhutian /types/torrent-stream/ @xstoudi /types/touch/ @mizunashi-mana @BendingBender /types/touch-events/ @kevinb7 -/types/tough-cookie/ @leonard-thieu +/types/tough-cookie/ @leonard-thieu @LiJinyao /types/traceback/ @misak113 /types/tracking/ @pimterry -/types/transducers-js/ @colinkahn @dphilipson +/types/transducers-js/ @colinkahn @dphilipson @NaridaL /types/transducers.js/ @dphilipson /types/traverse/ @newclear /types/traverson/ @marcinporebski /types/trayballoon/ @korve +/types/tress/ @sindilevich /types/trim/ @skysteve /types/trunk8/ @niemyjski /types/tspromise/ @soywiz /types/tunnel/ @BendingBender -/types/turf/v2/ @gcroteau -/types/turf/ @gcroteau @DenisCarriere /types/tus-js-client/ @kevhiggins /types/tv4/ @Bartvds @psnider -/types/tween.js/ @Amos47 @sunetos @jzarnikov +/types/tween.js/ @Amos47 @sunetos @jzarnikov @alexburner /types/tweenjs/ @evilangelist /types/tweezer.js/ @praxxis /types/twig/ @soywiz @enko /types/twilio/ @nickiannone @ashleybrener /types/twit/ @Volox /types/twitter/ @chitoku-k +/types/twitter-stream-channels/ @adrianbardan /types/twix/ @j3ko /types/type-check/ @hansrwindhoff /types/type-detect/ @Bartvds @@ -3203,9 +3534,10 @@ /types/undertaker/ @tkqubo @GiedriusGrabauskas /types/undertaker-registry/ @GiedriusGrabauskas /types/uniq/ @hansrwindhoff -/types/uniqid/ @me +/types/uniqid/ @idchlife /types/unique-hash-stream/ @BendingBender /types/unique-random/ @Kuniwak +/types/unist/ @bizen241 /types/unity-webapi/ @jmvrbanac /types/universal-analytics/ @Bartvds @DarkerTV /types/universal-router/ @jtmthf @@ -3220,7 +3552,9 @@ /types/uritemplate/ @teyc /types/url-assembler/ @wolfgang42 /types/url-join/ @rogierschouten @devrelm +/types/url-parse/ @ChernenkoPaul /types/url-regex/ @unindented +/types/url-search-params/ @nick121212 /types/url-template/ @marcinporebski /types/urlrouter/ @soywiz /types/urlsafe-base64/ @tkrotoff @@ -3244,7 +3578,7 @@ /types/valerie/ @conficient /types/valid-url/ @stevehipwell /types/validate.js/ @HillTravis -/types/validator/ @tgfjt @chrootsu @IOAyman @louy @kacepe +/types/validator/ @tgfjt @chrootsu @IOAyman @louy @kacepe @deptno /types/validatorjs/ @LKay /types/vanilla-tilt/ @BrunnerLivio /types/vary/ @BendingBender @@ -3257,8 +3591,9 @@ /types/vertx3-eventbus-client/ @oddeirik /types/vex-js/ @gdcohan /types/vexflow/ @rquiring @sebastianhaas @bohoffi +/types/vfile/ @bizen241 @rokt33r /types/victory/ @asvetliakov @snerks @Havret -/types/video.js/ @vbortone +/types/video.js/ @vbortone @scleriot /types/viewability-helper/ @lironzluf /types/viewerjs/ @lrh3321 /types/viewporter/ @borisyankov @@ -3271,7 +3606,7 @@ /types/vinyl-paths/ @tkQubo /types/virtual-dom/ @chbrown /types/virtual-keyboard/ @bsurai -/types/vis/ @MichaelBitard @macleodbroad-wf @adripanico @seveves @kaktus40 @mmaitre314 +/types/vis/ @MichaelBitard @macleodbroad-wf @adripanico @seveves @kaktus40 @mmaitre314 @supercargo /types/vision/ @jasonswearingen @AJamesPhillips /types/vitalsigns/ @cyrilschumacher /types/vivus/ @DanielRosenwasser @lekhmanrus @@ -3282,7 +3617,12 @@ /types/voximplant-websdk/ @aylarov /types/vue-i18n/ @aicest /types/vue-resource/ @kaorun343 +/types/vue-scrollto/ @vincekovacs /types/w2ui/ @Ptival +/types/w3c-generic-sensor/ @kenchris +/types/w3c-screen-orientation/ @kenchris +/types/w3c-web-usb/ @larsgk +/types/waitme/ @totpero /types/wake_on_lan/ @SrTobi /types/wallabyjs/ @andrewconnell /types/wallpaper/ @BendingBender @@ -3292,8 +3632,9 @@ /types/watchify/ @TeamworkGuy2 /types/watchpack/ @e-cloud /types/waterline/ @arvitaly -/types/watson-developer-cloud/ @waldo000000 +/types/watson-developer-cloud/ @waldo000000 @Naktibalda /types/waypoints/ @dominikbulaj @Koloto +/types/wcwidth/ @rokt33r /types/weapp-api/ @vargeek /types/web-animations-js/ @kritollm /types/web-bluetooth/ @urish @@ -3309,16 +3650,19 @@ /types/webgme/ @phreed /types/webix/ @mkozhukh /types/webmidi/ @lostfictions -/types/webpack/ @tkqubo @bumbleblym @bcherny @tommytroylin @mohsen1 @jcreamer898 +/types/webpack/ @tkqubo @bumbleblym @bcherny @tommytroylin @mohsen1 @jcreamer898 @ahmed-taj /types/webpack-bundle-analyzer/ @kryops /types/webpack-chain/ @eirikurn @psachs21 +/types/webpack-chunk-hash/ @mtraynham /types/webpack-dev-middleware/ @bumbleblym -/types/webpack-dev-server/ @maestroh @daveparslow +/types/webpack-dev-server/ @maestroh @daveparslow @ZheyangSong /types/webpack-dotenv-plugin/ @kryops -/types/webpack-env/ @use-strict +/types/webpack-env/ @use-strict @rhonsby /types/webpack-fail-plugin/ @deevus /types/webpack-hot-middleware/ @bumbleblym -/types/webpack-merge/ @deevus +/types/webpack-merge/v0/ @deevus +/types/webpack-merge/ @deevus @mtraynham +/types/webpack-node-externals/ @mtraynham /types/webpack-notifier/ @bumbleblym /types/webpack-sources/ @e-cloud @chriseppstein /types/webpack-stream/ @iclanton @bumbleblym @@ -3362,14 +3706,14 @@ /types/wrench/ @soywiz /types/write-file-atomic/ @BendingBender /types/write-json-file/ @DenisCarriere -/types/ws/ @loyd @elithrar +/types/ws/ @loyd @elithrar @mlamp /types/wu/ @phiresky /types/wx-js-sdk-dt/ @agasbzj /types/x-editable/ @sirkirby /types/xadesjs/ @microshine /types/xdate/ @yamada28go /types/xdg-basedir/ @tlaziuk -/types/xlsx/ @themauveavenger +/types/xhr-mock/ @joscha /types/xml/ @YuJianrong /types/xml-parser/ @mhfrantz /types/xml2js/ @michelsalib @jasonrm @ccurrens @edwardhinkle @@ -3386,7 +3730,9 @@ /types/xsd-schema-validator/ @Goldsmith42 /types/xsockets/ @pushplay /types/xterm/ @blink1073 @LucianBuzzo +/types/xxhashjs/ @mDibyo /types/yallist/ @BendingBender +/types/yandex-maps/ @Delagen /types/yandex-money-sdk/ @chrootsu /types/yargs/ @poelstra @mizunashi-mana @pushplay @jeffkenney /types/yayson/ @Codesleuth @@ -3401,7 +3747,9 @@ /types/youtube/ @DazWilkin @JoshuaKGoldberg @eliotfallon213 /types/yui/ @giabao /types/z-schema/ @pgonzal +/types/zapier-platform-core/ @bradleyayers /types/zen-observable/ @aicest +/types/zen-push/ @daprahamian /types/zepto/ @jbaldwin /types/zeroclipboard/v1/ @ejsmith @niemyjski @balassy @leonyu /types/zeroclipboard/ @ejsmith @niemyjski @balassy @leonyu @@ -3409,5 +3757,6 @@ /types/zetapush-js/ @ghoullier /types/zip.js/ @lgrignon /types/zmq/ @davemckeown +/types/zookeeper/ @xialeistudio /types/zui/ @yuanxu /types/zynga-scroller/ @haskellcamargo From 288e9dd83f14aad2c85708b0a1ee4e1f48b999dc Mon Sep 17 00:00:00 2001 From: Tomoki Ohno Date: Thu, 19 Oct 2017 06:26:47 +0900 Subject: [PATCH 166/506] Add new definition: react-hyperscript (#20693) * Add new package: react-hyperscript * Type of function should be declared by function keyword... * Add a workaround tsc does not allow `export =`ing function because ES spec does not allow that. But react-hyperscript does that. So this workaround is required. --- types/react-hyperscript/index.d.ts | 17 ++++++++++ .../react-hyperscript-tests.ts | 31 +++++++++++++++++++ types/react-hyperscript/tsconfig.json | 23 ++++++++++++++ types/react-hyperscript/tslint.json | 1 + 4 files changed, 72 insertions(+) create mode 100644 types/react-hyperscript/index.d.ts create mode 100644 types/react-hyperscript/react-hyperscript-tests.ts create mode 100644 types/react-hyperscript/tsconfig.json create mode 100644 types/react-hyperscript/tslint.json diff --git a/types/react-hyperscript/index.d.ts b/types/react-hyperscript/index.d.ts new file mode 100644 index 0000000000..4ead727398 --- /dev/null +++ b/types/react-hyperscript/index.d.ts @@ -0,0 +1,17 @@ +// Type definitions for react-hyperscript 3.0 +// Project: https://github.com/mlmorg/react-hyperscript +// Definitions by: tock203 +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.3 + +import { ComponentClass, StatelessComponent, ReactElement } from 'react'; + +declare namespace h {} + +declare function h

( + componentOrTag: ComponentClass

| StatelessComponent

| string, + properties?: P, + children?: ReadonlyArray> | string +): ReactElement

; + +export = h; diff --git a/types/react-hyperscript/react-hyperscript-tests.ts b/types/react-hyperscript/react-hyperscript-tests.ts new file mode 100644 index 0000000000..9782a79248 --- /dev/null +++ b/types/react-hyperscript/react-hyperscript-tests.ts @@ -0,0 +1,31 @@ +import * as React from 'react'; +import * as h from 'react-hyperscript'; + +class SomeComponent extends React.Component { + render() { + return React.createElement('div'); + } +} + +const StatelessComponent = () => React.createElement('div'); + +class MainComponent extends React.Component { + render() { + return h('div.example', [ + h('h1#heading', 'This is hyperscript'), + h('h2', 'creating React.js markup'), + h(SomeComponent, {foo: 'bar'}, [ + h('li', [ + h('a', {href: 'http://whatever.com'}, 'One list item') + ]), + h('li', 'Another list item') + ]), + h(StatelessComponent, {foo: 'bar'}, [ + h('li', [ + h('a', {href: 'http://whatever.com'}, 'One list item') + ]), + h('li', 'Another list item') + ]) + ]); + } +} diff --git a/types/react-hyperscript/tsconfig.json b/types/react-hyperscript/tsconfig.json new file mode 100644 index 0000000000..1ad5f62543 --- /dev/null +++ b/types/react-hyperscript/tsconfig.json @@ -0,0 +1,23 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es6" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "strictFunctionTypes": true, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "react-hyperscript-tests.ts" + ] +} diff --git a/types/react-hyperscript/tslint.json b/types/react-hyperscript/tslint.json new file mode 100644 index 0000000000..3db14f85ea --- /dev/null +++ b/types/react-hyperscript/tslint.json @@ -0,0 +1 @@ +{ "extends": "dtslint/dt.json" } From 1fb244abedbe3dbfc11e31d3e9436be9062a8cbe Mon Sep 17 00:00:00 2001 From: Josh Rutherford Date: Thu, 19 Oct 2017 05:40:47 -0500 Subject: [PATCH 167/506] react-dom: add createPortal API (#20245). (#20336) * react-dom: add createPortal API. * React, React-DOM: move portal interface to types/react, update render for class components to include ReactPortal. * react-dom: add second portal test case with jsx, allow jsx in react-dom-tests. * react, react-dom createPortal api: remove undocumented arguments, properties. --- types/react-dom/index.d.ts | 5 ++++- .../{react-dom-tests.ts => react-dom-tests.tsx} | 14 ++++++++++++++ types/react-dom/tsconfig.json | 5 +++-- types/react/index.d.ts | 12 +++++++++--- 4 files changed, 30 insertions(+), 6 deletions(-) rename types/react-dom/{react-dom-tests.ts => react-dom-tests.tsx} (93%) diff --git a/types/react-dom/index.d.ts b/types/react-dom/index.d.ts index aeac0c8081..20b870a8b8 100644 --- a/types/react-dom/index.d.ts +++ b/types/react-dom/index.d.ts @@ -4,6 +4,7 @@ // AssureSign // Microsoft // MartynasZilinskas +// Josh Rutherford // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 @@ -12,12 +13,14 @@ export as namespace ReactDOM; import { ReactInstance, Component, ComponentState, ReactElement, SFCElement, CElement, - DOMAttributes, DOMElement + DOMAttributes, DOMElement, ReactNode, ReactPortal } from 'react'; export function findDOMNode(instance: ReactInstance): Element; export function unmountComponentAtNode(container: Element): boolean; +export function createPortal(children: ReactNode, container: Element): ReactPortal; + export const version: string; export const render: Renderer; export const hydrate: Renderer; diff --git a/types/react-dom/react-dom-tests.ts b/types/react-dom/react-dom-tests.tsx similarity index 93% rename from types/react-dom/react-dom-tests.ts rename to types/react-dom/react-dom-tests.tsx index 08eac7afdb..3f153b0a75 100644 --- a/types/react-dom/react-dom-tests.ts +++ b/types/react-dom/react-dom-tests.tsx @@ -31,6 +31,20 @@ describe('ReactDOM', () => { ReactDOM.render(React.createElement('div'), rootElement); ReactDOM.findDOMNode(rootElement); }); + + it('createPortal', () => { + const rootElement = document.createElement('div'); + const portalTarget = document.createElement('div'); + + class ClassComponent extends React.Component { + render() { + return ReactDOM.createPortal(

, portalTarget); + } + } + + ReactDOM.createPortal(React.createElement('div'), portalTarget); + ReactDOM.render(, rootElement); + }); }); describe('ReactDOMServer', () => { diff --git a/types/react-dom/tsconfig.json b/types/react-dom/tsconfig.json index 010744a826..0d21b07029 100644 --- a/types/react-dom/tsconfig.json +++ b/types/react-dom/tsconfig.json @@ -1,7 +1,7 @@ { "files": [ "index.d.ts", - "react-dom-tests.ts", + "react-dom-tests.tsx", "server/index.d.ts", "node-stream/index.d.ts", "test-utils/index.d.ts" @@ -22,6 +22,7 @@ ], "types": [], "noEmit": true, - "forceConsistentCasingInFileNames": true + "forceConsistentCasingInFileNames": true, + "jsx": "preserve" } } \ No newline at end of file diff --git a/types/react/index.d.ts b/types/react/index.d.ts index 35feb8d0ab..93cb62fbfa 100644 --- a/types/react/index.d.ts +++ b/types/react/index.d.ts @@ -13,6 +13,7 @@ // Dovydas Navickas // Stéphane Goetz // Rich Seviora +// Josh Rutherford // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 @@ -123,6 +124,11 @@ declare namespace React { type: keyof ReactSVG; } + interface ReactPortal { + key: Key | null; + children: ReactNode; + } + // // Factories // ---------------------------------------------------------------------- @@ -161,7 +167,7 @@ declare namespace React { // Should be Array but type aliases cannot be recursive type ReactFragment = {} | Array; - type ReactNode = ReactChild | ReactFragment | boolean | null | undefined; + type ReactNode = ReactChild | ReactFragment | ReactPortal | string | number | boolean | null | undefined; // // Top Level API @@ -280,7 +286,7 @@ declare namespace React { // tslint:enable:unified-signatures forceUpdate(callBack?: () => any): void; - render(): JSX.Element | JSX.Element[] | string | number | null | false; + render(): JSX.Element | JSX.Element[] | ReactPortal | string | number | null | false; // React.Props is now deprecated, which means that the `children` // property is not available on `P` by default, even though you can @@ -3505,7 +3511,7 @@ declare global { // tslint:disable:no-empty-interface interface Element extends React.ReactElement { } interface ElementClass extends React.Component { - render(): Element | Element[] | string | number | null | false; + render(): Element | Element[] | React.ReactPortal | string | number | null | false; } interface ElementAttributesProperty { props: {}; } interface ElementChildrenAttribute { children: {}; } From 0cbf897a5df2d58336c27291e11ae671fca63b4f Mon Sep 17 00:00:00 2001 From: Weeco <23424570+weeco@users.noreply.github.com> Date: Thu, 19 Oct 2017 16:39:30 +0200 Subject: [PATCH 168/506] Added eachAsync options for concurrency (#20541) * Added eachAsync options for concurrency * Added overload function definition for eachAsync --- types/mongoose/index.d.ts | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/types/mongoose/index.d.ts b/types/mongoose/index.d.ts index cd7bb438d4..3e1002fd3c 100644 --- a/types/mongoose/index.d.ts +++ b/types/mongoose/index.d.ts @@ -469,6 +469,11 @@ declare module "mongoose" { static Messages: Object; } + interface EachAsyncOptions { + /** defaults to 1 */ + parallel?: number; + } + /* * section querycursor.js * http://mongoosejs.com/docs/api.html#querycursor-js @@ -500,10 +505,21 @@ declare module "mongoose" { * Execute fn for every document in the cursor. If fn returns a promise, * will wait for the promise to resolve before iterating on to the next one. * Returns a promise that resolves when done. - * @param callback executed when all docs have been processed + * @param fn Function to be executed for every document in the cursor + * @param callback Executed when all docs have been processed */ eachAsync(fn: (doc: T) => any, callback?: (err: any) => void): Promise; + /** + * Execute fn for every document in the cursor. If fn returns a promise, + * will wait for the promise to resolve before iterating on to the next one. + * Returns a promise that resolves when done. + * @param fn Function to be executed for every document in the cursor + * @param options Async options (e. g. parallel function execution) + * @param callback Executed when all docs have been processed + */ + eachAsync(fn: (doc: T) => any, options: EachAsyncOptions, callback?: (err: any) => void): Promise; + /** * Registers a transform function which subsequently maps documents retrieved * via the streams interface or .next() From 4aa4400332de149258fda1bc4f3fe4de6686bfb9 Mon Sep 17 00:00:00 2001 From: Yoga Aliarham Date: Thu, 19 Oct 2017 21:48:52 +0700 Subject: [PATCH 169/506] Update ioredis type definitions (add pfcount, pfadd, pfmerge interfaces) (#20669) * Update ioredis type definitions * Add contributor name * Update interface order --- types/ioredis/index.d.ts | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/types/ioredis/index.d.ts b/types/ioredis/index.d.ts index 7a36c4b7a6..8353b4e563 100644 --- a/types/ioredis/index.d.ts +++ b/types/ioredis/index.d.ts @@ -2,6 +2,7 @@ // Project: https://github.com/luin/ioredis // Definitions by: York Yao // Christopher Eck +// Yoga Aliarham // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /* =================== USAGE =================== @@ -325,16 +326,22 @@ declare module IORedis { evalsha(args: any[], callback?: ResCallbackT): any; evalsha(...args: any[]): any; script(args: any[], callback?: ResCallbackT): any; - script(...args: any[]): any; script(key: string, callback?: ResCallbackT): any; + script(...args: any[]): any; quit(args: any[], callback?: ResCallbackT): any; quit(...args: any[]): any; - scan(...args: any[]): any; scan(args: any[], callback?: ResCallbackT): any; - hscan(...args: any[]): any; + scan(...args: any[]): any; hscan(args: any[], callback?: ResCallbackT): any; - zscan(...args: any[]): any; + hscan(...args: any[]): any; zscan(args: any[], callback?: ResCallbackT): any; + zscan(...args: any[]): any; + pfmerge(args: any[], callback?: ResCallbackT): any; + pfmerge(...args: any[]): any; + pfadd(args: any[], callback?: ResCallbackT): any; + pfadd(...args: any[]): any; + pfcount(args: any[], callback?: ResCallbackT): any; + pfcount(...args: any[]): any; pipeline(): Pipeline; pipeline(commands: string[][]): Pipeline; From 68a737fd800032531f3f87ac9c48b540b81dd600 Mon Sep 17 00:00:00 2001 From: mattywong Date: Thu, 19 Oct 2017 23:04:18 +0800 Subject: [PATCH 170/506] [@types/next] Update Router.push() method to include UrlLike type (#20671) * [@types/next] Update Router.push() method to include UrlLike type Allow a valid UrlLike object instead of only a string type e.g ``` Router.push({ pathname: '/pathname', query: { prop1: '', prop2: '', }, }); ``` https://github.com/zeit/next.js/#with-url-object-1 * Update router.d.ts --- types/next/router.d.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/types/next/router.d.ts b/types/next/router.d.ts index 021b0dd3dc..a1d58bb42a 100644 --- a/types/next/router.d.ts +++ b/types/next/router.d.ts @@ -1,4 +1,7 @@ import * as React from 'react'; +import * as url from 'url'; + +type UrlLike = url.UrlObject | url.Url; export interface EventChangeOptions { shallow?: boolean; @@ -20,8 +23,8 @@ export interface SingletonRouter { // router methods reload(route: string): Promise; back(): void; - push(url: string, as?: string, options?: EventChangeOptions): Promise; - replace(url: string, as?: string, options?: EventChangeOptions): Promise; + push(url: string|UrlLike, as?: string|UrlLike, options?: EventChangeOptions): Promise; + replace(url: string|UrlLike, as?: string|UrlLike, options?: EventChangeOptions): Promise; prefetch(url: string): Promise>; // router events From 77eac5484737119fc124ee602659e7179f9a342f Mon Sep 17 00:00:00 2001 From: AJ Richardson Date: Thu, 19 Oct 2017 11:09:17 -0400 Subject: [PATCH 171/506] [lodash] Better chaining wrappers, overload clean-up (#19356) * [lodash] improved iterateee parameters, simplified forEach overloads * Changed ListIterator to StringIterator, cleaned up more issues with flatMap * Even more flatMap cleanup * Making wrapper types simpler and more accurate (not done) * Fixed type inference for forEach callback arguments * Converted explicit wrapper types, implemented differenceWith * Updated more functions to use new-style wrappers * Finished updating the remaining methods * Fixed lint errors * Fixed parameter type inference when using `any` (#19228) * Fixed test errors * Fixed issues with _.get * Fixed issues with _.get * consider this * removed duplicate type, added TODO * More _.get fixes * Fixed issues with mapValues with a single parameter * Modified lodash-tests to have minimal diff with upstream * Improved backwards compatibility --- types/lodash/index.d.ts | 14419 +++++++++++++-------------------- types/lodash/lodash-tests.ts | 3032 +++---- types/lodash/tslint.json | 17 +- 3 files changed, 7058 insertions(+), 10410 deletions(-) diff --git a/types/lodash/index.d.ts b/types/lodash/index.d.ts index 58698cb4f3..ac954c6107 100644 --- a/types/lodash/index.d.ts +++ b/types/lodash/index.d.ts @@ -8,7 +8,7 @@ // Junyoung Clare Jang , // e-cloud // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -// TypeScript Version: 2.4 +// TypeScript Version: 2.2 /** ### 4.0.0 Changelog (https://github.com/lodash/lodash/wiki/Changelog) @@ -244,7 +244,7 @@ Methods: export = _; export as namespace _; -declare var _: _.LoDashStatic; +declare let _: _.LoDashStatic; type PartialObject = Partial; @@ -253,46 +253,74 @@ declare namespace _ { interface LoDashStatic { /** - * Creates a lodash object which wraps the given value to enable intuitive method chaining. + * Creates a lodash object which wraps value to enable implicit method chain sequences. + * Methods that operate on and return arrays, collections, and functions can be chained together. + * Methods that retrieve a single value or may return a primitive value will automatically end the + * chain sequence and return the unwrapped value. Otherwise, the value must be unwrapped with value(). * - * In addition to Lo-Dash methods, wrappers also have the following Array methods: - * concat, join, pop, push, reverse, shift, slice, sort, splice, and unshift + * Explicit chain sequences, which must be unwrapped with value(), may be enabled using _.chain. * - * Chaining is supported in custom builds as long as the value method is implicitly or - * explicitly included in the build. + * The execution of chained methods is lazy, that is, it's deferred until value() is + * implicitly or explicitly called. * - * The chainable wrapper functions are: - * after, assign, bind, bindAll, bindKey, chain, chunk, compact, compose, concat, countBy, - * createCallback, curry, debounce, defaults, defer, delay, difference, filter, flatten, - * forEach, forEachRight, forIn, forInRight, forOwn, forOwnRight, functions, groupBy, - * keyBy, initial, intersection, invert, invoke, keys, map, max, memoize, merge, min, - * object, omit, once, pairs, partial, partialRight, pick, pluck, pull, push, range, reject, - * remove, rest, reverse, sample, shuffle, slice, sort, sortBy, splice, tap, throttle, times, - * toArray, transform, union, uniq, unset, unshift, unzip, values, where, without, wrap, and zip + * Lazy evaluation allows several methods to support shortcut fusion. Shortcut fusion + * is an optimization to merge iteratee calls; this avoids the creation of intermediate + * arrays and can greatly reduce the number of iteratee executions. Sections of a chain + * sequence qualify for shortcut fusion if the section is applied to an array and iteratees + * accept only one argument. The heuristic for whether a section qualifies for shortcut + * fusion is subject to change. * - * The non-chainable wrapper functions are: - * clone, cloneDeep, contains, escape, every, find, findIndex, findKey, findLast, - * findLastIndex, findLastKey, has, identity, indexOf, isArguments, isArray, isBoolean, - * isDate, isElement, isEmpty, isEqual, isFinite, isFunction, isNaN, isNull, isNumber, - * isObject, isPlainObject, isRegExp, isString, isUndefined, join, lastIndexOf, mixin, - * noConflict, parseInt, pop, random, reduce, reduceRight, result, shift, size, some, - * sortedIndex, runInContext, template, unescape, uniqueId, and value + * Chaining is supported in custom builds as long as the value() method is directly or + * indirectly included in the build. * - * The wrapper functions first and last return wrapped values when n is provided, otherwise - * they return unwrapped values. + * In addition to lodash methods, wrappers have Array and String methods. + * The wrapper Array methods are: + * concat, join, pop, push, shift, sort, splice, and unshift. + * The wrapper String methods are: + * replace and split. * - * Explicit chaining can be enabled by using the _.chain method. + * The wrapper methods that support shortcut fusion are: + * at, compact, drop, dropRight, dropWhile, filter, find, findLast, head, initial, last, + * map, reject, reverse, slice, tail, take, takeRight, takeRightWhile, takeWhile, and toArray + * + * The chainable wrapper methods are: + * after, ary, assign, assignIn, assignInWith, assignWith, at, before, bind, bindAll, bindKey, + * castArray, chain, chunk, commit, compact, concat, conforms, constant, countBy, create, + * curry, debounce, defaults, defaultsDeep, defer, delay, difference, differenceBy, differenceWith, + * drop, dropRight, dropRightWhile, dropWhile, extend, extendWith, fill, filter, flatMap, + * flatMapDeep, flatMapDepth, flatten, flattenDeep, flattenDepth, flip, flow, flowRight, + * fromPairs, functions, functionsIn, groupBy, initial, intersection, intersectionBy, intersectionWith, + * invert, invertBy, invokeMap, iteratee, keyBy, keys, keysIn, map, mapKeys, mapValues, + * matches, matchesProperty, memoize, merge, mergeWith, method, methodOf, mixin, negate, + * nthArg, omit, omitBy, once, orderBy, over, overArgs, overEvery, overSome, partial, partialRight, + * partition, pick, pickBy, plant, property, propertyOf, pull, pullAll, pullAllBy, pullAllWith, pullAt, + * push, range, rangeRight, rearg, reject, remove, rest, reverse, sampleSize, set, setWith, + * shuffle, slice, sort, sortBy, sortedUniq, sortedUniqBy, splice, spread, tail, take, + * takeRight, takeRightWhile, takeWhile, tap, throttle, thru, toArray, toPairs, toPairsIn, + * toPath, toPlainObject, transform, unary, union, unionBy, unionWith, uniq, uniqBy, uniqWith, + * unset, unshift, unzip, unzipWith, update, updateWith, values, valuesIn, without, wrap, + * xor, xorBy, xorWith, zip, zipObject, zipObjectDeep, and zipWith. + * + * The wrapper methods that are not chainable by default are: + * add, attempt, camelCase, capitalize, ceil, clamp, clone, cloneDeep, cloneDeepWith, cloneWith, + * conformsTo, deburr, defaultTo, divide, each, eachRight, endsWith, eq, escape, escapeRegExp, + * every, find, findIndex, findKey, findLast, findLastIndex, findLastKey, first, floor, forEach, + * forEachRight, forIn, forInRight, forOwn, forOwnRight, get, gt, gte, has, hasIn, head, + * identity, includes, indexOf, inRange, invoke, isArguments, isArray, isArrayBuffer, + * isArrayLike, isArrayLikeObject, isBoolean, isBuffer, isDate, isElement, isEmpty, isEqual, isEqualWith, + * isError, isFinite, isFunction, isInteger, isLength, isMap, isMatch, isMatchWith, isNaN, + * isNative, isNil, isNull, isNumber, isObject, isObjectLike, isPlainObject, isRegExp, + * isSafeInteger, isSet, isString, isUndefined, isTypedArray, isWeakMap, isWeakSet, join, + * kebabCase, last, lastIndexOf, lowerCase, lowerFirst, lt, lte, max, maxBy, mean, meanBy, + * min, minBy, multiply, noConflict, noop, now, nth, pad, padEnd, padStart, parseInt, pop, + * random, reduce, reduceRight, repeat, result, round, runInContext, sample, shift, size, + * snakeCase, some, sortedIndex, sortedIndexBy, sortedLastIndex, sortedLastIndexBy, startCase, + * startsWith, stubArray, stubFalse, stubObject, stubString, stubTrue, subtract, sum, sumBy, + * template, times, toFinite, toInteger, toJSON, toLength, toLower, toNumber, toSafeInteger, + * toString, toUpper, trim, trimEnd, trimStart, truncate, unescape, uniqueId, upperCase, + * upperFirst, value, and words. **/ - (value: number): LoDashImplicitWrapper; - (value: string): LoDashImplicitStringWrapper; - (value: boolean): LoDashImplicitWrapper; - (value: null | undefined): LoDashImplicitWrapper; - (value: number[]): LoDashImplicitNumberArrayWrapper; - (value: T[]): LoDashImplicitArrayWrapper; - (value: T[] | null | undefined): LoDashImplicitNillableArrayWrapper; - (value: T): LoDashImplicitObjectWrapper; - (value: T | null | undefined): LoDashImplicitNillableObjectWrapper; - (value: any): LoDashImplicitWrapper; + (value: T): LoDashImplicitWrapper; /** * The semantic version number. @@ -368,7 +396,7 @@ declare namespace _ { * @param value The value to cache. * @return Returns the cache object. */ - set(key: string, value: any): _.Dictionary; + set(key: string, value: any): Dictionary; /** * Removes all key-value entries from the map. @@ -379,66 +407,26 @@ declare namespace _ { new (): MapCache; } - interface LoDashWrapperBase { } + interface LoDashWrapper { } - interface LoDashImplicitWrapperBase extends LoDashWrapperBase { } - - interface LoDashExplicitWrapperBase extends LoDashWrapperBase { } - - interface LoDashImplicitWrapper extends LoDashImplicitWrapperBase> { } - - interface LoDashExplicitWrapper extends LoDashExplicitWrapperBase> { } - - interface LoDashImplicitStringWrapper extends LoDashImplicitWrapper { } - - interface LoDashExplicitStringWrapper extends LoDashExplicitWrapper { } - - interface LoDashImplicitObjectWrapperBase extends LoDashImplicitWrapperBase { } - - interface LoDashImplicitObjectWrapper extends LoDashImplicitObjectWrapperBase> { } - - interface LoDashImplicitNillableObjectWrapper extends LoDashImplicitObjectWrapperBase> { } - - interface LoDashExplicitObjectWrapperBase extends LoDashExplicitWrapperBase { } - - interface LoDashExplicitObjectWrapper extends LoDashExplicitObjectWrapperBase> { } - - interface LoDashExplicitNillableObjectWrapper extends LoDashExplicitObjectWrapperBase> { } - - interface LoDashImplicitArrayWrapperBase extends LoDashImplicitWrapperBase { - pop(): T | undefined; - push(...items: T[]): TWrapper; - shift(): T | undefined; - sort(compareFn?: (a: T, b: T) => number): TWrapper; - splice(start: number): TWrapper; - splice(start: number, deleteCount: number, ...items: T[]): TWrapper; - unshift(...items: T[]): TWrapper; + interface LoDashImplicitWrapper extends LoDashWrapper { + pop(this: LoDashImplicitWrapper | null | undefined>): T | undefined; + push(this: LoDashImplicitWrapper | null | undefined>, ...items: T[]): this; + shift(this: LoDashImplicitWrapper | null | undefined>): T | undefined; + sort(this: LoDashImplicitWrapper | null | undefined>, compareFn?: (a: T, b: T) => number): this; + splice(this: LoDashImplicitWrapper | null | undefined>, start: number, deleteCount?: number, ...items: T[]): this; + unshift(this: LoDashImplicitWrapper | null | undefined>, ...items: T[]): this; } - interface LoDashImplicitArrayWrapper extends LoDashImplicitArrayWrapperBase> { } - - interface LoDashImplicitNillableArrayWrapper extends LoDashImplicitArrayWrapperBase> { } - - interface LoDashImplicitNumberArrayWrapperBase extends LoDashImplicitArrayWrapperBase { } - - interface LoDashImplicitNumberArrayWrapper extends LoDashImplicitArrayWrapper { } - - interface LoDashExplicitArrayWrapperBase extends LoDashExplicitWrapperBase { - pop(): LoDashExplicitObjectWrapper; - push(...items: T[]): TWrapper; - shift(): LoDashExplicitObjectWrapper; - sort(compareFn?: (a: T, b: T) => number): TWrapper; - splice(start: number): TWrapper; - splice(start: number, deleteCount: number, ...items: T[]): TWrapper; - unshift(...items: T[]): TWrapper; + interface LoDashExplicitWrapper extends LoDashWrapper { + pop(this: LoDashExplicitWrapper | null | undefined>): LoDashExplicitWrapper; + push(this: LoDashExplicitWrapper | null | undefined>, ...items: T[]): this; + shift(this: LoDashExplicitWrapper | null | undefined>): LoDashExplicitWrapper; + sort(this: LoDashExplicitWrapper | null | undefined>, compareFn?: (a: T, b: T) => number): this; + splice(this: LoDashExplicitWrapper | null | undefined>, start: number, deleteCount?: number, ...items: T[]): this; + unshift(this: LoDashExplicitWrapper | null | undefined>, ...items: T[]): this; } - interface LoDashExplicitArrayWrapper extends LoDashExplicitArrayWrapperBase> { } - - interface LoDashExplicitNillableArrayWrapper extends LoDashExplicitArrayWrapperBase> { } - - interface LoDashExplicitNumberArrayWrapper extends LoDashExplicitArrayWrapper { } - /********* * Array * *********/ @@ -459,32 +447,24 @@ declare namespace _ { ): T[][]; } - interface LoDashImplicitArrayWrapperBase { + interface LoDashImplicitWrapper { /** * @see _.chunk */ - chunk(size?: number): LoDashImplicitArrayWrapper; + chunk( + this: LoDashImplicitWrapper | null | undefined>, + size?: number, + ): LoDashImplicitWrapper; } - interface LoDashImplicitObjectWrapperBase { + interface LoDashExplicitWrapper { /** * @see _.chunk */ - chunk(size?: number): LoDashImplicitArrayWrapper; - } - - interface LoDashExplicitArrayWrapperBase { - /** - * @see _.chunk - */ - chunk(size?: number): LoDashExplicitArrayWrapper; - } - - interface LoDashExplicitObjectWrapperBase { - /** - * @see _.chunk - */ - chunk(size?: number): LoDashExplicitArrayWrapper; + chunk( + this: LoDashExplicitWrapper | null | undefined>, + size?: number, + ): LoDashExplicitWrapper; } //_.compact @@ -499,35 +479,21 @@ declare namespace _ { compact(array?: List | null | undefined): T[]; } - interface LoDashImplicitArrayWrapperBase { + interface LoDashImplicitWrapper { /** * @see _.compact */ - compact(): LoDashImplicitArrayWrapper; + compact(this: LoDashImplicitWrapper | null | undefined>): LoDashImplicitWrapper; } - interface LoDashImplicitObjectWrapperBase { + interface LoDashExplicitWrapper { /** * @see _.compact */ - compact(): LoDashImplicitArrayWrapper; + compact(this: LoDashExplicitWrapper | null | undefined>): LoDashExplicitWrapper; } - interface LoDashExplicitArrayWrapperBase { - /** - * @see _.compact - */ - compact(): LoDashExplicitArrayWrapper; - } - - interface LoDashExplicitObjectWrapperBase { - /** - * @see _.compact - */ - compact(): LoDashExplicitArrayWrapper; - } - - //_.concat DUMMY + //_.concat interface LoDashStatic { /** * Creates a new array concatenating `array` with any additional arrays @@ -550,7 +516,21 @@ declare namespace _ { * console.log(array); * // => [1] */ - concat(array: List, ...values: Array>): T[]; + concat(array: Many, ...values: Array>): T[]; + } + + interface LoDashImplicitWrapper { + /** + * @see _.compact + */ + concat(this: LoDashImplicitWrapper>, ...values: Array>): LoDashImplicitWrapper; + } + + interface LoDashExplicitWrapper { + /** + * @see _.compact + */ + concat(this: LoDashExplicitWrapper>, ...values: Array>): LoDashExplicitWrapper; } //_.difference @@ -569,32 +549,24 @@ declare namespace _ { ): T[]; } - interface LoDashImplicitArrayWrapperBase { + interface LoDashImplicitWrapper { /** * @see _.difference */ - difference(...values: Array>): LoDashImplicitArrayWrapper; + difference( + this: LoDashImplicitWrapper | null | undefined>, + ...values: Array> + ): LoDashImplicitWrapper; } - interface LoDashImplicitObjectWrapperBase { + interface LoDashExplicitWrapper { /** * @see _.difference */ - difference(...values: Array>): LoDashImplicitArrayWrapper; - } - - interface LoDashExplicitArrayWrapperBase { - /** - * @see _.difference - */ - difference(...values: Array>): LoDashExplicitArrayWrapper; - } - - interface LoDashExplicitObjectWrapperBase { - /** - * @see _.difference - */ - difference(...values: Array>): LoDashExplicitArrayWrapper; + difference( + this: LoDashExplicitWrapper | null | undefined>, + ...values: Array> + ): LoDashExplicitWrapper; } //_.differenceBy @@ -612,16 +584,7 @@ declare namespace _ { differenceBy( array: List | null | undefined, values?: List, - iteratee?: ((value: T) => any)|string - ): T[]; - - /** - * @see _.differenceBy - */ - differenceBy( - array: List | null | undefined, - values?: List, - iteratee?: W + iteratee?: ValueIteratee ): T[]; /** @@ -629,19 +592,9 @@ declare namespace _ { */ differenceBy( array: List | null | undefined, - values1?: List, - values2?: List, - iteratee?: ((value: T) => any)|string - ): T[]; - - /** - * @see _.differenceBy - */ - differenceBy( - array: List | null | undefined, - values1?: List, - values2?: List, - iteratee?: W + values1: List, + values2: List, + iteratee?: ValueIteratee ): T[]; /** @@ -649,33 +602,10 @@ declare namespace _ { */ differenceBy( array: List | null | undefined, - values1?: List, - values2?: List, - values3?: List, - iteratee?: ((value: T) => any)|string - ): T[]; - - /** - * @see _.differenceBy - */ - differenceBy( - array: List | null | undefined, - values1?: List, - values2?: List, - values3?: List, - iteratee?: W - ): T[]; - - /** - * @see _.differenceBy - */ - differenceBy( - array: List | null | undefined, - values1?: List, - values2?: List, - values3?: List, - values4?: List, - iteratee?: W + values1: List, + values2: List, + values3: List, + iteratee?: ValueIteratee ): T[]; /** @@ -683,11 +613,11 @@ declare namespace _ { */ differenceBy( array: List | null | undefined, - values1?: List, - values2?: List, - values3?: List, - values4?: List, - iteratee?: ((value: T) => any)|string + values1: List, + values2: List, + values3: List, + values4: List, + iteratee?: ValueIteratee ): T[]; /** @@ -695,25 +625,12 @@ declare namespace _ { */ differenceBy( array: List | null | undefined, - values1?: List, - values2?: List, - values3?: List, - values4?: List, - values5?: List, - iteratee?: ((value: T) => any)|string - ): T[]; - - /** - * @see _.differenceBy - */ - differenceBy( - array: List | null | undefined, - values1?: List, - values2?: List, - values3?: List, - values4?: List, - values5?: List, - iteratee?: W + values1: List, + values2: List, + values3: List, + values4: List, + values5: List, + iteratee?: ValueIteratee ): T[]; /** @@ -721,447 +638,141 @@ declare namespace _ { */ differenceBy( array: List | null | undefined, - ...values: any[] + ...values: Array | ValueIteratee> ): T[]; } - interface LoDashImplicitArrayWrapperBase { + interface LoDashImplicitWrapper { /** * @see _.differenceBy */ differenceBy( + this: LoDashImplicitWrapper | null | undefined>, values?: List, - iteratee?: ((value: T) => any)|string - ): LoDashImplicitArrayWrapper; - - /** - * @see _.differenceBy - */ - differenceBy( - values?: List, - iteratee?: W - ): LoDashImplicitArrayWrapper; + iteratee?: ValueIteratee + ): LoDashImplicitWrapper; /** * @see _.differenceBy */ differenceBy( - values1?: List, - values2?: List, - iteratee?: ((value: T) => any)|string - ): LoDashImplicitArrayWrapper; - - /** - * @see _.differenceBy - */ - differenceBy( - values1?: List, - values2?: List, - iteratee?: W - ): LoDashImplicitArrayWrapper; + this: LoDashImplicitWrapper | null | undefined>, + values1: List, + values2: List, + iteratee?: ValueIteratee + ): LoDashImplicitWrapper; /** * @see _.differenceBy */ differenceBy( - values1?: List, - values2?: List, - values3?: List, - iteratee?: ((value: T) => any)|string - ): LoDashImplicitArrayWrapper; - - /** - * @see _.differenceBy - */ - differenceBy( - values1?: List, - values2?: List, - values3?: List, - iteratee?: W - ): LoDashImplicitArrayWrapper; + this: LoDashImplicitWrapper | null | undefined>, + values1: List, + values2: List, + values3: List, + iteratee?: ValueIteratee + ): LoDashImplicitWrapper; /** * @see _.differenceBy */ differenceBy( - values1?: List, - values2?: List, - values3?: List, - values4?: List, - iteratee?: ((value: T) => any)|string - ): LoDashImplicitArrayWrapper; - - /** - * @see _.differenceBy - */ - differenceBy( - values1?: List, - values2?: List, - values3?: List, - values4?: List, - iteratee?: W - ): LoDashImplicitArrayWrapper; + this: LoDashImplicitWrapper | null | undefined>, + values1: List, + values2: List, + values3: List, + values4: List, + iteratee?: ValueIteratee + ): LoDashImplicitWrapper; /** * @see _.differenceBy */ differenceBy( - values1?: List, - values2?: List, - values3?: List, - values4?: List, - values5?: List, - iteratee?: ((value: T) => any)|string - ): LoDashImplicitArrayWrapper; - - /** - * @see _.differenceBy - */ - differenceBy( - values1?: List, - values2?: List, - values3?: List, - values4?: List, - values5?: List, - iteratee?: W - ): LoDashImplicitArrayWrapper; + this: LoDashImplicitWrapper | null | undefined>, + values1: List, + values2: List, + values3: List, + values4: List, + values5: List, + iteratee?: ValueIteratee + ): LoDashImplicitWrapper; /** * @see _.differenceBy */ differenceBy( - ...values: any[] - ): LoDashImplicitArrayWrapper; + this: LoDashImplicitWrapper | null | undefined>, + ...values: Array | ValueIteratee> + ): LoDashImplicitWrapper; } - interface LoDashImplicitObjectWrapperBase { + interface LoDashExplicitWrapper { /** * @see _.differenceBy */ differenceBy( + this: LoDashExplicitWrapper | null | undefined>, values?: List, - iteratee?: ((value: T) => any)|string - ): LoDashImplicitArrayWrapper; - - /** - * @see _.differenceBy - */ - differenceBy( - values?: List, - iteratee?: W - ): LoDashImplicitArrayWrapper; + iteratee?: ValueIteratee + ): LoDashExplicitWrapper; /** * @see _.differenceBy */ differenceBy( - values1?: List, - values2?: List, - iteratee?: ((value: T) => any)|string - ): LoDashImplicitArrayWrapper; - - /** - * @see _.differenceBy - */ - differenceBy( - values1?: List, - values2?: List, - iteratee?: W - ): LoDashImplicitArrayWrapper; + this: LoDashExplicitWrapper | null | undefined>, + values1: List, + values2: List, + iteratee?: ValueIteratee + ): LoDashExplicitWrapper; /** * @see _.differenceBy */ differenceBy( - values1?: List, - values2?: List, - values3?: List, - iteratee?: ((value: T) => any)|string - ): LoDashImplicitArrayWrapper; - - /** - * @see _.differenceBy - */ - differenceBy( - values1?: List, - values2?: List, - values3?: List, - iteratee?: W - ): LoDashImplicitArrayWrapper; + this: LoDashExplicitWrapper | null | undefined>, + values1: List, + values2: List, + values3: List, + iteratee?: ValueIteratee + ): LoDashExplicitWrapper; /** * @see _.differenceBy */ differenceBy( - values1?: List, - values2?: List, - values3?: List, - values4?: List, - iteratee?: ((value: T) => any)|string - ): LoDashImplicitArrayWrapper; - - /** - * @see _.differenceBy - */ - differenceBy( - values1?: List, - values2?: List, - values3?: List, - values4?: List, - iteratee?: W - ): LoDashImplicitArrayWrapper; + this: LoDashExplicitWrapper | null | undefined>, + values1: List, + values2: List, + values3: List, + values4: List, + iteratee?: ValueIteratee + ): LoDashExplicitWrapper; /** * @see _.differenceBy */ differenceBy( - values1?: List, - values2?: List, - values3?: List, - values4?: List, - values5?: List, - iteratee?: ((value: T) => any)|string - ): LoDashImplicitArrayWrapper; - - /** - * @see _.differenceBy - */ - differenceBy( - values1?: List, - values2?: List, - values3?: List, - values4?: List, - values5?: List, - iteratee?: W - ): LoDashImplicitArrayWrapper; + this: LoDashExplicitWrapper | null | undefined>, + values1: List, + values2: List, + values3: List, + values4: List, + values5: List, + iteratee?: ValueIteratee + ): LoDashExplicitWrapper; /** * @see _.differenceBy */ differenceBy( - ...values: any[] - ): LoDashImplicitArrayWrapper; + this: LoDashExplicitWrapper | null | undefined>, + ...values: Array | ValueIteratee> + ): LoDashExplicitWrapper; } - interface LoDashExplicitArrayWrapperBase { - /** - * @see _.differenceBy - */ - differenceBy( - values?: List, - iteratee?: ((value: T) => any)|string - ): LoDashExplicitArrayWrapper; - - /** - * @see _.differenceBy - */ - differenceBy( - values?: List, - iteratee?: W - ): LoDashExplicitArrayWrapper; - - /** - * @see _.differenceBy - */ - differenceBy( - values1?: List, - values2?: List, - iteratee?: ((value: T) => any)|string - ): LoDashExplicitArrayWrapper; - - /** - * @see _.differenceBy - */ - differenceBy( - values1?: List, - values2?: List, - iteratee?: W - ): LoDashExplicitArrayWrapper; - - /** - * @see _.differenceBy - */ - differenceBy( - values1?: List, - values2?: List, - values3?: List, - iteratee?: ((value: T) => any)|string - ): LoDashExplicitArrayWrapper; - - /** - * @see _.differenceBy - */ - differenceBy( - values1?: List, - values2?: List, - values3?: List, - iteratee?: W - ): LoDashExplicitArrayWrapper; - - /** - * @see _.differenceBy - */ - differenceBy( - values1?: List, - values2?: List, - values3?: List, - values4?: List, - iteratee?: ((value: T) => any)|string - ): LoDashExplicitArrayWrapper; - - /** - * @see _.differenceBy - */ - differenceBy( - values1?: List, - values2?: List, - values3?: List, - values4?: List, - iteratee?: W - ): LoDashExplicitArrayWrapper; - - /** - * @see _.differenceBy - */ - differenceBy( - values1?: List, - values2?: List, - values3?: List, - values4?: List, - values5?: List, - iteratee?: ((value: T) => any)|string - ): LoDashExplicitArrayWrapper; - - /** - * @see _.differenceBy - */ - differenceBy( - values1?: List, - values2?: List, - values3?: List, - values4?: List, - values5?: List, - iteratee?: W - ): LoDashExplicitArrayWrapper; - - /** - * @see _.differenceBy - */ - differenceBy( - ...values: any[] - ): LoDashExplicitArrayWrapper; - } - - interface LoDashExplicitObjectWrapperBase { - /** - * @see _.differenceBy - */ - differenceBy( - values?: List, - iteratee?: ((value: T) => any)|string - ): LoDashExplicitArrayWrapper; - - /** - * @see _.differenceBy - */ - differenceBy( - values?: List, - iteratee?: W - ): LoDashExplicitArrayWrapper; - - /** - * @see _.differenceBy - */ - differenceBy( - values1?: List, - values2?: List, - iteratee?: ((value: T) => any)|string - ): LoDashExplicitArrayWrapper; - - /** - * @see _.differenceBy - */ - differenceBy( - values1?: List, - values2?: List, - iteratee?: W - ): LoDashExplicitArrayWrapper; - - /** - * @see _.differenceBy - */ - differenceBy( - values1?: List, - values2?: List, - values3?: List, - iteratee?: ((value: T) => any)|string - ): LoDashExplicitArrayWrapper; - - /** - * @see _.differenceBy - */ - differenceBy( - values1?: List, - values2?: List, - values3?: List, - iteratee?: W - ): LoDashExplicitArrayWrapper; - - /** - * @see _.differenceBy - */ - differenceBy( - values1?: List, - values2?: List, - values3?: List, - values4?: List, - iteratee?: ((value: T) => any)|string - ): LoDashExplicitArrayWrapper; - - /** - * @see _.differenceBy - */ - differenceBy( - values1?: List, - values2?: List, - values3?: List, - values4?: List, - iteratee?: W - ): LoDashExplicitArrayWrapper; - - /** - * @see _.differenceBy - */ - differenceBy( - values1?: List, - values2?: List, - values3?: List, - values4?: List, - values5?: List, - iteratee?: ((value: T) => any)|string - ): LoDashExplicitArrayWrapper; - - /** - * @see _.differenceBy - */ - differenceBy( - values1?: List, - values2?: List, - values3?: List, - values4?: List, - values5?: List, - iteratee?: W - ): LoDashExplicitArrayWrapper; - - /** - * @see _.differenceBy - */ - differenceBy( - ...values: any[] - ): LoDashExplicitArrayWrapper; - } - - //_.differenceWith DUMMY + //_.differenceWith interface LoDashStatic { /** * Creates an array of unique `array` values not included in the other @@ -1171,18 +782,67 @@ declare namespace _ { * @static * @memberOf _ * @category Array - * @param {Array} array The array to inspect. - * @param {...Array} [values] The values to exclude. + * @param {...Array} [values] The arrays to inspect. + * @param {Function} [comparator] The comparator invoked per element. * @returns {Array} Returns the new array of filtered values. * @example * - * _.difference([3, 2, 1], [4, 2]); - * // => [3, 1] + * var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }]; + + * _.differenceWith(objects, [{ 'x': 1, 'y': 2 }], _.isEqual); + * // => [{ 'x': 2, 'y': 1 }] */ - differenceWith( - array: List, - ...values: any[] - ): any[]; + differenceWith( + array: List | null | undefined, + values?: List, + comparator?: Comparator + ): T[]; + + /** + * @see _.differenceWith + */ + differenceWith( + array: List | null | undefined, + ...values: Array | Comparator>, + ): T[]; + } + + interface LoDashImplicitWrapper { + /** + * @see _.differenceWith + */ + differenceWith( + this: LoDashImplicitWrapper | null | undefined>, + values?: List, + comparator?: Comparator + ): LoDashImplicitWrapper; + + /** + * @see _.differenceWith + */ + differenceWith( + this: LoDashImplicitWrapper | null | undefined>, + ...values: Array | Comparator>, + ): LoDashImplicitWrapper; + } + + interface LoDashExplicitWrapper { + /** + * @see _.differenceWith + */ + differenceWith( + this: LoDashExplicitWrapper | null | undefined>, + values?: List, + comparator?: Comparator + ): LoDashExplicitWrapper; + + /** + * @see _.differenceWith + */ + differenceWith( + this: LoDashExplicitWrapper | null | undefined>, + ...values: Array | Comparator>, + ): LoDashExplicitWrapper; } //_.drop @@ -1197,32 +857,18 @@ declare namespace _ { drop(array: List | null | undefined, n?: number): T[]; } - interface LoDashImplicitArrayWrapperBase { + interface LoDashImplicitWrapper { /** * @see _.drop */ - drop(n?: number): LoDashImplicitArrayWrapper; + drop(this: LoDashImplicitWrapper | null | undefined>, n?: number): LoDashImplicitWrapper; } - interface LoDashImplicitObjectWrapperBase { + interface LoDashExplicitWrapper { /** * @see _.drop */ - drop(n?: number): LoDashImplicitArrayWrapper; - } - - interface LoDashExplicitArrayWrapperBase { - /** - * @see _.drop - */ - drop(n?: number): LoDashExplicitArrayWrapper; - } - - interface LoDashExplicitObjectWrapperBase { - /** - * @see _.drop - */ - drop(n?: number): LoDashExplicitArrayWrapper; + drop(this: LoDashExplicitWrapper | null | undefined>, n?: number): LoDashExplicitWrapper; } //_.dropRight @@ -1240,32 +886,18 @@ declare namespace _ { ): T[]; } - interface LoDashImplicitArrayWrapperBase { + interface LoDashImplicitWrapper { /** * @see _.dropRight */ - dropRight(n?: number): LoDashImplicitArrayWrapper; + dropRight(this: LoDashImplicitWrapper | null | undefined>, n?: number): LoDashImplicitWrapper; } - interface LoDashImplicitObjectWrapperBase { + interface LoDashExplicitWrapper { /** * @see _.dropRight */ - dropRight(n?: number): LoDashImplicitArrayWrapper; - } - - interface LoDashExplicitArrayWrapperBase { - /** - * @see _.dropRight - */ - dropRight(n?: number): LoDashExplicitArrayWrapper; - } - - interface LoDashExplicitObjectWrapperBase { - /** - * @see _.dropRight - */ - dropRight(n?: number): LoDashExplicitArrayWrapper; + dropRight(this: LoDashExplicitWrapper | null | undefined>, n?: number): LoDashExplicitWrapper; } //_.dropRightWhile @@ -1288,118 +920,30 @@ declare namespace _ { * @param thisArg The this binding of predicate. * @return Returns the slice of array. */ - dropRightWhile( - array: List | null | undefined, - predicate?: ListIterator - ): TValue[]; - - /** - * @see _.dropRightWhile - */ - dropRightWhile( - array: List | null | undefined, - predicate?: string - ): TValue[]; - - /** - * @see _.dropRightWhile - */ - dropRightWhile( - array: List | null | undefined, - predicate?: TWhere - ): TValue[]; + dropRightWhile( + array: List | null | undefined, + predicate?: ListIteratee + ): T[]; } - interface LoDashImplicitArrayWrapperBase { + interface LoDashImplicitWrapper { /** * @see _.dropRightWhile */ - dropRightWhile( - predicate?: ListIterator - ): LoDashImplicitArrayWrapper; - - /** - * @see _.dropRightWhile - */ - dropRightWhile( - predicate?: string - ): LoDashImplicitArrayWrapper; - - /** - * @see _.dropRightWhile - */ - dropRightWhile( - predicate?: TWhere - ): LoDashImplicitArrayWrapper; + dropRightWhile( + this: LoDashImplicitWrapper | null | undefined>, + predicate?: ListIteratee + ): LoDashImplicitWrapper; } - interface LoDashImplicitObjectWrapperBase { + interface LoDashExplicitWrapper { /** * @see _.dropRightWhile */ - dropRightWhile( - predicate?: ListIterator - ): LoDashImplicitArrayWrapper; - - /** - * @see _.dropRightWhile - */ - dropRightWhile( - predicate?: string - ): LoDashImplicitArrayWrapper; - - /** - * @see _.dropRightWhile - */ - dropRightWhile( - predicate?: TWhere - ): LoDashImplicitArrayWrapper; - } - - interface LoDashExplicitArrayWrapperBase { - /** - * @see _.dropRightWhile - */ - dropRightWhile( - predicate?: ListIterator - ): LoDashExplicitArrayWrapper; - - /** - * @see _.dropRightWhile - */ - dropRightWhile( - predicate?: string - ): LoDashExplicitArrayWrapper; - - /** - * @see _.dropRightWhile - */ - dropRightWhile( - predicate?: TWhere - ): LoDashExplicitArrayWrapper; - } - - interface LoDashExplicitObjectWrapperBase { - /** - * @see _.dropRightWhile - */ - dropRightWhile( - predicate?: ListIterator - ): LoDashExplicitArrayWrapper; - - /** - * @see _.dropRightWhile - */ - dropRightWhile( - predicate?: string - ): LoDashExplicitArrayWrapper; - - /** - * @see _.dropRightWhile - */ - dropRightWhile( - predicate?: TWhere - ): LoDashExplicitArrayWrapper; + dropRightWhile( + this: LoDashExplicitWrapper | null | undefined>, + predicate?: ListIteratee + ): LoDashExplicitWrapper; } //_.dropWhile @@ -1422,118 +966,30 @@ declare namespace _ { * @param thisArg The this binding of predicate. * @return Returns the slice of array. */ - dropWhile( - array: List | null | undefined, - predicate?: ListIterator - ): TValue[]; - - /** - * @see _.dropWhile - */ - dropWhile( - array: List | null | undefined, - predicate?: string - ): TValue[]; - - /** - * @see _.dropWhile - */ - dropWhile( - array: List | null | undefined, - predicate?: TWhere - ): TValue[]; + dropWhile( + array: List | null | undefined, + predicate?: ListIteratee + ): T[]; } - interface LoDashImplicitArrayWrapperBase { + interface LoDashImplicitWrapper { /** * @see _.dropWhile */ - dropWhile( - predicate?: ListIterator - ): LoDashImplicitArrayWrapper; - - /** - * @see _.dropWhile - */ - dropWhile( - predicate?: string - ): LoDashImplicitArrayWrapper; - - /** - * @see _.dropWhile - */ - dropWhile( - predicate?: TWhere - ): LoDashImplicitArrayWrapper; + dropWhile( + this: LoDashImplicitWrapper | null | undefined>, + predicate?: ListIteratee + ): LoDashImplicitWrapper; } - interface LoDashImplicitObjectWrapperBase { + interface LoDashExplicitWrapper { /** * @see _.dropWhile */ - dropWhile( - predicate?: ListIterator - ): LoDashImplicitArrayWrapper; - - /** - * @see _.dropWhile - */ - dropWhile( - predicate?: string - ): LoDashImplicitArrayWrapper; - - /** - * @see _.dropWhile - */ - dropWhile( - predicate?: TWhere - ): LoDashImplicitArrayWrapper; - } - - interface LoDashExplicitArrayWrapperBase { - /** - * @see _.dropWhile - */ - dropWhile( - predicate?: ListIterator - ): LoDashExplicitArrayWrapper; - - /** - * @see _.dropWhile - */ - dropWhile( - predicate?: string - ): LoDashExplicitArrayWrapper; - - /** - * @see _.dropWhile - */ - dropWhile( - predicate?: TWhere - ): LoDashExplicitArrayWrapper; - } - - interface LoDashExplicitObjectWrapperBase { - /** - * @see _.dropWhile - */ - dropWhile( - predicate?: ListIterator - ): LoDashExplicitArrayWrapper; - - /** - * @see _.dropWhile - */ - dropWhile( - predicate?: string - ): LoDashExplicitArrayWrapper; - - /** - * @see _.dropWhile - */ - dropWhile( - predicate?: TWhere - ): LoDashExplicitArrayWrapper; + dropWhile( + this: LoDashExplicitWrapper | null | undefined>, + predicate?: ListIteratee + ): LoDashExplicitWrapper; } //_.fill @@ -1551,9 +1007,7 @@ declare namespace _ { */ fill( array: any[] | null | undefined, - value: T, - start?: number, - end?: number + value: T ): T[]; /** @@ -1561,54 +1015,104 @@ declare namespace _ { */ fill( array: List | null | undefined, - value: T, - start?: number, - end?: number + value: T ): List; + + /** + * @see _.fill + */ + fill( + array: U[] | null | undefined, + value: T, + start?: number, + end?: number + ): Array; + + /** + * @see _.fill + */ + fill( + array: List | null | undefined, + value: T, + start?: number, + end?: number + ): List; } - interface LoDashImplicitArrayWrapperBase { + interface LoDashImplicitWrapper { /** * @see _.fill */ fill( - value: T, - start?: number, - end?: number - ): LoDashImplicitArrayWrapper; - } + this: LoDashImplicitWrapper, + value: T + ): LoDashImplicitWrapper; - interface LoDashImplicitObjectWrapperBase { /** * @see _.fill */ fill( + this: LoDashImplicitWrapper | null | undefined>, + value: T + ): LoDashImplicitWrapper>; + + /** + * @see _.fill + */ + fill( + this: LoDashImplicitWrapper, value: T, start?: number, end?: number - ): LoDashImplicitObjectWrapper>; + ): LoDashImplicitWrapper>; + + /** + * @see _.fill + */ + fill( + this: LoDashImplicitWrapper | null | undefined>, + value: T, + start?: number, + end?: number + ): LoDashImplicitWrapper>; } - interface LoDashExplicitArrayWrapperBase { + interface LoDashExplicitWrapper { /** * @see _.fill */ fill( - value: T, - start?: number, - end?: number - ): LoDashExplicitArrayWrapper; - } + this: LoDashExplicitWrapper, + value: T + ): LoDashExplicitWrapper; - interface LoDashExplicitObjectWrapperBase { /** * @see _.fill */ fill( + this: LoDashExplicitWrapper | null | undefined>, + value: T + ): LoDashExplicitWrapper>; + + /** + * @see _.fill + */ + fill( + this: LoDashExplicitWrapper, value: T, start?: number, end?: number - ): LoDashExplicitObjectWrapper>; + ): LoDashExplicitWrapper>; + + /** + * @see _.fill + */ + fill( + this: LoDashExplicitWrapper | null | undefined>, + value: T, + start?: number, + end?: number + ): LoDashExplicitWrapper>; } //_.findIndex @@ -1633,129 +1137,29 @@ declare namespace _ { */ findIndex( array: List | null | undefined, - predicate?: ListIterator, + predicate?: ListIteratee, fromIndex?: number ): number; + } + interface LoDashImplicitWrapper { /** * @see _.findIndex */ findIndex( - array: List | null | undefined, - predicate?: string, - fromIndex?: number - ): number; - - /** - * @see _.findIndex - */ - findIndex( - array: List | null | undefined, - predicate?: W, + this: LoDashImplicitWrapper | null | undefined>, + predicate?: ListIteratee, fromIndex?: number ): number; } - interface LoDashImplicitArrayWrapperBase { + interface LoDashExplicitWrapper { /** * @see _.findIndex */ - findIndex( - predicate?: ListIterator, - fromIndex?: number - ): number; - - /** - * @see _.findIndex - */ - findIndex( - predicate?: string, - fromIndex?: number - ): number; - - /** - * @see _.findIndex - */ - findIndex( - predicate?: W, - fromIndex?: number - ): number; - } - - interface LoDashImplicitObjectWrapperBase { - /** - * @see _.findIndex - */ - findIndex( - predicate?: ListIterator, - fromIndex?: number - ): number; - - /** - * @see _.findIndex - */ - findIndex( - predicate?: string, - fromIndex?: number - ): number; - - /** - * @see _.findIndex - */ - findIndex( - predicate?: W, - fromIndex?: number - ): number; - } - - interface LoDashExplicitArrayWrapperBase { - /** - * @see _.findIndex - */ - findIndex( - predicate?: ListIterator, - fromIndex?: number - ): LoDashExplicitWrapper; - - /** - * @see _.findIndex - */ - findIndex( - predicate?: string, - fromIndex?: number - ): LoDashExplicitWrapper; - - /** - * @see _.findIndex - */ - findIndex( - predicate?: W, - fromIndex?: number - ): LoDashExplicitWrapper; - } - - interface LoDashExplicitObjectWrapperBase { - /** - * @see _.findIndex - */ - findIndex( - predicate?: ListIterator, - fromIndex?: number - ): LoDashExplicitWrapper; - - /** - * @see _.findIndex - */ - findIndex( - predicate?: string, - fromIndex?: number - ): LoDashExplicitWrapper; - - /** - * @see _.findIndex - */ - findIndex( - predicate?: W, + findIndex( + this: LoDashExplicitWrapper | null | undefined>, + predicate?: ListIteratee, fromIndex?: number ): LoDashExplicitWrapper; } @@ -1781,185 +1185,53 @@ declare namespace _ { */ findLastIndex( array: List | null | undefined, - predicate?: ListIterator, + predicate?: ListIteratee, fromIndex?: number ): number; + } + interface LoDashImplicitWrapper { /** * @see _.findLastIndex */ findLastIndex( - array: List | null | undefined, - predicate?: string, - fromIndex?: number - ): number; - - /** - * @see _.findLastIndex - */ - findLastIndex( - array: List | null | undefined, - predicate?: W, + this: LoDashImplicitWrapper | null | undefined>, + predicate?: ListIteratee, fromIndex?: number ): number; } - interface LoDashImplicitArrayWrapperBase { + interface LoDashExplicitWrapper { /** * @see _.findLastIndex */ - findLastIndex( - predicate?: ListIterator, - fromIndex?: number - ): number; - - /** - * @see _.findLastIndex - */ - findLastIndex( - predicate?: string, - fromIndex?: number - ): number; - - /** - * @see _.findLastIndex - */ - findLastIndex( - predicate?: W, - fromIndex?: number - ): number; - } - - interface LoDashImplicitObjectWrapperBase { - /** - * @see _.findLastIndex - */ - findLastIndex( - predicate?: ListIterator, - fromIndex?: number - ): number; - - /** - * @see _.findLastIndex - */ - findLastIndex( - predicate?: string, - fromIndex?: number - ): number; - - /** - * @see _.findLastIndex - */ - findLastIndex( - predicate?: W, - fromIndex?: number - ): number; - } - - interface LoDashExplicitArrayWrapperBase { - /** - * @see _.findLastIndex - */ - findLastIndex( - predicate?: ListIterator, - fromIndex?: number - ): LoDashExplicitWrapper; - - /** - * @see _.findLastIndex - */ - findLastIndex( - predicate?: string, - fromIndex?: number - ): LoDashExplicitWrapper; - - /** - * @see _.findLastIndex - */ - findLastIndex( - predicate?: W, - fromIndex?: number - ): LoDashExplicitWrapper; - } - - interface LoDashExplicitObjectWrapperBase { - /** - * @see _.findLastIndex - */ - findLastIndex( - predicate?: ListIterator, - fromIndex?: number - ): LoDashExplicitWrapper; - - /** - * @see _.findLastIndex - */ - findLastIndex( - predicate?: string, - fromIndex?: number - ): LoDashExplicitWrapper; - - /** - * @see _.findLastIndex - */ - findLastIndex( - predicate?: W, + findLastIndex( + this: LoDashExplicitWrapper | null | undefined>, + predicate?: ListIteratee, fromIndex?: number ): LoDashExplicitWrapper; } //_.first interface LoDashStatic { - /** - * @see _.head - */ - first(array: List | null | undefined): T | undefined; + first: typeof _.head; // tslint:disable-line:no-unnecessary-qualifier } - interface LoDashImplicitWrapper { + interface LoDashImplicitWrapper { /** * @see _.head */ - first(): string | undefined; + first(this: LoDashImplicitWrapper | null | undefined>): T | undefined; } - interface LoDashImplicitArrayWrapperBase { + interface LoDashExplicitWrapper { /** * @see _.head */ - first(): T | undefined; - } - - interface LoDashImplicitObjectWrapperBase { - /** - * @see _.head - */ - first(): T | undefined; - } - - interface LoDashExplicitWrapper { - /** - * @see _.head - */ - first(): LoDashExplicitWrapper; - } - - interface LoDashExplicitArrayWrapperBase { - /** - * @see _.head - */ - first(): T; - } - - interface LoDashExplicitObjectWrapperBase { - /** - * @see _.head - */ - first(): T; + first(this: LoDashExplicitWrapper | null | undefined>): LoDashExplicitWrapper; } interface RecursiveArray extends Array> {} - interface ListOfRecursiveArraysOrValues extends List> {} //_.flatten @@ -1978,53 +1250,30 @@ declare namespace _ { * @see _.flatten */ flatten(array: List> | null | undefined): T[]; - - /** - * @see _.flatten - */ - flatten(array: ListOfRecursiveArraysOrValues | null | undefined): RecursiveArray; } - interface LoDashImplicitWrapper { + interface LoDashImplicitWrapper { /** * @see _.flatten */ - flatten(): LoDashImplicitArrayWrapper; + flatten(this: LoDashImplicitWrapper | null | undefined>, isDeep: boolean): LoDashImplicitWrapper; + + /** + * @see _.flatten + */ + flatten(this: LoDashImplicitWrapper> | null | undefined>): LoDashImplicitWrapper; } - interface LoDashImplicitArrayWrapperBase { + interface LoDashExplicitWrapper { /** * @see _.flatten */ - flatten(isDeep?: boolean): LoDashImplicitArrayWrapper; - } + flatten(this: LoDashExplicitWrapper | null | undefined>, isDeep: boolean): LoDashExplicitWrapper; - interface LoDashImplicitObjectWrapperBase { /** * @see _.flatten */ - flatten(isDeep?: boolean): LoDashImplicitArrayWrapper; - } - - interface LoDashExplicitWrapper { - /** - * @see _.flatten - */ - flatten(): LoDashExplicitArrayWrapper; - } - - interface LoDashExplicitArrayWrapperBase { - /** - * @see _.flatten - */ - flatten(isDeep?: boolean): LoDashExplicitArrayWrapper; - } - - interface LoDashExplicitObjectWrapperBase { - /** - * @see _.flatten - */ - flatten(isDeep?: boolean): LoDashExplicitArrayWrapper; + flatten(this: LoDashExplicitWrapper> | null | undefined>): LoDashExplicitWrapper; } //_.flattenDeep @@ -2038,46 +1287,18 @@ declare namespace _ { flattenDeep(array: ListOfRecursiveArraysOrValues | null | undefined): T[]; } - interface LoDashImplicitWrapper { + interface LoDashImplicitWrapper { /** * @see _.flattenDeep */ - flattenDeep(): LoDashImplicitArrayWrapper; + flattenDeep(this: LoDashImplicitWrapper | null | undefined>): LoDashImplicitWrapper; } - interface LoDashImplicitArrayWrapperBase { + interface LoDashExplicitWrapper { /** * @see _.flattenDeep */ - flattenDeep(): LoDashImplicitArrayWrapper; - } - - interface LoDashImplicitObjectWrapperBase { - /** - * @see _.flattenDeep - */ - flattenDeep(): LoDashImplicitArrayWrapper; - } - - interface LoDashExplicitWrapper { - /** - * @see _.flattenDeep - */ - flattenDeep(): LoDashExplicitArrayWrapper; - } - - interface LoDashExplicitArrayWrapperBase { - /** - * @see _.flattenDeep - */ - flattenDeep(): LoDashExplicitArrayWrapper; - } - - interface LoDashExplicitObjectWrapperBase { - /** - * @see _.flattenDeep - */ - flattenDeep(): LoDashExplicitArrayWrapper; + flattenDeep(this: LoDashExplicitWrapper | null | undefined>): LoDashExplicitWrapper; } // _.flattenDepth @@ -2092,6 +1313,20 @@ declare namespace _ { flattenDepth(array: ListOfRecursiveArraysOrValues | null | undefined, depth?: number): T[]; } + interface LoDashImplicitWrapper { + /** + * @see _.flattenDeep + */ + flattenDepth(this: LoDashImplicitWrapper | null | undefined>, depth?: number): LoDashImplicitWrapper; + } + + interface LoDashExplicitWrapper { + /** + * @see _.flattenDeep + */ + flattenDepth(this: LoDashExplicitWrapper | null | undefined>, depth?: number): LoDashExplicitWrapper; + } + //_.fromPairs interface LoDashStatic { /** @@ -2109,7 +1344,7 @@ declare namespace _ { * // => { 'fred': 30, 'barney': 40 } */ fromPairs( - array: List<[_.StringRepresentable, T]> | null | undefined + array: List<[StringRepresentable, T]> | null | undefined ): Dictionary; /** @@ -2120,20 +1355,37 @@ declare namespace _ { ): Dictionary; } - //_.fromPairs DUMMY - interface LoDashImplicitArrayWrapperBase { + //_.fromPairs + interface LoDashImplicitWrapper { /** * @see _.fromPairs */ - fromPairs(): LoDashImplicitObjectWrapper; - } + fromPairs( + this: LoDashImplicitWrapper | null | undefined> + ): LoDashImplicitWrapper>; - //_.fromPairs DUMMY - interface LoDashExplicitArrayWrapperBase { + /** + @see _.fromPairs + */ + fromPairs( + this: LoDashImplicitWrapper | null | undefined> + ): LoDashImplicitWrapper>; + } + //_.fromPairs + interface LoDashExplicitWrapper { /** * @see _.fromPairs */ - fromPairs(): LoDashExplicitObjectWrapper; + fromPairs( + this: LoDashExplicitWrapper | null | undefined> + ): LoDashExplicitWrapper>; + + /** + @see _.fromPairs + */ + fromPairs( + this: LoDashExplicitWrapper | null | undefined> + ): LoDashExplicitWrapper>; } //_.head @@ -2149,46 +1401,18 @@ declare namespace _ { head(array: List | null | undefined): T | undefined; } - interface LoDashImplicitWrapper { + interface LoDashImplicitWrapper { /** * @see _.head */ - head(): string | undefined; + head(this: LoDashImplicitWrapper | null | undefined>): T | undefined; } - interface LoDashImplicitArrayWrapperBase { + interface LoDashExplicitWrapper { /** * @see _.head */ - head(): T | undefined; - } - - interface LoDashImplicitObjectWrapperBase { - /** - * @see _.head - */ - head(): T | undefined; - } - - interface LoDashExplicitWrapper { - /** - * @see _.head - */ - head(): LoDashExplicitWrapper; - } - - interface LoDashExplicitArrayWrapperBase { - /** - * @see _.head - */ - head(): T; - } - - interface LoDashExplicitObjectWrapperBase { - /** - * @see _.head - */ - head(): T; + head(this: LoDashExplicitWrapper | null | undefined>): LoDashExplicitWrapper; } //_.indexOf @@ -2223,277 +1447,28 @@ declare namespace _ { ): number; } - interface LoDashImplicitArrayWrapperBase { + interface LoDashImplicitWrapper { /** * @see _.indexOf */ - indexOf( + indexOf( + this: LoDashImplicitWrapper | null | undefined>, value: T, fromIndex?: boolean|number ): number; } - interface LoDashImplicitObjectWrapperBase { + interface LoDashExplicitWrapper { /** * @see _.indexOf */ - indexOf( - value: TValue, - fromIndex?: boolean|number - ): number; - } - - interface LoDashExplicitArrayWrapperBase { - /** - * @see _.indexOf - */ - indexOf( + indexOf( + this: LoDashExplicitWrapper | null | undefined>, value: T, fromIndex?: boolean|number ): LoDashExplicitWrapper; } - interface LoDashExplicitObjectWrapperBase { - /** - * @see _.indexOf - */ - indexOf( - value: TValue, - fromIndex?: boolean|number - ): LoDashExplicitWrapper; - } - - //_.intersectionBy DUMMY - interface LoDashStatic { - /** - * This method is like `_.intersection` except that it accepts `iteratee` - * which is invoked for each element of each `arrays` to generate the criterion - * by which uniqueness is computed. The iteratee is invoked with one argument: (value). - * - * @static - * @memberOf _ - * @category Array - * @param {...Array} [arrays] The arrays to inspect. - * @param {Function|Object|string} [iteratee=_.identity] The iteratee invoked per element. - * @returns {Array} Returns the new array of shared values. - * @example - * - * _.intersectionBy([2.1, 1.2], [4.3, 2.4], Math.floor); - * // => [2.1] - * - * // using the `_.property` iteratee shorthand - * _.intersectionBy([{ 'x': 1 }], [{ 'x': 2 }, { 'x': 1 }], 'x'); - * // => [{ 'x': 1 }] - */ - intersectionBy( - array: List, - ...values: any[] - ): any[]; - } - - //_.intersectionWith DUMMY - interface LoDashStatic { - /** - * This method is like `_.intersection` except that it accepts `comparator` - * which is invoked to compare elements of `arrays`. The comparator is invoked - * with two arguments: (arrVal, othVal). - * - * @static - * @memberOf _ - * @category Array - * @param {...Array} [arrays] The arrays to inspect. - * @param {Function} [comparator] The comparator invoked per element. - * @returns {Array} Returns the new array of shared values. - * @example - * - * var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }]; - * var others = [{ 'x': 1, 'y': 1 }, { 'x': 1, 'y': 2 }]; - * - * _.intersectionWith(objects, others, _.isEqual); - * // => [{ 'x': 1, 'y': 2 }] - */ - intersectionWith( - array: List, - ...values: any[] - ): any[]; - } - - //_.join - interface LoDashStatic { - /** - * Converts all elements in `array` into a string separated by `separator`. - * - * @param array The array to convert. - * @param separator The element separator. - * @returns Returns the joined string. - */ - join( - array: List | null | undefined, - separator?: string - ): string; - } - - interface LoDashImplicitWrapper { - /** - * @see _.join - */ - join(separator?: string): string; - } - - interface LoDashImplicitArrayWrapperBase { - /** - * @see _.join - */ - join(separator?: string): string; - } - - interface LoDashImplicitObjectWrapperBase { - /** - * @see _.join - */ - join(separator?: string): string; - } - - interface LoDashExplicitWrapper { - /** - * @see _.join - */ - join(separator?: string): LoDashExplicitWrapper; - } - - interface LoDashExplicitArrayWrapperBase { - /** - * @see _.join - */ - join(separator?: string): LoDashExplicitWrapper; - } - - interface LoDashExplicitObjectWrapperBase { - /** - * @see _.join - */ - join(separator?: string): LoDashExplicitWrapper; - } - - //_.pullAll DUMMY - interface LoDashStatic { - /** - * This method is like `_.pull` except that it accepts an array of values to remove. - * - * **Note:** Unlike `_.difference`, this method mutates `array`. - * - * @static - * @memberOf _ - * @category Array - * @param {Array} array The array to modify. - * @param {Array} values The values to remove. - * @returns {Array} Returns `array`. - * @example - * - * var array = [1, 2, 3, 1, 2, 3]; - * - * _.pull(array, [2, 3]); - * console.log(array); - * // => [1, 1] - */ - pullAll( - array: List, - ...values: any[] - ): any[]; - } - - //_.pullAllBy DUMMY - interface LoDashStatic { - /** - * This method is like `_.pullAll` except that it accepts `iteratee` which is - * invoked for each element of `array` and `values` to to generate the criterion - * by which uniqueness is computed. The iteratee is invoked with one argument: (value). - * - * **Note:** Unlike `_.differenceBy`, this method mutates `array`. - * - * @static - * @memberOf _ - * @category Array - * @param {Array} array The array to modify. - * @param {Array} values The values to remove. - * @param {Function|Object|string} [iteratee=_.identity] The iteratee invoked per element. - * @returns {Array} Returns `array`. - * @example - * - * var array = [{ 'x': 1 }, { 'x': 2 }, { 'x': 3 }, { 'x': 1 }]; - * - * _.pullAllBy(array, [{ 'x': 1 }, { 'x': 3 }], 'x'); - * console.log(array); - * // => [{ 'x': 2 }] - */ - pullAllBy( - array: List, - ...values: any[] - ): any[]; - } - - type Comparator = (arrVal: T, othVal: T) => boolean; - - //_.pullAllWith - interface LoDashStatic { - /** - * This method is like `_.pullAll` except that it accepts `comparator` which - * is invoked to compare elements of `array` to `values`. The comparator is - * invoked with two arguments: (arrVal, othVal). - * - * **Note:** Unlike `_.differenceWith`, this method mutates `array`. - * - * @static - * @memberOf _ - * @since 4.6.0 - * @category Array - * @param {Array} array The array to modify. - * @param {Array} values The values to remove. - * @param {Function} [comparator] The comparator invoked per element. - * @returns {Array} Returns `array`. - * @example - * - * var array = [{ 'x': 1, 'y': 2 }, { 'x': 3, 'y': 4 }, { 'x': 5, 'y': 6 }]; - * - * _.pullAllWith(array, [{ 'x': 3, 'y': 4 }], _.isEqual); - * console.log(array); - * // => [{ 'x': 1, 'y': 2 }, { 'x': 5, 'y': 6 }] - */ - pullAllWith( - array: List, - values: List, - comparator?: Comparator - ): List; - } - - //_.reverse DUMMY - interface LoDashStatic { - /** - * Reverses `array` so that the first element becomes the last, the second - * element becomes the second to last, and so on. - * - * **Note:** This method mutates `array` and is based on - * [`Array#reverse`](https://mdn.io/Array/reverse). - * - * @memberOf _ - * @category Array - * @returns {Array} Returns `array`. - * @example - * - * var array = [1, 2, 3]; - * - * _.reverse(array); - * // => [3, 2, 1] - * - * console.log(array); - * // => [3, 2, 1] - */ - reverse( - array: List, - ...values: any[] - ): any[]; - } - //_.sortedIndexOf interface LoDashStatic { /** @@ -2517,42 +1492,26 @@ declare namespace _ { ): number; } - interface LoDashImplicitArrayWrapperBase { + interface LoDashImplicitWrapper { /** * @see _.sortedIndexOf */ - sortedIndexOf( + sortedIndexOf( + this: LoDashImplicitWrapper | null | undefined>, value: T ): number; } - interface LoDashImplicitObjectWrapperBase { + interface LoDashExplicitWrapper { /** * @see _.sortedIndexOf */ - sortedIndexOf( - value: TValue - ): number; - } - - interface LoDashExplicitArrayWrapperBase { - /** - * @see _.sortedIndexOf - */ - sortedIndexOf( + sortedIndexOf( + this: LoDashExplicitWrapper | null | undefined>, value: T ): LoDashExplicitWrapper; } - interface LoDashExplicitObjectWrapperBase { - /** - * @see _.sortedIndexOf - */ - sortedIndexOf( - value: TValue - ): LoDashExplicitWrapper; - } - //_.initial interface LoDashStatic { /** @@ -2564,32 +1523,18 @@ declare namespace _ { initial(array: List | null | undefined): T[]; } - interface LoDashImplicitArrayWrapperBase { + interface LoDashImplicitWrapper { /** * @see _.initial */ - initial(): LoDashImplicitArrayWrapper; + initial(this: LoDashImplicitWrapper | null | undefined>): LoDashImplicitWrapper; } - interface LoDashImplicitObjectWrapperBase { + interface LoDashExplicitWrapper { /** * @see _.initial */ - initial(): LoDashImplicitArrayWrapper; - } - - interface LoDashExplicitArrayWrapperBase { - /** - * @see _.initial - */ - initial(): LoDashExplicitArrayWrapper; - } - - interface LoDashExplicitObjectWrapperBase { - /** - * @see _.initial - */ - initial(): LoDashExplicitArrayWrapper; + initial(this: LoDashExplicitWrapper | null | undefined>): LoDashExplicitWrapper; } //_.intersection @@ -2601,35 +1546,244 @@ declare namespace _ { * @param arrays The arrays to inspect. * @return Returns the new array of shared values. */ - intersection(...arrays: Array | null | undefined>): T[]; + intersection(...arrays: Array>): T[]; } - interface LoDashImplicitArrayWrapperBase { + interface LoDashImplicitWrapper { /** * @see _.intersection */ - intersection(...arrays: Array>): LoDashImplicitArrayWrapper; + intersection( + this: LoDashImplicitWrapper>, + ...arrays: Array> + ): LoDashImplicitWrapper; } - interface LoDashImplicitObjectWrapperBase { + interface LoDashExplicitWrapper { /** * @see _.intersection */ - intersection(...arrays: Array>): LoDashImplicitArrayWrapper; + intersection( + this: LoDashExplicitWrapper>, + ...arrays: Array> + ): LoDashExplicitWrapper; } - interface LoDashExplicitArrayWrapperBase { + //_.intersectionBy + interface LoDashStatic { /** - * @see _.intersection + * This method is like `_.intersection` except that it accepts `iteratee` + * which is invoked for each element of each `arrays` to generate the criterion + * by which uniqueness is computed. The iteratee is invoked with one argument: (value). + * + * @static + * @memberOf _ + * @category Array + * @param {...Array} [arrays] The arrays to inspect. + * @param {Function|Object|string} [iteratee=_.identity] The iteratee invoked per element. + * @returns {Array} Returns the new array of shared values. + * @example + * + * _.intersectionBy([2.1, 1.2], [4.3, 2.4], Math.floor); + * // => [2.1] + * + * // using the `_.property` iteratee shorthand + * _.intersectionBy([{ 'x': 1 }], [{ 'x': 2 }, { 'x': 1 }], 'x'); + * // => [{ 'x': 1 }] */ - intersection(...arrays: Array>): LoDashExplicitArrayWrapper; + intersectionBy( + array?: List | null | undefined, + values?: List, + iteratee?: ValueIteratee + ): T[]; + + /** + * @see _.intersectionBy + */ + intersectionBy( + array?: List | null | undefined, + ...values: Array | ValueIteratee>, + ): T[]; } - interface LoDashExplicitObjectWrapperBase { + interface LoDashImplicitWrapper { /** - * @see _.intersection + * @see _.intersectionBy */ - intersection(...arrays: Array>): LoDashExplicitArrayWrapper; + intersectionBy( + this: LoDashImplicitWrapper | null | undefined>, + values?: List, + iteratee?: ValueIteratee + ): LoDashImplicitWrapper; + + /** + * @see _.intersectionBy + */ + intersectionBy( + this: LoDashImplicitWrapper | null | undefined>, + ...values: Array | ValueIteratee>, + ): LoDashImplicitWrapper; + } + + interface LoDashExplicitWrapper { + /** + * @see _.intersectionBy + */ + intersectionBy( + this: LoDashExplicitWrapper | null | undefined>, + values?: List, + iteratee?: ValueIteratee + ): LoDashExplicitWrapper; + + /** + * @see _.intersectionBy + */ + intersectionBy( + this: LoDashExplicitWrapper | null | undefined>, + ...values: Array | ValueIteratee>, + ): LoDashExplicitWrapper; + } + + //_.intersectionWith + interface LoDashStatic { + /** + * Creates an array of unique `array` values not included in the other + * provided arrays using [`SameValueZero`](http://ecma-international.org/ecma-262/6.0/#sec-samevaluezero) + * for equality comparisons. + * + * @static + * @memberOf _ + * @category Array + * @param {...Array} [values] The arrays to inspect. + * @param {Function} [comparator] The comparator invoked per element. + * @returns {Array} Returns the new array of filtered values. + * @example + * + * var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }]; + + * _.differenceWith(objects, [{ 'x': 1, 'y': 2 }], _.isEqual); + * // => [{ 'x': 2, 'y': 1 }] + */ + intersectionWith( + array: List | null | undefined, + values?: List, + comparator?: Comparator + ): T[]; + + /** + * @see _.differenceWith + */ + intersectionWith( + array: List | null | undefined, + ...values: Array | Comparator>, + ): T[]; + } + + interface LoDashImplicitWrapper { + /** + * @see _.intersectionWith + */ + intersectionWith( + this: LoDashImplicitWrapper | null | undefined>, + values?: List, + comparator?: Comparator + ): LoDashImplicitWrapper; + + /** + * @see _.intersectionWith + */ + intersectionWith( + this: LoDashImplicitWrapper | null | undefined>, + ...values: Array | Comparator>, + ): LoDashImplicitWrapper; + } + + interface LoDashExplicitWrapper { + /** + * @see _.intersectionWith + */ + intersectionWith( + this: LoDashExplicitWrapper | null | undefined>, + values?: List, + comparator?: Comparator + ): LoDashExplicitWrapper; + + /** + * @see _.intersectionWith + */ + intersectionWith( + this: LoDashExplicitWrapper | null | undefined>, + ...values: Array | Comparator>, + ): LoDashExplicitWrapper; + } + + //_.join + interface LoDashStatic { + /** + * Converts all elements in `array` into a string separated by `separator`. + * + * @param array The array to convert. + * @param separator The element separator. + * @returns Returns the joined string. + */ + join( + array: List | null | undefined, + separator?: string + ): string; + } + + interface LoDashImplicitWrapper { + /** + * @see _.join + */ + join(separator?: string): string; + } + + interface LoDashExplicitWrapper { + /** + * @see _.join + */ + join(separator?: string): LoDashExplicitWrapper; + } + + //_.reverse + interface LoDashStatic { + /** + * Reverses `array` so that the first element becomes the last, the second + * element becomes the second to last, and so on. + * + * **Note:** This method mutates `array` and is based on + * [`Array#reverse`](https://mdn.io/Array/reverse). + * + * @memberOf _ + * @category Array + * @returns {Array} Returns `array`. + * @example + * + * var array = [1, 2, 3]; + * + * _.reverse(array); + * // => [3, 2, 1] + * + * console.log(array); + * // => [3, 2, 1] + */ + reverse>( + array: TList, + ): TList; + } + + //_.prototype.reverse + interface LoDashWrapper { + /** + * Reverses the wrapped array so the first element becomes the last, the second element becomes the second to + * last, and so on. + * + * Note: This method mutates the wrapped array. + * + * @return Returns the new reversed lodash wrapper instance. + */ + reverse(): this; } //_.last @@ -2643,46 +1797,18 @@ declare namespace _ { last(array: List | null | undefined): T | undefined; } - interface LoDashImplicitWrapper { + interface LoDashImplicitWrapper { /** * @see _.last */ - last(): string | undefined; + last(this: LoDashImplicitWrapper | null | undefined>): T | undefined; } - interface LoDashImplicitArrayWrapperBase { + interface LoDashExplicitWrapper { /** * @see _.last */ - last(): T | undefined; - } - - interface LoDashImplicitObjectWrapperBase { - /** - * @see _.last - */ - last(): T | undefined; - } - - interface LoDashExplicitWrapper { - /** - * @see _.last - */ - last(): LoDashExplicitWrapper; - } - - interface LoDashExplicitArrayWrapperBase { - /** - * @see _.last - */ - last(): T; - } - - interface LoDashExplicitObjectWrapperBase { - /** - * @see _.last - */ - last(): T; + last(this: LoDashExplicitWrapper | null | undefined>): LoDashExplicitWrapper; } //_.lastIndexOf @@ -2698,47 +1824,29 @@ declare namespace _ { lastIndexOf( array: List | null | undefined, value: T, - fromIndex?: boolean|number + fromIndex?: true|number ): number; } - interface LoDashImplicitArrayWrapperBase { + interface LoDashImplicitWrapper { /** - * @see _.lastIndexOf + * @see _.indexOf */ - lastIndexOf( + lastIndexOf( + this: LoDashImplicitWrapper | null | undefined>, value: T, - fromIndex?: boolean|number + fromIndex?: true|number ): number; } - interface LoDashImplicitObjectWrapperBase { + interface LoDashExplicitWrapper { /** - * @see _.lastIndexOf + * @see _.indexOf */ - lastIndexOf( - value: TResult, - fromIndex?: boolean|number - ): number; - } - - interface LoDashExplicitArrayWrapperBase { - /** - * @see _.lastIndexOf - */ - lastIndexOf( + lastIndexOf( + this: LoDashExplicitWrapper | null | undefined>, value: T, - fromIndex?: boolean|number - ): LoDashExplicitWrapper; - } - - interface LoDashExplicitObjectWrapperBase { - /** - * @see _.lastIndexOf - */ - lastIndexOf( - value: TResult, - fromIndex?: boolean|number + fromIndex?: true|number ): LoDashExplicitWrapper; } @@ -2757,40 +1865,24 @@ declare namespace _ { ): T | undefined; } - interface LoDashImplicitArrayWrapperBase { + interface LoDashImplicitWrapper { /** * @see _.nth */ - nth( + nth( + this: LoDashImplicitWrapper | null | undefined>, n?: number ): T | undefined; } - interface LoDashImplicitObjectWrapperBase { + interface LoDashExplicitWrapper { /** * @see _.nth */ - nth( - n?:number - ): TResult | undefined; - } - - interface LoDashExplicitArrayWrapperBase { - /** - * @see _.nth - */ - nth( - n?:number - ): LoDashExplicitWrapper; - } - - interface LoDashExplicitObjectWrapperBase { - /** - * @see _.nth - */ - nth( - n?:number - ): LoDashExplicitWrapper; + nth( + this: LoDashExplicitWrapper | null | undefined>, + n?: number + ): LoDashExplicitWrapper; } //_.pull @@ -2818,32 +1910,24 @@ declare namespace _ { ): List; } - interface LoDashImplicitArrayWrapper { + interface LoDashImplicitWrapper { /** * @see _.pull */ - pull(...values: T[]): LoDashImplicitArrayWrapper; + pull( + this: LoDashImplicitWrapper>, + ...values: T[] + ): this; } - interface LoDashImplicitObjectWrapper { + interface LoDashExplicitWrapper { /** * @see _.pull */ - pull(...values: TValue[]): LoDashImplicitObjectWrapper>; - } - - interface LoDashExplicitArrayWrapper { - /** - * @see _.pull - */ - pull(...values: T[]): LoDashExplicitArrayWrapper; - } - - interface LoDashExplicitObjectWrapper { - /** - * @see _.pull - */ - pull(...values: TValue[]): LoDashExplicitObjectWrapper>; + pull( + this: LoDashExplicitWrapper>, + ...values: T[] + ): this; } //_.pullAt @@ -2859,37 +1943,203 @@ declare namespace _ { * @return Returns the new array of removed elements. */ pullAt( - array: List, + array: T[], ...indexes: Array> ): T[]; - } - interface LoDashImplicitArrayWrapper { /** * @see _.pullAt */ - pullAt(...indexes: Array>): LoDashImplicitArrayWrapper; + pullAt( + array: List, + ...indexes: Array> + ): List; } - interface LoDashImplicitObjectWrapper { + interface LoDashWrapper { /** * @see _.pullAt */ - pullAt(...indexes: Array>): LoDashImplicitArrayWrapper; + pullAt(...indexes: Array>): this; } - interface LoDashExplicitArrayWrapper { + //_.pullAll + interface LoDashStatic { /** - * @see _.pullAt + * This method is like `_.pull` except that it accepts an array of values to remove. + * + * **Note:** Unlike `_.difference`, this method mutates `array`. + * + * @static + * @memberOf _ + * @category Array + * @param {Array} array The array to modify. + * @param {Array} values The values to remove. + * @returns {Array} Returns `array`. + * @example + * + * var array = [1, 2, 3, 1, 2, 3]; + * + * _.pull(array, [2, 3]); + * console.log(array); + * // => [1, 1] */ - pullAt(...indexes: Array>): LoDashExplicitArrayWrapper; + pullAll( + array: T[], + values?: List, + ): T[]; + + /** + * @see _.pullAll + */ + pullAll( + array: List, + values?: List, + ): List; } - interface LoDashExplicitObjectWrapper { + interface LoDashImplicitWrapper { /** - * @see _.pullAt + * @see _.pullAll */ - pullAt(...indexes: Array>): LoDashExplicitArrayWrapper; + pullAll( + this: LoDashImplicitWrapper>, + values?: List + ): this; + } + + interface LoDashExplicitWrapper { + /** + * @see _.pullAll + */ + pullAll( + this: LoDashExplicitWrapper>, + values?: List + ): this; + } + + //_.pullAllBy + interface LoDashStatic { + /** + * This method is like `_.pullAll` except that it accepts `iteratee` which is + * invoked for each element of `array` and `values` to to generate the criterion + * by which uniqueness is computed. The iteratee is invoked with one argument: (value). + * + * **Note:** Unlike `_.differenceBy`, this method mutates `array`. + * + * @static + * @memberOf _ + * @category Array + * @param {Array} array The array to modify. + * @param {Array} values The values to remove. + * @param {Function|Object|string} [iteratee=_.identity] The iteratee invoked per element. + * @returns {Array} Returns `array`. + * @example + * + * var array = [{ 'x': 1 }, { 'x': 2 }, { 'x': 3 }, { 'x': 1 }]; + * + * _.pullAllBy(array, [{ 'x': 1 }, { 'x': 3 }], 'x'); + * console.log(array); + * // => [{ 'x': 2 }] + */ + pullAllBy( + array: T[], + values?: List, + iteratee?: ValueIteratee + ): T[]; + + /** + * @see _.pullAllBy + */ + pullAllBy( + array: List, + values?: List, + iteratee?: ValueIteratee + ): List; + } + + interface LoDashImplicitWrapper { + /** + * @see _.pullAllBy + */ + pullAllBy( + this: LoDashImplicitWrapper>, + values?: List, + iteratee?: ValueIteratee + ): this; + } + + interface LoDashExplicitWrapper { + /** + * @see _.pullAllBy + */ + pullAllBy( + this: LoDashExplicitWrapper>, + values?: List, + iteratee?: ValueIteratee + ): this; + } + + //_.pullAllWith + interface LoDashStatic { + /** + * This method is like `_.pullAll` except that it accepts `comparator` which is + * invoked to compare elements of array to values. The comparator is invoked with + * two arguments: (arrVal, othVal). + * + * **Note:** Unlike `_.differenceWith`, this method mutates `array`. + * + * @static + * @memberOf _ + * @category Array + * @param {Array} array The array to modify. + * @param {Array} values The values to remove. + * @param {Function|Object|string} [iteratee=_.identity] The iteratee invoked per element. + * @returns {Array} Returns `array`. + * @example + * + * var array = [{ 'x': 1 }, { 'x': 2 }, { 'x': 3 }, { 'x': 1 }]; + * + * _.pullAllBy(array, [{ 'x': 1 }, { 'x': 3 }], 'x'); + * console.log(array); + * // => [{ 'x': 2 }] + */ + pullAllWith( + array: T[], + values?: List, + comparator?: Comparator + ): T[]; + + /** + * @see _.pullAllWith + */ + pullAllWith( + array: List, + values?: List, + comparator?: Comparator + ): List; + } + + interface LoDashImplicitWrapper { + /** + * @see _.pullAllWith + */ + pullAllWith( + this: LoDashImplicitWrapper>, + values?: List, + comparator?: Comparator + ): this; + } + + interface LoDashExplicitWrapper { + /** + * @see _.pullAllWith + */ + pullAllWith( + this: LoDashExplicitWrapper>, + values?: List, + comparator?: Comparator + ): this; } //_.remove @@ -2916,116 +2166,28 @@ declare namespace _ { */ remove( array: List, - predicate?: ListIterator + predicate?: ListIteratee ): T[]; + } + interface LoDashImplicitWrapper { /** * @see _.remove */ remove( - array: List, - predicate?: string - ): T[]; - - /** - * @see _.remove - */ - remove( - array: List, - predicate?: W - ): T[]; + this: LoDashImplicitWrapper>, + predicate?: ListIteratee + ): LoDashImplicitWrapper; } - interface LoDashImplicitArrayWrapper { + interface LoDashExplicitWrapper { /** * @see _.remove */ - remove( - predicate?: ListIterator - ): LoDashImplicitArrayWrapper; - - /** - * @see _.remove - */ - remove( - predicate?: string - ): LoDashImplicitArrayWrapper; - - /** - * @see _.remove - */ - remove( - predicate?: W - ): LoDashImplicitArrayWrapper; - } - - interface LoDashImplicitObjectWrapper { - /** - * @see _.remove - */ - remove( - predicate?: ListIterator - ): LoDashImplicitArrayWrapper; - - /** - * @see _.remove - */ - remove( - predicate?: string - ): LoDashImplicitArrayWrapper; - - /** - * @see _.remove - */ - remove( - predicate?: W - ): LoDashImplicitArrayWrapper; - } - - interface LoDashExplicitArrayWrapper { - /** - * @see _.remove - */ - remove( - predicate?: ListIterator - ): LoDashExplicitArrayWrapper; - - /** - * @see _.remove - */ - remove( - predicate?: string - ): LoDashExplicitArrayWrapper; - - /** - * @see _.remove - */ - remove( - predicate?: W - ): LoDashExplicitArrayWrapper; - } - - interface LoDashExplicitObjectWrapper { - /** - * @see _.remove - */ - remove( - predicate?: ListIterator - ): LoDashExplicitArrayWrapper; - - /** - * @see _.remove - */ - remove( - predicate?: string - ): LoDashExplicitArrayWrapper; - - /** - * @see _.remove - */ - remove( - predicate?: W - ): LoDashExplicitArrayWrapper; + remove( + this: LoDashExplicitWrapper>, + predicate?: ListIteratee + ): LoDashExplicitWrapper; } //_.tail @@ -3033,40 +2195,24 @@ declare namespace _ { /** * Gets all but the first element of array. * - * @alias _.tail - * * @param array The array to query. * @return Returns the slice of array. */ tail(array: List | null | undefined): T[]; } - interface LoDashImplicitArrayWrapperBase { + interface LoDashImplicitWrapper { /** * @see _.tail */ - tail(): LoDashImplicitArrayWrapper; + tail(this: LoDashImplicitWrapper | null | undefined>): LoDashImplicitWrapper; } - interface LoDashImplicitObjectWrapperBase { + interface LoDashExplicitWrapper { /** * @see _.tail */ - tail(): LoDashImplicitArrayWrapper; - } - - interface LoDashExplicitArrayWrapperBase { - /** - * @see _.tail - */ - tail(): LoDashExplicitArrayWrapper; - } - - interface LoDashExplicitObjectWrapperBase { - /** - * @see _.tail - */ - tail(): LoDashExplicitArrayWrapper; + tail(this: LoDashExplicitWrapper | null | undefined>): LoDashExplicitWrapper; } //_.slice @@ -3080,30 +2226,32 @@ declare namespace _ { * @return Returns the slice of array. */ slice( - array: T[] | null | undefined, + array: List | null | undefined, start?: number, end?: number ): T[]; } - interface LoDashImplicitArrayWrapperBase { + interface LoDashImplicitWrapper { /** * @see _.slice */ - slice( + slice( + this: LoDashImplicitWrapper | null | undefined>, start?: number, end?: number - ): LoDashImplicitArrayWrapper; + ): LoDashImplicitWrapper; } - interface LoDashExplicitArrayWrapperBase { + interface LoDashExplicitWrapper { /** * @see _.slice */ - slice( + slice( + this: LoDashExplicitWrapper | null | undefined>, start?: number, end?: number - ): LoDashExplicitArrayWrapper; + ): LoDashExplicitWrapper; } //_.sortedIndex @@ -3132,56 +2280,22 @@ declare namespace _ { ): number; } - interface LoDashImplicitWrapper { - /** - * @see _.sortedIndex - */ - sortedIndex( - value: string - ): number; - } - - interface LoDashImplicitArrayWrapperBase { - /** - * @see _.sortedIndex - */ - sortedIndex( - value: T - ): number; - } - - interface LoDashImplicitObjectWrapperBase { + interface LoDashImplicitWrapper { /** * @see _.sortedIndex */ sortedIndex( + this: LoDashImplicitWrapper | null | undefined>, value: T ): number; } - interface LoDashExplicitWrapper { - /** - * @see _.sortedIndex - */ - sortedIndex( - value: string - ): LoDashExplicitWrapper; - } - - interface LoDashExplicitArrayWrapperBase { - /** - * @see _.sortedIndex - */ - sortedIndex( - value: T - ): LoDashExplicitWrapper; - } - - interface LoDashExplicitObjectWrapperBase { + interface LoDashExplicitWrapper { /** * @see _.sortedIndex */ sortedIndex( + this: LoDashExplicitWrapper | null | undefined>, value: T ): LoDashExplicitWrapper; } @@ -3211,202 +2325,32 @@ declare namespace _ { * _.sortedIndexBy([{ 'x': 4 }, { 'x': 5 }], { 'x': 4 }, 'x'); * // => 0 */ - sortedIndexBy( - array: List | null | undefined, - value: T, - iteratee: (x: T) => TSort - ): number; - - /** - * @see _.sortedIndexBy - */ sortedIndexBy( array: List | null | undefined, value: T, - iteratee: (x: T) => any - ): number; - - /** - * @see _.sortedIndexBy - */ - sortedIndexBy( - array: List | null | undefined, - value: T, - iteratee: string - ): number; - - /** - * @see _.sortedIndexBy - */ - sortedIndexBy( - array: List | null | undefined, - value: T, - iteratee: W - ): number; - - /** - * @see _.sortedIndexBy - */ - sortedIndexBy( - array: List | null | undefined, - value: T, - iteratee: Object + iteratee?: ValueIteratee ): number; } - interface LoDashImplicitWrapper { + interface LoDashImplicitWrapper { /** * @see _.sortedIndexBy */ - sortedIndexBy( - value: string, - iteratee: (x: string) => TSort + sortedIndexBy( + this: LoDashImplicitWrapper | null | undefined>, + value: T, + iteratee?: ValueIteratee ): number; } - interface LoDashImplicitArrayWrapperBase { - /** - * @see _.sortedIndexBy - */ - sortedIndexBy( - value: T, - iteratee: (x: T) => TSort - ): number; - - /** - * @see _.sortedIndexBy - */ - sortedIndexBy( - value: T, - iteratee: string - ): number; - - /** - * @see _.sortedIndexBy - */ - sortedIndexBy( - value: T, - iteratee: W - ): number; - } - - interface LoDashImplicitObjectWrapperBase { - /** - * @see _.sortedIndexBy - */ - sortedIndexBy( - value: T, - iteratee: (x: T) => TSort - ): number; - + interface LoDashExplicitWrapper { /** * @see _.sortedIndexBy */ sortedIndexBy( + this: LoDashExplicitWrapper | null | undefined>, value: T, - iteratee: (x: T) => any - ): number; - - /** - * @see _.sortedIndexBy - */ - sortedIndexBy( - value: T, - iteratee: string - ): number; - - /** - * @see _.sortedIndexBy - */ - sortedIndexBy( - value: T, - iteratee: W - ): number; - - /** - * @see _.sortedIndexBy - */ - sortedIndexBy( - value: T, - iteratee: Object - ): number; - } - - interface LoDashExplicitWrapper { - /** - * @see _.sortedIndexBy - */ - sortedIndexBy( - value: string, - iteratee: (x: string) => TSort - ): LoDashExplicitWrapper; - } - - interface LoDashExplicitArrayWrapperBase { - /** - * @see _.sortedIndexBy - */ - sortedIndexBy( - value: T, - iteratee: (x: T) => TSort - ): LoDashExplicitWrapper; - - /** - * @see _.sortedIndexBy - */ - sortedIndexBy( - value: T, - iteratee: string - ): LoDashExplicitWrapper; - - /** - * @see _.sortedIndexBy - */ - sortedIndexBy( - value: T, - iteratee: W - ): LoDashExplicitWrapper; - } - - interface LoDashExplicitObjectWrapperBase { - /** - * @see _.sortedIndexBy - */ - sortedIndexBy( - value: T, - iteratee: (x: T) => TSort - ): LoDashExplicitWrapper; - - /** - * @see _.sortedIndexBy - */ - sortedIndexBy( - value: T, - iteratee: (x: T) => any - ): LoDashExplicitWrapper; - - /** - * @see _.sortedIndexBy - */ - sortedIndexBy( - value: T, - iteratee: string - ): LoDashExplicitWrapper; - - /** - * @see _.sortedIndexBy - */ - sortedIndexBy( - value: T, - iteratee: W - ): LoDashExplicitWrapper; - - /** - * @see _.sortedIndexBy - */ - sortedIndexBy( - value: T, - iteratee: Object + iteratee?: ValueIteratee ): LoDashExplicitWrapper; } @@ -3434,56 +2378,22 @@ declare namespace _ { ): number; } - interface LoDashImplicitWrapper { - /** - * @see _.sortedLastIndex - */ - sortedLastIndex( - value: string - ): number; - } - - interface LoDashImplicitArrayWrapperBase { - /** - * @see _.sortedLastIndex - */ - sortedLastIndex( - value: T - ): number; - } - - interface LoDashImplicitObjectWrapperBase { + interface LoDashImplicitWrapper { /** * @see _.sortedLastIndex */ sortedLastIndex( + this: LoDashImplicitWrapper | null | undefined>, value: T ): number; } - interface LoDashExplicitWrapper { - /** - * @see _.sortedLastIndex - */ - sortedLastIndex( - value: string - ): LoDashExplicitWrapper; - } - - interface LoDashExplicitArrayWrapperBase { - /** - * @see _.sortedLastIndex - */ - sortedLastIndex( - value: T - ): LoDashExplicitWrapper; - } - - interface LoDashExplicitObjectWrapperBase { + interface LoDashExplicitWrapper { /** * @see _.sortedLastIndex */ sortedLastIndex( + this: LoDashExplicitWrapper | null | undefined>, value: T ): LoDashExplicitWrapper; } @@ -3508,206 +2418,36 @@ declare namespace _ { * _.sortedLastIndexBy([{ 'x': 4 }, { 'x': 5 }], { 'x': 4 }, 'x'); * // => 1 */ - sortedLastIndexBy( - array: List | null | undefined, - value: T, - iteratee: (x: T) => TSort - ): number; - - /** - * @see _.sortedLastIndexBy - */ sortedLastIndexBy( array: List | null | undefined, value: T, - iteratee: (x: T) => any - ): number; - - /** - * @see _.sortedLastIndexBy - */ - sortedLastIndexBy( - array: List | null | undefined, - value: T, - iteratee: string - ): number; - - /** - * @see _.sortedLastIndexBy - */ - sortedLastIndexBy( - array: List | null | undefined, - value: T, - iteratee: W - ): number; - - /** - * @see _.sortedLastIndexBy - */ - sortedLastIndexBy( - array: List | null | undefined, - value: T, - iteratee: Object + iteratee: ValueIteratee ): number; } - interface LoDashImplicitWrapper { - /** - * @see _.sortedLastIndexBy - */ - sortedLastIndexBy( - value: string, - iteratee: (x: string) => TSort - ): number; - } - - interface LoDashImplicitArrayWrapperBase { - /** - * @see _.sortedLastIndexBy - */ - sortedLastIndexBy( - value: T, - iteratee: (x: T) => TSort - ): number; - - /** - * @see _.sortedLastIndexBy - */ - sortedLastIndexBy( - value: T, - iteratee: string - ): number; - - /** - * @see _.sortedLastIndexBy - */ - sortedLastIndexBy( - value: T, - iteratee: W - ): number; - } - - interface LoDashImplicitObjectWrapperBase { - /** - * @see _.sortedLastIndexBy - */ - sortedLastIndexBy( - value: T, - iteratee: (x: T) => TSort - ): number; - + interface LoDashImplicitWrapper { /** * @see _.sortedLastIndexBy */ sortedLastIndexBy( + this: LoDashImplicitWrapper | null | undefined>, value: T, - iteratee: (x: T) => any - ): number; - - /** - * @see _.sortedLastIndexBy - */ - sortedLastIndexBy( - value: T, - iteratee: string - ): number; - - /** - * @see _.sortedLastIndexBy - */ - sortedLastIndexBy( - value: T, - iteratee: W - ): number; - - /** - * @see _.sortedLastIndexBy - */ - sortedLastIndexBy( - value: T, - iteratee: Object + iteratee: ValueIteratee ): number; } - interface LoDashExplicitWrapper { - /** - * @see _.sortedLastIndexBy - */ - sortedLastIndexBy( - value: string, - iteratee: (x: string) => TSort - ): LoDashExplicitWrapper; - } - - interface LoDashExplicitArrayWrapperBase { - /** - * @see _.sortedLastIndexBy - */ - sortedLastIndexBy( - value: T, - iteratee: (x: T) => TSort - ): LoDashExplicitWrapper; - - /** - * @see _.sortedLastIndexBy - */ - sortedLastIndexBy( - value: T, - iteratee: string - ): LoDashExplicitWrapper; - - /** - * @see _.sortedLastIndexBy - */ - sortedLastIndexBy( - value: T, - iteratee: W - ): LoDashExplicitWrapper; - } - - interface LoDashExplicitObjectWrapperBase { - /** - * @see _.sortedLastIndexBy - */ - sortedLastIndexBy( - value: T, - iteratee: (x: T) => TSort - ): LoDashExplicitWrapper; - + interface LoDashExplicitWrapper { /** * @see _.sortedLastIndexBy */ sortedLastIndexBy( + this: LoDashExplicitWrapper | null | undefined>, value: T, - iteratee: (x: T) => any - ): LoDashExplicitWrapper; - - /** - * @see _.sortedLastIndexBy - */ - sortedLastIndexBy( - value: T, - iteratee: string - ): LoDashExplicitWrapper; - - /** - * @see _.sortedLastIndexBy - */ - sortedLastIndexBy( - value: T, - iteratee: W - ): LoDashExplicitWrapper; - - /** - * @see _.sortedLastIndexBy - */ - sortedLastIndexBy( - value: T, - iteratee: Object + iteratee: ValueIteratee ): LoDashExplicitWrapper; } - //_.sortedLastIndexOf DUMMY + //_.sortedLastIndexOf interface LoDashStatic { /** * This method is like `_.lastIndexOf` except that it performs a binary @@ -3730,40 +2470,24 @@ declare namespace _ { ): number; } - //_.tail - interface LoDashStatic { + interface LoDashImplicitWrapper { /** - * @see _.rest + * @see _.sortedLastIndexOf */ - tail(array: List | null | undefined): T[]; + sortedLastIndexOf( + this: LoDashImplicitWrapper | null | undefined>, + value: T + ): number; } - interface LoDashImplicitArrayWrapperBase { + interface LoDashExplicitWrapper { /** - * @see _.rest + * @see _.sortedLastIndexOf */ - tail(): LoDashImplicitArrayWrapper; - } - - interface LoDashImplicitObjectWrapperBase { - /** - * @see _.rest - */ - tail(): LoDashImplicitArrayWrapper; - } - - interface LoDashExplicitArrayWrapperBase { - /** - * @see _.rest - */ - tail(): LoDashExplicitArrayWrapper; - } - - interface LoDashExplicitObjectWrapperBase { - /** - * @see _.rest - */ - tail(): LoDashExplicitArrayWrapper; + sortedLastIndexOf( + this: LoDashExplicitWrapper | null | undefined>, + value: T + ): LoDashExplicitWrapper; } //_.take @@ -3781,32 +2505,24 @@ declare namespace _ { ): T[]; } - interface LoDashImplicitArrayWrapperBase { + interface LoDashImplicitWrapper { /** * @see _.take */ - take(n?: number): LoDashImplicitArrayWrapper; + take( + this: LoDashImplicitWrapper | null | undefined>, + n?: number + ): LoDashImplicitWrapper; } - interface LoDashImplicitObjectWrapperBase { + interface LoDashExplicitWrapper { /** * @see _.take */ - take(n?: number): LoDashImplicitArrayWrapper; - } - - interface LoDashExplicitArrayWrapperBase { - /** - * @see _.take - */ - take(n?: number): LoDashExplicitArrayWrapper; - } - - interface LoDashExplicitObjectWrapperBase { - /** - * @see _.take - */ - take(n?: number): LoDashExplicitArrayWrapper; + take( + this: LoDashExplicitWrapper | null | undefined>, + n?: number + ): LoDashExplicitWrapper; } //_.takeRight @@ -3824,32 +2540,24 @@ declare namespace _ { ): T[]; } - interface LoDashImplicitArrayWrapperBase { + interface LoDashImplicitWrapper { /** * @see _.takeRight */ - takeRight(n?: number): LoDashImplicitArrayWrapper; + takeRight( + this: LoDashImplicitWrapper | null | undefined>, + n?: number + ): LoDashImplicitWrapper; } - interface LoDashImplicitObjectWrapperBase { + interface LoDashExplicitWrapper { /** * @see _.takeRight */ - takeRight(n?: number): LoDashImplicitArrayWrapper; - } - - interface LoDashExplicitArrayWrapperBase { - /** - * @see _.takeRight - */ - takeRight(n?: number): LoDashExplicitArrayWrapper; - } - - interface LoDashExplicitObjectWrapperBase { - /** - * @see _.takeRight - */ - takeRight(n?: number): LoDashExplicitArrayWrapper; + takeRight( + this: LoDashExplicitWrapper | null | undefined>, + n?: number + ): LoDashExplicitWrapper; } //_.takeRightWhile @@ -3872,118 +2580,30 @@ declare namespace _ { * @param thisArg The this binding of predicate. * @return Returns the slice of array. */ - takeRightWhile( - array: List | null | undefined, - predicate?: ListIterator - ): TValue[]; - - /** - * @see _.takeRightWhile - */ - takeRightWhile( - array: List | null | undefined, - predicate?: string - ): TValue[]; - - /** - * @see _.takeRightWhile - */ - takeRightWhile( - array: List | null | undefined, - predicate?: TWhere - ): TValue[]; + takeRightWhile( + array: List | null | undefined, + predicate?: ListIteratee + ): T[]; } - interface LoDashImplicitArrayWrapperBase { + interface LoDashImplicitWrapper { /** * @see _.takeRightWhile */ - takeRightWhile( - predicate?: ListIterator - ): LoDashImplicitArrayWrapper; - - /** - * @see _.takeRightWhile - */ - takeRightWhile( - predicate?: string - ): LoDashImplicitArrayWrapper; - - /** - * @see _.takeRightWhile - */ - takeRightWhile( - predicate?: TWhere - ): LoDashImplicitArrayWrapper; + takeRightWhile( + this: LoDashImplicitWrapper | null | undefined>, + predicate?: ListIteratee + ): LoDashImplicitWrapper; } - interface LoDashImplicitObjectWrapperBase { + interface LoDashExplicitWrapper { /** * @see _.takeRightWhile */ - takeRightWhile( - predicate?: ListIterator - ): LoDashImplicitArrayWrapper; - - /** - * @see _.takeRightWhile - */ - takeRightWhile( - predicate?: string - ): LoDashImplicitArrayWrapper; - - /** - * @see _.takeRightWhile - */ - takeRightWhile( - predicate?: TWhere - ): LoDashImplicitArrayWrapper; - } - - interface LoDashExplicitArrayWrapperBase { - /** - * @see _.takeRightWhile - */ - takeRightWhile( - predicate?: ListIterator - ): LoDashExplicitArrayWrapper; - - /** - * @see _.takeRightWhile - */ - takeRightWhile( - predicate?: string - ): LoDashExplicitArrayWrapper; - - /** - * @see _.takeRightWhile - */ - takeRightWhile( - predicate?: TWhere - ): LoDashExplicitArrayWrapper; - } - - interface LoDashExplicitObjectWrapperBase { - /** - * @see _.takeRightWhile - */ - takeRightWhile( - predicate?: ListIterator - ): LoDashExplicitArrayWrapper; - - /** - * @see _.takeRightWhile - */ - takeRightWhile( - predicate?: string - ): LoDashExplicitArrayWrapper; - - /** - * @see _.takeRightWhile - */ - takeRightWhile( - predicate?: TWhere - ): LoDashExplicitArrayWrapper; + takeRightWhile( + this: LoDashExplicitWrapper | null | undefined>, + predicate?: ListIteratee + ): LoDashExplicitWrapper; } //_.takeWhile @@ -4006,118 +2626,30 @@ declare namespace _ { * @param thisArg The this binding of predicate. * @return Returns the slice of array. */ - takeWhile( - array: List | null | undefined, - predicate?: ListIterator - ): TValue[]; - - /** - * @see _.takeWhile - */ - takeWhile( - array: List | null | undefined, - predicate?: string - ): TValue[]; - - /** - * @see _.takeWhile - */ - takeWhile( - array: List | null | undefined, - predicate?: TWhere - ): TValue[]; + takeWhile( + array: List | null | undefined, + predicate?: ListIteratee + ): T[]; } - interface LoDashImplicitArrayWrapperBase { + interface LoDashImplicitWrapper { /** * @see _.takeWhile */ - takeWhile( - predicate?: ListIterator - ): LoDashImplicitArrayWrapper; - - /** - * @see _.takeWhile - */ - takeWhile( - predicate?: string - ): LoDashImplicitArrayWrapper; - - /** - * @see _.takeWhile - */ - takeWhile( - predicate?: TWhere - ): LoDashImplicitArrayWrapper; + takeWhile( + this: LoDashImplicitWrapper | null | undefined>, + predicate?: ListIteratee + ): LoDashImplicitWrapper; } - interface LoDashImplicitObjectWrapperBase { + interface LoDashExplicitWrapper { /** * @see _.takeWhile */ - takeWhile( - predicate?: ListIterator - ): LoDashImplicitArrayWrapper; - - /** - * @see _.takeWhile - */ - takeWhile( - predicate?: string - ): LoDashImplicitArrayWrapper; - - /** - * @see _.takeWhile - */ - takeWhile( - predicate?: TWhere - ): LoDashImplicitArrayWrapper; - } - - interface LoDashExplicitArrayWrapperBase { - /** - * @see _.takeWhile - */ - takeWhile( - predicate?: ListIterator - ): LoDashExplicitArrayWrapper; - - /** - * @see _.takeWhile - */ - takeWhile( - predicate?: string - ): LoDashExplicitArrayWrapper; - - /** - * @see _.takeWhile - */ - takeWhile( - predicate?: TWhere - ): LoDashExplicitArrayWrapper; - } - - interface LoDashExplicitObjectWrapperBase { - /** - * @see _.takeWhile - */ - takeWhile( - predicate?: ListIterator - ): LoDashExplicitArrayWrapper; - - /** - * @see _.takeWhile - */ - takeWhile( - predicate?: string - ): LoDashExplicitArrayWrapper; - - /** - * @see _.takeWhile - */ - takeWhile( - predicate?: TWhere - ): LoDashExplicitArrayWrapper; + takeWhile( + this: LoDashExplicitWrapper | null | undefined>, + predicate?: ListIteratee + ): LoDashExplicitWrapper; } //_.union @@ -4132,42 +2664,24 @@ declare namespace _ { union(...arrays: Array | null | undefined>): T[]; } - interface LoDashImplicitArrayWrapperBase { + interface LoDashImplicitWrapper { /** * @see _.union */ - union(...arrays: Array | null | undefined>): LoDashImplicitArrayWrapper; - - /** - * @see _.union - */ - union(...arrays: Array | null | undefined>): LoDashImplicitArrayWrapper; + union( + this: LoDashImplicitWrapper | null | undefined>, + ...arrays: Array | null | undefined> + ): LoDashImplicitWrapper; } - interface LoDashImplicitObjectWrapperBase { + interface LoDashExplicitWrapper { /** * @see _.union */ - union(...arrays: Array | null | undefined>): LoDashImplicitArrayWrapper; - } - - interface LoDashExplicitArrayWrapperBase { - /** - * @see _.union - */ - union(...arrays: Array | null | undefined>): LoDashExplicitArrayWrapper; - - /** - * @see _.union - */ - union(...arrays: Array | null | undefined>): LoDashExplicitArrayWrapper; - } - - interface LoDashExplicitObjectWrapperBase { - /** - * @see _.union - */ - union(...arrays: Array | null | undefined>): LoDashExplicitArrayWrapper; + union( + this: LoDashExplicitWrapper | null | undefined>, + ...arrays: Array | null | undefined> + ): LoDashExplicitWrapper; } //_.unionBy @@ -4183,504 +2697,258 @@ declare namespace _ { */ unionBy( arrays: List | null | undefined, - iteratee?: (value: T) => any + iteratee?: ValueIteratee ): T[]; /** * @see _.unionBy */ - unionBy( + unionBy( + arrays1: List | null | undefined, + arrays2: List | null | undefined, + iteratee?: ValueIteratee + ): T[]; + + /** + * @see _.unionBy + */ + unionBy( + arrays1: List | null | undefined, + arrays2: List | null | undefined, + arrays3: List | null | undefined, + iteratee?: ValueIteratee + ): T[]; + + /** + * @see _.unionBy + */ + unionBy( + arrays1: List | null | undefined, + arrays2: List | null | undefined, + arrays3: List | null | undefined, + arrays4: List | null | undefined, + iteratee?: ValueIteratee + ): T[]; + + /** + * @see _.unionBy + */ + unionBy( + arrays1: List | null | undefined, + arrays2: List | null | undefined, + arrays3: List | null | undefined, + arrays4: List | null | undefined, + arrays5: List | null | undefined, + ...iteratee: Array | List | null | undefined> + ): T[]; + } + + interface LoDashImplicitWrapper { + /** + * @see _.unionBy + */ + unionBy( + this: LoDashImplicitWrapper | null | undefined>, + iteratee?: ValueIteratee + ): LoDashImplicitWrapper; + + /** + * @see _.unionBy + */ + unionBy( + this: LoDashImplicitWrapper | null | undefined>, + arrays2: List | null | undefined, + iteratee?: ValueIteratee + ): LoDashImplicitWrapper; + + /** + * @see _.unionBy + */ + unionBy( + this: LoDashImplicitWrapper | null | undefined>, + arrays2: List | null | undefined, + arrays3: List | null | undefined, + iteratee?: ValueIteratee + ): LoDashImplicitWrapper; + + /** + * @see _.unionBy + */ + unionBy( + this: LoDashImplicitWrapper | null | undefined>, + arrays2: List | null | undefined, + arrays3: List | null | undefined, + arrays4: List | null | undefined, + iteratee?: ValueIteratee + ): LoDashImplicitWrapper; + + /** + * @see _.unionBy + */ + unionBy( + this: LoDashImplicitWrapper | null | undefined>, + arrays2: List | null | undefined, + arrays3: List | null | undefined, + arrays4: List | null | undefined, + arrays5: List | null | undefined, + ...iteratee: Array | List | null | undefined> + ): LoDashImplicitWrapper; + } + + interface LoDashExplicitWrapper { + /** + * @see _.unionBy + */ + unionBy( + this: LoDashExplicitWrapper | null | undefined>, + iteratee?: ValueIteratee + ): LoDashExplicitWrapper; + + /** + * @see _.unionBy + */ + unionBy( + this: LoDashExplicitWrapper | null | undefined>, + arrays2: List | null | undefined, + iteratee?: ValueIteratee + ): LoDashExplicitWrapper; + + /** + * @see _.unionBy + */ + unionBy( + this: LoDashExplicitWrapper | null | undefined>, + arrays2: List | null | undefined, + arrays3: List | null | undefined, + iteratee?: ValueIteratee + ): LoDashExplicitWrapper; + + /** + * @see _.unionBy + */ + unionBy( + this: LoDashExplicitWrapper | null | undefined>, + arrays2: List | null | undefined, + arrays3: List | null | undefined, + arrays4: List | null | undefined, + iteratee?: ValueIteratee + ): LoDashExplicitWrapper; + + /** + * @see _.unionBy + */ + unionBy( + this: LoDashExplicitWrapper | null | undefined>, + arrays2: List | null | undefined, + arrays3: List | null | undefined, + arrays4: List | null | undefined, + arrays5: List | null | undefined, + ...iteratee: Array | List | null | undefined> + ): LoDashExplicitWrapper; + } + + //_.unionWith + interface LoDashStatic { + /** + * This method is like `_.union` except that it accepts `comparator` which + * is invoked to compare elements of `arrays`. The comparator is invoked + * with two arguments: (arrVal, othVal). + * + * @static + * @memberOf _ + * @category Array + * @param {...Array} [arrays] The arrays to inspect. + * @param {Function} [comparator] The comparator invoked per element. + * @returns {Array} Returns the new array of combined values. + * @example + * + * var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }]; + * var others = [{ 'x': 1, 'y': 1 }, { 'x': 1, 'y': 2 }]; + * + * _.unionWith(objects, others, _.isEqual); + * // => [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }, { 'x': 1, 'y': 1 }] + */ + unionWith( arrays: List | null | undefined, - iteratee?: W + comparator?: Comparator ): T[]; /** * @see _.unionBy */ - unionBy( - arrays1: List | null | undefined, - arrays2: List | null | undefined, - iteratee?: (value: T) => any - ): T[]; - - /** - * @see _.unionBy - */ - unionBy( - arrays1: List | null | undefined, - arrays2: List | null | undefined, - iteratee?: W - ): T[]; - - /** - * @see _.unionBy - */ - unionBy( - arrays1: List | null | undefined, - arrays2: List | null | undefined, - arrays3: List | null | undefined, - iteratee?: (value: T) => any - ): T[]; - - /** - * @see _.unionBy - */ - unionBy( - arrays1: List | null | undefined, - arrays2: List | null | undefined, - arrays3: List | null | undefined, - iteratee?: W - ): T[]; - - /** - * @see _.unionBy - */ - unionBy( - arrays1: List | null | undefined, - arrays2: List | null | undefined, - arrays3: List | null | undefined, - arrays4: List | null | undefined, - iteratee?: (value: T) => any - ): T[]; - - /** - * @see _.unionBy - */ - unionBy( - arrays1: List | null | undefined, - arrays2: List | null | undefined, - arrays3: List | null | undefined, - arrays4: List | null | undefined, - iteratee?: W - ): T[]; - - /** - * @see _.unionBy - */ - unionBy( - arrays1: List | null | undefined, - arrays2: List | null | undefined, - arrays3: List | null | undefined, - arrays4: List | null | undefined, - arrays5: List | null | undefined, - iteratee?: (value: T) => any - ): T[]; - - /** - * @see _.unionBy - */ - unionBy( - arrays1: List | null | undefined, - arrays2: List | null | undefined, - arrays3: List | null | undefined, - arrays4: List | null | undefined, - arrays5: List | null | undefined, - iteratee?: W - ): T[]; - - /** - * @see _.unionBy - */ - unionBy( + unionWith( arrays: List | null | undefined, - ...iteratee: any[] + arrays2: List | null | undefined, + comparator?: Comparator + ): T[]; + + /** + * @see _.unionWith + */ + unionWith( + arrays: List | null | undefined, + arrays2: List | null | undefined, + arrays3: List | null | undefined, + ...comparator: Array | List | null | undefined> ): T[]; } - interface LoDashImplicitArrayWrapperBase { + interface LoDashImplicitWrapper { /** - * @see _.unionBy + * @see _.unionWith */ - unionBy( - iteratee?: (value: T) => any - ): LoDashImplicitArrayWrapper; + unionWith( + this: LoDashImplicitWrapper | null | undefined>, + comparator?: Comparator + ): LoDashImplicitWrapper; /** - * @see _.unionBy + * @see _.unionWith */ - unionBy( - iteratee?: W - ): LoDashImplicitArrayWrapper; - - /** - * @see _.unionBy - */ - unionBy( + unionWith( + this: LoDashImplicitWrapper | null | undefined>, arrays2: List | null | undefined, - iteratee?: (value: T) => any - ): LoDashImplicitArrayWrapper; + comparator?: Comparator + ): LoDashImplicitWrapper; /** - * @see _.unionBy + * @see _.unionWith */ - unionBy( - arrays2: List | null | undefined, - iteratee?: W - ): LoDashImplicitArrayWrapper; - - /** - * @see _.unionBy - */ - unionBy( + unionWith( + this: LoDashImplicitWrapper | null | undefined>, arrays2: List | null | undefined, arrays3: List | null | undefined, - iteratee?: (value: T) => any - ): LoDashImplicitArrayWrapper; - - /** - * @see _.unionBy - */ - unionBy( - arrays2: List | null | undefined, - arrays3: List | null | undefined, - iteratee?: W - ): LoDashImplicitArrayWrapper; - - /** - * @see _.unionBy - */ - unionBy( - arrays2: List | null | undefined, - arrays3: List | null | undefined, - arrays4: List | null | undefined, - iteratee?: (value: T) => any - ): LoDashImplicitArrayWrapper; - - /** - * @see _.unionBy - */ - unionBy( - arrays2: List | null | undefined, - arrays3: List | null | undefined, - arrays4: List | null | undefined, - iteratee?: W - ): LoDashImplicitArrayWrapper; - - /** - * @see _.unionBy - */ - unionBy( - arrays2: List | null | undefined, - arrays3: List | null | undefined, - arrays4: List | null | undefined, - arrays5: List | null | undefined, - iteratee?: (value: T) => any - ): LoDashImplicitArrayWrapper; - - /** - * @see _.unionBy - */ - unionBy( - arrays2: List | null | undefined, - arrays3: List | null | undefined, - arrays4: List | null | undefined, - arrays5: List | null | undefined, - iteratee?: W - ): LoDashImplicitArrayWrapper; - - /** - * @see _.unionBy - */ - unionBy( - ...iteratee: any[] - ): LoDashImplicitArrayWrapper; + ...comparator: Array | List | null | undefined> + ): LoDashImplicitWrapper; } - interface LoDashImplicitObjectWrapperBase { + interface LoDashExplicitWrapper { /** - * @see _.unionBy + * @see _.unionWith */ - unionBy( - iteratee?: (value: T) => any - ): LoDashImplicitArrayWrapper; + unionWith( + this: LoDashExplicitWrapper | null | undefined>, + comparator?: Comparator + ): LoDashExplicitWrapper; /** - * @see _.unionBy + * @see _.unionWith */ - unionBy( - iteratee?: W - ): LoDashImplicitArrayWrapper; - - /** - * @see _.unionBy - */ - unionBy( + unionWith( + this: LoDashExplicitWrapper | null | undefined>, arrays2: List | null | undefined, - iteratee?: (value: T) => any - ): LoDashImplicitArrayWrapper; + comparator?: Comparator + ): LoDashExplicitWrapper; /** - * @see _.unionBy + * @see _.unionWith */ - unionBy( - arrays2: List | null | undefined, - iteratee?: W - ): LoDashImplicitArrayWrapper; - - /** - * @see _.unionBy - */ - unionBy( + unionWith( + this: LoDashExplicitWrapper | null | undefined>, arrays2: List | null | undefined, arrays3: List | null | undefined, - iteratee?: (value: T) => any - ): LoDashImplicitArrayWrapper; - - /** - * @see _.unionBy - */ - unionBy( - arrays2: List | null | undefined, - arrays3: List | null | undefined, - iteratee?: W - ): LoDashImplicitArrayWrapper; - - /** - * @see _.unionBy - */ - unionBy( - arrays2: List | null | undefined, - arrays3: List | null | undefined, - arrays4: List | null | undefined, - iteratee?: (value: T) => any - ): LoDashImplicitArrayWrapper; - - /** - * @see _.unionBy - */ - unionBy( - arrays2: List | null | undefined, - arrays3: List | null | undefined, - arrays4: List | null | undefined, - iteratee?: W - ): LoDashImplicitArrayWrapper; - - /** - * @see _.unionBy - */ - unionBy( - arrays2: List | null | undefined, - arrays3: List | null | undefined, - arrays4: List | null | undefined, - arrays5: List | null | undefined, - iteratee?: (value: T) => any - ): LoDashImplicitArrayWrapper; - - /** - * @see _.unionBy - */ - unionBy( - arrays2: List | null | undefined, - arrays3: List | null | undefined, - arrays4: List | null | undefined, - arrays5: List | null | undefined, - iteratee?: W - ): LoDashImplicitArrayWrapper; - - /** - * @see _.unionBy - */ - unionBy( - ...iteratee: any[] - ): LoDashImplicitArrayWrapper; - } - - interface LoDashExplicitArrayWrapperBase { - /** - * @see _.unionBy - */ - unionBy( - iteratee?: (value: T) => any - ): LoDashExplicitArrayWrapper; - - /** - * @see _.unionBy - */ - unionBy( - iteratee?: W - ): LoDashExplicitArrayWrapper; - - /** - * @see _.unionBy - */ - unionBy( - arrays2: List | null | undefined, - iteratee?: (value: T) => any - ): LoDashExplicitArrayWrapper; - - /** - * @see _.unionBy - */ - unionBy( - arrays2: List | null | undefined, - iteratee?: W - ): LoDashExplicitArrayWrapper; - - /** - * @see _.unionBy - */ - unionBy( - arrays2: List | null | undefined, - arrays3: List | null | undefined, - iteratee?: (value: T) => any - ): LoDashExplicitArrayWrapper; - - /** - * @see _.unionBy - */ - unionBy( - arrays2: List | null | undefined, - arrays3: List | null | undefined, - iteratee?: W - ): LoDashExplicitArrayWrapper; - - /** - * @see _.unionBy - */ - unionBy( - arrays2: List | null | undefined, - arrays3: List | null | undefined, - arrays4: List | null | undefined, - iteratee?: (value: T) => any - ): LoDashExplicitArrayWrapper; - - /** - * @see _.unionBy - */ - unionBy( - arrays2: List | null | undefined, - arrays3: List | null | undefined, - arrays4: List | null | undefined, - iteratee?: W - ): LoDashExplicitArrayWrapper; - - /** - * @see _.unionBy - */ - unionBy( - arrays2: List | null | undefined, - arrays3: List | null | undefined, - arrays4: List | null | undefined, - arrays5: List | null | undefined, - iteratee?: (value: T) => any - ): LoDashExplicitArrayWrapper; - - /** - * @see _.unionBy - */ - unionBy( - arrays2: List | null | undefined, - arrays3: List | null | undefined, - arrays4: List | null | undefined, - arrays5: List | null | undefined, - iteratee?: W - ): LoDashExplicitArrayWrapper; - - /** - * @see _.unionBy - */ - unionBy( - ...iteratee: any[] - ): LoDashExplicitArrayWrapper; - } - - interface LoDashExplicitObjectWrapperBase { - /** - * @see _.unionBy - */ - unionBy( - iteratee?: (value: T) => any - ): LoDashExplicitArrayWrapper; - - /** - * @see _.unionBy - */ - unionBy( - iteratee?: W - ): LoDashExplicitArrayWrapper; - - /** - * @see _.unionBy - */ - unionBy( - arrays2: List | null | undefined, - iteratee?: (value: T) => any - ): LoDashExplicitArrayWrapper; - - /** - * @see _.unionBy - */ - unionBy( - arrays2: List | null | undefined, - iteratee?: W - ): LoDashExplicitArrayWrapper; - - /** - * @see _.unionBy - */ - unionBy( - arrays2: List | null | undefined, - arrays3: List | null | undefined, - iteratee?: (value: T) => any - ): LoDashExplicitArrayWrapper; - - /** - * @see _.unionBy - */ - unionBy( - arrays2: List | null | undefined, - arrays3: List | null | undefined, - iteratee?: W - ): LoDashExplicitArrayWrapper; - - /** - * @see _.unionBy - */ - unionBy( - arrays2: List | null | undefined, - arrays3: List | null | undefined, - arrays4: List | null | undefined, - iteratee?: (value: T) => any - ): LoDashExplicitArrayWrapper; - - /** - * @see _.unionBy - */ - unionBy( - arrays2: List | null | undefined, - arrays3: List | null | undefined, - arrays4: List | null | undefined, - iteratee?: W - ): LoDashExplicitArrayWrapper; - - /** - * @see _.unionBy - */ - unionBy( - arrays2: List | null | undefined, - arrays3: List | null | undefined, - arrays4: List | null | undefined, - arrays5: List | null | undefined, - iteratee?: (value: T) => any - ): LoDashExplicitArrayWrapper; - - /** - * @see _.unionBy - */ - unionBy( - arrays2: List | null | undefined, - arrays3: List | null | undefined, - arrays4: List | null | undefined, - arrays5: List | null | undefined, - iteratee?: W - ): LoDashExplicitArrayWrapper; - - /** - * @see _.unionBy - */ - unionBy( - ...iteratee: any[] - ): LoDashExplicitArrayWrapper; + ...comparator: Array | List | null | undefined> + ): LoDashExplicitWrapper; } //_.uniq @@ -4704,72 +2972,20 @@ declare namespace _ { uniq( array: List | null | undefined ): T[]; - - /** - * @see _.uniq - */ - uniq( - array: List | null | undefined - ): T[]; } - interface LoDashImplicitWrapper { + interface LoDashImplicitWrapper { /** * @see _.uniq */ - uniq(): LoDashImplicitArrayWrapper; + uniq(this: LoDashImplicitWrapper | null | undefined>): LoDashImplicitWrapper; } - interface LoDashImplicitArrayWrapperBase { + interface LoDashExplicitWrapper { /** * @see _.uniq */ - uniq(): LoDashImplicitArrayWrapper; - - /** - * @see _.uniq - */ - uniq(): LoDashImplicitArrayWrapper; - } - - interface LoDashImplicitObjectWrapperBase { - uniq(): LoDashImplicitArrayWrapper; - - /** - * @see _.uniq - */ - uniq(): LoDashImplicitArrayWrapper; - } - - interface LoDashExplicitWrapper { - /** - * @see _.uniq - */ - uniq(): LoDashExplicitArrayWrapper; - } - - interface LoDashExplicitArrayWrapperBase { - /** - * @see _.uniq - */ - uniq(): LoDashExplicitArrayWrapper; - - /** - * @see _.uniq - */ - uniq(): LoDashExplicitArrayWrapper; - } - - interface LoDashExplicitObjectWrapperBase { - /** - * @see _.uniq - */ - uniq(): LoDashExplicitArrayWrapper; - - /** - * @see _.uniq - */ - uniq(): LoDashExplicitArrayWrapper; + uniq(this: LoDashExplicitWrapper | null | undefined>): LoDashExplicitWrapper; } //_.uniqBy @@ -4794,206 +3010,100 @@ declare namespace _ { * _.uniqBy([{ 'x': 1 }, { 'x': 2 }, { 'x': 1 }], 'x'); * // => [{ 'x': 1 }, { 'x': 2 }] */ - uniqBy( - array: TString, + uniqBy( + array: string | null | undefined, iteratee: StringIterator - ): TString[]; + ): string[]; /** * @see _.uniqBy */ uniqBy( array: List | null | undefined, - iteratee: ListIterator - ): T[]; - - /** - * @see _.uniqBy - */ - uniqBy( - array: List | null | undefined, - iteratee: ListIterator - ): T[]; - - /** - * @see _.uniqBy - */ - uniqBy( - array: List | null | undefined, - iteratee: string - ): T[]; - - /** - * @see _.uniqBy - */ - uniqBy( - array: List | null | undefined, - iteratee: Object - ): T[]; - - /** - * @see _.uniqBy - */ - uniqBy( - array: List | null | undefined, - iteratee: TWhere + iteratee: ListIteratee ): T[]; } - interface LoDashImplicitStringWrapper { + interface LoDashImplicitWrapper { /** * @see _.uniqBy */ uniqBy( + this: LoDashImplicitWrapper, iteratee: StringIterator - ): LoDashImplicitArrayWrapper; + ): LoDashImplicitWrapper; + + /** + * @see _.uniqBy + */ + uniqBy( + this: LoDashImplicitWrapper | null | undefined>, + iteratee: ListIteratee + ): LoDashImplicitWrapper; } - interface LoDashExplicitStringWrapper { + interface LoDashExplicitWrapper { /** * @see _.uniqBy */ uniqBy( + this: LoDashExplicitWrapper, iteratee: StringIterator - ): LoDashExplicitArrayWrapper; - } - - interface LoDashImplicitWrapper { - /** - * @see _.uniqBy - */ - uniqBy( - iteratee: ListIterator - ): LoDashImplicitArrayWrapper; - } - - interface LoDashImplicitArrayWrapperBase { - /** - * @see _.uniqBy - */ - uniqBy( - iteratee: ListIterator - ): LoDashImplicitArrayWrapper; - - /** - * @see _.uniqBy - */ - uniqBy( - iteratee: string - ): LoDashImplicitArrayWrapper; - - /** - * @see _.uniqBy - */ - uniqBy( - iteratee: TWhere - ): LoDashImplicitArrayWrapper; - } - - interface LoDashImplicitObjectWrapperBase { - /** - * @see _.uniqBy - */ - uniqBy( - iteratee: ListIterator - ): LoDashImplicitArrayWrapper; - - /** - * @see _.uniqBy - */ - uniqBy( - iteratee: ListIterator - ): LoDashImplicitArrayWrapper; + ): LoDashExplicitWrapper; /** * @see _.uniqBy */ uniqBy( - iteratee: string - ): LoDashImplicitArrayWrapper; - - /** - * @see _.uniqBy - */ - uniqBy( - iteratee: Object - ): LoDashImplicitArrayWrapper; - - /** - * @see _.uniqBy - */ - uniqBy( - iteratee: TWhere - ): LoDashImplicitArrayWrapper; + this: LoDashExplicitWrapper | null | undefined>, + iteratee: ListIteratee + ): LoDashExplicitWrapper; } - interface LoDashExplicitWrapper { + //_.uniqWith + interface LoDashStatic { /** - * @see _.uniqBy + * This method is like `_.uniq` except that it accepts `comparator` which + * is invoked to compare elements of `array`. The comparator is invoked with + * two arguments: (arrVal, othVal). + * + * @static + * @memberOf _ + * @category Array + * @param {Array} array The array to inspect. + * @param {Function} [comparator] The comparator invoked per element. + * @returns {Array} Returns the new duplicate free array. + * @example + * + * var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }, { 'x': 1, 'y': 2 }]; + * + * _.uniqWith(objects, _.isEqual); + * // => [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }] */ - uniqBy( - iteratee: ListIterator - ): LoDashExplicitArrayWrapper; + uniqWith( + array: List | null | undefined, + comparator?: Comparator + ): T[]; } - interface LoDashExplicitArrayWrapperBase { + interface LoDashImplicitWrapper { /** - * @see _.uniqBy + * @see _.uniqWith */ - uniqBy( - iteratee: ListIterator - ): LoDashExplicitArrayWrapper; - - /** - * @see _.uniqBy - */ - uniqBy( - iteratee: string - ): LoDashExplicitArrayWrapper; - - /** - * @see _.uniqBy - */ - uniqBy( - iteratee: TWhere - ): LoDashExplicitArrayWrapper; + uniqWith( + this: LoDashImplicitWrapper | null | undefined>, + comparator?: Comparator + ): LoDashImplicitWrapper; } - interface LoDashExplicitObjectWrapperBase { + interface LoDashExplicitWrapper { /** - * @see _.uniqBy + * @see _.uniqWith */ - uniqBy( - iteratee: ListIterator - ): LoDashExplicitArrayWrapper; - - /** - * @see _.uniqBy - */ - uniqBy( - iteratee: ListIterator - ): LoDashExplicitArrayWrapper; - - /** - * @see _.uniqBy - */ - uniqBy( - iteratee: string - ): LoDashExplicitArrayWrapper; - - /** - * @see _.uniqBy - */ - uniqBy( - iteratee: Object - ): LoDashExplicitArrayWrapper; - - /** - * @see _.uniqBy - */ - uniqBy( - iteratee: TWhere - ): LoDashExplicitArrayWrapper; + uniqWith( + this: LoDashExplicitWrapper | null | undefined>, + comparator?: Comparator + ): LoDashExplicitWrapper; } //_.sortedUniq @@ -5015,72 +3125,20 @@ declare namespace _ { sortedUniq( array: List | null | undefined ): T[]; - - /** - * @see _.sortedUniq - */ - sortedUniq( - array: List | null | undefined - ): T[]; } - interface LoDashImplicitWrapper { + interface LoDashImplicitWrapper { /** * @see _.sortedUniq */ - sortedUniq(): LoDashImplicitArrayWrapper; + sortedUniq(this: LoDashImplicitWrapper | null | undefined>): LoDashImplicitWrapper; } - interface LoDashImplicitArrayWrapperBase { + interface LoDashExplicitWrapper { /** * @see _.sortedUniq */ - sortedUniq(): LoDashImplicitArrayWrapper; - - /** - * @see _.sortedUniq - */ - sortedUniq(): LoDashImplicitArrayWrapper; - } - - interface LoDashImplicitObjectWrapperBase { - sortedUniq(): LoDashImplicitArrayWrapper; - - /** - * @see _.sortedUniq - */ - sortedUniq(): LoDashImplicitArrayWrapper; - } - - interface LoDashExplicitWrapper { - /** - * @see _.sortedUniq - */ - sortedUniq(): LoDashExplicitArrayWrapper; - } - - interface LoDashExplicitArrayWrapperBase { - /** - * @see _.sortedUniq - */ - sortedUniq(): LoDashExplicitArrayWrapper; - - /** - * @see _.sortedUniq - */ - sortedUniq(): LoDashExplicitArrayWrapper; - } - - interface LoDashExplicitObjectWrapperBase { - /** - * @see _.sortedUniq - */ - sortedUniq(): LoDashExplicitArrayWrapper; - - /** - * @see _.sortedUniq - */ - sortedUniq(): LoDashExplicitArrayWrapper; + sortedUniq(this: LoDashExplicitWrapper | null | undefined>): LoDashExplicitWrapper; } //_.sortedUniqBy @@ -5100,259 +3158,54 @@ declare namespace _ { * _.sortedUniqBy([1.1, 1.2, 2.3, 2.4], Math.floor); * // => [1.1, 2.2] */ - sortedUniqBy( - array: TString, + sortedUniqBy( + array: string | null | undefined, iteratee: StringIterator - ): TString[]; + ): string[]; /** * @see _.sortedUniqBy */ sortedUniqBy( array: List | null | undefined, - iteratee: ListIterator - ): T[]; - - /** - * @see _.sortedUniqBy - */ - sortedUniqBy( - array: List | null | undefined, - iteratee: ListIterator - ): T[]; - - /** - * @see _.sortedUniqBy - */ - sortedUniqBy( - array: List | null | undefined, - iteratee: string - ): T[]; - - /** - * @see _.sortedUniqBy - */ - sortedUniqBy( - array: List | null | undefined, - iteratee: Object - ): T[]; - - /** - * @see _.sortedUniqBy - */ - sortedUniqBy( - array: List | null | undefined, - iteratee: TWhere + iteratee: ListIteratee ): T[]; } - interface LoDashImplicitStringWrapper { + interface LoDashImplicitWrapper { /** * @see _.sortedUniqBy */ sortedUniqBy( + this: LoDashImplicitWrapper, iteratee: StringIterator - ): LoDashImplicitArrayWrapper; + ): LoDashImplicitWrapper; + + /** + * @see _.sortedUniqBy + */ + sortedUniqBy( + this: LoDashImplicitWrapper | null | undefined>, + iteratee: ListIteratee + ): LoDashImplicitWrapper; } - interface LoDashExplicitStringWrapper { + interface LoDashExplicitWrapper { /** * @see _.sortedUniqBy */ sortedUniqBy( + this: LoDashExplicitWrapper, iteratee: StringIterator - ): LoDashExplicitArrayWrapper; - } - - interface LoDashImplicitWrapper { - /** - * @see _.sortedUniqBy - */ - sortedUniqBy( - iteratee: ListIterator - ): LoDashImplicitArrayWrapper; - } - - interface LoDashImplicitArrayWrapperBase { - /** - * @see _.sortedUniqBy - */ - sortedUniqBy( - iteratee: ListIterator - ): LoDashImplicitArrayWrapper; - - /** - * @see _.sortedUniqBy - */ - sortedUniqBy( - iteratee: string - ): LoDashImplicitArrayWrapper; - - /** - * @see _.sortedUniqBy - */ - sortedUniqBy( - iteratee: TWhere - ): LoDashImplicitArrayWrapper; - } - - interface LoDashImplicitObjectWrapperBase { - /** - * @see _.sortedUniqBy - */ - sortedUniqBy( - iteratee: ListIterator - ): LoDashImplicitArrayWrapper; - - /** - * @see _.sortedUniqBy - */ - sortedUniqBy( - iteratee: ListIterator - ): LoDashImplicitArrayWrapper; + ): LoDashExplicitWrapper; /** * @see _.sortedUniqBy */ sortedUniqBy( - iteratee: string - ): LoDashImplicitArrayWrapper; - - /** - * @see _.sortedUniqBy - */ - sortedUniqBy( - iteratee: Object - ): LoDashImplicitArrayWrapper; - - /** - * @see _.sortedUniqBy - */ - sortedUniqBy( - iteratee: TWhere - ): LoDashImplicitArrayWrapper; - } - - interface LoDashExplicitWrapper { - /** - * @see _.sortedUniqBy - */ - sortedUniqBy( - iteratee: ListIterator - ): LoDashExplicitArrayWrapper; - } - - interface LoDashExplicitArrayWrapperBase { - /** - * @see _.sortedUniqBy - */ - sortedUniqBy( - iteratee: ListIterator - ): LoDashExplicitArrayWrapper; - - /** - * @see _.sortedUniqBy - */ - sortedUniqBy( - iteratee: string - ): LoDashExplicitArrayWrapper; - - /** - * @see _.sortedUniqBy - */ - sortedUniqBy( - iteratee: TWhere - ): LoDashExplicitArrayWrapper; - } - - interface LoDashExplicitObjectWrapperBase { - /** - * @see _.sortedUniqBy - */ - sortedUniqBy( - iteratee: ListIterator - ): LoDashExplicitArrayWrapper; - - /** - * @see _.sortedUniqBy - */ - sortedUniqBy( - iteratee: ListIterator - ): LoDashExplicitArrayWrapper; - - /** - * @see _.sortedUniqBy - */ - sortedUniqBy( - iteratee: string - ): LoDashExplicitArrayWrapper; - - /** - * @see _.sortedUniqBy - */ - sortedUniqBy( - iteratee: Object - ): LoDashExplicitArrayWrapper; - - /** - * @see _.sortedUniqBy - */ - sortedUniqBy( - iteratee: TWhere - ): LoDashExplicitArrayWrapper; - } - - //_.unionWith DUMMY - interface LoDashStatic { - /** - * This method is like `_.union` except that it accepts `comparator` which - * is invoked to compare elements of `arrays`. The comparator is invoked - * with two arguments: (arrVal, othVal). - * - * @static - * @memberOf _ - * @category Array - * @param {...Array} [arrays] The arrays to inspect. - * @param {Function} [comparator] The comparator invoked per element. - * @returns {Array} Returns the new array of combined values. - * @example - * - * var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }]; - * var others = [{ 'x': 1, 'y': 1 }, { 'x': 1, 'y': 2 }]; - * - * _.unionWith(objects, others, _.isEqual); - * // => [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }, { 'x': 1, 'y': 1 }] - */ - unionWith( - array: List, - ...values: any[] - ): any[]; - } - - //_.uniqWith DUMMY - interface LoDashStatic { - /** - * This method is like `_.uniq` except that it accepts `comparator` which - * is invoked to compare elements of `array`. The comparator is invoked with - * two arguments: (arrVal, othVal). - * - * @static - * @memberOf _ - * @category Array - * @param {Array} array The array to inspect. - * @param {Function} [comparator] The comparator invoked per element. - * @returns {Array} Returns the new duplicate free array. - * @example - * - * var objects = [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }, { 'x': 1, 'y': 2 }]; - * - * _.uniqWith(objects, _.isEqual); - * // => [{ 'x': 1, 'y': 2 }, { 'x': 2, 'y': 1 }] - */ - uniqWith( - array: List, - ...values: any[] - ): any[]; + this: LoDashExplicitWrapper | null | undefined>, + iteratee: ListIteratee + ): LoDashExplicitWrapper; } //_.unzip @@ -5364,35 +3217,21 @@ declare namespace _ { * @param array The array of grouped elements to process. * @return Returns the new array of regrouped elements. */ - unzip(array: List> | null | undefined): T[][]; + unzip(array: T[][] | List> | null | undefined): T[][]; } - interface LoDashImplicitArrayWrapperBase { + interface LoDashImplicitWrapper { /** * @see _.unzip */ - unzip(): LoDashImplicitArrayWrapper; + unzip(this: LoDashImplicitWrapper> | null | undefined>): LoDashImplicitWrapper; } - interface LoDashImplicitObjectWrapperBase { + interface LoDashExplicitWrapper { /** * @see _.unzip */ - unzip(): LoDashImplicitArrayWrapper; - } - - interface LoDashExplicitArrayWrapperBase { - /** - * @see _.unzip - */ - unzip(): LoDashExplicitArrayWrapper; - } - - interface LoDashExplicitObjectWrapperBase { - /** - * @see _.unzip - */ - unzip(): LoDashExplicitArrayWrapper; + unzip(this: LoDashExplicitWrapper> | null | undefined>): LoDashExplicitWrapper; } //_.unzipWith @@ -5407,28 +3246,51 @@ declare namespace _ { * @param thisArg The this binding of iteratee. * @return Returns the new array of regrouped elements. */ - unzipWith( - array: List> | null | undefined, - iteratee?: MemoIterator + unzipWith( + array: List> | null | undefined, + iteratee: (...values: T[]) => TResult ): TResult[]; - } - interface LoDashImplicitArrayWrapperBase { /** * @see _.unzipWith */ - unzipWith( - iteratee?: MemoIterator - ): LoDashImplicitArrayWrapper; + unzipWith( + array: List> | null | undefined + ): T[][]; } - interface LoDashImplicitObjectWrapperBase { + interface LoDashImplicitWrapper { /** * @see _.unzipWith */ - unzipWith( - iteratee?: MemoIterator - ): LoDashImplicitArrayWrapper; + unzipWith( + this: LoDashImplicitWrapper> | null | undefined>, + iteratee: (...values: T[]) => TResult + ): LoDashImplicitWrapper; + + /** + * @see _.unzipWith + */ + unzipWith( + this: LoDashImplicitWrapper> | null | undefined> + ): LoDashImplicitWrapper; + } + + interface LoDashExplicitWrapper { + /** + * @see _.unzipWith + */ + unzipWith( + this: LoDashExplicitWrapper> | null | undefined>, + iteratee: (...values: T[]) => TResult + ): LoDashExplicitWrapper; + + /** + * @see _.unzipWith + */ + unzipWith( + this: LoDashExplicitWrapper> | null | undefined> + ): LoDashExplicitWrapper; } //_.without @@ -5446,32 +3308,24 @@ declare namespace _ { ): T[]; } - interface LoDashImplicitArrayWrapperBase { + interface LoDashImplicitWrapper { /** * @see _.without */ - without(...values: T[]): LoDashImplicitArrayWrapper; + without( + this: LoDashImplicitWrapper | null | undefined>, + ...values: T[] + ): LoDashImplicitWrapper; } - interface LoDashImplicitObjectWrapperBase { + interface LoDashExplicitWrapper { /** * @see _.without */ - without(...values: T[]): LoDashImplicitArrayWrapper; - } - - interface LoDashExplicitArrayWrapperBase { - /** - * @see _.without - */ - without(...values: T[]): LoDashExplicitArrayWrapper; - } - - interface LoDashExplicitObjectWrapperBase { - /** - * @see _.without - */ - without(...values: T[]): LoDashExplicitArrayWrapper; + without( + this: LoDashExplicitWrapper | null | undefined>, + ...values: T[] + ): LoDashExplicitWrapper; } //_.xor @@ -5485,35 +3339,27 @@ declare namespace _ { xor(...arrays: Array | null | undefined>): T[]; } - interface LoDashImplicitArrayWrapperBase { + interface LoDashImplicitWrapper { /** * @see _.xor */ - xor(...arrays: Array | null | undefined>): LoDashImplicitArrayWrapper; + xor( + this: LoDashImplicitWrapper | null | undefined>, + ...arrays: Array | null | undefined> + ): LoDashImplicitWrapper; } - interface LoDashImplicitObjectWrapperBase { + interface LoDashExplicitWrapper { /** * @see _.xor */ - xor(...arrays: Array | null | undefined>): LoDashImplicitArrayWrapper; + xor( + this: LoDashExplicitWrapper | null | undefined>, + ...arrays: Array | null | undefined> + ): LoDashExplicitWrapper; } - interface LoDashExplicitArrayWrapperBase { - /** - * @see _.xor - */ - xor(...arrays: Array | null | undefined>): LoDashExplicitArrayWrapper; - } - - interface LoDashExplicitObjectWrapperBase { - /** - * @see _.xor - */ - xor(...arrays: Array | null | undefined>): LoDashExplicitArrayWrapper; - } - - //_.xorBy DUMMY + //_.xorBy interface LoDashStatic { /** * This method is like `_.xor` except that it accepts `iteratee` which is @@ -5535,13 +3381,90 @@ declare namespace _ { * _.xorBy([{ 'x': 1 }], [{ 'x': 2 }, { 'x': 1 }], 'x'); * // => [{ 'x': 2 }] */ - xorBy( - array: List, - ...values: any[] - ): any[]; + xorBy( + arrays?: List | null | undefined, + iteratee?: ValueIteratee + ): T[]; + + /** + * @see _.xorBy + */ + xorBy( + arrays: List | null | undefined, + arrays2: List | null | undefined, + iteratee?: ValueIteratee + ): T[]; + + /** + * @see _.xorBy + */ + xorBy( + arrays: List | null | undefined, + arrays2: List | null | undefined, + arrays3: List | null | undefined, + ...iteratee: Array | List | null | undefined> + ): T[]; } - //_.xorWith DUMMY + interface LoDashImplicitWrapper { + /** + * @see _.xor + */ + xorBy( + this: LoDashImplicitWrapper | null | undefined>, + iteratee?: ValueIteratee + ): LoDashImplicitWrapper; + + /** + * @see _.xorBy + */ + xorBy( + this: LoDashImplicitWrapper | null | undefined>, + arrays2: List | null | undefined, + iteratee?: ValueIteratee + ): LoDashImplicitWrapper; + + /** + * @see _.xorBy + */ + xorBy( + this: LoDashImplicitWrapper | null | undefined>, + arrays2: List | null | undefined, + arrays3: List | null | undefined, + ...iteratee: Array | List | null | undefined> + ): LoDashImplicitWrapper; + } + + interface LoDashExplicitWrapper { + /** + * @see _.xorBy + */ + xorBy( + this: LoDashExplicitWrapper | null | undefined>, + iteratee?: ValueIteratee + ): LoDashExplicitWrapper; + + /** + * @see _.xorBy + */ + xorBy( + this: LoDashExplicitWrapper | null | undefined>, + arrays2: List | null | undefined, + iteratee?: ValueIteratee + ): LoDashExplicitWrapper; + + /** + * @see _.xorBy + */ + xorBy( + this: LoDashExplicitWrapper | null | undefined>, + arrays2: List | null | undefined, + arrays3: List | null | undefined, + ...iteratee: Array | List | null | undefined> + ): LoDashExplicitWrapper; + } + + //_.xorWith interface LoDashStatic { /** * This method is like `_.xor` except that it accepts `comparator` which is @@ -5562,10 +3485,87 @@ declare namespace _ { * _.xorWith(objects, others, _.isEqual); * // => [{ 'x': 2, 'y': 1 }, { 'x': 1, 'y': 1 }] */ - xorWith( - array: List, - ...values: any[] - ): any[]; + xorWith( + arrays?: List | null | undefined, + comparator?: Comparator + ): T[]; + + /** + * @see _.xorWith + */ + xorWith( + arrays: List | null | undefined, + arrays2: List | null | undefined, + comparator?: Comparator + ): T[]; + + /** + * @see _.xorWith + */ + xorWith( + arrays: List | null | undefined, + arrays2: List | null | undefined, + arrays3: List | null | undefined, + ...comparator: Array | List | null | undefined> + ): T[]; + } + + interface LoDashImplicitWrapper { + /** + * @see _.xorWith + */ + xorWith( + this: LoDashImplicitWrapper | null | undefined>, + comparator?: Comparator + ): LoDashImplicitWrapper; + + /** + * @see _.xorWith + */ + xorWith( + this: LoDashImplicitWrapper | null | undefined>, + arrays2: List | null | undefined, + comparator?: Comparator + ): LoDashImplicitWrapper; + + /** + * @see _.xorWith + */ + xorWith( + this: LoDashImplicitWrapper | null | undefined>, + arrays2: List | null | undefined, + arrays3: List | null | undefined, + ...comparator: Array | List | null | undefined> + ): LoDashImplicitWrapper; + } + + interface LoDashExplicitWrapper { + /** + * @see _.xorWith + */ + xorWith( + this: LoDashExplicitWrapper | null | undefined>, + comparator?: Comparator + ): LoDashExplicitWrapper; + + /** + * @see _.xorWith + */ + xorWith( + this: LoDashExplicitWrapper | null | undefined>, + arrays2: List | null | undefined, + comparator?: Comparator + ): LoDashExplicitWrapper; + + /** + * @see _.xorWith + */ + xorWith( + this: LoDashExplicitWrapper | null | undefined>, + arrays2: List | null | undefined, + arrays3: List | null | undefined, + ...comparator: Array | List | null | undefined> + ): LoDashExplicitWrapper; } //_.zip @@ -5580,32 +3580,24 @@ declare namespace _ { zip(...arrays: Array | null | undefined>): T[][]; } - interface LoDashImplicitArrayWrapperBase { + interface LoDashImplicitWrapper { /** * @see _.zip */ - zip(...arrays: Array | null | undefined>): _.LoDashImplicitArrayWrapper; + zip( + this: LoDashImplicitWrapper | null | undefined>, + ...arrays: Array | null | undefined> + ): LoDashImplicitWrapper; } - interface LoDashImplicitObjectWrapperBase { + interface LoDashExplicitWrapper { /** * @see _.zip */ - zip(...arrays: Array | null | undefined>): _.LoDashImplicitArrayWrapper; - } - - interface LoDashExplicitArrayWrapperBase { - /** - * @see _.zip - */ - zip(...arrays: Array | null | undefined>): _.LoDashExplicitArrayWrapper; - } - - interface LoDashExplicitObjectWrapperBase { - /** - * @see _.zip - */ - zip(...arrays: Array | null | undefined>): _.LoDashExplicitArrayWrapper; + zip( + this: LoDashExplicitWrapper | null | undefined>, + ...arrays: Array | null | undefined> + ): LoDashExplicitWrapper; } //_.zipObject @@ -5618,10 +3610,24 @@ declare namespace _ { * @param values The property values. * @return Returns the new object. */ - zipObject( - props: List|List>, - values?: List + zipObject( + props: List, + values: List ): TResult; + + /** + * @see _.zipObject + */ + zipObject( + props: List|List>, + values?: List + ): any; + + /** + * @see _.zipObject + */ + zipObject(): {}; + /** * This method is like _.zipObject except that it supports property paths. * @@ -5629,204 +3635,83 @@ declare namespace _ { * @param values The property values. * @return Returns the new object. */ - zipObjectDeep( - props: List|List>, - values?: List - ): TResult; - - /** - * @see _.zipObject - */ - zipObject( - props: List|List>, - values?: List - ): TResult; - /** - * @see _.zipObjectDeep - */ - zipObjectDeep( - props: List|List>, - values?: List - ): TResult; - - /** - * @see _.zipObject - */ - zipObject( - props: List|List>, - values?: List - ): _.Dictionary; - /** - * @see _.zipObjectDeep - */ zipObjectDeep( props: List|List>, values?: List - ): _.Dictionary; + ): any; + + /** + * @see _.zipObjectDeep + */ + zipObjectDeep(): {}; } - interface LoDashImplicitArrayWrapper { + interface LoDashImplicitWrapper { /** * @see _.zipObject */ - zipObject( - values?: List - ): _.LoDashImplicitObjectWrapper; - /** - * @see _.zipObjectDeep - */ - zipObjectDeep( - values?: List - ): _.LoDashImplicitObjectWrapper; - - /** - * @see _.zipObject - */ - zipObject( - values?: List - ): _.LoDashImplicitObjectWrapper; - /** - * @see _.zipObjectDeep - */ - zipObjectDeep( - values?: List - ): _.LoDashImplicitObjectWrapper; + zipObject( + this: LoDashImplicitWrapper>, + values: List + ): LoDashImplicitWrapper; /** * @see _.zipObject */ zipObject( + this: LoDashImplicitWrapper|List>>, values?: List - ): _.LoDashImplicitObjectWrapper<_.Dictionary>; + ): LoDashImplicitWrapper; + /** * @see _.zipObjectDeep */ zipObjectDeep( + this: LoDashImplicitWrapper|List>>, values?: List - ): _.LoDashImplicitObjectWrapper<_.Dictionary>; + ): LoDashImplicitWrapper; + + /** + * @see _.zipObjectDeep + */ + zipObjectDeep( + this: LoDashImplicitWrapper|List>>, + values?: List + ): LoDashImplicitWrapper; } - interface LoDashImplicitObjectWrapper { + interface LoDashExplicitWrapper { /** * @see _.zipObject */ - zipObject( - values?: List - ): _.LoDashImplicitObjectWrapper; - /** - * @see _.zipObjectDeep - */ - zipObjectDeep( - values?: List - ): _.LoDashImplicitObjectWrapper; - - /** - * @see _.zipObject - */ - zipObject( - values?: List - ): _.LoDashImplicitObjectWrapper; - /** - * @see _.zipObjectDeep - */ - zipObjectDeep( - values?: List - ): _.LoDashImplicitObjectWrapper; + zipObject( + this: LoDashExplicitWrapper>, + values: List + ): LoDashExplicitWrapper; /** * @see _.zipObject */ zipObject( + this: LoDashExplicitWrapper|List>>, values?: List - ): _.LoDashImplicitObjectWrapper<_.Dictionary>; + ): LoDashExplicitWrapper; + /** * @see _.zipObjectDeep */ zipObjectDeep( + this: LoDashExplicitWrapper|List>>, values?: List - ): _.LoDashImplicitObjectWrapper<_.Dictionary>; - } + ): LoDashExplicitWrapper; - interface LoDashExplicitArrayWrapper { - /** - * @see _.zipObject - */ - zipObject( - values?: List - ): _.LoDashExplicitObjectWrapper; /** * @see _.zipObjectDeep */ - zipObjectDeep( - values?: List - ): _.LoDashExplicitObjectWrapper; - - /** - * @see _.zipObject - */ - zipObject( + zipObjectDeep( + this: LoDashExplicitWrapper|List>>, values?: List - ): _.LoDashExplicitObjectWrapper; - /** - * @see _.zipObjectDeep - */ - zipObjectDeep( - values?: List - ): _.LoDashExplicitObjectWrapper; - - /** - * @see _.zipObject - */ - zipObject( - values?: List - ): _.LoDashExplicitObjectWrapper<_.Dictionary>; - /** - * @see _.zipObjectDeep - */ - zipObjectDeep( - values?: List - ): _.LoDashExplicitObjectWrapper<_.Dictionary>; - } - - interface LoDashExplicitObjectWrapper { - /** - * @see _.zipObject - */ - zipObject( - values?: List - ): _.LoDashExplicitObjectWrapper; - /** - * @see _.zipObjectDeep - */ - zipObjectDeep( - values?: List - ): _.LoDashExplicitObjectWrapper; - - /** - * @see _.zipObject - */ - zipObject( - values?: List - ): _.LoDashExplicitObjectWrapper; - /** - * @see _.zipObjectDeep - */ - zipObjectDeep( - values?: List - ): _.LoDashExplicitObjectWrapper; - - /** - * @see _.zipObject - */ - zipObject( - values?: List - ): _.LoDashExplicitObjectWrapper<_.Dictionary>; - /** - * @see _.zipObjectDeep - */ - zipObjectDeep( - values?: List - ): _.LoDashExplicitObjectWrapper<_.Dictionary>; + ): LoDashExplicitWrapper; } //_.zipWith @@ -5840,14 +3725,179 @@ declare namespace _ { * @param {*} [thisArg] The `this` binding of `iteratee`. * @return Returns the new array of grouped elements. */ - zipWith(...args: any[]): TResult[]; - } + zipWith( + ...arrays: Array | null | undefined> + ): T[][]; - interface LoDashImplicitArrayWrapper { /** * @see _.zipWith */ - zipWith(...args: any[]): LoDashImplicitArrayWrapper; + zipWith( + arrays: List | null | undefined, + iteratee: (value1: T) => TResult + ): TResult[]; + + /** + * @see _.zipWith + */ + zipWith( + arrays: List | null | undefined, + arrays2: List | null | undefined, + iteratee: (value1: T, value2: T) => TResult + ): TResult[]; + + /** + * @see _.zipWith + */ + zipWith( + arrays: List | null | undefined, + arrays2: List | null | undefined, + arrays3: List | null | undefined, + iteratee: (value1: T, value2: T, value3: T) => TResult + ): TResult[]; + + /** + * @see _.zipWith + */ + zipWith( + arrays: List | null | undefined, + arrays2: List | null | undefined, + arrays3: List | null | undefined, + arrays4: List | null | undefined, + iteratee: (value1: T, value2: T, value3: T, value4: T) => TResult + ): TResult[]; + + /** + * @see _.zipWith + */ + zipWith( + arrays: List | null | undefined, + arrays2: List | null | undefined, + arrays3: List | null | undefined, + arrays4: List | null | undefined, + arrays5: List | null | undefined, + ...iteratee: Array<((...group: T[]) => TResult) | List | null | undefined> + ): TResult[]; + } + + interface LoDashImplicitWrapper { + /** + * @see _.zipWith + */ + zipWith( + this: LoDashImplicitWrapper | null | undefined>, + ...arrays: Array | null | undefined> + ): LoDashImplicitWrapper; + + /** + * @see _.zipWith + */ + zipWith( + this: LoDashImplicitWrapper | null | undefined>, + iteratee: (value1: T) => TResult + ): LoDashImplicitWrapper; + + /** + * @see _.zipWith + */ + zipWith( + this: LoDashImplicitWrapper | null | undefined>, + arrays2: List | null | undefined, + iteratee: (value1: T, value2: T) => TResult + ): LoDashImplicitWrapper; + + /** + * @see _.zipWith + */ + zipWith( + this: LoDashImplicitWrapper | null | undefined>, + arrays2: List | null | undefined, + arrays3: List | null | undefined, + iteratee: (value1: T, value2: T, value3: T) => TResult + ): LoDashImplicitWrapper; + + /** + * @see _.zipWith + */ + zipWith( + this: LoDashImplicitWrapper | null | undefined>, + arrays2: List | null | undefined, + arrays3: List | null | undefined, + arrays4: List | null | undefined, + iteratee: (value1: T, value2: T, value3: T, value4: T) => TResult + ): LoDashImplicitWrapper; + + /** + * @see _.zipWith + */ + zipWith( + this: LoDashImplicitWrapper | null | undefined>, + arrays2: List | null | undefined, + arrays3: List | null | undefined, + arrays4: List | null | undefined, + arrays5: List | null | undefined, + ...iteratee: Array<((...group: T[]) => TResult) | List | null | undefined> + ): LoDashImplicitWrapper; + } + + interface LoDashExplicitWrapper { + /** + * @see _.zipWith + */ + zipWith( + this: LoDashExplicitWrapper | null | undefined>, + ...arrays: Array | null | undefined> + ): LoDashExplicitWrapper; + + /** + * @see _.zipWith + */ + zipWith( + this: LoDashExplicitWrapper | null | undefined>, + iteratee: (value1: T) => TResult + ): LoDashExplicitWrapper; + + /** + * @see _.zipWith + */ + zipWith( + this: LoDashExplicitWrapper | null | undefined>, + arrays2: List | null | undefined, + iteratee: (value1: T, value2: T) => TResult + ): LoDashExplicitWrapper; + + /** + * @see _.zipWith + */ + zipWith( + this: LoDashExplicitWrapper | null | undefined>, + arrays2: List | null | undefined, + arrays3: List | null | undefined, + iteratee: (value1: T, value2: T, value3: T) => TResult + ): LoDashExplicitWrapper; + + /** + * @see _.zipWith + */ + zipWith( + this: LoDashExplicitWrapper | null | undefined>, + arrays2: List | null | undefined, + arrays3: List | null | undefined, + arrays4: List | null | undefined, + iteratee: (value1: T, value2: T, value3: T, value4: T) => TResult + ): LoDashExplicitWrapper; + + /** + * @see _.zipWith + */ + zipWith( + this: LoDashExplicitWrapper | null | undefined>, + arrays2: List | null | undefined, + arrays3: List | null | undefined, + arrays4: List | null | undefined, + arrays5: List | null | undefined, + ...iteratee: Array<((...group: T[]) => TResult) | List | null | undefined> + ): LoDashExplicitWrapper; } /********* @@ -5862,66 +3912,21 @@ declare namespace _ { * @param value The value to wrap. * @return Returns the new lodash wrapper instance. */ - chain(value: number): LoDashExplicitWrapper; - chain(value: string): LoDashExplicitWrapper; - chain(value: boolean): LoDashExplicitWrapper; - chain(value: null | undefined): LoDashExplicitWrapper; - chain(value: T[]): LoDashExplicitArrayWrapper; - chain(value: ReadonlyArray): LoDashExplicitArrayWrapper; - chain(value: T[] | null | undefined): LoDashExplicitNillableArrayWrapper; - chain(value: ReadonlyArray | null | undefined): LoDashExplicitNillableArrayWrapper; - chain(value: T): LoDashExplicitObjectWrapper; - chain(value: T | null | undefined): LoDashExplicitObjectWrapper; - chain(value: any): LoDashExplicitWrapper; + chain(value: T): LoDashExplicitWrapper; } - interface LoDashImplicitStringWrapper { + interface LoDashImplicitWrapper { /** * @see _.chain */ - chain(): LoDashExplicitStringWrapper; + chain(): LoDashExplicitWrapper; } - interface LoDashImplicitWrapper { + interface LoDashExplicitWrapper { /** * @see _.chain */ - chain(): LoDashExplicitWrapper; - } - - interface LoDashImplicitArrayWrapper { - /** - * @see _.chain - */ - chain(): LoDashExplicitArrayWrapper; - } - - interface LoDashImplicitNillableArrayWrapper { - /** - * @see _.chain - */ - chain(): LoDashExplicitNillableArrayWrapper; - } - - interface LoDashImplicitObjectWrapper { - /** - * @see _.chain - */ - chain(): LoDashExplicitObjectWrapper; - } - - interface LoDashImplicitNillableObjectWrapper { - /** - * @see _.chain - */ - chain(): LoDashExplicitNillableObjectWrapper; - } - - interface LoDashExplicitWrapperBase { - /** - * @see _.chain - */ - chain(): TWrapper; + chain(): this; } //_.tap @@ -5942,22 +3947,13 @@ declare namespace _ { ): T; } - interface LoDashImplicitWrapperBase { + interface LoDashWrapper { /** * @see _.tap */ tap( - interceptor: (value: T) => void - ): TWrapper; - } - - interface LoDashExplicitWrapperBase { - /** - * @see _.tap - */ - tap( - interceptor: (value: T) => void - ): TWrapper; + interceptor: (value: TValue) => void + ): this; } //_.thru @@ -5976,237 +3972,57 @@ declare namespace _ { ): TResult; } - interface LoDashImplicitWrapperBase { + interface LoDashImplicitWrapper { /** * @see _.thru */ - thru( - interceptor: (value: T) => TResult): LoDashImplicitWrapper; - - /** - * @see _.thru - */ - thru( - interceptor: (value: T) => TResult): LoDashImplicitWrapper; - - /** - * @see _.thru - */ - thru( - interceptor: (value: T) => TResult): LoDashImplicitWrapper; - - /** - * @see _.thru - */ - thru( - interceptor: (value: T) => TResult): LoDashImplicitObjectWrapper; - - /** - * @see _.thru - */ - thru( - interceptor: (value: T) => TResult[]): LoDashImplicitArrayWrapper; + thru(interceptor: (value: TValue) => TResult): LoDashImplicitWrapper; } - interface LoDashExplicitWrapperBase { + interface LoDashExplicitWrapper { /** * @see _.thru */ - thru( - interceptor: (value: T) => TResult - ): LoDashExplicitWrapper; - - /** - * @see _.thru - */ - thru( - interceptor: (value: T) => TResult - ): LoDashExplicitWrapper; - - /** - * @see _.thru - */ - thru( - interceptor: (value: T) => TResult - ): LoDashExplicitWrapper; - - /** - * @see _.thru - */ - thru( - interceptor: (value: T) => TResult - ): LoDashExplicitObjectWrapper; - - /** - * @see _.thru - */ - thru( - interceptor: (value: T) => TResult[] - ): LoDashExplicitArrayWrapper; + thru(interceptor: (value: TValue) => TResult): LoDashExplicitWrapper; } //_.prototype.commit - interface LoDashImplicitWrapperBase { + interface LoDashWrapper { /** * Executes the chained sequence and returns the wrapped result. * * @return Returns the new lodash wrapper instance. */ - commit(): TWrapper; - } - - interface LoDashExplicitWrapperBase { - /** - * @see _.commit - */ - commit(): TWrapper; - } - - //_.prototype.concat - interface LoDashImplicitWrapperBase { - /** - * Creates a new array joining a wrapped array with any additional arrays and/or values. - * - * @param items - * @return Returns the new concatenated array. - */ - concat(...items: Array>): LoDashImplicitArrayWrapper; - - /** - * @see _.concat - */ - concat(...items: Array>): LoDashImplicitArrayWrapper; - } - - interface LoDashExplicitWrapperBase { - /** - * @see _.concat - */ - concat(...items: Array>): LoDashExplicitArrayWrapper; - - /** - * @see _.concat - */ - concat(...items: Array>): LoDashExplicitArrayWrapper; + commit(): this; } //_.prototype.plant - interface LoDashImplicitWrapperBase { + interface LoDashImplicitWrapper { /** * Creates a clone of the chained sequence planting value as the wrapped value. * @param value The value to plant as the wrapped value. * @return Returns the new lodash wrapper instance. */ - plant(value: number): LoDashImplicitWrapper; - - /** - * @see _.plant - */ - plant(value: string): LoDashImplicitStringWrapper; - - /** - * @see _.plant - */ - plant(value: boolean): LoDashImplicitWrapper; - - /** - * @see _.plant - */ - plant(value: number[]): LoDashImplicitNumberArrayWrapper; - - /** - * @see _.plant - */ - plant(value: T[]): LoDashImplicitArrayWrapper; - - /** - * @see _.plant - */ - plant(value: ReadonlyArray): LoDashImplicitArrayWrapper; - - /** - * @see _.plant - */ - plant(value: T): LoDashImplicitObjectWrapper; - - /** - * @see _.plant - */ - plant(value: any): LoDashImplicitWrapper; + plant(value: T): LoDashImplicitWrapper; } - interface LoDashExplicitWrapperBase { + interface LoDashExplicitWrapper { /** * @see _.plant */ - plant(value: number): LoDashExplicitWrapper; - - /** - * @see _.plant - */ - plant(value: string): LoDashExplicitStringWrapper; - - /** - * @see _.plant - */ - plant(value: boolean): LoDashExplicitWrapper; - - /** - * @see _.plant - */ - plant(value: number[]): LoDashExplicitNumberArrayWrapper; - - /** - * @see _.plant - */ - plant(value: T[]): LoDashExplicitArrayWrapper; - - /** - * @see _.plant - */ - plant(value: ReadonlyArray): LoDashExplicitArrayWrapper; - - /** - * @see _.plant - */ - plant(value: T): LoDashExplicitObjectWrapper; - - /** - * @see _.plant - */ - plant(value: any): LoDashExplicitWrapper; - } - - //_.prototype.reverse - interface LoDashImplicitArrayWrapper { - /** - * Reverses the wrapped array so the first element becomes the last, the second element becomes the second to - * last, and so on. - * - * Note: This method mutates the wrapped array. - * - * @return Returns the new reversed lodash wrapper instance. - */ - reverse(): LoDashImplicitArrayWrapper; - } - - interface LoDashExplicitArrayWrapper { - /** - * @see _.reverse - */ - reverse(): LoDashExplicitArrayWrapper; + plant(value: T): LoDashExplicitWrapper; } //_.prototype.toJSON - interface LoDashWrapperBase { + interface LoDashWrapper { /** * @see _.value */ - toJSON(): T; + toJSON(): TValue; } //_.prototype.toString - interface LoDashWrapperBase { + interface LoDashWrapper { /** * Produces the result of coercing the unwrapped value to a string. * @@ -6216,7 +4032,7 @@ declare namespace _ { } //_.prototype.value - interface LoDashWrapperBase { + interface LoDashWrapper { /** * Executes the chained sequence to extract the unwrapped value. * @@ -6224,15 +4040,15 @@ declare namespace _ { * * @return Returns the resolved unwrapped value. */ - value(): T; + value(): TValue; } //_.valueOf - interface LoDashWrapperBase { + interface LoDashWrapper { /** * @see _.value */ - valueOf(): T; + valueOf(): TValue; } /************** @@ -6245,42 +4061,58 @@ declare namespace _ { * Creates an array of elements corresponding to the given keys, or indexes, of collection. Keys may be * specified as individual arguments or as arrays of keys. * - * @param collection The collection to iterate over. + * @param object The object to iterate over. * @param props The property names or indexes of elements to pick, specified individually or in arrays. * @return Returns the new array of picked elements. */ at( - collection: List|Dictionary | null | undefined, + object: List | Dictionary | null | undefined, ...props: Array> ): T[]; - } - interface LoDashImplicitArrayWrapperBase { /** * @see _.at */ - at(...props: Array>): LoDashImplicitArrayWrapper; + at( + object: T | null | undefined, + ...props: Array> + ): Array; } - interface LoDashImplicitObjectWrapperBase { + interface LoDashImplicitWrapper { /** * @see _.at */ - at(...props: Array>): LoDashImplicitArrayWrapper; - } + at( + this: LoDashImplicitWrapper | Dictionary | null | undefined>, + ...props: Array> + ): LoDashImplicitWrapper; - interface LoDashExplicitArrayWrapperBase { /** * @see _.at */ - at(...props: Array>): LoDashExplicitArrayWrapper; + at( + this: LoDashImplicitWrapper, + ...props: Array> + ): LoDashImplicitWrapper>; } - interface LoDashExplicitObjectWrapperBase { + interface LoDashExplicitWrapper { /** * @see _.at */ - at(...props: Array>): LoDashExplicitArrayWrapper; + at( + this: LoDashExplicitWrapper | Dictionary | null | undefined>, + ...props: Array> + ): LoDashExplicitWrapper; + + /** + * @see _.at + */ + at( + this: LoDashExplicitWrapper, + ...props: Array> + ): LoDashExplicitWrapper>; } //_.countBy @@ -6307,15 +4139,7 @@ declare namespace _ { */ countBy( collection: List | null | undefined, - iteratee?: ListIterator - ): Dictionary; - - /** - * @see _.countBy - */ - countBy( - collection: Dictionary | null | undefined, - iteratee?: DictionaryIterator + iteratee?: ListIteratee ): Dictionary; /** @@ -6323,260 +4147,146 @@ declare namespace _ { */ countBy( collection: NumericDictionary | null | undefined, - iteratee?: NumericDictionaryIterator + iteratee?: NumericDictionaryIteratee ): Dictionary; /** * @see _.countBy */ - countBy( - collection: List|Dictionary|NumericDictionary | null | undefined, - iteratee?: string - ): Dictionary; - - /** - * @see _.countBy - */ - countBy( - collection: List|Dictionary|NumericDictionary | null | undefined, - iteratee?: W - ): Dictionary; - - /** - * @see _.countBy - */ - countBy( - collection: List|Dictionary|NumericDictionary | null | undefined, - iteratee?: Object + countBy( + collection: T | null | undefined, + iteratee?: ObjectIteratee ): Dictionary; } - interface LoDashImplicitWrapper { - /** - * @see _.countBy - */ - countBy( - iteratee?: ListIterator - ): LoDashImplicitObjectWrapper>; - } - - interface LoDashImplicitArrayWrapperBase { - /** - * @see _.countBy - */ - countBy( - iteratee?: ListIterator - ): LoDashImplicitObjectWrapper>; - - /** - * @see _.countBy - */ - countBy( - iteratee?: string - ): LoDashImplicitObjectWrapper>; - - /** - * @see _.countBy - */ - countBy( - iteratee?: W - ): LoDashImplicitObjectWrapper>; - } - - interface LoDashImplicitObjectWrapperBase { + interface LoDashImplicitWrapper { /** * @see _.countBy */ countBy( - iteratee?: ListIterator|DictionaryIterator|NumericDictionaryIterator - ): LoDashImplicitObjectWrapper>; + this: LoDashImplicitWrapper | null | undefined>, + iteratee?: ListIteratee + ): LoDashImplicitWrapper>; /** * @see _.countBy */ - countBy( - iteratee?: string - ): LoDashImplicitObjectWrapper>; + countBy( + this: LoDashImplicitWrapper, + iteratee?: ObjectIteratee + ): LoDashImplicitWrapper>; - /** - * @see _.countBy - */ - countBy( - iteratee?: W - ): LoDashImplicitObjectWrapper>; - } - - interface LoDashExplicitWrapper { - /** - * @see _.countBy - */ - countBy( - iteratee?: ListIterator - ): LoDashExplicitObjectWrapper>; - } - - interface LoDashExplicitArrayWrapperBase { - /** - * @see _.countBy - */ - countBy( - iteratee?: ListIterator - ): LoDashExplicitObjectWrapper>; - - /** - * @see _.countBy - */ - countBy( - iteratee?: string - ): LoDashExplicitObjectWrapper>; - - /** - * @see _.countBy - */ - countBy( - iteratee?: W - ): LoDashExplicitObjectWrapper>; - } - - interface LoDashExplicitObjectWrapperBase { /** * @see _.countBy */ countBy( - iteratee?: ListIterator|DictionaryIterator|NumericDictionaryIterator - ): LoDashExplicitObjectWrapper>; + this: LoDashImplicitWrapper | null | undefined>, + iteratee?: NumericDictionaryIteratee + ): LoDashImplicitWrapper>; + } + + interface LoDashExplicitWrapper { + /** + * @see _.countBy + */ + countBy( + this: LoDashExplicitWrapper | null | undefined>, + iteratee?: ListIteratee + ): LoDashExplicitWrapper>; /** * @see _.countBy */ - countBy( - iteratee?: string - ): LoDashExplicitObjectWrapper>; + countBy( + this: LoDashExplicitWrapper, + iteratee?: ObjectIteratee + ): LoDashExplicitWrapper>; /** * @see _.countBy */ - countBy( - iteratee?: W - ): LoDashExplicitObjectWrapper>; + countBy( + this: LoDashExplicitWrapper | null | undefined>, + iteratee?: NumericDictionaryIteratee + ): LoDashExplicitWrapper>; } //_.each interface LoDashStatic { - each: typeof _.forEach; + each: typeof _.forEach; // tslint:disable-line:no-unnecessary-qualifier } - interface LoDashImplicitWrapper { + interface LoDashWrapper { + /** + * @see _.forEach + */ + each( + this: LoDashWrapper, + iteratee?: ArrayIterator + ): this; + /** * @see _.forEach */ each( - iteratee: StringIterator - ): LoDashImplicitWrapper; - } + this: LoDashWrapper, + iteratee?: StringIterator + ): this; - interface LoDashImplicitArrayWrapperBase { /** * @see _.forEach */ - each( - iteratee: ListIterator - ): TWrapper; - } + each( + this: LoDashWrapper | null | undefined>, + iteratee?: ListIterator + ): this; - interface LoDashImplicitObjectWrapperBase { /** * @see _.forEach */ - each( - iteratee?: ListIterator|DictionaryIterator - ): TWrapper; - } - - interface LoDashExplicitWrapper { - /** - * @see _.forEach - */ - each( - iteratee: StringIterator - ): LoDashExplicitWrapper; - } - - interface LoDashExplicitArrayWrapperBase { - /** - * @see _.forEach - */ - each( - iteratee: ListIterator - ): TWrapper; - } - - interface LoDashExplicitObjectWrapperBase { - /** - * @see _.forEach - */ - each( - iteratee?: ListIterator|DictionaryIterator - ): TWrapper; + each( + this: LoDashWrapper, + iteratee?: ObjectIterator + ): this; } //_.eachRight interface LoDashStatic { - eachRight: typeof _.forEachRight; + eachRight: typeof _.forEachRight; // tslint:disable-line:no-unnecessary-qualifier } - interface LoDashImplicitWrapper { + interface LoDashWrapper { + /** + * @see _.forEachRight + */ + eachRight( + this: LoDashWrapper, + iteratee?: ArrayIterator + ): this; + /** * @see _.forEachRight */ eachRight( - iteratee: StringIterator - ): LoDashImplicitWrapper; - } + this: LoDashWrapper, + iteratee?: StringIterator + ): this; - interface LoDashImplicitArrayWrapperBase { /** * @see _.forEachRight */ - eachRight( - iteratee: ListIterator - ): TWrapper; - } + eachRight( + this: LoDashWrapper | null | undefined>, + iteratee?: ListIterator + ): this; - interface LoDashImplicitObjectWrapperBase { /** * @see _.forEachRight */ - eachRight( - iteratee?: ListIterator|DictionaryIterator - ): TWrapper; - } - - interface LoDashExplicitWrapper { - /** - * @see _.forEachRight - */ - eachRight( - iteratee: StringIterator - ): LoDashExplicitWrapper; - } - - interface LoDashExplicitArrayWrapperBase { - /** - * @see _.forEachRight - */ - eachRight( - iteratee: ListIterator - ): TWrapper; - } - - interface LoDashExplicitObjectWrapperBase { - /** - * @see _.forEachRight - */ - eachRight( - iteratee?: ListIterator|DictionaryIterator - ): TWrapper; + eachRight( + this: LoDashWrapper, + iteratee?: ObjectIterator + ): this; } //_.every @@ -6591,15 +4301,7 @@ declare namespace _ { */ every( collection: List | null | undefined, - predicate?: ListIterator - ): boolean; - - /** - * @see _.every - */ - every( - collection: Dictionary | null | undefined, - predicate?: DictionaryIterator + predicate?: ListIteratee ): boolean; /** @@ -6607,107 +4309,67 @@ declare namespace _ { */ every( collection: NumericDictionary | null | undefined, - predicate?: NumericDictionaryIterator + predicate?: NumericDictionaryIteratee + ): boolean; + + /** + * @see _.every + */ + every( + collection: T | null | undefined, + predicate?: ObjectIteratee + ): boolean; + } + + interface LoDashImplicitWrapper { + /** + * @see _.every + */ + every( + this: LoDashImplicitWrapper | null | undefined>, + predicate?: ListIteratee + ): boolean; + + /** + * @see _.every + */ + every( + this: LoDashImplicitWrapper, + predicate?: ObjectIteratee ): boolean; /** * @see _.every */ every( - collection: List|Dictionary|NumericDictionary | null | undefined, - predicate?: string|any[]|PartialObject + this: LoDashImplicitWrapper | null | undefined>, + predicate?: NumericDictionaryIteratee ): boolean; } - interface LoDashImplicitArrayWrapperBase { + interface LoDashExplicitWrapper { /** * @see _.every */ - every( - predicate?: ListIterator|NumericDictionaryIterator - ): boolean; - - /** - * @see _.every - */ - every( - predicate?: string|any[] - ): boolean; - - /** - * @see _.every - */ - every( - predicate?: PartialObject - ): boolean; - } - - interface LoDashImplicitObjectWrapperBase { - /** - * @see _.every - */ - every( - predicate?: ListIterator|DictionaryIterator|NumericDictionaryIterator - ): boolean; - - /** - * @see _.every - */ - every( - predicate?: string|any[] - ): boolean; - - /** - * @see _.every - */ - every( - predicate?: PartialObject - ): boolean; - } - - interface LoDashExplicitArrayWrapperBase { - /** - * @see _.every - */ - every( - predicate?: ListIterator|NumericDictionaryIterator + every( + this: LoDashExplicitWrapper | null | undefined>, + predicate?: ListIteratee ): LoDashExplicitWrapper; /** * @see _.every */ - every( - predicate?: string|any[] + every( + this: LoDashExplicitWrapper, + predicate?: ObjectIteratee ): LoDashExplicitWrapper; /** * @see _.every */ - every( - predicate?: PartialObject - ): LoDashExplicitWrapper; - } - - interface LoDashExplicitObjectWrapperBase { - /** - * @see _.every - */ - every( - predicate?: ListIterator|DictionaryIterator|NumericDictionaryIterator - ): LoDashExplicitWrapper; - - /** - * @see _.every - */ - every( - predicate?: string|any[] - ): LoDashExplicitWrapper; - - /** - * @see _.every - */ - every( - predicate?: PartialObject + every( + this: LoDashExplicitWrapper | null | undefined>, + predicate?: NumericDictionaryIteratee ): LoDashExplicitWrapper; } @@ -6731,132 +4393,126 @@ declare namespace _ { * @param thisArg The this binding of predicate. * @return Returns the new filtered array. */ - filter( - collection: List | null | undefined, - predicate: ListIteratorTypeGuard - ): S[]; - - /** - * @see _.filter - */ - filter( - collection: List | null | undefined, - predicate?: ListIterator - ): T[]; - - /** - * @see _.filter - */ - filter( - collection: Dictionary | null | undefined, - predicate: DictionaryIteratorTypeGuard - ): S[]; - - /** - * @see _.filter - */ - filter( - collection: Dictionary | null | undefined, - predicate?: DictionaryIterator - ): T[]; - - /** - * @see _.filter - */ filter( collection: string | null | undefined, - predicate?: StringIterator + predicate?: StringIterator ): string[]; + /** + * @see _.filter + */ + filter( + collection: List | null | undefined, + predicate: ListIteratorTypeGuard + ): S[]; + /** * @see _.filter */ filter( - collection: List|Dictionary | null | undefined, - predicate: string | [string, any] | RegExp | PartialObject + collection: List | null | undefined, + predicate?: ListIteratee ): T[]; + + /** + * @see _.filter + */ + filter( + collection: T | null | undefined, + predicate: ObjectIteratorTypeGuard + ): S[]; + + /** + * @see _.filter + */ + filter( + collection: T | null | undefined, + predicate?: ObjectIteratee + ): Array; } - interface LoDashImplicitWrapper { + interface LoDashImplicitWrapper { /** * @see _.filter */ filter( - predicate?: StringIterator - ): LoDashImplicitArrayWrapper; - } + this: LoDashImplicitWrapper, + predicate?: StringIterator + ): LoDashImplicitWrapper; - interface LoDashImplicitArrayWrapperBase { - /** - * @see _.filter - */ - filter( - predicate: ListIteratorTypeGuard - ): LoDashImplicitArrayWrapper; - - /** - * @see _.filter - */ - filter( - predicate: ListIterator | string | [string, any] | RegExp | PartialObject - ): LoDashImplicitArrayWrapper; - } - - interface LoDashImplicitObjectWrapperBase { /** * @see _.filter */ filter( + this: LoDashImplicitWrapper | null | undefined>, predicate: ListIteratorTypeGuard - ): LoDashImplicitArrayWrapper; + ): LoDashImplicitWrapper; /** * @see _.filter */ filter( - predicate: ListIterator | DictionaryIterator | string | [string, any] | RegExp | PartialObject - ): LoDashImplicitArrayWrapper; + this: LoDashImplicitWrapper | null | undefined>, + predicate?: ListIteratee + ): LoDashImplicitWrapper; + + /** + * @see _.filter + */ + filter( + this: LoDashImplicitWrapper, + predicate: ObjectIteratorTypeGuard + ): LoDashImplicitWrapper; + + /** + * @see _.filter + */ + filter( + this: LoDashImplicitWrapper, + predicate?: ObjectIteratee + ): LoDashImplicitWrapper>; } - interface LoDashExplicitWrapper { + interface LoDashExplicitWrapper { /** * @see _.filter */ filter( - predicate?: StringIterator - ): LoDashExplicitArrayWrapper; - } + this: LoDashExplicitWrapper, + predicate?: StringIterator + ): LoDashExplicitWrapper; - interface LoDashExplicitArrayWrapperBase { - /** - * @see _.filter - */ - filter( - predicate: ListIteratorTypeGuard - ): LoDashExplicitArrayWrapper; - - /** - * @see _.filter - */ - filter( - predicate: ListIterator | string | [string, any] | RegExp | PartialObject - ): LoDashExplicitArrayWrapper; - } - - interface LoDashExplicitObjectWrapperBase { /** * @see _.filter */ filter( + this: LoDashExplicitWrapper | null | undefined>, predicate: ListIteratorTypeGuard - ): LoDashExplicitArrayWrapper; + ): LoDashExplicitWrapper; /** * @see _.filter */ filter( - predicate: ListIterator | DictionaryIterator | string | [string, any] | RegExp | PartialObject - ): LoDashExplicitArrayWrapper; + this: LoDashExplicitWrapper | null | undefined>, + predicate?: ListIteratee + ): LoDashExplicitWrapper; + + /** + * @see _.filter + */ + filter( + this: LoDashExplicitWrapper, + predicate: ObjectIteratorTypeGuard + ): LoDashExplicitWrapper; + + /** + * @see _.filter + */ + filter( + this: LoDashExplicitWrapper, + predicate?: ObjectIteratee + ): LoDashExplicitWrapper>; } //_.find @@ -6890,43 +4546,35 @@ declare namespace _ { */ find( collection: List | null | undefined, - predicate?: ListIterator, + predicate?: ListIteratee, fromIndex?: number ): T|undefined; /** * @see _.find */ - find( - collection: Dictionary | null | undefined, - predicate: DictionaryIteratorTypeGuard, + find( + collection: T | null | undefined, + predicate: ObjectIteratorTypeGuard, fromIndex?: number ): S|undefined; /** * @see _.find */ - find( - collection: Dictionary | null | undefined, - predicate?: DictionaryIterator, + find( + collection: T | null | undefined, + predicate?: ObjectIteratee, fromIndex?: number - ): T|undefined; - - /** - * @see _.find - */ - find( - collection: List|Dictionary | null | undefined, - predicate?: string | PartialObject | [string, any], - fromIndex?: number - ): T|undefined; + ): T[keyof T]|undefined; } - interface LoDashImplicitArrayWrapperBase { + interface LoDashImplicitWrapper { /** * @see _.find */ - find( + find( + this: LoDashImplicitWrapper | null | undefined>, predicate: ListIteratorTypeGuard, fromIndex?: number ): S|undefined; @@ -6934,30 +4582,67 @@ declare namespace _ { /** * @see _.find */ - find( - predicate?: ListIterator | string | PartialObject | [string, any], + find( + this: LoDashImplicitWrapper | null | undefined>, + predicate?: ListIteratee, fromIndex?: number ): T|undefined; - } - interface LoDashImplicitObjectWrapperBase { /** * @see _.find */ - find( - predicate?: ListIterator | DictionaryIterator | string | PartialObject | [string, any], + find( + this: LoDashImplicitWrapper, + predicate: ObjectIteratorTypeGuard, fromIndex?: number - ): TResult|undefined; - } + ): S|undefined; - interface LoDashExplicitWrapperBase { /** * @see _.find */ - find( - predicate?: ListIterator | string | PartialObject | [string, any], + find( + this: LoDashImplicitWrapper, + predicate?: ObjectIteratee, fromIndex?: number - ): any; + ): T[keyof T]|undefined; + } + + interface LoDashExplicitWrapper { + /** + * @see _.find + */ + find( + this: LoDashExplicitWrapper | null | undefined>, + predicate: ListIteratorTypeGuard, + fromIndex?: number + ): LoDashExplicitWrapper; + + /** + * @see _.find + */ + find( + this: LoDashExplicitWrapper | null | undefined>, + predicate?: ListIteratee, + fromIndex?: number + ): LoDashExplicitWrapper; + + /** + * @see _.find + */ + find( + this: LoDashExplicitWrapper, + predicate: ObjectIteratorTypeGuard, + fromIndex?: number + ): LoDashExplicitWrapper; + + /** + * @see _.find + */ + find( + this: LoDashExplicitWrapper, + predicate?: ObjectIteratee, + fromIndex?: number + ): LoDashExplicitWrapper; } //_.findLast @@ -6981,74 +4666,103 @@ declare namespace _ { */ findLast( collection: List | null | undefined, - predicate?: ListIterator, + predicate?: ListIteratee, fromIndex?: number ): T|undefined; + /** + * @see _.findLast + */ + findLast( + collection: T | null | undefined, + predicate: ObjectIteratorTypeGuard, + fromIndex?: number + ): S|undefined; + + /** + * @see _.findLast + */ + findLast( + collection: T | null | undefined, + predicate?: ObjectIteratee, + fromIndex?: number + ): T[keyof T]|undefined; + } + + interface LoDashImplicitWrapper { /** * @see _.findLast */ findLast( - collection: Dictionary | null | undefined, - predicate: DictionaryIteratorTypeGuard, - fromIndex?: number - ): S|undefined; - - /** - * @see _.findLast - */ - findLast( - collection: Dictionary | null | undefined, - predicate?: DictionaryIterator, - fromIndex?: number - ): T|undefined; - - /** - * @see _.findLast - */ - findLast( - collection: List|Dictionary | null | undefined, - predicate?: string | PartialObject | [string, any], - fromIndex?: number - ): T|undefined; - } - - interface LoDashImplicitArrayWrapperBase { - /** - * @see _.findLast - */ - findLast( + this: LoDashImplicitWrapper | null | undefined>, predicate: ListIteratorTypeGuard, fromIndex?: number + ): S | undefined; + + /** + * @see _.findLast + */ + findLast( + this: LoDashImplicitWrapper | null | undefined>, + predicate?: ListIteratee, + fromIndex?: number + ): T | undefined; + + /** + * @see _.findLast + */ + findLast( + this: LoDashImplicitWrapper, + predicate: ObjectIteratorTypeGuard, + fromIndex?: number ): S|undefined; /** * @see _.findLast */ - findLast( - predicate?: ListIterator | string | PartialObject | [string, any], + findLast( + this: LoDashImplicitWrapper, + predicate?: ObjectIteratee, fromIndex?: number - ): T|undefined; + ): T[keyof T]|undefined; } - interface LoDashImplicitObjectWrapperBase { + interface LoDashExplicitWrapper { /** * @see _.findLast */ - findLast( - predicate?: ListIterator | DictionaryIterator | string | PartialObject | [string, any], + findLast( + this: LoDashExplicitWrapper | null | undefined>, + predicate: ListIteratorTypeGuard, fromIndex?: number - ): TResult|undefined; - } + ): LoDashExplicitWrapper; - interface LoDashExplicitWrapperBase { /** * @see _.findLast */ - findLast( - predicate?: ListIterator | string | PartialObject | [string, any], + findLast( + this: LoDashExplicitWrapper | null | undefined>, + predicate?: ListIteratee, fromIndex?: number - ): any; + ): LoDashExplicitWrapper; + + /** + * @see _.findLast + */ + findLast( + this: LoDashExplicitWrapper, + predicate: ObjectIteratorTypeGuard, + fromIndex?: number + ): LoDashExplicitWrapper; + + /** + * @see _.findLast + */ + findLast( + this: LoDashExplicitWrapper, + predicate?: ObjectIteratee, + fromIndex?: number + ): LoDashExplicitWrapper; } //_.flatMap @@ -7071,15 +4785,7 @@ declare namespace _ { */ flatMap( collection: List | null | undefined, - iteratee: ListIterator> | string - ): TResult[]; - - /** - * @see _.flatMap - */ - flatMap( - collection: Dictionary | null | undefined, - iteratee: DictionaryIterator> | string + iteratee: ListIterator> ): TResult[]; /** @@ -7087,17 +4793,25 @@ declare namespace _ { */ flatMap( collection: NumericDictionary | null | undefined, - iteratee: NumericDictionaryIterator> | string + iteratee: NumericDictionaryIterator> ): TResult[]; /** * @see _.flatMap */ - flatMap( - collection: object | null | undefined, - iteratee?: ObjectIterator> | string + flatMap( + collection: T | null | undefined, + iteratee: ObjectIterator> ): TResult[]; + /** + * @see _.flatMap + */ + flatMap( + collection: object | null | undefined, + iteratee: string + ): any[]; + /** * @see _.flatMap */ @@ -7107,130 +4821,94 @@ declare namespace _ { ): boolean[]; } - interface LoDashImplicitWrapper { + interface LoDashImplicitWrapper { /** * @see _.flatMap */ - flatMap( - iteratee: StringIterator> - ): LoDashImplicitArrayWrapper; + flatMap(this: LoDashImplicitWrapper> | Dictionary> | NumericDictionary> | null | undefined>): LoDashImplicitWrapper; - /** - * @see _.flatMap - */ - flatMap(): LoDashImplicitArrayWrapper; - } - - interface LoDashImplicitArrayWrapperBase { - /** - * @see _.flatMap - */ - flatMap( - iteratee: ListIterator>|string - ): LoDashImplicitArrayWrapper; - - /** - * @see _.flatMap - */ - flatMap( - iteratee: object - ): LoDashImplicitArrayWrapper; - - /** - * @see _.flatMap - */ - flatMap(): LoDashImplicitArrayWrapper; - } - - interface LoDashImplicitObjectWrapperBase { /** * @see _.flatMap */ flatMap( - iteratee: ListIterator>|DictionaryIterator>|NumericDictionaryIterator> - ): LoDashImplicitArrayWrapper; + this: LoDashImplicitWrapper | null | undefined>, + iteratee: ListIterator> + ): LoDashImplicitWrapper; /** * @see _.flatMap */ - flatMap( - iteratee: ObjectIterator>|string - ): LoDashImplicitArrayWrapper; + flatMap( + this: LoDashImplicitWrapper, + iteratee: ObjectIterator> + ): LoDashImplicitWrapper; - /** - * @see _.flatMap - */ - flatMap( - iteratee: object - ): LoDashImplicitArrayWrapper; - - /** - * @see _.flatMap - */ - flatMap(): LoDashImplicitArrayWrapper; - } - - interface LoDashExplicitWrapper { - /** - * @see _.flatMap - */ - flatMap( - iteratee: StringIterator> - ): LoDashExplicitArrayWrapper; - - /** - * @see _.flatMap - */ - flatMap(): LoDashExplicitArrayWrapper; - } - - interface LoDashExplicitArrayWrapperBase { - /** - * @see _.flatMap - */ - flatMap( - iteratee: ListIterator>|string - ): LoDashExplicitArrayWrapper; - - /** - * @see _.flatMap - */ - flatMap( - iteratee: object - ): LoDashExplicitArrayWrapper; - - /** - * @see _.flatMap - */ - flatMap(): LoDashExplicitArrayWrapper; - } - - interface LoDashExplicitObjectWrapperBase { /** * @see _.flatMap */ flatMap( - iteratee: ListIterator>|DictionaryIterator>|NumericDictionaryIterator> - ): LoDashExplicitArrayWrapper; + this: LoDashImplicitWrapper | null | undefined>, + iteratee: NumericDictionaryIterator> + ): LoDashImplicitWrapper; /** * @see _.flatMap */ - flatMap( - iteratee: ObjectIterator>|string - ): LoDashExplicitArrayWrapper; + flatMap( + iteratee: string + ): LoDashImplicitWrapper; /** * @see _.flatMap */ flatMap( iteratee: object - ): LoDashExplicitArrayWrapper; + ): LoDashImplicitWrapper; + } + + interface LoDashExplicitWrapper { + /** + * @see _.flatMap + */ + flatMap(this: LoDashExplicitWrapper> | Dictionary> | NumericDictionary> | null | undefined>): LoDashExplicitWrapper; /** * @see _.flatMap */ - flatMap(): LoDashExplicitArrayWrapper; + flatMap( + this: LoDashExplicitWrapper | null | undefined>, + iteratee: ListIterator> + ): LoDashExplicitWrapper; + + /** + * @see _.flatMap + */ + flatMap( + this: LoDashExplicitWrapper | null | undefined>, + iteratee: NumericDictionaryIterator> + ): LoDashExplicitWrapper; + + /** + * @see _.flatMap + */ + flatMap( + this: LoDashExplicitWrapper, + iteratee: ObjectIterator> + ): LoDashExplicitWrapper; + + /** + * @see _.flatMap + */ + flatMap( + iteratee: string + ): LoDashExplicitWrapper; + + /** + * @see _.flatMap + */ + flatMap( + iteratee: object + ): LoDashExplicitWrapper; } //_.flatMapDeep @@ -7256,7 +4934,7 @@ declare namespace _ { * // => [1, 1, 2, 2] */ flatMapDeep( - collection: List> | Dictionary> | NumericDictionary> | null | undefined + collection: List | T> | Dictionary | T> | NumericDictionary | T> | null | undefined ): T[]; /** @@ -7264,15 +4942,7 @@ declare namespace _ { */ flatMapDeep( collection: List | null | undefined, - iteratee: ListIterator> | string - ): TResult[]; - - /** - * @see _.flatMapDeep - */ - flatMapDeep( - collection: Dictionary | null | undefined, - iteratee: DictionaryIterator> | string + iteratee: ListIterator | TResult> ): TResult[]; /** @@ -7280,17 +4950,25 @@ declare namespace _ { */ flatMapDeep( collection: NumericDictionary | null | undefined, - iteratee: NumericDictionaryIterator> | string + iteratee: NumericDictionaryIterator | TResult> ): TResult[]; /** * @see _.flatMapDeep */ - flatMapDeep( - collection: object | null | undefined, - iteratee?: ObjectIterator> | string + flatMapDeep( + collection: T | null | undefined, + iteratee: ObjectIterator | TResult> ): TResult[]; + /** + * @see _.flatMapDeep + */ + flatMapDeep( + collection: object | null | undefined, + iteratee: string + ): any[]; + /** * @see _.flatMapDeep */ @@ -7300,130 +4978,102 @@ declare namespace _ { ): boolean[]; } - interface LoDashImplicitWrapper { + interface LoDashImplicitWrapper { /** * @see _.flatMapDeep */ - flatMapDeep( - iteratee: StringIterator> - ): LoDashImplicitArrayWrapper; + flatMapDeep( + this: LoDashImplicitWrapper | T> | Dictionary | T> | NumericDictionary | T> | null | undefined> + ): LoDashImplicitWrapper; - /** - * @see _.flatMapDeep - */ - flatMapDeep(): LoDashImplicitArrayWrapper; - } - - interface LoDashImplicitArrayWrapperBase { - /** - * @see _.flatMapDeep - */ - flatMapDeep( - iteratee: ListIterator>|string - ): LoDashImplicitArrayWrapper; - - /** - * @see _.flatMapDeep - */ - flatMapDeep( - iteratee: object - ): LoDashImplicitArrayWrapper; - - /** - * @see _.flatMapDeep - */ - flatMapDeep(): LoDashImplicitArrayWrapper; - } - - interface LoDashImplicitObjectWrapperBase { /** * @see _.flatMapDeep */ flatMapDeep( - iteratee: ListIterator>|DictionaryIterator>|NumericDictionaryIterator> - ): LoDashImplicitArrayWrapper; + this: LoDashImplicitWrapper | null | undefined>, + iteratee: ListIterator | TResult> + ): LoDashImplicitWrapper; - /** - * @see _.flatMapDeep - */ - flatMapDeep( - iteratee: ObjectIterator>|string - ): LoDashImplicitArrayWrapper; - - /** - * @see _.flatMapDeep - */ - flatMapDeep( - iteratee: object - ): LoDashImplicitArrayWrapper; - - /** - * @see _.flatMapDeep - */ - flatMapDeep(): LoDashImplicitArrayWrapper; - } - - interface LoDashExplicitWrapper { - /** - * @see _.flatMapDeep - */ - flatMapDeep( - iteratee: StringIterator> - ): LoDashExplicitArrayWrapper; - - /** - * @see _.flatMapDeep - */ - flatMapDeep(): LoDashExplicitArrayWrapper; - } - - interface LoDashExplicitArrayWrapperBase { - /** - * @see _.flatMapDeep - */ - flatMapDeep( - iteratee: ListIterator>|string - ): LoDashExplicitArrayWrapper; - - /** - * @see _.flatMapDeep - */ - flatMapDeep( - iteratee: object - ): LoDashExplicitArrayWrapper; - - /** - * @see _.flatMapDeep - */ - flatMapDeep(): LoDashExplicitArrayWrapper; - } - - interface LoDashExplicitObjectWrapperBase { /** * @see _.flatMapDeep */ flatMapDeep( - iteratee: ListIterator>|DictionaryIterator>|NumericDictionaryIterator> - ): LoDashExplicitArrayWrapper; + this: LoDashImplicitWrapper | null | undefined>, + iteratee: NumericDictionaryIterator | TResult> + ): LoDashImplicitWrapper; /** * @see _.flatMapDeep */ - flatMapDeep( - iteratee: ObjectIterator>|string - ): LoDashExplicitArrayWrapper; + flatMapDeep( + this: LoDashImplicitWrapper, + iteratee: ObjectIterator | TResult> + ): LoDashImplicitWrapper; /** * @see _.flatMapDeep */ flatMapDeep( - iteratee: object - ): LoDashExplicitArrayWrapper; + this: LoDashImplicitWrapper, + iteratee: string + ): LoDashImplicitWrapper; /** * @see _.flatMapDeep */ - flatMapDeep(): LoDashExplicitArrayWrapper; + flatMapDeep( + this: LoDashImplicitWrapper, + iteratee: object + ): LoDashImplicitWrapper; + } + + interface LoDashExplicitWrapper { + /** + * @see _.flatMapDeep + */ + flatMapDeep( + this: LoDashExplicitWrapper | T> | Dictionary | T> | NumericDictionary | T> | null | undefined> + ): LoDashExplicitWrapper; + + /** + * @see _.flatMapDeep + */ + flatMapDeep( + this: LoDashExplicitWrapper | null | undefined>, + iteratee: ListIterator | TResult> + ): LoDashExplicitWrapper; + + /** + * @see _.flatMapDeep + */ + flatMapDeep( + this: LoDashExplicitWrapper | null | undefined>, + iteratee: NumericDictionaryIterator | TResult> + ): LoDashExplicitWrapper; + + /** + * @see _.flatMapDeep + */ + flatMapDeep( + this: LoDashExplicitWrapper, + iteratee: ObjectIterator | TResult> + ): LoDashExplicitWrapper; + + /** + * @see _.flatMapDeep + */ + flatMapDeep( + this: LoDashExplicitWrapper, + iteratee: string + ): LoDashExplicitWrapper; + + /** + * @see _.flatMapDeep + */ + flatMapDeep( + this: LoDashExplicitWrapper, + iteratee: object + ): LoDashExplicitWrapper; } //_.flatMapDepth @@ -7450,8 +5100,7 @@ declare namespace _ { * // => [[1, 1], [2, 2]] */ flatMapDepth( - collection: List> | Dictionary> | NumericDictionary> | null | undefined, - depth?: number + collection: List | T> | Dictionary | T> | NumericDictionary | T> | null | undefined ): T[]; /** @@ -7459,16 +5108,7 @@ declare namespace _ { */ flatMapDepth( collection: List | null | undefined, - iteratee: ListIterator> | string, - depth?: number - ): TResult[]; - - /** - * @see _.flatMapDepth - */ - flatMapDepth( - collection: Dictionary | null | undefined, - iteratee: DictionaryIterator> | string, + iteratee: ListIterator | TResult>, depth?: number ): TResult[]; @@ -7477,19 +5117,28 @@ declare namespace _ { */ flatMapDepth( collection: NumericDictionary | null | undefined, - iteratee: NumericDictionaryIterator> | string, + iteratee: NumericDictionaryIterator | TResult>, depth?: number ): TResult[]; /** * @see _.flatMapDepth */ - flatMapDepth( - collection: object | null | undefined, - iteratee?: ObjectIterator> | string, + flatMapDepth( + collection: T | null | undefined, + iteratee: ObjectIterator | TResult>, depth?: number ): TResult[]; + /** + * @see _.flatMapDepth + */ + flatMapDepth( + collection: object | null | undefined, + iteratee: string, + depth?: number + ): any[]; + /** * @see _.flatMapDepth */ @@ -7500,142 +5149,112 @@ declare namespace _ { ): boolean[]; } - interface LoDashImplicitWrapper { + interface LoDashImplicitWrapper { /** * @see _.flatMapDepth */ - flatMapDepth( - iteratee: StringIterator>, - depth?: number - ): LoDashImplicitArrayWrapper; + flatMapDepth( + this: LoDashImplicitWrapper | T> | Dictionary | T> | NumericDictionary | T> | null | undefined> + ): LoDashImplicitWrapper; - /** - * @see _.flatMapDepth - */ - flatMapDepth(): LoDashImplicitArrayWrapper; - } - - interface LoDashImplicitArrayWrapperBase { - /** - * @see _.flatMapDepth - */ - flatMapDepth( - iteratee: ListIterator>|string, - depth?: number - ): LoDashImplicitArrayWrapper; - - /** - * @see _.flatMapDepth - */ - flatMapDepth( - iteratee: object, - depth?: number - ): LoDashImplicitArrayWrapper; - - /** - * @see _.flatMapDepth - */ - flatMapDepth(): LoDashImplicitArrayWrapper; - } - - interface LoDashImplicitObjectWrapperBase { /** * @see _.flatMapDepth */ flatMapDepth( - iteratee: ListIterator>|DictionaryIterator>|NumericDictionaryIterator>, + this: LoDashImplicitWrapper | null | undefined>, + iteratee: ListIterator | TResult>, depth?: number - ): LoDashImplicitArrayWrapper; + ): LoDashImplicitWrapper; - /** - * @see _.flatMapDepth - */ - flatMapDepth( - iteratee: ObjectIterator>|string, - depth?: number - ): LoDashImplicitArrayWrapper; - - /** - * @see _.flatMapDepth - */ - flatMapDepth( - iteratee: object, - depth?: number - ): LoDashImplicitArrayWrapper; - - /** - * @see _.flatMapDepth - */ - flatMapDepth(): LoDashImplicitArrayWrapper; - } - - interface LoDashExplicitWrapper { - /** - * @see _.flatMapDepth - */ - flatMapDepth( - iteratee: StringIterator>, - depth?: number - ): LoDashExplicitArrayWrapper; - - /** - * @see _.flatMapDepth - */ - flatMapDepth(): LoDashExplicitArrayWrapper; - } - - interface LoDashExplicitArrayWrapperBase { - /** - * @see _.flatMapDepth - */ - flatMapDepth( - iteratee: ListIterator>|string, - depth?: number - ): LoDashExplicitArrayWrapper; - - /** - * @see _.flatMapDepth - */ - flatMapDepth( - iteratee: object, - depth?: number - ): LoDashExplicitArrayWrapper; - - /** - * @see _.flatMapDepth - */ - flatMapDepth(): LoDashExplicitArrayWrapper; - } - - interface LoDashExplicitObjectWrapperBase { /** * @see _.flatMapDepth */ flatMapDepth( - iteratee: ListIterator>|DictionaryIterator>|NumericDictionaryIterator>, + this: LoDashImplicitWrapper | null | undefined>, + iteratee: NumericDictionaryIterator | TResult>, depth?: number - ): LoDashExplicitArrayWrapper; + ): LoDashImplicitWrapper; /** * @see _.flatMapDepth */ - flatMapDepth( - iteratee: ObjectIterator>|string, + flatMapDepth( + this: LoDashImplicitWrapper, + iteratee: ObjectIterator | TResult>, depth?: number - ): LoDashExplicitArrayWrapper; + ): LoDashImplicitWrapper; /** * @see _.flatMapDepth */ flatMapDepth( - iteratee: object, + this: LoDashImplicitWrapper, + iteratee: string, depth?: number - ): LoDashExplicitArrayWrapper; + ): LoDashImplicitWrapper; /** * @see _.flatMapDepth */ - flatMapDepth(): LoDashExplicitArrayWrapper; + flatMapDepth( + this: LoDashImplicitWrapper, + iteratee: object, + depth?: number + ): LoDashImplicitWrapper; + } + + interface LoDashExplicitWrapper { + /** + * @see _.flatMapDepth + */ + flatMapDepth( + this: LoDashExplicitWrapper | T> | Dictionary | T> | NumericDictionary | T> | null | undefined> + ): LoDashExplicitWrapper; + + /** + * @see _.flatMapDepth + */ + flatMapDepth( + this: LoDashExplicitWrapper | null | undefined>, + iteratee: ListIterator | TResult>, + depth?: number + ): LoDashExplicitWrapper; + + /** + * @see _.flatMapDepth + */ + flatMapDepth( + this: LoDashExplicitWrapper | null | undefined>, + iteratee: NumericDictionaryIterator | TResult>, + depth?: number + ): LoDashExplicitWrapper; + + /** + * @see _.flatMapDepth + */ + flatMapDepth( + this: LoDashExplicitWrapper, + iteratee: ObjectIterator | TResult>, + depth?: number + ): LoDashExplicitWrapper; + + /** + * @see _.flatMapDepth + */ + flatMapDepth( + this: LoDashExplicitWrapper, + iteratee: string, + depth?: number + ): LoDashExplicitWrapper; + + /** + * @see _.flatMapDepth + */ + flatMapDepth( + this: LoDashExplicitWrapper, + iteratee: object, + depth?: number + ): LoDashExplicitWrapper; } //_.forEach @@ -7654,6 +5273,46 @@ declare namespace _ { * @param iteratee The function invoked per iteration. * @param thisArg The this binding of iteratee. */ + forEach( + collection: T[], + iteratee?: ArrayIterator + ): T[]; + + /** + * @see _.forEach + */ + forEach( + collection: string, + iteratee?: StringIterator + ): string; + + /** + * @see _.forEach + */ + forEach( + collection: List, + iteratee?: ListIterator + ): List; + + /** + * @see _.forEach + */ + forEach( + collection: T, + iteratee?: ObjectIterator + ): T; + + /** + * @see _.forEach + */ + forEach( + collection: TArray & (T[] | null | undefined), + iteratee?: ArrayIterator + ): TArray; + + /** + * @see _.forEach + */ forEach( collection: TString, iteratee?: StringIterator @@ -7670,72 +5329,44 @@ declare namespace _ { /** * @see _.forEach */ - forEach | null | undefined>( - collection: TDictionary & (Dictionary | null | undefined), - iteratee?: DictionaryIterator - ): TDictionary; + forEach( + collection: T | null | undefined, + iteratee?: ObjectIterator + ): T | null | undefined; + } + interface LoDashWrapper { /** * @see _.forEach */ - forEach( - collection: T, - iteratee?: ObjectIterator - ): T; - } + forEach( + this: LoDashWrapper, + iteratee?: ArrayIterator + ): this; - interface LoDashImplicitWrapper { /** * @see _.forEach */ forEach( - iteratee: StringIterator - ): LoDashImplicitWrapper; - } + this: LoDashWrapper, + iteratee?: StringIterator + ): this; - interface LoDashImplicitArrayWrapperBase { /** * @see _.forEach */ - forEach( - iteratee: ListIterator - ): TWrapper; - } + forEach( + this: LoDashWrapper | null | undefined>, + iteratee?: ListIterator + ): this; - interface LoDashImplicitObjectWrapperBase { /** * @see _.forEach */ - forEach( - iteratee?: ListIterator|DictionaryIterator - ): TWrapper; - } - - interface LoDashExplicitWrapper { - /** - * @see _.forEach - */ - forEach( - iteratee: StringIterator - ): LoDashExplicitWrapper; - } - - interface LoDashExplicitArrayWrapperBase { - /** - * @see _.forEach - */ - forEach( - iteratee: ListIterator - ): TWrapper; - } - - interface LoDashExplicitObjectWrapperBase { - /** - * @see _.forEach - */ - forEach( - iteratee?: ListIterator|DictionaryIterator - ): TWrapper; + forEach( + this: LoDashWrapper, + iteratee?: ObjectIterator + ): this; } //_.forEachRight @@ -7749,6 +5380,46 @@ declare namespace _ { * @param iteratee The function called per iteration. * @param thisArg The this binding of callback. */ + forEachRight( + collection: T[], + iteratee?: ArrayIterator + ): T[]; + + /** + * @see _.forEachRight + */ + forEachRight( + collection: string, + iteratee?: StringIterator + ): string; + + /** + * @see _.forEachRight + */ + forEachRight( + collection: List, + iteratee?: ListIterator + ): List; + + /** + * @see _.forEachRight + */ + forEachRight( + collection: T, + iteratee?: ObjectIterator + ): T; + + /** + * @see _.forEachRight + */ + forEachRight( + collection: TArray & (T[] | null | undefined), + iteratee?: ArrayIterator + ): TArray; + + /** + * @see _.forEachRight + */ forEachRight( collection: TString, iteratee?: StringIterator @@ -7765,72 +5436,44 @@ declare namespace _ { /** * @see _.forEachRight */ - forEachRight | null | undefined>( - collection: TDictionary & (Dictionary | null | undefined), - iteratee?: DictionaryIterator - ): TDictionary; + forEachRight( + collection: T | null | undefined, + iteratee?: ObjectIterator + ): T | null | undefined; + } + interface LoDashWrapper { /** * @see _.forEachRight */ - forEachRight( - collection: T, - iteratee?: ObjectIterator - ): T; - } + forEachRight( + this: LoDashWrapper, + iteratee?: ArrayIterator + ): this; - interface LoDashImplicitWrapper { /** * @see _.forEachRight */ forEachRight( - iteratee: StringIterator - ): LoDashImplicitWrapper; - } + this: LoDashWrapper, + iteratee?: StringIterator + ): this; - interface LoDashImplicitArrayWrapperBase { /** * @see _.forEachRight */ - forEachRight( - iteratee: ListIterator - ): TWrapper; - } + forEachRight( + this: LoDashWrapper | null | undefined>, + iteratee?: ListIterator + ): this; - interface LoDashImplicitObjectWrapperBase { /** * @see _.forEachRight */ - forEachRight( - iteratee?: ListIterator|DictionaryIterator - ): TWrapper; - } - - interface LoDashExplicitWrapper { - /** - * @see _.forEachRight - */ - forEachRight( - iteratee: StringIterator - ): LoDashExplicitWrapper; - } - - interface LoDashExplicitArrayWrapperBase { - /** - * @see _.forEachRight - */ - forEachRight( - iteratee: ListIterator - ): TWrapper; - } - - interface LoDashExplicitObjectWrapperBase { - /** - * @see _.forEachRight - */ - forEachRight( - iteratee?: ListIterator|DictionaryIterator - ): TWrapper; + forEachRight( + this: LoDashWrapper, + iteratee?: ObjectIterator + ): this; } //_.groupBy @@ -7855,226 +5498,102 @@ declare namespace _ { * @param thisArg The this binding of iteratee. * @return Returns the composed aggregate object. */ - groupBy( - collection: TString, - iteratee?: StringIterator - ): Dictionary; + groupBy( + collection: string | null | undefined, + iteratee?: StringIterator + ): Dictionary; /** * @see _.groupBy */ - groupBy( + groupBy( collection: List | null | undefined, - iteratee?: ListIterator + iteratee?: ListIteratee ): Dictionary; /** * @see _.groupBy */ groupBy( - collection: List | null | undefined, - iteratee?: ListIterator + collection: NumericDictionary | null | undefined, + iteratee?: NumericDictionaryIteratee ): Dictionary; /** * @see _.groupBy */ - groupBy( - collection: Dictionary | null | undefined, - iteratee?: DictionaryIterator - ): Dictionary; - - /** - * @see _.groupBy - */ - groupBy( - collection: Dictionary | null | undefined, - iteratee?: DictionaryIterator - ): Dictionary; - - /** - * @see _.groupBy - */ - groupBy( - collection: List|Dictionary | null | undefined, - iteratee?: string - ): Dictionary; - - /** - * @see _.groupBy - */ - groupBy( - collection: List|Dictionary | null | undefined, - iteratee?: string - ): Dictionary; - - /** - * @see _.groupBy - */ - groupBy( - collection: List|Dictionary | null | undefined, - iteratee?: TWhere - ): Dictionary; - - /** - * @see _.groupBy - */ - groupBy( - collection: List|Dictionary | null | undefined, - iteratee?: Object - ): Dictionary; + groupBy( + collection: T | null | undefined, + iteratee?: ObjectIteratee + ): Dictionary>; } - interface LoDashImplicitWrapper { + interface LoDashImplicitWrapper { /** * @see _.groupBy */ - groupBy( - iteratee?: ListIterator - ): LoDashImplicitObjectWrapper>; + groupBy( + this: LoDashImplicitWrapper, + iteratee?: StringIterator + ): LoDashImplicitWrapper>; + + /** + * @see _.groupBy + */ + groupBy( + this: LoDashImplicitWrapper | null | undefined>, + iteratee?: ListIteratee + ): LoDashImplicitWrapper>; + + /** + * @see _.groupBy + */ + groupBy( + this: LoDashImplicitWrapper, + iteratee?: ObjectIteratee + ): LoDashImplicitWrapper>>; + + /** + * @see _.groupBy + */ + groupBy( + this: LoDashImplicitWrapper | null | undefined>, + iteratee?: NumericDictionaryIteratee + ): LoDashImplicitWrapper>; } - interface LoDashImplicitArrayWrapperBase { + interface LoDashExplicitWrapper { /** * @see _.groupBy */ - groupBy( - iteratee?: ListIterator - ): LoDashImplicitObjectWrapper>; - - /** - * @see _.groupBy - */ - groupBy( - iteratee?: string - ): LoDashImplicitObjectWrapper>; - - /** - * @see _.groupBy - */ - groupBy( - iteratee?: TWhere - ): LoDashImplicitObjectWrapper>; - } - - interface LoDashImplicitObjectWrapperBase { - /** - * @see _.groupBy - */ - groupBy( - iteratee?: ListIterator|DictionaryIterator - ): LoDashImplicitObjectWrapper>; + groupBy( + this: LoDashExplicitWrapper, + iteratee?: StringIterator + ): LoDashExplicitWrapper>; /** * @see _.groupBy */ groupBy( - iteratee?: ListIterator|DictionaryIterator - ): LoDashImplicitObjectWrapper>; - - /** - * @see _.groupBy - */ - groupBy( - iteratee?: string - ): LoDashImplicitObjectWrapper>; + this: LoDashExplicitWrapper | null | undefined>, + iteratee?: ListIteratee + ): LoDashExplicitWrapper>; /** * @see _.groupBy */ groupBy( - iteratee?: string - ): LoDashImplicitObjectWrapper>; + this: LoDashExplicitWrapper | null | undefined>, + iteratee?: NumericDictionaryIteratee + ): LoDashExplicitWrapper>; /** * @see _.groupBy */ - groupBy( - iteratee?: TWhere - ): LoDashImplicitObjectWrapper>; - - /** - * @see _.groupBy - */ - groupBy( - iteratee?: Object - ): LoDashImplicitObjectWrapper>; - } - - interface LoDashExplicitWrapper { - /** - * @see _.groupBy - */ - groupBy( - iteratee?: ListIterator - ): LoDashExplicitObjectWrapper>; - } - - interface LoDashExplicitArrayWrapperBase { - /** - * @see _.groupBy - */ - groupBy( - iteratee?: ListIterator - ): LoDashExplicitObjectWrapper>; - - /** - * @see _.groupBy - */ - groupBy( - iteratee?: string - ): LoDashExplicitObjectWrapper>; - - /** - * @see _.groupBy - */ - groupBy( - iteratee?: TWhere - ): LoDashExplicitObjectWrapper>; - } - - interface LoDashExplicitObjectWrapperBase { - /** - * @see _.groupBy - */ - groupBy( - iteratee?: ListIterator|DictionaryIterator - ): LoDashExplicitObjectWrapper>; - - /** - * @see _.groupBy - */ - groupBy( - iteratee?: ListIterator|DictionaryIterator - ): LoDashExplicitObjectWrapper>; - - /** - * @see _.groupBy - */ - groupBy( - iteratee?: string - ): LoDashExplicitObjectWrapper>; - - /** - * @see _.groupBy - */ - groupBy( - iteratee?: string - ): LoDashExplicitObjectWrapper>; - - /** - * @see _.groupBy - */ - groupBy( - iteratee?: TWhere - ): LoDashExplicitObjectWrapper>; - - /** - * @see _.groupBy - */ - groupBy( - iteratee?: Object - ): LoDashExplicitObjectWrapper>; + groupBy( + this: LoDashExplicitWrapper, + iteratee?: ObjectIteratee + ): LoDashExplicitWrapper>>; } //_.includes @@ -8093,77 +5612,30 @@ declare namespace _ { target: T, fromIndex?: number ): boolean; - - /** - * @see _.includes - */ - includes( - collection: string | null | undefined, - target: string, - fromIndex?: number - ): boolean; } - interface LoDashImplicitArrayWrapperBase { + interface LoDashImplicitWrapper { /** * @see _.includes */ - includes( + includes( + this: LoDashImplicitWrapper | Dictionary | null | undefined>, target: T, fromIndex?: number ): boolean; } - interface LoDashImplicitObjectWrapperBase { + interface LoDashExplicitWrapper { /** * @see _.includes */ - includes( - target: TValue, - fromIndex?: number - ): boolean; - } - - interface LoDashImplicitWrapper { - /** - * @see _.includes - */ - includes( - target: string, - fromIndex?: number - ): boolean; - } - - interface LoDashExplicitArrayWrapperBase { - /** - * @see _.includes - */ - includes( + includes( + this: LoDashExplicitWrapper | Dictionary | null | undefined>, target: T, fromIndex?: number ): LoDashExplicitWrapper; } - interface LoDashExplicitObjectWrapperBase { - /** - * @see _.includes - */ - includes( - target: TValue, - fromIndex?: number - ): LoDashExplicitWrapper; - } - - interface LoDashExplicitWrapper { - /** - * @see _.includes - */ - includes( - target: string, - fromIndex?: number - ): LoDashExplicitWrapper; - } - //_.keyBy interface LoDashStatic { /** @@ -8188,190 +5660,76 @@ declare namespace _ { */ keyBy( collection: List | null | undefined, - iteratee?: ListIterator + iteratee?: ListIteratee ): Dictionary; + /** + * @see _.keyBy + */ + keyBy( + collection: T | null | undefined, + iteratee?: ObjectIteratee + ): Dictionary; + /** * @see _.keyBy */ keyBy( collection: NumericDictionary | null | undefined, - iteratee?: NumericDictionaryIterator - ): Dictionary; - - /** - * @see _.keyBy - */ - keyBy( - collection: Dictionary | null | undefined, - iteratee?: DictionaryIterator - ): Dictionary; - - /** - * @see _.keyBy - */ - keyBy( - collection: List|NumericDictionary|Dictionary | null | undefined, - iteratee?: string - ): Dictionary; - - /** - * @see _.keyBy - */ - keyBy( - collection: List|NumericDictionary|Dictionary | null | undefined, - iteratee?: W - ): Dictionary; - - /** - * @see _.keyBy - */ - keyBy( - collection: List|NumericDictionary|Dictionary | null | undefined, - iteratee?: Object + iteratee?: NumericDictionaryIteratee ): Dictionary; } - interface LoDashImplicitStringWrapper { - /** - * @see _.keyBy - */ - keyBy( - iteratee?: StringIterator | undefined - ): LoDashImplicitObjectWrapper> - } - - interface LoDashExplicitStringWrapper { - /** - * @see _.keyBy - */ - keyBy( - iteratee?: StringIterator | undefined - ): LoDashExplicitObjectWrapper> - } - - interface LoDashImplicitWrapper { - /** - * @see _.keyBy - */ - keyBy( - iteratee?: ListIterator - ): LoDashImplicitObjectWrapper>; - } - - interface LoDashImplicitArrayWrapperBase { - /** - * @see _.keyBy - */ - keyBy( - iteratee?: ListIterator - ): LoDashImplicitObjectWrapper>; - - /** - * @see _.keyBy - */ - keyBy( - iteratee?: string - ): LoDashImplicitObjectWrapper>; - - /** - * @see _.keyBy - */ - keyBy( - iteratee?: W - ): LoDashImplicitObjectWrapper>; - } - - interface LoDashImplicitObjectWrapperBase { + interface LoDashImplicitWrapper { /** * @see _.keyBy */ keyBy( - iteratee?: ListIterator|NumericDictionaryIterator|DictionaryIterator - ): LoDashImplicitObjectWrapper>; + this: LoDashImplicitWrapper | null | undefined>, + iteratee?: ListIteratee + ): LoDashImplicitWrapper>; + + /** + * @see _.keyBy + */ + keyBy( + this: LoDashImplicitWrapper, + iteratee?: ObjectIteratee + ): LoDashImplicitWrapper>; /** * @see _.keyBy */ keyBy( - iteratee?: string - ): LoDashImplicitObjectWrapper>; - - /** - * @see _.keyBy - */ - keyBy( - iteratee?: W - ): LoDashImplicitObjectWrapper>; - - /** - * @see _.keyBy - */ - keyBy( - iteratee?: Object - ): LoDashImplicitObjectWrapper>; + this: LoDashImplicitWrapper | null | undefined>, + iteratee?: NumericDictionaryIteratee + ): LoDashImplicitWrapper>; } - interface LoDashExplicitWrapper { - /** - * @see _.keyBy - */ - keyBy( - iteratee?: ListIterator - ): LoDashExplicitObjectWrapper>; - } - - interface LoDashExplicitArrayWrapperBase { - /** - * @see _.keyBy - */ - keyBy( - iteratee?: ListIterator - ): LoDashExplicitObjectWrapper>; - - /** - * @see _.keyBy - */ - keyBy( - iteratee?: string - ): LoDashExplicitObjectWrapper>; - - /** - * @see _.keyBy - */ - keyBy( - iteratee?: W - ): LoDashExplicitObjectWrapper>; - } - - interface LoDashExplicitObjectWrapperBase { + interface LoDashExplicitWrapper { /** * @see _.keyBy */ keyBy( - iteratee?: ListIterator|NumericDictionaryIterator|DictionaryIterator - ): LoDashExplicitObjectWrapper>; + this: LoDashExplicitWrapper | null | undefined>, + iteratee?: ListIteratee + ): LoDashExplicitWrapper>; + + /** + * @see _.keyBy + */ + keyBy( + this: LoDashExplicitWrapper, + iteratee?: ObjectIteratee + ): LoDashExplicitWrapper>; /** * @see _.keyBy */ keyBy( - iteratee?: string - ): LoDashExplicitObjectWrapper>; - - /** - * @see _.keyBy - */ - keyBy( - iteratee?: W - ): LoDashExplicitObjectWrapper>; - - /** - * @see _.keyBy - */ - keyBy( - iteratee?: Object - ): LoDashExplicitObjectWrapper>; + this: LoDashExplicitWrapper | null | undefined>, + iteratee?: NumericDictionaryIteratee + ): LoDashExplicitWrapper>; } //_.invoke @@ -8382,62 +5740,28 @@ declare namespace _ { * @param path The path of the method to invoke. * @param args The arguments to invoke the method with. **/ - invoke( - object: TObject, - path: Many, - ...args: any[]): TResult; - - /** - * @see _.invoke - **/ - invoke( - object: Dictionary|TValue[], - path: Many, - ...args: any[]): TResult; - - /** - * @see _.invoke - **/ - invoke( + invoke( object: any, path: Many, - ...args: any[]): TResult; + ...args: any[]): any; } - interface LoDashImplicitArrayWrapper { + interface LoDashImplicitWrapper { /** * @see _.invoke **/ - invoke( + invoke( path: Many, - ...args: any[]): TResult; + ...args: any[]): any; } - interface LoDashImplicitObjectWrapper { + interface LoDashExplicitWrapper { /** * @see _.invoke **/ - invoke( + invoke( path: Many, - ...args: any[]): TResult; - } - - interface LoDashExplicitArrayWrapper { - /** - * @see _.invoke - **/ - invoke( - path: Many, - ...args: any[]): TResult; - } - - interface LoDashExplicitObjectWrapper { - /** - * @see _.invoke - **/ - invoke( - path: Many, - ...args: any[]): TResult; + ...args: any[]): LoDashExplicitWrapper; } //_.invokeMap @@ -8451,130 +5775,50 @@ declare namespace _ { * @param methodName The name of the method to invoke. * @param args Arguments to invoke the method with. **/ - invokeMap( - collection: TValue[] | null | undefined, + invokeMap( + collection: object | null | undefined, methodName: string, - ...args: any[]): TResult[]; - - /** - * @see _.invokeMap - **/ - invokeMap( - collection: Dictionary | null | undefined, - methodName: string, - ...args: any[]): TResult[]; + ...args: any[]): any[]; /** * @see _.invokeMap **/ invokeMap( - collection: Array<{}> | null | undefined, - methodName: string, - ...args: any[]): TResult[]; - - /** - * @see _.invokeMap - **/ - invokeMap( - collection: Dictionary<{}> | null | undefined, - methodName: string, - ...args: any[]): TResult[]; - - /** - * @see _.invokeMap - **/ - invokeMap( - collection: TValue[] | null | undefined, - method: (...args: any[]) => TResult, - ...args: any[]): TResult[]; - - /** - * @see _.invokeMap - **/ - invokeMap( - collection: Dictionary | null | undefined, - method: (...args: any[]) => TResult, - ...args: any[]): TResult[]; - - /** - * @see _.invokeMap - **/ - invokeMap( - collection: Array<{}> | null | undefined, - method: (...args: any[]) => TResult, - ...args: any[]): TResult[]; - - /** - * @see _.invokeMap - **/ - invokeMap( - collection: Dictionary<{}> | null | undefined, + collection: object | null | undefined, method: (...args: any[]) => TResult, ...args: any[]): TResult[]; } - interface LoDashImplicitArrayWrapperBase { + interface LoDashImplicitWrapper { /** * @see _.invokeMap **/ - invokeMap( + invokeMap( methodName: string, - ...args: any[]): LoDashImplicitArrayWrapper; + ...args: any[]): LoDashImplicitWrapper; /** * @see _.invokeMap **/ invokeMap( method: (...args: any[]) => TResult, - ...args: any[]): LoDashImplicitArrayWrapper; + ...args: any[]): LoDashImplicitWrapper; } - interface LoDashImplicitObjectWrapperBase { + interface LoDashExplicitWrapper { /** * @see _.invokeMap **/ - invokeMap( + invokeMap( methodName: string, - ...args: any[]): LoDashImplicitArrayWrapper; + ...args: any[]): LoDashExplicitWrapper; /** * @see _.invokeMap **/ invokeMap( method: (...args: any[]) => TResult, - ...args: any[]): LoDashImplicitArrayWrapper; - } - - interface LoDashExplicitArrayWrapperBase { - /** - * @see _.invokeMap - **/ - invokeMap( - methodName: string, - ...args: any[]): LoDashExplicitArrayWrapper; - - /** - * @see _.invokeMap - **/ - invokeMap( - method: (...args: any[]) => TResult, - ...args: any[]): LoDashExplicitArrayWrapper; - } - - interface LoDashExplicitObjectWrapperBase { - /** - * @see _.invokeMap - **/ - invokeMap( - methodName: string, - ...args: any[]): LoDashExplicitArrayWrapper; - - /** - * @see _.invokeMap - **/ - invokeMap( - method: (...args: any[]) => TResult, - ...args: any[]): LoDashExplicitArrayWrapper; + ...args: any[]): LoDashExplicitWrapper; } //_.map @@ -8613,33 +5857,28 @@ declare namespace _ { /** * @see _.map */ - map(collection: List | null | undefined): T[]; + map(collection: List | Dictionary | null | undefined): T[]; /** * @see _.map */ - map( + map( collection: Dictionary | null | undefined, iteratee: DictionaryIterator ): TResult[]; /** @see _.map */ map( - collection: Dictionary | null | undefined, + collection: List | Dictionary | null | undefined, iteratee: K - ): T[K][]; + ): Array; /** @see _.map */ - map(collection: Dictionary | null | undefined): T[]; - - map( + map( collection: NumericDictionary | null | undefined, iteratee?: NumericDictionaryIterator ): TResult[]; - /** @see _.map */ - map(collection: List | null | undefined, iteratee: K): T[K][]; - /** * @see _.map */ @@ -8651,125 +5890,114 @@ declare namespace _ { /** * @see _.map */ - map( + map( collection: List|Dictionary|NumericDictionary | null | undefined, - iteratee?: TObject + iteratee?: object ): boolean[]; } - interface LoDashImplicitArrayWrapperBase { + interface LoDashImplicitWrapper { /** * @see _.map */ - map( + map( + this: LoDashImplicitWrapper | null | undefined>, iteratee: ListIterator - ): LoDashImplicitArrayWrapper; + ): LoDashImplicitWrapper; /** * @see _.map */ - map(): LoDashImplicitArrayWrapper; + map(this: LoDashImplicitWrapper | Dictionary | null | undefined>): LoDashImplicitWrapper; + + /** + * @see _.map + */ + map( + this: LoDashImplicitWrapper | null | undefined>, + iteratee: DictionaryIterator + ): LoDashImplicitWrapper; /** @see _.map */ - map(iteratee: K): LoDashImplicitArrayWrapper; + map( + this: LoDashImplicitWrapper | Dictionary | null | undefined>, + iteratee: K + ): LoDashImplicitWrapper>; + + /** @see _.map */ + map( + this: LoDashImplicitWrapper | null | undefined>, + iteratee?: NumericDictionaryIterator + ): LoDashImplicitWrapper; /** * @see _.map */ - map( - iteratee: string - ): LoDashImplicitArrayWrapper; + map( + this: LoDashImplicitWrapper | Dictionary | NumericDictionary | null | undefined>, + iteratee?: string + ): LoDashImplicitWrapper; /** * @see _.map */ - map( - iteratee: TObject - ): LoDashImplicitArrayWrapper; + map( + this: LoDashImplicitWrapper | Dictionary | NumericDictionary | null | undefined>, + iteratee?: object + ): LoDashImplicitWrapper; } - interface LoDashImplicitObjectWrapperBase { + interface LoDashExplicitWrapper { /** * @see _.map */ - map( - iteratee: ListIterator|DictionaryIterator - ): LoDashImplicitArrayWrapper; - - /** @see _.map */ - map(): LoDashImplicitArrayWrapper; - - /** @see _.map */ - map(iteratee: K): LoDashImplicitArrayWrapper; - - /** - * @see _.map - */ - map( - iteratee: string - ): LoDashImplicitArrayWrapper; - - /** - * @see _.map - */ - map( - iteratee: TObject - ): LoDashImplicitArrayWrapper; - } - - interface LoDashExplicitArrayWrapperBase { - /** - * @see _.map - */ - map( + map( + this: LoDashExplicitWrapper | null | undefined>, iteratee: ListIterator - ): LoDashExplicitArrayWrapper; + ): LoDashExplicitWrapper; + + /** + * @see _.map + */ + map(this: LoDashExplicitWrapper | Dictionary | null | undefined>): LoDashExplicitWrapper; + + /** + * @see _.map + */ + map( + this: LoDashExplicitWrapper | null | undefined>, + iteratee: DictionaryIterator + ): LoDashExplicitWrapper; /** @see _.map */ - map(): LoDashExplicitArrayWrapper; - - /** @see _.map */ - map(iteratee: K): LoDashExplicitArrayWrapper; + map( + this: LoDashExplicitWrapper | Dictionary | null | undefined>, + iteratee: K + ): LoDashExplicitWrapper>; /** * @see _.map */ - map( - iteratee: string - ): LoDashExplicitArrayWrapper; + map( + this: LoDashExplicitWrapper | null | undefined>, + iteratee?: NumericDictionaryIterator + ): LoDashExplicitWrapper; /** * @see _.map */ - map( - iteratee: TObject - ): LoDashExplicitArrayWrapper; - } - - interface LoDashExplicitObjectWrapperBase { - /** - * @see _.map - */ - map( - iteratee: ListIterator|DictionaryIterator - ): LoDashExplicitArrayWrapper; - - /** @see _.map */ - map(): LoDashExplicitArrayWrapper; + map( + this: LoDashExplicitWrapper | Dictionary | NumericDictionary | null | undefined>, + iteratee?: string + ): LoDashExplicitWrapper; /** * @see _.map */ - map( - iteratee: string - ): LoDashExplicitArrayWrapper; - - /** - * @see _.map - */ - map( - iteratee: TObject - ): LoDashExplicitArrayWrapper; + map( + this: LoDashExplicitWrapper | Dictionary | NumericDictionary | null | undefined>, + iteratee?: object + ): LoDashExplicitWrapper; } //_.partition @@ -8795,123 +6023,52 @@ declare namespace _ { **/ partition( collection: List | null | undefined, - callback: ListIterator): T[][]; + callback: ValueIteratee + ): T[][]; /** * @see _.partition - **/ - partition( - collection: Dictionary | null | undefined, - callback: DictionaryIterator): T[][]; - - /** - * @see _.partition - **/ - partition( - collection: List | null | undefined, - whereValue: W): T[][]; - - /** - * @see _.partition - **/ - partition( - collection: Dictionary | null | undefined, - whereValue: W): T[][]; - - /** - * @see _.partition - **/ - partition( - collection: List | null | undefined, - path: string, - srcValue: any): T[][]; - - /** - * @see _.partition - **/ - partition( - collection: Dictionary | null | undefined, - path: string, - srcValue: any): T[][]; - - /** - * @see _.partition - **/ - partition( - collection: List | null | undefined, - pluckValue: string): T[][]; - - /** - * @see _.partition - **/ - partition( - collection: Dictionary | null | undefined, - pluckValue: string): T[][]; + */ + partition( + collection: T | null | undefined, + callback: ValueIteratee + ): Array>; } - interface LoDashImplicitStringWrapper { + interface LoDashImplicitWrapper { /** * @see _.partition */ - partition( - callback: ListIterator): LoDashImplicitArrayWrapper; + partition( + this: LoDashImplicitWrapper | null | undefined>, + callback: ValueIteratee + ): LoDashImplicitWrapper; + + /** + * @see _.partition + */ + partition( + this: LoDashImplicitWrapper, + callback: ValueIteratee + ): LoDashImplicitWrapper>>; } - interface LoDashImplicitArrayWrapperBase { + interface LoDashExplicitWrapper { /** * @see _.partition */ - partition( - callback: ListIterator): LoDashImplicitArrayWrapper; - /** - * @see _.partition - */ - partition( - whereValue: W): LoDashImplicitArrayWrapper; - /** - * @see _.partition - */ - partition( - path: string, - srcValue: any): LoDashImplicitArrayWrapper; - /** - * @see _.partition - */ - partition( - pluckValue: string): LoDashImplicitArrayWrapper; - } - - interface LoDashImplicitObjectWrapperBase { - /** - * @see _.partition - */ - partition( - callback: ListIterator): LoDashImplicitArrayWrapper; + partition( + this: LoDashExplicitWrapper | null | undefined>, + callback: ValueIteratee + ): LoDashExplicitWrapper; /** * @see _.partition */ - partition( - callback: DictionaryIterator): LoDashImplicitArrayWrapper; - - /** - * @see _.partition - */ - partition( - whereValue: W): LoDashImplicitArrayWrapper; - - /** - * @see _.partition - */ - partition( - path: string, - srcValue: any): LoDashImplicitArrayWrapper; - - /** - * @see _.partition - */ - partition( - pluckValue: string): LoDashImplicitArrayWrapper; + partition( + this: LoDashExplicitWrapper, + callback: ValueIteratee + ): LoDashExplicitWrapper>>; } //_.reduce @@ -8925,125 +6082,212 @@ declare namespace _ { * @param collection The collection to iterate over. * @param callback The function called per iteration. * @param accumulator Initial value of the accumulator. - * @param thisArg The this binding of callback. * @return Returns the accumulated value. **/ reduce( collection: T[] | null | undefined, - callback: MemoIterator, - accumulator: TResult): TResult; + callback: MemoListIterator, + accumulator: TResult + ): TResult; /** - * @see _.reduce - **/ + * @see _.reduce + **/ reduce( collection: List | null | undefined, - callback: MemoIterator, - accumulator: TResult): TResult; + callback: MemoListIterator>, + accumulator: TResult + ): TResult; /** - * @see _.reduce - **/ - reduce( - collection: Dictionary | null | undefined, - callback: MemoIterator, - accumulator: TResult): TResult; + * @see _.reduce + **/ + reduce( + collection: T | null | undefined, + callback: MemoObjectIterator, + accumulator: TResult + ): TResult; /** - * @see _.reduce - **/ + * @see _.reduce + **/ reduce( collection: NumericDictionary | null | undefined, - callback: MemoIterator, - accumulator: TResult): TResult; + callback: MemoListIterator>, + accumulator: TResult + ): TResult; /** - * @see _.reduce - **/ + * @see _.reduce + **/ reduce( collection: T[] | null | undefined, - callback: MemoIterator): TResult | undefined; + callback: MemoListIterator + ): TResult | undefined; /** * @see _.reduce **/ reduce( collection: List | null | undefined, - callback: MemoIterator): TResult | undefined; + callback: MemoListIterator> + ): TResult | undefined; /** - * @see _.reduce - **/ - reduce( - collection: Dictionary | null | undefined, - callback: MemoIterator): TResult | undefined; + * @see _.reduce + **/ + reduce( + collection: T | null | undefined, + callback: MemoObjectIterator + ): TResult | undefined; /** * @see _.reduce **/ reduce( collection: NumericDictionary | null | undefined, - callback: MemoIterator): TResult | undefined; + callback: MemoListIterator> + ): TResult | undefined; } - interface LoDashImplicitArrayWrapperBase { + interface LoDashImplicitWrapper { /** * @see _.reduce **/ - reduce( - callback: MemoIterator, - accumulator: TResult): TResult; - - /** - * @see _.reduce - **/ - reduce( - callback: MemoIterator): TResult | undefined; - } - - interface LoDashImplicitObjectWrapperBase { - /** - * @see _.reduce - **/ - reduce( - callback: MemoIterator, - accumulator: TResult): TResult; - - /** - * @see _.reduce - **/ - reduce( - callback: MemoIterator): TResult | undefined; - } - - interface LoDashExplicitObjectWrapperBase { - /** - * @see _.reduce - **/ - reduce( - callback: MemoIterator, - accumulator: TResult): LoDashExplicitObjectWrapper; - - /** - * @see _.reduce - **/ - reduce( - callback: MemoIterator): LoDashExplicitObjectWrapper; - } - - interface LoDashExplicitArrayWrapperBase { - /**LoDashExplicitWrapper - * @see _.reduce - */ - reduce( - callback: MemoIterator, - accumulator: TResult): LoDashExplicitWrapper; + reduce( + this: LoDashImplicitWrapper, + callback: MemoListIterator, + accumulator: TResult + ): TResult; /** * @see _.reduce - */ - reduce( - callback: MemoIterator): LoDashExplicitWrapper; + **/ + reduce( + this: LoDashImplicitWrapper | null | undefined>, + callback: MemoListIterator>, + accumulator: TResult + ): TResult; + + /** + * @see _.reduce + **/ + reduce( + this: LoDashImplicitWrapper, + callback: MemoObjectIterator, + accumulator: TResult + ): TResult; + + /** + * @see _.reduce + **/ + reduce( + this: LoDashImplicitWrapper | null | undefined>, + callback: MemoListIterator>, + accumulator: TResult + ): TResult; + + /** + * @see _.reduce + **/ + reduce( + this: LoDashImplicitWrapper, + callback: MemoListIterator + ): TResult | undefined; + + /** + * @see _.reduce + **/ + reduce( + this: LoDashImplicitWrapper | null | undefined>, + callback: MemoListIterator> + ): TResult | undefined; + + /** + * @see _.reduce + **/ + reduce( + this: LoDashImplicitWrapper, + callback: MemoObjectIterator + ): TResult | undefined; + + /** + * @see _.reduce + **/ + reduce( + this: LoDashImplicitWrapper | null | undefined>, + callback: MemoListIterator> + ): TResult | undefined; + } + + interface LoDashExplicitWrapper { + /** + * @see _.reduce + **/ + reduce( + this: LoDashExplicitWrapper, + callback: MemoListIterator, + accumulator: TResult + ): LoDashExplicitWrapper; + + /** + * @see _.reduce + **/ + reduce( + this: LoDashExplicitWrapper | null | undefined>, + callback: MemoListIterator>, + accumulator: TResult + ): LoDashExplicitWrapper; + + /** + * @see _.reduce + **/ + reduce( + this: LoDashExplicitWrapper, + callback: MemoObjectIterator, + accumulator: TResult + ): LoDashExplicitWrapper; + + /** + * @see _.reduce + **/ + reduce( + this: LoDashExplicitWrapper | null | undefined>, + callback: MemoListIterator>, + accumulator: TResult + ): LoDashExplicitWrapper; + + /** + * @see _.reduce + **/ + reduce( + this: LoDashExplicitWrapper, + callback: MemoListIterator + ): LoDashExplicitWrapper; + + /** + * @see _.reduce + **/ + reduce( + this: LoDashExplicitWrapper | null | undefined>, + callback: MemoListIterator> + ): LoDashExplicitWrapper; + + /** + * @see _.reduce + **/ + reduce( + this: LoDashExplicitWrapper, + callback: MemoObjectIterator + ): LoDashExplicitWrapper; + + /** + * @see _.reduce + **/ + reduce( + this: LoDashExplicitWrapper | null | undefined>, + callback: MemoListIterator> + ): LoDashExplicitWrapper; } //_.reduceRight @@ -9054,50 +6298,212 @@ declare namespace _ { * @param collection The collection to iterate over. * @param callback The function called per iteration. * @param accumulator Initial value of the accumulator. - * @param thisArg The this binding of callback. * @return The accumulated value. **/ reduceRight( collection: T[] | null | undefined, - callback: MemoIterator, - accumulator: TResult): TResult; + callback: MemoListIterator, + accumulator: TResult + ): TResult; /** * @see _.reduceRight **/ reduceRight( collection: List | null | undefined, - callback: MemoIterator, - accumulator: TResult): TResult; + callback: MemoListIterator>, + accumulator: TResult + ): TResult; + + /** + * @see _.reduceRight + **/ + reduceRight( + collection: T | null | undefined, + callback: MemoObjectIterator, + accumulator: TResult + ): TResult; /** * @see _.reduceRight **/ reduceRight( - collection: Dictionary | null | undefined, - callback: MemoIterator, - accumulator: TResult): TResult; + collection: NumericDictionary | null | undefined, + callback: MemoListIterator>, + accumulator: TResult + ): TResult; /** * @see _.reduceRight **/ reduceRight( collection: T[] | null | undefined, - callback: MemoIterator): TResult | undefined; + callback: MemoListIterator + ): TResult | undefined; /** * @see _.reduceRight **/ reduceRight( collection: List | null | undefined, - callback: MemoIterator): TResult | undefined; + callback: MemoListIterator> + ): TResult | undefined; + + /** + * @see _.reduceRight + **/ + reduceRight( + collection: T | null | undefined, + callback: MemoObjectIterator + ): TResult | undefined; /** * @see _.reduceRight **/ reduceRight( - collection: Dictionary | null | undefined, - callback: MemoIterator): TResult | undefined; + collection: NumericDictionary | null | undefined, + callback: MemoListIterator> + ): TResult | undefined; + } + + interface LoDashImplicitWrapper { + /** + * @see _.reduceRight + **/ + reduceRight( + this: LoDashImplicitWrapper, + callback: MemoListIterator, + accumulator: TResult + ): TResult; + + /** + * @see _.reduceRight + **/ + reduceRight( + this: LoDashImplicitWrapper | null | undefined>, + callback: MemoListIterator>, + accumulator: TResult + ): TResult; + + /** + * @see _.reduceRight + **/ + reduceRight( + this: LoDashImplicitWrapper, + callback: MemoObjectIterator, + accumulator: TResult + ): TResult; + + /** + * @see _.reduceRight + **/ + reduceRight( + this: LoDashImplicitWrapper | null | undefined>, + callback: MemoListIterator>, + accumulator: TResult + ): TResult; + + /** + * @see _.reduceRight + **/ + reduceRight( + this: LoDashImplicitWrapper, + callback: MemoListIterator + ): TResult | undefined; + + /** + * @see _.reduceRight + **/ + reduceRight( + this: LoDashImplicitWrapper | null | undefined>, + callback: MemoListIterator> + ): TResult | undefined; + + /** + * @see _.reduceRight + **/ + reduceRight( + this: LoDashImplicitWrapper, + callback: MemoObjectIterator + ): TResult | undefined; + + /** + * @see _.reduceRight + **/ + reduceRight( + this: LoDashImplicitWrapper | null | undefined>, + callback: MemoListIterator> + ): TResult | undefined; + } + + interface LoDashExplicitWrapper { + /** + * @see _.reduceRight + **/ + reduceRight( + this: LoDashExplicitWrapper, + callback: MemoListIterator, + accumulator: TResult + ): LoDashExplicitWrapper; + + /** + * @see _.reduceRight + **/ + reduceRight( + this: LoDashExplicitWrapper | null | undefined>, + callback: MemoListIterator>, + accumulator: TResult + ): LoDashExplicitWrapper; + + /** + * @see _.reduceRight + **/ + reduceRight( + this: LoDashExplicitWrapper, + callback: MemoObjectIterator, + accumulator: TResult + ): LoDashExplicitWrapper; + + /** + * @see _.reduceRight + **/ + reduceRight( + this: LoDashExplicitWrapper | null | undefined>, + callback: MemoListIterator>, + accumulator: TResult + ): LoDashExplicitWrapper; + + /** + * @see _.reduceRight + **/ + reduceRight( + this: LoDashExplicitWrapper, + callback: MemoListIterator + ): LoDashExplicitWrapper; + + /** + * @see _.reduceRight + **/ + reduceRight( + this: LoDashExplicitWrapper | null | undefined>, + callback: MemoListIterator> + ): LoDashExplicitWrapper; + + /** + * @see _.reduceRight + **/ + reduceRight( + this: LoDashExplicitWrapper, + callback: MemoObjectIterator + ): LoDashExplicitWrapper; + + /** + * @see _.reduceRight + **/ + reduceRight( + this: LoDashExplicitWrapper | null | undefined>, + callback: MemoListIterator> + ): LoDashExplicitWrapper; } //_.reject @@ -9111,144 +6517,78 @@ declare namespace _ { * @param thisArg The this binding of predicate. * @return Returns the new filtered array. */ - reject( - collection: List | null | undefined, - predicate?: ListIterator - ): T[]; - - /** - * @see _.reject - */ - reject( - collection: Dictionary | null | undefined, - predicate?: DictionaryIterator - ): T[]; - - /** - * @see _.reject - */ reject( collection: string | null | undefined, - predicate?: StringIterator + predicate?: StringIterator ): string[]; /** * @see _.reject */ reject( - collection: List|Dictionary | null | undefined, - predicate: string + collection: List | null | undefined, + predicate?: ListIteratee ): T[]; /** * @see _.reject */ - reject( - collection: List|Dictionary | null | undefined, - predicate: W - ): T[]; + reject( + collection: T | null | undefined, + predicate?: ObjectIteratee + ): Array; } - interface LoDashImplicitWrapper { + interface LoDashImplicitWrapper { /** * @see _.reject */ reject( - predicate?: StringIterator - ): LoDashImplicitArrayWrapper; - } - - interface LoDashImplicitArrayWrapperBase { - /** - * @see _.reject - */ - reject( - predicate: ListIterator - ): LoDashImplicitArrayWrapper; - - /** - * @see _.reject - */ - reject( - predicate: string - ): LoDashImplicitArrayWrapper; - - /** - * @see _.reject - */ - reject(predicate: W): LoDashImplicitArrayWrapper; - } - - interface LoDashImplicitObjectWrapperBase { - /** - * @see _.reject - */ - reject( - predicate: ListIterator|DictionaryIterator - ): LoDashImplicitArrayWrapper; + this: LoDashImplicitWrapper, + predicate?: StringIterator + ): LoDashImplicitWrapper; /** * @see _.reject */ reject( - predicate: string - ): LoDashImplicitArrayWrapper; + this: LoDashImplicitWrapper | null | undefined>, + predicate?: ListIteratee + ): LoDashImplicitWrapper; /** * @see _.reject */ - reject(predicate: W): LoDashImplicitArrayWrapper; + reject( + this: LoDashImplicitWrapper, + predicate?: ObjectIteratee + ): LoDashImplicitWrapper>; } - interface LoDashExplicitWrapper { + interface LoDashExplicitWrapper { /** * @see _.reject */ reject( - predicate?: StringIterator - ): LoDashExplicitArrayWrapper; - } - - interface LoDashExplicitArrayWrapperBase { - /** - * @see _.reject - */ - reject( - predicate: ListIterator - ): LoDashExplicitArrayWrapper; - - /** - * @see _.reject - */ - reject( - predicate: string - ): LoDashExplicitArrayWrapper; - - /** - * @see _.reject - */ - reject(predicate: W): LoDashExplicitArrayWrapper; - } - - interface LoDashExplicitObjectWrapperBase { - /** - * @see _.reject - */ - reject( - predicate: ListIterator|DictionaryIterator - ): LoDashExplicitArrayWrapper; + this: LoDashExplicitWrapper, + predicate?: StringIterator + ): LoDashExplicitWrapper; /** * @see _.reject */ reject( - predicate: string - ): LoDashExplicitArrayWrapper; + this: LoDashExplicitWrapper | null | undefined>, + predicate?: ListIteratee + ): LoDashExplicitWrapper; /** * @see _.reject */ - reject(predicate: W): LoDashExplicitArrayWrapper; + reject( + this: LoDashExplicitWrapper, + predicate?: ObjectIteratee + ): LoDashExplicitWrapper>; } //_.sample @@ -9260,50 +6600,68 @@ declare namespace _ { * @return Returns the random element. */ sample( - collection: List | Dictionary | NumericDictionary | object | null | undefined + collection: List | Dictionary | NumericDictionary | null | undefined ): T | undefined; - } - interface LoDashImplicitWrapper { /** * @see _.sample */ - sample(): string | undefined; - } + sample( + collection: T + ): T[keyof T]; - interface LoDashImplicitArrayWrapperBase { /** * @see _.sample */ - sample(): T | undefined; + sample( + collection: T | null | undefined + ): T[keyof T] | undefined; } - interface LoDashImplicitObjectWrapperBase { + interface LoDashImplicitWrapper { /** * @see _.sample */ - sample(): T | undefined; - } + sample( + this: LoDashImplicitWrapper | Dictionary | NumericDictionary | null | undefined> + ): T | undefined; - interface LoDashExplicitWrapper { /** * @see _.sample */ - sample(): LoDashExplicitWrapper; - } + sample( + this: LoDashImplicitWrapper, + ): T[keyof T]; - interface LoDashExplicitArrayWrapperBase { /** * @see _.sample */ - sample(): TWrapper; + sample( + this: LoDashImplicitWrapper + ): T[keyof T] | undefined; } - interface LoDashExplicitObjectWrapperBase { + interface LoDashExplicitWrapper { /** * @see _.sample */ - sample(): TWrapper; + sample( + this: LoDashExplicitWrapper | Dictionary | NumericDictionary | null | undefined> + ): LoDashExplicitWrapper; + + /** + * @see _.sample + */ + sample( + this: LoDashExplicitWrapper, + ): LoDashExplicitWrapper; + + /** + * @see _.sample + */ + sample( + this: LoDashExplicitWrapper + ): LoDashExplicitWrapper; } //_.sampleSize @@ -9323,72 +6681,46 @@ declare namespace _ { /** * @see _.sampleSize */ - sampleSize( - collection: O | null | undefined, + sampleSize( + collection: T | null | undefined, n?: number - ): T[]; + ): Array; + } + interface LoDashImplicitWrapper { /** * @see _.sampleSize */ sampleSize( - collection: Object | null | undefined, + this: LoDashImplicitWrapper|Dictionary|NumericDictionary | null | undefined>, n?: number - ): T[]; - } + ): LoDashImplicitWrapper; - interface LoDashImplicitWrapper { /** * @see _.sampleSize */ - sampleSize( + sampleSize( + this: LoDashImplicitWrapper, n?: number - ): LoDashImplicitArrayWrapper; + ): LoDashImplicitWrapper>; } - interface LoDashImplicitArrayWrapperBase { - /** - * @see _.sampleSize - */ - sampleSize( - n?: number - ): LoDashImplicitArrayWrapper; - } - - interface LoDashImplicitObjectWrapperBase { + interface LoDashExplicitWrapper { /** * @see _.sampleSize */ sampleSize( + this: LoDashExplicitWrapper|Dictionary|NumericDictionary | null | undefined>, n?: number - ): LoDashImplicitArrayWrapper; - } + ): LoDashExplicitWrapper; - interface LoDashExplicitWrapper { /** * @see _.sampleSize */ - sampleSize( + sampleSize( + this: LoDashExplicitWrapper, n?: number - ): LoDashExplicitArrayWrapper; - } - - interface LoDashExplicitArrayWrapperBase { - /** - * @see _.sampleSize - */ - sampleSize( - n?: number - ): LoDashExplicitArrayWrapper; - } - - interface LoDashExplicitObjectWrapperBase { - /** - * @see _.sampleSize - */ - sampleSize( - n?: number - ): LoDashExplicitArrayWrapper; + ): LoDashExplicitWrapper>; } //_.shuffle @@ -9399,54 +6731,36 @@ declare namespace _ { * @param collection The collection to shuffle. * @return Returns the new shuffled array. */ - shuffle(collection: List|Dictionary | null | undefined): T[]; + shuffle(collection: List | null | undefined): T[]; /** * @see _.shuffle */ - shuffle(collection: string | null | undefined): string[]; + shuffle(collection: T | null | undefined): Array; } - interface LoDashImplicitWrapper { + interface LoDashImplicitWrapper { /** * @see _.shuffle */ - shuffle(): LoDashImplicitArrayWrapper; + shuffle(this: LoDashImplicitWrapper | null | undefined>): LoDashImplicitWrapper; + + /** + * @see _.shuffle + */ + shuffle(this: LoDashImplicitWrapper): LoDashImplicitWrapper>; } - interface LoDashImplicitArrayWrapperBase { + interface LoDashExplicitWrapper { /** * @see _.shuffle */ - shuffle(): LoDashImplicitArrayWrapper; - } + shuffle(this: LoDashExplicitWrapper | null | undefined>): LoDashExplicitWrapper; - interface LoDashImplicitObjectWrapperBase { /** * @see _.shuffle */ - shuffle(): LoDashImplicitArrayWrapper; - } - - interface LoDashExplicitWrapper { - /** - * @see _.shuffle - */ - shuffle(): LoDashExplicitArrayWrapper; - } - - interface LoDashExplicitArrayWrapperBase { - /** - * @see _.shuffle - */ - shuffle(): LoDashExplicitArrayWrapper; - } - - interface LoDashExplicitObjectWrapperBase { - /** - * @see _.shuffle - */ - shuffle(): LoDashExplicitArrayWrapper; + shuffle(this: LoDashExplicitWrapper): LoDashExplicitWrapper>; } //_.size @@ -9458,50 +6772,17 @@ declare namespace _ { * @param collection The collection to inspect. * @return Returns the size of collection. */ - size(collection: List|Dictionary | null | undefined): number; - - /** - * @see _.size - */ - size(collection: string | null | undefined): number; + size(collection: object | string | null | undefined): number; } - interface LoDashImplicitWrapper { + interface LoDashImplicitWrapper { /** * @see _.size */ size(): number; } - interface LoDashImplicitArrayWrapperBase { - /** - * @see _.size - */ - size(): number; - } - - interface LoDashImplicitObjectWrapperBase { - /** - * @see _.size - */ - size(): number; - } - - interface LoDashExplicitWrapper { - /** - * @see _.size - */ - size(): LoDashExplicitWrapper; - } - - interface LoDashExplicitArrayWrapperBase { - /** - * @see _.size - */ - size(): LoDashExplicitWrapper; - } - - interface LoDashExplicitObjectWrapperBase { + interface LoDashExplicitWrapper { /** * @see _.size */ @@ -9520,15 +6801,15 @@ declare namespace _ { */ some( collection: List | null | undefined, - predicate?: ListIterator + predicate?: ListIteratee ): boolean; /** * @see _.some */ - some( - collection: Dictionary | null | undefined, - predicate?: DictionaryIterator + some( + collection: T | null | undefined, + predicate?: ObjectIteratee ): boolean; /** @@ -9536,146 +6817,59 @@ declare namespace _ { */ some( collection: NumericDictionary | null | undefined, - predicate?: NumericDictionaryIterator + predicate?: NumericDictionaryIteratee + ): boolean; + } + + interface LoDashImplicitWrapper { + /** + * @see _.some + */ + some( + this: LoDashImplicitWrapper | null | undefined>, + predicate?: ListIteratee ): boolean; /** * @see _.some */ - some( - collection: Object | null | undefined, - predicate?: ObjectIterator + some( + this: LoDashImplicitWrapper, + predicate?: ObjectIteratee ): boolean; /** * @see _.some */ some( - collection: List|Dictionary|NumericDictionary | null | undefined, - predicate?: string|[string, any] + this: LoDashImplicitWrapper | null | undefined>, + predicate?: NumericDictionaryIteratee ): boolean; + } + + interface LoDashExplicitWrapper { + /** + * @see _.some + */ + some( + this: LoDashExplicitWrapper | null | undefined>, + predicate?: ListIteratee + ): LoDashExplicitWrapper; /** * @see _.some */ - some( - collection: Object | null | undefined, - predicate?: string|[string, any] - ): boolean; + some( + this: LoDashExplicitWrapper, + predicate?: ObjectIteratee + ): LoDashExplicitWrapper; /** * @see _.some */ some( - collection: List|Dictionary|NumericDictionary | null | undefined, - predicate?: PartialObject - ): boolean; - - /** - * @see _.some - */ - some( - collection: List|Dictionary|NumericDictionary | null | undefined, - predicate?: PartialObject - ): boolean; - - /** - * @see _.some - */ - some( - collection: Object | null | undefined, - predicate?: PartialObject - ): boolean; - } - - interface LoDashImplicitArrayWrapperBase { - /** - * @see _.some - */ - some( - predicate?: ListIterator|NumericDictionaryIterator - ): boolean; - - /** - * @see _.some - */ - some( - predicate?: string|[string, any] - ): boolean; - - /** - * @see _.some - */ - some( - predicate?: PartialObject - ): boolean; - } - - interface LoDashImplicitObjectWrapperBase { - /** - * @see _.some - */ - some( - predicate?: ListIterator|DictionaryIterator|NumericDictionaryIterator|ObjectIterator - ): boolean; - /** - * @see _.some - */ - some( - predicate?: string|[string, any] - ): boolean; - - /** - * @see _.some - */ - some( - predicate?: PartialObject - ): boolean; - } - - interface LoDashExplicitArrayWrapperBase { - /** - * @see _.some - */ - some( - predicate?: ListIterator|NumericDictionaryIterator - ): LoDashExplicitWrapper; - - /** - * @see _.some - */ - some( - predicate?: string|[string, any] - ): LoDashExplicitWrapper; - - /** - * @see _.some - */ - some( - predicate?: PartialObject - ): LoDashExplicitWrapper; - } - - interface LoDashExplicitObjectWrapperBase { - /** - * @see _.some - */ - some( - predicate?: ListIterator|DictionaryIterator|NumericDictionaryIterator|ObjectIterator - ): LoDashExplicitWrapper; - - /** - * @see _.some - */ - some( - predicate?: string|[string, any] - ): LoDashExplicitWrapper; - - /** - * @see _.some - */ - some( - predicate?: PartialObject + this: LoDashExplicitWrapper | null | undefined>, + predicate?: NumericDictionaryIteratee ): LoDashExplicitWrapper; } @@ -9714,163 +6908,54 @@ declare namespace _ { * }); * // => objects for [['barney', 36], ['barney', 34], ['fred', 48], ['fred', 42]] */ - sortBy( - collection: List | null | undefined, - iteratee?: ListIterator - ): T[]; - - /** - * @see _.sortBy - */ - sortBy( - collection: Dictionary | null | undefined, - iteratee?: DictionaryIterator - ): T[]; - - /** - * @see _.sortBy - */ - sortBy( - collection: List|Dictionary | null | undefined, - iteratee: string - ): T[]; - - /** - * @see _.sortBy - */ - sortBy( - collection: List|Dictionary | null | undefined, - whereValue: W - ): T[]; - - /** - * @see _.sortBy - */ - sortBy( - collection: List|Dictionary | null | undefined - ): T[]; - - /** - * @see _.sortBy - */ sortBy( collection: List | null | undefined, - iteratees: Array|string|Object> + ...iteratees: Array>> ): T[]; + /** + * @see _.sortBy + */ + sortBy( + collection: T | null | undefined, + ...iteratees: Array>> + ): Array; + } + + interface LoDashImplicitWrapper { /** * @see _.sortBy */ sortBy( - collection: List | null | undefined, - ...iteratees: Array|Object|string> - ): T[]; + this: LoDashImplicitWrapper | null | undefined>, + ...iteratees: Array>> + ): LoDashImplicitWrapper; + + /** + * @see _.sortBy + */ + sortBy( + this: LoDashImplicitWrapper, + ...iteratees: Array>> + ): LoDashImplicitWrapper>; } - interface LoDashImplicitArrayWrapperBase { + interface LoDashExplicitWrapper { /** * @see _.sortBy */ - sortBy( - iteratee?: ListIterator - ): LoDashImplicitArrayWrapper; + sortBy( + this: LoDashExplicitWrapper | null | undefined>, + ...iteratees: Array>> + ): LoDashExplicitWrapper; /** * @see _.sortBy */ - sortBy(iteratee: string): LoDashImplicitArrayWrapper; - - /** - * @see _.sortBy - */ - sortBy(whereValue: W): LoDashImplicitArrayWrapper; - - /** - * @see _.sortBy - */ - sortBy(): LoDashImplicitArrayWrapper; - - /** - * @see _.sortBy - */ - sortBy(...iteratees: Array|Object|string>): LoDashImplicitArrayWrapper; - - /** - * @see _.sortBy - **/ - sortBy(iteratees: Array|string|Object>): LoDashImplicitArrayWrapper; - } - - interface LoDashImplicitObjectWrapperBase { - /** - * @see _.sortBy - */ - sortBy( - iteratee?: ListIterator|DictionaryIterator - ): LoDashImplicitArrayWrapper; - - /** - * @see _.sortBy - */ - sortBy(iteratee: string): LoDashImplicitArrayWrapper; - - /** - * @see _.sortBy - */ - sortBy(whereValue: W): LoDashImplicitArrayWrapper; - - /** - * @see _.sortBy - */ - sortBy(): LoDashImplicitArrayWrapper; - } - - interface LoDashExplicitArrayWrapperBase { - /** - * @see _.sortBy - */ - sortBy( - iteratee?: ListIterator - ): LoDashExplicitArrayWrapper; - - /** - * @see _.sortBy - */ - sortBy(iteratee: string): LoDashExplicitArrayWrapper; - - /** - * @see _.sortBy - */ - sortBy(whereValue: W): LoDashExplicitArrayWrapper; - - /** - * @see _.sortBy - */ - sortBy(): LoDashExplicitArrayWrapper; - } - - interface LoDashExplicitObjectWrapperBase { - /** - * @see _.sortBy - */ - sortBy( - iteratee?: ListIterator|DictionaryIterator - ): LoDashExplicitArrayWrapper; - - /** - * @see _.sortBy - */ - sortBy(iteratee: string): LoDashExplicitArrayWrapper; - - /** - * @see _.sortBy - */ - sortBy(whereValue: W): LoDashExplicitArrayWrapper; - - /** - * @see _.sortBy - */ - sortBy(): LoDashExplicitArrayWrapper; + sortBy( + this: LoDashExplicitWrapper, + ...iteratees: Array>> + ): LoDashExplicitWrapper>; } //_.orderBy @@ -9902,9 +6987,9 @@ declare namespace _ { * _.orderBy(users, ['user', 'age'], ['asc', 'desc']); * // => objects for [['barney', 36], ['barney', 34], ['fred', 48], ['fred', 42]] */ - orderBy( + orderBy( collection: List | null | undefined, - iteratees?: Many|string|W>, + iteratees?: Many>, orders?: Many ): T[]; @@ -9913,16 +6998,34 @@ declare namespace _ { */ orderBy( collection: List | null | undefined, - iteratees?: Many|string|Object>, + iteratees?: Many>, orders?: Many ): T[]; /** * @see _.orderBy */ - orderBy( + orderBy( + collection: T | null | undefined, + iteratees?: Many>, + orders?: Many + ): Array; + + /** + * @see _.orderBy + */ + orderBy( + collection: T | null | undefined, + iteratees?: Many>, + orders?: Many + ): Array; + + /** + * @see _.orderBy + */ + orderBy( collection: NumericDictionary | null | undefined, - iteratees?: Many|string|W>, + iteratees?: Many>, orders?: Many ): T[]; @@ -9931,167 +7034,121 @@ declare namespace _ { */ orderBy( collection: NumericDictionary | null | undefined, - iteratees?: Many|string|Object>, - orders?: Many - ): T[]; - - /** - * @see _.orderBy - */ - orderBy( - collection: Dictionary | null | undefined, - iteratees?: Many|string|W>, - orders?: Many - ): T[]; - - /** - * @see _.orderBy - */ - orderBy( - collection: Dictionary | null | undefined, - iteratees?: Many|string|Object>, + iteratees?: Many>, orders?: Many ): T[]; } - interface LoDashImplicitWrapper { + interface LoDashImplicitWrapper { /** * @see _.orderBy */ - orderBy( - iteratees?: Many|string>, + orderBy( + this: LoDashImplicitWrapper | null | undefined>, + iteratees?: Many>, orders?: Many - ): LoDashImplicitArrayWrapper; + ): LoDashImplicitWrapper; + + /** + * @see _.orderBy + */ + orderBy( + this: LoDashImplicitWrapper | null | undefined>, + iteratees?: Many>, + orders?: Many + ): LoDashImplicitWrapper; + + /** + * @see _.orderBy + */ + orderBy( + this: LoDashImplicitWrapper, + iteratees?: Many>, + orders?: Many + ): LoDashImplicitWrapper>; + + /** + * @see _.orderBy + */ + orderBy( + this: LoDashImplicitWrapper, + iteratees?: Many>, + orders?: Many + ): LoDashImplicitWrapper>; + + /** + * @see _.orderBy + */ + orderBy( + this: LoDashImplicitWrapper | null | undefined>, + iteratees?: Many>, + orders?: Many + ): LoDashImplicitWrapper; + + /** + * @see _.orderBy + */ + orderBy( + this: LoDashImplicitWrapper | null | undefined>, + iteratees?: Many>, + orders?: Many + ): LoDashImplicitWrapper; } - interface LoDashImplicitArrayWrapperBase { + interface LoDashExplicitWrapper { /** * @see _.orderBy */ - orderBy( - iteratees?: Many|string|W>, + orderBy( + this: LoDashExplicitWrapper | null | undefined>, + iteratees?: Many>, orders?: Many - ): LoDashImplicitArrayWrapper; - } - - interface LoDashImplicitObjectWrapperBase { - /** - * @see _.orderBy - */ - orderBy( - iteratees?: Many|string|W>, - orders?: Many - ): LoDashImplicitArrayWrapper; + ): LoDashExplicitWrapper; /** * @see _.orderBy */ orderBy( - iteratees?: Many|string|Object>, + this: LoDashExplicitWrapper | null | undefined>, + iteratees?: Many>, orders?: Many - ): LoDashImplicitArrayWrapper; + ): LoDashExplicitWrapper; /** * @see _.orderBy */ - orderBy( - iteratees?: Many|string|W>, + orderBy( + this: LoDashExplicitWrapper, + iteratees?: Many>, orders?: Many - ): LoDashImplicitArrayWrapper; + ): LoDashExplicitWrapper>; + + /** + * @see _.orderBy + */ + orderBy( + this: LoDashExplicitWrapper, + iteratees?: Many>, + orders?: Many + ): LoDashExplicitWrapper>; /** * @see _.orderBy */ orderBy( - iteratees?: Many|string|Object>, + this: LoDashExplicitWrapper | null | undefined>, + iteratees?: Many>, orders?: Many - ): LoDashImplicitArrayWrapper; - - /** - * @see _.orderBy - */ - orderBy( - iteratees?: Many|string|W>, - orders?: Many - ): LoDashImplicitArrayWrapper; + ): LoDashExplicitWrapper; /** * @see _.orderBy */ orderBy( - iteratees?: Many|string|Object>, + this: LoDashExplicitWrapper | null | undefined>, + iteratees?: Many>, orders?: Many - ): LoDashImplicitArrayWrapper; - } - - interface LoDashExplicitWrapper { - /** - * @see _.orderBy - */ - orderBy( - iteratees?: Many|string>, - orders?: Many - ): LoDashExplicitArrayWrapper; - } - - interface LoDashExplicitArrayWrapperBase { - /** - * @see _.orderBy - */ - orderBy( - iteratees?: Many|string|W|(ListIterator|string|W)>, - orders?: Many - ): LoDashExplicitArrayWrapper; - } - - interface LoDashExplicitObjectWrapperBase { - /** - * @see _.orderBy - */ - orderBy( - iteratees?: Many|string|W>, - orders?: Many - ): LoDashExplicitArrayWrapper; - - /** - * @see _.orderBy - */ - orderBy( - iteratees?: Many|string|Object>, - orders?: Many - ): LoDashExplicitArrayWrapper; - - /** - * @see _.orderBy - */ - orderBy( - iteratees?: Many|string|W>, - orders?: Many - ): LoDashExplicitArrayWrapper; - - /** - * @see _.orderBy - */ - orderBy( - iteratees?: Many|string|Object>, - orders?: Many - ): LoDashExplicitArrayWrapper; - - /** - * @see _.orderBy - */ - orderBy( - iteratees?: Many|string|W>, - orders?: Many - ): LoDashExplicitArrayWrapper; - - /** - * @see _.orderBy - */ - orderBy( - iteratees?: Many|string|Object>, - orders?: Many - ): LoDashExplicitArrayWrapper; + ): LoDashExplicitWrapper; } /******** @@ -10108,14 +7165,14 @@ declare namespace _ { now(): number; } - interface LoDashImplicitWrapperBase { + interface LoDashImplicitWrapper { /** * @see _.now */ now(): number; } - interface LoDashExplicitWrapperBase { + interface LoDashExplicitWrapper { /** * @see _.now */ @@ -10135,24 +7192,24 @@ declare namespace _ { * @param func The function to restrict. * @return Returns the new restricted function. */ - after( + after any>( n: number, func: TFunc ): TFunc; } - interface LoDashImplicitWrapper { + interface LoDashImplicitWrapper { /** * @see _.after **/ - after(func: TFunc): LoDashImplicitObjectWrapper; + after any>(func: TFunc): LoDashImplicitWrapper; } - interface LoDashExplicitWrapper { + interface LoDashExplicitWrapper { /** * @see _.after **/ - after(func: TFunc): LoDashExplicitObjectWrapper; + after any>(func: TFunc): LoDashExplicitWrapper; } //_.ary @@ -10164,29 +7221,24 @@ declare namespace _ { * @param n The arity cap. * @returns Returns the new function. */ - ary( - func: Function, + ary( + func: (...args: any[]) => any, n?: number - ): TResult; - - ary( - func: T, - n?: number - ): TResult; + ): (...args: any[]) => any; } - interface LoDashImplicitObjectWrapper { + interface LoDashImplicitWrapper { /** * @see _.ary */ - ary(n?: number): LoDashImplicitObjectWrapper; + ary(n?: number): LoDashImplicitWrapper<(...args: any[]) => any>; } - interface LoDashExplicitObjectWrapper { + interface LoDashExplicitWrapper { /** * @see _.ary */ - ary(n?: number): LoDashExplicitObjectWrapper; + ary(n?: number): LoDashExplicitWrapper<(...args: any[]) => any>; } //_.before @@ -10200,41 +7252,35 @@ declare namespace _ { * @param func The function to restrict. * @return Returns the new restricted function. */ - before( + before any>( n: number, func: TFunc ): TFunc; } - interface LoDashImplicitWrapper { + interface LoDashImplicitWrapper { /** * @see _.before **/ - before(func: TFunc): LoDashImplicitObjectWrapper; + before any>(func: TFunc): LoDashImplicitWrapper; } - interface LoDashExplicitWrapper { + interface LoDashExplicitWrapper { /** * @see _.before **/ - before(func: TFunc): LoDashExplicitObjectWrapper; + before any>(func: TFunc): LoDashExplicitWrapper; } //_.bind interface FunctionBind { placeholder: any; - ( - func: T, + ( + func: (...args: any[]) => any, thisArg: any, ...partials: any[] - ): TResult; - - ( - func: Function, - thisArg: any, - ...partials: any[] - ): TResult; + ): (...args: any[]) => any; } interface LoDashStatic { @@ -10255,24 +7301,24 @@ declare namespace _ { bind: FunctionBind; } - interface LoDashImplicitObjectWrapper { + interface LoDashImplicitWrapper { /** * @see _.bind */ - bind( + bind( thisArg: any, ...partials: any[] - ): LoDashImplicitObjectWrapper; + ): LoDashImplicitWrapper<(...args: any[]) => any>; } - interface LoDashExplicitObjectWrapper { + interface LoDashExplicitWrapper { /** * @see _.bind */ - bind( + bind( thisArg: any, ...partials: any[] - ): LoDashExplicitObjectWrapper; + ): LoDashExplicitWrapper<(...args: any[]) => any>; } //_.bindAll @@ -10295,35 +7341,22 @@ declare namespace _ { ): T; } - interface LoDashImplicitObjectWrapper { + interface LoDashWrapper { /** * @see _.bindAll */ - bindAll(...methodNames: Array>): LoDashImplicitObjectWrapper; - } - - interface LoDashExplicitObjectWrapper { - /** - * @see _.bindAll - */ - bindAll(...methodNames: Array>): LoDashExplicitObjectWrapper; + bindAll(...methodNames: Array>): this; } //_.bindKey interface FunctionBindKey { placeholder: any; - ( - object: T, - key: any, + ( + object: object, + key: string, ...partials: any[] - ): TResult; - - ( - object: Object, - key: any, - ...partials: any[] - ): TResult; + ): (...args: any[]) => any; } interface LoDashStatic { @@ -10345,64 +7378,24 @@ declare namespace _ { bindKey: FunctionBindKey; } - interface LoDashImplicitObjectWrapper { + interface LoDashImplicitWrapper { /** * @see _.bindKey */ - bindKey( - key: any, + bindKey( + key: string, ...partials: any[] - ): LoDashImplicitObjectWrapper; + ): LoDashImplicitWrapper<(...args: any[]) => any>; } - interface LoDashExplicitObjectWrapper { + interface LoDashExplicitWrapper { /** * @see _.bindKey */ - bindKey( - key: any, + bindKey( + key: string, ...partials: any[] - ): LoDashExplicitObjectWrapper; - } - - //_.createCallback - interface LoDashStatic { - /** - * Produces a callback bound to an optional thisArg. If func is a property name the created - * callback will return the property value for a given element. If func is an object the created - * callback will return true for elements that contain the equivalent object properties, - * otherwise it will return false. - * @param func The value to convert to a callback. - * @param thisArg The this binding of the created callback. - * @param argCount The number of arguments the callback accepts. - * @return A callback function. - **/ - createCallback( - func: string, - argCount?: number): () => any; - - /** - * @see _.createCallback - **/ - createCallback( - func: Dictionary, - argCount?: number): () => boolean; - } - - interface LoDashImplicitWrapper { - /** - * @see _.createCallback - **/ - createCallback( - argCount?: number): LoDashImplicitObjectWrapper<() => any>; - } - - interface LoDashImplicitObjectWrapper { - /** - * @see _.createCallback - **/ - createCallback( - argCount?: number): LoDashImplicitObjectWrapper<() => any>; + ): LoDashExplicitWrapper<(...args: any[]) => any>; } //_.curry @@ -10412,45 +7405,50 @@ declare namespace _ { * its result, if all func arguments have been provided, or returns a function that accepts one or more of the * remaining func arguments, and so on. The arity of func may be specified if func.length is not sufficient. * @param func The function to curry. + * @param arity The arity of func. * @return Returns the new curried function. */ - curry(func: (t1: T1) => R): + curry(func: (t1: T1) => R, arity?: number): CurriedFunction1; /** * Creates a function that accepts one or more arguments of func that when called either invokes func returning * its result, if all func arguments have been provided, or returns a function that accepts one or more of the * remaining func arguments, and so on. The arity of func may be specified if func.length is not sufficient. * @param func The function to curry. + * @param arity The arity of func. * @return Returns the new curried function. */ - curry(func: (t1: T1, t2: T2) => R): + curry(func: (t1: T1, t2: T2) => R, arity?: number): CurriedFunction2; /** * Creates a function that accepts one or more arguments of func that when called either invokes func returning * its result, if all func arguments have been provided, or returns a function that accepts one or more of the * remaining func arguments, and so on. The arity of func may be specified if func.length is not sufficient. * @param func The function to curry. + * @param arity The arity of func. * @return Returns the new curried function. */ - curry(func: (t1: T1, t2: T2, t3: T3) => R): + curry(func: (t1: T1, t2: T2, t3: T3) => R, arity?: number): CurriedFunction3; /** * Creates a function that accepts one or more arguments of func that when called either invokes func returning * its result, if all func arguments have been provided, or returns a function that accepts one or more of the * remaining func arguments, and so on. The arity of func may be specified if func.length is not sufficient. * @param func The function to curry. + * @param arity The arity of func. * @return Returns the new curried function. */ - curry(func: (t1: T1, t2: T2, t3: T3, t4: T4) => R): + curry(func: (t1: T1, t2: T2, t3: T3, t4: T4) => R, arity?: number): CurriedFunction4; /** * Creates a function that accepts one or more arguments of func that when called either invokes func returning * its result, if all func arguments have been provided, or returns a function that accepts one or more of the * remaining func arguments, and so on. The arity of func may be specified if func.length is not sufficient. * @param func The function to curry. + * @param arity The arity of func. * @return Returns the new curried function. */ - curry(func: (t1: T1, t2: T2, t3: T3, t4: T4, t5: T5) => R): + curry(func: (t1: T1, t2: T2, t3: T3, t4: T4, t5: T5) => R, arity?: number): CurriedFunction5; /** * Creates a function that accepts one or more arguments of func that when called either invokes func returning @@ -10460,9 +7458,7 @@ declare namespace _ { * @param arity The arity of func. * @return Returns the new curried function. */ - curry( - func: Function, - arity?: number): TResult; + curry(func: (...args: any[]) => any, arity?: number): (...args: any[]) => any; } interface CurriedFunction1 { @@ -10499,42 +7495,109 @@ declare namespace _ { (t1: T1, t2: T2, t3: T3, t4: T4): CurriedFunction1; (t1: T1, t2: T2, t3: T3, t4: T4, t5: T5): R; } - interface RightCurriedFunction1{ - ():RightCurriedFunction1 - (t1:T1):R - } - interface RightCurriedFunction2{ - ():RightCurriedFunction2 - (t2:T2):RightCurriedFunction1 - (t1:T1,t2:T2):R + interface RightCurriedFunction1 { + (): RightCurriedFunction1; + (t1: T1): R; } - interface RightCurriedFunction3{ - ():RightCurriedFunction3 - (t3:T3):RightCurriedFunction2 - (t2:T2,t3:T3):RightCurriedFunction1 - (t1:T1,t2:T2,t3:T3):R + interface RightCurriedFunction2 { + (): RightCurriedFunction2; + (t2: T2): RightCurriedFunction1; + (t1: T1, t2: T2): R; } - interface RightCurriedFunction4{ - ():RightCurriedFunction4 - (t4:T4):RightCurriedFunction3 - (t3:T3,t4:T4):RightCurriedFunction2 - (t2:T2,t3:T3,t4:T4):RightCurriedFunction1 - (t1:T1,t2:T2,t3:T3,t4:T4):R + interface RightCurriedFunction3 { + (): RightCurriedFunction3; + (t3: T3): RightCurriedFunction2; + (t2: T2, t3: T3): RightCurriedFunction1; + (t1: T1, t2: T2, t3: T3): R; } - interface RightCurriedFunction5{ - ():RightCurriedFunction5 - (t5:T5):RightCurriedFunction4 - (t4:T4,t5:T5):RightCurriedFunction3 - (t3:T3,t4:T4,t5:T5):RightCurriedFunction2 - (t2:T2,t3:T3,t4:T4,t5:T5):RightCurriedFunction1 - (t1:T1,t2:T2,t3:T3,t4:T4,t5:T5):R + interface RightCurriedFunction4 { + (): RightCurriedFunction4; + (t4: T4): RightCurriedFunction3; + (t3: T3, t4: T4): RightCurriedFunction2; + (t2: T2, t3: T3, t4: T4): RightCurriedFunction1; + (t1: T1, t2: T2, t3: T3, t4: T4): R; + } + interface RightCurriedFunction5 { + (): RightCurriedFunction5; + (t5: T5): RightCurriedFunction4; + (t4: T4, t5: T5): RightCurriedFunction3; + (t3: T3, t4: T4, t5: T5): RightCurriedFunction2; + (t2: T2, t3: T3, t4: T4, t5: T5): RightCurriedFunction1; + (t1: T1, t2: T2, t3: T3, t4: T4, t5: T5): R; } - interface LoDashImplicitObjectWrapper { + interface LoDashImplicitWrapper { /** * @see _.curry **/ - curry(arity?: number): LoDashImplicitObjectWrapper; + curry(this: LoDashImplicitWrapper<(t1: T1) => R>, arity?: number): + LoDashImplicitWrapper>; + + /** + * @see _.curry + **/ + curry(this: LoDashImplicitWrapper<(t1: T1, t2: T2) => R>, arity?: number): + LoDashImplicitWrapper>; + + /** + * @see _.curry + **/ + curry(this: LoDashImplicitWrapper<(t1: T1, t2: T2, t3: T3) => R>, arity?: number): + LoDashImplicitWrapper>; + + /** + * @see _.curry + **/ + curry(this: LoDashImplicitWrapper<(t1: T1, t2: T2, t3: T3, t4: T4) => R>, arity?: number): + LoDashImplicitWrapper>; + + /** + * @see _.curry + **/ + curry(this: LoDashImplicitWrapper<(t1: T1, t2: T2, t3: T3, t4: T4, t5: T5) => R>, arity?: number): + LoDashImplicitWrapper>; + + /** + * @see _.curry + **/ + curry(arity?: number): LoDashImplicitWrapper<(...args: any[]) => any>; + } + + interface LoDashExplicitWrapper { + /** + * @see _.curry + **/ + curry(this: LoDashExplicitWrapper<(t1: T1) => R>): + LoDashExplicitWrapper>; + + /** + * @see _.curry + **/ + curry(this: LoDashExplicitWrapper<(t1: T1, t2: T2) => R>): + LoDashExplicitWrapper>; + + /** + * @see _.curry + **/ + curry(this: LoDashExplicitWrapper<(t1: T1, t2: T2, t3: T3) => R>): + LoDashExplicitWrapper>; + + /** + * @see _.curry + **/ + curry(this: LoDashExplicitWrapper<(t1: T1, t2: T2, t3: T3, t4: T4) => R>): + LoDashExplicitWrapper>; + + /** + * @see _.curry + **/ + curry(this: LoDashExplicitWrapper<(t1: T1, t2: T2, t3: T3, t4: T4, t5: T5) => R>): + LoDashExplicitWrapper>; + + /** + * @see _.curry + **/ + curry(arity?: number): LoDashExplicitWrapper<(...args: any[]) => any>; } //_.curryRight @@ -10543,41 +7606,46 @@ declare namespace _ { * This method is like _.curry except that arguments are applied to func in the manner of _.partialRight * instead of _.partial. * @param func The function to curry. + * @param arity The arity of func. * @return Returns the new curried function. */ - curryRight(func: (t1: T1) => R): + curryRight(func: (t1: T1) => R, arity?: number): RightCurriedFunction1; /** * This method is like _.curry except that arguments are applied to func in the manner of _.partialRight * instead of _.partial. * @param func The function to curry. + * @param arity The arity of func. * @return Returns the new curried function. */ - curryRight(func: (t1: T1, t2: T2) => R): + curryRight(func: (t1: T1, t2: T2) => R, arity?: number): RightCurriedFunction2; /** * This method is like _.curry except that arguments are applied to func in the manner of _.partialRight * instead of _.partial. * @param func The function to curry. + * @param arity The arity of func. * @return Returns the new curried function. */ - curryRight(func: (t1: T1, t2: T2, t3: T3) => R): + curryRight(func: (t1: T1, t2: T2, t3: T3) => R, arity?: number): RightCurriedFunction3; /** * This method is like _.curry except that arguments are applied to func in the manner of _.partialRight * instead of _.partial. * @param func The function to curry. + * @param arity The arity of func. * @return Returns the new curried function. */ - curryRight(func: (t1: T1, t2: T2, t3: T3, t4: T4) => R): + curryRight(func: (t1: T1, t2: T2, t3: T3, t4: T4) => R, arity?: number): RightCurriedFunction4; /** * This method is like _.curry except that arguments are applied to func in the manner of _.partialRight * instead of _.partial. * @param func The function to curry. + * @param arity The arity of func. * @return Returns the new curried function. */ - curryRight(func: (t1: T1, t2: T2, t3: T3, t4: T4, t5: T5) => R): + curryRight(func: (t1: T1, t2: T2, t3: T3, t4: T4, t5: T5) => R, arity?: number): RightCurriedFunction5; /** * This method is like _.curry except that arguments are applied to func in the manner of _.partialRight @@ -10586,16 +7654,81 @@ declare namespace _ { * @param arity The arity of func. * @return Returns the new curried function. */ - curryRight( - func: Function, - arity?: number): TResult; + curryRight(func: (...args: any[]) => any, arity?: number): (...args: any[]) => any; } - interface LoDashImplicitObjectWrapper { + interface LoDashImplicitWrapper { /** * @see _.curryRight **/ - curryRight(arity?: number): LoDashImplicitObjectWrapper; + curryRight(this: LoDashImplicitWrapper<(t1: T1) => R>, arity?: number): + LoDashImplicitWrapper>; + + /** + * @see _.curryRight + **/ + curryRight(this: LoDashImplicitWrapper<(t1: T1, t2: T2) => R>, arity?: number): + LoDashImplicitWrapper>; + + /** + * @see _.curryRight + **/ + curryRight(this: LoDashImplicitWrapper<(t1: T1, t2: T2, t3: T3) => R>, arity?: number): + LoDashImplicitWrapper>; + + /** + * @see _.curryRight + **/ + curryRight(this: LoDashImplicitWrapper<(t1: T1, t2: T2, t3: T3, t4: T4) => R>, arity?: number): + LoDashImplicitWrapper>; + + /** + * @see _.curryRight + **/ + curryRight(this: LoDashImplicitWrapper<(t1: T1, t2: T2, t3: T3, t4: T4, t5: T5) => R>, arity?: number): + LoDashImplicitWrapper>; + + /** + * @see _.curryRight + **/ + curryRight(arity?: number): LoDashImplicitWrapper<(...args: any[]) => any>; + } + + interface LoDashExplicitWrapper { + /** + * @see _.curryRight + **/ + curryRight(this: LoDashExplicitWrapper<(t1: T1) => R>, arity?: number): + LoDashExplicitWrapper>; + + /** + * @see _.curryRight + **/ + curryRight(this: LoDashExplicitWrapper<(t1: T1, t2: T2) => R>, arity?: number): + LoDashExplicitWrapper>; + + /** + * @see _.curryRight + **/ + curryRight(this: LoDashExplicitWrapper<(t1: T1, t2: T2, t3: T3) => R>, arity?: number): + LoDashExplicitWrapper>; + + /** + * @see _.curryRight + **/ + curryRight(this: LoDashExplicitWrapper<(t1: T1, t2: T2, t3: T3, t4: T4) => R>, arity?: number): + LoDashExplicitWrapper>; + + /** + * @see _.curryRight + **/ + curryRight(this: LoDashExplicitWrapper<(t1: T1, t2: T2, t3: T3, t4: T4, t5: T5) => R>, arity?: number): + LoDashExplicitWrapper>; + + /** + * @see _.curryRight + **/ + curryRight(arity?: number): LoDashExplicitWrapper<(...args: any[]) => any>; } //_.debounce @@ -10637,31 +7770,31 @@ declare namespace _ { * @param options.trailing Specify invoking on the trailing edge of the timeout. * @return Returns the new debounced function. */ - debounce( + debounce any>( func: T, wait?: number, options?: DebounceSettings ): T & Cancelable; } - interface LoDashImplicitObjectWrapper { + interface LoDashImplicitWrapper { /** * @see _.debounce */ debounce( wait?: number, options?: DebounceSettings - ): LoDashImplicitObjectWrapper; + ): LoDashImplicitWrapper; } - interface LoDashExplicitObjectWrapper { + interface LoDashExplicitWrapper { /** * @see _.debounce */ debounce( wait?: number, options?: DebounceSettings - ): LoDashExplicitObjectWrapper; + ): LoDashExplicitWrapper; } //_.defer @@ -10674,20 +7807,20 @@ declare namespace _ { * @param args The arguments to invoke the function with. * @return Returns the timer id. */ - defer( - func: T, + defer( + func: (...args: any[]) => any, ...args: any[] ): number; } - interface LoDashImplicitObjectWrapper { + interface LoDashImplicitWrapper { /** * @see _.defer */ defer(...args: any[]): LoDashImplicitWrapper; } - interface LoDashExplicitObjectWrapper { + interface LoDashExplicitWrapper { /** * @see _.defer */ @@ -10704,14 +7837,14 @@ declare namespace _ { * @param args The arguments to invoke the function with. * @return Returns the timer id. */ - delay( - func: T, + delay( + func: (...args: any[]) => any, wait: number, ...args: any[] ): number; } - interface LoDashImplicitObjectWrapper { + interface LoDashImplicitWrapper { /** * @see _.delay */ @@ -10721,7 +7854,7 @@ declare namespace _ { ): LoDashImplicitWrapper; } - interface LoDashExplicitObjectWrapper { + interface LoDashExplicitWrapper { /** * @see _.delay */ @@ -10749,21 +7882,14 @@ declare namespace _ { * flipped('a', 'b', 'c', 'd'); * // => ['d', 'c', 'b', 'a'] */ - flip(func: T): T; + flip any>(func: T): T; } - interface LoDashImplicitObjectWrapper { + interface LoDashWrapper { /** * @see _.flip */ - flip(): LoDashImplicitObjectWrapper; - } - - interface LoDashExplicitObjectWrapper { - /** - * @see _.flip - */ - flip(): LoDashExplicitObjectWrapper; + flip(): this; } //_.flow @@ -10811,30 +7937,93 @@ declare namespace _ { flow(f1: (a1: A1, a2: A2, a3: A3, a4: A4) => R1, f2: (a: R1) => R2, f3: (a: R2) => R3, f4: (a: R3) => R4, f5: (a: R4) => R5, f6: (a: R5) => R6): (a1: A1, a2: A2, a3: A3, a4: A4) => R6; flow(f1: (a1: A1, a2: A2, a3: A3, a4: A4) => R1, f2: (a: R1) => R2, f3: (a: R2) => R3, f4: (a: R3) => R4, f5: (a: R4) => R5, f6: (a: R5) => R6, f7: (a: R6) => R7): (a1: A1, a2: A2, a3: A3, a4: A4) => R7; // generic function - flow(...funcs: Function[]): TResult; - flow(funcs: Function[]): TResult; + flow(...funcs: Array any>>): (...args: any[]) => any; } - interface LoDashImplicitObjectWrapper { + interface LoDashImplicitWrapper { /** * @see _.flow */ - flow(...funcs: Function[]): LoDashImplicitObjectWrapper; - /** - * @see _.flow - */ - flow(funcs: Function[]): LoDashImplicitObjectWrapper; + // 0-argument first function + flow(this: LoDashImplicitWrapper<() => R1>, f2: (a: R1) => R2): LoDashImplicitWrapper<() => R2>; + flow(this: LoDashImplicitWrapper<() => R1>, f2: (a: R1) => R2, f3: (a: R2) => R3): LoDashImplicitWrapper<() => R3>; + flow(this: LoDashImplicitWrapper<() => R1>, f2: (a: R1) => R2, f3: (a: R2) => R3, f4: (a: R3) => R4): LoDashImplicitWrapper<() => R4>; + flow(this: LoDashImplicitWrapper<() => R1>, f2: (a: R1) => R2, f3: (a: R2) => R3, f4: (a: R3) => R4, f5: (a: R4) => R5): LoDashImplicitWrapper<() => R5>; + flow(this: LoDashImplicitWrapper<() => R1>, f2: (a: R1) => R2, f3: (a: R2) => R3, f4: (a: R3) => R4, f5: (a: R4) => R5, f6: (a: R5) => R6): LoDashImplicitWrapper<() => R6>; + flow(this: LoDashImplicitWrapper<() => R1>, f2: (a: R1) => R2, f3: (a: R2) => R3, f4: (a: R3) => R4, f5: (a: R4) => R5, f6: (a: R5) => R6, f7: (a: R6) => R7): LoDashImplicitWrapper<() => R7>; + // 1-argument first function + flow(this: LoDashImplicitWrapper<(a1: A1) => R1>, f2: (a: R1) => R2): LoDashImplicitWrapper<(a1: A1) => R2>; + flow(this: LoDashImplicitWrapper<(a1: A1) => R1>, f2: (a: R1) => R2, f3: (a: R2) => R3): LoDashImplicitWrapper<(a1: A1) => R3>; + flow(this: LoDashImplicitWrapper<(a1: A1) => R1>, f2: (a: R1) => R2, f3: (a: R2) => R3, f4: (a: R3) => R4): LoDashImplicitWrapper<(a1: A1) => R4>; + flow(this: LoDashImplicitWrapper<(a1: A1) => R1>, f2: (a: R1) => R2, f3: (a: R2) => R3, f4: (a: R3) => R4, f5: (a: R4) => R5): LoDashImplicitWrapper<(a1: A1) => R5>; + flow(this: LoDashImplicitWrapper<(a1: A1) => R1>, f2: (a: R1) => R2, f3: (a: R2) => R3, f4: (a: R3) => R4, f5: (a: R4) => R5, f6: (a: R5) => R6): LoDashImplicitWrapper<(a1: A1) => R6>; + flow(this: LoDashImplicitWrapper<(a1: A1) => R1>, f2: (a: R1) => R2, f3: (a: R2) => R3, f4: (a: R3) => R4, f5: (a: R4) => R5, f6: (a: R5) => R6, f7: (a: R6) => R7): LoDashImplicitWrapper<(a1: A1) => R7>; + // 2-argument first function + flow(this: LoDashImplicitWrapper<(a1: A1, a2: A2) => R1>, f2: (a: R1) => R2): LoDashImplicitWrapper<(a1: A1, a2: A2) => R2>; + flow(this: LoDashImplicitWrapper<(a1: A1, a2: A2) => R1>, f2: (a: R1) => R2, f3: (a: R2) => R3): LoDashImplicitWrapper<(a1: A1, a2: A2) => R3>; + flow(this: LoDashImplicitWrapper<(a1: A1, a2: A2) => R1>, f2: (a: R1) => R2, f3: (a: R2) => R3, f4: (a: R3) => R4): LoDashImplicitWrapper<(a1: A1, a2: A2) => R4>; + flow(this: LoDashImplicitWrapper<(a1: A1, a2: A2) => R1>, f2: (a: R1) => R2, f3: (a: R2) => R3, f4: (a: R3) => R4, f5: (a: R4) => R5): LoDashImplicitWrapper<(a1: A1, a2: A2) => R5>; + flow(this: LoDashImplicitWrapper<(a1: A1, a2: A2) => R1>, f2: (a: R1) => R2, f3: (a: R2) => R3, f4: (a: R3) => R4, f5: (a: R4) => R5, f6: (a: R5) => R6): LoDashImplicitWrapper<(a1: A1, a2: A2) => R6>; + flow(this: LoDashImplicitWrapper<(a1: A1, a2: A2) => R1>, f2: (a: R1) => R2, f3: (a: R2) => R3, f4: (a: R3) => R4, f5: (a: R4) => R5, f6: (a: R5) => R6, f7: (a: R6) => R7): LoDashImplicitWrapper<(a1: A1, a2: A2) => R7>; + // 3-argument first function + flow(this: LoDashImplicitWrapper<(a1: A1, a2: A2, a3: A3) => R1>, f2: (a: R1) => R2): LoDashImplicitWrapper<(a1: A1, a2: A2, a3: A3) => R2>; + flow(this: LoDashImplicitWrapper<(a1: A1, a2: A2, a3: A3) => R1>, f2: (a: R1) => R2, f3: (a: R2) => R3): LoDashImplicitWrapper<(a1: A1, a2: A2, a3: A3) => R3>; + flow(this: LoDashImplicitWrapper<(a1: A1, a2: A2, a3: A3) => R1>, f2: (a: R1) => R2, f3: (a: R2) => R3, f4: (a: R3) => R4): LoDashImplicitWrapper<(a1: A1, a2: A2, a3: A3) => R4>; + flow(this: LoDashImplicitWrapper<(a1: A1, a2: A2, a3: A3) => R1>, f2: (a: R1) => R2, f3: (a: R2) => R3, f4: (a: R3) => R4, f5: (a: R4) => R5): LoDashImplicitWrapper<(a1: A1, a2: A2, a3: A3) => R5>; + flow(this: LoDashImplicitWrapper<(a1: A1, a2: A2, a3: A3) => R1>, f2: (a: R1) => R2, f3: (a: R2) => R3, f4: (a: R3) => R4, f5: (a: R4) => R5, f6: (a: R5) => R6): LoDashImplicitWrapper<(a1: A1, a2: A2, a3: A3) => R6>; + flow(this: LoDashImplicitWrapper<(a1: A1, a2: A2, a3: A3) => R1>, f2: (a: R1) => R2, f3: (a: R2) => R3, f4: (a: R3) => R4, f5: (a: R4) => R5, f6: (a: R5) => R6, f7: (a: R6) => R7): LoDashImplicitWrapper<(a1: A1, a2: A2, a3: A3) => R7>; + // 4-argument first function + flow(this: LoDashImplicitWrapper<(a1: A1, a2: A2, a3: A3, a4: A4) => R1>, f2: (a: R1) => R2): LoDashImplicitWrapper<(a1: A1, a2: A2, a3: A3, a4: A4) => R2>; + flow(this: LoDashImplicitWrapper<(a1: A1, a2: A2, a3: A3, a4: A4) => R1>, f2: (a: R1) => R2, f3: (a: R2) => R3): LoDashImplicitWrapper<(a1: A1, a2: A2, a3: A3, a4: A4) => R3>; + flow(this: LoDashImplicitWrapper<(a1: A1, a2: A2, a3: A3, a4: A4) => R1>, f2: (a: R1) => R2, f3: (a: R2) => R3, f4: (a: R3) => R4): LoDashImplicitWrapper<(a1: A1, a2: A2, a3: A3, a4: A4) => R4>; + flow(this: LoDashImplicitWrapper<(a1: A1, a2: A2, a3: A3, a4: A4) => R1>, f2: (a: R1) => R2, f3: (a: R2) => R3, f4: (a: R3) => R4, f5: (a: R4) => R5): LoDashImplicitWrapper<(a1: A1, a2: A2, a3: A3, a4: A4) => R5>; + flow(this: LoDashImplicitWrapper<(a1: A1, a2: A2, a3: A3, a4: A4) => R1>, f2: (a: R1) => R2, f3: (a: R2) => R3, f4: (a: R3) => R4, f5: (a: R4) => R5, f6: (a: R5) => R6): LoDashImplicitWrapper<(a1: A1, a2: A2, a3: A3, a4: A4) => R6>; + flow(this: LoDashImplicitWrapper<(a1: A1, a2: A2, a3: A3, a4: A4) => R1>, f2: (a: R1) => R2, f3: (a: R2) => R3, f4: (a: R3) => R4, f5: (a: R4) => R5, f6: (a: R5) => R6, f7: (a: R6) => R7): LoDashImplicitWrapper<(a1: A1, a2: A2, a3: A3, a4: A4) => R7>; + // generic function + flow(...funcs: Array any>>): LoDashImplicitWrapper<(...args: any[]) => any>; } - interface LoDashExplicitObjectWrapper { + interface LoDashExplicitWrapper { /** * @see _.flow */ - flow(...funcs: Function[]): LoDashExplicitObjectWrapper; - /** - * @see _.flow - */ - flow(funcs: Function[]): LoDashExplicitObjectWrapper; + // 0-argument first function + flow(this: LoDashExplicitWrapper<() => R1>, f2: (a: R1) => R2): LoDashExplicitWrapper<() => R2>; + flow(this: LoDashExplicitWrapper<() => R1>, f2: (a: R1) => R2, f3: (a: R2) => R3): LoDashExplicitWrapper<() => R3>; + flow(this: LoDashExplicitWrapper<() => R1>, f2: (a: R1) => R2, f3: (a: R2) => R3, f4: (a: R3) => R4): LoDashExplicitWrapper<() => R4>; + flow(this: LoDashExplicitWrapper<() => R1>, f2: (a: R1) => R2, f3: (a: R2) => R3, f4: (a: R3) => R4, f5: (a: R4) => R5): LoDashExplicitWrapper<() => R5>; + flow(this: LoDashExplicitWrapper<() => R1>, f2: (a: R1) => R2, f3: (a: R2) => R3, f4: (a: R3) => R4, f5: (a: R4) => R5, f6: (a: R5) => R6): LoDashExplicitWrapper<() => R6>; + flow(this: LoDashExplicitWrapper<() => R1>, f2: (a: R1) => R2, f3: (a: R2) => R3, f4: (a: R3) => R4, f5: (a: R4) => R5, f6: (a: R5) => R6, f7: (a: R6) => R7): LoDashExplicitWrapper<() => R7>; + // 1-argument first function + flow(this: LoDashExplicitWrapper<(a1: A1) => R1>, f2: (a: R1) => R2): LoDashExplicitWrapper<(a1: A1) => R2>; + flow(this: LoDashExplicitWrapper<(a1: A1) => R1>, f2: (a: R1) => R2, f3: (a: R2) => R3): LoDashExplicitWrapper<(a1: A1) => R3>; + flow(this: LoDashExplicitWrapper<(a1: A1) => R1>, f2: (a: R1) => R2, f3: (a: R2) => R3, f4: (a: R3) => R4): LoDashExplicitWrapper<(a1: A1) => R4>; + flow(this: LoDashExplicitWrapper<(a1: A1) => R1>, f2: (a: R1) => R2, f3: (a: R2) => R3, f4: (a: R3) => R4, f5: (a: R4) => R5): LoDashExplicitWrapper<(a1: A1) => R5>; + flow(this: LoDashExplicitWrapper<(a1: A1) => R1>, f2: (a: R1) => R2, f3: (a: R2) => R3, f4: (a: R3) => R4, f5: (a: R4) => R5, f6: (a: R5) => R6): LoDashExplicitWrapper<(a1: A1) => R6>; + flow(this: LoDashExplicitWrapper<(a1: A1) => R1>, f2: (a: R1) => R2, f3: (a: R2) => R3, f4: (a: R3) => R4, f5: (a: R4) => R5, f6: (a: R5) => R6, f7: (a: R6) => R7): LoDashExplicitWrapper<(a1: A1) => R7>; + // 2-argument first function + flow(this: LoDashExplicitWrapper<(a1: A1, a2: A2) => R1>, f2: (a: R1) => R2): LoDashExplicitWrapper<(a1: A1, a2: A2) => R2>; + flow(this: LoDashExplicitWrapper<(a1: A1, a2: A2) => R1>, f2: (a: R1) => R2, f3: (a: R2) => R3): LoDashExplicitWrapper<(a1: A1, a2: A2) => R3>; + flow(this: LoDashExplicitWrapper<(a1: A1, a2: A2) => R1>, f2: (a: R1) => R2, f3: (a: R2) => R3, f4: (a: R3) => R4): LoDashExplicitWrapper<(a1: A1, a2: A2) => R4>; + flow(this: LoDashExplicitWrapper<(a1: A1, a2: A2) => R1>, f2: (a: R1) => R2, f3: (a: R2) => R3, f4: (a: R3) => R4, f5: (a: R4) => R5): LoDashExplicitWrapper<(a1: A1, a2: A2) => R5>; + flow(this: LoDashExplicitWrapper<(a1: A1, a2: A2) => R1>, f2: (a: R1) => R2, f3: (a: R2) => R3, f4: (a: R3) => R4, f5: (a: R4) => R5, f6: (a: R5) => R6): LoDashExplicitWrapper<(a1: A1, a2: A2) => R6>; + flow(this: LoDashExplicitWrapper<(a1: A1, a2: A2) => R1>, f2: (a: R1) => R2, f3: (a: R2) => R3, f4: (a: R3) => R4, f5: (a: R4) => R5, f6: (a: R5) => R6, f7: (a: R6) => R7): LoDashExplicitWrapper<(a1: A1, a2: A2) => R7>; + // 3-argument first function + flow(this: LoDashExplicitWrapper<(a1: A1, a2: A2, a3: A3) => R1>, f2: (a: R1) => R2): LoDashExplicitWrapper<(a1: A1, a2: A2, a3: A3) => R2>; + flow(this: LoDashExplicitWrapper<(a1: A1, a2: A2, a3: A3) => R1>, f2: (a: R1) => R2, f3: (a: R2) => R3): LoDashExplicitWrapper<(a1: A1, a2: A2, a3: A3) => R3>; + flow(this: LoDashExplicitWrapper<(a1: A1, a2: A2, a3: A3) => R1>, f2: (a: R1) => R2, f3: (a: R2) => R3, f4: (a: R3) => R4): LoDashExplicitWrapper<(a1: A1, a2: A2, a3: A3) => R4>; + flow(this: LoDashExplicitWrapper<(a1: A1, a2: A2, a3: A3) => R1>, f2: (a: R1) => R2, f3: (a: R2) => R3, f4: (a: R3) => R4, f5: (a: R4) => R5): LoDashExplicitWrapper<(a1: A1, a2: A2, a3: A3) => R5>; + flow(this: LoDashExplicitWrapper<(a1: A1, a2: A2, a3: A3) => R1>, f2: (a: R1) => R2, f3: (a: R2) => R3, f4: (a: R3) => R4, f5: (a: R4) => R5, f6: (a: R5) => R6): LoDashExplicitWrapper<(a1: A1, a2: A2, a3: A3) => R6>; + flow(this: LoDashExplicitWrapper<(a1: A1, a2: A2, a3: A3) => R1>, f2: (a: R1) => R2, f3: (a: R2) => R3, f4: (a: R3) => R4, f5: (a: R4) => R5, f6: (a: R5) => R6, f7: (a: R6) => R7): LoDashExplicitWrapper<(a1: A1, a2: A2, a3: A3) => R7>; + // 4-argument first function + flow(this: LoDashExplicitWrapper<(a1: A1, a2: A2, a3: A3, a4: A4) => R1>, f2: (a: R1) => R2): LoDashExplicitWrapper<(a1: A1, a2: A2, a3: A3, a4: A4) => R2>; + flow(this: LoDashExplicitWrapper<(a1: A1, a2: A2, a3: A3, a4: A4) => R1>, f2: (a: R1) => R2, f3: (a: R2) => R3): LoDashExplicitWrapper<(a1: A1, a2: A2, a3: A3, a4: A4) => R3>; + flow(this: LoDashExplicitWrapper<(a1: A1, a2: A2, a3: A3, a4: A4) => R1>, f2: (a: R1) => R2, f3: (a: R2) => R3, f4: (a: R3) => R4): LoDashExplicitWrapper<(a1: A1, a2: A2, a3: A3, a4: A4) => R4>; + flow(this: LoDashExplicitWrapper<(a1: A1, a2: A2, a3: A3, a4: A4) => R1>, f2: (a: R1) => R2, f3: (a: R2) => R3, f4: (a: R3) => R4, f5: (a: R4) => R5): LoDashExplicitWrapper<(a1: A1, a2: A2, a3: A3, a4: A4) => R5>; + flow(this: LoDashExplicitWrapper<(a1: A1, a2: A2, a3: A3, a4: A4) => R1>, f2: (a: R1) => R2, f3: (a: R2) => R3, f4: (a: R3) => R4, f5: (a: R4) => R5, f6: (a: R5) => R6): LoDashExplicitWrapper<(a1: A1, a2: A2, a3: A3, a4: A4) => R6>; + flow(this: LoDashExplicitWrapper<(a1: A1, a2: A2, a3: A3, a4: A4) => R1>, f2: (a: R1) => R2, f3: (a: R2) => R3, f4: (a: R3) => R4, f5: (a: R4) => R5, f6: (a: R5) => R6, f7: (a: R6) => R7): LoDashExplicitWrapper<(a1: A1, a2: A2, a3: A3, a4: A4) => R7>; + // generic function + flow(...funcs: Array any>>): LoDashExplicitWrapper<(...args: any[]) => any>; } //_.flowRight @@ -10846,37 +8035,25 @@ declare namespace _ { * @param funcs Functions to invoke. * @return Returns the new function. */ - flowRight(...funcs: Function[]): TResult; - /** - * @see _.flowRight - */ - flowRight(funcs: Function[]): TResult; + flowRight(...funcs: Array any>>): (...args: any[]) => any; } - interface LoDashImplicitObjectWrapper { + interface LoDashImplicitWrapper { /** * @see _.flowRight */ - flowRight(...funcs: Function[]): LoDashImplicitObjectWrapper; - /** - * @see _.flowRight - */ - flowRight(funcs: Function[]): LoDashImplicitObjectWrapper; + flowRight(...funcs: Array any>>): LoDashImplicitWrapper<(...args: any[]) => any>; } - interface LoDashExplicitObjectWrapper { + interface LoDashExplicitWrapper { /** * @see _.flowRight */ - flowRight(...funcs: Function[]): LoDashExplicitObjectWrapper; - /** - * @see _.flowRight - */ - flowRight(funcs: Function[]): LoDashExplicitObjectWrapper; + flowRight(...funcs: Array any>>): LoDashExplicitWrapper<(...args: any[]) => any>; } //_.memoize - interface MemoizedFunction extends Function { + interface MemoizedFunction { cache: MapCache; } @@ -10892,23 +8069,23 @@ declare namespace _ { * @return Returns the new memoizing function. */ memoize: { - (func: T, resolver?: Function): T & MemoizedFunction; + any>(func: T, resolver?: (...args: any[]) => any): T & MemoizedFunction; Cache: MapCacheConstructor; }; } - interface LoDashImplicitObjectWrapper { + interface LoDashImplicitWrapper { /** * @see _.memoize */ - memoize(resolver?: Function): LoDashImplicitObjectWrapper; + memoize(resolver?: (...args: any[]) => any): LoDashImplicitWrapper; } - interface LoDashExplicitObjectWrapper { + interface LoDashExplicitWrapper { /** * @see _.memoize */ - memoize(resolver?: Function): LoDashExplicitObjectWrapper; + memoize(resolver?: (...args: any[]) => any): LoDashExplicitWrapper; } //_.overArgs (was _.modArgs) @@ -10921,42 +8098,24 @@ declare namespace _ { * of functions. * @return Returns the new function. */ - overArgs( - func: T, - ...transforms: Function[] - ): TResult; - - /** - * @see _.overArgs - */ - overArgs( - func: T, - transforms: Function[] - ): TResult; + overArgs( + func: (...args: any[]) => any, + ...transforms: Array any>> + ): (...args: any[]) => any; } - interface LoDashImplicitObjectWrapper { + interface LoDashImplicitWrapper { /** * @see _.overArgs */ - overArgs(...transforms: Function[]): LoDashImplicitObjectWrapper; - - /** - * @see _.overArgs - */ - overArgs(transforms: Function[]): LoDashImplicitObjectWrapper; + overArgs(...transforms: Array any>>): LoDashImplicitWrapper<(...args: any[]) => any>; } - interface LoDashExplicitObjectWrapper { + interface LoDashExplicitWrapper { /** * @see _.overArgs */ - overArgs(...transforms: Function[]): LoDashExplicitObjectWrapper; - - /** - * @see _.overArgs - */ - overArgs(transforms: Function[]): LoDashExplicitObjectWrapper; + overArgs(...transforms: Array any>>): LoDashExplicitWrapper<(...args: any[]) => any>; } //_.negate @@ -10968,36 +8127,14 @@ declare namespace _ { * @param predicate The predicate to negate. * @return Returns the new function. */ - negate(predicate: T): (...args: any[]) => boolean; - - /** - * @see _.negate - */ - negate(predicate: T): TResult; + negate any>(predicate: T): T; } - interface LoDashImplicitObjectWrapper { + interface LoDashWrapper { /** * @see _.negate */ - negate(): LoDashImplicitObjectWrapper<(...args: any[]) => boolean>; - - /** - * @see _.negate - */ - negate(): LoDashImplicitObjectWrapper; - } - - interface LoDashExplicitObjectWrapper { - /** - * @see _.negate - */ - negate(): LoDashExplicitObjectWrapper<(...args: any[]) => boolean>; - - /** - * @see _.negate - */ - negate(): LoDashExplicitObjectWrapper; + negate(): this; } //_.once @@ -11009,21 +8146,14 @@ declare namespace _ { * @param func The function to restrict. * @return Returns the new restricted function. */ - once(func: T): T; + once any>(func: T): T; } - interface LoDashImplicitObjectWrapper { + interface LoDashWrapper { /** * @see _.once */ - once(): LoDashImplicitObjectWrapper; - } - - interface LoDashExplicitObjectWrapper { - /** - * @see _.once - */ - once(): LoDashExplicitObjectWrapper; + once(): this; } //_.partial @@ -11039,6 +8169,20 @@ declare namespace _ { partial: Partial; } + interface LoDashImplicitWrapper { + /** + * @see _.partial + */ + partial: ImplicitPartial; + } + + interface LoDashExplicitWrapper { + /** + * @see _.partial + */ + partial: ExplicitPartial; + } + type PH = LoDashStatic; type Function0 = () => R; @@ -11085,7 +8229,89 @@ declare namespace _ { (func: Function4, plc1: PH, arg2: T2, arg3: T3, arg4: T4): Function1; (func: Function4, arg1: T1, arg2: T2, arg3: T3, arg4: T4): Function0< R>; // catch-all - (func: Function, ...args: any[]): Function; + (func: (...args: any[]) => any, ...args: any[]): (...args: any[]) => any; + } + + interface ImplicitPartial { + // arity 0 + (this: LoDashImplicitWrapper>): LoDashImplicitWrapper>; + // arity 1 + (this: LoDashImplicitWrapper>): LoDashImplicitWrapper>; + (this: LoDashImplicitWrapper>, arg1: T1): LoDashImplicitWrapper>; + // arity 2 + (this: LoDashImplicitWrapper>): LoDashImplicitWrapper>; + (this: LoDashImplicitWrapper>, arg1: T1): LoDashImplicitWrapper>; + (this: LoDashImplicitWrapper>, plc1: PH, arg2: T2): LoDashImplicitWrapper>; + (this: LoDashImplicitWrapper>, arg1: T1, arg2: T2): LoDashImplicitWrapper>; + // arity 3 + (this: LoDashImplicitWrapper>): LoDashImplicitWrapper>; + (this: LoDashImplicitWrapper>, arg1: T1): LoDashImplicitWrapper>; + (this: LoDashImplicitWrapper>, plc1: PH, arg2: T2): LoDashImplicitWrapper>; + (this: LoDashImplicitWrapper>, arg1: T1, arg2: T2): LoDashImplicitWrapper>; + (this: LoDashImplicitWrapper>, plc1: PH, plc2: PH, arg3: T3): LoDashImplicitWrapper>; + (this: LoDashImplicitWrapper>, arg1: T1, plc2: PH, arg3: T3): LoDashImplicitWrapper>; + (this: LoDashImplicitWrapper>, plc1: PH, arg2: T2, arg3: T3): LoDashImplicitWrapper>; + (this: LoDashImplicitWrapper>, arg1: T1, arg2: T2, arg3: T3): LoDashImplicitWrapper>; + // arity 4 + (this: LoDashImplicitWrapper>): LoDashImplicitWrapper>; + (this: LoDashImplicitWrapper>, arg1: T1): LoDashImplicitWrapper>; + (this: LoDashImplicitWrapper>, plc1: PH, arg2: T2): LoDashImplicitWrapper>; + (this: LoDashImplicitWrapper>, arg1: T1, arg2: T2): LoDashImplicitWrapper>; + (this: LoDashImplicitWrapper>, plc1: PH, plc2: PH, arg3: T3): LoDashImplicitWrapper>; + (this: LoDashImplicitWrapper>, arg1: T1, plc2: PH, arg3: T3): LoDashImplicitWrapper>; + (this: LoDashImplicitWrapper>, plc1: PH, arg2: T2, arg3: T3): LoDashImplicitWrapper>; + (this: LoDashImplicitWrapper>, arg1: T1, arg2: T2, arg3: T3): LoDashImplicitWrapper>; + (this: LoDashImplicitWrapper>, plc1: PH, plc2: PH, plc3: PH, arg4: T4): LoDashImplicitWrapper>; + (this: LoDashImplicitWrapper>, arg1: T1, plc2: PH, plc3: PH, arg4: T4): LoDashImplicitWrapper>; + (this: LoDashImplicitWrapper>, plc1: PH, arg2: T2, plc3: PH, arg4: T4): LoDashImplicitWrapper>; + (this: LoDashImplicitWrapper>, arg1: T1, arg2: T2, plc3: PH, arg4: T4): LoDashImplicitWrapper>; + (this: LoDashImplicitWrapper>, plc1: PH, plc2: PH, arg3: T3, arg4: T4): LoDashImplicitWrapper>; + (this: LoDashImplicitWrapper>, arg1: T1, plc2: PH, arg3: T3, arg4: T4): LoDashImplicitWrapper>; + (this: LoDashImplicitWrapper>, plc1: PH, arg2: T2, arg3: T3, arg4: T4): LoDashImplicitWrapper>; + (this: LoDashImplicitWrapper>, arg1: T1, arg2: T2, arg3: T3, arg4: T4): LoDashImplicitWrapper>; + // catch-all + (...args: any[]): LoDashImplicitWrapper<(...args: any[]) => any>; + } + + interface ExplicitPartial { + // arity 0 + (this: LoDashExplicitWrapper>): LoDashExplicitWrapper>; + // arity 1 + (this: LoDashExplicitWrapper>): LoDashExplicitWrapper>; + (this: LoDashExplicitWrapper>, arg1: T1): LoDashExplicitWrapper>; + // arity 2 + (this: LoDashExplicitWrapper>): LoDashExplicitWrapper>; + (this: LoDashExplicitWrapper>, arg1: T1): LoDashExplicitWrapper>; + (this: LoDashExplicitWrapper>, plc1: PH, arg2: T2): LoDashExplicitWrapper>; + (this: LoDashExplicitWrapper>, arg1: T1, arg2: T2): LoDashExplicitWrapper>; + // arity 3 + (this: LoDashExplicitWrapper>): LoDashExplicitWrapper>; + (this: LoDashExplicitWrapper>, arg1: T1): LoDashExplicitWrapper>; + (this: LoDashExplicitWrapper>, plc1: PH, arg2: T2): LoDashExplicitWrapper>; + (this: LoDashExplicitWrapper>, arg1: T1, arg2: T2): LoDashExplicitWrapper>; + (this: LoDashExplicitWrapper>, plc1: PH, plc2: PH, arg3: T3): LoDashExplicitWrapper>; + (this: LoDashExplicitWrapper>, arg1: T1, plc2: PH, arg3: T3): LoDashExplicitWrapper>; + (this: LoDashExplicitWrapper>, plc1: PH, arg2: T2, arg3: T3): LoDashExplicitWrapper>; + (this: LoDashExplicitWrapper>, arg1: T1, arg2: T2, arg3: T3): LoDashExplicitWrapper>; + // arity 4 + (this: LoDashExplicitWrapper>): LoDashExplicitWrapper>; + (this: LoDashExplicitWrapper>, arg1: T1): LoDashExplicitWrapper>; + (this: LoDashExplicitWrapper>, plc1: PH, arg2: T2): LoDashExplicitWrapper>; + (this: LoDashExplicitWrapper>, arg1: T1, arg2: T2): LoDashExplicitWrapper>; + (this: LoDashExplicitWrapper>, plc1: PH, plc2: PH, arg3: T3): LoDashExplicitWrapper>; + (this: LoDashExplicitWrapper>, arg1: T1, plc2: PH, arg3: T3): LoDashExplicitWrapper>; + (this: LoDashExplicitWrapper>, plc1: PH, arg2: T2, arg3: T3): LoDashExplicitWrapper>; + (this: LoDashExplicitWrapper>, arg1: T1, arg2: T2, arg3: T3): LoDashExplicitWrapper>; + (this: LoDashExplicitWrapper>, plc1: PH, plc2: PH, plc3: PH, arg4: T4): LoDashExplicitWrapper>; + (this: LoDashExplicitWrapper>, arg1: T1, plc2: PH, plc3: PH, arg4: T4): LoDashExplicitWrapper>; + (this: LoDashExplicitWrapper>, plc1: PH, arg2: T2, plc3: PH, arg4: T4): LoDashExplicitWrapper>; + (this: LoDashExplicitWrapper>, arg1: T1, arg2: T2, plc3: PH, arg4: T4): LoDashExplicitWrapper>; + (this: LoDashExplicitWrapper>, plc1: PH, plc2: PH, arg3: T3, arg4: T4): LoDashExplicitWrapper>; + (this: LoDashExplicitWrapper>, arg1: T1, plc2: PH, arg3: T3, arg4: T4): LoDashExplicitWrapper>; + (this: LoDashExplicitWrapper>, plc1: PH, arg2: T2, arg3: T3, arg4: T4): LoDashExplicitWrapper>; + (this: LoDashExplicitWrapper>, arg1: T1, arg2: T2, arg3: T3, arg4: T4): LoDashExplicitWrapper>; + // catch-all + (...args: any[]): LoDashExplicitWrapper<(...args: any[]) => any>; } //_.partialRight @@ -11100,6 +8326,20 @@ declare namespace _ { partialRight: PartialRight; } + interface LoDashImplicitWrapper { + /** + * @see _.partialRight + */ + partialRight: ImplicitPartialRight; + } + + interface LoDashExplicitWrapper { + /** + * @see _.partialRight + */ + partialRight: ExplicitPartialRight; + } + interface PartialRight { // arity 0 (func: Function0): Function0; @@ -11138,7 +8378,89 @@ declare namespace _ { (func: Function4, arg2: T2, arg3: T3, arg4: T4): Function1; (func: Function4, arg1: T1, arg2: T2, arg3: T3, arg4: T4): Function0< R>; // catch-all - (func: Function, ...args: any[]): Function; + (func: (...args: any[]) => any, ...args: any[]): (...args: any[]) => any; + } + + interface ImplicitPartialRight { + // arity 0 + (this: LoDashImplicitWrapper>): LoDashImplicitWrapper>; + // arity 1 + (this: LoDashImplicitWrapper>): LoDashImplicitWrapper>; + (this: LoDashImplicitWrapper>, arg1: T1): LoDashImplicitWrapper>; + // arity 2 + (this: LoDashImplicitWrapper>): LoDashImplicitWrapper>; + (this: LoDashImplicitWrapper>, arg1: T1, plc2: PH): LoDashImplicitWrapper>; + (this: LoDashImplicitWrapper>, arg2: T2): LoDashImplicitWrapper>; + (this: LoDashImplicitWrapper>, arg1: T1, arg2: T2): LoDashImplicitWrapper>; + // arity 3 + (this: LoDashImplicitWrapper>): LoDashImplicitWrapper>; + (this: LoDashImplicitWrapper>, arg1: T1, plc2: PH, plc3: PH): LoDashImplicitWrapper>; + (this: LoDashImplicitWrapper>, arg2: T2, plc3: PH): LoDashImplicitWrapper>; + (this: LoDashImplicitWrapper>, arg1: T1, arg2: T2, plc3: PH): LoDashImplicitWrapper>; + (this: LoDashImplicitWrapper>, arg3: T3): LoDashImplicitWrapper>; + (this: LoDashImplicitWrapper>, arg1: T1, plc2: PH, arg3: T3): LoDashImplicitWrapper>; + (this: LoDashImplicitWrapper>, arg2: T2, arg3: T3): LoDashImplicitWrapper>; + (this: LoDashImplicitWrapper>, arg1: T1, arg2: T2, arg3: T3): LoDashImplicitWrapper>; + // arity 4 + (this: LoDashImplicitWrapper>): LoDashImplicitWrapper>; + (this: LoDashImplicitWrapper>, arg1: T1, plc2: PH, plc3: PH, plc4: PH): LoDashImplicitWrapper>; + (this: LoDashImplicitWrapper>, arg2: T2, plc3: PH, plc4: PH): LoDashImplicitWrapper>; + (this: LoDashImplicitWrapper>, arg1: T1, arg2: T2, plc3: PH, plc4: PH): LoDashImplicitWrapper>; + (this: LoDashImplicitWrapper>, arg3: T3, plc4: PH): LoDashImplicitWrapper>; + (this: LoDashImplicitWrapper>, arg1: T1, plc2: PH, arg3: T3, plc4: PH): LoDashImplicitWrapper>; + (this: LoDashImplicitWrapper>, arg2: T2, arg3: T3, plc4: PH): LoDashImplicitWrapper>; + (this: LoDashImplicitWrapper>, arg1: T1, arg2: T2, arg3: T3, plc4: PH): LoDashImplicitWrapper>; + (this: LoDashImplicitWrapper>, arg4: T4): LoDashImplicitWrapper>; + (this: LoDashImplicitWrapper>, arg1: T1, plc2: PH, plc3: PH, arg4: T4): LoDashImplicitWrapper>; + (this: LoDashImplicitWrapper>, arg2: T2, plc3: PH, arg4: T4): LoDashImplicitWrapper>; + (this: LoDashImplicitWrapper>, arg1: T1, arg2: T2, plc3: PH, arg4: T4): LoDashImplicitWrapper>; + (this: LoDashImplicitWrapper>, arg3: T3, arg4: T4): LoDashImplicitWrapper>; + (this: LoDashImplicitWrapper>, arg1: T1, plc2: PH, arg3: T3, arg4: T4): LoDashImplicitWrapper>; + (this: LoDashImplicitWrapper>, arg2: T2, arg3: T3, arg4: T4): LoDashImplicitWrapper>; + (this: LoDashImplicitWrapper>, arg1: T1, arg2: T2, arg3: T3, arg4: T4): LoDashImplicitWrapper>; + // catch-all + (...args: any[]): LoDashImplicitWrapper<(...args: any[]) => any>; + } + + interface ExplicitPartialRight { + // arity 0 + (this: LoDashExplicitWrapper>): LoDashExplicitWrapper>; + // arity 1 + (this: LoDashExplicitWrapper>): LoDashExplicitWrapper>; + (this: LoDashExplicitWrapper>, arg1: T1): LoDashExplicitWrapper>; + // arity 2 + (this: LoDashExplicitWrapper>): LoDashExplicitWrapper>; + (this: LoDashExplicitWrapper>, arg1: T1, plc2: PH): LoDashExplicitWrapper>; + (this: LoDashExplicitWrapper>, arg2: T2): LoDashExplicitWrapper>; + (this: LoDashExplicitWrapper>, arg1: T1, arg2: T2): LoDashExplicitWrapper>; + // arity 3 + (this: LoDashExplicitWrapper>): LoDashExplicitWrapper>; + (this: LoDashExplicitWrapper>, arg1: T1, plc2: PH, plc3: PH): LoDashExplicitWrapper>; + (this: LoDashExplicitWrapper>, arg2: T2, plc3: PH): LoDashExplicitWrapper>; + (this: LoDashExplicitWrapper>, arg1: T1, arg2: T2, plc3: PH): LoDashExplicitWrapper>; + (this: LoDashExplicitWrapper>, arg3: T3): LoDashExplicitWrapper>; + (this: LoDashExplicitWrapper>, arg1: T1, plc2: PH, arg3: T3): LoDashExplicitWrapper>; + (this: LoDashExplicitWrapper>, arg2: T2, arg3: T3): LoDashExplicitWrapper>; + (this: LoDashExplicitWrapper>, arg1: T1, arg2: T2, arg3: T3): LoDashExplicitWrapper>; + // arity 4 + (this: LoDashExplicitWrapper>): LoDashExplicitWrapper>; + (this: LoDashExplicitWrapper>, arg1: T1, plc2: PH, plc3: PH, plc4: PH): LoDashExplicitWrapper>; + (this: LoDashExplicitWrapper>, arg2: T2, plc3: PH, plc4: PH): LoDashExplicitWrapper>; + (this: LoDashExplicitWrapper>, arg1: T1, arg2: T2, plc3: PH, plc4: PH): LoDashExplicitWrapper>; + (this: LoDashExplicitWrapper>, arg3: T3, plc4: PH): LoDashExplicitWrapper>; + (this: LoDashExplicitWrapper>, arg1: T1, plc2: PH, arg3: T3, plc4: PH): LoDashExplicitWrapper>; + (this: LoDashExplicitWrapper>, arg2: T2, arg3: T3, plc4: PH): LoDashExplicitWrapper>; + (this: LoDashExplicitWrapper>, arg1: T1, arg2: T2, arg3: T3, plc4: PH): LoDashExplicitWrapper>; + (this: LoDashExplicitWrapper>, arg4: T4): LoDashExplicitWrapper>; + (this: LoDashExplicitWrapper>, arg1: T1, plc2: PH, plc3: PH, arg4: T4): LoDashExplicitWrapper>; + (this: LoDashExplicitWrapper>, arg2: T2, plc3: PH, arg4: T4): LoDashExplicitWrapper>; + (this: LoDashExplicitWrapper>, arg1: T1, arg2: T2, plc3: PH, arg4: T4): LoDashExplicitWrapper>; + (this: LoDashExplicitWrapper>, arg3: T3, arg4: T4): LoDashExplicitWrapper>; + (this: LoDashExplicitWrapper>, arg1: T1, plc2: PH, arg3: T3, arg4: T4): LoDashExplicitWrapper>; + (this: LoDashExplicitWrapper>, arg2: T2, arg3: T3, arg4: T4): LoDashExplicitWrapper>; + (this: LoDashExplicitWrapper>, arg1: T1, arg2: T2, arg3: T3, arg4: T4): LoDashExplicitWrapper>; + // catch-all + (...args: any[]): LoDashExplicitWrapper<(...args: any[]) => any>; } //_.rearg @@ -11151,24 +8473,21 @@ declare namespace _ { * @param indexes The arranged argument indexes, specified as individual indexes or arrays of indexes. * @return Returns the new function. */ - rearg(func: Function, indexes: number[]): TResult; - - /** - * @see _.rearg - */ - rearg(func: Function, ...indexes: number[]): TResult; + rearg(func: (...args: any[]) => any, ...indexes: Array>): (...args: any[]) => any; } - interface LoDashImplicitObjectWrapper { + interface LoDashImplicitWrapper { /** * @see _.rearg */ - rearg(indexes: number[]): LoDashImplicitObjectWrapper; + rearg(...indexes: Array>): LoDashImplicitWrapper<(...args: any[]) => any>; + } + interface LoDashExplicitWrapper { /** * @see _.rearg */ - rearg(...indexes: number[]): LoDashImplicitObjectWrapper; + rearg(...indexes: Array>): LoDashExplicitWrapper<(...args: any[]) => any>; } //_.rest @@ -11183,32 +8502,24 @@ declare namespace _ { * @param start The start position of the rest parameter. * @return Returns the new function. */ - rest( - func: Function, + rest( + func: (...args: any[]) => any, start?: number - ): TResult; - - /** - * @see _.rest - */ - rest( - func: TFunc, - start?: number - ): TResult; + ): (...args: any[]) => any; } - interface LoDashImplicitObjectWrapper { + interface LoDashImplicitWrapper { /** * @see _.rest */ - rest(start?: number): LoDashImplicitObjectWrapper; + rest(start?: number): LoDashImplicitWrapper<(...args: any[]) => any>; } - interface LoDashExplicitObjectWrapper { + interface LoDashExplicitWrapper { /** * @see _.rest */ - rest(start?: number): LoDashExplicitObjectWrapper; + rest(start?: number): LoDashExplicitWrapper<(...args: any[]) => any>; } //_.spread @@ -11222,26 +8533,36 @@ declare namespace _ { * @param func The function to spread arguments over. * @return Returns the new function. */ - spread(func: F): T; + spread(func: (...args: any[]) => TResult): (...args: any[]) => TResult; /** * @see _.spread */ - spread(func: Function): T; + spread(func: (...args: any[]) => TResult, start: number): (...args: any[]) => TResult; } - interface LoDashImplicitObjectWrapper { + interface LoDashImplicitWrapper { /** * @see _.spread */ - spread(): LoDashImplicitObjectWrapper; + spread(this: LoDashImplicitWrapper<(...args: any[]) => TResult>): LoDashImplicitWrapper<(...args: any[]) => TResult>; + + /** + * @see _.spread + */ + spread(this: LoDashImplicitWrapper<(...args: any[]) => TResult>, start: number): LoDashImplicitWrapper<(...args: any[]) => TResult>; } - interface LoDashExplicitObjectWrapper { + interface LoDashExplicitWrapper { /** * @see _.spread */ - spread(): LoDashExplicitObjectWrapper; + spread(this: LoDashExplicitWrapper<(...args: any[]) => TResult>): LoDashExplicitWrapper<(...args: any[]) => TResult>; + + /** + * @see _.spread + */ + spread(this: LoDashExplicitWrapper<(...args: any[]) => TResult>, start: number): LoDashExplicitWrapper<(...args: any[]) => TResult>; } //_.throttle @@ -11274,31 +8595,31 @@ declare namespace _ { * @param options.trailing Specify invoking on the trailing edge of the timeout. * @return Returns the new throttled function. */ - throttle( + throttle any>( func: T, wait?: number, options?: ThrottleSettings ): T & Cancelable; } - interface LoDashImplicitObjectWrapper { + interface LoDashImplicitWrapper { /** * @see _.throttle */ throttle( wait?: number, options?: ThrottleSettings - ): LoDashImplicitObjectWrapper; + ): LoDashImplicitWrapper; } - interface LoDashExplicitObjectWrapper { + interface LoDashExplicitWrapper { /** * @see _.throttle */ throttle( wait?: number, options?: ThrottleSettings - ): LoDashExplicitObjectWrapper; + ): LoDashExplicitWrapper; } //_.unary @@ -11317,21 +8638,21 @@ declare namespace _ { * _.map(['6', '8', '10'], _.unary(parseInt)); * // => [6, 8, 10] */ - unary(func: T): T; + unary(func: (arg1: T, ...args: any[]) => TResult): (arg1: T) => TResult; } - interface LoDashImplicitObjectWrapper { + interface LoDashImplicitWrapper { /** * @see _.unary */ - unary(): LoDashImplicitObjectWrapper; + unary(this: LoDashImplicitWrapper<(arg1: T, ...args: any[]) => TResult>): LoDashImplicitWrapper<(arg1: T) => TResult>; } - interface LoDashExplicitObjectWrapper { + interface LoDashExplicitWrapper { /** * @see _.unary */ - unary(): LoDashExplicitObjectWrapper; + unary(this: LoDashExplicitWrapper<(arg1: T, ...args: any[]) => TResult>): LoDashExplicitWrapper<(arg1: T) => TResult>; } //_.wrap @@ -11345,98 +8666,53 @@ declare namespace _ { * @param wrapper The wrapper function. * @return Returns the new function. */ - wrap( - value: V, - wrapper: W - ): R; + wrap( + value: T, + wrapper: (value: T, ...args: TArgs[]) => TResult + ): (...args: TArgs[]) => TResult; /** * @see _.wrap */ - wrap( - value: V, - wrapper: Function - ): R; - - /** - * @see _.wrap - */ - wrap( - value: any, - wrapper: Function - ): R; + wrap( + value: T, + wrapper: (value: T, ...args: any[]) => TResult + ): (...args: any[]) => TResult; } - interface LoDashImplicitWrapper { + interface LoDashImplicitWrapper { /** * @see _.wrap */ - wrap(wrapper: W): LoDashImplicitObjectWrapper; + wrap( + wrapper: (value: TValue, ...args: TArgs[]) => TResult + ): LoDashImplicitWrapper<(...args: TArgs[]) => TResult>; /** * @see _.wrap */ - wrap(wrapper: Function): LoDashImplicitObjectWrapper; + wrap( + wrapper: (value: TValue, ...args: any[]) => TResult + ): LoDashImplicitWrapper<(...args: any[]) => TResult>; } - interface LoDashImplicitArrayWrapperBase { + interface LoDashExplicitWrapper { /** * @see _.wrap */ - wrap(wrapper: W): LoDashImplicitObjectWrapper; + /** + * @see _.wrap + */ + wrap( + wrapper: (value: TValue, ...args: TArgs[]) => TResult + ): LoDashExplicitWrapper<(...args: TArgs[]) => TResult>; /** * @see _.wrap */ - wrap(wrapper: Function): LoDashImplicitObjectWrapper; - } - - interface LoDashImplicitObjectWrapperBase { - /** - * @see _.wrap - */ - wrap(wrapper: W): LoDashImplicitObjectWrapper; - - /** - * @see _.wrap - */ - wrap(wrapper: Function): LoDashImplicitObjectWrapper; - } - - interface LoDashExplicitWrapper { - /** - * @see _.wrap - */ - wrap(wrapper: W): LoDashExplicitObjectWrapper; - - /** - * @see _.wrap - */ - wrap(wrapper: Function): LoDashExplicitObjectWrapper; - } - - interface LoDashExplicitArrayWrapperBase { - /** - * @see _.wrap - */ - wrap(wrapper: W): LoDashExplicitObjectWrapper; - - /** - * @see _.wrap - */ - wrap(wrapper: Function): LoDashExplicitObjectWrapper; - } - - interface LoDashExplicitObjectWrapperBase { - /** - * @see _.wrap - */ - wrap(wrapper: W): LoDashExplicitObjectWrapper; - - /** - * @see _.wrap - */ - wrap(wrapper: Function): LoDashExplicitObjectWrapper; + wrap( + wrapper: (value: TValue, ...args: any[]) => TResult + ): LoDashExplicitWrapper<(...args: any[]) => TResult>; } /******** @@ -11454,46 +8730,18 @@ declare namespace _ { castArray(value?: Many): T[]; } - interface LoDashImplicitWrapper { + interface LoDashImplicitWrapper { /** * @see _.castArray */ - castArray(): LoDashImplicitArrayWrapper; + castArray(this: LoDashImplicitWrapper>): LoDashImplicitWrapper; } - interface LoDashImplicitArrayWrapperBase { + interface LoDashExplicitWrapper { /** * @see _.castArray */ - castArray(): TWrapper; - } - - interface LoDashImplicitObjectWrapperBase { - /** - * @see _.castArray - */ - castArray(): LoDashImplicitArrayWrapper; - } - - interface LoDashExplicitWrapper { - /** - * @see _.castArray - */ - castArray(): LoDashExplicitArrayWrapper; - } - - interface LoDashExplicitArrayWrapperBase { - /** - * @see _.castArray - */ - castArray(): TWrapper; - } - - interface LoDashExplicitObjectWrapperBase { - /** - * @see _.castArray - */ - castArray(): LoDashExplicitArrayWrapper; + castArray(this: LoDashExplicitWrapper>): LoDashExplicitWrapper; } //_.clone @@ -11512,46 +8760,18 @@ declare namespace _ { clone(value: T): T; } - interface LoDashImplicitWrapper { + interface LoDashImplicitWrapper { /** * @see _.clone */ - clone(): T; + clone(): TValue; } - interface LoDashImplicitArrayWrapperBase { + interface LoDashExplicitWrapper { /** * @see _.clone */ - clone(): TArray; - } - - interface LoDashImplicitObjectWrapperBase { - /** - * @see _.clone - */ - clone(): TObject; - } - - interface LoDashExplicitWrapper { - /** - * @see _.clone - */ - clone(): LoDashExplicitWrapper; - } - - interface LoDashExplicitArrayWrapperBase { - /** - * @see _.clone - */ - clone(): TWrapper; - } - - interface LoDashExplicitObjectWrapperBase { - /** - * @see _.clone - */ - clone(): TWrapper; + clone(): this; } //_.cloneDeep @@ -11565,50 +8785,22 @@ declare namespace _ { cloneDeep(value: T): T; } - interface LoDashImplicitWrapper { + interface LoDashImplicitWrapper { /** * @see _.cloneDeep */ - cloneDeep(): T; + cloneDeep(): TValue; } - interface LoDashImplicitArrayWrapperBase { + interface LoDashExplicitWrapper { /** * @see _.cloneDeep */ - cloneDeep(): TArray; - } - - interface LoDashImplicitObjectWrapperBase { - /** - * @see _.cloneDeep - */ - cloneDeep(): TObject; - } - - interface LoDashExplicitWrapper { - /** - * @see _.cloneDeep - */ - cloneDeep(): LoDashExplicitWrapper; - } - - interface LoDashExplicitArrayWrapperBase { - /** - * @see _.cloneDeep - */ - cloneDeep(): TWrapper; - } - - interface LoDashExplicitObjectWrapperBase { - /** - * @see _.cloneDeep - */ - cloneDeep(): TWrapper; + cloneDeep(): this; } //_.cloneDeepWith - type CloneDeepWithCustomizer = (value: TValue, key?: number|string, object?: any, stack?: any) => TResult; + type CloneDeepWithCustomizer = (value: any, key: number | string | undefined, object: TObject | undefined, stack: any) => any; interface LoDashStatic { /** @@ -11618,118 +8810,47 @@ declare namespace _ { * @param customizer The function to customize cloning. * @return Returns the deep cloned value. */ - cloneDeepWith( - value: any, - customizer?: CloneDeepWithCustomizer - ): TResult; - - /** - * @see _.clonDeepeWith - */ - cloneDeepWith( + cloneDeepWith( value: T, - customizer?: CloneDeepWithCustomizer - ): TResult; + customizer: CloneDeepWithCustomizer + ): any; + + /** + * @see _.cloneDeepWith + */ + cloneDeepWith(value: T): T; } - interface LoDashImplicitWrapper { + interface LoDashImplicitWrapper { /** * @see _.cloneDeepWith */ - cloneDeepWith( - customizer?: CloneDeepWithCustomizer - ): TResult; + cloneDeepWith( + customizer: CloneDeepWithCustomizer + ): any; + + /** + * @see _.cloneDeepWith + */ + cloneDeepWith(): TValue; } - interface LoDashImplicitArrayWrapperBase { + interface LoDashExplicitWrapper { /** * @see _.cloneDeepWith */ - cloneDeepWith( - customizer?: CloneDeepWithCustomizer - ): TResult; - } - - interface LoDashImplicitObjectWrapperBase { - /** - * @see _.cloneDeepWith - */ - cloneDeepWith( - customizer?: CloneDeepWithCustomizer - ): TResult; - } - - interface LoDashExplicitWrapper { - /** - * @see _.cloneDeepWith - */ - cloneDeepWith( - customizer?: CloneDeepWithCustomizer - ): LoDashExplicitWrapper; + cloneDeepWith( + customizer: CloneDeepWithCustomizer + ): LoDashExplicitWrapper; /** * @see _.cloneDeepWith */ - cloneDeepWith( - customizer?: CloneDeepWithCustomizer - ): LoDashExplicitArrayWrapper; - - /** - * @see _.cloneDeepWith - */ - cloneDeepWith( - customizer?: CloneDeepWithCustomizer - ): LoDashExplicitObjectWrapper; - } - - interface LoDashExplicitArrayWrapperBase { - /** - * @see _.cloneDeepWith - */ - cloneDeepWith( - customizer?: CloneDeepWithCustomizer - ): LoDashExplicitWrapper; - - /** - * @see _.cloneDeepWith - */ - cloneDeepWith( - customizer?: CloneDeepWithCustomizer - ): LoDashExplicitArrayWrapper; - - /** - * @see _.cloneDeepWith - */ - cloneDeepWith( - customizer?: CloneDeepWithCustomizer - ): LoDashExplicitObjectWrapper; - } - - interface LoDashExplicitObjectWrapperBase { - /** - * @see _.cloneDeepWith - */ - cloneDeepWith( - customizer?: CloneDeepWithCustomizer - ): LoDashExplicitWrapper; - - /** - * @see _.cloneDeepWith - */ - cloneDeepWith( - customizer?: CloneDeepWithCustomizer - ): LoDashExplicitArrayWrapper; - - /** - * @see _.cloneDeepWith - */ - cloneDeepWith( - customizer?: CloneDeepWithCustomizer - ): LoDashExplicitObjectWrapper; + cloneDeepWith(): this; } //_.cloneWith - type CloneWithCustomizer = (value: TValue, key?: number|string, object?: any, stack?: any) => TResult; + type CloneWithCustomizer = (value: TValue, key: number | string | undefined, object: any, stack: any) => TResult; interface LoDashStatic { /** @@ -11740,9 +8861,9 @@ declare namespace _ { * @param customizer The function to customize cloning. * @return Returns the cloned value. */ - cloneWith( - value: any, - customizer?: CloneWithCustomizer + cloneWith( + value: T, + customizer: CloneWithCustomizer ): TResult; /** @@ -11750,111 +8871,62 @@ declare namespace _ { */ cloneWith( value: T, - customizer?: CloneWithCustomizer - ): TResult; + customizer: CloneWithCustomizer + ): TResult | T; + + /** + * @see _.cloneWith + */ + cloneWith(value: T): T; } - interface LoDashImplicitWrapper { + interface LoDashImplicitWrapper { + /** + * @see _.cloneWith + */ + cloneWith( + customizer: CloneWithCustomizer + ): TResult; + /** * @see _.cloneWith */ cloneWith( - customizer?: CloneWithCustomizer - ): TResult; - } + customizer: CloneWithCustomizer + ): TResult | TValue; - interface LoDashImplicitArrayWrapperBase { /** * @see _.cloneWith */ - cloneWith( - customizer?: CloneWithCustomizer - ): TResult; + cloneWith(): TValue; } - interface LoDashImplicitObjectWrapperBase { + interface LoDashExplicitWrapper { /** * @see _.cloneWith */ - cloneWith( - customizer?: CloneWithCustomizer - ): TResult; - } - - interface LoDashExplicitWrapper { - /** - * @see _.cloneWith - */ - cloneWith( - customizer?: CloneWithCustomizer + cloneWith( + customizer: CloneWithCustomizer ): LoDashExplicitWrapper; /** * @see _.cloneWith */ cloneWith( - customizer?: CloneWithCustomizer - ): LoDashExplicitArrayWrapper; + customizer: CloneWithCustomizer + ): LoDashExplicitWrapper; /** * @see _.cloneWith */ - cloneWith( - customizer?: CloneWithCustomizer - ): LoDashExplicitObjectWrapper; - } - - interface LoDashExplicitArrayWrapperBase { - /** - * @see _.cloneWith - */ - cloneWith( - customizer?: CloneWithCustomizer - ): LoDashExplicitWrapper; - - /** - * @see _.cloneWith - */ - cloneWith( - customizer?: CloneWithCustomizer - ): LoDashExplicitArrayWrapper; - - /** - * @see _.cloneWith - */ - cloneWith( - customizer?: CloneWithCustomizer - ): LoDashExplicitObjectWrapper; - } - - interface LoDashExplicitObjectWrapperBase { - /** - * @see _.cloneWith - */ - cloneWith( - customizer?: CloneWithCustomizer - ): LoDashExplicitWrapper; - - /** - * @see _.cloneWith - */ - cloneWith( - customizer?: CloneWithCustomizer - ): LoDashExplicitArrayWrapper; - - /** - * @see _.cloneWith - */ - cloneWith( - customizer?: CloneWithCustomizer - ): LoDashExplicitObjectWrapper; + cloneWith(): this; } /** * An object containing predicate functions for each property of T */ type ConformsPredicateObject = { - [P in keyof T]: (val: T[P]) => boolean; + [P in keyof T]?: (val: T[P]) => boolean; }; //_.conforms @@ -11863,7 +8935,21 @@ declare namespace _ { * Creates a function that invokes the predicate properties of `source` with the corresponding * property values of a given object, returning true if all predicates return truthy, else false. */ - conforms(source: ConformsPredicateObject): (Target: T) => boolean; + conforms(source: ConformsPredicateObject): (value: T) => boolean; + } + + interface LoDashImplicitWrapper { + /** + * @see _.conforms + */ + conforms(this: LoDashImplicitWrapper>): LoDashImplicitWrapper<(value: T) => boolean>; + } + + interface LoDashExplicitWrapper { + /** + * @see _.conforms + */ + conforms(this: LoDashExplicitWrapper>): LoDashExplicitWrapper<(value: T) => boolean>; } //_.conformsTo @@ -11877,6 +8963,20 @@ declare namespace _ { conformsTo(object: T, source: ConformsPredicateObject): boolean; } + interface LoDashImplicitWrapper { + /** + * @see _.conformsTo + */ + conformsTo(source: ConformsPredicateObject): boolean; + } + + interface LoDashExplicitWrapper { + /** + * @see _.conformsTo + */ + conformsTo(source: ConformsPredicateObject): LoDashExplicitWrapper; + } + type CondPair = [(val: T) => boolean, (val: T) => R] //_.cond @@ -11951,18 +9051,18 @@ declare namespace _ { ): boolean; } - interface LoDashImplicitWrapperBase { + interface LoDashImplicitWrapper { /** - * @see _.isEqual + * @see _.eq */ eq( other: any ): boolean; } - interface LoDashExplicitWrapperBase { + interface LoDashExplicitWrapper { /** - * @see _.isEqual + * @see _.eq */ eq( other: any @@ -11984,14 +9084,14 @@ declare namespace _ { ): boolean; } - interface LoDashImplicitWrapperBase { + interface LoDashImplicitWrapper { /** * @see _.gt */ gt(other: any): boolean; } - interface LoDashExplicitWrapperBase { + interface LoDashExplicitWrapper { /** * @see _.gt */ @@ -12013,14 +9113,14 @@ declare namespace _ { ): boolean; } - interface LoDashImplicitWrapperBase { + interface LoDashImplicitWrapper { /** * @see _.gte */ gte(other: any): boolean; } - interface LoDashExplicitWrapperBase { + interface LoDashExplicitWrapper { /** * @see _.gte */ @@ -12038,14 +9138,14 @@ declare namespace _ { isArguments(value?: any): value is IArguments; } - interface LoDashImplicitWrapperBase { + interface LoDashImplicitWrapper { /** * @see _.isArguments */ isArguments(): boolean; } - interface LoDashExplicitWrapperBase { + interface LoDashExplicitWrapper { /** * @see _.isArguments */ @@ -12068,14 +9168,14 @@ declare namespace _ { isArray(value?: any): value is any[]; } - interface LoDashImplicitWrapperBase { + interface LoDashImplicitWrapper { /** * @see _.isArray */ isArray(): boolean; } - interface LoDashExplicitWrapperBase { + interface LoDashExplicitWrapper { /** * @see _.isArray */ @@ -12093,14 +9193,14 @@ declare namespace _ { isArrayBuffer(value?: any): value is ArrayBuffer; } - interface LoDashImplicitWrapperBase { + interface LoDashImplicitWrapper { /** * @see _.isArrayBuffer */ isArrayBuffer(): boolean; } - interface LoDashExplicitWrapperBase { + interface LoDashExplicitWrapper { /** * @see _.isArrayBuffer */ @@ -12139,27 +9239,22 @@ declare namespace _ { /** * @see _.isArrayLike */ - isArrayLike(value?: Function): value is never; + isArrayLike(value?: ((...args: any[]) => any) | Function | null | undefined): value is never; /** * @see _.isArrayLike */ - isArrayLike(value: T | Function): value is T & { length: number }; - - /** - * DEPRECATED - */ - isArrayLike(value?: any): value is any[]; + isArrayLike(value: any): value is { length: number }; } - interface LoDashImplicitWrapperBase { + interface LoDashImplicitWrapper { /** * @see _.isArrayLike */ isArrayLike(): boolean; } - interface LoDashExplicitWrapperBase { + interface LoDashExplicitWrapper { /** * @see _.isArrayLike */ @@ -12197,27 +9292,22 @@ declare namespace _ { /** * @see _.isArrayLike */ - isArrayLikeObject(value?: Function | string | boolean | number): value is never; + isArrayLikeObject(value?: ((...args: any[]) => any) | Function | string | boolean | number | null | undefined): value is never; /** * @see _.isArrayLike */ - isArrayLikeObject(value: T | Function | string | boolean | number): value is T & { length: number }; - - /** - * DEPRECATED - */ - isArrayLikeObject(value?: any): value is any[]; + isArrayLikeObject(value: T | string | boolean | number | null | undefined): value is T & { length: number }; } - interface LoDashImplicitWrapperBase { + interface LoDashImplicitWrapper { /** * @see _.isArrayLikeObject */ isArrayLikeObject(): boolean; } - interface LoDashExplicitWrapperBase { + interface LoDashExplicitWrapper { /** * @see _.isArrayLikeObject */ @@ -12235,14 +9325,14 @@ declare namespace _ { isBoolean(value?: any): value is boolean; } - interface LoDashImplicitWrapperBase { + interface LoDashImplicitWrapper { /** * @see _.isBoolean */ isBoolean(): boolean; } - interface LoDashExplicitWrapperBase { + interface LoDashExplicitWrapper { /** * @see _.isBoolean */ @@ -12260,14 +9350,14 @@ declare namespace _ { isBuffer(value?: any): boolean; } - interface LoDashImplicitWrapperBase { + interface LoDashImplicitWrapper { /** * @see _.isBuffer */ isBuffer(): boolean; } - interface LoDashExplicitWrapperBase { + interface LoDashExplicitWrapper { /** * @see _.isBuffer */ @@ -12285,14 +9375,14 @@ declare namespace _ { isDate(value?: any): value is Date; } - interface LoDashImplicitWrapperBase { + interface LoDashImplicitWrapper { /** * @see _.isDate */ isDate(): boolean; } - interface LoDashExplicitWrapperBase { + interface LoDashExplicitWrapper { /** * @see _.isDate */ @@ -12310,14 +9400,14 @@ declare namespace _ { isElement(value?: any): boolean; } - interface LoDashImplicitWrapperBase { + interface LoDashImplicitWrapper { /** * @see _.isElement */ isElement(): boolean; } - interface LoDashExplicitWrapperBase { + interface LoDashExplicitWrapper { /** * @see _.isElement */ @@ -12336,14 +9426,14 @@ declare namespace _ { isEmpty(value?: any): boolean; } - interface LoDashImplicitWrapperBase { + interface LoDashImplicitWrapper { /** * @see _.isEmpty */ isEmpty(): boolean; } - interface LoDashExplicitWrapperBase { + interface LoDashExplicitWrapper { /** * @see _.isEmpty */ @@ -12385,7 +9475,7 @@ declare namespace _ { ): boolean; } - interface LoDashImplicitWrapperBase { + interface LoDashImplicitWrapper { /** * @see _.isEqual */ @@ -12394,7 +9484,7 @@ declare namespace _ { ): boolean; } - interface LoDashExplicitWrapperBase { + interface LoDashExplicitWrapper { /** * @see _.isEqual */ @@ -12445,7 +9535,7 @@ declare namespace _ { ): boolean; } - interface LoDashImplicitWrapperBase { + interface LoDashImplicitWrapper { /** * @see _.isEqualWith */ @@ -12455,7 +9545,7 @@ declare namespace _ { ): boolean; } - interface LoDashExplicitWrapperBase { + interface LoDashExplicitWrapper { /** * @see _.isEqualWith */ @@ -12477,14 +9567,14 @@ declare namespace _ { isError(value: any): value is Error; } - interface LoDashImplicitWrapperBase { + interface LoDashImplicitWrapper { /** * @see _.isError */ isError(): boolean; } - interface LoDashExplicitWrapperBase { + interface LoDashExplicitWrapper { /** * @see _.isError */ @@ -12504,14 +9594,14 @@ declare namespace _ { isFinite(value?: any): boolean; } - interface LoDashImplicitWrapperBase { + interface LoDashImplicitWrapper { /** * @see _.isFinite */ isFinite(): boolean; } - interface LoDashExplicitWrapperBase { + interface LoDashExplicitWrapper { /** * @see _.isFinite */ @@ -12526,17 +9616,17 @@ declare namespace _ { * @param value The value to check. * @return Returns true if value is correctly classified, else false. */ - isFunction(value?: any): value is Function; + isFunction(value?: any): value is ((...args: any[]) => any) | Function; } - interface LoDashImplicitWrapperBase { + interface LoDashImplicitWrapper { /** * @see _.isFunction */ isFunction(): boolean; } - interface LoDashExplicitWrapperBase { + interface LoDashExplicitWrapper { /** * @see _.isFunction */ @@ -12572,14 +9662,14 @@ declare namespace _ { isInteger(value?: any): boolean; } - interface LoDashImplicitWrapperBase { + interface LoDashImplicitWrapper { /** * @see _.isInteger */ isInteger(): boolean; } - interface LoDashExplicitWrapperBase { + interface LoDashExplicitWrapper { /** * @see _.isInteger */ @@ -12615,14 +9705,14 @@ declare namespace _ { isLength(value?: any): boolean; } - interface LoDashImplicitWrapperBase { + interface LoDashImplicitWrapper { /** * @see _.isLength */ isLength(): boolean; } - interface LoDashExplicitWrapperBase { + interface LoDashExplicitWrapper { /** * @see _.isLength */ @@ -12637,17 +9727,17 @@ declare namespace _ { * @param value The value to check. * @returns Returns true if value is correctly classified, else false. */ - isMap(value?: any): value is Map; + isMap(value?: any): value is Map; } - interface LoDashImplicitWrapperBase { + interface LoDashImplicitWrapper { /** * @see _.isMap */ isMap(): boolean; } - interface LoDashExplicitWrapperBase { + interface LoDashExplicitWrapper { /** * @see _.isMap */ @@ -12680,14 +9770,14 @@ declare namespace _ { * _.isMatch(object, { 'age': 36 }); * // => false */ - isMatch(object: Object, source: Object): boolean; + isMatch(object: object, source: object): boolean; } - interface LoDashImplicitObjectWrapper { + interface LoDashImplicitWrapper { /** * @see _.isMatch */ - isMatch(source: Object): boolean; + isMatch(source: object): boolean; } //_.isMatchWith @@ -12725,14 +9815,14 @@ declare namespace _ { * _.isMatchWith(object, source, customizer); * // => true */ - isMatchWith(object: Object, source: Object, customizer: isMatchWithCustomizer): boolean; + isMatchWith(object: object, source: object, customizer: isMatchWithCustomizer): boolean; } - interface LoDashImplicitObjectWrapper { + interface LoDashImplicitWrapper { /** * @see _.isMatchWith */ - isMatchWith(source: Object, customizer: isMatchWithCustomizer): boolean; + isMatchWith(source: object, customizer: isMatchWithCustomizer): boolean; } //_.isNaN @@ -12748,14 +9838,14 @@ declare namespace _ { isNaN(value?: any): boolean; } - interface LoDashImplicitWrapperBase { + interface LoDashImplicitWrapper { /** * @see _.isNaN */ isNaN(): boolean; } - interface LoDashExplicitWrapperBase { + interface LoDashExplicitWrapper { /** * @see _.isNaN */ @@ -12770,17 +9860,17 @@ declare namespace _ { * * @retrun Returns true if value is a native function, else false. */ - isNative(value: any): value is Function; + isNative(value: any): value is ((...args: any[]) => any) | Function; } - interface LoDashImplicitWrapperBase { + interface LoDashImplicitWrapper { /** * see _.isNative */ isNative(): boolean; } - interface LoDashExplicitWrapperBase { + interface LoDashExplicitWrapper { /** * see _.isNative */ @@ -12811,14 +9901,14 @@ declare namespace _ { isNil(value: any): value is null | undefined; } - interface LoDashImplicitWrapperBase { + interface LoDashImplicitWrapper { /** * see _.isNil */ isNil(): boolean; } - interface LoDashExplicitWrapperBase { + interface LoDashExplicitWrapper { /** * see _.isNil */ @@ -12836,14 +9926,14 @@ declare namespace _ { isNull(value: any): value is null; } - interface LoDashImplicitWrapperBase { + interface LoDashImplicitWrapper { /** * see _.isNull */ isNull(): boolean; } - interface LoDashExplicitWrapperBase { + interface LoDashExplicitWrapper { /** * see _.isNull */ @@ -12863,14 +9953,14 @@ declare namespace _ { isNumber(value?: any): value is number; } - interface LoDashImplicitWrapperBase { + interface LoDashImplicitWrapper { /** * see _.isNumber */ isNumber(): boolean; } - interface LoDashExplicitWrapperBase { + interface LoDashExplicitWrapper { /** * see _.isNumber */ @@ -12889,14 +9979,14 @@ declare namespace _ { isObject(value?: any): boolean; } - interface LoDashImplicitWrapperBase { + interface LoDashImplicitWrapper { /** * see _.isObject */ isObject(): boolean; } - interface LoDashExplicitWrapperBase { + interface LoDashExplicitWrapper { /** * see _.isObject */ @@ -12931,14 +10021,14 @@ declare namespace _ { isObjectLike(value?: any): boolean; } - interface LoDashImplicitWrapperBase { + interface LoDashImplicitWrapper { /** * see _.isObjectLike */ isObjectLike(): boolean; } - interface LoDashExplicitWrapperBase { + interface LoDashExplicitWrapper { /** * see _.isObjectLike */ @@ -12959,14 +10049,14 @@ declare namespace _ { isPlainObject(value?: any): boolean; } - interface LoDashImplicitWrapperBase { + interface LoDashImplicitWrapper { /** * see _.isPlainObject */ isPlainObject(): boolean; } - interface LoDashExplicitWrapperBase { + interface LoDashExplicitWrapper { /** * see _.isPlainObject */ @@ -12984,14 +10074,14 @@ declare namespace _ { isRegExp(value?: any): value is RegExp; } - interface LoDashImplicitWrapperBase { + interface LoDashImplicitWrapper { /** * see _.isRegExp */ isRegExp(): boolean; } - interface LoDashExplicitWrapperBase { + interface LoDashExplicitWrapper { /** * see _.isRegExp */ @@ -13028,14 +10118,14 @@ declare namespace _ { isSafeInteger(value: any): boolean; } - interface LoDashImplicitWrapperBase { + interface LoDashImplicitWrapper { /** * see _.isSafeInteger */ isSafeInteger(): boolean; } - interface LoDashExplicitWrapperBase { + interface LoDashExplicitWrapper { /** * see _.isSafeInteger */ @@ -13050,17 +10140,17 @@ declare namespace _ { * @param value The value to check. * @returns Returns true if value is correctly classified, else false. */ - isSet(value?: any): value is Set; + isSet(value?: any): value is Set; } - interface LoDashImplicitWrapperBase { + interface LoDashImplicitWrapper { /** * @see _.isSet */ isSet(): boolean; } - interface LoDashExplicitWrapperBase { + interface LoDashExplicitWrapper { /** * @see _.isSet */ @@ -13078,14 +10168,14 @@ declare namespace _ { isString(value?: any): value is string; } - interface LoDashImplicitWrapperBase { + interface LoDashImplicitWrapper { /** * see _.isString */ isString(): boolean; } - interface LoDashExplicitWrapperBase { + interface LoDashExplicitWrapper { /** * see _.isString */ @@ -13113,14 +10203,14 @@ declare namespace _ { isSymbol(value: any): boolean; } - interface LoDashImplicitWrapperBase { + interface LoDashImplicitWrapper { /** * see _.isSymbol */ isSymbol(): boolean; } - interface LoDashExplicitWrapperBase { + interface LoDashExplicitWrapper { /** * see _.isSymbol */ @@ -13138,14 +10228,14 @@ declare namespace _ { isTypedArray(value: any): boolean; } - interface LoDashImplicitWrapperBase { + interface LoDashImplicitWrapper { /** * see _.isTypedArray */ isTypedArray(): boolean; } - interface LoDashExplicitWrapperBase { + interface LoDashExplicitWrapper { /** * see _.isTypedArray */ @@ -13163,14 +10253,14 @@ declare namespace _ { isUndefined(value: any): value is undefined; } - interface LoDashImplicitWrapperBase { + interface LoDashImplicitWrapper { /** * see _.isUndefined */ isUndefined(): boolean; } - interface LoDashExplicitWrapperBase { + interface LoDashExplicitWrapper { /** * see _.isUndefined */ @@ -13185,17 +10275,17 @@ declare namespace _ { * @param value The value to check. * @returns Returns true if value is correctly classified, else false. */ - isWeakMap(value?: any): value is WeakMap; + isWeakMap(value?: any): value is WeakMap; } - interface LoDashImplicitWrapperBase { + interface LoDashImplicitWrapper { /** * @see _.isSet */ isWeakMap(): boolean; } - interface LoDashExplicitWrapperBase { + interface LoDashExplicitWrapper { /** * @see _.isSet */ @@ -13213,14 +10303,14 @@ declare namespace _ { isWeakSet(value?: any): value is WeakSet; } - interface LoDashImplicitWrapperBase { + interface LoDashImplicitWrapper { /** * @see _.isWeakSet */ isWeakSet(): boolean; } - interface LoDashExplicitWrapperBase { + interface LoDashExplicitWrapper { /** * @see _.isWeakSet */ @@ -13242,14 +10332,14 @@ declare namespace _ { ): boolean; } - interface LoDashImplicitWrapperBase { + interface LoDashImplicitWrapper { /** * @see _.lt */ lt(other: any): boolean; } - interface LoDashExplicitWrapperBase { + interface LoDashExplicitWrapper { /** * @see _.lt */ @@ -13271,14 +10361,14 @@ declare namespace _ { ): boolean; } - interface LoDashImplicitWrapperBase { + interface LoDashImplicitWrapper { /** * @see _.lte */ lte(other: any): boolean; } - interface LoDashExplicitWrapperBase { + interface LoDashExplicitWrapper { /** * @see _.lte */ @@ -13293,59 +10383,41 @@ declare namespace _ { * @param value The value to convert. * @return Returns the converted array. */ - toArray(value: List|Dictionary|NumericDictionary): T[]; + toArray(value: List | Dictionary | NumericDictionary | null | undefined): T[]; /** * @see _.toArray */ - toArray(value: TValue): TResult[]; + toArray(value: T): Array; /** * @see _.toArray */ - toArray(value?: any): TResult[]; + toArray(): any[]; } - interface LoDashImplicitWrapper { + interface LoDashImplicitWrapper { /** * @see _.toArray */ - toArray(): LoDashImplicitArrayWrapper; + toArray(this: LoDashImplicitWrapper | Dictionary | NumericDictionary | null | undefined>): LoDashImplicitWrapper; + + /** + * @see _.toArray + */ + toArray(): LoDashImplicitWrapper>; } - interface LoDashImplicitArrayWrapperBase { + interface LoDashExplicitWrapper { /** * @see _.toArray */ - toArray(): LoDashImplicitArrayWrapper; - } + toArray(this: LoDashExplicitWrapper | Dictionary | NumericDictionary | null | undefined>): LoDashExplicitWrapper; - interface LoDashImplicitObjectWrapperBase { /** * @see _.toArray */ - toArray(): LoDashImplicitArrayWrapper; - } - - interface LoDashExplicitWrapper { - /** - * @see _.toArray - */ - toArray(): LoDashExplicitArrayWrapper; - } - - interface LoDashExplicitArrayWrapperBase { - /** - * @see _.toArray - */ - toArray(): LoDashExplicitArrayWrapper; - } - - interface LoDashExplicitObjectWrapperBase { - /** - * @see _.toArray - */ - toArray(): LoDashExplicitArrayWrapper; + toArray(): LoDashExplicitWrapper>; } //_.toPlainObject @@ -13357,14 +10429,21 @@ declare namespace _ { * @param value The value to convert. * @return Returns the converted plain object. */ - toPlainObject(value?: any): TResult; + toPlainObject(value?: any): any; } - interface LoDashImplicitWrapperBase { + interface LoDashImplicitWrapper { /** * @see _.toPlainObject */ - toPlainObject(): LoDashImplicitObjectWrapper; + toPlainObject(): LoDashImplicitWrapper; + } + + interface LoDashExplicitWrapper { + /** + * @see _.toPlainObject + */ + toPlainObject(): LoDashExplicitWrapper; } //_.toFinite @@ -13395,14 +10474,14 @@ declare namespace _ { toFinite(value: any): number; } - interface LoDashImplicitWrapperBase { + interface LoDashImplicitWrapper { /** * @see _.toFinite */ - toFinite(): LoDashImplicitWrapper; + toFinite(): number; } - interface LoDashExplicitWrapperBase { + interface LoDashExplicitWrapper { /** * @see _.toFinite */ @@ -13438,14 +10517,14 @@ declare namespace _ { toInteger(value: any): number; } - interface LoDashImplicitWrapperBase { + interface LoDashImplicitWrapper { /** * @see _.toInteger */ - toInteger(): LoDashImplicitWrapper; + toInteger(): number; } - interface LoDashExplicitWrapperBase { + interface LoDashExplicitWrapper { /** * @see _.toInteger */ @@ -13482,14 +10561,14 @@ declare namespace _ { toLength(value: any): number; } - interface LoDashImplicitWrapperBase { + interface LoDashImplicitWrapper { /** * @see _.toLength */ - toLength(): LoDashImplicitWrapper; + toLength(): number; } - interface LoDashExplicitWrapperBase { + interface LoDashExplicitWrapper { /** * @see _.toLength */ @@ -13523,14 +10602,14 @@ declare namespace _ { toNumber(value: any): number; } - interface LoDashImplicitWrapperBase { + interface LoDashImplicitWrapper { /** * @see _.toNumber */ - toNumber(): LoDashImplicitWrapper; + toNumber(): number; } - interface LoDashExplicitWrapperBase { + interface LoDashExplicitWrapper { /** * @see _.toNumber */ @@ -13565,21 +10644,21 @@ declare namespace _ { toSafeInteger(value: any): number; } - interface LoDashImplicitWrapperBase { + interface LoDashImplicitWrapper { /** * @see _.toSafeInteger */ - toSafeInteger(): LoDashImplicitWrapper; + toSafeInteger(): number; } - interface LoDashExplicitWrapperBase { + interface LoDashExplicitWrapper { /** * @see _.toSafeInteger */ toSafeInteger(): LoDashExplicitWrapper; } - //_.toString DUMMY + //_.toString interface LoDashStatic { /** * Converts `value` to a string if it's not one. An empty string is returned @@ -13623,14 +10702,14 @@ declare namespace _ { ): number; } - interface LoDashImplicitWrapper { + interface LoDashImplicitWrapper { /** * @see _.add */ add(addend: number): number; } - interface LoDashExplicitWrapper { + interface LoDashExplicitWrapper { /** * @see _.add */ @@ -13652,14 +10731,14 @@ declare namespace _ { ): number; } - interface LoDashImplicitWrapper { + interface LoDashImplicitWrapper { /** * @see _.ceil */ ceil(precision?: number): number; } - interface LoDashExplicitWrapper { + interface LoDashExplicitWrapper { /** * @see _.ceil */ @@ -13681,14 +10760,14 @@ declare namespace _ { ): number; } - interface LoDashImplicitWrapper { + interface LoDashImplicitWrapper { /** * @see _.divide */ divide(divisor: number): number; } - interface LoDashExplicitWrapper { + interface LoDashExplicitWrapper { /** * @see _.divide */ @@ -13710,14 +10789,14 @@ declare namespace _ { ): number; } - interface LoDashImplicitWrapper { + interface LoDashImplicitWrapper { /** * @see _.floor */ floor(precision?: number): number; } - interface LoDashExplicitWrapper { + interface LoDashExplicitWrapper { /** * @see _.floor */ @@ -13741,18 +10820,18 @@ declare namespace _ { ): T | undefined; } - interface LoDashImplicitArrayWrapperBase { + interface LoDashImplicitWrapper { /** * @see _.max */ - max(): T | undefined; + max(this: LoDashImplicitWrapper | null | undefined>): T | undefined; } - interface LoDashImplicitObjectWrapperBase { + interface LoDashExplicitWrapper { /** * @see _.max */ - max(): T | undefined; + max(this: LoDashExplicitWrapper | null | undefined>): LoDashExplicitWrapper; } //_.maxBy @@ -13781,78 +10860,28 @@ declare namespace _ { */ maxBy( collection: List | null | undefined, - iteratee?: ListIterator - ): T | undefined; - - /** - * @see _.maxBy - */ - maxBy( - collection: Dictionary | null | undefined, - iteratee?: DictionaryIterator - ): T | undefined; - - /** - * @see _.maxBy - */ - maxBy( - collection: List|Dictionary | null | undefined, - iteratee?: string - ): T | undefined; - - /** - * @see _.maxBy - */ - maxBy( - collection: List|Dictionary | null | undefined, - whereValue?: TObject + iteratee?: ListIteratee ): T | undefined; } - interface LoDashImplicitArrayWrapperBase { + interface LoDashImplicitWrapper { /** * @see _.maxBy */ - maxBy( - iteratee?: ListIterator - ): T | undefined; - - /** - * @see _.maxBy - */ - maxBy( - iteratee?: string - ): T | undefined; - - /** - * @see _.maxBy - */ - maxBy( - whereValue?: TObject + maxBy( + this: LoDashImplicitWrapper | null | undefined>, + iteratee?: ListIteratee ): T | undefined; } - interface LoDashImplicitObjectWrapperBase { + interface LoDashExplicitWrapper { /** * @see _.maxBy */ maxBy( - iteratee?: ListIterator|DictionaryIterator - ): T | undefined; - - /** - * @see _.maxBy - */ - maxBy( - iteratee?: string - ): T | undefined; - - /** - * @see _.maxBy - */ - maxBy( - whereValue?: TObject - ): T | undefined; + this: LoDashExplicitWrapper | null | undefined>, + iteratee?: ListIteratee + ): LoDashExplicitWrapper; } //_.mean @@ -13870,11 +10899,25 @@ declare namespace _ { * _.mean([4, 2, 8, 6]); * // => 5 */ - mean( - collection: List | null | undefined + mean( + collection: List | null | undefined ): number; } + interface LoDashImplicitWrapper { + /** + * @see _.mean + */ + mean(): number; + } + + interface LoDashExplicitWrapper { + /** + * @see _.mean + */ + mean(): LoDashExplicitWrapper; + } + //_.meanBy interface LoDashStatic { /** @@ -13891,27 +10934,30 @@ declare namespace _ { * _.mean([{ 'n': 4 }, { 'n': 2 }, { 'n': 8 }, { 'n': 6 }], 'n'); * // => 5 */ - meanBy( - collection: List | null | undefined, - iteratee?: ListIterator | string - ): number; - - meanBy( - collection: Dictionary | null | undefined, - iteratee?: DictionaryIterator | string - ): number; + meanBy( + collection: List | null | undefined, + iteratee?: ListIteratee + ): number; } - interface LoDashImplicitArrayWrapperBase { + interface LoDashImplicitWrapper { /** - * @see _.mean + * @see _.meanBy */ - mean(): number; + meanBy( + this: LoDashImplicitWrapper | null | undefined>, + iteratee?: ListIteratee + ): number; + } + interface LoDashExplicitWrapper { /** - * @see _.mean + * @see _.meanBy */ - mean(): number; + meanBy( + this: LoDashExplicitWrapper | null | undefined>, + iteratee?: ListIteratee + ): LoDashExplicitWrapper; } //_.min @@ -13931,18 +10977,18 @@ declare namespace _ { ): T | undefined; } - interface LoDashImplicitArrayWrapperBase { + interface LoDashImplicitWrapper { /** * @see _.min */ - min(): T | undefined; + min(this: LoDashImplicitWrapper | null | undefined>): T | undefined; } - interface LoDashImplicitObjectWrapperBase { + interface LoDashExplicitWrapper { /** * @see _.min */ - min(): T | undefined; + min(this: LoDashExplicitWrapper | null | undefined>): LoDashExplicitWrapper; } //_.minBy @@ -13971,78 +11017,28 @@ declare namespace _ { */ minBy( collection: List | null | undefined, - iteratee?: ListIterator - ): T | undefined; - - /** - * @see _.minBy - */ - minBy( - collection: Dictionary | null | undefined, - iteratee?: DictionaryIterator - ): T | undefined; - - /** - * @see _.minBy - */ - minBy( - collection: List|Dictionary | null | undefined, - iteratee?: string - ): T | undefined; - - /** - * @see _.minBy - */ - minBy( - collection: List|Dictionary | null | undefined, - whereValue?: TObject + iteratee?: ListIteratee ): T | undefined; } - interface LoDashImplicitArrayWrapperBase { + interface LoDashImplicitWrapper { /** * @see _.minBy */ - minBy( - iteratee?: ListIterator - ): T | undefined; - - /** - * @see _.minBy - */ - minBy( - iteratee?: string - ): T | undefined; - - /** - * @see _.minBy - */ - minBy( - whereValue?: TObject + minBy( + this: LoDashImplicitWrapper | null | undefined>, + iteratee?: ListIteratee ): T | undefined; } - interface LoDashImplicitObjectWrapperBase { + interface LoDashExplicitWrapper { /** * @see _.minBy */ minBy( - iteratee?: ListIterator|DictionaryIterator - ): T | undefined; - - /** - * @see _.minBy - */ - minBy( - iteratee?: string - ): T | undefined; - - /** - * @see _.minBy - */ - minBy( - whereValue?: TObject - ): T | undefined; + this: LoDashExplicitWrapper | null | undefined>, + iteratee?: ListIteratee + ): LoDashExplicitWrapper; } //_.multiply @@ -14059,14 +11055,14 @@ declare namespace _ { ): number; } - interface LoDashImplicitWrapper { + interface LoDashImplicitWrapper { /** * @see _.multiply */ multiply(multiplicand: number): number; } - interface LoDashExplicitWrapper { + interface LoDashExplicitWrapper { /** * @see _.multiply */ @@ -14088,14 +11084,14 @@ declare namespace _ { ): number; } - interface LoDashImplicitWrapper { + interface LoDashImplicitWrapper { /** * @see _.round */ round(precision?: number): number; } - interface LoDashExplicitWrapper { + interface LoDashExplicitWrapper { /** * @see _.round */ @@ -14117,46 +11113,17 @@ declare namespace _ { * _.sum([4, 2, 8, 6]); * // => 20 */ - sum(collection: List | null | undefined): number; - - /** - * @see _.sum - */ - sum(collection: List|Dictionary | null | undefined): number; + sum(collection: List | null | undefined): number; } - interface LoDashImplicitArrayWrapperBase { + interface LoDashImplicitWrapper { /** * @see _.sum */ sum(): number; } - interface LoDashImplicitObjectWrapperBase { - /** - * @see _.sum - **/ - sum(): number; - - /** - * @see _.sum - */ - sum(): number; - } - - interface LoDashExplicitArrayWrapperBase { - /** - * @see _.sum - */ - sum(): LoDashExplicitWrapper; - } - - interface LoDashExplicitObjectWrapperBase { - /** - * @see _.sum - */ - sum(): LoDashExplicitWrapper; - + interface LoDashExplicitWrapper { /** * @see _.sum */ @@ -14189,112 +11156,28 @@ declare namespace _ { */ sumBy( collection: List | null | undefined, - iteratee: ListIterator - ): number; - - /** - * @see _.sumBy - */ - sumBy( - collection: List<{}> | null | undefined, - iteratee: string - ): number; - - /** - * @see _.sumBy - */ - sumBy( - collection: List | null | undefined - ): number; - - /** - * @see _.sumBy - */ - sumBy( - collection: List<{}> | null | undefined, - iteratee: Dictionary<{}> + iteratee?: ((value: T) => number) | string ): number; } - interface LoDashImplicitArrayWrapperBase { + interface LoDashImplicitWrapper { /** * @see _.sumBy */ - sumBy( - iteratee: ListIterator + sumBy( + this: LoDashImplicitWrapper | null | undefined>, + iteratee?: ((value: T) => number) | string ): number; - - /** - * @see _.sumBy - */ - sumBy(iteratee: string): number; - - /** - * @see _.sumBy - */ - sumBy(iteratee: Dictionary<{}>): number; } - interface LoDashImplicitObjectWrapperBase { + interface LoDashExplicitWrapper { /** * @see _.sumBy */ - sumBy( - iteratee: ListIterator - ): number; - - /** - * @see _.sumBy - */ - sumBy(iteratee: string): number; - - /** - * @see _.sumBy - */ - sumBy(iteratee: Dictionary<{}>): number; - } - - interface LoDashExplicitArrayWrapperBase { - /** - * @see _.sumBy - */ - sumBy( - iteratee: ListIterator + sumBy( + this: LoDashExplicitWrapper | null | undefined>, + iteratee?: ((value: T) => number) | string ): LoDashExplicitWrapper; - - /** - * @see _.sumBy - */ - sumBy(iteratee: string): LoDashExplicitWrapper; - - /** - * @see _.sumBy - */ - sumBy(): LoDashExplicitWrapper; - - /** - * @see _.sumBy - */ - sumBy(iteratee: Dictionary<{}>): LoDashExplicitWrapper; - } - - interface LoDashExplicitObjectWrapperBase { - /** - * @see _.sumBy - */ - sumBy( - iteratee: ListIterator - ): LoDashExplicitWrapper; - - /** - * @see _.sumBy - */ - sumBy(iteratee: string): LoDashExplicitWrapper; - - /** - * @see _.sumBy - */ - sumBy(iteratee: Dictionary<{}>): LoDashExplicitWrapper; } /********** @@ -14323,7 +11206,7 @@ declare namespace _ { ): number; } - interface LoDashImplicitWrapper { + interface LoDashImplicitWrapper { /** * @see _.subtract */ @@ -14332,7 +11215,7 @@ declare namespace _ { ): number; } - interface LoDashExplicitWrapper { + interface LoDashExplicitWrapper { /** * @see _.subtract */ @@ -14368,7 +11251,7 @@ declare namespace _ { ): number; } - interface LoDashImplicitWrapper { + interface LoDashImplicitWrapper { /** * @see _.clamp */ @@ -14378,7 +11261,7 @@ declare namespace _ { ): number; } - interface LoDashExplicitWrapper { + interface LoDashExplicitWrapper { /** * @see _.clamp */ @@ -14402,46 +11285,28 @@ declare namespace _ { inRange( n: number, start: number, - end: number - ): boolean; - - /** - * @see _.inRange - */ - inRange( - n: number, - end: number + end?: number ): boolean; } - interface LoDashImplicitWrapper { + interface LoDashImplicitWrapper { /** * @see _.inRange */ inRange( start: number, - end: number + end?: number ): boolean; - - /** - * @see _.inRange - */ - inRange(end: number): boolean; } - interface LoDashExplicitWrapper { + interface LoDashExplicitWrapper { /** * @see _.inRange */ inRange( start: number, - end: number + end?: number ): LoDashExplicitWrapper; - - /** - * @see _.inRange - */ - inRange(end: number): LoDashExplicitWrapper; } //_.random @@ -14476,7 +11341,7 @@ declare namespace _ { random(floating?: boolean): number; } - interface LoDashImplicitWrapper { + interface LoDashImplicitWrapper { /** * @see _.random */ @@ -14491,7 +11356,7 @@ declare namespace _ { random(floating?: boolean): number; } - interface LoDashExplicitWrapper { + interface LoDashExplicitWrapper { /** * @see _.random */ @@ -14585,19 +11450,19 @@ declare namespace _ { /** * @see _.assign */ - assign( + assign( object: any, ...otherArgs: any[] - ): TResult; + ): any; } - interface LoDashImplicitObjectWrapper { + interface LoDashImplicitWrapper { /** * @see _.assign */ assign( source: TSource - ): LoDashImplicitObjectWrapper; + ): LoDashImplicitWrapper; /** * @see assign @@ -14605,7 +11470,7 @@ declare namespace _ { assign( source1: TSource1, source2: TSource2 - ): LoDashImplicitObjectWrapper; + ): LoDashImplicitWrapper; /** * @see assign @@ -14614,7 +11479,7 @@ declare namespace _ { source1: TSource1, source2: TSource2, source3: TSource3 - ): LoDashImplicitObjectWrapper; + ): LoDashImplicitWrapper; /** * @see assign @@ -14624,26 +11489,26 @@ declare namespace _ { source2: TSource2, source3: TSource3, source4: TSource4 - ): LoDashImplicitObjectWrapper; + ): LoDashImplicitWrapper; /** * @see _.assign */ - assign(): LoDashImplicitObjectWrapper; + assign(): LoDashImplicitWrapper; /** * @see _.assign */ - assign(...otherArgs: any[]): LoDashImplicitObjectWrapper; + assign(...otherArgs: any[]): LoDashImplicitWrapper; } - interface LoDashExplicitObjectWrapper { + interface LoDashExplicitWrapper { /** * @see _.assign */ assign( source: TSource - ): LoDashExplicitObjectWrapper; + ): LoDashExplicitWrapper; /** * @see assign @@ -14651,7 +11516,7 @@ declare namespace _ { assign( source1: TSource1, source2: TSource2 - ): LoDashExplicitObjectWrapper; + ): LoDashExplicitWrapper; /** * @see assign @@ -14660,7 +11525,7 @@ declare namespace _ { source1: TSource1, source2: TSource2, source3: TSource3 - ): LoDashExplicitObjectWrapper; + ): LoDashExplicitWrapper; /** * @see assign @@ -14670,17 +11535,17 @@ declare namespace _ { source2: TSource2, source3: TSource3, source4: TSource4 - ): LoDashExplicitObjectWrapper; + ): LoDashExplicitWrapper; /** * @see _.assign */ - assign(): LoDashExplicitObjectWrapper; + assign(): LoDashExplicitWrapper; /** * @see _.assign */ - assign(...otherArgs: any[]): LoDashExplicitObjectWrapper; + assign(...otherArgs: any[]): LoDashExplicitWrapper; } interface LoDashStatic { @@ -14763,14 +11628,14 @@ declare namespace _ { ): TResult; } - interface LoDashImplicitObjectWrapper { + interface LoDashImplicitWrapper { /** * @see _.assignWith */ assignWith( source: TSource, customizer: AssignCustomizer - ): LoDashImplicitObjectWrapper; + ): LoDashImplicitWrapper; /** * @see assignWith @@ -14779,7 +11644,7 @@ declare namespace _ { source1: TSource1, source2: TSource2, customizer: AssignCustomizer - ): LoDashImplicitObjectWrapper; + ): LoDashImplicitWrapper; /** * @see assignWith @@ -14789,7 +11654,7 @@ declare namespace _ { source2: TSource2, source3: TSource3, customizer: AssignCustomizer - ): LoDashImplicitObjectWrapper; + ): LoDashImplicitWrapper; /** * @see assignWith @@ -14800,27 +11665,27 @@ declare namespace _ { source3: TSource3, source4: TSource4, customizer: AssignCustomizer - ): LoDashImplicitObjectWrapper; + ): LoDashImplicitWrapper; /** * @see _.assignWith */ - assignWith(): LoDashImplicitObjectWrapper; + assignWith(): LoDashImplicitWrapper; /** * @see _.assignWith */ - assignWith(...otherArgs: any[]): LoDashImplicitObjectWrapper; + assignWith(...otherArgs: any[]): LoDashImplicitWrapper; } - interface LoDashExplicitObjectWrapper { + interface LoDashExplicitWrapper { /** * @see _.assignWith */ assignWith( source: TSource, customizer: AssignCustomizer - ): LoDashExplicitObjectWrapper; + ): LoDashExplicitWrapper; /** * @see assignWith @@ -14829,7 +11694,7 @@ declare namespace _ { source1: TSource1, source2: TSource2, customizer: AssignCustomizer - ): LoDashExplicitObjectWrapper; + ): LoDashExplicitWrapper; /** * @see assignWith @@ -14839,7 +11704,7 @@ declare namespace _ { source2: TSource2, source3: TSource3, customizer: AssignCustomizer - ): LoDashExplicitObjectWrapper; + ): LoDashExplicitWrapper; /** * @see assignWith @@ -14850,17 +11715,17 @@ declare namespace _ { source3: TSource3, source4: TSource4, customizer: AssignCustomizer - ): LoDashExplicitObjectWrapper; + ): LoDashExplicitWrapper; /** * @see _.assignWith */ - assignWith(): LoDashExplicitObjectWrapper; + assignWith(): LoDashExplicitWrapper; /** * @see _.assignWith */ - assignWith(...otherArgs: any[]): LoDashExplicitObjectWrapper; + assignWith(...otherArgs: any[]): LoDashExplicitWrapper; } //_.assignIn @@ -14943,13 +11808,13 @@ declare namespace _ { ): TResult; } - interface LoDashImplicitObjectWrapper { + interface LoDashImplicitWrapper { /** * @see _.assignIn */ assignIn( source: TSource - ): LoDashImplicitObjectWrapper; + ): LoDashImplicitWrapper; /** * @see assignIn @@ -14957,7 +11822,7 @@ declare namespace _ { assignIn( source1: TSource1, source2: TSource2 - ): LoDashImplicitObjectWrapper; + ): LoDashImplicitWrapper; /** * @see assignIn @@ -14966,7 +11831,7 @@ declare namespace _ { source1: TSource1, source2: TSource2, source3: TSource3 - ): LoDashImplicitObjectWrapper; + ): LoDashImplicitWrapper; /** * @see assignIn @@ -14976,26 +11841,26 @@ declare namespace _ { source2: TSource2, source3: TSource3, source4: TSource4 - ): LoDashImplicitObjectWrapper; + ): LoDashImplicitWrapper; /** * @see _.assignIn */ - assignIn(): LoDashImplicitObjectWrapper; + assignIn(): LoDashImplicitWrapper; /** * @see _.assignIn */ - assignIn(...otherArgs: any[]): LoDashImplicitObjectWrapper; + assignIn(...otherArgs: any[]): LoDashImplicitWrapper; } - interface LoDashExplicitObjectWrapper { + interface LoDashExplicitWrapper { /** * @see _.assignIn */ assignIn( source: TSource - ): LoDashExplicitObjectWrapper; + ): LoDashExplicitWrapper; /** * @see assignIn @@ -15003,7 +11868,7 @@ declare namespace _ { assignIn( source1: TSource1, source2: TSource2 - ): LoDashExplicitObjectWrapper; + ): LoDashExplicitWrapper; /** * @see assignIn @@ -15012,7 +11877,7 @@ declare namespace _ { source1: TSource1, source2: TSource2, source3: TSource3 - ): LoDashExplicitObjectWrapper; + ): LoDashExplicitWrapper; /** * @see assignIn @@ -15022,17 +11887,17 @@ declare namespace _ { source2: TSource2, source3: TSource3, source4: TSource4 - ): LoDashExplicitObjectWrapper; + ): LoDashExplicitWrapper; /** * @see _.assignIn */ - assignIn(): LoDashExplicitObjectWrapper; + assignIn(): LoDashExplicitWrapper; /** * @see _.assignIn */ - assignIn(...otherArgs: any[]): LoDashExplicitObjectWrapper; + assignIn(...otherArgs: any[]): LoDashExplicitWrapper; } //_.assignInWith @@ -15119,14 +11984,14 @@ declare namespace _ { ): TResult; } - interface LoDashImplicitObjectWrapper { + interface LoDashImplicitWrapper { /** * @see _.assignInWith */ assignInWith( source: TSource, customizer: AssignCustomizer - ): LoDashImplicitObjectWrapper; + ): LoDashImplicitWrapper; /** * @see assignInWith @@ -15135,7 +12000,7 @@ declare namespace _ { source1: TSource1, source2: TSource2, customizer: AssignCustomizer - ): LoDashImplicitObjectWrapper; + ): LoDashImplicitWrapper; /** * @see assignInWith @@ -15145,7 +12010,7 @@ declare namespace _ { source2: TSource2, source3: TSource3, customizer: AssignCustomizer - ): LoDashImplicitObjectWrapper; + ): LoDashImplicitWrapper; /** * @see assignInWith @@ -15156,27 +12021,27 @@ declare namespace _ { source3: TSource3, source4: TSource4, customizer: AssignCustomizer - ): LoDashImplicitObjectWrapper; + ): LoDashImplicitWrapper; /** * @see _.assignInWith */ - assignInWith(): LoDashImplicitObjectWrapper; + assignInWith(): LoDashImplicitWrapper; /** * @see _.assignInWith */ - assignInWith(...otherArgs: any[]): LoDashImplicitObjectWrapper; + assignInWith(...otherArgs: any[]): LoDashImplicitWrapper; } - interface LoDashExplicitObjectWrapper { + interface LoDashExplicitWrapper { /** * @see _.assignInWith */ assignInWith( source: TSource, customizer: AssignCustomizer - ): LoDashExplicitObjectWrapper; + ): LoDashExplicitWrapper; /** * @see assignInWith @@ -15185,7 +12050,7 @@ declare namespace _ { source1: TSource1, source2: TSource2, customizer: AssignCustomizer - ): LoDashExplicitObjectWrapper; + ): LoDashExplicitWrapper; /** * @see assignInWith @@ -15195,7 +12060,7 @@ declare namespace _ { source2: TSource2, source3: TSource3, customizer: AssignCustomizer - ): LoDashExplicitObjectWrapper; + ): LoDashExplicitWrapper; /** * @see assignInWith @@ -15206,17 +12071,17 @@ declare namespace _ { source3: TSource3, source4: TSource4, customizer: AssignCustomizer - ): LoDashExplicitObjectWrapper; + ): LoDashExplicitWrapper; /** * @see _.assignInWith */ - assignInWith(): LoDashExplicitObjectWrapper; + assignInWith(): LoDashExplicitWrapper; /** * @see _.assignInWith */ - assignInWith(...otherArgs: any[]): LoDashExplicitObjectWrapper; + assignInWith(...otherArgs: any[]): LoDashExplicitWrapper; } //_.create @@ -15229,24 +12094,24 @@ declare namespace _ { * @param properties The properties to assign to the object. * @return Returns the new object. */ - create( + create( prototype: T, properties?: U ): T & U; } - interface LoDashImplicitObjectWrapper { + interface LoDashImplicitWrapper { /** * @see _.create */ - create(properties?: U): LoDashImplicitObjectWrapper; + create(properties?: U): LoDashImplicitWrapper; } - interface LoDashExplicitObjectWrapper { + interface LoDashExplicitWrapper { /** * @see _.create */ - create(properties?: U): LoDashExplicitObjectWrapper; + create(properties?: U): LoDashExplicitWrapper; } //_.defaults @@ -15305,19 +12170,19 @@ declare namespace _ { /** * @see _.defaults */ - defaults( + defaults( object: any, ...sources: any[] - ): TResult; + ): any; } - interface LoDashImplicitObjectWrapper { + interface LoDashImplicitWrapper { /** * @see _.defaults */ defaults( source: TSource - ): LoDashImplicitObjectWrapper; + ): LoDashImplicitWrapper; /** * @see _.defaults @@ -15325,7 +12190,7 @@ declare namespace _ { defaults( source1: TSource1, source2: TSource2 - ): LoDashImplicitObjectWrapper; + ): LoDashImplicitWrapper; /** * @see _.defaults @@ -15334,7 +12199,7 @@ declare namespace _ { source1: TSource1, source2: TSource2, source3: TSource3 - ): LoDashImplicitObjectWrapper; + ): LoDashImplicitWrapper; /** * @see _.defaults @@ -15344,26 +12209,26 @@ declare namespace _ { source2: TSource2, source3: TSource3, source4: TSource4 - ): LoDashImplicitObjectWrapper; + ): LoDashImplicitWrapper; /** * @see _.defaults */ - defaults(): LoDashImplicitObjectWrapper; + defaults(): LoDashImplicitWrapper; /** * @see _.defaults */ - defaults(...sources: any[]): LoDashImplicitObjectWrapper; + defaults(...sources: any[]): LoDashImplicitWrapper; } - interface LoDashExplicitObjectWrapper { + interface LoDashExplicitWrapper { /** * @see _.defaults */ defaults( source: TSource - ): LoDashExplicitObjectWrapper; + ): LoDashExplicitWrapper; /** * @see _.defaults @@ -15371,7 +12236,7 @@ declare namespace _ { defaults( source1: TSource1, source2: TSource2 - ): LoDashExplicitObjectWrapper; + ): LoDashExplicitWrapper; /** * @see _.defaults @@ -15380,7 +12245,7 @@ declare namespace _ { source1: TSource1, source2: TSource2, source3: TSource3 - ): LoDashExplicitObjectWrapper; + ): LoDashExplicitWrapper; /** * @see _.defaults @@ -15390,17 +12255,17 @@ declare namespace _ { source2: TSource2, source3: TSource3, source4: TSource4 - ): LoDashExplicitObjectWrapper; + ): LoDashExplicitWrapper; /** * @see _.defaults */ - defaults(): LoDashExplicitObjectWrapper; + defaults(): LoDashExplicitWrapper; /** * @see _.defaults */ - defaults(...sources: any[]): LoDashExplicitObjectWrapper; + defaults(...sources: any[]): LoDashExplicitWrapper; } //_.defaultsDeep @@ -15411,16 +12276,23 @@ declare namespace _ { * @param sources The source objects. * @return Returns object. **/ - defaultsDeep( - object: T, - ...sources: any[]): TResult; + defaultsDeep( + object: any, + ...sources: any[]): any; } - interface LoDashImplicitObjectWrapper { + interface LoDashImplicitWrapper { /** * @see _.defaultsDeep **/ - defaultsDeep(...sources: any[]): LoDashImplicitObjectWrapper; + defaultsDeep(...sources: any[]): LoDashImplicitWrapper; + } + + interface LoDashExplicitWrapper { + /** + * @see _.defaultsDeep + **/ + defaultsDeep(...sources: any[]): LoDashExplicitWrapper; } //_.entries @@ -15428,23 +12300,36 @@ declare namespace _ { /** * @see _.toPairs */ - entries(object?: T): [string, any][]; + entries(object?: Dictionary): Array<[string, T]>; - entries(object?: T): [string, TResult][]; - } - - interface LoDashImplicitObjectWrapper { /** * @see _.toPairs */ - entries(): LoDashImplicitArrayWrapper<[string, TResult]>; + entries(object?: object): Array<[string, any]>; } - interface LoDashExplicitObjectWrapper { + interface LoDashImplicitWrapper { /** * @see _.toPairs */ - entries(): LoDashExplicitArrayWrapper<[string, TResult]>; + entries(this: LoDashImplicitWrapper>): LoDashImplicitWrapper>; + + /** + * @see _.toPairs + */ + entries(): LoDashImplicitWrapper>; + } + + interface LoDashExplicitWrapper { + /** + * @see _.toPairs + */ + entries(this: LoDashExplicitWrapper>): LoDashExplicitWrapper>; + + /** + * @see _.toPairs + */ + entries(): LoDashExplicitWrapper>; } //_.entriesIn @@ -15452,23 +12337,36 @@ declare namespace _ { /** * @see _.toPairsIn */ - entriesIn(object?: T): [string, any][]; + entriesIn(object?: Dictionary): Array<[string, T]>; - entriesIn(object?: T): [string, TResult][]; - } - - interface LoDashImplicitObjectWrapper { /** * @see _.toPairsIn */ - entriesIn(): LoDashImplicitArrayWrapper<[string, TResult]>; + entriesIn(object?: object): Array<[string, any]>; } - interface LoDashExplicitObjectWrapper { + interface LoDashImplicitWrapper { /** * @see _.toPairsIn */ - entriesIn(): LoDashExplicitArrayWrapper<[string, TResult]>; + entriesIn(this: LoDashImplicitWrapper>): LoDashImplicitWrapper>; + + /** + * @see _.toPairsIn + */ + entriesIn(): LoDashImplicitWrapper>; + } + + interface LoDashExplicitWrapper { + /** + * @see _.toPairsIn + */ + entriesIn(this: LoDashExplicitWrapper>): LoDashExplicitWrapper>; + + /** + * @see _.toPairsIn + */ + entriesIn(): LoDashExplicitWrapper>; } // _.extend @@ -15525,13 +12423,13 @@ declare namespace _ { ): TResult; } - interface LoDashImplicitObjectWrapper { + interface LoDashImplicitWrapper { /** * @see _.assignIn */ extend( source: TSource - ): LoDashImplicitObjectWrapper; + ): LoDashImplicitWrapper; /** * @see _.assignIn @@ -15539,7 +12437,7 @@ declare namespace _ { extend( source1: TSource1, source2: TSource2 - ): LoDashImplicitObjectWrapper; + ): LoDashImplicitWrapper; /** * @see _.assignIn @@ -15548,7 +12446,7 @@ declare namespace _ { source1: TSource1, source2: TSource2, source3: TSource3 - ): LoDashImplicitObjectWrapper; + ): LoDashImplicitWrapper; /** * @see _.assignIn @@ -15558,26 +12456,26 @@ declare namespace _ { source2: TSource2, source3: TSource3, source4: TSource4 - ): LoDashImplicitObjectWrapper; + ): LoDashImplicitWrapper; /** * @see _.assignIn */ - extend(): LoDashImplicitObjectWrapper; + extend(): LoDashImplicitWrapper; /** * @see _.assignIn */ - extend(...otherArgs: any[]): LoDashImplicitObjectWrapper; + extend(...otherArgs: any[]): LoDashImplicitWrapper; } - interface LoDashExplicitObjectWrapper { + interface LoDashExplicitWrapper { /** * @see _.assignIn */ extend( source: TSource - ): LoDashExplicitObjectWrapper; + ): LoDashExplicitWrapper; /** * @see _.assignIn @@ -15585,7 +12483,7 @@ declare namespace _ { extend( source1: TSource1, source2: TSource2 - ): LoDashExplicitObjectWrapper; + ): LoDashExplicitWrapper; /** * @see _.assignIn @@ -15594,7 +12492,7 @@ declare namespace _ { source1: TSource1, source2: TSource2, source3: TSource3 - ): LoDashExplicitObjectWrapper; + ): LoDashExplicitWrapper; /** * @see _.assignIn @@ -15604,17 +12502,17 @@ declare namespace _ { source2: TSource2, source3: TSource3, source4: TSource4 - ): LoDashExplicitObjectWrapper; + ): LoDashExplicitWrapper; /** * @see _.assignIn */ - extend(): LoDashExplicitObjectWrapper; + extend(): LoDashExplicitWrapper; /** * @see _.assignIn */ - extend(...otherArgs: any[]): LoDashExplicitObjectWrapper; + extend(...otherArgs: any[]): LoDashExplicitWrapper; } interface LoDashStatic { @@ -15674,14 +12572,14 @@ declare namespace _ { ): TResult; } - interface LoDashImplicitObjectWrapper { + interface LoDashImplicitWrapper { /** * @see _.assignInWith */ extendWith( source: TSource, customizer: AssignCustomizer - ): LoDashImplicitObjectWrapper; + ): LoDashImplicitWrapper; /** * @see _.assignInWith @@ -15690,7 +12588,7 @@ declare namespace _ { source1: TSource1, source2: TSource2, customizer: AssignCustomizer - ): LoDashImplicitObjectWrapper; + ): LoDashImplicitWrapper; /** * @see _.assignInWith @@ -15700,7 +12598,7 @@ declare namespace _ { source2: TSource2, source3: TSource3, customizer: AssignCustomizer - ): LoDashImplicitObjectWrapper; + ): LoDashImplicitWrapper; /** * @see _.assignInWith @@ -15711,27 +12609,27 @@ declare namespace _ { source3: TSource3, source4: TSource4, customizer: AssignCustomizer - ): LoDashImplicitObjectWrapper; + ): LoDashImplicitWrapper; /** * @see _.assignInWith */ - extendWith(): LoDashImplicitObjectWrapper; + extendWith(): LoDashImplicitWrapper; /** * @see _.assignInWith */ - extendWith(...otherArgs: any[]): LoDashImplicitObjectWrapper; + extendWith(...otherArgs: any[]): LoDashImplicitWrapper; } - interface LoDashExplicitObjectWrapper { + interface LoDashExplicitWrapper { /** * @see _.assignInWith */ extendWith( source: TSource, customizer: AssignCustomizer - ): LoDashExplicitObjectWrapper; + ): LoDashExplicitWrapper; /** * @see _.assignInWith @@ -15740,7 +12638,7 @@ declare namespace _ { source1: TSource1, source2: TSource2, customizer: AssignCustomizer - ): LoDashExplicitObjectWrapper; + ): LoDashExplicitWrapper; /** * @see _.assignInWith @@ -15750,7 +12648,7 @@ declare namespace _ { source2: TSource2, source3: TSource3, customizer: AssignCustomizer - ): LoDashExplicitObjectWrapper; + ): LoDashExplicitWrapper; /** * @see _.assignInWith @@ -15761,17 +12659,17 @@ declare namespace _ { source3: TSource3, source4: TSource4, customizer: AssignCustomizer - ): LoDashExplicitObjectWrapper; + ): LoDashExplicitWrapper; /** * @see _.assignInWith */ - extendWith(): LoDashExplicitObjectWrapper; + extendWith(): LoDashExplicitWrapper; /** * @see _.assignInWith */ - extendWith(...otherArgs: any[]): LoDashExplicitObjectWrapper; + extendWith(...otherArgs: any[]): LoDashExplicitWrapper; } //_.findKey @@ -15794,93 +12692,29 @@ declare namespace _ { * @param thisArg The this binding of predicate. * @return Returns the key of the matched element, else undefined. */ - findKey( - object: TObject, - predicate?: DictionaryIterator - ): string | undefined; - - /** - * @see _.findKey - */ - findKey( - object: TObject, - predicate?: ObjectIterator - ): string | undefined; - - /** - * @see _.findKey - */ - findKey( - object: TObject, - predicate?: string - ): string | undefined; - - /** - * @see _.findKey - */ - findKey, TObject>( - object: TObject, - predicate?: TWhere + findKey( + object: T | null | undefined, + predicate?: ObjectIteratee ): string | undefined; } - interface LoDashImplicitObjectWrapperBase { + interface LoDashImplicitWrapper { /** * @see _.findKey */ - findKey( - predicate?: DictionaryIterator - ): string | undefined; - - /** - * @see _.findKey - */ - findKey( - predicate?: ObjectIterator - ): string | undefined; - - /** - * @see _.findKey - */ - findKey( - predicate?: string - ): string | undefined; - - /** - * @see _.findKey - */ - findKey>( - predicate?: TWhere + findKey( + this: LoDashImplicitWrapper, + predicate?: ObjectIteratee ): string | undefined; } - interface LoDashExplicitObjectWrapperBase { + interface LoDashExplicitWrapper { /** * @see _.findKey */ - findKey( - predicate?: DictionaryIterator - ): LoDashExplicitWrapper; - - /** - * @see _.findKey - */ - findKey( - predicate?: ObjectIterator - ): LoDashExplicitWrapper; - - /** - * @see _.findKey - */ - findKey( - predicate?: string - ): LoDashExplicitWrapper; - - /** - * @see _.findKey - */ - findKey>( - predicate?: TWhere + findKey( + this: LoDashExplicitWrapper, + predicate?: ObjectIteratee ): LoDashExplicitWrapper; } @@ -15903,93 +12737,29 @@ declare namespace _ { * @param thisArg The this binding of predicate. * @return Returns the key of the matched element, else undefined. */ - findLastKey( - object: TObject, - predicate?: DictionaryIterator - ): string | undefined; - - /** - * @see _.findLastKey - */ - findLastKey( - object: TObject, - predicate?: ObjectIterator - ): string | undefined; - - /** - * @see _.findLastKey - */ - findLastKey( - object: TObject, - predicate?: string - ): string; - - /** - * @see _.findLastKey - */ - findLastKey, TObject>( - object: TObject, - predicate?: TWhere + findLastKey( + object: T | null | undefined, + predicate?: ObjectIteratee ): string | undefined; } - interface LoDashImplicitObjectWrapperBase { + interface LoDashImplicitWrapper { /** * @see _.findLastKey */ - findLastKey( - predicate?: DictionaryIterator - ): string; - - /** - * @see _.findLastKey - */ - findLastKey( - predicate?: ObjectIterator - ): string | undefined; - - /** - * @see _.findLastKey - */ - findLastKey( - predicate?: string - ): string | undefined; - - /** - * @see _.findLastKey - */ - findLastKey>( - predicate?: TWhere + findLastKey( + this: LoDashImplicitWrapper, + predicate?: ObjectIteratee ): string | undefined; } - interface LoDashExplicitObjectWrapperBase { + interface LoDashExplicitWrapper { /** * @see _.findLastKey */ - findLastKey( - predicate?: DictionaryIterator - ): LoDashExplicitWrapper; - - /** - * @see _.findLastKey - */ - findLastKey( - predicate?: ObjectIterator - ): LoDashExplicitWrapper; - - /** - * @see _.findLastKey - */ - findLastKey( - predicate?: string - ): LoDashExplicitWrapper; - - /** - * @see _.findLastKey - */ - findLastKey>( - predicate?: TWhere + findLastKey( + this: LoDashExplicitWrapper, + predicate?: ObjectIteratee ): LoDashExplicitWrapper; } @@ -16006,43 +12776,27 @@ declare namespace _ { * @return Returns object. */ forIn( - object: Dictionary, - iteratee?: DictionaryIterator - ): Dictionary; + object: T, + iteratee?: ObjectIterator + ): T; /** * @see _.forIn */ forIn( - object: Dictionary | null | undefined, - iteratee?: DictionaryIterator - ): Dictionary | null | undefined; - - /** - * @see _.forIn - */ - forIn( - object: T, - iteratee?: ObjectIterator - ): T; + object: T | null | undefined, + iteratee?: ObjectIterator + ): T | null | undefined; } - interface LoDashImplicitObjectWrapperBase { + interface LoDashWrapper { /** * @see _.forIn */ - forIn( - iteratee?: DictionaryIterator - ): TWrapper; - } - - interface LoDashExplicitObjectWrapperBase { - /** - * @see _.forIn - */ - forIn( - iteratee?: DictionaryIterator - ): TWrapper; + forIn( + this: LoDashWrapper, + iteratee?: ObjectIterator + ): this; } //_.forInRight @@ -16056,43 +12810,27 @@ declare namespace _ { * @return Returns object. */ forInRight( - object: Dictionary, - iteratee?: DictionaryIterator - ): Dictionary; + object: T, + iteratee?: ObjectIterator + ): T; /** * @see _.forInRight */ forInRight( - object: Dictionary | null | undefined, - iteratee?: DictionaryIterator - ): Dictionary | null | undefined; - - /** - * @see _.forInRight - */ - forInRight( - object: T, - iteratee?: ObjectIterator - ): T; + object: T | null | undefined, + iteratee?: ObjectIterator + ): T | null | undefined; } - interface LoDashImplicitObjectWrapperBase { + interface LoDashWrapper { /** * @see _.forInRight */ - forInRight( - iteratee?: DictionaryIterator - ): TWrapper; - } - - interface LoDashExplicitObjectWrapperBase { - /** - * @see _.forInRight - */ - forInRight( - iteratee?: DictionaryIterator - ): TWrapper; + forInRight( + this: LoDashWrapper, + iteratee?: ObjectIterator + ): this; } //_.forOwn @@ -16108,43 +12846,27 @@ declare namespace _ { * @return Returns object. */ forOwn( - object: Dictionary, - iteratee?: DictionaryIterator - ): Dictionary; + object: T, + iteratee?: ObjectIterator + ): T; /** * @see _.forOwn */ forOwn( - object: Dictionary | null | undefined, - iteratee?: DictionaryIterator - ): Dictionary | null | undefined; - - /** - * @see _.forOwn - */ - forOwn( - object: T, - iteratee?: ObjectIterator - ): T; + object: T | null | undefined, + iteratee?: ObjectIterator + ): T | null | undefined; } - interface LoDashImplicitObjectWrapperBase { + interface LoDashWrapper { /** * @see _.forOwn */ - forOwn( - iteratee?: DictionaryIterator - ): TWrapper; - } - - interface LoDashExplicitObjectWrapperBase { - /** - * @see _.forOwn - */ - forOwn( - iteratee?: DictionaryIterator - ): TWrapper; + forOwn( + this: LoDashWrapper, + iteratee?: ObjectIterator + ): this; } //_.forOwnRight @@ -16158,43 +12880,27 @@ declare namespace _ { * @return Returns object. */ forOwnRight( - object: Dictionary, - iteratee?: DictionaryIterator - ): Dictionary; + object: T, + iteratee?: ObjectIterator + ): T; /** * @see _.forOwnRight */ forOwnRight( - object: Dictionary | null | undefined, - iteratee?: DictionaryIterator - ): Dictionary | null | undefined; - - /** - * @see _.forOwnRight - */ - forOwnRight( - object: T, - iteratee?: ObjectIterator - ): T; + object: T | null | undefined, + iteratee?: ObjectIterator + ): T | null | undefined; } - interface LoDashImplicitObjectWrapperBase { + interface LoDashWrapper { /** * @see _.forOwnRight */ - forOwnRight( - iteratee?: DictionaryIterator - ): TWrapper; - } - - interface LoDashExplicitObjectWrapperBase { - /** - * @see _.forOwnRight - */ - forOwnRight( - iteratee?: DictionaryIterator - ): TWrapper; + forOwnRight( + this: LoDashWrapper, + iteratee?: ObjectIterator + ): this; } //_.functions @@ -16220,21 +12926,21 @@ declare namespace _ { * _.functions(new Foo); * // => ['a', 'b'] */ - functions(object: any): string[]; + functions(object: any): string[]; } - interface LoDashImplicitObjectWrapper { + interface LoDashImplicitWrapper { /** * @see _.functions */ - functions(): _.LoDashImplicitArrayWrapper; + functions(): LoDashImplicitWrapper; } - interface LoDashExplicitObjectWrapper { + interface LoDashExplicitWrapper { /** * @see _.functions */ - functions(): _.LoDashExplicitArrayWrapper; + functions(): LoDashExplicitWrapper; } //_.functionsIn @@ -16263,18 +12969,18 @@ declare namespace _ { functionsIn(object: any): string[]; } - interface LoDashImplicitObjectWrapper { + interface LoDashImplicitWrapper { /** * @see _.functionsIn */ - functionsIn(): _.LoDashImplicitArrayWrapper; + functionsIn(): LoDashImplicitWrapper; } - interface LoDashExplicitObjectWrapper { + interface LoDashExplicitWrapper { /** * @see _.functionsIn */ - functionsIn(): _.LoDashExplicitArrayWrapper; + functionsIn(): LoDashExplicitWrapper; } //_.get @@ -16288,80 +12994,155 @@ declare namespace _ { * @param defaultValue The value returned if the resolved value is undefined. * @return Returns the resolved value. */ - get( + get( object: TObject, - path: Many, - defaultValue?: TResult - ): TResult; + path: TKey | [TKey] + ): TObject[TKey]; /** * @see _.get */ - get( + get( + object: TObject | null | undefined, + path: TKey | [TKey] + ): TObject[TKey] | undefined; + + /** + * @see _.get + */ + get( + object: TObject | null | undefined, + path: TKey | [TKey], + defaultValue: TDefault + ): TObject[TKey] | TDefault; + + /** + * @see _.get + */ + get( + object: null | undefined, + path: Many, + defaultValue: TDefault + ): TDefault; + + /** + * @see _.get + */ + get( + object: null | undefined, + path: Many + ): undefined; + + /** + * @see _.get + */ + get( object: any, path: Many, - defaultValue?: TResult - ): TResult; + defaultValue?: any + ): any; } - interface LoDashImplicitWrapper { + interface LoDashImplicitWrapper { + /** + * @see _.get + */ + get( + path: TKey | [TKey] + ): TValue[TKey]; + + /** + * @see _.get + */ + get( + this: LoDashImplicitWrapper, + path: TKey | [TKey], + ): TObject[TKey] | undefined; + + /** + * @see _.get + */ + get( + this: LoDashImplicitWrapper, + path: TKey | [TKey], + defaultValue: TDefault + ): TObject[TKey] | TDefault; + + /** + * @see _.get + */ + get( + this: LoDashImplicitWrapper, + path: Many, + defaultValue: TDefault + ): TDefault; + + /** + * @see _.get + */ + get( + this: LoDashImplicitWrapper, + path: Many + ): undefined; + /** * @see _.get */ get( path: Many, - defaultValue?: TResult - ): TResult; + defaultValue?: any + ): any; } - interface LoDashImplicitArrayWrapperBase { + interface LoDashExplicitWrapper { /** * @see _.get */ - get( + get( + path: TKey | [TKey] + ): LoDashExplicitWrapper; + + /** + * @see _.get + */ + get( + this: LoDashExplicitWrapper, + path: TKey | [TKey], + ): LoDashExplicitWrapper; + + /** + * @see _.get + */ + get( + this: LoDashExplicitWrapper, + path: TKey | [TKey], + defaultValue: TDefault + ): LoDashExplicitWrapper; + + /** + * @see _.get + */ + get( + this: LoDashExplicitWrapper, path: Many, - defaultValue?: TResult - ): TResult; - } + defaultValue: TDefault + ): LoDashExplicitWrapper; - interface LoDashImplicitObjectWrapperBase { /** * @see _.get */ - get( - path: Many, - defaultValue?: TResult - ): TResult; - } + get( + this: LoDashExplicitWrapper, + path: Many + ): LoDashExplicitWrapper; - interface LoDashExplicitWrapper { /** * @see _.get */ - get( + get( path: Many, defaultValue?: any - ): TResultWrapper; - } - - interface LoDashExplicitArrayWrapperBase { - /** - * @see _.get - */ - get( - path: Many, - defaultValue?: any - ): TResultWrapper; - } - - interface LoDashExplicitObjectWrapperBase { - /** - * @see _.get - */ - get( - path: Many, - defaultValue?: any - ): TResultWrapper; + ): LoDashExplicitWrapper; } //_.has @@ -16392,20 +13173,20 @@ declare namespace _ { * _.has(other, 'a'); * // => false */ - has( + has( object: T, path: Many ): boolean; } - interface LoDashImplicitObjectWrapperBase { + interface LoDashImplicitWrapper { /** * @see _.has */ has(path: Many): boolean; } - interface LoDashExplicitObjectWrapperBase { + interface LoDashExplicitWrapper { /** * @see _.has */ @@ -16439,20 +13220,20 @@ declare namespace _ { * _.hasIn(object, 'b'); * // => false */ - hasIn( + hasIn( object: T, path: Many ): boolean; } - interface LoDashImplicitObjectWrapperBase { + interface LoDashImplicitWrapper { /** * @see _.hasIn */ hasIn(path: Many): boolean; } - interface LoDashExplicitObjectWrapperBase { + interface LoDashExplicitWrapper { /** * @see _.hasIn */ @@ -16469,37 +13250,26 @@ declare namespace _ { * @param multiValue Allow multiple values per key. * @return Returns the new inverted object. */ - invert( - object: T, - multiValue?: boolean - ): TResult; + invert( + object: object + ): Dictionary; + } + interface LoDashImplicitWrapper { /** * @see _.invert */ - invert( - object: Object, - multiValue?: boolean - ): TResult; + invert(): LoDashImplicitWrapper>; } - interface LoDashImplicitObjectWrapper { + interface LoDashExplicitWrapper { /** * @see _.invert */ - invert(multiValue?: boolean): LoDashImplicitObjectWrapper; + invert(): LoDashExplicitWrapper>; } - interface LoDashExplicitObjectWrapper { - /** - * @see _.invert - */ - invert(multiValue?: boolean): LoDashExplicitObjectWrapper; - } - - //_.inverBy - type InvertByIterator = (value: T) => any; - + //_.invertBy interface LoDashStatic { /** * This method is like _.invert except that the inverted object is generated from the results of running each @@ -16510,116 +13280,54 @@ declare namespace _ { * @param interatee The iteratee invoked per element. * @return Returns the new inverted object. */ - invertBy( - object: Object, - interatee?: InvertByIterator|string + invertBy( + object: List | Dictionary | NumericDictionary | null | undefined, + interatee?: ValueIteratee ): Dictionary; + /** + * @see _.invertBy + */ + invertBy( + object: T | null | undefined, + interatee?: ValueIteratee + ): Dictionary; + } + + interface LoDashImplicitWrapper { /** * @see _.invertBy */ invertBy( - object: _.Dictionary|_.NumericDictionary, - interatee?: InvertByIterator|string - ): Dictionary; + this: LoDashImplicitWrapper | Dictionary | NumericDictionary | null | undefined>, + interatee?: ValueIteratee + ): LoDashImplicitWrapper>; /** * @see _.invertBy */ - invertBy( - object: Object, - interatee?: W - ): Dictionary; - - /** - * @see _.invertBy - */ - invertBy( - object: _.Dictionary, - interatee?: W - ): Dictionary; + invertBy( + this: LoDashImplicitWrapper, + interatee?: ValueIteratee + ): LoDashImplicitWrapper>; } - interface LoDashImplicitWrapper { + interface LoDashExplicitWrapper { /** * @see _.invertBy */ - invertBy( - interatee?: InvertByIterator - ): LoDashImplicitObjectWrapper>; - } - - interface LoDashImplicitArrayWrapper { - /** - * @see _.invertBy - */ - invertBy( - interatee?: InvertByIterator|string - ): LoDashImplicitObjectWrapper>; + invertBy( + this: LoDashExplicitWrapper | Dictionary | NumericDictionary | null | undefined>, + interatee?: ValueIteratee + ): LoDashExplicitWrapper>; /** * @see _.invertBy */ - invertBy( - interatee?: W - ): LoDashImplicitObjectWrapper>; - } - - interface LoDashImplicitObjectWrapper { - /** - * @see _.invertBy - */ - invertBy( - interatee?: InvertByIterator|string - ): LoDashImplicitObjectWrapper>; - - /** - * @see _.invertBy - */ - invertBy( - interatee?: W - ): LoDashImplicitObjectWrapper>; - } - - interface LoDashExplicitWrapper { - /** - * @see _.invertBy - */ - invertBy( - interatee?: InvertByIterator - ): LoDashExplicitObjectWrapper>; - } - - interface LoDashExplicitArrayWrapper { - /** - * @see _.invertBy - */ - invertBy( - interatee?: InvertByIterator|string - ): LoDashExplicitObjectWrapper>; - - /** - * @see _.invertBy - */ - invertBy( - interatee?: W - ): LoDashExplicitObjectWrapper>; - } - - interface LoDashExplicitObjectWrapper { - /** - * @see _.invertBy - */ - invertBy( - interatee?: InvertByIterator|string - ): LoDashExplicitObjectWrapper>; - - /** - * @see _.invertBy - */ - invertBy( - interatee?: W - ): LoDashExplicitObjectWrapper>; + invertBy( + this: LoDashExplicitWrapper, + interatee?: ValueIteratee + ): LoDashExplicitWrapper>; } //_.keys @@ -16635,18 +13343,18 @@ declare namespace _ { keys(object?: any): string[]; } - interface LoDashImplicitObjectWrapperBase { + interface LoDashImplicitWrapper { /** * @see _.keys */ - keys(): LoDashImplicitArrayWrapper; + keys(): LoDashImplicitWrapper; } - interface LoDashExplicitObjectWrapperBase { + interface LoDashExplicitWrapper { /** * @see _.keys */ - keys(): LoDashExplicitArrayWrapper; + keys(): LoDashExplicitWrapper; } //_.keysIn @@ -16662,18 +13370,18 @@ declare namespace _ { keysIn(object?: any): string[]; } - interface LoDashImplicitObjectWrapperBase { + interface LoDashImplicitWrapper { /** * @see _.keysIn */ - keysIn(): LoDashImplicitArrayWrapper; + keysIn(): LoDashImplicitWrapper; } - interface LoDashExplicitObjectWrapperBase { + interface LoDashExplicitWrapper { /** * @see _.keysIn */ - keysIn(): LoDashExplicitArrayWrapper; + keysIn(): LoDashExplicitWrapper; } //_.mapKeys @@ -16687,126 +13395,78 @@ declare namespace _ { * @param thisArg The this binding of iteratee. * @return Returns the new mapped object. */ - mapKeys( + mapKeys( object: List | null | undefined, - iteratee?: ListIterator - ): Dictionary; - - /** - * @see _.mapKeys - */ - mapKeys( - object: Dictionary | null | undefined, - iteratee?: DictionaryIterator - ): Dictionary; - - /** - * @see _.mapKeys - */ - mapKeys( - object: List|Dictionary | null | undefined, - iteratee?: TObject + iteratee?: ListIteratee ): Dictionary; /** * @see _.mapKeys */ mapKeys( - object: List|Dictionary | null | undefined, - iteratee?: string + object: Dictionary | null | undefined, + iteratee?: DictionaryIteratee ): Dictionary; - } - - interface LoDashImplicitArrayWrapperBase { - /** - * @see _.mapKeys - */ - mapKeys( - iteratee?: ListIterator - ): LoDashImplicitObjectWrapper>; - - /** - * @see _.mapKeys - */ - mapKeys( - iteratee?: TObject - ): LoDashImplicitObjectWrapper>; /** * @see _.mapKeys */ mapKeys( - iteratee?: string - ): LoDashImplicitObjectWrapper>; + object: object | null | undefined, + iteratee?: ObjectIteratee + ): Dictionary; } - interface LoDashImplicitObjectWrapperBase { + interface LoDashImplicitWrapper { /** * @see _.mapKeys */ - mapKeys( - iteratee?: ListIterator|DictionaryIterator - ): LoDashImplicitObjectWrapper>; + mapKeys( + this: LoDashImplicitWrapper | null | undefined>, + iteratee?: ListIteratee + ): LoDashImplicitWrapper>; /** * @see _.mapKeys */ - mapKeys( - iteratee?: TObject - ): LoDashImplicitObjectWrapper>; - - /** - * @see _.mapKeys - */ - mapKeys( - iteratee?: string - ): LoDashImplicitObjectWrapper>; - } - - interface LoDashExplicitArrayWrapperBase { - /** - * @see _.mapKeys - */ - mapKeys( - iteratee?: ListIterator - ): LoDashExplicitObjectWrapper>; - - /** - * @see _.mapKeys - */ - mapKeys( - iteratee?: TObject - ): LoDashExplicitObjectWrapper>; + mapKeys( + this: LoDashImplicitWrapper | null | undefined>, + iteratee?: DictionaryIteratee + ): LoDashImplicitWrapper>; /** * @see _.mapKeys */ mapKeys( - iteratee?: string - ): LoDashExplicitObjectWrapper>; + this: LoDashImplicitWrapper, + iteratee?: ObjectIteratee + ): LoDashImplicitWrapper>; } - interface LoDashExplicitObjectWrapperBase { + interface LoDashExplicitWrapper { /** * @see _.mapKeys */ - mapKeys( - iteratee?: ListIterator|DictionaryIterator - ): LoDashExplicitObjectWrapper>; + mapKeys( + this: LoDashExplicitWrapper | null | undefined>, + iteratee?: ListIteratee + ): LoDashExplicitWrapper>; /** * @see _.mapKeys */ - mapKeys( - iteratee?: TObject - ): LoDashExplicitObjectWrapper>; + mapKeys( + this: LoDashExplicitWrapper | null | undefined>, + iteratee?: DictionaryIteratee + ): LoDashExplicitWrapper>; /** * @see _.mapKeys */ - mapKeys( - iteratee?: string - ): LoDashExplicitObjectWrapper>; + mapKeys( + this: LoDashExplicitWrapper, + iteratee?: ObjectIteratee + ): LoDashExplicitWrapper>; } //_.mapValues @@ -16830,56 +13490,171 @@ declare namespace _ { * @param {Object} [thisArg] The `this` binding of `iteratee`. * @return {Object} Returns the new mapped object. */ - mapValues(obj: Dictionary | null | undefined, callback: ObjectIterator): Dictionary; - mapValues(obj: Dictionary | null | undefined, where: Dictionary): Dictionary; - mapValues(obj: T | null | undefined, pluck?: string): TMapped; - mapValues(obj: T | null | undefined, callback: ObjectIterator): T; + mapValues(obj: T | null | undefined, callback: ObjectIterator): { [P in keyof T]: TResult }; + + /** + * @see _.mapValues + */ + mapValues(obj: T | null | undefined, iteratee: object): { [P in keyof T]: boolean }; + + /** + * @see _.mapValues + */ + mapValues(obj: Dictionary | null | undefined, iteratee: TKey): Dictionary; + + /** + * @see _.mapValues + */ + mapValues(obj: T | null | undefined, iteratee: string): { [P in keyof T]: any }; + + /** + * @see _.mapValues + */ + mapValues(obj: string | null | undefined, callback: StringIterator): NumericDictionary; + + /** + * @see _.mapValues + */ + mapValues(obj: Dictionary | null | undefined): Dictionary; + + /** + * @see _.mapValues + */ + mapValues(obj: T): T; + + /** + * @see _.mapValues + */ + mapValues(obj: T | null | undefined): T | {}; + + /** + * @see _.mapValues + */ + mapValues(obj: string | null | undefined): NumericDictionary; } - interface LoDashImplicitObjectWrapperBase { + interface LoDashImplicitWrapper { /** * @see _.mapValues - * TValue is the type of the property values of T. - * TResult is the type output by the ObjectIterator function */ - mapValues(callback: ObjectIterator): LoDashImplicitObjectWrapper>; + mapValues( + this: LoDashImplicitWrapper, + callback: ObjectIterator + ): LoDashImplicitWrapper<{ [P in keyof T]: TResult }>; /** * @see _.mapValues - * TResult is the type of the property specified by pluck. - * T should be a Dictionary> */ - mapValues(pluck?: string): LoDashImplicitObjectWrapper>; + mapValues( + this: LoDashImplicitWrapper, + iteratee: object + ): LoDashImplicitWrapper<{ [P in keyof T]: boolean }>; /** * @see _.mapValues - * TResult is the type of the properties of each object in the values of T - * T should be a Dictionary> */ - mapValues(where: Dictionary): LoDashImplicitArrayWrapper; + mapValues( + this: LoDashImplicitWrapper | null | undefined>, + iteratee: TKey + ): LoDashImplicitWrapper>; + + /** + * @see _.mapValues + */ + mapValues( + this: LoDashImplicitWrapper, + iteratee: string + ): LoDashImplicitWrapper<{ [P in keyof T]: any }>; + + /** + * @see _.mapValues + */ + mapValues( + this: LoDashImplicitWrapper, + callback: StringIterator + ): LoDashImplicitWrapper>; + + /** + * @see _.mapValues + */ + mapValues(this: LoDashImplicitWrapper | null | undefined>): LoDashImplicitWrapper>; + + /** + * @see _.mapValues + */ + mapValues(this: LoDashImplicitWrapper): LoDashImplicitWrapper; + + /** + * @see _.mapValues + */ + mapValues(this: LoDashImplicitWrapper): LoDashImplicitWrapper; + + /** + * @see _.mapValues + */ + mapValues(this: LoDashImplicitWrapper): LoDashImplicitWrapper>; } - interface LoDashExplicitObjectWrapperBase { + interface LoDashExplicitWrapper { /** * @see _.mapValues - * TValue is the type of the property values of T. - * TResult is the type output by the ObjectIterator function */ - mapValues(callback: ObjectIterator): LoDashExplicitObjectWrapper>; + mapValues( + this: LoDashExplicitWrapper, + callback: ObjectIterator + ): LoDashExplicitWrapper<{ [P in keyof T]: TResult }>; /** * @see _.mapValues - * TResult is the type of the property specified by pluck. - * T should be a Dictionary> */ - mapValues(pluck?: string): LoDashExplicitObjectWrapper>; + mapValues( + this: LoDashExplicitWrapper, + iteratee: object + ): LoDashExplicitWrapper<{ [P in keyof T]: boolean }>; /** * @see _.mapValues - * TResult is the type of the properties of each object in the values of T - * T should be a Dictionary> */ - mapValues(where: Dictionary): LoDashExplicitObjectWrapper; + mapValues( + this: LoDashExplicitWrapper | null | undefined>, + iteratee: TKey + ): LoDashExplicitWrapper>; + + /** + * @see _.mapValues + */ + mapValues( + this: LoDashExplicitWrapper, + iteratee: string + ): LoDashExplicitWrapper<{ [P in keyof T]: any }>; + + /** + * @see _.mapValues + */ + mapValues( + this: LoDashExplicitWrapper, + callback: StringIterator + ): LoDashExplicitWrapper>; + + /** + * @see _.mapValues + */ + mapValues(this: LoDashExplicitWrapper | null | undefined>): LoDashExplicitWrapper>; + + /** + * @see _.mapValues + */ + mapValues(this: LoDashExplicitWrapper): LoDashExplicitWrapper; + + /** + * @see _.mapValues + */ + mapValues(this: LoDashExplicitWrapper): LoDashExplicitWrapper; + + /** + * @see _.mapValues + */ + mapValues(this: LoDashExplicitWrapper): LoDashExplicitWrapper>; } //_.merge @@ -16951,19 +13726,19 @@ declare namespace _ { /** * @see _.merge */ - merge( + merge( object: any, ...otherArgs: any[] - ): TResult; + ): any; } - interface LoDashImplicitObjectWrapper { + interface LoDashImplicitWrapper { /** * @see _.merge */ merge( source: TSource - ): LoDashImplicitObjectWrapper; + ): LoDashImplicitWrapper; /** * @see _.merge @@ -16971,7 +13746,7 @@ declare namespace _ { merge( source1: TSource1, source2: TSource2 - ): LoDashImplicitObjectWrapper; + ): LoDashImplicitWrapper; /** * @see _.merge @@ -16980,7 +13755,7 @@ declare namespace _ { source1: TSource1, source2: TSource2, source3: TSource3 - ): LoDashImplicitObjectWrapper; + ): LoDashImplicitWrapper; /** * @see _.merge @@ -16990,23 +13765,23 @@ declare namespace _ { source2: TSource2, source3: TSource3, source4: TSource4 - ): LoDashImplicitObjectWrapper; + ): LoDashImplicitWrapper; /** * @see _.merge */ - merge( + merge( ...otherArgs: any[] - ): LoDashImplicitObjectWrapper; + ): LoDashImplicitWrapper; } - interface LoDashExplicitObjectWrapper { + interface LoDashExplicitWrapper { /** * @see _.merge */ merge( source: TSource - ): LoDashExplicitObjectWrapper; + ): LoDashExplicitWrapper; /** * @see _.merge @@ -17014,7 +13789,7 @@ declare namespace _ { merge( source1: TSource1, source2: TSource2 - ): LoDashExplicitObjectWrapper; + ): LoDashExplicitWrapper; /** * @see _.merge @@ -17023,20 +13798,20 @@ declare namespace _ { source1: TSource1, source2: TSource2, source3: TSource3 - ): LoDashExplicitObjectWrapper; + ): LoDashExplicitWrapper; /** * @see _.merge */ merge( - ): LoDashExplicitObjectWrapper; + ): LoDashExplicitWrapper; /** * @see _.merge */ - merge( + merge( ...otherArgs: any[] - ): LoDashExplicitObjectWrapper; + ): LoDashExplicitWrapper; } //_.mergeWith @@ -17120,20 +13895,20 @@ declare namespace _ { /** * @see _.mergeWith */ - mergeWith( + mergeWith( object: any, ...otherArgs: any[] - ): TResult; + ): any; } - interface LoDashImplicitObjectWrapper { + interface LoDashImplicitWrapper { /** * @see _.mergeWith */ mergeWith( source: TSource, customizer: MergeWithCustomizer - ): LoDashImplicitObjectWrapper; + ): LoDashImplicitWrapper; /** * @see _.mergeWith @@ -17142,7 +13917,7 @@ declare namespace _ { source1: TSource1, source2: TSource2, customizer: MergeWithCustomizer - ): LoDashImplicitObjectWrapper; + ): LoDashImplicitWrapper; /** * @see _.mergeWith @@ -17152,7 +13927,7 @@ declare namespace _ { source2: TSource2, source3: TSource3, customizer: MergeWithCustomizer - ): LoDashImplicitObjectWrapper; + ): LoDashImplicitWrapper; /** * @see _.mergeWith @@ -17163,14 +13938,14 @@ declare namespace _ { source3: TSource3, source4: TSource4, customizer: MergeWithCustomizer - ): LoDashImplicitObjectWrapper; + ): LoDashImplicitWrapper; /** * @see _.mergeWith */ - mergeWith( + mergeWith( ...otherArgs: any[] - ): LoDashImplicitObjectWrapper; + ): LoDashImplicitWrapper; } //_.omit @@ -17194,28 +13969,30 @@ declare namespace _ { * // => { 'b': '2' } */ - omit( + omit( object: T | null | undefined, - ...predicate: Array> - ): TResult; + ...props: Array> + ): PartialObject; } - interface LoDashImplicitObjectWrapperBase { + interface LoDashImplicitWrapper { /** * @see _.omit */ - omit( - ...predicate: Array> - ): LoDashImplicitObjectWrapper; + omit( + this: LoDashImplicitWrapper, + ...props: Array> + ): LoDashImplicitWrapper>; } - interface LoDashExplicitObjectWrapperBase { + interface LoDashExplicitWrapper { /** * @see _.omit */ - omit( + omit( + this: LoDashExplicitWrapper, ...predicate: Array> - ): LoDashExplicitObjectWrapper; + ): LoDashExplicitWrapper>; } //_.omitBy @@ -17238,28 +14015,30 @@ declare namespace _ { * _.omitBy(object, _.isNumber); * // => { 'b': '2' } */ - omitBy( + omitBy( object: T | null | undefined, - predicate: ObjectIterator - ): TResult; + predicate: ValueKeyIteratee + ): PartialObject; } - interface LoDashImplicitObjectWrapperBase { + interface LoDashImplicitWrapper { /** * @see _.omitBy */ - omitBy( - predicate: ObjectIterator - ): LoDashImplicitObjectWrapper; + omitBy( + this: LoDashImplicitWrapper, + predicate: ValueKeyIteratee + ): LoDashImplicitWrapper>; } - interface LoDashExplicitObjectWrapperBase { + interface LoDashExplicitWrapper { /** * @see _.omitBy */ - omitBy( - predicate: ObjectIterator - ): LoDashExplicitObjectWrapper; + omitBy( + this: LoDashExplicitWrapper, + predicate: ValueKeyIteratee + ): LoDashExplicitWrapper>; } //_.pick @@ -17281,35 +14060,37 @@ declare namespace _ { * _.pick(object, ['a', 'c']); * // => { 'a': 1, 'c': 3 } */ - pick( + pick( object: T | null | undefined, ...predicate: Array> - ): TResult; + ): PartialObject; } - interface LoDashImplicitObjectWrapperBase { + interface LoDashImplicitWrapper { /** * @see _.pick */ - pick( + pick( + this: LoDashImplicitWrapper, ...predicate: Array> - ): LoDashImplicitObjectWrapper; + ): LoDashImplicitWrapper>; } - interface LoDashExplicitObjectWrapperBase { + interface LoDashExplicitWrapper { /** * @see _.pick */ - pick( + pick( + this: LoDashExplicitWrapper, ...predicate: Array> - ): LoDashExplicitObjectWrapper; + ): LoDashExplicitWrapper>; } //_.pickBy interface LoDashStatic { /** * Creates an object composed of the `object` properties `predicate` returns - * truthy for. The predicate is invoked with one argument: (value). + * truthy for. The predicate is invoked with two arguments: (value, key). * * @static * @memberOf _ @@ -17324,28 +14105,30 @@ declare namespace _ { * _.pickBy(object, _.isNumber); * // => { 'a': 1, 'c': 3 } */ - pickBy( + pickBy( object: T | null | undefined, - predicate?: ObjectIterator - ): TResult; + predicate?: ValueKeyIteratee + ): PartialObject; } - interface LoDashImplicitObjectWrapperBase { + interface LoDashImplicitWrapper { /** * @see _.pickBy */ - pickBy( - predicate?: ObjectIterator - ): LoDashImplicitObjectWrapper; + pickBy( + this: LoDashImplicitWrapper, + predicate?: ValueKeyIteratee + ): LoDashImplicitWrapper>; } - interface LoDashExplicitObjectWrapperBase { + interface LoDashExplicitWrapper { /** * @see _.pickBy */ - pickBy( - predicate?: ObjectIterator - ): LoDashExplicitObjectWrapper; + pickBy( + this: LoDashExplicitWrapper, + predicate?: ValueKeyIteratee + ): LoDashExplicitWrapper>; } //_.result @@ -17359,15 +14142,6 @@ declare namespace _ { * @param defaultValue The value returned if the resolved value is undefined. * @return Returns the resolved value. */ - result( - object: TObject, - path: Many, - defaultValue?: TResult|((...args: any[]) => TResult) - ): TResult; - - /** - * @see _.result - */ result( object: any, path: Many, @@ -17375,7 +14149,7 @@ declare namespace _ { ): TResult; } - interface LoDashImplicitWrapper { + interface LoDashImplicitWrapper { /** * @see _.result */ @@ -17385,54 +14159,14 @@ declare namespace _ { ): TResult; } - interface LoDashImplicitArrayWrapperBase { + interface LoDashExplicitWrapper { /** * @see _.result */ result( path: Many, defaultValue?: TResult|((...args: any[]) => TResult) - ): TResult; - } - - interface LoDashImplicitObjectWrapperBase { - /** - * @see _.result - */ - result( - path: Many, - defaultValue?: TResult|((...args: any[]) => TResult) - ): TResult; - } - - interface LoDashExplicitWrapper { - /** - * @see _.result - */ - result( - path: Many, - defaultValue?: any - ): TResultWrapper; - } - - interface LoDashExplicitArrayWrapperBase { - /** - * @see _.result - */ - result( - path: Many, - defaultValue?: any - ): TResultWrapper; - } - - interface LoDashExplicitObjectWrapper { - /** - * @see _.result - */ - result( - path: Many, - defaultValue?: any - ): TResultWrapper; + ): LoDashExplicitWrapper; } //_.set @@ -17447,65 +14181,56 @@ declare namespace _ { * @param value The value to set. * @return Returns object. */ - set( - object: Object, + set( + object: T, path: Many, value: any - ): TResult; + ): T; /** * @see _.set */ - set( - object: Object, + set( + object: object, path: Many, - value: V - ): TResult; - - /** - * @see _.set - */ - set( - object: O, - path: Many, - value: V + value: any ): TResult; } - interface LoDashImplicitObjectWrapper { + interface LoDashImplicitWrapper { + /** + * @see _.set + */ + set( + path: Many, + value: any + ): this; + /** * @see _.set */ set( path: Many, value: any - ): LoDashImplicitObjectWrapper; - - /** - * @see _.set - */ - set( - path: Many, - value: V - ): LoDashImplicitObjectWrapper; + ): LoDashImplicitWrapper; } - interface LoDashExplicitObjectWrapper { + interface LoDashExplicitWrapper { + /** + * @see _.set + */ + set( + path: Many, + value: any + ): this; + /** * @see _.set */ set( path: Many, value: any - ): LoDashExplicitObjectWrapper; - - /** - * @see _.set - */ - set( - path: Many, - value: V - ): LoDashExplicitObjectWrapper; + ): LoDashExplicitWrapper; } //_.setWith @@ -17523,72 +14248,59 @@ declare namespace _ { * @parem customizer The function to customize assigned values. * @return Returns object. */ - setWith( - object: O, - path: Many, - value: V, - customizer?: SetWithCustomizer - ): TResult; - - /** - * @see _.setWith - */ - setWith( - object: any, + setWith( + object: T, path: Many, value: any, - customizer?: SetWithCustomizer - ): TResult; + customizer?: SetWithCustomizer + ): T; - /** - * @see _.setWith - */ - setWith( - object: any, + setWith( + object: T, path: Many, - value: V, - customizer?: SetWithCustomizer + value: any, + customizer?: SetWithCustomizer ): TResult; } - interface LoDashImplicitObjectWrapper { + interface LoDashImplicitWrapper { + /** + * @see _.setWith + */ + setWith( + path: Many, + value: any, + customizer?: SetWithCustomizer + ): this; + /** * @see _.setWith */ setWith( path: Many, value: any, - customizer?: SetWithCustomizer - ): LoDashImplicitObjectWrapper; - - /** - * @see _.setWith - */ - setWith( - path: Many, - value: V, - customizer?: SetWithCustomizer - ): LoDashImplicitObjectWrapper; + customizer?: SetWithCustomizer + ): LoDashImplicitWrapper; } - interface LoDashExplicitObjectWrapper { + interface LoDashExplicitWrapper { + /** + * @see _.setWith + */ + setWith( + path: Many, + value: any, + customizer?: SetWithCustomizer + ): this; + /** * @see _.setWith */ setWith( path: Many, value: any, - customizer?: SetWithCustomizer - ): LoDashExplicitObjectWrapper; - - /** - * @see _.setWith - */ - setWith( - path: Many, - value: V, - customizer?: SetWithCustomizer - ): LoDashExplicitObjectWrapper; + customizer?: SetWithCustomizer + ): LoDashExplicitWrapper; } //_.toPairs @@ -17599,23 +14311,36 @@ declare namespace _ { * @param object The object to query. * @return Returns the new array of key-value pairs. */ - toPairs(object?: T): [string, any][]; + toPairs(object?: Dictionary): Array<[string, T]>; - toPairs(object?: T): [string, TResult][]; - } - - interface LoDashImplicitObjectWrapper { /** * @see _.toPairs */ - toPairs(): LoDashImplicitArrayWrapper<[string, TResult]>; + toPairs(object?: object): Array<[string, any]>; } - interface LoDashExplicitObjectWrapper { + interface LoDashImplicitWrapper { /** * @see _.toPairs */ - toPairs(): LoDashExplicitArrayWrapper<[string, TResult]>; + toPairs(this: LoDashImplicitWrapper>): LoDashImplicitWrapper>; + + /** + * @see _.toPairs + */ + toPairs(): LoDashImplicitWrapper>; + } + + interface LoDashExplicitWrapper { + /** + * @see _.toPairs + */ + toPairs(this: LoDashExplicitWrapper>): LoDashExplicitWrapper>; + + /** + * @see _.toPairs + */ + toPairs(): LoDashExplicitWrapper>; } //_.toPairsIn @@ -17626,23 +14351,36 @@ declare namespace _ { * @param object The object to query. * @return Returns the new array of key-value pairs. */ - toPairsIn(object?: T): [string, any][]; + toPairsIn(object?: Dictionary): Array<[string, T]>; - toPairsIn(object?: T): [string, TResult][]; - } - - interface LoDashImplicitObjectWrapper { /** * @see _.toPairsIn */ - toPairsIn(): LoDashImplicitArrayWrapper<[string, TResult]>; + toPairsIn(object?: object): Array<[string, any]>; } - interface LoDashExplicitObjectWrapper { + interface LoDashImplicitWrapper { /** * @see _.toPairsIn */ - toPairsIn(): LoDashExplicitArrayWrapper<[string, TResult]>; + toPairsIn(this: LoDashImplicitWrapper>): LoDashImplicitWrapper>; + + /** + * @see _.toPairsIn + */ + toPairsIn(): LoDashImplicitWrapper>; + } + + interface LoDashExplicitWrapper { + /** + * @see _.toPairsIn + */ + toPairsIn(this: LoDashExplicitWrapper>): LoDashExplicitWrapper>; + + /** + * @see _.toPairsIn + */ + toPairsIn(): LoDashExplicitWrapper>; } //_.transform @@ -17661,7 +14399,7 @@ declare namespace _ { */ transform( object: T[], - iteratee?: MemoVoidArrayIterator, + iteratee: MemoVoidArrayIterator, accumulator?: TResult[] ): TResult[]; @@ -17670,7 +14408,16 @@ declare namespace _ { */ transform( object: T[], - iteratee?: MemoVoidArrayIterator>, + iteratee: MemoVoidArrayIterator>, + accumulator: Dictionary + ): Dictionary; + + /** + * @see _.transform + */ + transform( + object: Dictionary, + iteratee: MemoVoidDictionaryIterator>, accumulator?: Dictionary ): Dictionary; @@ -17679,54 +14426,123 @@ declare namespace _ { */ transform( object: Dictionary, - iteratee?: MemoVoidDictionaryIterator>, - accumulator?: Dictionary - ): Dictionary; - - /** - * @see _.transform - */ - transform( - object: Dictionary, - iteratee?: MemoVoidDictionaryIterator, - accumulator?: TResult[] + iteratee: MemoVoidDictionaryIterator, + accumulator: TResult[] ): TResult[]; - } - - interface LoDashImplicitArrayWrapper { - /** - * @see _.transform - */ - transform( - iteratee?: MemoVoidArrayIterator, - accumulator?: TResult[] - ): LoDashImplicitArrayWrapper; /** * @see _.transform */ - transform( - iteratee?: MemoVoidArrayIterator>, - accumulator?: Dictionary - ): LoDashImplicitObjectWrapper>; + transform( + object: any[], + ): any[]; + + /** + * @see _.transform + */ + transform( + object: object, + ): Dictionary; } - interface LoDashImplicitObjectWrapper { + interface LoDashImplicitWrapper { /** * @see _.transform */ transform( - iteratee?: MemoVoidDictionaryIterator>, - accumulator?: Dictionary - ): LoDashImplicitObjectWrapper>; + this: LoDashImplicitWrapper, + iteratee: MemoVoidArrayIterator, + accumulator?: TResult[] + ): LoDashImplicitWrapper; /** * @see _.transform */ transform( - iteratee?: MemoVoidDictionaryIterator, + this: LoDashImplicitWrapper, + iteratee: MemoVoidArrayIterator>, + accumulator: Dictionary + ): LoDashImplicitWrapper>; + + /** + * @see _.transform + */ + transform( + this: LoDashImplicitWrapper>, + iteratee: MemoVoidDictionaryIterator>, + accumulator?: Dictionary + ): LoDashImplicitWrapper>; + + /** + * @see _.transform + */ + transform( + this: LoDashImplicitWrapper>, + iteratee: MemoVoidDictionaryIterator, + accumulator: TResult[] + ): LoDashImplicitWrapper; + + /** + * @see _.transform + */ + transform( + this: LoDashImplicitWrapper, + ): LoDashImplicitWrapper; + + /** + * @see _.transform + */ + transform(): LoDashImplicitWrapper>; + } + + interface LoDashExplicitWrapper { + /** + * @see _.transform + */ + transform( + this: LoDashExplicitWrapper, + iteratee: MemoVoidArrayIterator, accumulator?: TResult[] - ): LoDashImplicitArrayWrapper; + ): LoDashExplicitWrapper; + + /** + * @see _.transform + */ + transform( + this: LoDashExplicitWrapper, + iteratee: MemoVoidArrayIterator>, + accumulator?: Dictionary + ): LoDashExplicitWrapper>; + + /** + * @see _.transform + */ + transform( + this: LoDashExplicitWrapper>, + iteratee: MemoVoidDictionaryIterator>, + accumulator?: Dictionary + ): LoDashExplicitWrapper>; + + /** + * @see _.transform + */ + transform( + this: LoDashExplicitWrapper>, + iteratee: MemoVoidDictionaryIterator, + accumulator?: TResult[] + ): LoDashExplicitWrapper; + + /** + * @see _.transform + */ + transform( + this: LoDashExplicitWrapper, + ): LoDashExplicitWrapper; + + /** + * @see _.transform + */ + transform(): LoDashExplicitWrapper>; } //_.unset @@ -17740,20 +14556,20 @@ declare namespace _ { * @param path The path of the property to unset. * @return Returns true if the property is deleted, else false. */ - unset( - object: T, + unset( + object: any, path: Many ): boolean; } - interface LoDashImplicitObjectWrapper { + interface LoDashImplicitWrapper { /** * @see _.unset */ unset(path: Many): LoDashImplicitWrapper; } - interface LoDashExplicitObjectWrapper { + interface LoDashExplicitWrapper { /** * @see _.unset */ @@ -17771,74 +14587,31 @@ declare namespace _ { * @param updater The function to produce the updated value. * @return Returns object. */ - update( - object: Object, + update( + object: object, path: Many, - updater: Function - ): TResult; - - /** - * @see _.update - */ - update( - object: Object, - path: Many, - updater: U - ): TResult; - - /** - * @see _.update - */ - update( - object: O, - path: Many, - updater: Function - ): TResult; - - /** - * @see _.update - */ - update( - object: O, - path: Many, - updater: U - ): TResult; + updater: (value: any) => any + ): any; } - interface LoDashImplicitObjectWrapper { + interface LoDashImplicitWrapper { /** * @see _.update */ - update( + update( path: Many, - updater: any - ): LoDashImplicitObjectWrapper; - - /** - * @see _.update - */ - update( - path: Many, - updater: U - ): LoDashImplicitObjectWrapper; + updater: (value: any) => any + ): LoDashImplicitWrapper; } - interface LoDashExplicitObjectWrapper { + interface LoDashExplicitWrapper { /** * @see _.update */ - update( + update( path: Many, - updater: any - ): LoDashExplicitObjectWrapper; - - /** - * @see _.update - */ - update( - path: Many, - updater: U - ): LoDashExplicitObjectWrapper; + updater: (value: any) => any + ): LoDashExplicitWrapper; } //_.updateWith @@ -17867,44 +14640,62 @@ declare namespace _ { * _.updateWith(object, '[0][1]', _.constant('a'), Object); * // => { '0': { '1': 'a' } } */ - updateWith( - object: O, - path: Many, - updater: (oldValue: any) => any, - customizer?: SetWithCustomizer - ): TResult; - - /** - * @see _.updateWith - */ - updateWith( - object: any, - path: Many, - updater: (oldValue: any) => any, - customizer?: SetWithCustomizer - ): TResult; - } - - interface LoDashImplicitObjectWrapper { - /** - * @see _.updateWith - */ - updateWith( + updateWith( + object: T, path: Many, updater: (oldValue: any) => any, customizer?: SetWithCustomizer - ): LoDashImplicitObjectWrapper; + ): T; + + /** + * @see _.updateWith + */ + updateWith( + object: T, + path: Many, + updater: (oldValue: any) => any, + customizer?: SetWithCustomizer + ): TResult; } - interface LoDashExplicitObjectWrapper { + interface LoDashImplicitWrapper { + /** + * @see _.updateWith + */ + updateWith( + path: Many, + updater: (oldValue: any) => any, + customizer?: SetWithCustomizer + ): this; + /** * @see _.updateWith */ updateWith( path: Many, updater: (oldValue: any) => any, - customizer?: SetWithCustomizer - ): LoDashExplicitObjectWrapper; + customizer?: SetWithCustomizer + ): LoDashImplicitWrapper; + } + + interface LoDashExplicitWrapper { + /** + * @see _.updateWith + */ + updateWith( + path: Many, + updater: (oldValue: any) => any, + customizer?: SetWithCustomizer + ): this; + + /** + * @see _.updateWith + */ + updateWith( + path: Many, + updater: (oldValue: any) => any, + customizer?: SetWithCustomizer + ): LoDashExplicitWrapper; } //_.values @@ -17915,61 +14706,51 @@ declare namespace _ { * @param object The object to query. * @return Returns an array of property values. */ - values(object?: Dictionary|NumericDictionary|List | null | undefined): T[]; + values(object: Dictionary|NumericDictionary|List | null | undefined): T[]; /** * @see _.values */ - values(object?: any): T[]; + values(object: T | null | undefined): Array; + + /** + * @see _.values + */ + values(object: any): any[]; } - interface LoDashImplicitStringWrapper { + interface LoDashImplicitWrapper { /** * @see _.values */ - values(): LoDashImplicitArrayWrapper; + values(this: LoDashImplicitWrapper | NumericDictionary | List | null | undefined>): LoDashImplicitWrapper; + + /** + * @see _.values + */ + values(this: LoDashImplicitWrapper): LoDashImplicitWrapper>; + + /** + * @see _.values + */ + values(): LoDashImplicitWrapper; } - interface LoDashImplicitWrapper { + interface LoDashExplicitWrapper { /** * @see _.values */ - values(): LoDashImplicitArrayWrapper; - } + values(this: LoDashExplicitWrapper | NumericDictionary | List | null | undefined>): LoDashExplicitWrapper; - interface LoDashImplicitArrayWrapperBase { /** * @see _.values */ - values(): LoDashImplicitArrayWrapper; - } + values(this: LoDashExplicitWrapper): LoDashExplicitWrapper>; - interface LoDashImplicitObjectWrapperBase { /** * @see _.values */ - values(): LoDashImplicitArrayWrapper; - } - - interface LoDashExplicitWrapper { - /** - * @see _.values - */ - values(): LoDashExplicitArrayWrapper; - } - - interface LoDashExplicitArrayWrapperBase { - /** - * @see _.values - */ - values(): LoDashExplicitArrayWrapper; - } - - interface LoDashExplicitObjectWrapperBase { - /** - * @see _.values - */ - values(): LoDashExplicitArrayWrapper; + values(): LoDashExplicitWrapper; } //_.valuesIn @@ -17980,26 +14761,36 @@ declare namespace _ { * @param object The object to query. * @return Returns the array of property values. */ - valuesIn(object?: Dictionary): T[]; + valuesIn(object: Dictionary|NumericDictionary|List | null | undefined): T[]; /** * @see _.valuesIn */ - valuesIn(object?: any): T[]; + valuesIn(object: T | null | undefined): Array; } - interface LoDashImplicitObjectWrapperBase { + interface LoDashImplicitWrapper { /** * @see _.valuesIn */ - valuesIn(): LoDashImplicitArrayWrapper; + valuesIn(this: LoDashImplicitWrapper | NumericDictionary | List | null | undefined>): LoDashImplicitWrapper; + + /** + * @see _.valuesIn + */ + valuesIn(this: LoDashImplicitWrapper): LoDashImplicitWrapper>; } - interface LoDashExplicitObjectWrapperBase { + interface LoDashExplicitWrapper { /** * @see _.valuesIn */ - valuesIn(): LoDashExplicitArrayWrapper; + valuesIn(this: LoDashExplicitWrapper | NumericDictionary | List | null | undefined>): LoDashExplicitWrapper; + + /** + * @see _.valuesIn + */ + valuesIn(this: LoDashExplicitWrapper): LoDashExplicitWrapper>; } /********** @@ -18017,14 +14808,14 @@ declare namespace _ { camelCase(string?: string): string; } - interface LoDashImplicitWrapper { + interface LoDashImplicitWrapper { /** * @see _.camelCase */ camelCase(): string; } - interface LoDashExplicitWrapper { + interface LoDashExplicitWrapper { /** * @see _.camelCase */ @@ -18042,14 +14833,14 @@ declare namespace _ { capitalize(string?: string): string; } - interface LoDashImplicitWrapper { + interface LoDashImplicitWrapper { /** * @see _.capitalize */ capitalize(): string; } - interface LoDashExplicitWrapper { + interface LoDashExplicitWrapper { /** * @see _.capitalize */ @@ -18068,14 +14859,14 @@ declare namespace _ { deburr(string?: string): string; } - interface LoDashImplicitWrapper { + interface LoDashImplicitWrapper { /** * @see _.deburr */ deburr(): string; } - interface LoDashExplicitWrapper { + interface LoDashExplicitWrapper { /** * @see _.deburr */ @@ -18099,7 +14890,7 @@ declare namespace _ { ): boolean; } - interface LoDashImplicitWrapper { + interface LoDashImplicitWrapper { /** * @see _.endsWith */ @@ -18109,7 +14900,7 @@ declare namespace _ { ): boolean; } - interface LoDashExplicitWrapper { + interface LoDashExplicitWrapper { /** * @see _.endsWith */ @@ -18141,14 +14932,14 @@ declare namespace _ { escape(string?: string): string; } - interface LoDashImplicitWrapper { + interface LoDashImplicitWrapper { /** * @see _.escape */ escape(): string; } - interface LoDashExplicitWrapper { + interface LoDashExplicitWrapper { /** * @see _.escape */ @@ -18167,14 +14958,14 @@ declare namespace _ { escapeRegExp(string?: string): string; } - interface LoDashImplicitWrapper { + interface LoDashImplicitWrapper { /** * @see _.escapeRegExp */ escapeRegExp(): string; } - interface LoDashExplicitWrapper { + interface LoDashExplicitWrapper { /** * @see _.escapeRegExp */ @@ -18192,14 +14983,14 @@ declare namespace _ { kebabCase(string?: string): string; } - interface LoDashImplicitWrapper { + interface LoDashImplicitWrapper { /** * @see _.kebabCase */ kebabCase(): string; } - interface LoDashExplicitWrapper { + interface LoDashExplicitWrapper { /** * @see _.kebabCase */ @@ -18217,14 +15008,14 @@ declare namespace _ { lowerCase(string?: string): string; } - interface LoDashImplicitWrapper { + interface LoDashImplicitWrapper { /** * @see _.lowerCase */ lowerCase(): string; } - interface LoDashExplicitWrapper { + interface LoDashExplicitWrapper { /** * @see _.lowerCase */ @@ -18242,14 +15033,14 @@ declare namespace _ { lowerFirst(string?: string): string; } - interface LoDashImplicitWrapper { + interface LoDashImplicitWrapper { /** * @see _.lowerFirst */ lowerFirst(): string; } - interface LoDashExplicitWrapper { + interface LoDashExplicitWrapper { /** * @see _.lowerFirst */ @@ -18274,7 +15065,7 @@ declare namespace _ { ): string; } - interface LoDashImplicitWrapper { + interface LoDashImplicitWrapper { /** * @see _.pad */ @@ -18284,7 +15075,7 @@ declare namespace _ { ): string; } - interface LoDashExplicitWrapper { + interface LoDashExplicitWrapper { /** * @see _.pad */ @@ -18312,7 +15103,7 @@ declare namespace _ { ): string; } - interface LoDashImplicitWrapper { + interface LoDashImplicitWrapper { /** * @see _.padEnd */ @@ -18322,7 +15113,7 @@ declare namespace _ { ): string; } - interface LoDashExplicitWrapper { + interface LoDashExplicitWrapper { /** * @see _.padEnd */ @@ -18350,7 +15141,7 @@ declare namespace _ { ): string; } - interface LoDashImplicitWrapper { + interface LoDashImplicitWrapper { /** * @see _.padStart */ @@ -18360,7 +15151,7 @@ declare namespace _ { ): string; } - interface LoDashExplicitWrapper { + interface LoDashExplicitWrapper { /** * @see _.padStart */ @@ -18388,14 +15179,14 @@ declare namespace _ { ): number; } - interface LoDashImplicitWrapper { + interface LoDashImplicitWrapper { /** * @see _.parseInt */ parseInt(radix?: number): number; } - interface LoDashExplicitWrapper { + interface LoDashExplicitWrapper { /** * @see _.parseInt */ @@ -18417,20 +15208,22 @@ declare namespace _ { ): string; } - interface LoDashImplicitWrapper { + interface LoDashImplicitWrapper { /** * @see _.repeat */ repeat(n?: number): string; } - interface LoDashExplicitWrapper { + interface LoDashExplicitWrapper { /** * @see _.repeat */ repeat(n?: number): LoDashExplicitWrapper; } + type ReplaceFunction = (match: string, ...args: any[]) => string; + //_.replace interface LoDashStatic { /** @@ -18445,84 +15238,50 @@ declare namespace _ { */ replace( string: string, + pattern: RegExp | string, + replacement: ReplaceFunction | string + ): string; + + /** + * @see _.replace + */ + replace( + pattern: RegExp | string, + replacement: ReplaceFunction | string + ): string; + } + + interface LoDashImplicitWrapper { + /** + * @see _.replace + */ + replace( pattern: RegExp|string, - replacement: Function|string + replacement: ReplaceFunction | string ): string; /** * @see _.replace */ replace( - pattern?: RegExp|string, - replacement?: Function|string + replacement: ReplaceFunction | string ): string; } - interface LoDashImplicitWrapper { + interface LoDashExplicitWrapper { /** * @see _.replace */ replace( - pattern?: RegExp|string, - replacement?: Function|string - ): string; - - /** - * @see _.replace - */ - replace( - replacement?: Function|string - ): string; - } - - interface LoDashImplicitObjectWrapper { - /** - * @see _.replace - */ - replace( - pattern?: RegExp|string, - replacement?: Function|string - ): string; - - /** - * @see _.replace - */ - replace( - replacement?: Function|string - ): string; - } - - interface LoDashExplicitWrapper { - /** - * @see _.replace - */ - replace( - pattern?: RegExp|string, - replacement?: Function|string + pattern: RegExp | string, + replacement: ReplaceFunction | string ): LoDashExplicitWrapper; /** * @see _.replace */ replace( - replacement?: Function|string - ): LoDashExplicitWrapper; - } - - interface LoDashExplicitObjectWrapper { - /** - * @see _.replace - */ - replace( - pattern?: RegExp|string, - replacement?: Function|string - ): LoDashExplicitWrapper; - - /** - * @see _.replace - */ - replace( - replacement?: Function|string + replacement: ReplaceFunction | string ): LoDashExplicitWrapper; } @@ -18537,14 +15296,14 @@ declare namespace _ { snakeCase(string?: string): string; } - interface LoDashImplicitWrapper { + interface LoDashImplicitWrapper { /** * @see _.snakeCase */ snakeCase(): string; } - interface LoDashExplicitWrapper { + interface LoDashExplicitWrapper { /** * @see _.snakeCase */ @@ -18570,24 +15329,24 @@ declare namespace _ { ): string[]; } - interface LoDashImplicitWrapper { + interface LoDashImplicitWrapper { /** * @see _.split */ split( separator?: RegExp|string, limit?: number - ): LoDashImplicitArrayWrapper; + ): LoDashImplicitWrapper; } - interface LoDashExplicitWrapper { + interface LoDashExplicitWrapper { /** * @see _.split */ split( separator?: RegExp|string, limit?: number - ): LoDashExplicitArrayWrapper; + ): LoDashExplicitWrapper; } //_.startCase @@ -18601,14 +15360,14 @@ declare namespace _ { startCase(string?: string): string; } - interface LoDashImplicitWrapper { + interface LoDashImplicitWrapper { /** * @see _.startCase */ startCase(): string; } - interface LoDashExplicitWrapper { + interface LoDashExplicitWrapper { /** * @see _.startCase */ @@ -18632,7 +15391,7 @@ declare namespace _ { ): boolean; } - interface LoDashImplicitWrapper { + interface LoDashImplicitWrapper { /** * @see _.startsWith */ @@ -18642,7 +15401,7 @@ declare namespace _ { ): boolean; } - interface LoDashExplicitWrapper { + interface LoDashExplicitWrapper { /** * @see _.startsWith */ @@ -18661,7 +15420,7 @@ declare namespace _ { } interface TemplateExecutor { - (data?: Object): string; + (data?: object): string; source: string; } @@ -18693,23 +15452,23 @@ declare namespace _ { * @return Returns the compiled template function. */ template( - string: string, + string?: string, options?: TemplateOptions ): TemplateExecutor; } - interface LoDashImplicitWrapper { + interface LoDashImplicitWrapper { /** * @see _.template */ template(options?: TemplateOptions): TemplateExecutor; } - interface LoDashExplicitWrapper { + interface LoDashExplicitWrapper { /** * @see _.template */ - template(options?: TemplateOptions): LoDashExplicitObjectWrapper; + template(options?: TemplateOptions): LoDashExplicitWrapper; } //_.toLower @@ -18723,14 +15482,14 @@ declare namespace _ { toLower(string?: string): string; } - interface LoDashImplicitWrapper { + interface LoDashImplicitWrapper { /** * @see _.toLower */ toLower(): string; } - interface LoDashExplicitWrapper { + interface LoDashExplicitWrapper { /** * @see _.toLower */ @@ -18748,14 +15507,14 @@ declare namespace _ { toUpper(string?: string): string; } - interface LoDashImplicitWrapper { + interface LoDashImplicitWrapper { /** * @see _.toUpper */ toUpper(): string; } - interface LoDashExplicitWrapper { + interface LoDashExplicitWrapper { /** * @see _.toUpper */ @@ -18777,14 +15536,14 @@ declare namespace _ { ): string; } - interface LoDashImplicitWrapper { + interface LoDashImplicitWrapper { /** * @see _.trim */ trim(chars?: string): string; } - interface LoDashExplicitWrapper { + interface LoDashExplicitWrapper { /** * @see _.trim */ @@ -18806,14 +15565,14 @@ declare namespace _ { ): string; } - interface LoDashImplicitWrapper { + interface LoDashImplicitWrapper { /** * @see _.trimEnd */ trimEnd(chars?: string): string; } - interface LoDashExplicitWrapper { + interface LoDashExplicitWrapper { /** * @see _.trimEnd */ @@ -18835,14 +15594,14 @@ declare namespace _ { ): string; } - interface LoDashImplicitWrapper { + interface LoDashImplicitWrapper { /** * @see _.trimStart */ trimStart(chars?: string): string; } - interface LoDashExplicitWrapper { + interface LoDashExplicitWrapper { /** * @see _.trimStart */ @@ -18874,14 +15633,14 @@ declare namespace _ { ): string; } - interface LoDashImplicitWrapper { + interface LoDashImplicitWrapper { /** * @see _.truncate */ truncate(options?: TruncateOptions): string; } - interface LoDashExplicitWrapper { + interface LoDashExplicitWrapper { /** * @see _.truncate */ @@ -18903,14 +15662,14 @@ declare namespace _ { unescape(string?: string): string; } - interface LoDashImplicitWrapper { + interface LoDashImplicitWrapper { /** * @see _.unescape */ unescape(): string; } - interface LoDashExplicitWrapper { + interface LoDashExplicitWrapper { /** * @see _.unescape */ @@ -18928,14 +15687,14 @@ declare namespace _ { upperCase(string?: string): string; } - interface LoDashImplicitWrapper { + interface LoDashImplicitWrapper { /** * @see _.upperCase */ upperCase(): string; } - interface LoDashExplicitWrapper { + interface LoDashExplicitWrapper { /** * @see _.upperCase */ @@ -18953,14 +15712,14 @@ declare namespace _ { upperFirst(string?: string): string; } - interface LoDashImplicitWrapper { + interface LoDashImplicitWrapper { /** * @see _.upperFirst */ upperFirst(): string; } - interface LoDashExplicitWrapper { + interface LoDashExplicitWrapper { /** * @see _.upperFirst */ @@ -18982,18 +15741,18 @@ declare namespace _ { ): string[]; } - interface LoDashImplicitWrapper { + interface LoDashImplicitWrapper { /** * @see _.words */ words(pattern?: string|RegExp): string[]; } - interface LoDashExplicitWrapper { + interface LoDashExplicitWrapper { /** * @see _.words */ - words(pattern?: string|RegExp): LoDashExplicitArrayWrapper; + words(pattern?: string|RegExp): LoDashExplicitWrapper; } /*********** @@ -19012,18 +15771,18 @@ declare namespace _ { attempt(func: (...args: any[]) => TResult, ...args: any[]): TResult|Error; } - interface LoDashImplicitObjectWrapper { + interface LoDashImplicitWrapper { /** * @see _.attempt */ attempt(...args: any[]): TResult|Error; } - interface LoDashExplicitObjectWrapper { + interface LoDashExplicitWrapper { /** * @see _.attempt */ - attempt(...args: any[]): LoDashExplicitObjectWrapper; + attempt(...args: any[]): LoDashExplicitWrapper; } //_.constant @@ -19037,18 +15796,18 @@ declare namespace _ { constant(value: T): () => T; } - interface LoDashImplicitWrapperBase { + interface LoDashImplicitWrapper { /** * @see _.constant */ - constant(): LoDashImplicitObjectWrapper<() => TResult>; + constant(): LoDashImplicitWrapper<() => TValue>; } - interface LoDashExplicitWrapperBase { + interface LoDashExplicitWrapper { /** * @see _.constant */ - constant(): LoDashExplicitObjectWrapper<() => TResult>; + constant(): LoDashExplicitWrapper<() => TValue>; } //_.defaultTo @@ -19063,20 +15822,44 @@ declare namespace _ { * @returns Returns the resolved value. */ defaultTo(value: T | null | undefined, defaultValue: T): T; - } - interface LoDashImplicitWrapperBase { /** * @see _.defaultTo */ - defaultTo(value: TResult): LoDashImplicitObjectWrapper; + defaultTo( + value: T | null | undefined, + defaultValue: TDefault + ): T | TDefault; } - interface LoDashExplicitWrapperBase { + interface LoDashImplicitWrapper { /** * @see _.defaultTo */ - defaultTo(value: TResult): LoDashExplicitObjectWrapper; + defaultTo(this: LoDashImplicitWrapper, defaultValue: T): T; + + /** + * @see _.defaultTo + */ + defaultTo( + this: LoDashImplicitWrapper, + defaultValue: TDefault + ): T | TDefault; + } + + interface LoDashExplicitWrapper { + /** + * @see _.defaultTo + */ + defaultTo(this: LoDashExplicitWrapper, defaultValue: T): LoDashExplicitWrapper; + + /** + * @see _.defaultTo + */ + defaultTo( + this: LoDashExplicitWrapper, + defaultValue: TDefault + ): LoDashExplicitWrapper; } //_.identity @@ -19095,46 +15878,18 @@ declare namespace _ { identity(): undefined; } - interface LoDashImplicitWrapper { + interface LoDashImplicitWrapper { /** * @see _.identity */ - identity(): T; + identity(): TValue; } - interface LoDashImplicitArrayWrapperBase { + interface LoDashExplicitWrapper { /** * @see _.identity */ - identity(): TArray; - } - - interface LoDashImplicitObjectWrapperBase { - /** - * @see _.identity - */ - identity(): TObject; - } - - interface LoDashExplicitWrapper { - /** - * @see _.identity - */ - identity(): LoDashExplicitWrapper; - } - - interface LoDashExplicitArrayWrapperBase { - /** - * @see _.identity - */ - identity(): TWrapper; - } - - interface LoDashExplicitObjectWrapperBase { - /** - * @see _.identity - */ - identity(): TWrapper; + identity(): this; } //_.iteratee @@ -19168,66 +15923,32 @@ declare namespace _ { * _.filter(users, 'age > 36'); * // => [{ 'user': 'fred', 'age': 40 }] */ - iteratee( - func: TFunction + iteratee any>( + func: TFunction | string | object ): TFunction; /** * @see _.iteratee */ - iteratee( - func: string - ): (object: any) => TResult; - - /** - * @see _.iteratee - */ - iteratee( - func: Object - ): (object: any) => boolean; - - /** - * @see _.iteratee - */ - iteratee(): (value: TResult) => TResult; + iteratee(): typeof _.identity; // tslint:disable-line:no-unnecessary-qualifier } - interface LoDashImplicitWrapper { + interface LoDashImplicitWrapper { /** * @see _.iteratee */ - iteratee(): LoDashImplicitObjectWrapper<(object: any) => TResult>; + iteratee any>( + this: LoDashImplicitWrapper + ): LoDashImplicitWrapper; } - interface LoDashImplicitObjectWrapper { + interface LoDashExplicitWrapper { /** * @see _.iteratee */ - iteratee(): LoDashImplicitObjectWrapper<(object: any) => boolean>; - - /** - * @see _.iteratee - */ - iteratee(): LoDashImplicitObjectWrapper<(...args: any[]) => TResult>; - } - - interface LoDashExplicitWrapper { - /** - * @see _.iteratee - */ - iteratee(): LoDashExplicitObjectWrapper<(object: any) => TResult>; - } - - interface LoDashExplicitObjectWrapper { - /** - * @see _.iteratee - */ - iteratee(): LoDashExplicitObjectWrapper<(object: any) => boolean>; - - /** - * @see _.iteratee - */ - iteratee(): LoDashExplicitObjectWrapper<(...args: any[]) => TResult>; + iteratee any>( + this: LoDashExplicitWrapper + ): LoDashExplicitWrapper; } //_.matches @@ -19251,18 +15972,18 @@ declare namespace _ { matches(source: T): (value: V) => boolean; } - interface LoDashImplicitWrapperBase { + interface LoDashImplicitWrapper { /** * @see _.matches */ - matches(): LoDashImplicitObjectWrapper<(value: V) => boolean>; + matches(): LoDashImplicitWrapper<(value: V) => boolean>; } - interface LoDashExplicitWrapperBase { + interface LoDashExplicitWrapper { /** * @see _.matches */ - matches(): LoDashExplicitObjectWrapper<(value: V) => boolean>; + matches(): LoDashExplicitWrapper<(value: V) => boolean>; } //_.matchesProperty @@ -19291,36 +16012,36 @@ declare namespace _ { ): (value: V) => boolean; } - interface LoDashImplicitWrapperBase { + interface LoDashImplicitWrapper { /** * @see _.matchesProperty */ matchesProperty( srcValue: SrcValue - ): LoDashImplicitObjectWrapper<(value: any) => boolean>; + ): LoDashImplicitWrapper<(value: any) => boolean>; /** * @see _.matchesProperty */ matchesProperty( srcValue: SrcValue - ): LoDashImplicitObjectWrapper<(value: Value) => boolean>; + ): LoDashImplicitWrapper<(value: Value) => boolean>; } - interface LoDashExplicitWrapperBase { + interface LoDashExplicitWrapper { /** * @see _.matchesProperty */ matchesProperty( srcValue: SrcValue - ): LoDashExplicitObjectWrapper<(value: any) => boolean>; + ): LoDashExplicitWrapper<(value: any) => boolean>; /** * @see _.matchesProperty */ matchesProperty( srcValue: SrcValue - ): LoDashExplicitObjectWrapper<(value: Value) => boolean>; + ): LoDashExplicitWrapper<(value: Value) => boolean>; } //_.method @@ -19333,66 +16054,24 @@ declare namespace _ { * @param args The arguments to invoke the method with. * @return Returns the new function. */ - method( + method( path: string|StringRepresentable[], ...args: any[] - ): (object: TObject) => TResult; - - /** - * @see _.method - */ - method( - path: string|StringRepresentable[], - ...args: any[] - ): (object: any) => TResult; + ): (object: any) => any; } - interface LoDashImplicitWrapper { + interface LoDashImplicitWrapper { /** * @see _.method */ - method(...args: any[]): LoDashImplicitObjectWrapper<(object: TObject) => TResult>; - - /** - * @see _.method - */ - method(...args: any[]): LoDashImplicitObjectWrapper<(object: any) => TResult>; + method(...args: any[]): LoDashImplicitWrapper<(object: any) => any>; } - interface LoDashImplicitArrayWrapper { + interface LoDashExplicitWrapper { /** * @see _.method */ - method(...args: any[]): LoDashImplicitObjectWrapper<(object: TObject) => TResult>; - - /** - * @see _.method - */ - method(...args: any[]): LoDashImplicitObjectWrapper<(object: any) => TResult>; - } - - interface LoDashExplicitWrapper { - /** - * @see _.method - */ - method(...args: any[]): LoDashExplicitObjectWrapper<(object: TObject) => TResult>; - - /** - * @see _.method - */ - method(...args: any[]): LoDashExplicitObjectWrapper<(object: any) => TResult>; - } - - interface LoDashExplicitArrayWrapper { - /** - * @see _.method - */ - method(...args: any[]): LoDashExplicitObjectWrapper<(object: TObject) => TResult>; - - /** - * @see _.method - */ - method(...args: any[]): LoDashExplicitObjectWrapper<(object: any) => TResult>; + method(...args: any[]): LoDashExplicitWrapper<(object: any) => any>; } //_.methodOf @@ -19405,36 +16084,28 @@ declare namespace _ { * @param args The arguments to invoke the method with. * @return Returns the new function. */ - methodOf( - object: TObject, + methodOf( + object: object, ...args: any[] - ): (path: Many) => TResult; - - /** - * @see _.methodOf - */ - methodOf( - object: {}, - ...args: any[] - ): (path: Many) => TResult; + ): (path: Many) => any; } - interface LoDashImplicitObjectWrapper { + interface LoDashImplicitWrapper { /** * @see _.methodOf */ - methodOf( + methodOf( ...args: any[] - ): LoDashImplicitObjectWrapper<(path: Many) => TResult>; + ): LoDashImplicitWrapper<(path: Many) => any>; } - interface LoDashExplicitObjectWrapper { + interface LoDashExplicitWrapper { /** * @see _.methodOf */ - methodOf( + methodOf( ...args: any[] - ): LoDashExplicitObjectWrapper<(path: Many) => TResult>; + ): LoDashExplicitWrapper<(path: Many) => any>; } //_.mixin @@ -19456,53 +16127,53 @@ declare namespace _ { * @param options.chain Specify whether the functions added are chainable. * @return Returns object. */ - mixin( + mixin( object: TObject, - source: Dictionary, + source: Dictionary<(...args: any[]) => any>, options?: MixinOptions - ): TResult; + ): TObject; /** * @see _.mixin */ mixin( - source: Dictionary, + source: Dictionary<(...args: any[]) => any>, options?: MixinOptions - ): TResult; + ): LoDashStatic; } - interface LoDashImplicitObjectWrapper { + interface LoDashImplicitWrapper { /** * @see _.mixin */ - mixin( - source: Dictionary, + mixin( + source: Dictionary<(...args: any[]) => any>, options?: MixinOptions - ): LoDashImplicitObjectWrapper; + ): this; /** * @see _.mixin */ - mixin( + mixin( options?: MixinOptions - ): LoDashImplicitObjectWrapper; + ): LoDashImplicitWrapper; } - interface LoDashExplicitObjectWrapper { + interface LoDashExplicitWrapper { /** * @see _.mixin */ - mixin( - source: Dictionary, + mixin( + source: Dictionary<(...args: any[]) => any>, options?: MixinOptions - ): LoDashExplicitObjectWrapper; + ): this; /** * @see _.mixin */ - mixin( + mixin( options?: MixinOptions - ): LoDashExplicitObjectWrapper; + ): LoDashExplicitWrapper; } //_.noConflict @@ -19515,18 +16186,18 @@ declare namespace _ { noConflict(): typeof _; } - interface LoDashImplicitWrapperBase { + interface LoDashImplicitWrapper { /** * @see _.noConflict */ noConflict(): typeof _; } - interface LoDashExplicitWrapperBase { + interface LoDashExplicitWrapper { /** * @see _.noConflict */ - noConflict(): LoDashExplicitObjectWrapper; + noConflict(): LoDashExplicitWrapper; } //_.noop @@ -19539,18 +16210,18 @@ declare namespace _ { noop(...args: any[]): void; } - interface LoDashImplicitWrapperBase { + interface LoDashImplicitWrapper { /** * @see _.noop */ noop(...args: any[]): void; } - interface LoDashExplicitWrapperBase { + interface LoDashExplicitWrapper { /** * @see _.noop */ - noop(...args: any[]): _.LoDashExplicitWrapper; + noop(...args: any[]): LoDashExplicitWrapper; } //_.nthArg @@ -19561,21 +16232,21 @@ declare namespace _ { * @param n The index of the argument to return. * @return Returns the new function. */ - nthArg(n?: number): TResult; + nthArg(n?: number): (...args: any[]) => any; } - interface LoDashImplicitWrapper { + interface LoDashImplicitWrapper { /** * @see _.nthArg */ - nthArg(): LoDashImplicitObjectWrapper; + nthArg(): LoDashImplicitWrapper<(...args: any[]) => any>; } - interface LoDashExplicitWrapper { + interface LoDashExplicitWrapper { /** * @see _.nthArg */ - nthArg(): LoDashExplicitObjectWrapper; + nthArg(): LoDashExplicitWrapper<(...args: any[]) => any>; } //_.over @@ -19587,35 +16258,27 @@ declare namespace _ { * @param iteratees The iteratees to invoke. * @return Returns the new function. */ - over(...iteratees: Array>): (...args: any[]) => TResult[]; + over(...iteratees: Array TResult>>): (...args: any[]) => TResult[]; } - interface LoDashImplicitArrayWrapper { + interface LoDashImplicitWrapper { /** * @see _.over */ - over(...iteratees: Array>): LoDashImplicitObjectWrapper<(...args: any[]) => TResult[]>; + over( + this: LoDashImplicitWrapper TResult>>, + ...iteratees: Array TResult>> + ): LoDashImplicitWrapper<(...args: any[]) => TResult[]>; } - interface LoDashImplicitObjectWrapper { + interface LoDashExplicitWrapper { /** * @see _.over */ - over(...iteratees: Array>): LoDashImplicitObjectWrapper<(...args: any[]) => TResult[]>; - } - - interface LoDashExplicitArrayWrapper { - /** - * @see _.over - */ - over(...iteratees: Array>): LoDashExplicitObjectWrapper<(...args: any[]) => TResult[]>; - } - - interface LoDashExplicitObjectWrapper { - /** - * @see _.over - */ - over(...iteratees: Array>): LoDashExplicitObjectWrapper<(...args: any[]) => TResult[]>; + over( + this: LoDashExplicitWrapper TResult>>, + ...iteratees: Array TResult>> + ): LoDashExplicitWrapper<(...args: any[]) => TResult[]>; } //_.overEvery @@ -19627,35 +16290,21 @@ declare namespace _ { * @param predicates The predicates to check. * @return Returns the new function. */ - overEvery(...predicates: Array>): (...args: any[]) => boolean; + overEvery(...predicates: Array any>>): (...args: any[]) => boolean; } - interface LoDashImplicitArrayWrapper { + interface LoDashImplicitWrapper { /** * @see _.overEvery */ - overEvery(...predicates: Array>): LoDashImplicitObjectWrapper<(...args: any[]) => boolean>; + overEvery(...predicates: Array any>>): LoDashImplicitWrapper<(...args: any[]) => boolean>; } - interface LoDashImplicitObjectWrapper { + interface LoDashExplicitWrapper { /** * @see _.overEvery */ - overEvery(...predicates: Array>): LoDashImplicitObjectWrapper<(...args: any[]) => boolean>; - } - - interface LoDashExplicitArrayWrapper { - /** - * @see _.overEvery - */ - overEvery(...predicates: Array>): LoDashExplicitObjectWrapper<(...args: any[]) => boolean>; - } - - interface LoDashExplicitObjectWrapper { - /** - * @see _.overEvery - */ - overEvery(...predicates: Array>): LoDashExplicitObjectWrapper<(...args: any[]) => boolean>; + overEvery(...predicates: Array any>>): LoDashExplicitWrapper<(...args: any[]) => boolean>; } //_.overSome @@ -19667,35 +16316,21 @@ declare namespace _ { * @param predicates The predicates to check. * @return Returns the new function. */ - overSome(...predicates: Array>): (...args: any[]) => boolean; + overSome(...predicates: Array any>>): (...args: any[]) => boolean; } - interface LoDashImplicitArrayWrapper { + interface LoDashImplicitWrapper { /** * @see _.overSome */ - overSome(...predicates: Array>): LoDashImplicitObjectWrapper<(...args: any[]) => boolean>; + overSome(...predicates: Array any>>): LoDashImplicitWrapper<(...args: any[]) => boolean>; } - interface LoDashImplicitObjectWrapper { + interface LoDashExplicitWrapper { /** * @see _.overSome */ - overSome(...predicates: Array>): LoDashImplicitObjectWrapper<(...args: any[]) => boolean>; - } - - interface LoDashExplicitArrayWrapper { - /** - * @see _.overSome - */ - overSome(...predicates: Array>): LoDashExplicitObjectWrapper<(...args: any[]) => boolean>; - } - - interface LoDashExplicitObjectWrapper { - /** - * @see _.overSome - */ - overSome(...predicates: Array>): LoDashExplicitObjectWrapper<(...args: any[]) => boolean>; + overSome(...predicates: Array any>>): LoDashExplicitWrapper<(...args: any[]) => boolean>; } //_.property @@ -19709,32 +16344,18 @@ declare namespace _ { property(path: Many): (obj: TObj) => TResult; } - interface LoDashImplicitWrapper { + interface LoDashImplicitWrapper { /** * @see _.property */ - property(): LoDashImplicitObjectWrapper<(obj: TObj) => TResult>; + property(): LoDashImplicitWrapper<(obj: TObj) => TResult>; } - interface LoDashImplicitArrayWrapper { + interface LoDashExplicitWrapper { /** * @see _.property */ - property(): LoDashImplicitObjectWrapper<(obj: TObj) => TResult>; - } - - interface LoDashExplicitWrapper { - /** - * @see _.property - */ - property(): LoDashExplicitObjectWrapper<(obj: TObj) => TResult>; - } - - interface LoDashExplicitArrayWrapper { - /** - * @see _.property - */ - property(): LoDashExplicitObjectWrapper<(obj: TObj) => TResult>; + property(): LoDashExplicitWrapper<(obj: TObj) => TResult>; } //_.propertyOf @@ -19749,18 +16370,18 @@ declare namespace _ { propertyOf(object: T): (path: Many) => any; } - interface LoDashImplicitObjectWrapper { + interface LoDashImplicitWrapper { /** * @see _.propertyOf */ - propertyOf(): LoDashImplicitObjectWrapper<(path: Many) => any>; + propertyOf(): LoDashImplicitWrapper<(path: Many) => any>; } - interface LoDashExplicitObjectWrapper { + interface LoDashExplicitWrapper { /** * @see _.propertyOf */ - propertyOf(): LoDashExplicitObjectWrapper<(path: Many) => any>; + propertyOf(): LoDashExplicitWrapper<(path: Many) => any>; } //_.range @@ -19777,37 +16398,29 @@ declare namespace _ { */ range( start: number, - end: number, - step?: number - ): number[]; - - /** - * @see _.range - */ - range( - end: number, + end?: number, step?: number ): number[]; } - interface LoDashImplicitWrapper { + interface LoDashImplicitWrapper { /** * @see _.range */ range( end?: number, step?: number - ): LoDashImplicitArrayWrapper; + ): LoDashImplicitWrapper; } - interface LoDashExplicitWrapper { + interface LoDashExplicitWrapper { /** * @see _.range */ range( end?: number, step?: number - ): LoDashExplicitArrayWrapper; + ): LoDashExplicitWrapper; } //_.rangeRight @@ -19848,37 +16461,29 @@ declare namespace _ { */ rangeRight( start: number, - end: number, - step?: number - ): number[]; - - /** - * @see _.rangeRight - */ - rangeRight( - end: number, + end?: number, step?: number ): number[]; } - interface LoDashImplicitWrapper { + interface LoDashImplicitWrapper { /** * @see _.rangeRight */ rangeRight( end?: number, step?: number - ): LoDashImplicitArrayWrapper; + ): LoDashImplicitWrapper; } - interface LoDashExplicitWrapper { + interface LoDashExplicitWrapper { /** * @see _.rangeRight */ rangeRight( end?: number, step?: number - ): LoDashExplicitArrayWrapper; + ): LoDashExplicitWrapper; } //_.runInContext @@ -19889,10 +16494,10 @@ declare namespace _ { * @param context The context object. * @return Returns a new lodash function. */ - runInContext(context?: Object): typeof _; + runInContext(context?: object): typeof _; } - interface LoDashImplicitObjectWrapper { + interface LoDashImplicitWrapper { /** * @see _.runInContext */ @@ -19909,18 +16514,18 @@ declare namespace _ { stubArray(): any[]; } - interface LoDashImplicitWrapperBase { + interface LoDashImplicitWrapper { /** * @see _.stubArray */ stubArray(): any[]; } - interface LoDashExplicitWrapperBase { + interface LoDashExplicitWrapper { /** * @see _.stubArray */ - stubArray(): _.LoDashExplicitArrayWrapper; + stubArray(): LoDashExplicitWrapper; } // _.stubFalse @@ -19933,18 +16538,18 @@ declare namespace _ { stubFalse(): boolean; } - interface LoDashImplicitWrapperBase { + interface LoDashImplicitWrapper { /** * @see _.stubFalse */ stubFalse(): boolean; } - interface LoDashExplicitWrapperBase { + interface LoDashExplicitWrapper { /** * @see _.stubFalse */ - stubFalse(): _.LoDashExplicitWrapper; + stubFalse(): LoDashExplicitWrapper; } interface LoDashStatic { @@ -19953,21 +16558,21 @@ declare namespace _ { * * @returns Returns the new empty object. */ - stubObject(): Object; + stubObject(): any; } - interface LoDashImplicitWrapperBase { + interface LoDashImplicitWrapper { /** * @see _.stubObject */ - stubObject(): Object; + stubObject(): any; } - interface LoDashExplicitWrapperBase { + interface LoDashExplicitWrapper { /** * @see _.stubObject */ - stubObject(): _.LoDashExplicitObjectWrapper; + stubObject(): LoDashExplicitWrapper; } interface LoDashStatic { @@ -19979,18 +16584,18 @@ declare namespace _ { stubString(): string; } - interface LoDashImplicitWrapperBase { + interface LoDashImplicitWrapper { /** * @see _.stubString */ stubString(): string; } - interface LoDashExplicitWrapperBase { + interface LoDashExplicitWrapper { /** * @see _.stubString */ - stubString(): _.LoDashExplicitWrapper; + stubString(): LoDashExplicitWrapper; } interface LoDashStatic { @@ -20002,18 +16607,18 @@ declare namespace _ { stubTrue(): boolean; } - interface LoDashImplicitWrapperBase { + interface LoDashImplicitWrapper { /** * @see _.stubTrue */ stubTrue(): boolean; } - interface LoDashExplicitWrapperBase { + interface LoDashExplicitWrapper { /** * @see _.stubTrue */ - stubTrue(): _.LoDashExplicitWrapper; + stubTrue(): LoDashExplicitWrapper; } //_.times @@ -20037,7 +16642,7 @@ declare namespace _ { times(n: number): number[]; } - interface LoDashImplicitWrapper { + interface LoDashImplicitWrapper { /** * @see _.times */ @@ -20051,18 +16656,18 @@ declare namespace _ { times(): number[]; } - interface LoDashExplicitWrapper { + interface LoDashExplicitWrapper { /** * @see _.times */ times( iteratee: (num: number) => TResult - ): LoDashExplicitArrayWrapper; + ): LoDashExplicitWrapper; /** * @see _.times */ - times(): LoDashExplicitArrayWrapper; + times(): LoDashExplicitWrapper; } //_.toPath @@ -20095,14 +16700,14 @@ declare namespace _ { toPath(value: any): string[]; } - interface LoDashImplicitWrapperBase { + interface LoDashImplicitWrapper { /** * @see _.toPath */ toPath(): LoDashImplicitWrapper; } - interface LoDashExplicitWrapperBase { + interface LoDashExplicitWrapper { /** * @see _.toPath */ @@ -20120,41 +16725,53 @@ declare namespace _ { uniqueId(prefix?: string): string; } - interface LoDashImplicitWrapper { + interface LoDashImplicitWrapper { /** * @see _.uniqueId */ uniqueId(): string; } - interface LoDashExplicitWrapper { + interface LoDashExplicitWrapper { /** * @see _.uniqueId */ uniqueId(): LoDashExplicitWrapper; } + type ArrayIterator = (value: T, index: number, collection: T[]) => TResult; type ListIterator = (value: T, index: number, collection: List) => TResult; - + type ListIteratee = ListIterator | string | [string, any] | PartialDeep; type ListIteratorTypeGuard = (value: T, index: number, collection: List) => value is S; - type DictionaryIterator = (value: T, key: string, collection: Dictionary) => TResult; + // Note: key should be string, not keyof T, because the actual object may contain extra properties that were not specified in the type. + type ObjectIterator = (value: TObject[keyof TObject], key: string, collection: TObject) => TResult; + type ObjectIteratee = ObjectIterator | string | [string, any] | PartialDeep; + type ObjectIteratorTypeGuard = (value: TObject[keyof TObject], key: string, collection: TObject) => value is S; - type DictionaryIteratorTypeGuard = (value: T, key: string, collection: Dictionary) => value is S; + type DictionaryIterator = ObjectIterator, TResult>; + type DictionaryIteratee = ObjectIteratee>; + type DictionaryIteratorTypeGuard = ObjectIteratorTypeGuard, S>; - type NumericDictionaryIterator = (value: T, key: number, collection: Dictionary) => TResult; - - type ObjectIterator = (element: T, key: string, collection: any) => TResult; + type NumericDictionaryIterator = (value: T, key: number, collection: NumericDictionary) => TResult; + type NumericDictionaryIteratee = NumericDictionaryIterator | string | [string, any] | PartialDeep; type StringIterator = (char: string, index: number, string: string) => TResult; type MemoVoidIterator = (prev: TResult, curr: T, indexOrKey: any, list: T[]) => void; + /** @deprecated Use MemoListIterator or MemoObjectIterator instead. */ type MemoIterator = (prev: TResult, curr: T, indexOrKey: any, list: T[]) => TResult; + type MemoListIterator = (prev: TResult, curr: T, index: number, list: TList) => TResult; + type MemoObjectIterator = (prev: TResult, curr: T, key: string, list: TList) => TResult; type MemoVoidArrayIterator = (acc: TResult, curr: T, index: number, arr: T[]) => void; type MemoVoidDictionaryIterator = (acc: TResult, curr: T, key: string, dict: Dictionary) => void; + type ValueIteratee = ((value: T) => any) | string | [string, any] | PartialDeep; + type ValueKeyIteratee = ((value: T, key: string) => any) | string | [string, any] | PartialDeep; + type Comparator = (a: T, b: T) => boolean; + /** Common interface between Arrays and jQuery objects */ type List = ArrayLike; @@ -20174,6 +16791,24 @@ declare namespace _ { cancel(): void; flush(): void; } + + type PartialDeep = { + [P in keyof T]?: PartialDeep; + }; + + // For backwards compatibility + type LoDashImplicitArrayWrapper = LoDashImplicitWrapper; + type LoDashImplicitNillableArrayWrapper = LoDashImplicitWrapper; + type LoDashImplicitObjectWrapper = LoDashImplicitWrapper; + type LoDashImplicitNillableObjectWrapper = LoDashImplicitWrapper; + type LoDashImplicitNumberArrayWrapper = LoDashImplicitWrapper; + type LoDashImplicitStringWrapper = LoDashImplicitWrapper; + type LoDashExplicitArrayWrapper = LoDashExplicitWrapper; + type LoDashExplicitNillableArrayWrapper = LoDashExplicitWrapper; + type LoDashExplicitObjectWrapper = LoDashExplicitWrapper; + type LoDashExplicitNillableObjectWrapper = LoDashExplicitWrapper; + type LoDashExplicitNumberArrayWrapper = LoDashExplicitWrapper; + type LoDashExplicitStringWrapper = LoDashExplicitWrapper; } // Backward compatibility with --target es5 diff --git a/types/lodash/lodash-tests.ts b/types/lodash/lodash-tests.ts index 7ebd31f2c7..19399ff23b 100644 --- a/types/lodash/lodash-tests.ts +++ b/types/lodash/lodash-tests.ts @@ -1,6 +1,4 @@ -declare const $: any, jQuery: any; - -let x = 0 +declare const $: any; interface IFoodOrganic { name: string; @@ -130,7 +128,7 @@ namespace TestWrapper { { let result: _.LoDashImplicitArrayWrapper; - result = _(['']); + result = _(['']); } { @@ -140,12 +138,12 @@ namespace TestWrapper { { let a: TResult[] = []; - _(a) // $ExpectType LoDashImplicitArrayWrapper + _(a); // $ExpectType LoDashImplicitWrapper } { let a: TResult[] | null | undefined = any; - _(a) // $ExpectType LoDashImplicitNillableArrayWrapper + _(a); // $ExpectType LoDashImplicitWrapper } } @@ -227,14 +225,14 @@ namespace TestCompact { { let result: _.LoDashImplicitArrayWrapper; - result = _(array).compact(); + result = _(array).compact(); result = _(list).compact(); } { let result: _.LoDashExplicitArrayWrapper; - result = _(array).chain().compact(); + result = _(array).chain().compact(); result = _(list).chain().compact(); } } @@ -300,181 +298,181 @@ namespace TestDifferenceBy { { let result: TResult[]; - result = _.differenceBy(array, array); - result = _.differenceBy(array, list, array); - result = _.differenceBy(array, array, list, array); - result = _.differenceBy(array, list, array, list, array); - result = _.differenceBy(array, array, list, array, list, array); - result = _.differenceBy(array, list, array, list, array, list, array); + result = _.differenceBy(array, arrayParam); + result = _.differenceBy(array, listParam, arrayParam); + result = _.differenceBy(array, arrayParam, listParam, arrayParam); + result = _.differenceBy(array, listParam, arrayParam, listParam, arrayParam); + result = _.differenceBy(array, arrayParam, listParam, arrayParam, listParam, arrayParam); + result = _.differenceBy(array, listParam, arrayParam, listParam, arrayParam, listParam, arrayParam); - result = _.differenceBy(array, array, iteratee); - result = _.differenceBy(array, list, array, iteratee); - result = _.differenceBy(array, array, list, array, iteratee); - result = _.differenceBy(array, list, array, list, array, iteratee); - result = _.differenceBy(array, array, list, array, list, array, iteratee); - result = _.differenceBy(array, list, array, list, array, list, array, iteratee); + result = _.differenceBy(array, arrayParam, iteratee); + result = _.differenceBy(array, listParam, arrayParam, iteratee); + result = _.differenceBy(array, arrayParam, listParam, arrayParam, iteratee); + result = _.differenceBy(array, listParam, arrayParam, listParam, arrayParam, iteratee); + result = _.differenceBy(array, arrayParam, listParam, arrayParam, listParam, arrayParam, iteratee); + result = _.differenceBy(array, listParam, arrayParam, listParam, arrayParam, listParam, arrayParam, iteratee); - result = _.differenceBy(array, array, 'a'); - result = _.differenceBy(array, list, array, 'a'); - result = _.differenceBy(array, array, list, array, 'a'); - result = _.differenceBy(array, list, array, list, array, 'a'); - result = _.differenceBy(array, array, list, array, list, array, 'a'); - result = _.differenceBy(array, list, array, list, array, list, array, 'a'); + result = _.differenceBy(array, arrayParam, 'a'); + result = _.differenceBy(array, listParam, arrayParam, 'a'); + result = _.differenceBy(array, arrayParam, listParam, arrayParam, 'a'); + result = _.differenceBy(array, listParam, arrayParam, listParam, arrayParam, 'a'); + result = _.differenceBy(array, arrayParam, listParam, arrayParam, listParam, arrayParam, 'a'); + result = _.differenceBy(array, listParam, arrayParam, listParam, arrayParam, listParam, arrayParam, 'a'); - result = _.differenceBy(array, arrayParam, {a: 1}); - result = _.differenceBy(array, listParam, arrayParam, {a: 1}); - result = _.differenceBy(array, arrayParam, listParam, arrayParam, {a: 1}); - result = _.differenceBy(array, listParam, arrayParam, listParam, arrayParam, {a: 1}); - result = _.differenceBy(array, arrayParam, listParam, arrayParam, listParam, arrayParam, {a: 1}); - result = _.differenceBy(array, list, array, list, array, list, array, {a: 1}); + result = _.differenceBy(array, arrayParam, {a: 1}); + result = _.differenceBy(array, listParam, arrayParam, {a: 1}); + result = _.differenceBy(array, arrayParam, listParam, arrayParam, {a: 1}); + result = _.differenceBy(array, listParam, arrayParam, listParam, arrayParam, {a: 1}); + result = _.differenceBy(array, arrayParam, listParam, arrayParam, listParam, arrayParam, {a: 1}); + result = _.differenceBy(array, listParam, arrayParam, listParam, arrayParam, listParam, arrayParam, {a: 1}); - result = _.differenceBy(list, list); - result = _.differenceBy(list, array, list); - result = _.differenceBy(list, list, array, list); - result = _.differenceBy(list, array, list, array, list); - result = _.differenceBy(list, list, array, list, array, list); - result = _.differenceBy(list, array, list, array, list, array, list); + result = _.differenceBy(list, listParam); + result = _.differenceBy(list, arrayParam, listParam); + result = _.differenceBy(list, listParam, arrayParam, listParam); + result = _.differenceBy(list, arrayParam, listParam, arrayParam, listParam); + result = _.differenceBy(list, listParam, arrayParam, listParam, arrayParam, listParam); + result = _.differenceBy(list, arrayParam, listParam, arrayParam, listParam, arrayParam, listParam); - result = _.differenceBy(list, list, iteratee); - result = _.differenceBy(list, array, list, iteratee); - result = _.differenceBy(list, list, array, list, iteratee); - result = _.differenceBy(list, array, list, array, list, iteratee); - result = _.differenceBy(list, list, array, list, array, list, iteratee); - result = _.differenceBy(list, array, list, array, list, array, list, iteratee); + result = _.differenceBy(list, listParam, iteratee); + result = _.differenceBy(list, arrayParam, listParam, iteratee); + result = _.differenceBy(list, listParam, arrayParam, listParam, iteratee); + result = _.differenceBy(list, arrayParam, listParam, arrayParam, listParam, iteratee); + result = _.differenceBy(list, listParam, arrayParam, listParam, arrayParam, listParam, iteratee); + result = _.differenceBy(list, arrayParam, listParam, arrayParam, listParam, arrayParam, listParam, iteratee); - result = _.differenceBy(list, list, 'a'); - result = _.differenceBy(list, array, list, 'a'); - result = _.differenceBy(list, list, array, list, 'a'); - result = _.differenceBy(list, array, list, array, list, 'a'); - result = _.differenceBy(list, list, array, list, array, list, 'a'); - result = _.differenceBy(list, array, list, array, list, array, list, 'a'); + result = _.differenceBy(list, listParam, 'a'); + result = _.differenceBy(list, arrayParam, listParam, 'a'); + result = _.differenceBy(list, listParam, arrayParam, listParam, 'a'); + result = _.differenceBy(list, arrayParam, listParam, arrayParam, listParam, 'a'); + result = _.differenceBy(list, listParam, arrayParam, listParam, arrayParam, listParam, 'a'); + result = _.differenceBy(list, arrayParam, listParam, arrayParam, listParam, arrayParam, listParam, 'a'); - result = _.differenceBy(list, listParam, {a: 1}); - result = _.differenceBy(list, arrayParam, listParam, {a: 1}); - result = _.differenceBy(list, listParam, arrayParam, listParam, {a: 1}); - result = _.differenceBy(list, arrayParam, listParam, arrayParam, listParam, {a: 1}); - result = _.differenceBy(list, listParam, arrayParam, listParam, arrayParam, listParam, {a: 1}); - result = _.differenceBy(list, array, list, array, list, array, list, {a: 1}); + result = _.differenceBy(list, listParam, {a: 1}); + result = _.differenceBy(list, arrayParam, listParam, {a: 1}); + result = _.differenceBy(list, listParam, arrayParam, listParam, {a: 1}); + result = _.differenceBy(list, arrayParam, listParam, arrayParam, listParam, {a: 1}); + result = _.differenceBy(list, listParam, arrayParam, listParam, arrayParam, listParam, {a: 1}); + result = _.differenceBy(list, arrayParam, listParam, arrayParam, listParam, arrayParam, listParam, {a: 1}); } { - let result: _.LoDashImplicitArrayWrapper; + let result: _.LoDashImplicitWrapper; - result = _(array).differenceBy(array); - result = _(array).differenceBy(list, array); - result = _(array).differenceBy(array, list, array); - result = _(array).differenceBy(list, array, list, array); - result = _(array).differenceBy(array, list, array, list, array); - result = _(array).differenceBy(list, array, list, array, list, array); + result = _(array).differenceBy(arrayParam); + result = _(array).differenceBy(listParam, arrayParam); + result = _(array).differenceBy(arrayParam, listParam, arrayParam); + result = _(array).differenceBy(listParam, arrayParam, listParam, arrayParam); + result = _(array).differenceBy(arrayParam, listParam, arrayParam, listParam, arrayParam); + result = _(array).differenceBy(listParam, arrayParam, listParam, arrayParam, listParam, arrayParam); - result = _(array).differenceBy(array, iteratee); - result = _(array).differenceBy(list, array, iteratee); - result = _(array).differenceBy(array, list, array, iteratee); - result = _(array).differenceBy(list, array, list, array, iteratee); - result = _(array).differenceBy(array, list, array, list, array, iteratee); - result = _(array).differenceBy(list, array, list, array, list, array, iteratee); + result = _(array).differenceBy(arrayParam, iteratee); + result = _(array).differenceBy(listParam, arrayParam, iteratee); + result = _(array).differenceBy(arrayParam, listParam, arrayParam, iteratee); + result = _(array).differenceBy(listParam, arrayParam, listParam, arrayParam, iteratee); + result = _(array).differenceBy(arrayParam, listParam, arrayParam, listParam, arrayParam, iteratee); + result = _(array).differenceBy(listParam, arrayParam, listParam, arrayParam, listParam, arrayParam, iteratee); - result = _(array).differenceBy(array, 'a'); - result = _(array).differenceBy(list, array, 'a'); - result = _(array).differenceBy(array, list, array, 'a'); - result = _(array).differenceBy(list, array, list, array, 'a'); - result = _(array).differenceBy(array, list, array, list, array, 'a'); - result = _(array).differenceBy(list, array, list, array, list, array, 'a'); + result = _(array).differenceBy(arrayParam, 'a'); + result = _(array).differenceBy(listParam, arrayParam, 'a'); + result = _(array).differenceBy(arrayParam, listParam, arrayParam, 'a'); + result = _(array).differenceBy(listParam, arrayParam, listParam, arrayParam, 'a'); + result = _(array).differenceBy(arrayParam, listParam, arrayParam, listParam, arrayParam, 'a'); + result = _(array).differenceBy(listParam, arrayParam, listParam, arrayParam, listParam, arrayParam, 'a'); - result = _(array).differenceBy(arrayParam, {a: 1}); - result = _(array).differenceBy(listParam, arrayParam, {a: 1}); - result = _(array).differenceBy(arrayParam, listParam, arrayParam, {a: 1}); - result = _(array).differenceBy(listParam, arrayParam, listParam, arrayParam, {a: 1}); - result = _(array).differenceBy(arrayParam, listParam, arrayParam, listParam, arrayParam, {a: 1}); - result = _(array).differenceBy(list, array, list, array, list, array, {a: 1}); + result = _(array).differenceBy(arrayParam, {a: 1}); + result = _(array).differenceBy(listParam, arrayParam, {a: 1}); + result = _(array).differenceBy(arrayParam, listParam, arrayParam, {a: 1}); + result = _(array).differenceBy(listParam, arrayParam, listParam, arrayParam, {a: 1}); + result = _(array).differenceBy(arrayParam, listParam, arrayParam, listParam, arrayParam, {a: 1}); + result = _(array).differenceBy(listParam, arrayParam, listParam, arrayParam, listParam, arrayParam, {a: 1}); - result = _(list).differenceBy(list); - result = _(list).differenceBy(array, list); - result = _(list).differenceBy(list, array, list); - result = _(list).differenceBy(array, list, array, list); - result = _(list).differenceBy(list, array, list, array, list); - result = _(list).differenceBy(array, list, array, list, array, list); + result = _(list).differenceBy(listParam); + result = _(list).differenceBy(arrayParam, listParam); + result = _(list).differenceBy(listParam, arrayParam, listParam); + result = _(list).differenceBy(arrayParam, listParam, arrayParam, listParam); + result = _(list).differenceBy(listParam, arrayParam, listParam, arrayParam, listParam); + result = _(list).differenceBy(arrayParam, listParam, arrayParam, listParam, arrayParam, listParam); - result = _(list).differenceBy(list, iteratee); - result = _(list).differenceBy(array, list, iteratee); - result = _(list).differenceBy(list, array, list, iteratee); - result = _(list).differenceBy(array, list, array, list, iteratee); - result = _(list).differenceBy(list, array, list, array, list, iteratee); - result = _(list).differenceBy(array, list, array, list, array, list, iteratee); + result = _(list).differenceBy(listParam, iteratee); + result = _(list).differenceBy(arrayParam, listParam, iteratee); + result = _(list).differenceBy(listParam, arrayParam, listParam, iteratee); + result = _(list).differenceBy(arrayParam, listParam, arrayParam, listParam, iteratee); + result = _(list).differenceBy(listParam, arrayParam, listParam, arrayParam, listParam, iteratee); + result = _(list).differenceBy(arrayParam, listParam, arrayParam, listParam, arrayParam, listParam, iteratee); - result = _(list).differenceBy(list, 'a'); - result = _(list).differenceBy(array, list, 'a'); - result = _(list).differenceBy(list, array, list, 'a'); - result = _(list).differenceBy(array, list, array, list, 'a'); - result = _(list).differenceBy(list, array, list, array, list, 'a'); - result = _(list).differenceBy(array, list, array, list, array, list, 'a'); + result = _(list).differenceBy(listParam, 'a'); + result = _(list).differenceBy(arrayParam, listParam, 'a'); + result = _(list).differenceBy(listParam, arrayParam, listParam, 'a'); + result = _(list).differenceBy(arrayParam, listParam, arrayParam, listParam, 'a'); + result = _(list).differenceBy(listParam, arrayParam, listParam, arrayParam, listParam, 'a'); + result = _(list).differenceBy(arrayParam, listParam, arrayParam, listParam, arrayParam, listParam, 'a'); - result = _(list).differenceBy(listParam, {a: 1}); - result = _(list).differenceBy(arrayParam, listParam, {a: 1}); - result = _(list).differenceBy(listParam, arrayParam, listParam, {a: 1}); - result = _(list).differenceBy(arrayParam, listParam, arrayParam, listParam, {a: 1}); - result = _(list).differenceBy(listParam, arrayParam, listParam, arrayParam, listParam, {a: 1}); - result = _(list).differenceBy(array, list, array, list, array, list, {a: 1}); + result = _(list).differenceBy(listParam, {a: 1}); + result = _(list).differenceBy(arrayParam, listParam, {a: 1}); + result = _(list).differenceBy(listParam, arrayParam, listParam, {a: 1}); + result = _(list).differenceBy(arrayParam, listParam, arrayParam, listParam, {a: 1}); + result = _(list).differenceBy(listParam, arrayParam, listParam, arrayParam, listParam, {a: 1}); + result = _(list).differenceBy(arrayParam, listParam, arrayParam, listParam, arrayParam, listParam, {a: 1}); } { - let result: _.LoDashExplicitArrayWrapper; + let result: _.LoDashExplicitWrapper; - result = _(array).chain().differenceBy(array); - result = _(array).chain().differenceBy(list, array); - result = _(array).chain().differenceBy(array, list, array); - result = _(array).chain().differenceBy(list, array, list, array); - result = _(array).chain().differenceBy(array, list, array, list, array); - result = _(array).chain().differenceBy(list, array, list, array, list, array); + result = _(array).chain().differenceBy(arrayParam); + result = _(array).chain().differenceBy(listParam, arrayParam); + result = _(array).chain().differenceBy(arrayParam, listParam, arrayParam); + result = _(array).chain().differenceBy(listParam, arrayParam, listParam, arrayParam); + result = _(array).chain().differenceBy(arrayParam, listParam, arrayParam, listParam, arrayParam); + result = _(array).chain().differenceBy(listParam, arrayParam, listParam, arrayParam, listParam, arrayParam); - result = _(array).chain().differenceBy(array, iteratee); - result = _(array).chain().differenceBy(list, array, iteratee); - result = _(array).chain().differenceBy(array, list, array, iteratee); - result = _(array).chain().differenceBy(list, array, list, array, iteratee); - result = _(array).chain().differenceBy(array, list, array, list, array, iteratee); - result = _(array).chain().differenceBy(list, array, list, array, list, array, iteratee); + result = _(array).chain().differenceBy(arrayParam, iteratee); + result = _(array).chain().differenceBy(listParam, arrayParam, iteratee); + result = _(array).chain().differenceBy(arrayParam, listParam, arrayParam, iteratee); + result = _(array).chain().differenceBy(listParam, arrayParam, listParam, arrayParam, iteratee); + result = _(array).chain().differenceBy(arrayParam, listParam, arrayParam, listParam, arrayParam, iteratee); + result = _(array).chain().differenceBy(listParam, arrayParam, listParam, arrayParam, listParam, arrayParam, iteratee); - result = _(array).chain().differenceBy(array, 'a'); - result = _(array).chain().differenceBy(list, array, 'a'); - result = _(array).chain().differenceBy(array, list, array, 'a'); - result = _(array).chain().differenceBy(list, array, list, array, 'a'); - result = _(array).chain().differenceBy(array, list, array, list, array, 'a'); - result = _(array).chain().differenceBy(list, array, list, array, list, array, 'a'); + result = _(array).chain().differenceBy(arrayParam, 'a'); + result = _(array).chain().differenceBy(listParam, arrayParam, 'a'); + result = _(array).chain().differenceBy(arrayParam, listParam, arrayParam, 'a'); + result = _(array).chain().differenceBy(listParam, arrayParam, listParam, arrayParam, 'a'); + result = _(array).chain().differenceBy(arrayParam, listParam, arrayParam, listParam, arrayParam, 'a'); + result = _(array).chain().differenceBy(listParam, arrayParam, listParam, arrayParam, listParam, arrayParam, 'a'); - result = _(array).chain().differenceBy(arrayParam, {a: 1}); - result = _(array).chain().differenceBy(listParam, arrayParam, {a: 1}); - result = _(array).chain().differenceBy(arrayParam, listParam, arrayParam, {a: 1}); - result = _(array).chain().differenceBy(listParam, arrayParam, listParam, arrayParam, {a: 1}); - result = _(array).chain().differenceBy(arrayParam, listParam, arrayParam, listParam, arrayParam, {a: 1}); - result = _(array).chain().differenceBy(list, array, list, array, list, array, {a: 1}); + result = _(array).chain().differenceBy(arrayParam, {a: 1}); + result = _(array).chain().differenceBy(listParam, arrayParam, {a: 1}); + result = _(array).chain().differenceBy(arrayParam, listParam, arrayParam, {a: 1}); + result = _(array).chain().differenceBy(listParam, arrayParam, listParam, arrayParam, {a: 1}); + result = _(array).chain().differenceBy(arrayParam, listParam, arrayParam, listParam, arrayParam, {a: 1}); + result = _(array).chain().differenceBy(listParam, arrayParam, listParam, arrayParam, listParam, arrayParam, {a: 1}); - result = _(list).chain().differenceBy(list); - result = _(list).chain().differenceBy(array, list); - result = _(list).chain().differenceBy(list, array, list); - result = _(list).chain().differenceBy(array, list, array, list); - result = _(list).chain().differenceBy(list, array, list, array, list); - result = _(list).chain().differenceBy(array, list, array, list, array, list); + result = _(list).chain().differenceBy(listParam); + result = _(list).chain().differenceBy(arrayParam, listParam); + result = _(list).chain().differenceBy(listParam, arrayParam, listParam); + result = _(list).chain().differenceBy(arrayParam, listParam, arrayParam, listParam); + result = _(list).chain().differenceBy(listParam, arrayParam, listParam, arrayParam, listParam); + result = _(list).chain().differenceBy(arrayParam, listParam, arrayParam, listParam, arrayParam, listParam); - result = _(list).chain().differenceBy(list, iteratee); - result = _(list).chain().differenceBy(array, list, iteratee); - result = _(list).chain().differenceBy(list, array, list, iteratee); - result = _(list).chain().differenceBy(array, list, array, list, iteratee); - result = _(list).chain().differenceBy(list, array, list, array, list, iteratee); - result = _(list).chain().differenceBy(array, list, array, list, array, list, iteratee); + result = _(list).chain().differenceBy(listParam, iteratee); + result = _(list).chain().differenceBy(arrayParam, listParam, iteratee); + result = _(list).chain().differenceBy(listParam, arrayParam, listParam, iteratee); + result = _(list).chain().differenceBy(arrayParam, listParam, arrayParam, listParam, iteratee); + result = _(list).chain().differenceBy(listParam, arrayParam, listParam, arrayParam, listParam, iteratee); + result = _(list).chain().differenceBy(arrayParam, listParam, arrayParam, listParam, arrayParam, listParam, iteratee); - result = _(list).chain().differenceBy(list, 'a'); - result = _(list).chain().differenceBy(array, list, 'a'); - result = _(list).chain().differenceBy(list, array, list, 'a'); - result = _(list).chain().differenceBy(array, list, array, list, 'a'); - result = _(list).chain().differenceBy(list, array, list, array, list, 'a'); - result = _(list).chain().differenceBy(array, list, array, list, array, list, 'a'); + result = _(list).chain().differenceBy(listParam, 'a'); + result = _(list).chain().differenceBy(arrayParam, listParam, 'a'); + result = _(list).chain().differenceBy(listParam, arrayParam, listParam, 'a'); + result = _(list).chain().differenceBy(arrayParam, listParam, arrayParam, listParam, 'a'); + result = _(list).chain().differenceBy(listParam, arrayParam, listParam, arrayParam, listParam, 'a'); + result = _(list).chain().differenceBy(arrayParam, listParam, arrayParam, listParam, arrayParam, listParam, 'a'); - result = _(list).chain().differenceBy(listParam, {a: 1}); - result = _(list).chain().differenceBy(arrayParam, listParam, {a: 1}); - result = _(list).chain().differenceBy(listParam, arrayParam, listParam, {a: 1}); - result = _(list).chain().differenceBy(arrayParam, listParam, arrayParam, listParam, {a: 1}); - result = _(list).chain().differenceBy(listParam, arrayParam, listParam, arrayParam, listParam, {a: 1}); - result = _(list).chain().differenceBy(array, list, array, list, array, list, {a: 1}); + result = _(list).chain().differenceBy(listParam, {a: 1}); + result = _(list).chain().differenceBy(arrayParam, listParam, {a: 1}); + result = _(list).chain().differenceBy(listParam, arrayParam, listParam, {a: 1}); + result = _(list).chain().differenceBy(arrayParam, listParam, arrayParam, listParam, {a: 1}); + result = _(list).chain().differenceBy(listParam, arrayParam, listParam, arrayParam, listParam, {a: 1}); + result = _(list).chain().differenceBy(arrayParam, listParam, arrayParam, listParam, arrayParam, listParam, {a: 1}); } } @@ -561,12 +559,12 @@ namespace TestDropRightWhile { result = _.dropRightWhile(array); result = _.dropRightWhile(array, predicateFn); result = _.dropRightWhile(array, ''); - result = _.dropRightWhile<{a: number;}, TResult>(array, {a: 42}); + result = _.dropRightWhile(array, {a: 42}); result = _.dropRightWhile(list); result = _.dropRightWhile(list, predicateFn); result = _.dropRightWhile(list, ''); - result = _.dropRightWhile<{a: number;}, TResult>(list, {a: 42}); + result = _.dropRightWhile(list, {a: 42}); } { @@ -575,12 +573,12 @@ namespace TestDropRightWhile { result = _(array).dropRightWhile(); result = _(array).dropRightWhile(predicateFn); result = _(array).dropRightWhile(''); - result = _(array).dropRightWhile<{a: number;}>({a: 42}); + result = _(array).dropRightWhile({a: 42}); result = _(list).dropRightWhile(); result = _(list).dropRightWhile(predicateFn); result = _(list).dropRightWhile(''); - result = _(list).dropRightWhile<{a: number;}, TResult>({a: 42}); + result = _(list).dropRightWhile({a: 42}); } { @@ -589,12 +587,12 @@ namespace TestDropRightWhile { result = _(array).chain().dropRightWhile(); result = _(array).chain().dropRightWhile(predicateFn); result = _(array).chain().dropRightWhile(''); - result = _(array).chain().dropRightWhile<{a: number;}>({a: 42}); + result = _(array).chain().dropRightWhile({a: 42}); result = _(list).chain().dropRightWhile(); result = _(list).chain().dropRightWhile(predicateFn); result = _(list).chain().dropRightWhile(''); - result = _(list).chain().dropRightWhile<{a: number;}, TResult>({a: 42}); + result = _(list).chain().dropRightWhile({a: 42}); } } @@ -610,12 +608,12 @@ namespace TestDropWhile { result = _.dropWhile(array); result = _.dropWhile(array, predicateFn); result = _.dropWhile(array, ''); - result = _.dropWhile<{a: number;}, TResult>(array, {a: 42}); + result = _.dropWhile(array, {a: 42}); result = _.dropWhile(list); result = _.dropWhile(list, predicateFn); result = _.dropWhile(list, ''); - result = _.dropWhile<{a: number;}, TResult>(list, {a: 42}); + result = _.dropWhile(list, {a: 42}); } { @@ -624,12 +622,12 @@ namespace TestDropWhile { result = _(array).dropWhile(); result = _(array).dropWhile(predicateFn); result = _(array).dropWhile(''); - result = _(array).dropWhile<{a: number;}>({a: 42}); + result = _(array).dropWhile({a: 42}); result = _(list).dropWhile(); result = _(list).dropWhile(predicateFn); result = _(list).dropWhile(''); - result = _(list).dropWhile<{a: number;}, TResult>({a: 42}); + result = _(list).dropWhile({a: 42}); } { @@ -638,66 +636,66 @@ namespace TestDropWhile { result = _(array).chain().dropWhile(); result = _(array).chain().dropWhile(predicateFn); result = _(array).chain().dropWhile(''); - result = _(array).chain().dropWhile<{a: number;}>({a: 42}); + result = _(array).chain().dropWhile({a: 42}); result = _(list).chain().dropWhile(); result = _(list).chain().dropWhile(predicateFn); result = _(list).chain().dropWhile(''); - result = _(list).chain().dropWhile<{a: number;}, TResult>({a: 42}); + result = _(list).chain().dropWhile({a: 42}); } } // _.fill namespace TestFill { - let array: TResult[] | null | undefined = [] as any; - let list: _.List | null | undefined = [] as any; + let array: number[] | null | undefined = [] as any; + let list: _.List | null | undefined = [] as any; { let result: number[]; result = _.fill(array, 42); - result = _.fill(array, 42, 0); - result = _.fill(array, 42, 0, 10); + result = _.fill(array, 42, 0); + result = _.fill(array, 42, 0, 10); } { let result: _.List; result = _.fill(list, 42); - result = _.fill(list, 42, 0); - result = _.fill(list, 42, 0, 10); + result = _.fill(list, 42, 0); + result = _.fill(list, 42, 0, 10); } { let result: _.LoDashImplicitArrayWrapper; result = _(array).fill(42); - result = _(array).fill(42, 0); - result = _(array).fill(42, 0, 10); + result = _(array).fill(42, 0); + result = _(array).fill(42, 0, 10); } { let result: _.LoDashImplicitObjectWrapper<_.List>; result = _(list).fill(42); - result = _(list).fill(42, 0); - result = _(list).fill(42, 0, 10); + result = _(list).fill(42, 0); + result = _(list).fill(42, 0, 10); } { let result: _.LoDashExplicitArrayWrapper; result = _(array).chain().fill(42); - result = _(array).chain().fill(42, 0); - result = _(array).chain().fill(42, 0, 10); + result = _(array).chain().fill(42, 0); + result = _(array).chain().fill(42, 0, 10); } { let result: _.LoDashExplicitObjectWrapper<_.List>; result = _(list).chain().fill(42); - result = _(list).chain().fill(42, 0); - result = _(list).chain().fill(42, 0, 10); + result = _(list).chain().fill(42, 0); + result = _(list).chain().fill(42, 0, 10); } } @@ -714,21 +712,21 @@ namespace TestFindIndex { result = _.findIndex(array); result = _.findIndex(array, predicateFn); result = _.findIndex(array, ''); - result = _.findIndex<{a: number}, TResult>(array, {a: 42}); + result = _.findIndex(array, {a: 42}); result = _.findIndex(array, predicateFn, fromIndex); result = _.findIndex(list); result = _.findIndex(list, predicateFn); result = _.findIndex(list, ''); - result = _.findIndex<{a: number}, TResult>(list, {a: 42}); + result = _.findIndex(list, {a: 42}); result = _.findIndex(list, predicateFn, fromIndex); result = _.findIndex([{ b: 5 }], ['b', 5]); - result = _(array).findIndex(); - result = _(array).findIndex(predicateFn); - result = _(array).findIndex(''); - result = _(array).findIndex<{a: number}>({a: 42}); - result = _(array).findIndex(predicateFn, fromIndex); + result = _(array).findIndex(); + result = _(array).findIndex(predicateFn); + result = _(array).findIndex(''); + result = _(array).findIndex<{a: number}>({a: 42}); + result = _(array).findIndex(predicateFn, fromIndex); result = _(list).findIndex(); result = _(list).findIndex(predicateFn); @@ -740,11 +738,11 @@ namespace TestFindIndex { { let result: _.LoDashExplicitWrapper; - result = _(array).chain().findIndex(); - result = _(array).chain().findIndex(predicateFn); - result = _(array).chain().findIndex(''); - result = _(array).chain().findIndex<{a: number}>({a: 42}); - result = _(array).chain().findIndex(predicateFn, fromIndex); + result = _(array).chain().findIndex(); + result = _(array).chain().findIndex(predicateFn); + result = _(array).chain().findIndex(''); + result = _(array).chain().findIndex<{a: number}>({a: 42}); + result = _(array).chain().findIndex(predicateFn, fromIndex); result = _(list).chain().findIndex(); result = _(list).chain().findIndex(predicateFn); @@ -768,21 +766,21 @@ namespace TestFindLastIndex { result = _.findLastIndex(array); result = _.findLastIndex(array, predicateFn); result = _.findLastIndex(array, ''); - result = _.findLastIndex<{a: number}, TResult>(array, {a: 42}); + result = _.findLastIndex(array, {a: 42}); result = _.findLastIndex(array, predicateFn, fromIndex); result = _.findLastIndex(list); result = _.findLastIndex(list, predicateFn); result = _.findLastIndex(list, ''); - result = _.findLastIndex<{a: number}, TResult>(list, {a: 42}); + result = _.findLastIndex(list, {a: 42}); result = _.findLastIndex(list, predicateFn, fromIndex); result = _.findLastIndex([{ b: 5 }], ['b', 5]); - result = _(array).findLastIndex(); - result = _(array).findLastIndex(predicateFn); - result = _(array).findLastIndex(''); - result = _(array).findLastIndex<{a: number}>({a: 42}); - result = _(array).findLastIndex(predicateFn, fromIndex); + result = _(array).findLastIndex(); + result = _(array).findLastIndex(predicateFn); + result = _(array).findLastIndex(''); + result = _(array).findLastIndex<{a: number}>({a: 42}); + result = _(array).findLastIndex(predicateFn, fromIndex); result = _(list).findLastIndex(); result = _(list).findLastIndex(predicateFn); @@ -794,11 +792,11 @@ namespace TestFindLastIndex { { let result: _.LoDashExplicitWrapper; - result = _(array).chain().findLastIndex(); - result = _(array).chain().findLastIndex(predicateFn); - result = _(array).chain().findLastIndex(''); - result = _(array).chain().findLastIndex<{a: number}>({a: 42}); - result = _(array).chain().findLastIndex(predicateFn, fromIndex); + result = _(array).chain().findLastIndex(); + result = _(array).chain().findLastIndex(predicateFn); + result = _(array).chain().findLastIndex(''); + result = _(array).chain().findLastIndex<{a: number}>({a: 42}); + result = _(array).chain().findLastIndex(predicateFn, fromIndex); result = _(list).chain().findLastIndex(); result = _(list).chain().findLastIndex(predicateFn); @@ -831,16 +829,16 @@ namespace TestFirst { } { - let result: _.LoDashExplicitWrapper; + let result: _.LoDashExplicitWrapper; result = _('abc').chain().first(); } { - let result: _.LoDashExplicitObjectWrapper; + let result: _.LoDashExplicitWrapper; - result = _(array).chain().first<_.LoDashExplicitObjectWrapper>(); - result = _(list).chain().first<_.LoDashExplicitObjectWrapper>(); + result = _(array).chain().first(); + result = _(list).chain().first(); } } @@ -876,11 +874,11 @@ namespace TestFlatten { { let result: _.RecursiveArray; - result = _.flatten([1, [2, [3]]]); - result = _.flatten([1, [2, [3]], [[4]]]); + result = _.flatten([1, [2, [3]]]); + result = _.flatten([1, [2, [3]], [[4]]]); - result = _.flatten({0: 1, 1: [2, [3]], length: 2}); - result = _.flatten({0: 1, 1: [2, [3]], 2: [[4]], length: 3}); + result = _.flatten({0: 1, 1: [2, [3]], length: 2}); + result = _.flatten({0: 1, 1: [2, [3]], 2: [[4]], length: 3}); } { @@ -1080,16 +1078,16 @@ namespace TestHead { } { - let result: _.LoDashExplicitWrapper; + let result: _.LoDashExplicitWrapper; result = _('abc').chain().head(); } { - let result: _.LoDashExplicitObjectWrapper; + let result: _.LoDashExplicitWrapper; - result = _(array).chain().head<_.LoDashExplicitObjectWrapper>(); - result = _(list).chain().head<_.LoDashExplicitObjectWrapper>(); + result = _(array).chain().head(); + result = _(list).chain().head(); } } @@ -1184,8 +1182,8 @@ namespace TestInitial { // _.intersection namespace TestIntersection { - let array: TResult[] | null | undefined = [] as any; - let list: _.List | null | undefined = [] as any; + let array: TResult[] = [] as any; + let list: _.List = [] as any; let arrayParam: TResult[] = [] as any; let listParam: _.List = [] as any; @@ -1281,21 +1279,21 @@ namespace TestLast { } { - let result: _.LoDashExplicitWrapper; + let result: _.LoDashExplicitWrapper; result = _('abc').chain().last(); } { - let result: _.LoDashExplicitObjectWrapper; + let result: _.LoDashExplicitWrapper; - result = _(array).chain().last<_.LoDashExplicitObjectWrapper>(); + result = _(array).chain().last(); } { - let result: _.LoDashExplicitObjectWrapper; + let result: _.LoDashExplicitWrapper; - result = _(list).chain().last<_.LoDashExplicitObjectWrapper>(); + result = _(list).chain().last(); } } @@ -1359,7 +1357,7 @@ namespace TestNth { } { - let result: _.LoDashExplicitWrapper; + let result: _.LoDashExplicitWrapper; result = _(array).chain().nth(); result = _(array).chain().nth(42); @@ -1442,6 +1440,10 @@ namespace TestPullAt { result = _.pullAt(array, 1); result = _.pullAt(array, [2, 3], 1); result = _.pullAt(array, 4, [2, 3], 1); + } + + { + let result: ArrayLike; result = _.pullAt(list); result = _.pullAt(list, 1); @@ -1456,11 +1458,15 @@ namespace TestPullAt { result = _(array).pullAt(1); result = _(array).pullAt([2, 3], 1); result = _(array).pullAt(4, [2, 3], 1); + } - result = _(list).pullAt(); - result = _(list).pullAt(1); - result = _(list).pullAt([2, 3], 1); - result = _(list).pullAt(4, [2, 3], 1); + { + let result: _.LoDashImplicitWrapper>; + + result = _(list).pullAt(); + result = _(list).pullAt(1); + result = _(list).pullAt([2, 3], 1); + result = _(list).pullAt(4, [2, 3], 1); } { @@ -1470,11 +1476,15 @@ namespace TestPullAt { result = _(array).chain().pullAt(1); result = _(array).chain().pullAt([2, 3], 1); result = _(array).chain().pullAt(4, [2, 3], 1); + } - result = _(list).chain().pullAt(); - result = _(list).chain().pullAt(1); - result = _(list).chain().pullAt([2, 3], 1); - result = _(list).chain().pullAt(4, [2, 3], 1); + { + let result: _.LoDashExplicitWrapper>; + + result = _(list).chain().pullAt(); + result = _(list).chain().pullAt(1); + result = _(list).chain().pullAt([2, 3], 1); + result = _(list).chain().pullAt(4, [2, 3], 1); } } @@ -1490,40 +1500,40 @@ namespace TestRemove { result = _.remove(array); result = _.remove(array, predicateFn); result = _.remove(array, ''); - result = _.remove<{a: number}, TResult>(array, {a: 42}); + result = _.remove(array, {a: 42}); result = _.remove(list); result = _.remove(list, predicateFn); result = _.remove(list, ''); - result = _.remove<{a: number}, TResult>(list, {a: 42}); + result = _.remove(list, {a: 42}); } { let result: _.LoDashImplicitArrayWrapper; - result = _(array).remove(); - result = _(array).remove(predicateFn); - result = _(array).remove(''); - result = _(array).remove<{a: number}>({a: 42}); + result = _(array).remove(); + result = _(array).remove(predicateFn); + result = _(array).remove(''); + result = _(array).remove({a: 42}); result = _(list).remove(); result = _(list).remove(predicateFn); result = _(list).remove(''); - result = _(list).remove<{a: number}, TResult>({a: 42}); + result = _(list).remove({a: 42}); } { let result: _.LoDashExplicitArrayWrapper; - result = _(array).chain().remove(); - result = _(array).chain().remove(predicateFn); - result = _(array).chain().remove(''); - result = _(array).chain().remove<{a: number}>({a: 42}); + result = _(array).chain().remove(); + result = _(array).chain().remove(predicateFn); + result = _(array).chain().remove(''); + result = _(array).chain().remove({a: 42}); result = _(list).chain().remove(); result = _(list).chain().remove(predicateFn); result = _(list).chain().remove(''); - result = _(list).chain().remove<{a: number}, TResult>({a: 42}); + result = _(list).chain().remove({a: 42}); } } @@ -1640,47 +1650,38 @@ namespace TestSortedIndexBy { let result: number; result = _.sortedIndexBy('', '', stringIterator); - result = _.sortedIndexBy('', '', stringIterator); result = _.sortedIndexBy(array, value, arrayIterator); result = _.sortedIndexBy(array, value, ''); result = _.sortedIndexBy(array, value, {a: 42}); - result = _.sortedIndexBy(array, value, arrayIterator); - result = _.sortedIndexBy<{a: number}, SampleType>(array, value, {a: 42}); result = _.sortedIndexBy(list, value, listIterator); result = _.sortedIndexBy(list, value, ''); result = _.sortedIndexBy(list, value, {a: 42}); - result = _.sortedIndexBy(list, value, listIterator); - result = _.sortedIndexBy<{a: number}, SampleType>(list, value, {a: 42}); - result = _('').sortedIndexBy('', stringIterator); + result = _('').sortedIndexBy('', stringIterator); - result = _(array).sortedIndexBy(value, arrayIterator); + result = _(array).sortedIndexBy(value, arrayIterator); result = _(array).sortedIndexBy(value, ''); - result = _(array).sortedIndexBy<{a: number}>(value, {a: 42}); + result = _(array).sortedIndexBy(value, {a: 42}); result = _(list).sortedIndexBy(value, listIterator); result = _(list).sortedIndexBy(value, ''); result = _(list).sortedIndexBy(value, {a: 42}); - result = _(list).sortedIndexBy(value, listIterator); - result = _(list).sortedIndexBy<{a: number}, SampleType>(value, {a: 42}); } { let result: _.LoDashExplicitWrapper; - result = _('').chain().sortedIndexBy('', stringIterator); + result = _('').chain().sortedIndexBy('', stringIterator); - result = _(array).chain().sortedIndexBy(value, arrayIterator); + result = _(array).chain().sortedIndexBy(value, arrayIterator); result = _(array).chain().sortedIndexBy(value, ''); - result = _(array).chain().sortedIndexBy<{a: number}>(value, {a: 42}); + result = _(array).chain().sortedIndexBy(value, {a: 42}); result = _(list).chain().sortedIndexBy(value, listIterator); result = _(list).chain().sortedIndexBy(value, ''); result = _(list).chain().sortedIndexBy(value, {a: 42}); - result = _(list).chain().sortedIndexBy(value, listIterator); - result = _(list).chain().sortedIndexBy<{a: number}, SampleType>(value, {a: 42}); } } @@ -1741,47 +1742,38 @@ namespace TestSortedLastIndexBy { let result: number; result = _.sortedLastIndexBy('', '', stringIterator); - result = _.sortedLastIndexBy('', '', stringIterator); result = _.sortedLastIndexBy(array, value, arrayIterator); result = _.sortedLastIndexBy(array, value, ''); result = _.sortedLastIndexBy(array, value, {a: 42}); - result = _.sortedLastIndexBy(array, value, arrayIterator); - result = _.sortedLastIndexBy<{a: number}, SampleType>(array, value, {a: 42}); result = _.sortedLastIndexBy(list, value, listIterator); result = _.sortedLastIndexBy(list, value, ''); result = _.sortedLastIndexBy(list, value, {a: 42}); - result = _.sortedLastIndexBy(list, value, listIterator); - result = _.sortedLastIndexBy<{a: number}, SampleType>(list, value, {a: 42}); - result = _('').sortedLastIndexBy('', stringIterator); + result = _('').sortedLastIndexBy('', stringIterator); - result = _(array).sortedLastIndexBy(value, arrayIterator); + result = _(array).sortedLastIndexBy(value, arrayIterator); result = _(array).sortedLastIndexBy(value, ''); - result = _(array).sortedLastIndexBy<{a: number}>(value, {a: 42}); + result = _(array).sortedLastIndexBy(value, {a: 42}); result = _(list).sortedLastIndexBy(value, listIterator); result = _(list).sortedLastIndexBy(value, ''); result = _(list).sortedLastIndexBy(value, {a: 42}); - result = _(list).sortedLastIndexBy(value, listIterator); - result = _(list).sortedLastIndexBy<{a: number}, SampleType>(value, {a: 42}); } { let result: _.LoDashExplicitWrapper; - result = _('').chain().sortedLastIndexBy('', stringIterator); + result = _('').chain().sortedLastIndexBy('', stringIterator); - result = _(array).chain().sortedLastIndexBy(value, arrayIterator); + result = _(array).chain().sortedLastIndexBy(value, arrayIterator); result = _(array).chain().sortedLastIndexBy(value, ''); - result = _(array).chain().sortedLastIndexBy<{a: number}>(value, {a: 42}); + result = _(array).chain().sortedLastIndexBy(value, {a: 42}); result = _(list).chain().sortedLastIndexBy(value, listIterator); result = _(list).chain().sortedLastIndexBy(value, ''); result = _(list).chain().sortedLastIndexBy(value, {a: 42}); - result = _(list).chain().sortedLastIndexBy(value, listIterator); - result = _(list).chain().sortedLastIndexBy<{a: number}, SampleType>(value, {a: 42}); } } @@ -1896,12 +1888,12 @@ namespace TestTakeRightWhile { result = _.takeRightWhile(array); result = _.takeRightWhile(array, predicateFn); result = _.takeRightWhile(array, ''); - result = _.takeRightWhile<{a: number;}, TResult>(array, {a: 42}); + result = _.takeRightWhile(array, {a: 42}); result = _.takeRightWhile(list); result = _.takeRightWhile(list, predicateFn); result = _.takeRightWhile(list, ''); - result = _.takeRightWhile<{a: number;}, TResult>(list, {a: 42}); + result = _.takeRightWhile(list, {a: 42}); } { @@ -1910,12 +1902,12 @@ namespace TestTakeRightWhile { result = _(array).takeRightWhile(); result = _(array).takeRightWhile(predicateFn); result = _(array).takeRightWhile(''); - result = _(array).takeRightWhile<{a: number;}>({a: 42}); + result = _(array).takeRightWhile({a: 42}); result = _(list).takeRightWhile(); result = _(list).takeRightWhile(predicateFn); result = _(list).takeRightWhile(''); - result = _(list).takeRightWhile<{a: number;}, TResult>({a: 42}); + result = _(list).takeRightWhile({a: 42}); } { @@ -1924,12 +1916,12 @@ namespace TestTakeRightWhile { result = _(array).chain().takeRightWhile(); result = _(array).chain().takeRightWhile(predicateFn); result = _(array).chain().takeRightWhile(''); - result = _(array).chain().takeRightWhile<{a: number;}>({a: 42}); + result = _(array).chain().takeRightWhile({a: 42}); result = _(list).chain().takeRightWhile(); result = _(list).chain().takeRightWhile(predicateFn); result = _(list).chain().takeRightWhile(''); - result = _(list).chain().takeRightWhile<{a: number;}, TResult>({a: 42}); + result = _(list).chain().takeRightWhile({a: 42}); } } @@ -1945,12 +1937,12 @@ namespace TestTakeWhile { result = _.takeWhile(array); result = _.takeWhile(array, predicateFn); result = _.takeWhile(array, ''); - result = _.takeWhile<{a: number;}, TResult>(array, {a: 42}); + result = _.takeWhile(array, {a: 42}); result = _.takeWhile(list); result = _.takeWhile(list, predicateFn); result = _.takeWhile(list, ''); - result = _.takeWhile<{a: number;}, TResult>(list, {a: 42}); + result = _.takeWhile(list, {a: 42}); } { @@ -1959,12 +1951,12 @@ namespace TestTakeWhile { result = _(array).takeWhile(); result = _(array).takeWhile(predicateFn); result = _(array).takeWhile(''); - result = _(array).takeWhile<{a: number;}>({a: 42}); + result = _(array).takeWhile({a: 42}); result = _(list).takeWhile(); result = _(list).takeWhile(predicateFn); result = _(list).takeWhile(''); - result = _(list).takeWhile<{a: number;}, TResult>({a: 42}); + result = _(list).takeWhile({a: 42}); } { @@ -1973,12 +1965,12 @@ namespace TestTakeWhile { result = _(array).chain().takeWhile(); result = _(array).chain().takeWhile(predicateFn); result = _(array).chain().takeWhile(''); - result = _(array).chain().takeWhile<{a: number;}>({a: 42}); + result = _(array).chain().takeWhile({a: 42}); result = _(list).chain().takeWhile(); result = _(list).chain().takeWhile(predicateFn); result = _(list).chain().takeWhile(''); - result = _(list).chain().takeWhile<{a: number;}, TResult>({a: 42}); + result = _(list).chain().takeWhile({a: 42}); } } @@ -2061,10 +2053,10 @@ namespace TestUnionBy { result = _.unionBy(array, list, array, list, array, 'a'); result = _.unionBy(array, array, list, array, list, array, 'a'); - result = _.unionBy(array, array, {a: 1}); - result = _.unionBy(array, list, array, {a: 1}); - result = _.unionBy(array, array, list, array, {a: 1}); - result = _.unionBy(array, list, array, list, array, {a: 1}); + result = _.unionBy(array, array, {a: 1}); + result = _.unionBy(array, list, array, {a: 1}); + result = _.unionBy(array, array, list, array, {a: 1}); + result = _.unionBy(array, list, array, list, array, {a: 1}); result = _.unionBy(array, list, array, list, array, list, {a: 1}); result = _.unionBy(list, list); @@ -2085,10 +2077,10 @@ namespace TestUnionBy { result = _.unionBy(list, array, list, array, list, 'a'); result = _.unionBy(list, list, array, list, array, list, 'a'); - result = _.unionBy(list, list, {a: 1}); - result = _.unionBy(list, array, list, {a: 1}); - result = _.unionBy(list, list, array, list, {a: 1}); - result = _.unionBy(list, array, list, array, list, {a: 1}); + result = _.unionBy(list, list, {a: 1}); + result = _.unionBy(list, array, list, {a: 1}); + result = _.unionBy(list, list, array, list, {a: 1}); + result = _.unionBy(list, array, list, array, list, {a: 1}); result = _.unionBy(list, array, list, array, list, array, {a: 1}); } @@ -2113,10 +2105,10 @@ namespace TestUnionBy { result = _(array).unionBy(list, array, list, array, 'a'); result = _(array).unionBy(array, list, array, list, array, 'a'); - result = _(array).unionBy(array, {a: 1}); - result = _(array).unionBy(list, array, {a: 1}); - result = _(array).unionBy(array, list, array, {a: 1}); - result = _(array).unionBy(list, array, list, array, {a: 1}); + result = _(array).unionBy(array, {a: 1}); + result = _(array).unionBy(list, array, {a: 1}); + result = _(array).unionBy(array, list, array, {a: 1}); + result = _(array).unionBy(list, array, list, array, {a: 1}); result = _(array).unionBy(list, array, list, array, list, {a: 1}); result = _(list).unionBy(list); @@ -2137,10 +2129,10 @@ namespace TestUnionBy { result = _(list).unionBy(array, list, array, list, 'a'); result = _(list).unionBy(list, array, list, array, list, 'a'); - result = _(list).unionBy(list, {a: 1}); - result = _(list).unionBy(array, list, {a: 1}); - result = _(list).unionBy(list, array, list, {a: 1}); - result = _(list).unionBy(array, list, array, list, {a: 1}); + result = _(list).unionBy(list, {a: 1}); + result = _(list).unionBy(array, list, {a: 1}); + result = _(list).unionBy(list, array, list, {a: 1}); + result = _(list).unionBy(array, list, array, list, {a: 1}); result = _(list).unionBy(array, list, array, list, array, {a: 1}); } @@ -2165,10 +2157,10 @@ namespace TestUnionBy { result = _(array).chain().unionBy(list, array, list, array, 'a'); result = _(array).chain().unionBy(array, list, array, list, array, 'a'); - result = _(array).chain().unionBy(array, {a: 1}); - result = _(array).chain().unionBy(list, array, {a: 1}); - result = _(array).chain().unionBy(array, list, array, {a: 1}); - result = _(array).chain().unionBy(list, array, list, array, {a: 1}); + result = _(array).chain().unionBy(array, {a: 1}); + result = _(array).chain().unionBy(list, array, {a: 1}); + result = _(array).chain().unionBy(array, list, array, {a: 1}); + result = _(array).chain().unionBy(list, array, list, array, {a: 1}); result = _(array).chain().unionBy(list, array, list, array, list, {a: 1}); result = _(list).chain().unionBy(list); @@ -2189,10 +2181,10 @@ namespace TestUnionBy { result = _(list).chain().unionBy(array, list, array, list, 'a'); result = _(list).chain().unionBy(list, array, list, array, list, 'a'); - result = _(list).chain().unionBy(list, {a: 1}); - result = _(list).chain().unionBy(array, list, {a: 1}); - result = _(list).chain().unionBy(list, array, list, {a: 1}); - result = _(list).chain().unionBy(array, list, array, list, {a: 1}); + result = _(list).chain().unionBy(list, {a: 1}); + result = _(list).chain().unionBy(array, list, {a: 1}); + result = _(list).chain().unionBy(list, array, list, {a: 1}); + result = _(list).chain().unionBy(array, list, array, list, {a: 1}); result = _(list).chain().unionBy(array, list, array, list, array, {a: 1}); } } @@ -2255,7 +2247,6 @@ namespace TestUniqBy { { let result: string[]; - result = _.uniqBy('abc', stringIterator); result = _.uniqBy('abc', stringIterator); } @@ -2263,16 +2254,12 @@ namespace TestUniqBy { let result: SampleObject[]; result = _.uniqBy(array, listIterator); - result = _.uniqBy(array, listIterator); result = _.uniqBy(array, 'a'); result = _.uniqBy(array, {a: 42}); - result = _.uniqBy<{a: number}, SampleObject>(array, {a: 42}); result = _.uniqBy(list, listIterator); - result = _.uniqBy(list, listIterator); result = _.uniqBy(list, 'a'); result = _.uniqBy(list, {a: 42}); - result = _.uniqBy<{a: number}, SampleObject>(list, {a: 42}); } { @@ -2284,15 +2271,13 @@ namespace TestUniqBy { { let result: _.LoDashImplicitArrayWrapper; - result = _(array).uniqBy(listIterator); + result = _(array).uniqBy(listIterator); result = _(array).uniqBy('a'); - result = _(array).uniqBy<{a: number}>({a: 42}); + result = _(array).uniqBy({a: 42}); result = _(list).uniqBy(listIterator); - result = _(list).uniqBy(listIterator); result = _(list).uniqBy('a'); result = _(list).uniqBy({a: 42}); - result = _(list).uniqBy<{a: number}, SampleObject>({a: 42}); } { @@ -2304,15 +2289,13 @@ namespace TestUniqBy { { let result: _.LoDashExplicitArrayWrapper; - result = _(array).chain().uniqBy(listIterator); + result = _(array).chain().uniqBy(listIterator); result = _(array).chain().uniqBy('a'); - result = _(array).chain().uniqBy<{a: number}>({a: 42}); + result = _(array).chain().uniqBy({a: 42}); result = _(list).chain().uniqBy(listIterator); - result = _(list).chain().uniqBy(listIterator); result = _(list).chain().uniqBy('a'); result = _(list).chain().uniqBy({a: 42}); - result = _(list).chain().uniqBy<{a: number}, SampleObject>({a: 42}); } } @@ -2370,7 +2353,6 @@ namespace TestSortedUniqBy { { let result: string[]; - result = _.sortedUniqBy('abc', stringIterator); result = _.sortedUniqBy('abc', stringIterator); } @@ -2378,16 +2360,12 @@ namespace TestSortedUniqBy { let result: SampleObject[]; result = _.sortedUniqBy(array, listIterator); - result = _.sortedUniqBy(array, listIterator); result = _.sortedUniqBy(array, 'a'); result = _.sortedUniqBy(array, {a: 42}); - result = _.sortedUniqBy<{a: number}, SampleObject>(array, {a: 42}); result = _.sortedUniqBy(list, listIterator); - result = _.sortedUniqBy(list, listIterator); result = _.sortedUniqBy(list, 'a'); result = _.sortedUniqBy(list, {a: 42}); - result = _.sortedUniqBy<{a: number}, SampleObject>(list, {a: 42}); } { @@ -2399,15 +2377,13 @@ namespace TestSortedUniqBy { { let result: _.LoDashImplicitArrayWrapper; - result = _(array).sortedUniqBy(listIterator); + result = _(array).sortedUniqBy(listIterator); result = _(array).sortedUniqBy('a'); - result = _(array).sortedUniqBy<{a: number}>({a: 42}); + result = _(array).sortedUniqBy({a: 42}); result = _(list).sortedUniqBy(listIterator); - result = _(list).sortedUniqBy(listIterator); result = _(list).sortedUniqBy('a'); result = _(list).sortedUniqBy({a: 42}); - result = _(list).sortedUniqBy<{a: number}, SampleObject>({a: 42}); } { @@ -2419,15 +2395,13 @@ namespace TestSortedUniqBy { { let result: _.LoDashExplicitArrayWrapper; - result = _(array).chain().sortedUniqBy(listIterator); + result = _(array).chain().sortedUniqBy(listIterator); result = _(array).chain().sortedUniqBy('a'); - result = _(array).chain().sortedUniqBy<{a: number}>({a: 42}); + result = _(array).chain().sortedUniqBy({a: 42}); result = _(list).chain().sortedUniqBy(listIterator); - result = _(list).chain().sortedUniqBy(listIterator); result = _(list).chain().sortedUniqBy('a'); result = _(list).chain().sortedUniqBy({a: 42}); - result = _(list).chain().sortedUniqBy<{a: number}, SampleObject>({a: 42}); } } @@ -2475,16 +2449,62 @@ namespace TestUnzip { // _.unzipWith { - let testUnzipWithArray: (number[]|_.List)[] | null | undefined = [] as any; + let testUnzipWithArray: Array> | null | undefined = [] as any; let testUnzipWithList: _.List> | null | undefined = [] as any; - let testUnzipWithIterator: {(prev: TResult, curr: number, index?: number, list?: number[]): TResult} = (prev: TResult, curr: number, index?: number, list?: number[]) => ({ a: 1, b: "", c: true }); - let result: TResult[]; - result = _.unzipWith(testUnzipWithArray); - result = _.unzipWith(testUnzipWithArray, testUnzipWithIterator); - result = _.unzipWith(testUnzipWithList); - result = _.unzipWith(testUnzipWithList, testUnzipWithIterator); - result = _(testUnzipWithArray).unzipWith(testUnzipWithIterator).value(); - result = _(testUnzipWithList).unzipWith(testUnzipWithIterator).value(); + + { + _.unzipWith(testUnzipWithArray); // $ExpectType number[][] + _.unzipWith(testUnzipWithList); // $ExpectType number[][] + _(testUnzipWithArray).unzipWith(); // $ExpectType LoDashImplicitWrapper + _(testUnzipWithList).unzipWith(); // $ExpectType LoDashImplicitWrapper + _.chain(testUnzipWithArray).unzipWith(); // $ExpectType LoDashExplicitWrapper + _.chain(testUnzipWithList).unzipWith(); // $ExpectType LoDashExplicitWrapper + } + + { + let result: TResult[]; + result = _.unzipWith(testUnzipWithArray, (...group) => { + group; // $ExpectType number[] + return any as TResult; + }); + result = _.unzipWith(testUnzipWithArray, (value1, value2, value3) => { + value1; // $ExpectType number + value2; // $ExpectType number + value3; // $ExpectType number + return any as TResult; + }); + result = _.unzipWith(testUnzipWithList, (...group) => { + group; // $ExpectType number[] + return any as TResult; + }); + result = _.unzipWith(testUnzipWithList, (value1, value2, value3) => { + value1; // $ExpectType number + value2; // $ExpectType number + value3; // $ExpectType number + return any as TResult; + }); + + result = _(testUnzipWithArray).unzipWith((...group): TResult => { + group; // $ExpectType number[] + return any as TResult; + }).value(); + result = _(testUnzipWithArray).unzipWith((value1, value2, value3) => { + value1; // $ExpectType number + value2; // $ExpectType number + value3; // $ExpectType number + return any as TResult; + }).value(); + result = _(testUnzipWithList).unzipWith((...group): TResult => { + group; // $ExpectType number[] + return any as TResult; + }).value(); + result = _(testUnzipWithList).unzipWith((value1, value2, value3) => { + value1; // $ExpectType number + value2; // $ExpectType number + value3; // $ExpectType number + return any as TResult; + }).value(); + } } // _.without @@ -2629,8 +2649,8 @@ namespace TestZipObject { { let result: _.Dictionary; - result = _.zipObject<_.Dictionary>(arrayOfKeys); - result = _.zipObject<_.Dictionary>(listOfKeys); + result = _.zipObject(arrayOfKeys); + result = _.zipObject(listOfKeys); } { @@ -2641,13 +2661,13 @@ namespace TestZipObject { result = _.zipObject<_.Dictionary>(listOfKeys, listOfValues); result = _.zipObject<_.Dictionary>(listOfKeys, arrayOfValues); - result = _.zipObject>(arrayOfKeys, arrayOfValues); - result = _.zipObject>(arrayOfKeys, listOfValues); - result = _.zipObject>(listOfKeys, listOfValues); - result = _.zipObject>(listOfKeys, arrayOfValues); + result = _.zipObject(arrayOfKeys, arrayOfValues); + result = _.zipObject(arrayOfKeys, listOfValues); + result = _.zipObject(listOfKeys, listOfValues); + result = _.zipObject(listOfKeys, arrayOfValues); - result = _.zipObject<_.Dictionary>(arrayOfKeyValuePairs); - result = _.zipObject<_.Dictionary>(listOfKeyValuePairs); + result = _.zipObject(arrayOfKeyValuePairs); + result = _.zipObject(listOfKeyValuePairs); } { @@ -2667,15 +2687,15 @@ namespace TestZipObject { result = _.zipObject(listOfKeys, arrayOfValues); result = _.zipObjectDeep(listOfKeys, arrayOfValues); - result = _.zipObject<_.Dictionary>(arrayOfKeyValuePairs); - result = _.zipObject<_.Dictionary>(listOfKeyValuePairs); + result = _.zipObject(arrayOfKeyValuePairs); + result = _.zipObject(listOfKeyValuePairs); } { let result: _.LoDashImplicitObjectWrapper<_.Dictionary>; - result = _(arrayOfKeys).zipObject<_.Dictionary>(); - result = _(listOfKeys).zipObject<_.Dictionary>(); + result = _(arrayOfKeys).zipObject(); + result = _(listOfKeys).zipObject(); } { @@ -2686,13 +2706,13 @@ namespace TestZipObject { result = _(listOfKeys).zipObject<_.Dictionary>(listOfValues); result = _(listOfKeys).zipObject<_.Dictionary>(arrayOfValues); - result = _(arrayOfKeys).zipObject>(arrayOfValues); - result = _(arrayOfKeys).zipObject>(listOfValues); - result = _(listOfKeys).zipObject>(listOfValues); - result = _(listOfKeys).zipObject>(arrayOfValues); + result = _(arrayOfKeys).zipObject(arrayOfValues); + result = _(arrayOfKeys).zipObject(listOfValues); + result = _(listOfKeys).zipObject(listOfValues); + result = _(listOfKeys).zipObject(arrayOfValues); - result = _(listOfKeys).zipObject<_.Dictionary>(arrayOfKeyValuePairs); - result = _(listOfKeys).zipObject<_.Dictionary>(listOfKeyValuePairs); + result = _(listOfKeys).zipObject(arrayOfKeyValuePairs); + result = _(listOfKeys).zipObject(listOfKeyValuePairs); } { @@ -2721,8 +2741,8 @@ namespace TestZipObject { { let result: _.LoDashExplicitObjectWrapper<_.Dictionary>; - result = _(arrayOfKeys).chain().zipObject<_.Dictionary>(); - result = _(listOfKeys).chain().zipObject<_.Dictionary>(); + result = _(arrayOfKeys).chain().zipObject(); + result = _(listOfKeys).chain().zipObject(); } { @@ -2733,13 +2753,13 @@ namespace TestZipObject { result = _(listOfKeys).chain().zipObject<_.Dictionary>(listOfValues); result = _(listOfKeys).chain().zipObject<_.Dictionary>(arrayOfValues); - result = _(arrayOfKeys).chain().zipObject>(arrayOfValues); - result = _(arrayOfKeys).chain().zipObject>(listOfValues); - result = _(listOfKeys).chain().zipObject>(listOfValues); - result = _(listOfKeys).chain().zipObject>(arrayOfValues); + result = _(arrayOfKeys).chain().zipObject(arrayOfValues); + result = _(arrayOfKeys).chain().zipObject(listOfValues); + result = _(listOfKeys).chain().zipObject(listOfValues); + result = _(listOfKeys).chain().zipObject(arrayOfValues); - result = _(listOfKeys).chain().zipObject<_.Dictionary>(arrayOfKeyValuePairs); - result = _(listOfKeys).chain().zipObject<_.Dictionary>(listOfKeyValuePairs); + result = _(listOfKeys).chain().zipObject(arrayOfKeyValuePairs); + result = _(listOfKeys).chain().zipObject(listOfKeyValuePairs); } { @@ -2767,18 +2787,157 @@ namespace TestZipObject { } // _.zipWith -interface TestZipWithFn { - (a1: number, a2: number): number; +namespace TestZipWith { + type TestZipWithFn = (a1: number, a2: number) => number; + + { + let result: number[][]; + result = _.zipWith([1, 2]); + result = _.zipWith([1, 2], [3, 4], [5, 6]); + result = _([1, 2]).zipWith().value(); + result = _([1, 2]).zipWith([3, 4], [5, 6]).value(); + result = _.chain([1, 2]).zipWith().value(); + result = _.chain([1, 2]).zipWith([3, 4], [5, 6]).value(); + } + { + let result: number[]; + + result = _.zipWith([1, 2], (value1) => { + value1; // $ExpectType number + return 1; + }); + result = _.zipWith([1, 2], [1, 2], (value1, value2) => { + value1; // $ExpectType number + value2; // $ExpectType number + return 1; + }); + result = _.zipWith([1, 2], [1, 2], [1, 2], (value1, value2, value3) => { + value1; // $ExpectType number + value2; // $ExpectType number + value3; // $ExpectType number + return 1; + }); + result = _.zipWith([1, 2], [1, 2], [1, 2], [1, 2], (value1, value2, value3, value4) => { + value1; // $ExpectType number + value2; // $ExpectType number + value3; // $ExpectType number + value4; // $ExpectType number + return 1; + }); + result = _.zipWith([1, 2], [1, 2], [1, 2], [1, 2], [1, 2], (value1, value2, value3, value4, value5) => { + value1; // $ExpectType number + value2; // $ExpectType number + value3; // $ExpectType number + value4; // $ExpectType number + value5; // $ExpectType number + return 1; + }); + result = _.zipWith([1, 2], [1, 2], [1, 2], [1, 2], [1, 2], [1, 2], (value1, value2, value3, value4, value5, value6) => { + value1; // $ExpectType number + value2; // $ExpectType number + value3; // $ExpectType number + value4; // $ExpectType number + value5; // $ExpectType number + value6; // $ExpectType number + return 1; + }); + result = _.zipWith([1, 2], [1, 2], [1, 2], (...group: number[]) => 1); + result = _.zipWith([1, 2], [1, 2], [1, 2], [1, 2], [1, 2], [1, 2], (...group) => { + group; // $ExpectType number[] + return 1; + }); + + result = _([1, 2]).zipWith((value1) => { + value1; // $ExpectType number + return 1; + }).value(); + result = _([1, 2]).zipWith([1, 2], (value1, value2) => { + value1; // $ExpectType number + value2; // $ExpectType number + return 1; + }).value(); + result = _([1, 2]).zipWith([1, 2], [1, 2], (value1, value2, value3) => { + value1; // $ExpectType number + value2; // $ExpectType number + value3; // $ExpectType number + return 1; + }).value(); + result = _([1, 2]).zipWith([1, 2], [1, 2], [1, 2], (value1, value2, value3, value4) => { + value1; // $ExpectType number + value2; // $ExpectType number + value3; // $ExpectType number + value4; // $ExpectType number + return 1; + }).value(); + result = _([1, 2]).zipWith([1, 2], [1, 2], [1, 2], [1, 2], (value1, value2, value3, value4, value5) => { + value1; // $ExpectType number + value2; // $ExpectType number + value3; // $ExpectType number + value4; // $ExpectType number + value5; // $ExpectType number + return 1; + }).value(); + result = _([1, 2]).zipWith([1, 2], [1, 2], [1, 2], [1, 2], [1, 2], (value1, value2, value3, value4, value5, value6) => { + value1; // $ExpectType number + value2; // $ExpectType number + value3; // $ExpectType number + value4; // $ExpectType number + value5; // $ExpectType number + value6; // $ExpectType number + return 1; + }).value(); + result = _([1, 2]).zipWith([1, 2], [1, 2], (...group: number[]) => 1).value(); + result = _([1, 2]).zipWith([1, 2], [1, 2], [1, 2], [1, 2], [1, 2], (...group) => { + group; // $ExpectType number[] + return 1; + }).value(); + + result = _.chain([1, 2]).zipWith((value1) => { + value1; // $ExpectType number + return 1; + }).value(); + result = _.chain([1, 2]).zipWith([1, 2], (value1, value2) => { + value1; // $ExpectType number + value2; // $ExpectType number + return 1; + }).value(); + result = _.chain([1, 2]).zipWith([1, 2], [1, 2], (value1, value2, value3) => { + value1; // $ExpectType number + value2; // $ExpectType number + value3; // $ExpectType number + return 1; + }).value(); + result = _.chain([1, 2]).zipWith([1, 2], [1, 2], [1, 2], (value1, value2, value3, value4) => { + value1; // $ExpectType number + value2; // $ExpectType number + value3; // $ExpectType number + value4; // $ExpectType number + return 1; + }).value(); + result = _.chain([1, 2]).zipWith([1, 2], [1, 2], [1, 2], [1, 2], (value1, value2, value3, value4, value5) => { + value1; // $ExpectType number + value2; // $ExpectType number + value3; // $ExpectType number + value4; // $ExpectType number + value5; // $ExpectType number + return 1; + }).value(); + result = _.chain([1, 2]).zipWith([1, 2], [1, 2], [1, 2], [1, 2], [1, 2], (value1, value2, value3, value4, value5, value6) => { + value1; // $ExpectType number + value2; // $ExpectType number + value3; // $ExpectType number + value4; // $ExpectType number + value5; // $ExpectType number + value6; // $ExpectType number + return 1; + }).value(); + result = _.chain([1, 2]).zipWith([1, 2], [1, 2], (...group: number[]) => 1).value(); + result = _.chain([1, 2]).zipWith([1, 2], [1, 2], [1, 2], [1, 2], [1, 2], (...group) => { + group; // $ExpectType number[] + return 1; + }).value(); + } } -let testZipWithFn: TestZipWithFn = (a1, a2) => 1; -result = _.zipWith([1, 2]); -result = _.zipWith([1, 2], testZipWithFn); -result = _.zipWith([1, 2], [1, 2], testZipWithFn); -result = _.zipWith([1, 2], [1, 2], [1, 2], [1, 2], [1, 2], [1, 2], testZipWithFn); -result = _([1, 2]).zipWith().value(); -result = _([1, 2]).zipWith(testZipWithFn).value(); -result = _([1, 2]).zipWith([1, 2], testZipWithFn).value(); -result = _([1, 2]).zipWith([1, 2], [1, 2], [1, 2], [1, 2], [1, 2], testZipWithFn).value(); /********* * Chain * @@ -2868,7 +3027,7 @@ namespace TestTap { { let interceptor = (value: {a: string}) => {}; - let result: _.LoDashImplicitObjectWrapper<{a: string}>; + let result: _.LoDashImplicitWrapper<{a: string}>; _.chain({a: ''}).tap(interceptor); @@ -2895,7 +3054,7 @@ namespace TestTap { { let interceptor = (value: {a: string}) => {}; - let result: _.LoDashExplicitObjectWrapper<{a: string}>; + let result: _.LoDashExplicitWrapper<{a: string}>; _.chain({a: ''}).tap(interceptor); @@ -2948,7 +3107,7 @@ namespace TestThru { let interceptor: Interceptor = (x) => x; let result: _.LoDashImplicitArrayWrapper; - result = _([1, 2, 3]).thru(interceptor); + result = _([1, 2, 3]).thru(interceptor); } { @@ -2983,7 +3142,7 @@ namespace TestThru { let interceptor: Interceptor = (x) => x; let result: _.LoDashExplicitArrayWrapper; - result = _([1, 2, 3]).chain().thru(interceptor); + result = _([1, 2, 3]).chain().thru(interceptor); } } @@ -3037,13 +3196,13 @@ namespace TestConcat { { let result: _.LoDashImplicitArrayWrapper; - result = _(['']).concat(['']); - result = _(['']).concat([''], ['']); - result = _(['']).concat([''], [''], ['']); + result = _(['']).concat(['']); + result = _(['']).concat([''], ['']); + result = _(['']).concat([''], [''], ['']); - result = _(['']).concat(['']); - result = _(['']).concat([''], ['']); - result = _(['']).concat([''], [''], ['']); + result = _(['']).concat(['']); + result = _(['']).concat([''], ['']); + result = _(['']).concat([''], [''], ['']); } { @@ -3073,13 +3232,13 @@ namespace TestConcat { { let result: _.LoDashExplicitArrayWrapper; - result = _(['']).chain().concat(['']); - result = _(['']).chain().concat([''], ['']); - result = _(['']).chain().concat([''], [''], ['']); + result = _(['']).chain().concat(['']); + result = _(['']).chain().concat([''], ['']); + result = _(['']).chain().concat([''], [''], ['']); - result = _(['']).chain().concat(['']); - result = _(['']).chain().concat([''], ['']); - result = _(['']).chain().concat([''], [''], ['']); + result = _(['']).chain().concat(['']); + result = _(['']).chain().concat([''], ['']); + result = _(['']).chain().concat([''], [''], ['']); } { @@ -3123,7 +3282,7 @@ namespace TestPlant { } { - let result: _.LoDashImplicitObjectWrapper<{}>; + let result: _.LoDashImplicitWrapper<{}>; result = _(any).plant<{}>({}); } @@ -3153,7 +3312,7 @@ namespace TestPlant { } { - let result: _.LoDashExplicitObjectWrapper<{}>; + let result: _.LoDashExplicitWrapper<{}>; result = _(any).chain().plant<{}>({}); } } @@ -3197,8 +3356,8 @@ namespace TestToJSON { { let result: string[]; - result = _([]).toJSON(); - result = _([]).chain().toJSON(); + result = _(['']).toJSON(); + result = _(['']).chain().toJSON(); } { @@ -3216,13 +3375,13 @@ namespace TestToString { result = _('').toString(); result = _(42).toString(); result = _(true).toString(); - result = _(['']).toString(); + result = _(['']).toString(); result = _({}).toString(); result = _('').chain().toString(); result = _(42).chain().toString(); result = _(true).chain().toString(); - result = _(['']).chain().toString(); + result = _(['']).chain().toString(); result = _({}).chain().toString(); } @@ -3252,8 +3411,8 @@ namespace TestValue { { let result: string[]; - result = _([]).value(); - result = _([]).chain().value(); + result = _(['']).value(); + result = _(['']).chain().value(); } { @@ -3290,8 +3449,8 @@ namespace TestValueOf { { let result: string[]; - result = _([]).valueOf(); - result = _([]).chain().valueOf(); + result = _(['']).valueOf(); + result = _(['']).chain().valueOf(); } { @@ -3345,7 +3504,7 @@ namespace TestCountBy { let dictionary: _.Dictionary | null | undefined = obj; let numericDictionary: _.NumericDictionary | null | undefined = obj; - let stringIterator: (value: string, index: number, collection: ArrayLike) => any = (value: string, index: number, collection: ArrayLike) => 1; + let stringIterator: (value: string, index: number, collection: string) => any = (value: string, index: number, collection: string) => 1; let listIterator: (value: TResult, index: number, collection: _.List) => any = (value: TResult, index: number, collection: _.List) => 1; let dictionaryIterator: (value: TResult, key: string, collection: _.Dictionary) => any = (value: TResult, key: string, collection: _.Dictionary) => 1; let numericDictionaryIterator: (value: TResult, key: number, collection: _.NumericDictionary) => any = (value: TResult, key: number, collection: _.NumericDictionary) => 1; @@ -3359,25 +3518,25 @@ namespace TestCountBy { result = _.countBy(array); result = _.countBy(array, listIterator); result = _.countBy(array, ''); - result = _.countBy<{a: number}, TResult>(array, {a: 42}); + result = _.countBy(array, {a: 42}); result = _.countBy(array, {a: 42}); result = _.countBy(list); result = _.countBy(list, listIterator); result = _.countBy(list, ''); - result = _.countBy<{a: number}, TResult>(list, {a: 42}); + result = _.countBy(list, {a: 42}); result = _.countBy(list, {a: 42}); result = _.countBy(dictionary); - result = _.countBy(dictionary, dictionaryIterator); + result = _.countBy(dictionary, dictionaryIterator); result = _.countBy(dictionary, ''); - result = _.countBy<{a: number}, TResult>(dictionary, {a: 42}); + result = _.countBy(dictionary, {a: 42}); result = _.countBy(dictionary, {a: 42}); result = _.countBy(numericDictionary); result = _.countBy(numericDictionary, numericDictionaryIterator); result = _.countBy(numericDictionary, ''); - result = _.countBy<{a: number}, TResult>(numericDictionary, {a: 42}); + result = _.countBy(numericDictionary, {a: 42}); result = _.countBy(numericDictionary, {a: 42}); } @@ -3400,7 +3559,7 @@ namespace TestCountBy { result = _(list).countBy({a: 42}); result = _(dictionary).countBy(); - result = _(dictionary).countBy(dictionaryIterator); + result = _(dictionary).countBy(dictionaryIterator); result = _(dictionary).countBy(''); result = _(dictionary).countBy<{a: number}>({a: 42}); result = _(dictionary).countBy({a: 42}); @@ -3431,7 +3590,7 @@ namespace TestCountBy { result = _(list).chain().countBy({a: 42}); result = _(dictionary).chain().countBy(); - result = _(dictionary).chain().countBy(dictionaryIterator); + result = _(dictionary).chain().countBy(dictionaryIterator); result = _(dictionary).chain().countBy(''); result = _(dictionary).chain().countBy<{a: number}>({a: 42}); result = _(dictionary).chain().countBy({a: 42}); @@ -3526,7 +3685,7 @@ namespace TestEach { { let result: _.LoDashImplicitObjectWrapper<_.Dictionary>; - result = _(dictionary).each(dictionaryIterator); + result = _(dictionary).each(dictionaryIterator); } { @@ -3550,7 +3709,7 @@ namespace TestEach { { let result: _.LoDashExplicitObjectWrapper<_.Dictionary>; - result = _(dictionary).chain().each(dictionaryIterator); + result = _(dictionary).chain().each(dictionaryIterator); } } @@ -3636,7 +3795,7 @@ namespace TestEachRight { { let result: _.LoDashImplicitObjectWrapper<_.Dictionary>; - result = _(dictionary).eachRight(dictionaryIterator); + result = _(dictionary).eachRight(dictionaryIterator); } { @@ -3660,7 +3819,7 @@ namespace TestEachRight { { let result: _.LoDashExplicitObjectWrapper<_.Dictionary>; - result = _(dictionary).chain().eachRight(dictionaryIterator); + result = _(dictionary).chain().eachRight(dictionaryIterator); } } @@ -3694,7 +3853,7 @@ namespace TestEvery { result = _.every(list, {a: 42}); result = _.every(dictionary); - result = _.every(dictionary, dictionaryIterator); + result = _.every(dictionary, dictionaryIterator); result = _.every(dictionary, 'a'); result = _.every(dictionary, ['a', 42]); result = _.every(dictionary, {a: 42}); @@ -3718,7 +3877,7 @@ namespace TestEvery { result = _(list).every({a: 42}); result = _(dictionary).every(); - result = _(dictionary).every(dictionaryIterator); + result = _(dictionary).every(dictionaryIterator); result = _(dictionary).every('a'); result = _(dictionary).every(['a', 42]); result = _(dictionary).every({a: 42}); @@ -3746,7 +3905,7 @@ namespace TestEvery { result = _(list).chain().every({a: 42}); result = _(dictionary).chain().every(); - result = _(dictionary).chain().every(dictionaryIterator); + result = _(dictionary).chain().every(dictionaryIterator); result = _(dictionary).chain().every('a'); result = _(dictionary).chain().every(['a', 42]); result = _(dictionary).chain().every({a: 42}); @@ -3781,21 +3940,18 @@ namespace TestFilter { result = _.filter(array, listIterator); result = _.filter(array, ''); - result = _.filter(array, /./); result = _.filter(array, {a: 42}); result = _.filter(array, ["a", 42]); result = _.filter(list, listIterator); result = _.filter(list, ''); - result = _.filter(list, /./); result = _.filter(list, {a: 42}); result = _.filter(list, ["a", 42]); - result = _.filter(dictionary, dictionaryIterator); - result = _.filter(dictionary, ''); - result = _.filter(dictionary, /./); - result = _.filter(dictionary, {a: 42}); - result = _.filter(dictionary, ["a", 42]); + result = _.filter(dictionary, dictionaryIterator); + result = _.filter(dictionary, ''); + result = _.filter(dictionary, {a: 42}); + result = _.filter(dictionary, ["a", 42]); } { @@ -3809,21 +3965,18 @@ namespace TestFilter { result = _(array).filter(listIterator); result = _(array).filter(''); - result = _(array).filter(/./); result = _(array).filter({a: 42}); result = _(array).filter(["a", 42]); result = _(list).filter(listIterator); result = _(list).filter(''); - result = _(list).filter(/./); result = _(list).filter({a: 42}); result = _(list).filter(["a", 42]); - result = _(dictionary).filter(dictionaryIterator); - result = _(dictionary).filter(''); - result = _(dictionary).filter(/./); - result = _(dictionary).filter({a: 42}); - result = _(dictionary).filter(["a", 42]); + result = _(dictionary).filter(dictionaryIterator); + result = _(dictionary).filter(''); + result = _(dictionary).filter({a: 42}); + result = _(dictionary).filter(["a", 42]); } { @@ -3837,21 +3990,18 @@ namespace TestFilter { result = _(array).chain().filter(listIterator); result = _(array).chain().filter(''); - result = _(array).chain().filter(/./); result = _(array).chain().filter({a: 42}); result = _(array).chain().filter(["a", 42]); result = _(list).chain().filter(listIterator); result = _(list).chain().filter(''); - result = _(list).chain().filter(/./); result = _(list).chain().filter({a: 42}); result = _(list).chain().filter(["a", 42]); - result = _(dictionary).chain().filter(dictionaryIterator); - result = _(dictionary).chain().filter(''); - result = _(dictionary).chain().filter(/./); - result = _(dictionary).chain().filter({a: 42}); - result = _(dictionary).chain().filter(["a", 42]); + result = _(dictionary).chain().filter(dictionaryIterator); + result = _(dictionary).chain().filter(''); + result = _(dictionary).chain().filter({a: 42}); + result = _(dictionary).chain().filter(["a", 42]); } { @@ -3861,10 +4011,10 @@ namespace TestFilter { _.filter(a2, (item: string | number): item is number => typeof item === "number"); // $ExpectType number[] _.filter(d2, (item: string | number): item is number => typeof item === "number"); // $ExpectType number[] - _(a2).filter((item: string | number): item is number => typeof item === "number"); // $ExpectType LoDashImplicitArrayWrapper - _(d2).filter((item: string | number): item is number => typeof item === "number"); // $ExpectType LoDashImplicitArrayWrapper - _(a2).chain().filter((item: string | number): item is number => typeof item === "number"); // $ExpectType LoDashExplicitArrayWrapper - _(d2).chain().filter((item: string | number): item is number => typeof item === "number"); // $ExpectType LoDashExplicitArrayWrapper + _(a2).filter((item: string | number): item is number => typeof item === "number"); // $ExpectType LoDashImplicitWrapper + _(d2).filter((item: string | number): item is number => typeof item === "number"); // $ExpectType LoDashImplicitWrapper + _(a2).chain().filter((item: string | number): item is number => typeof item === "number"); // $ExpectType LoDashExplicitWrapper + _(d2).chain().filter((item: string | number): item is number => typeof item === "number"); // $ExpectType LoDashExplicitWrapper } } @@ -3903,13 +4053,13 @@ namespace TestFind { result = _.find(list, ['a', 5], 1); result = _.find(dictionary); - result = _.find(dictionary); - result = _.find(dictionary, dictionaryIterator); - result = _.find(dictionary, dictionaryIterator, 1); - result = _.find(dictionary, ''); - result = _.find(dictionary, '', 1); - result = _.find(dictionary, {a: 42}); - result = _.find(dictionary, {a: 42}, 1); + result = _.find(dictionary); + result = _.find(dictionary, dictionaryIterator); + result = _.find(dictionary, dictionaryIterator, 1); + result = _.find(dictionary, ''); + result = _.find(dictionary, '', 1); + result = _.find(dictionary, {a: 42}); + result = _.find(dictionary, {a: 42}, 1); result = _.find(dictionary, ['a', 5]); result = _.find(dictionary, ['a', 5], 1); @@ -3933,15 +4083,15 @@ namespace TestFind { result = _(list).find(['a', 5]); result = _(list).find(['a', 5], 1); - result = _(dictionary).find(); - result = _(dictionary).find(dictionaryIterator); - result = _(dictionary).find(dictionaryIterator, 1); - result = _(dictionary).find(''); - result = _(dictionary).find('', 1); - result = _(dictionary).find({a: 42}); - result = _(dictionary).find({a: 42}, 1); - result = _(dictionary).find(['a', 5]); - result = _(dictionary).find(['a', 5], 1); + result = _(dictionary).find(); + result = _(dictionary).find(dictionaryIterator); + result = _(dictionary).find(dictionaryIterator, 1); + result = _(dictionary).find(''); + result = _(dictionary).find('', 1); + result = _(dictionary).find({a: 42}); + result = _(dictionary).find({a: 42}, 1); + result = _(dictionary).find(['a', 5]); + result = _(dictionary).find(['a', 5], 1); result = _.find([any as TResult, null, undefined], (value: TResult | null | undefined): value is TResult | undefined => value !== null); result = _([any as TResult, null, undefined]).find((value: TResult | null | undefined): value is TResult | undefined => value !== null); @@ -3982,13 +4132,13 @@ namespace TestFindLast { result = _.findLast(list, ['a', 5], 1); result = _.findLast(dictionary); - result = _.findLast(dictionary); - result = _.findLast(dictionary, dictionaryIterator); - result = _.findLast(dictionary, dictionaryIterator, 1); - result = _.findLast(dictionary, ''); - result = _.findLast(dictionary, '', 1); - result = _.findLast(dictionary, {a: 42}); - result = _.findLast(dictionary, {a: 42}, 1); + result = _.findLast(dictionary); + result = _.findLast(dictionary, dictionaryIterator); + result = _.findLast(dictionary, dictionaryIterator, 1); + result = _.findLast(dictionary, ''); + result = _.findLast(dictionary, '', 1); + result = _.findLast(dictionary, {a: 42}); + result = _.findLast(dictionary, {a: 42}, 1); result = _.findLast(dictionary, ['a', 5]); result = _.findLast(dictionary, ['a', 5], 1); @@ -4012,15 +4162,15 @@ namespace TestFindLast { result = _(list).findLast(['a', 5]); result = _(list).findLast(['a', 5], 1); - result = _(dictionary).findLast(); - result = _(dictionary).findLast(dictionaryIterator); - result = _(dictionary).findLast(dictionaryIterator, 1); - result = _(dictionary).findLast(''); - result = _(dictionary).findLast('', 1); - result = _(dictionary).findLast({a: 42}); - result = _(dictionary).findLast({a: 42}, 1); - result = _(dictionary).findLast(['a', 5]); - result = _(dictionary).findLast(['a', 5], 1); + result = _(dictionary).findLast(); + result = _(dictionary).findLast(dictionaryIterator); + result = _(dictionary).findLast(dictionaryIterator, 1); + result = _(dictionary).findLast(''); + result = _(dictionary).findLast('', 1); + result = _(dictionary).findLast({a: 42}); + result = _(dictionary).findLast({a: 42}, 1); + result = _(dictionary).findLast(['a', 5]); + result = _(dictionary).findLast(['a', 5], 1); result = _.findLast([any as TResult, null, undefined], (value: TResult | null | undefined): value is TResult | undefined => value !== null); result = _([any as TResult, null, undefined]).findLast((value: TResult | null | undefined): value is TResult | undefined => value !== null); @@ -4068,7 +4218,7 @@ namespace TestFlatMap { result = _.flatMap(numArray, listIterator); result = _.flatMap(numArray, listIterator); - result = _.flatMap(objArray, 'a'); + result = _.flatMap(objArray, 'a'); result = _.flatMap(numList); result = _.flatMap(numList); @@ -4076,15 +4226,14 @@ namespace TestFlatMap { result = _.flatMap(numList, listIterator); result = _.flatMap(numList, listIterator); - result = _.flatMap(objList, 'a'); + result = _.flatMap(objList, 'a'); result = _.flatMap(numDictionary); result = _.flatMap(numDictionary); result = _.flatMap(numDictionary, dictionaryIterator); - result = _.flatMap(numDictionary, dictionaryIterator); - result = _.flatMap(objDictionary, 'a'); + result = _.flatMap(objDictionary, 'a'); result = _.flatMap(numNumericDictionary); result = _.flatMap(numNumericDictionary); @@ -4092,7 +4241,7 @@ namespace TestFlatMap { result = _.flatMap(numNumericDictionary, numericDictionaryIterator); result = _.flatMap(numNumericDictionary, numericDictionaryIterator); - result = _.flatMap<_.NumericDictionary<{a: number}|{a: number}[]>, number>(objNumericDictionary, 'a'); + result = _.flatMap(objNumericDictionary, 'a'); } { @@ -4115,27 +4264,26 @@ namespace TestFlatMap { let result: _.LoDashImplicitArrayWrapper; result = _('abc').flatMap(); - result = _('abc').flatMap(stringIterator); } { let result: _.LoDashImplicitArrayWrapper; result = _(numArray).flatMap(); - result = _(numArray).flatMap(listIterator); - result = _(objArray).flatMap('a'); + result = _(numArray).flatMap(listIterator); + result = _(objArray).flatMap('a'); result = _(numList).flatMap(); result = _(numList).flatMap(listIterator); - result = _(objList).flatMap('a'); + result = _(objList).flatMap('a'); result = _(numDictionary).flatMap(); - result = _(numDictionary).flatMap(dictionaryIterator); - result = _(objDictionary).flatMap('a'); + result = _(numDictionary).flatMap(dictionaryIterator); + result = _(objDictionary).flatMap('a'); result = _(numNumericDictionary).flatMap(); result = _(numNumericDictionary).flatMap(numericDictionaryIterator); - result = _(objNumericDictionary).flatMap('a'); + result = _(objNumericDictionary).flatMap('a'); } { @@ -4158,27 +4306,26 @@ namespace TestFlatMap { let result: _.LoDashExplicitArrayWrapper; result = _('abc').chain().flatMap(); - result = _('abc').chain().flatMap(stringIterator); } { let result: _.LoDashExplicitArrayWrapper; result = _(numArray).chain().flatMap(); - result = _(numArray).chain().flatMap(listIterator); - result = _(objArray).chain().flatMap('a'); + result = _(numArray).chain().flatMap(listIterator); + result = _(objArray).chain().flatMap('a'); result = _(numList).chain().flatMap(); result = _(numList).chain().flatMap(listIterator); - result = _(objList).chain().flatMap('a'); + result = _(objList).chain().flatMap('a'); result = _(numDictionary).chain().flatMap(); - result = _(numDictionary).chain().flatMap(dictionaryIterator); - result = _(objDictionary).chain().flatMap('a'); + result = _(numDictionary).chain().flatMap(dictionaryIterator); + result = _(objDictionary).chain().flatMap('a'); result = _(numNumericDictionary).chain().flatMap(); result = _(numNumericDictionary).chain().flatMap(numericDictionaryIterator); - result = _(objNumericDictionary).chain().flatMap('a'); + result = _(objNumericDictionary).chain().flatMap('a'); } { @@ -4232,25 +4379,25 @@ namespace TestFlatMapDeep { { let result: number[]; - result = _.flatMapDeep(numArray); + result = _.flatMapDeep(numArray); result = _.flatMapDeep(numArray, listIterator); result = _.flatMapDeep(objArray, 'a'); - result = _.flatMapDeep(numList); + result = _.flatMapDeep(numList); result = _.flatMapDeep(numList, listIterator); result = _.flatMapDeep(objList, 'a'); - result = _.flatMapDeep(numDictionary); + result = _.flatMapDeep(numDictionary); result = _.flatMapDeep(numDictionary, dictionaryIterator); result = _.flatMapDeep(objDictionary, 'a'); - result = _.flatMapDeep(numNumericDictionary); + result = _.flatMapDeep(numNumericDictionary); result = _.flatMapDeep(numNumericDictionary, numericDictionaryIterator); @@ -4283,19 +4430,19 @@ namespace TestFlatMapDeep { { let result: _.LoDashImplicitArrayWrapper; - result = _(numArray).flatMapDeep(); + result = _(numArray).flatMapDeep(); result = _(numArray).flatMapDeep(listIterator); result = _(objArray).flatMapDeep('a'); - result = _(numList).flatMapDeep(); + result = _(numList).flatMapDeep(); result = _(numList).flatMapDeep(listIterator); result = _(objList).flatMapDeep('a'); - result = _(numDictionary).flatMapDeep(); + result = _(numDictionary).flatMapDeep(); result = _(numDictionary).flatMapDeep(dictionaryIterator); result = _(objDictionary).flatMapDeep('a'); - result = _(numNumericDictionary).flatMapDeep(); + result = _(numNumericDictionary).flatMapDeep(); result = _(numNumericDictionary).flatMapDeep(numericDictionaryIterator); result = _(objNumericDictionary).flatMapDeep('a'); } @@ -4326,19 +4473,19 @@ namespace TestFlatMapDeep { { let result: _.LoDashExplicitArrayWrapper; - result = _(numArray).chain().flatMapDeep(); + result = _(numArray).chain().flatMapDeep(); result = _(numArray).chain().flatMapDeep(listIterator); result = _(objArray).chain().flatMapDeep('a'); - result = _(numList).chain().flatMapDeep(); + result = _(numList).chain().flatMapDeep(); result = _(numList).chain().flatMapDeep(listIterator); result = _(objList).chain().flatMapDeep('a'); - result = _(numDictionary).chain().flatMapDeep(); + result = _(numDictionary).chain().flatMapDeep(); result = _(numDictionary).chain().flatMapDeep(dictionaryIterator); result = _(objDictionary).chain().flatMapDeep('a'); - result = _(numNumericDictionary).chain().flatMapDeep(); + result = _(numNumericDictionary).chain().flatMapDeep(); result = _(numNumericDictionary).chain().flatMapDeep(numericDictionaryIterator); result = _(objNumericDictionary).chain().flatMapDeep('a'); } @@ -4394,25 +4541,25 @@ namespace TestFlatMapDepth { { let result: number[]; - result = _.flatMapDepth(numArray); + result = _.flatMapDepth(numArray); result = _.flatMapDepth(numArray, listIterator, 1); result = _.flatMapDepth(objArray, 'a'); - result = _.flatMapDepth(numList); + result = _.flatMapDepth(numList); result = _.flatMapDepth(numList, listIterator, 1); result = _.flatMapDepth(objList, 'a', 1); - result = _.flatMapDepth(numDictionary); + result = _.flatMapDepth(numDictionary); result = _.flatMapDepth(numDictionary, dictionaryIterator, 1); result = _.flatMapDepth(objDictionary, 'a', 1); - result = _.flatMapDepth(numNumericDictionary); + result = _.flatMapDepth(numNumericDictionary); result = _.flatMapDepth(numNumericDictionary, numericDictionaryIterator, 1); @@ -4445,19 +4592,19 @@ namespace TestFlatMapDepth { { let result: _.LoDashImplicitArrayWrapper; - result = _(numArray).flatMapDepth(); + result = _(numArray).flatMapDepth(); result = _(numArray).flatMapDepth(listIterator, 1); result = _(objArray).flatMapDepth('a', 1); - result = _(numList).flatMapDepth(); + result = _(numList).flatMapDepth(); result = _(numList).flatMapDepth(listIterator, 1); result = _(objList).flatMapDepth('a', 1); - result = _(numDictionary).flatMapDepth(); + result = _(numDictionary).flatMapDepth(); result = _(numDictionary).flatMapDepth(dictionaryIterator, 1); result = _(objDictionary).flatMapDepth('a', 1); - result = _(numNumericDictionary).flatMapDepth(); + result = _(numNumericDictionary).flatMapDepth(); result = _(numNumericDictionary).flatMapDepth(numericDictionaryIterator, 1); result = _(objNumericDictionary).flatMapDepth('a', 1); } @@ -4488,19 +4635,19 @@ namespace TestFlatMapDepth { { let result: _.LoDashExplicitArrayWrapper; - result = _(numArray).chain().flatMapDepth(); + result = _(numArray).chain().flatMapDepth(); result = _(numArray).chain().flatMapDepth(listIterator, 1); result = _(objArray).chain().flatMapDepth('a', 1); - result = _(numList).chain().flatMapDepth(); + result = _(numList).chain().flatMapDepth(); result = _(numList).chain().flatMapDepth(listIterator, 1); result = _(objList).chain().flatMapDepth('a', 1); - result = _(numDictionary).chain().flatMapDepth(); + result = _(numDictionary).chain().flatMapDepth(); result = _(numDictionary).chain().flatMapDepth(dictionaryIterator, 1); result = _(objDictionary).chain().flatMapDepth('a', 1); - result = _(numNumericDictionary).chain().flatMapDepth(); + result = _(numNumericDictionary).chain().flatMapDepth(); result = _(numNumericDictionary).chain().flatMapDepth(numericDictionaryIterator, 1); result = _(objNumericDictionary).chain().flatMapDepth('a', 1); } @@ -4564,8 +4711,7 @@ namespace TestForEach { result = _.forEach(array, (value, index, collection) => { value; // $ExpectType TResult index; // $ExpectType number - // Note: ideally we'd like collection TResult[], but it seems the best we can get is List. - collection; // $ExpectType ArrayLike + collection; // $ExpectType TResult[] }); } @@ -4579,8 +4725,7 @@ namespace TestForEach { result = _.forEach(nilArray, (value, index, collection) => { value; // $ExpectType TResult index; // $ExpectType number - // Note: ideally we'd like collection TResult[], but it seems the best we can get is List. - collection; // $ExpectType ArrayLike + collection; // $ExpectType TResult[] }); } @@ -4648,7 +4793,7 @@ namespace TestForEach { result = _(array).forEach((value, index, collection) => { value; // $ExpectType TResult index; // $ExpectType number - collection; // $ExpectType ArrayLike + collection; // $ExpectType TResult[] }); } @@ -4658,7 +4803,7 @@ namespace TestForEach { result = _(nilArray).forEach((value, index, collection) => { value; // $ExpectType TResult index; // $ExpectType number - collection; // $ExpectType ArrayLike + collection; // $ExpectType TResult[] }); } @@ -4677,13 +4822,13 @@ namespace TestForEach { { let result: _.LoDashImplicitObjectWrapper<_.Dictionary>; - result = _(dictionary).forEach(dictionaryIterator); + result = _(dictionary).forEach(dictionaryIterator); } { let result: _.LoDashImplicitNillableObjectWrapper<_.Dictionary>; - result = _(nilDictionary).forEach(dictionaryIterator); + result = _(nilDictionary).forEach(dictionaryIterator); } { @@ -4702,7 +4847,7 @@ namespace TestForEach { result = _(array).chain().forEach((value, index, collection) => { value; // $ExpectType TResult index; // $ExpectType number - collection; // $ExpectType ArrayLike + collection; // $ExpectType TResult[] }); } @@ -4712,7 +4857,7 @@ namespace TestForEach { result = _(nilArray).chain().forEach((value, index, collection) => { value; // $ExpectType TResult index; // $ExpectType number - collection; // $ExpectType ArrayLike + collection; // $ExpectType TResult[] }); } @@ -4731,13 +4876,13 @@ namespace TestForEach { { let result: _.LoDashExplicitObjectWrapper<_.Dictionary>; - result = _(dictionary).chain().forEach(dictionaryIterator); + result = _(dictionary).chain().forEach(dictionaryIterator); } { let result: _.LoDashExplicitNillableObjectWrapper<_.Dictionary>; - result = _(nilDictionary).chain().forEach(dictionaryIterator); + result = _(nilDictionary).chain().forEach(dictionaryIterator); } } @@ -4779,7 +4924,7 @@ namespace TestForEachRight { result = _.forEachRight(array, (value, index, collection) => { value; // $ExpectType TResult index; // $ExpectType number - collection; // $ExpectType ArrayLike + collection; // $ExpectType TResult[] }); } @@ -4789,7 +4934,7 @@ namespace TestForEachRight { result = _.forEachRight(nilArray, (value, index, collection) => { value; // $ExpectType TResult index; // $ExpectType number - collection; // $ExpectType ArrayLike + collection; // $ExpectType TResult[] }); } @@ -4870,13 +5015,13 @@ namespace TestForEachRight { { let result: _.LoDashImplicitObjectWrapper<_.Dictionary>; - result = _(dictionary).forEachRight(dictionaryIterator); + result = _(dictionary).forEachRight(dictionaryIterator); } { let result: _.LoDashImplicitNillableObjectWrapper<_.Dictionary>; - result = _(nilDictionary).forEachRight(dictionaryIterator); + result = _(nilDictionary).forEachRight(dictionaryIterator); } { @@ -4895,7 +5040,7 @@ namespace TestForEachRight { result = _(array).chain().forEachRight((value, index, collection) => { value; // $ExpectType TResult index; // $ExpectType number - collection; // $ExpectType ArrayLike + collection; // $ExpectType TResult[] }); } @@ -4905,7 +5050,7 @@ namespace TestForEachRight { result = _(nilArray).chain().forEachRight((value, index, collection) => { value; // $ExpectType TResult index; // $ExpectType number - collection; // $ExpectType ArrayLike + collection; // $ExpectType TResult[] }); } @@ -4924,13 +5069,13 @@ namespace TestForEachRight { { let result: _.LoDashExplicitObjectWrapper<_.Dictionary>; - result = _(dictionary).chain().forEachRight(dictionaryIterator); + result = _(dictionary).chain().forEachRight(dictionaryIterator); } { let result: _.LoDashExplicitNillableObjectWrapper<_.Dictionary>; - result = _(nilDictionary).chain().forEachRight(dictionaryIterator); + result = _(nilDictionary).chain().forEachRight(dictionaryIterator); } } @@ -4952,7 +5097,6 @@ namespace TestGroupBy { result = _.groupBy(''); result = _.groupBy('', stringIterator); - result = _.groupBy('', stringIterator); } { @@ -4963,97 +5107,67 @@ namespace TestGroupBy { result = _.groupBy(array, ''); result = _.groupBy(array, {a: 42}); - result = _.groupBy(array, listIterator); - result = _.groupBy(array, ''); - result = _.groupBy<{a: number}, SampleType>(array, {a: 42}); - result = _.groupBy(list); result = _.groupBy(list, listIterator); result = _.groupBy(list, ''); result = _.groupBy(list, {a: 42}); - result = _.groupBy(list, listIterator); - result = _.groupBy(list, ''); - result = _.groupBy<{a: number}, SampleType>(list, {a: 42}); - - result = _.groupBy(dictionary); - result = _.groupBy(dictionary, dictionaryIterator); - result = _.groupBy(dictionary, ''); - result = _.groupBy(dictionary, {a: 42}); - - result = _.groupBy(dictionary, dictionaryIterator); - result = _.groupBy(dictionary, ''); - result = _.groupBy<{a: number}, SampleType>(dictionary, {a: 42}); + result = _.groupBy(dictionary); + result = _.groupBy(dictionary, dictionaryIterator); + result = _.groupBy(dictionary, ''); + result = _.groupBy(dictionary, {a: 42}); } { let result: _.LoDashImplicitObjectWrapper<_.Dictionary>; result = _('').groupBy(); - result = _('').groupBy((char: string, index: number, string: ArrayLike) => 0); + result = _('').groupBy((char: string, index: number, string: ArrayLike) => 0); } { let result: _.LoDashImplicitObjectWrapper<_.Dictionary>; result = _(array).groupBy(); - result = _(array).groupBy(listIterator); + result = _(array).groupBy(listIterator); result = _(array).groupBy(''); - result = _(array).groupBy(''); - result = _(array).groupBy<{a: number}>({a: 42}); + result = _(array).groupBy({a: 42}); result = _(list).groupBy(); result = _(list).groupBy(listIterator); result = _(list).groupBy(''); result = _(list).groupBy({a: 42}); - result = _(list).groupBy(listIterator); - result = _(list).groupBy(''); - result = _(list).groupBy<{a: number}, SampleType>({a: 42}); - result = _(dictionary).groupBy(); - result = _(dictionary).groupBy(dictionaryIterator); + result = _(dictionary).groupBy(dictionaryIterator); result = _(dictionary).groupBy(''); result = _(dictionary).groupBy({a: 42}); - - result = _(dictionary).groupBy(dictionaryIterator); - result = _(dictionary).groupBy(''); - result = _(dictionary).groupBy<{a: number}, SampleType>({a: 42}); } { let result: _.LoDashExplicitObjectWrapper<_.Dictionary>; result = _('').chain().groupBy(); - result = _('').chain().groupBy((char: string, index: number, string: ArrayLike) => 0); + result = _('').chain().groupBy((char: string, index: number, string: ArrayLike) => 0); } { let result: _.LoDashExplicitObjectWrapper<_.Dictionary>; result = _(array).chain().groupBy(); - result = _(array).chain().groupBy(listIterator); + result = _(array).chain().groupBy(listIterator); result = _(array).chain().groupBy(''); - result = _(array).chain().groupBy(''); - result = _(array).chain().groupBy<{a: number}>({a: 42}); + result = _(array).chain().groupBy({a: 42}); result = _(list).chain().groupBy(); result = _(list).chain().groupBy(listIterator); result = _(list).chain().groupBy(''); result = _(list).chain().groupBy({a: 42}); - result = _(list).chain().groupBy(listIterator); - result = _(list).chain().groupBy(''); - result = _(list).chain().groupBy<{a: number}, SampleType>({a: 42}); - result = _(dictionary).chain().groupBy(); - result = _(dictionary).chain().groupBy(dictionaryIterator); + result = _(dictionary).chain().groupBy(dictionaryIterator); result = _(dictionary).chain().groupBy(''); result = _(dictionary).chain().groupBy({a: 42}); - - result = _(dictionary).chain().groupBy(dictionaryIterator); - result = _(dictionary).chain().groupBy(''); - result = _(dictionary).chain().groupBy<{a: number}, SampleType>({a: 42}); } } @@ -5132,26 +5246,22 @@ namespace TestKeyBy { result = _.keyBy(array); result = _.keyBy(array, listIterator); result = _.keyBy(array, 'a'); - result = _.keyBy<{a: number}, SampleObject>(array, {a: 42}); result = _.keyBy(array, {a: 42}); result = _.keyBy(list); result = _.keyBy(list, listIterator); result = _.keyBy(list, 'a'); - result = _.keyBy<{a: number}, SampleObject>(list, {a: 42}); result = _.keyBy(list, {a: 42}); result = _.keyBy(numericDictionary); result = _.keyBy(numericDictionary, numericDictionaryIterator); result = _.keyBy(numericDictionary, 'a'); - result = _.keyBy<{a: number}, SampleObject>(numericDictionary, {a: 42}); result = _.keyBy(numericDictionary, {a: 42}); - result = _.keyBy(dictionary); - result = _.keyBy(dictionary, dictionaryIterator); - result = _.keyBy(dictionary, 'a'); - result = _.keyBy<{a: number}, SampleObject>(dictionary, {a: 42}); - result = _.keyBy(dictionary, {a: 42}); + result = _.keyBy(dictionary); + result = _.keyBy(dictionary, dictionaryIterator); + result = _.keyBy(dictionary, 'a'); + result = _.keyBy(dictionary, {a: 42}); } { @@ -5167,25 +5277,22 @@ namespace TestKeyBy { result = _(array).keyBy(); result = _(array).keyBy(listIterator); result = _(array).keyBy('a'); - result = _(array).keyBy<{a: number}>({a: 42}); + result = _(array).keyBy({a: 42}); result = _(list).keyBy(); result = _(list).keyBy(listIterator); result = _(list).keyBy('a'); - result = _(list).keyBy<{a: number}, SampleObject>({a: 42}); result = _(list).keyBy({a: 42}); result = _(numericDictionary).keyBy(); result = _(numericDictionary).keyBy(numericDictionaryIterator); result = _(numericDictionary).keyBy('a'); - result = _(numericDictionary).keyBy<{a: number}, SampleObject>({a: 42}); result = _(numericDictionary).keyBy({a: 42}); - result = _(dictionary).keyBy(); - result = _(dictionary).keyBy(dictionaryIterator); - result = _(dictionary).keyBy('a'); - result = _(dictionary).keyBy<{a: number}, SampleObject>({a: 42}); - result = _(dictionary).keyBy({a: 42}); + result = _(dictionary).keyBy(); + result = _(dictionary).keyBy(dictionaryIterator); + result = _(dictionary).keyBy('a'); + result = _(dictionary).keyBy({a: 42}); } { @@ -5201,25 +5308,22 @@ namespace TestKeyBy { result = _(array).chain().keyBy(); result = _(array).chain().keyBy(listIterator); result = _(array).chain().keyBy('a'); - result = _(array).chain().keyBy<{a: number}>({a: 42}); + result = _(array).chain().keyBy({a: 42}); result = _(list).chain().keyBy(); result = _(list).chain().keyBy(listIterator); result = _(list).chain().keyBy('a'); - result = _(list).chain().keyBy<{a: number}, SampleObject>({a: 42}); result = _(list).chain().keyBy({a: 42}); result = _(numericDictionary).chain().keyBy(); result = _(numericDictionary).chain().keyBy(numericDictionaryIterator); result = _(numericDictionary).chain().keyBy('a'); - result = _(numericDictionary).chain().keyBy<{a: number}, SampleObject>({a: 42}); result = _(numericDictionary).chain().keyBy({a: 42}); - result = _(dictionary).chain().keyBy(); - result = _(dictionary).chain().keyBy(dictionaryIterator); - result = _(dictionary).chain().keyBy('a'); - result = _(dictionary).chain().keyBy<{a: number}, SampleObject>({a: 42}); - result = _(dictionary).chain().keyBy({a: 42}); + result = _(dictionary).chain().keyBy(); + result = _(dictionary).chain().keyBy(dictionaryIterator); + result = _(dictionary).chain().keyBy('a'); + result = _(dictionary).chain().keyBy({a: 42}); } } @@ -5240,68 +5344,68 @@ namespace TestInvoke { let result: string; - result = _.invoke(boolArray, "[1]"); - result = _.invoke(boolArray, "[1]", 2); - result = _.invoke(boolArray, [1, "toString"]); - result = _.invoke(boolArray, [1, "toString"], 2); + result = _.invoke(boolArray, "[1]"); + result = _.invoke(boolArray, "[1]", 2); + result = _.invoke(boolArray, [1, "toString"]); + result = _.invoke(boolArray, [1, "toString"], 2); - result = _.invoke(boolArray, "[1]"); - result = _.invoke(boolArray, "[1]", 2); - result = _.invoke(boolArray, [1, "toString"]); - result = _.invoke(boolArray, [1, "toString"], 2); + result = _.invoke(boolArray, "[1]"); + result = _.invoke(boolArray, "[1]", 2); + result = _.invoke(boolArray, [1, "toString"]); + result = _.invoke(boolArray, [1, "toString"], 2); - result = _.invoke(numDict, "a.toString"); - result = _.invoke(numDict, "a.toString", 2); - result = _.invoke(numDict, ["a", "toString"]); - result = _.invoke(numDict, ["a", "toString"], 2); + result = _.invoke(numDict, "a.toString"); + result = _.invoke(numDict, "a.toString", 2); + result = _.invoke(numDict, ["a", "toString"]); + result = _.invoke(numDict, ["a", "toString"], 2); - result = _.invoke(numDict, "a.toString"); - result = _.invoke(numDict, "a.toString", 2); - result = _.invoke(numDict, ["a", "toString"]); - result = _.invoke(numDict, ["a", "toString"], 2); + result = _.invoke(numDict, "a.toString"); + result = _.invoke(numDict, "a.toString", 2); + result = _.invoke(numDict, ["a", "toString"]); + result = _.invoke(numDict, ["a", "toString"], 2); - result = _.invoke(nestedDict, ["a[0].toString"]); - result = _.invoke(nestedDict, ["a[0].toString"], 2); - result = _.invoke(nestedDict, ["a", 0, "toString"]); - result = _.invoke(nestedDict, ["a", 0, "toString"], 2); + result = _.invoke(nestedDict, ["a[0].toString"]); + result = _.invoke(nestedDict, ["a[0].toString"], 2); + result = _.invoke(nestedDict, ["a", 0, "toString"]); + result = _.invoke(nestedDict, ["a", 0, "toString"], 2); - result = _.invoke, string>(nestedDict, ["a[0].toString"]); - result = _.invoke, string>(nestedDict, ["a[0].toString"], 2); - result = _.invoke, string>(nestedDict, ["a", 0, "toString"]); - result = _.invoke, string>(nestedDict, ["a", 0, "toString"], 2); + result = _.invoke(nestedDict, ["a[0].toString"]); + result = _.invoke(nestedDict, ["a[0].toString"], 2); + result = _.invoke(nestedDict, ["a", 0, "toString"]); + result = _.invoke(nestedDict, ["a", 0, "toString"], 2); - result = _(boolArray).invoke("[1]"); - result = _(boolArray).invoke("[1]", 2); - result = _(boolArray).invoke([1, "toString"]); - result = _(boolArray).invoke([1, "toString"], 2); + result = _(boolArray).invoke("[1]"); + result = _(boolArray).invoke("[1]", 2); + result = _(boolArray).invoke([1, "toString"]); + result = _(boolArray).invoke([1, "toString"], 2); - result = _(numDict).invoke("a.toString"); - result = _(numDict).invoke("a.toString", 2); - result = _(numDict).invoke(["a", "toString"]); - result = _(numDict).invoke(["a", "toString"], 2); + result = _(numDict).invoke("a.toString"); + result = _(numDict).invoke("a.toString", 2); + result = _(numDict).invoke(["a", "toString"]); + result = _(numDict).invoke(["a", "toString"], 2); - result = _(nestedDict).invoke("a[0].toString"); - result = _(nestedDict).invoke("a[0].toString", 2); - result = _(nestedDict).invoke(["a", 0, "toString"]); - result = _(nestedDict).invoke(["a", 0, "toString"], 2); + result = _(nestedDict).invoke("a[0].toString"); + result = _(nestedDict).invoke("a[0].toString", 2); + result = _(nestedDict).invoke(["a", 0, "toString"]); + result = _(nestedDict).invoke(["a", 0, "toString"], 2); { let result: _.LoDashExplicitWrapper; - result = _(boolArray).chain().invoke<_.LoDashExplicitWrapper>("[1]"); - result = _(boolArray).chain().invoke<_.LoDashExplicitWrapper>("[1]", 2); - result = _(boolArray).chain().invoke<_.LoDashExplicitWrapper>([1, "toString"]); - result = _(boolArray).chain().invoke<_.LoDashExplicitWrapper>([1, "toString"], 2); + result = _(boolArray).chain().invoke("[1]"); + result = _(boolArray).chain().invoke("[1]", 2); + result = _(boolArray).chain().invoke([1, "toString"]); + result = _(boolArray).chain().invoke([1, "toString"], 2); - result = _(numDict).chain().invoke<_.LoDashExplicitWrapper>("a.toString"); - result = _(numDict).chain().invoke<_.LoDashExplicitWrapper>("a.toString", 2); - result = _(numDict).chain().invoke<_.LoDashExplicitWrapper>(["a", "toString"]); - result = _(numDict).chain().invoke<_.LoDashExplicitWrapper>(["a", "toString"], 2); + result = _(numDict).chain().invoke("a.toString"); + result = _(numDict).chain().invoke("a.toString", 2); + result = _(numDict).chain().invoke(["a", "toString"]); + result = _(numDict).chain().invoke(["a", "toString"], 2); - result = _(nestedDict).chain().invoke<_.LoDashExplicitWrapper>("a[0].toString"); - result = _(nestedDict).chain().invoke<_.LoDashExplicitWrapper>("a[0].toString", 2); - result = _(nestedDict).chain().invoke<_.LoDashExplicitWrapper>(["a", 0, "toString"]); - result = _(nestedDict).chain().invoke<_.LoDashExplicitWrapper>(["a", 0, "toString"], 2); + result = _(nestedDict).chain().invoke("a[0].toString"); + result = _(nestedDict).chain().invoke("a[0].toString", 2); + result = _(nestedDict).chain().invoke(["a", 0, "toString"]); + result = _(nestedDict).chain().invoke(["a", 0, "toString"], 2); } } @@ -5317,17 +5421,17 @@ namespace TestInvokeMap { let numDict: _.Dictionary | null | undefined = obj as any; let result: string[]; - result = _.invokeMap(numArray, 'toString'); - result = _.invokeMap(numArray, 'toString', 2); - result = _.invokeMap(numArray, 'toString'); - result = _.invokeMap(numArray, 'toString', 2); - result = _(numArray).invokeMap('toString').value(); - result = _(numArray).invokeMap('toString', 2).value(); - result = _(numArray).chain().invokeMap('toString').value(); - result = _(numArray).chain().invokeMap('toString', 2).value(); + result = _.invokeMap(numArray, 'toString'); + result = _.invokeMap(numArray, 'toString', 2); + result = _.invokeMap(numArray, 'toString'); + result = _.invokeMap(numArray, 'toString', 2); + result = _(numArray).invokeMap('toString').value(); + result = _(numArray).invokeMap('toString', 2).value(); + result = _(numArray).chain().invokeMap('toString').value(); + result = _(numArray).chain().invokeMap('toString', 2).value(); - result = _.invokeMap(numArray, Number.prototype.toString); - result = _.invokeMap(numArray, Number.prototype.toString, 2); + result = _.invokeMap(numArray, Number.prototype.toString); + result = _.invokeMap(numArray, Number.prototype.toString, 2); result = _.invokeMap(numArray, Number.prototype.toString); result = _.invokeMap(numArray, Number.prototype.toString, 2); result = _(numArray).invokeMap(Number.prototype.toString).value(); @@ -5335,17 +5439,17 @@ namespace TestInvokeMap { result = _(numArray).chain().invokeMap(Number.prototype.toString).value(); result = _(numArray).chain().invokeMap(Number.prototype.toString, 2).value(); - result = _.invokeMap(numDict, 'toString'); - result = _.invokeMap(numDict, 'toString', 2); - result = _.invokeMap(numDict, 'toString'); - result = _.invokeMap(numDict, 'toString', 2); - result = _(numDict).invokeMap('toString').value(); - result = _(numDict).invokeMap('toString', 2).value(); - result = _(numDict).chain().invokeMap('toString').value(); - result = _(numDict).chain().invokeMap('toString', 2).value(); + result = _.invokeMap(numDict, 'toString'); + result = _.invokeMap(numDict, 'toString', 2); + result = _.invokeMap(numDict, 'toString'); + result = _.invokeMap(numDict, 'toString', 2); + result = _(numDict).invokeMap('toString').value(); + result = _(numDict).invokeMap('toString', 2).value(); + result = _(numDict).chain().invokeMap('toString').value(); + result = _(numDict).chain().invokeMap('toString', 2).value(); - result = _.invokeMap(numDict, Number.prototype.toString); - result = _.invokeMap(numDict, Number.prototype.toString, 2); + result = _.invokeMap(numDict, Number.prototype.toString); + result = _.invokeMap(numDict, Number.prototype.toString, 2); result = _.invokeMap(numDict, Number.prototype.toString); result = _.invokeMap(numDict, Number.prototype.toString, 2); result = _(numDict).invokeMap(Number.prototype.toString).value(); @@ -5413,7 +5517,7 @@ namespace TestMap { { let result: _.LoDashExplicitArrayWrapper; - result = _(array).chain().map({}); + result = _(array).chain().map({}); result = _(list).chain().map({}); result = _(dictionary).chain().map({}); } @@ -5438,33 +5542,148 @@ namespace TestMap { } // _.partition -result = _.partition('abcd', (n) => n < 'c'); -result = _.partition(['a', 'b', 'c', 'd'], (n) => n < 'c'); -result = _.partition([1, 2, 3, 4], (n) => n < 3); -result = _.partition({0: 1, 1: 2, 2: 3, 3: 4, length: 4}, (n) => n < 3); -result = _.partition({a: 1, b: 2, c: 3, d: 4}, (n) => n < 3); -result = <{a: number}[][]>_.partition<{a: number}, {a: number}>([{a: 1}, {a: 2}], {a: 2}); -result = <{a: number}[][]>_.partition<{a: number}, {a: number}>({0: {a: 1}, 1: {a: 2}, length: 2}, {a: 2}); -result = <{a: number}[][]>_.partition<{a: number}, {a: number}>({0: {a: 1}, 1: {a: 2}}, {a: 2}); -result = <{a: number}[][]>_.partition<{a: number}>([{a: 1}, {a: 2}], 'a'); -result = <{a: number}[][]>_.partition<{a: number}>([{a: 1}, {a: 2}], 'a', 2); -result = <{a: number}[][]>_.partition<{a: number}>({0: {a: 1}, 1: {a: 2}, length: 2}, 'a'); -result = <{a: number}[][]>_.partition<{a: number}>({0: {a: 1}, 1: {a: 2}, length: 2}, 'a', 2); -result = <{a: number}[][]>_.partition<{a: number}>({0: {a: 1}, 1: {a: 2}}, 'a'); -result = <{a: number}[][]>_.partition<{a: number}>({0: {a: 1}, 1: {a: 2}}, 'a', 2); -result = <{a: number}[][]>_.partition<{a: number}>(null, 'a'); -result = _('abcd').partition((n) => n < 'c').value(); -result = _(['a', 'b', 'c', 'd']).partition((n) => n < 'c').value(); -result = _([1, 2, 3, 4]).partition((n) => n < 3).value(); -result = _({0: 1, 1: 2, 2: 3, 3: 4, length: 4}).partition((n) => n < 3).value(); -result = _({a: 1, b: 2, c: 3, d: 4}).partition((n) => n < 3).value(); -result = <{a: number}[][]>_([{a: 1}, {a: 2}]).partition<{a: number}>({a: 2}).value(); -result = <{a: number}[][]>_({0: {a: 1}, 1: {a: 2}, length: 2}).partition<{a: number}, {a: number}>({a: 2}).value(); -result = <{a: number}[][]>_({0: {a: 1}, 1: {a: 2}}).partition<{a: number}, {a: number}>({a: 2}).value(); -result = <{a: number}[][]>_([{a: 1}, {a: 2}]).partition('a').value(); -result = <{a: number}[][]>_([{a: 1}, {a: 2}]).partition('a', 2).value(); -result = <{a: number}[][]>_({0: {a: 1}, 1: {a: 2}}).partition<{a: number}>('a').value(); -result = <{a: number}[][]>_({0: {a: 1}, 1: {a: 2}}).partition<{a: number}>('a', 2).value(); +namespace TestPartition { + { + let result: any[][]; + + result = _.partition(any, (n) => { + n; // $ExpectType any + return n < 'c'; + }); + } + + { + let result: string[][]; + + result = _.partition('abcd', (n) => { + n; // $ExpectType string + return n < 'c'; + }); + result = _.partition(['a', 'b', 'c', 'd'], (n) => { + n; // $ExpectType string + return n < 'c'; + }); + } + + { + let result: number[][]; + + result = _.partition([1, 2, 3, 4], (n) => n < 3); + result = _.partition({0: 1, 1: 2, 2: 3, 3: 4, length: 4}, (n) => n < 3); + result = _.partition({a: 1, b: 2, c: 3, d: 4}, (n) => { + n; // $ExpectType number + return n < 3; + }); + } + + { + let result: Array>; + + result = _.partition([{a: 1}, {a: 2}], {a: 2}); + result = _.partition({0: {a: 1}, 1: {a: 2}, length: 2}, {a: 2}); + result = _.partition({0: {a: 1}, 1: {a: 2}}, {a: 2}); + result = _.partition([{a: 1}, {a: 2}], 'a'); + result = _.partition([{a: 1}, {a: 2}], ['a', 2]); + result = _.partition({0: {a: 1}, 1: {a: 2}, length: 2}, 'a'); + result = _.partition({0: {a: 1}, 1: {a: 2}, length: 2}, ['a', 2]); + result = _.partition({0: {a: 1}, 1: {a: 2}}, 'a'); + result = _.partition({0: {a: 1}, 1: {a: 2}}, ['a', 2]); + } + + { + _.partition(null, 'a'); + } + + { + let result: _.LoDashImplicitWrapper; + + result = _(any).partition((n) => { + n; // $ExpectType any + return n < 'c'; + }); + } + + { + let result: _.LoDashImplicitWrapper; + + result = _('abcd').partition((n) => { + n; // $ExpectType string + return n < 'c'; + }); + result = _(['a', 'b', 'c', 'd']).partition((n) => { + n; // $ExpectType string + return n < 'c'; + }); + } + + { + let result: _.LoDashImplicitWrapper; + + result = _([1, 2, 3, 4]).partition((n) => n < 3); + result = _({0: 1, 1: 2, 2: 3, 3: 4, length: 4}).partition((n) => n < 3); + result = _({a: 1, b: 2, c: 3, d: 4}).partition((n) => { + n; // $ExpectType number + return n < 3; + }); + } + + { + let result: _.LoDashImplicitWrapper>>; + + result = _([{a: 1}, {a: 2}]).partition({a: 2}); + result = _({0: {a: 1}, 1: {a: 2}, length: 2}).partition({a: 2}); + result = _({0: {a: 1}, 1: {a: 2}}).partition({a: 2}); + result = _([{a: 1}, {a: 2}]).partition('a'); + result = _([{a: 1}, {a: 2}]).partition(['a', 2]); + result = _({0: {a: 1}, 1: {a: 2}}).partition('a'); + result = _({0: {a: 1}, 1: {a: 2}}).partition(['a', 2]); + } + + { + let result: _.LoDashExplicitWrapper; + + result = _.chain(any).partition((n) => { + n; // $ExpectType any + return n < 'c'; + }); + } + + { + let result: _.LoDashExplicitWrapper; + + result = _.chain('abcd').partition((n) => { + n; // $ExpectType string + return n < 'c'; + }); + result = _.chain(['a', 'b', 'c', 'd']).partition((n) => { + n; // $ExpectType string + return n < 'c'; + }); + } + + { + let result: _.LoDashExplicitWrapper; + + result = _.chain([1, 2, 3, 4]).partition((n) => n < 3); + result = _.chain({0: 1, 1: 2, 2: 3, 3: 4, length: 4}).partition((n) => n < 3); + result = _.chain({a: 1, b: 2, c: 3, d: 4}).partition((n) => { + n; // $ExpectType number + return n < 3; + }); + } + + { + let result: _.LoDashExplicitWrapper>>; + + result = _.chain([{a: 1}, {a: 2}]).partition({a: 2}); + result = _.chain({0: {a: 1}, 1: {a: 2}, length: 2}).partition({a: 2}); + result = _.chain({0: {a: 1}, 1: {a: 2}}).partition({a: 2}); + result = _.chain([{a: 1}, {a: 2}]).partition('a'); + result = _.chain([{a: 1}, {a: 2}]).partition(['a', 2]); + result = _.chain({0: {a: 1}, 1: {a: 2}}).partition('a'); + result = _.chain({0: {a: 1}, 1: {a: 2}}).partition(['a', 2]); + } +} // TODO // _.map with iteratee shorthand @@ -5549,8 +5768,8 @@ namespace TestReduce { return r; }, {} as ABC); // tslint:disable-line no-object-literal-type-assertion - result = _([1, 2, 3]).reduce((sum: number, num: number) => sum + num); - result = _({ 'a': 1, 'b': 2, 'c': 3 }).reduce((r: ABC, num: number, key: string) => { + result = _([1, 2, 3]).reduce((sum: number, num: number) => sum + num); + result = _({ 'a': 1, 'b': 2, 'c': 3 }).reduce((r: ABC, num: number, key: string) => { r[key] = num * 3; return r; }, { a: 1, b: 2, c: 3 }); @@ -5579,15 +5798,15 @@ namespace TestReject { result = _.reject(array, listIterator); result = _.reject(array, ''); - result = _.reject<{a: number}, TResult>(array, {a: 42}); + result = _.reject(array, {a: 42}); result = _.reject(list, listIterator); result = _.reject(list, ''); - result = _.reject<{a: number}, TResult>(list, {a: 42}); + result = _.reject(list, {a: 42}); - result = _.reject(dictionary, dictionaryIterator); - result = _.reject(dictionary, ''); - result = _.reject<{a: number}, TResult>(dictionary, {a: 42}); + result = _.reject(dictionary, dictionaryIterator); + result = _.reject(dictionary, ''); + result = _.reject(dictionary, {a: 42}); } { @@ -5601,15 +5820,15 @@ namespace TestReject { result = _(array).reject(listIterator); result = _(array).reject(''); - result = _(array).reject<{a: number}>({a: 42}); + result = _(array).reject({a: 42}); result = _(list).reject(listIterator); result = _(list).reject(''); - result = _(list).reject<{a: number}, TResult>({a: 42}); + result = _(list).reject({a: 42}); - result = _(dictionary).reject(dictionaryIterator); - result = _(dictionary).reject(''); - result = _(dictionary).reject<{a: number}, TResult>({a: 42}); + result = _(dictionary).reject(dictionaryIterator); + result = _(dictionary).reject(''); + result = _(dictionary).reject({a: 42}); } { @@ -5623,15 +5842,15 @@ namespace TestReject { result = _(array).chain().reject(listIterator); result = _(array).chain().reject(''); - result = _(array).chain().reject<{a: number}>({a: 42}); + result = _(array).chain().reject({a: 42}); result = _(list).chain().reject(listIterator); result = _(list).chain().reject(''); - result = _(list).chain().reject<{a: number}, TResult>({a: 42}); + result = _(list).chain().reject({a: 42}); - result = _(dictionary).chain().reject(dictionaryIterator); - result = _(dictionary).chain().reject(''); - result = _(dictionary).chain().reject<{a: number}, TResult>({a: 42}); + result = _(dictionary).chain().reject(dictionaryIterator); + result = _(dictionary).chain().reject(''); + result = _(dictionary).chain().reject({a: 42}); } } @@ -5663,14 +5882,14 @@ namespace TestSample { } { - let result: _.LoDashExplicitWrapper; + let result: _.LoDashExplicitWrapper; result = _('abc').chain().sample(); - result = _(array).chain().sample<_.LoDashExplicitWrapper>(); - result = _(list).chain().sample<_.LoDashExplicitWrapper>(); - result = _(dictionary).chain().sample<_.LoDashExplicitWrapper>(); - result = _(numericDictionary).chain().sample<_.LoDashExplicitWrapper>(); - result = _({a: 'foo'}).chain().sample<_.LoDashExplicitWrapper>(); + result = _(array).chain().sample(); + result = _(list).chain().sample(); + result = _(dictionary).chain().sample(); + result = _(numericDictionary).chain().sample(); + result = _({a: 'foo'}).chain().sample(); } } @@ -5695,8 +5914,8 @@ namespace TestSampleSize { result = _.sampleSize(dictionary, 42); result = _.sampleSize(numericDictionary); result = _.sampleSize(numericDictionary, 42); - result = _.sampleSize<{a: string}, string>({a: 'foo'}); - result = _.sampleSize<{a: string}, string>({a: 'foo'}, 42); + result = _.sampleSize({a: 'foo'}); + result = _.sampleSize({a: 'foo'}, 42); result = _.sampleSize({a: 'foo'}); result = _.sampleSize({a: 'foo'}, 42); } @@ -5754,7 +5973,7 @@ namespace TestShuffle { result = _.shuffle(array); result = _.shuffle(list); - result = _.shuffle(dictionary); + result = _.shuffle(dictionary); } { @@ -5768,7 +5987,7 @@ namespace TestShuffle { result = _(array).shuffle(); result = _(list).shuffle(); - result = _(dictionary).shuffle(); + result = _(dictionary).shuffle(); } { @@ -5782,7 +6001,7 @@ namespace TestShuffle { result = _(array).chain().shuffle(); result = _(list).chain().shuffle(); - result = _(dictionary).chain().shuffle(); + result = _(dictionary).chain().shuffle(); } } @@ -5798,9 +6017,9 @@ namespace TestSize { { let result: number; - result = _.size(array); - result = _.size(list); - result = _.size(dictionary); + result = _.size(array); + result = _.size(list); + result = _.size(dictionary); result = _.size(''); result = _(array).size(); @@ -5852,10 +6071,10 @@ namespace TestSome { result = _.some(dictionary); result = _.some(numericDictionary, numericDictionaryIterator); - result = _.some(dictionary, (value, key, collection) => { - value.a--; - key.substr(0); - value = collection[key]; + result = _.some(dictionary, (value, key, collection) => { + value; // $ExpectType SampleObject + key; // $ExpectType string + collection; // $ExpectType Dictionary return true; }); result = _.some(dictionary, 'a'); @@ -5887,7 +6106,7 @@ namespace TestSome { result = _(list).some({a: 42}); result = _(dictionary).some(); - result = _(dictionary).some(dictionaryIterator); + result = _(dictionary).some(dictionaryIterator); result = _(dictionary).some('a'); result = _(dictionary).some(['a', 42]); result = _(dictionary).some({a: 42}); @@ -5921,7 +6140,7 @@ namespace TestSome { result = _(list).chain().some({a: 42}); result = _(dictionary).chain().some(); - result = _(dictionary).chain().some(dictionaryIterator); + result = _(dictionary).chain().some(dictionaryIterator); result = _(dictionary).chain().some('a'); result = _(dictionary).chain().some(['a', 42]); result = _(dictionary).chain().some({a: 42}); @@ -5953,58 +6172,58 @@ namespace TestSortBy { { let result: TResult[]; - result = _.sortBy(array); - result = _.sortBy(array, listIterator); - result = _.sortBy(array, ''); - result = _.sortBy<{a: number}, TResult>(array, {a: 42}); + result = _.sortBy(array); + result = _.sortBy(array, listIterator); + result = _.sortBy(array, ''); + result = _.sortBy(array, {a: 42}); - result = _.sortBy(list); - result = _.sortBy(list, listIterator); - result = _.sortBy(list, ''); - result = _.sortBy<{a: number}, TResult>(list, {a: 42}); + result = _.sortBy(list); + result = _.sortBy(list, listIterator); + result = _.sortBy(list, ''); + result = _.sortBy(list, {a: 42}); - result = _.sortBy(dictionary); - result = _.sortBy(dictionary, dictionaryIterator); - result = _.sortBy(dictionary, ''); - result = _.sortBy<{a: number}, TResult>(dictionary, {a: 42}); + result = _.sortBy(dictionary); + result = _.sortBy(dictionary, dictionaryIterator); + result = _.sortBy(dictionary, ''); + result = _.sortBy(dictionary, {a: 42}); } { let result: _.LoDashImplicitArrayWrapper; result = _(array).sortBy(); - result = _(array).sortBy(listIterator); + result = _(array).sortBy(listIterator); result = _(array).sortBy(''); - result = _(array).sortBy<{a: number}>({a: 42}); + result = _(array).sortBy({a: 42}); - result = _(list).sortBy(); - result = _(list).sortBy(listIterator); - result = _(list).sortBy(''); - result = _(list).sortBy<{a: number}, TResult>({a: 42}); + result = _(list).sortBy(); + result = _(list).sortBy(listIterator); + result = _(list).sortBy(''); + result = _(list).sortBy({a: 42}); - result = _(dictionary).sortBy(); - result = _(dictionary).sortBy(dictionaryIterator); - result = _(dictionary).sortBy(''); - result = _(dictionary).sortBy<{a: number}, TResult>({a: 42}); + result = _(dictionary).sortBy(); + result = _(dictionary).sortBy(dictionaryIterator); + result = _(dictionary).sortBy(''); + result = _(dictionary).sortBy({a: 42}); } { let result: _.LoDashExplicitArrayWrapper; result = _(array).chain().sortBy(); - result = _(array).chain().sortBy(listIterator); + result = _(array).chain().sortBy(listIterator); result = _(array).chain().sortBy(''); - result = _(array).chain().sortBy<{a: number}>({a: 42}); + result = _(array).chain().sortBy({a: 42}); - result = _(list).chain().sortBy(); - result = _(list).chain().sortBy(listIterator); - result = _(list).chain().sortBy(''); - result = _(list).chain().sortBy<{a: number}, TResult>({a: 42}); + result = _(list).chain().sortBy(); + result = _(list).chain().sortBy(listIterator); + result = _(list).chain().sortBy(''); + result = _(list).chain().sortBy({a: 42}); - result = _(dictionary).chain().sortBy(); - result = _(dictionary).chain().sortBy(dictionaryIterator); - result = _(dictionary).chain().sortBy(''); - result = _(dictionary).chain().sortBy<{a: number}, TResult>({a: 42}); + result = _(dictionary).chain().sortBy(); + result = _(dictionary).chain().sortBy(dictionaryIterator); + result = _(dictionary).chain().sortBy(''); + result = _(dictionary).chain().sortBy({a: 42}); } } @@ -6037,23 +6256,23 @@ namespace TestorderBy { let iteratees: (value: SampleObject) => any|string|{a: number}|((value: SampleObject) => any|string|{a: number})[] = (value) => 1; let result: SampleObject[]; - result = _.orderBy<{a: number}, SampleObject>(array, iteratees); - result = _.orderBy<{a: number}, SampleObject>(array, iteratees, orders); + result = _.orderBy(array, iteratees); + result = _.orderBy(array, iteratees, orders); result = _.orderBy(array, iteratees); result = _.orderBy(array, iteratees, orders); - result = _.orderBy<{a: number}, SampleObject>(list, iteratees); - result = _.orderBy<{a: number}, SampleObject>(list, iteratees, orders); + result = _.orderBy(list, iteratees); + result = _.orderBy(list, iteratees, orders); result = _.orderBy(list, iteratees); result = _.orderBy(list, iteratees, orders); - result = _.orderBy<{a: number}, SampleObject>(numericDictionary, iteratees); - result = _.orderBy<{a: number}, SampleObject>(numericDictionary, iteratees, orders); + result = _.orderBy(numericDictionary, iteratees); + result = _.orderBy(numericDictionary, iteratees, orders); result = _.orderBy(numericDictionary, iteratees); result = _.orderBy(numericDictionary, iteratees, orders); - result = _.orderBy<{a: number}, SampleObject>(dictionary, iteratees); - result = _.orderBy<{a: number}, SampleObject>(dictionary, iteratees, orders); + result = _.orderBy(dictionary, iteratees); + result = _.orderBy(dictionary, iteratees, orders); result = _.orderBy(dictionary, iteratees); result = _.orderBy(dictionary, iteratees, orders); } @@ -6062,21 +6281,21 @@ namespace TestorderBy { let iteratees: (value: SampleObject) => any|string|{a: number}|((value: SampleObject) => any|string|{a: number})[] = (value) => ""; let result: _.LoDashImplicitArrayWrapper; - result = _(array).orderBy<{a: number}>(iteratees); - result = _(array).orderBy<{a: number}>(iteratees, orders); + result = _(array).orderBy(iteratees); + result = _(array).orderBy(iteratees, orders); - result = _(list).orderBy<{a: number}, SampleObject>(iteratees); - result = _(list).orderBy<{a: number}, SampleObject>(iteratees, orders); + result = _(list).orderBy(iteratees); + result = _(list).orderBy(iteratees, orders); result = _(list).orderBy(iteratees); result = _(list).orderBy(iteratees, orders); - result = _(numericDictionary).orderBy<{a: number}, SampleObject>(iteratees); - result = _(numericDictionary).orderBy<{a: number}, SampleObject>(iteratees, orders); + result = _(numericDictionary).orderBy(iteratees); + result = _(numericDictionary).orderBy(iteratees, orders); result = _(numericDictionary).orderBy(iteratees); result = _(numericDictionary).orderBy(iteratees, orders); - result = _(dictionary).orderBy<{a: number}, SampleObject>(iteratees); - result = _(dictionary).orderBy<{a: number}, SampleObject>(iteratees, orders); + result = _(dictionary).orderBy(iteratees); + result = _(dictionary).orderBy(iteratees, orders); result = _(dictionary).orderBy(iteratees); result = _(dictionary).orderBy(iteratees, orders); } @@ -6085,21 +6304,21 @@ namespace TestorderBy { let iteratees: (value: SampleObject) => any|string|{a: number}|((value: SampleObject) => any|string|{a: number})[] = (value) => ""; let result: _.LoDashExplicitArrayWrapper; - result = _(array).chain().orderBy<{a: number}>(iteratees); - result = _(array).chain().orderBy<{a: number}>(iteratees, orders); + result = _(array).chain().orderBy(iteratees); + result = _(array).chain().orderBy(iteratees, orders); - result = _(list).chain().orderBy<{a: number}, SampleObject>(iteratees); - result = _(list).chain().orderBy<{a: number}, SampleObject>(iteratees, orders); + result = _(list).chain().orderBy(iteratees); + result = _(list).chain().orderBy(iteratees, orders); result = _(list).chain().orderBy(iteratees); result = _(list).chain().orderBy(iteratees, orders); - result = _(numericDictionary).chain().orderBy<{a: number}, SampleObject>(iteratees); - result = _(numericDictionary).chain().orderBy<{a: number}, SampleObject>(iteratees, orders); + result = _(numericDictionary).chain().orderBy(iteratees); + result = _(numericDictionary).chain().orderBy(iteratees, orders); result = _(numericDictionary).chain().orderBy(iteratees); result = _(numericDictionary).chain().orderBy(iteratees, orders); - result = _(dictionary).chain().orderBy<{a: number}, SampleObject>(iteratees); - result = _(dictionary).chain().orderBy<{a: number}, SampleObject>(iteratees, orders); + result = _(dictionary).chain().orderBy(iteratees); + result = _(dictionary).chain().orderBy(iteratees, orders); result = _(dictionary).chain().orderBy(iteratees); result = _(dictionary).chain().orderBy(iteratees, orders); } @@ -6167,24 +6386,24 @@ namespace TestAry { { let result: SampleFunc; - result = _.ary(func); - result = _.ary(func, 2); - result = _.ary(func); - result = _.ary(func, 2); + result = _.ary(func); + result = _.ary(func, 2); + result = _.ary(func); + result = _.ary(func, 2); } { let result: _.LoDashImplicitObjectWrapper; - result = _(func).ary(); - result = _(func).ary(2); + result = _(func).ary(); + result = _(func).ary(2); } { let result: _.LoDashExplicitObjectWrapper; - result = _(func).chain().ary(); - result = _(func).chain().ary(2); + result = _(func).chain().ary(); + result = _(func).chain().ary(2); } } @@ -6226,8 +6445,8 @@ namespace TestBind { let result: SampleResult; - result = _.bind(func, any); - result = _.bind(func, any); + result = _.bind(func, any); + result = _.bind(func, any); } { @@ -6235,8 +6454,8 @@ namespace TestBind { let result: SampleResult; - result = _.bind(func, any, 42); - result = _.bind(func, any, 42); + result = _.bind(func, any, 42); + result = _.bind(func, any, 42); } { @@ -6244,8 +6463,8 @@ namespace TestBind { let result: SampleResult; - result = _.bind(func, any, 42, ''); - result = _.bind(func, any, 42, ''); + result = _.bind(func, any, 42, ''); + result = _.bind(func, any, 42, ''); } { @@ -6253,7 +6472,7 @@ namespace TestBind { let result: _.LoDashImplicitObjectWrapper; - result = _(func).bind(any); + result = _(func).bind(any); } { @@ -6261,7 +6480,7 @@ namespace TestBind { let result: _.LoDashImplicitObjectWrapper; - result = _(func).bind(any, 42); + result = _(func).bind(any, 42); } { @@ -6269,7 +6488,7 @@ namespace TestBind { let result: _.LoDashImplicitObjectWrapper; - result = _(func).bind(any, 42, ''); + result = _(func).bind(any, 42, ''); } { @@ -6277,23 +6496,23 @@ namespace TestBind { let result: _.LoDashExplicitObjectWrapper; - result = _(func).chain().bind(any); + result = _(func).chain().bind(any); } { type SampleResult = (b: string) => boolean; - let result: _.LoDashExplicitObjectWrapper; + let result: _.LoDashExplicitWrapper; - result = _(func).chain().bind(any, 42); + result = _(func).chain().bind(any, 42); } { type SampleResult = () => boolean; - let result: _.LoDashExplicitObjectWrapper; + let result: _.LoDashExplicitWrapper; - result = _(func).chain().bind(any, 42, ''); + result = _(func).chain().bind(any, 42, ''); } } @@ -6346,8 +6565,7 @@ namespace TestBindKey { let result: SampleResult; - result = _.bindKey(object, 'foo'); - result = _.bindKey(object, 'foo'); + result = _.bindKey(object, 'foo'); } { @@ -6355,8 +6573,7 @@ namespace TestBindKey { let result: SampleResult; - result = _.bindKey(object, 'foo', 42); - result = _.bindKey(object, 'foo', 42); + result = _.bindKey(object, 'foo', 42); } { @@ -6364,8 +6581,7 @@ namespace TestBindKey { let result: SampleResult; - result = _.bindKey(object, 'foo', 42, ''); - result = _.bindKey(object, 'foo', 42, ''); + result = _.bindKey(object, 'foo', 42, ''); } { @@ -6373,7 +6589,7 @@ namespace TestBindKey { let result: _.LoDashImplicitObjectWrapper; - result = _(object).bindKey('foo'); + result = _(object).bindKey('foo'); } { @@ -6381,7 +6597,7 @@ namespace TestBindKey { let result: _.LoDashImplicitObjectWrapper; - result = _(object).bindKey('foo', 42); + result = _(object).bindKey('foo', 42); } { @@ -6389,7 +6605,7 @@ namespace TestBindKey { let result: _.LoDashImplicitObjectWrapper; - result = _(object).bindKey('foo', 42, ''); + result = _(object).bindKey('foo', 42, ''); } { @@ -6397,7 +6613,7 @@ namespace TestBindKey { let result: _.LoDashExplicitObjectWrapper; - result = _(object).chain().bindKey('foo'); + result = _(object).chain().bindKey('foo'); } { @@ -6405,7 +6621,7 @@ namespace TestBindKey { let result: _.LoDashExplicitObjectWrapper; - result = _(object).chain().bindKey('foo', 42); + result = _(object).chain().bindKey('foo', 42); } { @@ -6413,16 +6629,10 @@ namespace TestBindKey { let result: _.LoDashExplicitObjectWrapper; - result = _(object).chain().bindKey('foo', 42, ''); + result = _(object).chain().bindKey('foo', 42, ''); } } -const createCallbackObj: { [index: string]: string; } = { name: 'Joe' }; -result = <() => any>_.createCallback('name'); -result = <() => boolean>_.createCallback(createCallbackObj); -result = <_.LoDashImplicitObjectWrapper<() => any>>_('name').createCallback(); -result = <_.LoDashImplicitObjectWrapper<() => boolean>>_(createCallbackObj).createCallback(); - // _.curry const testCurryFn = (a: number, b: number, c: number) => [a, b, c]; let curryResult0: number[] @@ -6527,10 +6737,10 @@ namespace TestDefer { { let result: number; - result = _.defer(func); - result = _.defer(func, any); - result = _.defer(func, any, any); - result = _.defer(func, any, any, any); + result = _.defer(func); + result = _.defer(func, any); + result = _.defer(func, any, any); + result = _.defer(func, any, any, any); } { @@ -6561,9 +6771,9 @@ namespace TestDelay { { let result: number; - result = _.delay(func, 1); - result = _.delay(func, 1, 2); - result = _.delay(func, 1, 2, ''); + result = _.delay(func, 1); + result = _.delay(func, 1, 2); + result = _.delay(func, 1, 2, ''); } { @@ -6628,34 +6838,34 @@ namespace TestFlow { result = _.flow(Fn2, Fn1, Fn1, Fn1, Fn1, Fn1); result = _.flow(Fn2, Fn1, Fn1, Fn1, Fn1, Fn1, Fn1); result = _.flow(Fn2, Fn1, Fn3, Fn4); - result = _.flow<(m: number, n: number) => number>([Fn2, Fn1, Fn3, Fn4]); + result = _.flow([Fn2, Fn1, Fn3, Fn4]); } { let result: (m: number, n: number) => number; - result = _.flow<(m: number, n: number) => number>(Fn1, Fn2); - result = _.flow<(m: number, n: number) => number>(Fn1, Fn1, Fn2); - result = _.flow<(m: number, n: number) => number>(Fn1, Fn1, Fn1, Fn2); - result = _.flow<(m: number, n: number) => number>([Fn1, Fn1, Fn1, Fn2]); + result = _.flow(Fn1, Fn2); + result = _.flow(Fn1, Fn1, Fn2); + result = _.flow(Fn1, Fn1, Fn1, Fn2); + result = _.flow([Fn1, Fn1, Fn1, Fn2]); } { let result: _.LoDashImplicitObjectWrapper<(m: number, n: number) => number>; - result = _(Fn1).flow<(m: number, n: number) => number>(Fn2); - result = _(Fn1).flow<(m: number, n: number) => number>(Fn1, Fn2); - result = _(Fn1).flow<(m: number, n: number) => number>(Fn1, Fn1, Fn2); - result = _(Fn1).flow<(m: number, n: number) => number>([Fn1, Fn1, Fn2]); + result = _(Fn1).flow(Fn2); + result = _(Fn1).flow(Fn1, Fn2); + result = _(Fn1).flow(Fn1, Fn1, Fn2); + result = _(Fn1).flow([Fn1, Fn1, Fn2]); } { let result: _.LoDashExplicitObjectWrapper<(m: number, n: number) => number>; - result = _(Fn1).chain().flow<(m: number, n: number) => number>(Fn2); - result = _(Fn1).chain().flow<(m: number, n: number) => number>(Fn1, Fn2); - result = _(Fn1).chain().flow<(m: number, n: number) => number>(Fn1, Fn1, Fn2); - result = _(Fn1).chain().flow<(m: number, n: number) => number>([Fn1, Fn1, Fn2]); + result = _(Fn1).chain().flow(Fn2); + result = _(Fn1).chain().flow(Fn1, Fn2); + result = _(Fn1).chain().flow(Fn1, Fn1, Fn2); + result = _(Fn1).chain().flow([Fn1, Fn1, Fn2]); } } @@ -6667,28 +6877,28 @@ namespace TestFlowRight { { let result: (m: number, n: number) => number; - result = _.flowRight<(m: number, n: number) => number>(Fn1, Fn2); - result = _.flowRight<(m: number, n: number) => number>(Fn1, Fn1, Fn2); - result = _.flowRight<(m: number, n: number) => number>(Fn1, Fn1, Fn1, Fn2); - result = _.flowRight<(m: number, n: number) => number>([Fn1, Fn1, Fn1, Fn2]); + result = _.flowRight(Fn1, Fn2); + result = _.flowRight(Fn1, Fn1, Fn2); + result = _.flowRight(Fn1, Fn1, Fn1, Fn2); + result = _.flowRight([Fn1, Fn1, Fn1, Fn2]); } { let result: _.LoDashImplicitObjectWrapper<(m: number, n: number) => number>; - result = _(Fn1).flowRight<(m: number, n: number) => number>(Fn2); - result = _(Fn1).flowRight<(m: number, n: number) => number>(Fn1, Fn2); - result = _(Fn1).flowRight<(m: number, n: number) => number>(Fn1, Fn1, Fn2); - result = _(Fn1).flowRight<(m: number, n: number) => number>([Fn1, Fn1, Fn2]); + result = _(Fn1).flowRight(Fn2); + result = _(Fn1).flowRight(Fn1, Fn2); + result = _(Fn1).flowRight(Fn1, Fn1, Fn2); + result = _(Fn1).flowRight([Fn1, Fn1, Fn2]); } { let result: _.LoDashExplicitObjectWrapper<(m: number, n: number) => number>; - result = _(Fn1).chain().flowRight<(m: number, n: number) => number>(Fn2); - result = _(Fn1).chain().flowRight<(m: number, n: number) => number>(Fn1, Fn2); - result = _(Fn1).chain().flowRight<(m: number, n: number) => number>(Fn1, Fn1, Fn2); - result = _(Fn1).chain().flowRight<(m: number, n: number) => number>([Fn1, Fn1, Fn2]); + result = _(Fn1).chain().flowRight(Fn2); + result = _(Fn1).chain().flowRight(Fn1, Fn2); + result = _(Fn1).chain().flowRight(Fn1, Fn1, Fn2); + result = _(Fn1).chain().flowRight([Fn1, Fn1, Fn2]); } } @@ -6763,43 +6973,43 @@ namespace TestOverArgs { { let result: (a: string) => boolean; - result = _.overArgs boolean>(func1, transform1); - result = _.overArgs boolean>(func1, [transform1]); + result = _.overArgs(func1, transform1); + result = _.overArgs(func1, [transform1]); } { let result: (a: string, b: number) => boolean; - result = _.overArgs boolean>(func2, transform1, transform2); - result = _.overArgs boolean>(func2, [transform1, transform2]); + result = _.overArgs(func2, transform1, transform2); + result = _.overArgs(func2, [transform1, transform2]); } { let result: _.LoDashImplicitObjectWrapper<(a: string) => boolean>; - result = _(func1).overArgs<(a: string) => boolean>(transform1); - result = _(func1).overArgs<(a: string) => boolean>([transform1]); + result = _(func1).overArgs(transform1); + result = _(func1).overArgs([transform1]); } { let result: _.LoDashImplicitObjectWrapper<(a: string, b: number) => boolean>; - result = _(func2).overArgs<(a: string, b: number) => boolean>(transform1, transform2); - result = _(func2).overArgs<(a: string, b: number) => boolean>([transform1, transform2]); + result = _(func2).overArgs(transform1, transform2); + result = _(func2).overArgs([transform1, transform2]); } { let result: _.LoDashExplicitObjectWrapper<(a: string) => boolean>; - result = _(func1).chain().overArgs<(a: string) => boolean>(transform1); - result = _(func1).chain().overArgs<(a: string) => boolean>([transform1]); + result = _(func1).chain().overArgs(transform1); + result = _(func1).chain().overArgs([transform1]); } { let result: _.LoDashExplicitObjectWrapper<(a: string, b: number) => boolean>; - result = _(func2).chain().overArgs<(a: string, b: number) => boolean>(transform1, transform2); - result = _(func2).chain().overArgs<(a: string, b: number) => boolean>([transform1, transform2]); + result = _(func2).chain().overArgs(transform1, transform2); + result = _(func2).chain().overArgs([transform1, transform2]); } } @@ -6819,21 +7029,18 @@ namespace TestNegate { let result: ResultFn; result = _.negate(predicate); - result = _.negate(predicate); } { let result: _.LoDashImplicitObjectWrapper; result = _(predicate).negate(); - result = _(predicate).negate(); } { let result: _.LoDashExplicitObjectWrapper; result = _(predicate).chain().negate(); - result = _(predicate).chain().negate(); } } @@ -6882,10 +7089,10 @@ const testReargFn = (a: string, b: string, c: string) => [a, b, c]; interface TestReargResultFn { (b: string, c: string, a: string): string[]; } -result = (_.rearg(testReargFn, 2, 0, 1))('b', 'c', 'a'); -result = (_.rearg(testReargFn, [2, 0, 1]))('b', 'c', 'a'); -result = (_(testReargFn).rearg(2, 0, 1).value())('b', 'c', 'a'); -result = (_(testReargFn).rearg([2, 0, 1]).value())('b', 'c', 'a'); +result = (_.rearg(testReargFn, 2, 0, 1))('b', 'c', 'a'); +result = (_.rearg(testReargFn, [2, 0, 1]))('b', 'c', 'a'); +result = (_(testReargFn).rearg(2, 0, 1).value())('b', 'c', 'a'); +result = (_(testReargFn).rearg([2, 0, 1]).value())('b', 'c', 'a'); // _.rest namespace TestRest { @@ -6897,25 +7104,22 @@ namespace TestRest { { let result: ResultFunc; - result = _.rest(func); - result = _.rest(func, 1); - - result = _.rest(func); - result = _.rest(func, 1); + result = _.rest(func); + result = _.rest(func, 1); } { let result: _.LoDashImplicitObjectWrapper; - result = _(func).rest(); - result = _(func).rest(1); + result = _(func).rest(); + result = _(func).rest(1); } { let result: _.LoDashExplicitObjectWrapper; - result = _(func).chain().rest(); - result = _(func).chain().rest(1); + result = _(func).chain().rest(); + result = _(func).chain().rest(1); } } @@ -6929,20 +7133,19 @@ namespace TestSpread { { let result: SampleResult; - result = _.spread(func); - result = _.spread(func); + result = _.spread(func); } { let result: _.LoDashImplicitObjectWrapper; - result = _(func).spread(); + result = _(func).spread(); } { let result: _.LoDashExplicitObjectWrapper; - result = _(func).chain().spread(); + result = _(func).chain().spread(); } } @@ -7030,9 +7233,7 @@ namespace TestWrap { let wrapper: SampleWrapper = (a, b, c) => true; let result: SampleResult; - result = _.wrap(value, wrapper); - result = _.wrap(value, wrapper); - result = _.wrap(value, wrapper); + result = _.wrap(value, wrapper); } { @@ -7042,8 +7243,7 @@ namespace TestWrap { let wrapper: SampleWrapper = (a, b, c) => true; let result: _.LoDashImplicitObjectWrapper; - result = _(value).wrap(wrapper); - result = _(value).wrap(wrapper); + result = _(value).wrap(wrapper); } { @@ -7053,8 +7253,7 @@ namespace TestWrap { let wrapper: SampleWrapper = (a, b, c) => true; let result: _.LoDashImplicitObjectWrapper; - result = _(value).wrap(wrapper); - result = _(value).wrap(wrapper); + result = _(value).wrap(wrapper); } { @@ -7064,8 +7263,7 @@ namespace TestWrap { let wrapper: SampleWrapper = (a, b, c) => true; let result: _.LoDashImplicitObjectWrapper; - result = _(value).wrap(wrapper); - result = _(value).wrap(wrapper); + result = _(value).wrap(wrapper); } { @@ -7075,8 +7273,7 @@ namespace TestWrap { let wrapper: SampleWrapper = (a, b, c) => true; let result: _.LoDashExplicitObjectWrapper; - result = _(value).chain().wrap(wrapper); - result = _(value).chain().wrap(wrapper); + result = _(value).chain().wrap(wrapper); } { @@ -7086,8 +7283,7 @@ namespace TestWrap { let wrapper: SampleWrapper = (a, b, c) => true; let result: _.LoDashExplicitObjectWrapper; - result = _(value).chain().wrap(wrapper); - result = _(value).chain().wrap(wrapper); + result = _(value).chain().wrap(wrapper); } { @@ -7097,8 +7293,7 @@ namespace TestWrap { let wrapper: SampleWrapper = (a, b, c) => true; let result: _.LoDashExplicitObjectWrapper; - result = _(value).chain().wrap(wrapper); - result = _(value).chain().wrap(wrapper); + result = _(value).chain().wrap(wrapper); } } @@ -7160,7 +7355,7 @@ namespace TestClone { let result: string[]; result = _.clone(['']); - result = _(['']).clone(); + result = _(['']).clone(); } { @@ -7202,7 +7397,7 @@ namespace TestCloneDeep { let result: string[]; result = _.cloneDeep(['']); - result = _(['']).cloneDeep(); + result = _(['']).cloneDeep(); } { @@ -7235,48 +7430,45 @@ namespace TestCloneDeepWith { let customizer: CloneDeepWithCustomizer = (x) => ""; let reslut: string; - result = _.cloneDeepWith(42, customizer); - result = _.cloneDeepWith(42, customizer); - result = _(42).cloneDeepWith(customizer); + result = _.cloneDeepWith(42, customizer); + result = _(42).cloneDeepWith(customizer); } { let customizer: CloneDeepWithCustomizer = (x) => ""; let result: _.LoDashExplicitWrapper; - result = _(42).chain().cloneDeepWith(customizer); + result = _(42).chain().cloneDeepWith(customizer); } { let customizer: CloneDeepWithCustomizer = (x) => []; let reslut: string[]; - result = _.cloneDeepWith([42], customizer); - result = _.cloneDeepWith([42], customizer); - result = _([42]).cloneDeepWith(customizer); + result = _.cloneDeepWith([42], customizer); + result = _([42]).cloneDeepWith(customizer); } { let customizer: CloneDeepWithCustomizer = (x) => []; let result: _.LoDashExplicitArrayWrapper; - result = _([42]).chain().cloneDeepWith(customizer); + result = _([42]).chain().cloneDeepWith(customizer); } { let customizer: CloneDeepWithCustomizer<{a: {b: number;};}, {a: {b: string;};}> = (x) => ({ a: { b: "" } }); let reslut: {a: {b: string;};}; - result = _.cloneDeepWith<{a: {b: string;};}>({a: {b: 42}}, customizer); - result = _.cloneDeepWith<{a: {b: number;};}, {a: {b: string;};}>({a: {b: 42}}, customizer); - result = _({a: {b: 42}}).cloneDeepWith<{a: {b: string;};}>(customizer); + result = _.cloneDeepWith({a: {b: 42}}, customizer); + result = _({a: {b: 42}}).cloneDeepWith(customizer); } { let customizer: CloneDeepWithCustomizer<{a: {b: number;};}, {a: {b: string;};}> = (x) => ({ a: { b: "" } }); let result: _.LoDashExplicitObjectWrapper<{a: {b: string;};}>; - result = _({a: {b: 42}}).chain().cloneDeepWith<{a: {b: string;};}>(customizer); + result = _({a: {b: 42}}).chain().cloneDeepWith(customizer); } } @@ -7290,7 +7482,7 @@ namespace TestCloneWith { let customizer: CloneWithCustomizer = (x) => ""; let reslut: string; - result = _.cloneWith(42, customizer); + result = _.cloneWith(42, customizer); result = _.cloneWith(42, customizer); result = _(42).cloneWith(customizer); } @@ -7306,7 +7498,7 @@ namespace TestCloneWith { let customizer: CloneWithCustomizer = (x) => []; let reslut: string[]; - result = _.cloneWith([42], customizer); + result = _.cloneWith([42], customizer); result = _.cloneWith([42], customizer); result = _([42]).cloneWith(customizer); } @@ -7315,14 +7507,14 @@ namespace TestCloneWith { let customizer: CloneWithCustomizer = (x) => []; let result: _.LoDashExplicitArrayWrapper; - result = _([42]).chain().cloneWith(customizer); + result = _([42]).chain().cloneWith(customizer); } { let customizer: CloneWithCustomizer<{a: {b: number;};}, {a: {b: string;};}> = (x) => ({ a: { b: "" } }); let reslut: {a: {b: string;};}; - result = _.cloneWith<{a: {b: string;};}>({a: {b: 42}}, customizer); + result = _.cloneWith({a: {b: 42}}, customizer); result = _.cloneWith<{a: {b: number;};}, {a: {b: string;};}>({a: {b: 42}}, customizer); result = _({a: {b: 42}}).cloneWith<{a: {b: string;};}>(customizer); } @@ -7503,14 +7695,13 @@ namespace TestIsArrayBuffer { namespace TestIsArrayLike { { let value: string | string[] | { [index: number]: boolean, length: number } | [number, boolean] - | number | Function | { length: string } | { a: string } + | number | { length: string } | { a: string } | null | undefined = any; if (_.isArrayLike(value)) { let result: string | string[] | { [index: number]: boolean, length: number } | [number, boolean] = value; - } - else { - let result: number | Function | { length: string } | { a: string; } = value; + } else { + let result: number | { length: string } | { a: string; } | null | undefined = value; } } @@ -7530,8 +7721,7 @@ namespace TestIsArrayLike { if (_.isArrayLike(value)) { value; // $ExpectType never - } - else { + } else { value; // $ExpectType Function } } @@ -7580,14 +7770,13 @@ namespace TestIsArrayLike { namespace TestIsArrayLikeObject { { let value: string[] | { [index: number]: boolean, length: number } | [number, boolean] - | number | string | Function | { length: string } | { a: string } + | number | string | { length: string } | { a: string } | null | undefined = any; if (_.isArrayLikeObject(value)) { let result: string[] | { [index: number]: boolean, length: number } | [number, boolean] = value; - } - else { - let result: string | number | Function | { length: string; } | { a: string; } = value; + } else { + let result: string | number | { length: string; } | { a: string; } | null | undefined = value; } } @@ -7607,8 +7796,7 @@ namespace TestIsArrayLikeObject { if (_.isArrayLikeObject(value)) { value; // $ExpectType never - } - else { + } else { value; // $ExpectType string | Function } } @@ -7963,7 +8151,7 @@ namespace TestIsMap { { let value: number|Map = 0; - if (_.isMap(value)) { + if (_.isMap(value)) { let result: Map = value; } else { @@ -8253,7 +8441,7 @@ namespace TestIsSet { { let value: number|Set = 0; - if (_.isSet(value)) { + if (_.isSet(value)) { let result: Set = value; } else { @@ -8375,7 +8563,7 @@ namespace TestIsWeakMap { let value: number|WeakMap = 0; - if (_.isWeakMap(value)) { + if (_.isWeakMap(value)) { let result: WeakMap = value; } else { @@ -8531,23 +8719,23 @@ namespace TestToArray { namespace TestToPlainObject { { let result: TResult; - result = _.toPlainObject(); - result = _.toPlainObject(true); - result = _.toPlainObject(1); - result = _.toPlainObject('a'); - result = _.toPlainObject([]); - result = _.toPlainObject({}); + result = _.toPlainObject(); + result = _.toPlainObject(true); + result = _.toPlainObject(1); + result = _.toPlainObject('a'); + result = _.toPlainObject([]); + result = _.toPlainObject({}); } { let result: _.LoDashImplicitObjectWrapper; - result = _(true).toPlainObject(); - result = _(1).toPlainObject(); - result = _('a').toPlainObject(); - result = _([1]).toPlainObject(); - result = _([]).toPlainObject(); - result = _({}).toPlainObject(); + result = _(true).toPlainObject(); + result = _(1).toPlainObject(); + result = _('a').toPlainObject(); + result = _([1]).toPlainObject(); + result = _(['']).toPlainObject(); + result = _({}).toPlainObject(); } } @@ -8563,13 +8751,13 @@ namespace TestToFinite { } { - let result: _.LoDashImplicitWrapper; + let result: number; result = _(true).toFinite(); result = _(1).toFinite(); result = _('3.2').toFinite(); result = _([1]).toFinite(); - result = _([]).toFinite(); + result = _([]).toFinite(); result = _({}).toFinite(); } } @@ -8586,13 +8774,13 @@ namespace TestToInteger { } { - let result: _.LoDashImplicitWrapper; + let result: number; result = _(true).toInteger(); result = _(1).toInteger(); result = _('a').toInteger(); result = _([1]).toInteger(); - result = _([]).toInteger(); + result = _(['']).toInteger(); result = _({}).toInteger(); } } @@ -8609,13 +8797,13 @@ namespace TestToLength { } { - let result: _.LoDashImplicitWrapper; + let result: number; result = _(true).toLength(); result = _(1).toLength(); result = _('a').toLength(); result = _([1]).toLength(); - result = _([]).toLength(); + result = _(['']).toLength(); result = _({}).toLength(); } } @@ -8632,13 +8820,13 @@ namespace TestToNumber { } { - let result: _.LoDashImplicitWrapper; + let result: number; result = _(true).toNumber(); result = _(1).toNumber(); result = _('a').toNumber(); result = _([1]).toNumber(); - result = _([]).toNumber(); + result = _(['']).toNumber(); result = _({}).toNumber(); } } @@ -8655,13 +8843,13 @@ namespace TestToSafeInteger { } { - let result: _.LoDashImplicitWrapper; + let result: number; result = _(true).toSafeInteger(); result = _(1).toSafeInteger(); result = _('a').toSafeInteger(); result = _([1]).toSafeInteger(); - result = _([]).toSafeInteger(); + result = _(['']).toSafeInteger(); result = _({}).toSafeInteger(); } } @@ -8764,42 +8952,33 @@ namespace TestMax { namespace TestMaxBy { let array: number[] = []; let list: _.List = []; - let dictionary: _.Dictionary = {}; + let array2: TResult[] = []; + let list2: _.List = []; let listIterator = (value: number, index: number, collection: _.List) => 0; - let dictionaryIterator = (value: number, key: string, collection: _.Dictionary) => 0; let result: number | undefined; + let result2: TResult | undefined; result = _.maxBy(array); result = _.maxBy(array, listIterator); result = _.maxBy(array, ''); - result = _.maxBy<{a: number}, number>(array, {a: 42}); + result2 = _.maxBy(array2, {a: 42}); result = _.maxBy(list); result = _.maxBy(list, listIterator); result = _.maxBy(list, ''); - result = _.maxBy<{a: number}, number>(list, {a: 42}); - - result = _.maxBy(dictionary); - result = _.maxBy(dictionary, dictionaryIterator); - result = _.maxBy(dictionary, ''); - result = _.maxBy<{a: number}, number>(dictionary, {a: 42}); + result2 = _.maxBy(list2, {a: 42}); result = _(array).maxBy(); result = _(array).maxBy(listIterator); result = _(array).maxBy(''); - result = _(array).maxBy<{a: number}>({a: 42}); + result2 = _(array2).maxBy({a: 42}); result = _(list).maxBy(); result = _(list).maxBy(listIterator); result = _(list).maxBy(''); - result = _(list).maxBy<{a: number}, number>({a: 42}); - - result = _(dictionary).maxBy(); - result = _(dictionary).maxBy(dictionaryIterator); - result = _(dictionary).maxBy(''); - result = _(dictionary).maxBy<{a: number}, number>({a: 42}); + result2 = _(list2).maxBy({a: 42}); } // _.mean @@ -8809,7 +8988,6 @@ namespace TestMean { let result: number; result = _.mean(array); - result = _.mean(array); result = _(array).mean(); } @@ -8844,42 +9022,33 @@ namespace TestMin { namespace TestMinBy { let array: number[] = []; let list: _.List = []; - let dictionary: _.Dictionary = {}; + let array2: TResult[] = []; + let list2: _.List = []; let listIterator = (value: number, index: number, collection: _.List) => 0; - let dictionaryIterator = (value: number, key: string, collection: _.Dictionary) => 0; let result: number | undefined; + let result2: TResult | undefined; result = _.minBy(array); result = _.minBy(array, listIterator); result = _.minBy(array, ''); - result = _.minBy<{a: number}, number>(array, {a: 42}); + result2 = _.minBy(array2, {a: 42}); result = _.minBy(list); result = _.minBy(list, listIterator); result = _.minBy(list, ''); - result = _.minBy<{a: number}, number>(list, {a: 42}); - - result = _.minBy(dictionary); - result = _.minBy(dictionary, dictionaryIterator); - result = _.minBy(dictionary, ''); - result = _.minBy<{a: number}, number>(dictionary, {a: 42}); + result2 = _.minBy(list2, {a: 42}); result = _(array).minBy(); result = _(array).minBy(listIterator); result = _(array).minBy(''); - result = _(array).minBy<{a: number}>({a: 42}); + result2 = _(array2).minBy({a: 42}); result = _(list).minBy(); result = _(list).minBy(listIterator); result = _(list).minBy(''); - result = _(list).minBy<{a: number}, number>({a: 42}); - - result = _(dictionary).minBy(); - result = _(dictionary).minBy(dictionaryIterator); - result = _(dictionary).minBy(''); - result = _(dictionary).minBy<{a: number}, number>({a: 42}); + result2 = _(list2).minBy({a: 42}); } // _.multiply @@ -8933,10 +9102,8 @@ namespace TestSum { let result: number; result = _.sum(array); - result = _.sum(array); result = _.sum(list); - result = _.sum(list); result = _(array).sum(); @@ -8964,7 +9131,7 @@ namespace TestSumBy { let list: _.List | null | undefined = [] as any; let objectList: _.List<{ 'age': number }> | null | undefined = [] as any; - let listIterator = (value: number, index: number, collection: _.List) => 0; + let listIterator = (value: number) => 0; { let result: number; @@ -8972,17 +9139,15 @@ namespace TestSumBy { result = _.sumBy(array); result = _.sumBy(array, listIterator); result = _.sumBy(objectArray, 'age'); - result = _.sumBy(objectArray, { 'age': 30 }); result = _.sumBy(list); result = _.sumBy(list, listIterator); result = _.sumBy(objectList, 'age'); - result = _.sumBy(objectList, { 'age': 30 }); result = _(array).sumBy(listIterator); result = _(objectArray).sumBy('age'); - result = _(list).sumBy((value: _.List | null | undefined, index: number, collection: _.List<_.List | null | undefined>) => 0); + result = _(list).sumBy(listIterator); result = _(objectList).sumBy('age'); } @@ -8992,7 +9157,7 @@ namespace TestSumBy { result = _(array).chain().sumBy(listIterator); result = _(objectArray).chain().sumBy('age'); - result = _(list).chain().sumBy((value: _.List | null | undefined, index: number, collection: _.List<_.List | null | undefined>) => 0); + result = _(list).chain().sumBy(listIterator); result = _(objectList).chain().sumBy('age'); } } @@ -9138,7 +9303,7 @@ namespace TestAssign { { let result: { a: number, b: number, c: number, d: number, e: number }; - result = _.assign<{ a: number, b: number, c: number, d: number, e: number }>(obj, s1, s2, s3, s4, s5); + result = _.assign(obj, s1, s2, s3, s4, s5); } { @@ -9174,7 +9339,7 @@ namespace TestAssign { { let result: _.LoDashImplicitObjectWrapper<{ a: number, b: number, c: number, d: number, e: number }>; - result = _(obj).assign<{ a: number, b: number, c: number, d: number, e: number }>(s1, s2, s3, s4, s5); + result = _(obj).assign(s1, s2, s3, s4, s5); } { @@ -9210,7 +9375,7 @@ namespace TestAssign { { let result: _.LoDashExplicitObjectWrapper<{ a: number, b: number, c: number, d: number, e: number }>; - result = _(obj).chain().assign<{ a: number, b: number, c: number, d: number, e: number }>(s1, s2, s3, s4, s5); + result = _(obj).chain().assign(s1, s2, s3, s4, s5); } } @@ -9322,7 +9487,7 @@ namespace TestAssignWith { { let result: _.LoDashExplicitObjectWrapper<{ a: number, b: number, c: number, d: number, e: number }>; - result = _(obj).chain().assignWith<{ a: number, b: number, c: number, d: number, e: number }>(s1, s2, s3, s4, s5, customizer); + result = _(obj).chain().assignWith(s1, s2, s3, s4, s5, customizer); } } @@ -9449,7 +9614,7 @@ namespace TestAssignIn { { let result: _.LoDashExplicitObjectWrapper<{ a: number, b: number, c: number, d: number, e: number }>; - result = _(obj).chain().assignIn<{ a: number, b: number, c: number, d: number, e: number }>(s1, s2, s3, s4, s5); + result = _(obj).chain().assignIn(s1, s2, s3, s4, s5); } } @@ -9561,7 +9726,7 @@ namespace TestAssignInWith { { let result: _.LoDashExplicitObjectWrapper<{ a: number, b: number, c: number, d: number, e: number }>; - result = _(obj).chain().assignInWith<{ a: number, b: number, c: number, d: number, e: number }>(s1, s2, s3, s4, s5, customizer); + result = _(obj).chain().assignInWith(s1, s2, s3, s4, s5, customizer); } } @@ -9644,7 +9809,7 @@ namespace TestDefaults { { let result: { a: string, b: number, c: number, d: number, e: number }; - result = _.defaults<{ a: string, b: number, c: number, d: number, e: number }>(obj, s1, s2, s3, s4, s5); + result = _.defaults(obj, s1, s2, s3, s4, s5); } { @@ -9680,7 +9845,7 @@ namespace TestDefaults { { let result: _.LoDashImplicitObjectWrapper<{ a: string, b: number, c: number, d: number, e: number }>; - result = _(obj).defaults<{ a: string, b: number, c: number, d: number, e: number }>(s1, s2, s3, s4, s5); + result = _(obj).defaults(s1, s2, s3, s4, s5); } { @@ -9716,7 +9881,7 @@ namespace TestDefaults { { let result: _.LoDashExplicitObjectWrapper<{ a: string, b: number, c: number, d: number, e: number }>; - result = _(obj).chain().defaults<{ a: string, b: number, c: number, d: number, e: number }>(s1, s2, s3, s4, s5); + result = _(obj).chain().defaults(s1, s2, s3, s4, s5); } } @@ -9730,45 +9895,27 @@ interface DefaultsDeepResult { const TestDefaultsDeepObject = { 'user': { 'name': 'barney' } }; const TestDefaultsDeepSource = { 'user': { 'name': 'fred', 'age': 36 } }; result = _.defaultsDeep(TestDefaultsDeepObject, TestDefaultsDeepSource); -result = _(TestDefaultsDeepObject).defaultsDeep(TestDefaultsDeepSource).value(); +result = _(TestDefaultsDeepObject).defaultsDeep(TestDefaultsDeepSource).value(); // _.entries namespace TestEntries { let object: _.Dictionary = {}; - { - let result: [string, any][]; - - result = _.entries<_.Dictionary>(object); - } - { let result: [string, string][]; - result = _.entries<_.Dictionary, string>(object); + result = _.entries(object); } { let result: _.LoDashImplicitArrayWrapper<[string, string]>; - result = _(object).entries(); - } - - { - let result: _.LoDashImplicitArrayWrapper<[string, any]>; - result = _(object).entries(); } { let result: _.LoDashExplicitArrayWrapper<[string, string]>; - result = _(object).chain().entries(); - } - - { - let result: _.LoDashExplicitArrayWrapper<[string, any]>; - result = _(object).chain().entries(); } } @@ -9777,27 +9924,15 @@ namespace TestEntries { namespace TestEntriesIn { let object: _.Dictionary = {}; - { - let result: [string, any][]; - - result = _.entriesIn<_.Dictionary>(object); - } - { let result: [string, string][]; - result = _.entriesIn<_.Dictionary, string>(object); + result = _.entriesIn(object); } { let result: _.LoDashImplicitArrayWrapper<[string, string]>; - result = _(object).entriesIn(); - } - - { - let result: _.LoDashImplicitArrayWrapper<[string, any]>; - result = _(object).entriesIn(); } @@ -9901,7 +10036,7 @@ namespace TestExtend { { let result: _.LoDashImplicitObjectWrapper<{ a: number, b: number, c: number, d: number, e: number }>; - result = _(obj).extend<{ a: number, b: number, c: number, d: number, e: number }>(s1, s2, s3, s4, s5); + result = _(obj).extend(s1, s2, s3, s4, s5); } { @@ -9937,7 +10072,7 @@ namespace TestExtend { { let result: _.LoDashExplicitObjectWrapper<{ a: number, b: number, c: number, d: number, e: number }>; - result = _(obj).chain().extend<{ a: number, b: number, c: number, d: number, e: number }>(s1, s2, s3, s4, s5); + result = _(obj).chain().extend(s1, s2, s3, s4, s5); } } @@ -10028,7 +10163,7 @@ namespace TestExtendWith { { let result: _.LoDashImplicitObjectWrapper<{ a: number, b: number, c: number, d: number, e: number }>; - result = _(obj).extendWith<{ a: number, b: number, c: number, d: number, e: number }>(s1, s2, s3, s4, s5, customizer); + result = _(obj).extendWith(s1, s2, s3, s4, s5, customizer); } { @@ -10064,7 +10199,7 @@ namespace TestExtendWith { { let result: _.LoDashExplicitObjectWrapper<{ a: number, b: number, c: number, d: number, e: number }>; - result = _(obj).chain().extendWith<{ a: number, b: number, c: number, d: number, e: number }>(s1, s2, s3, s4, s5, customizer); + result = _(obj).chain().extendWith(s1, s2, s3, s4, s5, customizer); } } @@ -10081,7 +10216,7 @@ namespace TestFindKey { result = _.findKey<{a: string;}>({a: ''}, ''); - result = _.findKey<{a: number;}, {a: string;}>({a: ''}, {a: 42}); + result = _.findKey({a: { b: 5 }}, {b: 42}); result = _.findKey({a: { b: 5 }}, ['b', 5]); @@ -10091,16 +10226,16 @@ namespace TestFindKey { result = _<{a: string;}>({a: ''}).findKey(''); - result = _<{a: string;}>({a: ''}).findKey<{a: number;}>({a: 42}); + result = _({a: { b: 5 }}).findKey({b: 42}); } { let predicateFn = (value: string, key: string, collection: _.Dictionary) => true; let result: string | undefined; - result = _.findKey({a: ''}, predicateFn); + result = _.findKey({a: ''}, predicateFn); - result = _<{a: string;}>({a: ''}).findKey(predicateFn); + result = _({a: ''}).findKey(predicateFn); } { @@ -10113,14 +10248,14 @@ namespace TestFindKey { result = _<{a: string;}>({a: ''}).chain().findKey(''); - result = _<{a: string;}>({a: ''}).chain().findKey<{a: number;}>({a: 42}); + result = _({a: { b: 5 }}).chain().findKey({b: 42}); } { let predicateFn = (value: string, key: string, collection: _.Dictionary) => true; let result: _.LoDashExplicitWrapper; - result = _<{a: string;}>({a: ''}).chain().findKey(predicateFn); + result = _({a: ''}).chain().findKey(predicateFn); } } @@ -10136,7 +10271,7 @@ namespace TestFindLastKey { result = _.findLastKey<{a: string;}>({a: ''}, ''); - result = _.findLastKey<{a: number;}, {a: string;}>({a: ''}, {a: 42}); + result = _.findLastKey({a: { b: 5 }}, {b: 42}); result = _.findLastKey({a: { b: 5 }}, ['b', 5]); @@ -10146,16 +10281,16 @@ namespace TestFindLastKey { result = _<{a: string;}>({a: ''}).findLastKey(''); - result = _<{a: string;}>({a: ''}).findLastKey<{a: number;}>({a: 42}); + result = _({a: { b: 5 }}).findLastKey({b: 42}); } { let predicateFn = (value: string, key: string, collection: _.Dictionary) => true; let result: string | undefined; - result = _.findLastKey({a: ''}, predicateFn); + result = _.findLastKey({a: ''}, predicateFn); - result = _<{a: string;}>({a: ''}).findLastKey(predicateFn); + result = _({a: ''}).findLastKey(predicateFn); } { @@ -10168,14 +10303,14 @@ namespace TestFindLastKey { result = _<{a: string;}>({a: ''}).chain().findLastKey(''); - result = _<{a: string;}>({a: ''}).chain().findLastKey<{a: number;}>({a: 42}); + result = _({a: { b: 5 }}).chain().findLastKey({b: 42}); } { let predicateFn = (value: string, key: string, collection: _.Dictionary) => true; let result: _.LoDashExplicitWrapper; - result = _<{a: string;}>({a: ''}).chain().findLastKey(predicateFn); + result = _({a: ''}).chain().findLastKey(predicateFn); } } @@ -10194,15 +10329,15 @@ namespace TestForIn { { let result: _.Dictionary; - result = _.forIn(dictionary); - result = _.forIn(dictionary, dictionaryIterator); + result = _.forIn(dictionary); + result = _.forIn(dictionary, dictionaryIterator); } { let result: _.Dictionary | null | undefined; - result = _.forIn(nilDictionary); - result = _.forIn(nilDictionary, dictionaryIterator); + result = _.forIn(nilDictionary); + result = _.forIn(nilDictionary, dictionaryIterator); } { @@ -10222,29 +10357,29 @@ namespace TestForIn { { let result: _.LoDashImplicitObjectWrapper<_.Dictionary>; - result = _(dictionary).forIn(); - result = _(dictionary).forIn(dictionaryIterator); + result = _(dictionary).forIn(); + result = _(dictionary).forIn(dictionaryIterator); } { let result: _.LoDashImplicitNillableObjectWrapper<_.Dictionary>; - result = _(nilDictionary).forIn(); - result = _(nilDictionary).forIn(dictionaryIterator); + result = _(nilDictionary).forIn(); + result = _(nilDictionary).forIn(dictionaryIterator); } { let result: _.LoDashExplicitObjectWrapper<_.Dictionary>; - result = _(dictionary).chain().forIn(); - result = _(dictionary).chain().forIn(dictionaryIterator); + result = _(dictionary).chain().forIn(); + result = _(dictionary).chain().forIn(dictionaryIterator); } { let result: _.LoDashExplicitNillableObjectWrapper<_.Dictionary>; - result = _(nilDictionary).chain().forIn(); - result = _(nilDictionary).chain().forIn(dictionaryIterator); + result = _(nilDictionary).chain().forIn(); + result = _(nilDictionary).chain().forIn(dictionaryIterator); } } @@ -10263,15 +10398,15 @@ namespace TestForInRight { { let result: _.Dictionary; - result = _.forInRight(dictionary); - result = _.forInRight(dictionary, dictionaryIterator); + result = _.forInRight(dictionary); + result = _.forInRight(dictionary, dictionaryIterator); } { let result: _.Dictionary | null | undefined; - result = _.forInRight(nilDictionary); - result = _.forInRight(nilDictionary, dictionaryIterator); + result = _.forInRight(nilDictionary); + result = _.forInRight(nilDictionary, dictionaryIterator); } { @@ -10291,29 +10426,29 @@ namespace TestForInRight { { let result: _.LoDashImplicitObjectWrapper<_.Dictionary>; - result = _(dictionary).forInRight(); - result = _(dictionary).forInRight(dictionaryIterator); + result = _(dictionary).forInRight(); + result = _(dictionary).forInRight(dictionaryIterator); } { let result: _.LoDashImplicitNillableObjectWrapper<_.Dictionary>; - result = _(nilDictionary).forInRight(); - result = _(nilDictionary).forInRight(dictionaryIterator); + result = _(nilDictionary).forInRight(); + result = _(nilDictionary).forInRight(dictionaryIterator); } { let result: _.LoDashExplicitObjectWrapper<_.Dictionary>; - result = _(dictionary).chain().forInRight(); - result = _(dictionary).chain().forInRight(dictionaryIterator); + result = _(dictionary).chain().forInRight(); + result = _(dictionary).chain().forInRight(dictionaryIterator); } { let result: _.LoDashExplicitNillableObjectWrapper<_.Dictionary>; - result = _(nilDictionary).chain().forInRight(); - result = _(nilDictionary).chain().forInRight(dictionaryIterator); + result = _(nilDictionary).chain().forInRight(); + result = _(nilDictionary).chain().forInRight(dictionaryIterator); } } @@ -10332,15 +10467,15 @@ namespace TestForOwn { { let result: _.Dictionary; - result = _.forOwn(dictionary); - result = _.forOwn(dictionary, dictionaryIterator); + result = _.forOwn(dictionary); + result = _.forOwn(dictionary, dictionaryIterator); } { let result: _.Dictionary | null | undefined; - result = _.forOwn(nilDictionary); - result = _.forOwn(nilDictionary, dictionaryIterator); + result = _.forOwn(nilDictionary); + result = _.forOwn(nilDictionary, dictionaryIterator); } { @@ -10360,29 +10495,29 @@ namespace TestForOwn { { let result: _.LoDashImplicitObjectWrapper<_.Dictionary>; - result = _(dictionary).forOwn(); - result = _(dictionary).forOwn(dictionaryIterator); + result = _(dictionary).forOwn(); + result = _(dictionary).forOwn(dictionaryIterator); } { let result: _.LoDashImplicitNillableObjectWrapper<_.Dictionary>; - result = _(nilDictionary).forOwn(); - result = _(nilDictionary).forOwn(dictionaryIterator); + result = _(nilDictionary).forOwn(); + result = _(nilDictionary).forOwn(dictionaryIterator); } { let result: _.LoDashExplicitObjectWrapper<_.Dictionary>; - result = _(dictionary).chain().forOwn(); - result = _(dictionary).chain().forOwn(dictionaryIterator); + result = _(dictionary).chain().forOwn(); + result = _(dictionary).chain().forOwn(dictionaryIterator); } { let result: _.LoDashExplicitNillableObjectWrapper<_.Dictionary>; - result = _(nilDictionary).chain().forOwn(); - result = _(nilDictionary).chain().forOwn(dictionaryIterator); + result = _(nilDictionary).chain().forOwn(); + result = _(nilDictionary).chain().forOwn(dictionaryIterator); } } @@ -10401,15 +10536,15 @@ namespace TestForOwnRight { { let result: _.Dictionary; - result = _.forOwnRight(dictionary); - result = _.forOwnRight(dictionary, dictionaryIterator); + result = _.forOwnRight(dictionary); + result = _.forOwnRight(dictionary, dictionaryIterator); } { let result: _.Dictionary | null | undefined; - result = _.forOwnRight(nilDictionary); - result = _.forOwnRight(nilDictionary, dictionaryIterator); + result = _.forOwnRight(nilDictionary); + result = _.forOwnRight(nilDictionary, dictionaryIterator); } { @@ -10429,29 +10564,29 @@ namespace TestForOwnRight { { let result: _.LoDashImplicitObjectWrapper<_.Dictionary>; - result = _(dictionary).forOwnRight(); - result = _(dictionary).forOwnRight(dictionaryIterator); + result = _(dictionary).forOwnRight(); + result = _(dictionary).forOwnRight(dictionaryIterator); } { let result: _.LoDashImplicitNillableObjectWrapper<_.Dictionary>; - result = _(nilDictionary).forOwnRight(); - result = _(nilDictionary).forOwnRight(dictionaryIterator); + result = _(nilDictionary).forOwnRight(); + result = _(nilDictionary).forOwnRight(dictionaryIterator); } { let result: _.LoDashExplicitObjectWrapper<_.Dictionary>; - result = _(dictionary).chain().forOwnRight(); - result = _(dictionary).chain().forOwnRight(dictionaryIterator); + result = _(dictionary).chain().forOwnRight(); + result = _(dictionary).chain().forOwnRight(dictionaryIterator); } { let result: _.LoDashExplicitNillableObjectWrapper<_.Dictionary>; - result = _(nilDictionary).chain().forOwnRight(); - result = _(nilDictionary).chain().forOwnRight(dictionaryIterator); + result = _(nilDictionary).chain().forOwnRight(); + result = _(nilDictionary).chain().forOwnRight(dictionaryIterator); } } @@ -10464,7 +10599,7 @@ namespace TestFunctions { { let result: string[]; - result = _.functions(object); + result = _.functions(object); } { @@ -10510,15 +10645,15 @@ namespace TestGet { { let result: string; - result = _.get('abc', '0'); - result = _.get('abc', '0', '_'); - result = _.get('abc', ['0']); - result = _.get('abc', ['0'], '_'); + result = _.get('abc', '0'); + result = _.get('abc', '0', '_'); + result = _.get('abc', ['0']); + result = _.get('abc', ['0'], '_'); - result = _.get('abc', '0'); - result = _.get('abc', '0', '_'); - result = _.get('abc', ['0']); - result = _.get('abc', ['0'], '_'); + result = _.get('abc', '0'); + result = _.get('abc', '0', '_'); + result = _.get('abc', ['0']); + result = _.get('abc', ['0'], '_'); result = _('abc').get('0'); result = _('abc').get('0', '_'); @@ -10529,15 +10664,15 @@ namespace TestGet { { let result: number; - result = _.get([42], '0'); - result = _.get([42], '0', -1); - result = _.get([42], ['0']); - result = _.get([42], ['0'], -1); + result = _.get([42], '0'); + result = _.get([42], '0', -1); + result = _.get([42], ['0']); + result = _.get([42], ['0'], -1); - result = _.get([42], '0'); - result = _.get([42], '0', -1); - result = _.get([42], ['0']); - result = _.get([42], ['0'], -1); + result = _.get([42], '0'); + result = _.get([42], '0', -1); + result = _.get([42], ['0']); + result = _.get([42], ['0'], -1); result = _([42]).get('0'); result = _([42]).get('0', -1); @@ -10548,15 +10683,15 @@ namespace TestGet { { let result: boolean; - result = _.get<{a: boolean}, boolean>({a: true}, 'a'); - result = _.get<{a: boolean}, boolean>({a: true}, 'a', false); - result = _.get<{a: boolean}, boolean>({a: true}, ['a']); - result = _.get<{a: boolean}, boolean>({a: true}, ['a'], false); + result = _.get({a: true}, 'a'); + result = _.get({a: true}, 'a', false); + result = _.get({a: true}, ['a']); + result = _.get({a: true}, ['a'], false); - result = _.get({a: true}, 'a'); - result = _.get({a: true}, 'a', false); - result = _.get({a: true}, ['a']); - result = _.get({a: true}, ['a'], false); + result = _.get({a: true}, 'a'); + result = _.get({a: true}, 'a', false); + result = _.get({a: true}, ['a']); + result = _.get({a: true}, ['a'], false); result = _({a: true}).get('a'); result = _({a: true}).get('a', false); @@ -10567,28 +10702,28 @@ namespace TestGet { { let result: _.LoDashExplicitWrapper; - result = _('abc').chain().get<_.LoDashExplicitWrapper>('0'); - result = _('abc').chain().get<_.LoDashExplicitWrapper>('0', '_'); - result = _('abc').chain().get<_.LoDashExplicitWrapper>(['0']); - result = _('abc').chain().get<_.LoDashExplicitWrapper>(['0'], '_'); + result = _('abc').chain().get('0'); + result = _('abc').chain().get('0', '_'); + result = _('abc').chain().get(['0']); + result = _('abc').chain().get(['0'], '_'); } { let result: _.LoDashExplicitWrapper; - result = _([42]).chain().get<_.LoDashExplicitWrapper>('0'); - result = _([42]).chain().get<_.LoDashExplicitWrapper>('0', -1); - result = _([42]).chain().get<_.LoDashExplicitWrapper>(['0']); - result = _([42]).chain().get<_.LoDashExplicitWrapper>(['0'], -1); + result = _([42]).chain().get('0'); + result = _([42]).chain().get('0', -1); + result = _([42]).chain().get(['0']); + result = _([42]).chain().get(['0'], -1); } { let result: _.LoDashExplicitWrapper; - result = _({a: true}).chain().get<_.LoDashExplicitWrapper>('a'); - result = _({a: true}).chain().get<_.LoDashExplicitWrapper>('a', false); - result = _({a: true}).chain().get<_.LoDashExplicitWrapper>(['a']); - result = _({a: true}).chain().get<_.LoDashExplicitWrapper>(['a'], false); + result = _({a: true}).chain().get('a'); + result = _({a: true}).chain().get('a', false); + result = _({a: true}).chain().get(['a']); + result = _({a: true}).chain().get(['a'], false); } } @@ -10655,27 +10790,21 @@ namespace TestHasIn { // _.invert namespace TestInvert { { - let result: TResult; + let result: _.Dictionary; - result = _.invert({}); - result = _.invert({}, true); - - result = _.invert({}); - result = _.invert({}, true); + result = _.invert({}); } { - let result: _.LoDashImplicitObjectWrapper; + let result: _.LoDashImplicitObjectWrapper<_.Dictionary>; - result = _({}).invert(); - result = _({}).invert(true); + result = _({}).invert(); } { - let result: _.LoDashExplicitObjectWrapper; + let result: _.LoDashExplicitObjectWrapper<_.Dictionary>; - result = _({}).chain().invert(); - result = _({}).chain().invert(true); + result = _({}).chain().invert(); } } @@ -10832,58 +10961,58 @@ namespace TestMapKeys { { let result: _.Dictionary; - result = _.mapKeys(array); - result = _.mapKeys(array, listIterator); - result = _.mapKeys(array, ''); - result = _.mapKeys(array, {}); + result = _.mapKeys(array); + result = _.mapKeys(array, listIterator); + result = _.mapKeys(array, ''); + result = _.mapKeys(array, {}); - result = _.mapKeys(list); - result = _.mapKeys(list, listIterator); - result = _.mapKeys(list, ''); - result = _.mapKeys(list, {}); + result = _.mapKeys(list); + result = _.mapKeys(list, listIterator); + result = _.mapKeys(list, ''); + result = _.mapKeys(list, {}); - result = _.mapKeys(dictionary); - result = _.mapKeys(dictionary, dictionaryIterator); - result = _.mapKeys(dictionary, ''); - result = _.mapKeys(dictionary, {}); + result = _.mapKeys(dictionary); + result = _.mapKeys(dictionary, dictionaryIterator); + result = _.mapKeys(dictionary, ''); + result = _.mapKeys(dictionary, {}); } { let result: _.LoDashImplicitObjectWrapper<_.Dictionary>; - result = _(array).mapKeys(); - result = _(array).mapKeys(listIterator); + result = _(array).mapKeys(); + result = _(array).mapKeys(listIterator); result = _(array).mapKeys(''); - result = _(array).mapKeys<{}>({}); + result = _(array).mapKeys({}); - result = _(list).mapKeys(); - result = _(list).mapKeys(listIterator); - result = _(list).mapKeys(''); - result = _(list).mapKeys({}); + result = _(list).mapKeys(); + result = _(list).mapKeys(listIterator); + result = _(list).mapKeys(''); + result = _(list).mapKeys({}); - result = _(dictionary).mapKeys(); - result = _(dictionary).mapKeys(dictionaryIterator); - result = _(dictionary).mapKeys(''); - result = _(dictionary).mapKeys({}); + result = _(dictionary).mapKeys(); + result = _(dictionary).mapKeys(dictionaryIterator); + result = _(dictionary).mapKeys(''); + result = _(dictionary).mapKeys({}); } { let result: _.LoDashExplicitObjectWrapper<_.Dictionary>; - result = _(array).chain().mapKeys(); - result = _(array).chain().mapKeys(listIterator); + result = _(array).chain().mapKeys(); + result = _(array).chain().mapKeys(listIterator); result = _(array).chain().mapKeys(''); - result = _(array).chain().mapKeys<{}>({}); + result = _(array).chain().mapKeys({}); - result = _(list).chain().mapKeys(); - result = _(list).chain().mapKeys(listIterator); - result = _(list).chain().mapKeys(''); - result = _(list).chain().mapKeys({}); + result = _(list).chain().mapKeys(); + result = _(list).chain().mapKeys(listIterator); + result = _(list).chain().mapKeys(''); + result = _(list).chain().mapKeys({}); - result = _(dictionary).chain().mapKeys(); - result = _(dictionary).chain().mapKeys(dictionaryIterator); - result = _(dictionary).chain().mapKeys(''); - result = _(dictionary).chain().mapKeys({}); + result = _(dictionary).chain().mapKeys(); + result = _(dictionary).chain().mapKeys(dictionaryIterator); + result = _(dictionary).chain().mapKeys(''); + result = _(dictionary).chain().mapKeys({}); } } @@ -10909,7 +11038,7 @@ namespace TestMerge { result = _.merge(initialValue, {}, {}, {}, mergingValue); // Once we get to the varargs version, you have to specify the result explicitly - result = _.merge(initialValue, {}, {}, {}, {}, mergingValue); + result = _.merge(initialValue, {}, {}, {}, {}, mergingValue); type ComplicatedExpectedType = { a: number, b: string, c: {}, d: number[], e: boolean }; @@ -10939,7 +11068,7 @@ namespace TestMerge { result = _(initialValue).merge({}, {}, {}, mergingValue).value(); // Once we get to the varargs version, you have to specify the result explicitly - result = _(initialValue).merge({}, {}, {}, {}, mergingValue).value(); + result = _(initialValue).merge({}, {}, {}, {}, mergingValue).value(); // Test complex multiple combinations with chaining @@ -10997,34 +11126,32 @@ namespace TestMergeWith { result = _.mergeWith(initialValue, {}, {}, {}, mergingValue, customizer); // Once we get to the varargs version, you have to specify the result explicitl - result = _.mergeWith(initialValue, {}, {}, {}, {}, mergingValue, customizer); + result = _.mergeWith(initialValue, {}, {}, {}, {}, mergingValue, customizer); // Tests for basic chaining with mergeWith result = _(initialValue).mergeWith(mergingValue, customizer).value(); result = _(initialValue).mergeWith({}, mergingValue, customizer).value(); result = _(initialValue).mergeWith({}, {}, mergingValue, customizer).value(); result = _(initialValue).mergeWith({}, {}, {}, mergingValue, customizer).value(); - - // Once we get to the varargs version, you have to specify the result explicitly - result = _(initialValue).mergeWith({}, {}, {}, {}, mergingValue, customizer).value(); + result = _(initialValue).mergeWith({}, {}, {}, {}, mergingValue, customizer).value(); } // _.omit namespace TestOmit { - let obj: {} | null | undefined = any; + let obj: TResult | null | undefined = any; let predicate: (element: any, key: string, collection: any) => boolean; { - let result: TResult; + let result: Partial; - result = _.omit(obj, 'a'); - result = _.omit(obj, 0, 'a'); - result = _.omit(obj, true, 0, 'a'); - result = _.omit(obj, ['b', 1, false], true, 0, 'a'); + result = _.omit(obj, 'a'); + result = _.omit(obj, 0, 'a'); + result = _.omit(obj, true, 0, 'a'); + result = _.omit(obj, ['b', 1, false], true, 0, 'a'); } { - let result: _.LoDashImplicitObjectWrapper; + let result: _.LoDashImplicitWrapper>; result = _(obj).omit('a'); result = _(obj).omit(0, 'a'); @@ -11033,7 +11160,7 @@ namespace TestOmit { } { - let result: _.LoDashExplicitObjectWrapper; + let result: _.LoDashExplicitWrapper>; result = _(obj).chain().omit('a'); result = _(obj).chain().omit(0, 'a'); @@ -11044,23 +11171,23 @@ namespace TestOmit { // _.omitBy namespace TestOmitBy { - let obj: {} | null | undefined = any; - let predicate = (element: any, key: string, collection: any) => true; + let obj: TResult | null | undefined = any; + let predicate = (element: any, key: string) => true; { - let result: TResult; + let result: Partial; - result = _.omitBy(obj, predicate); + result = _.omitBy(obj, predicate); } { - let result: _.LoDashImplicitObjectWrapper; + let result: _.LoDashImplicitWrapper>; result = _(obj).omitBy(predicate); } { - let result: _.LoDashExplicitObjectWrapper; + let result: _.LoDashExplicitWrapper>; result = _(obj).chain().omitBy(predicate); } @@ -11068,19 +11195,19 @@ namespace TestOmitBy { // _.pick namespace TestPick { - let obj: {} | null | undefined = any; + let obj: TResult | null | undefined = any; { - let result: TResult; + let result: Partial; - result = _.pick(obj, 'a'); - result = _.pick(obj, 0, 'a'); - result = _.pick(obj, true, 0, 'a'); - result = _.pick(obj, ['b', 1, false], true, 0, 'a'); + result = _.pick(obj, 'a'); + result = _.pick(obj, 0, 'a'); + result = _.pick(obj, true, 0, 'a'); + result = _.pick(obj, ['b', 1, false], true, 0, 'a'); } { - let result: _.LoDashImplicitObjectWrapper; + let result: _.LoDashImplicitWrapper>; result = _(obj).pick('a'); result = _(obj).pick(0, 'a'); @@ -11089,7 +11216,7 @@ namespace TestPick { } { - let result: _.LoDashExplicitObjectWrapper; + let result: _.LoDashExplicitWrapper>; result = _(obj).chain().pick('a'); result = _(obj).chain().pick(0, 'a'); @@ -11100,23 +11227,23 @@ namespace TestPick { // _.pickBy namespace TestPickBy { - let obj: {} | null | undefined = any; - let predicate = (element: any, key: string, collection: any) => true; + let obj: TResult | null | undefined = any; + let predicate = (element: any, key: string) => true; { - let result: TResult; + let result: Partial; - result = _.pickBy(obj, predicate); + result = _.pickBy(obj, predicate); } { - let result: _.LoDashImplicitObjectWrapper; + let result: _.LoDashImplicitWrapper>; result = _(obj).pickBy(predicate); } { - let result: _.LoDashExplicitObjectWrapper; + let result: _.LoDashExplicitWrapper>; result = _(obj).chain().pickBy(predicate); } @@ -11127,13 +11254,6 @@ namespace TestResult { { let result: string; - result = _.result('abc', '0'); - result = _.result('abc', '0', '_'); - result = _.result('abc', '0', () => '_'); - result = _.result('abc', ['0']); - result = _.result('abc', ['0'], '_'); - result = _.result('abc', ['0'], () => '_'); - result = _.result('abc', '0'); result = _.result('abc', '0', '_'); result = _.result('abc', '0', () => '_'); @@ -11152,13 +11272,6 @@ namespace TestResult { { let result: number; - result = _.result([42], '0'); - result = _.result([42], '0', -1); - result = _.result([42], '0', () => -1); - result = _.result([42], ['0']); - result = _.result([42], ['0'], -1); - result = _.result([42], ['0'], () => -1); - result = _.result([42], '0'); result = _.result([42], '0', -1); result = _.result([42], '0', () => -1); @@ -11177,13 +11290,6 @@ namespace TestResult { { let result: boolean; - result = _.result<{a: boolean}, boolean>({a: true}, 'a'); - result = _.result<{a: boolean}, boolean>({a: true}, 'a', false); - result = _.result<{a: boolean}, boolean>({a: true}, 'a', () => false); - result = _.result<{a: boolean}, boolean>({a: true}, ['a']); - result = _.result<{a: boolean}, boolean>({a: true}, ['a'], false); - result = _.result<{a: boolean}, boolean>({a: true}, ['a'], () => false); - result = _.result({a: true}, 'a'); result = _.result({a: true}, 'a', false); result = _.result({a: true}, 'a', () => false); @@ -11202,34 +11308,34 @@ namespace TestResult { { let result: _.LoDashExplicitWrapper; - result = _('abc').chain().result<_.LoDashExplicitWrapper>('0'); - result = _('abc').chain().result<_.LoDashExplicitWrapper>('0', '_'); - result = _('abc').chain().result<_.LoDashExplicitWrapper>('0', '_'); - result = _('abc').chain().result<_.LoDashExplicitWrapper>(['0']); - result = _('abc').chain().result<_.LoDashExplicitWrapper>(['0'], () => '_'); - result = _('abc').chain().result<_.LoDashExplicitWrapper>(['0'], () => '_'); + result = _('abc').chain().result('0'); + result = _('abc').chain().result('0', '_'); + result = _('abc').chain().result('0', '_'); + result = _('abc').chain().result(['0']); + result = _('abc').chain().result(['0'], () => '_'); + result = _('abc').chain().result(['0'], () => '_'); } { let result: _.LoDashExplicitWrapper; - result = _([42]).chain().result<_.LoDashExplicitWrapper>('0'); - result = _([42]).chain().result<_.LoDashExplicitWrapper>('0', -1); - result = _([42]).chain().result<_.LoDashExplicitWrapper>('0', () => -1); - result = _([42]).chain().result<_.LoDashExplicitWrapper>(['0']); - result = _([42]).chain().result<_.LoDashExplicitWrapper>(['0'], -1); - result = _([42]).chain().result<_.LoDashExplicitWrapper>(['0'], () => -1); + result = _([42]).chain().result('0'); + result = _([42]).chain().result('0', -1); + result = _([42]).chain().result('0', () => -1); + result = _([42]).chain().result(['0']); + result = _([42]).chain().result(['0'], -1); + result = _([42]).chain().result(['0'], () => -1); } { let result: _.LoDashExplicitWrapper; - result = _({a: true}).chain().result<_.LoDashExplicitWrapper>('a'); - result = _({a: true}).chain().result<_.LoDashExplicitWrapper>('a', false); - result = _({a: true}).chain().result<_.LoDashExplicitWrapper>('a', () => false); - result = _({a: true}).chain().result<_.LoDashExplicitWrapper>(['a']); - result = _({a: true}).chain().result<_.LoDashExplicitWrapper>(['a'], false); - result = _({a: true}).chain().result<_.LoDashExplicitWrapper>(['a'], () => false); + result = _({a: true}).chain().result('a'); + result = _({a: true}).chain().result('a', false); + result = _({a: true}).chain().result('a', () => false); + result = _({a: true}).chain().result(['a']); + result = _({a: true}).chain().result(['a'], false); + result = _({a: true}).chain().result(['a'], () => false); } } @@ -11246,12 +11352,6 @@ namespace TestSet { result = _.set(object, 'a.b[1]', value); result = _.set(object, ['a', 'b', 1], value); - - result = _.set(object, 'a.b[1]', value); - result = _.set(object, ['a', 'b', 1], value); - - result = _.set(object, 'a.b[1]', value); - result = _.set(object, ['a', 'b', 1], value); } { @@ -11259,9 +11359,6 @@ namespace TestSet { result = _(object).set('a.b[1]', value); result = _(object).set(['a', 'b', 1], value); - - result = _(object).set('a.b[1]', value); - result = _(object).set(['a', 'b', 1], value); } { @@ -11269,20 +11366,16 @@ namespace TestSet { result = _(object).chain().set('a.b[1]', value); result = _(object).chain().set(['a', 'b', 1], value); - - result = _(object).chain().set('a.b[1]', value); - result = _(object).chain().set(['a', 'b', 1], value); } } // _.setWith namespace TestSetWith { - type SampleObject = {a: {}}; type SampleResult = {a: {b: number[]}}; - let object: SampleObject = { a: {} }; + let object: SampleResult = { a: { b: [] } }; let value = 0; - let customizer = (value: any, key: string, object: SampleObject) => 0; + let customizer = (value: any, key: string, object: SampleResult) => 0; { let result: SampleResult; @@ -11291,16 +11384,6 @@ namespace TestSetWith { result = _.setWith(object, 'a.b[1]', value, customizer); result = _.setWith(object, ['a', 'b', 1], value); result = _.setWith(object, ['a', 'b', 1], value, customizer); - - result = _.setWith(object, 'a.b[1]', value); - result = _.setWith(object, 'a.b[1]', value, customizer); - result = _.setWith(object, ['a', 'b', 1], value); - result = _.setWith(object, ['a', 'b', 1], value, customizer); - - result = _.setWith(object, 'a.b[1]', value); - result = _.setWith(object, 'a.b[1]', value, customizer); - result = _.setWith(object, ['a', 'b', 1], value); - result = _.setWith(object, ['a', 'b', 1], value, customizer); } { @@ -11310,11 +11393,6 @@ namespace TestSetWith { result = _(object).setWith('a.b[1]', value, customizer); result = _(object).setWith(['a', 'b', 1], value); result = _(object).setWith(['a', 'b', 1], value, customizer); - - result = _(object).setWith('a.b[1]', value); - result = _(object).setWith('a.b[1]', value, customizer); - result = _(object).setWith(['a', 'b', 1], value); - result = _(object).setWith(['a', 'b', 1], value, customizer); } { @@ -11324,11 +11402,6 @@ namespace TestSetWith { result = _(object).chain().setWith('a.b[1]', value, customizer); result = _(object).chain().setWith(['a', 'b', 1], value); result = _(object).chain().setWith(['a', 'b', 1], value, customizer); - - result = _(object).chain().setWith('a.b[1]', value); - result = _(object).chain().setWith('a.b[1]', value, customizer); - result = _(object).chain().setWith(['a', 'b', 1], value); - result = _(object).chain().setWith(['a', 'b', 1], value, customizer); } } @@ -11336,39 +11409,21 @@ namespace TestSetWith { namespace TestToPairs { let object: _.Dictionary = {}; - { - let result: [string, any][]; - - result = _.toPairs<_.Dictionary>(object); - } - { let result: [string, string][]; - result = _.toPairs<_.Dictionary, string>(object); + result = _.toPairs(object); } { let result: _.LoDashImplicitArrayWrapper<[string, string]>; - result = _(object).toPairs(); - } - - { - let result: _.LoDashImplicitArrayWrapper<[string, any]>; - result = _(object).toPairs(); } { let result: _.LoDashExplicitArrayWrapper<[string, string]>; - result = _(object).chain().toPairs(); - } - - { - let result: _.LoDashExplicitArrayWrapper<[string, any]>; - result = _(object).chain().toPairs(); } } @@ -11377,27 +11432,15 @@ namespace TestToPairs { namespace TestToPairsIn { let object: _.Dictionary = {}; - { - let result: [string, any][]; - - result = _.toPairsIn<_.Dictionary>(object); - } - { let result: [string, string][]; - result = _.toPairsIn<_.Dictionary, string>(object); + result = _.toPairsIn(object); } { let result: _.LoDashImplicitArrayWrapper<[string, string]>; - result = _(object).toPairsIn(); - } - - { - let result: _.LoDashImplicitArrayWrapper<[string, any]>; - result = _(object).toPairsIn(); } @@ -11424,13 +11467,13 @@ namespace TestTransform { let accumulator: TResult[] = []; let result: TResult[]; - result = _.transform(array); + result = _.transform(array); result = _.transform(array, iterator); result = _.transform(array, iterator, accumulator); - result = _(array).transform().value(); - result = _(array).transform(iterator).value(); - result = _(array).transform(iterator, accumulator).value(); + result = _(array).transform().value(); + result = _(array).transform(iterator).value(); + result = _(array).transform(iterator, accumulator).value(); } { @@ -11438,11 +11481,9 @@ namespace TestTransform { let accumulator: _.Dictionary = {}; let result: _.Dictionary; - result = _.transform(array, iterator); result = _.transform(array, iterator, accumulator); - result = _(array).transform(iterator).value(); - result = _(array).transform(iterator, accumulator).value(); + result = _(array).transform(iterator, accumulator).value(); } { @@ -11450,11 +11491,11 @@ namespace TestTransform { let accumulator: _.Dictionary = {}; let result: _.Dictionary; - result = _.transform(dictionary); + result = _.transform(dictionary); result = _.transform(dictionary, iterator); result = _.transform(dictionary, iterator, accumulator); - result = _(dictionary).transform().value(); + result = _(dictionary).transform().value(); result = _(dictionary).transform(iterator).value(); result = _(dictionary).transform(iterator, accumulator).value(); } @@ -11464,10 +11505,8 @@ namespace TestTransform { let accumulator: TResult[] = []; let result: TResult[]; - result = _.transform(dictionary, iterator); result = _.transform(dictionary, iterator, accumulator); - result = _(dictionary).transform(iterator).value(); result = _(dictionary).transform(iterator, accumulator).value(); } } @@ -11481,8 +11520,8 @@ namespace TestUnset { { let result: boolean; - _.unset(object, 'a.b'); - _.unset(object, ['a', 'b']); + result = _.unset(object, 'a.b'); + result = _.unset(object, ['a', 'b']); } { @@ -11502,57 +11541,40 @@ namespace TestUnset { // _.update namespace TestUpdate { - type SampleObject = {a: {}}; type SampleResult = {a: {b: number[]}}; - let object: SampleObject = { a: {} }; + let object: SampleResult = { a: { b: [] } }; let updater = (value: any) => 0; { let result: SampleResult; - result = _.update(object, 'a.b[1]', updater); - result = _.update(object, ['a', 'b', 1], updater); - - result = _.update<(value: any) => number, SampleResult>(object, 'a.b[1]', updater); - result = _.update<(value: any) => number, SampleResult>(object, ['a', 'b', 1], updater); - - result = _.update(object, 'a.b[1]', updater); - result = _.update(object, ['a', 'b', 1], updater); - - result = _.update number, SampleResult>(object, 'a.b[1]', updater); - result = _.update number, SampleResult>(object, ['a', 'b', 1], updater); + result = _.update(object, 'a.b[1]', updater); + result = _.update(object, ['a', 'b', 1], updater); } { let result: _.LoDashImplicitObjectWrapper; - result = _(object).update('a.b[1]', updater); - result = _(object).update(['a', 'b', 1], updater); - - result = _(object).update<(value: any) => number, SampleResult>('a.b[1]', updater); - result = _(object).update<(value: any) => number, SampleResult>(['a', 'b', 1], updater); + result = _(object).update('a.b[1]', updater); + result = _(object).update(['a', 'b', 1], updater); } { let result: _.LoDashExplicitObjectWrapper; - result = _(object).chain().update('a.b[1]', updater); - result = _(object).chain().update(['a', 'b', 1], updater); - - result = _(object).chain().update<(value: any) => number, SampleResult>('a.b[1]', updater); - result = _(object).chain().update<(value: any) => number, SampleResult>(['a', 'b', 1], updater); + result = _(object).chain().update('a.b[1]', updater); + result = _(object).chain().update(['a', 'b', 1], updater); } } // _.updateWith namespace TestUpdateWith { - type SampleObject = {a: {}}; type SampleResult = {a: {b: number[]}}; - let object: SampleObject = { a: {} }; + let object: SampleResult = { a: { b: [] } }; let updater = (value: any) => 0; - let customizer = (value: any, key: string, object: SampleObject) => 0; + let customizer = (value: any, key: string, object: SampleResult) => 0; { let result: SampleResult; @@ -11594,7 +11616,6 @@ namespace TestValues { { let result: any[]; - result = _.values(); result = _.values(123); result = _.values(true); result = _.values(null); @@ -12026,11 +12047,9 @@ namespace TestReplace { result = _.replace('Hi Fred', /fred/i, 'Barney'); result = _.replace('Hi Fred', /fred/i, replacer); - result = _.replace('Fred'); result = _.replace('Fred', 'Barney'); result = _.replace('Fred', replacer); - result = _.replace(/fred/i); result = _.replace(/fred/i, 'Barney'); result = _.replace(/fred/i, replacer); @@ -12040,11 +12059,9 @@ namespace TestReplace { result = _('Hi Fred').replace(/fred/i, 'Barney'); result = _('Hi Fred').replace(/fred/i, replacer); - result = _('Fred').replace(); result = _('Fred').replace('Barney'); result = _('Fred').replace(replacer); - result = _(/fred/i).replace(); result = _(/fred/i).replace('Barney'); result = _(/fred/i).replace(replacer); } @@ -12058,11 +12075,9 @@ namespace TestReplace { result = _('Hi Fred').chain().replace(/fred/i, 'Barney'); result = _('Hi Fred').chain().replace(/fred/i, replacer); - result = _('Fred').chain().replace(); result = _('Fred').chain().replace('Barney'); result = _('Fred').chain().replace(replacer); - result = _(/fred/i).chain().replace(); result = _(/fred/i).chain().replace('Barney'); result = _(/fred/i).chain().replace(replacer); } @@ -12438,52 +12453,52 @@ namespace TestConstant { { let result: _.LoDashImplicitObjectWrapper<() => number>; - result = _(42).constant(); + result = _(42).constant(); } { let result: _.LoDashImplicitObjectWrapper<() => string>; - result = _('a').constant(); + result = _('a').constant(); } { let result: _.LoDashImplicitObjectWrapper<() => boolean>; - result = _(true).constant(); + result = _(true).constant(); } { let result: _.LoDashImplicitObjectWrapper<() => string[]>; - result = _(['a']).constant(); + result = _(['a']).constant(); } { let result: _.LoDashImplicitObjectWrapper<() => {a: string}>; - result = _({a: 'a'}).constant<{a: string}>(); + result = _({a: 'a'}).constant(); } { let result: _.LoDashExplicitObjectWrapper<() => number>; - result = _(42).chain().constant(); + result = _(42).chain().constant(); } { let result: _.LoDashExplicitObjectWrapper<() => string>; - result = _('a').chain().constant(); + result = _('a').chain().constant(); } { let result: _.LoDashExplicitObjectWrapper<() => boolean>; - result = _(true).chain().constant(); + result = _(true).chain().constant(); } { let result: _.LoDashExplicitObjectWrapper<() => string[]>; - result = _(['a']).chain().constant(); + result = _(['a']).chain().constant(); } { let result: _.LoDashExplicitObjectWrapper<() => {a: string}>; - result = _({a: 'a'}).chain().constant<{a: string}>(); + result = _({a: 'a'}).chain().constant(); } } @@ -12526,7 +12541,7 @@ namespace TestDefaultTo { } { - let result: _.LoDashImplicitObjectWrapper; + let result: number; result = _(42).defaultTo(42); result = _(undefined).defaultTo(42); result = _(null).defaultTo(42); @@ -12534,34 +12549,30 @@ namespace TestDefaultTo { } { - let result: _.LoDashImplicitObjectWrapper; + let result: string; result = _('a').defaultTo('default'); result = _(null).defaultTo('default'); - result = _(NaN).defaultTo('default'); } { - let result: _.LoDashImplicitObjectWrapper; + let result: boolean; result = _(true).defaultTo(true); result = _(undefined).defaultTo(true); result = _(null).defaultTo(true); - result = _(NaN).defaultTo(true); } { - let result: _.LoDashImplicitObjectWrapper; + let result: string[]; result = _(['a']).defaultTo(['default']); result = _(undefined).defaultTo(['default']); result = _(null).defaultTo(['default']); - result = _(NaN).defaultTo(['default']); } { - let result: _.LoDashImplicitObjectWrapper<{ a: string }>; + let result: { a: string }; result = _({ a: 'a' }).defaultTo({a : 'a'}); result = _(undefined).defaultTo({a : 'a'}); result = _(null).defaultTo({a : 'a'}); - result = _(NaN).defaultTo({a : 'a'}); } { @@ -12577,7 +12588,6 @@ namespace TestDefaultTo { result = _('a').chain().defaultTo('default'); result = _(undefined).chain().defaultTo('default'); result = _(null).chain().defaultTo('default'); - result = _(NaN).chain().defaultTo('default'); } { @@ -12585,7 +12595,6 @@ namespace TestDefaultTo { result = _(true).chain().defaultTo(true); result = _(undefined).chain().defaultTo(true); result = _(null).chain().defaultTo(true); - result = _(NaN).chain().defaultTo(true); } { @@ -12593,7 +12602,6 @@ namespace TestDefaultTo { result = _(['a']).chain().defaultTo(['default']); result = _(undefined).chain().defaultTo(['default']); result = _(null).chain().defaultTo(['default']); - result = _(NaN).chain().defaultTo(['default']); } { @@ -12601,7 +12609,6 @@ namespace TestDefaultTo { result = _({ a: 'a' }).chain().defaultTo({a : 'a'}); result = _(undefined).chain().defaultTo({a : 'a'}); result = _(null).chain().defaultTo({a : 'a'}); - result = _(NaN).chain().defaultTo({a : 'a'}); } } @@ -12664,7 +12671,7 @@ namespace TestIteratee { { let result: (object: any) => TResult; - result = _.iteratee(''); + result = _.iteratee(''); } { @@ -12676,13 +12683,14 @@ namespace TestIteratee { { let result: _.LoDashImplicitObjectWrapper<(...args: any[]) => TResult>; - result = _(Function).iteratee(); + let func: (...args: any[]) => TResult = any; + result = _(func).iteratee(); } { let result: _.LoDashImplicitObjectWrapper<(object: any) => TResult>; - result = _('').iteratee(); + result = _('').iteratee(); } { @@ -12694,13 +12702,14 @@ namespace TestIteratee { { let result: _.LoDashExplicitObjectWrapper<(...args: any[]) => TResult>; - result = _(Function).chain().iteratee(); + let func: (...args: any[]) => TResult = any; + result = _(func).chain().iteratee(); } { let result: _.LoDashExplicitObjectWrapper<(object: any) => TResult>; - result = _('').chain().iteratee(); + result = _('').chain().iteratee(); } { @@ -12782,83 +12791,83 @@ namespace TestMethod { { let result: (object: any) => {a: string}; - result = _.method<{a: string}>('a.0'); - result = _.method<{a: string}>('a.0', any, any); - result = _.method<{a: string}>('a.0', any, any, any); + result = _.method('a.0'); + result = _.method('a.0', any, any); + result = _.method('a.0', any, any, any); - result = _.method<{a: string}>(['a', 0]); - result = _.method<{a: string}>(['a', 0], any); - result = _.method<{a: string}>(['a', 0], any, any); - result = _.method<{a: string}>(['a', 0], any, any, any); + result = _.method(['a', 0]); + result = _.method(['a', 0], any); + result = _.method(['a', 0], any, any); + result = _.method(['a', 0], any, any, any); } { let result: (object: {a: string}) => {b: string}; - result = _.method<{a: string}, {b: string}>('a.0'); - result = _.method<{a: string}, {b: string}>('a.0', any, any); - result = _.method<{a: string}, {b: string}>('a.0', any, any, any); + result = _.method('a.0'); + result = _.method('a.0', any, any); + result = _.method('a.0', any, any, any); - result = _.method<{a: string}, {b: string}>(['a', 0]); - result = _.method<{a: string}, {b: string}>(['a', 0], any); - result = _.method<{a: string}, {b: string}>(['a', 0], any, any); - result = _.method<{a: string}, {b: string}>(['a', 0], any, any, any); + result = _.method(['a', 0]); + result = _.method(['a', 0], any); + result = _.method(['a', 0], any, any); + result = _.method(['a', 0], any, any, any); } { let result: _.LoDashImplicitObjectWrapper<(object: any) => {a: string}>; - result = _('a.0').method<{a: string}>(); - result = _('a.0').method<{a: string}>(any); - result = _('a.0').method<{a: string}>(any, any); - result = _('a.0').method<{a: string}>(any, any, any); + result = _('a.0').method(); + result = _('a.0').method(any); + result = _('a.0').method(any, any); + result = _('a.0').method(any, any, any); - result = _(['a', 0]).method<{a: string}>(); - result = _(['a', 0]).method<{a: string}>(any); - result = _(['a', 0]).method<{a: string}>(any, any); - result = _(['a', 0]).method<{a: string}>(any, any, any); + result = _(['a', 0]).method(); + result = _(['a', 0]).method(any); + result = _(['a', 0]).method(any, any); + result = _(['a', 0]).method(any, any, any); } { let result: _.LoDashImplicitObjectWrapper<(object: {a: string}) => {b: string}>; - result = _('a.0').method<{a: string}, {b: string}>(); - result = _('a.0').method<{a: string}, {b: string}>(any); - result = _('a.0').method<{a: string}, {b: string}>(any, any); - result = _('a.0').method<{a: string}, {b: string}>(any, any, any); + result = _('a.0').method(); + result = _('a.0').method(any); + result = _('a.0').method(any, any); + result = _('a.0').method(any, any, any); - result = _(['a', 0]).method<{a: string}, {b: string}>(); - result = _(['a', 0]).method<{a: string}, {b: string}>(any); - result = _(['a', 0]).method<{a: string}, {b: string}>(any, any); - result = _(['a', 0]).method<{a: string}, {b: string}>(any, any, any); + result = _(['a', 0]).method(); + result = _(['a', 0]).method(any); + result = _(['a', 0]).method(any, any); + result = _(['a', 0]).method(any, any, any); } { let result: _.LoDashExplicitObjectWrapper<(object: any) => {a: string}>; - result = _('a.0').chain().method<{a: string}>(); - result = _('a.0').chain().method<{a: string}>(any); - result = _('a.0').chain().method<{a: string}>(any, any); - result = _('a.0').chain().method<{a: string}>(any, any, any); + result = _('a.0').chain().method(); + result = _('a.0').chain().method(any); + result = _('a.0').chain().method(any, any); + result = _('a.0').chain().method(any, any, any); - result = _(['a', 0]).chain().method<{a: string}>(); - result = _(['a', 0]).chain().method<{a: string}>(any); - result = _(['a', 0]).chain().method<{a: string}>(any, any); - result = _(['a', 0]).chain().method<{a: string}>(any, any, any); + result = _(['a', 0]).chain().method(); + result = _(['a', 0]).chain().method(any); + result = _(['a', 0]).chain().method(any, any); + result = _(['a', 0]).chain().method(any, any, any); } { let result: _.LoDashExplicitObjectWrapper<(object: {a: string}) => {b: string}>; - result = _('a.0').chain().method<{a: string}, {b: string}>(); - result = _('a.0').chain().method<{a: string}, {b: string}>(any); - result = _('a.0').chain().method<{a: string}, {b: string}>(any, any); - result = _('a.0').chain().method<{a: string}, {b: string}>(any, any, any); + result = _('a.0').chain().method(); + result = _('a.0').chain().method(any); + result = _('a.0').chain().method(any, any); + result = _('a.0').chain().method(any, any, any); - result = _(['a', 0]).chain().method<{a: string}, {b: string}>(); - result = _(['a', 0]).chain().method<{a: string}, {b: string}>(any); - result = _(['a', 0]).chain().method<{a: string}, {b: string}>(any, any); - result = _(['a', 0]).chain().method<{a: string}, {b: string}>(any, any, any); + result = _(['a', 0]).chain().method(); + result = _(['a', 0]).chain().method(any); + result = _(['a', 0]).chain().method(any, any); + result = _(['a', 0]).chain().method(any, any, any); } } @@ -12872,66 +12881,77 @@ namespace TestMethodOf { { let result: ResultFn; - result = _.methodOf(object); - result = _.methodOf(object, any); - result = _.methodOf(object, any, any); - result = _.methodOf(object, any, any, any); - - result = _.methodOf(object); - result = _.methodOf(object, any); - result = _.methodOf(object, any, any); - result = _.methodOf(object, any, any, any); + result = _.methodOf(object); + result = _.methodOf(object, any); + result = _.methodOf(object, any, any); + result = _.methodOf(object, any, any, any); } { let result: _.LoDashImplicitObjectWrapper; - result = _(object).methodOf(); - result = _(object).methodOf(any); - result = _(object).methodOf(any, any); - result = _(object).methodOf(any, any, any); + result = _(object).methodOf(); + result = _(object).methodOf(any); + result = _(object).methodOf(any, any); + result = _(object).methodOf(any, any, any); } { let result: _.LoDashExplicitObjectWrapper; - result = _(object).chain().methodOf(); - result = _(object).chain().methodOf(any); - result = _(object).chain().methodOf(any, any); - result = _(object).chain().methodOf(any, any, any); + result = _(object).chain().methodOf(); + result = _(object).chain().methodOf(any); + result = _(object).chain().methodOf(any, any); + result = _(object).chain().methodOf(any, any, any); } } // _.mixin namespace TestMixin { - let source: _.Dictionary = {}; + let source: _.Dictionary<(...args: any[]) => any> = {}; + let dest: TResult = any; let options: {chain?: boolean} = {}; + { + let result: _.LoDashStatic; + + result = _.mixin(source); + result = _.mixin(source, options); + } + { let result: TResult; - result = _.mixin({}, source); - result = _.mixin({}, source, options); - result = _.mixin(source); - result = _.mixin(source, options); + result = _.mixin(dest, source); + result = _.mixin(dest, source, options); } { - let result: _.LoDashImplicitObjectWrapper; + let result: _.LoDashImplicitWrapper<_.LoDashStatic>; - result = _({}).mixin(source); - result = _({}).mixin(source, options); - result = _(source).mixin(); - result = _(source).mixin(options); + result = _(source).mixin(); + result = _(source).mixin(options); } { - let result: _.LoDashExplicitObjectWrapper; + let result: _.LoDashImplicitWrapper; - result = _({}).chain().mixin(source); - result = _({}).chain().mixin(source, options); - result = _(source).chain().mixin(); - result = _(source).chain().mixin(options); + result = _(dest).mixin(source); + result = _(dest).mixin(source, options); + } + + { + let result: _.LoDashExplicitWrapper<_.LoDashStatic>; + + result = _(source).chain().mixin(); + result = _(source).chain().mixin(options); + } + + { + let result: _.LoDashExplicitWrapper; + + result = _(dest).chain().mixin(source); + result = _(dest).chain().mixin(source, options); } } @@ -12967,7 +12987,7 @@ namespace TestNoop { result = _('a').noop(true, 'a', 1); result = _([1]).noop(true, 'a', 1); - result = _([]).noop(true, 'a', 1); + result = _(['']).noop(true, 'a', 1); result = _({}).noop(true, 'a', 1); result = _(any).noop(true, 'a', 1); } @@ -12977,7 +12997,7 @@ namespace TestNoop { result = _('a').chain().noop(true, 'a', 1); result = _([1]).chain().noop(true, 'a', 1); - result = _([]).chain().noop(true, 'a', 1); + result = _(['']).chain().noop(true, 'a', 1); result = _({}).chain().noop(true, 'a', 1); result = _(any).chain().noop(true, 'a', 1); } @@ -12989,20 +13009,20 @@ namespace TestNthArg { { let result: SampleFunc; - result = _.nthArg(); - result = _.nthArg(1); + result = _.nthArg(); + result = _.nthArg(1); } { let result: _.LoDashImplicitObjectWrapper; - result = _(1).nthArg(); + result = _(1).nthArg(); } { let result: _.LoDashExplicitObjectWrapper; - result = _(1).chain().nthArg(); + result = _(1).chain().nthArg(); } } @@ -13232,7 +13252,7 @@ namespace TestRangeRight { result = _('a').chain().stubArray(); result = _([1]).chain().stubArray(); - result = _([]).chain().stubArray(); + result = _(['']).chain().stubArray(); result = _({}).chain().stubArray(); result = _(any).chain().stubArray(); } @@ -13252,7 +13272,7 @@ namespace TestRangeRight { result = _('a').chain().stubFalse(); result = _([1]).chain().stubFalse(); - result = _([]).chain().stubFalse(); + result = _(['']).chain().stubFalse(); result = _({}).chain().stubFalse(); result = _(any).chain().stubFalse(); } @@ -13272,7 +13292,7 @@ namespace TestRangeRight { result = _('a').chain().stubObject(); result = _([1]).chain().stubObject(); - result = _([]).chain().stubObject(); + result = _(['']).chain().stubObject(); result = _({}).chain().stubObject(); result = _(any).chain().stubObject(); } @@ -13292,7 +13312,7 @@ namespace TestRangeRight { result = _('a').chain().stubString(); result = _([1]).chain().stubString(); - result = _([]).chain().stubString(); + result = _(['']).chain().stubString(); result = _({}).chain().stubString(); result = _(any).chain().stubString(); } @@ -13312,7 +13332,7 @@ namespace TestRangeRight { result = _('a').chain().stubTrue(); result = _([1]).chain().stubTrue(); - result = _([]).chain().stubTrue(); + result = _(['']).chain().stubTrue(); result = _({}).chain().stubTrue(); result = _(any).chain().stubTrue(); } @@ -13367,7 +13387,7 @@ namespace TestToPath { result = _(1).toPath(); result = _('a').toPath(); result = _([1]).toPath(); - result = _(["a"]).toPath(); + result = _(["a"]).toPath(); result = _({}).toPath(); } } diff --git a/types/lodash/tslint.json b/types/lodash/tslint.json index 02254dbc60..44e681fc18 100644 --- a/types/lodash/tslint.json +++ b/types/lodash/tslint.json @@ -2,35 +2,28 @@ "extends": "dtslint/dt.json", "rules": { // All are TODOs - "adjacent-overload-signatures": false, - "align": false, "array-type": false, "ban-types": false, "callable-types": false, - "comment-format": false, - "eofline": false, + "comment-format": [false], "interface-name": false, "interface-over-type-literal": false, "jsdoc-format": false, - "max-line-length": false, + "max-line-length": [false], "no-any-union": false, "no-empty-interface": false, - "no-namespace": false, "no-mergeable-namespace": false, + "no-namespace": false, "no-unnecessary-generics": false, - "no-unnecessary-qualifier": false, "no-unnecessary-type-assertion": false, "no-void-expression": false, - "no-trailing-whitespace": false, "object-literal-key-quotes": false, "one-line": false, - "one-variable-per-declaration": false, "prefer-const": false, "semicolon": false, "space-within-parens": false, - "triple-equals": false, - "typedef-whitespace": false, + "typedef-whitespace": [false], "unified-signatures": false, - "whitespace": false + "whitespace": [false] } } From 1d3179901c97f1f5a18c717d986ade3881dd7b13 Mon Sep 17 00:00:00 2001 From: Rob Sterner Date: Thu, 19 Oct 2017 11:27:29 -0400 Subject: [PATCH 172/506] per the docs/comments the order can be null (#20721) --- types/c3/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/c3/index.d.ts b/types/c3/index.d.ts index 00d1cf1840..eb727233a0 100644 --- a/types/c3/index.d.ts +++ b/types/c3/index.d.ts @@ -366,7 +366,7 @@ declare namespace c3 { * and it will recieve the data as argument. * Available Values: desc, asc, function (data1, data2) { ... }, null */ - order?: string | ((...data: string[]) => void); + order?: string | ((...data: string[]) => void) | null; /** * Define regions for each data. * The values must be an array for each data and it should include an object that has start, end, style. If start is not set, the start will be the first data point. If end is not set, the From f9aa971b2735046772a12d8b7ad4f6d04932bba6 Mon Sep 17 00:00:00 2001 From: Viktor Isaev Date: Thu, 19 Oct 2017 18:31:05 +0300 Subject: [PATCH 173/506] Added typings for "heapdump". (#20716) * Added typings for "require-dir". * Fixed dtslint errors. * Fixed By field. * Added typings for "restify-cookies". * Added "cookies" field to Request interface. * Added typings for "heapdump". --- types/heapdump/heapdump-tests.ts | 9 +++++++++ types/heapdump/index.d.ts | 6 ++++++ types/heapdump/tsconfig.json | 25 +++++++++++++++++++++++++ types/heapdump/tslint.json | 1 + 4 files changed, 41 insertions(+) create mode 100644 types/heapdump/heapdump-tests.ts create mode 100644 types/heapdump/index.d.ts create mode 100644 types/heapdump/tsconfig.json create mode 100644 types/heapdump/tslint.json diff --git a/types/heapdump/heapdump-tests.ts b/types/heapdump/heapdump-tests.ts new file mode 100644 index 0000000000..49019f83fc --- /dev/null +++ b/types/heapdump/heapdump-tests.ts @@ -0,0 +1,9 @@ +import * as heapdump from 'heapdump'; + +heapdump.writeSnapshot('/tmp/myDump', (err) => { + if (err) { + console.log('Failed to dump heap: ' + err); + } else { + console.log('Successfully dumped heap!'); + } +}); diff --git a/types/heapdump/index.d.ts b/types/heapdump/index.d.ts new file mode 100644 index 0000000000..d4e0477a32 --- /dev/null +++ b/types/heapdump/index.d.ts @@ -0,0 +1,6 @@ +// Type definitions for heapdump 0.3 +// Project: https://github.com/bnoordhuis/node-heapdump +// Definitions by: weekens +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +export function writeSnapshot(dumpFileName: string, callback: (err?: Error) => void): void; diff --git a/types/heapdump/tsconfig.json b/types/heapdump/tsconfig.json new file mode 100644 index 0000000000..a15a306b41 --- /dev/null +++ b/types/heapdump/tsconfig.json @@ -0,0 +1,25 @@ +{ + "compilerOptions": { + "target": "es6", + "module": "commonjs", + "lib": [ + "es6", + "dom" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "strictFunctionTypes": true, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "heapdump-tests.ts" + ] +} diff --git a/types/heapdump/tslint.json b/types/heapdump/tslint.json new file mode 100644 index 0000000000..3db14f85ea --- /dev/null +++ b/types/heapdump/tslint.json @@ -0,0 +1 @@ +{ "extends": "dtslint/dt.json" } From 5b3c2c61117a6d713af90d8b1efe8492749c97e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emre=20Do=C4=9Fan?= Date: Thu, 19 Oct 2017 18:35:06 +0300 Subject: [PATCH 174/506] Optional parameters for constructor has been changed according to package's description (#20712) --- types/neo4j/index.d.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/types/neo4j/index.d.ts b/types/neo4j/index.d.ts index f0923557ca..dc9567f725 100644 --- a/types/neo4j/index.d.ts +++ b/types/neo4j/index.d.ts @@ -57,7 +57,7 @@ export interface GraphDatabaseOptions { * HTTP agent. * @type {any} */ - agent: any; + agent?: any; /** * Authentication information. @@ -69,13 +69,13 @@ export interface GraphDatabaseOptions { * HTTP headers. * @type {Object} */ - headers: {}; + headers?: {}; /** * Proxy address. * @type {string} */ - proxy: string; + proxy?: string; /** * URL connection. From 12eb86bd1bbc28f5d49965adb63bfc25fd8e4558 Mon Sep 17 00:00:00 2001 From: Ika Date: Thu, 19 Oct 2017 23:36:58 +0800 Subject: [PATCH 175/506] feat(prettier): update to v1.7.x (#20708) --- types/prettier/index.d.ts | 26 +++++++++++++++++++++----- types/prettier/prettier-tests.ts | 3 +++ 2 files changed, 24 insertions(+), 5 deletions(-) diff --git a/types/prettier/index.d.ts b/types/prettier/index.d.ts index 1ed2568a1e..6ea1fcbbf9 100644 --- a/types/prettier/index.d.ts +++ b/types/prettier/index.d.ts @@ -9,7 +9,16 @@ import { File } from 'babel-types'; export type AST = File; export type BuiltInParser = (text: string, options?: any) => AST; -export type BuiltInParserName = 'babylon' | 'flow' | 'typescript' | 'postcss' | 'json' | 'graphql'; +export type BuiltInParserName = + | 'babylon' + | 'flow' + | 'typescript' + | 'postcss' // deprecated + | 'css' + | 'less' + | 'scss' + | 'json' + | 'graphql'; export type CustomParser = (text: string, parsers: Record, options: Options) => AST; @@ -107,11 +116,18 @@ export interface ResolveConfigOptions { * If set to `false`, all caching will be bypassed. */ useCache?: boolean; + /** + * Pass directly the path of the config file if you don't wish to search for it. + */ + config?: string; } /** - * `resolveConfig` can be used to resolve configuration for a given source file. - * The function optionally accepts an input file path as an argument, which defaults to the current working directory. + * `resolveConfig` can be used to resolve configuration for a given source file, + * passing its path as the first argument. The config search will start at the + * file path and continue to search up the directory. + * (You can use `process.cwd()` to start searching from the current directory). + * * A promise is returned which will resolve to: * * - An options object, providing a [config file](https://github.com/prettier/prettier#configuration-file) was found. @@ -119,9 +135,9 @@ export interface ResolveConfigOptions { * * The promise will be rejected if there was an error parsing the configuration file. */ -export function resolveConfig(filePath?: string, options?: ResolveConfigOptions): Promise; +export function resolveConfig(filePath: string, options?: ResolveConfigOptions): Promise; export namespace resolveConfig { - function sync(filePath?: string, options?: ResolveConfigOptions): null | Options; + function sync(filePath: string, options?: ResolveConfigOptions): null | Options; } /** diff --git a/types/prettier/prettier-tests.ts b/types/prettier/prettier-tests.ts index 8d95196101..9d78453bae 100644 --- a/types/prettier/prettier-tests.ts +++ b/types/prettier/prettier-tests.ts @@ -24,6 +24,9 @@ prettier.resolveConfig('path/to/somewhere').then(options => { } }); +// $ExpectError +prettier.resolveConfig(); + const options = prettier.resolveConfig.sync('path/to/somewhere'); if (options !== null) { const formatted = prettier.format('hello world', options); From fb6179c085bcf89d530555bda1828c79a025627a Mon Sep 17 00:00:00 2001 From: segayuu Date: Fri, 20 Oct 2017 00:39:42 +0900 Subject: [PATCH 176/506] [hexo-fs] cleanup unnecessary type annotation (#20702) --- types/hexo-fs/hexo-fs-tests.ts | 147 ++++++++++++++++----------------- types/hexo-fs/index.d.ts | 1 + 2 files changed, 74 insertions(+), 74 deletions(-) diff --git a/types/hexo-fs/hexo-fs-tests.ts b/types/hexo-fs/hexo-fs-tests.ts index 71e6d99e1b..d53a790ac1 100644 --- a/types/hexo-fs/hexo-fs-tests.ts +++ b/types/hexo-fs/hexo-fs-tests.ts @@ -1,11 +1,10 @@ import fs = require('hexo-fs'); -import path = require('path'); -import mocha = require('mocha'); +import { join, dirname } from 'path'; +import 'mocha'; import chai = require('chai'); import Promise = require('bluebird'); const should = chai.should(); -const { join } = path; function createDummyFolder(path: string) { return Promise.all([ @@ -31,18 +30,18 @@ const tmpDir = join(__dirname, 'fs_tmp'); before(() => fs.mkdirs(tmpDir)); -after((done) => { +after(done => { fs.rmdir(tmpDir); done(); }); it('exists()', () => { - return fs.exists(tmpDir).then((exist) => { + return fs.exists(tmpDir).then(exist => { exist.should.be.true; }); }); -it('exists() - callback', (callback) => { +it('exists() - callback', callback => { fs.exists(tmpDir, (exist) => { exist.should.be.true; callback(); @@ -54,19 +53,19 @@ it('mkdirs()', () => { return fs.mkdirs(target).then(() => { return fs.exists(target); - }).then((exist) => { + }).then(exist => { exist.should.be.true; return fs.rmdir(join(tmpDir, 'a')); }); }); -it('mkdirs() - callback', (callback) => { +it('mkdirs() - callback', callback => { const target = join(tmpDir, 'a', 'b', 'c'); - fs.mkdirs(target, (err) => { + fs.mkdirs(target, err => { should.not.exist(err); - fs.exists(target, (exist) => { + fs.exists(target, exist => { exist.should.be.true; fs.rmdir(join(tmpDir, 'a'), callback); }); @@ -78,7 +77,7 @@ it('mkdirsSync()', () => { fs.mkdirsSync(target); - return fs.exists(target).then((exist) => { + return fs.exists(target).then(exist => { exist.should.be.true; return fs.rmdir(join(tmpDir, 'a')); }); @@ -90,17 +89,17 @@ it('writeFile()', () => { return fs.writeFile(target, body).then(() => { return fs.readFile(target); - }).then((content) => { + }).then(content => { content.should.eql(body); return fs.rmdir(join(tmpDir, 'a')); }); }); -it('writeFile() - callback', (callback) => { +it('writeFile() - callback', callback => { const target = join(tmpDir, 'a', 'b', 'test.txt'); const body = 'foo'; - fs.writeFile(target, body, (err) => { + fs.writeFile(target, body, err => { should.not.exist(err); fs.readFile(target, (_, content) => { @@ -116,7 +115,7 @@ it('writeFileSync()', () => { fs.writeFileSync(target, body); - return fs.readFile(target).then((content) => { + return fs.readFile(target).then(content => { content.should.eql(body); return fs.rmdir(join(tmpDir, 'a')); }); @@ -131,19 +130,19 @@ it('appendFile()', () => { return fs.appendFile(target, body2); }).then(() => { return fs.readFile(target); - }).then((content) => { + }).then(content => { content.should.eql(body + body2); return fs.rmdir(join(tmpDir, 'a')); }); }); -it('appendFile() - callback', (callback) => { +it('appendFile() - callback', callback => { const target = join(tmpDir, 'a', 'b', 'test.txt'); const body = 'foo'; const body2 = 'bar'; fs.writeFile(target, body, () => { - fs.appendFile(target, body2, (err) => { + fs.appendFile(target, body2, err => { should.not.exist(err); fs.readFile(target, (_, content) => { @@ -162,7 +161,7 @@ it('appendFileSync()', () => { return fs.writeFile(target, body).then(() => { fs.appendFileSync(target, body2); return fs.readFile(target); - }).then((content) => { + }).then(content => { content.should.eql(body + body2); return fs.rmdir(join(tmpDir, 'a')); }); @@ -177,7 +176,7 @@ it('copyFile()', () => { return fs.copyFile(src, dest); }).then(() => { return fs.readFile(dest); - }).then((content) => { + }).then(content => { content.should.eql(body); return Promise.all([ @@ -187,15 +186,15 @@ it('copyFile()', () => { }); }); -it('copyFile() - callback', (callback) => { +it('copyFile() - callback', callback => { const src = join(tmpDir, 'test.txt'); const dest = join(tmpDir, 'a', 'b', 'test.txt'); const body = 'foo'; - fs.writeFile(src, body, (err) => { + fs.writeFile(src, body, err => { if (err) return callback(err); - fs.copyFile(src, dest, (err) => { + fs.copyFile(src, dest, err => { if (err) return callback(err); fs.readFile(dest, (err, content) => { @@ -217,7 +216,7 @@ it('copyDir()', () => { return createDummyFolder(src).then(() => { return fs.copyDir(src, dest); - }).then((files) => { + }).then(files => { files.should.have.members([ 'e.txt', 'f.js', @@ -231,7 +230,7 @@ it('copyDir()', () => { fs.readFile(join(dest, 'folder', 'h.txt')), fs.readFile(join(dest, 'folder', 'i.js')) ]); - }).then((result) => { + }).then(result => { result.should.eql(['e', 'f', 'h', 'i']); }).then(() => { return Promise.all([ @@ -241,7 +240,7 @@ it('copyDir()', () => { }); }); -it('copyDir() - callback', (callback) => { +it('copyDir() - callback', callback => { const src = join(tmpDir, 'a'); const dest = join(tmpDir, 'b'); @@ -260,7 +259,7 @@ it('copyDir() - callback', (callback) => { fs.readFile(join(dest, 'f.js')), fs.readFile(join(dest, 'folder', 'h.txt')), fs.readFile(join(dest, 'folder', 'i.js')) - ]).then((result) => { + ]).then(result => { result.should.eql(['e', 'f', 'h', 'i']); }).then(() => { return Promise.all([ @@ -278,7 +277,7 @@ it('copyDir() - ignoreHidden off', () => { return createDummyFolder(src).then(() => { return fs.copyDir(src, dest, { ignoreHidden: false }); - }).then((files) => { + }).then(files => { files.should.have.members([ join('.hidden', 'a.txt'), join('.hidden', 'b.js'), @@ -302,7 +301,7 @@ it('copyDir() - ignoreHidden off', () => { fs.readFile(join(dest, 'folder', 'i.js')), fs.readFile(join(dest, 'folder', '.j')) ]); - }).then((result) => { + }).then(result => { result.should.eql(['a', 'b', 'd', 'e', 'f', 'g', 'h', 'i', 'j']); }).then(() => { return Promise.all([ @@ -318,14 +317,14 @@ it('copyDir() - ignorePattern', () => { return createDummyFolder(src).then(() => { return fs.copyDir(src, dest, { ignorePattern: /\.js/ }); - }).then((files) => { + }).then(files => { files.should.have.members(['e.txt', join('folder', 'h.txt')]); return Promise.all([ fs.readFile(join(dest, 'e.txt')), fs.readFile(join(dest, 'folder', 'h.txt')) ]); - }).then((result) => { + }).then(result => { result.should.eql(['e', 'h']); }).then(() => { return Promise.all([ @@ -340,7 +339,7 @@ it('listDir()', () => { return createDummyFolder(target).then(() => { return fs.listDir(target); - }).then((files) => { + }).then(files => { files.should.have.members([ 'e.txt', 'f.js', @@ -352,7 +351,7 @@ it('listDir()', () => { }); }); -it('listDir() - callback', (callback) => { +it('listDir() - callback', callback => { const target = join(tmpDir, 'test'); createDummyFolder(target).then(() => { @@ -376,7 +375,7 @@ it('listDir() - ignoreHidden off', () => { return createDummyFolder(target).then(() => { return fs.listDir(target, { ignoreHidden: false }); - }).then((files) => { + }).then(files => { files.should.have.members([ join('.hidden', 'a.txt'), join('.hidden', 'b.js'), @@ -398,7 +397,7 @@ it('listDir() - ignorePattern', () => { return createDummyFolder(target).then(() => { return fs.listDir(target, { ignorePattern: /\.js/ }); - }).then((files) => { + }).then(files => { files.should.have.members(['e.txt', join('folder', 'h.txt')]); return fs.rmdir(target); }); @@ -457,17 +456,17 @@ it('readFile()', () => { return fs.writeFile(target, body).then(() => { return fs.readFile(target); - }).then((content) => { + }).then(content => { content.should.eql(body); return fs.unlink(target); }); }); -it('readFile() - callback', (callback) => { +it('readFile() - callback', callback => { const target = join(tmpDir, 'test.txt'); const body = 'test'; - fs.writeFile(target, body, (err) => { + fs.writeFile(target, body, err => { if (err) return callback(err); fs.readFile(target, (err, content) => { @@ -486,7 +485,7 @@ it('readFile() - escape BOM', () => { return fs.writeFile(target, body).then(() => { return fs.readFile(target); - }).then((content) => { + }).then(content => { content.should.eql('foo'); return fs.unlink(target); }); @@ -498,7 +497,7 @@ it('readFile() - escape Windows line ending', () => { return fs.writeFile(target, body).then(() => { return fs.readFile(target); - }).then((content) => { + }).then(content => { content.should.eql('foo\nbar'); return fs.unlink(target); }); @@ -539,12 +538,12 @@ it('unlink()', () => { return fs.writeFile(target, '').then(() => { return fs.exists(target); - }).then((exist) => { + }).then(exist => { exist.should.eql(true); return fs.unlink(target); }).then(() => { return fs.exists(target); - }).then((exist) => { + }).then(exist => { exist.should.eql(false); }); }); @@ -554,7 +553,7 @@ it('emptyDir()', () => { return createDummyFolder(target).then(() => { return fs.emptyDir(target); - }).then>((files) => { + }).then(files => { files.should.have.members([ 'e.txt', 'f.js', @@ -574,7 +573,7 @@ it('emptyDir()', () => { [join(target, 'folder', '.j'), true] ]; }).map((data: [string, boolean]) => { - return fs.exists(data[0]).then((exist) => { + return fs.exists(data[0]).then(exist => { exist.should.eql(data[1]); }); }).then(() => { @@ -582,7 +581,7 @@ it('emptyDir()', () => { }); }); -it('emptyDir() - callback', (callback) => { +it('emptyDir() - callback', callback => { const target = join(tmpDir, 'test'); createDummyFolder(target).then(() => { @@ -596,7 +595,7 @@ it('emptyDir() - callback', (callback) => { join('folder', 'i.js') ]); - Promise.map<[string, boolean], void>([ + Promise.map([ [join(target, '.hidden', 'a.txt'), true], [join(target, '.hidden', 'b.js'), true], [join(target, '.hidden', 'c', 'd'), true], @@ -606,8 +605,8 @@ it('emptyDir() - callback', (callback) => { [join(target, 'folder', 'h.txt'), false], [join(target, 'folder', 'i.js'), false], [join(target, 'folder', '.j'), true] - ], (data: [string, boolean]) => { - return fs.exists(data[0]).then((exist) => { + ] as Array<[string, boolean]>, data => { + return fs.exists(data[0]).then(exist => { exist.should.eql(data[1]); }); }).then(() => { @@ -622,7 +621,7 @@ it('emptyDir() - ignoreHidden off', () => { return createDummyFolder(target).then(() => { return fs.emptyDir(target, { ignoreHidden: false }); - }).then>((files) => { + }).then(files => { files.should.have.members([ join('.hidden', 'a.txt'), join('.hidden', 'b.js'), @@ -647,7 +646,7 @@ it('emptyDir() - ignoreHidden off', () => { [join(target, 'folder', '.j'), false] ]; }).map((data: [string, boolean]) => { - return fs.exists(data[0]).then((exist) => { + return fs.exists(data[0]).then(exist => { exist.should.eql(data[1]); }); }).then(() => { @@ -660,7 +659,7 @@ it('emptyDir() - ignorePattern', () => { return createDummyFolder(target).then(() => { return fs.emptyDir(target, { ignorePattern: /\.js/ }); - }).then>((files) => { + }).then(files => { files.should.have.members(['e.txt', join('folder', 'h.txt')]); return [ @@ -675,7 +674,7 @@ it('emptyDir() - ignorePattern', () => { [join(target, 'folder', '.j'), true] ]; }).map((data: [string, boolean]) => { - return fs.exists(data[0]).then((exist) => { + return fs.exists(data[0]).then(exist => { exist.should.eql(data[1]); }); }).then(() => { @@ -688,7 +687,7 @@ it('emptyDir() - exclude', () => { return createDummyFolder(target).then(() => { return fs.emptyDir(target, { exclude: ['e.txt', join('folder', 'i.js')] }); - }).then>((files) => { + }).then(files => { files.should.have.members(['f.js', join('folder', 'h.txt')]); return [ @@ -703,7 +702,7 @@ it('emptyDir() - exclude', () => { [join(target, 'folder', '.j'), true] ]; }).map((data: [string, boolean]) => { - return fs.exists(data[0]).then((exist) => { + return fs.exists(data[0]).then(exist => { exist.should.eql(data[1]); }); }).then(() => { @@ -714,7 +713,7 @@ it('emptyDir() - exclude', () => { it('emptyDirSync()', () => { const target = join(tmpDir, 'test'); - return createDummyFolder(target).then>(() => { + return createDummyFolder(target).then(() => { const files = fs.emptyDirSync(target); files.should.have.members([ 'e.txt', @@ -735,7 +734,7 @@ it('emptyDirSync()', () => { [join(target, 'folder', '.j'), true] ]; }).map((data: [string, boolean]) => { - return fs.exists(data[0]).then((exist) => { + return fs.exists(data[0]).then(exist => { exist.should.eql(data[1]); }); }).then(() => { @@ -746,7 +745,7 @@ it('emptyDirSync()', () => { it('emptyDirSync() - ignoreHidden off', () => { const target = join(tmpDir, 'test'); - return createDummyFolder(target).then>(() => { + return createDummyFolder(target).then(() => { const files = fs.emptyDirSync(target, { ignoreHidden: false }); files.should.have.members([ join('.hidden', 'a.txt'), @@ -772,7 +771,7 @@ it('emptyDirSync() - ignoreHidden off', () => { [join(target, 'folder', '.j'), false] ]; }).map((data: [string, boolean]) => { - return fs.exists(data[0]).then((exist) => { + return fs.exists(data[0]).then(exist => { exist.should.eql(data[1]); }); }).then(() => { @@ -783,7 +782,7 @@ it('emptyDirSync() - ignoreHidden off', () => { it('emptyDirSync() - ignorePattern', () => { const target = join(tmpDir, 'test'); - return createDummyFolder(target).then>(() => { + return createDummyFolder(target).then(() => { const files = fs.emptyDirSync(target, { ignorePattern: /\.js/ }); files.should.have.members(['e.txt', join('folder', 'h.txt')]); @@ -799,7 +798,7 @@ it('emptyDirSync() - ignorePattern', () => { [join(target, 'folder', '.j'), true] ]; }).map((data: [string, boolean]) => { - return fs.exists(data[0]).then((exist) => { + return fs.exists(data[0]).then(exist => { exist.should.eql(data[1]); }); }).then(() => { @@ -810,7 +809,7 @@ it('emptyDirSync() - ignorePattern', () => { it('emptyDirSync() - exclude', () => { const target = join(tmpDir, 'test'); - return createDummyFolder(target).then>(() => { + return createDummyFolder(target).then(() => { const files = fs.emptyDirSync(target, { exclude: ['e.txt', join('folder', 'i.js')] }); files.should.have.members(['f.js', join('folder', 'h.txt')]); @@ -826,7 +825,7 @@ it('emptyDirSync() - exclude', () => { [join(target, 'folder', '.j'), true] ]; }).map((data: [string, boolean]) => { - return fs.exists(data[0]).then((exist) => { + return fs.exists(data[0]).then(exist => { exist.should.eql(data[1]); }); }).then(() => { @@ -841,19 +840,19 @@ it('rmdir()', () => { return fs.rmdir(target); }).then(() => { return fs.exists(target); - }).then((exist) => { + }).then(exist => { exist.should.be.false; }); }); -it('rmdir() - callback', (callback) => { +it('rmdir() - callback', callback => { const target = join(tmpDir, 'test'); createDummyFolder(target).then(() => { - fs.rmdir(target, (err) => { + fs.rmdir(target, err => { should.not.exist(err); - fs.exists(target, (exist) => { + fs.exists(target, exist => { exist.should.be.false; callback(); }); @@ -867,7 +866,7 @@ it('rmdirSync()', () => { return createDummyFolder(target).then(() => { fs.rmdirSync(target); return fs.exists(target); - }).then((exist) => { + }).then(exist => { exist.should.be.false; }); }); @@ -877,7 +876,7 @@ import { FSWatcher } from 'chokidar'; it('watch()', () => { let watcher: FSWatcher; - return fs.watch(tmpDir).then((watcher_) => { + return fs.watch(tmpDir).then(watcher_ => { watcher = watcher_; return new Promise((resolve, reject) => { @@ -905,7 +904,7 @@ it('ensurePath() - file exists', () => { fs.writeFile(join(target, 'bar.txt'), '') ]).then(() => { return fs.ensurePath(join(target, 'foo.txt')); - }).then((path) => { + }).then(path => { path.should.eql(join(target, 'foo-2.txt')); return fs.rmdir(target); }); @@ -914,12 +913,12 @@ it('ensurePath() - file exists', () => { it('ensurePath() - file not exist', () => { const target = join(tmpDir, 'foo.txt'); - return fs.ensurePath(target).then((path) => { + return fs.ensurePath(target).then(path => { path.should.eql(target); }); }); -it('ensurePath() - callback', (callback) => { +it('ensurePath() - callback', callback => { const target = join(tmpDir, 'test'); Promise.all([ @@ -962,7 +961,7 @@ it('ensurePathSync() - file not exist', () => { it('ensureWriteStream()', () => { const target = join(tmpDir, 'foo', 'bar.txt'); - return fs.ensureWriteStream(target).then((stream) => { + return fs.ensureWriteStream(target).then(stream => { stream.path.should.eql(target); stream.on('finish', () => { return fs.unlink(target); @@ -970,7 +969,7 @@ it('ensureWriteStream()', () => { }); }); -it('ensureWriteStream() - callback', (callback) => { +it('ensureWriteStream() - callback', callback => { const target = join(tmpDir, 'foo', 'bar.txt'); fs.ensureWriteStream(target, (err, stream) => { @@ -986,6 +985,6 @@ it('ensureWriteStreamSync()', () => { stream.path.should.eql(target); stream.on('finish', () => { - return fs.rmdir(path.dirname(target)); + return fs.rmdir(dirname(target)); }); }); diff --git a/types/hexo-fs/index.d.ts b/types/hexo-fs/index.d.ts index 237071d7c6..b1b9ef0405 100644 --- a/types/hexo-fs/index.d.ts +++ b/types/hexo-fs/index.d.ts @@ -2,6 +2,7 @@ // Project: http://hexo.io/ // Definitions by: segayuu // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import Promise = require('bluebird'); import { From 498e2c46417703cf11f930cc235708b13a5904dd Mon Sep 17 00:00:00 2001 From: renjfk Date: Thu, 19 Oct 2017 18:40:40 +0300 Subject: [PATCH 177/506] add definitions for mark.js (#20700) --- types/mark.js/index.d.ts | 61 ++++++++++++++++++++++++++++++++++ types/mark.js/mark.js-tests.ts | 4 +++ types/mark.js/tsconfig.json | 24 +++++++++++++ types/mark.js/tslint.json | 1 + 4 files changed, 90 insertions(+) create mode 100644 types/mark.js/index.d.ts create mode 100644 types/mark.js/mark.js-tests.ts create mode 100644 types/mark.js/tsconfig.json create mode 100644 types/mark.js/tslint.json diff --git a/types/mark.js/index.d.ts b/types/mark.js/index.d.ts new file mode 100644 index 0000000000..2215c4e65c --- /dev/null +++ b/types/mark.js/index.d.ts @@ -0,0 +1,61 @@ +// Type definitions for mark.js 8.11 +// Project: https://markjs.io/ +// Definitions by: Soner Köksal +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.3 + +/// + +type MarkAccuracy = "partially" | "complementary" | "exactly"; + +interface MarkOptions { + element?: string; + className?: string; + exclude?: string[]; + separateWordSearch?: boolean; + accuracy?: MarkAccuracy | { value: MarkAccuracy }; + diacritics?: boolean; + synonyms?: { [index: string]: string }; + iframes?: boolean; + iframesTimeout?: number; + acrossElements?: boolean; + caseSensitive?: boolean; + ignoreJoiners?: boolean; + wildcards?: "disabled" | "enabled" | "withSpaces"; + + each?(element: Element): void; + + filter?(textNode: Element, term: string, marksSoFar: number, marksTotal: number): boolean; + + noMatch?(term: string): void; + + done?(marksTotal: number): void; + + debug?: boolean; + log?: object; +} + +interface UnmarkOptions { + element?: string; + className?: string; + exclude?: string[]; + iframes?: boolean; + iframesTimeout?: number; + + done?(marksTotal: number): void; + + debug?: boolean; + log?: object; +} + +interface JQuery { + mark(term: string, options?: MarkOptions): void; + + unmark(options?: UnmarkOptions): void; +} + +interface JQueryStatic { + mark(term: string, options?: MarkOptions): void; + + unmark(options?: UnmarkOptions): void; +} diff --git a/types/mark.js/mark.js-tests.ts b/types/mark.js/mark.js-tests.ts new file mode 100644 index 0000000000..136098d39d --- /dev/null +++ b/types/mark.js/mark.js-tests.ts @@ -0,0 +1,4 @@ +$("div.context").mark("text", { + element: "span", + className: "highlight" +}); diff --git a/types/mark.js/tsconfig.json b/types/mark.js/tsconfig.json new file mode 100644 index 0000000000..381f150954 --- /dev/null +++ b/types/mark.js/tsconfig.json @@ -0,0 +1,24 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es6", + "dom" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "strictFunctionTypes": true, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "mark.js-tests.ts" + ] +} diff --git a/types/mark.js/tslint.json b/types/mark.js/tslint.json new file mode 100644 index 0000000000..3db14f85ea --- /dev/null +++ b/types/mark.js/tslint.json @@ -0,0 +1 @@ +{ "extends": "dtslint/dt.json" } From 6688ade3ea728ae56e15288f14f2f3a43cbc6708 Mon Sep 17 00:00:00 2001 From: renjfk Date: Thu, 19 Oct 2017 18:42:05 +0300 Subject: [PATCH 178/506] added definitions for selectables 1.4 (#20699) * added definitions for selectables 1.4 * options are now optional * constructor is now optional --- types/selectables/index.d.ts | 35 ++++++++++++++++++++++++++ types/selectables/selectables-tests.ts | 15 +++++++++++ types/selectables/tsconfig.json | 24 ++++++++++++++++++ types/selectables/tslint.json | 1 + 4 files changed, 75 insertions(+) create mode 100644 types/selectables/index.d.ts create mode 100644 types/selectables/selectables-tests.ts create mode 100644 types/selectables/tsconfig.json create mode 100644 types/selectables/tslint.json diff --git a/types/selectables/index.d.ts b/types/selectables/index.d.ts new file mode 100644 index 0000000000..3834428240 --- /dev/null +++ b/types/selectables/index.d.ts @@ -0,0 +1,35 @@ +// Type definitions for selectables 1.4 +// Project: https://github.com/p34eu/Selectables#readme +// Definitions by: Soner Köksal +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +export = Selectables; + +declare class Selectables { + options: Selectables.Options; + + constructor(options?: Selectables.Options); + + enable(): void; + + disable(): void; +} + +declare namespace Selectables { + interface Options { + zone?: string; + elements?: string; + selectedClass?: string; + key?: string | boolean; + moreUsing?: string; + enabled?: boolean; + + start?(e: Event): void; + + stop?(e: Event): void; + + onSelect?(el: Element): void; + + onDeselect?(el: Element): void; + } +} diff --git a/types/selectables/selectables-tests.ts b/types/selectables/selectables-tests.ts new file mode 100644 index 0000000000..595f2ca738 --- /dev/null +++ b/types/selectables/selectables-tests.ts @@ -0,0 +1,15 @@ +import * as Selectables from "selectables"; + +const dr = new Selectables({ + zone: '#div', + elements: 'li' +}); + +// later +dr.disable(); + +// enable again +dr.enable(); + +// set options +dr.options.key = 'altKey'; diff --git a/types/selectables/tsconfig.json b/types/selectables/tsconfig.json new file mode 100644 index 0000000000..e34d4a6078 --- /dev/null +++ b/types/selectables/tsconfig.json @@ -0,0 +1,24 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es6", + "dom" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "strictFunctionTypes": true, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "selectables-tests.ts" + ] +} diff --git a/types/selectables/tslint.json b/types/selectables/tslint.json new file mode 100644 index 0000000000..3db14f85ea --- /dev/null +++ b/types/selectables/tslint.json @@ -0,0 +1 @@ +{ "extends": "dtslint/dt.json" } From ba5c25b8c7aa5acd0a062c832f53857cf8958663 Mon Sep 17 00:00:00 2001 From: Junyoung Clare Jang Date: Thu, 19 Oct 2017 11:42:41 -0400 Subject: [PATCH 179/506] Fix ModifyOptions (#20698) --- types/openlayers/index.d.ts | 2 ++ types/openlayers/openlayers-tests.ts | 5 +++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/types/openlayers/index.d.ts b/types/openlayers/index.d.ts index 539db01b4d..441214cce6 100644 --- a/types/openlayers/index.d.ts +++ b/types/openlayers/index.d.ts @@ -12617,6 +12617,7 @@ declare module olx { /** * @typedef {{condition: (ol.EventsConditionType|undefined), * deleteCondition: (ol.EventsConditionType|undefined), + * insertVertexCondition: (ol.EventsConditionType|undefined), * pixelTolerance: (number|undefined), * style: (ol.style.Style|Array.|ol.StyleFunction|undefined), * features: ol.Collection., @@ -12626,6 +12627,7 @@ declare module olx { interface ModifyOptions { condition?: ol.EventsConditionType; deleteCondition?: ol.EventsConditionType; + insertVertexCondition?: ol.EventsConditionType; pixelTolerance?: number; style?: (ol.style.Style | ol.style.Style[] | ol.StyleFunction); features: ol.Collection; diff --git a/types/openlayers/openlayers-tests.ts b/types/openlayers/openlayers-tests.ts index 29d763344a..50281ff0fe 100644 --- a/types/openlayers/openlayers-tests.ts +++ b/types/openlayers/openlayers-tests.ts @@ -703,7 +703,8 @@ jsonValue = geojsonFormat.writeGeometryObject(geometry, writeOptions); // ol.interactions // let modify: ol.interaction.Modify = new ol.interaction.Modify({ - features: new ol.Collection(featureArray) + insertVertexCondition: ol.events.condition.never, + features: new ol.Collection(featureArray), }); let draw: ol.interaction.Draw = new ol.interaction.Draw({ @@ -811,4 +812,4 @@ numberValue = ol.Sphere.getArea(geometry, { numberValue = ol.Sphere.getLength(geometry, { projection: projection, radius: numberValue, -}); \ No newline at end of file +}); From 2c1dc4970e23bfcff04851e4b9e241832b18c680 Mon Sep 17 00:00:00 2001 From: Pratheek Adidela Date: Thu, 19 Oct 2017 22:46:17 +0530 Subject: [PATCH 180/506] Added types for node-horseman (#20030) * Added declarations for 'node-horseman'. * Linting is successful. * Made required changes for pushing to @types. --- types/node-horseman/index.d.ts | 241 +++++++++++++++++++++ types/node-horseman/node-horseman-tests.ts | 11 + types/node-horseman/tsconfig.json | 24 ++ types/node-horseman/tslint.json | 1 + 4 files changed, 277 insertions(+) create mode 100644 types/node-horseman/index.d.ts create mode 100644 types/node-horseman/node-horseman-tests.ts create mode 100644 types/node-horseman/tsconfig.json create mode 100644 types/node-horseman/tslint.json diff --git a/types/node-horseman/index.d.ts b/types/node-horseman/index.d.ts new file mode 100644 index 0000000000..46ca810233 --- /dev/null +++ b/types/node-horseman/index.d.ts @@ -0,0 +1,241 @@ +// Type definitions for node-horseman 3.3 +// Project: https://github.com/johntitus/node-horseman#readme +// Definitions by: Pratheek Adidela +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.2 + +export = horseman; + +declare class horseman { + constructor(options: any); + /** Handle page events inside PhantomJS. Phantom receives callback return value with .at but not with .on */ + at(eventType: string, callback: () => void): this; + + /** Get the value of an attribute for a selector. */ + attribute(selector: string, attr: string): string; + + /** Use basic HTTP authentication when opening a page. */ + authentication(username: string, password: string): this; + + /** Go back a page. */ + back(): this; + + /** Get the bounding rectangle of a selector. */ + boundingRectangle(selector: string): ClientRect; + + /** Clear an input field. */ + clear(selector: string): any; + + /** Click on a selector and fire a 'click event'. */ + click(selector: string): this; + + /** Close the instance and perform cleanup. */ + close(): this; + + /** Close a tab and release its resources. */ + closeTab(tabNumber: string): this; + + /** Set the cookies for Phantom. */ + cookies(args: object | object[] | string): this; + /** Get the cookies from Phantom. */ + cookies(): string; + + /** Count the number of occurances of 'selector' on the page. */ + count(selector: string): number; + + /** Save a cropped screenshot to disk. */ + crop(area: string | object, path: string): this; + + /** Take a base64 encoded cropped screenshot. */ + cropBase64(area: string, type: string | 'PNG'): any; + + /** Get the value of an css property of a selector. */ + cssProperty(selector: string, prop: string): string; + + /** Execute a function without breaking the api chain. */ + do(fn: () => void): this; + + /** Download a URL. */ + download(url: string, path: string, binary: boolean, method: string, data: string): this; + + /** Run a javascript function on the current page and optionally return the results. */ + evaluate(fn: () => void, args?: any[]): this; + + /** Determine if the selector exists, at least once, on the page. */ + exists(selector: string): boolean; + + /** Go forward a page. */ + forward(): this; + + /** Get the count of frames inside the current frame. */ + frameCount(): number; + + /** Get the name of the current frame. */ + frameName(): string; + + /** Get the names of the frames inside the current frame. */ + frameNames(): string; + + /** Set headers sent to the remote server during an 'open'. */ + headers(headers: object[]): this; + + /** Get the height of an element. */ + height(selector: string): number; + + /** Get the HTML for the page, or optionally for a selector. */ + html(selector?: string, file?: string): Promise; + + /** Includes javascript script from a url on the page. */ + includeJs(url: string): this; + + /** Injects javascript from a file into the page. */ + injectJs(file: string): this; + + /** Fire a key event. */ + keyboardEvent(type?: string, key?: string, modifier?: number): this; + + /** Log the output from either a previous chain method, or a string the user passed in. */ + log(output?: string): this; + + /** Run javascript on the page. */ + manipulate(fn: () => void, args?: any[]): this; + + /** Fire a mouse event. */ + mouseEvent(type?: string, x?: number, y?: number, button?: string): this; + + /** Handles page events. * eventType can be one of: + * initialized - callback() + * loadStarted - callback() + * loadFinished - callback(status) + * tabCreated - callback(tabNum, tab) + * tabClosed - callback(tabNum, tab) + * urlChanged - callback(targetUrl) + * navigationRequested - callback(url, type, willNavigate, main) + * resourceRequested - callback(requestData, networkRequest) + * resourceReceived - callback(response) + * pageCreated - callback(newPage) + * consoleMessage(msg, lineNum, sourceId) + * alert - callback(msg) + * confirm - callback(msg) + * prompt - callback(msg, defaultVal) + * filePicker - callback(oldFile) + * error - callback(msg, trace); + * timeout - callback(type) + */ + on(event: string | "timeout" | "tabCreated" | "tabClosed"| "resourceTimeout"| "urlChanged"| "resourceReceived"| "pageCreated"| "loadFinished", func: (...args: any[]) => void): this; + + /** Open a url in Phantom. */ + open(url: string, method?: string | 'GET'): this; + + /** Open URL in a new tab */ + openTab(url: string): this; + + pageMaker(url: any, _page: any, ...args: any[]): any; + + /** Save the current page as a pdf. */ + pdf(path: string, paperSize: { + format?: "A3" | "A4" | "A5" | "Legal" | "Letter" | "Tabloid", + orientation?: "portrait" | "landscape", + margin?: string + }): this; + + /** Get the plain text for the body of the page. */ + plainText(): string; + + /** Send Post data to a url. */ + post(url: string, postData: string): this; + + /** Send Put data to a url. */ + put(url: string, putData: string): this; + + /** Reload the page. */ + reload(): this; + + /** Save a screenshot to disk. */ + screenshot(path: string): this; + + /** Take a base64 encoded screenshot, e.g., PNG. */ + screenshotBase64(type: string | 'PNG'): any; + + /** Scroll to a position on the page. */ + scrollTo(top: number, left: number): this; + + /** Select a value in an html select element. */ + select(selector: string, value: string): any; + + /** Change the proxy settings. */ + setProxy(ip: string, port: string, type: string, username: string, password: string): this; + + /** Get the HTTP status of the last opened page. */ + status(): string; + + /** Switch to a child frame. */ + switchToChildFrame(nameOrPosition: string | number): this; + + /** Switch to the focused frame. */ + switchToFocusedFrame(): this; + + /** Switch to a frame inside the current frame. */ + switchToFrame(nameOrPosition: string | number): this; + + /** Switch to the main frame. */ + switchToMainFrame(): this; + + /** Switch to the parent frame of the current frame. */ + switchToParentFrame(): this; + + /** Switch to another of the open tabs */ + switchToTab(tabNumber: number): this; + + /** Returns the number of tabs */ + tabCount(): number; + + /** Get the text for the body of the page, or optionally for a selector. */ + text(selector?: string): string; + + /** Get the title of the current page. */ + title(): string; + + /** Simulate a keypress on a selector */ + type(selector: string, text: string, options?: object): this; + + /** Upload a file to the page. */ + upload(selector: string, file: string): this; + + /** Get the url of the current page. */ + url(): string; + + /** Get or set the user agent for Phantom. */ + userAgent(...args: any[]): any; + + /** Get the value of an element. */ + value(selector: string): string; + /** Sets the value of an element. */ + value(selector: string, value: string): this; + + /** Set the size of the viewport. */ + viewport(width: number, height: number): this; + /** Get the size of the viewport. */ + viewport(): object; + + /** Determines if an element is visible. */ + visible(selector: string): boolean; + + /** Wait for a specified period of time */ + wait(milliseconds: number): this; + + /** Waits for a function to evaluate to a given value in browser. If optsOrFn is a function, use the classic signature waitFor(fn, arg1, arg2, value), If arg is an object, use waitFor(options). */ + waitFor(...args: any[]): this; + + /** Wait for a page load to occur */ + waitForNextPage(object?: object): this; + + /** Wait for a selector to be present on the current page. */ + waitForSelector(selector: string, options: object): this; + + /** Get the width of an element. */ + width(selector: string): number; + + /** Set the zoom factor of the page. */ + zoom(zoomFactor: number): this; +} diff --git a/types/node-horseman/node-horseman-tests.ts b/types/node-horseman/node-horseman-tests.ts new file mode 100644 index 0000000000..f1d81058f6 --- /dev/null +++ b/types/node-horseman/node-horseman-tests.ts @@ -0,0 +1,11 @@ +import horseman = require("node-horseman"); + +const horse = new horseman({ + timeout: 10000 +}); + +horse.on('error', (msg: any, trace: any) => { console.log(msg, trace); }) +.open("http://example.org/").waitForNextPage().html().then((pageContent: string) => { + console.log(pageContent); + horse.close(); +}); diff --git a/types/node-horseman/tsconfig.json b/types/node-horseman/tsconfig.json new file mode 100644 index 0000000000..5490648512 --- /dev/null +++ b/types/node-horseman/tsconfig.json @@ -0,0 +1,24 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es6", + "dom" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "baseUrl": "../", + "strictFunctionTypes": true, + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "node-horseman-tests.ts" + ] +} diff --git a/types/node-horseman/tslint.json b/types/node-horseman/tslint.json new file mode 100644 index 0000000000..3db14f85ea --- /dev/null +++ b/types/node-horseman/tslint.json @@ -0,0 +1 @@ +{ "extends": "dtslint/dt.json" } From e86a56d0ccd8cf5d074e2cf5b0cc41acba663bf3 Mon Sep 17 00:00:00 2001 From: Jinwoo Lee Date: Thu, 19 Oct 2017 10:22:12 -0700 Subject: [PATCH 181/506] Node http2: statCheck() may also return `false`. (#20692) * Node http2: statCheck() may also return `false`. https://nodejs.org/dist/latest-v8.x/docs/api/http2.html#http2_http2stream_respondwithfile_path_headers_options says: The options.statCheck function may also be used to cancel the send operation by returning false Related node code: - https://github.com/nodejs/node/blob/master/lib/internal/http2/core.js#L1621 - https://github.com/nodejs/node/blob/master/lib/internal/http2/core.js#L1671 * add tests for returning false from statCheck() * change `void|false` to `void|boolean` * fix lint error --- types/node/index.d.ts | 2 +- types/node/node-tests.ts | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/types/node/index.d.ts b/types/node/index.d.ts index d8e8fe3358..5d0ba05b93 100644 --- a/types/node/index.d.ts +++ b/types/node/index.d.ts @@ -6112,7 +6112,7 @@ declare module "http2" { } export interface ServerStreamFileResponseOptions { - statCheck?: (stats: fs.Stats, headers: IncomingHttpHeaders, statOptions: StatOptions) => void; + statCheck?: (stats: fs.Stats, headers: IncomingHttpHeaders, statOptions: StatOptions) => void|boolean; getTrailers?: (trailers: IncomingHttpHeaders) => void; offset?: number; length?: number; diff --git a/types/node/node-tests.ts b/types/node/node-tests.ts index c4cd693e03..7b36c859c7 100644 --- a/types/node/node-tests.ts +++ b/types/node/node-tests.ts @@ -3288,6 +3288,7 @@ namespace http2_tests { serverHttp2Stream.respondWithFD(0); serverHttp2Stream.respondWithFD(0, headers); serverHttp2Stream.respondWithFD(0, headers, options2); + serverHttp2Stream.respondWithFD(0, headers, {statCheck: () => false}); let options3: http2.ServerStreamFileResponseOptionsWithError = { onError: (err: NodeJS.ErrnoException) => {}, statCheck: (stats: fs.Stats, headers: http2.IncomingHttpHeaders, statOptions: http2.StatOptions) => {}, @@ -3298,6 +3299,7 @@ namespace http2_tests { serverHttp2Stream.respondWithFile(''); serverHttp2Stream.respondWithFile('', headers); serverHttp2Stream.respondWithFile('', headers, options3); + serverHttp2Stream.respondWithFile('', headers, {statCheck: () => false}); } // Http2Server / Http2SecureServer From 891a0d68419009e460948febd1d40f19b3efff4d Mon Sep 17 00:00:00 2001 From: Andy Date: Thu, 19 Oct 2017 11:29:04 -0700 Subject: [PATCH 182/506] dts-generator: Add dependency on "typescript" (#20730) --- types/dts-generator/package.json | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 types/dts-generator/package.json diff --git a/types/dts-generator/package.json b/types/dts-generator/package.json new file mode 100644 index 0000000000..2195330f38 --- /dev/null +++ b/types/dts-generator/package.json @@ -0,0 +1,6 @@ +{ + "private": true, + "dependencies": { + "typescript": "*" + } +} From fec630a446d8cd1155d0d8e4f53a4bc119143e92 Mon Sep 17 00:00:00 2001 From: Stephen Ierodiaconou Date: Thu, 19 Oct 2017 19:34:06 +0100 Subject: [PATCH 183/506] [next-redux-wrapper] update to support new option param and export interfaces used in return types (#20732) * [next-redux-wrapper] update to support new option param and export interfaces used in return types * Revert change to package.json --- types/next-redux-wrapper/index.d.ts | 29 ++++++++++--------- .../next-redux-wrapper-tests.tsx | 2 +- types/next-redux-wrapper/package.json | 2 +- 3 files changed, 17 insertions(+), 16 deletions(-) diff --git a/types/next-redux-wrapper/index.d.ts b/types/next-redux-wrapper/index.d.ts index dae0cf3841..1f5945741b 100644 --- a/types/next-redux-wrapper/index.d.ts +++ b/types/next-redux-wrapper/index.d.ts @@ -14,7 +14,7 @@ */ import * as React from 'react'; -import { IncomingMessage } from 'http'; +import { IncomingMessage, ServerResponse } from 'http'; import { Store, Component, MapDispatchToPropsParam, MapStateToPropsParam, @@ -23,28 +23,28 @@ import { export = nextReduxWrapper; -interface NextPageComponentMethods { - getInitialProps(props: any): Promise; -} -type NextReduxWrappedComponent = React.Component & NextPageComponentMethods; - -type NextStoreCreator = ( - initialState: TInitialState, - options: nextReduxWrapper.StoreCreatorOptions -) => Store; - declare function nextReduxWrapper( options: nextReduxWrapper.Options -): (Component: Component) => NextReduxWrappedComponent; +): (Component: Component) => nextReduxWrapper.NextReduxWrappedComponent; declare function nextReduxWrapper( - createStore: NextStoreCreator, + createStore: nextReduxWrapper.NextStoreCreator, mapStateToProps?: MapStateToPropsParam, mapDispatchToProps?: MapDispatchToPropsParam, mergeProps?: MergeProps, options?: ConnectOptions -): (Component: Component) => NextReduxWrappedComponent; +): (Component: Component) => nextReduxWrapper.NextReduxWrappedComponent; declare namespace nextReduxWrapper { + interface NextPageComponentMethods { + getInitialProps(props: any): Promise; + } + type NextReduxWrappedComponent = React.Component & NextPageComponentMethods; + + type NextStoreCreator = ( + initialState: TInitialState, + options: StoreCreatorOptions + ) => Store; + interface Options { createStore: NextStoreCreator; debug?: boolean; @@ -57,6 +57,7 @@ declare namespace nextReduxWrapper { interface StoreCreatorOptions extends Options { isServer: boolean; req?: IncomingMessage; + res?: ServerResponse; query?: any; } diff --git a/types/next-redux-wrapper/next-redux-wrapper-tests.tsx b/types/next-redux-wrapper/next-redux-wrapper-tests.tsx index 37bd8af4b8..40069aeb8d 100644 --- a/types/next-redux-wrapper/next-redux-wrapper-tests.tsx +++ b/types/next-redux-wrapper/next-redux-wrapper-tests.tsx @@ -70,7 +70,7 @@ const com5 = withRedux( (initialState: InitialState, options: StoreCreatorOptions) => { - if (options.isServer || options.req || options.query) { + if (options.isServer || options.req || options.query || options.res) { const a = 1; } return createStore(reducer, initialState); diff --git a/types/next-redux-wrapper/package.json b/types/next-redux-wrapper/package.json index 4bcc170ca3..6d68bf2f9b 100644 --- a/types/next-redux-wrapper/package.json +++ b/types/next-redux-wrapper/package.json @@ -3,4 +3,4 @@ "dependencies": { "redux": "^3.6.0" } -} \ No newline at end of file +} From 254fb86815a697567662f27592dc1f07256ae6ba Mon Sep 17 00:00:00 2001 From: Simon McClive Date: Thu, 19 Oct 2017 19:38:48 +0100 Subject: [PATCH 184/506] Add types for parent-package-json (#20714) * Add types for parent-package-json * Update return type to false and restructure tests * Remove multiple calls of parent() in tests * Test optional properties --- types/parent-package-json/index.d.ts | 17 +++++++++++++ .../parent-package-json-tests.ts | 10 ++++++++ types/parent-package-json/tsconfig.json | 24 +++++++++++++++++++ types/parent-package-json/tslint.json | 3 +++ 4 files changed, 54 insertions(+) create mode 100644 types/parent-package-json/index.d.ts create mode 100644 types/parent-package-json/parent-package-json-tests.ts create mode 100644 types/parent-package-json/tsconfig.json create mode 100644 types/parent-package-json/tslint.json diff --git a/types/parent-package-json/index.d.ts b/types/parent-package-json/index.d.ts new file mode 100644 index 0000000000..b0ab9ec3ce --- /dev/null +++ b/types/parent-package-json/index.d.ts @@ -0,0 +1,17 @@ +// Type definitions for parent-package-json 2.0 +// Project: https://github.com/maxrimue/parent-package-json +// Definitions by: Simon McClive +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.2 + +export = ParentPackageJson; + +declare function ParentPackageJson(startPath?: string | null, ignore?: number): ParentPackageJson.ParentPackage | false; + +declare namespace ParentPackageJson { + interface ParentPackage { + read(): string; + path: string; + parse(): {[key: string]: any}; + } +} diff --git a/types/parent-package-json/parent-package-json-tests.ts b/types/parent-package-json/parent-package-json-tests.ts new file mode 100644 index 0000000000..41a5a7bdd0 --- /dev/null +++ b/types/parent-package-json/parent-package-json-tests.ts @@ -0,0 +1,10 @@ +import * as parent from 'parent-package-json'; + +const hasParent = parent('/optional/path/', 1); + +if (hasParent !== false) { + const pathToParent: string = hasParent.path; + const contentOfParent: string = hasParent.read(); + const JSONOfParent = hasParent.parse(); + const versionOfParent = JSONOfParent.version; +} diff --git a/types/parent-package-json/tsconfig.json b/types/parent-package-json/tsconfig.json new file mode 100644 index 0000000000..33d474c851 --- /dev/null +++ b/types/parent-package-json/tsconfig.json @@ -0,0 +1,24 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es6", + "dom" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "strictFunctionTypes": true, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "parent-package-json-tests.ts" + ] +} diff --git a/types/parent-package-json/tslint.json b/types/parent-package-json/tslint.json new file mode 100644 index 0000000000..f93cf8562a --- /dev/null +++ b/types/parent-package-json/tslint.json @@ -0,0 +1,3 @@ +{ + "extends": "dtslint/dt.json" +} From 18ab71a912052b27d2ab2af235865f3cd6cd74ae Mon Sep 17 00:00:00 2001 From: Andy Date: Thu, 19 Oct 2017 13:23:16 -0700 Subject: [PATCH 185/506] Additions to ISSUE_TEMPLATE (#20735) --- .github/ISSUE_TEMPLATE.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/ISSUE_TEMPLATE.md b/.github/ISSUE_TEMPLATE.md index 4078b4808b..536e38c4e2 100644 --- a/.github/ISSUE_TEMPLATE.md +++ b/.github/ISSUE_TEMPLATE.md @@ -1,5 +1,9 @@ +If you know how to fix the issue, make a pull request instead. + - [ ] I tried using the `@types/xxxx` package and had problems. - [ ] I tried using the latest stable version of tsc. https://www.npmjs.com/package/typescript - [ ] I have a question that is inappropriate for [StackOverflow](https://stackoverflow.com/). (Please ask any appropriate questions there). - [ ] [Mention](https://github.com/blog/821-mention-somebody-they-re-notified) the authors (see `Definitions by:` in `index.d.ts`) so they can respond. - Authors: @.... + +If you do not mention the authors the issue will be ignored. From be60958bd85d1a2d63cfc3c403b06bad3635112b Mon Sep 17 00:00:00 2001 From: Andy Date: Thu, 19 Oct 2017 13:23:32 -0700 Subject: [PATCH 186/506] Mention strictFunctionTypes in PULL_REQUUEST_TEMPLATE (#20736) --- .github/PULL_REQUEST_TEMPLATE.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md index 979a8311e0..4217471f9d 100644 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -12,7 +12,7 @@ If adding a new definition: - [ ] The package does not provide its own types, and you can not add them. - [ ] If this is for an NPM package, match the name. If not, do not conflict with the name of an NPM package. - [ ] Create it with `dts-gen --dt`, not by basing it on an existing project. -- [ ] `tslint.json` should be present, and `tsconfig.json` should have `noImplicitAny`, `noImplicitThis`, and `strictNullChecks` set to `true`. +- [ ] `tslint.json` should be present, and `tsconfig.json` should have `noImplicitAny`, `noImplicitThis`, `strictNullChecks`, and `strictFunctionTypes` set to `true`. If changing an existing definition: - [ ] Provide a URL to documentation or source code which provides context for the suggested changes: <> From 8f53357a4cc054add2111f7c3a07a92541298b5c Mon Sep 17 00:00:00 2001 From: Andy Date: Thu, 19 Oct 2017 13:32:47 -0700 Subject: [PATCH 187/506] sequelize: Allow 'boolean' in WhereOptions (#20690) --- types/sequelize/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/sequelize/index.d.ts b/types/sequelize/index.d.ts index f1dc66fce5..f5b1befcc4 100644 --- a/types/sequelize/index.d.ts +++ b/types/sequelize/index.d.ts @@ -3108,7 +3108,7 @@ declare namespace sequelize { * typesafety, but there is no way to pass the tests if we just remove it. */ type WhereOptions = { - [P in keyof T]?: string | number | WhereLogic | WhereOptions | col | and | or | WhereGeometryOptions | Array | null; + [P in keyof T]?: string | number | boolean | WhereLogic | WhereOptions | col | and | or | WhereGeometryOptions | Array | null; }; /** From 149031f781bcd52fe8b13940d51bbe6feae289ca Mon Sep 17 00:00:00 2001 From: Andy Date: Thu, 19 Oct 2017 13:32:59 -0700 Subject: [PATCH 188/506] Update TypeScript versions of packages that depend on vue (#20733) --- types/vue-i18n/index.d.ts | 1 + types/vue-scrollto/index.d.ts | 1 + types/vue-scrollto/tsconfig.json | 1 + 3 files changed, 3 insertions(+) diff --git a/types/vue-i18n/index.d.ts b/types/vue-i18n/index.d.ts index 19225a83dd..030487a98b 100644 --- a/types/vue-i18n/index.d.ts +++ b/types/vue-i18n/index.d.ts @@ -2,6 +2,7 @@ // Project: https://github.com/kazupon/vue-i18n // Definitions by: Kombu // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.3 import Vue, { PluginFunction } from 'vue'; diff --git a/types/vue-scrollto/index.d.ts b/types/vue-scrollto/index.d.ts index e20879473f..5ca330d646 100644 --- a/types/vue-scrollto/index.d.ts +++ b/types/vue-scrollto/index.d.ts @@ -2,6 +2,7 @@ // Project: https://github.com/rigor789/vue-scrollto#readme // Definitions by: Kovács Vince // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.4 import { PluginFunction } from "vue"; diff --git a/types/vue-scrollto/tsconfig.json b/types/vue-scrollto/tsconfig.json index 6afe67dfcb..fd030de5e6 100644 --- a/types/vue-scrollto/tsconfig.json +++ b/types/vue-scrollto/tsconfig.json @@ -8,6 +8,7 @@ "noImplicitAny": true, "noImplicitThis": true, "strictNullChecks": true, + "strictFunctionTypes": true, "baseUrl": "../", "typeRoots": [ "../" From dd980c087a917ef4dc93cf4c3de6cab228fd8936 Mon Sep 17 00:00:00 2001 From: BehindTheMath Date: Thu, 19 Oct 2017 19:15:07 -0400 Subject: [PATCH 189/506] [github-username-regex] Add definitions (#20665) * [github-username-regex] Add definitions * [github-username-regex] Change to match CommonJS export format --- .../github-username-regex-tests.ts | 4 ++++ types/github-username-regex/index.d.ts | 7 ++++++ types/github-username-regex/tsconfig.json | 23 +++++++++++++++++++ types/github-username-regex/tslint.json | 1 + 4 files changed, 35 insertions(+) create mode 100644 types/github-username-regex/github-username-regex-tests.ts create mode 100644 types/github-username-regex/index.d.ts create mode 100644 types/github-username-regex/tsconfig.json create mode 100644 types/github-username-regex/tslint.json diff --git a/types/github-username-regex/github-username-regex-tests.ts b/types/github-username-regex/github-username-regex-tests.ts new file mode 100644 index 0000000000..d829752776 --- /dev/null +++ b/types/github-username-regex/github-username-regex-tests.ts @@ -0,0 +1,4 @@ +import githubUsernameRegex = require("github-username-regex"); + +const githubUsernameRegexString: string = githubUsernameRegex.source; +const valid: boolean = githubUsernameRegex.test("abc-123"); diff --git a/types/github-username-regex/index.d.ts b/types/github-username-regex/index.d.ts new file mode 100644 index 0000000000..59b3d703f7 --- /dev/null +++ b/types/github-username-regex/index.d.ts @@ -0,0 +1,7 @@ +// Type definitions for github-username-regex 1.0 +// Project: https://github.com/shinnn/github-username-regex +// Definitions by: BehindTheMath +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +declare const githubUsernameRegex: RegExp; +export = githubUsernameRegex; diff --git a/types/github-username-regex/tsconfig.json b/types/github-username-regex/tsconfig.json new file mode 100644 index 0000000000..4a30cf07ad --- /dev/null +++ b/types/github-username-regex/tsconfig.json @@ -0,0 +1,23 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es6" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "strictFunctionTypes": true, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "github-username-regex-tests.ts" + ] +} diff --git a/types/github-username-regex/tslint.json b/types/github-username-regex/tslint.json new file mode 100644 index 0000000000..3db14f85ea --- /dev/null +++ b/types/github-username-regex/tslint.json @@ -0,0 +1 @@ +{ "extends": "dtslint/dt.json" } From d2cfe0ba3e1ecd6592700b346f4dae4957173e8a Mon Sep 17 00:00:00 2001 From: voxmatt Date: Thu, 19 Oct 2017 16:43:17 -0700 Subject: [PATCH 190/506] fixes for compat mode types when you're straddling modern and classic environments --- types/react-relay/compat.d.ts | 42 +++++++++++++---- types/react-relay/test/react-relay-tests.tsx | 47 +++++++++++++++++++- 2 files changed, 79 insertions(+), 10 deletions(-) diff --git a/types/react-relay/compat.d.ts b/types/react-relay/compat.d.ts index d214e451ae..527ef6fa42 100644 --- a/types/react-relay/compat.d.ts +++ b/types/react-relay/compat.d.ts @@ -1,13 +1,13 @@ export { QueryRenderer, - commitMutation, - createFragmentContainer, - createPaginationContainer, - createRefetchContainer, fetchQuery, graphql, } from "./index"; - +import { + ConnectionConfig, + RelayPaginationProp as RelayModernPaginationProp, + RelayRefetchProp as RelayModernRefetchProp +} from "./index"; import * as RelayRuntimeTypes from "relay-runtime"; import { RelayEnvironmentInterface } from "./classic"; @@ -33,34 +33,58 @@ export type ReactFragmentComponent = ComponentWithFragment | StatelessWith export type ReactBaseComponent = React.ComponentClass | React.StatelessComponent; export type RelayClassicEnvironment = RelayEnvironmentInterface; + // ~~~~~~~~~~~~~~~~~~~~~ // RelayCompatTypes // ~~~~~~~~~~~~~~~~~~~~~ export type CompatEnvironment = RelayRuntimeTypes.Environment | RelayClassicEnvironment; +// ~~~~~~~~~~~~~~~~~~~~~ +// RelayProps +// ~~~~~~~~~~~~~~~~~~~~~ +export interface RelayProp { + environment: CompatEnvironment; +} + +export type RelayPaginationProp = RelayModernPaginationProp & RelayProp; +export type RelayRefetchProp = RelayModernRefetchProp & RelayProp; + // ~~~~~~~~~~~~~~~~~~~~~ // RelayCompatMutations // ~~~~~~~~~~~~~~~~~~~~~ -export function commitUpdate( +export function commitMutation( environment: CompatEnvironment, config: RelayRuntimeTypes.MutationConfig ): RelayRuntimeTypes.Disposable; -export function applyUpdate( +export function applyOptimisticMutation( environment: CompatEnvironment, config: RelayRuntimeTypes.OptimisticMutationConfig ): RelayRuntimeTypes.Disposable; // ~~~~~~~~~~~~~~~~~~~~~ -// RelayCompatContainer +// RelayCompatContainers // ~~~~~~~~~~~~~~~~~~~~~ export interface GeneratedNodeMap { [key: string]: RelayRuntimeTypes.GraphQLTaggedNode; } -export function createContainer( + +export function createFragmentContainer( Component: ReactBaseComponent, fragmentSpec: RelayRuntimeTypes.GraphQLTaggedNode | GeneratedNodeMap ): ReactFragmentComponent; +export function createRefetchContainer( + Component: ReactBaseComponent, + fragmentSpec: RelayRuntimeTypes.GraphQLTaggedNode | GeneratedNodeMap, + taggedNode: RelayRuntimeTypes.GraphQLTaggedNode +): ReactFragmentComponent; + +export function createPaginationContainer( + Component: ReactBaseComponent, + fragmentSpec: RelayRuntimeTypes.GraphQLTaggedNode | GeneratedNodeMap, + connectionConfig: ConnectionConfig +): ReactFragmentComponent; + // ~~~~~~~~~~~~~~~~~~~~~ // injectDefaultVariablesProvider // ~~~~~~~~~~~~~~~~~~~~~ diff --git a/types/react-relay/test/react-relay-tests.tsx b/types/react-relay/test/react-relay-tests.tsx index 6caf997dba..612df078a1 100644 --- a/types/react-relay/test/react-relay-tests.tsx +++ b/types/react-relay/test/react-relay-tests.tsx @@ -332,9 +332,53 @@ requestSubscription( import { QueryRenderer as CompatQueryRenderer, createFragmentContainer as createFragmentContainerCompat, + commitMutation as commitMutationCompat, + CompatEnvironment, + RelayPaginationProp as RelayPaginationPropCompat, } from "react-relay/compat"; -// TODO? This is all more or less identical to modern... +// testting compat mutation with classic environment +function markNotificationAsReadCompat(environment: CompatEnvironment, source: string, storyID: string) { + const variables = { + input: { + source, + storyID, + }, + }; + + commitMutationCompat(environment, { + configs, + mutation, + optimisticResponse, + variables, + onCompleted: (response, errors) => { + console.log("Response received from server."); + }, + onError: err => console.error(err), + updater: (store, data) => { + const field = store.get(storyID); + if (field) { + field.setValue(data.story, "story"); + } + } + }); +} + +interface CompatProps { + relay: RelayPaginationPropCompat; +} + +export class CompatComponent extends React.Component { + markNotificationAsRead(source: string, storyID: string) { + markNotificationAsReadCompat(this.props.relay.environment, source, storyID); + } + + render() { + return (
); + } +} + +const CompatContainer = createFragmentContainerCompat(CompatComponent, {}); //////////////////////////// // RELAY-CLASSIC TESTS @@ -398,6 +442,7 @@ const ArtworkContainer = Relay.createContainer(Artwork, { artwork: () => Relay.QL` fragment on Artwork { title + ${ CompatContainer.getFragment('whatever') } } `, }, From f697a7ca1db4ca1a2a26c7379b4d6231caf8a628 Mon Sep 17 00:00:00 2001 From: voxmatt Date: Thu, 19 Oct 2017 16:59:00 -0700 Subject: [PATCH 191/506] fixing linting errors surfaced by Travis --- types/react-relay/compat.d.ts | 1 - types/react-relay/test/react-relay-tests.tsx | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/types/react-relay/compat.d.ts b/types/react-relay/compat.d.ts index 527ef6fa42..22585d03d0 100644 --- a/types/react-relay/compat.d.ts +++ b/types/react-relay/compat.d.ts @@ -33,7 +33,6 @@ export type ReactFragmentComponent = ComponentWithFragment | StatelessWith export type ReactBaseComponent = React.ComponentClass | React.StatelessComponent; export type RelayClassicEnvironment = RelayEnvironmentInterface; - // ~~~~~~~~~~~~~~~~~~~~~ // RelayCompatTypes // ~~~~~~~~~~~~~~~~~~~~~ diff --git a/types/react-relay/test/react-relay-tests.tsx b/types/react-relay/test/react-relay-tests.tsx index 612df078a1..f73b7c00c7 100644 --- a/types/react-relay/test/react-relay-tests.tsx +++ b/types/react-relay/test/react-relay-tests.tsx @@ -368,7 +368,7 @@ interface CompatProps { relay: RelayPaginationPropCompat; } -export class CompatComponent extends React.Component { +export class CompatComponent extends React.Component { markNotificationAsRead(source: string, storyID: string) { markNotificationAsReadCompat(this.props.relay.environment, source, storyID); } From 6deecd5aaf40a74c1ba43911ee1ffab97e4fca17 Mon Sep 17 00:00:00 2001 From: Viktor Isaev Date: Fri, 20 Oct 2017 17:09:01 +0300 Subject: [PATCH 192/506] Fixed types in "restify-cookies". (#20752) * Added typings for "require-dir". * Fixed dtslint errors. * Fixed By field. * Added typings for "restify-cookies". * Added "cookies" field to Request interface. * Added typings for "heapdump". * Fixed types in "restify-cookies". * Added sameSite field to types in "restify-cookies". * Bumped version for "restify-cookies". * Fixed version for "restify-cookies". --- types/restify-cookies/index.d.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/types/restify-cookies/index.d.ts b/types/restify-cookies/index.d.ts index 7e794855cb..8f00f97538 100644 --- a/types/restify-cookies/index.d.ts +++ b/types/restify-cookies/index.d.ts @@ -11,9 +11,10 @@ declare module 'restify' { maxAge?: number; domain?: string; path?: string; - expires?: string; + expires?: Date; httpOnly?: boolean; secure?: boolean; + sameSite?: boolean|'lax'|'strict'; } interface Request { From 7239c6a38d1454aeb7ecffa297292de9a96da6c3 Mon Sep 17 00:00:00 2001 From: Bogdan Date: Fri, 20 Oct 2017 17:21:38 +0300 Subject: [PATCH 193/506] new definition for youtube-dl (#20428) * new definition for youtube-dl * Could not parse version 2.5 * fixes * fixes * fixes * fixes * fixes * fixes * Prefer /// * few fixes * fixes * assert info: youtubedl.Info * fixes --- types/youtube-dl/index.d.ts | 22 ++++++++++++++++++++++ types/youtube-dl/tsconfig.json | 21 +++++++++++++++++++++ types/youtube-dl/tslint.json | 1 + types/youtube-dl/youtube-dl-tests.ts | 18 ++++++++++++++++++ 4 files changed, 62 insertions(+) create mode 100644 types/youtube-dl/index.d.ts create mode 100644 types/youtube-dl/tsconfig.json create mode 100644 types/youtube-dl/tslint.json create mode 100644 types/youtube-dl/youtube-dl-tests.ts diff --git a/types/youtube-dl/index.d.ts b/types/youtube-dl/index.d.ts new file mode 100644 index 0000000000..4daf21884b --- /dev/null +++ b/types/youtube-dl/index.d.ts @@ -0,0 +1,22 @@ +// Type definitions for youtube-dl 1.12 +// Project: https://www.npmjs.com/package/youtube-dl +// Definitions by: Bogdan Surai +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.4 + +/// +import * as fs from "fs"; + +export = youtubedl; +declare function youtubedl(url: string, arg: string[], opt: {[key: string]: string}): youtubedl.Youtubedl; +declare namespace youtubedl { + interface Youtubedl { + on(event: string, func: (info: Info) => void): this; + pipe(stream: fs.WriteStream): this; + } + interface Info { + _filename: string; + filename: string; + size: number; + } +} diff --git a/types/youtube-dl/tsconfig.json b/types/youtube-dl/tsconfig.json new file mode 100644 index 0000000000..2634bd2234 --- /dev/null +++ b/types/youtube-dl/tsconfig.json @@ -0,0 +1,21 @@ +{ + "files": [ + "index.d.ts", + "youtube-dl-tests.ts" + ], + "compilerOptions": { + "module": "commonjs", + "lib": ["es6"], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "strictFunctionTypes": true, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + } +} \ No newline at end of file diff --git a/types/youtube-dl/tslint.json b/types/youtube-dl/tslint.json new file mode 100644 index 0000000000..2750cc0197 --- /dev/null +++ b/types/youtube-dl/tslint.json @@ -0,0 +1 @@ +{ "extends": "dtslint/dt.json" } \ No newline at end of file diff --git a/types/youtube-dl/youtube-dl-tests.ts b/types/youtube-dl/youtube-dl-tests.ts new file mode 100644 index 0000000000..c85b1ffc92 --- /dev/null +++ b/types/youtube-dl/youtube-dl-tests.ts @@ -0,0 +1,18 @@ +import * as fs from 'fs'; +import youtubedl = require('youtube-dl'); + +const video = youtubedl('http://www.youtube.com/watch?v=90AiXO1pAiA', + // Optional arguments passed to youtube-dl. + ['--format=18'], + // Additional options can be given for calling `child_process.execFile()`. + { cwd: __dirname }); + +// Will be called when the download starts. +video.on('info', (info: youtubedl.Info) => { + console.log('Download started'); + console.log('_filename: ' + info._filename); + console.log('filename: ' + info.filename); + console.log('size: ' + info.size); +}); + +video.pipe(fs.createWriteStream('myvideo.mp4')); From 490c4210d68c8bb0b271b39695eec76016cebbf4 Mon Sep 17 00:00:00 2001 From: Philipp Shestakov Date: Fri, 20 Oct 2017 17:25:57 +0300 Subject: [PATCH 194/506] Added definitions for clusterize.js (#20738) * Added definitions for clusterize.js * Fixed definitions author. * Review fixes. * Review fix. --- types/clusterize.js/clusterize.js-tests.ts | 20 +++++++++++ types/clusterize.js/index.d.ts | 41 ++++++++++++++++++++++ types/clusterize.js/tsconfig.json | 23 ++++++++++++ types/clusterize.js/tslint.json | 1 + 4 files changed, 85 insertions(+) create mode 100644 types/clusterize.js/clusterize.js-tests.ts create mode 100644 types/clusterize.js/index.d.ts create mode 100644 types/clusterize.js/tsconfig.json create mode 100644 types/clusterize.js/tslint.json diff --git a/types/clusterize.js/clusterize.js-tests.ts b/types/clusterize.js/clusterize.js-tests.ts new file mode 100644 index 0000000000..acbfbc36f8 --- /dev/null +++ b/types/clusterize.js/clusterize.js-tests.ts @@ -0,0 +1,20 @@ +import Clusterize = require('clusterize.js'); + +const options: Clusterize.Options = { contentId: '', scrollId: '' }; +const clusterize = new Clusterize(options); + +clusterize.append(['
  • ']); + +clusterize.prepend(['
  • ']); + +clusterize.getRowsAmount(); + +clusterize.update(['
  • ']); + +clusterize.getScrollProgress(); + +clusterize.refresh(); + +clusterize.clear(); + +clusterize.destroy(); diff --git a/types/clusterize.js/index.d.ts b/types/clusterize.js/index.d.ts new file mode 100644 index 0000000000..7c549761d6 --- /dev/null +++ b/types/clusterize.js/index.d.ts @@ -0,0 +1,41 @@ +// Type definitions for clusterize.js 0.17 +// Project: https://github.com/NeXTs/Clusterize.js +// Definitions by: Pr1st0n +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +declare class Clusterize { + constructor(options: Clusterize.Options); + + destroy(clean?: boolean): void; + refresh(force?: boolean): void; + clear(): void; + getRowsAmount(): number; + getScrollProgress(): number; + update(data?: string[]): void; + append(rows: string[]): void; + prepend(rows: string[]): void; +} + +declare namespace Clusterize { + interface Options { + scrollId: string; + contentId: string; + rows?: string[]; + tag?: string; + rows_in_block?: number; + blocks_in_cluster?: number; + show_no_data_row?: boolean; + no_data_text?: string; + no_data_class?: string; + keep_parity?: boolean; + callbacks?: Callbacks; + } + + interface Callbacks { + clusterWillChange?(cb: () => void): void; + clusterChanged?(cb: () => void): void; + scrollingProgress?(cb: (progress: number) => void): void; + } +} + +export = Clusterize; diff --git a/types/clusterize.js/tsconfig.json b/types/clusterize.js/tsconfig.json new file mode 100644 index 0000000000..10ca5c2a1a --- /dev/null +++ b/types/clusterize.js/tsconfig.json @@ -0,0 +1,23 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es6" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "strictFunctionTypes": true, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "clusterize.js-tests.ts" + ] +} diff --git a/types/clusterize.js/tslint.json b/types/clusterize.js/tslint.json new file mode 100644 index 0000000000..3db14f85ea --- /dev/null +++ b/types/clusterize.js/tslint.json @@ -0,0 +1 @@ +{ "extends": "dtslint/dt.json" } From ed5cfecfd7ae7ce0a4a2c6911ffa4f5c05fbef83 Mon Sep 17 00:00:00 2001 From: Jacek Dargiel Date: Fri, 20 Oct 2017 17:17:25 +0200 Subject: [PATCH 195/506] Add ChartLayoutOptions (#20758) --- types/chart.js/index.d.ts | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/types/chart.js/index.d.ts b/types/chart.js/index.d.ts index 78f1aa6142..7d416ff6c5 100644 --- a/types/chart.js/index.d.ts +++ b/types/chart.js/index.d.ts @@ -160,6 +160,7 @@ declare namespace Chart { hover?: ChartHoverOptions; animation?: ChartAnimationOptions; elements?: ChartElementsOptions; + layout?: ChartLayoutOptions; scales?: ChartScales; showLines?: boolean; spanGaps?: boolean; @@ -312,6 +313,18 @@ declare namespace Chart { borderColor?: ChartColor; borderSkipped?: string; } + + interface ChartLayoutOptions { + padding?: ChartLayoutPaddingObject | number; + } + + interface ChartLayoutPaddingObject { + top?: number; + right?: number; + bottom?: number; + left?: number; + } + interface GridLineOptions { display?: boolean; color?: ChartColor; From 2753c44ac158c13db00c111153195062ca23df36 Mon Sep 17 00:00:00 2001 From: Nikolay Solovyov Date: Fri, 20 Oct 2017 18:17:49 +0300 Subject: [PATCH 196/506] Update index.d.ts (#20756) `activeIndex` and `activeShape` is optional parameters. Also, `activeIndex` can contains numbers and array of numbers, not an array of any. --- types/recharts/index.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/types/recharts/index.d.ts b/types/recharts/index.d.ts index 95656a7247..404fe5c444 100644 --- a/types/recharts/index.d.ts +++ b/types/recharts/index.d.ts @@ -345,8 +345,8 @@ export interface PieProps extends Partial { label?: boolean | any | React.ReactElement | RechartsFunction; labelLine?: boolean | any | React.ReactElement | RechartsFunction; data: any[]; - activeIndex: any[]; - activeShape: any | React.ReactElement | RechartsFunction; + activeIndex?: number | number[]; + activeShape?: any | React.ReactElement | RechartsFunction; isAnimationActive?: boolean; animationBegin?: number; animationEasing?: AnimationEasingType | RechartsFunction; From a41f8d2ddd0d325a0da5fb0b996da6897f8f50ae Mon Sep 17 00:00:00 2001 From: Piotr Roszatycki Date: Fri, 20 Oct 2017 17:21:44 +0200 Subject: [PATCH 197/506] nodemailer: version 4.2 (#20754) --- types/nodemailer/index.d.ts | 2 +- types/nodemailer/lib/smtp-connection.d.ts | 6 ++++++ types/nodemailer/nodemailer-tests.ts | 1 - 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/types/nodemailer/index.d.ts b/types/nodemailer/index.d.ts index da0605ddcf..6a587bb720 100644 --- a/types/nodemailer/index.d.ts +++ b/types/nodemailer/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for Nodemailer 4.1 +// Type definitions for Nodemailer 4.2 // Project: https://github.com/nodemailer/nodemailer // Definitions by: Rogier Schouten // Piotr Roszatycki diff --git a/types/nodemailer/lib/smtp-connection.d.ts b/types/nodemailer/lib/smtp-connection.d.ts index a2cb095210..49b1adef8e 100644 --- a/types/nodemailer/lib/smtp-connection.d.ts +++ b/types/nodemailer/lib/smtp-connection.d.ts @@ -88,6 +88,12 @@ declare namespace SMTPConnection { rejectedErrors?: SMTPError[]; /** the last response received from the server */ response: string; + /** how long was envelope prepared */ + envelopeTime: number; + /** how long was send stream prepared */ + messageTime: number; + /** how many bytes were streamed */ + messageSize: number; } interface Options { diff --git a/types/nodemailer/nodemailer-tests.ts b/types/nodemailer/nodemailer-tests.ts index 8baff03674..cb2cd9641f 100644 --- a/types/nodemailer/nodemailer-tests.ts +++ b/types/nodemailer/nodemailer-tests.ts @@ -1036,7 +1036,6 @@ namespace smtp_connection_test { if (err) throw err; connection.send({ from: 'a@example.com', to: 'b@example.net' }, 'message', (err, info) => { if (err) throw err; - console.log(info); connection.reset(() => { if (err) throw err; connection.quit(); From 399af551e6963ceca3b7ad15b0cc14f3708d1d24 Mon Sep 17 00:00:00 2001 From: Diogo Franco Date: Sat, 21 Oct 2017 00:28:12 +0900 Subject: [PATCH 198/506] [react-router] Fix for --strictFunctionTypes (#20746) * [react-router] Fix for --strictFunctionTypes It seems it's not possible for a SFC to conform to React.ComponentType | {}> with both strictFunctionTypes and strictNullChecks (they have to either be `Partial>` or `{}`). The whole point of the `| {}` is to allow for components that have defaulted `Props` / don't use any `Props` anyway, so adding it as another listed type should work. * Fix dtslint errors --- types/react-router/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/react-router/index.d.ts b/types/react-router/index.d.ts index bfb5f16e7b..4e547c8341 100644 --- a/types/react-router/index.d.ts +++ b/types/react-router/index.d.ts @@ -65,7 +65,7 @@ export interface RouteComponentProps

    { export interface RouteProps { location?: H.Location; - component?: React.ComponentType | {}>; + component?: React.ComponentType> | React.ComponentType; render?: ((props: RouteComponentProps) => React.ReactNode); children?: ((props: RouteComponentProps) => React.ReactNode) | React.ReactNode; path?: string; From 25af4237d27e89e49166b007861a8e9ee5370329 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Tegelund?= Date: Sat, 21 Oct 2017 00:28:27 +0900 Subject: [PATCH 199/506] Add passHref to Link (#20745) --- types/next/link.d.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/types/next/link.d.ts b/types/next/link.d.ts index aca3190f7e..d931dd550d 100644 --- a/types/next/link.d.ts +++ b/types/next/link.d.ts @@ -10,6 +10,7 @@ export interface LinkState { onError?(error: any): void; href?: string | UrlLike; as?: string | UrlLike; + passHref?: boolean; children: React.ReactElement; } From 3bb8a665130be3304a81d52279d0b227f10ebd59 Mon Sep 17 00:00:00 2001 From: Cory Deppen Date: Fri, 20 Oct 2017 10:28:39 -0500 Subject: [PATCH 200/506] [redux-logger] Add optional logEntry param to LoggerPredicate (#20740) * Add optional logEntry param to LoggerPredicate * Enable linting Resolve errors and comply with DT formatting recommendations. --- types/redux-logger/index.d.ts | 64 ++++++---- types/redux-logger/package.json | 2 +- types/redux-logger/redux-logger-tests.ts | 152 ++++++++++++----------- types/redux-logger/tsconfig.json | 16 +-- types/redux-logger/tslint.json | 3 + 5 files changed, 125 insertions(+), 112 deletions(-) create mode 100644 types/redux-logger/tslint.json diff --git a/types/redux-logger/index.d.ts b/types/redux-logger/index.d.ts index d60d3ad218..c8ca66eda0 100644 --- a/types/redux-logger/index.d.ts +++ b/types/redux-logger/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for redux-logger v3.0.0 +// Type definitions for redux-logger 3.0 // Project: https://github.com/fcomb/redux-logger // Definitions by: Alexander Rusakov // Kevin Groat @@ -6,45 +6,59 @@ export as namespace ReduxLogger; -import * as Redux from "redux"; +import * as Redux from 'redux'; export const logger: Redux.Middleware; -export type LoggerPredicate = (getState: () => any, action: any) => boolean; +export type LoggerPredicate = ( + getState: () => any, + action: any, + logEntry?: LogEntryObject +) => boolean; export type StateToString = (state: any) => string; export type ActionToString = (action: any) => string; export type ErrorToString = (error: any, prevState: any) => string; export interface ColorsObject { - title?: boolean | ActionToString; - prevState?: boolean | StateToString; - action?: boolean | ActionToString; - nextState?: boolean | StateToString; - error?: boolean | ErrorToString; + title?: boolean | ActionToString; + prevState?: boolean | StateToString; + action?: boolean | ActionToString; + nextState?: boolean | StateToString; + error?: boolean | ErrorToString; } export interface LevelObject { - prevState?: string | boolean | StateToString; - action?: string | boolean | ActionToString; - nextState?: string | boolean | StateToString; - error?: string | boolean | ErrorToString; + prevState?: string | boolean | StateToString; + action?: string | boolean | ActionToString; + nextState?: string | boolean | StateToString; + error?: string | boolean | ErrorToString; +} + +export interface LogEntryObject { + action?: string | boolean | ActionToString; + started?: number; + startedTime?: Date; + took?: number; + error?(error: any): any; + nextState?(state: any): any; + prevState?(state: any): any; } export interface ReduxLoggerOptions { - level?: string | ActionToString | LevelObject; - duration?: boolean; - timestamp?: boolean; - colors?: ColorsObject | false; - logger?: any; - logErrors?: boolean; - collapsed?: boolean | LoggerPredicate; - predicate?: LoggerPredicate; - stateTransformer?: (state: any) => any; - actionTransformer?: (action: any) => any; - errorTransformer?: (error: any) => any; - diff?: boolean; - diffPredicate?: LoggerPredicate; + level?: string | ActionToString | LevelObject; + duration?: boolean; + timestamp?: boolean; + colors?: ColorsObject | false; + logger?: any; + logErrors?: boolean; + collapsed?: boolean | LoggerPredicate; + predicate?: LoggerPredicate; + diff?: boolean; + diffPredicate?: LoggerPredicate; + stateTransformer?(state: any): any; + actionTransformer?(action: any): any; + errorTransformer?(error: any): any; } export function createLogger(options?: ReduxLoggerOptions): Redux.Middleware; diff --git a/types/redux-logger/package.json b/types/redux-logger/package.json index 4bcc170ca3..6d68bf2f9b 100644 --- a/types/redux-logger/package.json +++ b/types/redux-logger/package.json @@ -3,4 +3,4 @@ "dependencies": { "redux": "^3.6.0" } -} \ No newline at end of file +} diff --git a/types/redux-logger/redux-logger-tests.ts b/types/redux-logger/redux-logger-tests.ts index 7349e556c4..a3b77debd8 100644 --- a/types/redux-logger/redux-logger-tests.ts +++ b/types/redux-logger/redux-logger-tests.ts @@ -1,100 +1,104 @@ - -import { createLogger } from 'redux-logger'; -import logger from 'redux-logger'; +import logger, { createLogger } from 'redux-logger'; import { applyMiddleware, createStore } from 'redux'; -let loggerSimple = createLogger(); +const loggerSimple = createLogger(); -let loggerSimpleOpts = createLogger({ - duration: true, - timestamp: true, - logger: console, - logErrors: true, - predicate: (getState, action) => true, - stateTransformer: (state) => state, - actionTransformer: (action) => action, - errorTransformer: (error) => error, - diff: true, - diffPredicate: (getState, action) => true, +const loggerSimpleOpts = createLogger({ + duration: true, + timestamp: true, + logger: console, + logErrors: true, + predicate: (getState, action) => true, + stateTransformer: state => state, + actionTransformer: action => action, + errorTransformer: error => error, + diff: true, + diffPredicate: (getState, action) => true }); -let loggerCollapsedBool = createLogger({ - collapsed: true +const loggerCollapsedBool = createLogger({ + collapsed: true }); -let loggerCollapsedPredicate = createLogger({ - collapsed: (getAction, action) => true +const loggerCollapsedPredicate = createLogger({ + collapsed: (getAction, action) => true }); -let loggerColorsOverallBoolean = createLogger({ - colors: false +const loggerCollapsedLogEntryPredicate = createLogger({ + collapsed: (getAction, action, logEntry) => + logEntry !== undefined && !logEntry.error }); -let loggerColorsBoolean = createLogger({ - colors: { - title: false, - prevState: false, - action: false, - nextState: false, - error: false - } +const loggerColorsOverallBoolean = createLogger({ + colors: false }); -let loggerColorsFunction = createLogger({ - colors: { - title: (action) => '#000', - prevState: (state) => '#000', - action: (action) => '#000', - nextState: (state) => '#000', - error: (error, prevState) => '#000' - } +const loggerColorsBoolean = createLogger({ + colors: { + title: false, + prevState: false, + action: false, + nextState: false, + error: false + } }); -let loggerLevelString = createLogger({ - level: 'log' +const loggerColorsFunction = createLogger({ + colors: { + title: action => '#000', + prevState: state => '#000', + action: action => '#000', + nextState: state => '#000', + error: (error, prevState) => '#000' + } }); -let loggerLevelFunction = createLogger({ - level: (action) => 'log' +const loggerLevelString = createLogger({ + level: 'log' }); -let loggerLevelObjectFunction = createLogger({ - level: { - prevState: (state) => 'log', - action: (action) => 'log', - nextState: (state) => 'log', - error: (error, prevState) => 'log' - } +const loggerLevelFunction = createLogger({ + level: action => 'log' }); -let loggerLevelObjectBoolean = createLogger({ - level: { - prevState: false, - action: false, - nextState: false, - error: false - } +const loggerLevelObjectFunction = createLogger({ + level: { + prevState: state => 'log', + action: action => 'log', + nextState: state => 'log', + error: (error, prevState) => 'log' + } }); -let loggerLevelObjectString = createLogger({ - level: { - prevState: 'log', - action: 'log', - nextState: 'log', - error: 'log' - } +const loggerLevelObjectBoolean = createLogger({ + level: { + prevState: false, + action: false, + nextState: false, + error: false + } }); -let createStoreWithMiddleware = applyMiddleware( - logger, - loggerSimpleOpts, - loggerCollapsedBool, - loggerCollapsedPredicate, - loggerColorsBoolean, - loggerColorsFunction, - loggerLevelString, - loggerLevelFunction, - loggerLevelObjectFunction, - loggerLevelObjectBoolean, - loggerLevelObjectString +const loggerLevelObjectString = createLogger({ + level: { + prevState: 'log', + action: 'log', + nextState: 'log', + error: 'log' + } +}); + +const createStoreWithMiddleware = applyMiddleware( + logger, + loggerSimpleOpts, + loggerCollapsedBool, + loggerCollapsedPredicate, + loggerCollapsedLogEntryPredicate, + loggerColorsBoolean, + loggerColorsFunction, + loggerLevelString, + loggerLevelFunction, + loggerLevelObjectFunction, + loggerLevelObjectBoolean, + loggerLevelObjectString )(createStore); diff --git a/types/redux-logger/tsconfig.json b/types/redux-logger/tsconfig.json index 7441f646d7..1789641398 100644 --- a/types/redux-logger/tsconfig.json +++ b/types/redux-logger/tsconfig.json @@ -1,24 +1,16 @@ { "compilerOptions": { "module": "commonjs", - "lib": [ - "es6", - "dom" - ], + "lib": ["es6", "dom"], "noImplicitAny": true, "noImplicitThis": false, "strictNullChecks": false, "strictFunctionTypes": true, "baseUrl": "../", - "typeRoots": [ - "../" - ], + "typeRoots": ["../"], "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true }, - "files": [ - "index.d.ts", - "redux-logger-tests.ts" - ] -} \ No newline at end of file + "files": ["index.d.ts", "redux-logger-tests.ts"] +} diff --git a/types/redux-logger/tslint.json b/types/redux-logger/tslint.json new file mode 100644 index 0000000000..f93cf8562a --- /dev/null +++ b/types/redux-logger/tslint.json @@ -0,0 +1,3 @@ +{ + "extends": "dtslint/dt.json" +} From fee527c10343127ea695ac1370e893d60d0558d6 Mon Sep 17 00:00:00 2001 From: UrielCh Date: Fri, 20 Oct 2017 18:28:54 +0300 Subject: [PATCH 201/506] update CasperJS 1.0.29 to 1.1.4 (#20739) * update CasperJS 1.0.29 to 1.1.4 remove most oh the any type Set Optional parameter As Optional. * tslint casperJS --- types/casperjs/index.d.ts | 173 +++++++++++++++++++++++-------------- types/casperjs/tslint.json | 12 +++ 2 files changed, 119 insertions(+), 66 deletions(-) create mode 100644 types/casperjs/tslint.json diff --git a/types/casperjs/index.d.ts b/types/casperjs/index.d.ts index e8388d17c7..f2378f1f97 100644 --- a/types/casperjs/index.d.ts +++ b/types/casperjs/index.d.ts @@ -1,17 +1,17 @@ -// Type definitions for CasperJS v1.0.29 +// Type definitions for CasperJS 1.1 // Project: http://casperjs.org/ // Definitions by: Jed Mao +// Uriel Chemouni // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.2 /// - export function create(options?: CasperOptions): Casper; -export function selectXPath(expression: string): Object; +export function selectXPath(expression: string): object; export class Casper { - constructor(options: CasperOptions); test: Tester; @@ -23,23 +23,23 @@ export class Casper { // Methods back(): Casper; base64encode(url: string, method?: string, data?: any): string; - bypass(nb: number): any; - click(selector: string): boolean; + bypass(nb: number): Casper; + click(selector: string, X?: number | string, Y?: number | string): boolean; clickLabel(label: string, tag?: string): boolean; - capture(targetFilePath: string, clipRect: ClipRect): Casper; - captureBase64(format: string): string; - captureBase64(format: string, area: string): string; - captureBase64(format: string, area: ClipRect): string; - captureBase64(format: string, area: any): string; - captureSelector(targetFile: string, selector: string): Casper; + capture(targetFilePath: string, clipRect?: ClipRect, imgOptions?: ImgOptions): Casper; + captureBase64(format: string, area?: string | ClipRect | CasperSelector): string; + captureSelector(targetFile: string, selector: string, imgOptions?: ImgOptions): Casper; clear(): Casper; + clearCache(): Casper; + clearMemoryCache(): Casper; debugHTML(selector?: string, outer?: boolean): Casper; debugPage(): Casper; die(message: string, status?: number): Casper; - download(url: string, target?: string, method?: string, data?: any): Casper; + download(url: string, target: string, method?: string, data?: any): Casper; each(array: T[], fn: (this: Casper, item: T, index: number) => void): Casper; + eachThen(array: any[], then?: FunctionThen): Casper; echo(message: string, style?: string): Casper; - evaluate(fn: (...args: any[]) => T, ...args: any[]): T + evaluate(fn: (...args: any[]) => T, ...args: any[]): T; evaluateOrDie(fn: () => any, message?: string, status?: number): Casper; exit(status?: number): Casper; exists(selector: string): boolean; @@ -52,7 +52,7 @@ export class Casper { getCurrentUrl(): string; getElementAttribute(selector: string, attribute: string): string; getElementsAttribute(selector: string, attribute: string): string; - getElementBounds(selector: string): ElementBounds; + getElementBounds(selector: string, page?: boolean): ElementBounds | null; getElementsBounds(selector: string): ElementBounds[]; getElementInfo(selector: string): ElementInfo; getElementsInfo(selector: string): ElementInfo; @@ -61,83 +61,125 @@ export class Casper { getHTML(selector?: string, outer?: boolean): string; getPageContent(): string; getTitle(): string; - mouseEvent(type: string, selector: string): boolean; + mouseEvent(type: string, selector: string, X?: number|string, Y?: number|string): boolean; + newPage(): any; open(location: string, settings: OpenSettings): Casper; - reload(then?: (response: HttpResponse) => void): Casper; - repeat(times: number, then: Function): Casper; - resourceExists(test: Function): boolean; - resourceExists(test: string): boolean; - run(onComplete: Function, time?: number): Casper; + reload(then?: FunctionThen): Casper; + repeat(times: number, then: FunctionThen): Casper; + resourceExists(test: string | Function | RegExp): boolean; + run(onComplete?: Function, time?: number): Casper; scrollTo(x: number, y: number): Casper; scrollToBottom(): Casper; - sendKeys(selector: string, keys: string, options?: any): Casper; + sendKeys(selector: string, keys: string, options?: KeyOptions): Casper; setHttpAuth(username: string, password: string): Casper; - start(url?: string, then?: (response: HttpResponse) => void): Casper; - status(asString: boolean): any; + setMaxListeners(maxListeners: number): Casper; + start(url?: string, then?: FunctionThen): Casper; + status(asString?: false): number; + status(asString: true): string; + switchToFrame(frameInfo: string | number): Casper; + switchToMainFrame(): Casper; + switchToParentFrame(): Casper; then(fn: (this: Casper) => void): Casper; thenBypass(nb: number): Casper; thenBypassIf(condition: any, nb: number): Casper; thenBypassUnless(condition: any, nb: number): Casper; - thenClick(selector: string): Casper; + thenClick(selector: string, then?: FunctionThen): Casper; thenEvaluate(fn: () => any, ...args: any[]): Casper; thenOpen(location: string, then?: (response: HttpResponse) => void): Casper; thenOpen(location: string, options?: OpenSettings, then?: (response: HttpResponse) => void): Casper; - thenOpenAndEvaluate(location: string, then?: Function, ...args: any[]): Casper; + thenOpenAndEvaluate(location: string, then?: FunctionThen, ...args: any[]): Casper; toString(): string; unwait(): Casper; - userAgent(agent: string): string; - viewport(width: number, height: number): Casper; + // 2017-10-19 Doc said returning String but code return Casper object. + userAgent(agent: string): Casper; + viewport(width: number, height: number, then?: FunctionThen): Casper; visible(selector: string): boolean; - wait(timeout: number, then?: Function): Casper; - waitFor(testFx: Function, then?: Function, onTimeout?: Function, timeout?: number): Casper; - waitForAlert(then: Function, onTimeout?: Function, timeout?: number): Casper; - waitForPopup(urlPattern: string, then?: Function, onTimeout?: Function, timeout?: number): Casper; - waitForPopup(urlPattern: RegExp, then?: Function, onTimeout?: Function, timeout?: number): Casper; - waitForUrl(url: string, then?: Function, onTimeout?: Function, timeout?: number): Casper; - waitForUrl(url: RegExp, then?: Function, onTimeout?: Function, timeout?: number): Casper; - waitForSelector(selector: string, then?: Function, onTimeout?: Function, timeout?: number): Casper; - waitWhileSelector(selector: string, then?: Function, onTimeout?: Function, timeout?: number): Casper; - waitForResource(testFx: Function, then?: Function, onTimeout?: Function, timeout?: number): Casper; - waitForText(pattern: string, then?: Function, onTimeout?: Function, timeout?: number): Casper; - waitForText(pattern: RegExp, then?: Function, onTimeout?: Function, timeout?: number): Casper; - waitUntilVisible(selector: string, then?: Function, onTimeout?: Function, timeout?: number): Casper; - waitWhileVisible(selector: string, then?: Function, onTimeout?: Function, timeout?: number): Casper; + wait(timeout: number, then?: FunctionThen): Casper; + waitFor(testFx: Function, then?: FunctionThen, onTimeout?: FunctionOnTimeout, timeout?: number, details?: any): Casper; + waitForAlert(then: FunctionThen, onTimeout?: FunctionOnTimeout, timeout?: number): Casper; + waitForExec(command: string | null, parameter: string[], then?: FunctionThen, onTimeout?: FunctionOnTimeout, timeout?: number): Casper; + waitForPopup(urlPattern: RegExp | string | number | FindByUrlNameTitle, then?: FunctionThen, onTimeout?: Function, timeout?: number): Casper; + waitForResource(testFx: RegExp | string | ((resource: {url: string}) => boolean), then?: FunctionThen, onTimeout?: Function, timeout?: number): Casper; + waitForUrl(url: RegExp | string, then?: FunctionThen, onTimeout?: FunctionOnTimeout, timeout?: number): Casper; + waitForSelector(selector: string, then?: FunctionThen, onTimeout?: FunctionOnTimeout, timeout?: number): Casper; + waitWhileSelector(selector: string, then?: FunctionThen, onTimeout?: FunctionOnTimeout, timeout?: number): Casper; + waitForSelectorTextChange(selectors: string, then?: FunctionThen, onTimeout?: FunctionOnTimeout, timeout?: number): Casper; + waitForText(pattern: RegExp | string, then?: FunctionThen, onTimeout?: FunctionOnTimeout, timeout?: number): Casper; + waitUntilVisible(selector: string, then?: FunctionThen, onTimeout?: FunctionOnTimeout, timeout?: number): Casper; + waitWhileVisible(selector: string, then?: FunctionThen, onTimeout?: FunctionOnTimeout, timeout?: number): Casper; warn(message: string): Casper; - withFrame(frameInfo: string, then: Function): Casper; - withFrame(frameInfo: number, then: Function): Casper; - withPopup(popupInfo: string, step: Function): Casper; - withPopup(popupInfo: RegExp, step: Function): Casper; + withFrame(frameInfo: string | number, then: FunctionThen): Casper; + withPopup(popupInfo: RegExp | string | number | FindByUrlNameTitle, step: FunctionThen): Casper; + withSelectorScope(selector: string, then: FunctionThen): Casper; zoom(factor: number): Casper; - removeAllFilters(filter: string): Casper; - setFilter(filter: string, cb: Function): boolean; + // do not exists anymore + // removeAllFilters(filter: string): Casper; + // do not exists anymore + // setFilter(filter: string, cb: Function): boolean; } -interface HttpResponse { +export type FunctionThen = (this: Casper, response: HttpResponse) => void; +export type FunctionOnTimeout = (this: Casper, timeout: number, details: any) => void; +// not visible in doc +// interface QtRuntimeObject {id?: any; url?: string;} +// see modules/pagestack.js in casperjs + +export interface ImgOptions { + // format to set the image format manually, avoiding relying on the filename + format?: string; + // quality to set the image quality, from 1 to 100 + quality?: number; +} + +export interface FindByUrlNameTitle { + url?: string; + title?: string; + windowName?: string; +} + +export interface Header { + name: string; + value: string; +} + +export interface CasperSelector { + type?: 'xpath' | 'css'; + path: string; +} + +export interface KeyOptions { + reset?: boolean; + keepFocus?: boolean; + modifiers?: string; // combinaison of 'ctrl+alt+shift+meta+keypad' +} + +export interface HttpResponse { contentType: string; - headers: any[]; + headers: Header[]; id: number; - redirectURL: string; + redirectURL: string | null; stage: string; status: number; statusText: string; time: string; url: string; + data: any; } -interface OpenSettings { +export interface OpenSettings { method: string; data: any; headers: any; } -interface ElementBounds { +export interface ElementBounds { top: number; left: number; width: number; height: number; } -interface ElementInfo { +export interface ElementInfo { nodeName: string; attributes: any; tag: string; @@ -150,7 +192,7 @@ interface ElementInfo { visible: boolean; } -interface CasperOptions { +export interface CasperOptions { clientScripts?: any[]; exitOnError?: boolean; httpStatusHandlers?: any; @@ -179,7 +221,7 @@ interface CasperOptions { waitTimeout?: number; } -interface ClientUtils { +export interface ClientUtils { echo(message: string): void; encode(contents: string): void; exists(selector: string): void; @@ -200,12 +242,12 @@ interface ClientUtils { visible(selector: string): void; } -interface Colorizer { +export interface Colorizer { colorize(text: string, styleName: string): void; format(text: string, style: any): void; } -interface Tester { +export interface Tester { assert(condition: boolean, message?: string): any; assertDoesntExist(selector: string, message?: string): any; assertElementCount(selctor: string, expected: number, message?: string): any; @@ -235,15 +277,14 @@ interface Tester { assertTruthy(subject: any, message?: string): any; assertType(input: any, type: string, message?: string): any; assertInstanceOf(input: any, ctor: Function, message?: string): any; - assertUrlMatch(pattern: string, message?: string): any; - assertUrlMatch(pattern: RegExp, message?: string): any; + assertUrlMatch(pattern: RegExp | string, message?: string): any; assertVisible(selector: string, message?: string): any; /* since 1.1 */ begin(description: string, planned: number, suite: Function): any; begin(description: string, suite: Function): any; - begin(description: string, planned: number, config: Object): any; - begin(description: string, config: Object): any; + begin(description: string, planned: number, config: object): any; + begin(description: string, config: object): any; colorize(message: string, style: string): any; comment(message: string): any; @@ -262,12 +303,12 @@ interface Tester { tearDown(fn: Function): any; } -interface Cases { +export interface Cases { length: number; cases: Case[]; } -interface Case { +export interface Case { success: boolean; type: string; standard: string; @@ -275,12 +316,12 @@ interface Case { values: CaseValues; } -interface CaseValues { +export interface CaseValues { subject: boolean; expected: boolean; } -interface Utils { +export interface Utils { betterTypeOf(input: any): any; dump(value: any): any; fileExt(file: string): any; diff --git a/types/casperjs/tslint.json b/types/casperjs/tslint.json new file mode 100644 index 0000000000..c2a140228c --- /dev/null +++ b/types/casperjs/tslint.json @@ -0,0 +1,12 @@ +{ + "extends": "dtslint/dt.json", + "rules": { + // need to fix some Function type + "ban-types": false, + // can not merge + // begin(description: string, planned: number, suite: Function): any; + // and + // begin(description: string, planned: number, config: object): any; + "unified-signatures": false + } +} From e670e0731cad74822fb9f7329f2f4dead346e7c5 Mon Sep 17 00:00:00 2001 From: rlindgren Date: Fri, 20 Oct 2017 12:01:00 -0400 Subject: [PATCH 202/506] Fix doWhilst, doUntil definitions and tests --- types/async/index.d.ts | 4 ++-- types/async/test/index.ts | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/types/async/index.d.ts b/types/async/index.d.ts index 80f2888a8b..7c32079086 100644 --- a/types/async/index.d.ts +++ b/types/async/index.d.ts @@ -174,9 +174,9 @@ export function parallel(tasks: Dictionary>, callback? export function parallelLimit(tasks: Array>, limit: number, callback?: AsyncResultArrayCallback): void; export function parallelLimit(tasks: Dictionary>, limit: number, callback?: AsyncResultObjectCallback): void; export function whilst(test: () => boolean, fn: AsyncVoidFunction, callback: ErrorCallback): void; -export function doWhilst(fn: AsyncVoidFunction, test: () => boolean, callback: ErrorCallback): void; +export function doWhilst(fn: AsyncVoidFunction, test: (result?: any) => boolean, callback: ErrorCallback): void; export function until(test: () => boolean, fn: AsyncVoidFunction, callback: ErrorCallback): void; -export function doUntil(fn: AsyncVoidFunction, test: () => boolean, callback: ErrorCallback): void; +export function doUntil(fn: AsyncVoidFunction, test: (result?: any) => boolean, callback: ErrorCallback): void; export function during(test: (testCallback : AsyncBooleanResultCallback) => void, fn: AsyncVoidFunction, callback: ErrorCallback): void; export function doDuring(fn: AsyncVoidFunction, test: (testCallback: AsyncBooleanResultCallback) => void, callback: ErrorCallback): void; export function forever(next: (next : ErrorCallback) => void, errBack: ErrorCallback) : void; diff --git a/types/async/test/index.ts b/types/async/test/index.ts index 821ccd0650..3c6c2f5dfe 100644 --- a/types/async/test/index.ts +++ b/types/async/test/index.ts @@ -239,16 +239,16 @@ async.parallelLimit({ function whileFn(callback: any) { - count++; - setTimeout(callback, 1000); + setTimeout(() => callback(null, ++count), 1000); } function whileTest() { return count < 5; } +function doWhileTest(count: number) { return count < 5; } var count = 0; async.whilst(whileTest, whileFn, function (err) { }); async.until(whileTest, whileFn, function (err) { }); -async.doWhilst(whileFn, whileTest, function (err) { }); -async.doUntil(whileFn, whileTest, function (err) { }); +async.doWhilst(whileFn, doWhileTest, function (err) { }); +async.doUntil(whileFn, doWhileTest, function (err) { }); async.during(function (testCallback) { testCallback(new Error(), false); }, function (callback) { callback() }, function (error) { console.log(error) }); async.doDuring(function (callback) { callback() }, function (testCallback) { testCallback(new Error(), false); }, function (error) { console.log(error) }); From 09b08e4b7d90608d4849bfd7aecc937860314ea9 Mon Sep 17 00:00:00 2001 From: Alessandro Vergani Date: Fri, 20 Oct 2017 18:10:45 +0200 Subject: [PATCH 203/506] Fix circular-json declarations to match JSON object (#20755) * Fix circular-json declarations * Simplify definitions of circular-json --- types/circular-json/circular-json-tests.ts | 10 +++------- types/circular-json/index.d.ts | 13 +++---------- types/circular-json/tslint.json | 3 +++ 3 files changed, 9 insertions(+), 17 deletions(-) create mode 100644 types/circular-json/tslint.json diff --git a/types/circular-json/circular-json-tests.ts b/types/circular-json/circular-json-tests.ts index 41ec8f0a36..786ec5cec6 100644 --- a/types/circular-json/circular-json-tests.ts +++ b/types/circular-json/circular-json-tests.ts @@ -1,14 +1,10 @@ - import CircularJSON = require('circular-json'); -var replacer = (key: any, val: any) => { +const replacer = (key: any, val: any) => { return val; -} +}; -var replacerArray = ['a', 'x']; - -// implements JSON interface -var json_obj: JSON = CircularJSON; +const replacerArray = ['a', 'x']; CircularJSON.parse('{"a":"b"}'); diff --git a/types/circular-json/index.d.ts b/types/circular-json/index.d.ts index 1b4e5c1d2b..ce94972de4 100644 --- a/types/circular-json/index.d.ts +++ b/types/circular-json/index.d.ts @@ -1,14 +1,7 @@ -// Type definitions for circular-json v0.1.6 +// Type definitions for circular-json 0.4 // Project: https://github.com/WebReflection/circular-json // Definitions by: Jonathan Pevarnek // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -interface ICircularJSON extends JSON { - parse(text: string, reviver?: (key: any, value: any) => any): any; - stringify(value: any, replacer?: ((key: string, value: any) => any) | any[], space?: any, placeholder?: boolean): string; -} - -declare var CircularJSON: ICircularJSON; - -export = CircularJSON; +export function parse(text: string, reviver?: (key: any, value: any) => any): any; +export function stringify(value: any, replacer?: ((key: string, value: any) => any) | Array | null, space?: any, placeholder?: boolean): string; diff --git a/types/circular-json/tslint.json b/types/circular-json/tslint.json new file mode 100644 index 0000000000..b4b47a0378 --- /dev/null +++ b/types/circular-json/tslint.json @@ -0,0 +1,3 @@ +{ + "extends": "dtslint/dt.json" +} From bba52abf8e508948643f09549b9b9fde025a4f33 Mon Sep 17 00:00:00 2001 From: Andy Date: Fri, 20 Oct 2017 10:00:14 -0700 Subject: [PATCH 204/506] js-data-angular and js-data-http: Add dependency on the old @types/js-data (#20689) --- types/js-data-angular/package.json | 6 ++++++ types/js-data-http/package.json | 6 ++++++ 2 files changed, 12 insertions(+) create mode 100644 types/js-data-angular/package.json create mode 100644 types/js-data-http/package.json diff --git a/types/js-data-angular/package.json b/types/js-data-angular/package.json new file mode 100644 index 0000000000..f932c0aa52 --- /dev/null +++ b/types/js-data-angular/package.json @@ -0,0 +1,6 @@ +{ + "private": true, + "dependencies": { + "@types/js-data": "^2.8.31" + } +} diff --git a/types/js-data-http/package.json b/types/js-data-http/package.json new file mode 100644 index 0000000000..f932c0aa52 --- /dev/null +++ b/types/js-data-http/package.json @@ -0,0 +1,6 @@ +{ + "private": true, + "dependencies": { + "@types/js-data": "^2.8.31" + } +} From ab68c62063e2289fcf636ab9d2f3aa4f7b3ddc9a Mon Sep 17 00:00:00 2001 From: Andy Date: Fri, 20 Oct 2017 10:00:53 -0700 Subject: [PATCH 205/506] signals: Lint (#20648) --- types/signals/index.d.ts | 24 ++-- types/signals/signals-tests.ts | 206 ++++++++++++++++----------------- types/signals/tslint.json | 8 ++ 3 files changed, 125 insertions(+), 113 deletions(-) create mode 100644 types/signals/tslint.json diff --git a/types/signals/index.d.ts b/types/signals/index.d.ts index 3f0ed1fa84..50982ec988 100644 --- a/types/signals/index.d.ts +++ b/types/signals/index.d.ts @@ -1,7 +1,8 @@ -// Type definitions for JS-Signals +// Type definitions for JS-Signals 1.0 // Project: http://millermedeiros.github.io/js-signals/ // Definitions by: Diullei Gomes // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.3 declare var signals: signals.SignalWrapper; @@ -9,9 +10,8 @@ export = signals; export as namespace signals; declare namespace signals { - interface SignalWrapper { - Signal: Signal + Signal: Signal; } interface SignalBinding { @@ -57,17 +57,21 @@ declare namespace signals { * * @param listener Signal handler function. * @param listenercontext Context on which listener will be executed (object that should represent the `this` variable inside listener function). - * @param priority The priority level of the event listener. Listeners with higher priority will be executed before listeners with lower priority. Listeners with same priority level will be executed at the same order as they were added. (default = 0) + * @param priority The priority level of the event listener. + * Listeners with higher priority will be executed before listeners with lower priority. + * Listeners with same priority level will be executed at the same order as they were added. (default = 0) */ add(listener: (...params: T[]) => void, listenerContext?: any, priority?: Number): SignalBinding; /** - * Add listener to the signal that should be removed after first execution (will be executed only once). - * - * @param listener Signal handler function. - * @param listenercontext Context on which listener will be executed (object that should represent the `this` variable inside listener function). - * @param priority The priority level of the event listener. Listeners with higher priority will be executed before listeners with lower priority. Listeners with same priority level will be executed at the same order as they were added. (default = 0) - */ + * Add listener to the signal that should be removed after first execution (will be executed only once). + * + * @param listener Signal handler function. + * @param listenercontext Context on which listener will be executed (object that should represent the `this` variable inside listener function). + * @param priority The priority level of the event listener. + * Listeners with higher priority will be executed before listeners with lower priority. + * Listeners with same priority level will be executed at the same order as they were added. (default = 0) + */ addOnce(listener: (...params: T[]) => void, listenerContext?: any, priority?: Number): SignalBinding; /** diff --git a/types/signals/signals-tests.ts b/types/signals/signals-tests.ts index 414b91edd7..b3d16d9d39 100644 --- a/types/signals/signals-tests.ts +++ b/types/signals/signals-tests.ts @@ -1,207 +1,207 @@ import signals = require("signals"); // lifted from https://github.com/millermedeiros/js-signals/wiki/Examples interface TestObject { - started: signals.Signal; - stopped: signals.Signal; + started: signals.Signal; + stopped: signals.Signal; } -namespace Signals.Tests { - //store local reference for brevity - var Signal = signals.Signal; +function tests() { + // store local reference for brevity + const Signal = signals.Signal; - //custom object that dispatch signals - var myObject: TestObject = { - started : new Signal(), //past tense is the recommended signal naming convention + // custom object that dispatch signals + const myObject: TestObject = { + started : new Signal(), // past tense is the recommended signal naming convention stopped : new Signal() }; - //single listener - function onStarted(param1:string, param2:string){ + // single listener + function onStarted(param1: string, param2: string) { alert(param1 + param2); } - myObject.started.add(onStarted); //add listener - myObject.started.dispatch('foo', 'bar'); //dispatch signal passing custom parameters - myObject.started.remove(onStarted); //remove a single listener + myObject.started.add(onStarted); // add listener + myObject.started.dispatch('foo', 'bar'); // dispatch signal passing custom parameters + myObject.started.remove(onStarted); // remove a single listener - //multiple listeners - function onStopped(){ + // multiple listeners + function onStopped() { alert('stopped'); } - function onStopped2(){ + function onStopped2() { alert('stopped listener 2'); } myObject.stopped.add(onStopped); myObject.stopped.add(onStopped2); myObject.stopped.dispatch(); - myObject.stopped.removeAll(); //remove all listeners of the `stopped` signal + myObject.stopped.removeAll(); // remove all listeners of the `stopped` signal - //multiple dispatches - var i = 0; - myObject.started.add(function(){ + // multiple dispatches + let i = 0; + myObject.started.add(() => { i += 1; alert(i); }); - myObject.started.dispatch(); //will alert 1 - myObject.started.dispatch(); //will alert 2 + myObject.started.dispatch(); // will alert 1 + myObject.started.dispatch(); // will alert 2 - //multiple dispatches + addOnce() - var i = 0; - myObject.started.addOnce(function(){ + // multiple dispatches + addOnce() + i = 0; + myObject.started.addOnce(() => { i += 1; alert(i); }); - myObject.started.dispatch(); //will alert 1 - myObject.started.dispatch(); //nothing happens + myObject.started.dispatch(); // will alert 1 + myObject.started.dispatch(); // nothing happens - //enable/disable signal - var i = 0; - myObject.started.add(function(){ + // enable/disable signal + i = 0; + myObject.started.add(() => { i += 1; alert(i); }); - myObject.started.dispatch(); //will alert 1 + myObject.started.dispatch(); // will alert 1 myObject.started.active = false; - myObject.started.dispatch(); //nothing happens + myObject.started.dispatch(); // nothing happens myObject.started.active = true; - myObject.started.dispatch(); //will alert 2 + myObject.started.dispatch(); // will alert 2 - //Stop/Halt Propagation (method 1) - myObject.started.add(function(){ - myObject.started.halt(); //prevent next listeners on the queue from being executed + // Stop/Halt Propagation (method 1) + myObject.started.add(() => { + myObject.started.halt(); // prevent next listeners on the queue from being executed }); - myObject.started.add(function(){ - alert('second listener'); //won't be called since first listener stops propagation + myObject.started.add(() => { + alert('second listener'); // won't be called since first listener stops propagation }); myObject.started.dispatch(); - //Stop/Halt Propagation (method 2) - myObject.started.add(function(){ - return false; //if handler returns `false` will also stop propagation + // Stop/Halt Propagation (method 2) + myObject.started.add(() => { + return false; // if handler returns `false` will also stop propagation }); - myObject.started.add(function(){ - alert('second listener'); //won't be called since first listener stops propagation + myObject.started.add(() => { + alert('second listener'); // won't be called since first listener stops propagation }); myObject.started.dispatch(); - //Set execution context of the listener handler - var foo = 'bar'; - var obj = { + // Set execution context of the listener handler + const foo = 'bar'; + const obj = { foo : 10 }; - function handler1(){ + function handler1() { alert(this.foo); } - function handler2(){ + function handler2() { alert(this.foo); } - //note that you cannot add the same handler twice to the same signal without removing it first - myObject.started.add(handler1); //default execution context - myObject.started.add(handler2, obj); //set a different execution context - myObject.started.dispatch(); //first handler will alert "bar", second will alert "10". + // note that you cannot add the same handler twice to the same signal without removing it first + myObject.started.add(handler1); // default execution context + myObject.started.add(handler2, obj); // set a different execution context + myObject.started.dispatch(); // first handler will alert "bar", second will alert "10". } -namespace Signals.AdvancedTests { - //store local reference for brevity - var Signal = signals.Signal; +function advancedTests() { + // store local reference for brevity + const Signal = signals.Signal; - //custom object that dispatch signals - var myObject: TestObject = { - started : new Signal(), //past tense is the recommended signal naming convention + // custom object that dispatch signals + const myObject: TestObject = { + started : new Signal(), // past tense is the recommended signal naming convention stopped : new Signal() }; - //Set listener priority/order (v0.5.3+) - var handler1 = function(){ + // Set listener priority/order (v0.5.3+) + let handler1 = () => { alert('foo'); }; - var handler2 = function(){ + let handler2 = () => { alert('bar'); }; - myObject.started.add(handler1); //default priority is 0 - myObject.started.add(handler2, null, 2); //setting priority to 2 will make `handler2` execute before `handler1` - myObject.started.dispatch(); //will alert "bar" than "foo" + myObject.started.add(handler1); // default priority is 0 + myObject.started.add(handler2, null, 2); // setting priority to 2 will make `handler2` execute before `handler1` + myObject.started.dispatch(); // will alert "bar" than "foo" - //Enable/Disable a single SignalBinding - var handler1 = function(){ + // Enable/Disable a single SignalBinding + handler1 = () => { alert('foo bar'); }; - var handler2 = function(){ + handler2 = () => { alert('lorem ipsum'); }; - var binding1 = myObject.started.add(handler1); //methods `add()` and `addOnce()` returns a SignalBinding object + let binding1 = myObject.started.add(handler1); // methods `add()` and `addOnce()` returns a SignalBinding object myObject.started.add(handler2); - myObject.started.dispatch(); //will alert "foo bar" than "lorem ipsum" - binding1.active = false; //disable a single binding - myObject.started.dispatch(); //will alert "lorem ipsum" + myObject.started.dispatch(); // will alert "foo bar" than "lorem ipsum" + binding1.active = false; // disable a single binding + myObject.started.dispatch(); // will alert "lorem ipsum" binding1.active = true; - myObject.started.dispatch(); //will alert "foo bar" than "lorem ipsum" + myObject.started.dispatch(); // will alert "foo bar" than "lorem ipsum" - //Manually execute a signal handler - var handler = function(){ + // Manually execute a signal handler + const handler = () => { alert('foo bar'); }; - var binding: signals.SignalBinding<() => void> = myObject.started.add(handler); //methods `add()` and `addOnce()` returns a SignalBinding object - binding.execute(); //will alert "foo bar" + let binding: signals.SignalBinding<() => void> = myObject.started.add(handler); // methods `add()` and `addOnce()` returns a SignalBinding object + binding.execute(); // will alert "foo bar" - //Retrieve anonymous listener - var binding:signals.SignalBinding<() => void> = myObject.started.add(function(){ + // Retrieve anonymous listener + binding = myObject.started.add(() => { alert('foo bar'); }); // note: in the original docs, this is handler, but that collides with handler above because these are in one giant scope // perhaps these are best split into functions for readability - var anonymousHandler = binding.getListener(); //reference to the anonymous function + const anonymousHandler = binding.getListener(); // reference to the anonymous function - //Remove / Detach anonymous listener - var binding:signals.SignalBinding<() => void> = myObject.started.add(function(){ + // Remove / Detach anonymous listener + binding = myObject.started.add(() => { alert('foo bar'); }); - myObject.started.dispatch(); //will alert "foo bar" + myObject.started.dispatch(); // will alert "foo bar" binding.detach(); - alert(binding.isBound()); //will alert `false` - myObject.started.dispatch(); //nothing happens + alert(binding.isBound()); // will alert `false` + myObject.started.dispatch(); // nothing happens - //Check if binding will execute only once - var binding1:signals.SignalBinding = myObject.started.add(function(){ + // Check if binding will execute only once + binding1 = myObject.started.add(() => { alert('foo bar'); }); - var binding2:signals.SignalBinding<() => void> = myObject.started.addOnce(function(){ + const binding2: signals.SignalBinding<() => void> = myObject.started.addOnce(() => { alert('foo bar'); }); - alert(binding1.isOnce()); //alert "false" - alert(binding2.isOnce()); //alert "true" + alert(binding1.isOnce()); // alert "false" + alert(binding2.isOnce()); // alert "true" - //Change listener execution context on-the-fly - var foo = 'bar'; - var obj = { + // Change listener execution context on-the-fly + const foo = 'bar'; + const obj = { foo : "it's over 9000!" }; - var binding:signals.SignalBinding<() => void> = myObject.started.add(function(){ + binding = myObject.started.add(function() { alert(this.foo); }); - myObject.started.dispatch(); //will alert "bar" + myObject.started.dispatch(); // will alert "bar" binding.context = obj; - myObject.started.dispatch(); //will alert "it's over 9000!" + myObject.started.dispatch(); // will alert "it's over 9000!" - //Add default parameters to Signal dispatch (v0.6.3+) - var binding:signals.SignalBinding<() => void> = myObject.started.add(function(a:string, b:string, c:string){ - alert(a +' '+ b +' '+ c); + // Add default parameters to Signal dispatch (v0.6.3+) + binding = myObject.started.add((a: string, b: string, c: string) => { + alert(`${a} ${b} ${c}`); }); - binding.params = ['lorem', 'ipsum']; //set default parameters of the binding - myObject.started.dispatch('dolor'); //will alert "lorem ipsum dolor" + binding.params = ['lorem', 'ipsum']; // set default parameters of the binding + myObject.started.dispatch('dolor'); // will alert "lorem ipsum dolor" - //Check if Signal has specific listener (v0.7.0+) - function onStart(a:string){ + // Check if Signal has specific listener (v0.7.0+) + function onStart(a: string) { console.log(a); } myObject.started.add(onStart); myObject.started.has(onStart); // true - //Memorize previously dispatched values / forget values (v0.7.0+) + // Memorize previously dispatched values / forget values (v0.7.0+) myObject.started.memorize = true; // default is false myObject.started.dispatch('foo'); diff --git a/types/signals/tslint.json b/types/signals/tslint.json new file mode 100644 index 0000000000..09c89d645d --- /dev/null +++ b/types/signals/tslint.json @@ -0,0 +1,8 @@ +{ + "extends": "dtslint/dt.json", + "rules": { + // TODOs + "ban-types": false, + "no-misused-new": false + } +} From e51980df25f26e7aa53816a4d6b5cf991a715454 Mon Sep 17 00:00:00 2001 From: Andy Date: Fri, 20 Oct 2017 10:02:01 -0700 Subject: [PATCH 206/506] openpgp: Convert to external module (#20622) --- types/openpgp/index.d.ts | 407 ++++++++++++++++----------------- types/openpgp/openpgp-tests.ts | 4 +- types/openpgp/tslint.json | 20 ++ 3 files changed, 221 insertions(+), 210 deletions(-) create mode 100644 types/openpgp/tslint.json diff --git a/types/openpgp/index.d.ts b/types/openpgp/index.d.ts index 91b8dc2ca6..79e92daa7f 100644 --- a/types/openpgp/index.d.ts +++ b/types/openpgp/index.d.ts @@ -3,120 +3,119 @@ // Definitions by: Guillaume Lacasa // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -declare namespace openpgp { +export as namespace openpgp; - interface KeyPair { - key: key.Key, - privateKeyArmored: string, - publicKeyArmored: string - } - - interface KeyOptions { - keyType?: enums.publicKey, - numBits: number, - userId: string, - passphrase: string, - unlocked?: boolean - } - - interface Keyid { - bytes: string, - } - - interface Signature { - keyid: Keyid, - valid: boolean - } - - interface VerifiedMessage { - text: string, - signatures: Array - } - - /** Decrypts message and verifies signatures - - @param privateKey private key with decrypted secret key data - @param publicKeys array of keys to verify signatures - @param msg the message object with signed and encrypted data - */ - function decryptAndVerifyMessage(privateKey: key.Key, publicKeys: Array, msg: string): Promise; - /** Decrypts message and verifies signatures - - @param privateKey private key with decrypted secret key data - @param publicKey single key to verify signatures - @param msg the message object with signed and encrypted data - */ - function decryptAndVerifyMessage(privateKey: key.Key, publicKey: key.Key, msg: string): Promise; - - /** Decrypts message - - @param privateKey private key with decrypted secret key data - @param msg the message object with the encrypted data - */ - function decryptMessage(privateKey: key.Key, msg: message.Message): Promise; - - /** Encrypts message text with keys - @param keys array of keys used to encrypt the message - @param text message as native JavaScript string - @returns encrypted ASCII armored message - */ - function encryptMessage(keys: Array, message: string): Promise; - /** Encrypts message text with keys - - @param single key used to encrypt the message - @param text message as native JavaScript string - */ - function encryptMessage(key: key.Key, message: string): Promise; - - /** Generates a new OpenPGP key pair. Currently only supports RSA keys. Primary and subkey will be of same type. - @param options - */ - function generateKeyPair(options: KeyOptions): Promise; - - /** Signs message text and encrypts it - - @param publicKeys array of keys used to encrypt the message - @param privateKey private key with decrypted secret key data for signing - @param text private key with decrypted secret key data for signing - */ - function signAndEncryptMessage(publicKeys: Array, privateKey: key.Key, text: string): Promise; - /** Signs message text and encrypts it - - @param publicKeys single key used to encrypt the message - @param privateKey private key with decrypted secret key data for signing - @param text private key with decrypted secret key data for signing - */ - function signAndEncryptMessage(publicKey: key.Key, privateKey: key.Key, text: string): Promise; - - /** Signs a cleartext message - - @param privateKeys array of keys with decrypted secret key data to sign cleartext - @param text cleartext - */ - function signClearMessage(privateKeys: Array, text: string): Promise; - /** Signs a cleartext message - - @param privateKeys single key with decrypted secret key data to sign cleartext - @param text cleartext - */ - function signClearMessage(privateKey: key.Key, text: string): Promise; - - /** Verifies signatures of cleartext signed message - - @param publicKeys array of keys to verify signatures - @param msg cleartext message object with signatures - */ - function verifyClearSignedMessage(publicKeys: Array, msg: cleartext.CleartextMessage): Promise; - /** Verifies signatures of cleartext signed message - - @param publicKeys single key to verify signatures - @param msg cleartext message object with signatures - */ - function verifyClearSignedMessage(publicKey: key.Key, msg: cleartext.CleartextMessage): Promise; +export interface KeyPair { + key: key.Key, + privateKeyArmored: string, + publicKeyArmored: string } -declare namespace openpgp.armor { +export interface KeyOptions { + keyType?: enums.publicKey, + numBits: number, + userId: string, + passphrase: string, + unlocked?: boolean +} +export interface Keyid { + bytes: string, +} + +export interface Signature { + keyid: Keyid, + valid: boolean +} + +export interface VerifiedMessage { + text: string, + signatures: Array +} + +/** Decrypts message and verifies signatures + + @param privateKey private key with decrypted secret key data + @param publicKeys array of keys to verify signatures + @param msg the message object with signed and encrypted data + */ +export function decryptAndVerifyMessage(privateKey: key.Key, publicKeys: Array, msg: string): Promise; +/** Decrypts message and verifies signatures + + @param privateKey private key with decrypted secret key data + @param publicKey single key to verify signatures + @param msg the message object with signed and encrypted data + */ +export function decryptAndVerifyMessage(privateKey: key.Key, publicKey: key.Key, msg: string): Promise; + +/** Decrypts message + + @param privateKey private key with decrypted secret key data + @param msg the message object with the encrypted data + */ +export function decryptMessage(privateKey: key.Key, msg: message.Message): Promise; + +/** Encrypts message text with keys + @param keys array of keys used to encrypt the message + @param text message as native JavaScript string + @returns encrypted ASCII armored message + */ +export function encryptMessage(keys: Array, message: string): Promise; +/** Encrypts message text with keys + + @param single key used to encrypt the message + @param text message as native JavaScript string + */ +export function encryptMessage(key: key.Key, message: string): Promise; + +/** Generates a new OpenPGP key pair. Currently only supports RSA keys. Primary and subkey will be of same type. + @param options + */ +export function generateKeyPair(options: KeyOptions): Promise; + +/** Signs message text and encrypts it + + @param publicKeys array of keys used to encrypt the message + @param privateKey private key with decrypted secret key data for signing + @param text private key with decrypted secret key data for signing + */ +export function signAndEncryptMessage(publicKeys: Array, privateKey: key.Key, text: string): Promise; +/** Signs message text and encrypts it + + @param publicKeys single key used to encrypt the message + @param privateKey private key with decrypted secret key data for signing + @param text private key with decrypted secret key data for signing + */ +export function signAndEncryptMessage(publicKey: key.Key, privateKey: key.Key, text: string): Promise; + +/** Signs a cleartext message + + @param privateKeys array of keys with decrypted secret key data to sign cleartext + @param text cleartext + */ +export function signClearMessage(privateKeys: Array, text: string): Promise; +/** Signs a cleartext message + + @param privateKeys single key with decrypted secret key data to sign cleartext + @param text cleartext + */ +export function signClearMessage(privateKey: key.Key, text: string): Promise; + +/** Verifies signatures of cleartext signed message + + @param publicKeys array of keys to verify signatures + @param msg cleartext message object with signatures + */ +export function verifyClearSignedMessage(publicKeys: Array, msg: cleartext.CleartextMessage): Promise; +/** Verifies signatures of cleartext signed message + + @param publicKeys single key to verify signatures + @param msg cleartext message object with signatures + */ +export function verifyClearSignedMessage(publicKey: key.Key, msg: cleartext.CleartextMessage): Promise; + + +export namespace armor { /** Armor an OpenPGP binary packet block @param messagetype type of the message @@ -133,8 +132,7 @@ declare namespace openpgp.armor { function dearmor(text: string): Object; } -declare namespace openpgp.cleartext { - +export namespace cleartext { /** Class that represents an OpenPGP cleartext signed message. */ interface CleartextMessage { @@ -164,7 +162,7 @@ declare namespace openpgp.cleartext { function readArmored(armoredText: string): CleartextMessage; } -declare namespace openpgp.config { +export namespace config { var prefer_hash_algorithm: enums.hash; var encryption_cipher: enums.symmetric; var compression: enums.compression; @@ -175,7 +173,7 @@ declare namespace openpgp.config { var debug: boolean; } -declare namespace openpgp.crypto { +export namespace crypto { interface Mpi { data: number, read(input: string): number, @@ -211,92 +209,92 @@ declare namespace openpgp.crypto { @param data Data to be encrypted as MPI */ function publicKeyEncrypt(algo: enums.publicKey, publicMPIs: Array, data: Mpi): Array; + + + namespace cfb { + /** This function decrypts a given plaintext using the specified blockcipher to decrypt a message + @param cipherfn the algorithm cipher class to decrypt data in one block_size encryption + @param key binary string representation of key to be used to decrypt the ciphertext. This will be passed to the cipherfn + @param ciphertext to be decrypted provided as a string + @param resync a boolean value specifying if a resync of the IV should be used or not. The encrypteddatapacket uses the "old" style with a resync. Decryption within an encryptedintegrityprotecteddata packet is not resyncing the IV. + */ + function decrypt(cipherfn: string, key: string, ciphertext: string, resync: boolean): string; + + /** This function encrypts a given with the specified prefixrandom using the specified blockcipher to encrypt a message + @param prefixrandom random bytes of block_size length provided as a string to be used in prefixing the data + @param cipherfn the algorithm cipher class to encrypt data in one block_size encryption + @param plaintext data to be encrypted provided as a string + @param key binary string representation of key to be used to encrypt the plaintext. This will be passed to the cipherfn + @param resync a boolean value specifying if a resync of the IV should be used or not. The encrypteddatapacket uses the "old" style with a resync. Encryption within an encryptedintegrityprotecteddata packet is not resyncing the IV. + */ + function encrypt(prefixrandom: string, cipherfn: string, plaintext: string, key: string, resync: boolean): string; + + /** Decrypts the prefixed data for the Modification Detection Code (MDC) computation + @param cipherfn cipherfn.encrypt Cipher function to use + @param key binary string representation of key to be used to check the mdc This will be passed to the cipherfn + @param ciphertext The encrypted data + */ + function mdc(cipherfn: Object, key: string, ciphertext: string): string; + } + + namespace hash { + /** Create a hash on the specified data using the specified algorithm + @param algo Hash algorithm type + @param data Data to be hashed + */ + function digest(algo: enums.hash, data: string): string; + + /** Returns the hash size in bytes of the specified hash algorithm type + @param algo Hash algorithm type + */ + function getHashByteLength(algo: enums.hash): number; + } + + namespace random { + /** Create a secure random big integer of bits length + @param bits Bit length of the MPI to create + */ + function getRandomBigInteger(bits: number): number; + + /** Retrieve secure random byte string of the specified length + @param length Length in bytes to generate + */ + function getRandomBytes(length: number): string; + + /** Helper routine which calls platform specific crypto random generator + @param buf + */ + function getRandomValues(buf: Uint8Array): void; + + /** Return a secure random number in the specified range + @param from Min of the random number + @param to Max of the random number (max 32bit) + */ + function getSecureRandom(from: number, to: number): number; + } + + namespace signature { + /** Create a signature on data using the specified algorithm + @param hash_algo hash Algorithm to use + @param algo Asymmetric cipher algorithm to use + @param publicMPIs Public key multiprecision integers of the private key + @param secretMPIs Private key multiprecision integers which is used to sign the data + @param data Data to be signed + */ + function sign(hash_algo: enums.hash, algo: enums.publicKey, publicMPIs: Array, secretMPIs: Array, data: string): Mpi; + + /** + @param algo public Key algorithm + @param hash_algo Hash algorithm + @param msg_MPIs Signature multiprecision integers + @param publickey_MPIs Public key multiprecision integers + @param data Data on where the signature was computed on + */ + function verify(algo: enums.publicKey, hash_algo: enums.hash, msg_MPIs: Array, publickey_MPIs: Array, data: string): boolean; + } } -declare namespace openpgp.crypto.cfb { - /** This function decrypts a given plaintext using the specified blockcipher to decrypt a message - @param cipherfn the algorithm cipher class to decrypt data in one block_size encryption - @param key binary string representation of key to be used to decrypt the ciphertext. This will be passed to the cipherfn - @param ciphertext to be decrypted provided as a string - @param resync a boolean value specifying if a resync of the IV should be used or not. The encrypteddatapacket uses the "old" style with a resync. Decryption within an encryptedintegrityprotecteddata packet is not resyncing the IV. - */ - function decrypt(cipherfn: string, key: string, ciphertext: string, resync: boolean): string; - - /** This function encrypts a given with the specified prefixrandom using the specified blockcipher to encrypt a message - @param prefixrandom random bytes of block_size length provided as a string to be used in prefixing the data - @param cipherfn the algorithm cipher class to encrypt data in one block_size encryption - @param plaintext data to be encrypted provided as a string - @param key binary string representation of key to be used to encrypt the plaintext. This will be passed to the cipherfn - @param resync a boolean value specifying if a resync of the IV should be used or not. The encrypteddatapacket uses the "old" style with a resync. Encryption within an encryptedintegrityprotecteddata packet is not resyncing the IV. - */ - function encrypt(prefixrandom: string, cipherfn: string, plaintext: string, key: string, resync: boolean): string; - - /** Decrypts the prefixed data for the Modification Detection Code (MDC) computation - @param cipherfn cipherfn.encrypt Cipher function to use - @param key binary string representation of key to be used to check the mdc This will be passed to the cipherfn - @param ciphertext The encrypted data - */ - function mdc(cipherfn: Object, key: string, ciphertext: string): string; -} - -declare namespace openpgp.crypto.hash { - /** Create a hash on the specified data using the specified algorithm - @param algo Hash algorithm type - @param data Data to be hashed - */ - function digest(algo: enums.hash, data: string): string; - - /** Returns the hash size in bytes of the specified hash algorithm type - @param algo Hash algorithm type - */ - function getHashByteLength(algo: enums.hash): number; -} - -declare namespace openpgp.crypto.random { - /** Create a secure random big integer of bits length - @param bits Bit length of the MPI to create - */ - function getRandomBigInteger(bits: number): number; - - /** Retrieve secure random byte string of the specified length - @param length Length in bytes to generate - */ - function getRandomBytes(length: number): string; - - /** Helper routine which calls platform specific crypto random generator - @param buf - */ - function getRandomValues(buf: Uint8Array): void; - - /** Return a secure random number in the specified range - @param from Min of the random number - @param to Max of the random number (max 32bit) - */ - function getSecureRandom(from: number, to: number): number; -} - -declare namespace openpgp.crypto.signature { - /** Create a signature on data using the specified algorithm - @param hash_algo hash Algorithm to use - @param algo Asymmetric cipher algorithm to use - @param publicMPIs Public key multiprecision integers of the private key - @param secretMPIs Private key multiprecision integers which is used to sign the data - @param data Data to be signed - */ - function sign(hash_algo: enums.hash, algo: enums.publicKey, publicMPIs: Array, secretMPIs: Array, data: string): Mpi; - - /** - @param algo public Key algorithm - @param hash_algo Hash algorithm - @param msg_MPIs Signature multiprecision integers - @param publickey_MPIs Public key multiprecision integers - @param data Data on where the signature was computed on - */ - function verify(algo: enums.publicKey, hash_algo: enums.hash, msg_MPIs: Array, publickey_MPIs: Array, data: string): boolean; -} - -declare namespace openpgp.enums { - +export namespace enums { enum armor { multipart_section, multipart_last, @@ -372,8 +370,7 @@ declare namespace openpgp.enums { } } -declare namespace openpgp.key { - +export namespace key { interface KeyResult { keys: Array, err: Array @@ -408,10 +405,9 @@ declare namespace openpgp.key { @param armoredText text to be parsed */ function readArmored(armoredText: string): KeyResult; - } -declare namespace openpgp.message { +export namespace message { /** Class that represents an OpenPGP message. Can be an encrypted message, signed message, compressed message or literal message */ interface Message { @@ -477,8 +473,7 @@ declare namespace openpgp.message { function readArmored(armoredText: string): Message; } -declare namespace openpgp.packet { - +export namespace packet { interface PublicKey { algorithm: enums.publicKey; created: Date; @@ -509,7 +504,7 @@ declare namespace openpgp.packet { function newPacketFromTag(tag: string): Object; } -declare namespace openpgp.util { +export namespace util { /** Convert an array of integers(0.255) to a string @param bin An array of (binary) integers to convert */ @@ -583,6 +578,4 @@ declare namespace openpgp.util { @param bin An array of (binary) integers to convert */ function Uint8Array2str(bin: Uint8Array): string; - - } diff --git a/types/openpgp/openpgp-tests.ts b/types/openpgp/openpgp-tests.ts index a4a4200c56..fbe8a2e691 100644 --- a/types/openpgp/openpgp-tests.ts +++ b/types/openpgp/openpgp-tests.ts @@ -1,5 +1,3 @@ - - // Open PGP Sample codes var options: openpgp.KeyOptions = { @@ -125,4 +123,4 @@ openpgp.util.print_debug_hexstr_dump(""); openpgp.util.shiftRight("", 1); openpgp.util.str2bin(""); openpgp.util.str2Uint8Array(""); -openpgp.util.Uint8Array2str(openpgp.util.str2Uint8Array("")); \ No newline at end of file +openpgp.util.Uint8Array2str(openpgp.util.str2Uint8Array("")); diff --git a/types/openpgp/tslint.json b/types/openpgp/tslint.json new file mode 100644 index 0000000000..c28368c002 --- /dev/null +++ b/types/openpgp/tslint.json @@ -0,0 +1,20 @@ +{ + "extends": "dtslint/dt.json", + "rules": { + // TODOs + "array-type": false, + "ban-types": false, + "dt-header": false, + "jsdoc-format": false, + "max-line-length": false, + "no-consecutive-blank-lines": false, + "no-var-keyword": false, + "only-arrow-functions": false, + "prefer-const": false, + "semicolon": false, + "space-before-function-paren": false, + "typedef-whitespace": false, + "unified-signatures": false, + "whitespace": false + } +} \ No newline at end of file From 38e3db12b83247ccb7ad61503edd726cf2bfb080 Mon Sep 17 00:00:00 2001 From: Artem Malko Date: Sat, 21 Oct 2017 01:36:49 +0700 Subject: [PATCH 207/506] react Add 'as' attribute for link element (#20769) --- types/react/index.d.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/types/react/index.d.ts b/types/react/index.d.ts index 93cb62fbfa..f79caad296 100644 --- a/types/react/index.d.ts +++ b/types/react/index.d.ts @@ -2493,6 +2493,7 @@ declare namespace React { allowFullScreen?: boolean; allowTransparency?: boolean; alt?: string; + as?: string; async?: boolean; autoComplete?: string; autoFocus?: boolean; @@ -2602,6 +2603,7 @@ declare namespace React { rel?: string; target?: string; type?: string; + as?: string; } // tslint:disable-next-line:no-empty-interface @@ -2787,6 +2789,7 @@ declare namespace React { rel?: string; sizes?: string; type?: string; + as?: string; } interface MapHTMLAttributes extends HTMLAttributes { From da6e5dabc87b1590c9f4e90ec71a4871de164663 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Kr=C3=B3l?= Date: Fri, 20 Oct 2017 22:19:43 +0200 Subject: [PATCH 208/506] Add react-dnd-touch-backend types (#20770) * Add react-dnd-touch-backend types * CS fixes * Add dom lib --- types/react-dnd-touch-backend/index.d.ts | 12 ++++++++++ .../react-dnd-touch-backend-tests.ts | 7 ++++++ types/react-dnd-touch-backend/tsconfig.json | 24 +++++++++++++++++++ types/react-dnd-touch-backend/tslint.json | 1 + 4 files changed, 44 insertions(+) create mode 100644 types/react-dnd-touch-backend/index.d.ts create mode 100644 types/react-dnd-touch-backend/react-dnd-touch-backend-tests.ts create mode 100644 types/react-dnd-touch-backend/tsconfig.json create mode 100644 types/react-dnd-touch-backend/tslint.json diff --git a/types/react-dnd-touch-backend/index.d.ts b/types/react-dnd-touch-backend/index.d.ts new file mode 100644 index 0000000000..91ea6ce999 --- /dev/null +++ b/types/react-dnd-touch-backend/index.d.ts @@ -0,0 +1,12 @@ +// Type definitions for react-dnd-touch-backend 0.3 +// Project: https://github.com/yahoo/react-dnd-touch-backend#readme +// Definitions by: Daniel Król +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +import * as ReactDnd from "react-dnd"; + +export default function createTouchBackend(options: TouchBackendOptions): ReactDnd.Backend; + +export interface TouchBackendOptions { + enableMouseEvents?: boolean; +} diff --git a/types/react-dnd-touch-backend/react-dnd-touch-backend-tests.ts b/types/react-dnd-touch-backend/react-dnd-touch-backend-tests.ts new file mode 100644 index 0000000000..07994e71be --- /dev/null +++ b/types/react-dnd-touch-backend/react-dnd-touch-backend-tests.ts @@ -0,0 +1,7 @@ +import * as ReactDnd from "react-dnd"; +import TouchBackend from "react-dnd-touch-backend"; + +const component = () => null; + +const dndComponent = ReactDnd.DragDropContext(TouchBackend)(component); +const dndComponentMouseEvents = ReactDnd.DragDropContext(TouchBackend({enableMouseEvents: true}))(component); diff --git a/types/react-dnd-touch-backend/tsconfig.json b/types/react-dnd-touch-backend/tsconfig.json new file mode 100644 index 0000000000..926592e1c3 --- /dev/null +++ b/types/react-dnd-touch-backend/tsconfig.json @@ -0,0 +1,24 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es6", + "dom" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "strictFunctionTypes": true, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "react-dnd-touch-backend-tests.ts" + ] +} diff --git a/types/react-dnd-touch-backend/tslint.json b/types/react-dnd-touch-backend/tslint.json new file mode 100644 index 0000000000..3db14f85ea --- /dev/null +++ b/types/react-dnd-touch-backend/tslint.json @@ -0,0 +1 @@ +{ "extends": "dtslint/dt.json" } From 3f9b03e6730806b4f7a4abf357a22dbb88acba17 Mon Sep 17 00:00:00 2001 From: Jake Ginnivan Date: Sun, 22 Oct 2017 00:35:16 +0800 Subject: [PATCH 209/506] Added type definitions for pino-multi-stream (#20757) --- types/pino-multi-stream/index.d.ts | 27 +++++++++++++++++++ .../pino-multi-stream-tests.ts | 19 +++++++++++++ types/pino-multi-stream/tsconfig.json | 23 ++++++++++++++++ types/pino-multi-stream/tslint.json | 1 + 4 files changed, 70 insertions(+) create mode 100644 types/pino-multi-stream/index.d.ts create mode 100644 types/pino-multi-stream/pino-multi-stream-tests.ts create mode 100644 types/pino-multi-stream/tsconfig.json create mode 100644 types/pino-multi-stream/tslint.json diff --git a/types/pino-multi-stream/index.d.ts b/types/pino-multi-stream/index.d.ts new file mode 100644 index 0000000000..4aa8dcfb7d --- /dev/null +++ b/types/pino-multi-stream/index.d.ts @@ -0,0 +1,27 @@ +// Type definitions for pino-multi-stream 3.1 +// Project: https://github.com/pinojs/pino-multi-stream#readme +// Definitions by: Jake Ginnivan +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.2 +import { + LoggerOptions as PinoLoggerOptions, + Logger as PinoLogger, + Level as PinoLevel, + stdSerializers as pinoStdSerializers +} from 'pino'; +import stream = require('stream'); + +declare namespace pinoms { + type Streams = Array<{ stream: NodeJS.WritableStream; level?: Level }>; + interface LoggerOptions extends PinoLoggerOptions { + streams?: Streams; + } + const stdSerializers: typeof pinoStdSerializers; + + function multistream(streams: Streams): stream.Writable; + type Level = PinoLevel; + type Logger = PinoLogger; +} + +declare function pinoms(options: pinoms.LoggerOptions): pinoms.Logger; +export = pinoms; diff --git a/types/pino-multi-stream/pino-multi-stream-tests.ts b/types/pino-multi-stream/pino-multi-stream-tests.ts new file mode 100644 index 0000000000..d9d0899256 --- /dev/null +++ b/types/pino-multi-stream/pino-multi-stream-tests.ts @@ -0,0 +1,19 @@ +import * as fs from 'fs'; +import * as pino from 'pino'; +import * as pinoms from 'pino-multi-stream'; + +const streams: pinoms.Streams = [ + { stream: process.stdout }, // an "info" level destination stream + { level: 'error', stream: process.stderr }, // an "error" level destination stream + { stream: fs.createWriteStream('/tmp/info.stream.out') }, + { level: 'fatal', stream: fs.createWriteStream('/tmp/fatal.stream.out') } +]; +const logger = pinoms({ + level: 'warn', + streams +}); + +const log = pino({ + level: 'debug' // this MUST be set at the lowest level of the + // destinations +}, pinoms.multistream(streams)); diff --git a/types/pino-multi-stream/tsconfig.json b/types/pino-multi-stream/tsconfig.json new file mode 100644 index 0000000000..7a060abb2e --- /dev/null +++ b/types/pino-multi-stream/tsconfig.json @@ -0,0 +1,23 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es6" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "strictFunctionTypes": true, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "pino-multi-stream-tests.ts" + ] +} diff --git a/types/pino-multi-stream/tslint.json b/types/pino-multi-stream/tslint.json new file mode 100644 index 0000000000..3db14f85ea --- /dev/null +++ b/types/pino-multi-stream/tslint.json @@ -0,0 +1 @@ +{ "extends": "dtslint/dt.json" } From 902a364510937e4dd505468be96908b1119fcad5 Mon Sep 17 00:00:00 2001 From: Alan Agius Date: Sat, 21 Oct 2017 19:47:48 +0200 Subject: [PATCH 210/506] feat(cpx): add typings for `cpx` (#20786) * feat(cpx): add typings for `cpx` * cpx: add `strictFunctionTypes` * cpx: fix build --- types/cpx/cpx-tests.ts | 21 ++++++++++++++++++++ types/cpx/index.d.ts | 44 +++++++++++++++++++++++++++++++++++++++++ types/cpx/tsconfig.json | 23 +++++++++++++++++++++ types/cpx/tslint.json | 1 + 4 files changed, 89 insertions(+) create mode 100644 types/cpx/cpx-tests.ts create mode 100644 types/cpx/index.d.ts create mode 100644 types/cpx/tsconfig.json create mode 100644 types/cpx/tslint.json diff --git a/types/cpx/cpx-tests.ts b/types/cpx/cpx-tests.ts new file mode 100644 index 0000000000..dc92643fcc --- /dev/null +++ b/types/cpx/cpx-tests.ts @@ -0,0 +1,21 @@ +import * as cpx from "cpx"; + +const SRC = "**/.js"; +const DEST = ".tmp/"; +const callback = (error: Error | null) => { }; +const ASYNC_OPTIONS: cpx.AsyncOptions = { includeEmptyDirs: true }; +const SYNC_OPTIONS: cpx.SyncOptions = { preserve: true }; +const WATCH_OPTIONS: cpx.WatchOptions = { initialCopy: true }; + +cpx.copy(SRC, DEST); +cpx.copy(SRC, DEST, callback); +cpx.copy(SRC, DEST, ASYNC_OPTIONS); +cpx.copy(SRC, DEST, ASYNC_OPTIONS, callback); + +cpx.copySync(SRC, DEST, SYNC_OPTIONS); +cpx.copySync(SRC, DEST); + +const watch = cpx.watch(SRC, DEST, WATCH_OPTIONS); +watch.close(); +watch.open(); +watch.on("copy", (x) => x); diff --git a/types/cpx/index.d.ts b/types/cpx/index.d.ts new file mode 100644 index 0000000000..9a04cf1242 --- /dev/null +++ b/types/cpx/index.d.ts @@ -0,0 +1,44 @@ +// Type definitions for cpx 1.5 +// Project: https://github.com/mysticatea/cpx +// Definitions by: Alan Agius +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +/// + +import * as stream from "stream"; + +export interface SyncOptions { + /** remove files that copied on past before copy. */ + clean?: boolean; + /** Follow symbolic links when copying from them. */ + dereference?: boolean; + /** Copy empty directories which is matched with the glob. */ + includeEmptyDirs?: boolean; + /** Preserve UID, GID, ATIME, and MTIME of files. */ + preserve?: boolean; + /** Do not overwrite files on destination if the source file is older. */ + update?: boolean; +} + +export interface AsyncOptions extends SyncOptions { + /** Function that creates a `stream.Transform` object to transform each copying file. */ + transform?(filepath: string): stream.Transform[]; +} + +export interface WatchOptions extends AsyncOptions, SyncOptions { + /** Flag to not copy at the initial time of watch. */ + initialCopy?: boolean; +} + +export class Watcher extends NodeJS.EventEmitter { + constructor(options: WatchOptions); + open(): void; + close(): void; +} + +export function copy(source: string, dest: string, options?: AsyncOptions, callback?: (error: Error | null) => void): void; +export function copy(source: string, dest: string, callback?: (error: Error | null) => void): void; + +export function copySync(source: string, dest: string, options?: SyncOptions): void; + +export function watch(source: string, dest: string, options?: WatchOptions): Watcher; diff --git a/types/cpx/tsconfig.json b/types/cpx/tsconfig.json new file mode 100644 index 0000000000..d22546d432 --- /dev/null +++ b/types/cpx/tsconfig.json @@ -0,0 +1,23 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es6" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "strictFunctionTypes": true, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "cpx-tests.ts" + ] +} diff --git a/types/cpx/tslint.json b/types/cpx/tslint.json new file mode 100644 index 0000000000..3db14f85ea --- /dev/null +++ b/types/cpx/tslint.json @@ -0,0 +1 @@ +{ "extends": "dtslint/dt.json" } From ed36d5538fe4656f9cf79e9c481d2102fc6e7bc6 Mon Sep 17 00:00:00 2001 From: Kaelig Deloumeau-Prigent Date: Sat, 21 Oct 2017 21:38:18 -0700 Subject: [PATCH 211/506] react: Add "as" attribute to link elements (#20628) * Add "as" attribute to links See corresponding addition here: https://github.com/facebook/react/pull/7582 * Add "as" attribute to link elements in React v16 definition * Turn commas into semicolons (React 15) * Turn commas into semicolons (React 16) --- types/react/index.d.ts | 3 ++- types/react/v15/index.d.ts | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/types/react/index.d.ts b/types/react/index.d.ts index f79caad296..ee3f9616ac 100644 --- a/types/react/index.d.ts +++ b/types/react/index.d.ts @@ -33,7 +33,7 @@ And since any object is assignable to {}, we would lose the type safety of the P Therefore, the type of props is left as Q, which should work for most cases. If you need to call cloneElement with key or ref, you'll need a type cast: interface ButtonProps { - label: string, + label: string; isDisabled?: boolean; } var element: React.CElement; @@ -2782,6 +2782,7 @@ declare namespace React { } interface LinkHTMLAttributes extends HTMLAttributes { + as?: string; href?: string; hrefLang?: string; integrity?: string; diff --git a/types/react/v15/index.d.ts b/types/react/v15/index.d.ts index 6be40c0f6b..c35e2df3c0 100644 --- a/types/react/v15/index.d.ts +++ b/types/react/v15/index.d.ts @@ -35,7 +35,7 @@ Therefore, the type of props is left as Q, which should work for most cases. If you need to call cloneElement with key or ref, you'll need a type cast: interface ButtonProps { - label: string, + label: string; isDisabled?: boolean; } var element: React.CElement; @@ -2720,6 +2720,7 @@ declare namespace React { } interface LinkHTMLAttributes extends HTMLAttributes { + as?: string; href?: string; hrefLang?: string; integrity?: string; From 10612bcf84153db3d37a042d08f5b57ab5680333 Mon Sep 17 00:00:00 2001 From: Paulo Cesar Date: Sun, 22 Oct 2017 12:39:35 -0200 Subject: [PATCH 212/506] Update index.d.ts (#20811) remove duplicated `as` --- types/react/index.d.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/types/react/index.d.ts b/types/react/index.d.ts index ee3f9616ac..77356b922b 100644 --- a/types/react/index.d.ts +++ b/types/react/index.d.ts @@ -2782,7 +2782,6 @@ declare namespace React { } interface LinkHTMLAttributes extends HTMLAttributes { - as?: string; href?: string; hrefLang?: string; integrity?: string; From 84da98d35b4ed69ccf0f0d79a1b1e96d7316c3bc Mon Sep 17 00:00:00 2001 From: andy-ms Date: Sun, 22 Oct 2017 10:46:51 -0700 Subject: [PATCH 213/506] verror: Fix lint --- types/verror/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/verror/index.d.ts b/types/verror/index.d.ts index bddce14924..36d2a9ef3b 100644 --- a/types/verror/index.d.ts +++ b/types/verror/index.d.ts @@ -39,7 +39,7 @@ declare namespace VError { } interface Options { - cause?: Error | null | undefined; + cause?: Error | null; name?: string; strict?: boolean; constructorOpt?(...args: any[]): void; From 4a0d3be1c054f1e9fa9f94cceb0af0e9c815fed9 Mon Sep 17 00:00:00 2001 From: Andy Date: Sun, 22 Oct 2017 11:27:58 -0700 Subject: [PATCH 214/506] leaflet-*: Fix lint (#20841) --- types/leaflet-draw/tslint.json | 4 +++- types/leaflet-polylinedecorator/tslint.json | 8 +++++++- types/leaflet/tslint.json | 1 + 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/types/leaflet-draw/tslint.json b/types/leaflet-draw/tslint.json index 4f44991c3c..ccc381f52f 100644 --- a/types/leaflet-draw/tslint.json +++ b/types/leaflet-draw/tslint.json @@ -1,6 +1,8 @@ { "extends": "dtslint/dt.json", "rules": { - "no-empty-interface": false + // TODOs + "no-empty-interface": false, + "no-unnecessary-class": false } } diff --git a/types/leaflet-polylinedecorator/tslint.json b/types/leaflet-polylinedecorator/tslint.json index 3db14f85ea..6a82dd0467 100644 --- a/types/leaflet-polylinedecorator/tslint.json +++ b/types/leaflet-polylinedecorator/tslint.json @@ -1 +1,7 @@ -{ "extends": "dtslint/dt.json" } +{ + "extends": "dtslint/dt.json", + "rules": { + // TODO + "no-unnecessary-class": false + } +} diff --git a/types/leaflet/tslint.json b/types/leaflet/tslint.json index a7cf035dfc..e504c08f8d 100644 --- a/types/leaflet/tslint.json +++ b/types/leaflet/tslint.json @@ -2,6 +2,7 @@ "extends": "dtslint/dt.json", "rules": { // TODOs + "no-unnecessary-class": false, "no-object-literal-type-assertion": false, "no-single-declare-module": false } From 097d2acf711df3ffb7a3df62554769b216876275 Mon Sep 17 00:00:00 2001 From: Andy Date: Sun, 22 Oct 2017 15:22:50 -0700 Subject: [PATCH 215/506] Miscellaneous lint fixes (#20849) --- types/activex-libreoffice/tslint.json | 1 + types/angular-block-ui/index.d.ts | 6 +- types/angular/angular-tests.ts | 8 +- types/angular/index.d.ts | 16 ++-- types/annyang/index.d.ts | 44 +-------- types/applicationinsights-js/tslint.json | 2 + types/arrify/index.d.ts | 1 - types/ascii2mathml/index.d.ts | 2 +- types/async/tslint.json | 1 + .../atom-mocha-test-runner-tests.ts | 2 +- types/autosize/index.d.ts | 9 -- types/babel-core/index.d.ts | 5 +- types/backbone.marionette/index.d.ts | 10 +- types/bagpipes/index.d.ts | 5 +- types/bitcoinjs-lib/index.d.ts | 2 +- types/blob-util/index.d.ts | 22 ----- types/bluebird-global/tslint.json | 1 + types/bluebird/tslint.json | 1 + types/bootstrap-slider/index.d.ts | 7 -- types/bull/index.d.ts | 4 +- types/bunyan-blackhole/index.d.ts | 4 +- types/chai-jest-snapshot/index.d.ts | 33 ++----- types/chroma-js/index.d.ts | 3 - types/clipboard/index.d.ts | 15 ++- types/combine-source-map/index.d.ts | 18 ++-- types/convert-source-map/index.d.ts | 18 ++-- types/convict/index.d.ts | 16 +--- types/cookie-signature/index.d.ts | 10 +- .../cordova-plugin-native-keyboard/index.d.ts | 18 ---- types/cytoscape/index.d.ts | 27 ++++-- types/delay/index.d.ts | 6 +- types/dom-inputevent/index.d.ts | 10 +- types/dwt/tslint.json | 2 + types/dwt/v12/tslint.json | 2 + types/electron-settings/v2/index.d.ts | 2 - types/execa/index.d.ts | 2 +- types/express-brute-mongo/index.d.ts | 7 -- types/express-brute-mongo/tslint.json | 5 +- types/express-mysql-session/index.d.ts | 71 -------------- types/firebird/index.d.ts | 18 +--- types/flickity/index.d.ts | 10 +- types/fm-websync/index.d.ts | 3 - types/fs-extra-promise-es6/index.d.ts | 72 -------------- types/fs-extra-promise/index.d.ts | 31 ------ types/fs-extra/index.d.ts | 6 -- types/geodesy/index.d.ts | 15 ++- types/geolib/index.d.ts | 55 +++++++---- .../google-protobuf/google-protobuf-tests.ts | 6 +- types/graphite-udp/index.d.ts | 12 --- types/grecaptcha/index.d.ts | 4 - types/har-format/index.d.ts | 28 ++++-- types/haversine/index.d.ts | 3 - types/hls.js/index.d.ts | 2 +- types/http-assert/index.d.ts | 51 +++------- types/http-proxy/index.d.ts | 1 - types/is-ip/index.d.ts | 24 +---- types/is-number/index.d.ts | 4 +- types/jasmine-fixture/index.d.ts | 7 +- types/jest/index.d.ts | 8 +- types/jquery-match-height/index.d.ts | 2 - types/jsforce/query.d.ts | 4 +- types/jsforce/tslint.json | 1 + types/json-rpc-ws/index.d.ts | 2 - types/jsonfile/index.d.ts | 28 +++--- types/jsrp/index.d.ts | 40 ++++---- types/jszip/index.d.ts | 7 +- types/kafka-node/tslint.json | 5 +- types/keycloak-js/tslint.json | 4 +- types/knuddels-userapps-api/tslint.json | 5 +- types/license-checker/index.d.ts | 1 - types/line-by-line/index.d.ts | 1 - types/linq4js/tslint.json | 1 + types/load-json-file/index.d.ts | 4 - types/make-dir/index.d.ts | 2 - types/merge2/index.d.ts | 2 +- types/modesl/tslint.json | 8 +- types/morgan/index.d.ts | 2 - types/multer/index.d.ts | 3 +- types/multimatch/index.d.ts | 9 +- types/nedb-logger/index.d.ts | 2 +- types/node-horseman/index.d.ts | 4 +- types/node-pg-migrate/tslint.json | 4 +- types/node-waves/index.d.ts | 10 +- types/node-wit/tslint.json | 8 +- types/node-xmpp-core/index.d.ts | 5 +- types/nodemailer/lib/addressparser.d.ts | 4 +- types/openpgp/tslint.json | 1 + types/p-settle/index.d.ts | 2 - .../passport-oauth2/passport-oauth2-tests.ts | 3 +- types/pikaday-time/index.d.ts | 2 +- types/pikaday/index.d.ts | 2 +- types/polylabel/index.d.ts | 7 +- types/pouchdb-find/index.d.ts | 3 +- types/prosemirror-inputrules/tslint.json | 6 +- types/prosemirror-markdown/tslint.json | 8 +- types/qr-image/index.d.ts | 15 +-- types/query-string/index.d.ts | 5 - types/quill/tslint.json | 5 +- types/relay-runtime/tslint.json | 6 +- types/remove-markdown/index.d.ts | 1 - types/restify-plugins/index.d.ts | 2 +- types/restling/index.d.ts | 94 ++++++++----------- types/rfc2047/index.d.ts | 8 +- types/riot/index.d.ts | 8 +- types/safe-regex/index.d.ts | 2 +- types/sap__xsenv/index.d.ts | 8 +- types/serialize-javascript/index.d.ts | 8 +- types/sha1/index.d.ts | 6 +- types/simple-oauth2/index.d.ts | 2 +- types/sinon/index.d.ts | 6 +- types/slocket/index.d.ts | 6 +- types/snazzy-info-window/index.d.ts | 1 - types/soundmanager2/index.d.ts | 5 +- types/sshpk/tslint.json | 8 +- .../string-similarity-tests.ts | 11 +-- types/strong-cluster-control/index.d.ts | 1 - types/sumo-logger/index.d.ts | 3 +- types/swagger-sails-hook/index.d.ts | 4 +- types/tabris-plugin-firebase/index.d.ts | 7 +- types/thrift/thrift-tests.ts | 2 - types/tinymce/tslint.json | 1 + types/tocktimer/index.d.ts | 7 +- types/undertaker-registry/index.d.ts | 8 +- types/universal-router/index.d.ts | 6 +- types/vast-client/index.d.ts | 2 +- types/viewerjs/index.d.ts | 8 +- types/vinyl-fs/index.d.ts | 12 ++- types/webassembly-js-api/tslint.json | 4 +- types/webdriverio/tslint.json | 1 + 129 files changed, 439 insertions(+), 814 deletions(-) diff --git a/types/activex-libreoffice/tslint.json b/types/activex-libreoffice/tslint.json index 098cdac415..58ae722582 100644 --- a/types/activex-libreoffice/tslint.json +++ b/types/activex-libreoffice/tslint.json @@ -3,6 +3,7 @@ "rules": { "interface-name": [false], "ban-types": false, + "no-redundant-jsdoc": false, "no-unnecessary-qualifier": false } } \ No newline at end of file diff --git a/types/angular-block-ui/index.d.ts b/types/angular-block-ui/index.d.ts index 47ba9902b9..f415d386e9 100644 --- a/types/angular-block-ui/index.d.ts +++ b/types/angular-block-ui/index.d.ts @@ -67,7 +67,7 @@ declare module 'angular' { * If the filter function returns a string it will be passed as the message * argument to the start method of the service. * - * @param {angular.IRequestConfig} config - the Angular request config object. + * @param config the Angular request config object. * */ requestFilter?(config: IRequestConfig): (string | boolean); @@ -123,7 +123,7 @@ declare module 'angular' { * * This behaviour can be modified in the configuration. * - * @param {string|IBlockUIConfig} messageOrOptions - + * @param messageOrOptions * Either supply the message (string) to be show in the * overlay or specify an IBlockUIConfig object that will be * merged/extended into the block ui instance state. @@ -156,7 +156,7 @@ declare module 'angular' { * Allows the message shown in the overlay to be updated * while to block is active. * - * @param {string} message - The message to show in the overlay. + * @param message The message to show in the overlay. */ message(message: string): void; diff --git a/types/angular/angular-tests.ts b/types/angular/angular-tests.ts index 03f7af5160..6d8b11bffe 100644 --- a/types/angular/angular-tests.ts +++ b/types/angular/angular-tests.ts @@ -178,7 +178,7 @@ mod.controller('name', class { // $onChanges(x: number) { } }); mod.controller({ - MyCtrl: class{}, + MyCtrl: class {}, MyCtrl2() {}, MyCtrl3: ['$fooService', ($fooService: any) => { }] }); @@ -229,7 +229,7 @@ mod.provider(My.Namespace); mod.service('name', ($scope: ng.IScope) => {}); mod.service('name', ['$scope', ($scope: ng.IScope) => {}]); mod.service({ - MyCtrl: class{}, + MyCtrl: class {}, MyCtrl2: () => {}, // tslint:disable-line:object-literal-shorthand MyCtrl3: ['$fooService', ($fooService: any) => {}] }); @@ -491,9 +491,7 @@ namespace TestInjector { // $injector.instantiate { - class Foobar { - constructor($q) {} - } + class Foobar {} const result: Foobar = $injector.instantiate(Foobar); } diff --git a/types/angular/index.d.ts b/types/angular/index.d.ts index bcc8ab7466..45b9bea058 100644 --- a/types/angular/index.d.ts +++ b/types/angular/index.d.ts @@ -1089,7 +1089,7 @@ declare namespace angular { * Retrieves or overrides whether to generate an error when a rejected promise is not handled. * This feature is enabled by default. * - * @returns {boolean} Current value + * @returns Current value */ errorOnUnhandledRejections(): boolean; @@ -1097,8 +1097,8 @@ declare namespace angular { * Retrieves or overrides whether to generate an error when a rejected promise is not handled. * This feature is enabled by default. * - * @param {boolean} value Whether to generate an error when a rejected promise is not handled. - * @returns {ng.IQProvider} Self for chaining otherwise. + * @param value Whether to generate an error when a rejected promise is not handled. + * @returns Self for chaining otherwise. */ errorOnUnhandledRejections(value: boolean): IQProvider; } @@ -1109,8 +1109,8 @@ declare namespace angular { * The successCallBack may return IPromise for when a $q.reject() needs to be returned * This method returns a new promise which is resolved or rejected via the return value of the successCallback, errorCallback. It also notifies via the return value of the notifyCallback method. The promise can not be resolved or rejected from the notifyCallback method. */ - then(successCallback: (promiseValue: T) => IPromise|TResult, errorCallback?: null | undefined, notifyCallback?: (state: any) => any): IPromise; - then(successCallback: (promiseValue: T) => IPromise|TResult2, errorCallback?: null | undefined, notifyCallback?: (state: any) => any): IPromise; + then(successCallback: (promiseValue: T) => IPromise|TResult, errorCallback?: null, notifyCallback?: (state: any) => any): IPromise; + then(successCallback: (promiseValue: T) => IPromise|TResult2, errorCallback?: null, notifyCallback?: (state: any) => any): IPromise; then(successCallback: (promiseValue: T) => IPromise|TResult, errorCallback: (reason: any) => IPromise|TCatch, notifyCallback?: (state: any) => any): IPromise; then(successCallback: (promiseValue: T) => IPromise|TResult2, errorCallback: (reason: any) => IPromise|TCatch2, notifyCallback?: (state: any) => any): IPromise; @@ -1639,9 +1639,8 @@ declare namespace angular { useApplyAsync(value: boolean): IHttpProvider; /** - * - * @param {boolean=} value If true, `$http` will return a normal promise without the `success` and `error` methods. - * @returns {boolean|Object} If a value is specified, returns the $httpProvider for chaining. + * @param value If true, `$http` will return a normal promise without the `success` and `error` methods. + * @returns If a value is specified, returns the $httpProvider for chaining. * otherwise, returns the current configured value. */ useLegacyPromiseExtensions(value: boolean): boolean | IHttpProvider; @@ -1762,7 +1761,6 @@ declare namespace angular { (tpl: string, ignoreRequestError?: boolean): IPromise; /** * total amount of pending template requests being downloaded. - * @type {number} */ totalPendingRequests: number; } diff --git a/types/annyang/index.d.ts b/types/annyang/index.d.ts index fee0cb9acb..76f2bdb455 100644 --- a/types/annyang/index.d.ts +++ b/types/annyang/index.d.ts @@ -6,39 +6,23 @@ /** * Options for function `start` - * - * @export - * @interface StartOptions */ export interface StartOptions { /** * Should annyang restart itself if it is closed indirectly, because of silence or window conflicts? - * - * @type {boolean} */ autoRestart?: boolean; /** * Allow forcing continuous mode on or off. Annyang is pretty smart about this, so only set this if you know what you're doing. - * - * @type {boolean} */ continuous?: boolean; } /** * A command option that supports custom regular expressions - * - * @export - * @interface CommandOptionRegex */ export interface CommandOptionRegex { - /** - * @type {RegExp} - */ regexp: RegExp; - /** - * @type {() => any} - */ callback(): void; } @@ -50,8 +34,6 @@ export interface CommandOptionRegex { * {'hello :name': helloFunction, 'howdy': helloFunction}; * {'hi': helloFunction}; * ```` - * @export - * @interface CommandOption */ export interface CommandOption { [command: string]: CommandOptionRegex | (() => void); @@ -92,8 +74,6 @@ export interface Annyang { /** * Start listening. * It's a good idea to call this after adding some commands first, but not mandatory. - * - * @param {StartOptions} options */ start(options?: StartOptions): void; @@ -119,15 +99,13 @@ export interface Annyang { /** * Turn on output of debug messages to the console. Ugly, but super-handy! * - * @export - * @param {boolean} [newState=true] Turn on/off debug messages + * @param [newState=true] Turn on/off debug messages */ debug(newState?: boolean): void; /** * Set the language the user will speak in. If this method is not called, defaults to 'en-US'. * - * @param {string} lang * @see [Languages](https://github.com/TalAter/annyang/blob/master/docs/FAQ.md#what-languages-are-supported) */ setLanguage(lang: string): void; @@ -144,8 +122,6 @@ export interface Annyang { * annyang.addCommands(commands2); * // annyang will now listen to all three commands * ```` - * - * @param {CommandOption} commands */ addCommands(commands: CommandOption): void; @@ -161,7 +137,6 @@ export interface Annyang { * // Remove all existing commands * annyang.removeCommands(); * ```` - * @param {string} command */ removeCommands(command?: string): void; @@ -175,37 +150,22 @@ export interface Annyang { * // Don't respond to howdy or hi * annyang.removeCommands(['howdy', 'hi']); * ```` - * - * @param {string[]} command */ removeCommands(command: string[]): void; - /** - * @param {Events} event - * @param {(userSaid : string, commandText : string, results : string[]) => void} callback - * @param {*} [context] - */ addCallback(event: Events, callback: (userSaid?: string, commandText?: string, results?: string[]) => void, context?: any): void; - /** - * @param {Events} [event] - * @param {Function} [callback] - */ removeCallback(event?: Events, callback?: (userSaid: string, commandText: string, results: string[]) => void): void; /** * Returns true if speech recognition is currently on. * Returns false if speech recognition is off or annyang is paused. - * - * @returns {boolean} */ isListening(): boolean; /** * Returns the instance of the browser's SpeechRecognition object used by annyang. * Useful in case you want direct access to the browser's Speech Recognition engine. - * - * @returns {*} */ getSpeechRecognizer(): any; @@ -223,8 +183,6 @@ export interface Annyang { * ['Time for some thrilling heroics', 'Time for some thrilling aerobics'] * ); * ```` - * - * @param {string} command */ trigger(command: string | string[]): void; } diff --git a/types/applicationinsights-js/tslint.json b/types/applicationinsights-js/tslint.json index e4be61c456..482dffd727 100644 --- a/types/applicationinsights-js/tslint.json +++ b/types/applicationinsights-js/tslint.json @@ -6,7 +6,9 @@ "no-declare-current-package": false, "no-internal-module": false, "no-mergeable-namespace": false, + "no-redundant-jsdoc": false, "no-single-declare-module": false, + "no-unnecessary-class": false, "no-unnecessary-qualifier": false } } diff --git a/types/arrify/index.d.ts b/types/arrify/index.d.ts index 896ee23224..a1dda1b9ec 100644 --- a/types/arrify/index.d.ts +++ b/types/arrify/index.d.ts @@ -12,7 +12,6 @@ * arrify(1) // returns [1] * @example * arrify([2, 3]) // returns [2, 3] - * @param val */ declare function arrify(val: undefined | null | T | T[]): T[]; export = arrify; diff --git a/types/ascii2mathml/index.d.ts b/types/ascii2mathml/index.d.ts index 2b02dfea15..dcb9f7bb98 100644 --- a/types/ascii2mathml/index.d.ts +++ b/types/ascii2mathml/index.d.ts @@ -28,7 +28,7 @@ interface ascii2mathml { /** * Converts ASCIIMath expression to MathML markup. - * @param asciimath {string} ASCIIMath expression + * @param asciimath ASCIIMath expression * @param options Options */ (asciimath: string, options?: Options): string; diff --git a/types/async/tslint.json b/types/async/tslint.json index b1ab4a96cc..9380375afa 100644 --- a/types/async/tslint.json +++ b/types/async/tslint.json @@ -16,6 +16,7 @@ "no-void-expression": false, "object-literal-key-quotes": false, "object-literal-shorthand": false, + "one-line": false, "one-variable-per-declaration": false, "only-arrow-functions": false, "prefer-const": false, diff --git a/types/atom-mocha-test-runner/atom-mocha-test-runner-tests.ts b/types/atom-mocha-test-runner/atom-mocha-test-runner-tests.ts index 434e48f261..cae2dd0e54 100644 --- a/types/atom-mocha-test-runner/atom-mocha-test-runner-tests.ts +++ b/types/atom-mocha-test-runner/atom-mocha-test-runner-tests.ts @@ -34,5 +34,5 @@ async function runTests(): Promise { }; num = await defaultMochaRunner(runnerArgs); - return await testRunner(runnerArgs); + return testRunner(runnerArgs); } diff --git a/types/autosize/index.d.ts b/types/autosize/index.d.ts index a189b32817..b66dcc2aae 100644 --- a/types/autosize/index.d.ts +++ b/types/autosize/index.d.ts @@ -8,17 +8,14 @@ /** * Attach autosize to NodeList - * @param elements */ declare function autosize(elements: NodeList): NodeList; /** * Attach autosize to Element - * @param element */ declare function autosize(element: Element): Element; /** * Attach autosize to JQuery collection - * @param collection */ declare function autosize(collection: JQuery): JQuery; @@ -27,37 +24,31 @@ declare namespace autosize { * Triggers the height adjustment for an assigned textarea element. * Autosize will automatically adjust the textarea height on keyboard and window resize events. * There is no efficient way for Autosize to monitor for when another script has changed the textarea value or for changes in layout that impact the textarea element. - * @param elements */ function update(elements: NodeList): NodeList; /** * Triggers the height adjustment for an assigned textarea element. * Autosize will automatically adjust the textarea height on keyboard and window resize events. * There is no efficient way for Autosize to monitor for when another script has changed the textarea value or for changes in layout that impact the textarea element. - * @param element */ function update(element: Element): Element; /** * Triggers the height adjustment for an assigned textarea element. * Autosize will automatically adjust the textarea height on keyboard and window resize events. * There is no efficient way for Autosize to monitor for when another script has changed the textarea value or for changes in layout that impact the textarea element. - * @param collection */ function update(collection: JQuery): JQuery; /** * Removes Autosize and reverts any changes it made to the textarea element. - * @param elements */ function destroy(elements: NodeList): NodeList; /** * Removes Autosize and reverts any changes it made to the textarea element. - * @param element */ function destroy(element: Element): Element; /** * Removes Autosize and reverts any changes it made to the textarea element. - * @param collection */ function destroy(collection: JQuery): JQuery; } diff --git a/types/babel-core/index.d.ts b/types/babel-core/index.d.ts index a2476245c1..3a41d2d252 100644 --- a/types/babel-core/index.d.ts +++ b/types/babel-core/index.d.ts @@ -162,8 +162,9 @@ export interface TransformOptions { /** Indicate the mode the code should be parsed in. Can be either “script†or “moduleâ€. Default: "module" */ sourceType?: "script" | "module"; - /** An optional callback that can be used to wrap visitor methods. - * NOTE: This is useful for things like introspection, and not really needed for implementing anything. + /** + * An optional callback that can be used to wrap visitor methods. + * NOTE: This is useful for things like introspection, and not really needed for implementing anything. */ wrapPluginVisitorMethod?(pluginAlias: string, visitorType: 'enter' | 'exit', callback: (path: NodePath, state: any) => void): (path: NodePath, state: any) => void ; } diff --git a/types/backbone.marionette/index.d.ts b/types/backbone.marionette/index.d.ts index be3dfd8582..cd8ccd3821 100644 --- a/types/backbone.marionette/index.d.ts +++ b/types/backbone.marionette/index.d.ts @@ -691,7 +691,7 @@ export class Region extends Object implements DomMixin { * Render a template with data by passing in the template selector and the * data to render. This is the default renderer that is used by Marionette. */ -export class Renderer { +export namespace Renderer { /** * This method returns a string containing the result of applying the * template using the data object as the context. @@ -703,7 +703,7 @@ export class Renderer { * that returns valid HTML as a string from the data parameter passed to * the function. */ - static render(template: any, data: any): string; + function render(template: any, data: any): string; } export interface ViewOptions extends Backbone.ViewOptions, ViewMixinOptions { @@ -1614,11 +1614,11 @@ export class Behavior extends Object { /** * DEPRECATED */ -export class Behaviors { +export namespace Behaviors { /** * This method defines where your behavior classes are stored. Override this to provide another lookup. */ - static behaviorsLookup(): any; + function behaviorsLookup(): any; /** * This method has a default implementation that is simple to override. It @@ -1626,5 +1626,5 @@ export class Behaviors { * Behaviors.behaviorsLookup or elsewhere. Note that it should return the type of the * class to instantiate, not an instance of that class. */ - static getBehaviorClass(options: any, key: string): any; + function getBehaviorClass(options: any, key: string): any; } diff --git a/types/bagpipes/index.d.ts b/types/bagpipes/index.d.ts index ec1d0cceb7..309ae38318 100755 --- a/types/bagpipes/index.d.ts +++ b/types/bagpipes/index.d.ts @@ -4,7 +4,8 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped export interface FittingContext { - /** The input defined in the fitting definition + /** + * The input defined in the fitting definition * (string, number, object, array) */ input: any; @@ -56,7 +57,7 @@ export type Fitting = ( * Executed during parsing * @see {@link https://github.com/apigee-127/bagpipes#fittings|Docs} * - * @param {Object} fittingDef Fitting Definition + * @param fittingDef Fitting Definition */ export type FittingFactory = (fittingDef: FittingDef, bagpipes: any) => Fitting; diff --git a/types/bitcoinjs-lib/index.d.ts b/types/bitcoinjs-lib/index.d.ts index 796758715d..4caa6e1e2d 100644 --- a/types/bitcoinjs-lib/index.d.ts +++ b/types/bitcoinjs-lib/index.d.ts @@ -62,7 +62,7 @@ export class Block { } export class ECPair { - constructor(d: BigInteger, Q?: null | undefined, options?: { compressed?: boolean, network?: Network }); + constructor(d: BigInteger, Q?: null, options?: { compressed?: boolean, network?: Network }); constructor(d: null | undefined, Q: any, options?: { compressed?: boolean, network?: Network }); // Q should be ECPoint, but not sure how to define such type diff --git a/types/blob-util/index.d.ts b/types/blob-util/index.d.ts index 9ab6cb4b5f..7710734bf2 100644 --- a/types/blob-util/index.d.ts +++ b/types/blob-util/index.d.ts @@ -14,59 +14,43 @@ export function createBlob(parts: any[], options?: { type: string }): Blob; /** * Shim for URL.createObjectURL() to support browsers that only have the prefixed webkitURL (e.g. Android <4.4). - * - * @param blob */ export function createObjectURL(blob: Blob): string; /** * Shim for URL.revokeObjectURL() to support browsers that only have the prefixed webkitURL (e.g. Android <4.4). - * - * @param url */ export function revokeObjectURL(url: string): void; /** * Convert a Blob to a binary string. - * - * @param blob */ export function blobToBinaryString(blob: Blob): Promise; /** * Convert a binary string to a Blob. - * - * @param binary * @param type the content type */ export function binaryStringToBlob(binary: string, type?: string): Promise; /** * Convert a Blob to a base-64 string. - * - * @param blob */ export function blobToBase64String(blob: Blob): Promise; /** * Convert a base-64 string to a Blob. - * - * @param base64 * @param type the content type */ export function base64StringToBlob(base64: string, type?: string): Promise; /** * Convert a data URL string (e.g. `'data:image/png;base64,iVBORw0KG...'`) to a Blob. - * - * @param dataURL */ export function dataURLToBlob(dataURL: string): Promise; /** * Convert a Blob to a data URL string (e.g. `'data:image/png;base64,iVBORw0KG...'`). - * - * @param blob */ export function blobToDataURL(blob: Blob): Promise; @@ -75,7 +59,6 @@ export function blobToDataURL(blob: Blob): Promise; * * Note: this will coerce the image to the desired content type, and it will only paint the first frame of an animated GIF. * - * @param src * @param type the content type (optional, defaults to 'image/png') * @param crossOrigin for CORS-enabled images, set this to 'Anonymous' to avoid "tainted canvas" errors * @param quality a number between 0 and 1 indicating image quality if the requested type is 'image/jpeg' or 'image/webp' @@ -85,7 +68,6 @@ export function imgSrcToDataURL(src: string, type?: string, crossOrigin?: string /** * Convert a canvas to a Blob. * - * @param src * @param type the content type (optional, defaults to 'image/png') * @param quality a number between 0 and 1 indicating image quality if the requested type is 'image/jpeg' or 'image/webp' */ @@ -96,7 +78,6 @@ export function canvasToBlob(canvas: HTMLCanvasElement, type?: string, quality?: * * Note: this will coerce the image to the desired content type, and it will only paint the first frame of an animated GIF. * - * @param src * @param type the content type (optional, defaults to 'image/png') * @param crossOrigin for CORS-enabled images, set this to 'Anonymous' to avoid "tainted canvas" errors * @param quality a number between 0 and 1 indicating image quality if the requested type is 'image/jpeg' or 'image/webp' @@ -106,14 +87,11 @@ export function imgSrcToBlob(src: string, type?: string, crossOrigin?: string, q /** * Convert an ArrayBuffer to a Blob. * - * @param arrayBuff * @param type the content type */ export function arrayBufferToBlob(arrayBuff: ArrayBuffer, type?: string): Promise; /** * Convert a Blob to an ArrayBuffer. - * - * @param blob */ export function blobToArrayBuffer(blob: Blob): Promise; diff --git a/types/bluebird-global/tslint.json b/types/bluebird-global/tslint.json index 1d81af2349..31bf31d881 100644 --- a/types/bluebird-global/tslint.json +++ b/types/bluebird-global/tslint.json @@ -6,6 +6,7 @@ "array-type": false, "unified-signatures": false, "ban-types": false, + "no-redundant-undefined": false, "no-unnecessary-generics": false } } diff --git a/types/bluebird/tslint.json b/types/bluebird/tslint.json index 44da6a5d92..3f946593ed 100644 --- a/types/bluebird/tslint.json +++ b/types/bluebird/tslint.json @@ -3,6 +3,7 @@ "rules": { "adjacent-overload-signatures": false, "max-line-length": [true, 490], + "no-redundant-undefined": false, "no-unnecessary-callback-wrapper": false, "no-unnecessary-generics": false, "no-void-expression": false, diff --git a/types/bootstrap-slider/index.d.ts b/types/bootstrap-slider/index.d.ts index 557c7aa5ad..b17f912d57 100644 --- a/types/bootstrap-slider/index.d.ts +++ b/types/bootstrap-slider/index.d.ts @@ -134,7 +134,6 @@ interface SliderPlugin { (methodName: string, ...args: any[]): TJQuery; /** * Creates a slider from the current element. - * @param options */ (options?: SliderOptions): TJQuery; } @@ -163,9 +162,6 @@ declare class Slider { /** * Set a new value for the slider. If optional triggerSlideEvent parameter is true, 'slide' events will be triggered. * If optional triggerChangeEvent parameter is true, 'change' events will be triggered. - * @param newValue - * @param triggerSlideEvent - * @param triggerChangeEvent */ setValue(newValue: number, triggerSlideEvent?: boolean, triggerChangeEvent?: boolean): this; /** @@ -186,13 +182,10 @@ declare class Slider { isEnabled(): boolean; /** * Updates the slider's attributes - * @param attribute - * @param value */ setAttribute(attribute: string, value: any): this; /** * Get the slider's attributes - * @param attribute */ getAttribute(attribute: string): any; /** diff --git a/types/bull/index.d.ts b/types/bull/index.d.ts index 5754236da8..abfd4ddd98 100644 --- a/types/bull/index.d.ts +++ b/types/bull/index.d.ts @@ -88,13 +88,13 @@ declare namespace Bull { /** * Removes a job from the queue and from any lists it may be included in. - * @returns {Promise} A promise that resolves when the job is removed. + * @returns A promise that resolves when the job is removed. */ remove(): Promise; /** * Re-run a job that has failed. - * @returns {Promise} A promise that resolves when the job is scheduled for retry. + * @returns A promise that resolves when the job is scheduled for retry. */ retry(): Promise; diff --git a/types/bunyan-blackhole/index.d.ts b/types/bunyan-blackhole/index.d.ts index f8be6fc730..2ece8b2f40 100644 --- a/types/bunyan-blackhole/index.d.ts +++ b/types/bunyan-blackhole/index.d.ts @@ -7,8 +7,8 @@ import * as Logger from "bunyan"; /** * Constructor. - * @param {string} [name] name of the blackhole Logger - * @return {Logger} A bunyan logger . + * @param name name of the blackhole Logger + * @return A bunyan logger . */ declare function bunyanBlackHole(name: string): Logger; export = bunyanBlackHole; diff --git a/types/chai-jest-snapshot/index.d.ts b/types/chai-jest-snapshot/index.d.ts index f19158e282..40ce5afc1b 100644 --- a/types/chai-jest-snapshot/index.d.ts +++ b/types/chai-jest-snapshot/index.d.ts @@ -9,12 +9,7 @@ declare global { namespace Chai { interface Assertion { - /** - * Assert that the object matches the snapshot - * @param snapshotFilename - * @param snapshotName - * @param update - */ + /** Assert that the object matches the snapshot */ matchSnapshot(snapshotFilename?: string, snapshotName?: string, update?: boolean): Assertion; matchSnapshot(update: boolean): Assertion; } @@ -22,40 +17,24 @@ declare global { } interface ChaiJestSnapshot { - /** - * Chai bootstrapper - * @param chai - * @param utils - */ + /** Chai bootstrapper */ (chai: any, utils: any): void; - /** - * Set snapshot file name - * @param filename - */ + /** Set snapshot file name */ setFileName(filename: string): void; /** * Set snapshot test name - * @param testname */ setTestName(testname: string): void; - /** - * Configure snapshot name using mocha context - * @param context - */ + /** Configure snapshot name using mocha context */ configureUsingMochaContext(context: Mocha.IBeforeAndAfterContext): void; - /** - * Reset snapshot registry - */ + /** Reset snapshot registry */ resetSnapshotRegistry(): void; - /** - * Add a serializer plugin - * @param serializer - */ + /** Add a serializer plugin */ addSerializer(serializer: any): void; } diff --git a/types/chroma-js/index.d.ts b/types/chroma-js/index.d.ts index f826c8f254..c18484dc1f 100644 --- a/types/chroma-js/index.d.ts +++ b/types/chroma-js/index.d.ts @@ -34,9 +34,6 @@ declare namespace chroma { /** * Create a color in the specified color space using a, b and c as values. * - * @param a - * @param b - * @param c * @param colorSpace The color space to use. Defaults to "rgb". * @return the color object. */ diff --git a/types/clipboard/index.d.ts b/types/clipboard/index.d.ts index 0aa51518dd..76d28674d6 100644 --- a/types/clipboard/index.d.ts +++ b/types/clipboard/index.d.ts @@ -8,7 +8,7 @@ declare class Clipboard { /** * Subscribes to events that indicate the result of a copy/cut operation. - * @param type {"success" | "error"} Event type ('success' or 'error'). + * @param type Event type ('success' or 'error'). * @param handler Callback function. */ on(type: "success" | "error", handler: (e: Clipboard.Event) => void): this; @@ -29,22 +29,21 @@ declare namespace Clipboard { interface Options { /** * Overwrites default command ('cut' or 'copy'). - * @param {Element} elem Current element - * @returns {String} Only 'cut' or 'copy'. + * @param elem Current element */ - action?(elem: Element): string; + action?(elem: Element): "cut" | "copy"; /** * Overwrites default target input element. - * @param {Element} elem Current element - * @returns {Element} element to use. + * @param elem Current element + * @returns element to use. */ target?(elem: Element): Element; /** * Returns the explicit text to copy. - * @param {Element} elem Current element - * @returns {String} Text to be copied. + * @param elem Current element + * @returns Text to be copied. */ text?(elem: Element): string; } diff --git a/types/combine-source-map/index.d.ts b/types/combine-source-map/index.d.ts index 43f1c994b0..3855942092 100644 --- a/types/combine-source-map/index.d.ts +++ b/types/combine-source-map/index.d.ts @@ -3,13 +3,15 @@ // Definitions by: TeamworkGuy2 // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -/** Add source maps of multiple files, offset them and then combine them into one source map. +/** + * Add source maps of multiple files, offset them and then combine them into one source map. * (documentation based on project's README file) */ declare class Combiner { constructor(file?: string, sourceRoot?: string); - /** Adds map to underlying source map. + /** + * Adds map to underlying source map. * If source contains a source map comment that has the source of the original file inlined it will offset these * mappings and include them. * If no source map comment is found or it has no source inlined, mappings for the file will be generated and included @@ -18,12 +20,14 @@ declare class Combiner { */ addFile(opts: { sourceFile: string; source: string }, offset?: Combiner.Offset): Combiner; - /** output the combined source map in base64 format + /** + * output the combined source map in base64 format * @return base64 encoded combined source map */ base64(): string; - /** generate a base64 encoded sourceMappingURL comment + /** + * generate a base64 encoded sourceMappingURL comment * @return base64 encoded sourceMappingUrl comment of the combined source map */ comment(): string; @@ -40,15 +44,15 @@ declare namespace Combiner { column?: number; } - /** Create a source map combiner that accepts multiple files, offsets them and then combines them into one source map. + /** + * Create a source map combiner that accepts multiple files, offsets them and then combines them into one source map. * @param file optional name of the generated file * @param sourceRoot optional sourceRoot of the map to be generated * @return Combiner instance to which source maps can be added and later combined */ function create(file?: string, sourceRoot?: string): Combiner; - /** removeComments - * @param src + /** * @return src with all sourceMappingUrl comments removed */ function removeComments(src: string): string; diff --git a/types/convert-source-map/index.d.ts b/types/convert-source-map/index.d.ts index 6b1346b61f..6950445a6c 100644 --- a/types/convert-source-map/index.d.ts +++ b/types/convert-source-map/index.d.ts @@ -3,7 +3,8 @@ // Definitions by: Andrew Gaspar , Melvin Groenhoff , TeamworkGuy2 // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -/** Converts a source-map from/to different formats and allows adding/changing properties. +/** + * Converts a source-map from/to different formats and allows adding/changing properties. * (documentation based on project's README file) */ export interface SourceMapConverter { @@ -19,7 +20,8 @@ export interface SourceMapConverter { /** Converts source map to base64 encoded json string */ toBase64(): string; - /** Converts source map to an inline comment that can be appended to the source-file. + /** + * Converts source map to an inline comment that can be appended to the source-file. * By default, the comment is formatted like: //# sourceMappingURL=..., which you would normally see in a JS source file. * When options.multiline == true, the comment is formatted like: /*# sourceMappingURL=... *\/, which you would find in a CSS source file */ @@ -47,16 +49,19 @@ export function fromBase64(base64: string): SourceMapConverter; /** Returns source map converter from given base64 encoded json string prefixed with //# sourceMappingURL=... */ export function fromComment(comment: string): SourceMapConverter; -/** Returns source map converter from given filename by parsing //# sourceMappingURL=filename. +/** + * Returns source map converter from given filename by parsing //# sourceMappingURL=filename. * filename must point to a file that is found inside the mapFileDir. Most tools store this file right next to the generated file, i.e. the one containing the source map. */ export function fromMapFileComment(comment: string, commentFileDir: string): SourceMapConverter; -/** Finds last sourcemap comment in file and returns source map converter or returns null if no source map comment was found. +/** + * Finds last sourcemap comment in file and returns source map converter or returns null if no source map comment was found. */ export function fromSource(content: string): SourceMapConverter | null; -/** Finds last sourcemap comment in file and returns source map converter or returns null if no source map comment was found. +/** + * Finds last sourcemap comment in file and returns source map converter or returns null if no source map comment was found. * The sourcemap will be read from the map file found by parsing # sourceMappingURL=file comment. For more info see fromMapFileComment. */ export function fromMapFileSource(content: string, commentFileDir: string): SourceMapConverter | null; @@ -73,7 +78,8 @@ export const commentRegex: RegExp; /** Returns a new regex used to find source map comments pointing to map files */ export const mapFileCommentRegex: RegExp; -/** Returns a comment that links to an external source map via file. +/** + * Returns a comment that links to an external source map via file. * By default, the comment is formatted like: //# sourceMappingURL=..., which you would normally see in a JS source file. * When options.multiline == true, the comment is formatted like: /*# sourceMappingURL=... *\/, which you would find in a CSS source file. */ diff --git a/types/convict/index.d.ts b/types/convict/index.d.ts index 5aac427dd0..9a31e0ccbb 100644 --- a/types/convict/index.d.ts +++ b/types/convict/index.d.ts @@ -69,48 +69,40 @@ declare namespace convict { * Sets the value of name to value. name can use dot notation to reference * nested values, e.g. "database.port". If objects in the chain don't yet * exist, they will be initialized to empty objects - * - * @return {Config} instance */ set(name: string, value: any): Config; /** * Loads and merges a JavaScript object into config - * - * @return {Config} instance */ load(conf: Object): Config; /** * Loads and merges JSON configuration file(s) into config - * - * @return {Config} instance */ loadFile(files: string | string[]): Config; /** * Validates config against the schema used to initialize it - * - * @param options */ validate(options?: ValidateOptions): Config; /** * Exports all the properties (that is the keys and their current values) as a {JSON} {Object} - * @returns {Object} A {JSON} compliant {Object} + * @returns A {JSON} compliant {Object} */ getProperties(): Object; /** * Exports the schema as a {JSON} {Object} - * @returns {Object} A {JSON} compliant {Object} + * @returns A {JSON} compliant {Object} */ getSchema(): Object; /** * Exports all the properties (that is the keys and their current values) as a JSON string. - * @returns {String} a string representing this object + * @returns A string representing this object */ toString(): string; /** * Exports the schema as a JSON string. - * @returns {String} a string representing the schema of this {Config} + * @returns A string representing the schema of this {Config} */ getSchemaString(): string; } diff --git a/types/cookie-signature/index.d.ts b/types/cookie-signature/index.d.ts index b9b29911a6..cb044f4636 100644 --- a/types/cookie-signature/index.d.ts +++ b/types/cookie-signature/index.d.ts @@ -3,19 +3,11 @@ // Definitions by: François Nguyen // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -/** - * Sign the given `val` with `secret`. - * @param {string} val - * @param {string} secret - * @return {string} - */ +/** Sign the given `val` with `secret`. */ export function sign(value: string, secret: string): string; /** * Unsign and decode the given `val` with `secret`, * returning `false` if the signature is invalid. - * @param {string} val - * @param {string} secret - * @return {string|boolean} */ export function unsign(value: string, secret: string): string | boolean; diff --git a/types/cordova-plugin-native-keyboard/index.d.ts b/types/cordova-plugin-native-keyboard/index.d.ts index 0f64199bd1..9acc3d0be5 100644 --- a/types/cordova-plugin-native-keyboard/index.d.ts +++ b/types/cordova-plugin-native-keyboard/index.d.ts @@ -6,7 +6,6 @@ interface NativeKeyboard { /** * Show the messenger, the bare minimum which has to be passed to the function is * the onSubmit callback - * @param options */ showMessenger( options: NativeKeyboardShowOptions @@ -16,10 +15,6 @@ interface NativeKeyboard { * It's likely your app only has 1 one page where you want to show the messenger, * so you want to hide it when the user navigates away. You can choose to do this * either animated (a quick slide down animation) or not. - * - * @param options - * @param onSuccess - * @param onError */ hideMessenger( options?: NativeKeyboardHideOptions, @@ -29,9 +24,6 @@ interface NativeKeyboard { /** * Show a previously hidden keyboard - * - * @param onSuccess - * @param onError */ showMessengerKeyboard( onSuccess?: () => void, @@ -40,9 +32,6 @@ interface NativeKeyboard { /** * Hide the keyboard, but not the messenger bar - * - * @param onSuccess - * @param onError */ hideMessengerKeyboard( onSuccess?: () => void, @@ -53,10 +42,6 @@ interface NativeKeyboard { * Manipulate the messenger while it's open. For instance if you want to * update the text programmatically based on what the user typed (by responding to * onTextChanged events). - * - * @param options - * @param onSuccess - * @param onError */ updateMessenger( options: NativeKeyboardUpdateOptions, @@ -92,7 +77,6 @@ interface NativeKeyboardHideOptions { interface NativeKeyboardShowOptions { /** * Callback function, which is being called as soon as the user submits - * @param text */ onSubmit(text: string): void; @@ -119,8 +103,6 @@ interface NativeKeyboardShowOptions { /** * Callback function which is being executed as soon as the entered text changes. Will * return the new text - * - * @param text */ onTextChanged?(text: string): void; diff --git a/types/cytoscape/index.d.ts b/types/cytoscape/index.d.ts index 3a618195d1..21d6d4344b 100644 --- a/types/cytoscape/index.d.ts +++ b/types/cytoscape/index.d.ts @@ -2711,7 +2711,8 @@ declare namespace cytoscape { * http://js.cytoscape.org/#eles.degreeCentrality */ interface SearchDegreeCentralityOptions { - /** The root node (selector or collection) for which the + /** + * The root node (selector or collection) for which the * centrality calculation is made. */ root: NodeSingular | Selector; @@ -2725,7 +2726,8 @@ declare namespace cytoscape { * in the centrality calculation. */ alpha?: number; - /** A boolean indicating whether the directed indegree and outdegree centrality is calculated (true) or + /** + * Whether the directed indegree and outdegree centrality is calculated (true) or * whether the undirected centrality is calculated (false, default). */ directed?: boolean; @@ -2757,7 +2759,8 @@ declare namespace cytoscape { * in the centrality calculation. */ alpha?: number; - /** A boolean indicating whether the directed indegree and outdegree centrality is calculated (true) or + /** + * A boolean indicating whether the directed indegree and outdegree centrality is calculated (true) or * whether the undirected centrality is calculated (false, default). */ directed?: boolean; @@ -2780,14 +2783,16 @@ declare namespace cytoscape { * http://js.cytoscape.org/#eles.closenessCentrality */ interface SearchClosenessCentralityOptions { - /** The root node (selector or collection) for which the + /** + * The root node (selector or collection) for which the * centrality calculation is made. */ root: NodeSingular | Selector; /** A function that returns the weight for the edge. */ weight?(edge: EdgeSingular): number; - /** A boolean indicating whether the directed indegree and outdegree centrality is calculated (true) or + /** + * A boolean indicating whether the directed indegree and outdegree centrality is calculated (true) or * whether the undirected centrality is calculated (false, default). */ directed?: boolean; @@ -2829,7 +2834,8 @@ declare namespace cytoscape { /** A function that returns the weight for the edge. */ weight?(edge: EdgeSingular): number; - /** A boolean indicating whether the directed indegree and outdegree centrality is calculated (true) or + /** + * A boolean indicating whether the directed indegree and outdegree centrality is calculated (true) or * whether the undirected centrality is calculated (false, default). */ directed?: boolean; @@ -3976,7 +3982,8 @@ declare namespace cytoscape { originalEvent: EventObject; } interface LayoutEventObject extends AbstractEventObject { - /** layout : indicates the corresponding layout that triggered the event + /** + * layout : indicates the corresponding layout that triggered the event * (useful if running multiple layouts simultaneously) */ layout: any; @@ -4357,12 +4364,14 @@ declare namespace cytoscape { * A new, developer accessible layout can be made via cy.makeLayout(). */ interface LayoutManipulation { - /** Start running the layout + /** + * Start running the layout * http://js.cytoscape.org/#layout.run */ run(): void; start(): void; - /** Stop running the (asynchronous/discrete) layout + /** + * Stop running the (asynchronous/discrete) layout * http://js.cytoscape.org/#layout.stop */ stop(): void; diff --git a/types/delay/index.d.ts b/types/delay/index.d.ts index f84c7ab5e4..0ec894f1e1 100644 --- a/types/delay/index.d.ts +++ b/types/delay/index.d.ts @@ -22,9 +22,9 @@ declare namespace delay { type PDelayedPassThroughThunk = ((value: TValue) => DelayedPromiseLike) & DelayedPromiseLike; interface DelayedPromiseLike { - then(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | undefined | null, - onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): Promise; - catch(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): Promise; + then(onfulfilled?: ((value: T) => TResult1 | PromiseLike) | null, + onrejected?: ((reason: any) => TResult2 | PromiseLike) | null): Promise; + catch(onrejected?: ((reason: any) => TResult | PromiseLike) | null): Promise; cancel(): void; } } diff --git a/types/dom-inputevent/index.d.ts b/types/dom-inputevent/index.d.ts index df1cce5ec4..0d2111a0e0 100644 --- a/types/dom-inputevent/index.d.ts +++ b/types/dom-inputevent/index.d.ts @@ -7,11 +7,11 @@ interface InputEventInit extends UIEventInit { data?: string; isComposing: boolean; } -interface InputEvent extends UIEvent { + +// tslint:disable-next-line no-empty-interface +interface InputEvent extends UIEvent {} +declare class InputEvent { + constructor(typeArg: 'input' | 'beforeinput', inputEventInit?: InputEventInit); readonly data: string; readonly isComposing: boolean; } - -declare class InputEvent { - constructor(typeArg: 'input' | 'beforeinput', inputEventInit?: InputEventInit); -} diff --git a/types/dwt/tslint.json b/types/dwt/tslint.json index acce7c8a0b..5d3b93bdf9 100644 --- a/types/dwt/tslint.json +++ b/types/dwt/tslint.json @@ -1,7 +1,9 @@ { "extends": "dtslint/dt.json", "rules": { + "jsdoc-format": false, "max-line-length": [false], + "no-redundant-jsdoc": false, "no-trailing-whitespace": false, "space-before-function-paren": false, "only-arrow-functions": [false] diff --git a/types/dwt/v12/tslint.json b/types/dwt/v12/tslint.json index acce7c8a0b..5d3b93bdf9 100644 --- a/types/dwt/v12/tslint.json +++ b/types/dwt/v12/tslint.json @@ -1,7 +1,9 @@ { "extends": "dtslint/dt.json", "rules": { + "jsdoc-format": false, "max-line-length": [false], + "no-redundant-jsdoc": false, "no-trailing-whitespace": false, "space-before-function-paren": false, "only-arrow-functions": [false] diff --git a/types/electron-settings/v2/index.d.ts b/types/electron-settings/v2/index.d.ts index a869fd52b8..2f767358e5 100644 --- a/types/electron-settings/v2/index.d.ts +++ b/types/electron-settings/v2/index.d.ts @@ -73,7 +73,6 @@ declare class Settings extends EventEmitter { * * @param keyPath The path to the key whose value we wish to set. This key need not already exist. * @param value The value to set the key at the chosen key path to. This must be a data type supported by JSON: object, array, string, number, boolean, or null. - * @param options * @throws if key path is not a string. * @throws if options is not an object. * @see setSync @@ -91,7 +90,6 @@ declare class Settings extends EventEmitter { * Deletes the key and value at the chosen key path. * * @param keyPath The path to the key we wish to unset. - * @param options * @throws if keyPath is not a string. * @throws if options is not an object. * @see deleteSync diff --git a/types/execa/index.d.ts b/types/execa/index.d.ts index c74c60672d..84c6939798 100644 --- a/types/execa/index.d.ts +++ b/types/execa/index.d.ts @@ -43,7 +43,7 @@ interface ExecaReturns { type ExecaError = Error & ExecaReturns; interface ExecaChildPromise { - catch(onrejected?: ((reason: ExecaError) => TResult | PromiseLike) | undefined | null): Promise; + catch(onrejected?: ((reason: ExecaError) => TResult | PromiseLike) | null): Promise; } type ExecaChildProcess = ChildProcess & ExecaChildPromise & Promise; diff --git a/types/express-brute-mongo/index.d.ts b/types/express-brute-mongo/index.d.ts index 56af09a099..0b637ed37b 100644 --- a/types/express-brute-mongo/index.d.ts +++ b/types/express-brute-mongo/index.d.ts @@ -8,15 +8,8 @@ import { Collection } from "mongodb"; /** * @summary MongoDB store adapter. - * @class */ declare class MongoStore { - /** - * @summary Constructor. - * @constructor - * @param {Function} getCollection The collection. - * @param {Object} options The otpions. - */ constructor(getCollection: (collection: (c: Collection) => void) => void, options?: Object); } export = MongoStore; diff --git a/types/express-brute-mongo/tslint.json b/types/express-brute-mongo/tslint.json index c0ad422b87..81e3db2614 100644 --- a/types/express-brute-mongo/tslint.json +++ b/types/express-brute-mongo/tslint.json @@ -1,8 +1,9 @@ { "extends": "dtslint/dt.json", "rules": { - // TODO + // TODOs "ban-types": false, - "dt-header": false + "dt-header": false, + "no-unnecessary-class": false } } diff --git a/types/express-mysql-session/index.d.ts b/types/express-mysql-session/index.d.ts index f8d6282ecd..14c857b5dc 100644 --- a/types/express-mysql-session/index.d.ts +++ b/types/express-mysql-session/index.d.ts @@ -30,106 +30,35 @@ declare namespace MySQLStore { } declare class MySQLStore { - /** - * @param {MySQLStore.Options} options - * @param {any} connection? - * @param {(error:any)=>void} callback? - */ constructor(options: MySQLStore.Options, connection?: any, callback?: (error: any) => void); - /** - * @returns void - */ setDefaultOptions(): void; - /** - * @param {(error:any)=>void} callback? - * @returns void - */ createDatabaseTable(callback?: (error: any) => void): void; - /** - * @param {string} sessionId - * @param {(error:any,session:any)=>void} callback? - * @returns void - */ get(sessionId: string, callback?: (error: any, session: any) => void): void; - /** - * @param {string} sessionId - * @param {any} data - * @param {(error:any)=>void} callback? - * @returns void - */ set(sessionId: string, data: any, callback?: (error: any) => void): void; - /** - * @param {string} sessionId - * @param {any} data - * @param {(error:any)=>void} callback? - * @returns void - */ touch(sessionId: string, data: any, callback?: (error: any) => void): void; - /** - * @param {string} sessionId - * @param {(error:any)=>void} callback? - * @returns void - */ destroy(sessionId: string, callback?: (error: any) => void): void; - /** - * @param {(error:any,count:any)=>void} callback? - * @returns void - */ length(callback?: (error: any, count: any) => void): void; - /** - * @param {(error:any)=>void} callback? - * @returns void - */ clear(callback?: (error: any) => void): void; - /** - * @param {(error:any)=>void} callback? - * @returns void - */ clearExpiredSessions(callback?: (error: any) => void): void; - /** - * @param {number} interval - * @returns void - */ setExpirationInterval(interval: number): void; - /** - * @returns void - */ clearExpirationInterval(): void; - /** - * @param {()=>void} callback? - * @returns void - */ close(callback?: () => void): void; - /** - * @param {any} object - * @param {any} defaultValues - * @param {any} options? - * @returns void - */ default(object: any, defaultValues: any, options?: any): void; - /** - * @param {any} object - * @returns void - */ clone(object: any): void; - /** - * @param {any} value - * @returns void - */ isObject(value: any): void; } diff --git a/types/firebird/index.d.ts b/types/firebird/index.d.ts index eaa20682a6..771a61f706 100644 --- a/types/firebird/index.d.ts +++ b/types/firebird/index.d.ts @@ -29,10 +29,6 @@ declare module 'firebird' { * Connects you to database, * * @param database a database name in Firebird notation, i.e. : - * @param username user name - * @param pasword - * @param role - * * @throws raises exception on error (try to catch it). */ connectSync(db: string, user: string, pass: string, role: string): void; @@ -41,9 +37,6 @@ declare module 'firebird' { * Asynchronously connects you to Database. * * @param database a database name in Firebird notation, i.e. : - * @param username user name - * @param pasword - * @param role * @param callback function(err), where err is error object in case of error. */ connect(db: string, user: string, pass: string, role: string, callback: (err: Error | null) => void): void; @@ -148,7 +141,8 @@ declare module 'firebird' { */ start(callback: (err: Error | null) => void): void; - /**Synchronously prepares SQL statement and returns FBStatement object. + /** + * Synchronously prepares SQL statement and returns FBStatement object. * * @param sql an SQL query to prepare. */ @@ -327,7 +321,7 @@ declare module 'firebird' { * Synchronously prepares SQL statement * * @param sql an SQL query to prepare. - * @returns @see FBStatement object in context of this transaction. + * @returns object in context of this transaction. */ prepareSync(sql: string): FBStatement; @@ -357,9 +351,6 @@ declare module 'firebird' { /** * Same as @see execSync but executes statement in context of given @see Transaction obejct. - * - * @param transaction - * @param params */ execInTransSync(transaction: Transaction, ...params: DataType[]): void; @@ -377,9 +368,6 @@ declare module 'firebird' { /** * Same as @see exec but executes statement in context of given @see Transaction obejct. - * - * @param transaction - * @param params */ execInTrans(transaction: Transaction, ...params: DataType[]): void; } diff --git a/types/flickity/index.d.ts b/types/flickity/index.d.ts index fda440b1fe..ae5dc46cb7 100644 --- a/types/flickity/index.d.ts +++ b/types/flickity/index.d.ts @@ -80,19 +80,16 @@ declare class Flickity { // properties /** - * @type integer * The selected cell index. */ selectedIndex: number; /** - * @type Element * The selected cell element. */ selectedElement: Element; /** - * @type Element[] * The array of cells. Use cells.length for the total number of cells. */ cells: Element[]; @@ -144,10 +141,9 @@ declare class Flickity { /** * Select a slide of a cell. Useful for groupCells. * - * @param {number | string} index Zero-based index OR selector string of the cell to select. - * @param {boolean} [isWrapped] Optional. If true, the last slide will be selected if at the first slide. - * @param {boolean} [isInstant] If true, immediately view the selected slide without animation. - * @memberof Flickity + * @param index Zero-based index OR selector string of the cell to select. + * @param isWrapped If true, the last slide will be selected if at the first slide. + * @param isInstant If true, immediately view the selected slide without animation. */ selectCell(index: number | string, isWrapped?: boolean, isInstant?: boolean): void; diff --git a/types/fm-websync/index.d.ts b/types/fm-websync/index.d.ts index ef5d51d64b..997c4666d1 100644 --- a/types/fm-websync/index.d.ts +++ b/types/fm-websync/index.d.ts @@ -469,8 +469,6 @@ declare namespace fm { * While this method will typically run asychronously, the WebSync client is designed to be used without (much) consideration for its asynchronous nature. * To that end, any calls to methods that require an active connection, like bind, subscribe and publish, will be queued automatically and executed once this * method has completed successfully. - * - * @param connectConfig */ connect(config: connectConfig): client; @@ -506,7 +504,6 @@ declare namespace fm { * Unsubscribes the client from receiving messages on one or more channels. * When the unsubscribe completes successfully, the callback specified by onSuccess will be invoked, passing in the unsubscribed channel(s), * including any modifications made on the server. - * @param config */ unsubscribe(config: unsubscribeConfig): client; } diff --git a/types/fs-extra-promise-es6/index.d.ts b/types/fs-extra-promise-es6/index.d.ts index f5847dd6f0..0f52b5c02e 100644 --- a/types/fs-extra-promise-es6/index.d.ts +++ b/types/fs-extra-promise-es6/index.d.ts @@ -117,64 +117,15 @@ export function write(fd: number, buffer: NodeBuffer, offset: number, length: nu export function writeSync(fd: number, buffer: NodeBuffer, offset: number, length: number, position: number): number; export function read(fd: number, buffer: NodeBuffer, offset: number, length: number, position: number, callback?: (err: Error, bytesRead: number, buffer: NodeBuffer) => void): void; export function readSync(fd: number, buffer: NodeBuffer, offset: number, length: number, position: number): number; -/** - * readFile - * @param filename - * @param options - * string: encoding - * OpenOptions: options - * @param callback - */ export function readFile(filename: string, options: OpenOptions | string, callback: (err: Error, data: string) => void): void; export function readFile(filename: string, callback: (err: Error, data: NodeBuffer) => void): void; export function readFileSync(filename: string): NodeBuffer; -/** - * readFileSync - * @param filename - * @param options - * string: encoding - * OpenOptions: options - */ export function readFileSync(filename: string, options: OpenOptions | string): string; -/** - * writeFile - * @param filename - * @param data - * @param options - * string: encoding - * OpenOptions: options - * @param callback - */ export function writeFile(filename: string, data: any, callback?: (err: Error) => void): void; export function writeFile(filename: string, data: any, options: OpenOptions | string, callback?: (err: Error) => void): void; -/** - * writeFileSync - * @param filename - * @param data - * @param option - * string: encoding - * OpenOptions: options - */ export function writeFileSync(filename: string, data: any, option?: OpenOptions | string): void; -/** - * appendFile - * @param filename - * @param data - * @param option: - * string: encoding - * OpenOptions: options - * @param callback - */ export function appendFile(filename: string, data: any, callback?: (err: Error) => void): void; export function appendFile(filename: string, data: any, option: OpenOptions | string, callback?: (err: Error) => void): void; -/** - * appendFileSync - * @param filename - * @param data - * @param option - * string: encoding - * OpenOptions: options - */ export function appendFileSync(filename: string, data: any, option?: OpenOptions | string): void; export function watchFile(filename: string, listener: { curr: Stats; prev: Stats; }): void; export function watchFile(filename: string, options: { persistent?: boolean; interval?: number; }, listener: { curr: Stats; prev: Stats; }): void; @@ -252,32 +203,9 @@ export function futimesAsync(fd: number, atime: number, mtime: number): Promise< export function fsyncAsync(fd: number): Promise; export function writeAsync(fd: number, buffer: NodeBuffer, offset: number, length: number, position: number): Promise<[number, NodeBuffer]>; export function readAsync(fd: number, buffer: NodeBuffer, offset: number, length: number, position: number): Promise<[number, NodeBuffer]>; -/** - * readFileAsync - * @param filename - * @param options: - * string: encoding - * OpenOptions: options - */ export function readFileAsync(filename: string, options: OpenOptions | string): Promise; export function readFileAsync(filename: string): Promise; -/** - * writeFileAsync - * @param filename - * @param data - * @param options: - * string: encoding - * OpenOptions: options - */ export function writeFileAsync(filename: string, data: any, options?: OpenOptions | string): Promise; -/** - * appendFileAsync - * @param filename - * @param data - * @param option: - * string: encoding - * OpenOptions: option - */ export function appendFileAsync(filename: string, data: any, option?: OpenOptions | string): Promise; export function existsAsync(path: string): Promise; diff --git a/types/fs-extra-promise/index.d.ts b/types/fs-extra-promise/index.d.ts index 9d174f791f..de47c81a1e 100644 --- a/types/fs-extra-promise/index.d.ts +++ b/types/fs-extra-promise/index.d.ts @@ -19,14 +19,6 @@ export interface MkdirOptions { } // promisified versions -/** - * copyAsync - * @param src - * @param dest - * @param options - * CopyFilter: filter - * CopyOptions: options - */ export function copyAsync(src: string, dest: string, options?: CopyFilter | CopyOptions): Promise; export function createFileAsync(file: string): Promise; @@ -75,32 +67,9 @@ export function futimesAsync(fd: number, atime: number, mtime: number): Promise< export function fsyncAsync(fd: number): Promise; export function writeAsync(fd: number, buffer: NodeBuffer, offset: number, length: number, position: number): Promise<[number, NodeBuffer]>; export function readAsync(fd: number, buffer: NodeBuffer, offset: number, length: number, position: number): Promise<[number, NodeBuffer]>; -/** - * readFileAsync - * @param filename - * @param options: - * string: encoding - * ReadOptions: options - */ export function readFileAsync(filename: string, options: string | ReadOptions): Promise; export function readFileAsync(filename: string): Promise; -/** - * writeFileAsync - * @param filename - * @param data - * @param options: - * string: encoding - * WriteOptions: options - */ export function writeFileAsync(filename: string, data: any, options?: string | WriteOptions): Promise; -/** - * appendFileAsync - * @param filename - * @param data - * @param options: - * string: encoding - * WriteOptions: options - */ export function appendFileAsync(filename: string, data: any, option?: string | WriteOptions): Promise; export function existsAsync(path: string): Promise; diff --git a/types/fs-extra/index.d.ts b/types/fs-extra/index.d.ts index 60c112c68b..84548e48a4 100644 --- a/types/fs-extra/index.d.ts +++ b/types/fs-extra/index.d.ts @@ -154,15 +154,12 @@ export function lstat(path: string | Buffer): Promise; /** * Asynchronous mkdir - creates the directory specified in {path}. Parameter {mode} defaults to 0777. * - * @param path * @param callback No arguments other than a possible exception are given to the completion callback. */ export function mkdir(path: string | Buffer, callback: (err?: NodeJS.ErrnoException | null) => void): void; /** * Asynchronous mkdir - creates the directory specified in {path}. Parameter {mode} defaults to 0777. * - * @param path - * @param mode * @param callback No arguments other than a possible exception are given to the completion callback. */ export function mkdir(path: string | Buffer, mode: number | string, callback: (err?: NodeJS.ErrnoException | null) => void): void; @@ -200,7 +197,6 @@ export function rename(oldPath: string, newPath: string): Promise; /** * Asynchronous rmdir - removes the directory specified in {path} * - * @param path * @param callback No arguments other than a possible exception are given to the completion callback. */ export function rmdir(path: string | Buffer, callback: (err?: NodeJS.ErrnoException | null) => void): void; @@ -219,7 +215,6 @@ export function truncate(path: string | Buffer, len?: number): Promise; /** * Asynchronous unlink - deletes the file specified in {path} * - * @param path * @param callback No arguments other than a possible exception are given to the completion callback. */ export function unlink(path: string | Buffer, callback: (err?: NodeJS.ErrnoException | null) => void): void; @@ -245,7 +240,6 @@ export function writeFile(file: string | Buffer | number, data: any, options: { /** * Asynchronous mkdtemp - Creates a unique temporary directory. Generates six random characters to be appended behind a required prefix to create a unique temporary directory. * - * @param prefix * @param callback The created folder path is passed as a string to the callback's second parameter. */ export function mkdtemp(prefix: string): Promise; diff --git a/types/geodesy/index.d.ts b/types/geodesy/index.d.ts index 1d8ef3e110..d66de9fe3d 100644 --- a/types/geodesy/index.d.ts +++ b/types/geodesy/index.d.ts @@ -94,15 +94,12 @@ export class Utm { export namespace Dms { let separator: string; -} - -export class Dms { - static parseDMS(dmsStr: string): number; - static toDMS(deg: number, format?: format, dp?: 0 | 2 | 4): string; - static toLat(deg: number, format?: format, dp?: 0 | 2 | 4): string; - static toLon(deg: number, format?: format, dp?: 0 | 2 | 4): string; - static toBrng(deg: number, format?: format, dp?: 0 | 2 | 4): string; - static compassPoint(bearing: number, precision?: 1 | 2 | 3): string; + function parseDMS(dmsStr: string): number; + function toDMS(deg: number, format?: format, dp?: 0 | 2 | 4): string; + function toLat(deg: number, format?: format, dp?: 0 | 2 | 4): string; + function toLon(deg: number, format?: format, dp?: 0 | 2 | 4): string; + function toBrng(deg: number, format?: format, dp?: 0 | 2 | 4): string; + function compassPoint(bearing: number, precision?: 1 | 2 | 3): string; } export class Vector3d { diff --git a/types/geolib/index.d.ts b/types/geolib/index.d.ts index 8842c3eb20..b8638ecc71 100644 --- a/types/geolib/index.d.ts +++ b/types/geolib/index.d.ts @@ -47,25 +47,29 @@ declare namespace geolib { unit: string; } - /** Calculates the distance between two geo coordinates + /** + * Calculates the distance between two geo coordinates * * Return value is always float and represents the distance in meters. */ function getDistance(start: PositionAsDecimal|PositionAsSexadecimal, end: PositionAsDecimal|PositionAsSexadecimal, accuracy?: number, precision?: number): number; - /** Calculates the distance between two geo coordinates but this method is far more inaccurate as compared to getDistance. + /** + * Calculates the distance between two geo coordinates but this method is far more inaccurate as compared to getDistance. * It can take up 2 to 3 arguments. start, end and accuracy can be defined in the same as in getDistance. * * Return value is always float that represents the distance in meters. */ function getDistanceSimple(start: PositionAsDecimal|PositionAsSexadecimal, end: PositionAsDecimal|PositionAsSexadecimal, accuracy?: number): number; - /** Calculates the geographical center of all points in a collection of geo coordinates + /** + * Calculates the geographical center of all points in a collection of geo coordinates * Takes an object or array of coordinates and calculates the center of it. */ function getCenter(coords: PositionAsDecimal[]): PositionAsDecimal; - /** Calculates the center of the bounds of geo coordinates. Takes an array of coordinates, + /** + * Calculates the center of the bounds of geo coordinates. Takes an array of coordinates, * calculate the border of those, and gives back the center of that rectangle. On polygons * like political borders (eg. states), this may gives a closer result to human expectation, * than getCenter, because that function can be disturbed by uneven distribution of point in @@ -74,25 +78,29 @@ declare namespace geolib { */ function getCenterOfBounds(coords: PositionAsDecimal[]): PositionAsDecimal; - /** Calculates the bounds of geo coordinates. + /** + * Calculates the bounds of geo coordinates. * * Returns maximum and minimum, latitude, longitude, and elevation (if provided) in form of an object */ function getBounds(coords: PositionWithElevation[]): Bound; - /** Checks whether a point is inside of a polygon or not. Note: the polygon coords must be in correct order! + /** + * Checks whether a point is inside of a polygon or not. Note: the polygon coords must be in correct order! * * Returns true or false */ function isPointInside(latlng: PositionAsDecimal, polygon: PositionAsDecimal[]): boolean; - /** Similar to is point inside: checks whether a point is inside of a circle or not. + /** + * Similar to is point inside: checks whether a point is inside of a circle or not. * * Returns true or false */ function isPointInCircle(latlng: PositionAsDecimal, center: PositionAsDecimal, radius: number): boolean; - /** Gets rhumb line bearing of two points. Find out about the difference between rhumb line and great circle bearing on Wikipedia. + /** + * Gets rhumb line bearing of two points. Find out about the difference between rhumb line and great circle bearing on Wikipedia. * Rhumb line should be fine in most cases: http://en.wikipedia.org/wiki/Rhumb_line#General_and_mathematical_description Function * is heavily based on Doug Vanderweide's great PHP version (licensed under GPL 3.0) * http://www.dougv.com/2009/07/13/calculating-the-bearing-and-compass-rose-direction-between-two-latitude-longitude-coordinates-in-php/ @@ -101,13 +109,15 @@ declare namespace geolib { */ function getRhumbLineBearing(originLL: PositionAsDecimal, destLL: PositionAsDecimal): number; - /** Gets great circle bearing of two points. See description of getRhumbLineBearing for more information. + /** + * Gets great circle bearing of two points. See description of getRhumbLineBearing for more information. * * Returns calculated bearing as integer */ function getBearing(originLL: PositionAsDecimal, destLL: PositionAsDecimal): number; - /** Gets the compass direction from an origin coordinate (originLL) to a destination coordinate (destLL). + /** + * Gets the compass direction from an origin coordinate (originLL) to a destination coordinate (destLL). * Bearing mode. Can be either circle or rhumbline (default). * * Returns an object with a rough (NESW) and an exact direction (NNE, NE, ENE, E, ESE, etc). @@ -120,22 +130,27 @@ declare namespace geolib { /** Finds the nearest coordinate to a reference coordinate. */ function findNearest(latlng: PositionAsDecimal, coords: PositionAsDecimal[], offset?: number, limit?: number): Distance[]; - /** Calculates the length of a collection of coordinates. + /** + * Calculates the length of a collection of coordinates. * * Returns the length of the path in meters */ function getPathLength(coords: PositionAsDecimal[]): number; - /** Calculates the speed between two points within a given time span. + /** + * Calculates the speed between two points within a given time span. * * Returns the speed in options.unit (default is km/h). */ function getSpeed(coords: PositionInTime[], option?: SpeedOption): number; - /** Calculates if given point lies in a line formed by start and end */ + /** + * Calculates if given point lies in a line formed by start and end + */ function isPointInLine(point: PositionAsDecimal, start: PositionAsDecimal, end: PositionAsDecimal): boolean; - /** Converts a given distance (in meters) to another unit. + /** + * Converts a given distance (in meters) to another unit. * distance distance to be converted (source must be in meter). unit can be one of: * - m (meter) * - km (kilometers) @@ -155,17 +170,20 @@ declare namespace geolib { /** Converts a decimal coordinate to sexagesimal format */ function decimal2sexagesimal(coord: number): string; - /** Returns the latitude for a given point and converts it to decimal. + /** + * Returns the latitude for a given point and converts it to decimal. * Works with: latitude, lat, 1 (GeoJSON array) */ function latitude(latlng: any): number; - /** Returns the longitude for a given point and converts it to decimal. + /** + * Returns the longitude for a given point and converts it to decimal. * Works with: longitude, lng, lon, 0 (GeoJSON array) */ function longitude(latlng: any): number; - /** Returns the elevation for a given point and converts it to decimal. + /** + * Returns the elevation for a given point and converts it to decimal. * Works with: elevation, elev, alt, altitude, 2 (GeoJSON array) */ function elevation(latlng: any): number; @@ -173,7 +191,8 @@ declare namespace geolib { /** Checks if a coordinate is already in decimal format and, if not, converts it to */ function useDecimal(latlng: string|number): number; - /** Computes the destination point given an initial point, a distance (in meters) and a bearing (in degrees). + /** + * Computes the destination point given an initial point, a distance (in meters) and a bearing (in degrees). * If no radius is given it defaults to the mean earth radius of 6371000 meter. * * Returns an object: `{"latitude": destLat, "longitude": destLng}` diff --git a/types/google-protobuf/google-protobuf-tests.ts b/types/google-protobuf/google-protobuf-tests.ts index 19421754ac..ee9a1c8d66 100644 --- a/types/google-protobuf/google-protobuf-tests.ts +++ b/types/google-protobuf/google-protobuf-tests.ts @@ -93,15 +93,15 @@ class MySimple extends jspb.Message { const field = reader.getFieldNumber(); switch (field) { case 1: - const value1 = /** @type {string} */ (reader.readString()); + const value1 = reader.readString(); msg.setMyString(value1); break; case 2: - const value2 = /** @type {boolean} */ (reader.readBool()); + const value2 = reader.readBool(); msg.setMyBool(value2); break; case 3: - const value3 = /** @type {string} */ (reader.readString()); + const value3 = reader.readString(); msg.addSomeLabels(value3); break; case 4: diff --git a/types/graphite-udp/index.d.ts b/types/graphite-udp/index.d.ts index 167b85673a..dbd07ddf43 100644 --- a/types/graphite-udp/index.d.ts +++ b/types/graphite-udp/index.d.ts @@ -55,10 +55,6 @@ export interface ClientOptions { /** * called when metrics are sent * Defaults to null - * - * @param {error} Error - * @param {metrics} - * @return void */ callback?(error: Error, metrics: any): void; } @@ -68,19 +64,11 @@ export class Client { /** * During the interval time option, if 2 or more metrics with the same name are sent, metrics will be added (summed) - * - * @param {name} - * @param {value} number - * @return void */ add(name: string, value: number): void; /** * During the interval time option, if 2 or more metrics with the same name are sent, the last one will be used - * - * @param {name} metric name (my.test.metric) - * @param {value} number - * @return void */ put(name: string, value: number): void; diff --git a/types/grecaptcha/index.d.ts b/types/grecaptcha/index.d.ts index 59d1fa6699..067139e6c9 100644 --- a/types/grecaptcha/index.d.ts +++ b/types/grecaptcha/index.d.ts @@ -46,21 +46,18 @@ declare namespace ReCaptchaV2 { * Optional. The color theme of the widget. * Accepted values: "light", "dark" * @default "light" - * @type {Theme} */ theme?: Theme; /** * Optional. The type of CAPTCHA to serve. * Accepted values: "audio", "image" * @default "image" - * @type {Type} */ type?: Type; /** * Optional. The size of the widget. * Accepted values: "compact", "normal", "invisible". * @default "compact" - * @type {Size} */ size?: Size; /** @@ -77,7 +74,6 @@ declare namespace ReCaptchaV2 { * Optional. The badge location for g-recaptcha with size of "invisible". * * @default "bottomright" - * @type {Badge} */ badge?: Badge; /** diff --git a/types/har-format/index.d.ts b/types/har-format/index.d.ts index 09ea2791fd..3ab7fd773e 100644 --- a/types/har-format/index.d.ts +++ b/types/har-format/index.d.ts @@ -82,7 +82,8 @@ export interface Browser { * http://www.softwareishard.com/blog/har-12-spec/#pages */ export interface Page { - /** Date and time stamp for the beginning of the page load + /** + * Date and time stamp for the beginning of the page load * * (ISO 8601 - `YYYY-MM-DDThh:mm:ss.sTZD`, * e.g. `2009-07-24T19:20:30.45+01:00`). @@ -266,19 +267,21 @@ export interface Page { * http://www.softwareishard.com/blog/har-12-spec/#pageTimings */ export interface PageTiming { - /** Content of the page loaded. Number of milliseconds since page load + /** + * Content of the page loaded. Number of milliseconds since page load * started (`page.startedDateTime`). * * Use `-1` if the timing does not apply to the current request. */ onContentLoad?: number; - /** Page is loaded (`onLoad` event fired). Number of milliseconds since + /** + * Page is loaded (`onLoad` event fired). Number of milliseconds since * page load started (`page.startedDateTime`). * * Use `-1` if the timing does not apply to the current request. */ onLoad?: number; - /** A comment provided by the user or the application */ + /** A comment provided by the user or the application */ comment?: string; _startRender?: number; } @@ -562,7 +565,8 @@ export interface Response { * of header objects._ */ headersSize: number; - /** Size of the received response body in bytes. + /** + * Size of the received response body in bytes. * * - Set to zero in case of responses coming from the cache (`304`). * - Set to `-1` if the info is not available. @@ -633,12 +637,14 @@ export interface QueryString { export interface PostData { /** Mime type of posted data. */ mimeType: string; - /** List of posted parameters (in case of URL encoded parameters). + /** + * List of posted parameters (in case of URL encoded parameters). * * _`text` and `params` fields are mutually exclusive._ */ params: Param[]; - /** Plain text posted data + /** + * Plain text posted data * * _`params` and `text` fields are mutually exclusive._ */ @@ -733,14 +739,16 @@ export interface Cache { comment?: string; } export interface CacheDetails { - /** Expiration time of the cache entry. + /** + * Expiration time of the cache entry. * * _(Format not documente but assumingly ISO 8601 - * `YYYY-MM-DDThh:mm:ss.sTZD`)_ */ expires?: string; - /** The last time the cache entry was opened. - * * + /** + * The last time the cache entry was opened. + * * _(Format not documente but assumingly ISO 8601 - * `YYYY-MM-DDThh:mm:ss.sTZD`)_ */ diff --git a/types/haversine/index.d.ts b/types/haversine/index.d.ts index aa3c0cb1aa..6fed860d8b 100644 --- a/types/haversine/index.d.ts +++ b/types/haversine/index.d.ts @@ -23,9 +23,6 @@ declare namespace haversine { /** * Determines the great-circle distance between two points on a sphere given their longitudes and latitudes - * @param start - * @param end - * @param options */ declare function haversine( start: haversine.Coordinate, diff --git a/types/hls.js/index.d.ts b/types/hls.js/index.d.ts index f496f2d165..3567db3f87 100644 --- a/types/hls.js/index.d.ts +++ b/types/hls.js/index.d.ts @@ -1540,7 +1540,7 @@ declare namespace Hls { * Customized text track syncronization controller. */ interface TimelineController { - /**d + /** * clean-up all used resources */ destory(): void; diff --git a/types/http-assert/index.d.ts b/types/http-assert/index.d.ts index 47b283db92..4e9ca6657d 100644 --- a/types/http-assert/index.d.ts +++ b/types/http-assert/index.d.ts @@ -4,49 +4,26 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /** - * @param {number} [status] the status code - * @param {string} [msg] the message of the error, defaulting to node's text for that status code - * @param {object} [opts] custom properties to attach to the error object + * @param status the status code + * @param msg the message of the error, defaulting to node's text for that status code + * @param opts custom properties to attach to the error object */ declare function assert(value: any, status?: number, msg?: string, opts?: {}): void; declare namespace assert { /** - * @param {number} [status] the status code - * @param {string} [msg] the message of the error, defaulting to node's text for that status code - * @param {object} [opts] custom properties to attach to the error object + * @param status the status code + * @param msg the message of the error, defaulting to node's text for that status code + * @param opts custom properties to attach to the error object */ - function equal(a: T, b: T, status?: number, msg?: string, opts?: {}): void; - /** - * @param {number} [status] the status code - * @param {string} [msg] the message of the error, defaulting to node's text for that status code - * @param {object} [opts] custom properties to attach to the error object - */ - function notEqual(a: T, b: T, status?: number, msg?: string, opts?: {}): void; - /** - * @param {number} [status] the status code - * @param {string} [msg] the message of the error, defaulting to node's text for that status code - * @param {object} [opts] custom properties to attach to the error object - */ - function strictEqual(a: T, b: T, status?: number, msg?: string, opts?: {}): void; - /** - * @param {number} [status] the status code - * @param {string} [msg] the message of the error, defaulting to node's text for that status code - * @param {object} [opts] custom properties to attach to the error object - */ - function notStrictEqual(a: T, b: T, status?: number, msg?: string, opts?: {}): void; - /** - * @param {number} [status] the status code - * @param {string} [msg] the message of the error, defaulting to node's text for that status code - * @param {object} [opts] custom properties to attach to the error object - */ - function deepEqual(a: T, b: T, status?: number, msg?: string, opts?: {}): void; - /** - * @param {number} [status] the status code - * @param {string} [msg] the message of the error, defaulting to node's text for that status code - * @param {object} [opts] custom properties to attach to the error object - */ - function notDeepEqual(a: T, b: T, status?: number, msg?: string, opts?: {}): void; + type Assert = (a: T, b: T, status?: number, msg?: string, opts?: {}) => void; + + const equal: Assert; + const notEqual: Assert; + const strictEqual: Assert; + const notStrictEqual: Assert; + const deepEqual: Assert; + const notDeepEqual: Assert; } export = assert; diff --git a/types/http-proxy/index.d.ts b/types/http-proxy/index.d.ts index 4ed829d390..6c4b885ac2 100644 --- a/types/http-proxy/index.d.ts +++ b/types/http-proxy/index.d.ts @@ -32,7 +32,6 @@ declare class Server extends events.EventEmitter { * @param req - Client request. * @param res - Client response. * @param options - Additionnal options. - * @param */ web( req: http.IncomingMessage, diff --git a/types/is-ip/index.d.ts b/types/is-ip/index.d.ts index c706d50397..70d8ebb88e 100644 --- a/types/is-ip/index.d.ts +++ b/types/is-ip/index.d.ts @@ -3,32 +3,14 @@ // Definitions by: coderslagoon // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -/** - * Check if input is IPv4 or IPv6. - * - * @param {input} input - * - * @returns {boolean} - */ +/** Check if input is IPv4 or IPv6. */ declare function isIp(input: string): boolean; declare namespace isIp { - /** - * Check if input is IPv4. - * - * @param {input} input - * - * @returns {boolean} - */ + /** Check if input is IPv4. */ function v4(input: string): boolean; - /** - * Check if input is IPv6. - * - * @param {input} input - * - * @returns {boolean} - */ + /** Check if input is IPv6. */ function v6(input: string): boolean; } diff --git a/types/is-number/index.d.ts b/types/is-number/index.d.ts index 27d7328456..fff535c46a 100644 --- a/types/is-number/index.d.ts +++ b/types/is-number/index.d.ts @@ -7,7 +7,7 @@ export = is_number; /** * Will test to see if the argument is a valid number, excluding Infinity and NaN. - * @param {*} num - Any value that should be tested for being a number - * @returns {boolean} - true if the parameter is a valid number, otherwise false + * @param num Any value that should be tested for being a number + * @returns true if the parameter is a valid number, otherwise false */ declare function is_number(num: any): boolean; diff --git a/types/jasmine-fixture/index.d.ts b/types/jasmine-fixture/index.d.ts index a49aeca029..82449ffc01 100644 --- a/types/jasmine-fixture/index.d.ts +++ b/types/jasmine-fixture/index.d.ts @@ -8,13 +8,14 @@ /** * Affixes the given jquery selectors into the body and will be removed after each spec - * @param {string} selector The JQuery selector to be added to the dom + * @param selector The JQuery selector to be added to the dom */ declare function affix(selector: string): JQuery; interface JQuery { - /** Affixes the given jquery selectors into the element and will be removed after each spec - * @param {string} selector The JQuery selector to be added to the dom + /** + * Affixes the given jquery selectors into the element and will be removed after each spec + * @param selector The JQuery selector to be added to the dom */ affix(selector: string): JQuery; } diff --git a/types/jest/index.d.ts b/types/jest/index.d.ts index 80afeab207..18b3db361a 100644 --- a/types/jest/index.d.ts +++ b/types/jest/index.d.ts @@ -198,9 +198,9 @@ declare namespace jest { /** * Creates a test closure. * - * @param {string} name The name of your test - * @param {fn?} ProvidesCallback The function for your test - * @param {timeout?} timeout The timeout for an async function test + * @param name The name of your test + * @param fn The function for your test + * @param timeout The timeout for an async function test */ (name: string, fn?: ProvidesCallback, timeout?: number): void; /** @@ -290,7 +290,7 @@ declare namespace jest { * The `expect` function is used every time you want to test a value. * You will rarely call `expect` by itself. * - * @param {any} actual The value to apply matchers against. + * @param actual The value to apply matchers against. */ (actual: any): Matchers; anything(): any; diff --git a/types/jquery-match-height/index.d.ts b/types/jquery-match-height/index.d.ts index 491a0dbe1d..2c2a69db67 100644 --- a/types/jquery-match-height/index.d.ts +++ b/types/jquery-match-height/index.d.ts @@ -14,8 +14,6 @@ interface JQueryMatchHeight { /** * Set all selected elements to the height of the tallest. * If the items are on multiple rows, the items of each row will be set to the tallest of that row. - * - * @param options */ (options?: JQueryMatchHeight.Options): JQuery; _update(): void; diff --git a/types/jsforce/query.d.ts b/types/jsforce/query.d.ts index d0353ec638..242d89b358 100644 --- a/types/jsforce/query.d.ts +++ b/types/jsforce/query.d.ts @@ -47,8 +47,8 @@ export class Query extends Readable implements Promise { where(conditions: Object | string): Query; // Implementing promise methods - then(onfulfilled?: any | undefined | null): Promise; - catch(onrejected?: any | undefined | null): Promise; + then(onfulfilled?: any): Promise; + catch(onrejected?: any): Promise; [Symbol.toStringTag]: "Promise"; } diff --git a/types/jsforce/tslint.json b/types/jsforce/tslint.json index 5fdd35f19c..3b1f082eb2 100644 --- a/types/jsforce/tslint.json +++ b/types/jsforce/tslint.json @@ -4,6 +4,7 @@ // TODOs "ban-types": false, "no-any-union": false, + "no-unnecessary-class": false, "no-unnecessary-generics": false } } diff --git a/types/json-rpc-ws/index.d.ts b/types/json-rpc-ws/index.d.ts index c3023c409e..9faaeefd66 100644 --- a/types/json-rpc-ws/index.d.ts +++ b/types/json-rpc-ws/index.d.ts @@ -80,8 +80,6 @@ export class Base { getConnection(id: string): Connection; /** * Shut down all existing connections - * - * @public */ hangup(): void; } diff --git a/types/jsonfile/index.d.ts b/types/jsonfile/index.d.ts index bed60556a1..62227c9e84 100644 --- a/types/jsonfile/index.d.ts +++ b/types/jsonfile/index.d.ts @@ -8,13 +8,13 @@ import { Url } from 'url'; export type FSReadOptions = { - encoding?: null | undefined; - flag?: string | undefined; + encoding?: null; + flag?: string; } | null | undefined; export type FSWriteOptions = string | { - encoding?: string | null | undefined; - mode?: string | number | undefined; - flag?: string | undefined; + encoding?: string | null; + mode?: string | number; + flag?: string; } | null | undefined; export type ReadCallback = (err: NodeJS.ErrnoException | null, data: Buffer) => void; @@ -29,23 +29,23 @@ export interface FS { } export type JFReadOptions = { - encoding?: null | undefined; - flag?: string | undefined; + encoding?: null; + flag?: string; throws?: boolean; fs?: FS; - reviver?: ((key: any, value: any) => any) | undefined; + reviver?: (key: any, value: any) => any; } | null | undefined; export type JFWriteOptions = string | { - encoding?: string | null | undefined; - mode?: string | number | undefined; - flag?: string | undefined; + encoding?: string | null; + mode?: string | number; + flag?: string; throws?: boolean; fs?: FS; EOL?: string; - spaces?: string | number | undefined; - replacer?: ((key: string, value: any) => any) | undefined; - } | null | undefined; + spaces?: string | number; + replacer?: (key: string, value: any) => any; + } | null; export type JFReadCallback = (err: NodeJS.ErrnoException | null, data: any) => void; diff --git a/types/jsrp/index.d.ts b/types/jsrp/index.d.ts index 27f52c9e91..6cdb2abd7f 100644 --- a/types/jsrp/index.d.ts +++ b/types/jsrp/index.d.ts @@ -28,58 +28,58 @@ export class client { /** * Initialise the client SRP and calculate needed SRP values - * @param {ClientOptions} options - the client options including the username and password - * @param {function(): any} callback - called when the client instance is ready to use + * @param options - the client options including the username and password + * @param callback - called when the client instance is ready to use */ init(options: ClientOptions, callback: () => any): void; /** * Returns the hex representation of the client's A value - * @returns {string} - hex representation of A + * @returns hex representation of A */ getPublicKey(): string; /** * Set the salt generated by the server for later computations - * @param {string} hexSalt - hex value of the salt + * @param hexSalt - hex value of the salt */ setSalt(hexSalt: string): void; /** * Sets the server's B value on the client and compute values to complete authentication - * @param {string} hexB - hex representation of B + * @param hexB - hex representation of B * @throws Will throw an error if the server provides an incorrect value */ setServerPublicKey(hexB: string): void; /** * Returns the hex representation of the client's M1 proof - * @returns {string} - hex representation of M1 + * @returns hex representation of M1 */ getProof(): string; /** * Verifies the server's M2 proof against the client's. Only call after using {@link getProof}. - * @param {string} hexM2 - hex representation of M2 - * @returns {boolean} - true if it matches the client's proof, false if it doesn't + * @param hexM2 - hex representation of M2 + * @returns true if it matches the client's proof, false if it doesn't */ checkServerProof(hexM2: string): boolean; /** * Returns the hex representation of the shared secret key, K - * @returns {string} - hex representation of K + * @returns hex representation of K */ getSharedKey(): string; /** * Generate the v and salt values from values passed into init(). - * @param {function(*, Verifier): *} callback - callback has an error as the first argument, or an object containing the verifier and salt as the second. + * @param callback - callback has an error as the first argument, or an object containing the verifier and salt as the second. */ createVerifier(callback: (error: any, result: Verifier) => any): void; /** * Returns the hex representation of the salt - * @returns {string} - hex representation of the salt + * @returns hex representation of the salt */ getSalt(): string; } @@ -90,46 +90,46 @@ export class server { /** * Initialise the server SRP and calculate needed SRP values - * @param {ServerOptions} options - the server options including the verifier and salt - * @param {function(): void} callback - called when the server instance is ready to use + * @param options - the server options including the verifier and salt + * @param callback - called when the server instance is ready to use */ init(options: ServerOptions, callback: () => any): void; /** * Returns the hex representation of the server's B value - * @returns {string} - hex representation of B + * @returns hex representation of B */ getPublicKey(): string; /** * Returns the hex representation of the salt, as was passed into {@link init} - * @returns {string} - hex representation of the salt + * @returns hex representation of the salt */ getSalt(): string; /** * Sets the client's A value on the server, and compute values to complete authentication - * @param {string} hexA - hex representation of A + * @param hexA - hex representation of A * @throws Will throw an error if the client provides an incorrect value */ setClientPublicKey(hexA: string): void; /** * Returns the hex representation of the shared secret key, K - * @returns {string} - hex representation of K + * @returns hex representation of K */ getSharedKey(): string; /** * Verifies the clients's M1 proof against the server's. - * @param {string} M1hex - hex representation of M1 - * @returns {boolean} - true if it matches the server's proof, false if it doesn't + * @param M1hex - hex representation of M1 + * @returns true if it matches the server's proof, false if it doesn't */ checkClientProof(M1hex: string): boolean; /** * Returns the hex representation of the server's M2 proof - * @returns {string} - hex representation of M2 + * @returns hex representation of M2 */ getProof(): string; } diff --git a/types/jszip/index.d.ts b/types/jszip/index.d.ts index 0962f46ff8..a6253e60b8 100644 --- a/types/jszip/index.d.ts +++ b/types/jszip/index.d.ts @@ -64,8 +64,8 @@ declare namespace JSZip { /** * Prepare the content in the asked type. - * @param {String} type the type of the result. - * @param {OnUpdateCallback} onUpdate a function to call on each internal update. + * @param type the type of the result. + * @param onUpdate a function to call on each internal update. * @return Promise the promise of the result. */ async(type: T, onUpdate?: OnUpdateCallback): Promise; @@ -75,7 +75,8 @@ declare namespace JSZip { interface JSZipFileOptions { /** Set to `true` if the data is `base64` encoded. For example image data from a `` element. Plain text and HTML do not need this option. */ base64?: boolean; - /** Set to `true` if the data should be treated as raw content, `false` if this is a text. If `base64` is used, + /** + * Set to `true` if the data should be treated as raw content, `false` if this is a text. If `base64` is used, * this defaults to `true`, if the data is not a `string`, this will be set to `true`. */ binary?: boolean; diff --git a/types/kafka-node/tslint.json b/types/kafka-node/tslint.json index b1439230db..75a24b3163 100644 --- a/types/kafka-node/tslint.json +++ b/types/kafka-node/tslint.json @@ -1,7 +1,8 @@ { "extends": "dtslint/dt.json", "rules": { - // TODO - "no-any-union": false + // TODOs + "no-any-union": false, + "no-unnecessary-class": false } } diff --git a/types/keycloak-js/tslint.json b/types/keycloak-js/tslint.json index f2ffe2445b..df4e2dbdfb 100644 --- a/types/keycloak-js/tslint.json +++ b/types/keycloak-js/tslint.json @@ -1,6 +1,8 @@ { "extends": "dtslint/dt.json", "rules": { - "no-duplicate-imports": false + // TODOs + "no-duplicate-imports": false, + "no-redundant-jsdoc": false } } diff --git a/types/knuddels-userapps-api/tslint.json b/types/knuddels-userapps-api/tslint.json index 07a8255955..67eb97841e 100644 --- a/types/knuddels-userapps-api/tslint.json +++ b/types/knuddels-userapps-api/tslint.json @@ -1,7 +1,8 @@ { "extends": "dtslint/dt.json", "rules": { - // TODO - "no-mergeable-namespace": false + // TODOs + "no-mergeable-namespace": false, + "no-unnecsesary-class": false } } diff --git a/types/license-checker/index.d.ts b/types/license-checker/index.d.ts index ec4ec39658..d0286a05af 100644 --- a/types/license-checker/index.d.ts +++ b/types/license-checker/index.d.ts @@ -82,6 +82,5 @@ export interface ModuleInfos { /** * Run the license check * @param opts specifies the path to the module to check dependencies of - * @param callback */ export function init(opts: InitOpts, callback: (err: Error, ret: ModuleInfos) => void): void; diff --git a/types/line-by-line/index.d.ts b/types/line-by-line/index.d.ts index 605c5cd07e..9cfeab723c 100644 --- a/types/line-by-line/index.d.ts +++ b/types/line-by-line/index.d.ts @@ -13,7 +13,6 @@ export = LineByLineReader; interface LineByLineReader extends EventEmitter { /** * subscribe to an event emitted by reader - * @param event {@link LineByLineReaderEvent} * @param listener A void function with one param */ on(event: LineByLineReaderEvent, listener: (value: any) => void): this; diff --git a/types/linq4js/tslint.json b/types/linq4js/tslint.json index 3393f9dcca..bb491510c7 100644 --- a/types/linq4js/tslint.json +++ b/types/linq4js/tslint.json @@ -3,6 +3,7 @@ "rules": { // TODOs "no-any-union": false, + "no-unnecessary-class": false, "no-unnecessary-generics": false } } diff --git a/types/load-json-file/index.d.ts b/types/load-json-file/index.d.ts index d52a24d8fe..ec554289a5 100644 --- a/types/load-json-file/index.d.ts +++ b/types/load-json-file/index.d.ts @@ -6,15 +6,11 @@ interface LoadJsonFile { /** * Returns a promise for the parsed JSON. - * - * @param filepath */ (filepath: string): Promise; /** * Returns the parsed JSON. - * - * @param filepath */ sync(filepath: string): any; } diff --git a/types/make-dir/index.d.ts b/types/make-dir/index.d.ts index 905343c883..a47b86dfac 100644 --- a/types/make-dir/index.d.ts +++ b/types/make-dir/index.d.ts @@ -12,7 +12,6 @@ export = makeDir; /** * Returns a `Promise` for the path to the created directory. * @param path Directory to create. - * @param options */ declare function makeDir(path: string, options?: makeDir.Options): Promise; @@ -20,7 +19,6 @@ declare namespace makeDir { /** * Returns the path to the created directory. * @param path Directory to create. - * @param options */ function sync(path: string, options?: Options): string; diff --git a/types/merge2/index.d.ts b/types/merge2/index.d.ts index c9c6ddb606..e5f836658e 100644 --- a/types/merge2/index.d.ts +++ b/types/merge2/index.d.ts @@ -52,7 +52,7 @@ declare namespace merge2 { * If you set end === false in options, this event give you a notice that * you should add more streams to merge, or end the mergedStream. * - * @param {string} event The 'queueDrain' event + * @param event The 'queueDrain' event * * @return This stream */ diff --git a/types/modesl/tslint.json b/types/modesl/tslint.json index 3db14f85ea..6a82dd0467 100644 --- a/types/modesl/tslint.json +++ b/types/modesl/tslint.json @@ -1 +1,7 @@ -{ "extends": "dtslint/dt.json" } +{ + "extends": "dtslint/dt.json", + "rules": { + // TODO + "no-unnecessary-class": false + } +} diff --git a/types/morgan/index.d.ts b/types/morgan/index.d.ts index e557bd46d9..097758465a 100644 --- a/types/morgan/index.d.ts +++ b/types/morgan/index.d.ts @@ -49,8 +49,6 @@ declare namespace morgan { * client error codes, cyan for redirection codes, and uncolored for * all other codes. * :method :url :status :response-time ms - :res[content-length] - * @param format - * @param options */ (format: 'dev', options?: Options): express.RequestHandler; diff --git a/types/multer/index.d.ts b/types/multer/index.d.ts index 8682c57e3a..d6e73f9ddf 100644 --- a/types/multer/index.d.ts +++ b/types/multer/index.d.ts @@ -23,7 +23,8 @@ declare namespace multer { dest?: string; /** The storage engine to use for uploaded files. */ storage?: StorageEngine; - /** An object specifying the size limits of the following optional properties. This object is passed to busboy + /** + * An object specifying the size limits of the following optional properties. This object is passed to busboy * directly, and the details of properties can be found on https://github.com/mscdex/busboy#busboy-methods */ limits?: { diff --git a/types/multimatch/index.d.ts b/types/multimatch/index.d.ts index 3eeecc3791..67af567cfa 100644 --- a/types/multimatch/index.d.ts +++ b/types/multimatch/index.d.ts @@ -6,10 +6,8 @@ /** * Match utility function which supports multiple pattern globbing. * - * @param {string[]} paths list to match against. - * @param {string[]} patterns globbing patterns to use. e.g. `[*, "!cake"]`. - * @param {multimatch.MultimatchOptions} [options] - * @returns {string[]} + * @param paths list to match against. + * @param patterns globbing patterns to use. e.g. `[*, "!cake"]`. */ declare function multimatch(paths: string[], patterns: string | string[], options?: multimatch.MultimatchOptions): string[]; @@ -61,7 +59,8 @@ declare namespace multimatch { /** Suppress the behavior of treating a leading `!` character as negation. */ nonegate?: boolean; - /** Returns from negate expressions the same as if they were not negated. + /** + * Returns from negate expressions the same as if they were not negated. * (Ie, true on a hit, false on a miss.) */ flipNegate?: boolean; diff --git a/types/nedb-logger/index.d.ts b/types/nedb-logger/index.d.ts index 58f0fa718c..9ac1d823f3 100644 --- a/types/nedb-logger/index.d.ts +++ b/types/nedb-logger/index.d.ts @@ -12,7 +12,7 @@ declare class NeDBLoggerDataStore { /** * Insert a new document - * @param {Function} cb Optional callback, signature: err, insertedDoc + * @param cb Optional callback, signature: err, insertedDoc */ insert(newDoc: T, cb?: (err: Error, document: T) => void): void; } diff --git a/types/node-horseman/index.d.ts b/types/node-horseman/index.d.ts index 46ca810233..760bcd9527 100644 --- a/types/node-horseman/index.d.ts +++ b/types/node-horseman/index.d.ts @@ -103,7 +103,9 @@ declare class horseman { /** Fire a mouse event. */ mouseEvent(type?: string, x?: number, y?: number, button?: string): this; - /** Handles page events. * eventType can be one of: + /** + * Handles page events. + * eventType can be one of: * initialized - callback() * loadStarted - callback() * loadFinished - callback(status) diff --git a/types/node-pg-migrate/tslint.json b/types/node-pg-migrate/tslint.json index 1061428d6e..11ffe86764 100644 --- a/types/node-pg-migrate/tslint.json +++ b/types/node-pg-migrate/tslint.json @@ -1,6 +1,8 @@ { "extends": "dtslint/dt.json", "rules": { - "no-object-literal-type-assertion": false + // TODOs + "no-object-literal-type-assertion": false, + "no-unnecessary-class": false } } diff --git a/types/node-waves/index.d.ts b/types/node-waves/index.d.ts index b4f3f946ef..fd2cb4937c 100644 --- a/types/node-waves/index.d.ts +++ b/types/node-waves/index.d.ts @@ -46,21 +46,21 @@ export function init(config?: WavesConfig): void; * Attach ripple effect by adding `.waves-effect` to HTML element. * Make sure you call `init` to activate the ripple. * - * @param {ElementTarget} elements elements to target. - * @param {(string | string[])} [classes] classes to add. + * @param elements elements to target. + * @param classes classes to add. */ export function attach(elements: ElementTarget, classes?: string | string[]): void; /** * Creates a ripple effect in HTML element programmatically. - * @param {ElementTarget} elements elements to target (must have `.waves-effect` already applied, ideally via `attach`). - * @param {RippleOptions} [options] specify how long to wait between starting and stopping the ripple, and it's position inside the element. + * @param elements elements to target (must have `.waves-effect` already applied, ideally via `attach`). + * @param options specify how long to wait between starting and stopping the ripple, and it's position inside the element. */ export function ripple(elements: ElementTarget, options?: RippleOptions): void; /** * Removes all ripples from inside an element immediately. * - * @param {ElementTarget} elements elements to remove ripples from. + * @param elements elements to remove ripples from. */ export function calm(elements: ElementTarget): void; diff --git a/types/node-wit/tslint.json b/types/node-wit/tslint.json index 3db14f85ea..d5ed3f0240 100644 --- a/types/node-wit/tslint.json +++ b/types/node-wit/tslint.json @@ -1 +1,7 @@ -{ "extends": "dtslint/dt.json" } +{ + "extends": "dtslint/dt.json", + "rules": { + // TODOs + "no-unnecessary-class": false + } +} diff --git a/types/node-xmpp-core/index.d.ts b/types/node-xmpp-core/index.d.ts index 20937aae98..79d742cfd0 100644 --- a/types/node-xmpp-core/index.d.ts +++ b/types/node-xmpp-core/index.d.ts @@ -35,9 +35,8 @@ export class Stanza extends Element { * https://facebook.github.io/jsx/ * Returns a Stanza if name is presence, message or iq an ltx Element otherwise. * - * @param {string} name name of the element - * @param {any} attrs attribute key/value pairs - * @return {Element} Stanza or Element + * @param name name of the element + * @param attrs attribute key/value pairs */ export function createStanza(name: string, attrs?: any): Element; diff --git a/types/nodemailer/lib/addressparser.d.ts b/types/nodemailer/lib/addressparser.d.ts index 4a6f2962cf..dbf5cda468 100644 --- a/types/nodemailer/lib/addressparser.d.ts +++ b/types/nodemailer/lib/addressparser.d.ts @@ -16,8 +16,8 @@ declare namespace addressparser { * * [{name: 'Name', address: 'address@domain'}] * - * @param {String} str Address field - * @return {Array} An array of address objects + * @param str Address field + * @return An array of address objects */ declare function addressparser(address: string): addressparser.Address; diff --git a/types/openpgp/tslint.json b/types/openpgp/tslint.json index c28368c002..ee0546a40f 100644 --- a/types/openpgp/tslint.json +++ b/types/openpgp/tslint.json @@ -8,6 +8,7 @@ "jsdoc-format": false, "max-line-length": false, "no-consecutive-blank-lines": false, + "no-redundant-jsdoc": false, "no-var-keyword": false, "only-arrow-functions": false, "prefer-const": false, diff --git a/types/p-settle/index.d.ts b/types/p-settle/index.d.ts index 26acaccfb1..7298ea055e 100644 --- a/types/p-settle/index.d.ts +++ b/types/p-settle/index.d.ts @@ -22,8 +22,6 @@ declare namespace pSettle { * * `isFulfilled` * * `isRejected` * * `value` or `reason` (Depending on whether the promise fulfilled or rejected) - * - * @param input */ declare function pSettle(input: Iterable>): Promise>>; diff --git a/types/passport-oauth2/passport-oauth2-tests.ts b/types/passport-oauth2/passport-oauth2-tests.ts index 23f97c38ea..bfedf67dad 100644 --- a/types/passport-oauth2/passport-oauth2-tests.ts +++ b/types/passport-oauth2/passport-oauth2-tests.ts @@ -1,5 +1,4 @@ -// tslint:disable-next-line:no-duplicate-imports -import * as OAuth2Strategy from 'passport-oauth2'; +import OAuth2Strategy = require('passport-oauth2'); import { Strategy, StrategyOptions, StrategyOptionsWithRequest, VerifyCallback, AuthorizationError, TokenError, InternalOAuthError } from 'passport-oauth2'; import { Strategy as PassportStrategy } from 'passport'; import { Request } from 'express'; diff --git a/types/pikaday-time/index.d.ts b/types/pikaday-time/index.d.ts index d1cd056b79..bc8b76a2ef 100644 --- a/types/pikaday-time/index.d.ts +++ b/types/pikaday-time/index.d.ts @@ -18,7 +18,7 @@ declare class Pikaday { * Extends the existing configuration options for Pikaday object with the options provided. * Can be used to change/extend the configurations on runtime. * @param options full/partial configuration options. - * @returns {} extended configurations. + * @returns extended configurations. */ config(options: Pikaday.PikadayOptions): Pikaday.PikadayOptions; diff --git a/types/pikaday/index.d.ts b/types/pikaday/index.d.ts index 956356f265..9dc370054f 100644 --- a/types/pikaday/index.d.ts +++ b/types/pikaday/index.d.ts @@ -20,7 +20,7 @@ declare class Pikaday { * Extends the existing configuration options for Pikaday object with the options provided. * Can be used to change/extend the configurations on runtime. * @param options full/partial configuration options. - * @returns {} extended configurations. + * @returns extended configurations. */ config(options: Pikaday.PikadayOptions): Pikaday.PikadayOptions; diff --git a/types/polylabel/index.d.ts b/types/polylabel/index.d.ts index b9a16ed265..f43724741a 100644 --- a/types/polylabel/index.d.ts +++ b/types/polylabel/index.d.ts @@ -6,10 +6,9 @@ /** * Polylabel returns the pole of inaccessibility coordinate in [x, y] format. * - * @param {Array} polygon - Given polygon coordinates in GeoJSON-like format - * @param {number} precision - Precision (1.0 by default) - * @param {boolean} debug - Debugging for Console - * @return {Array} + * @param polygon - Given polygon coordinates in GeoJSON-like format + * @param precision - Precision (1.0 by default) + * @param debug - Debugging for Console * @example * var p = polylabel(polygon, 1.0); */ diff --git a/types/pouchdb-find/index.d.ts b/types/pouchdb-find/index.d.ts index d45b8c40bc..7e974b8921 100644 --- a/types/pouchdb-find/index.d.ts +++ b/types/pouchdb-find/index.d.ts @@ -45,7 +45,8 @@ declare namespace PouchDB { /** Special condition to match the length of an array field in a document. Non-array fields cannot match this condition. */ $size?: number; - /** Divisor and Remainder are both positive or negative integers. + /** + * Divisor and Remainder are both positive or negative integers. * Non-integer values result in a 404 status. * Matches documents where (field % Divisor == Remainder) is true, and only when the document field is an integer. * [divisor, remainder] diff --git a/types/prosemirror-inputrules/tslint.json b/types/prosemirror-inputrules/tslint.json index f93cf8562a..f0f7a6f17a 100644 --- a/types/prosemirror-inputrules/tslint.json +++ b/types/prosemirror-inputrules/tslint.json @@ -1,3 +1,7 @@ { - "extends": "dtslint/dt.json" + "extends": "dtslint/dt.json", + "rules": { + // TODO + "no-unnecessary-class": false + } } diff --git a/types/prosemirror-markdown/tslint.json b/types/prosemirror-markdown/tslint.json index 3db14f85ea..d5ed3f0240 100644 --- a/types/prosemirror-markdown/tslint.json +++ b/types/prosemirror-markdown/tslint.json @@ -1 +1,7 @@ -{ "extends": "dtslint/dt.json" } +{ + "extends": "dtslint/dt.json", + "rules": { + // TODOs + "no-unnecessary-class": false + } +} diff --git a/types/qr-image/index.d.ts b/types/qr-image/index.d.ts index 593adce02f..a84f9b10ce 100644 --- a/types/qr-image/index.d.ts +++ b/types/qr-image/index.d.ts @@ -10,16 +10,9 @@ */ export type ec_level = 'L' | 'M' | 'Q' | 'H'; -/** - * image type. Possible values png (default), svg, pdf and eps. - */ +/** @default 'png' */ export type image_type = 'png' | 'svg' | 'pdf' | 'eps'; -/** - * image options object: - * - * @interface IOptions - */ export interface Options { ec_level?: ec_level; // error correction level. One of L, M, Q, H. Default M. type?: image_type; // image type. Possible values png(default), svg, pdf and eps. @@ -29,12 +22,12 @@ export interface Options { } export function image(text: string, level?: ec_level): NodeJS.ReadableStream; -export function image(text: string, optoins?: Options): NodeJS.ReadableStream; +export function image(text: string, options?: Options): NodeJS.ReadableStream; export function imageSync(text: string, level?: ec_level): Buffer; -export function imageSync(text: string, optoins?: Options): string | Buffer; +export function imageSync(text: string, options?: Options): string | Buffer; export function svgObject(text: string, level?: ec_level): any; -export function svgObject(text: string, optoins?: Options): any; +export function svgObject(text: string, options?: Options): any; export function matrix(text: string, level?: ec_level): any[][]; diff --git a/types/query-string/index.d.ts b/types/query-string/index.d.ts index f2145df75f..e7f51453eb 100644 --- a/types/query-string/index.d.ts +++ b/types/query-string/index.d.ts @@ -13,7 +13,6 @@ export interface ParseOptions { /** * Parse a query string into an object. * Leading ? or # are ignored, so you can pass location.search or location.hash directly. - * @param str */ export function parse(str: string, options?: ParseOptions): any; @@ -25,14 +24,10 @@ export interface StringifyOptions { /** * Stringify an object into a query string, sorting the keys. - * - * @param obj */ export function stringify(obj: object, options?: StringifyOptions): string; /** * Extract a query string from a URL that can be passed into .parse(). - * - * @param str */ export function extract(str: string): string; diff --git a/types/quill/tslint.json b/types/quill/tslint.json index b1439230db..b7d2f20244 100644 --- a/types/quill/tslint.json +++ b/types/quill/tslint.json @@ -1,7 +1,8 @@ { "extends": "dtslint/dt.json", "rules": { - // TODO - "no-any-union": false + // TODOs + "no-any-union": false, + "no-redundant-jsdoc": false } } diff --git a/types/relay-runtime/tslint.json b/types/relay-runtime/tslint.json index f93cf8562a..f0f7a6f17a 100644 --- a/types/relay-runtime/tslint.json +++ b/types/relay-runtime/tslint.json @@ -1,3 +1,7 @@ { - "extends": "dtslint/dt.json" + "extends": "dtslint/dt.json", + "rules": { + // TODO + "no-unnecessary-class": false + } } diff --git a/types/remove-markdown/index.d.ts b/types/remove-markdown/index.d.ts index 6268109366..57e1bdea8c 100644 --- a/types/remove-markdown/index.d.ts +++ b/types/remove-markdown/index.d.ts @@ -8,7 +8,6 @@ export = RemoveMarkdown; /** * Strip Markdown formatting from text * @param markdown Markdown text - * @param options */ declare function RemoveMarkdown(markdown: string, options?: { stripListLeaders?: boolean diff --git a/types/restify-plugins/index.d.ts b/types/restify-plugins/index.d.ts index fd9688c937..05a289c529 100644 --- a/types/restify-plugins/index.d.ts +++ b/types/restify-plugins/index.d.ts @@ -309,7 +309,7 @@ export function dateParser(delta?: number): RequestHandler; export function gzipResponse(options?: any): RequestHandler; export interface ServeStatic { - appendRequestPath?: boolean | undefined; + appendRequestPath?: boolean; directory?: string; maxAge?: number; match?: any; diff --git a/types/restling/index.d.ts b/types/restling/index.d.ts index 02a083078a..2a06d6c3aa 100644 --- a/types/restling/index.d.ts +++ b/types/restling/index.d.ts @@ -9,93 +9,93 @@ import { ServerResponse } from "http"; /** * Create a DELETE request. - * @param {string} url A url address. - * @param {RestlingOptions} options Options. - * @return {Promise} Result. + * @param url A url address. + * @param options Options. + * @return Result. */ export function del(url: string, options?: RestlingOptions): Promise; /** * Create a GET request. - * @param {string} url A url address. - * @param {RestlingOptions} options Options. - * @return {Promise} Result. + * @param url A url address. + * @param options Options. + * @return Result. */ export function get(url: string, options?: RestlingOptions): Promise; /** * Create a HEAD request. - * @param {string} url A url address. - * @param {RestlingOptions} options Options. - * @return {Promise} Result. + * @param url A url address. + * @param options Options. + * @return Result. */ export function head(url: string, options?: RestlingOptions): Promise; /** * Send json data via GET method. - * @param {string} url A url address. - * @param {any} data JSON body - * @param {RestlingOptions} options Options. - * @return {Promise} Result. + * @param url A url address. + * @param data JSON body + * @param options Options. + * @return Result. */ export function json(url: string, data?: any, options?: RestlingOptions, method?: string): Promise; /** * Create a PATCH request. - * @param {string} url A url address. - * @param {RestlingOptions} options Options. - * @return {Promise} Result. + * @param url A url address. + * @param options Options. + * @return Result. */ export function patch(url: string, options?: RestlingOptions): Promise; /** * Send json data via PATCH method. - * @param {string} url A url address. - * @param {any} data JSON body - * @param {RestlingOptions} options Options. - * @return {Promise} Result. + * @param url A url address. + * @param data JSON body + * @param options Options. + * @return Result. */ export function patchJson(url: string, data?: any, options?: RestlingOptions): Promise; /** * Create a POST request. - * @param {string} url A url address. - * @param {RestlingOptions} options Options. - * @return {Promise} Result. + * @param url A url address. + * @param options Options. + * @return Result. */ export function post(url: string, options?: RestlingOptions): Promise; /** * Send json data via POST method. - * @param {string} url A url address. - * @param {any} data JSON body - * @param {RestlingOptions} options Options. - * @return {Promise} Result. + * @param url A url address. + * @param data JSON body + * @param options Options. + * @return Result. */ export function postJson(url: string, data?: any, options?: RestlingOptions): Promise; /** * Create a PUT request. - * @param {string} url A url address. - * @param {RestlingOptions} options Options. - * @return {Promise} Result. + * @param url A url address. + * @param options Options. + * @return Result. */ export function put(url: string, options?: RestlingOptions): Promise; /** * Send json data via PUT method. - * @param {string} url A url address. - * @param {any} data JSON body - * @param {RestlingOptions} options Options. - * @return {Promise} Result. + * @param url A url address. + * @param data JSON body + * @param options Options. + * @return Result. */ export function putJson(url: string, data?: any, options?: RestlingOptions): Promise; /** * Create a request. - * @param {string} url A url address. - * @param {RestlingOptions} options Options. - * @return {Promise} Result. + * @param url A url address. + * @param options Options. + * @return Result. */ export function request(url: string, options?: RestlingOptions): Promise; @@ -107,7 +107,6 @@ export function allAsync(requests: { [key: string]: { url: string, options?: Res /** * Interface for the result. - * @interface */ export interface RestlingResult { data?: any; @@ -116,7 +115,6 @@ export interface RestlingResult { /** * Interface for the header. - * @interface */ export interface RestlerOptionsHeader { [headerName: string]: string; @@ -124,109 +122,91 @@ export interface RestlerOptionsHeader { /** * Interface for restler options. - * @interface */ export interface RestlingOptions { /** * OAuth Bearer Token. - * @type {string} */ accessToken?: string; /** * HTTP Agent instance to use. If not defined globalAgent will be used. If false opts out of connection pooling with an Agent, defaults request to Connection: close. - * @type {any} */ agent?: any; /** * A http.Client instance if you want to reuse or implement some kind of connection pooling. - * @type {any} */ client?: any; /** * Data to be added to the body of the request. - * @type {any} */ data?: any; /** * Encoding of the response body - * @type {string} */ decoding?: string; /** * Encoding of the request body. - * @type {string} */ encoding?: string; /** * If set will recursively follow redirects. - * @type {boolean} */ followRedirects?: boolean; /** * A hash of HTTP headers to be sent. - * @type {RestlerOptionsHeader} */ headers?: RestlerOptionsHeader; /** * Request method - * @type {string} */ method?: string; /** * If set the data passed will be formatted as multipart/form-encoded. - * @type {boolean} */ multipart?: boolean; /** * A function that will be called on the returned data. Use any of predefined restler.parsers. - * @type {any} */ parser?: any; /** * Basic auth password. - * @type {string} */ password?: string; /** * Query string variables as a javascript object, will override the querystring in the URL. - * @type {any} */ query?: any; /** * If true, the server certificate is verified against the list of supplied CAs. * An 'error' event is emitted if verification fails. Verification happens at the connection level, before the HTTP request is sent. - * @type {boolean} */ rejectUnauthorized?: boolean; /** * Emit the timeout event when the response does not return within the said value (in ms). - * @type {number} */ timeout?: number; /** * Basic auth username. - * @type {string} */ username?: string; /** * Options for xml2js. - * @type {any} */ xml2js?: any; } diff --git a/types/rfc2047/index.d.ts b/types/rfc2047/index.d.ts index 224ec8bbd0..a7b05e08fc 100644 --- a/types/rfc2047/index.d.ts +++ b/types/rfc2047/index.d.ts @@ -5,14 +5,14 @@ /** * Decode - * @param {string} encodedText Encoded Text - * @return {string} Decoded Text + * @param encodedText Encoded Text + * @return Decoded Text */ export function decode(encodedText: string): string; /** * Encode - * @param {string} decodedText Decoded Text - * @return {string} Encoded Text + * @param decodedText Decoded Text + * @return Encoded Text */ export function encode(decodedText: string): string; diff --git a/types/riot/index.d.ts b/types/riot/index.d.ts index 079132db72..2a7a22b596 100644 --- a/types/riot/index.d.ts +++ b/types/riot/index.d.ts @@ -66,8 +66,8 @@ export interface StyleManager { /** * Save a tag style to be later injected into DOM - * @param {string} css - css string - * @param {string} name - if it's passed the css will be mapped to a tagname + * @param css - css string + * @param name - if it's passed the css will be mapped to a tagname */ add(css: string, name?: string): void; @@ -109,7 +109,7 @@ export interface DOMUtil { /** * Check if a DOM node is an svg element * @param element - node to check - * @returns { boolean } True if element is an svg element + * @returns True if element is an svg element */ isSvg(element: Element): element is SVGElement; @@ -715,7 +715,7 @@ export function compile(callback: () => void): void; * Compiles the given tag but doesn't execute it, if `skipExecution` parameter is `true` * @param tag Tag definition * @param skipExecution If `true` tag is not executed after compilation - * @return {string} Compiled JavaScript as string + * @return Compiled JavaScript as string */ export function compile(tag: string, skipExecution?: boolean): string; diff --git a/types/safe-regex/index.d.ts b/types/safe-regex/index.d.ts index 582f8fa443..41aca4c6b3 100644 --- a/types/safe-regex/index.d.ts +++ b/types/safe-regex/index.d.ts @@ -4,4 +4,4 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped export = safe_regex; -declare function safe_regex(re: string | RegExp, opts?: { limit?: number | undefined }): boolean; +declare function safe_regex(re: string | RegExp, opts?: { limit?: number }): boolean; diff --git a/types/sap__xsenv/index.d.ts b/types/sap__xsenv/index.d.ts index 3858f77feb..6f1b895a33 100644 --- a/types/sap__xsenv/index.d.ts +++ b/types/sap__xsenv/index.d.ts @@ -21,7 +21,7 @@ export function cfServiceCredentials(filter: ServiceFilter): any; /** * Returns an array of Cloud Foundry services matching the given filter. * - * @param filter {(string|Object|function)} + * @param filter * - if string, returns the service with the same service instance name (name property) * - if Object, should have some of these properties [name, label, tag, plan] and returns all services * where all of the given properties match. Given tag matches if it is present in the tags array. @@ -35,12 +35,12 @@ export function filterCFServices(filter: ServiceFilter): any; * * If a service is not found in VCAP_SERVICES, returns default service configuration loaded from a JSON file. * - * @param query {object} describes requested Cloud Foundry services, each property value is a filter + * @param query describes requested Cloud Foundry services, each property value is a filter * as described in filterCFServices. - * @param servicesFile {string} path to JSON file to load default service configuration (default is default-services.json). + * @param servicesFile path to JSON file to load default service configuration (default is default-services.json). * If null, do not load default service configuration. * - * @returns {object} with the same properties as in query argument where the value of each + * @returns with the same properties as in query argument where the value of each * property is the respective service credentials object. * @throws Error, if for some of the requested services no or multiple instances are found; Error, if query parameter is not provided */ diff --git a/types/serialize-javascript/index.d.ts b/types/serialize-javascript/index.d.ts index deb4331961..b0331a3d03 100644 --- a/types/serialize-javascript/index.d.ts +++ b/types/serialize-javascript/index.d.ts @@ -9,7 +9,7 @@ declare namespace serializeJavascript { * This option is the same as the space argument that can be passed to JSON.stringify. * It can be used to add whitespace and indentation to the serialized output to make it more readable. */ - space?: string | number | undefined; + space?: string | number; /** * This option is a signal to serialize() that the object being serialized does not contain any function or regexps values. * This enables a hot-path that allows serialization to be over 3x faster. @@ -21,9 +21,9 @@ declare namespace serializeJavascript { /** * Serialize JavaScript to a superset of JSON that includes regular expressions and functions. - * @param {any} input data to serialize - * @param {serializeJavascript.SerializeJSOptions} options optional object - * @returns {string} serialized data + * @param input data to serialize + * @param options optional object + * @returns serialized data */ declare function serializeJavascript(input: any, options?: serializeJavascript.SerializeJSOptions): string; export = serializeJavascript; diff --git a/types/sha1/index.d.ts b/types/sha1/index.d.ts index 81b2202dc3..bb55d2f4fc 100644 --- a/types/sha1/index.d.ts +++ b/types/sha1/index.d.ts @@ -8,9 +8,9 @@ /** * js function for hashing messages with SHA1 * - * @param {(string | Buffer)} message - a string or buffer to hash - * @param {Sha1Options} options - an options object - * @returns {string} the resultant SHA1 hash of the given message + * @param message - a string or buffer to hash + * @param options - an options object + * @returns the resultant SHA1 hash of the given message */ declare function main(message: string | Buffer, options?: Sha1Options): string | Uint8Array; export = main; diff --git a/types/simple-oauth2/index.d.ts b/types/simple-oauth2/index.d.ts index 37add22766..499f39e56e 100644 --- a/types/simple-oauth2/index.d.ts +++ b/types/simple-oauth2/index.d.ts @@ -83,7 +83,7 @@ export interface OAuthClient { authorizationCode: { /** * Redirect the user to the autorization page - * @return {string} the absolute authorization url + * @return the absolute authorization url */ authorizeURL(params?: { /** A string that represents the registered application URI where the user is redirected after authentication */ diff --git a/types/sinon/index.d.ts b/types/sinon/index.d.ts index f8258efc95..9442289490 100644 --- a/types/sinon/index.d.ts +++ b/types/sinon/index.d.ts @@ -529,7 +529,7 @@ declare namespace Sinon { /** * Creates a new object with the given functions as the prototype and stubs all implemented functions. * - * @type TType Type being stubbed. + * @template TType Type being stubbed. * @param constructor Object or class to stub. * @returns A stubbed version of the constructor. * @remarks The given constructor function is not invoked. See also the stub API. @@ -543,7 +543,7 @@ declare namespace Sinon { /** * Stubbed type of an object with members replaced by stubs. * - * @type TType Type being stubbed. + * @template TType Type being stubbed. */ interface StubbableType { new(...args: any[]): TType; @@ -552,7 +552,7 @@ declare namespace Sinon { /** * An instance of a stubbed object type with members replaced by stubs. * - * @type TType Object type being stubbed. + * @template TType Object type being stubbed. */ type SinonStubbedInstance = { [P in keyof TType]: SinonStub; diff --git a/types/slocket/index.d.ts b/types/slocket/index.d.ts index a33ab9ffd8..c21fb10c23 100644 --- a/types/slocket/index.d.ts +++ b/types/slocket/index.d.ts @@ -19,9 +19,9 @@ interface Slocket { declare namespace slocket { interface Slocket extends EventEmitter { then( - onfulfilled?: ((value: Lock) => TResult1 | PromiseLike) | undefined | null, - onrejected?: ((reason: any) => TResult2 | PromiseLike) | undefined | null): Promise; - catch(onrejected?: ((reason: any) => TResult | PromiseLike) | undefined | null): Promise; + onfulfilled?: ((value: Lock) => TResult1 | PromiseLike) | null, + onrejected?: ((reason: any) => TResult2 | PromiseLike) | null): Promise; + catch(onrejected?: ((reason: any) => TResult | PromiseLike) | null): Promise; } interface Lock { diff --git a/types/snazzy-info-window/index.d.ts b/types/snazzy-info-window/index.d.ts index e4f644ece0..bf0f527b28 100644 --- a/types/snazzy-info-window/index.d.ts +++ b/types/snazzy-info-window/index.d.ts @@ -304,7 +304,6 @@ declare class SnazzyInfoWindow extends google.maps.OverlayView { * Set the position of the info window. * A valid Google Map instance must be associated to the info window. * This could be either through the marker or map option. - * @param latLng */ setPosition(latLng: google.maps.LatLng | google.maps.LatLngLiteral): void; diff --git a/types/soundmanager2/index.d.ts b/types/soundmanager2/index.d.ts index d211e4c359..5f5e9a1ffb 100644 --- a/types/soundmanager2/index.d.ts +++ b/types/soundmanager2/index.d.ts @@ -60,7 +60,6 @@ declare namespace soundmanager { * soundmanager2_flash9.swf and debug versions etc.) Note that SM2 will * append the correct SWF file name, depending on flashVersion and * debugMode settings. - * @type {string} */ url?: string; @@ -110,8 +109,6 @@ declare namespace soundmanager { clearOnPosition(id: string, msecOffset: number, callback?: (() => void)): SMSound; /** * Creates a sound object, supporting an arbitrary number of optional arguments. Returns a SMSound object instance. At minimum, a url parameter is required. - * @param {SoundProperties} properties [description] - * @return {SMSound} [description] */ createSound(properties: SoundProperties): SMSound; destroySound(id: string): void; @@ -135,7 +132,7 @@ declare namespace soundmanager { setVolume(id: string, volume: number): SMSound; /** * Sets the volume of all sound objects. Accepted values: 0-100. Affects volume property. - * @param {number} volume [Volume of all sound objects. Accepted values: 0 - 100] + * @param volume Volume of all sound objects. Accepted values: 0 - 100 */ setVolume(volume: number): void; stop(id: string): SMSound; diff --git a/types/sshpk/tslint.json b/types/sshpk/tslint.json index 3db14f85ea..6a82dd0467 100644 --- a/types/sshpk/tslint.json +++ b/types/sshpk/tslint.json @@ -1 +1,7 @@ -{ "extends": "dtslint/dt.json" } +{ + "extends": "dtslint/dt.json", + "rules": { + // TODO + "no-unnecessary-class": false + } +} diff --git a/types/string-similarity/string-similarity-tests.ts b/types/string-similarity/string-similarity-tests.ts index 216c1dedf2..1e5003522c 100644 --- a/types/string-similarity/string-similarity-tests.ts +++ b/types/string-similarity/string-similarity-tests.ts @@ -9,16 +9,11 @@ const match: stringSimilarity.BestMatch = stringSimilarity.findBestMatch('Olive- ]); // ratings accessible -for (const rating of match.ratings){ - isString(rating.target); - isNumber(rating.rating); +for (const rating of match.ratings) { + rating.target; // $ExpectType string + rating.rating; // $ExpectType number } // bestMatch accessible match.bestMatch.rating; match.bestMatch.target; - -function isString(x: string): void { -} -function isNumber(x: number): void { -} diff --git a/types/strong-cluster-control/index.d.ts b/types/strong-cluster-control/index.d.ts index e0b3fb5c12..d0d577236c 100644 --- a/types/strong-cluster-control/index.d.ts +++ b/types/strong-cluster-control/index.d.ts @@ -53,7 +53,6 @@ declare namespace StrongClusterControl { /** * @description Stop the controller, after stopping workers (if the size is being controlled, see setSize()). - * @param callback */ stop(callback?: () => any): this; diff --git a/types/sumo-logger/index.d.ts b/types/sumo-logger/index.d.ts index 9ada2e9051..bc89e0eaa8 100644 --- a/types/sumo-logger/index.d.ts +++ b/types/sumo-logger/index.d.ts @@ -118,7 +118,8 @@ declare class SumoLogger { */ log(event: Partial & T): void; - /** Force any pending logs to be sent immediately. This is mainly for use in a + /** + * Force any pending logs to be sent immediately. This is mainly for use in a * logOut/`window.onBeforeUnload` flow to ensure that any remaining queued * messages are sent to Sumo Logic. */ diff --git a/types/swagger-sails-hook/index.d.ts b/types/swagger-sails-hook/index.d.ts index 203dc5d62f..6376d6d94b 100644 --- a/types/swagger-sails-hook/index.d.ts +++ b/types/swagger-sails-hook/index.d.ts @@ -14,7 +14,7 @@ export = SwaggerHook; /** * Create a new `swagger-sails-hook` sails hook and register it with `sails` - * @param {any} sails - reference to the running sails instance + * @param sails - reference to the running sails instance * @returns SailsHook - `swagger-sails-hook` object implementing the Sails' hook specification. */ declare function SwaggerHook(sails: any): SwaggerHook.SailsHook; @@ -30,7 +30,7 @@ declare namespace SwaggerHook { /** * Perform startup tasks. * All Sails configuration is guaranteed to be completed before a hook’s initialize function runs. - * @param {Function} done - called when `swagger-sails-hook`'s startup tasks have finished. + * @param done - called when `swagger-sails-hook`'s startup tasks have finished. */ initialize(done: () => any): void; diff --git a/types/tabris-plugin-firebase/index.d.ts b/types/tabris-plugin-firebase/index.d.ts index 3a9e7b350f..0ade0c9dcf 100644 --- a/types/tabris-plugin-firebase/index.d.ts +++ b/types/tabris-plugin-firebase/index.d.ts @@ -68,7 +68,6 @@ declare class NativeObject { /** * Gets the current value of the given *property*. - * @param property */ get(property: string): any; @@ -116,14 +115,11 @@ declare class NativeObject { /** * Sets the given property. - * @param property - * @param value */ set(property: string, value: any): this; /** * Sets all key-value pairs in the properties object as widget properties. - * @param properties */ set(properties: object): this; @@ -137,9 +133,8 @@ declare class NativeObject { /** * An application-wide unique identifier automatically assigned to all native objects on creation. - * @static */ - readonly cid: string; + static readonly cid: string; } interface PropertyChangedEvent { diff --git a/types/thrift/thrift-tests.ts b/types/thrift/thrift-tests.ts index da9e9eafa0..c829b8e41c 100644 --- a/types/thrift/thrift-tests.ts +++ b/types/thrift/thrift-tests.ts @@ -23,11 +23,9 @@ interface MockServiceHandlers { } class MockProcessor { - constructor() {} } class MockClient { - constructor() {} } const mockServiceHandlers: MockServiceHandlers = { diff --git a/types/tinymce/tslint.json b/types/tinymce/tslint.json index a42975357d..4df63472dd 100644 --- a/types/tinymce/tslint.json +++ b/types/tinymce/tslint.json @@ -3,6 +3,7 @@ "rules": { // TODOs "no-empty-interface": false, + "no-unnecessary-class": false, "no-unnecessary-generics": false } } diff --git a/types/tocktimer/index.d.ts b/types/tocktimer/index.d.ts index 20bd344c83..a48929f169 100644 --- a/types/tocktimer/index.d.ts +++ b/types/tocktimer/index.d.ts @@ -31,13 +31,12 @@ declare namespace t { class Tock { /** * Create a Tock instance - * @param opts */ constructor(opts?: TockOptions) /** * Start the timer - * @param [time] {Number} Optional. Can be either a countdown value or a starting value. + * @param time Can be either a countdown value or a starting value. * If a countdown timer then set time to count down from. * If a starting value then set time to the desired start time to count up from. */ @@ -65,14 +64,11 @@ declare namespace t { /** * Convert number of milliseconds to a MM:SS time string. Won't handle times greater than 1 hour - * @param ms */ msToTime: (ms: number) => string; /** * Convert number of milliseconds to timecode string - * @param ms - * @param showMs */ msToTimecode: (ms: number, showMs?: boolean) => string; @@ -80,7 +76,6 @@ declare namespace t { * Convert a time string to a number of milliseconds. Should be a duration as a string of form MM:SS, MM:SS:ms, MM:SS.ms, HH:MM:SS * Alternatively a time in the future can be provided using the form yyyy-mm-dd HH:MM:SS.ms. The difference between this time and present will be returned. * If the input cannot be recognized as one of the above then 0 is returned - * @param ms */ timeToMS: (time: string) => number; } diff --git a/types/undertaker-registry/index.d.ts b/types/undertaker-registry/index.d.ts index 02bff9fab3..34b56b4113 100644 --- a/types/undertaker-registry/index.d.ts +++ b/types/undertaker-registry/index.d.ts @@ -8,7 +8,7 @@ declare class UndertakerRegistry { * Returns the task with that name or undefined if no task is registered with that name. * Useful for custom task storage. * Custom registries can override this method when inheriting from this default registry. - * @param taskName {string} - Name of task. + * @param taskName - Name of task. */ get(taskName: string): TTaskFunction; @@ -16,7 +16,7 @@ declare class UndertakerRegistry { * No-op method that receives the undertaker instance. * Useful to set pre-defined tasks using the undertaker.task(taskName, fn) method. * Custom registries can override this method when inheriting from this default registry. - * @param taker {any} - Instance of undertaker. + * @param taker - Instance of undertaker. */ init(taker: any): void; @@ -25,8 +25,8 @@ declare class UndertakerRegistry { * If set modifies a task, it should return the new task so Undertaker can properly maintain metadata for the task. * Useful for adding custom behavior to every task as it is registered in the system. * Custom registries can override this method when inheriting from this default registry. - * @param taskName {string} - Name of task. - * @param fn {UndertakerRegistry.TaskFunction} - Task function. + * @param taskName - Name of task. + * @param fn - Task function. */ set(taskName: string, fn: TTaskFunction): TTaskFunction; diff --git a/types/universal-router/index.d.ts b/types/universal-router/index.d.ts index b17256ce77..47a7384872 100644 --- a/types/universal-router/index.d.ts +++ b/types/universal-router/index.d.ts @@ -60,9 +60,9 @@ export type Routes = Array>; * @template R Result that every action function resolves to. If the action * returns a Promise, R can be the type the Promise resolves to. * - * @param {Routes | Route} routes - Single route or array of routes. - * @param {string | String | Context & C} pathOrContext - path to resolve or + * @param routes - Single route or array of routes. + * @param pathOrContext - path to resolve or * context object that contains the path along with other data. - * @return {Promise} - Result of matched action function wrapped in a Promsie. + * @return - Result of matched action function wrapped in a Promsie. */ export function resolve(routes: Routes | Route, pathOrContext: string | String | Context & C): Promise; diff --git a/types/vast-client/index.d.ts b/types/vast-client/index.d.ts index 680e1e2dd8..4ab079a431 100644 --- a/types/vast-client/index.d.ts +++ b/types/vast-client/index.d.ts @@ -200,7 +200,7 @@ export interface VastRequestOptions { * A VAST XML document. When response is provided, no Ajax request is made and thus the url parameter is ignored. */ response?: string; - /**a + /** * A URL handler module, used to fetch the VAST document instead of the default ones. */ urlhandler?: any; diff --git a/types/viewerjs/index.d.ts b/types/viewerjs/index.d.ts index 28c26c911e..20a0806633 100644 --- a/types/viewerjs/index.d.ts +++ b/types/viewerjs/index.d.ts @@ -212,7 +212,6 @@ declare namespace Viewer { /** * Change the global default options. - * @param options */ function setDefaults(options: ViewerOption): void; @@ -222,7 +221,8 @@ declare namespace Viewer { function noConflict(): void; } -/** * JavaScript image viewer. +/** + * JavaScript image viewer. * @see {@link https://github.com/fengyuanchen/viewerjs} */ declare class Viewer { @@ -292,7 +292,6 @@ declare class Viewer { /** * Rotate the image to an absolute degree. - * @param degree */ rotateTo(degree: number): void; @@ -365,7 +364,8 @@ declare class Viewer { destroy(): void; } -/** JavaScript image viewer. +/** + * JavaScript image viewer. * @see {@link https://github.com/fengyuanchen/viewerjs} */ export = Viewer; diff --git a/types/vinyl-fs/index.d.ts b/types/vinyl-fs/index.d.ts index 4e0ac3317b..d3b13baeaa 100644 --- a/types/vinyl-fs/index.d.ts +++ b/types/vinyl-fs/index.d.ts @@ -108,12 +108,14 @@ export interface SrcOptions extends globStream.Options { } export interface DestOptions { - /** Specify the working directory the folder is relative to + /** + * Specify the working directory the folder is relative to * Default is process.cwd() */ cwd?: string; - /** Specify the mode the files should be created with + /** + * Specify the mode the files should be created with * Default is the mode of the input file (file.stat.mode) * or the process mode if the input file has no mode property */ @@ -125,12 +127,14 @@ export interface DestOptions { /** Specify if existing files with the same path should be overwritten or not. Default is true, to always overwrite existing files */ overwrite?: boolean; - /** Enables sourcemap support on files passed through the stream. Will write inline soucemaps if + /** + * Enables sourcemap support on files passed through the stream. Will write inline soucemaps if * specified as true. Specifying a string path will write external sourcemaps at the given path. */ sourcemaps?: true | string; - /** When creating a symlink, whether or not the created symlink should be relative. If false, + /** + * When creating a symlink, whether or not the created symlink should be relative. If false, * the symlink will be absolute. Note: This option will be ignored if a junction is being created. */ relativeSymlinks?: boolean; diff --git a/types/webassembly-js-api/tslint.json b/types/webassembly-js-api/tslint.json index 65c83fb1e3..d8590b6513 100644 --- a/types/webassembly-js-api/tslint.json +++ b/types/webassembly-js-api/tslint.json @@ -1,6 +1,8 @@ { "extends": "dtslint/dt.json", "rules": { - "dt-header": false + // TODOs + "dt-header": false, + "no-unnecessary-class": false } } diff --git a/types/webdriverio/tslint.json b/types/webdriverio/tslint.json index 1881fbd79d..5ab241cb96 100644 --- a/types/webdriverio/tslint.json +++ b/types/webdriverio/tslint.json @@ -6,6 +6,7 @@ "no-declare-current-package": false, "no-single-declare-module": false, "unified-signatures": false, + "no-unnecessary-class": false, "no-unnecessary-generics": false } } From 6fb077d3e6c38d0bde5012462c22975c4da18cd9 Mon Sep 17 00:00:00 2001 From: rlindgren Date: Mon, 23 Oct 2017 10:07:19 -0400 Subject: [PATCH 216/506] iteratee should be of type AsyncFunction --- types/async/index.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/types/async/index.d.ts b/types/async/index.d.ts index 7c32079086..c94c8058c2 100644 --- a/types/async/index.d.ts +++ b/types/async/index.d.ts @@ -174,9 +174,9 @@ export function parallel(tasks: Dictionary>, callback? export function parallelLimit(tasks: Array>, limit: number, callback?: AsyncResultArrayCallback): void; export function parallelLimit(tasks: Dictionary>, limit: number, callback?: AsyncResultObjectCallback): void; export function whilst(test: () => boolean, fn: AsyncVoidFunction, callback: ErrorCallback): void; -export function doWhilst(fn: AsyncVoidFunction, test: (result?: any) => boolean, callback: ErrorCallback): void; +export function doWhilst(fn: AsyncFunction, test: (result?: any) => boolean, callback: ErrorCallback): void; export function until(test: () => boolean, fn: AsyncVoidFunction, callback: ErrorCallback): void; -export function doUntil(fn: AsyncVoidFunction, test: (result?: any) => boolean, callback: ErrorCallback): void; +export function doUntil(fn: AsyncFunction, test: (result?: any) => boolean, callback: ErrorCallback): void; export function during(test: (testCallback : AsyncBooleanResultCallback) => void, fn: AsyncVoidFunction, callback: ErrorCallback): void; export function doDuring(fn: AsyncVoidFunction, test: (testCallback: AsyncBooleanResultCallback) => void, callback: ErrorCallback): void; export function forever(next: (next : ErrorCallback) => void, errBack: ErrorCallback) : void; From 8f3fc5b8d7e2289662cda090bfbab287b26fabbf Mon Sep 17 00:00:00 2001 From: Martin Braun Date: Mon, 23 Oct 2017 16:10:43 +0200 Subject: [PATCH 217/506] Updated type definitions to yFiles for HTML 2.0.1.3 (#20611) * Updated type definitions to yFiles for HTML 2.0.1.3 * Changed version number in header. --- types/yfiles/index.d.ts | 3119 ++++++++++++++++++++------------------- 1 file changed, 1572 insertions(+), 1547 deletions(-) diff --git a/types/yfiles/index.d.ts b/types/yfiles/index.d.ts index a3593bdc76..2d47b00067 100644 --- a/types/yfiles/index.d.ts +++ b/types/yfiles/index.d.ts @@ -1,11 +1,11 @@ -// Type definitions for yFiles for HTML 2.0.1.2 +// Type definitions for yFiles for HTML 2.0.13 // Project: http://www.yworks.com/products/yfiles-for-html // Definitions by: yWorks GmbH HTML Team // Definitions: https://github.com/yWorks/DefinitelyTyped /**************************************************************************** ** - ** This file is part of yFiles for HTML 2.0.1.2 + ** This file is part of yFiles for HTML 2.0.1.3 ** ** yWorks proprietary/confidential. Use is subject to license terms. ** @@ -25,8 +25,7 @@ declare namespace yfiles{ function BaseClass(...base:any[]):yfiles.lang.ClassConstructor; function BaseClass(...base:any[]):yfiles.lang.ClassConstructor; } -} -declare namespace yfiles{ +}declare namespace yfiles{ export namespace lang{ /** * The root of the class hierarchy of the yFiles for HTML class framework. @@ -158,15 +157,15 @@ declare namespace yfiles{ * var MyList = yfiles.lang.Class('MyList', { * $extends: my.AbstractList, * $with: [my.Iterable, my.Collection], - * + * * constructor: function() { // the constructor function * }, - * + * * add: function(obj) { ... }, * size: { // transformed into a property * 'get': function() { return ...; } * }, - * + * * $static: { * create: function() { ... } * } @@ -176,7 +175,7 @@ declare namespace yfiles{ * list.add("hello"); * list.size === 1; // true * - * + * *

    * The constructor property can be either a function (in case of a single constructor) or an object that is transformed * into named constructors. @@ -197,7 +196,7 @@ declare namespace yfiles{ * myrect = new Rect.FromPoint({x: 10, y: 10}, 50, 50); * myrect instanceof Rect; // true * - * + * *

    * Named constructors can call other constructors and can be written like any other constructor, i.e. this will be a new * instance of the class that is being constructed. @@ -211,7 +210,7 @@ declare namespace yfiles{ *

          * Rect.$super.toString.call(this);
          * 
    - * + * *

    * If you do not specify the parent class of a new class, then {@link yfiles.lang.Object} will be used as its base type. The parent * class of {@link yfiles.lang.Object} is the standard JavaScript Object.prototype. @@ -285,13 +284,13 @@ declare namespace yfiles{ * //yfiles.lang.Class.injectInterfaces(myHitTestable, [yfiles.drawing.IHitTestable.$class, yfiles.support.ILookup.$class]); * //As well as using a variable number of arguments, such as: * //yfiles.lang.Class.injectInterfaces(myHitTestable, yfiles.drawing.IHitTestable, yfiles.support.ILookup); - * + * * //This is true now: * yfiles.drawing.IHitTestable.isInstance(myHitTestable); * //And the object can be used where an interface instance is expected: * graphEditorInputMode.clickInputMode.validClickHitTestable = myHitTestable; * - * + * *

    * It is also possible to modify an object prototype, e.g. in TypeScript: Class definition: *

    @@ -302,7 +301,7 @@ declare namespace yfiles{ * } * } * - * + * *

    * Usage: *

    @@ -317,7 +316,7 @@ declare namespace yfiles{ * //And the object can be used where an interface instance is expected: * graphEditorInputMode.clickInputMode.validClickHitTestable = myHitTestable; * - * + * * @param obj The object to modify. * @param interfaces Array or variable number of {@link }s, {@link } objects of interfaces or fully qualified string * names of interfaces. @@ -439,7 +438,7 @@ declare namespace yfiles{ /** * This methods creates an instance of the struct in which all of its values are set to their default values without using * any of its constructors. - * @returns + * @returns * @static */ static createDefault():any; @@ -478,7 +477,7 @@ declare namespace yfiles{ * }); * if(state === RequestState.FAILED) { ... } * - * + * * @class */ export interface Enum extends yfiles.lang.Object{} @@ -691,7 +690,7 @@ declare namespace yfiles{ * var attr = yfiles.lang.Attribute.getCustomAttribute(MyClass.$class, MyAttribute.$class); * console.log(attr.message + ' ' + attr.recipient); // 'hello world' * - * + * *

    * Even though MyAttribute is invoked at the definition of MyClass, no attribute is created until the reflection API is * used (in the above example: using getCustomAttribute). @@ -908,7 +907,7 @@ declare namespace yfiles{ /** * Compares this object to the given object of the same type. * @param obj The object to compare this to. - * @returns + * @returns *