Skip to content

Commit 7d73547

Browse files
dobesvhudovisk
authored andcommitted
feat: add typescript declarations
1 parent 2cd2f3f commit 7d73547

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

src/index.d.ts

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
declare module 'react-optimize' {
2+
import { ComponentType, ReactNode } from 'react';
3+
interface ExperimentProps {
4+
children: ReactNode;
5+
id: string;
6+
loader?: ReactNode;
7+
timeout?: number;
8+
}
9+
10+
const Experiment: ComponentType<ExperimentProps>;
11+
12+
interface VariantProps {
13+
children: ReactNode;
14+
id: string;
15+
}
16+
const Variant: ComponentType<VariantProps>;
17+
}

0 commit comments

Comments
 (0)