@rbxts/types 1.0.934 → 1.0.936
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 +41 -0
- package/package.json +1 -1
package/include/roblox.d.ts
CHANGED
|
@@ -2548,6 +2548,38 @@ interface UDim2Constructor {
|
|
|
2548
2548
|
|
|
2549
2549
|
declare const UDim2: UDim2Constructor;
|
|
2550
2550
|
|
|
2551
|
+
// User
|
|
2552
|
+
interface User {
|
|
2553
|
+
/**
|
|
2554
|
+
* **DO NOT USE!**
|
|
2555
|
+
*
|
|
2556
|
+
* This field exists to force TypeScript to recognize this as a nominal type
|
|
2557
|
+
* @hidden
|
|
2558
|
+
* @deprecated
|
|
2559
|
+
*/
|
|
2560
|
+
readonly _nominal_User: unique symbol;
|
|
2561
|
+
/** The domain user ID for this user within the associated domain. This is an integer that uniquely identifies the user within the specific domain type and domain ID combination. */
|
|
2562
|
+
readonly Id: number;
|
|
2563
|
+
/** The `Enum.DomainType` that identifies the kind of domain this domain user ID belongs to. Currently supported values are `Enum.DomainType.EXPERIENCE` and `Enum.DomainType.OAUTH`. */
|
|
2564
|
+
readonly DomainType: Enum.DomainType;
|
|
2565
|
+
/** The identifier of the specific domain instance that this user ID is scoped to. For `Enum.DomainType.EXPERIENCE`, this is the universe ID. For `Enum.DomainType.OAUTH`, this is the application ID. */
|
|
2566
|
+
readonly DomainId: number;
|
|
2567
|
+
/**
|
|
2568
|
+
* Serializes this `User` into a string that encodes the domain type, domain ID, and domain user ID. The result is stable, URL-safe, and compact. Use this when storing or transmitting user identity.
|
|
2569
|
+
* The string can be converted back to a `User` via `User.fromString()`.
|
|
2570
|
+
*/
|
|
2571
|
+
ToString(this: User): string;
|
|
2572
|
+
}
|
|
2573
|
+
|
|
2574
|
+
interface UserConstructor {
|
|
2575
|
+
/** Creates a new `User` from the given domain user ID, using the current experience as the domain. The ID must be a valid domain user ID (above the global user ID range). */
|
|
2576
|
+
fromId: (domainUserId: number) => User;
|
|
2577
|
+
/** Deserializes a `User` from a string previously produced by ToString(). */
|
|
2578
|
+
fromString: (userString: string) => User;
|
|
2579
|
+
}
|
|
2580
|
+
|
|
2581
|
+
declare const User: UserConstructor;
|
|
2582
|
+
|
|
2551
2583
|
// ValueCurveKey
|
|
2552
2584
|
interface ValueCurveKey {
|
|
2553
2585
|
/**
|
|
@@ -3152,12 +3184,15 @@ declare function type(value: unknown): keyof CheckablePrimitives;
|
|
|
3152
3184
|
|
|
3153
3185
|
/** The strings which can be returned by typeOf and their corresponding types */
|
|
3154
3186
|
interface CheckableTypes extends CheckablePrimitives {
|
|
3187
|
+
AdReward: AdReward;
|
|
3155
3188
|
Axes: Axes;
|
|
3156
3189
|
BrickColor: BrickColor;
|
|
3157
3190
|
CFrame: CFrame;
|
|
3191
|
+
CatalogSearchParams: CatalogSearchParams;
|
|
3158
3192
|
Color3: Color3;
|
|
3159
3193
|
ColorSequence: ColorSequence;
|
|
3160
3194
|
ColorSequenceKeypoint: ColorSequenceKeypoint;
|
|
3195
|
+
Content: Content;
|
|
3161
3196
|
DateTime: DateTime;
|
|
3162
3197
|
DockWidgetPluginGuiInfo: DockWidgetPluginGuiInfo;
|
|
3163
3198
|
Enum: Enum;
|
|
@@ -3171,6 +3206,7 @@ interface CheckableTypes extends CheckablePrimitives {
|
|
|
3171
3206
|
NumberSequence: NumberSequence;
|
|
3172
3207
|
NumberSequenceKeypoint: NumberSequenceKeypoint;
|
|
3173
3208
|
OverlapParams: OverlapParams;
|
|
3209
|
+
Path2DControlPoint: Path2DControlPoint;
|
|
3174
3210
|
PathWaypoint: PathWaypoint;
|
|
3175
3211
|
PhysicalProperties: PhysicalProperties;
|
|
3176
3212
|
Random: Random;
|
|
@@ -3182,10 +3218,15 @@ interface CheckableTypes extends CheckablePrimitives {
|
|
|
3182
3218
|
Rect: Rect;
|
|
3183
3219
|
Region3: Region3;
|
|
3184
3220
|
Region3int16: Region3int16;
|
|
3221
|
+
RotationCurveKey: RotationCurveKey;
|
|
3185
3222
|
Secret: Secret;
|
|
3223
|
+
SecurityCapabilities: SecurityCapabilities;
|
|
3224
|
+
SharedTable: SharedTable;
|
|
3186
3225
|
TweenInfo: TweenInfo;
|
|
3187
3226
|
UDim: UDim;
|
|
3188
3227
|
UDim2: UDim2;
|
|
3228
|
+
User: User;
|
|
3229
|
+
ValueCurveKey: ValueCurveKey;
|
|
3189
3230
|
Vector2: Vector2;
|
|
3190
3231
|
Vector2int16: Vector2int16;
|
|
3191
3232
|
Vector3: Vector3;
|