fixing types

This commit is contained in:
Peter Holmberg
2018-09-27 14:19:36 +02:00
parent 1e2c06083a
commit cabc4c4bfe
3 changed files with 8 additions and 12 deletions
@@ -2,12 +2,13 @@ import React from 'react';
import { shallow } from 'enzyme';
import { PluginListPage, Props } from './PluginListPage';
import { NavModel, Plugin } from '../../types';
import { LayoutModes } from '../../core/components/LayoutSelector/LayoutSelector';
const setup = (propOverrides?: object) => {
const props: Props = {
navModel: {} as NavModel,
plugins: [] as Plugin[],
layoutMode: 'grid',
layoutMode: LayoutModes.Grid,
loadPlugins: jest.fn(),
};
+1 -2
View File
@@ -6,7 +6,7 @@ import { FolderDTO, FolderState, FolderInfo } from './folders';
import { DashboardState } from './dashboard';
import { DashboardAcl, OrgRole, PermissionLevel } from './acl';
import { DataSource } from './datasources';
import { PluginMeta, Plugin, PluginInfo, PluginsState } from './plugins';
import { PluginMeta, Plugin, PluginsState } from './plugins';
export {
Team,
@@ -33,7 +33,6 @@ export {
PermissionLevel,
DataSource,
PluginMeta,
PluginInfo,
Plugin,
PluginsState,
};
+5 -9
View File
@@ -12,20 +12,16 @@ export interface PluginInclude {
}
export interface PluginMetaInfo {
logos: {
large: string;
small: string;
};
}
export interface PluginInfo {
author: {
name: string;
url: string;
};
description: string;
links: string[];
logos: { small: string; large: string };
logos: {
large: string;
small: string;
};
screenshots: string;
updated: string;
version: string;
@@ -36,7 +32,7 @@ export interface Plugin {
enabled: boolean;
hasUpdate: boolean;
id: string;
info: PluginInfo;
info: PluginMetaInfo;
latestVersion: string;
name: string;
pinned: boolean;