This repository has been archived by the owner on Apr 13, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 786
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update test for apolloerror instance
- Loading branch information
James Baxley
committed
Jan 5, 2017
1 parent
2a1bef5
commit 1b56dcd
Showing
14 changed files
with
6,214 additions
and
2 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
// Type definitions for React v0.14 (react-addons-create-fragment) | ||
// Project: http://facebook.github.io/react/ | ||
// Definitions by: Asana <https://asana.com>, AssureSign <http://www.assuresign.com>, Microsoft <https://microsoft.com> | ||
// Definitions: https://github.com/borisyankov/DefinitelyTyped | ||
|
||
/// <reference path="react.d.ts" /> | ||
|
||
declare namespace __React { | ||
namespace __Addons { | ||
export function createFragment(object: { [key: string]: ReactNode }): ReactFragment; | ||
} | ||
} | ||
|
||
declare module "react-addons-create-fragment" { | ||
export = __React.__Addons.createFragment; | ||
} |
40 changes: 40 additions & 0 deletions
40
.vscode/typings/react/react-addons-css-transition-group.d.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
// Type definitions for React v0.14 (react-addons-css-transition-group) | ||
// Project: http://facebook.github.io/react/ | ||
// Definitions by: Asana <https://asana.com>, AssureSign <http://www.assuresign.com>, Microsoft <https://microsoft.com> | ||
// Definitions: https://github.com/borisyankov/DefinitelyTyped | ||
|
||
/// <reference path="react.d.ts" /> | ||
/// <reference path="react-addons-transition-group.d.ts" /> | ||
|
||
declare namespace __React { | ||
interface CSSTransitionGroupTransitionName { | ||
enter: string; | ||
enterActive?: string; | ||
leave: string; | ||
leaveActive?: string; | ||
appear?: string; | ||
appearActive?: string; | ||
} | ||
|
||
interface CSSTransitionGroupProps extends TransitionGroupProps { | ||
transitionName: string | CSSTransitionGroupTransitionName; | ||
transitionAppear?: boolean; | ||
transitionAppearTimeout?: number; | ||
transitionEnter?: boolean; | ||
transitionEnterTimeout?: number; | ||
transitionLeave?: boolean; | ||
transitionLeaveTimeout?: number; | ||
} | ||
|
||
type CSSTransitionGroup = ComponentClass<CSSTransitionGroupProps>; | ||
|
||
namespace __Addons { | ||
export var CSSTransitionGroup: __React.CSSTransitionGroup; | ||
} | ||
} | ||
|
||
declare module "react-addons-css-transition-group" { | ||
var CSSTransitionGroup: __React.CSSTransitionGroup; | ||
type CSSTransitionGroup = __React.CSSTransitionGroup; | ||
export = CSSTransitionGroup; | ||
} |
32 changes: 32 additions & 0 deletions
32
.vscode/typings/react/react-addons-linked-state-mixin.d.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
// Type definitions for React v0.14 (react-addons-linked-state-mixin) | ||
// Project: http://facebook.github.io/react/ | ||
// Definitions by: Asana <https://asana.com>, AssureSign <http://www.assuresign.com>, Microsoft <https://microsoft.com> | ||
// Definitions: https://github.com/borisyankov/DefinitelyTyped | ||
|
||
/// <reference path="react.d.ts" /> | ||
|
||
declare namespace __React { | ||
interface ReactLink<T> { | ||
value: T; | ||
requestChange(newValue: T): void; | ||
} | ||
|
||
interface LinkedStateMixin extends Mixin<any, any> { | ||
linkState<T>(key: string): ReactLink<T>; | ||
} | ||
|
||
interface HTMLAttributes { | ||
checkedLink?: ReactLink<boolean>; | ||
valueLink?: ReactLink<boolean | string | number>; | ||
} | ||
|
||
namespace __Addons { | ||
export var LinkedStateMixin: LinkedStateMixin; | ||
} | ||
} | ||
|
||
declare module "react-addons-linked-state-mixin" { | ||
var LinkedStateMixin: __React.LinkedStateMixin; | ||
type LinkedStateMixin = __React.LinkedStateMixin; | ||
export = LinkedStateMixin; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
// Type definitions for React v0.14 (react-addons-perf) | ||
// Project: http://facebook.github.io/react/ | ||
// Definitions by: Asana <https://asana.com>, AssureSign <http://www.assuresign.com>, Microsoft <https://microsoft.com> | ||
// Definitions: https://github.com/borisyankov/DefinitelyTyped | ||
|
||
/// <reference path="react.d.ts" /> | ||
|
||
declare namespace __React { | ||
interface ComponentPerfContext { | ||
current: string; | ||
owner: string; | ||
} | ||
|
||
interface NumericPerfContext { | ||
[key: string]: number; | ||
} | ||
|
||
interface Measurements { | ||
exclusive: NumericPerfContext; | ||
inclusive: NumericPerfContext; | ||
render: NumericPerfContext; | ||
counts: NumericPerfContext; | ||
writes: NumericPerfContext; | ||
displayNames: { | ||
[key: string]: ComponentPerfContext; | ||
}; | ||
totalTime: number; | ||
} | ||
|
||
namespace __Addons { | ||
namespace Perf { | ||
export function start(): void; | ||
export function stop(): void; | ||
export function printInclusive(measurements: Measurements[]): void; | ||
export function printExclusive(measurements: Measurements[]): void; | ||
export function printWasted(measurements: Measurements[]): void; | ||
export function printDOM(measurements: Measurements[]): void; | ||
export function getLastMeasurements(): Measurements[]; | ||
} | ||
} | ||
} | ||
|
||
declare module "react-addons-perf" { | ||
import Perf = __React.__Addons.Perf; | ||
export = Perf; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
// Type definitions for React v0.14 (react-addons-pure-render-mixin) | ||
// Project: http://facebook.github.io/react/ | ||
// Definitions by: Asana <https://asana.com>, AssureSign <http://www.assuresign.com>, Microsoft <https://microsoft.com> | ||
// Definitions: https://github.com/borisyankov/DefinitelyTyped | ||
|
||
/// <reference path="react.d.ts" /> | ||
|
||
declare namespace __React { | ||
interface PureRenderMixin extends Mixin<any, any> {} | ||
|
||
namespace __Addons { | ||
export var PureRenderMixin: PureRenderMixin; | ||
} | ||
} | ||
|
||
declare module "react-addons-pure-render-mixin" { | ||
var PureRenderMixin: __React.PureRenderMixin; | ||
type PureRenderMixin = __React.PureRenderMixin; | ||
export = PureRenderMixin; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,155 @@ | ||
// Type definitions for React v0.14 (react-addons-test-utils) | ||
// Project: http://facebook.github.io/react/ | ||
// Definitions by: Asana <https://asana.com>, AssureSign <http://www.assuresign.com>, Microsoft <https://microsoft.com> | ||
// Definitions: https://github.com/borisyankov/DefinitelyTyped | ||
|
||
/// <reference path="react.d.ts" /> | ||
|
||
declare namespace __React { | ||
interface SyntheticEventData { | ||
altKey?: boolean; | ||
button?: number; | ||
buttons?: number; | ||
clientX?: number; | ||
clientY?: number; | ||
changedTouches?: TouchList; | ||
charCode?: boolean; | ||
clipboardData?: DataTransfer; | ||
ctrlKey?: boolean; | ||
deltaMode?: number; | ||
deltaX?: number; | ||
deltaY?: number; | ||
deltaZ?: number; | ||
detail?: number; | ||
getModifierState?(key: string): boolean; | ||
key?: string; | ||
keyCode?: number; | ||
locale?: string; | ||
location?: number; | ||
metaKey?: boolean; | ||
pageX?: number; | ||
pageY?: number; | ||
relatedTarget?: EventTarget; | ||
repeat?: boolean; | ||
screenX?: number; | ||
screenY?: number; | ||
shiftKey?: boolean; | ||
targetTouches?: TouchList; | ||
touches?: TouchList; | ||
view?: AbstractView; | ||
which?: number; | ||
} | ||
|
||
interface EventSimulator { | ||
(element: Element, eventData?: SyntheticEventData): void; | ||
(component: Component<any, any>, eventData?: SyntheticEventData): void; | ||
} | ||
|
||
interface MockedComponentClass { | ||
new(): any; | ||
} | ||
|
||
class ShallowRenderer { | ||
getRenderOutput<E extends ReactElement<any>>(): E; | ||
getRenderOutput(): ReactElement<any>; | ||
render(element: ReactElement<any>, context?: any): void; | ||
unmount(): void; | ||
} | ||
|
||
namespace __Addons { | ||
namespace TestUtils { | ||
namespace Simulate { | ||
export var blur: EventSimulator; | ||
export var change: EventSimulator; | ||
export var click: EventSimulator; | ||
export var cut: EventSimulator; | ||
export var doubleClick: EventSimulator; | ||
export var drag: EventSimulator; | ||
export var dragEnd: EventSimulator; | ||
export var dragEnter: EventSimulator; | ||
export var dragExit: EventSimulator; | ||
export var dragLeave: EventSimulator; | ||
export var dragOver: EventSimulator; | ||
export var dragStart: EventSimulator; | ||
export var drop: EventSimulator; | ||
export var focus: EventSimulator; | ||
export var input: EventSimulator; | ||
export var keyDown: EventSimulator; | ||
export var keyPress: EventSimulator; | ||
export var keyUp: EventSimulator; | ||
export var mouseDown: EventSimulator; | ||
export var mouseEnter: EventSimulator; | ||
export var mouseLeave: EventSimulator; | ||
export var mouseMove: EventSimulator; | ||
export var mouseOut: EventSimulator; | ||
export var mouseOver: EventSimulator; | ||
export var mouseUp: EventSimulator; | ||
export var paste: EventSimulator; | ||
export var scroll: EventSimulator; | ||
export var submit: EventSimulator; | ||
export var touchCancel: EventSimulator; | ||
export var touchEnd: EventSimulator; | ||
export var touchMove: EventSimulator; | ||
export var touchStart: EventSimulator; | ||
export var wheel: EventSimulator; | ||
} | ||
|
||
export function renderIntoDocument( | ||
element: DOMElement<any>): Element; | ||
export function renderIntoDocument<P>( | ||
element: ReactElement<P>): Component<P, any>; | ||
export function renderIntoDocument<C extends Component<any, any>>( | ||
element: ReactElement<any>): C; | ||
|
||
export function mockComponent( | ||
mocked: MockedComponentClass, mockTagName?: string): typeof TestUtils; | ||
|
||
export function isElementOfType( | ||
element: ReactElement<any>, type: ReactType): boolean; | ||
export function isDOMComponent(instance: ReactInstance): boolean; | ||
export function isCompositeComponent(instance: ReactInstance): boolean; | ||
export function isCompositeComponentWithType( | ||
instance: ReactInstance, | ||
type: ComponentClass<any>): boolean; | ||
|
||
export function findAllInRenderedTree( | ||
root: Component<any, any>, | ||
fn: (i: ReactInstance) => boolean): ReactInstance[]; | ||
|
||
export function scryRenderedDOMComponentsWithClass( | ||
root: Component<any, any>, | ||
className: string): Element[]; | ||
export function findRenderedDOMComponentWithClass( | ||
root: Component<any, any>, | ||
className: string): Element; | ||
|
||
export function scryRenderedDOMComponentsWithTag( | ||
root: Component<any, any>, | ||
tagName: string): Element[]; | ||
export function findRenderedDOMComponentWithTag( | ||
root: Component<any, any>, | ||
tagName: string): Element; | ||
|
||
export function scryRenderedComponentsWithType<P>( | ||
root: Component<any, any>, | ||
type: ComponentClass<P>): Component<P, {}>[]; | ||
export function scryRenderedComponentsWithType<C extends Component<any, any>>( | ||
root: Component<any, any>, | ||
type: ComponentClass<any>): C[]; | ||
|
||
export function findRenderedComponentWithType<P>( | ||
root: Component<any, any>, | ||
type: ComponentClass<P>): Component<P, {}>; | ||
export function findRenderedComponentWithType<C extends Component<any, any>>( | ||
root: Component<any, any>, | ||
type: ComponentClass<any>): C; | ||
|
||
export function createRenderer(): ShallowRenderer; | ||
} | ||
} | ||
} | ||
|
||
declare module "react-addons-test-utils" { | ||
import TestUtils = __React.__Addons.TestUtils; | ||
export = TestUtils; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
// Type definitions for React v0.14 (react-addons-transition-group) | ||
// Project: http://facebook.github.io/react/ | ||
// Definitions by: Asana <https://asana.com>, AssureSign <http://www.assuresign.com>, Microsoft <https://microsoft.com> | ||
// Definitions: https://github.com/borisyankov/DefinitelyTyped | ||
|
||
/// <reference path="react.d.ts" /> | ||
|
||
declare namespace __React { | ||
|
||
interface TransitionGroupProps { | ||
component?: ReactType; | ||
childFactory?: (child: ReactElement<any>) => ReactElement<any>; | ||
} | ||
|
||
type TransitionGroup = ComponentClass<TransitionGroupProps>; | ||
|
||
namespace __Addons { | ||
export var TransitionGroup: __React.TransitionGroup; | ||
} | ||
} | ||
|
||
declare module "react-addons-transition-group" { | ||
var TransitionGroup: __React.TransitionGroup; | ||
type TransitionGroup = __React.TransitionGroup; | ||
export = TransitionGroup; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
// Type definitions for React v0.14 (react-addons-update) | ||
// Project: http://facebook.github.io/react/ | ||
// Definitions by: Asana <https://asana.com>, AssureSign <http://www.assuresign.com>, Microsoft <https://microsoft.com> | ||
// Definitions: https://github.com/borisyankov/DefinitelyTyped | ||
|
||
/// <reference path="react.d.ts" /> | ||
|
||
declare namespace __React { | ||
interface UpdateSpecCommand { | ||
$set?: any; | ||
$merge?: {}; | ||
$apply?(value: any): any; | ||
} | ||
|
||
interface UpdateSpecPath { | ||
[key: string]: UpdateSpec; | ||
} | ||
|
||
type UpdateSpec = UpdateSpecCommand | UpdateSpecPath; | ||
|
||
interface UpdateArraySpec extends UpdateSpecCommand { | ||
$push?: any[]; | ||
$unshift?: any[]; | ||
$splice?: any[][]; | ||
} | ||
|
||
namespace __Addons { | ||
export function update(value: any[], spec: UpdateArraySpec): any[]; | ||
export function update(value: {}, spec: UpdateSpec): any; | ||
} | ||
} | ||
|
||
declare module "react-addons-update" { | ||
export = __React.__Addons.update; | ||
} |
Oops, something went wrong.