-
Notifications
You must be signed in to change notification settings - Fork 0
/
types.lua
255 lines (167 loc) · 3.61 KB
/
types.lua
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
---@meta
-- This file contains type annotations for the lua language server:
-- https://github.com/luals/lua-language-server
--
-- Usage: place this file on your project root.
---@type (fun(selector: string): fun(args: table): table) | fun(args: table): table
function CSS() end
---@type fun(types: string): fun(args: table): table
function CSS_MEDIA() end
---@type fun(tag: string): fun(args: table): table
function Node() end
---@alias Tag fun(args: table|string): table
---@type Tag
function HTML() end
---@type Tag
function HEAD() end
---@type Tag
function TITLE() end
---@type Tag
function BODY() end
---@type Tag
function SCRIPT() end
---@type Tag
function LINK() end
---@type Tag
function STYLE() end
---@type Tag
function META() end
---@type Tag
function A() end
---@type Tag
function BASE() end
---@type Tag
function P() end
---@type Tag
function DIV() end
---@type Tag
function SPAN() end
---@type Tag
function B() end
---@type Tag
function I() end
---@type Tag
function EM() end
---@type Tag
function STRONG() end
---@type Tag
function SMALL() end
---@type Tag
function S() end
---@type Tag
function PRE() end
---@type Tag
function CODE() end
---@type Tag
function OL() end
---@type Tag
function UL() end
---@type Tag
function LI() end
---@type Tag
function FORM() end
---@type Tag
function INPUT() end
---@type Tag
function TEXTAREA() end
---@type Tag
function BUTTON() end
---@type Tag
function LABEL() end
---@type Tag
function SELECT() end
---@type Tag
function OPTION() end
---@type Tag
function TABLE() end
---@type Tag
function THEAD() end
---@type Tag
function TBODY() end
---@type Tag
function COL() end
---@type Tag
function TR() end
---@type Tag
function TD() end
---@type Tag
function SVG() end
---@type Tag
function BR() end
---@type Tag
function HR() end
---@type Tag
function H1() end
---@type Tag
function H2() end
---@type Tag
function H3() end
---@type Tag
function H4() end
---@type Tag
function H5() end
---@type Tag
function H6() end
---@type Tag
function IMG() end
---@type Tag
function AREA() end
---@type Tag
function VIDEO() end
---@type Tag
function IFRAME() end
---@type Tag
function EMBED() end
---@type Tag
function TRACK() end
---@type Tag
function SOURCE() end
---@type Tag
function FRAGMENT() end
---@type fun(args: string): table) | fun(args: table): table
function PP() end
-- type annotations for redbean: https://redbean.dev
---@type fun(): string
function GetPath() end
---@type fun(string): string
function Write() end
---@type fun(): string
function GetMethod() end
-----------------------------------------------------------------
---@type string
COMMAND_ARG = ""
---@type string
AUTORELOAD_SCRIPT = ""
---@type fun(filename: string): table
function GetPageData() end
---@type fun(): table
function GetPageList() end
---@type fun(fn: fun()): table
function OnPostRender() end
---@type fun(filenames: string[]): table
function QueueBuildFiles() end
-----------------------------------------------------------------
---@type fun(host: string, path: string): string
function Route() end
---@type fun(): string
function GetHost() end
---@type fun()
function Route() end
---@type fun(seconds: integer)
function Sleep() end
---@type fun(key: string, value: string)
function SetHeader() end
---@type fun(filename: string)
function Slurp() end
---@type fun(filename: string, data: string)
function Barf() end
---@type fun(path: string)
function ProgramDirectory() end
path = {}
---@type fun(s: string): boolean
function path.isdir() end
---@type fun(s: string): boolean
function path.exists() end
unix = {}
---@type fun(code?: number): boolean
function unix.exit() end