@tlua/gmod 1.0.4 → 1.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (214) hide show
  1. package/package.json +1 -1
  2. package/types/achievements.d.tlua +15 -45
  3. package/types/ai.d.tlua +5 -15
  4. package/types/angle.d.tlua +18 -54
  5. package/types/baseclass.d.tlua +2 -4
  6. package/types/bf_read.d.tlua +11 -32
  7. package/types/bit.d.tlua +11 -33
  8. package/types/cam.d.tlua +16 -48
  9. package/types/ceffectdata.d.tlua +32 -95
  10. package/types/chat.d.tlua +5 -15
  11. package/types/cleanup.d.tlua +7 -21
  12. package/types/cluaemitter.d.tlua +12 -35
  13. package/types/clualocomotion.d.tlua +40 -119
  14. package/types/cluaparticle.d.tlua +44 -131
  15. package/types/cmovedata.d.tlua +47 -140
  16. package/types/cnavarea.d.tlua +77 -230
  17. package/types/cnavladder.d.tlua +22 -65
  18. package/types/cnewparticleeffect.d.tlua +26 -77
  19. package/types/color.d.tlua +28 -84
  20. package/types/concommand.d.tlua +4 -12
  21. package/types/constraint.d.tlua +28 -84
  22. package/types/construct.d.tlua +1 -3
  23. package/types/contentheader.d.tlua +3 -6
  24. package/types/contenticon.d.tlua +9 -24
  25. package/types/contentsidebar.d.tlua +4 -9
  26. package/types/contextbase.d.tlua +4 -9
  27. package/types/controlpanel.d.tlua +18 -40
  28. package/types/controlpresets.d.tlua +13 -36
  29. package/types/convar.d.tlua +16 -47
  30. package/types/cookie.d.tlua +3 -9
  31. package/types/coroutine.d.tlua +7 -21
  32. package/types/crecipientfilter.d.tlua +16 -47
  33. package/types/csoundpatch.d.tlua +14 -41
  34. package/types/ctakedamageinfo.d.tlua +33 -98
  35. package/types/ctrlnumpad.d.tlua +6 -17
  36. package/types/cusercmd.d.tlua +27 -80
  37. package/types/cvars.d.tlua +6 -18
  38. package/types/dadjustablemodelpanel.d.tlua +7 -18
  39. package/types/dalphabar.d.tlua +3 -6
  40. package/types/dbinder.d.tlua +4 -9
  41. package/types/dbubblecontainer.d.tlua +2 -3
  42. package/types/dbutton.d.tlua +8 -21
  43. package/types/dcheckbox.d.tlua +5 -12
  44. package/types/dcheckboxlabel.d.tlua +9 -27
  45. package/types/dcollapsiblecategory.d.tlua +23 -66
  46. package/types/dcolorbutton.d.tlua +7 -18
  47. package/types/dcolorcombo.d.tlua +5 -12
  48. package/types/dcolorcube.d.tlua +13 -36
  49. package/types/dcolormixer.d.tlua +27 -78
  50. package/types/dcolorpalette.d.tlua +23 -66
  51. package/types/dcolumnsheet.d.tlua +5 -12
  52. package/types/dcombobox.d.tlua +17 -48
  53. package/types/ddragbase.d.tlua +13 -36
  54. package/types/ddrawer.d.tlua +8 -21
  55. package/types/debug.d.tlua +44 -76
  56. package/types/debugoverlay.d.tlua +11 -33
  57. package/types/dentityproperties.d.tlua +5 -12
  58. package/types/derma.d.tlua +10 -30
  59. package/types/dexpandbutton.d.tlua +3 -6
  60. package/types/dfilebrowser.d.tlua +20 -60
  61. package/types/dform.d.tlua +18 -51
  62. package/types/dframe.d.tlua +24 -72
  63. package/types/dgrid.d.tlua +11 -30
  64. package/types/dhorizontaldivider.d.tlua +20 -57
  65. package/types/dhorizontalscroller.d.tlua +11 -30
  66. package/types/dhscrollbar.d.tlua +11 -30
  67. package/types/dhtml.d.tlua +8 -21
  68. package/types/dhtmlcontrols.d.tlua +5 -15
  69. package/types/diconbrowser.d.tlua +11 -30
  70. package/types/diconlayout.d.tlua +18 -51
  71. package/types/dimage.d.tlua +20 -55
  72. package/types/dimagebutton.d.tlua +9 -27
  73. package/types/dlabel.d.tlua +33 -96
  74. package/types/dlabeleditable.d.tlua +5 -12
  75. package/types/dlabelurl.d.tlua +10 -27
  76. package/types/dlistbox.d.tlua +8 -21
  77. package/types/dlistboxitem.d.tlua +4 -9
  78. package/types/dlistview.d.tlua +34 -99
  79. package/types/dlistview_column.d.tlua +14 -39
  80. package/types/dlistview_line.d.tlua +13 -36
  81. package/types/dmenu.d.tlua +28 -75
  82. package/types/dmenubar.d.tlua +6 -11
  83. package/types/dmenuoption.d.tlua +13 -36
  84. package/types/dmenuoptioncvar.d.tlua +6 -15
  85. package/types/dmodelpanel.d.tlua +22 -63
  86. package/types/dmodelselect.d.tlua +2 -3
  87. package/types/dmodelselectmulti.d.tlua +2 -3
  88. package/types/dnotify.d.tlua +10 -27
  89. package/types/dnumberscratch.d.tlua +26 -75
  90. package/types/dnumberwang.d.tlua +16 -45
  91. package/types/dnumslider.d.tlua +17 -51
  92. package/types/dpanel.d.tlua +14 -39
  93. package/types/dpanellist.d.tlua +11 -33
  94. package/types/dpaneloverlay.d.tlua +7 -18
  95. package/types/dpanpanel.d.tlua +6 -15
  96. package/types/dprogress.d.tlua +3 -6
  97. package/types/dproperties.d.tlua +4 -9
  98. package/types/dproperty_combo.d.tlua +3 -6
  99. package/types/dproperty_generic.d.tlua +5 -12
  100. package/types/dpropertysheet.d.tlua +26 -56
  101. package/types/dragndrop.d.tlua +10 -30
  102. package/types/draw.d.tlua +11 -31
  103. package/types/drgbpicker.d.tlua +4 -9
  104. package/types/drive.d.tlua +18 -41
  105. package/types/dscrollpanel.d.tlua +10 -30
  106. package/types/dshape.d.tlua +7 -18
  107. package/types/dsizetocontents.d.tlua +5 -12
  108. package/types/dslider.d.tlua +28 -81
  109. package/types/dsprite.d.tlua +9 -24
  110. package/types/dtab.d.tlua +8 -21
  111. package/types/dtextentry.d.tlua +43 -126
  112. package/types/dtilelayout.d.tlua +21 -60
  113. package/types/dtooltip.d.tlua +6 -15
  114. package/types/dtree.d.tlua +16 -45
  115. package/types/dtree_node.d.tlua +68 -201
  116. package/types/duplicator.d.tlua +30 -88
  117. package/types/dverticaldivider.d.tlua +23 -66
  118. package/types/dvscrollbar.d.tlua +11 -30
  119. package/types/effect.d.tlua +4 -9
  120. package/types/effects.d.tlua +6 -18
  121. package/types/engine.d.tlua +21 -63
  122. package/types/entity.d.tlua +676 -1962
  123. package/types/ents.d.tlua +23 -61
  124. package/types/file.d.tlua +39 -117
  125. package/types/frame_blend.d.tlua +7 -21
  126. package/types/game.d.tlua +39 -117
  127. package/types/gameevent.d.tlua +4 -8
  128. package/types/gamemode.d.tlua +3 -7
  129. package/types/gm.d.tlua +267 -800
  130. package/types/gmsave.d.tlua +4 -12
  131. package/types/gui.d.tlua +21 -63
  132. package/types/gwen.d.tlua +3 -9
  133. package/types/halo.d.tlua +2 -6
  134. package/types/hook.d.tlua +4 -12
  135. package/types/http.d.tlua +1 -3
  136. package/types/iconeditor.d.tlua +11 -30
  137. package/types/igmodaudiochannel.d.tlua +41 -122
  138. package/types/imagecheckbox.d.tlua +4 -9
  139. package/types/imaterial.d.tlua +26 -77
  140. package/types/imesh.d.tlua +5 -14
  141. package/types/input.d.tlua +24 -68
  142. package/types/irestore.d.tlua +9 -26
  143. package/types/isave.d.tlua +9 -26
  144. package/types/itexture.d.tlua +10 -29
  145. package/types/ivideowriter.d.tlua +5 -14
  146. package/types/jit.d.tlua +21 -53
  147. package/types/killicon.d.tlua +7 -21
  148. package/types/language.d.tlua +1 -3
  149. package/types/list.d.tlua +8 -24
  150. package/types/markup.d.tlua +2 -6
  151. package/types/markupobject.d.tlua +5 -14
  152. package/types/math.d.tlua +277 -447
  153. package/types/matproxy.d.tlua +3 -9
  154. package/types/matselect.d.tlua +11 -30
  155. package/types/menubar.d.tlua +2 -6
  156. package/types/mesh.d.tlua +19 -57
  157. package/types/motionsensor.d.tlua +10 -30
  158. package/types/navmesh.d.tlua +26 -78
  159. package/types/net.d.tlua +52 -154
  160. package/types/nextbot.d.tlua +46 -116
  161. package/types/notification.d.tlua +2 -6
  162. package/types/npc.d.tlua +182 -543
  163. package/types/numpad.d.tlua +7 -21
  164. package/types/os.d.tlua +4 -10
  165. package/types/panel.d.tlua +333 -991
  166. package/types/pathfollower.d.tlua +31 -92
  167. package/types/permissions.d.tlua +6 -18
  168. package/types/physcollide.d.tlua +3 -8
  169. package/types/physenv.d.tlua +11 -33
  170. package/types/physobj.d.tlua +78 -233
  171. package/types/player.d.tlua +302 -880
  172. package/types/player_manager.d.tlua +13 -39
  173. package/types/presets.d.tlua +6 -18
  174. package/types/projectedtexture.d.tlua +48 -143
  175. package/types/properties.d.tlua +5 -15
  176. package/types/propselect.d.tlua +5 -12
  177. package/types/render.d.tlua +142 -426
  178. package/types/resource.d.tlua +2 -6
  179. package/types/sandbox.d.tlua +54 -159
  180. package/types/saverestore.d.tlua +12 -36
  181. package/types/schedule.d.tlua +6 -17
  182. package/types/scripted_ents.d.tlua +11 -29
  183. package/types/search.d.tlua +1 -3
  184. package/types/serverlist.d.tlua +7 -21
  185. package/types/sound.d.tlua +10 -30
  186. package/types/spawnicon.d.tlua +8 -21
  187. package/types/spawnmenu.d.tlua +24 -70
  188. package/types/spawnmenucontentpanel.d.tlua +5 -12
  189. package/types/sql.d.tlua +9 -27
  190. package/types/stack.d.tlua +5 -14
  191. package/types/steamworks.d.tlua +18 -54
  192. package/types/string.d.tlua +49 -141
  193. package/types/surface.d.tlua +34 -102
  194. package/types/surfaceinfo.d.tlua +5 -14
  195. package/types/system.d.tlua +10 -30
  196. package/types/table.d.tlua +47 -137
  197. package/types/task.d.tlua +9 -26
  198. package/types/team.d.tlua +19 -57
  199. package/types/timer.d.tlua +14 -42
  200. package/types/tool.d.tlua +46 -131
  201. package/types/ugcpublishwindow.d.tlua +9 -24
  202. package/types/umsg.d.tlua +12 -36
  203. package/types/undo.d.tlua +10 -30
  204. package/types/usermessage.d.tlua +2 -6
  205. package/types/utf8.d.tlua +7 -21
  206. package/types/util.d.tlua +94 -274
  207. package/types/vector.d.tlua +36 -108
  208. package/types/vehicle.d.tlua +52 -149
  209. package/types/vgui.d.tlua +18 -46
  210. package/types/vmatrix.d.tlua +35 -105
  211. package/types/weapon.d.tlua +85 -248
  212. package/types/weapons.d.tlua +6 -16
  213. package/types/widgets.d.tlua +1 -3
  214. package/types/workshopfilebase.d.tlua +5 -14
