1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

type -> interface

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
This commit is contained in:
Jari Kolehmainen 2022-03-10 15:18:41 +02:00
parent fb72150214
commit dcd58a7cbc

View File

@ -4,15 +4,15 @@
*/
declare module "selfsigned" {
export type SelfSignedCert = {
export interface SelfSignedCert {
private: string;
public: string;
cert: string;
};
}
type GenerateAttributes = Array<any>;
type GenerateOptions = {
interface GenerateOptions {
keySize?: number;
days?: number;
algorithm?: "sha1" | "sha256";
@ -20,7 +20,7 @@
pkcs7?: boolean;
clientCertificate?: boolean;
clientCertificateCN?: string;
};
}
export function generate(GenerateAttributes, GenerateOptions): SelfSignedCert;
}