mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-19 03:54:28 +08:00
chore(Button): str type (#51521)
Co-authored-by: afc163 <afc163@gmail.com>
This commit is contained in:
parent
034aa4908f
commit
5c582fcbe2
@ -15,7 +15,7 @@ export function convertLegacyProps(
|
|||||||
return { type };
|
return { type };
|
||||||
}
|
}
|
||||||
|
|
||||||
export function isString(str: any): str is string {
|
export function isString(str: unknown): str is string {
|
||||||
return typeof str === 'string';
|
return typeof str === 'string';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user