added back ts generics
This commit is contained in:
@@ -27,9 +27,9 @@ export class Npmextra {
|
||||
/**
|
||||
* merges the supplied options with the ones from npmextra.json
|
||||
*/
|
||||
dataFor(toolnameArg: string, defaultOptionsArg: any) {
|
||||
dataFor<IToolConfig>(toolnameArg: string, defaultOptionsArg: any): IToolConfig {
|
||||
let npmextraToolOptions
|
||||
if(this.npmextraJsonData[toolnameArg]) {
|
||||
if (this.npmextraJsonData[toolnameArg]) {
|
||||
npmextraToolOptions = this.npmextraJsonData[toolnameArg]
|
||||
} else {
|
||||
npmextraToolOptions = {}
|
||||
|
Reference in New Issue
Block a user