Chore: replace typings/intercept-stdout with @types/intercept-stdout

Change-type: patch
Signed-off-by: Paulo Castro <paulo@balena.io>
This commit is contained in:
Paulo Castro 2019-09-30 15:08:28 +01:00
parent 449461afae
commit 101a4bc209
3 changed files with 7 additions and 28 deletions

6
npm-shrinkwrap.json generated
View File

@ -590,6 +590,12 @@
"@types/node": "*"
}
},
"@types/intercept-stdout": {
"version": "0.1.0",
"resolved": "https://registry.npmjs.org/@types/intercept-stdout/-/intercept-stdout-0.1.0.tgz",
"integrity": "sha512-b4+N4+pHcUWaK75k4GDavB5ZS6aHdlsyxKaU82JEq7mzY0+kziTiT6nKm+OCkMlGvL6RNk2rera2InJKVP5OiQ==",
"dev": true
},
"@types/is-root": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/@types/is-root/-/is-root-1.0.0.tgz",

View File

@ -96,6 +96,7 @@
"@types/dockerode": "2.5.6",
"@types/ejs": "^2.6.3",
"@types/fs-extra": "7.0.0",
"@types/intercept-stdout": "^0.1.0",
"@types/is-root": "1.0.0",
"@types/lodash": "4.14.112",
"@types/mixpanel": "2.14.0",

View File

@ -1,28 +0,0 @@
/**
* @license
* Copyright 2019 Balena Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
declare module 'intercept-stdout' {
type hookFunction = (txt: string) => string | void;
type unhookFunction = () => void;
function intercept(
stdoutIntercept: hookFunction,
stderrIntercept?: hookFunction,
): unhookFunction;
export = intercept;
}