Skip to content

Commit 2a5bf72

Browse files
authored
Merge pull request #75 from iminlikewithyou/fixes
Bug fixes
2 parents 3c6292b + 6167572 commit 2a5bf72

File tree

9 files changed

+132
-59
lines changed

9 files changed

+132
-59
lines changed

package-lock.json

+41-11
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"build": "rbxtsc",
99
"watch": "rbxtsc -w",
1010
"postinstall": "patch-package",
11-
"build:local": "bun run build && rojo build default.project.json --plugin ui-labs.rbxm",
11+
"build:local": "npm run build && rojo build default.project.json --plugin ui-labs.rbxm",
1212
"format": "prettier --write ."
1313
},
1414
"keywords": [],

patches/@rbxts+lemon-signal+1.0.0.patch

-47
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
import { t } from "@rbxts/t";
2+
import { LibCheckReturn } from "../LibraryDefine";
3+
4+
export const FusionKeys: string[] = ["fusion", "scoped"];
5+
6+
export function FusionChecker(value: Record<string, unknown>): LibCheckReturn {
7+
if (value["fusion"] === undefined) return "pass";
8+
if (!t.table(value["fusion"])) {
9+
return { Sucess: false, Error: "Fusion library is not valid" };
10+
}
11+
12+
return "valid";
13+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
import { LibCheckReturn } from "../LibraryDefine";
2+
3+
export const GenericKeys: string[] = ["render"];
4+
5+
export function GenericChecker(value: Record<string, unknown>): LibCheckReturn {
6+
if (value["render"] === undefined) return "pass";
7+
if (!typeIs(value["render"], "function")) {
8+
return { Sucess: false, Error: "Generic render must be a function" };
9+
}
10+
11+
if ("render" in value && "story" in value) {
12+
return { Sucess: false, Error: "Render and Story keys were both given" };
13+
}
14+
15+
return "valid";
16+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
import { t } from "@rbxts/t";
2+
import { LibCheckReturn } from "../LibraryDefine";
3+
4+
export const IrisKeys: string[] = ["iris"];
5+
6+
export function IrisChecker(value: Record<string, unknown>): LibCheckReturn {
7+
if (value["iris"] === undefined) return "pass";
8+
if (!t.table(value["iris"])) {
9+
return { Sucess: false, Error: "Iris library is not valid" };
10+
}
11+
12+
return "valid";
13+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
import { t } from "@rbxts/t";
2+
import { LibCheckReturn } from "../LibraryDefine";
3+
4+
export const ReactKeys: string[] = ["react", "reactRoblox", "renderer"];
5+
6+
export function ReactChecker(value: Record<string, unknown>): LibCheckReturn {
7+
if (value["react"] === undefined) return "pass";
8+
if (value["reactRoblox"] === undefined) return "pass";
9+
10+
if (!t.table(value["react"])) {
11+
return { Sucess: false, Error: "React library is not valid" };
12+
}
13+
if (!t.table(value["reactRoblox"])) {
14+
return { Sucess: false, Error: "ReactRoblox library is not valid" };
15+
}
16+
if (value["renderer"] !== undefined) {
17+
if (!t.literal("deferred", "legacy")(value["renderer"])) {
18+
return { Sucess: false, Error: `Key renderer must be "deferred" or "legacy" for React` };
19+
}
20+
}
21+
return "valid";
22+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
import { t } from "@rbxts/t";
2+
import { LibCheckReturn } from "../LibraryDefine";
3+
4+
export const RoactKeys: string[] = ["roact"];
5+
6+
export function RoactChecker(value: Record<string, unknown>): LibCheckReturn {
7+
if (value["roact"] === undefined) return "pass";
8+
if (!t.table(value["roact"])) {
9+
return { Sucess: false, Error: "Roact library is not valid" };
10+
}
11+
12+
return "valid";
13+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
import { t } from "@rbxts/t";
2+
import { LibCheckReturn } from "../LibraryDefine";
3+
4+
export const VideKeys: string[] = ["vide"];
5+
6+
export function VideChecker(value: Record<string, unknown>): LibCheckReturn {
7+
if (value["vide"] === undefined) return "pass";
8+
if (!t.table(value["vide"])) {
9+
return { Sucess: false, Error: "Vide library is not valid" };
10+
}
11+
12+
return "valid";
13+
}

0 commit comments

Comments
 (0)