fix: lint

This commit is contained in:
Julien Froidefond
2025-02-26 10:08:37 +01:00
parent 87ee57b0dd
commit 070960c90e
5 changed files with 2 additions and 11 deletions

View File

@@ -82,9 +82,4 @@ export const ERROR_CODES = {
},
} as const;
type ValueOf<T> = T[keyof T];
type ErrorCodeValues = ValueOf<{
[K in keyof typeof ERROR_CODES]: ValueOf<(typeof ERROR_CODES)[K]>;
}>;
export type ErrorCode = ErrorCodeValues;
export type ErrorCode = typeof ERROR_CODES[keyof typeof ERROR_CODES][keyof typeof ERROR_CODES[keyof typeof ERROR_CODES]];