mirror of
https://github.com/CorentinTh/it-tools.git
synced 2025-12-11 23:32:49 +00:00
17 lines
304 B
TypeScript
17 lines
304 B
TypeScript
import type { Component } from 'solid-js';
|
|
|
|
export { defineTool };
|
|
|
|
function defineTool(toolDefinition: {
|
|
slug: string;
|
|
entryFile: () => Promise<{ default: Component }>;
|
|
dirName: string;
|
|
icon: string;
|
|
createdAt: Date;
|
|
}) {
|
|
return {
|
|
...toolDefinition,
|
|
key: toolDefinition.slug,
|
|
};
|
|
}
|