mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-22 00:13:12 +09:00
Fix types related to plugins and the web interface
This commit is contained in:
1 parent
8b5c66d900
commit
70d2b319b3
10 files changed
+17
-26
No files matched your search
@@ -19,7 +19,7 @@ export interface PluginLoginForm {
|
||||
* supplied the setToken function via its props which should be called
|
||||
* when an authentication token is aquired via this form.
|
||||
*/
|
||||
Component: typeof React.Component;
|
||||
Component: React.ComponentType<{ setToken(token: string): void }>;
|
||||
};
|
||||
|
||||
export type UserAccount = {
|
||||
|
||||
@@ -7,6 +7,7 @@ type Metadata = {
|
||||
x: number;
|
||||
y: number;
|
||||
size: number;
|
||||
localised_name?: any[];
|
||||
};
|
||||
let itemMetadataCache: Map<string, Metadata> | null = null;
|
||||
export function useItemMetadata() {
|
||||
|
||||
Reference in new issue
Block a user