mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-06-28 22:30:01 +00:00
Merge pull request #8208 from chrootsu/lodash-isBuffer
lodash: added _.isBuffer
This commit is contained in:
@@ -6371,6 +6371,26 @@ module TestIsBoolean {
|
||||
}
|
||||
}
|
||||
|
||||
// _.isBuffer
|
||||
module TestIsBuffer {
|
||||
{
|
||||
let result: boolean;
|
||||
|
||||
result = _.isBuffer(any);
|
||||
result = _(1).isBuffer();
|
||||
result = _<any>([]).isBuffer();
|
||||
result = _({}).isBuffer();
|
||||
}
|
||||
|
||||
{
|
||||
let result: _.LoDashExplicitWrapper<boolean>;
|
||||
|
||||
result = _(1).chain().isBuffer();
|
||||
result = _<any>([]).chain().isBuffer();
|
||||
result = _({}).chain().isBuffer();
|
||||
}
|
||||
}
|
||||
|
||||
// _.isDate
|
||||
module TestIsBoolean {
|
||||
{
|
||||
|
||||
25
lodash/lodash.d.ts
vendored
25
lodash/lodash.d.ts
vendored
@@ -11159,6 +11159,31 @@ declare module _ {
|
||||
isBoolean(): LoDashExplicitWrapper<boolean>;
|
||||
}
|
||||
|
||||
//_.isBuffer
|
||||
interface LoDashStatic {
|
||||
/**
|
||||
* Checks if value is a buffer.
|
||||
*
|
||||
* @param value The value to check.
|
||||
* @return Returns true if value is a buffer, else false.
|
||||
*/
|
||||
isBuffer(value?: any): boolean;
|
||||
}
|
||||
|
||||
interface LoDashImplicitWrapperBase<T, TWrapper> {
|
||||
/**
|
||||
* @see _.isBuffer
|
||||
*/
|
||||
isBuffer(): boolean;
|
||||
}
|
||||
|
||||
interface LoDashExplicitWrapperBase<T, TWrapper> {
|
||||
/**
|
||||
* @see _.isBuffer
|
||||
*/
|
||||
isBuffer(): LoDashExplicitWrapper<boolean>;
|
||||
}
|
||||
|
||||
//_.isDate
|
||||
interface LoDashStatic {
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user