Convert lib/actions/index.coffee to typescript

Change-type: patch
This commit is contained in:
Pagan Gazzard 2020-04-30 17:01:07 +01:00
parent 692eddf43f
commit 6d7d1956ea
2 changed files with 53 additions and 34 deletions

View File

@ -1,34 +0,0 @@
###
Copyright 2016-2017 Balena
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.
###
module.exports =
apiKey: require('./api-key')
app: require('./app')
auth: require('./auth')
device: require('./device')
tags: require('./tags')
logs: require('./logs')
local: require('./local')
help: require('./help')
os: require('./os')
config: require('./config')
ssh: require('./ssh')
build: require('./build').build
deploy: require('./deploy').deploy
util: require('./util')
preload: require('./preload').preload
push: require('./push')
tunnel: require('./tunnel')

53
lib/actions/index.ts Normal file
View File

@ -0,0 +1,53 @@
/*
Copyright 2016-2020 Balena
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.
*/
import * as apiKey from './api-key';
import * as app from './app';
import * as auth from './auth';
import * as config from './config';
import * as device from './device';
import * as help from './help';
import * as local from './local';
import * as logs from './logs';
import * as os from './os';
import * as push from './push';
import * as ssh from './ssh';
import * as tags from './tags';
import * as tunnel from './tunnel';
import * as util from './util';
export {
apiKey,
app,
auth,
device,
tags,
logs,
local,
help,
os,
config,
ssh,
util,
push,
tunnel,
};
export { build } from './build';
export { deploy } from './deploy';
export { preload } from './preload';