build(projects): update tsconfig、eslintrc
This commit is contained in:
@ -1,11 +1,11 @@
|
||||
import useBoolean from './useBoolean';
|
||||
|
||||
export default function useLoading(initValue: boolean = false) {
|
||||
export default function useLoading(initValue = false) {
|
||||
const { bool: loading, setTrue: startLoading, setFalse: endLoading } = useBoolean(initValue);
|
||||
|
||||
return {
|
||||
loading,
|
||||
startLoading,
|
||||
endLoading
|
||||
endLoading,
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user