mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-07 16:30:12 +08:00
Merge pull request #6347 from chrootsu/utils-merge
utils-merge: definition of the module has been added
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
/// <reference path="./utils-merge.d.ts" />
|
||||
|
||||
import merge from "utils-merge";
|
||||
|
||||
type Result = {a: string, b: number};
|
||||
|
||||
let result: Result;
|
||||
|
||||
result = merge<{a: string}, {b: number}, Result>({a: ''}, {b: 42});
|
||||
Vendored
+10
@@ -0,0 +1,10 @@
|
||||
// Type definitions for utils-merge
|
||||
// Project: https://github.com/jaredhanson/utils-merge
|
||||
// Definitions by: Ilya Mochalov <https://github.com/chrootsu>
|
||||
// Definitions: https://github.com/borisyankov/DefinitelyTyped
|
||||
|
||||
declare module "utils-merge" {
|
||||
function merge<TA, TB, TResult>(a: TA, b: TB): TResult;
|
||||
|
||||
export default merge;
|
||||
}
|
||||
Reference in New Issue
Block a user