mirror of
https://github.com/stan-smith/FossFLOW.git
synced 2025-12-24 06:58:48 -05:00
feat: exports Scene typings
This commit is contained in:
@@ -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"
|
||||
},
|
||||
|
||||
@@ -35,4 +35,6 @@ const App = ({ initialScene }: Props) => {
|
||||
);
|
||||
};
|
||||
|
||||
type Scene = SceneI;
|
||||
export { Scene };
|
||||
export default App;
|
||||
|
||||
@@ -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(),
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user