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:
parent
fb72150214
commit
dcd58a7cbc
8
types/selfsigned.d.ts
vendored
8
types/selfsigned.d.ts
vendored
@ -4,15 +4,15 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
declare module "selfsigned" {
|
declare module "selfsigned" {
|
||||||
export type SelfSignedCert = {
|
export interface SelfSignedCert {
|
||||||
private: string;
|
private: string;
|
||||||
public: string;
|
public: string;
|
||||||
cert: string;
|
cert: string;
|
||||||
};
|
}
|
||||||
|
|
||||||
type GenerateAttributes = Array<any>;
|
type GenerateAttributes = Array<any>;
|
||||||
|
|
||||||
type GenerateOptions = {
|
interface GenerateOptions {
|
||||||
keySize?: number;
|
keySize?: number;
|
||||||
days?: number;
|
days?: number;
|
||||||
algorithm?: "sha1" | "sha256";
|
algorithm?: "sha1" | "sha256";
|
||||||
@ -20,7 +20,7 @@
|
|||||||
pkcs7?: boolean;
|
pkcs7?: boolean;
|
||||||
clientCertificate?: boolean;
|
clientCertificate?: boolean;
|
||||||
clientCertificateCN?: string;
|
clientCertificateCN?: string;
|
||||||
};
|
}
|
||||||
|
|
||||||
export function generate(GenerateAttributes, GenerateOptions): SelfSignedCert;
|
export function generate(GenerateAttributes, GenerateOptions): SelfSignedCert;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user