Revert "Move frontend package types out of typescript-typings since this package will be used in both node and browser contexts"

This reverts commit 74483631d09395de248fe97034c059a2a8bb2097.
This commit is contained in:
Fabio Berger 2018-07-23 11:42:01 +02:00
parent 4f73b81b9c
commit 51b6f8bc71
7 changed files with 53 additions and 56 deletions

View File

@ -1,5 +1,3 @@
declare module 'react-tooltip';
declare module '*.json' { declare module '*.json' {
const json: any; const json: any;
/* tslint:disable */ /* tslint:disable */

View File

@ -1,5 +1,3 @@
declare module 'react-highlight';
declare module '*.json' { declare module '*.json' {
const json: any; const json: any;
/* tslint:disable */ /* tslint:disable */

View File

@ -25,9 +25,9 @@
}, },
"homepage": "https://github.com/0xProject/0x-monorepo/packages/typescript-typings#readme", "homepage": "https://github.com/0xProject/0x-monorepo/packages/typescript-typings#readme",
"dependencies": { "dependencies": {
"@types/bn.js": "^4.11.0", "ethereum-types": "^1.0.0",
"bignumber.js": "~4.1.0", "bignumber.js": "~4.1.0",
"ethereum-types": "^1.0.0" "@types/bn.js": "^4.11.0"
}, },
"devDependencies": { "devDependencies": {
"@0xproject/monorepo-scripts": "^1.0.0", "@0xproject/monorepo-scripts": "^1.0.0",

View File

@ -0,0 +1 @@
declare module 'react-highlight';

View File

@ -0,0 +1,49 @@
// Type definitions for react-popper 1.0.0-beta.6
// Project: https://github.com/gilbarbara/react-joyride
declare module 'react-popper' {
import * as React from 'react';
import * as PopperJS from 'popper.js';
interface ManagerProps {
children: React.ReactNode;
}
export class Manager extends React.Component<ManagerProps, {}> {}
type RefHandler = (ref: HTMLElement | null) => void;
export interface ReferenceChildrenProps {
ref: RefHandler;
}
export interface ReferenceProps {
children: (props: ReferenceChildrenProps) => React.ReactNode;
}
export class Reference extends React.Component<ReferenceProps, {}> {}
export interface PopperArrowProps {
ref: RefHandler;
style: React.CSSProperties;
}
export type Placement = PopperJS.Placement;
export interface PopperChildrenProps {
arrowProps: PopperArrowProps;
outOfBoundaries: boolean | null;
placement: PopperJS.Placement;
ref: RefHandler;
scheduleUpdate: () => void;
style: React.CSSProperties;
}
export interface PopperProps {
children: (props: PopperChildrenProps) => React.ReactNode;
eventsEnabled?: boolean;
modifiers?: PopperJS.Modifiers;
placement?: PopperJS.Placement;
positionFixed?: boolean;
referenceElement?: Element;
}
export class Popper extends React.Component<PopperProps, {}> {}
}

View File

@ -0,0 +1 @@
declare module 'react-tooltip';

View File

@ -3,7 +3,6 @@ declare module 'whatwg-fetch';
declare module 'thenby'; declare module 'thenby';
declare module 'react-document-title'; declare module 'react-document-title';
declare module 'react-ga'; declare module 'react-ga';
declare module 'react-tooltip';
declare module '*.json' { declare module '*.json' {
const json: any; const json: any;
@ -18,52 +17,3 @@ interface System {
import<T>(module: string): Promise<T>; import<T>(module: string): Promise<T>;
} }
declare var System: System; declare var System: System;
// Type definitions for react-popper 1.0.0-beta.6
// Project: https://github.com/gilbarbara/react-joyride
declare module 'react-popper' {
import * as React from 'react';
import * as PopperJS from 'popper.js';
interface ManagerProps {
children: React.ReactNode;
}
export class Manager extends React.Component<ManagerProps, {}> {}
type RefHandler = (ref: HTMLElement | null) => void;
export interface ReferenceChildrenProps {
ref: RefHandler;
}
export interface ReferenceProps {
children: (props: ReferenceChildrenProps) => React.ReactNode;
}
export class Reference extends React.Component<ReferenceProps, {}> {}
export interface PopperArrowProps {
ref: RefHandler;
style: React.CSSProperties;
}
export type Placement = PopperJS.Placement;
export interface PopperChildrenProps {
arrowProps: PopperArrowProps;
outOfBoundaries: boolean | null;
placement: PopperJS.Placement;
ref: RefHandler;
scheduleUpdate: () => void;
style: React.CSSProperties;
}
export interface PopperProps {
children: (props: PopperChildrenProps) => React.ReactNode;
eventsEnabled?: boolean;
modifiers?: PopperJS.Modifiers;
placement?: PopperJS.Placement;
positionFixed?: boolean;
referenceElement?: Element;
}
export class Popper extends React.Component<PopperProps, {}> {}
}