Skip to content

Commit

Permalink
feat: add typescript declarations
Browse files Browse the repository at this point in the history
  • Loading branch information
dobesv authored and hudovisk committed Dec 9, 2019
1 parent 2cd2f3f commit 7d73547
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions src/index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
declare module 'react-optimize' {
import { ComponentType, ReactNode } from 'react';
interface ExperimentProps {
children: ReactNode;
id: string;
loader?: ReactNode;
timeout?: number;
}

const Experiment: ComponentType<ExperimentProps>;

interface VariantProps {
children: ReactNode;
id: string;
}
const Variant: ComponentType<VariantProps>;
}

0 comments on commit 7d73547

Please sign in to comment.