feat: exports Scene typings

This commit is contained in:
Mark Mankarious
2023-03-23 21:24:18 +00:00
parent a74ed34d1c
commit 28122ed6b7
3 changed files with 5 additions and 2 deletions

View File

@@ -47,7 +47,7 @@
"react-dom": ">=17"
},
"scripts": {
"dev": "nodemon --exec concurrently \"webpack\" \"tsc --declaration --emitDeclarationOnly\"",
"dev": "nodemon --watch src --exec npm run build",
"build": "webpack && tsc --declaration --emitDeclarationOnly",
"test": "jest"
},

View File

@@ -35,4 +35,6 @@ const App = ({ initialScene }: Props) => {
);
};
type Scene = SceneI;
export { Scene };
export default App;

View File

@@ -4,11 +4,12 @@ export const IconSchema = z.object({
id: z.string(),
name: z.string(),
url: z.string(),
category: z.string().optional(),
});
export const NodeSchema = z.object({
id: z.string(),
label: z.string().nullable(),
label: z.string().optional(),
icon: z.string(),
});