UNPKG
etc-hooks
Version:
beta (0.1.0)
latest (0.5.3)
0.5.3
0.5.2
0.5.1
0.5.0
0.4.9
0.4.8
0.4.7
0.4.6
0.4.5
0.4.4
0.4.3
0.4.2
0.4.1
0.4.0
0.3.0
0.2.0
0.1.1
0.1.0
Etcetera React 业务 Hooks
github.com/AmbitionsXXXV/etc-hooks
AmbitionsXXXV/etc-hooks
etc-hooks
/
es
/
useTitle
/
index.d.ts
13 lines
(12 loc)
•
306 B
TypeScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
export
interface
Options
{
restorePrevTitle
?:
boolean
; }
/** *
@param
{
string
}
title
*
@param
{
Object
}
options
*
@description
* 1. 实现更新 title * 2. 组件销毁时,回复本身的页面标题 */
declare
function
useTitle
(
title
:
string
,
options
?:
Options
):
void
;
export
default
useTitle;