packages/full_sdk/test-d/index.test-d.ts (8 lines of code) (raw):

import * as express from 'aws-xray-sdk-express'; import { captureMySQL } from 'aws-xray-sdk-mysql'; import { capturePostgres } from 'aws-xray-sdk-postgres'; import { expectType } from 'tsd'; import * as AWSXRay from '../lib'; expectType<typeof express>(AWSXRay.express); expectType<typeof captureMySQL>(AWSXRay.captureMySQL); expectType<typeof capturePostgres>(AWSXRay.capturePostgres);