refactor: remove ts-results-es (#366)

* remove tsresultses

* remove test since it uses external api

* opt in for simpler

* add more debug information

Signed-off-by: Jacob Nguyen <76754747+jacoobes@users.noreply.github.com>

* add more debug information

Signed-off-by: Jacob Nguyen <76754747+jacoobes@users.noreply.github.com>

* clean up if else

---------

Signed-off-by: Jacob Nguyen <76754747+jacoobes@users.noreply.github.com>
This commit is contained in:
Jacob Nguyen
2024-08-11 11:07:44 -05:00
committed by GitHub
parent 3755b95b1a
commit 61e82fdc7b
10 changed files with 77 additions and 101 deletions

View File

@@ -1,6 +1,6 @@
import { CommandType, PluginType } from './structures/enums';
import type { Plugin, PluginResult, CommandArgs, InitArgs } from '../types/core-plugin';
import { Err, Ok } from 'ts-results-es';
import { Err, Ok } from './structures/result';
export function makePlugin<V extends unknown[]>(
type: PluginType,