Move all packages to a types directory

This commit is contained in:
Andy Hanson
2017-03-24 14:27:52 -07:00
parent f9869dc191
commit 354cec620d
13846 changed files with 0 additions and 0 deletions
+7
View File
@@ -0,0 +1,7 @@
// Type definitions for object-diff v0.0
// Project: https://github.com/srcagency/object-diff
// Definitions by: Rogier Schouten <https://github.com/rogierschouten>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
declare function diff(a: any, b: any): any;
export = diff;
+18
View File
@@ -0,0 +1,18 @@
import diff = require('object-diff');
// from the package README.md, typescriptified:
var a = {
speed: 4,
power: 54,
level: 1,
};
var b = {
speed: 4, // unchanged
power: 22, // changed
weight: 10, // added
};
var d: any = diff(a, b);
+22
View File
@@ -0,0 +1,22 @@
{
"compilerOptions": {
"module": "commonjs",
"lib": [
"es6"
],
"noImplicitAny": true,
"noImplicitThis": true,
"strictNullChecks": true,
"baseUrl": "../",
"typeRoots": [
"../"
],
"types": [],
"noEmit": true,
"forceConsistentCasingInFileNames": true
},
"files": [
"index.d.ts",
"object-diff-tests.ts"
]
}