File tree Expand file tree Collapse file tree 2 files changed +57
-0
lines changed Expand file tree Collapse file tree 2 files changed +57
-0
lines changed Original file line number Diff line number Diff line change @@ -7201,6 +7201,37 @@ module TestIsWeakMap {
7201
7201
}
7202
7202
}
7203
7203
7204
+ // _.isWeakSet
7205
+ module TestIsWeakSet {
7206
+ {
7207
+ let value : number | WeakSet < string > ;
7208
+
7209
+ if ( _ . isWeakSet < string > ( value ) ) {
7210
+ let result : WeakSet < string > = value ;
7211
+ }
7212
+ else {
7213
+ let result : number = value ;
7214
+ }
7215
+ }
7216
+
7217
+ {
7218
+ let result : boolean ;
7219
+
7220
+ result = _ . isWeakSet ( any ) ;
7221
+ result = _ ( 1 ) . isWeakSet ( ) ;
7222
+ result = _ < any > ( [ ] ) . isWeakSet ( ) ;
7223
+ result = _ ( { } ) . isWeakSet ( ) ;
7224
+ }
7225
+
7226
+ {
7227
+ let result : _ . LoDashExplicitWrapper < boolean > ;
7228
+
7229
+ result = _ ( 1 ) . chain ( ) . isWeakSet ( ) ;
7230
+ result = _ < any > ( [ ] ) . chain ( ) . isWeakSet ( ) ;
7231
+ result = _ ( { } ) . chain ( ) . isWeakSet ( ) ;
7232
+ }
7233
+ }
7234
+
7204
7235
// _.lt
7205
7236
module TestLt {
7206
7237
{
Original file line number Diff line number Diff line change @@ -12292,6 +12292,31 @@ declare module _ {
12292
12292
isWeakMap(): LoDashExplicitWrapper<boolean>;
12293
12293
}
12294
12294
12295
+ //_.isWeakSet
12296
+ interface LoDashStatic {
12297
+ /**
12298
+ * Checks if value is classified as a WeakSet object.
12299
+ *
12300
+ * @param value The value to check.
12301
+ * @returns Returns true if value is correctly classified, else false.
12302
+ */
12303
+ isWeakSet<T>(value?: any): value is WeakSet<T>;
12304
+ }
12305
+
12306
+ interface LoDashImplicitWrapperBase<T, TWrapper> {
12307
+ /**
12308
+ * @see _.isWeakSet
12309
+ */
12310
+ isWeakSet(): boolean;
12311
+ }
12312
+
12313
+ interface LoDashExplicitWrapperBase<T, TWrapper> {
12314
+ /**
12315
+ * @see _.isWeakSet
12316
+ */
12317
+ isWeakSet(): LoDashExplicitWrapper<boolean>;
12318
+ }
12319
+
12295
12320
//_.lt
12296
12321
interface LoDashStatic {
12297
12322
/**
@@ -18512,4 +18537,5 @@ declare module "lodash" {
18512
18537
// Backward compatibility with --target es5
18513
18538
interface Set<T> {}
18514
18539
interface Map<K, V> {}
18540
+ interface WeakSet<T> {}
18515
18541
interface WeakMap<K, V> {}
You can’t perform that action at this time.
0 commit comments