Commit cabc4c4b by Peter Holmberg

fixing types

parent 1e2c0608
......@@ -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(),
};
......
......@@ -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,
};
......
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment