From b8cf52577da3742ff0310d5748ec74b8bf6143d4 Mon Sep 17 00:00:00 2001 From: Leonardo Melo Date: Mon, 15 Oct 2018 11:13:50 +0100 Subject: [PATCH 001/106] Update TweenMax.globalTimeScale typing As per the code in [gsap's repo](https://github.com/greensock/GreenSock-JS/blob/1.20.5/src/uncompressed/TweenMax.js#L545-L558) the type defition for TweenMax.globalTimeScale needed updating. --- types/gsap/Tween.d.ts | 2 +- types/gsap/index.d.ts | 10 +++++++--- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/types/gsap/Tween.d.ts b/types/gsap/Tween.d.ts index b11260ef4c..b587ea3e75 100644 --- a/types/gsap/Tween.d.ts +++ b/types/gsap/Tween.d.ts @@ -71,7 +71,7 @@ declare namespace gsap { static getTweensOf(target: {}): Tween[]; /** Gets or sets the global timeScale which is a multiplier that affects ALL animations equally. This is a great way to globally speed up or slow down all animations at once. */ - static globalTimeScale(value: number): void; + static globalTimeScale(value?: number): number; /** Reports whether or not a particular object is actively tweening. */ static isTweening(target: {}): boolean; diff --git a/types/gsap/index.d.ts b/types/gsap/index.d.ts index 77d589603a..5e3081cc6a 100644 --- a/types/gsap/index.d.ts +++ b/types/gsap/index.d.ts @@ -1,6 +1,10 @@ -// Type definitions for GSAP 1.19 +// Type definitions for GSAP 1.20.6 // Project: http://greensock.com/ -// Definitions by: VILIC VANE , Robert S , Richard Fox , Philip Bulley +// Definitions by: VILIC VANE , +// Robert S , +// Richard Fox , +// Philip Bulley , +// Leonardo Melo // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// @@ -10,6 +14,6 @@ /// /// -declare module 'gsap' { +declare module "gsap" { export = gsap; } From a639bc8310058b64fc0a7a06d78297bd9225970a Mon Sep 17 00:00:00 2001 From: andys8 Date: Tue, 16 Oct 2018 00:39:01 +0200 Subject: [PATCH 002/106] [react-table] type-safe accessor functions --- types/react-table/index.d.ts | 50 ++++++++++++------------- types/react-table/react-table-tests.tsx | 18 ++++++--- 2 files changed, 38 insertions(+), 30 deletions(-) diff --git a/types/react-table/index.d.ts b/types/react-table/index.d.ts index ca7981a6f8..3eb153c671 100644 --- a/types/react-table/index.d.ts +++ b/types/react-table/index.d.ts @@ -1,22 +1,22 @@ // Type definitions for react-table 6.7 // Project: https://github.com/react-tools/react-table -// Definitions by: Roy Xue , Pavel Sakalo , Krzysztof Porębski +// Definitions by: Roy Xue , Pavel Sakalo , Krzysztof Porębski , Andy S // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.8 import * as React from 'react'; export type ReactTableFunction = (value?: any) => void; -export type AccessorFunction = (row: object) => any; -export type Accessor = string | string[] | object | AccessorFunction; +export type AccessorFunction = (row: D) => any; +export type Accessor = string | string[] | AccessorFunction; export type Aggregator = (values: any, rows: any) => any; export type TableCellRenderer = ((data: any, column: any) => React.ReactNode) | React.ReactNode; -export type FilterRender = (params: { column: Column, filter: any, onChange: ReactTableFunction, key?: string }) => React.ReactElement; +export type FilterRender = (params: { column: Column, filter: any, onChange: ReactTableFunction, key?: string }) => React.ReactElement; export type PivotRenderer = ((cellInfo: any) => React.ReactNode) | (() => any) | string | React.ReactNode; export type ComponentPropsGetter0 = (finalState: any, rowInfo: undefined, column: undefined, instance?: any) => object | undefined; export type ComponentPropsGetterR = (finalState: any, rowInfo?: RowInfo, column?: undefined, instance?: any) => object | undefined; -export type ComponentPropsGetterC = (finalState: any, rowInfo?: undefined, column?: Column, instance?: any) => object | undefined; -export type ComponentPropsGetterRC = (finalState: any, rowInfo?: RowInfo, column?: Column, instance?: any) => object | undefined; +export type ComponentPropsGetterC = (finalState: any, rowInfo?: undefined, column?: Column, instance?: any) => object | undefined; +export type ComponentPropsGetterRC = (finalState: any, rowInfo?: RowInfo, column?: Column, instance?: any) => object | undefined; export type DefaultFilterFunction = (filter: Filter, row: any, column: any) => boolean; export type FilterFunction = (filter: Filter, rows: any[], column: any) => boolean; @@ -46,7 +46,7 @@ export interface SortingRule { desc?: true; } -export interface TableProps extends +export interface TableProps extends Partial, Partial, Partial, @@ -54,7 +54,7 @@ export interface TableProps extends Partial, Partial { /** Default: [] */ - data: any[]; + data: D[]; /** Default: false */ loading: boolean; @@ -164,7 +164,7 @@ export interface TableProps extends column: Partial; /** Array of all Available Columns */ - columns?: Column[]; + columns?: Array>; /** Expander defaults. */ expanderDefaults: Partial; @@ -180,9 +180,9 @@ export interface TableProps extends /** Control callback for functional rendering */ children: ( - state: FinalState, + state: FinalState, makeTable: () => React.ReactElement, - instance: Instance + instance: Instance ) => React.ReactNode; } @@ -548,7 +548,7 @@ export interface PivotDefaults { render: TableCellRenderer; } -export interface Column extends +export interface Column extends Partial, Partial, Partial, @@ -562,7 +562,7 @@ export interface Column extends * @example {"a": {"b": {"c": $}}} * @example (row) => row.propertyName */ - accessor?: Accessor; + accessor?: Accessor; /** * Conditional - A unique ID is required if the accessor is not a string or if you would like to override the column name used in server-side calls @@ -598,7 +598,7 @@ export interface Column extends expander?: boolean; /** Header Groups only */ - columns?: any[]; + columns?: Array>; /** * Turns this column into a special column for specifying pivot position in your column definitions. @@ -608,12 +608,12 @@ export interface Column extends pivot?: boolean; } -export interface ColumnRenderProps { +export interface ColumnRenderProps { /** Sorted data. */ - data: any[]; + data: D[]; /** The column. */ - column: Column; + column: Column; } export interface RowRenderProps extends Partial { @@ -662,7 +662,7 @@ export interface RowInfo { original: any; } -export interface FinalState extends TableProps { +export interface FinalState extends TableProps { frozen: boolean; startRow: number; endRow: number; @@ -674,21 +674,21 @@ export interface FinalState extends TableProps { canNext: boolean; rowMinWidth: number; - allVisibleColumns: Column[]; - allDecoratedColumns: Column[]; + allVisibleColumns: Array>; + allDecoratedColumns: Array>; resolvedData: DerivedDataObject[]; sortedData: DerivedDataObject[]; headerGroups: any[]; } -export const ReactTableDefaults: TableProps; -export default class ReactTable extends React.Component> { } +export const ReactTableDefaults: TableProps; +export default class ReactTable extends React.Component>> { } -export interface Instance extends ReactTable { +export interface Instance extends ReactTable { context: any; - props: Partial; + props: Partial>; refs: any; - state: FinalState; + state: FinalState; filterColumn(...props: any[]): any; filterData(...props: any[]): any; fireFetchData(...props: any[]): any; diff --git a/types/react-table/react-table-tests.tsx b/types/react-table/react-table-tests.tsx index b8380125b3..ca63bdd67c 100644 --- a/types/react-table/react-table-tests.tsx +++ b/types/react-table/react-table-tests.tsx @@ -5,7 +5,15 @@ import * as ReactDOM from 'react-dom'; import ReactTable, { Column, FinalState, Instance } from "react-table"; import "react-table/react-table.css"; -const columns: Column[] = [ +interface Data { + firstName: string; + lastName: string; + age: number; + visits: number; + progress: number; +} + +const columns: Array> = [ { Header: "Name", columns: [ @@ -16,7 +24,7 @@ const columns: Column[] = [ { Header: "Info", columns: [ - { Header: "Age", accessor: "age" }, + { Header: "Age", accessor: (data: Data) => data.age }, { Header: "Status", accessor: "status" } ] }, @@ -29,7 +37,7 @@ const columns: Column[] = [ ]; const Component = (props: {}) => { - const data = [ + const data: Data[] = [ { firstName: "plastic", lastName: "leather", age: 1, visits: 87, progress: 53 }, { firstName: "eggs", lastName: "quartz", age: 13, visits: 78, progress: 82 }, { firstName: "wash", lastName: "wrench", age: 29, visits: 75, progress: 49 }, @@ -156,9 +164,9 @@ const Component = (props: {}) => { }} > {( - state: FinalState, + state: FinalState, makeTable: () => React.ReactChild, - instance: Instance + instance: Instance ) => { return (
Date: Tue, 16 Oct 2018 11:09:50 +0100 Subject: [PATCH 003/106] Multiple linter fixes to gsap definition files --- types/gsap/Animation.d.ts | 66 ++++++++++------- types/gsap/Ease.d.ts | 52 +++++++------- types/gsap/Plugins.d.ts | 6 +- types/gsap/Timeline.d.ts | 122 +++++++++++++++++++++---------- types/gsap/Tween.d.ts | 139 ++++++++++++++++++++++++------------ types/gsap/TweenConfig.d.ts | 59 ++++++++------- 6 files changed, 282 insertions(+), 162 deletions(-) diff --git a/types/gsap/Animation.d.ts b/types/gsap/Animation.d.ts index 3c58f9b12a..8307392b11 100644 --- a/types/gsap/Animation.d.ts +++ b/types/gsap/Animation.d.ts @@ -1,89 +1,103 @@ declare namespace gsap { - export class Animation { - /** Base class for all TweenLite, TweenMax, TimelineLite, and TimelineMax classes, providing core methods/properties/() => voidality, but there is no reason to create an instance of this class directly. */ + class Animation { + /* Base class for all TweenLite, TweenMax, TimelineLite, and TimelineMax classes, providing core methods/properties/() => voidality, + * but there is no reason to create an instance of this class directly. + */ constructor(duration?: number, vars?: any); - /** A place to store any data you want (initially populated with vars.data if it exists). */ + /* A place to store any data you want (initially populated with vars.data if it exists). */ data: any; - /** [Read-only] Parent timeline. */ + /* [Read-only] Parent timeline. */ timeline: SimpleTimeline; - /** The vars object passed into the constructor which stores configuration variables like onComplete, onUpdate, etc. */ + /* The vars object passed into the constructor which stores configuration variables like onComplete, onUpdate, etc. */ vars: {}; - /** Gets or sets the animation's initial delay which is the length of time in seconds (or frames for frames-based tweens) before the animation should begin. */ + /* Gets or sets the animation's initial delay which is the length of time in seconds (or frames for frames-based tweens) before the animation should begin. */ delay(): number; delay(value: number): Animation; - /** Gets or sets the animation's duration, not including any repeats or repeatDelays (which are only available in TweenMax and TimelineMax). */ + /* Gets or sets the animation's duration, not including any repeats or repeatDelays (which are only available in TweenMax and TimelineMax). */ duration(): number; duration(value: number): Animation; - /** Gets or sets an event callback like "onComplete", "onUpdate", "onStart", "onReverseComplete" or "onRepeat" (onRepeat only applies to TweenMax or TimelineMax instances) along with any parameters that should be passed to that callback. */ + /* Gets or sets an event callback like "onComplete", "onUpdate", "onStart", "onReverseComplete" or "onRepeat" (onRepeat only applies to TweenMax or TimelineMax instances) along with any + * parameters that should be passed to that callback. + */ eventCallback(type: string): () => void; eventCallback(type: string, callback: () => void, params?: any[], scope?: any): Animation; - /** Clears any initialization data (like starting/ending values in tweens) which can be useful if, for example, you want to restart a tween without reverting to any previously recorded starting values. */ + /* Clears any initialization data (like starting/ending values in tweens) which can be useful if, for example, you want to restart a tween without reverting to any previously + * recorded starting values. + */ invalidate(): Animation; - /** Indicates whether or not the animation is currently active (meaning the virtual playhead is actively moving across this instance's time span and it is not paused, nor are any of its ancestor timelines). */ + /* Indicates whether or not the animation is currently active (meaning the virtual playhead is actively moving across this instance's time span and it is not paused, nor are any of its + * ancestor timelines). + */ isActive(): boolean; - /** Kills the animation entirely or in part depending on the parameters. */ + /* Kills the animation entirely or in part depending on the parameters. */ kill(vars?: {}, target?: {}): Animation; - /** Pauses the instance, optionally jumping to a specific time. */ + /* Pauses the instance, optionally jumping to a specific time. */ pause(atTime?: any, suppressEvents?: boolean): Animation; - /** Gets or sets the animation's paused state which indicates whether or not the animation is currently paused. */ + /* Gets or sets the animation's paused state which indicates whether or not the animation is currently paused. */ paused(): boolean; paused(value: boolean): Animation; - /** Begins playing forward, optionally from a specific time (by default playback begins from wherever the playhead currently is). */ + /* Begins playing forward, optionally from a specific time (by default playback begins from wherever the playhead currently is). */ play(from?: any, suppressEvents?: boolean): Animation; - /** Gets or sets the animations's progress which is a value between 0 and 1 indicating the position of the virtual playhead (excluding repeats) where 0 is at the beginning, 0.5 is at the halfway point, and 1 is at the end (complete). */ + /* Gets or sets the animations's progress which is a value between 0 and 1 indicating the position of the virtual playhead (excluding repeats) where 0 is at the beginning, 0.5 is at the + * halfway point, and 1 is at the end (complete). + */ progress(): number; progress(value: number, suppressEvents?: boolean): Animation; - /** Restarts and begins playing forward from the beginning. */ + /* Restarts and begins playing forward from the beginning. */ restart(includeDelay?: boolean, suppressEvents?: boolean): Animation; - /** Resumes playing without altering direction (forward or reversed), optionally jumping to a specific time first. */ + /* Resumes playing without altering direction (forward or reversed), optionally jumping to a specific time first. */ resume(from?: any, suppressEvents?: boolean): Animation; - /** Reverses playback so that all aspects of the animation are oriented backwards including, for example, a tween's ease. */ + /* Reverses playback so that all aspects of the animation are oriented backwards including, for example, a tween's ease. */ reverse(from?: any, suppressEvents?: boolean): Animation; - /** Gets or sets the animation's reversed state which indicates whether or not the animation should be played backwards. */ + /* Gets or sets the animation's reversed state which indicates whether or not the animation should be played backwards. */ reversed(): boolean; reversed(value: boolean): Animation; - /** Jumps to a specific time without affecting whether or not the instance is paused or reversed. */ + /* Jumps to a specific time without affecting whether or not the instance is paused or reversed. */ seek(time: any, suppressEvents?: boolean): Animation; - /** Gets or sets the time at which the animation begins on its parent timeline (after any delay that was defined). */ + /* Gets or sets the time at which the animation begins on its parent timeline (after any delay that was defined). */ startTime(): number; startTime(value: number): Animation; - /** Gets or sets the local position of the playhead (essentially the current time), described in seconds (or frames for frames-based animations) which will never be less than 0 or greater than the animation's duration. */ + /* Gets or sets the local position of the playhead (essentially the current time), described in seconds (or frames for frames-based animations) which will never be less than 0 or greater + * than the animation's duration. + */ time(): number; time(value: number, suppressEvents?: boolean): Animation; - /** Factor that's used to scale time in the animation where 1 = normal speed (the default), 0.5 = half speed, 2 = double speed, etc. */ + /* Factor that's used to scale time in the animation where 1 = normal speed (the default), 0.5 = half speed, 2 = double speed, etc. */ timeScale(): number; timeScale(value: number): Animation; - /** Gets or sets the animation's total duration including any repeats or repeatDelays (which are only available in TweenMax and TimelineMax). */ + /* Gets or sets the animation's total duration including any repeats or repeatDelays (which are only available in TweenMax and TimelineMax). */ totalDuration(): number; totalDuration(value: number): Animation; - /** Gets or sets the animation's total progress which is a value between 0 and 1 indicating the position of the virtual playhead (including repeats) where 0 is at the beginning, 0.5 is at the halfway point, and 1 is at the end (complete). */ + /* Gets or sets the animation's total progress which is a value between 0 and 1 indicating the position of the virtual playhead (including repeats) where 0 is at the beginning, 0.5 is at + * the halfway point, and 1 is at the end (complete). + */ totalProgress(): number; totalProgress(value: number, suppressEvents?: boolean): Animation; - /** Gets or sets the position of the playhead according to the totalDuration which includes any repeats and repeatDelays (only available in TweenMax and TimelineMax). */ + /* Gets or sets the position of the playhead according to the totalDuration which includes any repeats and repeatDelays (only available in TweenMax and TimelineMax). */ totalTime(): number; totalTime(time: number, suppressEvents?: boolean): Animation; } diff --git a/types/gsap/Ease.d.ts b/types/gsap/Ease.d.ts index ea2d7e1d84..56603b5ed1 100644 --- a/types/gsap/Ease.d.ts +++ b/types/gsap/Ease.d.ts @@ -1,52 +1,51 @@ declare namespace gsap { - export class Ease { + class Ease { constructor(func?: () => void, extraParams?: any[], type?: number, power?: number); /** Translates the tween's progress ratio into the corresponding ease ratio. */ getRatio(p: number): number; } - export class EaseLookup { - static find(name: string): Ease; + interface EaseLookup { + find(name: string): Ease; } - export class Back extends Ease { + class Back extends Ease { static easeIn: Back; static easeInOut: Back; static easeOut: Back; config(overshoot: number): Elastic; - } - export class Bounce extends Ease { + class Bounce extends Ease { static easeIn: Bounce; static easeInOut: Bounce; static easeOut: Bounce; } - export class Circ extends Ease { + class Circ extends Ease { static easeIn: Circ; static easeInOut: Circ; static easeOut: Circ; } - export class Cubic extends Ease { + class Cubic extends Ease { static easeIn: Cubic; static easeInOut: Cubic; static easeOut: Cubic; } - export class Elastic extends Ease { + class Elastic extends Ease { static easeIn: Elastic; static easeInOut: Elastic; static easeOut: Elastic; config(amplitude: number, period: number): Elastic; } - export class Expo extends Ease { + class Expo extends Ease { static easeIn: Expo; static easeInOut: Expo; static easeOut: Expo; } - export class Linear extends Ease { + class Linear extends Ease { static ease: Linear; static easeIn: Linear; static easeInOut: Linear; @@ -54,60 +53,59 @@ declare namespace gsap { static easeOut: Linear; } - export class Quad extends Ease { + class Quad extends Ease { static easeIn: Quad; static easeInOut: Quad; static easeOut: Quad; } - export class Quart extends Ease { + class Quart extends Ease { static easeIn: Quart; static easeInOut: Quart; static easeOut: Quart; } - export class Quint extends Ease { + class Quint extends Ease { static easeIn: Quint; static easeInOut: Quint; static easeOut: Quint; } - export class Sine extends Ease { + class Sine extends Ease { static easeIn: Sine; static easeInOut: Sine; static easeOut: Sine; } - export class SlowMo extends Ease { + class SlowMo extends Ease { static ease: SlowMo; config(linearRatio: number, power: number, yoyoMode: boolean): SlowMo; } - export class SteppedEase extends Ease { + class SteppedEase extends Ease { constructor(staps: number); config(steps: number): SteppedEase; } - export interface RoughEaseConfig { + interface RoughEaseConfig { clamp?: boolean; points?: number; randomize?: boolean; strength?: number; - taper?: 'in' | 'out' | 'both' | 'none'; + taper?: "in" | "out" | "both" | "none"; template?: Ease; } - export class RoughEase extends Ease { + class RoughEase extends Ease { static ease: RoughEase; constructor(vars: RoughEaseConfig); config(steps?: number): RoughEase; } - - export var Power0: typeof Linear; - export var Power1: typeof Quad; - export var Power2: typeof Cubic; - export var Power3: typeof Quart; - export var Power4: typeof Quint; - export var Strong: typeof Quint; + const Power0: typeof Linear; + const Power1: typeof Quad; + const Power2: typeof Cubic; + const Power3: typeof Quart; + const Power4: typeof Quint; + const Strong: typeof Quint; } diff --git a/types/gsap/Plugins.d.ts b/types/gsap/Plugins.d.ts index d7ceca7bf8..3d6e3db73e 100644 --- a/types/gsap/Plugins.d.ts +++ b/types/gsap/Plugins.d.ts @@ -1,15 +1,15 @@ declare namespace gsap { - export interface BezierPlugin extends TweenPlugin { + interface BezierPlugin extends TweenPlugin { bezierThrough(values: any[], curviness?: number, quadratic?: boolean, correlate?: string, prepend?: {}, calcDifs?: boolean): {}; cubicToQuadratic(a: number, b: number, c: number, d: number): any[]; quadraticToCubic(a: number, b: number, c: number): {}; } - export interface CSSRulePlugin extends TweenPlugin { + interface CSSRulePlugin extends TweenPlugin { getRule(selector: string): {}; } - export interface TweenPlugin { + interface TweenPlugin { activate(plugins: any[]): boolean; } } diff --git a/types/gsap/Timeline.d.ts b/types/gsap/Timeline.d.ts index 9d14b2d4c5..a51876375d 100644 --- a/types/gsap/Timeline.d.ts +++ b/types/gsap/Timeline.d.ts @@ -1,101 +1,149 @@ declare namespace gsap { - export type Timeline = SimpleTimeline | TimelineLite | TimelineMax; + type Timeline = SimpleTimeline | TimelineLite | TimelineMax; - export class SimpleTimeline extends Animation { - /** SimpleTimeline is the base class for TimelineLite and TimelineMax, providing the most basic timeline () => voidality and it is used for the root timelines in TweenLite but is only intended for internal use in the GreenSock tweening platform. It is meant to be very fast and lightweight. */ + class SimpleTimeline extends Animation { + /* SimpleTimeline is the base class for TimelineLite and TimelineMax, providing the most basic timeline () => voidality and it is used for the root timelines in TweenLite but is only + * intended for internal use in the GreenSock tweening platform. It is meant to be very fast and lightweight. + */ constructor(vars?: any); - /** If true, child tweens/timelines will be removed as soon as they complete. */ + /* If true, child tweens/timelines will be removed as soon as they complete. */ autoRemoveChildren: boolean; - /** Controls whether or not child tweens/timelines are repositioned automatically (changing their startTime) in order to maintain smooth playback when properties are changed on-the-fly. */ + /* Controls whether or not child tweens/timelines are repositioned automatically (changing their startTime) in order to maintain smooth playback when properties are changed on-the-fly. */ smoothChildTiming: boolean; - /** Adds a TweenLite, TweenMax, TimelineLite, or TimelineMax instance to the timeline at a specific time. */ + /* Adds a TweenLite, TweenMax, TimelineLite, or TimelineMax instance to the timeline at a specific time. */ add(child: any, position?: any, align?: string, stagger?: number): SimpleTimeline; - /** renders */ + /* renders */ render(time: number, suppressEvents?: boolean, force?: boolean): SimpleTimeline; } - export class TimelineLite extends SimpleTimeline { + class TimelineLite extends SimpleTimeline { constructor(vars?: {}); - /** Adds a tween, timeline, callback, or label (or an array of them) to the timeline. */ + /* Adds a tween, timeline, callback, or label (or an array of them) to the timeline. */ add(value: any, position?: any, align?: string, stagger?: number): TimelineLite; - /** Adds a label to the timeline, making it easy to mark important positions/times. */ + /* Adds a label to the timeline, making it easy to mark important positions/times. */ addLabel(label: string, position: any): TimelineLite; - /** Inserts a special callback that pauses playback of the timeline at a particular time or label. */ + /* Inserts a special callback that pauses playback of the timeline at a particular time or label. */ addPause(position?: any, callback?: () => void, params?: any[], scope?: any): TimelineLite; - /** Adds a callback to the end of the timeline (or elsewhere using the "position" parameter) - this is a convenience method that accomplishes exactly the same thing as add( TweenLite.delayedCall(...) ) but with less code. */ + /* Adds a callback to the end of the timeline (or elsewhere using the "position" parameter) - this is a convenience method that accomplishes exactly the same thing as + * add( TweenLite.delayedCall(...) ) but with less code. + */ call(callback: () => void, params?: any[], scope?: any, position?: any): TimelineLite; - /** Empties the timeline of all tweens, timelines, and callbacks (and optionally labels too). */ + /* Empties the timeline of all tweens, timelines, and callbacks (and optionally labels too). */ clear(labels?: boolean): TimelineLite; - /** Returns the time at which the animation will finish according to the parent timeline's local time. */ + /* Returns the time at which the animation will finish according to the parent timeline's local time. */ endTime(includeRepeats?: boolean): number; - /** Seamlessly transfers all tweens, timelines, and [optionally] delayed calls from the root timeline into a new TimelineLite so that you can perform advanced tasks on a seemingly global basis without affecting tweens/timelines that you create after the export. */ + /* Seamlessly transfers all tweens, timelines, and [optionally] delayed calls from the root timeline into a new TimelineLite so that you can perform advanced tasks on a seemingly global + * basis without affecting tweens/timelines that you create after the export. + */ static exportRoot(vars?: {}, omitDelayedCalls?: boolean): TimelineLite; - /** Adds a TweenLite.from() tween to the end of the timeline (or elsewhere using the "position" parameter) - this is a convenience method that accomplishes exactly the same thing as add( TweenLite.from(...) ) but with less code. */ + /* Adds a TweenLite.from() tween to the end of the timeline (or elsewhere using the "position" parameter) - this is a convenience method that accomplishes exactly the same thing as + * add( TweenLite.from(...) ) but with less code. + */ from(target: {}, duration: number, vars: {}, position?: any): TimelineLite; - /** Adds a TweenLite.fromTo() tween to the end of the timeline - this is a convenience method that accomplishes exactly the same thing as add( TweenLite.fromTo(...) ) but with less code. */ + /* Adds a TweenLite.fromTo() tween to the end of the timeline - this is a convenience method that accomplishes exactly the same thing as add( TweenLite.fromTo(...) ) but with less code. */ fromTo(target: {}, duration: number, fromVars: {}, toVars: {}, position?: any): TimelineLite; - /** Returns an array containing all the tweens and/or timelines nested in this timeline. */ + /* Returns an array containing all the tweens and/or timelines nested in this timeline. */ getChildren(nested?: boolean, tweens?: boolean, timelines?: boolean, ignoreBeforeTime?: number): Array; - /** Returns the time associated with a particular label. */ + /* Returns the time associated with a particular label. */ getLabelTime(label: string): number; - /** Returns the tweens of a particular object that are inside this timeline. */ + /* Returns the tweens of a particular object that are inside this timeline. */ getTweensOf(target: {}, nested?: boolean): Tween[]; - /** Clears any initialization data (like starting/ending values in tweens) which can be useful if, for example, you want to restart a tween without reverting to any previously recorded starting values. */ + /* Clears any initialization data (like starting/ending values in tweens) which can be useful if, for example, you want to restart a tween without reverting to any previously + * recorded starting values. + */ invalidate(): TimelineLite; - /** Returns the most recently added child tween/timeline/callback regardless of its position in the timeline. */ + /* Returns the most recently added child tween/timeline/callback regardless of its position in the timeline. */ recent(): Animation; - /** Removes a tween, timeline, callback, or label (or array of them) from the timeline. */ + /* Removes a tween, timeline, callback, or label (or array of them) from the timeline. */ remove(value: any): TimelineLite; - /** Removes a label from the timeline and returns the time of that label. */ + /* Removes a label from the timeline and returns the time of that label. */ removeLabel(label: string): any; - /** Jumps to a specific time (or label) without affecting whether or not the instance is paused or reversed. */ + /* Jumps to a specific time (or label) without affecting whether or not the instance is paused or reversed. */ seek(position: string | number, supressEvents: boolean): TimelineLite; - /** Adds a zero-duration tween to the end of the timeline (or elsewhere using the "position" parameter) that sets values immediately (when the virtual playhead reaches that position on the timeline) - this is a convenience method that accomplishes exactly the same thing as add( TweenLite.to(target, 0, {...}) ) but with less code. */ + /* Adds a zero-duration tween to the end of the timeline (or elsewhere using the "position" parameter) that sets values immediately (when the virtual playhead reaches that position + * on the timeline) - this is a convenience method that accomplishes exactly the same thing as add( TweenLite.to(target, 0, {...}) ) but with less code. + */ set(target: {}, vars: {}, position?: any): TimelineLite; - /** Shifts the startTime of the timeline's children by a certain amount and optionally adjusts labels too. */ + /* Shifts the startTime of the timeline's children by a certain amount and optionally adjusts labels too. */ shiftChildren(amount: number, adjustLabels?: boolean, ignoreBeforeTime?: number): TimelineLite; - /** Tweens an array of targets from a common set of destination values (using the current values as the destination), but staggers their start times by a specified amount of time, creating an evenly-spaced sequence with a surprisingly small amount of code. */ - staggerFrom(targets: any, duration: number, vars: {}, stagger?: number, position?: any, onCompleteAll?: () => void, onCompleteAllParams?: any[], onCompleteScope?: any): TimelineLite; + /* Tweens an array of targets from a common set of destination values (using the current values as the destination), but staggers their start times by a specified amount of time, creating + * an evenly-spaced sequence with a surprisingly small amount of code. + */ + staggerFrom( + targets: any, + duration: number, + vars: {}, + stagger?: number, + position?: any, + onCompleteAll?: () => void, + onCompleteAllParams?: any[], + onCompleteScope?: any + ): TimelineLite; - /** Tweens an array of targets from and to a common set of values, but staggers their start times by a specified amount of time, creating an evenly-spaced sequence with a surprisingly small amount of code. */ - staggerFromTo(targets: any, duration: number, fromVars: {}, toVars: {}, stagger?: number, position?: any, onCompleteAll?: () => void, onCompleteAllParams?: any[], onCompleteAllScope?: any): TimelineLite; + /* Tweens an array of targets from and to a common set of values, but staggers their start times by a specified amount of time, creating an evenly-spaced sequence + * with a surprisingly small amount of code. + */ + staggerFromTo( + targets: any, + duration: number, + fromVars: {}, + toVars: {}, + stagger?: number, + position?: any, + onCompleteAll?: () => void, + onCompleteAllParams?: any[], + onCompleteAllScope?: any + ): TimelineLite; - /** Tweens an array of targets to a common set of destination values, but staggers their start times by a specified amount of time, creating an evenly-spaced sequence with a surprisingly small amount of code. */ - staggerTo(targets: any, duration: number, vars: {}, stagger: number, position?: any, onCompleteAll?: () => void, onCompleteAllParams?: any[], onCompleteAllScope?: any): TimelineLite; + /* Tweens an array of targets to a common set of destination values, but staggers their start times by a specified amount of time, creating an evenly-spaced sequence with a + * surprisingly small amount of code. + */ + staggerTo( + targets: any, + duration: number, + vars: {}, + stagger: number, + position?: any, + onCompleteAll?: () => void, + onCompleteAllParams?: any[], + onCompleteAllScope?: any + ): TimelineLite; - /** Adds a TweenLite.to() tween to the end of the timeline (or elsewhere using the "position" parameter) - this is a convenience method that accomplishes exactly the same thing as add( TweenLite.to(...) ) but with less code. */ + /* Adds a TweenLite.to() tween to the end of the timeline (or elsewhere using the "position" parameter) - this is a convenience method that accomplishes exactly the same thing as + * add( TweenLite.to(...) ) but with less code. + */ to(target: {}, duration: number, vars: {}, position?: any): TimelineLite; usesFrames(): boolean; - /** If true, the timeline's timing mode is frames-based instead of seconds. */ + /* If true, the timeline's timing mode is frames-based instead of seconds. */ useFrames(): boolean; } - export class TimelineMax extends TimelineLite { + class TimelineMax extends TimelineLite { constructor(vars?: {}); addCallback(callback: () => void, position: any, params?: any[], scope?: any): TimelineMax; @@ -104,7 +152,7 @@ declare namespace gsap { getActive(nested?: boolean, tweens?: boolean, timelines?: boolean): Tween | Timeline[]; getLabelAfter(time: number): string; getLabelBefore(time: number): string; - getLabelsArray(): Array<{ name: string; time: number; }>; + getLabelsArray(): Array<{ name: string; time: number }>; removeCallback(callback: () => void, timeOrLabel?: any): TimelineMax; removePause(position: any): TimelineMax; repeat(): number; diff --git a/types/gsap/Tween.d.ts b/types/gsap/Tween.d.ts index b587ea3e75..8481819567 100644 --- a/types/gsap/Tween.d.ts +++ b/types/gsap/Tween.d.ts @@ -1,126 +1,177 @@ declare namespace gsap { - export type Tween = TweenLite | TweenMax; - export class TweenLite extends Animation { + type Tween = TweenLite | TweenMax; + class TweenLite extends Animation { constructor(target: any, duration: number, vars: any); - /** Provides An easy way to change the default easing equation. */ + /* Provides An easy way to change the default easing equation. */ static defaultEase: Ease; - /** Provides An easy way to change the default overwrite mode. */ + /* Provides An easy way to change the default overwrite mode. */ static defaultOverwrite: string; - /** The selector engine (like jQuery) that should be used when a tween receives a string as its target, like TweenLite.to("#myID", 1, {x:"100px"}). */ + /* The selector engine (like jQuery) that should be used when a tween receives a string as its target, like TweenLite.to("#myID", 1, {x:"100px"}). */ static selector: (query: string) => any; - /** Target object (or array of objects) whose properties the tween affects. */ + /* Target object (or array of objects) whose properties the tween affects. */ readonly target: any; - /** The object that dispatches a "tick" event each time the engine updates, making it easy for you to add your own listener(s) to run custom logic after each update (great for game developers). */ + /* The object that dispatches a "tick" event each time the engine updates, making it easy for you to add your own listener(s) to run custom logic after each update + * (great for game developers). + */ static ticker: any; - /** Provides a simple way to call a () => void after a set amount of time (or frames). */ + /* Provides a simple way to call a () => void after a set amount of time (or frames). */ static delayedCall(delay: number, callback: () => void, params?: any[], scope?: any, useFrames?: boolean): TweenLite; - /** Static method for creating a TweenLite instance that tweens backwards - you define the BEGINNING values and the current values are used as the destination values which is great for doing things like animating objects onto the screen because you can set them up initially the way you want them to look at the end of the tween and then animate in from elsewhere. */ + /* Static method for creating a TweenLite instance that tweens backwards - you define the BEGINNING values and the current values are used as the destination values which is great + * for doing things like animating objects onto the screen because you can set them up initially the way you want them to look at the end of the tween and then animate in from elsewhere. + */ static from(target: any, duration: number, vars: any): TweenLite; - /** Static method for creating a TweenLite instance that allows you to define both the starting and ending values (as opposed to to() and from() tweens which are based on the target's current values at one end or the other). */ + /* Static method for creating a TweenLite instance that allows you to define both the starting and ending values (as opposed to to() and from() tweens which are based on the target's + * current values at one end or the other). + */ static fromTo(target: any, duration: number, fromVars: any, toVars: any): TweenLite; - /** Returns an array containing all the tweens of a particular target (or group of targets) that have not been released for garbage collection yet which typically happens within a few seconds after the tween completes. */ + /* Returns an array containing all the tweens of a particular target (or group of targets) that have not been released for garbage collection yet which typically happens within a few + * seconds after the tween completes. + */ static getTweensOf(target: any, onlyActive?: boolean): TweenLite[]; - /** [override] Clears any initialization data (like starting/ending values in tweens) which can be useful if, for example, you want to restart a tween without reverting to any previously recorded starting values. */ + /* [override] Clears any initialization data (like starting/ending values in tweens) which can be useful if, for example, you want to restart a tween without reverting to any + * previously recorded starting values. + */ invalidate(): TweenLite; - /** Immediately kills all of the delayedCalls to a particular () => void. */ + /* Immediately kills all of the delayedCalls to a particular () => void. */ static killDelayedCallsTo(func: () => void): void; - /** Kills all the tweens (or specific tweening properties) of a particular object or delayedCalls to a particular () => void. */ + /* Kills all the tweens (or specific tweening properties) of a particular object or delayedCalls to a particular () => void. */ static killTweensOf(target: any, onlyActive?: boolean, vars?: any): void; - /** Permits you to control what happens when too much time elapses between two ticks (updates) of the engine, adjusting the core timing mechanism to compensate and avoid "jumps". */ + /* Permits you to control what happens when too much time elapses between two ticks (updates) of the engine, adjusting the core timing mechanism to compensate and avoid "jumps". */ static lagSmoothing(threshold: number, adjustedLag: number): void; - /** Forces a render of all active tweens which can be useful if, for example, you set up a bunch of from() tweens and then you need to force an immediate render (even of "lazy" tweens) to avoid a brief delay before things render on the very next tick. */ + /* Forces a render of all active tweens which can be useful if, for example, you set up a bunch of from() tweens and then you need to force an immediate render (even of "lazy" tweens) to + * avoid a brief delay before things render on the very next tick. + */ static render(): void; - /** Immediately sets properties of the target accordingly - essentially a zero-duration to() tween with a more intuitive name. */ + /* Immediately sets properties of the target accordingly - essentially a zero-duration to() tween with a more intuitive name. */ static set(target: any, vars: any): TweenLite; - /** Static method for creating a TweenLite instance that animates to the specified destination values (from the current values). */ + /* Static method for creating a TweenLite instance that animates to the specified destination values (from the current values). */ static to(target: any, duration: number, vars: any): TweenLite; } - export class TweenMax extends TweenLite { + class TweenMax extends TweenLite { constructor(target: {}, duration: number, vars: {}); - /** Provides a simple way to call a () => void after a set amount of time (or frames). */ + /* Provides a simple way to call a () => void after a set amount of time (or frames). */ static delayedCall(delay: number, callback: () => void, params?: any[], scope?: {}, useFrames?: boolean): TweenMax; - /** Static method for creating a TweenMax instance that tweens backwards - you define the BEGINNING values and the current values are used as the destination values which is great for doing things like animating objects onto the screen because you can set them up initially the way you want them to look at the end of the tween and then animate in from elsewhere. */ + /* Static method for creating a TweenMax instance that tweens backwards - you define the BEGINNING values and the current values are used as the destination values which is great for doing + * things like animating objects onto the screen because you can set them up initially the way you want them to look at the end of the tween and then animate in from elsewhere. + */ static from(target: {}, duration: number, vars: {}): TweenMax; - /** Static method for creating a TweenMax instance that allows you to define both the starting and ending values (as opposed to to() and from() tweens which are based on the target's current values at one end or the other). */ + /* Static method for creating a TweenMax instance that allows you to define both the starting and ending values (as opposed to to() and from() tweens which are based on the target's + * current values at one end or the other). + */ static fromTo(target: {}, duration: number, fromVars: {}, toVars: {}): TweenMax; - /** Returns an array containing all tweens (and optionally timelines too, excluding the root timelines). */ + /* Returns an array containing all tweens (and optionally timelines too, excluding the root timelines). */ static getAllTweens(includeTimelines?: boolean): Tween[]; - /** Returns an array containing all the tweens of a particular target (or group of targets) that have not been released for garbage collection yet which typically happens within a few seconds after the tween completes. */ + /* Returns an array containing all the tweens of a particular target (or group of targets) that have not been released for garbage collection yet which typically happens within a few + * seconds after the tween completes. + */ static getTweensOf(target: {}): Tween[]; - /** Gets or sets the global timeScale which is a multiplier that affects ALL animations equally. This is a great way to globally speed up or slow down all animations at once. */ + /* Gets or sets the global timeScale which is a multiplier that affects ALL animations equally. This is a great way to globally speed up or slow down all animations at once. */ static globalTimeScale(value?: number): number; - /** Reports whether or not a particular object is actively tweening. */ + /* Reports whether or not a particular object is actively tweening. */ static isTweening(target: {}): boolean; - /** Kills all tweens and/or delayedCalls/callbacks, and/or timelines, optionally forcing them to completion first. */ + /* Kills all tweens and/or delayedCalls/callbacks, and/or timelines, optionally forcing them to completion first. */ static killAll(complete?: boolean, tweens?: boolean, delayedCalls?: boolean, timelines?: boolean): void; - /** Kills all tweens of the children of a particular DOM element, optionally forcing them to completion first. */ + /* Kills all tweens of the children of a particular DOM element, optionally forcing them to completion first. */ static killChildTweensOf(parent: any, complete?: boolean): void; - /** Immediately kills all of the delayedCalls to a particular () => void. */ + /* Immediately kills all of the delayedCalls to a particular () => void. */ static killDelayedCallsTo(func: () => void): void; - /** Kills all the tweens (or specific tweening properties) of a particular object or the delayedCalls to a particular () => void. */ + /* Kills all the tweens (or specific tweening properties) of a particular object or the delayedCalls to a particular () => void. */ static killTweensOf(target: {}, vars?: {}): void; - /** Pauses all tweens and/or delayedCalls/callbacks and/or timelines. */ + /* Pauses all tweens and/or delayedCalls/callbacks and/or timelines. */ static pauseAll(tweens?: boolean, delayedCalls?: boolean, timelines?: boolean): void; - /** Gets or sets the tween's progress which is a value between 0 and 1 indicating the position of the virtual playhead (excluding repeats) where 0 is at the beginning, 0.5 is halfway complete, and 1 is complete. */ + /* Gets or sets the tween's progress which is a value between 0 and 1 indicating the position of the virtual playhead (excluding repeats) where 0 is at the beginning, 0.5 is halfway + * complete, and 1 is complete. + */ repeat(): number; repeat(value: number): TweenMax; - /** Gets or sets the amount of time in seconds (or frames for frames-based tweens) between repeats. */ + /* Gets or sets the amount of time in seconds (or frames for frames-based tweens) between repeats. */ repeatDelay(): number; repeatDelay(value: number): TweenMax; - /** Resumes all paused tweens and/or delayedCalls/callbacks and/or timelines. */ + /* Resumes all paused tweens and/or delayedCalls/callbacks and/or timelines. */ static resumeAll(tweens?: boolean, delayedCalls?: boolean, timelines?: boolean): void; - /** Immediately sets properties of the target accordingly - essentially a zero-duration to() tween with a more intuitive name. */ + /* Immediately sets properties of the target accordingly - essentially a zero-duration to() tween with a more intuitive name. */ static set(target: {}, vars: {}): TweenMax; - /** Tweens an array of targets from a common set of destination values (using the current values as the destination), but staggers their start times by a specified amount of time, creating an evenly-spaced sequence with a surprisingly small amount of code. */ - static staggerFrom(targets: any, duration: number, vars: {}, stagger: number, onCompleteAll?: () => void, onCompleteAllParams?: any[], onCompleteAllScope?: any): any[]; + /* Tweens an array of targets from a common set of destination values (using the current values as the destination), but staggers their start times by a specified amount of time, creating + * an evenly-spaced sequence with a surprisingly small amount of code. + */ + static staggerFrom( + targets: any, + duration: number, + vars: {}, + stagger: number, + onCompleteAll?: () => void, + onCompleteAllParams?: any[], + onCompleteAllScope?: any + ): any[]; - /** Tweens an array of targets from a common set of destination values to a common set of destination values, but staggers their start times by a specified amount of time, creating an evenly-spaced sequence with a surprisingly small amount of code. */ - static staggerFromTo(targets: any, duration: number, fromVars: {}, toVars: {}, stagger: number, onCompleteAll?: () => void, onCompleteAllParams?: any[], onCompleteAllScope?: any): any[]; + /* Tweens an array of targets from a common set of destination values to a common set of destination values, but staggers their start times by a specified amount of time, creating an + * evenly-spaced sequence with a surprisingly small amount of code. + */ + static staggerFromTo( + targets: any, + duration: number, + fromVars: {}, + toVars: {}, + stagger: number, + onCompleteAll?: () => void, + onCompleteAllParams?: any[], + onCompleteAllScope?: any + ): any[]; - /** Tweens an array of targets to a common set of destination values, but staggers their start times by a specified amount of time, creating an evenly-spaced sequence with a surprisingly small amount of code. */ - static staggerTo(targets: any, duration: number, vars: {}, stagger: number, onCompleteAll?: () => void, onCompleteAllParams?: any[], onCompleteAllScope?: any): any[]; + /* Tweens an array of targets to a common set of destination values, but staggers their start times by a specified amount of time, creating an evenly-spaced sequence with a surprisingly + * small amount of code. + */ + static staggerTo( + targets: any, + duration: number, + vars: {}, + stagger: number, + onCompleteAll?: () => void, + onCompleteAllParams?: any[], + onCompleteAllScope?: any + ): any[]; - /** Static method for creating a TweenMax instance that animates to the specified destination values (from the current values). */ + /* Static method for creating a TweenMax instance that animates to the specified destination values (from the current values). */ static to(target: {}, duration: number, vars: TweenConfig): TweenMax; - /** Updates tweening values on the fly so that they appear to seamlessly change course even if the tween is in-progress. */ + /* Updates tweening values on the fly so that they appear to seamlessly change course even if the tween is in-progress. */ updateTo(vars: {}, resetDuration?: boolean): TweenMax; - /** Gets or sets the tween's yoyo state, where true causes the tween to go back and forth, alternating backward and forward on each repeat. */ + /* Gets or sets the tween's yoyo state, where true causes the tween to go back and forth, alternating backward and forward on each repeat. */ yoyo(): boolean; yoyo(value?: boolean): TweenMax; } diff --git a/types/gsap/TweenConfig.d.ts b/types/gsap/TweenConfig.d.ts index 33cde9c6ae..e99060fef9 100644 --- a/types/gsap/TweenConfig.d.ts +++ b/types/gsap/TweenConfig.d.ts @@ -1,75 +1,84 @@ declare namespace gsap { - export interface TweenConfig { - - /** Any tweenable property */ + interface TweenConfig { + /* Any tweenable property */ [p: string]: any; - /** Amount of delay in seconds (or frames for frames-based tweens) before the animation should begin.*/ + /* Amount of delay in seconds (or frames for frames-based tweens) before the animation should begin.*/ delay?: number; - /** Ease (or () => void or String) - You can choose from various eases to control the rate of change during the animation, giving it a specific "feel". */ + /* Ease (or () => void or String) - You can choose from various eases to control the rate of change during the animation, giving it a specific "feel". */ ease?: Ease; yoyo?: boolean; - /** If true, the tween will pause itself immediately upon creation. */ + /* If true, the tween will pause itself immediately upon creation. */ paused?: boolean; - /** Controls how (and if) other tweens of the same target are overwritten. There are several modes to choose from, but "auto" is the default (although you can change the default mode using theTweenLite.defaultOverwrite property) */ + /* Controls how (and if) other tweens of the same target are overwritten. There are several modes to choose from, but "auto" is the default (although you can change the default mode using + * theTweenLite.defaultOverwrite property) + */ overwrite?: string | number; - /** A () => void that should be called when the animation has completed. */ + /* A () => void that should be called when the animation has completed. */ onComplete?: () => void; - /** An Array of parameters to pass the onComplete () => void */ + /* An Array of parameters to pass the onComplete () => void */ onCompleteParams?: any[]; - /** Defines the scope of the onComplete () => void (what "this" refers to inside that () => void). */ + /* Defines the scope of the onComplete () => void (what "this" refers to inside that () => void). */ onCompleteScope?: {}; - /** Normally when you create a tween, it begins rendering on the very next frame (update cycle) unless you specify a delay. However, if you prefer to force the tween to render immediately when it is created, setimmediateRender to true. Or to prevent a from() from rendering immediately, set immediateRender to false. By default, from() tweens set immediateRender to true. */ + /* Normally when you create a tween, it begins rendering on the very next frame (update cycle) unless you specify a delay. However, if you prefer to force the tween to render immediately + * when it is created, setimmediateRender to true. Or to prevent a from() from rendering immediately, set immediateRender to false. By default, from() tweens set immediateRender to true. + */ immediateRender?: boolean; - /** A () => void that should be called when the tween has reached its beginning again from the reverse direction. */ + /* A () => void that should be called when the tween has reached its beginning again from the reverse direction. */ onReverseComplete?: () => void; - /** An Array of parameters to pass the onReverseComplete () => void. */ + /* An Array of parameters to pass the onReverseComplete () => void. */ onReverseCompleteParams?: any[]; - /** Defines the scope of the onReverseComplete () => void (what "this" refers to inside that () => void). */ + /* Defines the scope of the onReverseComplete () => void (what "this" refers to inside that () => void). */ onReverseCompleteScope?: {}; - /** A () => void that should be called when the tween begins (when its time changes from 0 to some other value which can happen more than once if the tween is restarted multiple times). */ + /* A () => void that should be called when the tween begins (when its time changes from 0 to some other value which can happen more than once if the tween is restarted multiple times). */ onStart?: () => void; - /** An Array of parameters to pass the onStart () => void. */ + /* An Array of parameters to pass the onStart () => void. */ onStartParams?: any[]; - /** Defines the scope of the onStart () => void (what "this" refers to inside that () => void). */ + /* Defines the scope of the onStart () => void (what "this" refers to inside that () => void). */ onStartScope?: {}; - /** A () => void that should be called every time the animation updates (on every frame while the animation is active). */ + /* A () => void that should be called every time the animation updates (on every frame while the animation is active). */ onUpdate?: () => void; - /** An Array of parameters to pass the onUpdate () => void. */ + /* An Array of parameters to pass the onUpdate () => void. */ onUpdateParams?: any[]; - /** Defines the scope of the onUpdate () => void (what "this" refers to inside that () => void). */ + /* Defines the scope of the onUpdate () => void (what "this" refers to inside that () => void). */ onUpdateScope?: {}; - /** If useFrames is true, the tweens's timing will be based on frames instead of seconds because it is intially added to the root frames-based timeline. This causes both its duration and delay to be based on frames. An animations's timing mode is always determined by its parent timeline. */ + /* If useFrames is true, the tweens's timing will be based on frames instead of seconds because it is intially added to the root frames-based timeline. This causes both its duration and + * delay to be based on frames. An animations's timing mode is always determined by its parent timeline. + */ useFrames?: boolean; - /** When a tween renders for the very first time and reads its starting values, GSAP will automatically "lazy render" that particular tick by default, meaning it will try to delay the rendering (writing of values) until the very end of the "tick" cycle which can improve performance because it avoids the read/write/read/write layout thrashing that some browsers do. If you would like to disable lazy rendering for a particular tween, you can set lazy:false. Or, since zero-duration tweens do not lazy-render by default, you can specifically give it permission to lazy-render by setting lazy:true like TweenLite.set(element, {opacity:0, lazy:true});. In most cases, you won't need to set lazy. */ + /* When a tween renders for the very first time and reads its starting values, GSAP will automatically "lazy render" that particular tick by default, meaning it will try to delay the + * rendering (writing of values) until the very end of the "tick" cycle which can improve performance because it avoids the read/write/read/write layout thrashing that some browsers do. + * If you would like to disable lazy rendering for a particular tween, you can set lazy:false. Or, since zero-duration tweens do not lazy-render by default, you can specifically give it + * permission to lazy-render by setting lazy:true like TweenLite.set(element, {opacity:0, lazy:true});. In most cases, you won't need to set lazy. + */ lazy?: boolean; - /** A () => void that should be called when the tween gets overwritten by another tween. */ + /* A () => void that should be called when the tween gets overwritten by another tween. */ onOverwrite?: () => void; - /** If true atuomatically populates the css property for tween on DOM elements */ + /* If true atuomatically populates the css property for tween on DOM elements */ autoCSS?: boolean; - /** The scope to be used for all of the callbacks (onStart, onUpdate, onComplete, etc.). The scope is what "this" refers to inside any of the callbacks. */ + /* The scope to be used for all of the callbacks (onStart, onUpdate, onComplete, etc.). The scope is what "this" refers to inside any of the callbacks. */ callbackScope?: {}; startAt?: {}; From 5c103e4bd59d93421c49d2861e7d47c43ecc5b55 Mon Sep 17 00:00:00 2001 From: Waseem Dahman Date: Tue, 16 Oct 2018 15:55:00 -0400 Subject: [PATCH 004/106] [jest-axe] update tsconfig --- types/jest-axe/tsconfig.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/types/jest-axe/tsconfig.json b/types/jest-axe/tsconfig.json index 887813c869..1889f0045d 100644 --- a/types/jest-axe/tsconfig.json +++ b/types/jest-axe/tsconfig.json @@ -2,7 +2,8 @@ "compilerOptions": { "module": "commonjs", "lib": [ - "es6" + "es6", + "dom" ], "noImplicitAny": true, "noImplicitThis": true, From 56cbb4150a430d87bb0641d8b8777d5eac39c4bb Mon Sep 17 00:00:00 2001 From: Jonathan Ingram Date: Thu, 18 Oct 2018 09:17:03 +1100 Subject: [PATCH 005/106] Add missing gapi.signin2.render onfailure arg --- types/gapi.auth2/gapi.auth2-tests.ts | 4 ++-- types/gapi.auth2/index.d.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/types/gapi.auth2/gapi.auth2-tests.ts b/types/gapi.auth2/gapi.auth2-tests.ts index 16818e414e..1fc03f7f4f 100644 --- a/types/gapi.auth2/gapi.auth2-tests.ts +++ b/types/gapi.auth2/gapi.auth2-tests.ts @@ -55,8 +55,8 @@ function test_render() { const success = (googleUser: gapi.auth2.GoogleUser): void => { console.log(googleUser); }; - const failure = (): void => { - console.log('Failure callback'); + const failure = (reason: { error: string }): void => { + console.log(`Failure callback: ${reason.error}`); }; gapi.signin2.render('testId', { diff --git a/types/gapi.auth2/index.d.ts b/types/gapi.auth2/index.d.ts index fdb4c08cc3..bd40ce9650 100644 --- a/types/gapi.auth2/index.d.ts +++ b/types/gapi.auth2/index.d.ts @@ -349,7 +349,7 @@ declare namespace gapi.signin2 { /** * The callback function to call when sign-in fails (default: none). */ - onfailure?(): void; + onfailure?(reason: { error: string }): void; /** * The package name of the Android app to install over the air. See From 6396ec36c8e66976e1d70e8ee9971fb28f1b358e Mon Sep 17 00:00:00 2001 From: MaxKornilov <44263165+MaxKornilov@users.noreply.github.com> Date: Thu, 18 Oct 2018 15:37:04 +0300 Subject: [PATCH 006/106] Select method moved to FrameBase --- types/puppeteer/index.d.ts | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/types/puppeteer/index.d.ts b/types/puppeteer/index.d.ts index 3ff4efbe4b..0e7f415edc 100644 --- a/types/puppeteer/index.d.ts +++ b/types/puppeteer/index.d.ts @@ -1168,6 +1168,15 @@ export interface FrameBase extends Evalable { * @param selector A selector to search for element to hover. If there are multiple elements satisfying the selector, the first will be hovered. */ hover(selector: string): Promise; + + /** + * Triggers a `change` and `input` event once all the provided options have been selected. + * If there's no `` has the `multiple` attribute, + * all values are considered, otherwise only the first one is taken into account. + */ + select(selector: string, ...values: string[]): Promise; /** * Sets the page content. @@ -1472,15 +1481,6 @@ export interface Page extends EventEmitter, FrameBase { screenshot(options?: BinaryScreenShotOptions): Promise; screenshot(options?: ScreenshotOptions): Promise; - /** - * Triggers a `change` and `input` event once all the provided options have been selected. - * If there's no `` has the `multiple` attribute, - * all values are considered, otherwise only the first one is taken into account. - */ - select(selector: string, ...values: string[]): Promise; - /** * Toggles bypassing page's Content-Security-Policy. * NOTE CSP bypassing happens at the moment of CSP initialization rather then evaluation. From b3f7b57c94d1a0c5496be9edbe65760bf4a9a250 Mon Sep 17 00:00:00 2001 From: MaxKornilov <44263165+MaxKornilov@users.noreply.github.com> Date: Thu, 18 Oct 2018 16:08:33 +0300 Subject: [PATCH 007/106] trailing whitespace removed --- types/puppeteer/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/puppeteer/index.d.ts b/types/puppeteer/index.d.ts index 0e7f415edc..f1669473a6 100644 --- a/types/puppeteer/index.d.ts +++ b/types/puppeteer/index.d.ts @@ -1168,7 +1168,7 @@ export interface FrameBase extends Evalable { * @param selector A selector to search for element to hover. If there are multiple elements satisfying the selector, the first will be hovered. */ hover(selector: string): Promise; - + /** * Triggers a `change` and `input` event once all the provided options have been selected. * If there's no ` props.onFocus('id', 'value')} + onBlur={()=> props.onFocus('id', 'value')} + /> From 993f25d467f2eebb7722e6db8361b04d66a494e2 Mon Sep 17 00:00:00 2001 From: ergoithz Date: Wed, 24 Oct 2018 12:49:23 +0200 Subject: [PATCH 056/106] fix wrong/missing/use-of MessageFields --- types/amqplib/index.d.ts | 6 +++--- types/amqplib/properties.d.ts | 24 ++++++++++++++++++++++-- 2 files changed, 25 insertions(+), 5 deletions(-) diff --git a/types/amqplib/index.d.ts b/types/amqplib/index.d.ts index 9ad6d9ceda..2ea088f841 100644 --- a/types/amqplib/index.d.ts +++ b/types/amqplib/index.d.ts @@ -8,7 +8,7 @@ import * as Promise from 'bluebird'; import * as events from 'events'; -import { Replies, Options, Message } from './properties'; +import { Replies, Options, Message, GetMessage, ConsumeMessage } from './properties'; export * from './properties'; export interface Connection extends events.EventEmitter { @@ -40,10 +40,10 @@ export interface Channel extends events.EventEmitter { publish(exchange: string, routingKey: string, content: Buffer, options?: Options.Publish): boolean; sendToQueue(queue: string, content: Buffer, options?: Options.Publish): boolean; - consume(queue: string, onMessage: (msg: Message | null) => any, options?: Options.Consume): Promise; + consume(queue: string, onMessage: (msg: ConsumeMessage | null) => any, options?: Options.Consume): Promise; cancel(consumerTag: string): Promise; - get(queue: string, options?: Options.Get): Promise; + get(queue: string, options?: Options.Get): Promise; ack(message: Message, allUpTo?: boolean): void; ackAll(): void; diff --git a/types/amqplib/properties.d.ts b/types/amqplib/properties.d.ts index 9f96b14f5c..97dc8ac393 100644 --- a/types/amqplib/properties.d.ts +++ b/types/amqplib/properties.d.ts @@ -145,12 +145,32 @@ export interface Message { properties: MessageProperties; } -export interface MessageFields { +export interface GetMessage extends Message { + fields: GetMessageFields; +} + +export interface ConsumeMessage extends Message { + fields: ConsumeMessageFields; +} + +export interface CommonMessageFields { deliveryTag: number; redelivered: boolean; exchange: string; routingKey: string; - messageCount: string; +} + +export interface MessageFields extends CommonMessageFields { + messageCount?: number; + consumerTag?: string; +} + +export interface GetMessageFields extends CommonMessageFields { + messageCount: number; +} + +export interface ConsumeMessageFields extends CommonMessageFields { + deliveryTag: number; } export interface MessageProperties { From 193746e148114c578c117a9c2792ca843df3352c Mon Sep 17 00:00:00 2001 From: Viktor Zolin Date: Wed, 24 Oct 2018 12:59:48 +0100 Subject: [PATCH 057/106] [@types/redux-orm] Fix the reducer typings The problem is outlined here: https://github.com/DefinitelyTyped/DefinitelyTyped/issues/29847 --- types/redux-orm/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/redux-orm/index.d.ts b/types/redux-orm/index.d.ts index 31fffa1273..644d86aea1 100644 --- a/types/redux-orm/index.d.ts +++ b/types/redux-orm/index.d.ts @@ -95,7 +95,7 @@ export class Model { static hasId(id: string): boolean; static _findDatabaseRows(lookupObj: object): any; // TODO static get(lookupObj: object): ModelWithFields; - static reducer(session: SessionWithModels, action: any): any; + static reducer(action: any, modelClass: typeof Model, session: SessionWithModels): any; readonly ref: Fields & Additional & ORMId; From c60ad4ab652f8fdbfda7b566e0450ebafe757e4a Mon Sep 17 00:00:00 2001 From: Sebastian Greaves Date: Wed, 24 Oct 2018 13:44:38 +0100 Subject: [PATCH 058/106] [Slate] Add Editor Definition Editor is not defined in @types/slate, making it difficult to develop for slate in Typescript if not using slate-react ( and therefore @types/slate-react, where the React mounted editor is defined). --- types/slate/index.d.ts | 20 +++++++++++++++++++- types/slate/slate-tests.ts | 15 ++++++++++++++- 2 files changed, 33 insertions(+), 2 deletions(-) diff --git a/types/slate/index.d.ts b/types/slate/index.d.ts index f1cd8ecc64..6f10f91378 100644 --- a/types/slate/index.d.ts +++ b/types/slate/index.d.ts @@ -7,10 +7,10 @@ // Kalley Powell // Francesco Agnoletto // Irwan Fario Subastian +// Sebastian Greaves // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 import * as Immutable from "immutable"; - export class Data extends Immutable.Record({}) { [key: string]: any; @@ -1527,4 +1527,22 @@ export interface PathUtils { ): Immutable.List; } +export class Editor extends Immutable.Record({}) { + object: "editor"; + onChange: (change: Change) => void; + plugins: any[]; + readOnly: boolean; + value: Value; + + change(customChange: (change: Change, ...args: any[]) => Change): void; + command(name: string, ...args: any[]): void; + event(handler: string, event: any): void; + query(query: string, ...args: any[]): any; + registerCommand(command: string): void; + registerQuery(query: string): void; + run(key: string, ...args: any[]): any; + setReadOnly(readOnly: boolean): Editor; + setValue(value: Value, options?: object): Editor; +} + export {}; diff --git a/types/slate/slate-tests.ts b/types/slate/slate-tests.ts index 91ef2dadcb..38faf7e207 100644 --- a/types/slate/slate-tests.ts +++ b/types/slate/slate-tests.ts @@ -1,4 +1,4 @@ -import { Value, Data, BlockJSON, Document } from "slate"; +import { Value, Data, BlockJSON, Document, Editor, Change } from "slate"; const data = Data.create({ foo: "bar " }); const value = Value.create({ data }); @@ -45,3 +45,16 @@ const doc = Document.fromJSON({ data: {}, nodes: [node] }); + +const editor = new Editor({ value }); +editor.change((change: Change) => { + return change.insertText("test"); +}); + +editor.registerQuery("testQuery"); +editor.registerCommand("testCommand"); +editor.setReadOnly(true).setValue(value); +editor.command("testCommand"); +editor.query("testQuery"); +editor.run("testCommand"); +editor.event("mouseDown", () => { }); From af28fa1d9b4b8a2b5a7014996a7509dd9f2bc1ae Mon Sep 17 00:00:00 2001 From: Sebastian Greaves Date: Wed, 24 Oct 2018 13:52:16 +0100 Subject: [PATCH 059/106] Undo unintended line removal --- types/slate/index.d.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/types/slate/index.d.ts b/types/slate/index.d.ts index 6f10f91378..c14f3df594 100644 --- a/types/slate/index.d.ts +++ b/types/slate/index.d.ts @@ -11,6 +11,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 import * as Immutable from "immutable"; + export class Data extends Immutable.Record({}) { [key: string]: any; From b48607469343d10eb8ccb4cb513d33bbc96ac101 Mon Sep 17 00:00:00 2001 From: Sebastian Greaves Date: Wed, 24 Oct 2018 13:57:02 +0100 Subject: [PATCH 060/106] Correct indentation --- types/slate/index.d.ts | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/types/slate/index.d.ts b/types/slate/index.d.ts index c14f3df594..3f114ca3d0 100644 --- a/types/slate/index.d.ts +++ b/types/slate/index.d.ts @@ -1529,21 +1529,21 @@ export interface PathUtils { } export class Editor extends Immutable.Record({}) { - object: "editor"; - onChange: (change: Change) => void; - plugins: any[]; - readOnly: boolean; - value: Value; + object: "editor"; + onChange: (change: Change) => void; + plugins: any[]; + readOnly: boolean; + value: Value; - change(customChange: (change: Change, ...args: any[]) => Change): void; - command(name: string, ...args: any[]): void; - event(handler: string, event: any): void; - query(query: string, ...args: any[]): any; - registerCommand(command: string): void; - registerQuery(query: string): void; - run(key: string, ...args: any[]): any; - setReadOnly(readOnly: boolean): Editor; - setValue(value: Value, options?: object): Editor; + change(customChange: (change: Change, ...args: any[]) => Change): void; + command(name: string, ...args: any[]): void; + event(handler: string, event: any): void; + query(query: string, ...args: any[]): any; + registerCommand(command: string): void; + registerQuery(query: string): void; + run(key: string, ...args: any[]): any; + setReadOnly(readOnly: boolean): Editor; + setValue(value: Value, options?: object): Editor; } export {}; From c201a29a80643763918eebccc9764263f9305c97 Mon Sep 17 00:00:00 2001 From: Sebastian Greaves Date: Wed, 24 Oct 2018 14:00:37 +0100 Subject: [PATCH 061/106] Bump version number --- types/slate/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/slate/index.d.ts b/types/slate/index.d.ts index 3f114ca3d0..d137d191a0 100644 --- a/types/slate/index.d.ts +++ b/types/slate/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for slate 0.40 +// Type definitions for slate 0.42 // Project: https://github.com/ianstormtaylor/slate // Definitions by: Andy Kent // Jamie Talbot From 21351beac6c95d8f164378301e9d3c6b1e1265e8 Mon Sep 17 00:00:00 2001 From: Sebastian Greaves Date: Wed, 24 Oct 2018 14:49:13 +0100 Subject: [PATCH 062/106] Address review feedback - Use more strict `Event` rather than `any` for `event` function - `Editor` is not really an `Immutable.Record` so rework class definition to remove the extension on `Record` --- types/slate/index.d.ts | 17 +++++++++++++---- types/slate/slate-tests.ts | 2 +- 2 files changed, 14 insertions(+), 5 deletions(-) diff --git a/types/slate/index.d.ts b/types/slate/index.d.ts index d137d191a0..5ba5cc6b31 100644 --- a/types/slate/index.d.ts +++ b/types/slate/index.d.ts @@ -1528,22 +1528,31 @@ export interface PathUtils { ): Immutable.List; } -export class Editor extends Immutable.Record({}) { +export interface EditorProperties { + onChange?: (change: Change) => void; + plugins?: any[]; + readOnly?: boolean; + value?: Value; + } + + export class Editor { object: "editor"; onChange: (change: Change) => void; plugins: any[]; readOnly: boolean; value: Value; - + constructor(attributes: EditorProperties) + change(customChange: (change: Change, ...args: any[]) => Change): void; command(name: string, ...args: any[]): void; - event(handler: string, event: any): void; + event(handler: string, event: Event): void; query(query: string, ...args: any[]): any; registerCommand(command: string): void; registerQuery(query: string): void; run(key: string, ...args: any[]): any; setReadOnly(readOnly: boolean): Editor; setValue(value: Value, options?: object): Editor; -} + } + export {}; diff --git a/types/slate/slate-tests.ts b/types/slate/slate-tests.ts index 38faf7e207..8e843e2d3d 100644 --- a/types/slate/slate-tests.ts +++ b/types/slate/slate-tests.ts @@ -57,4 +57,4 @@ editor.setReadOnly(true).setValue(value); editor.command("testCommand"); editor.query("testQuery"); editor.run("testCommand"); -editor.event("mouseDown", () => { }); +editor.event("mouseDown", new Event("mouseDown")); From 148162eac3f3e332b6c4edb6e4f56a460a37e086 Mon Sep 17 00:00:00 2001 From: Sebastian Greaves Date: Wed, 24 Oct 2018 14:53:54 +0100 Subject: [PATCH 063/106] Correct linter issues --- types/slate/index.d.ts | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/types/slate/index.d.ts b/types/slate/index.d.ts index 5ba5cc6b31..ab3f8d5a70 100644 --- a/types/slate/index.d.ts +++ b/types/slate/index.d.ts @@ -1533,16 +1533,16 @@ export interface EditorProperties { plugins?: any[]; readOnly?: boolean; value?: Value; - } - - export class Editor { +} + +export class Editor { object: "editor"; onChange: (change: Change) => void; plugins: any[]; readOnly: boolean; value: Value; constructor(attributes: EditorProperties) - + change(customChange: (change: Change, ...args: any[]) => Change): void; command(name: string, ...args: any[]): void; event(handler: string, event: Event): void; @@ -1552,7 +1552,6 @@ export interface EditorProperties { run(key: string, ...args: any[]): any; setReadOnly(readOnly: boolean): Editor; setValue(value: Value, options?: object): Editor; - } - +} export {}; From 5bddeaef13d2e698df7ace21fcbc16bb70a05ab3 Mon Sep 17 00:00:00 2001 From: Sebastian Greaves Date: Wed, 24 Oct 2018 15:01:12 +0100 Subject: [PATCH 064/106] Add SyntheticEvent type --- types/slate/index.d.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/types/slate/index.d.ts b/types/slate/index.d.ts index ab3f8d5a70..d7f974bd7c 100644 --- a/types/slate/index.d.ts +++ b/types/slate/index.d.ts @@ -11,6 +11,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 import * as Immutable from "immutable"; +import { SyntheticEvent } from "react"; export class Data extends Immutable.Record({}) { [key: string]: any; @@ -1545,7 +1546,7 @@ export class Editor { change(customChange: (change: Change, ...args: any[]) => Change): void; command(name: string, ...args: any[]): void; - event(handler: string, event: Event): void; + event(handler: string, event: Event | SyntheticEvent): void; query(query: string, ...args: any[]): any; registerCommand(command: string): void; registerQuery(query: string): void; From 66fcd862f38e2a68c157e1fd282dc83ae84dc725 Mon Sep 17 00:00:00 2001 From: Sebastian Greaves Date: Wed, 24 Oct 2018 15:03:03 +0100 Subject: [PATCH 065/106] bump ts version --- types/slate/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/slate/index.d.ts b/types/slate/index.d.ts index d7f974bd7c..7c9a41efa8 100644 --- a/types/slate/index.d.ts +++ b/types/slate/index.d.ts @@ -9,7 +9,7 @@ // Irwan Fario Subastian // Sebastian Greaves // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -// TypeScript Version: 2.3 +// TypeScript Version: 2.8 import * as Immutable from "immutable"; import { SyntheticEvent } from "react"; From 4c6fb7845e44a50d45250ff2a260f3df766fc1fc Mon Sep 17 00:00:00 2001 From: Sebastian Greaves Date: Wed, 24 Oct 2018 15:04:52 +0100 Subject: [PATCH 066/106] bump friends ts version --- types/slate-base64-serializer/index.d.ts | 2 +- types/slate-plain-serializer/index.d.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/types/slate-base64-serializer/index.d.ts b/types/slate-base64-serializer/index.d.ts index 6d356aa1c3..6e55220481 100644 --- a/types/slate-base64-serializer/index.d.ts +++ b/types/slate-base64-serializer/index.d.ts @@ -2,7 +2,7 @@ // Project: https://github.com/ianstormtaylor/slate // Definitions by: Brandon Shelton // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -// TypeScript Version: 2.6 +// TypeScript Version: 2.8 import { Value, Node } from "slate"; export function deserialize(string: string, options?: object): Value; diff --git a/types/slate-plain-serializer/index.d.ts b/types/slate-plain-serializer/index.d.ts index ed57cf3cca..1361c7f743 100644 --- a/types/slate-plain-serializer/index.d.ts +++ b/types/slate-plain-serializer/index.d.ts @@ -3,7 +3,7 @@ // Definitions by: Brandon Shelton // Martin Kiefel // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -// TypeScript Version: 2.6 +// TypeScript Version: 2.8 import { BlockProperties, MarkProperties, Value } from 'slate'; export interface DeserializeOptions { From 750583532430ec68e1d9acb350f1b06cbf35c8b0 Mon Sep 17 00:00:00 2001 From: Tom Spencer Date: Wed, 24 Oct 2018 16:33:27 +0100 Subject: [PATCH 067/106] Added types for react-native-status-bar-height --- .../react-native-status-bar-height/index.d.ts | 6 +++++ .../react-native-status-bar-height-tests.ts | 5 ++++ .../tsconfig.json | 23 +++++++++++++++++++ .../tslint.json | 1 + 4 files changed, 35 insertions(+) create mode 100644 types/react-native-status-bar-height/index.d.ts create mode 100644 types/react-native-status-bar-height/react-native-status-bar-height-tests.ts create mode 100644 types/react-native-status-bar-height/tsconfig.json create mode 100644 types/react-native-status-bar-height/tslint.json diff --git a/types/react-native-status-bar-height/index.d.ts b/types/react-native-status-bar-height/index.d.ts new file mode 100644 index 0000000000..6b24c8a9a2 --- /dev/null +++ b/types/react-native-status-bar-height/index.d.ts @@ -0,0 +1,6 @@ +// Type definitions for react-native-status-bar-height 2.1 +// Project: https://github.com/ovr/react-native-status-bar-height#readme +// Definitions by: Tom Spencer +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +export function getStatusBarHeight(skipAndroid?: boolean): number; diff --git a/types/react-native-status-bar-height/react-native-status-bar-height-tests.ts b/types/react-native-status-bar-height/react-native-status-bar-height-tests.ts new file mode 100644 index 0000000000..a31cb57259 --- /dev/null +++ b/types/react-native-status-bar-height/react-native-status-bar-height-tests.ts @@ -0,0 +1,5 @@ +import { getStatusBarHeight } from 'react-native-status-bar-height'; + +getStatusBarHeight(); // $ExpectType number +getStatusBarHeight(false); // $ExpectType number +getStatusBarHeight(true); // $ExpectType number diff --git a/types/react-native-status-bar-height/tsconfig.json b/types/react-native-status-bar-height/tsconfig.json new file mode 100644 index 0000000000..13c7ab69f5 --- /dev/null +++ b/types/react-native-status-bar-height/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-native-status-bar-height-tests.ts" + ] +} diff --git a/types/react-native-status-bar-height/tslint.json b/types/react-native-status-bar-height/tslint.json new file mode 100644 index 0000000000..3db14f85ea --- /dev/null +++ b/types/react-native-status-bar-height/tslint.json @@ -0,0 +1 @@ +{ "extends": "dtslint/dt.json" } From a348ce6aa33b6c56f84fd563fe315d1b54815f0f Mon Sep 17 00:00:00 2001 From: Forbes Lindesay Date: Wed, 24 Oct 2018 17:04:40 +0100 Subject: [PATCH 068/106] Update speakeasy types --- types/speakeasy/index.d.ts | 461 +++++++++++++++++++++++++---- types/speakeasy/speakeasy-tests.ts | 31 +- types/speakeasy/tsconfig.json | 2 +- types/speakeasy/tslint.json | 80 +---- 4 files changed, 417 insertions(+), 157 deletions(-) diff --git a/types/speakeasy/index.d.ts b/types/speakeasy/index.d.ts index 06d79ea6aa..573a9df820 100644 --- a/types/speakeasy/index.d.ts +++ b/types/speakeasy/index.d.ts @@ -1,119 +1,452 @@ -// Type definitions for speakeasy v2.0.0 +// Type definitions for speakeasy 2.0 // Project: https://github.com/speakeasyjs/speakeasy // Definitions by: Lucas Woo , Alexander Batukhtin , Aayush Kapoor // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -interface SharedOptions { - encoding?: string; - algorithm?: string; +/// + +export type Encoding = 'ascii' | 'hex' | 'base32' | 'base64'; +export type Algorithm = 'sha1' | 'sha256' | 'sha512'; + +export interface SharedOptions { + /** + * Key encoding, defaults to ascii + */ + encoding?: Encoding; + /** + * Algorithm, defaults to sha1 + */ + algorithm?: Algorithm; } -interface Key { +export interface GeneratedSecret { + /** + * ASCII representation of the secret + */ ascii: string; - base32: string; + /** + * Hex representation of the secret + */ hex: string; - qr_code_ascii: string; - qr_code_hex: string; - qr_code_base32: string; + /** + * Base32 representation of the secret + */ + base32: string; + /** + * URL for the QR code for the ASCII secret. + * + * @deprecated use a separate QR code library + */ + qr_code_ascii?: string; + /** + * URL for the QR code for the hex secret. + * + * @deprecated use a separate QR code library + */ + qr_code_hex?: string; + /** + * URL for the QR code for the base32 secret. + * + * @deprecated use a separate QR code library + */ + qr_code_base32?: string; + /** + * URL for the Google Authenticator otpauth + * URL's QR code. + * + * @deprecated use a separate QR code library + */ google_auth_qr: string; + /** + * Google Authenticator-compatible otpauth URL. + */ otpauth_url?: string; } +export interface GeneratedSecretWithOtpAuthUrl extends GeneratedSecret { + /** + * Google Authenticator-compatible otpauth URL. + */ + otpauth_url: string; +} -interface DigestOptions extends SharedOptions { +export interface DigestOptions extends SharedOptions { secret: string; - counter: string; + counter: number; + /** + * @deprecated use secret + */ key?: string; } -interface GenerateOptions { +export interface GenerateSecretOptions { + /** + * Length of the secret, defaults to 32 + */ length?: number; + /** + * Whether to include symbols, defaults to false + */ symbols?: boolean; - qr_codes?: boolean; - google_auth_qr?: boolean; + /** + * The name to use with Google Authenticator, deaults to 'SecretKey' + */ name?: string; -} - -interface GenerateSecretOptions { - length?: number; - name?: string; - qr_codes?: boolean; - google_auth_qr?: boolean; + /** + * Whether to output a Google Authenticator-compatible otpauth:// URL + * (only returns otpauth:// URL, no QR code), defaults to false + */ otpauth_url?: boolean; - symbols?: boolean; + /** + * The provider or service with which the + * secret key is associated, defaults to '' + */ + issuer?: string; + /** + * Output QR code URLs for the token. + * + * @deprecated use your own QR code implementation to prevent + * leaking of secret to a third party. + */ + qr_codes?: boolean; + /** + * Output a Google Authenticator otpauth:// QR code URL. + * + * @deprecated use your own QR code implementation to prevent + * leaking of secret to a third party. + */ + google_auth_qr?: boolean; +} +export interface GenerateSecretWithOtpAuthUrlOptions extends GenerateSecretOptions { + /** + * Whether to output a Google Authenticator-compatible otpauth:// URL + * (only returns otpauth:// URL, no QR code), defaults to false + */ + otpauth_url: true; } -interface TotpOptions extends SharedOptions { - key?: string; - step?: number; +export interface HotpOptions extends DigestOptions { + /** + * @deprecated use digits + */ + length?: number; + /** + * The number of digits for the one-time passcode, defaults to 6 + */ + digits?: number; + /** + * The digest, automatically generated by default + */ + digest?: Buffer; +} + +export interface HotpVerifyOptions extends SharedOptions { + /** + * Shared secret key + */ + secret: string; + /** + * Passcode to validate + */ + token: string; + /** + * Counter value. This should be stored by + * the application and must be incremented for each request. + */ + counter: number; + /** + * The number of digits for the one-time passcode, defaults to 6 + */ + digits?: number; + /** + * The allowable margin for the counter. + * The function will check "W" codes in the future against the provided + * passcode, e.g. if W = 10, and C = 5, this function will check the + * passcode against all One Time Passcodes between 5 and 15, inclusive, + * defaults to 0 + */ + window?: number; +} + +export interface TotpOptions extends SharedOptions { + /** + * Time in seconds with which to calculate + * counter value, defaults to `Date.now() / 1000`. + */ time?: number; + /** + * Time step in seconds, defaults to 30 + */ + step?: number; + /** + * Initial time since the UNIX epoch from which to calculate the counter value, + * defaults to 0 (no offset). + */ + epoch?: number; + /** + * @deprecated use epoch + */ initial_time?: number; - length?: number; - counter?: number; - epoch?: number; - secret?: string; + /** + * The number of digits for the one-time passcode, defaults to 6 + */ digits?: number; - digest?: () => string; + /** + * @deprecated use digits + */ + length?: number; + /** + * The digest, automatically generated by default + */ + digest?: Buffer; + /** + * Shared secret key + */ + secret: string; + /** + * @deprecated use secret + */ + key?: string; + /** + * The counter value, calculated from time by default + */ + counter?: string; } -interface TotpVerifyOptions extends SharedOptions { +export interface TotpVerifyOptions extends SharedOptions { + /** + * Shared secret key + */ secret: string; + /** + * Passcode to validate + */ token: string; + /** + * Time in seconds with which to calculate + * counter value, defaults to `Date.now() / 1000`. + */ time?: number; + /** + * Time step in seconds, defaults to 30 + */ step?: number; + /** + * Initial time since the UNIX epoch from which to calculate the counter value, + * defaults to 0 (no offset). + */ epoch?: number; - counter?: number; + /** + * The number of digits for the one-time passcode, defaults to 6 + */ digits?: number; + /** + * The allowable margin for the counter. + * The function will check "W" codes in the future and the past against the + * provided passcode, e.g. if W = 5, and C = 1000, this function will check + * the passcode against all One Time Passcodes between 995 and 1005, inclusive + * defaults to 0 + */ window?: number; + /** + * The counter value, calculated from time by default + */ + counter?: string; } -interface HotpOptions extends SharedOptions { - key: string; - counter: number; - length?: number; - digits?: number; - digest?: () => string; -} - -interface HotpVerifyOptions extends SharedOptions { - secret: string; - token: string; - counter: number; - digits?: number; - window?: number; -} - -interface OtpauthURLOptions extends SharedOptions { +export interface OtpauthURLOptions extends SharedOptions { + /** + * Shared secret key + */ secret: string; + /** + * Used to identify the account with which the secret key is associated, + * e.g. the user's email address. + */ label: string; - issuer?: any; - type?: string; + /** + * Either 'hotp' or 'totp', defaults to 'totp' + */ + type?: 'htop' | 'totp'; + /** + * The initial counter value, required for HOTP. + */ counter?: number; + /** + * The provider or service with which the secret key is associated. + */ + issuer?: string; + /** + * The number of digits for the one-time passcode. Currently ignored + * by Google Authenticator, defaults to 6 + */ digits?: number; + /** + * The length of time for which a TOTP code will be valid, in seconds. + * Currently ignored by Google Authenticator, defaults to 30 + */ period?: number; } -interface Hotp { +export interface Delta { + delta: number; +} + +export interface Hotp { + /** + * Generate a counter-based one-time token. Specify the key and counter, and + * receive the one-time password for that counter position as a string. You can + * also specify a token length, as well as the encoding (ASCII, hexadecimal, or + * base32) and the hashing algorithm to use (SHA1, SHA256, SHA512). + * + * @return The one-time passcode. + */ (options: HotpOptions): string; - verifyDelta: (options: HotpVerifyOptions) => boolean; + /** + * Verify a counter-based one-time token against the secret and return the delta. + * By default, it verifies the token at the given counter value, with no leeway + * (no look-ahead or look-behind). A token validated at the current counter value + * will have a delta of 0. + * + * You can specify a window to add more leeway to the verification process. + * Setting the window param will check for the token at the given counter value + * as well as `window` tokens ahead (one-sided window). See param for more info. + * + * `verifyDelta()` will return the delta between the counter value of the token + * and the given counter value. For example, if given a counter 5 and a window + * 10, `verifyDelta()` will look at tokens from 5 to 15, inclusive. If it finds + * it at counter position 7, it will return `{ delta: 2 }`. + * + * @return On success, returns an object with the counter + * difference between the client and the server as the `delta` property (i.e. + * `{ delta: 0 }`). + */ + verifyDelta: (options: HotpVerifyOptions) => undefined | Delta; + /** + * Verify a counter-based one-time token against the secret and return true if + * it verifies. Helper function for `hotp.verifyDelta()`` that returns a boolean + * instead of an object. + * + * @return Returns true if the token matches within the given window, false otherwise. + */ verify: (options: HotpVerifyOptions) => boolean; } -interface Totp { +export interface Totp { + /** + * Generate a time-based one-time token. Specify the key, and receive the + * one-time password for that time as a string. By default, it uses the current + * time and a time step of 30 seconds, so there is a new token every 30 seconds. + * You may override the time step and epoch for custom timing. You can also + * specify a token length, as well as the encoding (ASCII, hexadecimal, or + * base32) and the hashing algorithm to use (SHA1, SHA256, SHA512). + * + * Under the hood, TOTP calculates the counter value by finding how many time + * steps have passed since the epoch, and calls HOTP with that counter value. + * + * @return The one-time passcode. + */ (options: TotpOptions): string; - verifyDelta: (options: TotpVerifyOptions) => boolean; + /** + * Verify a time-based one-time token against the secret and return the delta. + * By default, it verifies the token at the current time window, with no leeway + * (no look-ahead or look-behind). A token validated at the current time window + * will have a delta of 0. + * + * You can specify a window to add more leeway to the verification process. + * Setting the window param will check for the token at the given counter value + * as well as `window` tokens ahead and `window` tokens behind (two-sided + * window). See param for more info. + * + * `verifyDelta()` will return the delta between the counter value of the token + * and the given counter value. For example, if given a time at counter 1000 and + * a window of 5, `verifyDelta()` will look at tokens from 995 to 1005, + * inclusive. In other words, if the time-step is 30 seconds, it will look at + * tokens from 2.5 minutes ago to 2.5 minutes in the future, inclusive. + * If it finds it at counter position 1002, it will return `{ delta: 2 }`. + * If it finds it at counter position 997, it will return `{ delta: -3 }`. + * + * @return On success, returns an object with the time step + * difference between the client and the server as the `delta` property (e.g. + * `{ delta: 0 }`). + */ + verifyDelta: (options: TotpVerifyOptions) => undefined | Delta; + /** + * Verify a time-based one-time token against the secret and return true if it + * verifies. Helper function for verifyDelta() that returns a boolean instead of + * an object. + * + * @return Returns true if the token matches within the given + * window, false otherwise. + */ verify: (options: TotpVerifyOptions) => boolean; } -export declare const hotp: Hotp; -export declare const totp: Totp; +/** + * Digest the one-time passcode options. + * + * @return The one-time passcode as a buffer. + */ +export function digest(options: DigestOptions): Buffer; -export declare function time(options: TotpOptions): string; -export declare function counter(options: HotpOptions): string; -export declare function digest(options: DigestOptions): string; -export declare function generate_key(options: GenerateOptions): Key; -export declare function generateSecret(options?: GenerateSecretOptions): Key; -export declare function generateSecretASCII( +export const hotp: Hotp; +// Alias counter() for hotp() +export const counter: Hotp; + +export const totp: Totp; +// Alias time() for totp() +export const time: Totp; + +/** + * Generates a random secret with the set A-Z a-z 0-9 and symbols, of any length + * (default 32). Returns the secret key in ASCII, hexadecimal, and base32 format, + * along with the URL used for the QR code for Google Authenticator (an otpauth + * URL). Use a QR code library to generate a QR code based on the Google + * Authenticator URL to obtain a QR code you can scan into the app. + */ +export function generateSecret(options: GenerateSecretWithOtpAuthUrlOptions): GeneratedSecretWithOtpAuthUrl; +/** + * Generates a random secret with the set A-Z a-z 0-9 and symbols, of any length + * (default 32). Returns the secret key in ASCII, hexadecimal, and base32 format, + * along with the URL used for the QR code for Google Authenticator (an otpauth + * URL). Use a QR code library to generate a QR code based on the Google + * Authenticator URL to obtain a QR code you can scan into the app. + */ +export function generateSecret(options?: GenerateSecretOptions): GeneratedSecret; +/** + * @deprecated use generateSecret + */ +export const generate_key: typeof generateSecret; + +/** + * Generates a key of a certain length (default 32) from A-Z, a-z, 0-9, and + * symbols (if requested). + * + * @param length The length of the key, defaults to 32 + * @param symbols Whether to include symbols in the key, defaults to false + * @return The generated key. + */ +export function generateSecretASCII( length?: number, symbols?: boolean ): string; -export declare function otpauthURL(options: OtpauthURLOptions): string; +/** + * @deprecated use generateSecret + */ +export const generate_key_ascii: typeof generateSecretASCII; + +/** + * Generate a Google Authenticator-compatible otpauth:// URL for passing the + * secret to a mobile device to install the secret. + * + * Authenticator considers TOTP codes valid for 30 seconds. Additionally, + * the app presents 6 digits codes to the user. According to the + * documentation, the period and number of digits are currently ignored by + * the app. + * + * To generate a suitable QR Code, pass the generated URL to a QR Code + * generator, such as the `qr-image` module. + * + * @return A URL suitable for use with the Google Authenticator. + * @see https://github.com/google/google-authenticator/wiki/Key-Uri-Format + */ +export function otpauthURL(options: OtpauthURLOptions): string; diff --git a/types/speakeasy/speakeasy-tests.ts b/types/speakeasy/speakeasy-tests.ts index c807e568a3..587b95fd55 100644 --- a/types/speakeasy/speakeasy-tests.ts +++ b/types/speakeasy/speakeasy-tests.ts @@ -3,34 +3,39 @@ import * as speakeasy from 'speakeasy'; speakeasy.generate_key({length: 20, google_auth_qr: true}); // normal use. -speakeasy.hotp({key: 'secret', counter: 582}); +speakeasy.hotp({secret: 'secret', counter: 582}); // use a custom length. -speakeasy.hotp({key: 'secret', counter: 582, length: 8}); +speakeasy.hotp({secret: 'secret', counter: 582, length: 8}); // use a custom encoding. -speakeasy.hotp({key: 'AJFIEJGEHIFIU7148SF', counter: 147, encoding: 'base32'}); +speakeasy.hotp({secret: 'AJFIEJGEHIFIU7148SF', counter: 147, encoding: 'base32'}); // normal use. -speakeasy.totp({key: 'secret'}); +speakeasy.totp({secret: 'secret'}); // use a custom time step. -speakeasy.totp({key: 'secret', step: 60}); +speakeasy.totp({secret: 'secret', step: 60}); // use a custom time. -speakeasy.totp({key: 'secret', time: 159183717}); +speakeasy.totp({secret: 'secret', time: 159183717}); // use a initial time. -speakeasy.totp({key: 'secret', initial_time: 4182881485}); +speakeasy.totp({secret: 'secret', initial_time: 4182881485}); -speakeasy.generateSecret({ +const otpauth_url: string = speakeasy.generateSecret({ length: 3, name: 'testName', qr_codes: true, google_auth_qr: true, otpauth_url: true, symbols: true -}); +}).otpauth_url; + +const otpauth_url2: string | undefined = speakeasy.generateSecret({ + length: 3, + name: 'testName', +}).otpauth_url; speakeasy.generateSecretASCII(5, true); @@ -39,10 +44,10 @@ speakeasy.otpauthURL({ label: 'otpauthURLLength' }); -speakeasy.totp.verify({secret: "secret", token: "123456"}) +speakeasy.totp.verify({secret: "secret", token: "123456"}); -speakeasy.totp.verifyDelta({secret: "secret", token: "123456"}) +speakeasy.totp.verifyDelta({secret: "secret", token: "123456"}); -speakeasy.hotp.verify({secret: "secret", token: "123456", counter: 123}) +speakeasy.hotp.verify({secret: "secret", token: "123456", counter: 123}); -speakeasy.hotp.verifyDelta({secret: "secret", token: "123456", counter: 123}) +speakeasy.hotp.verifyDelta({secret: "secret", token: "123456", counter: 123}); diff --git a/types/speakeasy/tsconfig.json b/types/speakeasy/tsconfig.json index e27d664bc4..7831b0837f 100644 --- a/types/speakeasy/tsconfig.json +++ b/types/speakeasy/tsconfig.json @@ -6,7 +6,7 @@ ], "noImplicitAny": true, "noImplicitThis": true, - "strictNullChecks": false, + "strictNullChecks": true, "strictFunctionTypes": true, "baseUrl": "../", "typeRoots": [ diff --git a/types/speakeasy/tslint.json b/types/speakeasy/tslint.json index a41bf5d19a..3db14f85ea 100644 --- a/types/speakeasy/tslint.json +++ b/types/speakeasy/tslint.json @@ -1,79 +1 @@ -{ - "extends": "dtslint/dt.json", - "rules": { - "adjacent-overload-signatures": false, - "array-type": false, - "arrow-return-shorthand": false, - "ban-types": false, - "callable-types": false, - "comment-format": false, - "dt-header": false, - "eofline": false, - "export-just-namespace": false, - "import-spacing": false, - "interface-name": false, - "interface-over-type-literal": false, - "jsdoc-format": false, - "max-line-length": false, - "member-access": false, - "new-parens": false, - "no-any-union": false, - "no-boolean-literal-compare": false, - "no-conditional-assignment": false, - "no-consecutive-blank-lines": false, - "no-construct": false, - "no-declare-current-package": false, - "no-duplicate-imports": false, - "no-duplicate-variable": false, - "no-empty-interface": false, - "no-for-in-array": false, - "no-inferrable-types": false, - "no-internal-module": false, - "no-irregular-whitespace": false, - "no-mergeable-namespace": false, - "no-misused-new": false, - "no-namespace": false, - "no-object-literal-type-assertion": false, - "no-padding": false, - "no-redundant-jsdoc": false, - "no-redundant-jsdoc-2": false, - "no-redundant-undefined": false, - "no-reference-import": false, - "no-relative-import-in-test": false, - "no-self-import": false, - "no-single-declare-module": false, - "no-string-throw": false, - "no-unnecessary-callback-wrapper": false, - "no-unnecessary-class": false, - "no-unnecessary-generics": false, - "no-unnecessary-qualifier": false, - "no-unnecessary-type-assertion": false, - "no-useless-files": false, - "no-var-keyword": false, - "no-var-requires": false, - "no-void-expression": false, - "no-trailing-whitespace": false, - "object-literal-key-quotes": false, - "object-literal-shorthand": false, - "one-line": false, - "one-variable-per-declaration": false, - "only-arrow-functions": false, - "prefer-conditional-expression": false, - "prefer-const": false, - "prefer-declare-function": false, - "prefer-for-of": false, - "prefer-method-signature": false, - "prefer-template": false, - "radix": false, - "semicolon": false, - "space-before-function-paren": false, - "space-within-parens": false, - "strict-export-declare-modifiers": false, - "trim-file": false, - "triple-equals": false, - "typedef-whitespace": false, - "unified-signatures": false, - "void-return": false, - "whitespace": false - } -} +{ "extends": "dtslint/dt.json" } From d5f7aee604c850b32713b24fbbf360a93174a9bd Mon Sep 17 00:00:00 2001 From: Alec McEachran Date: Wed, 24 Oct 2018 18:14:34 +0100 Subject: [PATCH 069/106] Update three-core.d.ts to correct Color definition lerpHSL is missing from the definition, but is [defined](https://github.com/mrdoob/three.js/blob/master/src/math/Color.js). The definition can also be improved by using 'self' to express that these functions are fluent, returning this rather than a new instance of Color. --- types/three/three-core.d.ts | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/types/three/three-core.d.ts b/types/three/three-core.d.ts index 3ab89ea5a9..03cddb9e3b 100755 --- a/types/three/three-core.d.ts +++ b/types/three/three-core.d.ts @@ -3378,17 +3378,18 @@ export class Color { */ getStyle(): string; - offsetHSL(h: number, s: number, l: number): Color; + offsetHSL(h: number, s: number, l: number): self; - add(color: Color): Color; - addColors(color1: Color, color2: Color): Color; - addScalar(s: number): Color; - sub(color: Color): Color; - multiply(color: Color): Color; - multiplyScalar(s: number): Color; - lerp(color: Color, alpha: number): Color; + add(color: Color): self; + addColors(color1: Color, color2: Color): self; + addScalar(s: number): self; + sub(color: Color): self; + multiply(color: Color): self; + multiplyScalar(s: number): self; + lerp(color: Color, alpha: number): self; + lerpHSL(color: Color, alpha: number): self; equals(color: Color): boolean; - fromArray(rgb: number[], offset?: number): Color; + fromArray(rgb: number[], offset?: number): self; toArray(array?: number[], offset?: number): number[]; } From 23a3612ccf0645b91a006b7268b6455a10bb5261 Mon Sep 17 00:00:00 2001 From: Alec McEachran Date: Wed, 24 Oct 2018 18:19:42 +0100 Subject: [PATCH 070/106] %s/self/this/g I beg your pardon - "this" not "self" :/ --- types/three/three-core.d.ts | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/types/three/three-core.d.ts b/types/three/three-core.d.ts index 03cddb9e3b..66276bb1f4 100755 --- a/types/three/three-core.d.ts +++ b/types/three/three-core.d.ts @@ -3378,18 +3378,18 @@ export class Color { */ getStyle(): string; - offsetHSL(h: number, s: number, l: number): self; + offsetHSL(h: number, s: number, l: number): this; - add(color: Color): self; - addColors(color1: Color, color2: Color): self; - addScalar(s: number): self; - sub(color: Color): self; - multiply(color: Color): self; - multiplyScalar(s: number): self; - lerp(color: Color, alpha: number): self; - lerpHSL(color: Color, alpha: number): self; + add(color: Color): this; + addColors(color1: Color, color2: Color): this; + addScalar(s: number): this; + sub(color: Color): this; + multiply(color: Color): this; + multiplyScalar(s: number): this; + lerp(color: Color, alpha: number): this; + lerpHSL(color: Color, alpha: number): this; equals(color: Color): boolean; - fromArray(rgb: number[], offset?: number): self; + fromArray(rgb: number[], offset?: number): this; toArray(array?: number[], offset?: number): number[]; } From da777a0fede8f52304113730285ece4855d4ecc3 Mon Sep 17 00:00:00 2001 From: Alec McEachran Date: Wed, 24 Oct 2018 18:19:53 +0100 Subject: [PATCH 071/106] %s/self/this/g I beg your pardon - "this" not "self" :/ From 1d69b3b609c46335c9afbc93a9e679de022b9aff Mon Sep 17 00:00:00 2001 From: Carson Full Date: Wed, 24 Oct 2018 11:04:04 -0500 Subject: [PATCH 072/106] Jest - Fix returning message as string for custom matchers. Added tests. --- types/jest/index.d.ts | 9 ++++++++- types/jest/jest-tests.ts | 16 ++++++++++++++++ 2 files changed, 24 insertions(+), 1 deletion(-) diff --git a/types/jest/index.d.ts b/types/jest/index.d.ts index 8451987011..2b351bbf70 100644 --- a/types/jest/index.d.ts +++ b/types/jest/index.d.ts @@ -345,7 +345,14 @@ declare namespace jest { } interface ExpectExtendMap { - [key: string]: (this: MatcherUtils, received: any, ...actual: any[]) => { message(): string | (() => string), pass: boolean } | Promise<{ message(): string, pass: boolean }>; + [key: string]: CustomMatcher; + } + + type CustomMatcher = (this: MatcherUtils, received: any, ...actual: any[]) => CustomMatcherResult | Promise; + + interface CustomMatcherResult { + pass: boolean; + message: string | (() => string); } interface SnapshotSerializerOptions { diff --git a/types/jest/jest-tests.ts b/types/jest/jest-tests.ts index 4082bd9e31..18543b8f79 100644 --- a/types/jest/jest-tests.ts +++ b/types/jest/jest-tests.ts @@ -433,6 +433,14 @@ expect.extend({ }; } }); +expect.extend({ + foo(this: jest.MatcherUtils, received: {}, ...actual: Array<{}>) { + return { + message: JSON.stringify(received), + pass: false, + }; + } +}); expect.extend({ async foo(this: jest.MatcherUtils, received: {}, ...actual: Array<{}>) { return { @@ -441,6 +449,14 @@ expect.extend({ }; } }); +expect.extend({ + async foo(this: jest.MatcherUtils, received: {}, ...actual: Array<{}>) { + return { + message: JSON.stringify(received), + pass: false + }; + } +}); expect.extend({ foo(this: jest.MatcherUtils) { const isNot: boolean = this.isNot; From 038e845a2341521c3b41bba79ca273117bbbe6bf Mon Sep 17 00:00:00 2001 From: Marek Urbanowicz Date: Wed, 24 Oct 2018 18:06:54 +0200 Subject: [PATCH 073/106] Improve agentOptions for request library Definitely type all AgentOptions --- types/request/index.d.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/types/request/index.d.ts b/types/request/index.d.ts index 60e24b7692..676156daaa 100644 --- a/types/request/index.d.ts +++ b/types/request/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for request 2.47 +// Type definitions for request 2.48 // Project: https://github.com/request/request // Definitions by: Carlos Ballesteros Velasco , // bonnici , @@ -8,6 +8,7 @@ // Jon Stevens , // Matt R. Wilson // Jose Colella +// Marek Urbanowicz // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 @@ -24,6 +25,7 @@ import FormData = require('form-data'); import net = require('net'); import tough = require('tough-cookie'); import { Url } from 'url'; +import { SecureContextOptions } from 'tls'; declare namespace request { interface RequestAPI { @@ -132,7 +134,7 @@ declare namespace request { jsonReplacer?: (key: string, value: any) => any; multipart?: RequestPart[] | Multipart; agent?: http.Agent | https.Agent; - agentOptions?: any; + agentOptions?: SecureContextOptions; agentClass?: any; forever?: any; host?: string; From 1e315508b25f987ac2449902e68de69bb946967e Mon Sep 17 00:00:00 2001 From: Dave Cardwell Date: Wed, 24 Oct 2018 17:45:50 -0400 Subject: [PATCH 074/106] [caniuse-api] Add initial types for caniuse-api --- types/caniuse-api/caniuse-api-tests.ts | 17 ++++++++++++++ types/caniuse-api/index.d.ts | 32 ++++++++++++++++++++++++++ types/caniuse-api/tsconfig.json | 16 +++++++++++++ types/caniuse-api/tslint.json | 1 + 4 files changed, 66 insertions(+) create mode 100644 types/caniuse-api/caniuse-api-tests.ts create mode 100644 types/caniuse-api/index.d.ts create mode 100644 types/caniuse-api/tsconfig.json create mode 100644 types/caniuse-api/tslint.json diff --git a/types/caniuse-api/caniuse-api-tests.ts b/types/caniuse-api/caniuse-api-tests.ts new file mode 100644 index 0000000000..46b6a1eec4 --- /dev/null +++ b/types/caniuse-api/caniuse-api-tests.ts @@ -0,0 +1,17 @@ +import * as caniuse from "caniuse-api"; + +caniuse.features; // $ExpectType string[] + +caniuse.getSupport(""); // $ExpectType BrowserSupport + +caniuse.isSupported("", ""); // $ExpectType boolean +caniuse.isSupported("", [""]); // $ExpectType boolean + +caniuse.find(""); // $ExpectType string[] + +caniuse.getLatestStableBrowsers(); // $ExpectType string[] + +caniuse.setBrowserScope(""); // $ExpectType void +caniuse.setBrowserScope([""]); // $ExpectType void + +caniuse.getBrowserScope(); // $ExpectType string[] diff --git a/types/caniuse-api/index.d.ts b/types/caniuse-api/index.d.ts new file mode 100644 index 0000000000..ce6dac23ec --- /dev/null +++ b/types/caniuse-api/index.d.ts @@ -0,0 +1,32 @@ +// Type definitions for caniuse-api 3.0 +// Project: https://github.com/nyalab/caniuse-api#readme +// Definitions by: Dave Cardwell +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +export const features: string[]; + +export interface BrowserSupport { + [browser: string]: { + y?: number; + n?: number; + a?: number; + x?: number; + }; +} + +export function getSupport(feature: string): BrowserSupport; + +export function isSupported( + feature: string, + browsers: string | ReadonlyArray +): boolean; + +export function find(query: string): string[]; + +export function getLatestStableBrowsers(): string[]; + +export function setBrowserScope( + browserscope: string | ReadonlyArray +): void; + +export function getBrowserScope(): string[]; diff --git a/types/caniuse-api/tsconfig.json b/types/caniuse-api/tsconfig.json new file mode 100644 index 0000000000..2e43754f9e --- /dev/null +++ b/types/caniuse-api/tsconfig.json @@ -0,0 +1,16 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": ["es6"], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "strictFunctionTypes": true, + "baseUrl": "../", + "typeRoots": ["../"], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": ["index.d.ts", "caniuse-api-tests.ts"] +} diff --git a/types/caniuse-api/tslint.json b/types/caniuse-api/tslint.json new file mode 100644 index 0000000000..3db14f85ea --- /dev/null +++ b/types/caniuse-api/tslint.json @@ -0,0 +1 @@ +{ "extends": "dtslint/dt.json" } From 9fb6115f792915d1f749da263a5778e4f3601722 Mon Sep 17 00:00:00 2001 From: Mike Engel Date: Wed, 24 Oct 2018 15:51:36 -0600 Subject: [PATCH 075/106] feat(graphql-resolvers): Add types for graphql-resolvers (#29914) --- .../graphql-resolvers-tests.ts | 19 ++++++++++ types/graphql-resolvers/index.d.ts | 37 +++++++++++++++++++ types/graphql-resolvers/package.json | 6 +++ types/graphql-resolvers/tsconfig.json | 16 ++++++++ types/graphql-resolvers/tslint.json | 1 + 5 files changed, 79 insertions(+) create mode 100644 types/graphql-resolvers/graphql-resolvers-tests.ts create mode 100644 types/graphql-resolvers/index.d.ts create mode 100644 types/graphql-resolvers/package.json create mode 100644 types/graphql-resolvers/tsconfig.json create mode 100644 types/graphql-resolvers/tslint.json diff --git a/types/graphql-resolvers/graphql-resolvers-tests.ts b/types/graphql-resolvers/graphql-resolvers-tests.ts new file mode 100644 index 0000000000..3acb3ccf27 --- /dev/null +++ b/types/graphql-resolvers/graphql-resolvers-tests.ts @@ -0,0 +1,19 @@ +import { + combineResolvers, + pipeResolvers, + allResolvers, + resolveDependee, + resolveDependees, + isDependee, + skip +} from "graphql-resolvers"; + +const resolverOne = () => skip; +const resolverTwo = () => skip; + +const combined = combineResolvers(resolverOne, resolverTwo); +const piped = pipeResolvers(resolverOne, resolverTwo); +const all = allResolvers([resolverOne, resolverTwo]); +const dependee = resolveDependee("resolverOne"); +const dependees = resolveDependees(["resolverOne", "resolverTwo"]); +const isDependent = isDependee(resolverOne); diff --git a/types/graphql-resolvers/index.d.ts b/types/graphql-resolvers/index.d.ts new file mode 100644 index 0000000000..292c22cf73 --- /dev/null +++ b/types/graphql-resolvers/index.d.ts @@ -0,0 +1,37 @@ +// Type definitions for graphql-resolvers 0.2 +// Project: https://github.com/lucasconstantino/graphql-resolvers#readme +// Definitions by: Mike Engel +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.6 + +import { IFieldResolver } from "graphql-tools"; + +export const skip: undefined; + +export interface TArgs { + [argument: string]: any; +} + +export function combineResolvers( + ...resolvers: Array> +): IFieldResolver; + +export function pipeResolvers( + ...resolvers: Array> +): IFieldResolver; + +export function allResolvers( + resolvers: Array> +): IFieldResolver; + +export function resolveDependee( + dependeeName: string +): IFieldResolver; + +export function resolveDependees( + dependeeNames: string[] +): IFieldResolver; + +export function isDependee( + resolver: IFieldResolver +): IFieldResolver; diff --git a/types/graphql-resolvers/package.json b/types/graphql-resolvers/package.json new file mode 100644 index 0000000000..a3e9046d27 --- /dev/null +++ b/types/graphql-resolvers/package.json @@ -0,0 +1,6 @@ +{ + "private": true, + "dependencies": { + "graphql-tools": "^4.0.2" + } +} diff --git a/types/graphql-resolvers/tsconfig.json b/types/graphql-resolvers/tsconfig.json new file mode 100644 index 0000000000..602aa171ad --- /dev/null +++ b/types/graphql-resolvers/tsconfig.json @@ -0,0 +1,16 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": ["es6", "esnext.asynciterable"], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "strictFunctionTypes": true, + "baseUrl": "../", + "typeRoots": ["../"], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": ["index.d.ts", "graphql-resolvers-tests.ts"] +} diff --git a/types/graphql-resolvers/tslint.json b/types/graphql-resolvers/tslint.json new file mode 100644 index 0000000000..3db14f85ea --- /dev/null +++ b/types/graphql-resolvers/tslint.json @@ -0,0 +1 @@ +{ "extends": "dtslint/dt.json" } From febbbeea3f2b897c226f187305dc2c7fbd9276f0 Mon Sep 17 00:00:00 2001 From: Lukas Tetzlaff Date: Wed, 24 Oct 2018 23:56:16 +0200 Subject: [PATCH 076/106] Add typings for dom-loaded --- types/dom-loaded/dom-loaded-tests.ts | 3 +++ types/dom-loaded/index.d.ts | 7 +++++++ types/dom-loaded/tsconfig.json | 24 ++++++++++++++++++++++++ types/dom-loaded/tslint.json | 1 + 4 files changed, 35 insertions(+) create mode 100644 types/dom-loaded/dom-loaded-tests.ts create mode 100644 types/dom-loaded/index.d.ts create mode 100644 types/dom-loaded/tsconfig.json create mode 100644 types/dom-loaded/tslint.json diff --git a/types/dom-loaded/dom-loaded-tests.ts b/types/dom-loaded/dom-loaded-tests.ts new file mode 100644 index 0000000000..f8a3e5486d --- /dev/null +++ b/types/dom-loaded/dom-loaded-tests.ts @@ -0,0 +1,3 @@ +import domLoaded = require("dom-loaded"); + +domLoaded.then(() => console.log("DOM is loaded")); diff --git a/types/dom-loaded/index.d.ts b/types/dom-loaded/index.d.ts new file mode 100644 index 0000000000..5d4d5154c4 --- /dev/null +++ b/types/dom-loaded/index.d.ts @@ -0,0 +1,7 @@ +// Type definitions for dom-loaded 1.0 +// Project: https://github.com/sindresorhus/dom-loaded#readme +// Definitions by: Lukas Tetzlaf +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +declare const domLoaded: Promise; +export = domLoaded; diff --git a/types/dom-loaded/tsconfig.json b/types/dom-loaded/tsconfig.json new file mode 100644 index 0000000000..7d17914d86 --- /dev/null +++ b/types/dom-loaded/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", + "dom-loaded-tests.ts" + ] +} diff --git a/types/dom-loaded/tslint.json b/types/dom-loaded/tslint.json new file mode 100644 index 0000000000..3db14f85ea --- /dev/null +++ b/types/dom-loaded/tslint.json @@ -0,0 +1 @@ +{ "extends": "dtslint/dt.json" } From eecb0a10ff4e46c14856deba0e3f41cca65fafe5 Mon Sep 17 00:00:00 2001 From: Chris Olivier Date: Thu, 25 Oct 2018 09:23:53 +0200 Subject: [PATCH 077/106] Update index.d.ts Corrected return type of jwtDecode from "string | null" to "object | null" --- types/arangodb/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/arangodb/index.d.ts b/types/arangodb/index.d.ts index 76641f5270..5babc4a961 100644 --- a/types/arangodb/index.d.ts +++ b/types/arangodb/index.d.ts @@ -1698,7 +1698,7 @@ declare module "@arangodb/crypto" { key: string | null, token: string, noVerify?: boolean - ): string | null; + ): object | null; function md5(message: string): string; function sha1(message: string): string; function sha224(message: string): string; From 9d258069f516c391da1f0e04052a777fe5d55292 Mon Sep 17 00:00:00 2001 From: Jan Dolezel Date: Thu, 25 Oct 2018 09:32:13 +0200 Subject: [PATCH 078/106] reactVirtualizedListProps can by only partial --- types/react-sortable-tree/index.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/types/react-sortable-tree/index.d.ts b/types/react-sortable-tree/index.d.ts index 2127d0ffef..bcc6596ee6 100644 --- a/types/react-sortable-tree/index.d.ts +++ b/types/react-sortable-tree/index.d.ts @@ -158,7 +158,7 @@ export interface TreeRendererProps { export interface ThemeProps { style?: { [index: string]: any }; innerStyle?: { [index: string]: any }; - reactVirtualizedListProps?: ListProps; + reactVirtualizedListProps?: Partial; scaffoldBlockPxWidth?: number; slideRegionSize?: number; rowHeight?: ((info: Index) => number) | number; @@ -184,7 +184,7 @@ export interface ReactSortableTreeProps { onVisibilityToggle?(data: OnVisibilityToggleData): void; canDrag?: ((data: ExtendedNodeData) => boolean) | boolean; canDrop?(data: OnDragPreviousAndNextLocation & NodeData): boolean; - reactVirtualizedListProps?: ListProps; + reactVirtualizedListProps?: Partial; rowHeight?: ((info: Index) => number) | number; slideRegionSize?: number; scaffoldBlockPxWidth?: number; From 0b5403ba1d4894e0231241ea6586bca111686cbe Mon Sep 17 00:00:00 2001 From: Alex Deas Date: Thu, 25 Oct 2018 12:22:27 +0100 Subject: [PATCH 079/106] draft-js - Export DraftBlockRenderConfig & DraftBlockRenderMap --- types/draft-js/index.d.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/types/draft-js/index.d.ts b/types/draft-js/index.d.ts index aea132cb3d..4f2c34dd3a 100644 --- a/types/draft-js/index.d.ts +++ b/types/draft-js/index.d.ts @@ -989,6 +989,8 @@ import getVisibleSelectionRect = Draft.Component.Selection.getVisibleSelectionRe import DraftEditorCommand = Draft.Model.Constants.DraftEditorCommand; import DraftDragType = Draft.Model.Constants.DraftDragType; import DraftBlockType = Draft.Model.Constants.DraftBlockType; +import DraftBlockRenderConfig = Draft.Model.ImmutableData.DraftBlockRenderConfig; +import DraftBlockRenderMap = Draft.Component.Base.DraftBlockRenderMap; import DraftInlineStyleType = Draft.Model.Constants.DraftInlineStyleType; import DraftEntityMutability = Draft.Model.Constants.DraftEntityMutability; import DraftEntityType = Draft.Model.Constants.DraftEntityType; @@ -1039,6 +1041,8 @@ export { DraftEditorCommand, DraftDragType, DraftBlockType, + DraftBlockRenderConfig, + DraftBlockRenderMap, DraftInlineStyleType, DraftEntityType, DraftEntityMutability, From b31dbf5fbfee2b2d9777946ad6a85348908c7691 Mon Sep 17 00:00:00 2001 From: Elizabeth Samuel Date: Thu, 25 Oct 2018 09:23:26 -0700 Subject: [PATCH 080/106] add beta tags --- types/office-js/index.d.ts | 92 ++++++++++++++++++++++++++++++++++---- 1 file changed, 83 insertions(+), 9 deletions(-) diff --git a/types/office-js/index.d.ts b/types/office-js/index.d.ts index 0b6186eb8c..90c4583e67 100644 --- a/types/office-js/index.d.ts +++ b/types/office-js/index.d.ts @@ -1826,6 +1826,8 @@ declare namespace Office { * Triggers when an attachment is added to or removed from an item. * * [Api set: Mailbox Preview] + * + * @beta */ AttachmentsChanged, /** @@ -1924,6 +1926,8 @@ declare namespace Office { * Triggers when the OfficeTheme is changed in Outlook. * * [Api set: Mailbox Preview] + * + * @beta */ OfficeThemeChanged, /** @@ -8565,6 +8569,8 @@ declare namespace Office { * * *
{@link https://docs.microsoft.com/outlook/add-ins/understanding-outlook-add-in-permissions | Minimum permission level}ReadItem
{@link https://docs.microsoft.com/outlook/add-ins/#extension-points | Applicable Outlook mode}Compose or read
+ * + * @beta */ interface AttachmentContent { /** @@ -9394,7 +9400,7 @@ declare namespace Office { * * In addition to this signature, this method also has the following signature: * - * `getAsync(coerciontype: Office.CoercionType, callback: (result: AsyncResult) => void): void;` + * `getAsync(names: string[], callback: (result: AsyncResult) => void): void;` * * @param names The names of the internet headers to be returned. * @param options Optional. An object literal that contains one or more of the following properties: @@ -9405,6 +9411,28 @@ declare namespace Office { * @beta */ getAsync(names: string[], options?: Office.AsyncContextOptions, callback?: (result: AsyncResult) => void): void; + /** + * Given an array of internet header names, this method returns a dictionary containing those internet headers and their values. + * If the add-in requests an x-header that is not available, that x-header will not be returned in the results. + * + * [Api set: Mailbox Preview] + * + * @remarks + * + * + *
{@link https://docs.microsoft.com/outlook/add-ins/understanding-outlook-add-in-permissions | Minimum permission level}ReadItem
{@link https://docs.microsoft.com/outlook/add-ins/#extension-points | Applicable Outlook mode}Compose or read
+ * + * In addition to this signature, this method also has the following signature: + * + * `getAsync(names: string[], options?: Office.AsyncContextOptions, callback?: (result: AsyncResult) => void): void;` + * + * @param names The names of the internet headers to be returned. + * @param callback Optional. When the method completes, the function passed in the callback parameter is called with a single parameter, + * asyncResult, which is an Office.AsyncResult object. + * + * @beta + */ + getAsync(names: string[], callback?: (result: AsyncResult) => void): void; /** * Given an array of internet header names, this method removes the specified headers from the internet header collection. * @@ -9417,7 +9445,7 @@ declare namespace Office { * * In addition to this signature, this method also has the following signature: * - * `getAsync(coerciontype: Office.CoercionType, callback: (result: AsyncResult) => void): void;` + * `removeAsync(names: string[], callback: (result: AsyncResult) => void): void;` * * @param names The names of the internet headers to be removed. * @param options Optional. An object literal that contains one or more of the following properties: @@ -9428,6 +9456,27 @@ declare namespace Office { * @beta */ removeAsync(names: string[], options?: Office.AsyncContextOptions, callback?: (result: AsyncResult) => void): void; + /** + * Given an array of internet header names, this method removes the specified headers from the internet header collection. + * + * [Api set: Mailbox Preview] + * + * @remarks + * + * + *
{@link https://docs.microsoft.com/outlook/add-ins/understanding-outlook-add-in-permissions | Minimum permission level}ReadWriteItem
{@link https://docs.microsoft.com/outlook/add-ins/#extension-points | Applicable Outlook mode}Compose
+ * + * In addition to this signature, this method also has the following signature: + * + * `removeAsync(names: string[], options?: Office.AsyncContextOptions, callback: (result: AsyncResult) => void): void;` + * + * @param names The names of the internet headers to be removed. + * @param callback Optional. When the method completes, the function passed in the callback parameter is called with a single parameter, + * asyncResult, which is an Office.AsyncResult object. + * + * @beta + */ + removeAsync(names: string[], callback?: (result: AsyncResult) => void): void; /** * Sets the specified internet headers to the specified values. * @@ -9441,24 +9490,45 @@ declare namespace Office { * * {@link https://docs.microsoft.com/outlook/add-ins/#extension-points | Applicable Outlook mode}Compose * - * ErrorsDataExceedsMaximumSize - The data parameter is longer than 1,000,000 characters.InvalidFormatError - The options.coercionType parameter is set to Office.CoercionType.Html and the message body is in plain text. - * * In addition to this signature, this method also has the following signatures: * - * `setAsync(data: string, options: Office.AsyncContextOptions & CoercionTypeOptions): void;` + * `setAsync(headers: string, callback: (result: AsyncResult) => void): void;` * - * `setAsync(data: string, callback: (result: AsyncResult) => void): void;` - * - * `setAsync(data: string): void;` - * * @param headers The names and corresponding values of the headers to be set. Should be a dictionary object with keys being the names of the * internet headers and values being the values of the internet headers. * @param options Optional. An object literal that contains one or more of the following properties. * asyncContext: Developers can provide any object they wish to access in the callback method. * @param callback Optional. When the method completes, the function passed in the callback parameter is called with a single parameter of type Office.AsyncResult. * Any errors encountered will be provided in the asyncResult.error property. + * + * @beta */ setAsync(headers: Object, options?: Office.AsyncContextOptions, callback?: (result: AsyncResult) => void): void; + /** + * Sets the specified internet headers to the specified values. + * + * The setAsync method creates a new header if the specified header does not already exist; otherwise, the existing value is replaced with + * the new value. + * + * [Api set: Mailbox Preview] + * + * @remarks + * + * + * + * + * In addition to this signature, this method also has the following signatures: + * + * `setAsync(headers: string, options?: Office.AsyncContextOptions, callback: (result: AsyncResult) => void): void;` + * + * @param headers The names and corresponding values of the headers to be set. Should be a dictionary object with keys being the names of the + * internet headers and values being the values of the internet headers. + * @param callback Optional. When the method completes, the function passed in the callback parameter is called with a single parameter of type Office.AsyncResult. + * Any errors encountered will be provided in the asyncResult.error property. + * + * @beta + */ + setAsync(headers: Object, callback?: (result: AsyncResult) => void): void; } /** @@ -13008,6 +13078,8 @@ declare namespace Office { *
{@link https://docs.microsoft.com/outlook/add-ins/understanding-outlook-add-in-permissions | Minimum permission level}ReadWriteItem
{@link https://docs.microsoft.com/outlook/add-ins/#extension-points | Applicable Outlook mode}Compose
* *
{@link https://docs.microsoft.com/outlook/add-ins/understanding-outlook-add-in-permissions | Minimum permission level}ReadItem
{@link https://docs.microsoft.com/outlook/add-ins/#extension-points | Applicable Outlook mode}Message Compose
+ * + * @beta */ internetHeaders: Office.InternetHeaders; /** @@ -14105,6 +14177,8 @@ declare namespace Office { * * *
{@link https://docs.microsoft.com/outlook/add-ins/understanding-outlook-add-in-permissions | Minimum permission level}ReadItem
{@link https://docs.microsoft.com/outlook/add-ins/#extension-points | Applicable Outlook mode}Message Read
+ * + * @beta */ internetHeaders: Office.InternetHeaders; /** From f70415ab95ab5abef0692d17baf0c2b19a1e4772 Mon Sep 17 00:00:00 2001 From: Wyatt Johnson Date: Thu, 25 Oct 2018 10:29:52 -0600 Subject: [PATCH 081/106] review: fixes based on review --- types/mongodb/index.d.ts | 21 +++------------------ 1 file changed, 3 insertions(+), 18 deletions(-) diff --git a/types/mongodb/index.d.ts b/types/mongodb/index.d.ts index be6a509a0f..e7405ca7ef 100644 --- a/types/mongodb/index.d.ts +++ b/types/mongodb/index.d.ts @@ -1158,23 +1158,16 @@ export interface FindAndModifyWriteOpResultObject { } /** http://mongodb.github.io/node-mongodb-native/3.1/api/Collection.html#findOneAndReplace */ -export interface FindOneAndReplaceOption { +export interface FindOneAndReplaceOption extends CommonOptions { projection?: Object; sort?: Object; maxTimeMS?: number; upsert?: boolean; returnOriginal?: boolean; - session?: ClientSession; } /** http://mongodb.github.io/node-mongodb-native/3.1/api/Collection.html#findOneAndUpdate */ -export interface FindOneAndUpdateOption { - projection?: Object; - sort?: Object; - maxTimeMS?: number; - upsert?: boolean; - returnOriginal?: boolean; - session?: ClientSession; +export interface FindOneAndUpdateOption extends FindOneAndReplaceOption { arrayFilters?: Object[]; } @@ -1368,21 +1361,13 @@ export interface ReplaceOneOptions extends CommonOptions { } /** http://mongodb.github.io/node-mongodb-native/3.1/api/Collection.html#updateOne */ -export interface UpdateOneOptions extends CommonOptions { - upsert?: boolean; - w?: number | string; - wtimeout?: number; - j?: boolean; - bypassDocumentValidation?: boolean; +export interface UpdateOneOptions extends ReplaceOneOptions { arrayFilters?: Object[]; } /** http://mongodb.github.io/node-mongodb-native/3.1/api/Collection.html#updateMany */ export interface UpdateManyOptions extends CommonOptions { upsert?: boolean; - w?: number | string; - wtimeout?: number; - j?: boolean; arrayFilters: Object[]; } From e4ae10fa65fb1fe473517b02ab1b3e018531fcb8 Mon Sep 17 00:00:00 2001 From: Elizabeth Samuel Date: Thu, 25 Oct 2018 11:17:01 -0700 Subject: [PATCH 082/106] updates based on feedback --- types/office-js/index.d.ts | 182 +++++++++++++++++-------------------- 1 file changed, 82 insertions(+), 100 deletions(-) diff --git a/types/office-js/index.d.ts b/types/office-js/index.d.ts index 90c4583e67..11a14752ca 100644 --- a/types/office-js/index.d.ts +++ b/types/office-js/index.d.ts @@ -7369,19 +7369,14 @@ declare namespace Office { Base64 = "base64", /** - * The content of the attachment is returned as a string representing a url. + * The content of the attachment is returned as a string representing a URL. */ Url = "url", /** * The content of the attachment is returned as a string representing an .eml formatted file. */ - Eml = "eml", - - /** - * The content of the attachment is returned as a string representing an .ical formatted file. - */ - ICal + Eml = "eml" } /** * Specifies whether an attachment was added to or removed from an item. @@ -8574,15 +8569,14 @@ declare namespace Office { */ interface AttachmentContent { /** - * The content of an attachment in a string format. + * The content of an attachment as a string. */ content: string; /** * The string format to use for an attachment's content. * For file attachments, the formatting is a base64-encoded string. * For item attachments that represent messages, the formatting is a string representing an .eml formatted file. - * For item attachments that represent calendar items, the formatting is an .ical file. - * For cloud attachments, the formatting is a url string. + * For cloud attachments, the formatting is a URL string. */ format: Office.MailboxEnums.AttachmentContentFormat; } @@ -9422,10 +9416,6 @@ declare namespace Office { * * {@link https://docs.microsoft.com/outlook/add-ins/#extension-points | Applicable Outlook mode}Compose or read * - * In addition to this signature, this method also has the following signature: - * - * `getAsync(names: string[], options?: Office.AsyncContextOptions, callback?: (result: AsyncResult) => void): void;` - * * @param names The names of the internet headers to be returned. * @param callback Optional. When the method completes, the function passed in the callback parameter is called with a single parameter, * asyncResult, which is an Office.AsyncResult object. @@ -9466,10 +9456,6 @@ declare namespace Office { * * {@link https://docs.microsoft.com/outlook/add-ins/#extension-points | Applicable Outlook mode}Compose * - * In addition to this signature, this method also has the following signature: - * - * `removeAsync(names: string[], options?: Office.AsyncContextOptions, callback: (result: AsyncResult) => void): void;` - * * @param names The names of the internet headers to be removed. * @param callback Optional. When the method completes, the function passed in the callback parameter is called with a single parameter, * asyncResult, which is an Office.AsyncResult object. @@ -9517,10 +9503,6 @@ declare namespace Office { * * {@link https://docs.microsoft.com/outlook/add-ins/#extension-points | Applicable Outlook mode}Compose * - * In addition to this signature, this method also has the following signatures: - * - * `setAsync(headers: string, options?: Office.AsyncContextOptions, callback: (result: AsyncResult) => void): void;` - * * @param headers The names and corresponding values of the headers to be set. Should be a dictionary object with keys being the names of the * internet headers and values being the values of the internet headers. * @param callback Optional. When the method completes, the function passed in the callback parameter is called with a single parameter of type Office.AsyncResult. @@ -9921,8 +9903,8 @@ declare namespace Office { /** * Adds an event handler for a supported event. * - * Currently the supported event types are `Office.EventType.AppointmentTimeChanged`, `Office.EventType.AttachmentsChanged` (Preview), - * `Office.EventType.RecipientsChanged`, and `Office.EventType.RecurrenceChanged`. + * Currently the supported event types are `Office.EventType.AppointmentTimeChanged`, `Office.EventType.RecipientsChanged`, and + * `Office.EventType.RecurrenceChanged`. In Preview, `Office.EventType.AttachmentsChanged` is also supported. * * [Api set: Mailbox 1.7] * @@ -9948,8 +9930,8 @@ declare namespace Office { /** * Adds an event handler for a supported event. * - * Currently the supported event types are `Office.EventType.AppointmentTimeChanged`, `Office.EventType.AttachmentsChanged` (Preview), - * `Office.EventType.RecipientsChanged`, and `Office.EventType.RecurrenceChanged`. + * Currently the supported event types are `Office.EventType.AppointmentTimeChanged`, `Office.EventType.RecipientsChanged`, and + * `Office.EventType.RecurrenceChanged`. In Preview, `Office.EventType.AttachmentsChanged` is also supported. * * [Api set: Mailbox 1.7] * @@ -10109,7 +10091,7 @@ declare namespace Office { */ close(): void; /** - * Gets an array of attachments for the item. + * Gets the item's attachments as an array. * * [Api set: Mailbox Preview] * @@ -10236,8 +10218,8 @@ declare namespace Office { * The removeAttachmentAsync method removes the attachment with the specified identifier from the item. * As a best practice, you should use the attachment identifier to remove an attachment only if the same mail app has added that attachment * in the same session. In Outlook Web App and OWA for Devices, the attachment identifier is valid only within the same session. - * A session is over when the user closes the app, or if the user starts composing in an inline form and subsequently pops out the inline form - * to continue in a separate window. + * A session is over when the user closes the app, or if the user starts composing an inline form then subsequently pops out the form to + * continue in a separate window. * * [Api set: Mailbox 1.1] * @@ -10270,8 +10252,8 @@ declare namespace Office { * The removeAttachmentAsync method removes the attachment with the specified identifier from the item. * As a best practice, you should use the attachment identifier to remove an attachment only if the same mail app has added that attachment * in the same session. In Outlook Web App and OWA for Devices, the attachment identifier is valid only within the same session. - * A session is over when the user closes the app, or if the user starts composing in an inline form and subsequently pops out the inline form - * to continue in a separate window. + * A session is over when the user closes the app, or if the user starts composing an inline form then subsequently pops out the form to + * continue in a separate window. * * [Api set: Mailbox 1.1] * @@ -10292,8 +10274,8 @@ declare namespace Office { * The removeAttachmentAsync method removes the attachment with the specified identifier from the item. * As a best practice, you should use the attachment identifier to remove an attachment only if the same mail app has added that attachment * in the same session. In Outlook Web App and OWA for Devices, the attachment identifier is valid only within the same session. - * A session is over when the user closes the app, or if the user starts composing in an inline form and subsequently pops out the inline form - * to continue in a separate window. + * A session is over when the user closes the app, or if the user starts composing an inline form then subsequently pops out the form to + * continue in a separate window. * * [Api set: Mailbox 1.1] * @@ -10317,8 +10299,8 @@ declare namespace Office { * As a best practice, you should use the attachment identifier to remove an attachment only if the same mail app has added that attachment * in the same session. * In Outlook Web App and OWA for Devices, the attachment identifier is valid only within the same session. - * A session is over when the user closes the app, or if the user starts composing in an inline form and subsequently pops out the inline form - * to continue in a separate window. + * A session is over when the user closes the app, or if the user starts composing an inline form then subsequently pops out the form to + * continue in a separate window. * * [Api set: Mailbox 1.1] * @@ -10339,8 +10321,8 @@ declare namespace Office { /** * Removes an event handler for a supported event. * - * Currently the supported event types are `Office.EventType.AppointmentTimeChanged`, `Office.EventType.AttachmentsChanged` (Preview), - * `Office.EventType.RecipientsChanged`, and `Office.EventType.RecurrenceChanged`. + * Currently the supported event types are `Office.EventType.AppointmentTimeChanged`, `Office.EventType.RecipientsChanged`, and + * `Office.EventType.RecurrenceChanged`. In Preview, `Office.EventType.AttachmentsChanged` is also supported. * * [Api set: Mailbox 1.7] * @@ -10366,8 +10348,8 @@ declare namespace Office { /** * Removes an event handler for a supported event. * - * Currently the supported event types are `Office.EventType.AppointmentTimeChanged`, `Office.EventType.AttachmentsChanged` (Preview), - * `Office.EventType.RecipientsChanged`, and `Office.EventType.RecurrenceChanged`. + * Currently the supported event types are `Office.EventType.AppointmentTimeChanged`, `Office.EventType.RecipientsChanged`, and + * `Office.EventType.RecurrenceChanged`. In Preview, `Office.EventType.AttachmentsChanged` is also supported. * * [Api set: Mailbox 1.7] * @@ -10652,7 +10634,7 @@ declare namespace Office { */ interface AppointmentRead extends Appointment, ItemRead { /** - * Gets an array of attachments for the item. + * Gets the item's attachments as an array. * * [Api set: Mailbox 1.0] * @@ -10955,8 +10937,8 @@ declare namespace Office { /** * Adds an event handler for a supported event. * - * Currently the supported event types are `Office.EventType.AppointmentTimeChanged`, `Office.EventType.AttachmentsChanged` (Preview), - * `Office.EventType.RecipientsChanged`, and `Office.EventType.RecurrenceChanged`. + * Currently the supported event types are `Office.EventType.AppointmentTimeChanged`, `Office.EventType.RecipientsChanged`, and + * `Office.EventType.RecurrenceChanged`. In Preview, `Office.EventType.AttachmentsChanged` is also supported. * * [Api set: Mailbox 1.7] * @@ -10983,8 +10965,8 @@ declare namespace Office { /** * Adds an event handler for a supported event. * - * Currently the supported event types are `Office.EventType.AppointmentTimeChanged`, `Office.EventType.AttachmentsChanged` (Preview), - * `Office.EventType.RecipientsChanged`, and `Office.EventType.RecurrenceChanged`. + * Currently the supported event types are `Office.EventType.AppointmentTimeChanged`, `Office.EventType.RecipientsChanged`, and + * `Office.EventType.RecurrenceChanged`. In Preview, `Office.EventType.AttachmentsChanged` is also supported. * * [Api set: Mailbox 1.7] * @@ -11336,8 +11318,8 @@ declare namespace Office { /** * Removes an event handler for a supported event. * - * Currently the supported event types are `Office.EventType.AppointmentTimeChanged`, `Office.EventType.AttachmentsChanged` (Preview), - * `Office.EventType.RecipientsChanged`, and `Office.EventType.RecurrenceChanged`. + * Currently the supported event types are `Office.EventType.AppointmentTimeChanged`, `Office.EventType.RecipientsChanged`, and + * `Office.EventType.RecurrenceChanged`. In Preview, `Office.EventType.AttachmentsChanged` is also supported. * * [Api set: Mailbox 1.7] * @@ -11363,8 +11345,8 @@ declare namespace Office { /** * Removes an event handler for a supported event. * - * Currently the supported event types are `Office.EventType.AppointmentTimeChanged`, `Office.EventType.AttachmentsChanged` (Preview), - * `Office.EventType.RecipientsChanged`, and `Office.EventType.RecurrenceChanged`. + * Currently the supported event types are `Office.EventType.AppointmentTimeChanged`, `Office.EventType.RecipientsChanged`, and + * `Office.EventType.RecurrenceChanged`. In Preview, `Office.EventType.AttachmentsChanged` is also supported. * * [Api set: Mailbox 1.7] * @@ -11511,8 +11493,8 @@ declare namespace Office { /** * Adds an event handler for a supported event. * - * Currently the supported event types are `Office.EventType.AppointmentTimeChanged`, `Office.EventType.AttachmentsChanged` (Preview), - * `Office.EventType.RecipientsChanged`, and `Office.EventType.RecurrenceChanged`. + * Currently the supported event types are `Office.EventType.AppointmentTimeChanged`, `Office.EventType.RecipientsChanged`, and + * `Office.EventType.RecurrenceChanged`. In Preview, `Office.EventType.AttachmentsChanged` is also supported. * * [Api set: Mailbox 1.7] * @@ -11539,8 +11521,8 @@ declare namespace Office { /** * Adds an event handler for a supported event. * - * Currently the supported event types are `Office.EventType.AppointmentTimeChanged`, `Office.EventType.AttachmentsChanged` (Preview), - * `Office.EventType.RecipientsChanged`, and `Office.EventType.RecurrenceChanged`. + * Currently the supported event types are `Office.EventType.AppointmentTimeChanged`, `Office.EventType.RecipientsChanged`, and + * `Office.EventType.RecurrenceChanged`. In Preview, `Office.EventType.AttachmentsChanged` is also supported. * * [Api set: Mailbox 1.7] * @@ -11559,13 +11541,13 @@ declare namespace Office { addHandlerAsync(eventType: Office.EventType, handler: any, callback?: (result: AsyncResult) => void): void; /** - * Gets an attachment from a message or appointment and returns it as an Office.AttachmentContent object. + * Gets an attachment from a message or appointment and returns it as an `Office.AttachmentContent` object. * - * The getAttachmentContentAsync method gets the attachment with the specified identifier from the item. As a best practice, you should use + * The `getAttachmentContentAsync` method gets the attachment with the specified identifier from the item. As a best practice, you should use * the identifier to retrieve an attachment in the same session that the attachmentIds were retrieved with the `getAttachmentsAsync` or - * `item.attachments` call. In Outlook Web App and OWA for Devices, the attachment identifier is valid only within the same session. A session - * is over when the user closes the app, or if the user starts composing an inline form and subsequently pops out the line form to continue - * in separate window. + * `item.attachments` call. In Outlook Web App and OWA for Devices, the attachment identifier is valid only within the same session. + * A session is over when the user closes the app, or if the user starts composing an inline form then subsequently pops out the form to + * continue in a separate window. * * [Api set: Mailbox Preview] * @@ -11689,8 +11671,8 @@ declare namespace Office { /** * Removes an event handler for a supported event. * - * Currently the supported event types are `Office.EventType.AppointmentTimeChanged`, `Office.EventType.AttachmentsChanged` (Preview), - * `Office.EventType.RecipientsChanged`, and `Office.EventType.RecurrenceChanged`. + * Currently the supported event types are `Office.EventType.AppointmentTimeChanged`, `Office.EventType.RecipientsChanged`, and + * `Office.EventType.RecurrenceChanged`. In Preview, `Office.EventType.AttachmentsChanged` is also supported. * * [Api set: Mailbox 1.7] * @@ -11717,8 +11699,8 @@ declare namespace Office { /** * Removes an event handler for a supported event. * - * Currently the supported event types are `Office.EventType.AppointmentTimeChanged`, `Office.EventType.AttachmentsChanged` (Preview), - * `Office.EventType.RecipientsChanged`, and `Office.EventType.RecurrenceChanged`. + * Currently the supported event types are `Office.EventType.AppointmentTimeChanged`, `Office.EventType.RecipientsChanged`, and + * `Office.EventType.RecurrenceChanged`. In Preview, `Office.EventType.AttachmentsChanged` is also supported. * * [Api set: Mailbox 1.7] * @@ -12039,7 +12021,7 @@ declare namespace Office { */ close(): void; /** - * Gets an array of attachments for the item. + * Gets the item's attachments as an array. * * [Api set: Mailbox Preview] * @@ -12144,8 +12126,8 @@ declare namespace Office { * The removeAttachmentAsync method removes the attachment with the specified identifier from the item. * As a best practice, you should use the attachment identifier to remove an attachment only if the same mail app has added that attachment * in the same session. In Outlook Web App and OWA for Devices, the attachment identifier is valid only within the same session. - * A session is over when the user closes the app, or if the user starts composing in an inline form and subsequently pops out the inline form - * to continue in a separate window. + * A session is over when the user closes the app, or if the user starts composing an inline form then subsequently pops out the form to + * continue in a separate window. * * [Api set: Mailbox 1.1] * @@ -12179,8 +12161,8 @@ declare namespace Office { * The removeAttachmentAsync method removes the attachment with the specified identifier from the item. * As a best practice, you should use the attachment identifier to remove an attachment only if the same mail app has added that attachment * in the same session. In Outlook Web App and OWA for Devices, the attachment identifier is valid only within the same session. - * A session is over when the user closes the app, or if the user starts composing in an inline form and subsequently pops out the inline form - * to continue in a separate window. + * A session is over when the user closes the app, or if the user starts composing an inline form then subsequently pops out the form to + * continue in a separate window. * * [Api set: Mailbox 1.1] * @@ -12201,8 +12183,8 @@ declare namespace Office { * The removeAttachmentAsync method removes the attachment with the specified identifier from the item. * As a best practice, you should use the attachment identifier to remove an attachment only if the same mail app has added that attachment * in the same session. In Outlook Web App and OWA for Devices, the attachment identifier is valid only within the same session. - * A session is over when the user closes the app, or if the user starts composing in an inline form and subsequently pops out the inline form - * to continue in a separate window. + * A session is over when the user closes the app, or if the user starts composing an inline form then subsequently pops out the form to + * continue in a separate window. * * [Api set: Mailbox 1.1] * @@ -12225,8 +12207,8 @@ declare namespace Office { * The removeAttachmentAsync method removes the attachment with the specified identifier from the item. * As a best practice, you should use the attachment identifier to remove an attachment only if the same mail app has added that attachment * in the same session. In Outlook Web App and OWA for Devices, the attachment identifier is valid only within the same session. - * A session is over when the user closes the app, or if the user starts composing in an inline form and subsequently pops out the inline form - * to continue in a separate window. + * A session is over when the user closes the app, or if the user starts composing an inline form then subsequently pops out the form to + * continue in a separate window. * * [Api set: Mailbox 1.1] * @@ -12518,7 +12500,7 @@ declare namespace Office { */ interface ItemRead extends Item { /** - * Gets an array of attachments for the item. + * Gets the item's attachments as an array. * * [Api set: Mailbox 1.0] * @@ -13069,7 +13051,7 @@ declare namespace Office { /** * Sets the internet headers of a message. * - * The internetHeaders property returns an InternetHeaders object that provides methods to set internet headers on the message. + * The internetHeaders property returns an InternetHeaders object that provides methods to manage the internet headers on the message. * * [Api set: Mailbox Preview] * @@ -13320,8 +13302,8 @@ declare namespace Office { /** * Adds an event handler for a supported event. * - * Currently the supported event types are `Office.EventType.AppointmentTimeChanged`, `Office.EventType.AttachmentsChanged` (Preview), - * `Office.EventType.RecipientsChanged`, and `Office.EventType.RecurrenceChanged`. + * Currently the supported event types are `Office.EventType.AppointmentTimeChanged`, `Office.EventType.RecipientsChanged`, and + * `Office.EventType.RecurrenceChanged`. In Preview, `Office.EventType.AttachmentsChanged` is also supported. * * [Api set: Mailbox 1.7] * @@ -13347,8 +13329,8 @@ declare namespace Office { /** * Adds an event handler for a supported event. * - * Currently the supported event types are `Office.EventType.AppointmentTimeChanged`, `Office.EventType.AttachmentsChanged` (Preview), - * `Office.EventType.RecipientsChanged`, and `Office.EventType.RecurrenceChanged`. + * Currently the supported event types are `Office.EventType.AppointmentTimeChanged`, `Office.EventType.RecipientsChanged`, and + * `Office.EventType.RecurrenceChanged`. In Preview, `Office.EventType.AttachmentsChanged` is also supported. * * [Api set: Mailbox 1.7] * @@ -13510,7 +13492,7 @@ declare namespace Office { */ close(): void; /** - * Gets an array of attachments for the item. + * Gets the item's attachments as an array. * * [Api set: Mailbox Preview] * @@ -13641,8 +13623,8 @@ declare namespace Office { * The removeAttachmentAsync method removes the attachment with the specified identifier from the item. * As a best practice, you should use the attachment identifier to remove an attachment only if the same mail app has added that attachment * in the same session. In Outlook Web App and OWA for Devices, the attachment identifier is valid only within the same session. - * A session is over when the user closes the app, or if the user starts composing in an inline form and subsequently pops out the inline form - * to continue in a separate window. + * A session is over when the user closes the app, or if the user starts composing an inline form then subsequently pops out the form to + * continue in a separate window. * * [Api set: Mailbox 1.1] * @@ -13676,8 +13658,8 @@ declare namespace Office { * The removeAttachmentAsync method removes the attachment with the specified identifier from the item. * As a best practice, you should use the attachment identifier to remove an attachment only if the same mail app has added that attachment * in the same session. In Outlook Web App and OWA for Devices, the attachment identifier is valid only within the same session. - * A session is over when the user closes the app, or if the user starts composing in an inline form and subsequently pops out the inline form - * to continue in a separate window. + * A session is over when the user closes the app, or if the user starts composing an inline form then subsequently pops out the form to + * continue in a separate window. * * [Api set: Mailbox 1.1] * @@ -13698,8 +13680,8 @@ declare namespace Office { * The removeAttachmentAsync method removes the attachment with the specified identifier from the item. * As a best practice, you should use the attachment identifier to remove an attachment only if the same mail app has added that attachment * in the same session. In Outlook Web App and OWA for Devices, the attachment identifier is valid only within the same session. - * A session is over when the user closes the app, or if the user starts composing in an inline form and subsequently pops out the inline form - * to continue in a separate window. + * A session is over when the user closes the app, or if the user starts composing an inline form then subsequently pops out the form to + * continue in a separate window. * * [Api set: Mailbox 1.1] * @@ -13722,8 +13704,8 @@ declare namespace Office { * The removeAttachmentAsync method removes the attachment with the specified identifier from the item. * As a best practice, you should use the attachment identifier to remove an attachment only if the same mail app has added that attachment * in the same session. In Outlook Web App and OWA for Devices, the attachment identifier is valid only within the same session. - * A session is over when the user closes the app, or if the user starts composing in an inline form and subsequently pops out the inline form - * to continue in a separate window. + * A session is over when the user closes the app, or if the user starts composing an inline form then subsequently pops out the form to + * continue in a separate window. * * [Api set: Mailbox 1.1] * @@ -13744,8 +13726,8 @@ declare namespace Office { /** * Removes an event handler for a supported event. * - * Currently the supported event types are `Office.EventType.AppointmentTimeChanged`, `Office.EventType.AttachmentsChanged` (Preview), - * `Office.EventType.RecipientsChanged`, and `Office.EventType.RecurrenceChanged`. + * Currently the supported event types are `Office.EventType.AppointmentTimeChanged`, `Office.EventType.RecipientsChanged`, and + * `Office.EventType.RecurrenceChanged`. In Preview, `Office.EventType.AttachmentsChanged` is also supported. * * [Api set: Mailbox 1.7] * @@ -13771,8 +13753,8 @@ declare namespace Office { /** * Removes an event handler for a supported event. * - * Currently the supported event types are `Office.EventType.AppointmentTimeChanged`, `Office.EventType.AttachmentsChanged` (Preview), - * `Office.EventType.RecipientsChanged`, and `Office.EventType.RecurrenceChanged`. + * Currently the supported event types are `Office.EventType.AppointmentTimeChanged`, `Office.EventType.RecipientsChanged`, and + * `Office.EventType.RecurrenceChanged`. In Preview, `Office.EventType.AttachmentsChanged` is also supported. * * [Api set: Mailbox 1.7] * @@ -14057,7 +14039,7 @@ declare namespace Office { */ interface MessageRead extends Message, ItemRead { /** - * Gets an array of attachments for the item. + * Gets the item's attachments as an array. * * [Api set: Mailbox 1.0] * @@ -14168,7 +14150,7 @@ declare namespace Office { /** * Gets the internet headers of a message. * - * The internetHeaders property returns an InternetHeaders object that provides a method to get the internet headers on the message. + * The internetHeaders property returns an InternetHeaders object that provides methods to manage the internet headers on the message. * * [Api set: Mailbox Preview] * @@ -14392,8 +14374,8 @@ declare namespace Office { /** * Adds an event handler for a supported event. * - * Currently the supported event types are `Office.EventType.AppointmentTimeChanged`, `Office.EventType.AttachmentsChanged` (Preview), - * `Office.EventType.RecipientsChanged`, and `Office.EventType.RecurrenceChanged`. + * Currently the supported event types are `Office.EventType.AppointmentTimeChanged`, `Office.EventType.RecipientsChanged`, and + * `Office.EventType.RecurrenceChanged`. In Preview, `Office.EventType.AttachmentsChanged` is also supported. * * [Api set: Mailbox 1.7] * @@ -14420,8 +14402,8 @@ declare namespace Office { /** * Adds an event handler for a supported event. * - * Currently the supported event types are `Office.EventType.AppointmentTimeChanged`, `Office.EventType.AttachmentsChanged` (Preview), - * `Office.EventType.RecipientsChanged`, and `Office.EventType.RecurrenceChanged`. + * Currently the supported event types are `Office.EventType.AppointmentTimeChanged`, `Office.EventType.RecipientsChanged`, and + * `Office.EventType.RecurrenceChanged`. In Preview, `Office.EventType.AttachmentsChanged` is also supported. * * [Api set: Mailbox 1.7] * @@ -14777,8 +14759,8 @@ declare namespace Office { /** * Removes an event handler for a supported event. * - * Currently the supported event types are `Office.EventType.AppointmentTimeChanged`, `Office.EventType.AttachmentsChanged` (Preview), - * `Office.EventType.RecipientsChanged`, and `Office.EventType.RecurrenceChanged`. + * Currently the supported event types are `Office.EventType.AppointmentTimeChanged`, `Office.EventType.RecipientsChanged`, and + * `Office.EventType.RecurrenceChanged`. In Preview, `Office.EventType.AttachmentsChanged` is also supported. * * [Api set: Mailbox 1.7] * @@ -14804,8 +14786,8 @@ declare namespace Office { /** * Removes an event handler for a supported event. * - * Currently the supported event types are `Office.EventType.AppointmentTimeChanged`, `Office.EventType.AttachmentsChanged` (Preview), - * `Office.EventType.RecipientsChanged`, and `Office.EventType.RecurrenceChanged`. + * Currently the supported event types are `Office.EventType.AppointmentTimeChanged`, `Office.EventType.RecipientsChanged`, and + * `Office.EventType.RecurrenceChanged`. In Preview, `Office.EventType.AttachmentsChanged` is also supported. * * [Api set: Mailbox 1.7] * @@ -16823,7 +16805,7 @@ declare namespace Office { */ owner: String; /** - * The remote REST url related to the owner’s mailbox. + * The remote REST URL related to the owner’s mailbox. */ restUrl: String; /** From c9c01e5374280d5c87dbefdf0c5a2fc72311e2d7 Mon Sep 17 00:00:00 2001 From: Alper Kilci Date: Thu, 25 Oct 2018 20:51:20 +0200 Subject: [PATCH 083/106] add definition file for each module under es folder --- types/ramda/es/F.d.ts | 2 + types/ramda/es/T.d.ts | 2 + types/ramda/es/add.d.ts | 2 + types/ramda/es/addIndex.d.ts | 2 + types/ramda/es/adjust.d.ts | 2 + types/ramda/es/all.d.ts | 2 + types/ramda/es/allPass.d.ts | 2 + types/ramda/es/always.d.ts | 2 + types/ramda/es/and.d.ts | 2 + types/ramda/es/any.d.ts | 2 + types/ramda/es/anyPass.d.ts | 2 + types/ramda/es/ap.d.ts | 2 + types/ramda/es/aperture.d.ts | 2 + types/ramda/es/append.d.ts | 2 + types/ramda/es/apply.d.ts | 2 + types/ramda/es/applySpec.d.ts | 2 + types/ramda/es/applyTo.d.ts | 2 + types/ramda/es/ascend.d.ts | 2 + types/ramda/es/assoc.d.ts | 2 + types/ramda/es/assocPath.d.ts | 2 + types/ramda/es/binary.d.ts | 2 + types/ramda/es/bind.d.ts | 2 + types/ramda/es/both.d.ts | 2 + types/ramda/es/call.d.ts | 2 + types/ramda/es/chain.d.ts | 2 + types/ramda/es/clamp.d.ts | 2 + types/ramda/es/clone.d.ts | 2 + types/ramda/es/comparator.d.ts | 2 + types/ramda/es/complement.d.ts | 2 + types/ramda/es/compose.d.ts | 2 + types/ramda/es/composeK.d.ts | 2 + types/ramda/es/composeP.d.ts | 2 + types/ramda/es/concat.d.ts | 2 + types/ramda/es/cond.d.ts | 2 + types/ramda/es/construct.d.ts | 2 + types/ramda/es/constructN.d.ts | 2 + types/ramda/es/contains.d.ts | 2 + types/ramda/es/converge.d.ts | 2 + types/ramda/es/countBy.d.ts | 2 + types/ramda/es/curry.d.ts | 2 + types/ramda/es/curryN.d.ts | 2 + types/ramda/es/dec.d.ts | 2 + types/ramda/es/defaultTo.d.ts | 2 + types/ramda/es/descend.d.ts | 2 + types/ramda/es/difference.d.ts | 2 + types/ramda/es/differenceWith.d.ts | 2 + types/ramda/es/dissoc.d.ts | 2 + types/ramda/es/dissocPath.d.ts | 2 + types/ramda/es/divide.d.ts | 2 + types/ramda/es/drop.d.ts | 2 + types/ramda/es/dropLast.d.ts | 2 + types/ramda/es/dropLastWhile.d.ts | 2 + types/ramda/es/either.d.ts | 2 + types/ramda/es/empty.d.ts | 2 + types/ramda/es/endsWith.d.ts | 2 + types/ramda/es/eqBy.d.ts | 2 + types/ramda/es/eqPeop.d.ts | 2 + types/ramda/es/equals.d.ts | 2 + types/ramda/es/evolve.d.ts | 2 + types/ramda/es/filter.d.ts | 2 + types/ramda/es/find.d.ts | 2 + types/ramda/es/findIndex.d.ts | 2 + types/ramda/es/findLast.d.ts | 2 + types/ramda/es/findLastIndex.d.ts | 2 + types/ramda/es/flatten.d.ts | 2 + types/ramda/es/flip.d.ts | 2 + types/ramda/es/forEach.d.ts | 2 + types/ramda/es/forEachObjIndexed.d.ts | 2 + types/ramda/es/fromPairs.d.ts | 2 + types/ramda/es/groupBy.d.ts | 2 + types/ramda/es/groupWith.d.ts | 2 + types/ramda/es/gt.d.ts | 2 + types/ramda/es/gte.d.ts | 2 + types/ramda/es/has.d.ts | 2 + types/ramda/es/hasIn.d.ts | 2 + types/ramda/es/head.d.ts | 2 + types/ramda/es/identical.d.ts | 2 + types/ramda/es/identity.d.ts | 2 + types/ramda/es/ifElse.d.ts | 2 + types/ramda/es/inc.d.ts | 2 + types/ramda/es/indexBy.d.ts | 2 + types/ramda/es/indexOf.d.ts | 2 + types/ramda/es/init.d.ts | 2 + types/ramda/es/insert.d.ts | 2 + types/ramda/es/insertAll.d.ts | 2 + types/ramda/es/intersection.d.ts | 2 + types/ramda/es/intersectionWith.d.ts | 2 + types/ramda/es/intersperse.d.ts | 2 + types/ramda/es/into.d.ts | 2 + types/ramda/es/invert.d.ts | 2 + types/ramda/es/invertObj.d.ts | 2 + types/ramda/es/invoker.d.ts | 2 + types/ramda/es/is.d.ts | 2 + types/ramda/es/isArrayLike.d.ts | 2 + types/ramda/es/isEmpty.d.ts | 2 + types/ramda/es/isNaN.d.ts | 2 + types/ramda/es/isNil.d.ts | 2 + types/ramda/es/join.d.ts | 2 + types/ramda/es/juxt.d.ts | 2 + types/ramda/es/keys.d.ts | 2 + types/ramda/es/keysIn.d.ts | 2 + types/ramda/es/last.d.ts | 2 + types/ramda/es/lastIndexOf.d.ts | 2 + types/ramda/es/length.d.ts | 2 + types/ramda/es/lens.d.ts | 2 + types/ramda/es/lensIndex.d.ts | 2 + types/ramda/es/lensPath.d.ts | 2 + types/ramda/es/lensProp.d.ts | 2 + types/ramda/es/lift.d.ts | 2 + types/ramda/es/lt.d.ts | 2 + types/ramda/es/lte.d.ts | 2 + types/ramda/es/map.d.ts | 2 + types/ramda/es/mapAccum.d.ts | 2 + types/ramda/es/mapAccumRight.d.ts | 2 + types/ramda/es/mapObjIndexed.d.ts | 2 + types/ramda/es/match.d.ts | 2 + types/ramda/es/mathMod.d.ts | 2 + types/ramda/es/max.d.ts | 2 + types/ramda/es/maxBy.d.ts | 2 + types/ramda/es/mean.d.ts | 2 + types/ramda/es/median.d.ts | 2 + types/ramda/es/memoize.d.ts | 2 + types/ramda/es/memoizeWith.d.ts | 2 + types/ramda/es/merge.d.ts | 2 + types/ramda/es/mergeAll.d.ts | 2 + types/ramda/es/mergeDeepLeft.d.ts | 2 + types/ramda/es/mergeDeepRight.d.ts | 2 + types/ramda/es/mergeDeepWith.d.ts | 2 + types/ramda/es/mergeDeepWithKey.d.ts | 2 + types/ramda/es/mergeWith.d.ts | 2 + types/ramda/es/mergeWithKey.d.ts | 2 + types/ramda/es/min.d.ts | 2 + types/ramda/es/minBy.d.ts | 2 + types/ramda/es/modulo.d.ts | 2 + types/ramda/es/multiply.d.ts | 2 + types/ramda/es/nAry.d.ts | 2 + types/ramda/es/negate.d.ts | 2 + types/ramda/es/none.d.ts | 2 + types/ramda/es/not.d.ts | 2 + types/ramda/es/nth.d.ts | 2 + types/ramda/es/nthArg.d.ts | 2 + types/ramda/es/objOf.d.ts | 2 + types/ramda/es/of.d.ts | 2 + types/ramda/es/omit.d.ts | 2 + types/ramda/es/once.d.ts | 2 + types/ramda/es/or.d.ts | 2 + types/ramda/es/over.d.ts | 2 + types/ramda/es/pair.d.ts | 2 + types/ramda/es/partial.d.ts | 2 + types/ramda/es/partialRight.d.ts | 2 + types/ramda/es/partition.d.ts | 2 + types/ramda/es/path.d.ts | 2 + types/ramda/es/pathEq.d.ts | 2 + types/ramda/es/pathOr.d.ts | 2 + types/ramda/es/pathSatisfies.d.ts | 2 + types/ramda/es/pick.d.ts | 2 + types/ramda/es/pickAll.d.ts | 2 + types/ramda/es/pickBy.d.ts | 2 + types/ramda/es/pipe.d.ts | 2 + types/ramda/es/pipeK.d.ts | 2 + types/ramda/es/pipeP.d.ts | 2 + types/ramda/es/pluck.d.ts | 2 + types/ramda/es/prepend.d.ts | 2 + types/ramda/es/product.d.ts | 2 + types/ramda/es/project.d.ts | 2 + types/ramda/es/prop.d.ts | 2 + types/ramda/es/propEq.d.ts | 2 + types/ramda/es/propIs.d.ts | 2 + types/ramda/es/propOr.d.ts | 2 + types/ramda/es/propSatisfies.d.ts | 2 + types/ramda/es/props.d.ts | 2 + types/ramda/es/range.d.ts | 2 + types/ramda/es/reduce.d.ts | 2 + types/ramda/es/reduceBy.d.ts | 2 + types/ramda/es/reduceRight.d.ts | 2 + types/ramda/es/reduceWhile.d.ts | 2 + types/ramda/es/reduced.d.ts | 2 + types/ramda/es/reject.d.ts | 2 + types/ramda/es/remove.d.ts | 2 + types/ramda/es/repeat.d.ts | 2 + types/ramda/es/replace.d.ts | 2 + types/ramda/es/reverse.d.ts | 2 + types/ramda/es/scan.d.ts | 2 + types/ramda/es/set.d.ts | 2 + types/ramda/es/slice.d.ts | 2 + types/ramda/es/sort.d.ts | 2 + types/ramda/es/sortBy.d.ts | 2 + types/ramda/es/sortWith.d.ts | 2 + types/ramda/es/split.d.ts | 2 + types/ramda/es/splitAt.d.ts | 2 + types/ramda/es/splitEvery.d.ts | 2 + types/ramda/es/splitWhen.d.ts | 2 + types/ramda/es/startsWith.d.ts | 2 + types/ramda/es/subtract.d.ts | 2 + types/ramda/es/sum.d.ts | 2 + types/ramda/es/symmetricDifference.d.ts | 2 + types/ramda/es/symmetricDifferenceWith.d.ts | 2 + types/ramda/es/tail.d.ts | 2 + types/ramda/es/take.d.ts | 2 + types/ramda/es/takeLast.d.ts | 2 + types/ramda/es/takeLastWhile.d.ts | 2 + types/ramda/es/takeWhile.d.ts | 2 + types/ramda/es/tap.d.ts | 2 + types/ramda/es/test.d.ts | 2 + types/ramda/es/times.d.ts | 2 + types/ramda/es/toLower.d.ts | 2 + types/ramda/es/toPairs.d.ts | 2 + types/ramda/es/toPairsIn.d.ts | 2 + types/ramda/es/toString.d.ts | 2 + types/ramda/es/toUpper.d.ts | 2 + types/ramda/es/transduce.d.ts | 2 + types/ramda/es/transpose.d.ts | 2 + types/ramda/es/traverse.d.ts | 2 + types/ramda/es/trim.d.ts | 2 + types/ramda/es/tryCatch.d.ts | 2 + types/ramda/es/type.d.ts | 2 + types/ramda/es/unapply.d.ts | 2 + types/ramda/es/unary.d.ts | 2 + types/ramda/es/uncurryN.d.ts | 2 + types/ramda/es/unfold.d.ts | 2 + types/ramda/es/union.d.ts | 2 + types/ramda/es/unionWith.d.ts | 2 + types/ramda/es/uniq.d.ts | 2 + types/ramda/es/uniqBy.d.ts | 2 + types/ramda/es/uniqWith.d.ts | 2 + types/ramda/es/unless.d.ts | 2 + types/ramda/es/unnest.d.ts | 2 + types/ramda/es/until.d.ts | 2 + types/ramda/es/update.d.ts | 2 + types/ramda/es/useWith.d.ts | 2 + types/ramda/es/values.d.ts | 2 + types/ramda/es/valuesIn.d.ts | 2 + types/ramda/es/view.d.ts | 2 + types/ramda/es/when.d.ts | 2 + types/ramda/es/where.d.ts | 2 + types/ramda/es/whereEq.d.ts | 2 + types/ramda/es/without.d.ts | 2 + types/ramda/es/wrap.d.ts | 2 + types/ramda/es/xprod.d.ts | 2 + types/ramda/es/zip.d.ts | 2 + types/ramda/es/zipObj.d.ts | 2 + types/ramda/es/zipWith.d.ts | 2 + types/ramda/tsconfig.json | 244 +++++++++++++++++++- 243 files changed, 727 insertions(+), 1 deletion(-) create mode 100644 types/ramda/es/F.d.ts create mode 100644 types/ramda/es/T.d.ts create mode 100644 types/ramda/es/add.d.ts create mode 100644 types/ramda/es/addIndex.d.ts create mode 100644 types/ramda/es/adjust.d.ts create mode 100644 types/ramda/es/all.d.ts create mode 100644 types/ramda/es/allPass.d.ts create mode 100644 types/ramda/es/always.d.ts create mode 100644 types/ramda/es/and.d.ts create mode 100644 types/ramda/es/any.d.ts create mode 100644 types/ramda/es/anyPass.d.ts create mode 100644 types/ramda/es/ap.d.ts create mode 100644 types/ramda/es/aperture.d.ts create mode 100644 types/ramda/es/append.d.ts create mode 100644 types/ramda/es/apply.d.ts create mode 100644 types/ramda/es/applySpec.d.ts create mode 100644 types/ramda/es/applyTo.d.ts create mode 100644 types/ramda/es/ascend.d.ts create mode 100644 types/ramda/es/assoc.d.ts create mode 100644 types/ramda/es/assocPath.d.ts create mode 100644 types/ramda/es/binary.d.ts create mode 100644 types/ramda/es/bind.d.ts create mode 100644 types/ramda/es/both.d.ts create mode 100644 types/ramda/es/call.d.ts create mode 100644 types/ramda/es/chain.d.ts create mode 100644 types/ramda/es/clamp.d.ts create mode 100644 types/ramda/es/clone.d.ts create mode 100644 types/ramda/es/comparator.d.ts create mode 100644 types/ramda/es/complement.d.ts create mode 100644 types/ramda/es/compose.d.ts create mode 100644 types/ramda/es/composeK.d.ts create mode 100644 types/ramda/es/composeP.d.ts create mode 100644 types/ramda/es/concat.d.ts create mode 100644 types/ramda/es/cond.d.ts create mode 100644 types/ramda/es/construct.d.ts create mode 100644 types/ramda/es/constructN.d.ts create mode 100644 types/ramda/es/contains.d.ts create mode 100644 types/ramda/es/converge.d.ts create mode 100644 types/ramda/es/countBy.d.ts create mode 100644 types/ramda/es/curry.d.ts create mode 100644 types/ramda/es/curryN.d.ts create mode 100644 types/ramda/es/dec.d.ts create mode 100644 types/ramda/es/defaultTo.d.ts create mode 100644 types/ramda/es/descend.d.ts create mode 100644 types/ramda/es/difference.d.ts create mode 100644 types/ramda/es/differenceWith.d.ts create mode 100644 types/ramda/es/dissoc.d.ts create mode 100644 types/ramda/es/dissocPath.d.ts create mode 100644 types/ramda/es/divide.d.ts create mode 100644 types/ramda/es/drop.d.ts create mode 100644 types/ramda/es/dropLast.d.ts create mode 100644 types/ramda/es/dropLastWhile.d.ts create mode 100644 types/ramda/es/either.d.ts create mode 100644 types/ramda/es/empty.d.ts create mode 100644 types/ramda/es/endsWith.d.ts create mode 100644 types/ramda/es/eqBy.d.ts create mode 100644 types/ramda/es/eqPeop.d.ts create mode 100644 types/ramda/es/equals.d.ts create mode 100644 types/ramda/es/evolve.d.ts create mode 100644 types/ramda/es/filter.d.ts create mode 100644 types/ramda/es/find.d.ts create mode 100644 types/ramda/es/findIndex.d.ts create mode 100644 types/ramda/es/findLast.d.ts create mode 100644 types/ramda/es/findLastIndex.d.ts create mode 100644 types/ramda/es/flatten.d.ts create mode 100644 types/ramda/es/flip.d.ts create mode 100644 types/ramda/es/forEach.d.ts create mode 100644 types/ramda/es/forEachObjIndexed.d.ts create mode 100644 types/ramda/es/fromPairs.d.ts create mode 100644 types/ramda/es/groupBy.d.ts create mode 100644 types/ramda/es/groupWith.d.ts create mode 100644 types/ramda/es/gt.d.ts create mode 100644 types/ramda/es/gte.d.ts create mode 100644 types/ramda/es/has.d.ts create mode 100644 types/ramda/es/hasIn.d.ts create mode 100644 types/ramda/es/head.d.ts create mode 100644 types/ramda/es/identical.d.ts create mode 100644 types/ramda/es/identity.d.ts create mode 100644 types/ramda/es/ifElse.d.ts create mode 100644 types/ramda/es/inc.d.ts create mode 100644 types/ramda/es/indexBy.d.ts create mode 100644 types/ramda/es/indexOf.d.ts create mode 100644 types/ramda/es/init.d.ts create mode 100644 types/ramda/es/insert.d.ts create mode 100644 types/ramda/es/insertAll.d.ts create mode 100644 types/ramda/es/intersection.d.ts create mode 100644 types/ramda/es/intersectionWith.d.ts create mode 100644 types/ramda/es/intersperse.d.ts create mode 100644 types/ramda/es/into.d.ts create mode 100644 types/ramda/es/invert.d.ts create mode 100644 types/ramda/es/invertObj.d.ts create mode 100644 types/ramda/es/invoker.d.ts create mode 100644 types/ramda/es/is.d.ts create mode 100644 types/ramda/es/isArrayLike.d.ts create mode 100644 types/ramda/es/isEmpty.d.ts create mode 100644 types/ramda/es/isNaN.d.ts create mode 100644 types/ramda/es/isNil.d.ts create mode 100644 types/ramda/es/join.d.ts create mode 100644 types/ramda/es/juxt.d.ts create mode 100644 types/ramda/es/keys.d.ts create mode 100644 types/ramda/es/keysIn.d.ts create mode 100644 types/ramda/es/last.d.ts create mode 100644 types/ramda/es/lastIndexOf.d.ts create mode 100644 types/ramda/es/length.d.ts create mode 100644 types/ramda/es/lens.d.ts create mode 100644 types/ramda/es/lensIndex.d.ts create mode 100644 types/ramda/es/lensPath.d.ts create mode 100644 types/ramda/es/lensProp.d.ts create mode 100644 types/ramda/es/lift.d.ts create mode 100644 types/ramda/es/lt.d.ts create mode 100644 types/ramda/es/lte.d.ts create mode 100644 types/ramda/es/map.d.ts create mode 100644 types/ramda/es/mapAccum.d.ts create mode 100644 types/ramda/es/mapAccumRight.d.ts create mode 100644 types/ramda/es/mapObjIndexed.d.ts create mode 100644 types/ramda/es/match.d.ts create mode 100644 types/ramda/es/mathMod.d.ts create mode 100644 types/ramda/es/max.d.ts create mode 100644 types/ramda/es/maxBy.d.ts create mode 100644 types/ramda/es/mean.d.ts create mode 100644 types/ramda/es/median.d.ts create mode 100644 types/ramda/es/memoize.d.ts create mode 100644 types/ramda/es/memoizeWith.d.ts create mode 100644 types/ramda/es/merge.d.ts create mode 100644 types/ramda/es/mergeAll.d.ts create mode 100644 types/ramda/es/mergeDeepLeft.d.ts create mode 100644 types/ramda/es/mergeDeepRight.d.ts create mode 100644 types/ramda/es/mergeDeepWith.d.ts create mode 100644 types/ramda/es/mergeDeepWithKey.d.ts create mode 100644 types/ramda/es/mergeWith.d.ts create mode 100644 types/ramda/es/mergeWithKey.d.ts create mode 100644 types/ramda/es/min.d.ts create mode 100644 types/ramda/es/minBy.d.ts create mode 100644 types/ramda/es/modulo.d.ts create mode 100644 types/ramda/es/multiply.d.ts create mode 100644 types/ramda/es/nAry.d.ts create mode 100644 types/ramda/es/negate.d.ts create mode 100644 types/ramda/es/none.d.ts create mode 100644 types/ramda/es/not.d.ts create mode 100644 types/ramda/es/nth.d.ts create mode 100644 types/ramda/es/nthArg.d.ts create mode 100644 types/ramda/es/objOf.d.ts create mode 100644 types/ramda/es/of.d.ts create mode 100644 types/ramda/es/omit.d.ts create mode 100644 types/ramda/es/once.d.ts create mode 100644 types/ramda/es/or.d.ts create mode 100644 types/ramda/es/over.d.ts create mode 100644 types/ramda/es/pair.d.ts create mode 100644 types/ramda/es/partial.d.ts create mode 100644 types/ramda/es/partialRight.d.ts create mode 100644 types/ramda/es/partition.d.ts create mode 100644 types/ramda/es/path.d.ts create mode 100644 types/ramda/es/pathEq.d.ts create mode 100644 types/ramda/es/pathOr.d.ts create mode 100644 types/ramda/es/pathSatisfies.d.ts create mode 100644 types/ramda/es/pick.d.ts create mode 100644 types/ramda/es/pickAll.d.ts create mode 100644 types/ramda/es/pickBy.d.ts create mode 100644 types/ramda/es/pipe.d.ts create mode 100644 types/ramda/es/pipeK.d.ts create mode 100644 types/ramda/es/pipeP.d.ts create mode 100644 types/ramda/es/pluck.d.ts create mode 100644 types/ramda/es/prepend.d.ts create mode 100644 types/ramda/es/product.d.ts create mode 100644 types/ramda/es/project.d.ts create mode 100644 types/ramda/es/prop.d.ts create mode 100644 types/ramda/es/propEq.d.ts create mode 100644 types/ramda/es/propIs.d.ts create mode 100644 types/ramda/es/propOr.d.ts create mode 100644 types/ramda/es/propSatisfies.d.ts create mode 100644 types/ramda/es/props.d.ts create mode 100644 types/ramda/es/range.d.ts create mode 100644 types/ramda/es/reduce.d.ts create mode 100644 types/ramda/es/reduceBy.d.ts create mode 100644 types/ramda/es/reduceRight.d.ts create mode 100644 types/ramda/es/reduceWhile.d.ts create mode 100644 types/ramda/es/reduced.d.ts create mode 100644 types/ramda/es/reject.d.ts create mode 100644 types/ramda/es/remove.d.ts create mode 100644 types/ramda/es/repeat.d.ts create mode 100644 types/ramda/es/replace.d.ts create mode 100644 types/ramda/es/reverse.d.ts create mode 100644 types/ramda/es/scan.d.ts create mode 100644 types/ramda/es/set.d.ts create mode 100644 types/ramda/es/slice.d.ts create mode 100644 types/ramda/es/sort.d.ts create mode 100644 types/ramda/es/sortBy.d.ts create mode 100644 types/ramda/es/sortWith.d.ts create mode 100644 types/ramda/es/split.d.ts create mode 100644 types/ramda/es/splitAt.d.ts create mode 100644 types/ramda/es/splitEvery.d.ts create mode 100644 types/ramda/es/splitWhen.d.ts create mode 100644 types/ramda/es/startsWith.d.ts create mode 100644 types/ramda/es/subtract.d.ts create mode 100644 types/ramda/es/sum.d.ts create mode 100644 types/ramda/es/symmetricDifference.d.ts create mode 100644 types/ramda/es/symmetricDifferenceWith.d.ts create mode 100644 types/ramda/es/tail.d.ts create mode 100644 types/ramda/es/take.d.ts create mode 100644 types/ramda/es/takeLast.d.ts create mode 100644 types/ramda/es/takeLastWhile.d.ts create mode 100644 types/ramda/es/takeWhile.d.ts create mode 100644 types/ramda/es/tap.d.ts create mode 100644 types/ramda/es/test.d.ts create mode 100644 types/ramda/es/times.d.ts create mode 100644 types/ramda/es/toLower.d.ts create mode 100644 types/ramda/es/toPairs.d.ts create mode 100644 types/ramda/es/toPairsIn.d.ts create mode 100644 types/ramda/es/toString.d.ts create mode 100644 types/ramda/es/toUpper.d.ts create mode 100644 types/ramda/es/transduce.d.ts create mode 100644 types/ramda/es/transpose.d.ts create mode 100644 types/ramda/es/traverse.d.ts create mode 100644 types/ramda/es/trim.d.ts create mode 100644 types/ramda/es/tryCatch.d.ts create mode 100644 types/ramda/es/type.d.ts create mode 100644 types/ramda/es/unapply.d.ts create mode 100644 types/ramda/es/unary.d.ts create mode 100644 types/ramda/es/uncurryN.d.ts create mode 100644 types/ramda/es/unfold.d.ts create mode 100644 types/ramda/es/union.d.ts create mode 100644 types/ramda/es/unionWith.d.ts create mode 100644 types/ramda/es/uniq.d.ts create mode 100644 types/ramda/es/uniqBy.d.ts create mode 100644 types/ramda/es/uniqWith.d.ts create mode 100644 types/ramda/es/unless.d.ts create mode 100644 types/ramda/es/unnest.d.ts create mode 100644 types/ramda/es/until.d.ts create mode 100644 types/ramda/es/update.d.ts create mode 100644 types/ramda/es/useWith.d.ts create mode 100644 types/ramda/es/values.d.ts create mode 100644 types/ramda/es/valuesIn.d.ts create mode 100644 types/ramda/es/view.d.ts create mode 100644 types/ramda/es/when.d.ts create mode 100644 types/ramda/es/where.d.ts create mode 100644 types/ramda/es/whereEq.d.ts create mode 100644 types/ramda/es/without.d.ts create mode 100644 types/ramda/es/wrap.d.ts create mode 100644 types/ramda/es/xprod.d.ts create mode 100644 types/ramda/es/zip.d.ts create mode 100644 types/ramda/es/zipObj.d.ts create mode 100644 types/ramda/es/zipWith.d.ts diff --git a/types/ramda/es/F.d.ts b/types/ramda/es/F.d.ts new file mode 100644 index 0000000000..bdc0d570d9 --- /dev/null +++ b/types/ramda/es/F.d.ts @@ -0,0 +1,2 @@ +import { F } from '../index'; +export default F; diff --git a/types/ramda/es/T.d.ts b/types/ramda/es/T.d.ts new file mode 100644 index 0000000000..634808e684 --- /dev/null +++ b/types/ramda/es/T.d.ts @@ -0,0 +1,2 @@ +import { T } from '../index'; +export default T; diff --git a/types/ramda/es/add.d.ts b/types/ramda/es/add.d.ts new file mode 100644 index 0000000000..b7b3ee887c --- /dev/null +++ b/types/ramda/es/add.d.ts @@ -0,0 +1,2 @@ +import { add } from '../index'; +export default add; diff --git a/types/ramda/es/addIndex.d.ts b/types/ramda/es/addIndex.d.ts new file mode 100644 index 0000000000..9f27967dcb --- /dev/null +++ b/types/ramda/es/addIndex.d.ts @@ -0,0 +1,2 @@ +import { addIndex } from '../index'; +export default addIndex; diff --git a/types/ramda/es/adjust.d.ts b/types/ramda/es/adjust.d.ts new file mode 100644 index 0000000000..22b65ec38e --- /dev/null +++ b/types/ramda/es/adjust.d.ts @@ -0,0 +1,2 @@ +import { adjust } from '../index'; +export default adjust; diff --git a/types/ramda/es/all.d.ts b/types/ramda/es/all.d.ts new file mode 100644 index 0000000000..a2f6d934f9 --- /dev/null +++ b/types/ramda/es/all.d.ts @@ -0,0 +1,2 @@ +import { all } from '../index'; +export default all; diff --git a/types/ramda/es/allPass.d.ts b/types/ramda/es/allPass.d.ts new file mode 100644 index 0000000000..d44ac20e9d --- /dev/null +++ b/types/ramda/es/allPass.d.ts @@ -0,0 +1,2 @@ +import { allPass } from '../index'; +export default allPass; diff --git a/types/ramda/es/always.d.ts b/types/ramda/es/always.d.ts new file mode 100644 index 0000000000..aadc94983b --- /dev/null +++ b/types/ramda/es/always.d.ts @@ -0,0 +1,2 @@ +import { always } from '../index'; +export default always; diff --git a/types/ramda/es/and.d.ts b/types/ramda/es/and.d.ts new file mode 100644 index 0000000000..3d505f6ec3 --- /dev/null +++ b/types/ramda/es/and.d.ts @@ -0,0 +1,2 @@ +import { and } from '../index'; +export default and; diff --git a/types/ramda/es/any.d.ts b/types/ramda/es/any.d.ts new file mode 100644 index 0000000000..1e77e505e9 --- /dev/null +++ b/types/ramda/es/any.d.ts @@ -0,0 +1,2 @@ +import { any } from '../index'; +export default any; diff --git a/types/ramda/es/anyPass.d.ts b/types/ramda/es/anyPass.d.ts new file mode 100644 index 0000000000..d8e7fc8f0d --- /dev/null +++ b/types/ramda/es/anyPass.d.ts @@ -0,0 +1,2 @@ +import { anyPass } from '../index'; +export default anyPass; diff --git a/types/ramda/es/ap.d.ts b/types/ramda/es/ap.d.ts new file mode 100644 index 0000000000..5bf98d7fbd --- /dev/null +++ b/types/ramda/es/ap.d.ts @@ -0,0 +1,2 @@ +import { ap } from '../index'; +export default ap; diff --git a/types/ramda/es/aperture.d.ts b/types/ramda/es/aperture.d.ts new file mode 100644 index 0000000000..7536b091b8 --- /dev/null +++ b/types/ramda/es/aperture.d.ts @@ -0,0 +1,2 @@ +import { aperture } from '../index'; +export default aperture; diff --git a/types/ramda/es/append.d.ts b/types/ramda/es/append.d.ts new file mode 100644 index 0000000000..88a4e7cde2 --- /dev/null +++ b/types/ramda/es/append.d.ts @@ -0,0 +1,2 @@ +import { append } from '../index'; +export default append; diff --git a/types/ramda/es/apply.d.ts b/types/ramda/es/apply.d.ts new file mode 100644 index 0000000000..53d90689ed --- /dev/null +++ b/types/ramda/es/apply.d.ts @@ -0,0 +1,2 @@ +import { apply } from '../index'; +export default apply; diff --git a/types/ramda/es/applySpec.d.ts b/types/ramda/es/applySpec.d.ts new file mode 100644 index 0000000000..57e5b8018c --- /dev/null +++ b/types/ramda/es/applySpec.d.ts @@ -0,0 +1,2 @@ +import { applySpec } from '../index'; +export default applySpec; diff --git a/types/ramda/es/applyTo.d.ts b/types/ramda/es/applyTo.d.ts new file mode 100644 index 0000000000..30869542db --- /dev/null +++ b/types/ramda/es/applyTo.d.ts @@ -0,0 +1,2 @@ +import { applyTo } from '../index'; +export default applyTo; diff --git a/types/ramda/es/ascend.d.ts b/types/ramda/es/ascend.d.ts new file mode 100644 index 0000000000..e4c4e1199b --- /dev/null +++ b/types/ramda/es/ascend.d.ts @@ -0,0 +1,2 @@ +import { ascend } from '../index'; +export default ascend; diff --git a/types/ramda/es/assoc.d.ts b/types/ramda/es/assoc.d.ts new file mode 100644 index 0000000000..5acc97a0aa --- /dev/null +++ b/types/ramda/es/assoc.d.ts @@ -0,0 +1,2 @@ +import { assoc } from '../index'; +export default assoc; diff --git a/types/ramda/es/assocPath.d.ts b/types/ramda/es/assocPath.d.ts new file mode 100644 index 0000000000..040671bf38 --- /dev/null +++ b/types/ramda/es/assocPath.d.ts @@ -0,0 +1,2 @@ +import { assocPath } from '../index'; +export default assocPath; diff --git a/types/ramda/es/binary.d.ts b/types/ramda/es/binary.d.ts new file mode 100644 index 0000000000..259cb96e82 --- /dev/null +++ b/types/ramda/es/binary.d.ts @@ -0,0 +1,2 @@ +import { binary } from '../index'; +export default binary; diff --git a/types/ramda/es/bind.d.ts b/types/ramda/es/bind.d.ts new file mode 100644 index 0000000000..fe108f09a7 --- /dev/null +++ b/types/ramda/es/bind.d.ts @@ -0,0 +1,2 @@ +import { bind } from '../index'; +export default bind; diff --git a/types/ramda/es/both.d.ts b/types/ramda/es/both.d.ts new file mode 100644 index 0000000000..8061154cdd --- /dev/null +++ b/types/ramda/es/both.d.ts @@ -0,0 +1,2 @@ +import { both } from '../index'; +export default both; diff --git a/types/ramda/es/call.d.ts b/types/ramda/es/call.d.ts new file mode 100644 index 0000000000..35b6fda88c --- /dev/null +++ b/types/ramda/es/call.d.ts @@ -0,0 +1,2 @@ +import { call } from '../index'; +export default call; diff --git a/types/ramda/es/chain.d.ts b/types/ramda/es/chain.d.ts new file mode 100644 index 0000000000..53aafe210a --- /dev/null +++ b/types/ramda/es/chain.d.ts @@ -0,0 +1,2 @@ +import { chain } from '../index'; +export default chain; diff --git a/types/ramda/es/clamp.d.ts b/types/ramda/es/clamp.d.ts new file mode 100644 index 0000000000..1376643cbf --- /dev/null +++ b/types/ramda/es/clamp.d.ts @@ -0,0 +1,2 @@ +import { clamp } from '../index'; +export default clamp; diff --git a/types/ramda/es/clone.d.ts b/types/ramda/es/clone.d.ts new file mode 100644 index 0000000000..b95f842554 --- /dev/null +++ b/types/ramda/es/clone.d.ts @@ -0,0 +1,2 @@ +import { clone } from '../index'; +export default clone; diff --git a/types/ramda/es/comparator.d.ts b/types/ramda/es/comparator.d.ts new file mode 100644 index 0000000000..34023dea00 --- /dev/null +++ b/types/ramda/es/comparator.d.ts @@ -0,0 +1,2 @@ +import { comparator } from '../index'; +export default comparator; diff --git a/types/ramda/es/complement.d.ts b/types/ramda/es/complement.d.ts new file mode 100644 index 0000000000..b5d31fee50 --- /dev/null +++ b/types/ramda/es/complement.d.ts @@ -0,0 +1,2 @@ +import { complement } from '../index'; +export default complement; diff --git a/types/ramda/es/compose.d.ts b/types/ramda/es/compose.d.ts new file mode 100644 index 0000000000..dca4578840 --- /dev/null +++ b/types/ramda/es/compose.d.ts @@ -0,0 +1,2 @@ +import { compose } from '../index'; +export default compose; diff --git a/types/ramda/es/composeK.d.ts b/types/ramda/es/composeK.d.ts new file mode 100644 index 0000000000..646005a0b6 --- /dev/null +++ b/types/ramda/es/composeK.d.ts @@ -0,0 +1,2 @@ +import { composeK } from '../index'; +export default composeK; diff --git a/types/ramda/es/composeP.d.ts b/types/ramda/es/composeP.d.ts new file mode 100644 index 0000000000..ca0a96fb25 --- /dev/null +++ b/types/ramda/es/composeP.d.ts @@ -0,0 +1,2 @@ +import { composeP } from '../index'; +export default composeP; diff --git a/types/ramda/es/concat.d.ts b/types/ramda/es/concat.d.ts new file mode 100644 index 0000000000..9ae333cf95 --- /dev/null +++ b/types/ramda/es/concat.d.ts @@ -0,0 +1,2 @@ +import { concat } from '../index'; +export default concat; diff --git a/types/ramda/es/cond.d.ts b/types/ramda/es/cond.d.ts new file mode 100644 index 0000000000..0ab4930b0e --- /dev/null +++ b/types/ramda/es/cond.d.ts @@ -0,0 +1,2 @@ +import { cond } from '../index'; +export default cond; diff --git a/types/ramda/es/construct.d.ts b/types/ramda/es/construct.d.ts new file mode 100644 index 0000000000..736871cb61 --- /dev/null +++ b/types/ramda/es/construct.d.ts @@ -0,0 +1,2 @@ +import { construct } from '../index'; +export default construct; diff --git a/types/ramda/es/constructN.d.ts b/types/ramda/es/constructN.d.ts new file mode 100644 index 0000000000..d9efc76cf3 --- /dev/null +++ b/types/ramda/es/constructN.d.ts @@ -0,0 +1,2 @@ +import { constructN } from '../index'; +export default constructN; diff --git a/types/ramda/es/contains.d.ts b/types/ramda/es/contains.d.ts new file mode 100644 index 0000000000..d193bc6109 --- /dev/null +++ b/types/ramda/es/contains.d.ts @@ -0,0 +1,2 @@ +import { contains } from '../index'; +export default contains; diff --git a/types/ramda/es/converge.d.ts b/types/ramda/es/converge.d.ts new file mode 100644 index 0000000000..181c0bd7e9 --- /dev/null +++ b/types/ramda/es/converge.d.ts @@ -0,0 +1,2 @@ +import { converge } from '../index'; +export default converge; diff --git a/types/ramda/es/countBy.d.ts b/types/ramda/es/countBy.d.ts new file mode 100644 index 0000000000..03d46e23f0 --- /dev/null +++ b/types/ramda/es/countBy.d.ts @@ -0,0 +1,2 @@ +import { countBy } from '../index'; +export default countBy; diff --git a/types/ramda/es/curry.d.ts b/types/ramda/es/curry.d.ts new file mode 100644 index 0000000000..0d94abf560 --- /dev/null +++ b/types/ramda/es/curry.d.ts @@ -0,0 +1,2 @@ +import { curry } from '../index'; +export default curry; diff --git a/types/ramda/es/curryN.d.ts b/types/ramda/es/curryN.d.ts new file mode 100644 index 0000000000..dca634c3b8 --- /dev/null +++ b/types/ramda/es/curryN.d.ts @@ -0,0 +1,2 @@ +import { curryN } from '../index'; +export default curryN; diff --git a/types/ramda/es/dec.d.ts b/types/ramda/es/dec.d.ts new file mode 100644 index 0000000000..605681f0d8 --- /dev/null +++ b/types/ramda/es/dec.d.ts @@ -0,0 +1,2 @@ +import { dec } from '../index'; +export default dec; diff --git a/types/ramda/es/defaultTo.d.ts b/types/ramda/es/defaultTo.d.ts new file mode 100644 index 0000000000..9c61199544 --- /dev/null +++ b/types/ramda/es/defaultTo.d.ts @@ -0,0 +1,2 @@ +import { defaultTo } from '../index'; +export default defaultTo; diff --git a/types/ramda/es/descend.d.ts b/types/ramda/es/descend.d.ts new file mode 100644 index 0000000000..d0ff2b6d54 --- /dev/null +++ b/types/ramda/es/descend.d.ts @@ -0,0 +1,2 @@ +import { descend } from '../index'; +export default descend; diff --git a/types/ramda/es/difference.d.ts b/types/ramda/es/difference.d.ts new file mode 100644 index 0000000000..1ef0096735 --- /dev/null +++ b/types/ramda/es/difference.d.ts @@ -0,0 +1,2 @@ +import { difference } from '../index'; +export default difference; diff --git a/types/ramda/es/differenceWith.d.ts b/types/ramda/es/differenceWith.d.ts new file mode 100644 index 0000000000..5a2366f6e0 --- /dev/null +++ b/types/ramda/es/differenceWith.d.ts @@ -0,0 +1,2 @@ +import { differenceWith } from '../index'; +export default differenceWith; diff --git a/types/ramda/es/dissoc.d.ts b/types/ramda/es/dissoc.d.ts new file mode 100644 index 0000000000..0ed3e2def9 --- /dev/null +++ b/types/ramda/es/dissoc.d.ts @@ -0,0 +1,2 @@ +import { dissoc } from '../index'; +export default dissoc; diff --git a/types/ramda/es/dissocPath.d.ts b/types/ramda/es/dissocPath.d.ts new file mode 100644 index 0000000000..83c705d80f --- /dev/null +++ b/types/ramda/es/dissocPath.d.ts @@ -0,0 +1,2 @@ +import { dissocPath } from '../index'; +export default dissocPath; diff --git a/types/ramda/es/divide.d.ts b/types/ramda/es/divide.d.ts new file mode 100644 index 0000000000..45c27a4d21 --- /dev/null +++ b/types/ramda/es/divide.d.ts @@ -0,0 +1,2 @@ +import { divide } from '../index'; +export default divide; diff --git a/types/ramda/es/drop.d.ts b/types/ramda/es/drop.d.ts new file mode 100644 index 0000000000..fb89bef7f0 --- /dev/null +++ b/types/ramda/es/drop.d.ts @@ -0,0 +1,2 @@ +import { drop } from '../index'; +export default drop; diff --git a/types/ramda/es/dropLast.d.ts b/types/ramda/es/dropLast.d.ts new file mode 100644 index 0000000000..2402f890f1 --- /dev/null +++ b/types/ramda/es/dropLast.d.ts @@ -0,0 +1,2 @@ +import { dropLast } from '../index'; +export default dropLast; diff --git a/types/ramda/es/dropLastWhile.d.ts b/types/ramda/es/dropLastWhile.d.ts new file mode 100644 index 0000000000..82950dd98b --- /dev/null +++ b/types/ramda/es/dropLastWhile.d.ts @@ -0,0 +1,2 @@ +import { dropLastWhile } from '../index'; +export default dropLastWhile; diff --git a/types/ramda/es/either.d.ts b/types/ramda/es/either.d.ts new file mode 100644 index 0000000000..130f0c4e7f --- /dev/null +++ b/types/ramda/es/either.d.ts @@ -0,0 +1,2 @@ +import { either } from '../index'; +export default either; diff --git a/types/ramda/es/empty.d.ts b/types/ramda/es/empty.d.ts new file mode 100644 index 0000000000..2cb6e8fade --- /dev/null +++ b/types/ramda/es/empty.d.ts @@ -0,0 +1,2 @@ +import { empty } from '../index'; +export default empty; diff --git a/types/ramda/es/endsWith.d.ts b/types/ramda/es/endsWith.d.ts new file mode 100644 index 0000000000..f23a961bbc --- /dev/null +++ b/types/ramda/es/endsWith.d.ts @@ -0,0 +1,2 @@ +import { endsWith } from '../index'; +export default endsWith; diff --git a/types/ramda/es/eqBy.d.ts b/types/ramda/es/eqBy.d.ts new file mode 100644 index 0000000000..3ed508587a --- /dev/null +++ b/types/ramda/es/eqBy.d.ts @@ -0,0 +1,2 @@ +import { eqBy } from '../index'; +export default eqBy; diff --git a/types/ramda/es/eqPeop.d.ts b/types/ramda/es/eqPeop.d.ts new file mode 100644 index 0000000000..61bea492ae --- /dev/null +++ b/types/ramda/es/eqPeop.d.ts @@ -0,0 +1,2 @@ +import { eqPeop } from '../index'; +export default eqPeop; diff --git a/types/ramda/es/equals.d.ts b/types/ramda/es/equals.d.ts new file mode 100644 index 0000000000..6d4c8050e1 --- /dev/null +++ b/types/ramda/es/equals.d.ts @@ -0,0 +1,2 @@ +import { equals } from '../index'; +export default equals; diff --git a/types/ramda/es/evolve.d.ts b/types/ramda/es/evolve.d.ts new file mode 100644 index 0000000000..21ec9896a3 --- /dev/null +++ b/types/ramda/es/evolve.d.ts @@ -0,0 +1,2 @@ +import { evolve } from '../index'; +export default evolve; diff --git a/types/ramda/es/filter.d.ts b/types/ramda/es/filter.d.ts new file mode 100644 index 0000000000..a4f7133638 --- /dev/null +++ b/types/ramda/es/filter.d.ts @@ -0,0 +1,2 @@ +import { filter } from '../index'; +export default filter; diff --git a/types/ramda/es/find.d.ts b/types/ramda/es/find.d.ts new file mode 100644 index 0000000000..a8c2905bed --- /dev/null +++ b/types/ramda/es/find.d.ts @@ -0,0 +1,2 @@ +import { find } from '../index'; +export default find; diff --git a/types/ramda/es/findIndex.d.ts b/types/ramda/es/findIndex.d.ts new file mode 100644 index 0000000000..88c14e28fc --- /dev/null +++ b/types/ramda/es/findIndex.d.ts @@ -0,0 +1,2 @@ +import { findIndex } from '../index'; +export default findIndex; diff --git a/types/ramda/es/findLast.d.ts b/types/ramda/es/findLast.d.ts new file mode 100644 index 0000000000..3d8ad5c7fa --- /dev/null +++ b/types/ramda/es/findLast.d.ts @@ -0,0 +1,2 @@ +import { findLast } from '../index'; +export default findLast; diff --git a/types/ramda/es/findLastIndex.d.ts b/types/ramda/es/findLastIndex.d.ts new file mode 100644 index 0000000000..ae1edaeb14 --- /dev/null +++ b/types/ramda/es/findLastIndex.d.ts @@ -0,0 +1,2 @@ +import { findLastIndex } from '../index'; +export default findLastIndex; diff --git a/types/ramda/es/flatten.d.ts b/types/ramda/es/flatten.d.ts new file mode 100644 index 0000000000..75a19402dc --- /dev/null +++ b/types/ramda/es/flatten.d.ts @@ -0,0 +1,2 @@ +import { flatten } from '../index'; +export default flatten; diff --git a/types/ramda/es/flip.d.ts b/types/ramda/es/flip.d.ts new file mode 100644 index 0000000000..164e607f33 --- /dev/null +++ b/types/ramda/es/flip.d.ts @@ -0,0 +1,2 @@ +import { flip } from '../index'; +export default flip; diff --git a/types/ramda/es/forEach.d.ts b/types/ramda/es/forEach.d.ts new file mode 100644 index 0000000000..c5f7a57837 --- /dev/null +++ b/types/ramda/es/forEach.d.ts @@ -0,0 +1,2 @@ +import { forEach } from '../index'; +export default forEach; diff --git a/types/ramda/es/forEachObjIndexed.d.ts b/types/ramda/es/forEachObjIndexed.d.ts new file mode 100644 index 0000000000..a098026381 --- /dev/null +++ b/types/ramda/es/forEachObjIndexed.d.ts @@ -0,0 +1,2 @@ +import { forEachObjIndexed } from '../index'; +export default forEachObjIndexed; diff --git a/types/ramda/es/fromPairs.d.ts b/types/ramda/es/fromPairs.d.ts new file mode 100644 index 0000000000..0cb1778350 --- /dev/null +++ b/types/ramda/es/fromPairs.d.ts @@ -0,0 +1,2 @@ +import { fromPairs } from '../index'; +export default fromPairs; diff --git a/types/ramda/es/groupBy.d.ts b/types/ramda/es/groupBy.d.ts new file mode 100644 index 0000000000..af2b32083b --- /dev/null +++ b/types/ramda/es/groupBy.d.ts @@ -0,0 +1,2 @@ +import { groupBy } from '../index'; +export default groupBy; diff --git a/types/ramda/es/groupWith.d.ts b/types/ramda/es/groupWith.d.ts new file mode 100644 index 0000000000..f9dca6c16b --- /dev/null +++ b/types/ramda/es/groupWith.d.ts @@ -0,0 +1,2 @@ +import { groupWith } from '../index'; +export default groupWith; diff --git a/types/ramda/es/gt.d.ts b/types/ramda/es/gt.d.ts new file mode 100644 index 0000000000..4cdb70d336 --- /dev/null +++ b/types/ramda/es/gt.d.ts @@ -0,0 +1,2 @@ +import { gt } from '../index'; +export default gt; diff --git a/types/ramda/es/gte.d.ts b/types/ramda/es/gte.d.ts new file mode 100644 index 0000000000..2b878eabc6 --- /dev/null +++ b/types/ramda/es/gte.d.ts @@ -0,0 +1,2 @@ +import { gte } from '../index'; +export default gte; diff --git a/types/ramda/es/has.d.ts b/types/ramda/es/has.d.ts new file mode 100644 index 0000000000..88c79bfdb0 --- /dev/null +++ b/types/ramda/es/has.d.ts @@ -0,0 +1,2 @@ +import { has } from '../index'; +export default has; diff --git a/types/ramda/es/hasIn.d.ts b/types/ramda/es/hasIn.d.ts new file mode 100644 index 0000000000..4cad709e64 --- /dev/null +++ b/types/ramda/es/hasIn.d.ts @@ -0,0 +1,2 @@ +import { hasIn } from '../index'; +export default hasIn; diff --git a/types/ramda/es/head.d.ts b/types/ramda/es/head.d.ts new file mode 100644 index 0000000000..bb1f3dd7b9 --- /dev/null +++ b/types/ramda/es/head.d.ts @@ -0,0 +1,2 @@ +import { head } from '../index'; +export default head; diff --git a/types/ramda/es/identical.d.ts b/types/ramda/es/identical.d.ts new file mode 100644 index 0000000000..6f2ccf4f94 --- /dev/null +++ b/types/ramda/es/identical.d.ts @@ -0,0 +1,2 @@ +import { identical } from '../index'; +export default identical; diff --git a/types/ramda/es/identity.d.ts b/types/ramda/es/identity.d.ts new file mode 100644 index 0000000000..ba0936116e --- /dev/null +++ b/types/ramda/es/identity.d.ts @@ -0,0 +1,2 @@ +import { identity } from '../index'; +export default identity; diff --git a/types/ramda/es/ifElse.d.ts b/types/ramda/es/ifElse.d.ts new file mode 100644 index 0000000000..46674829d7 --- /dev/null +++ b/types/ramda/es/ifElse.d.ts @@ -0,0 +1,2 @@ +import { ifElse } from '../index'; +export default ifElse; diff --git a/types/ramda/es/inc.d.ts b/types/ramda/es/inc.d.ts new file mode 100644 index 0000000000..c173b2dd8e --- /dev/null +++ b/types/ramda/es/inc.d.ts @@ -0,0 +1,2 @@ +import { inc } from '../index'; +export default inc; diff --git a/types/ramda/es/indexBy.d.ts b/types/ramda/es/indexBy.d.ts new file mode 100644 index 0000000000..93b29ec7cd --- /dev/null +++ b/types/ramda/es/indexBy.d.ts @@ -0,0 +1,2 @@ +import { indexBy } from '../index'; +export default indexBy; diff --git a/types/ramda/es/indexOf.d.ts b/types/ramda/es/indexOf.d.ts new file mode 100644 index 0000000000..22aa4b44db --- /dev/null +++ b/types/ramda/es/indexOf.d.ts @@ -0,0 +1,2 @@ +import { indexOf } from '../index'; +export default indexOf; diff --git a/types/ramda/es/init.d.ts b/types/ramda/es/init.d.ts new file mode 100644 index 0000000000..03849db7b0 --- /dev/null +++ b/types/ramda/es/init.d.ts @@ -0,0 +1,2 @@ +import { init } from '../index'; +export default init; diff --git a/types/ramda/es/insert.d.ts b/types/ramda/es/insert.d.ts new file mode 100644 index 0000000000..3fdde857fa --- /dev/null +++ b/types/ramda/es/insert.d.ts @@ -0,0 +1,2 @@ +import { insert } from '../index'; +export default insert; diff --git a/types/ramda/es/insertAll.d.ts b/types/ramda/es/insertAll.d.ts new file mode 100644 index 0000000000..a9fd784995 --- /dev/null +++ b/types/ramda/es/insertAll.d.ts @@ -0,0 +1,2 @@ +import { insertAll } from '../index'; +export default insertAll; diff --git a/types/ramda/es/intersection.d.ts b/types/ramda/es/intersection.d.ts new file mode 100644 index 0000000000..1ec1aadbe4 --- /dev/null +++ b/types/ramda/es/intersection.d.ts @@ -0,0 +1,2 @@ +import { intersection } from '../index'; +export default intersection; diff --git a/types/ramda/es/intersectionWith.d.ts b/types/ramda/es/intersectionWith.d.ts new file mode 100644 index 0000000000..773c36acbe --- /dev/null +++ b/types/ramda/es/intersectionWith.d.ts @@ -0,0 +1,2 @@ +import { intersectionWith } from '../index'; +export default intersectionWith; diff --git a/types/ramda/es/intersperse.d.ts b/types/ramda/es/intersperse.d.ts new file mode 100644 index 0000000000..b4420de34a --- /dev/null +++ b/types/ramda/es/intersperse.d.ts @@ -0,0 +1,2 @@ +import { intersperse } from '../index'; +export default intersperse; diff --git a/types/ramda/es/into.d.ts b/types/ramda/es/into.d.ts new file mode 100644 index 0000000000..3daa53afdd --- /dev/null +++ b/types/ramda/es/into.d.ts @@ -0,0 +1,2 @@ +import { into } from '../index'; +export default into; diff --git a/types/ramda/es/invert.d.ts b/types/ramda/es/invert.d.ts new file mode 100644 index 0000000000..825773f5dc --- /dev/null +++ b/types/ramda/es/invert.d.ts @@ -0,0 +1,2 @@ +import { invert } from '../index'; +export default invert; diff --git a/types/ramda/es/invertObj.d.ts b/types/ramda/es/invertObj.d.ts new file mode 100644 index 0000000000..8fd0f1fe7d --- /dev/null +++ b/types/ramda/es/invertObj.d.ts @@ -0,0 +1,2 @@ +import { invertObj } from '../index'; +export default invertObj; diff --git a/types/ramda/es/invoker.d.ts b/types/ramda/es/invoker.d.ts new file mode 100644 index 0000000000..1930a78917 --- /dev/null +++ b/types/ramda/es/invoker.d.ts @@ -0,0 +1,2 @@ +import { invoker } from '../index'; +export default invoker; diff --git a/types/ramda/es/is.d.ts b/types/ramda/es/is.d.ts new file mode 100644 index 0000000000..262d14160d --- /dev/null +++ b/types/ramda/es/is.d.ts @@ -0,0 +1,2 @@ +import { is } from '../index'; +export default is; diff --git a/types/ramda/es/isArrayLike.d.ts b/types/ramda/es/isArrayLike.d.ts new file mode 100644 index 0000000000..04aa464805 --- /dev/null +++ b/types/ramda/es/isArrayLike.d.ts @@ -0,0 +1,2 @@ +import { isArrayLike } from '../index'; +export default isArrayLike; diff --git a/types/ramda/es/isEmpty.d.ts b/types/ramda/es/isEmpty.d.ts new file mode 100644 index 0000000000..bea7bb8d08 --- /dev/null +++ b/types/ramda/es/isEmpty.d.ts @@ -0,0 +1,2 @@ +import { isEmpty } from '../index'; +export default isEmpty; diff --git a/types/ramda/es/isNaN.d.ts b/types/ramda/es/isNaN.d.ts new file mode 100644 index 0000000000..5dbe28177a --- /dev/null +++ b/types/ramda/es/isNaN.d.ts @@ -0,0 +1,2 @@ +import { isNaN } from '../index'; +export default isNaN; diff --git a/types/ramda/es/isNil.d.ts b/types/ramda/es/isNil.d.ts new file mode 100644 index 0000000000..bce78e7c70 --- /dev/null +++ b/types/ramda/es/isNil.d.ts @@ -0,0 +1,2 @@ +import { isNil } from '../index'; +export default isNil; diff --git a/types/ramda/es/join.d.ts b/types/ramda/es/join.d.ts new file mode 100644 index 0000000000..7505b7e769 --- /dev/null +++ b/types/ramda/es/join.d.ts @@ -0,0 +1,2 @@ +import { join } from '../index'; +export default join; diff --git a/types/ramda/es/juxt.d.ts b/types/ramda/es/juxt.d.ts new file mode 100644 index 0000000000..23e342f53d --- /dev/null +++ b/types/ramda/es/juxt.d.ts @@ -0,0 +1,2 @@ +import { juxt } from '../index'; +export default juxt; diff --git a/types/ramda/es/keys.d.ts b/types/ramda/es/keys.d.ts new file mode 100644 index 0000000000..b44e894b7a --- /dev/null +++ b/types/ramda/es/keys.d.ts @@ -0,0 +1,2 @@ +import { keys } from '../index'; +export default keys; diff --git a/types/ramda/es/keysIn.d.ts b/types/ramda/es/keysIn.d.ts new file mode 100644 index 0000000000..a54fb92a6d --- /dev/null +++ b/types/ramda/es/keysIn.d.ts @@ -0,0 +1,2 @@ +import { keysIn } from '../index'; +export default keysIn; diff --git a/types/ramda/es/last.d.ts b/types/ramda/es/last.d.ts new file mode 100644 index 0000000000..f8ea740735 --- /dev/null +++ b/types/ramda/es/last.d.ts @@ -0,0 +1,2 @@ +import { last } from '../index'; +export default last; diff --git a/types/ramda/es/lastIndexOf.d.ts b/types/ramda/es/lastIndexOf.d.ts new file mode 100644 index 0000000000..c34fe55a03 --- /dev/null +++ b/types/ramda/es/lastIndexOf.d.ts @@ -0,0 +1,2 @@ +import { lastIndexOf } from '../index'; +export default lastIndexOf; diff --git a/types/ramda/es/length.d.ts b/types/ramda/es/length.d.ts new file mode 100644 index 0000000000..7ef1d90dd5 --- /dev/null +++ b/types/ramda/es/length.d.ts @@ -0,0 +1,2 @@ +import { length } from '../index'; +export default length; diff --git a/types/ramda/es/lens.d.ts b/types/ramda/es/lens.d.ts new file mode 100644 index 0000000000..03688e0c4f --- /dev/null +++ b/types/ramda/es/lens.d.ts @@ -0,0 +1,2 @@ +import { lens } from '../index'; +export default lens; diff --git a/types/ramda/es/lensIndex.d.ts b/types/ramda/es/lensIndex.d.ts new file mode 100644 index 0000000000..d85cd88c2f --- /dev/null +++ b/types/ramda/es/lensIndex.d.ts @@ -0,0 +1,2 @@ +import { lensIndex } from '../index'; +export default lensIndex; diff --git a/types/ramda/es/lensPath.d.ts b/types/ramda/es/lensPath.d.ts new file mode 100644 index 0000000000..67b60fbf3c --- /dev/null +++ b/types/ramda/es/lensPath.d.ts @@ -0,0 +1,2 @@ +import { lensPath } from '../index'; +export default lensPath; diff --git a/types/ramda/es/lensProp.d.ts b/types/ramda/es/lensProp.d.ts new file mode 100644 index 0000000000..fc8db9e32d --- /dev/null +++ b/types/ramda/es/lensProp.d.ts @@ -0,0 +1,2 @@ +import { lensProp } from '../index'; +export default lensProp; diff --git a/types/ramda/es/lift.d.ts b/types/ramda/es/lift.d.ts new file mode 100644 index 0000000000..73e4cba184 --- /dev/null +++ b/types/ramda/es/lift.d.ts @@ -0,0 +1,2 @@ +import { lift } from '../index'; +export default lift; diff --git a/types/ramda/es/lt.d.ts b/types/ramda/es/lt.d.ts new file mode 100644 index 0000000000..71360d1c43 --- /dev/null +++ b/types/ramda/es/lt.d.ts @@ -0,0 +1,2 @@ +import { lt } from '../index'; +export default lt; diff --git a/types/ramda/es/lte.d.ts b/types/ramda/es/lte.d.ts new file mode 100644 index 0000000000..980ef22037 --- /dev/null +++ b/types/ramda/es/lte.d.ts @@ -0,0 +1,2 @@ +import { lte } from '../index'; +export default lte; diff --git a/types/ramda/es/map.d.ts b/types/ramda/es/map.d.ts new file mode 100644 index 0000000000..6883cb62f6 --- /dev/null +++ b/types/ramda/es/map.d.ts @@ -0,0 +1,2 @@ +import { map } from '../index'; +export default map; diff --git a/types/ramda/es/mapAccum.d.ts b/types/ramda/es/mapAccum.d.ts new file mode 100644 index 0000000000..356c715787 --- /dev/null +++ b/types/ramda/es/mapAccum.d.ts @@ -0,0 +1,2 @@ +import { mapAccum } from '../index'; +export default mapAccum; diff --git a/types/ramda/es/mapAccumRight.d.ts b/types/ramda/es/mapAccumRight.d.ts new file mode 100644 index 0000000000..817e73bb97 --- /dev/null +++ b/types/ramda/es/mapAccumRight.d.ts @@ -0,0 +1,2 @@ +import { mapAccumRight } from '../index'; +export default mapAccumRight; diff --git a/types/ramda/es/mapObjIndexed.d.ts b/types/ramda/es/mapObjIndexed.d.ts new file mode 100644 index 0000000000..3ef1eca52d --- /dev/null +++ b/types/ramda/es/mapObjIndexed.d.ts @@ -0,0 +1,2 @@ +import { mapObjIndexed } from '../index'; +export default mapObjIndexed; diff --git a/types/ramda/es/match.d.ts b/types/ramda/es/match.d.ts new file mode 100644 index 0000000000..a24f0bd6d0 --- /dev/null +++ b/types/ramda/es/match.d.ts @@ -0,0 +1,2 @@ +import { match } from '../index'; +export default match; diff --git a/types/ramda/es/mathMod.d.ts b/types/ramda/es/mathMod.d.ts new file mode 100644 index 0000000000..0b0205c822 --- /dev/null +++ b/types/ramda/es/mathMod.d.ts @@ -0,0 +1,2 @@ +import { mathMod } from '../index'; +export default mathMod; diff --git a/types/ramda/es/max.d.ts b/types/ramda/es/max.d.ts new file mode 100644 index 0000000000..fcb09338c0 --- /dev/null +++ b/types/ramda/es/max.d.ts @@ -0,0 +1,2 @@ +import { max } from '../index'; +export default max; diff --git a/types/ramda/es/maxBy.d.ts b/types/ramda/es/maxBy.d.ts new file mode 100644 index 0000000000..4d00e7e572 --- /dev/null +++ b/types/ramda/es/maxBy.d.ts @@ -0,0 +1,2 @@ +import { maxBy } from '../index'; +export default maxBy; diff --git a/types/ramda/es/mean.d.ts b/types/ramda/es/mean.d.ts new file mode 100644 index 0000000000..8babcc3374 --- /dev/null +++ b/types/ramda/es/mean.d.ts @@ -0,0 +1,2 @@ +import { mean } from '../index'; +export default mean; diff --git a/types/ramda/es/median.d.ts b/types/ramda/es/median.d.ts new file mode 100644 index 0000000000..f7386692ff --- /dev/null +++ b/types/ramda/es/median.d.ts @@ -0,0 +1,2 @@ +import { median } from '../index'; +export default median; diff --git a/types/ramda/es/memoize.d.ts b/types/ramda/es/memoize.d.ts new file mode 100644 index 0000000000..a32d4d0016 --- /dev/null +++ b/types/ramda/es/memoize.d.ts @@ -0,0 +1,2 @@ +import { memoize } from '../index'; +export default memoize; diff --git a/types/ramda/es/memoizeWith.d.ts b/types/ramda/es/memoizeWith.d.ts new file mode 100644 index 0000000000..8eb2abd416 --- /dev/null +++ b/types/ramda/es/memoizeWith.d.ts @@ -0,0 +1,2 @@ +import { memoizeWith } from '../index'; +export default memoizeWith; diff --git a/types/ramda/es/merge.d.ts b/types/ramda/es/merge.d.ts new file mode 100644 index 0000000000..9786c2b611 --- /dev/null +++ b/types/ramda/es/merge.d.ts @@ -0,0 +1,2 @@ +import { merge } from '../index'; +export default merge; diff --git a/types/ramda/es/mergeAll.d.ts b/types/ramda/es/mergeAll.d.ts new file mode 100644 index 0000000000..8bb141f82f --- /dev/null +++ b/types/ramda/es/mergeAll.d.ts @@ -0,0 +1,2 @@ +import { mergeAll } from '../index'; +export default mergeAll; diff --git a/types/ramda/es/mergeDeepLeft.d.ts b/types/ramda/es/mergeDeepLeft.d.ts new file mode 100644 index 0000000000..332df578d3 --- /dev/null +++ b/types/ramda/es/mergeDeepLeft.d.ts @@ -0,0 +1,2 @@ +import { mergeDeepLeft } from '../index'; +export default mergeDeepLeft; diff --git a/types/ramda/es/mergeDeepRight.d.ts b/types/ramda/es/mergeDeepRight.d.ts new file mode 100644 index 0000000000..c589924ca5 --- /dev/null +++ b/types/ramda/es/mergeDeepRight.d.ts @@ -0,0 +1,2 @@ +import { mergeDeepRight } from '../index'; +export default mergeDeepRight; diff --git a/types/ramda/es/mergeDeepWith.d.ts b/types/ramda/es/mergeDeepWith.d.ts new file mode 100644 index 0000000000..cd5523b224 --- /dev/null +++ b/types/ramda/es/mergeDeepWith.d.ts @@ -0,0 +1,2 @@ +import { mergeDeepWith } from '../index'; +export default mergeDeepWith; diff --git a/types/ramda/es/mergeDeepWithKey.d.ts b/types/ramda/es/mergeDeepWithKey.d.ts new file mode 100644 index 0000000000..70f6ace1db --- /dev/null +++ b/types/ramda/es/mergeDeepWithKey.d.ts @@ -0,0 +1,2 @@ +import { mergeDeepWithKey } from '../index'; +export default mergeDeepWithKey; diff --git a/types/ramda/es/mergeWith.d.ts b/types/ramda/es/mergeWith.d.ts new file mode 100644 index 0000000000..0270c71977 --- /dev/null +++ b/types/ramda/es/mergeWith.d.ts @@ -0,0 +1,2 @@ +import { mergeWith } from '../index'; +export default mergeWith; diff --git a/types/ramda/es/mergeWithKey.d.ts b/types/ramda/es/mergeWithKey.d.ts new file mode 100644 index 0000000000..b32e625cfc --- /dev/null +++ b/types/ramda/es/mergeWithKey.d.ts @@ -0,0 +1,2 @@ +import { mergeWithKey } from '../index'; +export default mergeWithKey; diff --git a/types/ramda/es/min.d.ts b/types/ramda/es/min.d.ts new file mode 100644 index 0000000000..af0dca8faa --- /dev/null +++ b/types/ramda/es/min.d.ts @@ -0,0 +1,2 @@ +import { min } from '../index'; +export default min; diff --git a/types/ramda/es/minBy.d.ts b/types/ramda/es/minBy.d.ts new file mode 100644 index 0000000000..14377eea93 --- /dev/null +++ b/types/ramda/es/minBy.d.ts @@ -0,0 +1,2 @@ +import { minBy } from '../index'; +export default minBy; diff --git a/types/ramda/es/modulo.d.ts b/types/ramda/es/modulo.d.ts new file mode 100644 index 0000000000..4c32f3ce8f --- /dev/null +++ b/types/ramda/es/modulo.d.ts @@ -0,0 +1,2 @@ +import { modulo } from '../index'; +export default modulo; diff --git a/types/ramda/es/multiply.d.ts b/types/ramda/es/multiply.d.ts new file mode 100644 index 0000000000..56d3a59380 --- /dev/null +++ b/types/ramda/es/multiply.d.ts @@ -0,0 +1,2 @@ +import { multiply } from '../index'; +export default multiply; diff --git a/types/ramda/es/nAry.d.ts b/types/ramda/es/nAry.d.ts new file mode 100644 index 0000000000..a9bce85047 --- /dev/null +++ b/types/ramda/es/nAry.d.ts @@ -0,0 +1,2 @@ +import { nAry } from '../index'; +export default nAry; diff --git a/types/ramda/es/negate.d.ts b/types/ramda/es/negate.d.ts new file mode 100644 index 0000000000..8410d94a22 --- /dev/null +++ b/types/ramda/es/negate.d.ts @@ -0,0 +1,2 @@ +import { negate } from '../index'; +export default negate; diff --git a/types/ramda/es/none.d.ts b/types/ramda/es/none.d.ts new file mode 100644 index 0000000000..6c545e7261 --- /dev/null +++ b/types/ramda/es/none.d.ts @@ -0,0 +1,2 @@ +import { none } from '../index'; +export default none; diff --git a/types/ramda/es/not.d.ts b/types/ramda/es/not.d.ts new file mode 100644 index 0000000000..10c4c56cfc --- /dev/null +++ b/types/ramda/es/not.d.ts @@ -0,0 +1,2 @@ +import { not } from '../index'; +export default not; diff --git a/types/ramda/es/nth.d.ts b/types/ramda/es/nth.d.ts new file mode 100644 index 0000000000..b5cef1993a --- /dev/null +++ b/types/ramda/es/nth.d.ts @@ -0,0 +1,2 @@ +import { nth } from '../index'; +export default nth; diff --git a/types/ramda/es/nthArg.d.ts b/types/ramda/es/nthArg.d.ts new file mode 100644 index 0000000000..5d61bb24f6 --- /dev/null +++ b/types/ramda/es/nthArg.d.ts @@ -0,0 +1,2 @@ +import { nthArg } from '../index'; +export default nthArg; diff --git a/types/ramda/es/objOf.d.ts b/types/ramda/es/objOf.d.ts new file mode 100644 index 0000000000..0a2b7c3075 --- /dev/null +++ b/types/ramda/es/objOf.d.ts @@ -0,0 +1,2 @@ +import { objOf } from '../index'; +export default objOf; diff --git a/types/ramda/es/of.d.ts b/types/ramda/es/of.d.ts new file mode 100644 index 0000000000..252569b5e6 --- /dev/null +++ b/types/ramda/es/of.d.ts @@ -0,0 +1,2 @@ +import { of } from '../index'; +export default of; diff --git a/types/ramda/es/omit.d.ts b/types/ramda/es/omit.d.ts new file mode 100644 index 0000000000..e7e9f796e9 --- /dev/null +++ b/types/ramda/es/omit.d.ts @@ -0,0 +1,2 @@ +import { omit } from '../index'; +export default omit; diff --git a/types/ramda/es/once.d.ts b/types/ramda/es/once.d.ts new file mode 100644 index 0000000000..f49febf008 --- /dev/null +++ b/types/ramda/es/once.d.ts @@ -0,0 +1,2 @@ +import { once } from '../index'; +export default once; diff --git a/types/ramda/es/or.d.ts b/types/ramda/es/or.d.ts new file mode 100644 index 0000000000..933ca7b2d2 --- /dev/null +++ b/types/ramda/es/or.d.ts @@ -0,0 +1,2 @@ +import { or } from '../index'; +export default or; diff --git a/types/ramda/es/over.d.ts b/types/ramda/es/over.d.ts new file mode 100644 index 0000000000..deee3577da --- /dev/null +++ b/types/ramda/es/over.d.ts @@ -0,0 +1,2 @@ +import { over } from '../index'; +export default over; diff --git a/types/ramda/es/pair.d.ts b/types/ramda/es/pair.d.ts new file mode 100644 index 0000000000..2a1cea9de0 --- /dev/null +++ b/types/ramda/es/pair.d.ts @@ -0,0 +1,2 @@ +import { pair } from '../index'; +export default pair; diff --git a/types/ramda/es/partial.d.ts b/types/ramda/es/partial.d.ts new file mode 100644 index 0000000000..acbb16bac3 --- /dev/null +++ b/types/ramda/es/partial.d.ts @@ -0,0 +1,2 @@ +import { partial } from '../index'; +export default partial; diff --git a/types/ramda/es/partialRight.d.ts b/types/ramda/es/partialRight.d.ts new file mode 100644 index 0000000000..5b3bb4b0fa --- /dev/null +++ b/types/ramda/es/partialRight.d.ts @@ -0,0 +1,2 @@ +import { partialRight } from '../index'; +export default partialRight; diff --git a/types/ramda/es/partition.d.ts b/types/ramda/es/partition.d.ts new file mode 100644 index 0000000000..28086418d7 --- /dev/null +++ b/types/ramda/es/partition.d.ts @@ -0,0 +1,2 @@ +import { partition } from '../index'; +export default partition; diff --git a/types/ramda/es/path.d.ts b/types/ramda/es/path.d.ts new file mode 100644 index 0000000000..edf4fa57b0 --- /dev/null +++ b/types/ramda/es/path.d.ts @@ -0,0 +1,2 @@ +import { path } from '../index'; +export default path; diff --git a/types/ramda/es/pathEq.d.ts b/types/ramda/es/pathEq.d.ts new file mode 100644 index 0000000000..27856ca3bc --- /dev/null +++ b/types/ramda/es/pathEq.d.ts @@ -0,0 +1,2 @@ +import { pathEq } from '../index'; +export default pathEq; diff --git a/types/ramda/es/pathOr.d.ts b/types/ramda/es/pathOr.d.ts new file mode 100644 index 0000000000..1af55adc0c --- /dev/null +++ b/types/ramda/es/pathOr.d.ts @@ -0,0 +1,2 @@ +import { pathOr } from '../index'; +export default pathOr; diff --git a/types/ramda/es/pathSatisfies.d.ts b/types/ramda/es/pathSatisfies.d.ts new file mode 100644 index 0000000000..e2493400a2 --- /dev/null +++ b/types/ramda/es/pathSatisfies.d.ts @@ -0,0 +1,2 @@ +import { pathSatisfies } from '../index'; +export default pathSatisfies; diff --git a/types/ramda/es/pick.d.ts b/types/ramda/es/pick.d.ts new file mode 100644 index 0000000000..67b2477a48 --- /dev/null +++ b/types/ramda/es/pick.d.ts @@ -0,0 +1,2 @@ +import { pick } from '../index'; +export default pick; diff --git a/types/ramda/es/pickAll.d.ts b/types/ramda/es/pickAll.d.ts new file mode 100644 index 0000000000..d7e7719077 --- /dev/null +++ b/types/ramda/es/pickAll.d.ts @@ -0,0 +1,2 @@ +import { pickAll } from '../index'; +export default pickAll; diff --git a/types/ramda/es/pickBy.d.ts b/types/ramda/es/pickBy.d.ts new file mode 100644 index 0000000000..4a047dc4ab --- /dev/null +++ b/types/ramda/es/pickBy.d.ts @@ -0,0 +1,2 @@ +import { pickBy } from '../index'; +export default pickBy; diff --git a/types/ramda/es/pipe.d.ts b/types/ramda/es/pipe.d.ts new file mode 100644 index 0000000000..ef1d61098b --- /dev/null +++ b/types/ramda/es/pipe.d.ts @@ -0,0 +1,2 @@ +import { pipe } from '../index'; +export default pipe; diff --git a/types/ramda/es/pipeK.d.ts b/types/ramda/es/pipeK.d.ts new file mode 100644 index 0000000000..bca50e6fff --- /dev/null +++ b/types/ramda/es/pipeK.d.ts @@ -0,0 +1,2 @@ +import { pipeK } from '../index'; +export default pipeK; diff --git a/types/ramda/es/pipeP.d.ts b/types/ramda/es/pipeP.d.ts new file mode 100644 index 0000000000..c69b96d23c --- /dev/null +++ b/types/ramda/es/pipeP.d.ts @@ -0,0 +1,2 @@ +import { pipeP } from '../index'; +export default pipeP; diff --git a/types/ramda/es/pluck.d.ts b/types/ramda/es/pluck.d.ts new file mode 100644 index 0000000000..8bdb4ccbe4 --- /dev/null +++ b/types/ramda/es/pluck.d.ts @@ -0,0 +1,2 @@ +import { pluck } from '../index'; +export default pluck; diff --git a/types/ramda/es/prepend.d.ts b/types/ramda/es/prepend.d.ts new file mode 100644 index 0000000000..9d3fde51b4 --- /dev/null +++ b/types/ramda/es/prepend.d.ts @@ -0,0 +1,2 @@ +import { prepend } from '../index'; +export default prepend; diff --git a/types/ramda/es/product.d.ts b/types/ramda/es/product.d.ts new file mode 100644 index 0000000000..32aed3c0ee --- /dev/null +++ b/types/ramda/es/product.d.ts @@ -0,0 +1,2 @@ +import { product } from '../index'; +export default product; diff --git a/types/ramda/es/project.d.ts b/types/ramda/es/project.d.ts new file mode 100644 index 0000000000..4c1b11c6ed --- /dev/null +++ b/types/ramda/es/project.d.ts @@ -0,0 +1,2 @@ +import { project } from '../index'; +export default project; diff --git a/types/ramda/es/prop.d.ts b/types/ramda/es/prop.d.ts new file mode 100644 index 0000000000..c990b9aca5 --- /dev/null +++ b/types/ramda/es/prop.d.ts @@ -0,0 +1,2 @@ +import { prop } from '../index'; +export default prop; diff --git a/types/ramda/es/propEq.d.ts b/types/ramda/es/propEq.d.ts new file mode 100644 index 0000000000..1e04cb564c --- /dev/null +++ b/types/ramda/es/propEq.d.ts @@ -0,0 +1,2 @@ +import { propEq } from '../index'; +export default propEq; diff --git a/types/ramda/es/propIs.d.ts b/types/ramda/es/propIs.d.ts new file mode 100644 index 0000000000..1be4e6bd04 --- /dev/null +++ b/types/ramda/es/propIs.d.ts @@ -0,0 +1,2 @@ +import { propIs } from '../index'; +export default propIs; diff --git a/types/ramda/es/propOr.d.ts b/types/ramda/es/propOr.d.ts new file mode 100644 index 0000000000..2935d077be --- /dev/null +++ b/types/ramda/es/propOr.d.ts @@ -0,0 +1,2 @@ +import { propOr } from '../index'; +export default propOr; diff --git a/types/ramda/es/propSatisfies.d.ts b/types/ramda/es/propSatisfies.d.ts new file mode 100644 index 0000000000..1b4ff52788 --- /dev/null +++ b/types/ramda/es/propSatisfies.d.ts @@ -0,0 +1,2 @@ +import { propSatisfies } from '../index'; +export default propSatisfies; diff --git a/types/ramda/es/props.d.ts b/types/ramda/es/props.d.ts new file mode 100644 index 0000000000..b856c60b00 --- /dev/null +++ b/types/ramda/es/props.d.ts @@ -0,0 +1,2 @@ +import { props } from '../index'; +export default props; diff --git a/types/ramda/es/range.d.ts b/types/ramda/es/range.d.ts new file mode 100644 index 0000000000..a507ebe4a9 --- /dev/null +++ b/types/ramda/es/range.d.ts @@ -0,0 +1,2 @@ +import { range } from '../index'; +export default range; diff --git a/types/ramda/es/reduce.d.ts b/types/ramda/es/reduce.d.ts new file mode 100644 index 0000000000..eb3b427d00 --- /dev/null +++ b/types/ramda/es/reduce.d.ts @@ -0,0 +1,2 @@ +import { reduce } from '../index'; +export default reduce; diff --git a/types/ramda/es/reduceBy.d.ts b/types/ramda/es/reduceBy.d.ts new file mode 100644 index 0000000000..655c96ef18 --- /dev/null +++ b/types/ramda/es/reduceBy.d.ts @@ -0,0 +1,2 @@ +import { reduceBy } from '../index'; +export default reduceBy; diff --git a/types/ramda/es/reduceRight.d.ts b/types/ramda/es/reduceRight.d.ts new file mode 100644 index 0000000000..3e72f7c309 --- /dev/null +++ b/types/ramda/es/reduceRight.d.ts @@ -0,0 +1,2 @@ +import { reduceRight } from '../index'; +export default reduceRight; diff --git a/types/ramda/es/reduceWhile.d.ts b/types/ramda/es/reduceWhile.d.ts new file mode 100644 index 0000000000..aaa836d38d --- /dev/null +++ b/types/ramda/es/reduceWhile.d.ts @@ -0,0 +1,2 @@ +import { reduceWhile } from '../index'; +export default reduceWhile; diff --git a/types/ramda/es/reduced.d.ts b/types/ramda/es/reduced.d.ts new file mode 100644 index 0000000000..f36739bbe2 --- /dev/null +++ b/types/ramda/es/reduced.d.ts @@ -0,0 +1,2 @@ +import { reduced } from '../index'; +export default reduced; diff --git a/types/ramda/es/reject.d.ts b/types/ramda/es/reject.d.ts new file mode 100644 index 0000000000..600c706f68 --- /dev/null +++ b/types/ramda/es/reject.d.ts @@ -0,0 +1,2 @@ +import { reject } from '../index'; +export default reject; diff --git a/types/ramda/es/remove.d.ts b/types/ramda/es/remove.d.ts new file mode 100644 index 0000000000..023edada47 --- /dev/null +++ b/types/ramda/es/remove.d.ts @@ -0,0 +1,2 @@ +import { remove } from '../index'; +export default remove; diff --git a/types/ramda/es/repeat.d.ts b/types/ramda/es/repeat.d.ts new file mode 100644 index 0000000000..3d8218a1a4 --- /dev/null +++ b/types/ramda/es/repeat.d.ts @@ -0,0 +1,2 @@ +import { repeat } from '../index'; +export default repeat; diff --git a/types/ramda/es/replace.d.ts b/types/ramda/es/replace.d.ts new file mode 100644 index 0000000000..dc735ab2cf --- /dev/null +++ b/types/ramda/es/replace.d.ts @@ -0,0 +1,2 @@ +import { replace } from '../index'; +export default replace; diff --git a/types/ramda/es/reverse.d.ts b/types/ramda/es/reverse.d.ts new file mode 100644 index 0000000000..2d1b2d9390 --- /dev/null +++ b/types/ramda/es/reverse.d.ts @@ -0,0 +1,2 @@ +import { reverse } from '../index'; +export default reverse; diff --git a/types/ramda/es/scan.d.ts b/types/ramda/es/scan.d.ts new file mode 100644 index 0000000000..8971cff9b7 --- /dev/null +++ b/types/ramda/es/scan.d.ts @@ -0,0 +1,2 @@ +import { scan } from '../index'; +export default scan; diff --git a/types/ramda/es/set.d.ts b/types/ramda/es/set.d.ts new file mode 100644 index 0000000000..5023a0b854 --- /dev/null +++ b/types/ramda/es/set.d.ts @@ -0,0 +1,2 @@ +import { set } from '../index'; +export default set; diff --git a/types/ramda/es/slice.d.ts b/types/ramda/es/slice.d.ts new file mode 100644 index 0000000000..6fdc54e59b --- /dev/null +++ b/types/ramda/es/slice.d.ts @@ -0,0 +1,2 @@ +import { slice } from '../index'; +export default slice; diff --git a/types/ramda/es/sort.d.ts b/types/ramda/es/sort.d.ts new file mode 100644 index 0000000000..9f4977e5c5 --- /dev/null +++ b/types/ramda/es/sort.d.ts @@ -0,0 +1,2 @@ +import { sort } from '../index'; +export default sort; diff --git a/types/ramda/es/sortBy.d.ts b/types/ramda/es/sortBy.d.ts new file mode 100644 index 0000000000..ff4eec72f4 --- /dev/null +++ b/types/ramda/es/sortBy.d.ts @@ -0,0 +1,2 @@ +import { sortBy } from '../index'; +export default sortBy; diff --git a/types/ramda/es/sortWith.d.ts b/types/ramda/es/sortWith.d.ts new file mode 100644 index 0000000000..e8e386a2fd --- /dev/null +++ b/types/ramda/es/sortWith.d.ts @@ -0,0 +1,2 @@ +import { sortWith } from '../index'; +export default sortWith; diff --git a/types/ramda/es/split.d.ts b/types/ramda/es/split.d.ts new file mode 100644 index 0000000000..c89a30372b --- /dev/null +++ b/types/ramda/es/split.d.ts @@ -0,0 +1,2 @@ +import { split } from '../index'; +export default split; diff --git a/types/ramda/es/splitAt.d.ts b/types/ramda/es/splitAt.d.ts new file mode 100644 index 0000000000..2f505a21e3 --- /dev/null +++ b/types/ramda/es/splitAt.d.ts @@ -0,0 +1,2 @@ +import { splitAt } from '../index'; +export default splitAt; diff --git a/types/ramda/es/splitEvery.d.ts b/types/ramda/es/splitEvery.d.ts new file mode 100644 index 0000000000..21329e9593 --- /dev/null +++ b/types/ramda/es/splitEvery.d.ts @@ -0,0 +1,2 @@ +import { splitEvery } from '../index'; +export default splitEvery; diff --git a/types/ramda/es/splitWhen.d.ts b/types/ramda/es/splitWhen.d.ts new file mode 100644 index 0000000000..fad94d5bfa --- /dev/null +++ b/types/ramda/es/splitWhen.d.ts @@ -0,0 +1,2 @@ +import { splitWhen } from '../index'; +export default splitWhen; diff --git a/types/ramda/es/startsWith.d.ts b/types/ramda/es/startsWith.d.ts new file mode 100644 index 0000000000..88811ae146 --- /dev/null +++ b/types/ramda/es/startsWith.d.ts @@ -0,0 +1,2 @@ +import { startsWith } from '../index'; +export default startsWith; diff --git a/types/ramda/es/subtract.d.ts b/types/ramda/es/subtract.d.ts new file mode 100644 index 0000000000..2bac6a6c9f --- /dev/null +++ b/types/ramda/es/subtract.d.ts @@ -0,0 +1,2 @@ +import { subtract } from '../index'; +export default subtract; diff --git a/types/ramda/es/sum.d.ts b/types/ramda/es/sum.d.ts new file mode 100644 index 0000000000..5aad66d4e2 --- /dev/null +++ b/types/ramda/es/sum.d.ts @@ -0,0 +1,2 @@ +import { sum } from '../index'; +export default sum; diff --git a/types/ramda/es/symmetricDifference.d.ts b/types/ramda/es/symmetricDifference.d.ts new file mode 100644 index 0000000000..d11802d977 --- /dev/null +++ b/types/ramda/es/symmetricDifference.d.ts @@ -0,0 +1,2 @@ +import { symmetricDifference } from '../index'; +export default symmetricDifference; diff --git a/types/ramda/es/symmetricDifferenceWith.d.ts b/types/ramda/es/symmetricDifferenceWith.d.ts new file mode 100644 index 0000000000..9ee8a2b855 --- /dev/null +++ b/types/ramda/es/symmetricDifferenceWith.d.ts @@ -0,0 +1,2 @@ +import { symmetricDifferenceWith } from '../index'; +export default symmetricDifferenceWith; diff --git a/types/ramda/es/tail.d.ts b/types/ramda/es/tail.d.ts new file mode 100644 index 0000000000..5a949add56 --- /dev/null +++ b/types/ramda/es/tail.d.ts @@ -0,0 +1,2 @@ +import { tail } from '../index'; +export default tail; diff --git a/types/ramda/es/take.d.ts b/types/ramda/es/take.d.ts new file mode 100644 index 0000000000..35806f3171 --- /dev/null +++ b/types/ramda/es/take.d.ts @@ -0,0 +1,2 @@ +import { take } from '../index'; +export default take; diff --git a/types/ramda/es/takeLast.d.ts b/types/ramda/es/takeLast.d.ts new file mode 100644 index 0000000000..145934b186 --- /dev/null +++ b/types/ramda/es/takeLast.d.ts @@ -0,0 +1,2 @@ +import { takeLast } from '../index'; +export default takeLast; diff --git a/types/ramda/es/takeLastWhile.d.ts b/types/ramda/es/takeLastWhile.d.ts new file mode 100644 index 0000000000..0d6f344445 --- /dev/null +++ b/types/ramda/es/takeLastWhile.d.ts @@ -0,0 +1,2 @@ +import { takeLastWhile } from '../index'; +export default takeLastWhile; diff --git a/types/ramda/es/takeWhile.d.ts b/types/ramda/es/takeWhile.d.ts new file mode 100644 index 0000000000..c3f71dd0fd --- /dev/null +++ b/types/ramda/es/takeWhile.d.ts @@ -0,0 +1,2 @@ +import { takeWhile } from '../index'; +export default takeWhile; diff --git a/types/ramda/es/tap.d.ts b/types/ramda/es/tap.d.ts new file mode 100644 index 0000000000..329108173e --- /dev/null +++ b/types/ramda/es/tap.d.ts @@ -0,0 +1,2 @@ +import { tap } from '../index'; +export default tap; diff --git a/types/ramda/es/test.d.ts b/types/ramda/es/test.d.ts new file mode 100644 index 0000000000..64a6289599 --- /dev/null +++ b/types/ramda/es/test.d.ts @@ -0,0 +1,2 @@ +import { test } from '../index'; +export default test; diff --git a/types/ramda/es/times.d.ts b/types/ramda/es/times.d.ts new file mode 100644 index 0000000000..141c101e23 --- /dev/null +++ b/types/ramda/es/times.d.ts @@ -0,0 +1,2 @@ +import { times } from '../index'; +export default times; diff --git a/types/ramda/es/toLower.d.ts b/types/ramda/es/toLower.d.ts new file mode 100644 index 0000000000..4086a90f75 --- /dev/null +++ b/types/ramda/es/toLower.d.ts @@ -0,0 +1,2 @@ +import { toLower } from '../index'; +export default toLower; diff --git a/types/ramda/es/toPairs.d.ts b/types/ramda/es/toPairs.d.ts new file mode 100644 index 0000000000..5a6d3b24c2 --- /dev/null +++ b/types/ramda/es/toPairs.d.ts @@ -0,0 +1,2 @@ +import { toPairs } from '../index'; +export default toPairs; diff --git a/types/ramda/es/toPairsIn.d.ts b/types/ramda/es/toPairsIn.d.ts new file mode 100644 index 0000000000..70a879e200 --- /dev/null +++ b/types/ramda/es/toPairsIn.d.ts @@ -0,0 +1,2 @@ +import { toPairsIn } from '../index'; +export default toPairsIn; diff --git a/types/ramda/es/toString.d.ts b/types/ramda/es/toString.d.ts new file mode 100644 index 0000000000..c731b264be --- /dev/null +++ b/types/ramda/es/toString.d.ts @@ -0,0 +1,2 @@ +import { toString } from '../index'; +export default toString; diff --git a/types/ramda/es/toUpper.d.ts b/types/ramda/es/toUpper.d.ts new file mode 100644 index 0000000000..0a91bccfed --- /dev/null +++ b/types/ramda/es/toUpper.d.ts @@ -0,0 +1,2 @@ +import { toUpper } from '../index'; +export default toUpper; diff --git a/types/ramda/es/transduce.d.ts b/types/ramda/es/transduce.d.ts new file mode 100644 index 0000000000..de33a7380c --- /dev/null +++ b/types/ramda/es/transduce.d.ts @@ -0,0 +1,2 @@ +import { transduce } from '../index'; +export default transduce; diff --git a/types/ramda/es/transpose.d.ts b/types/ramda/es/transpose.d.ts new file mode 100644 index 0000000000..8ed6535fb2 --- /dev/null +++ b/types/ramda/es/transpose.d.ts @@ -0,0 +1,2 @@ +import { transpose } from '../index'; +export default transpose; diff --git a/types/ramda/es/traverse.d.ts b/types/ramda/es/traverse.d.ts new file mode 100644 index 0000000000..cb4fdc0b1e --- /dev/null +++ b/types/ramda/es/traverse.d.ts @@ -0,0 +1,2 @@ +import { traverse } from '../index'; +export default traverse; diff --git a/types/ramda/es/trim.d.ts b/types/ramda/es/trim.d.ts new file mode 100644 index 0000000000..f0000b80bb --- /dev/null +++ b/types/ramda/es/trim.d.ts @@ -0,0 +1,2 @@ +import { trim } from '../index'; +export default trim; diff --git a/types/ramda/es/tryCatch.d.ts b/types/ramda/es/tryCatch.d.ts new file mode 100644 index 0000000000..3c9edd9f79 --- /dev/null +++ b/types/ramda/es/tryCatch.d.ts @@ -0,0 +1,2 @@ +import { tryCatch } from '../index'; +export default tryCatch; diff --git a/types/ramda/es/type.d.ts b/types/ramda/es/type.d.ts new file mode 100644 index 0000000000..de115bb279 --- /dev/null +++ b/types/ramda/es/type.d.ts @@ -0,0 +1,2 @@ +import { type } from '../index'; +export default type; diff --git a/types/ramda/es/unapply.d.ts b/types/ramda/es/unapply.d.ts new file mode 100644 index 0000000000..7ad4b767e0 --- /dev/null +++ b/types/ramda/es/unapply.d.ts @@ -0,0 +1,2 @@ +import { unapply } from '../index'; +export default unapply; diff --git a/types/ramda/es/unary.d.ts b/types/ramda/es/unary.d.ts new file mode 100644 index 0000000000..c022aec354 --- /dev/null +++ b/types/ramda/es/unary.d.ts @@ -0,0 +1,2 @@ +import { unary } from '../index'; +export default unary; diff --git a/types/ramda/es/uncurryN.d.ts b/types/ramda/es/uncurryN.d.ts new file mode 100644 index 0000000000..b6962cc979 --- /dev/null +++ b/types/ramda/es/uncurryN.d.ts @@ -0,0 +1,2 @@ +import { uncurryN } from '../index'; +export default uncurryN; diff --git a/types/ramda/es/unfold.d.ts b/types/ramda/es/unfold.d.ts new file mode 100644 index 0000000000..2ebaff6fe5 --- /dev/null +++ b/types/ramda/es/unfold.d.ts @@ -0,0 +1,2 @@ +import { unfold } from '../index'; +export default unfold; diff --git a/types/ramda/es/union.d.ts b/types/ramda/es/union.d.ts new file mode 100644 index 0000000000..9fac243b43 --- /dev/null +++ b/types/ramda/es/union.d.ts @@ -0,0 +1,2 @@ +import { union } from '../index'; +export default union; diff --git a/types/ramda/es/unionWith.d.ts b/types/ramda/es/unionWith.d.ts new file mode 100644 index 0000000000..8bf20a51b7 --- /dev/null +++ b/types/ramda/es/unionWith.d.ts @@ -0,0 +1,2 @@ +import { unionWith } from '../index'; +export default unionWith; diff --git a/types/ramda/es/uniq.d.ts b/types/ramda/es/uniq.d.ts new file mode 100644 index 0000000000..be0a00aef0 --- /dev/null +++ b/types/ramda/es/uniq.d.ts @@ -0,0 +1,2 @@ +import { uniq } from '../index'; +export default uniq; diff --git a/types/ramda/es/uniqBy.d.ts b/types/ramda/es/uniqBy.d.ts new file mode 100644 index 0000000000..f85de9e4e0 --- /dev/null +++ b/types/ramda/es/uniqBy.d.ts @@ -0,0 +1,2 @@ +import { uniqBy } from '../index'; +export default uniqBy; diff --git a/types/ramda/es/uniqWith.d.ts b/types/ramda/es/uniqWith.d.ts new file mode 100644 index 0000000000..42442bffc3 --- /dev/null +++ b/types/ramda/es/uniqWith.d.ts @@ -0,0 +1,2 @@ +import { uniqWith } from '../index'; +export default uniqWith; diff --git a/types/ramda/es/unless.d.ts b/types/ramda/es/unless.d.ts new file mode 100644 index 0000000000..3727700625 --- /dev/null +++ b/types/ramda/es/unless.d.ts @@ -0,0 +1,2 @@ +import { unless } from '../index'; +export default unless; diff --git a/types/ramda/es/unnest.d.ts b/types/ramda/es/unnest.d.ts new file mode 100644 index 0000000000..ccbb4be0e8 --- /dev/null +++ b/types/ramda/es/unnest.d.ts @@ -0,0 +1,2 @@ +import { unnest } from '../index'; +export default unnest; diff --git a/types/ramda/es/until.d.ts b/types/ramda/es/until.d.ts new file mode 100644 index 0000000000..ab26247fea --- /dev/null +++ b/types/ramda/es/until.d.ts @@ -0,0 +1,2 @@ +import { until } from '../index'; +export default until; diff --git a/types/ramda/es/update.d.ts b/types/ramda/es/update.d.ts new file mode 100644 index 0000000000..c3eba99c72 --- /dev/null +++ b/types/ramda/es/update.d.ts @@ -0,0 +1,2 @@ +import { update } from '../index'; +export default update; diff --git a/types/ramda/es/useWith.d.ts b/types/ramda/es/useWith.d.ts new file mode 100644 index 0000000000..0d1f54e80f --- /dev/null +++ b/types/ramda/es/useWith.d.ts @@ -0,0 +1,2 @@ +import { useWith } from '../index'; +export default useWith; diff --git a/types/ramda/es/values.d.ts b/types/ramda/es/values.d.ts new file mode 100644 index 0000000000..8664d8cc67 --- /dev/null +++ b/types/ramda/es/values.d.ts @@ -0,0 +1,2 @@ +import { values } from '../index'; +export default values; diff --git a/types/ramda/es/valuesIn.d.ts b/types/ramda/es/valuesIn.d.ts new file mode 100644 index 0000000000..d80b32fc67 --- /dev/null +++ b/types/ramda/es/valuesIn.d.ts @@ -0,0 +1,2 @@ +import { valuesIn } from '../index'; +export default valuesIn; diff --git a/types/ramda/es/view.d.ts b/types/ramda/es/view.d.ts new file mode 100644 index 0000000000..3c11fa0ae9 --- /dev/null +++ b/types/ramda/es/view.d.ts @@ -0,0 +1,2 @@ +import { view } from '../index'; +export default view; diff --git a/types/ramda/es/when.d.ts b/types/ramda/es/when.d.ts new file mode 100644 index 0000000000..57de7e19a7 --- /dev/null +++ b/types/ramda/es/when.d.ts @@ -0,0 +1,2 @@ +import { when } from '../index'; +export default when; diff --git a/types/ramda/es/where.d.ts b/types/ramda/es/where.d.ts new file mode 100644 index 0000000000..4c49c2dc25 --- /dev/null +++ b/types/ramda/es/where.d.ts @@ -0,0 +1,2 @@ +import { where } from '../index'; +export default where; diff --git a/types/ramda/es/whereEq.d.ts b/types/ramda/es/whereEq.d.ts new file mode 100644 index 0000000000..4bdffa1d24 --- /dev/null +++ b/types/ramda/es/whereEq.d.ts @@ -0,0 +1,2 @@ +import { whereEq } from '../index'; +export default whereEq; diff --git a/types/ramda/es/without.d.ts b/types/ramda/es/without.d.ts new file mode 100644 index 0000000000..be9b8584ed --- /dev/null +++ b/types/ramda/es/without.d.ts @@ -0,0 +1,2 @@ +import { without } from '../index'; +export default without; diff --git a/types/ramda/es/wrap.d.ts b/types/ramda/es/wrap.d.ts new file mode 100644 index 0000000000..a855106989 --- /dev/null +++ b/types/ramda/es/wrap.d.ts @@ -0,0 +1,2 @@ +import { wrap } from '../index'; +export default wrap; diff --git a/types/ramda/es/xprod.d.ts b/types/ramda/es/xprod.d.ts new file mode 100644 index 0000000000..2e3fd865ea --- /dev/null +++ b/types/ramda/es/xprod.d.ts @@ -0,0 +1,2 @@ +import { xprod } from '../index'; +export default xprod; diff --git a/types/ramda/es/zip.d.ts b/types/ramda/es/zip.d.ts new file mode 100644 index 0000000000..609fe7bb29 --- /dev/null +++ b/types/ramda/es/zip.d.ts @@ -0,0 +1,2 @@ +import { zip } from '../index'; +export default zip; diff --git a/types/ramda/es/zipObj.d.ts b/types/ramda/es/zipObj.d.ts new file mode 100644 index 0000000000..dcc28311bc --- /dev/null +++ b/types/ramda/es/zipObj.d.ts @@ -0,0 +1,2 @@ +import { zipObj } from '../index'; +export default zipObj; diff --git a/types/ramda/es/zipWith.d.ts b/types/ramda/es/zipWith.d.ts new file mode 100644 index 0000000000..df6890c369 --- /dev/null +++ b/types/ramda/es/zipWith.d.ts @@ -0,0 +1,2 @@ +import { zipWith } from '../index'; +export default zipWith; diff --git a/types/ramda/tsconfig.json b/types/ramda/tsconfig.json index 4de4f10d8f..ee0c54f470 100644 --- a/types/ramda/tsconfig.json +++ b/types/ramda/tsconfig.json @@ -19,6 +19,248 @@ }, "files": [ "index.d.ts", - "ramda-tests.ts" + "ramda-tests.ts", + "es/add.d.ts", + "es/addIndex.d.ts", + "es/adjust.d.ts", + "es/all.d.ts", + "es/allPass.d.ts", + "es/always.d.ts", + "es/and.d.ts", + "es/any.d.ts", + "es/anyPass.d.ts", + "es/ap.d.ts", + "es/aperture.d.ts", + "es/append.d.ts", + "es/apply.d.ts", + "es/applySpec.d.ts", + "es/applyTo.d.ts", + "es/ascend.d.ts", + "es/assoc.d.ts", + "es/assocPath.d.ts", + "es/binary.d.ts", + "es/bind.d.ts", + "es/both.d.ts", + "es/call.d.ts", + "es/chain.d.ts", + "es/clamp.d.ts", + "es/clone.d.ts", + "es/comparator.d.ts", + "es/complement.d.ts", + "es/compose.d.ts", + "es/composeK.d.ts", + "es/composeP.d.ts", + "es/concat.d.ts", + "es/cond.d.ts", + "es/construct.d.ts", + "es/constructN.d.ts", + "es/contains.d.ts", + "es/converge.d.ts", + "es/countBy.d.ts", + "es/curry.d.ts", + "es/curryN.d.ts", + "es/dec.d.ts", + "es/defaultTo.d.ts", + "es/descend.d.ts", + "es/difference.d.ts", + "es/differenceWith.d.ts", + "es/dissoc.d.ts", + "es/dissocPath.d.ts", + "es/divide.d.ts", + "es/drop.d.ts", + "es/dropLast.d.ts", + "es/dropLastWhile.d.ts", + "es/dropLastWhile.d.ts", + "es/either.d.ts", + "es/empty.d.ts", + "es/endsWith.d.ts", + "es/eqBy.d.ts", + "es/eqPeop.d.ts", + "es/equals.d.ts", + "es/evolve.d.ts", + "es/F.d.ts", + "es/filter.d.ts", + "es/find.d.ts", + "es/findIndex.d.ts", + "es/findLast.d.ts", + "es/findLastIndex.d.ts", + "es/flatten.d.ts", + "es/flip.d.ts", + "es/forEach.d.ts", + "es/forEachObjIndexed.d.ts", + "es/fromPairs.d.ts", + "es/groupBy.d.ts", + "es/groupWith.d.ts", + "es/gt.d.ts", + "es/gte.d.ts", + "es/has.d.ts", + "es/hasIn.d.ts", + "es/head.d.ts", + "es/identical.d.ts", + "es/identity.d.ts", + "es/ifElse.d.ts", + "es/inc.d.ts", + "es/indexBy.d.ts", + "es/indexOf.d.ts", + "es/init.d.ts", + "es/insert.d.ts", + "es/insertAll.d.ts", + "es/intersection.d.ts", + "es/intersectionWith.d.ts", + "es/intersperse.d.ts", + "es/into.d.ts", + "es/invert.d.ts", + "es/invertObj.d.ts", + "es/invoker.d.ts", + "es/is.d.ts", + "es/isArrayLike.d.ts", + "es/isEmpty.d.ts", + "es/isNaN.d.ts", + "es/isNil.d.ts", + "es/join.d.ts", + "es/juxt.d.ts", + "es/keys.d.ts", + "es/keysIn.d.ts", + "es/last.d.ts", + "es/lastIndexOf.d.ts", + "es/length.d.ts", + "es/lens.d.ts", + "es/lensIndex.d.ts", + "es/lensPath.d.ts", + "es/lift.d.ts", + "es/lt.d.ts", + "es/lte.d.ts", + "es/map.d.ts", + "es/mapAccum.d.ts", + "es/mapAccumRight.d.ts", + "es/mapObjIndexed.d.ts", + "es/match.d.ts", + "es/mathMod.d.ts", + "es/max.d.ts", + "es/maxBy.d.ts", + "es/mean.d.ts", + "es/median.d.ts", + "es/memoize.d.ts", + "es/memoizeWith.d.ts", + "es/merge.d.ts", + "es/mergeAll.d.ts", + "es/mergeDeepLeft.d.ts", + "es/mergeDeepRight.d.ts", + "es/mergeDeepWith.d.ts", + "es/mergeDeepWithKey.d.ts", + "es/mergeWith.d.ts", + "es/mergeWithKey.d.ts", + "es/min.d.ts", + "es/minBy.d.ts", + "es/modulo.d.ts", + "es/multiply.d.ts", + "es/nAry.d.ts", + "es/negate.d.ts", + "es/none.d.ts", + "es/not.d.ts", + "es/nth.d.ts", + "es/nthArg.d.ts", + "es/objOf.d.ts", + "es/of.d.ts", + "es/omit.d.ts", + "es/once.d.ts", + "es/or.d.ts", + "es/over.d.ts", + "es/pair.d.ts", + "es/partial.d.ts", + "es/partialRight.d.ts", + "es/partition.d.ts", + "es/path.d.ts", + "es/pathEq.d.ts", + "es/pathOr.d.ts", + "es/pathSatisfies.d.ts", + "es/pick.d.ts", + "es/pickAll.d.ts", + "es/pickBy.d.ts", + "es/pipe.d.ts", + "es/pipeK.d.ts", + "es/pipeP.d.ts", + "es/pluck.d.ts", + "es/prepend.d.ts", + "es/product.d.ts", + "es/project.d.ts", + "es/prop.d.ts", + "es/propEq.d.ts", + "es/propIs.d.ts", + "es/propOr.d.ts", + "es/props.d.ts", + "es/propSatisfies.d.ts", + "es/range.d.ts", + "es/reduce.d.ts", + "es/reduceBy.d.ts", + "es/reduced.d.ts", + "es/reduceRight.d.ts", + "es/reduceWhile.d.ts", + "es/reject.d.ts", + "es/remove.d.ts", + "es/repeat.d.ts", + "es/replace.d.ts", + "es/reverse.d.ts", + "es/scan.d.ts", + "es/set.d.ts", + "es/slice.d.ts", + "es/sort.d.ts", + "es/sortBy.d.ts", + "es/sortWith.d.ts", + "es/split.d.ts", + "es/splitAt.d.ts", + "es/splitEvery.d.ts", + "es/splitWhen.d.ts", + "es/startsWith.d.ts", + "es/subtract.d.ts", + "es/sum.d.ts", + "es/symmetricDifference.d.ts", + "es/symmetricDifferenceWith.d.ts", + "es/T.d.ts", + "es/tail.d.ts", + "es/take.d.ts", + "es/takeLast.d.ts", + "es/takeLastWhile.d.ts", + "es/takeWhile.d.ts", + "es/tap.d.ts", + "es/test.d.ts", + "es/times.d.ts", + "es/toLower.d.ts", + "es/toPairs.d.ts", + "es/toPairsIn.d.ts", + "es/toString.d.ts", + "es/toUpper.d.ts", + "es/transduce.d.ts", + "es/transpose.d.ts", + "es/traverse.d.ts", + "es/trim.d.ts", + "es/tryCatch.d.ts", + "es/type.d.ts", + "es/unapply.d.ts", + "es/unary.d.ts", + "es/uncurryN.d.ts", + "es/unfold.d.ts", + "es/union.d.ts", + "es/unionWith.d.ts", + "es/uniq.d.ts", + "es/uniqBy.d.ts", + "es/uniqWith.d.ts", + "es/unless.d.ts", + "es/unnest.d.ts", + "es/until.d.ts", + "es/update.d.ts", + "es/useWith.d.ts", + "es/values.d.ts", + "es/valuesIn.d.ts", + "es/view.d.ts", + "es/when.d.ts", + "es/where.d.ts", + "es/whereEq.d.ts", + "es/without.d.ts", + "es/wrap.d.ts", + "es/xprod.d.ts", + "es/zip.d.ts", + "es/zipObj.d.ts", + "es/zipWith.d.ts" ] } \ No newline at end of file From fb7d748e2dec88f8670a05d2ae92dc050306e4b9 Mon Sep 17 00:00:00 2001 From: Alper Kilci Date: Thu, 25 Oct 2018 21:02:01 +0200 Subject: [PATCH 084/106] fix typos --- types/ramda/es/eqPeop.d.ts | 2 -- types/ramda/es/eqProps.d.ts | 2 ++ types/ramda/tsconfig.json | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) delete mode 100644 types/ramda/es/eqPeop.d.ts create mode 100644 types/ramda/es/eqProps.d.ts diff --git a/types/ramda/es/eqPeop.d.ts b/types/ramda/es/eqPeop.d.ts deleted file mode 100644 index 61bea492ae..0000000000 --- a/types/ramda/es/eqPeop.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { eqPeop } from '../index'; -export default eqPeop; diff --git a/types/ramda/es/eqProps.d.ts b/types/ramda/es/eqProps.d.ts new file mode 100644 index 0000000000..e33b163311 --- /dev/null +++ b/types/ramda/es/eqProps.d.ts @@ -0,0 +1,2 @@ +import { eqProps } from '../index'; +export default eqProps; diff --git a/types/ramda/tsconfig.json b/types/ramda/tsconfig.json index ee0c54f470..4d3172d362 100644 --- a/types/ramda/tsconfig.json +++ b/types/ramda/tsconfig.json @@ -75,7 +75,7 @@ "es/empty.d.ts", "es/endsWith.d.ts", "es/eqBy.d.ts", - "es/eqPeop.d.ts", + "es/eqProps.d.ts", "es/equals.d.ts", "es/evolve.d.ts", "es/F.d.ts", From 77102dbc621678d0ccd9c15c99389ac80c2f6025 Mon Sep 17 00:00:00 2001 From: Elizabeth Samuel Date: Thu, 25 Oct 2018 12:25:58 -0700 Subject: [PATCH 085/106] office-js: added mailbox.removeHandlerAsync --- types/office-js/index.d.ts | 43 ++++++++++++++++++++++++++++---------- 1 file changed, 32 insertions(+), 11 deletions(-) diff --git a/types/office-js/index.d.ts b/types/office-js/index.d.ts index 0f2d005973..b1eac4a113 100644 --- a/types/office-js/index.d.ts +++ b/types/office-js/index.d.ts @@ -10081,7 +10081,7 @@ declare namespace Office { * * `removeHandlerAsync(eventType:EventType, handler: any, callback?: (result: AsyncResult) => void): void;` * - * @param eventType The event that should invoke the handler. + * @param eventType The event that should revoke the handler. * @param handler The function to handle the event. The function must accept a single parameter, which is an object literal. * The type property on the parameter will match the eventType parameter passed to removeHandlerAsync. * @param options Optional. An object literal that contains one or more of the following properties. @@ -10103,7 +10103,7 @@ declare namespace Office { * * {@link https://docs.microsoft.com/outlook/add-ins/#extension-points | Applicable Outlook mode}Appointment Organizer * - * @param eventType The event that should invoke the handler. + * @param eventType The event that should revoke the handler. * @param handler The function to handle the event. The function must accept a single parameter, which is an object literal. * The type property on the parameter will match the eventType parameter passed to removeHandlerAsync. * @param callback Optional. When the method completes, the function passed in the callback parameter is called with a single parameter, @@ -11077,7 +11077,7 @@ declare namespace Office { * * `removeHandlerAsync(eventType:EventType, handler: any, callback?: (result: AsyncResult) => void): void;` * - * @param eventType The event that should invoke the handler. + * @param eventType The event that should revoke the handler. * @param handler The function to handle the event. The function must accept a single parameter, which is an object literal. * The type property on the parameter will match the eventType parameter passed to removeHandlerAsync. * @param options Optional. An object literal that contains one or more of the following properties. @@ -11100,7 +11100,7 @@ declare namespace Office { * * {@link https://docs.microsoft.com/outlook/add-ins/#extension-points | Applicable Outlook mode}Appointment Attendee * - * @param eventType The event that should invoke the handler. + * @param eventType The event that should revoke the handler. * @param handler The function to handle the event. The function must accept a single parameter, which is an object literal. * The type property on the parameter will match the eventType parameter passed to removeHandlerAsync. * @param callback Optional. When the method completes, the function passed in the callback parameter is called with a single parameter, @@ -11398,7 +11398,7 @@ declare namespace Office { * * `removeHandlerAsync(eventType: Office.EventType, handler: any, callback?: (result: AsyncResult) => void): void;` * - * @param eventType The event that should invoke the handler. + * @param eventType The event that should revoke the handler. * @param handler The function to handle the event. The function must accept a single parameter, which is an object literal. * The type property on the parameter will match the eventType parameter passed to removeHandlerAsync. * @param options Optional. An object literal that contains one or more of the following properties. @@ -11422,7 +11422,7 @@ declare namespace Office { * * {@link https://docs.microsoft.com/outlook/add-ins/#extension-points | Applicable Outlook mode}Compose or read * - * @param eventType The event that should invoke the handler. + * @param eventType The event that should revoke the handler. * @param handler The function to handle the event. The function must accept a single parameter, which is an object literal. * The type property on the parameter will match the eventType parameter passed to removeHandlerAsync. * @param callback Optional. When the method completes, the function passed in the callback parameter is called with a single parameter, @@ -13396,7 +13396,7 @@ declare namespace Office { * * `removeHandlerAsync(eventType:EventType, handler: any, callback?: (result: AsyncResult) => void): void;` * - * @param eventType The event that should invoke the handler. + * @param eventType The event that should revoke the handler. * @param handler The function to handle the event. The function must accept a single parameter, which is an object literal. * The type property on the parameter will match the eventType parameter passed to removeHandlerAsync. * @param options Optional. An object literal that contains one or more of the following properties. @@ -13419,7 +13419,7 @@ declare namespace Office { * * {@link https://docs.microsoft.com/outlook/add-ins/#extension-points | Applicable Outlook mode}Message Compose * - * @param eventType The event that should invoke the handler. + * @param eventType The event that should revoke the handler. * @param handler The function to handle the event. The function must accept a single parameter, which is an object literal. * The type property on the parameter will match the eventType parameter passed to removeHandlerAsync. * @param callback Optional. When the method completes, the function passed in the callback parameter is called with a single parameter, @@ -14413,7 +14413,7 @@ declare namespace Office { * * `removeHandlerAsync(eventType:EventType, handler: any, callback?: (result: AsyncResult) => void): void;` * - * @param eventType The event that should invoke the handler. + * @param eventType The event that should revoke the handler. * @param handler The function to handle the event. The function must accept a single parameter, which is an object literal. * The type property on the parameter will match the eventType parameter passed to removeHandlerAsync. * @param options Optional. An object literal that contains one or more of the following properties. @@ -14436,7 +14436,7 @@ declare namespace Office { * * {@link https://docs.microsoft.com/outlook/add-ins/#extension-points | Applicable Outlook mode}Message Read * - * @param eventType The event that should invoke the handler. + * @param eventType The event that should revoke the handler. * @param handler The function to handle the event. The function must accept a single parameter, which is an object literal. * The type property on the parameter will match the eventType parameter passed to removeHandlerAsync. * @param callback Optional. When the method completes, the function passed in the callback parameter is called with a single parameter, @@ -14733,7 +14733,7 @@ declare namespace Office { /** * Adds an event handler for a supported event. * - * Currently, the supported event types are `Office.EventType.ItemChanged` and `Office.EventType.OfficeThemeChanged`. + * Currently, the only supported event type is `Office.EventType.ItemChanged`. In Preview, `Office.EventType.OfficeThemeChanged` is also supported. * * [Api set: Mailbox 1.5] * @@ -15139,6 +15139,27 @@ declare namespace Office { * @param userContext Optional. Any state data that is passed to the asynchronous method. */ makeEwsRequestAsync(data: any, callback: (result: AsyncResult) => void, userContext?: any): void; + /** + * Removes an event handler for a supported event. + * + * Currently, the only supported event type is `Office.EventType.ItemChanged`. In Preview, `Office.EventType.OfficeThemeChanged` is also supported. + * + * [Api set: Mailbox 1.5] + * + * @remarks + * + * + * + *
{@link https://docs.microsoft.com/outlook/add-ins/understanding-outlook-add-in-permissions | Minimum permission level}ReadItem
{@link https://docs.microsoft.com/outlook/add-ins/#extension-points | Applicable Outlook mode}Compose or read
+ * + * @param eventType The event that should revoke the handler. + * @param handler The function to handle the event. The function must accept a single parameter, which is an object literal. + * The type property on the parameter will match the eventType parameter passed to addHandlerAsync. + * @param options Optional. Provides an option for preserving context data of any type, unchanged, for use in a callback. + * @param callback Optional. When the method completes, the function passed in the callback parameter is called with a single parameter of + * type Office.AsyncResult. + */ + removeHandlerAsync(eventType: Office.EventType, handler: (type: EventType) => void, options?: Office.AsyncContextOptions, callback?: (result: AsyncResult) => void): void; } /** From 6faec331be6f8b79a1c0816b9128ab622b74a5f1 Mon Sep 17 00:00:00 2001 From: Alper Kilci Date: Thu, 25 Oct 2018 21:49:04 +0200 Subject: [PATCH 086/106] add index.ts to es folder --- types/ramda/es/index.ts | 486 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 486 insertions(+) create mode 100644 types/ramda/es/index.ts diff --git a/types/ramda/es/index.ts b/types/ramda/es/index.ts new file mode 100644 index 0000000000..2a31f598fc --- /dev/null +++ b/types/ramda/es/index.ts @@ -0,0 +1,486 @@ +import add from './add'; +import addIndex from './addIndex'; +import adjust from './adjust'; +import all from './all'; +import allPass from './allPass'; +import always from './always'; +import and from './and'; +import any from './any'; +import anyPass from './anyPass'; +import ap from './ap'; +import aperture from './aperture'; +import append from './append'; +import apply from './apply'; +import applySpec from './applySpec'; +import applyTo from './applyTo'; +import ascend from './ascend'; +import assoc from './assoc'; +import assocPath from './assocPath'; +import binary from './binary'; +import bind from './bind'; +import both from './both'; +import call from './call'; +import chain from './chain'; +import clamp from './clamp'; +import clone from './clone'; +import comparator from './comparator'; +import complement from './complement'; +import compose from './compose'; +import composeK from './composeK'; +import composeP from './composeP'; +import concat from './concat'; +import cond from './cond'; +import construct from './construct'; +import constructN from './constructN'; +import contains from './contains'; +import converge from './converge'; +import countBy from './countBy'; +import curry from './curry'; +import curryN from './curryN'; +import dec from './dec'; +import defaultTo from './defaultTo'; +import descend from './descend'; +import difference from './difference'; +import differenceWith from './differenceWith'; +import dissoc from './dissoc'; +import dissocPath from './dissocPath'; +import divide from './divide'; +import drop from './drop'; +import dropLast from './dropLast'; +import dropLastWhile from './dropLastWhile'; +import dropLastWhile from './dropLastWhile'; +import either from './either'; +import empty from './empty'; +import endsWith from './endsWith'; +import eqBy from './eqBy'; +import eqProps from './eqProps'; +import equals from './equals'; +import evolve from './evolve'; +import F from './F'; +import filter from './filter'; +import find from './find'; +import findIndex from './findIndex'; +import findLast from './findLast'; +import findLastIndex from './findLastIndex'; +import flatten from './flatten'; +import flip from './flip'; +import forEach from './forEach'; +import forEachObjIndexed from './forEachObjIndexed'; +import fromPairs from './fromPairs'; +import groupBy from './groupBy'; +import groupWith from './groupWith'; +import gt from './gt'; +import gte from './gte'; +import has from './has'; +import hasIn from './hasIn'; +import head from './head'; +import identical from './identical'; +import identity from './identity'; +import ifElse from './ifElse'; +import inc from './inc'; +import indexBy from './indexBy'; +import indexOf from './indexOf'; +import init from './init'; +import insert from './insert'; +import insertAll from './insertAll'; +import intersection from './intersection'; +import intersectionWith from './intersectionWith'; +import intersperse from './intersperse'; +import into from './into'; +import invert from './invert'; +import invertObj from './invertObj'; +import invoker from './invoker'; +import is from './is'; +import isArrayLike from './isArrayLike'; +import isEmpty from './isEmpty'; +import isNaN from './isNaN'; +import isNil from './isNil'; +import join from './join'; +import juxt from './juxt'; +import keys from './keys'; +import keysIn from './keysIn'; +import last from './last'; +import lastIndexOf from './lastIndexOf'; +import length from './length'; +import lens from './lens'; +import lensIndex from './lensIndex'; +import lensPath from './lensPath'; +import lift from './lift'; +import lt from './lt'; +import lte from './lte'; +import map from './map'; +import mapAccum from './mapAccum'; +import mapAccumRight from './mapAccumRight'; +import mapObjIndexed from './mapObjIndexed'; +import match from './match'; +import mathMod from './mathMod'; +import max from './max'; +import maxBy from './maxBy'; +import mean from './mean'; +import median from './median'; +import memoize from './memoize'; +import memoizeWith from './memoizeWith'; +import merge from './merge'; +import mergeAll from './mergeAll'; +import mergeDeepLeft from './mergeDeepLeft'; +import mergeDeepRight from './mergeDeepRight'; +import mergeDeepWith from './mergeDeepWith'; +import mergeDeepWithKey from './mergeDeepWithKey'; +import mergeWith from './mergeWith'; +import mergeWithKey from './mergeWithKey'; +import min from './min'; +import minBy from './minBy'; +import modulo from './modulo'; +import multiply from './multiply'; +import nAry from './nAry'; +import negate from './negate'; +import none from './none'; +import not from './not'; +import nth from './nth'; +import nthArg from './nthArg'; +import objOf from './objOf'; +import of from './of'; +import omit from './omit'; +import once from './once'; +import or from './or'; +import over from './over'; +import pair from './pair'; +import partial from './partial'; +import partialRight from './partialRight'; +import partition from './partition'; +import path from './path'; +import pathEq from './pathEq'; +import pathOr from './pathOr'; +import pathSatisfies from './pathSatisfies'; +import pick from './pick'; +import pickAll from './pickAll'; +import pickBy from './pickBy'; +import pipe from './pipe'; +import pipeK from './pipeK'; +import pipeP from './pipeP'; +import pluck from './pluck'; +import prepend from './prepend'; +import product from './product'; +import project from './project'; +import prop from './prop'; +import propEq from './propEq'; +import propIs from './propIs'; +import propOr from './propOr'; +import props from './props'; +import propSatisfies from './propSatisfies'; +import range from './range'; +import reduce from './reduce'; +import reduceBy from './reduceBy'; +import reduced from './reduced'; +import reduceRight from './reduceRight'; +import reduceWhile from './reduceWhile'; +import reject from './reject'; +import remove from './remove'; +import repeat from './repeat'; +import replace from './replace'; +import reverse from './reverse'; +import scan from './scan'; +import set from './set'; +import slice from './slice'; +import sort from './sort'; +import sortBy from './sortBy'; +import sortWith from './sortWith'; +import split from './split'; +import splitAt from './splitAt'; +import splitEvery from './splitEvery'; +import splitWhen from './splitWhen'; +import startsWith from './startsWith'; +import subtract from './subtract'; +import sum from './sum'; +import symmetricDifference from './symmetricDifference'; +import symmetricDifferenceWith from './symmetricDifferenceWith'; +import T from './T'; +import tail from './tail'; +import take from './take'; +import takeLast from './takeLast'; +import takeLastWhile from './takeLastWhile'; +import takeWhile from './takeWhile'; +import tap from './tap'; +import test from './test'; +import times from './times'; +import toLower from './toLower'; +import toPairs from './toPairs'; +import toPairsIn from './toPairsIn'; +import toString from './toString'; +import toUpper from './toUpper'; +import transduce from './transduce'; +import transpose from './transpose'; +import traverse from './traverse'; +import trim from './trim'; +import tryCatch from './tryCatch'; +import type from './type'; +import unapply from './unapply'; +import unary from './unary'; +import uncurryN from './uncurryN'; +import unfold from './unfold'; +import union from './union'; +import unionWith from './unionWith'; +import uniq from './uniq'; +import uniqBy from './uniqBy'; +import uniqWith from './uniqWith'; +import unless from './unless'; +import unnest from './unnest'; +import until from './until'; +import update from './update'; +import useWith from './useWith'; +import values from './values'; +import valuesIn from './valuesIn'; +import view from './view'; +import when from './when'; +import where from './where'; +import whereEq from './whereEq'; +import without from './without'; +import wrap from './wrap'; +import xprod from './xprod'; +import zip from './zip'; +import zipObj from './zipObj'; +import zipWith from './zipWith'; + +export { + add, + addIndex, + adjust, + all, + allPass, + always, + and, + any, + anyPass, + ap, + aperture, + append, + apply, + applySpec, + applyTo, + ascend, + assoc, + assocPath, + binary, + bind, + both, + call, + chain, + clamp, + clone, + comparator, + complement, + compose, + composeK, + composeP, + concat, + cond, + construct, + constructN, + contains, + converge, + countBy, + curry, + curryN, + dec, + defaultTo, + descend, + difference, + differenceWith, + dissoc, + dissocPath, + divide, + drop, + dropLast, + dropLastWhile, + either, + empty, + endsWith, + eqBy, + eqProps, + equals, + evolve, + F, + filter, + find, + findIndex, + findLast, + findLastIndex, + flatten, + flip, + forEach, + forEachObjIndexed, + fromPairs, + groupBy, + groupWith, + gt, + gte, + has, + hasIn, + head, + identical, + identity, + ifElse, + inc, + indexBy, + indexOf, + init, + insert, + insertAll, + intersection, + intersectionWith, + intersperse, + into, + invert, + invertObj, + invoker, + is, + isArrayLike, + isEmpty, + isNaN, + isNil, + join, + juxt, + keys, + keysIn, + last, + lastIndexOf, + length, + lens, + lensIndex, + lensPath, + lift, + lt, + lte, + map, + mapAccum, + mapAccumRight, + mapObjIndexed, + match, + mathMod, + max, + maxBy, + mean, + median, + memoize, + memoizeWith, + merge, + mergeAll, + mergeDeepLeft, + mergeDeepRight, + mergeDeepWith, + mergeDeepWithKey, + mergeWith, + mergeWithKey, + min, + minBy, + modulo, + multiply, + nAry, + negate, + none, + not, + nth, + nthArg, + objOf, + of, + omit, + once, + or, + over, + pair, + partial, + partialRight, + partition, + path, + pathEq, + pathOr, + pathSatisfies, + pick, + pickAll, + pickBy, + pipe, + pipeK, + pipeP, + pluck, + prepend, + product, + project, + prop, + propEq, + propIs, + propOr, + props, + propSatisfies, + range, + reduce, + reduceBy, + reduced, + reduceRight, + reduceWhile, + reject, + remove, + repeat, + replace, + reverse, + scan, + set, + slice, + sort, + sortBy, + sortWith, + split, + splitAt, + splitEvery, + splitWhen, + startsWith, + subtract, + sum, + symmetricDifference, + symmetricDifferenceWith, + T, + tail, + take, + takeLast, + takeLastWhile, + takeWhile, + tap, + test, + times, + toLower, + toPairs, + toPairsIn, + toString, + toUpper, + transduce, + transpose, + traverse, + trim, + tryCatch, + type, + unapply, + unary, + uncurryN, + unfold, + union, + unionWith, + uniq, + uniqBy, + uniqWith, + unless, + unnest, + until, + update, + useWith, + values, + valuesIn, + view, + when, + where, + whereEq, + without, + wrap, + xprod, + zip, + zipObj, + zipWith +}; From 46f999570988bb52fa8ec61eafbe25778b577ddf Mon Sep 17 00:00:00 2001 From: Alper Kilci Date: Thu, 25 Oct 2018 21:50:59 +0200 Subject: [PATCH 087/106] fix typo --- types/ramda/es/index.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/types/ramda/es/index.ts b/types/ramda/es/index.ts index 2a31f598fc..d52588f350 100644 --- a/types/ramda/es/index.ts +++ b/types/ramda/es/index.ts @@ -48,7 +48,6 @@ import divide from './divide'; import drop from './drop'; import dropLast from './dropLast'; import dropLastWhile from './dropLastWhile'; -import dropLastWhile from './dropLastWhile'; import either from './either'; import empty from './empty'; import endsWith from './endsWith'; From ad6678c420425b51101f479c2efbf3470787a1a7 Mon Sep 17 00:00:00 2001 From: Alper Kilci Date: Thu, 25 Oct 2018 22:13:14 +0200 Subject: [PATCH 088/106] add index.ts --- types/ramda/tsconfig.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/types/ramda/tsconfig.json b/types/ramda/tsconfig.json index 4d3172d362..07c95e7f41 100644 --- a/types/ramda/tsconfig.json +++ b/types/ramda/tsconfig.json @@ -261,6 +261,7 @@ "es/xprod.d.ts", "es/zip.d.ts", "es/zipObj.d.ts", - "es/zipWith.d.ts" + "es/zipWith.d.ts", + "es/index.ts" ] } \ No newline at end of file From 50e5c6662798276be1f854d984b6d177ff859e72 Mon Sep 17 00:00:00 2001 From: Alper Kilci Date: Thu, 25 Oct 2018 23:21:54 +0200 Subject: [PATCH 089/106] add files inside /es folder as reference --- types/ramda/es/index.ts | 485 -------------------------------------- types/ramda/index.d.ts | 243 +++++++++++++++++++ types/ramda/tsconfig.json | 245 +------------------ 3 files changed, 244 insertions(+), 729 deletions(-) delete mode 100644 types/ramda/es/index.ts diff --git a/types/ramda/es/index.ts b/types/ramda/es/index.ts deleted file mode 100644 index d52588f350..0000000000 --- a/types/ramda/es/index.ts +++ /dev/null @@ -1,485 +0,0 @@ -import add from './add'; -import addIndex from './addIndex'; -import adjust from './adjust'; -import all from './all'; -import allPass from './allPass'; -import always from './always'; -import and from './and'; -import any from './any'; -import anyPass from './anyPass'; -import ap from './ap'; -import aperture from './aperture'; -import append from './append'; -import apply from './apply'; -import applySpec from './applySpec'; -import applyTo from './applyTo'; -import ascend from './ascend'; -import assoc from './assoc'; -import assocPath from './assocPath'; -import binary from './binary'; -import bind from './bind'; -import both from './both'; -import call from './call'; -import chain from './chain'; -import clamp from './clamp'; -import clone from './clone'; -import comparator from './comparator'; -import complement from './complement'; -import compose from './compose'; -import composeK from './composeK'; -import composeP from './composeP'; -import concat from './concat'; -import cond from './cond'; -import construct from './construct'; -import constructN from './constructN'; -import contains from './contains'; -import converge from './converge'; -import countBy from './countBy'; -import curry from './curry'; -import curryN from './curryN'; -import dec from './dec'; -import defaultTo from './defaultTo'; -import descend from './descend'; -import difference from './difference'; -import differenceWith from './differenceWith'; -import dissoc from './dissoc'; -import dissocPath from './dissocPath'; -import divide from './divide'; -import drop from './drop'; -import dropLast from './dropLast'; -import dropLastWhile from './dropLastWhile'; -import either from './either'; -import empty from './empty'; -import endsWith from './endsWith'; -import eqBy from './eqBy'; -import eqProps from './eqProps'; -import equals from './equals'; -import evolve from './evolve'; -import F from './F'; -import filter from './filter'; -import find from './find'; -import findIndex from './findIndex'; -import findLast from './findLast'; -import findLastIndex from './findLastIndex'; -import flatten from './flatten'; -import flip from './flip'; -import forEach from './forEach'; -import forEachObjIndexed from './forEachObjIndexed'; -import fromPairs from './fromPairs'; -import groupBy from './groupBy'; -import groupWith from './groupWith'; -import gt from './gt'; -import gte from './gte'; -import has from './has'; -import hasIn from './hasIn'; -import head from './head'; -import identical from './identical'; -import identity from './identity'; -import ifElse from './ifElse'; -import inc from './inc'; -import indexBy from './indexBy'; -import indexOf from './indexOf'; -import init from './init'; -import insert from './insert'; -import insertAll from './insertAll'; -import intersection from './intersection'; -import intersectionWith from './intersectionWith'; -import intersperse from './intersperse'; -import into from './into'; -import invert from './invert'; -import invertObj from './invertObj'; -import invoker from './invoker'; -import is from './is'; -import isArrayLike from './isArrayLike'; -import isEmpty from './isEmpty'; -import isNaN from './isNaN'; -import isNil from './isNil'; -import join from './join'; -import juxt from './juxt'; -import keys from './keys'; -import keysIn from './keysIn'; -import last from './last'; -import lastIndexOf from './lastIndexOf'; -import length from './length'; -import lens from './lens'; -import lensIndex from './lensIndex'; -import lensPath from './lensPath'; -import lift from './lift'; -import lt from './lt'; -import lte from './lte'; -import map from './map'; -import mapAccum from './mapAccum'; -import mapAccumRight from './mapAccumRight'; -import mapObjIndexed from './mapObjIndexed'; -import match from './match'; -import mathMod from './mathMod'; -import max from './max'; -import maxBy from './maxBy'; -import mean from './mean'; -import median from './median'; -import memoize from './memoize'; -import memoizeWith from './memoizeWith'; -import merge from './merge'; -import mergeAll from './mergeAll'; -import mergeDeepLeft from './mergeDeepLeft'; -import mergeDeepRight from './mergeDeepRight'; -import mergeDeepWith from './mergeDeepWith'; -import mergeDeepWithKey from './mergeDeepWithKey'; -import mergeWith from './mergeWith'; -import mergeWithKey from './mergeWithKey'; -import min from './min'; -import minBy from './minBy'; -import modulo from './modulo'; -import multiply from './multiply'; -import nAry from './nAry'; -import negate from './negate'; -import none from './none'; -import not from './not'; -import nth from './nth'; -import nthArg from './nthArg'; -import objOf from './objOf'; -import of from './of'; -import omit from './omit'; -import once from './once'; -import or from './or'; -import over from './over'; -import pair from './pair'; -import partial from './partial'; -import partialRight from './partialRight'; -import partition from './partition'; -import path from './path'; -import pathEq from './pathEq'; -import pathOr from './pathOr'; -import pathSatisfies from './pathSatisfies'; -import pick from './pick'; -import pickAll from './pickAll'; -import pickBy from './pickBy'; -import pipe from './pipe'; -import pipeK from './pipeK'; -import pipeP from './pipeP'; -import pluck from './pluck'; -import prepend from './prepend'; -import product from './product'; -import project from './project'; -import prop from './prop'; -import propEq from './propEq'; -import propIs from './propIs'; -import propOr from './propOr'; -import props from './props'; -import propSatisfies from './propSatisfies'; -import range from './range'; -import reduce from './reduce'; -import reduceBy from './reduceBy'; -import reduced from './reduced'; -import reduceRight from './reduceRight'; -import reduceWhile from './reduceWhile'; -import reject from './reject'; -import remove from './remove'; -import repeat from './repeat'; -import replace from './replace'; -import reverse from './reverse'; -import scan from './scan'; -import set from './set'; -import slice from './slice'; -import sort from './sort'; -import sortBy from './sortBy'; -import sortWith from './sortWith'; -import split from './split'; -import splitAt from './splitAt'; -import splitEvery from './splitEvery'; -import splitWhen from './splitWhen'; -import startsWith from './startsWith'; -import subtract from './subtract'; -import sum from './sum'; -import symmetricDifference from './symmetricDifference'; -import symmetricDifferenceWith from './symmetricDifferenceWith'; -import T from './T'; -import tail from './tail'; -import take from './take'; -import takeLast from './takeLast'; -import takeLastWhile from './takeLastWhile'; -import takeWhile from './takeWhile'; -import tap from './tap'; -import test from './test'; -import times from './times'; -import toLower from './toLower'; -import toPairs from './toPairs'; -import toPairsIn from './toPairsIn'; -import toString from './toString'; -import toUpper from './toUpper'; -import transduce from './transduce'; -import transpose from './transpose'; -import traverse from './traverse'; -import trim from './trim'; -import tryCatch from './tryCatch'; -import type from './type'; -import unapply from './unapply'; -import unary from './unary'; -import uncurryN from './uncurryN'; -import unfold from './unfold'; -import union from './union'; -import unionWith from './unionWith'; -import uniq from './uniq'; -import uniqBy from './uniqBy'; -import uniqWith from './uniqWith'; -import unless from './unless'; -import unnest from './unnest'; -import until from './until'; -import update from './update'; -import useWith from './useWith'; -import values from './values'; -import valuesIn from './valuesIn'; -import view from './view'; -import when from './when'; -import where from './where'; -import whereEq from './whereEq'; -import without from './without'; -import wrap from './wrap'; -import xprod from './xprod'; -import zip from './zip'; -import zipObj from './zipObj'; -import zipWith from './zipWith'; - -export { - add, - addIndex, - adjust, - all, - allPass, - always, - and, - any, - anyPass, - ap, - aperture, - append, - apply, - applySpec, - applyTo, - ascend, - assoc, - assocPath, - binary, - bind, - both, - call, - chain, - clamp, - clone, - comparator, - complement, - compose, - composeK, - composeP, - concat, - cond, - construct, - constructN, - contains, - converge, - countBy, - curry, - curryN, - dec, - defaultTo, - descend, - difference, - differenceWith, - dissoc, - dissocPath, - divide, - drop, - dropLast, - dropLastWhile, - either, - empty, - endsWith, - eqBy, - eqProps, - equals, - evolve, - F, - filter, - find, - findIndex, - findLast, - findLastIndex, - flatten, - flip, - forEach, - forEachObjIndexed, - fromPairs, - groupBy, - groupWith, - gt, - gte, - has, - hasIn, - head, - identical, - identity, - ifElse, - inc, - indexBy, - indexOf, - init, - insert, - insertAll, - intersection, - intersectionWith, - intersperse, - into, - invert, - invertObj, - invoker, - is, - isArrayLike, - isEmpty, - isNaN, - isNil, - join, - juxt, - keys, - keysIn, - last, - lastIndexOf, - length, - lens, - lensIndex, - lensPath, - lift, - lt, - lte, - map, - mapAccum, - mapAccumRight, - mapObjIndexed, - match, - mathMod, - max, - maxBy, - mean, - median, - memoize, - memoizeWith, - merge, - mergeAll, - mergeDeepLeft, - mergeDeepRight, - mergeDeepWith, - mergeDeepWithKey, - mergeWith, - mergeWithKey, - min, - minBy, - modulo, - multiply, - nAry, - negate, - none, - not, - nth, - nthArg, - objOf, - of, - omit, - once, - or, - over, - pair, - partial, - partialRight, - partition, - path, - pathEq, - pathOr, - pathSatisfies, - pick, - pickAll, - pickBy, - pipe, - pipeK, - pipeP, - pluck, - prepend, - product, - project, - prop, - propEq, - propIs, - propOr, - props, - propSatisfies, - range, - reduce, - reduceBy, - reduced, - reduceRight, - reduceWhile, - reject, - remove, - repeat, - replace, - reverse, - scan, - set, - slice, - sort, - sortBy, - sortWith, - split, - splitAt, - splitEvery, - splitWhen, - startsWith, - subtract, - sum, - symmetricDifference, - symmetricDifferenceWith, - T, - tail, - take, - takeLast, - takeLastWhile, - takeWhile, - tap, - test, - times, - toLower, - toPairs, - toPairsIn, - toString, - toUpper, - transduce, - transpose, - traverse, - trim, - tryCatch, - type, - unapply, - unary, - uncurryN, - unfold, - union, - unionWith, - uniq, - uniqBy, - uniqWith, - unless, - unnest, - until, - update, - useWith, - values, - valuesIn, - view, - when, - where, - whereEq, - without, - wrap, - xprod, - zip, - zipObj, - zipWith -}; diff --git a/types/ramda/index.d.ts b/types/ramda/index.d.ts index 9623aa8865..9375c3107b 100644 --- a/types/ramda/index.d.ts +++ b/types/ramda/index.d.ts @@ -26,6 +26,249 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.8 +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// + declare let R: R.Static; declare namespace R { diff --git a/types/ramda/tsconfig.json b/types/ramda/tsconfig.json index 07c95e7f41..4de4f10d8f 100644 --- a/types/ramda/tsconfig.json +++ b/types/ramda/tsconfig.json @@ -19,249 +19,6 @@ }, "files": [ "index.d.ts", - "ramda-tests.ts", - "es/add.d.ts", - "es/addIndex.d.ts", - "es/adjust.d.ts", - "es/all.d.ts", - "es/allPass.d.ts", - "es/always.d.ts", - "es/and.d.ts", - "es/any.d.ts", - "es/anyPass.d.ts", - "es/ap.d.ts", - "es/aperture.d.ts", - "es/append.d.ts", - "es/apply.d.ts", - "es/applySpec.d.ts", - "es/applyTo.d.ts", - "es/ascend.d.ts", - "es/assoc.d.ts", - "es/assocPath.d.ts", - "es/binary.d.ts", - "es/bind.d.ts", - "es/both.d.ts", - "es/call.d.ts", - "es/chain.d.ts", - "es/clamp.d.ts", - "es/clone.d.ts", - "es/comparator.d.ts", - "es/complement.d.ts", - "es/compose.d.ts", - "es/composeK.d.ts", - "es/composeP.d.ts", - "es/concat.d.ts", - "es/cond.d.ts", - "es/construct.d.ts", - "es/constructN.d.ts", - "es/contains.d.ts", - "es/converge.d.ts", - "es/countBy.d.ts", - "es/curry.d.ts", - "es/curryN.d.ts", - "es/dec.d.ts", - "es/defaultTo.d.ts", - "es/descend.d.ts", - "es/difference.d.ts", - "es/differenceWith.d.ts", - "es/dissoc.d.ts", - "es/dissocPath.d.ts", - "es/divide.d.ts", - "es/drop.d.ts", - "es/dropLast.d.ts", - "es/dropLastWhile.d.ts", - "es/dropLastWhile.d.ts", - "es/either.d.ts", - "es/empty.d.ts", - "es/endsWith.d.ts", - "es/eqBy.d.ts", - "es/eqProps.d.ts", - "es/equals.d.ts", - "es/evolve.d.ts", - "es/F.d.ts", - "es/filter.d.ts", - "es/find.d.ts", - "es/findIndex.d.ts", - "es/findLast.d.ts", - "es/findLastIndex.d.ts", - "es/flatten.d.ts", - "es/flip.d.ts", - "es/forEach.d.ts", - "es/forEachObjIndexed.d.ts", - "es/fromPairs.d.ts", - "es/groupBy.d.ts", - "es/groupWith.d.ts", - "es/gt.d.ts", - "es/gte.d.ts", - "es/has.d.ts", - "es/hasIn.d.ts", - "es/head.d.ts", - "es/identical.d.ts", - "es/identity.d.ts", - "es/ifElse.d.ts", - "es/inc.d.ts", - "es/indexBy.d.ts", - "es/indexOf.d.ts", - "es/init.d.ts", - "es/insert.d.ts", - "es/insertAll.d.ts", - "es/intersection.d.ts", - "es/intersectionWith.d.ts", - "es/intersperse.d.ts", - "es/into.d.ts", - "es/invert.d.ts", - "es/invertObj.d.ts", - "es/invoker.d.ts", - "es/is.d.ts", - "es/isArrayLike.d.ts", - "es/isEmpty.d.ts", - "es/isNaN.d.ts", - "es/isNil.d.ts", - "es/join.d.ts", - "es/juxt.d.ts", - "es/keys.d.ts", - "es/keysIn.d.ts", - "es/last.d.ts", - "es/lastIndexOf.d.ts", - "es/length.d.ts", - "es/lens.d.ts", - "es/lensIndex.d.ts", - "es/lensPath.d.ts", - "es/lift.d.ts", - "es/lt.d.ts", - "es/lte.d.ts", - "es/map.d.ts", - "es/mapAccum.d.ts", - "es/mapAccumRight.d.ts", - "es/mapObjIndexed.d.ts", - "es/match.d.ts", - "es/mathMod.d.ts", - "es/max.d.ts", - "es/maxBy.d.ts", - "es/mean.d.ts", - "es/median.d.ts", - "es/memoize.d.ts", - "es/memoizeWith.d.ts", - "es/merge.d.ts", - "es/mergeAll.d.ts", - "es/mergeDeepLeft.d.ts", - "es/mergeDeepRight.d.ts", - "es/mergeDeepWith.d.ts", - "es/mergeDeepWithKey.d.ts", - "es/mergeWith.d.ts", - "es/mergeWithKey.d.ts", - "es/min.d.ts", - "es/minBy.d.ts", - "es/modulo.d.ts", - "es/multiply.d.ts", - "es/nAry.d.ts", - "es/negate.d.ts", - "es/none.d.ts", - "es/not.d.ts", - "es/nth.d.ts", - "es/nthArg.d.ts", - "es/objOf.d.ts", - "es/of.d.ts", - "es/omit.d.ts", - "es/once.d.ts", - "es/or.d.ts", - "es/over.d.ts", - "es/pair.d.ts", - "es/partial.d.ts", - "es/partialRight.d.ts", - "es/partition.d.ts", - "es/path.d.ts", - "es/pathEq.d.ts", - "es/pathOr.d.ts", - "es/pathSatisfies.d.ts", - "es/pick.d.ts", - "es/pickAll.d.ts", - "es/pickBy.d.ts", - "es/pipe.d.ts", - "es/pipeK.d.ts", - "es/pipeP.d.ts", - "es/pluck.d.ts", - "es/prepend.d.ts", - "es/product.d.ts", - "es/project.d.ts", - "es/prop.d.ts", - "es/propEq.d.ts", - "es/propIs.d.ts", - "es/propOr.d.ts", - "es/props.d.ts", - "es/propSatisfies.d.ts", - "es/range.d.ts", - "es/reduce.d.ts", - "es/reduceBy.d.ts", - "es/reduced.d.ts", - "es/reduceRight.d.ts", - "es/reduceWhile.d.ts", - "es/reject.d.ts", - "es/remove.d.ts", - "es/repeat.d.ts", - "es/replace.d.ts", - "es/reverse.d.ts", - "es/scan.d.ts", - "es/set.d.ts", - "es/slice.d.ts", - "es/sort.d.ts", - "es/sortBy.d.ts", - "es/sortWith.d.ts", - "es/split.d.ts", - "es/splitAt.d.ts", - "es/splitEvery.d.ts", - "es/splitWhen.d.ts", - "es/startsWith.d.ts", - "es/subtract.d.ts", - "es/sum.d.ts", - "es/symmetricDifference.d.ts", - "es/symmetricDifferenceWith.d.ts", - "es/T.d.ts", - "es/tail.d.ts", - "es/take.d.ts", - "es/takeLast.d.ts", - "es/takeLastWhile.d.ts", - "es/takeWhile.d.ts", - "es/tap.d.ts", - "es/test.d.ts", - "es/times.d.ts", - "es/toLower.d.ts", - "es/toPairs.d.ts", - "es/toPairsIn.d.ts", - "es/toString.d.ts", - "es/toUpper.d.ts", - "es/transduce.d.ts", - "es/transpose.d.ts", - "es/traverse.d.ts", - "es/trim.d.ts", - "es/tryCatch.d.ts", - "es/type.d.ts", - "es/unapply.d.ts", - "es/unary.d.ts", - "es/uncurryN.d.ts", - "es/unfold.d.ts", - "es/union.d.ts", - "es/unionWith.d.ts", - "es/uniq.d.ts", - "es/uniqBy.d.ts", - "es/uniqWith.d.ts", - "es/unless.d.ts", - "es/unnest.d.ts", - "es/until.d.ts", - "es/update.d.ts", - "es/useWith.d.ts", - "es/values.d.ts", - "es/valuesIn.d.ts", - "es/view.d.ts", - "es/when.d.ts", - "es/where.d.ts", - "es/whereEq.d.ts", - "es/without.d.ts", - "es/wrap.d.ts", - "es/xprod.d.ts", - "es/zip.d.ts", - "es/zipObj.d.ts", - "es/zipWith.d.ts", - "es/index.ts" + "ramda-tests.ts" ] } \ No newline at end of file From e2eb3285b8c65fe1807da3374eaea5a2b35536c7 Mon Sep 17 00:00:00 2001 From: Jonathan Viney Date: Fri, 26 Oct 2018 11:15:14 +1300 Subject: [PATCH 090/106] [ember-data] DS.Store.unloadAll() modelName argument is optional. --- types/ember-data/index.d.ts | 2 +- types/ember-data/test/store.ts | 3 +++ types/ember-data/v2/index.d.ts | 2 +- types/ember-data/v2/test/store.ts | 3 +++ 4 files changed, 8 insertions(+), 2 deletions(-) diff --git a/types/ember-data/index.d.ts b/types/ember-data/index.d.ts index dc8edec397..601a45faf3 100644 --- a/types/ember-data/index.d.ts +++ b/types/ember-data/index.d.ts @@ -1132,7 +1132,7 @@ export namespace DS { * This method unloads all records in the store. * It schedules unloading to happen during the next run loop. */ - unloadAll(modelName: K): void; + unloadAll(modelName?: K): void; /** * DEPRECATED: * This method has been deprecated and is an alias for store.hasRecordForId, which should diff --git a/types/ember-data/test/store.ts b/types/ember-data/test/store.ts index d3641a6c68..9c1194c711 100644 --- a/types/ember-data/test/store.ts +++ b/types/ember-data/test/store.ts @@ -205,3 +205,6 @@ declare module 'ember-data/types/registries/serializer' { assertType(store.adapterFor('user')); assertType(store.serializerFor('user')); + +store.unloadAll(); +store.unloadAll('user'); diff --git a/types/ember-data/v2/index.d.ts b/types/ember-data/v2/index.d.ts index dccf63e890..3afd091ffe 100644 --- a/types/ember-data/v2/index.d.ts +++ b/types/ember-data/v2/index.d.ts @@ -1094,7 +1094,7 @@ export namespace DS { * This method unloads all records in the store. * It schedules unloading to happen during the next run loop. */ - unloadAll(modelName: K): void; + unloadAll(modelName?: K): void; /** * DEPRECATED: * This method has been deprecated and is an alias for store.hasRecordForId, which should diff --git a/types/ember-data/v2/test/store.ts b/types/ember-data/v2/test/store.ts index f512afd8a7..2584e7bdf3 100644 --- a/types/ember-data/v2/test/store.ts +++ b/types/ember-data/v2/test/store.ts @@ -203,3 +203,6 @@ declare module 'ember-data' { assertType(store.adapterFor('user')); assertType(store.serializerFor('user')); + +store.unloadAll(); +store.unloadAll('user'); From 9d5618e28228fb095edcab48d0afc1689c183f5a Mon Sep 17 00:00:00 2001 From: micahriggan Date: Thu, 25 Oct 2018 21:32:39 -0400 Subject: [PATCH 091/106] Constructor accepts 'hex' as a base Currently the typings say base can only be a number https://github.com/indutny/bn.js/blob/24cc2dd51b58694088a637a314689f61c9ba65a4/lib/bn.js#L85 --- types/bn.js/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/bn.js/index.d.ts b/types/bn.js/index.d.ts index 8c0bc8dd5f..db4c9f8b9e 100644 --- a/types/bn.js/index.d.ts +++ b/types/bn.js/index.d.ts @@ -45,7 +45,7 @@ interface ReductionContext { declare class BN { constructor( number: number | string | number[] | Buffer | BN, - base?: number, + base?: number | 'hex', endian?: Endianness ); constructor( From 17133af0561a8ccc068b415572bec3649a182f90 Mon Sep 17 00:00:00 2001 From: Igor Oleinikov Date: Thu, 25 Oct 2018 22:53:23 -0700 Subject: [PATCH 092/106] [styled-components] Fix #30042 - allow `attrs`'s `A` type parameter to accept exceed properties --- types/styled-components/index.d.ts | 2 +- types/styled-components/test/index.tsx | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/types/styled-components/index.d.ts b/types/styled-components/index.d.ts index c6210edf91..023274bf2a 100644 --- a/types/styled-components/index.d.ts +++ b/types/styled-components/index.d.ts @@ -82,7 +82,7 @@ export interface ThemedStyledFunction { strings: TemplateStringsArray, ...interpolations: Array>> ): StyledComponentClass

; - attrs = {}>( + attrs & { [others: string]: unknown; } = {}>( attrs: Attrs

, ): ThemedStyledFunction, T, DiffBetween>; } diff --git a/types/styled-components/test/index.tsx b/types/styled-components/test/index.tsx index 8adfb03307..7f2197389f 100644 --- a/types/styled-components/test/index.tsx +++ b/types/styled-components/test/index.tsx @@ -312,6 +312,12 @@ const AttrsInput = styled.input.attrs({ padding: ${props => props.padding}; `; +// https://github.com/DefinitelyTyped/DefinitelyTyped/issues/30042 +const AttrsWithOnlyNewProps = styled.h2.attrs({ as: 'h1' })` + color: ${props => props.as === 'h1' ? 'red' : 'blue'}; + font-size: ${props => props.as === 'h1' ? 2 : 1}; +`; + /** * component type */ From b383c0c873f715cbd36a8a4b218cc705964d0cc3 Mon Sep 17 00:00:00 2001 From: Igor Oleinikov Date: Thu, 25 Oct 2018 23:09:09 -0700 Subject: [PATCH 093/106] fix TS 2.9 error --- types/styled-components/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/styled-components/index.d.ts b/types/styled-components/index.d.ts index 023274bf2a..f436b8d490 100644 --- a/types/styled-components/index.d.ts +++ b/types/styled-components/index.d.ts @@ -82,7 +82,7 @@ export interface ThemedStyledFunction { strings: TemplateStringsArray, ...interpolations: Array>> ): StyledComponentClass

; - attrs & { [others: string]: unknown; } = {}>( + attrs & { [others: string]: any; } = {}>( attrs: Attrs

, ): ThemedStyledFunction, T, DiffBetween>; } From ecb5be476fee7045b417ba1589f38dc054b32182 Mon Sep 17 00:00:00 2001 From: Antoine Boisadam Date: Fri, 26 Oct 2018 09:20:39 +0200 Subject: [PATCH 094/106] Update Sequelize types --- types/sequelize/index.d.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/types/sequelize/index.d.ts b/types/sequelize/index.d.ts index 0625a6406a..5a57df48e3 100644 --- a/types/sequelize/index.d.ts +++ b/types/sequelize/index.d.ts @@ -14,6 +14,7 @@ // Todd Bealmear // Nick Schultz // Thomas Breleur +// Antoine Boisadam // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.8 @@ -5698,6 +5699,13 @@ declare namespace sequelize { * Pass object to limit set of aliased operators or false to disable completely. */ operatorsAliases?: boolean | OperatorsAliases; + + /** + * Set to `true` to enable connecting over SSL. + * + * Defaults to false + */ + ssl?: boolean; } /** From fac752e296682d22f6a9e0f260318704c856827e Mon Sep 17 00:00:00 2001 From: Antoine Boisadam Date: Fri, 26 Oct 2018 11:11:05 +0200 Subject: [PATCH 095/106] Change default value comment --- 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 5a57df48e3..5b7428a017 100644 --- a/types/sequelize/index.d.ts +++ b/types/sequelize/index.d.ts @@ -5703,7 +5703,7 @@ declare namespace sequelize { /** * Set to `true` to enable connecting over SSL. * - * Defaults to false + * Defaults to undefined */ ssl?: boolean; } From 92de0a42a3f095bdb5843fa26dbc590b2372bd82 Mon Sep 17 00:00:00 2001 From: Sebastian Greaves Date: Fri, 26 Oct 2018 11:35:33 +0100 Subject: [PATCH 096/106] Correct type definition for KeyUtils - KeyUtils is a namespace, not an interface --- types/slate/index.d.ts | 10 +++++----- types/slate/slate-tests.ts | 6 +++++- 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/types/slate/index.d.ts b/types/slate/index.d.ts index 7c9a41efa8..8f80ba4615 100644 --- a/types/slate/index.d.ts +++ b/types/slate/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for slate 0.42 +// Type definitions for slate 0.43 // Project: https://github.com/ianstormtaylor/slate // Definitions by: Andy Kent // Jamie Talbot @@ -1478,10 +1478,10 @@ export class SlateError extends Error { [key: string]: any; } -export interface KeyUtils { - create(key: string): string; - setGenerator(func: () => any): void; - resetGenerator(): void; +export namespace KeyUtils { + function create(key?: string): string; + function setGenerator(func: () => any): void; + function resetGenerator(): void; } export type useMemoization = () => void; diff --git a/types/slate/slate-tests.ts b/types/slate/slate-tests.ts index 8e843e2d3d..7992fc0630 100644 --- a/types/slate/slate-tests.ts +++ b/types/slate/slate-tests.ts @@ -1,4 +1,4 @@ -import { Value, Data, BlockJSON, Document, Editor, Change } from "slate"; +import { Value, Data, BlockJSON, Document, Editor, Change, KeyUtils } from "slate"; const data = Data.create({ foo: "bar " }); const value = Value.create({ data }); @@ -58,3 +58,7 @@ editor.command("testCommand"); editor.query("testQuery"); editor.run("testCommand"); editor.event("mouseDown", new Event("mouseDown")); + +KeyUtils.setGenerator(() => 'Test'); +KeyUtils.create(); +KeyUtils.resetGenerator(); From 6fc4ac0a8dd8624e874a5945139337f662a7af63 Mon Sep 17 00:00:00 2001 From: Sebastian Greaves Date: Fri, 26 Oct 2018 11:54:28 +0100 Subject: [PATCH 097/106] Correct string quote type --- types/slate/slate-tests.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/slate/slate-tests.ts b/types/slate/slate-tests.ts index 7992fc0630..7eb81633bf 100644 --- a/types/slate/slate-tests.ts +++ b/types/slate/slate-tests.ts @@ -59,6 +59,6 @@ editor.query("testQuery"); editor.run("testCommand"); editor.event("mouseDown", new Event("mouseDown")); -KeyUtils.setGenerator(() => 'Test'); +KeyUtils.setGenerator(() => "Test"); KeyUtils.create(); KeyUtils.resetGenerator(); From 5076fdc812e402da9c5346751344a3bcd0a45260 Mon Sep 17 00:00:00 2001 From: Fabian Meul Date: Fri, 26 Oct 2018 13:57:35 +0200 Subject: [PATCH 098/106] fix: Updated react-native-calendars typings MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Added “selected” as a Calendar Prop * Added support for theming by themeId. --- types/react-native-calendars/index.d.ts | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/types/react-native-calendars/index.d.ts b/types/react-native-calendars/index.d.ts index 647e64c0f2..20adae432a 100644 --- a/types/react-native-calendars/index.d.ts +++ b/types/react-native-calendars/index.d.ts @@ -2,6 +2,7 @@ // Project: https://github.com/wix/react-native-calendars#readme // Definitions by: Tyler Zhang // David Noreña +// Fabian Meul // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.8 @@ -23,6 +24,10 @@ export interface CalendarDot { selectedDotColor?: string; } +export interface CalendarThemeIdStyle { + [themeId: string]: ViewStyle; +} + export interface CalendarTheme { arrowColor?: string; backgroundColor?: string; @@ -43,6 +48,17 @@ export interface CalendarTheme { textMonthFontSize?: number; textSectionTitleColor?: string; todayTextColor?: string; + + // Theme ID's to style for + "stylesheet.calendar.header"?: CalendarThemeIdStyle; + "stylesheet.calendar.main"?: CalendarThemeIdStyle; + "stylesheet.calendar-list.main"?: CalendarThemeIdStyle; + "stylesheet.agenda.main"?: CalendarThemeIdStyle; + "stylesheet.agenda.list"?: CalendarThemeIdStyle; + "stylesheet.day.basic"?: CalendarThemeIdStyle; + "stylesheet.day.single"?: CalendarThemeIdStyle; + "stylesheet.day.multiDot"?: CalendarThemeIdStyle; + "stylesheet.day.period"?: CalendarThemeIdStyle; } export type DateCallbackHandler = (date: DateObject) => void; @@ -319,6 +335,11 @@ export interface CalendarListBaseProps extends CalendarBaseProps { * Enable or disable vertical scroll indicator. Default = false */ showScrollIndicator?: boolean; + + /** + * Initially selected day + */ + selected?: string; } export class CalendarList extends React.Component { } From 08260003ab3d066acac048ab7db8e79c505342d2 Mon Sep 17 00:00:00 2001 From: Haroen Viaene Date: Fri, 26 Oct 2018 13:58:00 +0200 Subject: [PATCH 099/106] [algoliasearch]: fix typing for browse & browseAll --- types/algoliasearch/algoliasearch-tests.ts | 28 +++++++++++++++++++++ types/algoliasearch/index.d.ts | 29 +++++++++++++++++++--- types/algoliasearch/lite/index.d.ts | 21 +++++++++++++--- 3 files changed, 72 insertions(+), 6 deletions(-) diff --git a/types/algoliasearch/algoliasearch-tests.ts b/types/algoliasearch/algoliasearch-tests.ts index b148e84599..a43a8a3b79 100644 --- a/types/algoliasearch/algoliasearch-tests.ts +++ b/types/algoliasearch/algoliasearch-tests.ts @@ -177,3 +177,31 @@ client.copyIndex('from', 'to', ()=> {}) // with scope client.copyIndex('from', 'to', ['settings']).then(()=>{}) client.copyIndex('from', 'to', ['synonyms', 'rules'], ()=> {}) + +// Browsing +const browser = index.browseAll(); +index.browseAll('query'); +index.browseAll('', { + filters: 'dog', +}); + +let hits: Object[] = []; + +browser.on('result', function onResult(content) { + hits = hits.concat(content.hits); +}); + +browser.on('end', function onEnd() { + const _message = `We got ${hits.length} hits` +}); + +browser.on('error', function onError(err) { + throw err; +}); + +browser.stop() + +index.browse("", { + advancedSyntax: false, + attributesToRetrieve: ['dogs'] +}) diff --git a/types/algoliasearch/index.d.ts b/types/algoliasearch/index.d.ts index a0bb0e0e45..34124fa111 100644 --- a/types/algoliasearch/index.d.ts +++ b/types/algoliasearch/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for algoliasearch-client-js 3.27.0 +// Type definitions for algoliasearch-client-js 3.30.0 // Project: https://github.com/algolia/algoliasearch-client-js // Definitions by: Baptiste Coquelle // Haroen Viaene @@ -7,6 +7,8 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +type Omit = Pick> + declare namespace algoliasearch { /** * Interface for the algolia client object @@ -611,6 +613,11 @@ declare namespace algoliasearch { options: SearchForFacetValues.Parameters, cb: (err: Error, res: SearchForFacetValues.Response) => void ): void; + /** + * Browse an index + * https://github.com/algolia/algoliasearch-client-js#backup--export-an-index---browse + */ + browse(query: string, parameters: BrowseParameters, cb: (err: Error, res: BrowseResponse) => void): void; /** * Browse an index * https://github.com/algolia/algoliasearch-client-js#backup--export-an-index---browse @@ -620,7 +627,7 @@ declare namespace algoliasearch { * Browse an index * https://github.com/algolia/algoliasearch-client-js#backup--export-an-index---browse */ - browse(query: string): Promise; + browse(query: string, parameters?: BrowseParameters): Promise; /** * Browse an index from a cursor * https://github.com/algolia/algoliasearch-client-js#backup--export-an-index---browse @@ -638,7 +645,7 @@ declare namespace algoliasearch { * Browse an entire index * https://github.com/algolia/algoliasearch-client-js#backup--export-an-index---browse */ - browseAll(): Promise; + browseAll(query?: string, parameters?: BrowseParameters): Browser; /** * Clear an index content * https://github.com/algolia/algoliasearch-client-js#clear-index---clearindex @@ -966,6 +973,22 @@ declare namespace algoliasearch { query: string; processingTimeMS: number; } + type BrowseParameters = Omit< + QueryParameters, + | "typoTolerance" + | "distinct" + | "facets" + | "getRankingInfo" + | "attributesToHighlight" + | "attributesToSnippet" + > + interface Browser { + on(type: "error", cb: (err: Error) => void): void + on(type: "end", cb: () => void): void + on(type: "stop", cb: () => void): void + on(type: "result", cb: (content: BrowseResponse) => void): void + stop(): void + } /** * Describes a synonym object */ diff --git a/types/algoliasearch/lite/index.d.ts b/types/algoliasearch/lite/index.d.ts index 4f068d5647..87eedb108d 100644 --- a/types/algoliasearch/lite/index.d.ts +++ b/types/algoliasearch/lite/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for algoliasearch-client-js 3.27.0 +// Type definitions for algoliasearch-client-js 3.30.0 // Project: https://github.com/algolia/algoliasearch-client-js // Definitions by: Baptiste Coquelle // Haroen Viaene @@ -8,6 +8,8 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 +type Omit = Pick> + declare namespace algoliasearch { /** * Interface for the algolia client object @@ -130,6 +132,11 @@ declare namespace algoliasearch { options: SearchForFacetValues.Parameters, cb: (err: Error, res: SearchForFacetValues.Response) => void ): void; + /** + * Browse an index + * https://github.com/algolia/algoliasearch-client-js#backup--export-an-index---browse + */ + browse(query: string, parameters: BrowseParameters, cb: (err: Error, res: BrowseResponse) => void): void; /** * Browse an index * https://github.com/algolia/algoliasearch-client-js#backup--export-an-index---browse @@ -139,7 +146,7 @@ declare namespace algoliasearch { * Browse an index * https://github.com/algolia/algoliasearch-client-js#backup--export-an-index---browse */ - browse(query: string): Promise; + browse(query: string, parameters?: BrowseParameters): Promise; /** * Browse an index from a cursor * https://github.com/algolia/algoliasearch-client-js#backup--export-an-index---browse @@ -194,7 +201,15 @@ declare namespace algoliasearch { query: string; processingTimeMS: number; } - + type BrowseParameters = Omit< + QueryParameters, + | "typoTolerance" + | "distinct" + | "facets" + | "getRankingInfo" + | "attributesToHighlight" + | "attributesToSnippet" + > interface QueryParameters { /** * Query string used to perform the search From 9bfbc13d235377ef5067b12df83d41278e41e60e Mon Sep 17 00:00:00 2001 From: Haroen Viaene Date: Fri, 26 Oct 2018 15:54:16 +0200 Subject: [PATCH 100/106] chore: TS 2.8 is required!!!!!!! --- types/algoliasearch/index.d.ts | 2 +- types/algoliasearch/lite/index.d.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/types/algoliasearch/index.d.ts b/types/algoliasearch/index.d.ts index 34124fa111..bcf19b9230 100644 --- a/types/algoliasearch/index.d.ts +++ b/types/algoliasearch/index.d.ts @@ -5,7 +5,7 @@ // Aurélien Hervé // Samuel Vaillant // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -// TypeScript Version: 2.2 +// TypeScript Version: 2.8 type Omit = Pick> diff --git a/types/algoliasearch/lite/index.d.ts b/types/algoliasearch/lite/index.d.ts index 87eedb108d..4db3ce12d3 100644 --- a/types/algoliasearch/lite/index.d.ts +++ b/types/algoliasearch/lite/index.d.ts @@ -6,7 +6,7 @@ // Samuel Vaillant // Claas Brüggemann // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -// TypeScript Version: 2.2 +// TypeScript Version: 2.8 type Omit = Pick> From bfaaf4c6e505c0f936cb051b653b0ae4377cc586 Mon Sep 17 00:00:00 2001 From: Alex Jerabek Date: Fri, 26 Oct 2018 10:42:48 -0700 Subject: [PATCH 101/106] Removing incorrect type from DataValidation --- types/office-js/index.d.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/types/office-js/index.d.ts b/types/office-js/index.d.ts index 0f2d005973..fd1eca302a 100644 --- a/types/office-js/index.d.ts +++ b/types/office-js/index.d.ts @@ -21397,12 +21397,11 @@ declare namespace Excel { inCellDropDown: boolean; /** * - * Source of the list for data validation - When setting the value, it can be passed in as a Excel Range object, or a string that contains comma separated number, boolean or date. + * The source of the list for data validation. The value is a string, which can either be a range reference (e.g. `"=Names!$A$1:$A$3"`) or a comma-separated list of the values themselves. * * [Api set: ExcelApi 1.8] */ - source: string | Range; + source: string; } /** * From 0c6b9cc538de7236d80e0012c120c36d5f359102 Mon Sep 17 00:00:00 2001 From: Andy Hanson Date: Fri, 26 Oct 2018 14:57:36 -0700 Subject: [PATCH 102/106] Remove unnecessary tslint disable --- types/next-server/router.d.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/types/next-server/router.d.ts b/types/next-server/router.d.ts index 2413c6b64b..190138e3ed 100644 --- a/types/next-server/router.d.ts +++ b/types/next-server/router.d.ts @@ -93,7 +93,6 @@ export type Omit = T extends any ? Pick( - // tslint:disable-next-line:no-unnecessary-generics Component: React.ComponentType> ): React.ComponentType>>; From c89d650a031f34027b6b96d403cb1fa5cad36d09 Mon Sep 17 00:00:00 2001 From: Nikolai Ommundsen Date: Sat, 27 Oct 2018 22:48:02 +0200 Subject: [PATCH 103/106] chrome-apps: Updated to be compatible with the current Chrome version. (#30073) * chrome-apps: WebView - SpatialNavigationEnabled * chrome-apps: networking.onc - WiFi TetheringEnabled * notifications: Update to newest docs (~Chrome 71) * system.display: Updated to newest docs (for Chrome 71 in development) * tts: Voice gender is marked as deprecated * clipboard: Updated docs to official docs (For Chrome 71) * chrome-apps: WebView - SpatialNavigationEnabled * chrome-apps: networking.onc - WiFi TetheringEnabled * notifications: Update to newest docs (~Chrome 71) * system.display: Updated to newest docs (for Chrome 71 in development) * tts: Voice gender is marked as deprecated * clipboard: Updated docs to official docs (For Chrome 71) * chrome-apps: WebView - SpatialNavigationEnabled * chrome-apps: networking.onc - WiFi TetheringEnabled * notifications: Update to newest docs (~Chrome 71) * system.display: Updated to newest docs (for Chrome 71 in development) * tts: Voice gender is marked as deprecated * clipboard: Updated docs to official docs (For Chrome 71) * chrome-apps: WebView - SpatialNavigationEnabled * chrome-apps: networking.onc - WiFi TetheringEnabled * notifications: Update to newest docs (~Chrome 71) * system.display: Updated to newest docs (for Chrome 71 in development) * tts: Voice gender is marked as deprecated * clipboard: Updated docs to official docs (For Chrome 71) * Fixed typo in docs --- types/chrome-apps/index.d.ts | 119 +++++++++++++++++++++----------- types/chrome-apps/test/index.ts | 14 ++++ 2 files changed, 93 insertions(+), 40 deletions(-) diff --git a/types/chrome-apps/index.d.ts b/types/chrome-apps/index.d.ts index 33b760ce82..567b73f2bb 100644 --- a/types/chrome-apps/index.d.ts +++ b/types/chrome-apps/index.d.ts @@ -612,7 +612,10 @@ declare namespace chrome { * @deprecated Deprecated since Chrome 36. Use innerBounds or outerBounds. */ maxHeight?: integer; - /** Type of window to create */ + /** + * @deprecated Deprecated since Chrome 69. All app windows use the 'shell' window type. + * @description Type of window to create + **/ type?: 'shell'; /** * If true, the window will have its own shelf icon. @@ -919,7 +922,8 @@ declare namespace chrome { level?: integer; } /** - * Device properties by which to filter the list of returned audio devices. If the filter is not set or set to {}, returned device list will contain all available audio devices. + * Device properties by which to filter the list of returned audio devices. + * If the filter is not set or set to {}, returned device list will contain all available audio devices. */ interface Filter { /** @@ -1083,8 +1087,9 @@ declare namespace chrome { function getDevices(callback: (devices: Device[]) => void): void; /** - * Get a list of Bluetooth devices known to the system, including paired and recently discovered devices. - * @param filter Since Chrome 67. Some criteria to filter the list of returned bluetooth devices. If the filter is not set or set to {}, returned device list will contain all bluetooth devices. Right now this is only supported in ChromeOS, for other platforms, a full list is returned. + * @since Chrome 67. + * @description Get a list of Bluetooth devices known to the system, including paired and recently discovered devices. + * @param filter Some criteria to filter the list of returned bluetooth devices. If the filter is not set or set to {}, returned device list will contain all bluetooth devices. Right now this is only supported in ChromeOS, for other platforms, a full list is returned. * @param callback Called when the search is completed. */ function getDevices(filter: DeviceFilter, callback: (devices: Device[]) => void): void; @@ -2082,12 +2087,12 @@ declare namespace chrome { /** * **Dev channel only.** * Sets image data to clipboard - * @param imageData The encoded image data. *Since Chrome 70. Warning: this is the current Beta channel.* - * @param type The type of image being passed. *Since Chrome 70. Warning: this is the current Beta channel.* + * @param imageData The encoded image data. *Since Chrome 71. Warning: this is the current Dev channel.* + * @param type The type of image being passed. *Since Chrome 71. Warning: this is the current Dev channel.* * @param [additionalItems] Additional data items for describing image data. * The callback is called with chrome.runtime.lastError set to error code if there is an error. * Requires clipboard and clipboardWrite permissions. - * *Since Chrome 70. Warning: this is the current Beta channel.* + * *Since Chrome 71. Warning: this is the current Dev channel.* * @param [callback] */ function setImageData(imageData: ArrayBuffer, type: ImageType, additionalItems?: AdditionalItems, callback?: () => void): void; @@ -3078,7 +3083,8 @@ declare namespace chrome { 'document_end' | 'document_idle'; /** - * The origin of injected CSS. + * @since Chrome 66. + * @description The origin of injected CSS. **/ type CSSOrigin = 'author' | @@ -5968,6 +5974,11 @@ declare namespace chrome { SSID?: S; /** The network signal strength. */ SignalStrength?: integer; + /** + * @since Chrome 70 + * @description The tethering state associated with the connection. + */ + TetheringState?: string; } interface WiFiProperties void>; /** - * The user clicked on a link for the app's notification settings. - * @since Chrome 32. + * @deprecated Deprecated since Chrome 65. Custom notification settings button is no longer supported. + * @description The user clicked on a link for the app's notification settings. + * As of Chrome 47, only ChromeOS has UI that dispatches this event. + * As of Chrome 65, that UI has been removed from ChromeOS, too. */ const onShowSettings: chrome.events.Event<() => void>; @@ -9319,7 +9339,10 @@ declare namespace chrome { /** The display mode height in native pixels. */ heightInNativePixels: integer; - /** The display mode UI scale factor. */ + /** + * @deprecated Deprecated since Chrome 70. Use `displayZoomFactor` + * @description The display mode UI scale factor. + **/ uiScale: integer; /** The display mode device scale factor. */ @@ -9380,15 +9403,16 @@ declare namespace chrome { * If set to true, changes the display mode to unified desktop. * If set to false, unified desktop mode will be disabled. * This is only valid for the primary display. - * If provided, mirroringSourceId must not be provided and other properties may not apply. This is has no effect if not provided. - * @see(See enableUnifiedDesktop for details). + * If provided, mirroringSourceId must not be provided and other properties may not apply. + * This is has no effect if not provided. + * @see(See `enableUnifiedDesktop` for details). * @since Chrome 59 * */ isUnified?: boolean; /** * @requires(CrOS) Chrome OS only. - * @deprecated Deprecated since Chrome 68. Use *setMirrorMode* + * @deprecated Deprecated since Chrome 68. Use ´setMirrorMode´ * @see setMirrorMode * @description * If set and not empty, enables mirroring for this display. @@ -9416,7 +9440,7 @@ declare namespace chrome { * If set, updates the display's rotation. * Legal values are [0, 90, 180, 270]. * The rotation is set clockwise, relative to the display's vertical position. - * It's applied after overscan paramter. + * It's applied after overscan parameter. */ rotation?: 0 | 90 | 180 | 270; @@ -9912,10 +9936,10 @@ declare namespace chrome { /** The language that this voice supports, in the form language-region. Examples: 'en', 'en-US', 'en-GB', 'zh-CN'. */ lang?: string; /** - * This voice's gender. - * One of: 'male', or 'female' + * @deprecated Deprecated since Chrome 70. Gender is deprecated and will be ignored. + * @description This voice's gender. */ - gender?: string; + gender?: 'male' | 'female'; /** The name of the voice. */ voiceName?: string; /** The ID of the extension providing this voice. */ @@ -9959,10 +9983,10 @@ declare namespace chrome { /** The extension ID of the speech engine to use, if known. */ extensionId?: string; /** - * Gender of voice for synthesized speech. - * One of: 'male', or 'female' + * @deprecated Deprecated since Chrome 70. Gender is deprecated and will be ignored. + * @description Gender of voice for synthesized speech. */ - gender?: string; + gender?: 'male' | 'female'; /** The TTS event types the voice must support. */ requiredEventTypes?: string[]; /** The TTS event types that you are interested in listening to. If missing, all event types may be sent. */ @@ -10983,7 +11007,7 @@ declare namespace chrome { */ class RequestMatcher { protected readonly typeGuard: 'RequestMatcher'; - constructor (parameters?: RequestMatcherFields); + constructor(parameters?: RequestMatcherFields); public readonly instanceType: string; } @@ -11001,7 +11025,7 @@ declare namespace chrome { /** Declarative event action that redirects a network request. */ class RedirectRequest { protected readonly typeGuard: 'RedirectRequest'; - constructor (parameters: RedirectRequestParams); + constructor(parameters: RedirectRequestParams); public readonly instanceType: string; } @@ -11036,7 +11060,7 @@ declare namespace chrome { */ class RedirectByRegEx { protected readonly typeGuard: 'RedirectByRegEx'; - constructor (parameters: RedirectByRegExParams); + constructor(parameters: RedirectByRegExParams); public readonly instanceType: string; } @@ -11055,7 +11079,7 @@ declare namespace chrome { */ class SetRequestHeader { protected readonly typeGuard: 'SetRequestHeader'; - constructor (parameters: SetRequestHeaderParams); + constructor(parameters: SetRequestHeaderParams); public readonly instanceType: string; } @@ -11072,7 +11096,7 @@ declare namespace chrome { */ class RemoveRequestHeader { protected readonly typeGuard: 'RemoveRequestHeader'; - constructor (parameters: RemoveRequestHeaderParams); + constructor(parameters: RemoveRequestHeaderParams); public readonly instanceType: string; } @@ -11091,7 +11115,7 @@ declare namespace chrome { */ class AddResponseHeader { protected readonly typeGuard: 'AddResponseHeader'; - constructor (parameters: AddResponseHeaderParams); + constructor(parameters: AddResponseHeaderParams); public readonly instanceType: string; } @@ -11107,7 +11131,7 @@ declare namespace chrome { */ class RemoveResponseHeader { protected readonly typeGuard: 'RemoveResponseHeader'; - constructor (parameters: RemoveResponseHeaderParams); + constructor(parameters: RemoveResponseHeaderParams); public readonly instanceType: string; } @@ -11133,7 +11157,7 @@ declare namespace chrome { */ class IgnoreRules { protected readonly typeGuard: 'IgnoreRules'; - constructor (parameters: IgnoreRulesParams); + constructor(parameters: IgnoreRulesParams); public readonly instanceType: string; } @@ -11150,7 +11174,7 @@ declare namespace chrome { */ class SendMessageToExtension { protected readonly typeGuard: 'SendMessageToExtension'; - constructor (parameters: SendMessageParams); + constructor(parameters: SendMessageParams); public readonly instanceType: string; } @@ -11248,7 +11272,7 @@ declare namespace chrome { */ class AddRequestCookie { protected readonly typeGuard: 'AddRequestCookie'; - constructor (parameters: AddCookie); + constructor(parameters: AddCookie); public readonly instanceType: string; } @@ -11259,7 +11283,7 @@ declare namespace chrome { */ class AddResponseCookie { protected readonly typeGuard: 'AddResponseCookie'; - constructor (parameters: AddCookie); + constructor(parameters: AddCookie); public readonly instanceType: string; } @@ -11292,7 +11316,7 @@ declare namespace chrome { * @param modification Attributes that shall be overridden in cookies that machted the filter. * Attributes that are set to an empty string are removed. */ - constructor (parameters: EditCookieParams); + constructor(parameters: EditCookieParams); public readonly instanceType: string; } @@ -11306,7 +11330,7 @@ declare namespace chrome { * @param filter Filter for cookies that will be modified.All empty entries are ignored. * @param modification */ - constructor (parameter: EditCookieParams); + constructor(parameter: EditCookieParams); public readonly instanceType: string; } @@ -11316,7 +11340,7 @@ declare namespace chrome { */ class RemoveRequestCookie { protected readonly typeGuard: 'RemoveRequestCookie'; - constructor (parameters: RemoveCookieParams); + constructor(parameters: RemoveCookieParams); public readonly instanceType: string; } @@ -11340,7 +11364,7 @@ declare namespace chrome { */ class RemoveResponseCookie { protected readonly typeGuard: 'RemoveResponseCookie'; - constructor (parameters: RemoveCookieParams); + constructor(parameters: RemoveCookieParams); public readonly instanceType: string; } @@ -11518,7 +11542,7 @@ declare namespace chrome { */ declare class HTMLAppViewElement extends HTMLElement { /** Create a new AppView tag */ - constructor (); + constructor(); /** * Requests another app to be embedded. * @param app The extension id of the app to be embedded. @@ -11626,7 +11650,7 @@ declare class HTMLWebViewElement extends HTMLElement { src: string; /** Create a new element */ - constructor (); + constructor(); /** * Queries audio state. @@ -11908,6 +11932,21 @@ declare class HTMLWebViewElement extends HTMLElement { */ loadDataWithBaseUrl(dataUrl: string, baseUrl: string, virtualUrl?: string): void; + /** + * @since Chrome 71 + * @description Sets spatial navigation state of the webview. + * @param enabled Spatial navigation state value. + */ + setSpatialNavigationEnabled(enabled: boolean): void; + + /** + * @since Chrome 71 + * @description Queries whether spatial navigation is enabled for the webview. + * @param callback Callback that will provide the value of the spatial navigation state. + */ + isSpatialNavigationEnabled(callback: (enabled: boolean) => void): void; + + /** * Forcibly kills the guest web page's renderer process. * This may affect multiple webview tags in the current app if they share the same process, diff --git a/types/chrome-apps/test/index.ts b/types/chrome-apps/test/index.ts index 93864d107b..499a34bab1 100644 --- a/types/chrome-apps/test/index.ts +++ b/types/chrome-apps/test/index.ts @@ -1114,6 +1114,7 @@ chrome.networking.onc.getNetworks({ 'networkType': 'All' }, (networkList) => { if (networkObj.WiFi) { // WiFi active :) console.log('Wifi BSID: ' + networkObj.WiFi.BSSID); + const state = networkObj.WiFi.TetheringState; } chrome.networking.onc.setProperties(networkObj.GUID || '', { WiFi: { @@ -1124,6 +1125,19 @@ chrome.networking.onc.getNetworks({ 'networkType': 'All' }, (networkList) => { chrome.networking.onc.getProperties(networkObj.GUID || '', (props) => { const WiFiResult = props.WiFi; }); + chrome.networking.onc.getState(networkObj.GUID || '', (state) => { + const wifiState = state.WiFi || {}; + return wifiState.TetheringState; + }); + chrome.networking.onc.getManagedProperties(networkObj.GUID || '', (result) => { + const wifiResult = result.WiFi; + if (wifiResult !== undefined) { + const managed = wifiResult.HexSSID; + if (managed !== undefined) { + return managed.UserPolicy; + } + } + }); } }); From 59556135337adb342da06bd2bd36a379bf8584e0 Mon Sep 17 00:00:00 2001 From: Waseem Dahman Date: Sat, 27 Oct 2018 21:42:50 -0400 Subject: [PATCH 104/106] declare a global Node --- types/jest-axe/index.d.ts | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/types/jest-axe/index.d.ts b/types/jest-axe/index.d.ts index 7398572bb1..60375e3605 100644 --- a/types/jest-axe/index.d.ts +++ b/types/jest-axe/index.d.ts @@ -8,10 +8,6 @@ import { AxeResults, Result, RunOnly } from "axe-core"; -declare module "axe-core" { - interface Node {} -} - /** * Version of the aXe verifier with defaults set. * @@ -86,4 +82,7 @@ declare global { toHaveNoViolations: IToHaveNoViolations; } } + + // axe-core depends on a global Node + interface Node {} } From da3e72928be980f663ea72d88f6b949f202bc451 Mon Sep 17 00:00:00 2001 From: Ron Buckton Date: Sun, 28 Oct 2018 15:28:32 +0100 Subject: [PATCH 105/106] [react-table] Column Data defaults to `any` This change is due to backwards compability. Co-Authored-By: andys8 --- types/react-table/index.d.ts | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/types/react-table/index.d.ts b/types/react-table/index.d.ts index 3eb153c671..0d03604ae9 100644 --- a/types/react-table/index.d.ts +++ b/types/react-table/index.d.ts @@ -6,17 +6,17 @@ import * as React from 'react'; export type ReactTableFunction = (value?: any) => void; -export type AccessorFunction = (row: D) => any; -export type Accessor = string | string[] | AccessorFunction; +export type AccessorFunction = (row: D) => any; +export type Accessor = string | string[] | AccessorFunction; export type Aggregator = (values: any, rows: any) => any; export type TableCellRenderer = ((data: any, column: any) => React.ReactNode) | React.ReactNode; -export type FilterRender = (params: { column: Column, filter: any, onChange: ReactTableFunction, key?: string }) => React.ReactElement; +export type FilterRender = (params: { column: Column, filter: any, onChange: ReactTableFunction, key?: string }) => React.ReactElement; export type PivotRenderer = ((cellInfo: any) => React.ReactNode) | (() => any) | string | React.ReactNode; export type ComponentPropsGetter0 = (finalState: any, rowInfo: undefined, column: undefined, instance?: any) => object | undefined; export type ComponentPropsGetterR = (finalState: any, rowInfo?: RowInfo, column?: undefined, instance?: any) => object | undefined; -export type ComponentPropsGetterC = (finalState: any, rowInfo?: undefined, column?: Column, instance?: any) => object | undefined; -export type ComponentPropsGetterRC = (finalState: any, rowInfo?: RowInfo, column?: Column, instance?: any) => object | undefined; +export type ComponentPropsGetterC = (finalState: any, rowInfo?: undefined, column?: Column, instance?: any) => object | undefined; +export type ComponentPropsGetterRC = (finalState: any, rowInfo?: RowInfo, column?: Column, instance?: any) => object | undefined; export type DefaultFilterFunction = (filter: Filter, row: any, column: any) => boolean; export type FilterFunction = (filter: Filter, rows: any[], column: any) => boolean; @@ -46,7 +46,7 @@ export interface SortingRule { desc?: true; } -export interface TableProps extends +export interface TableProps extends Partial, Partial, Partial, @@ -548,7 +548,7 @@ export interface PivotDefaults { render: TableCellRenderer; } -export interface Column extends +export interface Column extends Partial, Partial, Partial, @@ -608,7 +608,7 @@ export interface Column extends pivot?: boolean; } -export interface ColumnRenderProps { +export interface ColumnRenderProps { /** Sorted data. */ data: D[]; @@ -662,7 +662,7 @@ export interface RowInfo { original: any; } -export interface FinalState extends TableProps { +export interface FinalState extends TableProps { frozen: boolean; startRow: number; endRow: number; @@ -681,10 +681,10 @@ export interface FinalState extends TableProps { headerGroups: any[]; } -export const ReactTableDefaults: TableProps; +export const ReactTableDefaults: TableProps; export default class ReactTable extends React.Component>> { } -export interface Instance extends ReactTable { +export interface Instance extends ReactTable { context: any; props: Partial>; refs: any; From e213806fb26695b305a66254aba6063923141938 Mon Sep 17 00:00:00 2001 From: Ron Buckton Date: Sun, 28 Oct 2018 16:26:56 -0700 Subject: [PATCH 106/106] [mongodb] Make arrayFilters optional. --- 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 e7405ca7ef..ab4d2f4c02 100644 --- a/types/mongodb/index.d.ts +++ b/types/mongodb/index.d.ts @@ -1368,7 +1368,7 @@ export interface UpdateOneOptions extends ReplaceOneOptions { /** http://mongodb.github.io/node-mongodb-native/3.1/api/Collection.html#updateMany */ export interface UpdateManyOptions extends CommonOptions { upsert?: boolean; - arrayFilters: Object[]; + arrayFilters?: Object[]; } /** http://mongodb.github.io/node-mongodb-native/3.1/api/Collection.html#~updateWriteOpResult */