浏览代码

fix:add the type declaration of the "key" field (#1367)

* fix:add the type declaration of the "key" field

* change to a optional property and prettier code
kenve 7 年之前
父节点
当前提交
fb9d0d7372
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      src/components/GlobalFooter/index.d.ts

+ 1 - 0
src/components/GlobalFooter/index.d.ts

@@ -1,6 +1,7 @@
 import * as React from 'react';
 import * as React from 'react';
 export interface IGlobalFooterProps {
 export interface IGlobalFooterProps {
   links?: Array<{
   links?: Array<{
+    key?: string;
     title: React.ReactNode;
     title: React.ReactNode;
     href: string;
     href: string;
     blankTarget?: boolean;
     blankTarget?: boolean;