1
0
mirror of https://github.com/SomboChea/ui synced 2026-01-18 17:16:00 +07:00

fix: @typescript-eslint/explicit-function-return-type

This commit is contained in:
Griffithtp
2019-06-24 23:01:13 +01:00
parent 55f50e9f4d
commit 31c11f2b5b
9 changed files with 31 additions and 31 deletions

View File

@@ -7,7 +7,7 @@ import { Heading, DistListItem, DistChips } from './styles';
import fileSizeSI from '../../utils/file-size';
class Dist extends Component<any, any> {
public render() {
public render(): JSX.Element {
return (
<DetailContextConsumer>
{(context: any) => {
@@ -17,7 +17,7 @@ class Dist extends Component<any, any> {
);
}
private renderChips(dist: any, license: string) {
private renderChips(dist: any, license: string): JSX.Element | never[] {
const distDict = {
'file-count': dist.fileCount,
size: dist.unpackedSize && fileSizeSI(dist.unpackedSize),