Move frontend package types out of typescript-typings since this package will be used in both node and browser contexts
This commit is contained in:
@@ -25,9 +25,9 @@
|
||||
},
|
||||
"homepage": "https://github.com/0xProject/0x-monorepo/packages/typescript-typings#readme",
|
||||
"dependencies": {
|
||||
"ethereum-types": "^1.0.0",
|
||||
"@types/bn.js": "^4.11.0",
|
||||
"bignumber.js": "~4.1.0",
|
||||
"@types/bn.js": "^4.11.0"
|
||||
"ethereum-types": "^1.0.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@0xproject/monorepo-scripts": "^1.0.0",
|
||||
|
@@ -1 +0,0 @@
|
||||
declare module 'react-highlight';
|
@@ -1,49 +0,0 @@
|
||||
// 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, {}> {}
|
||||
}
|
@@ -1 +0,0 @@
|
||||
declare module 'react-tooltip';
|
Reference in New Issue
Block a user