forked from google/zx
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathglobals.ts
61 lines (59 loc) · 1.96 KB
/
globals.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
// Copyright 2022 Google LLC
//
// 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
//
// https://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 _ from './index.js'
Object.assign(globalThis, _)
// TODO: global types not working with jsr.io
declare global {
type ProcessPromise = _.ProcessPromise
type ProcessOutput = _.ProcessOutput
var ProcessPromise: typeof _.ProcessPromise
var ProcessOutput: typeof _.ProcessOutput
var log: typeof _.log
var $: typeof _.$
var argv: typeof _.argv
var cd: typeof _.cd
var chalk: typeof _.chalk
var defaults: typeof _.defaults
var echo: typeof _.echo
var expBackoff: typeof _.expBackoff
var fs: typeof _.fs
var glob: typeof _.glob
var globby: typeof _.globby
var kill: typeof _.kill
var minimist: typeof _.minimist
var nothrow: typeof _.nothrow
var os: typeof _.os
var path: typeof _.path
var ps: typeof _.ps
var question: typeof _.question
var quiet: typeof _.quiet
var quote: typeof _.quote
var quotePowerShell: typeof _.quotePowerShell
var retry: typeof _.retry
var sleep: typeof _.sleep
var spinner: typeof _.spinner
var stdin: typeof _.stdin
var syncProcessCwd: typeof _.syncProcessCwd
var tempdir: typeof _.tempdir
var tempfile: typeof _.tempfile
var tmpdir: typeof _.tempdir
var tmpfile: typeof _.tempfile
var updateArgv: typeof _.updateArgv
var usePowerShell: typeof _.usePowerShell
var usePwsh: typeof _.usePwsh
var useBash: typeof _.useBash
var which: typeof _.which
var within: typeof _.within
var YAML: typeof _.YAML
}