From 487b8942d092480bb069f3327247272380888a7b Mon Sep 17 00:00:00 2001 From: shadowplay1 Date: Tue, 2 Jan 2024 17:28:07 +0300 Subject: [PATCH] fix(gitignore): fixed type files getting falsely ignored --- .gitignore | 2 +- src/types/debug.interface.ts | 18 ++++++++++++++++++ 2 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 src/types/debug.interface.ts diff --git a/.gitignore b/.gitignore index a1e6623..a4737a4 100644 --- a/.gitignore +++ b/.gitignore @@ -8,7 +8,7 @@ node_modules/ dist/ # compiled types -types/ +*.d.ts # testing data data/ diff --git a/src/types/debug.interface.ts b/src/types/debug.interface.ts new file mode 100644 index 0000000..f271f57 --- /dev/null +++ b/src/types/debug.interface.ts @@ -0,0 +1,18 @@ +import { Maybe } from './misc/utils' + +/** + * Represents a debug result interface. + * + * Type parameters: + * - `TResult` ({@link any}) - The return type of the debug function. + * + * @typedef {object} IDebugResult + * @prop {Maybe} result The returned value of the debug function. + * @prop {Maybe} error The error that possibly could be thrown during the debug function call. + * + * @template TResult The return type of the debug function. + */ +export interface IDebugResult { + result: Maybe + error: Maybe +}