feat: Add typings for sorted-object (#41549)

Signed-off-by: Richie Bendall <richiebendall@gmail.com>
This commit is contained in:
Richie Bendall
2020-01-15 17:18:08 -05:00
committed by Eli Barzilay
parent 5c5ed22e7b
commit 82eb617a22
4 changed files with 35 additions and 0 deletions
+8
View File
@@ -0,0 +1,8 @@
// Type definitions for sorted-object 2.0
// Project: https://github.com/domenic/sorted-object#readme
// Definitions by: Richie Bendall <https://github.com/Richienb>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
declare function sortedObject(input: object): object;
export = sortedObject;
@@ -0,0 +1,3 @@
import sortedObject = require("sorted-object");
sortedObject({ b: 2, a: 1 }); // $ExpectType object
+23
View File
@@ -0,0 +1,23 @@
{
"compilerOptions": {
"module": "commonjs",
"lib": [
"es6"
],
"noImplicitAny": true,
"noImplicitThis": true,
"strictFunctionTypes": true,
"strictNullChecks": true,
"baseUrl": "../",
"typeRoots": [
"../"
],
"types": [],
"noEmit": true,
"forceConsistentCasingInFileNames": true
},
"files": [
"index.d.ts",
"sorted-object-tests.ts"
]
}
+1
View File
@@ -0,0 +1 @@
{ "extends": "dtslint/dt.json" }