generated from t3-oss/create-t3-turbo
-
-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(lint): 🧹 fix linting issues in utility function and button comp…
…onent - Fixed linting issue in utility function: - Changed the type of `value` in `isNullOrUndefined` from `any` to `unknown` to ensure stricter type checking. - Fixed linting issue in Button component: - Updated the `onClick` handler to use `void` with the `signIn` function call for better type safety.
- Loading branch information
Showing
3 changed files
with
12 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,10 @@ | ||
/** | ||
* isNullOrUndefined | ||
* @description - validate if an element is null or undefined | ||
* isNullOrUndefined. | ||
* | ||
* - validate if an element is null or undefined. | ||
* | ||
* @function | ||
* @param {any} value - Element to validate | ||
* @return {boolean} Element is null or undefined. | ||
* @param {any} value - Element to validate. | ||
* @returns {boolean} Element is null or undefined. | ||
*/ | ||
export const isNullOrUndefined = (value: any): boolean => value === undefined || value === null; | ||
export const isNullOrUndefined = (value: unknown): boolean => value === undefined || value === null; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters