2019-08-25 19:34:27 +07:00
|
|
|
import { PackageMetaInterface } from '../../../types/packageMeta';
|
|
|
|
|
|
|
|
export interface DetailContextProps {
|
|
|
|
packageMeta: PackageMetaInterface;
|
2019-09-01 18:09:23 +07:00
|
|
|
packageVersion?: string;
|
2019-08-25 19:34:27 +07:00
|
|
|
readMe: string;
|
|
|
|
packageName: string;
|
|
|
|
enableLoading: () => void;
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface VersionPageConsumerProps {
|
|
|
|
packageMeta: PackageMetaInterface;
|
|
|
|
readMe: string;
|
|
|
|
packageName: string;
|
2019-09-01 18:09:23 +07:00
|
|
|
packageVersion?: string;
|
2019-08-25 19:34:27 +07:00
|
|
|
// FIXME: looking for the appropiated type here
|
|
|
|
enableLoading: any;
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface PropsInterface {
|
|
|
|
match: boolean;
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface StateInterface {
|
|
|
|
readMe: string;
|
|
|
|
packageName: string;
|
|
|
|
packageMeta?: PackageMetaInterface;
|
|
|
|
isLoading: boolean;
|
|
|
|
notFound: boolean;
|
|
|
|
}
|