mirror of
https://github.com/Drop-OSS/droplet.git
synced 2025-11-10 04:22:16 +10:00
fix: types
This commit is contained in:
33
index.d.ts
vendored
33
index.d.ts
vendored
@ -1,16 +1,21 @@
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
|
||||
/* auto-generated by NAPI-RS */
|
||||
/* eslint-disable */
|
||||
export declare function callAltThreadFunc(tsfn: ((err: Error | null, ) => any)): void
|
||||
|
||||
function hasBackendForPath(path: string): boolean
|
||||
function listFiles(path: string): Array<string>
|
||||
function readFile(path: string, subPath: string): ReadableStream<Buffer> | null
|
||||
function callAltThreadFunc(tsfn: ((err: Error | null, ) => any)): void
|
||||
function generateManifest(dir: string, progressSfn: ((err: Error | null, arg: number) => any), logSfn: ((err: Error | null, arg: string) => any), callbackSfn: ((err: Error | null, arg: string) => any)): void
|
||||
function generateRootCa(): Array<string>
|
||||
function generateClientCertificate(clientId: string, clientName: string, rootCa: string, rootCaPrivate: string): Array<string>
|
||||
function verifyClientCertificate(clientCert: string, rootCa: string): boolean
|
||||
function signNonce(privateKey: string, nonce: string): string
|
||||
function verifyNonce(publicCert: string, nonce: string, signature: string): boolean
|
||||
undefinedundefined
|
||||
export declare function generateClientCertificate(clientId: string, clientName: string, rootCa: string, rootCaPrivate: string): Array<string>
|
||||
|
||||
export declare function generateManifest(dir: string, progressSfn: ((err: Error | null, arg: number) => any), logSfn: ((err: Error | null, arg: string) => any), callbackSfn: ((err: Error | null, arg: string) => any)): void
|
||||
|
||||
export declare function generateRootCa(): Array<string>
|
||||
|
||||
export declare function hasBackendForPath(path: string): boolean
|
||||
|
||||
export declare function listFiles(path: string): Array<string>
|
||||
|
||||
export declare function readFile(path: string, subPath: string): ReadableStream<Buffer> | null
|
||||
|
||||
export declare function signNonce(privateKey: string, nonce: string): string
|
||||
|
||||
export declare function verifyClientCertificate(clientCert: string, rootCa: string): boolean
|
||||
|
||||
export declare function verifyNonce(publicCert: string, nonce: string, signature: string): boolean
|
||||
|
||||
Reference in New Issue
Block a user