-
Notifications
You must be signed in to change notification settings - Fork 0
/
io.d.tl
45 lines (41 loc) · 1015 Bytes
/
io.d.tl
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
local common = require 'lithium.common'
local record lio
fprint: function(file: FILE, ...: any)
print: function(...: any)
eprint: function(...: any)
fprintf: function(file: FILE, format: string, ...: any)
printf: function(format: string, ...: any)
eprintf: function(format: string, ...: any)
end
return {
-- io.*
close = io.close,
flush = io.flush,
input = io.input,
lines = io.lines,
open = io.open,
output = io.output,
popen = io.popen,
stderr = io.stderr,
stdin = io.stdin,
stdout = io.stdout,
tmpfile = io.tmpfile,
type = io.type,
read = io.read,
write = io.write,
-- lithium.common
readFile = common.readFile,
writeFile = common.writeFile,
appendFile = common.appendFile,
fileLines = common.fileLines,
fpprint = common.fpprint,
pprint = common.pprint,
epprint = common.epprint,
-- lithium.io.*
fprint = lio.fprint,
print = lio.print,
eprint = lio.eprint,
fprintf = lio.fprintf,
printf = lio.printf,
eprintf = lio.eprintf,
}