From 226cc36ae9fe2553ff4ecc9c3664cb7b297d0fcc Mon Sep 17 00:00:00 2001 From: ExE Boss <3889017+ExE-Boss@users.noreply.github.com> Date: Fri, 12 Apr 2019 14:45:17 +0300 Subject: [PATCH] Apply suggestions from code review Co-Authored-By: msanguineti <19243840+msanguineti@users.noreply.github.com> --- types/shelljs/index.d.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/types/shelljs/index.d.ts b/types/shelljs/index.d.ts index d66df36a7f..7f13e1f22b 100644 --- a/types/shelljs/index.d.ts +++ b/types/shelljs/index.d.ts @@ -966,9 +966,8 @@ export type ShellString = string & ShellReturnValue; export type ShellArray = string[] & ShellReturnValue; -export const ShellString: ShellStringFunction; -export interface ShellStringFunction { +export interface ShellStringConstructor { /** * Wraps a string (or array) value. This has all the string (or array) methods, * but also exposes extra methods: `.to()`, `.toEnd()`, and all the pipe-able @@ -1011,6 +1010,8 @@ export interface ShellStringFunction { (value: string[]): ShellArray; } +export const ShellString: ShellStringConstructor; + export interface ChmodFunction { /** * Alters the permissions of a file or directory by either specifying the absolute