Skip to content

Commit

Permalink
Auto-generated commit
Browse files Browse the repository at this point in the history
  • Loading branch information
stdlib-bot committed Jul 18, 2023
1 parent 253185b commit 62065d9
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 15 deletions.
1 change: 0 additions & 1 deletion .github/.keepalive

This file was deleted.

21 changes: 11 additions & 10 deletions CONTRIBUTORS
Original file line number Diff line number Diff line change
Expand Up @@ -3,36 +3,37 @@
# Contributors listed in alphabetical order.

Ali Salesi <ali_sal1381@yahoo.com>
Amit Jimiwal <amitjimiwal45@gmail.com>
Athan Reines <kgryte@gmail.com>
Brendan Graetz <bguiz@users.noreply.github.com>
Bruno Fenzl <brunofenzl@gmail.com>
Christopher Dambamuromo <chridam@gmail.com>
Dan Rose <danoftheroses@gmail.com>
Dominik Moritz <domoritz@gmail.com>
Dorrin Sotoudeh <dorrinsotoudeh123@gmail.com>
Frank Kovacs <fran70kk@gmail.com>
Harshita Kalani <95532771+HarshitaKalani@users.noreply.github.com>
James <jdgelok@gmail.com>
Harshita Kalani <harshitakalani02@gmail.com>
James Gelok <jdgelok@gmail.com>
Jithin KS <jithinks112@gmail.com>
Joey Reed <joeyrreed@gmail.com>
Jordan-Gallivan <115050475+Jordan-Gallivan@users.noreply.github.com>
Jordan Gallivan <115050475+Jordan-Gallivan@users.noreply.github.com>
Joris Labie <joris.labie1@gmail.com>
Justin Dennison <justin1dennison@gmail.com>
KATTA NAGA NITHIN <88046362+nithinkatta@users.noreply.github.com>
Marcus <mfantham@users.noreply.github.com>
Marcus Fantham <mfantham@users.noreply.github.com>
Matt Cochrane <matthew.cochrane.eng@gmail.com>
Milan Raj <rajsite@users.noreply.github.com>
Momtchil Momtchev <momtchil@momtchev.com>
Naresh Jagadeesan <37257700+Infinage@users.noreply.github.com>
Naresh Jagadeesan <naresh.naresh000@gmail.com>
Nithin Katta <88046362+nithinkatta@users.noreply.github.com>
Ognjen Jevremović <ognjenjevremovic@users.noreply.github.com>
Philipp Burckhardt <pburckhardt@outlook.com>
Pranav <85227306+Pranavchiku@users.noreply.github.com>
Pranav Goswami <goswami.4@iitj.ac.in>
Ricky Reusser <rsreusser@gmail.com>
Roman Stetsyk <25715951+romanstetsyk@users.noreply.github.com>
Ryan Seal <splrk@users.noreply.github.com>
Seyyed Parsa Neshaei <spneshaei@users.noreply.github.com>
Shraddheya Shendre <shendreshraddheya@gmail.com>
Stephannie Jiménez Gacha <steff456@hotmail.com>
Yernar Yergaziyev <yernar.yergaziyev@erg.kz>
dorrin-sot <59933477+dorrin-sot@users.noreply.github.com>
drunken_devv <90555965+amitjimiwal@users.noreply.github.com>
orimiles5 <97595296+orimiles5@users.noreply.github.com>
rei2hu <rei2hu@users.noreply.github.com>
rei2hu <reimu@reimu.ws>
5 changes: 3 additions & 2 deletions docs/types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* limitations under the License.
*/

// TypeScript Version: 2.0
// TypeScript Version: 4.1

/**
* Returns a partial object copy excluding specified keys.
Expand All @@ -40,7 +40,8 @@
* var obj2 = omit( obj1, 'b' );
* // returns { 'a': 1 }
*/
declare function omit( obj: any, keys: string | Array<string> ): Object;
declare function omit<T extends object, K extends keyof T>( obj: T, keys: Array<K> | K ): Omit<T, K>; // tslint-disable-line max-line-length
declare function omit<T extends object>( obj: T, keys: Array<string> | string ): Partial<T>; // tslint-disable-line max-line-length


// EXPORTS //
Expand Down
4 changes: 2 additions & 2 deletions docs/types/test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ import omit = require( './index' );

// The function returns an object...
{
omit( { 'a': 1, 'b': 2 }, 'a' ); // $ExpectType Object
omit( { 'a': 1, 'b': 2 }, [ 'a', 'b' ] ); // $ExpectType Object
omit( { 'a': 1, 'b': 2 }, 'a' ); // $ExpectType Omit<{ a: number; b: number; }, "a">
omit( { 'a': 1, 'b': 2 }, [ 'a', 'b' ] ); // $ExpectType Omit<{ a: number; b: number; }, "a" | "b">
}

// The compiler throws an error if the function is provided a second argument which is not a string or string array...
Expand Down

0 comments on commit 62065d9

Please sign in to comment.