mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-04 06:47:03 +00:00
feat: Add typings for sorted-object (#41549)
Signed-off-by: Richie Bendall <richiebendall@gmail.com>
This commit is contained in:
committed by
Eli Barzilay
parent
5c5ed22e7b
commit
82eb617a22
Vendored
+8
@@ -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
|
||||
@@ -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"
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
{ "extends": "dtslint/dt.json" }
|
||||
Reference in New Issue
Block a user