@rbxts/app-forge 0.3.1 → 0.3.3

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.
@@ -1,4 +1,3 @@
1
- import { usePx } from "@rbxts/loners-pretty-react-hooks";
2
1
  import React from "@rbxts/react";
3
2
  import type Types from "./types";
4
3
  import type AppForge from ".";
@@ -6,9 +5,7 @@ export declare const AppRegistry: Map<string, Types.AppRegistry>;
6
5
  export declare function App(props: Types.AppRegistryProps): <T extends new (props: Types.MainProps) => Args>(constructor: T) => T;
7
6
  export declare abstract class Args {
8
7
  readonly forge: AppForge;
9
- readonly props: AppProps & {
10
- px: ReturnType<typeof usePx>;
11
- };
8
+ readonly props: Types.ClassProps;
12
9
  readonly bind: React.Binding<boolean>;
13
10
  readonly name: AppNames[number];
14
11
  constructor(props: Types.NameProps & Types.MainProps);
package/out/index.d.ts CHANGED
@@ -17,4 +17,4 @@ export default class AppForge {
17
17
  }
18
18
  export { App, Args };
19
19
  export { Render } from "./helpers";
20
- export type { MainProps } from "./types";
20
+ export type { MainProps, NameProps, Props } from "./types";
package/out/types.d.ts CHANGED
@@ -19,6 +19,10 @@ declare namespace Types {
19
19
  target?: GuiObject | Camera;
20
20
  };
21
21
 
22
+ type ClassProps = AppProps & {
23
+ px: ReturnType<typeof import("@rbxts/loners-pretty-react-hooks").usePx>;
24
+ };
25
+
22
26
  type AppRegistry = {
23
27
  constructor: new (props: MainProps) => Args;
24
28
  visible?: boolean;
@@ -43,4 +47,7 @@ declare namespace Types {
43
47
  }
44
48
 
45
49
  export type MainProps = Types.MainProps;
50
+ export type NameProps = Types.NameProps;
51
+ export type Props = Types.ClassProps;
52
+
46
53
  export default Types;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rbxts/app-forge",
3
- "version": "0.3.1",
3
+ "version": "0.3.3",
4
4
  "description": "An App Manager for react",
5
5
  "main": "out/init.lua",
6
6
  "packageManager": "bun@1.3.1",