@@ -49,27 +49,18 @@ interface StringLib {
49
49
  * @source https://wiki.facepunch.com/gmod/string.CardinalToOrdinal
50
50
  */
51
51
  CardinalToOrdinal(input: number): string;
52
- }
53
-
54
- interface StringLib {
55
52
  /**
56
53
  * Inserts commas for every third digit of a given number.
57
54
  * @realm shared and menu
58
55
  * @source https://wiki.facepunch.com/gmod/string.Comma
59
56
  */
60
57
  Comma(value: number, separator?: string): string;
61
- }
62
-
63
- interface StringLib {
64
58
  /**
65
59
  * Returns whether or not the second passed string matches the end of the first.
66
60
  * @realm shared and menu
67
61
  * @source https://wiki.facepunch.com/gmod/string.EndsWith
68
62
  */
69
63
  EndsWith(str: string, _end: string): boolean;
70
- }
71
-
72
- interface StringLib {
73
64
  /**
74
65
  * Splits a string up wherever it finds the given separator. string.Split is an
75
66
  * alias of this, except that it doesn't support patterns.
@@ -81,28 +72,18 @@ interface StringLib {
81
72
  * @source https://wiki.facepunch.com/gmod/string.Explode
82
73
  */
83
74
  Explode<Sep extends string, Str extends string>(separator: ConstTpl<Sep>, str: ConstTpl<Str>, withpattern?: boolean): Split<Sep, Str>;
84
- }
85
-
86
-
87
- interface StringLib {
88
75
  /**
89
76
  * Returns the time as a formatted string or as a table if no format is given.
90
77
  * @realm shared and menu
91
78
  * @source https://wiki.facepunch.com/gmod/string.FormattedTime
92
79
  */
93
80
  FormattedTime(float: number, format?: string): string | FormattedTime;
94
- }
95
-
96
- interface StringLib {
97
81
  /**
98
82
  * Creates a string from a Color variable.
99
83
  * @realm shared and menu
100
84
  * @source https://wiki.facepunch.com/gmod/string.FromColor
101
85
  */
102
86
  FromColor(color: Color): string;
103
- }
104
-
105
- interface StringLib {
106
87
  /**
107
88
  * Returns char value from the specified index in the supplied string.
108
89
  * @realm shared and menu
@@ -110,9 +91,6 @@ interface StringLib {
110
91
  * @deprecated Use either string.sub(str, index, index) or str[index].
111
92
  */
112
93
  GetChar(str: string, index: number): string;
113
- }
114
-
115
- interface StringLib {
116
94
  /**
117
95
  * Returns extension of the file.
118
96
  *
@@ -126,9 +104,6 @@ interface StringLib {
126
104
  * @source https://wiki.facepunch.com/gmod/string.GetExtensionFromFilename
127
105
  */
128
106
  GetExtensionFromFilename(path: string): string;
129
- }
130
-
131
- interface StringLib {
132
107
  /**
133
108
  * Returns file name and extension.
134
109
  *
@@ -139,9 +114,6 @@ interface StringLib {
139
114
  * @source https://wiki.facepunch.com/gmod/string.GetFileFromFilename
140
115
  */
141
116
  GetFileFromFilename(path: string): string;
142
- }
143
-
144
- interface StringLib {
145
117
  /**
146
118
  * Returns the path part of a full file path.
147
119
  *
@@ -153,9 +125,6 @@ interface StringLib {
153
125
  * @source https://wiki.facepunch.com/gmod/string.GetPathFromFilename
154
126
  */
155
127
  GetPathFromFilename(path: string): string;
156
- }
157
-
158
- interface StringLib {
159
128
  /**
160
129
  * Joins the values of a table together to form a string.
161
130
  *
@@ -166,36 +135,24 @@ interface StringLib {
166
135
  * @deprecated You really should just use table.concat.
167
136
  */
168
137
  Implode(separator?: string, pieces?: table): string;
169
- }
170
-
171
- interface StringLib {
172
138
  /**
173
139
  * Interpolates a given string with the given table. This is useful for formatting localized strings.
174
140
  * @realm shared and menu
175
141
  * @source https://wiki.facepunch.com/gmod/string.Interpolate
176
142
  */
177
143
  Interpolate(str: string, lookuptable: table): string;
178
- }
179
-
180
- interface StringLib {
181
144
  /**
182
145
  * Escapes special characters for JavaScript in a string, making the string safe for inclusion in to JavaScript strings.
183
146
  * @realm shared and menu
184
147
  * @source https://wiki.facepunch.com/gmod/string.JavascriptSafe
185
148
  */
186
149
  JavascriptSafe(str: string): string;
187
- }
188
-
189
- interface StringLib {
190
150
  /**
191
151
  * Returns everything left of supplied place of that string.
192
152
  * @realm shared and menu
193
153
  * @source https://wiki.facepunch.com/gmod/string.Left
194
154
  */
195
155
  Left(str: string, num: number): string;
196
- }
197
-
198
- interface StringLib {
199
156
  /**
200
157
  * Converts a `"string_likeThis"` to a more human-friendly `"String like This"`.
201
158
  *
@@ -205,63 +162,42 @@ interface StringLib {
205
162
  * @source https://wiki.facepunch.com/gmod/string.NiceName
206
163
  */
207
164
  NiceName(text: string): string;
208
- }
209
-
210
- interface StringLib {
211
165
  /**
212
166
  * Converts a digital filesize to human-readable text.
213
167
  * @realm shared and menu
214
168
  * @source https://wiki.facepunch.com/gmod/string.NiceSize
215
169
  */
216
170
  NiceSize(bytes: number): string;
217
- }
218
-
219
- interface StringLib {
220
171
  /**
221
172
  * Formats the supplied number (in seconds) to the highest possible time unit.
222
173
  * @realm shared and menu
223
174
  * @source https://wiki.facepunch.com/gmod/string.NiceTime
224
175
  */
225
176
  NiceTime(num: number): string;
226
- }
227
-
228
- interface StringLib {
229
177
  /**
230
178
  * Escapes all special characters within a string, making the string safe for inclusion in a Lua pattern.
231
179
  * @realm shared and menu
232
180
  * @source https://wiki.facepunch.com/gmod/string.PatternSafe
233
181
  */
234
182
  PatternSafe(str: string): string;
235
- }
236
-
237
- interface StringLib {
238
183
  /**
239
184
  * Replaces all occurrences of the supplied second string.
240
185
  * @realm shared and menu
241
186
  * @source https://wiki.facepunch.com/gmod/string.Replace
242
187
  */
243
188
  Replace(str: string, find: string, replace: string): string;
244
- }
245
-
246
- interface StringLib {
247
189
  /**
248
190
  * Returns the last n-th characters of the string.
249
191
  * @realm shared and menu
250
192
  * @source https://wiki.facepunch.com/gmod/string.Right
251
193
  */
252
194
  Right(str: string, num: number): string;
253
- }
254
-
255
- interface StringLib {
256
195
  /**
257
196
  * Sets the character at the specific index of the string.
258
197
  * @realm shared and menu
259
198
  * @source https://wiki.facepunch.com/gmod/string.SetChar
260
199
  */
261
200
  SetChar(InputString: string, Index: number, ReplacementChar: string): string;
262
- }
263
-
264
- interface StringLib {
265
201
  /**
266
202
  * Splits the string into a table of strings, separated by the second argument.
267
203
  * An alias of string.Explode, but with flipped arguments.
@@ -273,10 +209,6 @@ interface StringLib {
273
209
  * @source https://wiki.facepunch.com/gmod/string.Split
274
210
  */
275
211
  Split<Sep extends string, Str extends string>(Inputstring: ConstTpl<Str>, Separator: ConstTpl<Sep>): Split<Sep, Str>;
276
- }
277
-
278
-
279
- interface StringLib {
280
212
  /**
281
213
  * Returns whether or not the first string starts with the second. This is a alias of [string.StartsWith](https://wiki.facepunch.com/gmod/string.StartsWith).
282
214
  * @realm shared and menu
@@ -284,18 +216,12 @@ interface StringLib {
284
216
  * @deprecated Use string.StartsWith.
285
217
  */
286
218
  StartWith(inputStr: string, start: string): boolean;
287
- }
288
-
289
- interface StringLib {
290
219
  /**
291
220
  * Returns whether or not the first string starts with the second.
292
221
  * @realm shared and menu
293
222
  * @source https://wiki.facepunch.com/gmod/string.StartsWith
294
223
  */
295
224
  StartsWith(inputStr: string, start: string): boolean;
296
- }
297
-
298
- interface StringLib {
299
225
  /**
300
226
  * Removes the extension of a path.
301
227
  *
@@ -305,9 +231,6 @@ interface StringLib {
305
231
  * @source https://wiki.facepunch.com/gmod/string.StripExtension
306
232
  */
307
233
  StripExtension(path: string): string;
308
- }
309
-
310
- interface StringLib {
311
234
  /**
312
235
  * Attempts to create a Color from a string.
313
236
  *
@@ -315,27 +238,18 @@ interface StringLib {
315
238
  * @source https://wiki.facepunch.com/gmod/string.ToColor
316
239
  */
317
240
  ToColor(colorString: string): Color;
318
- }
319
-
320
- interface StringLib {
321
241
  /**
322
242
  * Returns given time in "MM:SS" format.
323
243
  * @realm shared and menu
324
244
  * @source https://wiki.facepunch.com/gmod/string.ToMinutesSeconds
325
245
  */
326
246
  ToMinutesSeconds(time: number): string;
327
- }
328
-
329
- interface StringLib {
330
247
  /**
331
248
  * Returns given time in "MM:SS:MS" format.
332
249
  * @realm shared and menu
333
250
  * @source https://wiki.facepunch.com/gmod/string.ToMinutesSecondsMilliseconds
334
251
  */
335
252
  ToMinutesSecondsMilliseconds(time: number): string;
336
- }
337
-
338
- interface StringLib {
339
253
  /**
340
254
  * Splits the string into characters and creates a sequential table of characters.
341
255
  *
@@ -346,36 +260,24 @@ interface StringLib {
346
260
  * @source https://wiki.facepunch.com/gmod/string.ToTable
347
261
  */
348
262
  ToTable(str: string): table;
349
- }
350
-
351
- interface StringLib {
352
263
  /**
353
264
  * Removes leading and trailing matches of a string.
354
265
  * @realm shared and menu
355
266
  * @source https://wiki.facepunch.com/gmod/string.Trim
356
267
  */
357
268
  Trim(Inputstring: string, Char?: string): string;
358
- }
359
-
360
- interface StringLib {
361
269
  /**
362
270
  * Removes leading spaces/characters from a string.
363
271
  * @realm shared and menu
364
272
  * @source https://wiki.facepunch.com/gmod/string.TrimLeft
365
273
  */
366
274
  TrimLeft(str: string, char?: string): string;
367
- }
368
-
369
- interface StringLib {
370
275
  /**
371
276
  * Removes trailing spaces/passed character from a string.
372
277
  * @realm shared and menu
373
278
  * @source https://wiki.facepunch.com/gmod/string.TrimRight
374
279
  */
375
280
  TrimRight(str: string, char?: string): string;
376
- }
377
-
378
- interface StringLib {
379
281
  /**
380
282
  * Returns the given string's characters in their numeric ASCII representation.
381
283
  * **WARNING**: This function will throw an error if the slice length is greater than 8000 characters.
@@ -385,18 +287,12 @@ interface StringLib {
385
287
  * @source https://wiki.facepunch.com/gmod/string.byte
386
288
  */
387
289
  byte(string: string, startPos?: number, endPos?: number): (...any);
388
- }
389
-
390
- interface StringLib {
391
290
  /**
392
291
  * Takes the given numerical bytes and converts them to a string.
393
292
  * @realm shared and menu
394
293
  * @source https://wiki.facepunch.com/gmod/string.char
395
294
  */
396
295
  char(...: any): string;
397
- }
398
-
399
- interface StringLib {
400
296
  /**
401
297
  * Returns the binary bytecode of the given function.
402
298
  *
@@ -407,9 +303,6 @@ interface StringLib {
407
303
  * @source https://wiki.facepunch.com/gmod/string.dump
408
304
  */
409
305
  dump(func: function, stripDebugInfo?: boolean): string;
410
- }
411
-
412
- interface StringLib {
413
306
  /**
414
307
  * Attempts to find the specified substring in a string.
415
308
  *
@@ -420,18 +313,12 @@ interface StringLib {
420
313
  * @source https://wiki.facepunch.com/gmod/string.find
421
314
  */
422
315
  find(haystack: string, needle: string, startPos?: number, noPatterns?: boolean): (number, number, string);
423
- }
424
-
425
- interface StringLib {
426
316
  /**
427
317
  * Formats the specified values into the string given.
428
318
  * @realm shared and menu
429
319
  * @source https://wiki.facepunch.com/gmod/string.format
430
320
  */
431
321
  format(format: string, ...: any): string;
432
- }
433
-
434
- interface StringLib {
435
322
  /**
436
323
  * Returns an iterator function that is called for every complete match of the pattern, all sub matches will be passed as to the loop.
437
324
  * @realm shared and menu
@@ -439,18 +326,12 @@ interface StringLib {
439
326
  * @deprecated This function is removed in Lua versions later than what GMod is currently using. Use string.gmatch instead.
440
327
  */
441
328
  gfind(data: string, pattern: string): function;
442
- }
443
-
444
- interface StringLib {
445
329
  /**
446
330
  * Using [Patterns](https://wiki.facepunch.com/gmod/Patterns), returns an iterator which will return either one value if no capture groups are defined, or any capture group matches.
447
331
  * @realm shared and menu
448
332
  * @source https://wiki.facepunch.com/gmod/string.gmatch
449
333
  */
450
334
  gmatch(data: string, pattern: string): function;
451
- }
452
-
453
- interface StringLib {
454
335
  /**
455
336
  * Replaces certain character sequences in a string using Patterns.
456
337
  *
@@ -461,19 +342,12 @@ interface StringLib {
461
342
  * @source https://wiki.facepunch.com/gmod/string.gsub
462
343
  */
463
344
  gsub(string: string, pattern: string, replacement: string | table | ((...: string) => string), maxReplaces?: number): (string, number);
464
- }
465
-
466
-
467
- interface StringLib {
468
345
  /**
469
346
  * Counts the number of characters in the string (length). This is equivalent to using the length operator (#).
470
347
  * @realm shared and menu
471
348
  * @source https://wiki.facepunch.com/gmod/string.len
472
349
  */
473
350
  len(str: string): number;
474
- }
475
-
476
- interface StringLib {
477
351
  /**
478
352
  * Changes any upper-case letters in a string to lower-case letters.
479
353
  * **NOTE**: This function doesn't work on special non-English UTF-8 characters.
@@ -483,45 +357,30 @@ interface StringLib {
483
357
  * @source https://wiki.facepunch.com/gmod/string.lower
484
358
  */
485
359
  lower(str: string): string;
486
- }
487
-
488
- interface StringLib {
489
360
  /**
490
361
  * Finds a [Pattern](https://wiki.facepunch.com/gmod/Patterns) in a string.
491
362
  * @realm shared and menu
492
363
  * @source https://wiki.facepunch.com/gmod/string.match
493
364
  */
494
365
  match(string: string, pattern: string, startPosition?: number): (...any);
495
- }
496
-
497
- interface StringLib {
498
366
  /**
499
367
  * Repeats a string by the provided number, with an optional separator.
500
368
  * @realm shared and menu
501
369
  * @source https://wiki.facepunch.com/gmod/string.rep
502
370
  */
503
371
  rep(str: string, repetitions: number, separator?: string): string;
504
- }
505
-
506
- interface StringLib {
507
372
  /**
508
373
  * Reverses a string.
509
374
  * @realm shared and menu
510
375
  * @source https://wiki.facepunch.com/gmod/string.reverse
511
376
  */
512
377
  reverse(str: string): string;
513
- }
514
-
515
- interface StringLib {
516
378
  /**
517
379
  * Returns a sub-string, starting from the character at position `StartPos` of the string (inclusive), and optionally ending at the character at position `EndPos` of the string (also inclusive). If EndPos is not given, the rest of the string is returned.
518
380
  * @realm shared and menu
519
381
  * @source https://wiki.facepunch.com/gmod/string.sub
520
382
  */
521
383
  sub(string: string, StartPos: number, EndPos?: number): string;
522
- }
523
-
524
- interface StringLib {
525
384
  /**
526
385
  * Changes any lower-case letters in a string to upper-case letters.
527
386
  * **NOTE**: This function doesn't work on special non-English UTF-8 characters.
@@ -533,3 +392,52 @@ interface StringLib {
533
392
  upper(str: string): string;
534
393
  }
535
394
 
395
+
396
+
397
+
398
+
399
+
400
+
401
+
402
+
403
+
404
+
405
+
406
+
407
+
408
+
409
+
410
+
411
+
412
+
413
+
414
+
415
+
416
+
417
+
418
+
419
+
420
+
421
+
422
+
423
+
424
+
425
+
426
+
427
+
428
+
429
+
430
+
431
+
432
+
433
+
434
+
435
+
436
+
437
+
438
+
439
+
440
+
441
+
442
+
443
+