Skip to content

Commit

Permalink
Fix eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
switz committed Jan 3, 2024
1 parent 2936674 commit 062be81
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"extends": [
"@switz/eslint-config/typescript"
"@switz/eslint-config/typescript.cjs"
],
"rules": {
"@typescript-eslint/no-namespace": 0
Expand Down
1 change: 0 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ function driver<const T extends string, K extends DerivedConfig<T>>(
const stateKeys = Object.keys(config.states);
const activeState = stateKeys.find((key) => !!config.states[key as T]) as T;


// find the enum of the active state
const activeEnum = activeState ? stateKeys.indexOf(activeState) : undefined;

Expand Down
2 changes: 1 addition & 1 deletion src/types.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
type ProtectedKeys = keyof MetadataReturn<any>;
type ProtectedKeys = keyof MetadataReturn<string>;

type ProtectedObject<T extends object> = T & {
[P in ProtectedKeys]?: never;
Expand Down

0 comments on commit 062be81

Please sign in to comment.