Skip to content

Commit

Permalink
chore: build
Browse files Browse the repository at this point in the history
  • Loading branch information
mesqueeb committed Nov 15, 2022
1 parent d0a1dc4 commit 593aa7f
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
7 changes: 6 additions & 1 deletion dist/index.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,12 @@ function mergeAndConcat(object, ...otherObjects) {
// }
// const ba1: Barguments = { key: 'value1' }
// const ba2: Barguments = { key: 'value2' }
// const ba = merge(ba1, ba2)
// const ba = merge(ba1, ba2)
// interface Carguments {
// key: string
// }
// const ca = merge<Carguments, Carguments[]>({ key: 'value1' }, { key: 'value2' })
// type P = Pop<Carguments[]>

exports.concatArrays = concatArrays;
exports.merge = merge;
Expand Down
7 changes: 6 additions & 1 deletion dist/index.es.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,11 @@ function mergeAndConcat(object, ...otherObjects) {
// }
// const ba1: Barguments = { key: 'value1' }
// const ba2: Barguments = { key: 'value2' }
// const ba = merge(ba1, ba2)
// const ba = merge(ba1, ba2)
// interface Carguments {
// key: string
// }
// const ca = merge<Carguments, Carguments[]>({ key: 'value1' }, { key: 'value2' })
// type P = Pop<Carguments[]>

export { concatArrays, merge, mergeAndCompare, mergeAndConcat };
2 changes: 1 addition & 1 deletion dist/types/typeUtils/List.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ export declare type Length<L extends List> = L['length'];
* ```ts
* ```
*/
export declare type Pop<L extends List> = L extends readonly [] ? L : L extends readonly [...any, infer Last] ? Last : L;
export declare type Pop<L extends List> = L extends readonly [] ? never : L extends [...unknown[], infer Last] ? Last : L extends (infer T)[] ? T : never;

0 comments on commit 593aa7f

Please sign in to comment.