Type editor and schema viewer. Poppables and help icon
This commit is contained in:
@@ -8,7 +8,7 @@ export const GameSystemsService = {
|
||||
return { status: 200 }
|
||||
},
|
||||
// todo - connect to service to fetch schema for game
|
||||
getSchema: async (id: string) => {
|
||||
getSchema: async (id: string): Promise<{status: 200 | 404, json: () => Promise<Schema>}> => {
|
||||
const schema = localStorage.getItem('schema');
|
||||
|
||||
if (schema)
|
||||
@@ -18,7 +18,8 @@ export const GameSystemsService = {
|
||||
}
|
||||
|
||||
return {
|
||||
status: 404
|
||||
status: 404,
|
||||
json: async () => ({name:'', types: {}})
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user