Skip to content

Commit f2f2a2c

Browse files
author
Dimitar Tachev
authored
Merge pull request #4484 from NativeScript/tachev/update-ts
chore: update TypeScript dev dependencies
2 parents 2748bba + 8aed8e3 commit f2f2a2c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

54 files changed

+379
-20085
lines changed

lib/common/child-process.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export class ChildProcess extends EventEmitter implements IChildProcess {
99

1010
public async exec(command: string, options?: any, execOptions?: IExecOptions): Promise<any> {
1111
return new Promise<any>((resolve, reject) => {
12-
const callback = (error: Error, stdout: NodeBuffer, stderr: NodeBuffer) => {
12+
const callback = (error: Error, stdout: string | NodeBuffer, stderr: string | NodeBuffer) => {
1313
this.$logger.trace("Exec %s \n stdout: %s \n stderr: %s", command, stdout.toString(), stderr.toString());
1414

1515
if (error) {
@@ -33,7 +33,7 @@ export class ChildProcess extends EventEmitter implements IChildProcess {
3333
this.$logger.debug("execFile: %s %s", command, this.getArgumentsAsQuotedString(args));
3434

3535
return new Promise<any>((resolve, reject) => {
36-
child_process.execFile(command, args, (error: any, stdout: NodeBuffer) => {
36+
child_process.execFile(command, args, (error: any, stdout: string | NodeBuffer) => {
3737
if (error) {
3838
reject(error);
3939
} else {

lib/common/definitions/cli-global.d.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
1+
declare var _: _.LoDashStatic;
12
/**
23
* Defines additional properties added to global object from CLI.
34
*/
45
interface ICliGlobal extends NodeJS.Global {
56
/**
67
* Lodash instance.
78
*/
8-
_: any;
9+
_: _.LoDashStatic;
910

1011
/**
1112
* Global instance of the module used for dependency injection.

0 commit comments

Comments
 (0)