import * as React from 'react';
import classNames from 'classnames';

export interface DividerProps {
  prefixCls?: string;
  type?: 'horizontal' | 'vertical';
  className?: string;
  children?: React.ReactNode;
  dashed?: boolean;

}

export default function Divider({
  prefixCls = 'ant',
  type = 'horizontal',
  className,
  children,
  dashed,
  ...restProps,
}: DividerProps) {
  const classString = classNames(
    className, `${prefixCls}-divider`, `${prefixCls}-divider-${type}`, {
    [`${prefixCls}-divider-with-text`]: children,
    [`${prefixCls}-divider-dashed`]: !!dashed,
  });
  return (
    <div className={classString} {...restProps}>
      {children && <span className={`${prefixCls}-divider-inner-text`}>{children}</span>}
    </div>
  );
}

import * as React from 'react';
import classNames from 'classnames';

export default function Divider({
  prefixCls = 'ant',
  type = 'horizontal',
  className,
  children,
  dashed,
  ...restProps,
}) {
  const classString = classNames(
    className, `${prefixCls}-divider`, `${prefixCls}-divider-${type}`, {
    [`${prefixCls}-divider-with-text`]: children,
    [`${prefixCls}-divider-dashed`]: !!dashed,
  });
  return (
    <div className={classString} {...restProps}>
      {children && <span className={`${prefixCls}-divider-inner-text`}>{children}</span>}
    </div>
  );
}

--- 
+++ 
@@ -1,5 +1,14 @@
 import * as React from 'react';
 import classNames from 'classnames';
+
+export interface DividerProps {
+  prefixCls?: string;
+  type?: 'horizontal' | 'vertical';
+  className?: string;
+  children?: React.ReactNode;
+  dashed?: boolean;
+
+}
 
 export default function Divider({
   prefixCls = 'ant',
@@ -8,7 +17,7 @@
   children,
   dashed,
   ...restProps,
-}) {
+}: DividerProps) {
   const classString = classNames(
     className, `${prefixCls}-divider`, `${prefixCls}-divider-${type}`, {
     [`${prefixCls}-divider-with-text`]: children,
Fix implicit any error for Divider
