Skip to content

Commit 86609e7

Browse files
committed
yarn prepare: update types, cleanup
1 parent dfe4f6d commit 86609e7

5 files changed

Lines changed: 13037 additions & 13 deletions

File tree

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-native-d3-chart",
3-
"version": "0.1.0",
3+
"version": "0.0.1",
44
"description": "Create performant charts with zooming, panning and localization",
55
"source": "./src/index.tsx",
66
"main": "./lib/commonjs/index.js",
@@ -88,7 +88,7 @@
8888
"@types/react": "^18.2.44"
8989
},
9090
"dependencies": {
91-
"react-native-webview": "^11.18.1"
91+
"react-native-webview": ">=11.18.1"
9292
},
9393
"peerDependencies": {
9494
"react": "*",

src/Chart.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
import React, { useRef, useMemo, useEffect, useCallback } from 'react';
22
import { PixelRatio, Platform } from 'react-native';
33

4-
import { WebView, WebViewMessageEvent } from 'react-native-webview';
4+
import { WebView, type WebViewMessageEvent } from 'react-native-webview';
55

66
import drawFunction from './drawFunction';
77
import {
8-
ChartProps,
9-
TimeDomain,
10-
ChartColors,
11-
Dataset,
12-
CalendarStrings,
8+
type ChartProps,
9+
type TimeDomain,
10+
type ChartColors,
11+
type Dataset,
12+
type CalendarStrings,
1313
} from './types';
1414

1515
const MAX_TEXT_ZOOM = 130;

src/drawFunction.d.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
declare const drawFunction: string;
2+
export default drawFunction;

src/index.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
import Chart from './Chart';
22
export {
3-
Point,
4-
Dataset,
5-
ChartProps,
6-
TimeDomain,
7-
CalendarStrings,
3+
type Point,
4+
type Dataset,
5+
type ChartProps,
6+
type TimeDomain,
7+
type CalendarStrings,
88
} from './types';
99

1010
export default Chart;

0 commit comments

Comments
 (0)