mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 10:56:53 +00:00
[adone] add lodash, benchmark
This commit is contained in:
parent
52bde4982f
commit
6bc84e8ec7
6
types/adone/adone.d.ts
vendored
6
types/adone/adone.d.ts
vendored
@ -1,4 +1,6 @@
|
||||
/// <reference types="node" />
|
||||
/// <reference types="lodash" />
|
||||
/// <reference types="benchmark" />
|
||||
|
||||
declare namespace adone {
|
||||
const _null: symbol;
|
||||
@ -104,4 +106,8 @@ declare namespace adone {
|
||||
export const expect: assertion.I.ExpectFunction;
|
||||
|
||||
export const std: typeof nodestd;
|
||||
|
||||
export const lodash: _.LoDashStatic;
|
||||
|
||||
export const benchmark: typeof tbenchmark;
|
||||
}
|
||||
|
||||
5
types/adone/benchmark.d.ts
vendored
Normal file
5
types/adone/benchmark.d.ts
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
import Benchmark = require("benchmark");
|
||||
|
||||
export { Benchmark };
|
||||
|
||||
export as namespace tbenchmark;
|
||||
@ -54,4 +54,15 @@ namespace AdoneRootTests {
|
||||
obj = adone.package;
|
||||
{ const a: typeof adone.assertion.assert = adone.assert; }
|
||||
{ const a: typeof adone.assertion.expect = adone.expect; }
|
||||
|
||||
namespace lodashTests {
|
||||
adone.lodash.get({}, "a");
|
||||
adone.lodash.defaults({}, {});
|
||||
adone.lodash.zip([]);
|
||||
}
|
||||
|
||||
namespace benchmarkTests {
|
||||
const b = new adone.benchmark.Benchmark.Suite();
|
||||
b.add(() => {}).add("", () => {}).run();
|
||||
}
|
||||
}
|
||||
|
||||
@ -22,6 +22,7 @@
|
||||
"files": [
|
||||
"adone-tests.ts",
|
||||
"adone.d.ts",
|
||||
"benchmark.d.ts",
|
||||
"glosses/archives.d.ts",
|
||||
"glosses/assertion.d.ts",
|
||||
"glosses/collections/array_set.d.ts",
|
||||
|
||||
Loading…
Reference in New Issue
Block a user