mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-06-06 06:19:58 +08:00
Merge branch 'master' of https://github.com/dineshsaravanan/DefinitelyTyped into dineshsaravanan-master
This commit is contained in:
9
types/datadog-tracer/datadog-tracer-tests.ts
Normal file
9
types/datadog-tracer/datadog-tracer-tests.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
import Tracer = require('datadog-tracer');
|
||||
|
||||
const tracer = new Tracer({
|
||||
service: 'test'
|
||||
});
|
||||
|
||||
tracer.on('error', (e: any) => {
|
||||
void(0);
|
||||
});
|
||||
24
types/datadog-tracer/index.d.ts
vendored
Normal file
24
types/datadog-tracer/index.d.ts
vendored
Normal file
@@ -0,0 +1,24 @@
|
||||
// Type definitions for datadog-tracer 0.4
|
||||
// Project: https://github.com/rochdev/datadog-tracer-js#readme
|
||||
// Definitions by: Dinesh Saravanan Kumaraswamy <https://github.com/dineshsaravanan>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
import * as opentracing from "opentracing";
|
||||
import { EventEmitter } from "events";
|
||||
|
||||
export as namespace Tracer;
|
||||
export = Tracer;
|
||||
|
||||
interface TracerOptions {
|
||||
service: string;
|
||||
hostname?: string;
|
||||
port?: number;
|
||||
protocol?: string;
|
||||
endpoint?: string;
|
||||
}
|
||||
|
||||
declare class Tracer extends opentracing.Tracer {
|
||||
constructor(tracerOptions: TracerOptions);
|
||||
|
||||
on(method: "error", cb?: (e: any) => void): void;
|
||||
addEventListener(method: "error", cb?: (e: any) => void): void;
|
||||
}
|
||||
6
types/datadog-tracer/package.json
Normal file
6
types/datadog-tracer/package.json
Normal file
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"private": true,
|
||||
"dependencies": {
|
||||
"opentracing": "^0.14.1"
|
||||
}
|
||||
}
|
||||
23
types/datadog-tracer/tsconfig.json
Normal file
23
types/datadog-tracer/tsconfig.json
Normal 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",
|
||||
"datadog-tracer-tests.ts"
|
||||
]
|
||||
}
|
||||
6
types/datadog-tracer/tslint.json
Normal file
6
types/datadog-tracer/tslint.json
Normal file
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"extends": "dtslint/dt.json",
|
||||
"rules": {
|
||||
"strict-export-declare-modifiers": false
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user