Build NapCat Artifacts / Windows Loader Test (push) Canceled after 0s
Build NapCat Artifacts / Type Check & Test (push) Canceled after 0s
Build NapCat Artifacts / Build NapCat.Framework (push) Canceled after 0s
Build NapCat Artifacts / Build NapCat.Shell (push) Canceled after 0s
23 lines
612 B
Plaintext
23 lines
612 B
Plaintext
/**
|
|
* Check if value is an async function
|
|
*
|
|
* 校验是否为函数
|
|
*
|
|
* @example
|
|
* ```js
|
|
* import { isAsyncFunction } from 'is-what-type';
|
|
*
|
|
* isFunction(async () => { }); // true
|
|
* isFunction(() => { }); // true
|
|
* isFunction(function() { }); // true
|
|
* isFunction(async function() { }); // true
|
|
* isFunction(123); // false
|
|
* isFunction('string'); // false
|
|
* isFunction({}); // false
|
|
* ```
|
|
*
|
|
* @param value - The value to check
|
|
* @returns `true` if `value` is an async function, `false` otherwise
|
|
*/
|
|
export declare function isFunction<T = (...args: any[]) => any>(value: unknown): value is T;
|