File tree 2 files changed +57
-0
lines changed 2 files changed +57
-0
lines changed Original file line number Diff line number Diff line change @@ -7050,6 +7050,37 @@ module TestIsSafeInteger {
7050
7050
}
7051
7051
}
7052
7052
7053
+ // _.isSet
7054
+ module TestIsSet {
7055
+ {
7056
+ let value : number | Set < string > ;
7057
+
7058
+ if ( _ . isSet < string > ( value ) ) {
7059
+ let result : Set < string > = value ;
7060
+ }
7061
+ else {
7062
+ let result : number = value ;
7063
+ }
7064
+ }
7065
+
7066
+ {
7067
+ let result : boolean ;
7068
+
7069
+ result = _ . isSet ( any ) ;
7070
+ result = _ ( 1 ) . isSet ( ) ;
7071
+ result = _ < any > ( [ ] ) . isSet ( ) ;
7072
+ result = _ ( { } ) . isSet ( ) ;
7073
+ }
7074
+
7075
+ {
7076
+ let result : _ . LoDashExplicitWrapper < boolean > ;
7077
+
7078
+ result = _ ( 1 ) . chain ( ) . isSet ( ) ;
7079
+ result = _ < any > ( [ ] ) . chain ( ) . isSet ( ) ;
7080
+ result = _ ( { } ) . chain ( ) . isSet ( ) ;
7081
+ }
7082
+ }
7083
+
7053
7084
// _.isString
7054
7085
module TestIsString {
7055
7086
{
Original file line number Diff line number Diff line change @@ -12132,6 +12132,31 @@ declare module _ {
12132
12132
isSafeInteger(): LoDashExplicitWrapper<boolean>;
12133
12133
}
12134
12134
12135
+ //_.isSet
12136
+ interface LoDashStatic {
12137
+ /**
12138
+ * Checks if value is classified as a Set object.
12139
+ *
12140
+ * @param value The value to check.
12141
+ * @returns Returns true if value is correctly classified, else false.
12142
+ */
12143
+ isSet<T>(value?: any): value is Set<T>;
12144
+ }
12145
+
12146
+ interface LoDashImplicitWrapperBase<T, TWrapper> {
12147
+ /**
12148
+ * @see _.isSet
12149
+ */
12150
+ isSet(): boolean;
12151
+ }
12152
+
12153
+ interface LoDashExplicitWrapperBase<T, TWrapper> {
12154
+ /**
12155
+ * @see _.isSet
12156
+ */
12157
+ isSet(): LoDashExplicitWrapper<boolean>;
12158
+ }
12159
+
12135
12160
//_.isString
12136
12161
interface LoDashStatic {
12137
12162
/**
@@ -18460,4 +18485,5 @@ declare module "lodash" {
18460
18485
}
18461
18486
18462
18487
// Backward compatibility with --target es5
18488
+ interface Set<T> {}
18463
18489
interface Map<K, V> {}
You can’t perform that action at this time.
0 commit comments