mirror of
https://github.com/sern-handler/handler
synced 2026-06-14 20:02:16 +00:00
refactor: Remove duplicate type alias in resolveParameters.ts
This commit is contained in:
@@ -2,9 +2,6 @@ import type { CommandType } from '../sern';
|
||||
import type { ModuleDefs } from '../structures/modules/commands/moduleHandler';
|
||||
import type { ParseType } from '../../types/handler';
|
||||
|
||||
type UnionToTupleUnion<T extends CommandType> = {
|
||||
[K in T] : Parameters<ModuleDefs[K]['execute']>
|
||||
}[T];
|
||||
type ParamMap<T extends CommandType> = {
|
||||
[K in T] : Parameters<ModuleDefs[K]['execute']>
|
||||
}[T]
|
||||
@@ -15,7 +12,7 @@ type ParamMap<T extends CommandType> = {
|
||||
* @param params
|
||||
*/
|
||||
export function resolveParameters<T extends CommandType>
|
||||
( params: ParamMap<T> ) : UnionToTupleUnion<T>
|
||||
( params: ParamMap<T> )
|
||||
{
|
||||
return params;
|
||||
}
|
||||
Reference in New Issue
Block a user