@rbxts/types 1.0.623 → 1.0.626

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.
@@ -399,6 +399,7 @@ interface Instances extends Services, CreatableInstances, AbstractInstances {
399
399
  AnimationClip: AnimationClip;
400
400
  AnimationStreamTrack: AnimationStreamTrack;
401
401
  AnimationTrack: AnimationTrack;
402
+ AssetImportSession: AssetImportSession;
402
403
  BaseWrap: BaseWrap;
403
404
  CatalogPages: CatalogPages;
404
405
  ChatInputBarConfiguration: ChatInputBarConfiguration;
@@ -2045,6 +2046,19 @@ interface AssetImportService extends Instance {
2045
2046
  readonly UploadFinished: RBXScriptSignal<(succeeded: boolean, errorMap: object) => void>;
2046
2047
  }
2047
2048
 
2049
+ interface AssetImportSession extends Instance {
2050
+ /**
2051
+ * **DO NOT USE!**
2052
+ *
2053
+ * This field exists to force TypeScript to recognize this as a nominal type
2054
+ * @hidden
2055
+ * @deprecated
2056
+ */
2057
+ readonly _nominal_AssetImportSession: unique symbol;
2058
+ readonly UploadComplete: RBXScriptSignal<(succeeded: boolean, errorMap: object) => void>;
2059
+ readonly UploadProgress: RBXScriptSignal<(progressRatio: number) => void>;
2060
+ }
2061
+
2048
2062
  interface AssetManagerService extends Instance {
2049
2063
  /**
2050
2064
  * **DO NOT USE!**
@@ -34695,7 +34709,7 @@ interface UserInputService extends Instance {
34695
34709
  *
34696
34710
  * As this event only fires locally, it can only be used in a [LocalScript](https://developer.roblox.com/en-us/api-reference/class/LocalScript).
34697
34711
  */
34698
- readonly TouchTap: RBXScriptSignal<(touchPositions: Array<InputObject>, gameProcessedEvent: boolean) => void>;
34712
+ readonly TouchTap: RBXScriptSignal<(touchPositions: Array<Vector2>, gameProcessedEvent: boolean) => void>;
34699
34713
  /**
34700
34714
  * The TouchTapInWorld event fires when the user touches/taps their finger on the screen on a [TouchEnabled](https://developer.roblox.com/en-us/api-reference/property/UserInputService/TouchEnabled) device. It is fired when the user taps in the game world.
34701
34715
  *
@@ -946,6 +946,18 @@ interface LuaSettings extends Instance {
946
946
  readonly _nominal_LuaSettings: unique symbol;
947
947
  }
948
948
 
949
+ interface BaseScript extends LuaSourceContainer {
950
+ /**
951
+ * **DO NOT USE!**
952
+ *
953
+ * This field exists to force TypeScript to recognize this as a nominal type
954
+ * @hidden
955
+ * @deprecated
956
+ */
957
+ readonly _nominal_BaseScript: unique symbol;
958
+ RunContext: Enum.RunContext;
959
+ }
960
+
949
961
  interface Script extends BaseScript {
950
962
  /**
951
963
  * **DO NOT USE!**
@@ -2682,12 +2694,14 @@ interface ScriptDocument extends Instance {
2682
2694
  GetLine(this: ScriptDocument, lineIndex?: number): string;
2683
2695
  GetLineCount(this: ScriptDocument): number;
2684
2696
  GetScript(this: ScriptDocument): LuaSourceContainer;
2697
+ GetSelection(this: ScriptDocument): unknown;
2685
2698
  GetText(this: ScriptDocument, startLine?: number, startCharacter?: number, endLine?: number, endCharacter?: number): string;
2686
2699
  IsCommandBar(this: ScriptDocument): boolean;
2687
2700
  /**
2688
2701
  * Tags: Yields
2689
2702
  */
2690
2703
  EditTextAsync(this: ScriptDocument, newText: string, startLine: number, startCharacter: number, endLine: number, endCharacter: number): unknown;
2704
+ readonly SelectionChanged: RBXScriptSignal<(positionLine: number, positionCharacter: number, anchorLine: number, anchorCharacter: number) => void>;
2691
2705
  }
2692
2706
 
2693
2707
  interface ScriptEditorService extends Instance {
@@ -1842,9 +1842,9 @@ declare namespace Enum {
1842
1842
 
1843
1843
  export const Z: Z;
1844
1844
  /** @deprecated renamed to Z */
1845
- export const Back: Z;
1846
- /** @deprecated renamed to Z */
1847
1845
  export const Front: Z;
1846
+ /** @deprecated renamed to Z */
1847
+ export const Back: Z;
1848
1848
 
1849
1849
  export function GetEnumItems(this: Enum): Array<Axis>
1850
1850
  }
@@ -3611,14 +3611,8 @@ declare namespace Enum {
3611
3611
  }
3612
3612
 
3613
3613
  export const Medium: Medium;
3614
-
3615
- export interface Default extends EnumItem {
3616
- Name: "Default";
3617
- Value: 2000;
3618
- EnumType: typeof ContextActionPriority;
3619
- }
3620
-
3621
- export const Default: Default;
3614
+ /** @deprecated renamed to Medium */
3615
+ export const Default: Medium;
3622
3616
 
3623
3617
  export interface High extends EnumItem {
3624
3618
  Name: "High";
@@ -3630,7 +3624,7 @@ declare namespace Enum {
3630
3624
 
3631
3625
  export function GetEnumItems(this: Enum): Array<ContextActionPriority>
3632
3626
  }
3633
- export type ContextActionPriority = ContextActionPriority.Low | ContextActionPriority.Medium | ContextActionPriority.Default | ContextActionPriority.High;
3627
+ export type ContextActionPriority = ContextActionPriority.Low | ContextActionPriority.Medium | ContextActionPriority.High;
3634
3628
  export namespace ContextActionResult {
3635
3629
  export interface Pass extends EnumItem {
3636
3630
  Name: "Pass";
@@ -6994,27 +6988,27 @@ declare namespace Enum {
6994
6988
 
6995
6989
  export const NoInput: NoInput;
6996
6990
  /** @deprecated renamed to NoInput */
6997
- export const RightTread: NoInput;
6991
+ export const Action4: NoInput;
6998
6992
  /** @deprecated renamed to NoInput */
6999
- export const UpDown: NoInput;
6993
+ export const Action5: NoInput;
7000
6994
  /** @deprecated renamed to NoInput */
7001
- export const Action2: NoInput;
6995
+ export const RightTread: NoInput;
7002
6996
  /** @deprecated renamed to NoInput */
7003
- export const Action3: NoInput;
6997
+ export const Throtle: NoInput;
6998
+ /** @deprecated renamed to NoInput */
6999
+ export const Action1: NoInput;
7004
7000
  /** @deprecated renamed to NoInput */
7005
7001
  export const Steer: NoInput;
7006
7002
  /** @deprecated renamed to NoInput */
7007
7003
  export const Throttle: NoInput;
7008
7004
  /** @deprecated renamed to NoInput */
7009
- export const Action1: NoInput;
7005
+ export const Action2: NoInput;
7010
7006
  /** @deprecated renamed to NoInput */
7011
- export const Throtle: NoInput;
7007
+ export const UpDown: NoInput;
7012
7008
  /** @deprecated renamed to NoInput */
7013
7009
  export const LeftTread: NoInput;
7014
7010
  /** @deprecated renamed to NoInput */
7015
- export const Action4: NoInput;
7016
- /** @deprecated renamed to NoInput */
7017
- export const Action5: NoInput;
7011
+ export const Action3: NoInput;
7018
7012
 
7019
7013
  export interface Constant extends EnumItem {
7020
7014
  Name: "Constant";
@@ -12529,6 +12523,42 @@ declare namespace Enum {
12529
12523
  export function GetEnumItems(this: Enum): Array<RotationType>
12530
12524
  }
12531
12525
  export type RotationType = RotationType.MovementRelative | RotationType.CameraRelative;
12526
+ export namespace RunContext {
12527
+ export interface Legacy extends EnumItem {
12528
+ Name: "Legacy";
12529
+ Value: 0;
12530
+ EnumType: typeof RunContext;
12531
+ }
12532
+
12533
+ export const Legacy: Legacy;
12534
+
12535
+ export interface Server extends EnumItem {
12536
+ Name: "Server";
12537
+ Value: 1;
12538
+ EnumType: typeof RunContext;
12539
+ }
12540
+
12541
+ export const Server: Server;
12542
+
12543
+ export interface Client extends EnumItem {
12544
+ Name: "Client";
12545
+ Value: 2;
12546
+ EnumType: typeof RunContext;
12547
+ }
12548
+
12549
+ export const Client: Client;
12550
+
12551
+ export interface Plugin extends EnumItem {
12552
+ Name: "Plugin";
12553
+ Value: 3;
12554
+ EnumType: typeof RunContext;
12555
+ }
12556
+
12557
+ export const Plugin: Plugin;
12558
+
12559
+ export function GetEnumItems(this: Enum): Array<RunContext>
12560
+ }
12561
+ export type RunContext = RunContext.Legacy | RunContext.Server | RunContext.Client | RunContext.Plugin;
12532
12562
  export namespace RuntimeUndoBehavior {
12533
12563
  export interface Aggregate extends EnumItem {
12534
12564
  Name: "Aggregate";
@@ -14654,9 +14684,9 @@ declare namespace Enum {
14654
14684
 
14655
14685
  export const Smooth: Smooth;
14656
14686
  /** @deprecated renamed to Smooth */
14657
- export const Unjoinable: Smooth;
14658
- /** @deprecated renamed to Smooth */
14659
14687
  export const Spawn: Smooth;
14688
+ /** @deprecated renamed to Smooth */
14689
+ export const Unjoinable: Smooth;
14660
14690
 
14661
14691
  export interface Glue extends EnumItem {
14662
14692
  Name: "Glue";
@@ -16678,9 +16708,25 @@ declare namespace Enum {
16678
16708
 
16679
16709
  export const HSRInnerReverse: HSRInnerReverse;
16680
16710
 
16711
+ export interface LayerCageFittedToBase extends EnumItem {
16712
+ Name: "LayerCageFittedToBase";
16713
+ Value: 12;
16714
+ EnumType: typeof WrapLayerDebugMode;
16715
+ }
16716
+
16717
+ export const LayerCageFittedToBase: LayerCageFittedToBase;
16718
+
16719
+ export interface LayerCageFittedToPrev extends EnumItem {
16720
+ Name: "LayerCageFittedToPrev";
16721
+ Value: 13;
16722
+ EnumType: typeof WrapLayerDebugMode;
16723
+ }
16724
+
16725
+ export const LayerCageFittedToPrev: LayerCageFittedToPrev;
16726
+
16681
16727
  export function GetEnumItems(this: Enum): Array<WrapLayerDebugMode>
16682
16728
  }
16683
- export type WrapLayerDebugMode = WrapLayerDebugMode.None | WrapLayerDebugMode.BoundCage | WrapLayerDebugMode.LayerCage | WrapLayerDebugMode.BoundCageAndLinks | WrapLayerDebugMode.Reference | WrapLayerDebugMode.Rbf | WrapLayerDebugMode.OuterCage | WrapLayerDebugMode.ReferenceMeshAfterMorph | WrapLayerDebugMode.HSROuterDetail | WrapLayerDebugMode.HSROuter | WrapLayerDebugMode.HSRInner | WrapLayerDebugMode.HSRInnerReverse;
16729
+ export type WrapLayerDebugMode = WrapLayerDebugMode.None | WrapLayerDebugMode.BoundCage | WrapLayerDebugMode.LayerCage | WrapLayerDebugMode.BoundCageAndLinks | WrapLayerDebugMode.Reference | WrapLayerDebugMode.Rbf | WrapLayerDebugMode.OuterCage | WrapLayerDebugMode.ReferenceMeshAfterMorph | WrapLayerDebugMode.HSROuterDetail | WrapLayerDebugMode.HSROuter | WrapLayerDebugMode.HSRInner | WrapLayerDebugMode.HSRInnerReverse | WrapLayerDebugMode.LayerCageFittedToBase | WrapLayerDebugMode.LayerCageFittedToPrev;
16684
16730
  export namespace WrapTargetDebugMode {
16685
16731
  export interface None extends EnumItem {
16686
16732
  Name: "None";
@@ -551,6 +551,8 @@ interface RBXScriptSignal<T extends Callback = Callback> {
551
551
 
552
552
  ConnectParallel(this: RBXScriptSignal, callback: T): RBXScriptConnection;
553
553
 
554
+ Once(this: RBXScriptSignal, callback: T): RBXScriptConnection;
555
+
554
556
  /**
555
557
  * Yields the current thread until this signal is fired. Returns what was fired to the signal.
556
558
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rbxts/types",
3
- "version": "1.0.623",
3
+ "version": "1.0.626",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },