Просмотр исходного кода

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 лет назад
Родитель
Сommit
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';
 export interface IGlobalFooterProps {
   links?: Array<{
+    key?: string;
     title: React.ReactNode;
     href: string;
     blankTarget?: boolean;