Skip to content

Commit bb99d94

Browse files
committed
Clean up scripts
1 parent a14ea40 commit bb99d94

File tree

15 files changed

+94
-96
lines changed

15 files changed

+94
-96
lines changed

.eslintrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
{
2626
"semi": true,
2727
"trailingComma": "all",
28-
"singleQuote": true,
28+
"singleQuote": false,
2929
"printWidth": 120,
3030
"tabWidth": 4,
3131
"useTabs": true

src/Client/Controllers/test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import Aero from 'internal/Aero/Aero';
1+
import Aero from "internal/Aero/Aero";
22

33
export default class clientTest extends Aero.Controller {
44
protected static Start(): void {

src/GlobalRegistry.d.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
import Base64 from 'Shared/Base64';
2-
import Date from 'Shared/Date';
3-
import Maid from 'Shared/Maid';
4-
import NumberUtil from 'Shared/NumberUtil';
5-
import Signal from 'Shared/Signal';
6-
import TableUtil from 'Shared/TableUtil';
7-
import Thread from 'Shared/Thread';
8-
import VectorUtil from 'Shared/VectorUtil';
1+
import Base64 from "Shared/Base64";
2+
import Date from "Shared/Date";
3+
import Maid from "Shared/Maid";
4+
import NumberUtil from "Shared/NumberUtil";
5+
import Signal from "Shared/Signal";
6+
import TableUtil from "Shared/TableUtil";
7+
import Thread from "Shared/Thread";
8+
import VectorUtil from "Shared/VectorUtil";
99

1010
// import modules here, e.g.
1111

src/Server/Modules/ProfileService/globals.d.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -215,10 +215,7 @@ export interface ProfileStore<T> {
215215
* `"Cancel"` - `.LoadProfileAsync()` will immediately return nil
216216
* `"ForceLoad"` - ProfileService will indefinetly attempt to load the profile. If the profile is session-locked by a remote Roblox server, it will either be released for that remote server or "stolen" (Stealing is nescessary for remote servers that are not responding in time and for handling crashed server session-locks).
217217
*/
218-
LoadProfileAsync(
219-
profileKey: string,
220-
notReleasedHandler: "ForceLoad" | notReleasedHandlerFunc,
221-
): Profile<T> | void;
218+
LoadProfileAsync(profileKey: string, notReleasedHandler: "ForceLoad" | notReleasedHandlerFunc): Profile<T> | void;
222219

223220
/**
224221
* Used to create and manage `Active` global updates for a specified Profile. Can be called on any Roblox server of your game. Updates should reach the recipient in less than 30 seconds, regardless of whether it was called on the same server the Profile is session-locked to. See [Global Updates](https://madstudioroblox.github.io/ProfileService/api/#global-updates) for more information.
@@ -241,4 +238,4 @@ export interface ProfileStore<T> {
241238
* @param profileKey DataStore key
242239
*/
243240
ViewProfileAsync(profileKey: string): Profile<false> | void;
244-
}
241+
}

src/Server/Modules/ProfileService/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { ProfileStore } from './globals';
1+
import { ProfileStore } from "./globals";
22

33
declare namespace ProfileService {
44
/**

src/Server/Services/test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@ import Aero = require("internal/Aero/Aero");
22

33
export default class test extends Aero.Service {
44
protected static Start(): void {
5-
print('Started from test.ts!');
5+
print("Started from test.ts!");
66
}
77

88
protected static Init(): void {
9-
print('Initiated from test.ts!');
9+
print("Initiated from test.ts!");
1010
}
1111
}

src/Shared/Base64/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,4 @@ declare class Base64 {
1717
Decode(encodedStr: string): string;
1818
}
1919

20-
export = Base64;
20+
export = Base64;

src/Shared/Date/index.d.ts

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,12 @@
44
declare class Date {
55
/**
66
* Converts a JSON object into a Date object.
7-
*
7+
*
88
* To save in JSON, you should use `Date.ToJSON`
99
* @param jsonString The saved JSON string
1010
*/
1111
static fromJSON(jsonString: string): Date;
1212

13-
1413
/**
1514
* The hour of the day.
1615
*/
@@ -61,7 +60,6 @@ declare class Date {
6160
*/
6261
IsDST: boolean;
6362

64-
6563
/**
6664
* Date as of right now
6765
*/
@@ -78,10 +76,9 @@ declare class Date {
7876
*/
7977
constructor(seconds: number, useUTC: boolean);
8078

81-
8279
/**
8380
* Converts the Date object to a JSON string to be saved.
84-
*
81+
*
8582
* To reconstruct, use `Date.fromJSON`
8683
*/
8784
public ToJSON(): string;
@@ -114,38 +111,38 @@ declare class Date {
114111

115112
/**
116113
* Returns the ISO string representation of the date.
117-
*
114+
*
118115
* @example
119116
* print(date.ToISOString()) // e.g. 2020-01-06T17:08:24.473
120117
*/
121118
public ToISOString(): string;
122119

123120
/**
124121
* Returns a string representing the shorthand date.
125-
*
122+
*
126123
* @example
127124
* print(date.ToDateString()) // e.g. Mon Jan 6 2020
128125
*/
129126
public ToDateString(): string;
130127

131128
/**
132129
* Returns a string representing the time.
133-
*
130+
*
134131
* @example
135132
* print(date.ToTimeString()) // e.g. 17:10:28
136133
*/
137134
public ToTimeString(): string;
138135

139136
/**
140137
* Returns a string representing the time and date combined.
141-
*
138+
*
142139
* @example
143140
* print(date:ToString()) // e.g. Mon Jan 6 2020 17:10:28
144-
*
141+
*
145142
* Also works with tostring:
146143
* print(tostring(date))
147144
*/
148-
public ToString(): void;
145+
public ToString(): string;
149146
}
150147

151-
export = Date;
148+
export = Date;

src/Shared/Maid/index.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ declare class Maid {
2222
/**
2323
* Stores a promise.
2424
* If the maid is cleaned up and the promise is not completed, the promise will be cancelled.
25-
* @param promise
25+
* @param promise
2626
*/
2727
GivePromise<T>(promise: T): T;
2828

@@ -41,4 +41,4 @@ declare class Maid {
4141
Destroy(): void;
4242
}
4343

44-
export = Maid;
44+
export = Maid;

src/Shared/NumberUtil/index.d.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ declare namespace NumberUtil {
1818

1919
/**
2020
* Interpolate between two numbers by a certain alpha/percentage. The name "lerp" comes from combining linear interpolation.
21-
*
21+
*
2222
* Visually, think of a number line ranging from 'min' to 'max' and then move along that line by 'alpha' percent.
2323
* @param min The minimum number to interpolate between.
2424
* @param max The maximum number to interpolate between.
@@ -33,7 +33,7 @@ declare namespace NumberUtil {
3333

3434
/**
3535
* The same as Lerp, except alpha is clamped between the range of [0, 1].
36-
*
36+
*
3737
* This helps avoid the resultant number being out of the input range of [min, max].
3838
* @param min The minimum number to interpolate between.
3939
* @param max The maximum number to interpolate between.
@@ -46,7 +46,7 @@ declare namespace NumberUtil {
4646

4747
/**
4848
* The inverse of the Lerp function.
49-
*
49+
*
5050
* It returns the alpha value between the range of [min, max] given the num.
5151
* @param min The minimum number to interpolate between.
5252
* @param max The maximum number to interpolate between.
@@ -60,9 +60,9 @@ declare namespace NumberUtil {
6060

6161
/**
6262
* Remaps the range of 'num' from its old range of [inMin, inMax] to a new range of [outMin, outMax].
63-
*
63+
*
6464
* This is useful when needing to convert a range of inputs to a different output. For instance, remapping gamepad stick input to a larger range controlling a vehicle steering wheel.
65-
*
65+
*
6666
* Mathematically, this is done by doing an inverse lerp with n on [inMin, inMax] to get the correct alpha value, and then lerping that alpha value with the range of [outMin, outMax].
6767
* @param n The number between inMin and inMax.
6868
* @param inMin The original min number to interpolate between.
@@ -77,7 +77,7 @@ declare namespace NumberUtil {
7777

7878
/**
7979
* Rounds a number to the nearest whole number.
80-
*
80+
*
8181
* Internally, this uses the math.floor and math.ceil Lua math functions to round the number.
8282
* @param num The number to round
8383
* @example
@@ -89,7 +89,7 @@ declare namespace NumberUtil {
8989

9090
/**
9191
* Rounds a number to the nearest given multiple.
92-
*
92+
*
9393
* An example would be locking world positions onto a larger grid.
9494
* @param num The number to round
9595
* @param multiple The multiple to round to
@@ -100,4 +100,4 @@ declare namespace NumberUtil {
100100
export function RoundTo(num: number, multiple: number): number;
101101
}
102102

103-
export = NumberUtil;
103+
export = NumberUtil;

0 commit comments

Comments
 (0)