import { expectType, expectDeprecated, expectNotDeprecated } from 'tsd' import pinoElasticSearch, { DestinationStream, Options } from '../' const options = {} as Options expectType(pinoElasticSearch()) expectType(pinoElasticSearch(options)) expectDeprecated(options['flush-bytes']) expectNotDeprecated(options.flushBytes) expectType(options.flushBytes) expectDeprecated(options['flush-interval']) expectNotDeprecated(options.flushInterval) expectType(options.flushInterval) expectDeprecated(options['op_type']) expectNotDeprecated(options.opType) expectType(options.opType) expectDeprecated(options['es-version']) expectNotDeprecated(options.esVersion) expectType(options.esVersion) expectDeprecated(options.rejectUnauthorized) expectNotDeprecated(options.tls?.rejectUnauthorized) expectType(options.tls?.rejectUnauthorized)