mirror of
https://github.com/iib0011/omni-tools.git
synced 2025-12-21 11:06:59 +01:00
refactor: tools folder inside pages
This commit is contained in:
@@ -11,8 +11,10 @@ interface ToolOptions {
|
||||
shortDescription: string;
|
||||
}
|
||||
|
||||
export type ToolCategory = 'string' | 'png' | 'number' | 'gif' | 'list';
|
||||
|
||||
export interface DefinedTool {
|
||||
type: string;
|
||||
type: ToolCategory;
|
||||
path: string;
|
||||
name: string;
|
||||
description: string;
|
||||
@@ -23,7 +25,7 @@ export interface DefinedTool {
|
||||
}
|
||||
|
||||
export const defineTool = (
|
||||
basePath: string,
|
||||
basePath: ToolCategory,
|
||||
options: ToolOptions
|
||||
): DefinedTool => {
|
||||
const {
|
||||
|
||||
Reference in New Issue
Block a user