aboutsummaryrefslogtreecommitdiffstats
path: root/packages/react-shared
diff options
context:
space:
mode:
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/**/*"]
}