Skip to content

Commit

Permalink
fix: type
Browse files Browse the repository at this point in the history
  • Loading branch information
eiinu committed Jan 14, 2024
1 parent 0938c28 commit 3511144
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/packages/locale/lang/baseLang.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,15 @@ export abstract class BaseLang {
end: string;
start: string;
title: string;
monthTitle: (...args: any[]) => any;
monthTitle: Function;
today: string;
};
abstract calendarcard: {
weekdays: Array<string>;
end: string;
start: string;
title: string;
monthTitle: (...args: any[]) => any;
monthTitle: Function;

Check warning on line 34 in src/packages/locale/lang/baseLang.ts

View check run for this annotation

codefactor.io / CodeFactor

src/packages/locale/lang/baseLang.ts#L34

Don't use `Function` as a type. The `Function` type accepts any function-like value. It provides no type safety when calling the function, which can be a common source of bugs. It also accepts things like class declarations, which will throw at runtime as they will not be called with `new`. If you are expecting the function to accept certain arguments, you should explicitly define the function shape. (@typescript-eslint/ban-types)
today: string;
};
abstract shortpassword: {
Expand Down Expand Up @@ -84,8 +84,8 @@ export abstract class BaseLang {
};
abstract comment: {
complaintsText: string;
additionalReview: (...args: any[]) => any;
additionalImages: (...args: any[]) => any;
additionalReview: Function;
additionalImages: Function;
};
abstract infiniteloading: {
loading: string;
Expand Down

0 comments on commit 3511144

Please sign in to comment.