diff --git a/src/index.d.ts b/src/index.d.ts new file mode 100644 index 00000000..ddbb18f5 --- /dev/null +++ b/src/index.d.ts @@ -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; + + interface VariantProps { + children: ReactNode; + id: string; + } + const Variant: ComponentType; +}