Skip to content

Commit

Permalink
update BindToClose definition
Browse files Browse the repository at this point in the history
  • Loading branch information
Neohertz committed Aug 30, 2024
1 parent 54d6de3 commit 55ac2d2
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion include/customDefinitions.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,12 @@ interface ContextActionService extends Instance {

interface DataModel extends ServiceProvider<Services> {
readonly Workspace: Workspace;
BindToClose(this: DataModel, callback: () => void): void;
/**
* Binds a function to be called before the server shuts down. If the bound function accepts a parameter, it passes Enum.CloseReason specifying the reason for the server shutdown.
*
* You can bind multiple functions by calling BindToClose() repeatedly. Bound functions are called in parallel and run at the same time.
*/
BindToClose(this: DataModel, callback: (reason: Enum.CloseReason) => void): void;
}

interface DataStore extends GlobalDataStore {
Expand Down

0 comments on commit 55ac2d2

Please sign in to comment.