Require all Prop interfaces to be explicitly named, prefer interface over type

- Also export all prop types

Signed-off-by: Sebastian Malton <sebastian@malton.name>
This commit is contained in:
Sebastian Malton committed 2022-02-18 10:53:15 -05:00
1 parent 625b00c247
commit a8c597928a
197 files changed
+630 -634

No files matched your search

@@ -21,8 +21,8 @@ import { Notifications } from "../notifications";
import { HelmRepo, HelmRepoManager } from "../../../main/helm/helm-repo-manager";
import { requestOpenFilePickingDialog } from "../../ipc";
interface Props extends Partial<DialogProps> {
onAddRepo: Function;
export interface AddHelmRepoDialogProps extends Partial<DialogProps> {
onAddRepo: () => void;
}
enum FileType {
@@ -40,11 +40,11 @@ function getEmptyRepo(): HelmRepo {
}
@observer
export class AddHelmRepoDialog extends React.Component<Props> {
export class AddHelmRepoDialog extends React.Component<AddHelmRepoDialogProps> {
private static keyExtensions = ["key", "keystore", "jks", "p12", "pfx", "pem"];
private static certExtensions = ["crt", "cer", "ca-bundle", "p7b", "p7c", "p7s", "p12", "pfx", "pem"];
constructor(props: Props) {
constructor(props: AddHelmRepoDialogProps) {
super(props);
makeObservable(this);
}