types.d.ts 634 B

123456789101112131415161718192021222324
  1. // Copyright 2017-2018 @polkadot/apps authors & contributors
  2. // This software may be modified and distributed under the terms
  3. // of the ISC license. See the LICENSE file for details.
  4. import { SemanticICONS } from 'semantic-ui-react/dist/commonjs';
  5. import { BareProps } from '@polkadot/ui-app/types';
  6. export type Route = {
  7. Component: React.ComponentType<BareProps>,
  8. i18n: any, // I18Next$Translate$Config,
  9. icon: SemanticICONS,
  10. isExact: boolean,
  11. isHidden: boolean,
  12. name: string,
  13. path?: string
  14. };
  15. export type Routes = Array<Route | null>;
  16. export type Routing = {
  17. default: string,
  18. routes: Routes,
  19. unknown: Route
  20. }