@rbxts/types 1.0.616 → 1.0.617
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.
- package/include/roblox.d.ts +7 -7
- package/package.json +1 -1
package/include/roblox.d.ts
CHANGED
|
@@ -1183,7 +1183,7 @@ interface Color3 {
|
|
|
1183
1183
|
/** Returns a Color3 interpolated between two Color3 objects. Alpha is a number from 0 to 1. */
|
|
1184
1184
|
Lerp(this: Color3, goal: Color3, alpha: number): Color3;
|
|
1185
1185
|
/** Returns the [hue, saturation, and value](https://en.wikipedia.org/wiki/HSL_and_HSV) of a Color3. This function is the inverse operation of the `Color3.fromHSV` constructor. */
|
|
1186
|
-
ToHSV(): LuaTuple<[number, number, number]>;
|
|
1186
|
+
ToHSV(this: Color3): LuaTuple<[number, number, number]>;
|
|
1187
1187
|
/**
|
|
1188
1188
|
* Converts the color to a six-character hexadecimal string representing the color in the format RRGGBB. It is not
|
|
1189
1189
|
* prefixed with an octothorpe (#), although this can be concatenated easily.
|
|
@@ -1194,7 +1194,7 @@ interface Color3 {
|
|
|
1194
1194
|
* print(BrickColor.new("Really red").Color:ToHex()) --> "FF0000"
|
|
1195
1195
|
* ```
|
|
1196
1196
|
*/
|
|
1197
|
-
ToHex(): string;
|
|
1197
|
+
ToHex(this: Color3): string;
|
|
1198
1198
|
}
|
|
1199
1199
|
|
|
1200
1200
|
interface Color3Constructor {
|
|
@@ -1319,16 +1319,16 @@ interface DateTime {
|
|
|
1319
1319
|
readonly UnixTimestampMillis: number;
|
|
1320
1320
|
|
|
1321
1321
|
/** Converts the value of this DateTime object to Universal Coordinated Time (UTC) */
|
|
1322
|
-
ToUniversalTime(): TimeValueTable;
|
|
1322
|
+
ToUniversalTime(this: DateTime): TimeValueTable;
|
|
1323
1323
|
|
|
1324
1324
|
/** Converts the value of this DateTime object to local time */
|
|
1325
|
-
ToLocalTime(): TimeValueTable;
|
|
1325
|
+
ToLocalTime(this: DateTime): TimeValueTable;
|
|
1326
1326
|
|
|
1327
1327
|
/**
|
|
1328
1328
|
* Formats a date as a [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date-time string.
|
|
1329
1329
|
* An example ISO 8601 date-time string would be `2020-01-02T10:30:45Z`, which represents January 2nd 2020 at 10:30 AM, 45 seconds.
|
|
1330
1330
|
*/
|
|
1331
|
-
ToIsoDate(): string;
|
|
1331
|
+
ToIsoDate(this: DateTime): string;
|
|
1332
1332
|
|
|
1333
1333
|
/**
|
|
1334
1334
|
* Generates a string from the DateTime value interpreted as Universal Coordinated Time (UTC) and a format string.
|
|
@@ -1337,7 +1337,7 @@ interface DateTime {
|
|
|
1337
1337
|
* @param format
|
|
1338
1338
|
* @param locale
|
|
1339
1339
|
*/
|
|
1340
|
-
FormatUniversalTime(format: string, locale: string): string;
|
|
1340
|
+
FormatUniversalTime(this: DateTime, format: string, locale: string): string;
|
|
1341
1341
|
|
|
1342
1342
|
/**
|
|
1343
1343
|
* Generates a string from the DateTime value interpreted as local time and a format string.
|
|
@@ -1346,7 +1346,7 @@ interface DateTime {
|
|
|
1346
1346
|
* @param format
|
|
1347
1347
|
* @param locale
|
|
1348
1348
|
*/
|
|
1349
|
-
FormatLocalTime(format: string, locale: string): string;
|
|
1349
|
+
FormatLocalTime(this: DateTime, format: string, locale: string): string;
|
|
1350
1350
|
}
|
|
1351
1351
|
|
|
1352
1352
|
interface DateTimeConstructor {
|