-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from jalibu/feat/typescript
Feat/typescript
- Loading branch information
Showing
29 changed files
with
7,059 additions
and
899 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
declare module Module { | ||
export function register( | ||
moduleName: string, | ||
moduleProperties: { | ||
defaults: any; | ||
getStyles: Function; | ||
getTranslations: Function; | ||
getTemplate: Function; | ||
getTemplateData: Function; | ||
getHeader: Function; | ||
start: Function; | ||
scheduleUpdate: Function; | ||
loadData: Function; | ||
socketNotificationReceived: Function; | ||
} | ||
): void; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
/** | ||
* @author https://github.com/dolanmiu | ||
*/ | ||
declare module "node_helper" { | ||
export function create(object: { | ||
start(): void; | ||
socketNotificationReceived<T>(notification: any, config: any): void; | ||
[key: string]: any; | ||
}): void; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
/** | ||
* Minimal type definition for selfsigned | ||
* @author Christopher Holomek | ||
* @since 26.09.2019 | ||
*/ | ||
declare module "selfsigned" { | ||
const selfsigned: SelfSigned; | ||
export default selfsigned; | ||
|
||
interface SelfSigned { | ||
/** | ||
* Generate certificate | ||
* @param attrs | ||
* attributes to use | ||
* @param options | ||
* options for generation | ||
* @param done | ||
* callback after generation of certificate is done | ||
*/ | ||
generate( | ||
attrs: any[] | null, | ||
options: Options, | ||
done: (error: Error | null, certificate: CertificateDefinition) => void | ||
): void; | ||
|
||
/** | ||
* Generate certificate | ||
* @param attrs | ||
* attributes to use | ||
* @param options | ||
* options for generation | ||
*/ | ||
generate(attrs: any[] | null, options: Options): CertificateDefinition; | ||
|
||
/** | ||
* Generate certificate | ||
* @param done | ||
* callback after generation of certificate is done | ||
*/ | ||
generate( | ||
done: (error: Error | null, certificate: CertificateDefinition) => void | ||
): void; | ||
} | ||
|
||
export interface CertificateDefinition { | ||
private: string; | ||
public: string; | ||
cert: string; | ||
fingerprint: string; | ||
clientprivate: string; | ||
clientpublic: string; | ||
clientcert: string; | ||
} | ||
|
||
export interface Options { | ||
keySize?: number; | ||
days?: number; | ||
algorithm?: "sha1" | "sha256"; | ||
extensions?: any[]; | ||
pkcs7?: boolean; | ||
clientCertificate?: boolean; | ||
clientCertificateCN?: string; | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.