From ec916e5f7254979f0716ab43e37899abee50f353 Mon Sep 17 00:00:00 2001 From: yiminghe Date: Fri, 27 May 2016 13:02:50 +0800 Subject: [PATCH] add typings.json --- .gitignore | 1 + type-definitions/antd.d.ts | 5 +---- typings.json | 6 ++++++ 3 files changed, 8 insertions(+), 4 deletions(-) create mode 100644 typings.json diff --git a/.gitignore b/.gitignore index 2540e09903..85d90d8d7a 100644 --- a/.gitignore +++ b/.gitignore @@ -26,3 +26,4 @@ dist /lib elasticsearch-* config/base.yaml +typings diff --git a/type-definitions/antd.d.ts b/type-definitions/antd.d.ts index 4a193bb27c..bc64df86d5 100644 --- a/type-definitions/antd.d.ts +++ b/type-definitions/antd.d.ts @@ -5,7 +5,7 @@ import * as React from 'react' -declare namespace Antd { +declare module "antd" { // Affix interface AffixProps { /** @@ -2003,7 +2003,4 @@ declare namespace Antd { } export class LocaleProvider extends React.Component{ } - } - -export = Antd; diff --git a/typings.json b/typings.json new file mode 100644 index 0000000000..a93ad67fd4 --- /dev/null +++ b/typings.json @@ -0,0 +1,6 @@ +{ + "globalDependencies": { + "react": "registry:dt/react#0.14.0+20160526134601", + "react-dom": "registry:dt/react-dom#0.14.0+20160412154040" + } +}