File tree Expand file tree Collapse file tree 4 files changed +16
-8
lines changed Expand file tree Collapse file tree 4 files changed +16
-8
lines changed Original file line number Diff line number Diff line change 1
1
{
2
- "extends" : " ./node_modules/gts/"
3
- }
2
+ "extends" : " ./node_modules/gts/" ,
3
+ "overrides" : [
4
+ {
5
+ "files" : " src/**/*.ts" ,
6
+ "rules" : {
7
+ "@typescript-eslint/explicit-module-boundary-types" : 1
8
+ }
9
+ }
10
+ ]
11
+ }
Original file line number Diff line number Diff line change @@ -21,17 +21,17 @@ type LogStringType = string | (() => string);
21
21
* Sets which logs are ignored. INFO gives all logs. WARN
22
22
* gives only WARN and ERROR. ERROR gives only ERROR logs.
23
23
*/
24
- export function verbosity ( type : LogTypes ) {
24
+ export function verbosity ( type : LogTypes ) : void {
25
25
logLevel = type ;
26
26
}
27
27
28
28
/** Logs some information. */
29
- export function info ( module : string , contents : LogStringType ) {
29
+ export function info ( module : string , contents : LogStringType ) : void {
30
30
common ( 'INFO' , module , contents ) ;
31
31
}
32
32
33
33
/** Logs a warning. */
34
- export function warn ( module : string , contents : LogStringType ) {
34
+ export function warn ( module : string , contents : LogStringType ) : void {
35
35
common ( 'WARN' , module , contents ) ;
36
36
}
37
37
@@ -73,6 +73,6 @@ export function getAllLogs(): string[] {
73
73
}
74
74
75
75
/** Prints all the logs to the console. */
76
- export function consoleAllLogs ( ) {
76
+ export function consoleAllLogs ( ) : void {
77
77
console . log ( allLogs . join ( '\n' ) ) ;
78
78
}
Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ export class Nonces implements Iterable<ElementModQ> {
43
43
[ Symbol . iterator ] ( ) : Iterator < ElementModQ > {
44
44
let counter = 0 ;
45
45
return {
46
- next : ( ) => {
46
+ next : ( ) : IteratorResult < ElementModQ > => {
47
47
return {
48
48
done : false ,
49
49
value : this . get ( counter ++ ) ,
Original file line number Diff line number Diff line change @@ -345,6 +345,6 @@ export function undefinedToNull<T>(x: T | undefined): T | null {
345
345
}
346
346
347
347
/** Converts a date to an ISO 8601-formatted string (without milliseconds). */
348
- export function dateToISOString ( date : Date ) {
348
+ export function dateToISOString ( date : Date ) : string {
349
349
return `${ date . toISOString ( ) . split ( '.' ) [ 0 ] } Z` ;
350
350
}
You can’t perform that action at this time.
0 commit comments