@rbxts/types 1.0.604 → 1.0.607
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.
|
@@ -3575,7 +3575,11 @@ interface StudioService extends Instance {
|
|
|
3575
3575
|
UseLocalSpace: boolean;
|
|
3576
3576
|
AnimationIdSelected(this: StudioService, id: number): void;
|
|
3577
3577
|
CopyToClipboard(this: StudioService, stringToCopy: string): void;
|
|
3578
|
-
|
|
3578
|
+
DEPRECATED_EmitPlacePublishedSignal(this: StudioService): void;
|
|
3579
|
+
DEPRECATED_RefreshDocumentDisplayName(this: StudioService): void;
|
|
3580
|
+
DEPRECATED_SetUniverseDisplayName(this: StudioService, newName: string): void;
|
|
3581
|
+
DEPRECATED_ShowSaveOrPublishPlaceToRoblox(this: StudioService, showGameSelect: boolean, isPublish: boolean, closeMode: CastsToEnum<Enum.StudioCloseMode>): void;
|
|
3582
|
+
DEPRECATED_publishAs(this: StudioService, universeId: number, placeId: number, groupId: number): void;
|
|
3579
3583
|
GetBadgeConfigureUrl(this: StudioService, badgeId: number): string;
|
|
3580
3584
|
GetBadgeUploadUrl(this: StudioService): string;
|
|
3581
3585
|
/**
|
|
@@ -3615,14 +3619,10 @@ interface StudioService extends Instance {
|
|
|
3615
3619
|
IsPluginInstalled(this: StudioService, assetId: number): boolean;
|
|
3616
3620
|
IsPluginUpToDate(this: StudioService, assetId: number, currentAssetVersion: number): boolean;
|
|
3617
3621
|
OpenInBrowser_DONOTUSE(this: StudioService, url: string): void;
|
|
3618
|
-
PublishAs(this: StudioService, universeId: number, placeId: number, groupId: number): void;
|
|
3619
|
-
RefreshDocumentDisplayName(this: StudioService): void;
|
|
3620
3622
|
RequestClose(this: StudioService, closeMode: CastsToEnum<Enum.StudioCloseMode>): void;
|
|
3621
3623
|
SetPluginEnabled(this: StudioService, assetId: number, state: boolean): void;
|
|
3622
|
-
SetUniverseDisplayName(this: StudioService, newName: string): void;
|
|
3623
3624
|
ShowPlaceVersionHistoryDialog(this: StudioService, placeId: number): void;
|
|
3624
3625
|
ShowPublishToRoblox(this: StudioService): void;
|
|
3625
|
-
ShowSaveOrPublishPlaceToRoblox(this: StudioService, showGameSelect: boolean, isPublish: boolean, closeMode: CastsToEnum<Enum.StudioCloseMode>): void;
|
|
3626
3626
|
UninstallPlugin(this: StudioService, assetId: number): void;
|
|
3627
3627
|
UpdatePluginManagement(this: StudioService): void;
|
|
3628
3628
|
/**
|
|
@@ -3651,16 +3651,16 @@ interface StudioService extends Instance {
|
|
|
3651
3651
|
* Tags: Yields
|
|
3652
3652
|
*/
|
|
3653
3653
|
TryInstallPlugin(this: StudioService, assetId: number, assetVersionId: number): void;
|
|
3654
|
-
readonly
|
|
3655
|
-
readonly
|
|
3654
|
+
readonly DEPRECATED_GameNameUpdated: RBXScriptSignal<(name: string) => void>;
|
|
3655
|
+
readonly DEPRECATED_GamePublishFinished: RBXScriptSignal<(success: boolean, gameId: number) => void>;
|
|
3656
|
+
readonly DEPRECATED_OnPublishPlaceToRoblox: RBXScriptSignal<(isOverwritePublish: boolean) => void>;
|
|
3657
|
+
readonly DEPRECATED_OnSaveOrPublishPlaceToRoblox: RBXScriptSignal<(showGameSelect: boolean, isPublish: boolean, closeMode: Enum.StudioCloseMode) => void>;
|
|
3656
3658
|
readonly OnImportFromRoblox: RBXScriptSignal<() => void>;
|
|
3657
3659
|
readonly OnOpenGameSettings: RBXScriptSignal<(pageIdentifier: string) => void>;
|
|
3658
3660
|
readonly OnOpenManagePackagePlugin: RBXScriptSignal<(userId: number, assetId: number) => void>;
|
|
3659
3661
|
readonly OnPluginInstalledFromToolbox: RBXScriptSignal<() => void>;
|
|
3660
3662
|
readonly OnPluginInstalledFromWeb: RBXScriptSignal<(pluginId: string) => void>;
|
|
3661
3663
|
readonly OnPublishAsPlugin: RBXScriptSignal<(instances: Array<Instance>) => void>;
|
|
3662
|
-
readonly OnPublishPlaceToRoblox: RBXScriptSignal<(isOverwritePublish: boolean) => void>;
|
|
3663
|
-
readonly OnSaveOrPublishPlaceToRoblox: RBXScriptSignal<(showGameSelect: boolean, isPublish: boolean, closeMode: Enum.StudioCloseMode) => void>;
|
|
3664
3664
|
readonly OnSaveToRoblox: RBXScriptSignal<(instances: Array<Instance>) => void>;
|
|
3665
3665
|
readonly PromptTransformPluginCheckEnable: RBXScriptSignal<() => void>;
|
|
3666
3666
|
readonly SaveLocallyAsComplete: RBXScriptSignal<(success: boolean) => void>;
|
package/include/lua.d.ts
CHANGED
|
@@ -47,55 +47,37 @@ declare function tonumber(arg: unknown, base?: number): number | undefined;
|
|
|
47
47
|
/** Receives an argument of any type and converts it to a string in a reasonable format. If the metatable of e has a "__tostring" field, then tostring calls the corresponding value with e as an argument and uses the result of the call as its result. For complete control of how numbers are converted, use string.format. */
|
|
48
48
|
declare function tostring(value: unknown): string;
|
|
49
49
|
|
|
50
|
-
/**
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
)
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
: U extends [infer A, infer B, infer C, infer D]
|
|
61
|
-
? [true, A, B, C, D] | [false, string, undefined, undefined, undefined]
|
|
62
|
-
: U extends [infer A, infer B, infer C, infer D, infer E]
|
|
63
|
-
? [true, A, B, C, D, E] | [false, string, undefined, undefined, undefined, undefined]
|
|
64
|
-
: U extends [infer A, infer B, infer C, infer D, infer E, infer F]
|
|
65
|
-
? [true, A, B, C, D, E, F] | [false, string, undefined, undefined, undefined, undefined, undefined]
|
|
66
|
-
: [true, U] | [false, string]
|
|
67
|
-
>;
|
|
68
|
-
|
|
69
|
-
/** Calls the function func with the given arguments in protected mode. This means that any error inside func is not propagated; instead, pcall catches the error and returns a status code. Its first result is the status code (a boolean), which is true if the call succeeds without errors. In such case, pcall also returns all results from the call, after this first result. In case of any error, pcall returns false plus the error message. */
|
|
50
|
+
/**
|
|
51
|
+
* Calls the function `func` with the given arguments in protected mode. This means that any error inside `func` is not
|
|
52
|
+
* propagated; instead, pcall catches the error and returns a status code. Its first result is the status code
|
|
53
|
+
* (a boolean), which is true if the call succeeds without errors. In such case, pcall also returns all results from the
|
|
54
|
+
* call, after this first result. In case of any error, pcall returns false plus the error message.
|
|
55
|
+
*/
|
|
56
|
+
declare function pcall<T extends Array<any>, U extends Array<any>>(
|
|
57
|
+
func: (...args: T) => LuaTuple<U>,
|
|
58
|
+
...args: T
|
|
59
|
+
): LuaTuple<[true, ...U] | [false, ...{ [K in keyof U]: K extends "0" ? unknown : undefined }]>;
|
|
70
60
|
declare function pcall<T extends Array<any>, U>(
|
|
71
61
|
func: (...args: T) => U,
|
|
72
62
|
...args: T
|
|
73
|
-
): LuaTuple<
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
>;
|
|
88
|
-
|
|
89
|
-
/** Calls the function func with the given arguments in protected mode. This means that any error inside func is not propagated; instead, xpcall catches the error and returns a status code. Its first result is the status code (a boolean), which is true if the call succeeds without errors. In such case, xpcall also returns all results from the call, after this first result. In case of any error, pcall returns false plus the error message. */
|
|
90
|
-
declare function xpcall<T extends Array<unknown>, U, V>(
|
|
63
|
+
): LuaTuple<[true, U] | [false, unknown]>;
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* Calls the function `func` with the given arguments in protected mode. This means that any error inside `func` is not
|
|
67
|
+
* propagated; instead, xpcall catches the error and returns a status code. Its first result is the status code
|
|
68
|
+
* (a boolean), which is true if the call succeeds without errors. In such case, xpcall also returns all results from
|
|
69
|
+
* the call, after this first result. In case of any error, pcall returns false plus the error message.
|
|
70
|
+
*/
|
|
71
|
+
declare function xpcall<T extends Array<any>, U extends Array<any>, V>(
|
|
72
|
+
func: (...args: T) => LuaTuple<U>,
|
|
73
|
+
errHandler: (err: unknown) => V,
|
|
74
|
+
...args: T
|
|
75
|
+
): LuaTuple<[true, ...U] | [false, ...{ [K in keyof U]: K extends "0" ? V : undefined }]>;
|
|
76
|
+
declare function xpcall<T extends Array<any>, U, V>(
|
|
91
77
|
func: (...args: T) => U,
|
|
92
78
|
errHandler: (err: unknown) => V,
|
|
93
79
|
...args: T
|
|
94
|
-
): LuaTuple<
|
|
95
|
-
U extends LuaTuple<[...infer W]>
|
|
96
|
-
? [true, ...W] | [false, V extends LuaTuple<[infer A, ...Array<unknown>]> ? A : V]
|
|
97
|
-
: [true, U] | [false, V extends LuaTuple<[infer A, ...Array<unknown>]> ? A : V]
|
|
98
|
-
>;
|
|
80
|
+
): LuaTuple<[true, U] | [false, V]>;
|
|
99
81
|
|
|
100
82
|
interface LuaMetatable<T> {
|
|
101
83
|
__index?: (self: T, index: unknown) => void;
|