Skip to content

Commit 65ee536

Browse files
committed
enhacement(types): use import in type definitions
1 parent 287fd43 commit 65ee536

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

types/global.d.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1+
import 'segment-analytics';
2+
13
interface Window {
2-
analytics: SegmentAnalytics.AnalyticsJS & {
4+
analytics: AnalyticsJS & {
35
initialize(): void;
46
};
57
}

types/styled-jsx.d.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
import 'react'
22

3-
declare module "react" {
4-
interface HTMLProps<T> {
3+
declare module 'react' {
4+
interface StyleHTMLAttributes<T> extends React.HTMLAttributes<T> {
55
jsx?: boolean;
66
global?: boolean;
77
}
88
}
9+

0 commit comments

Comments
 (0)