noname/node_modules/noname-typings/MapEx.d.ts

27 lines
681 B
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

declare interface Map<K, V> {
/**
* @deprecated 为了兼容array改为map而创建的方法请使用has
*/
contains(item: K): boolean;
/**
* @deprecated 为了兼容array改为map而创建的方法请使用has
*/
inculdes(item: K): boolean;
/**
* @deprecated 为了兼容array改为map而创建的方法请使用set
*/
add(item: K): this;
/**
* @deprecated 为了兼容array改为map而创建的方法请使用set
*/
push(item: K): this;
/**
* @deprecated 为了兼容array改为map而创建的方法
*/
addArray(arr: Array<K>): this;
/**
* @deprecated 为了兼容array改为map而创建的方法请使用delete
*/
remove(item: K): this;
}