Skip to content

Commit

Permalink
fix: needed to add an any
Browse files Browse the repository at this point in the history
  • Loading branch information
darrenjaneczek committed Mar 19, 2024
1 parent 4a7da6d commit 11ba953
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .betterer.results
Original file line number Diff line number Diff line change
Expand Up @@ -4105,6 +4105,9 @@ exports[`better eslint`] = {
[0, 0, 0, "Do not use any type assertions.", "11"],
[0, 0, 0, "Do not use any type assertions.", "12"]
],
"public/app/features/trails/ActionTabs/utils.ts:5381": [
[0, 0, 0, "Unexpected any. Specify a different type.", "0"]
],
"public/app/features/transformers/FilterByValueTransformer/ValueMatchers/BasicMatcherEditor.tsx:5381": [
[0, 0, 0, "Unexpected any. Specify a different type.", "0"]
],
Expand Down
2 changes: 1 addition & 1 deletion public/app/features/trails/ActionTabs/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export function getLabelOptions(scenObject: SceneObject, variable: QueryVariable
}

interface Type<T> extends Function {
new (...args: unknown[]): T;
new (...args: any[]): T;
}
export function findSceneObjectByType<T extends SceneObject>(scene: SceneObject, sceneType: Type<T>) {
const targetScene = sceneGraph.findObject(scene, (obj) => obj instanceof sceneType);
Expand Down

0 comments on commit 11ba953

Please sign in to comment.