aboutsummaryrefslogtreecommitdiffstats
path: root/packages/react-shared
diff options
context:
space:
mode:
authorFabio Berger <me@fabioberger.com>2018-03-05 14:10:55 +0800
committerFabio Berger <me@fabioberger.com>2018-03-05 14:10:55 +0800
commit874e6678491d25aa7db300d68bdcb73863685c62 (patch)
tree691db53254e10b93c0a2c21d63f8a1accd51e3f0 /packages/react-shared
parent1817f6eaf63a5fa4302ad9ef41ad13b1555a8733 (diff)
downloaddexon-0x-contracts-874e6678491d25aa7db300d68bdcb73863685c62.tar.gz
dexon-0x-contracts-874e6678491d25aa7db300d68bdcb73863685c62.tar.zst
dexon-0x-contracts-874e6678491d25aa7db300d68bdcb73863685c62.zip
Bug fixes
Diffstat (limited to 'packages/react-shared')
-rw-r--r--packages/react-shared/package.json1
-rw-r--r--packages/react-shared/src/ts/components/anchor_title.tsx4
-rw-r--r--packages/react-shared/tsconfig.json13
3 files changed, 5 insertions, 13 deletions
diff --git a/packages/react-shared/package.json b/packages/react-shared/package.json
index 835915842..e1cc2ad8b 100644
--- a/packages/react-shared/package.json
+++ b/packages/react-shared/package.json
@@ -3,6 +3,7 @@
"version": "0.0.1",
"description": "0x shared react components",
"main": "lib/index.js",
+ "types": "lib/index.d.ts",
"scripts": {
"lint": "tslint --project . 'src/ts/**/*.ts' 'src/ts/**/*.tsx'",
"build": "tsc",
diff --git a/packages/react-shared/src/ts/components/anchor_title.tsx b/packages/react-shared/src/ts/components/anchor_title.tsx
index 9b8e6854f..aa839cac9 100644
--- a/packages/react-shared/src/ts/components/anchor_title.tsx
+++ b/packages/react-shared/src/ts/components/anchor_title.tsx
@@ -10,14 +10,14 @@ const headerSizeToScrollOffset: { [headerSize: string]: number } = {
h3: 0,
};
-interface AnchorTitleProps {
+export interface AnchorTitleProps {
title: string | React.ReactNode;
id: string;
headerSize: HeaderSizes;
shouldShowAnchor: boolean;
}
-interface AnchorTitleState {
+export interface AnchorTitleState {
isHovering: boolean;
}
diff --git a/packages/react-shared/tsconfig.json b/packages/react-shared/tsconfig.json
index 69e8cdc20..6e71fb2e4 100644
--- a/packages/react-shared/tsconfig.json
+++ b/packages/react-shared/tsconfig.json
@@ -1,23 +1,14 @@
{
+ "extends": "../../tsconfig",
"compilerOptions": {
- "module": "commonjs",
- "target": "es5",
- "lib": ["es2017", "dom"],
- "sourceMap": true,
- "noImplicitReturns": true,
- "allowSyntheticDefaultImports": true,
"outDir": "./lib/",
"jsx": "react",
"baseUrl": "./",
- "allowJs": true,
"strictNullChecks": false,
"noImplicitThis": false,
- "declaration": false,
"paths": {
"*": ["node_modules/@types/*", "*"]
- },
- "pretty": true,
- "strict": true
+ }
},
"include": ["./src/ts/**/*"]
}