diff --git a/types/angular-material/tslint.json b/types/angular-material/tslint.json index ffe2c812bd..8e8a076d2c 100644 --- a/types/angular-material/tslint.json +++ b/types/angular-material/tslint.json @@ -1,5 +1,5 @@ { - "extends": "../tslint.json", + "extends": "dtslint/dt.json", "rules": { "interface-name": false, "max-line-length": false diff --git a/types/archiver/index.d.ts b/types/archiver/index.d.ts index 967a4fca52..9c2b2ae509 100644 --- a/types/archiver/index.d.ts +++ b/types/archiver/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for archiver v1.3.0 +// Type definitions for archiver 1.3 // Project: https://github.com/archiverjs/node-archiver // Definitions by: Esri // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/archiver/tslint.json b/types/archiver/tslint.json index b0e7084e94..a62d0d4e68 100644 --- a/types/archiver/tslint.json +++ b/types/archiver/tslint.json @@ -1,5 +1,5 @@ { - "extends": "../tslint.json", + "extends": "dtslint/dt.json", "rules": { "ban-types": false } diff --git a/types/continuation-local-storage/tslint.json b/types/continuation-local-storage/tslint.json index 541275b974..4b7077d438 100644 --- a/types/continuation-local-storage/tslint.json +++ b/types/continuation-local-storage/tslint.json @@ -1,12 +1,12 @@ { - "extends": ["../tslint.json"], + "extends": "dtslint/dt.json", "rules": { - "only-arrow-functions": [false], - "no-consecutive-blank-lines": [false], - "one-line": [false], - "one-variable-per-declaration": [false], - "space-before-function-paren": [false], - "no-var": [false], - "interface-over-type-literal": [false] + "only-arrow-functions": false, + "no-consecutive-blank-lines": false, + "one-line": false, + "one-variable-per-declaration": false, + "space-before-function-paren": false, + "no-var": false, + "interface-over-type-literal": false } } diff --git a/types/css-font-loading-module/index.d.ts b/types/css-font-loading-module/index.d.ts index 0406ed1e36..95d504f272 100644 --- a/types/css-font-loading-module/index.d.ts +++ b/types/css-font-loading-module/index.d.ts @@ -3,12 +3,12 @@ // Definitions by: slikts // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -type FontFaceLoadStatus = 'unloaded' | 'loading' | 'loaded' | 'error'; -type FontFaceSetLoadStatus = 'loading' | 'loaded'; -type BinaryData = ArrayBuffer | ArrayBufferView; -type EventHandler = (event: Event) => void; +export type FontFaceLoadStatus = 'unloaded' | 'loading' | 'loaded' | 'error'; +export type FontFaceSetLoadStatus = 'loading' | 'loaded'; +export type BinaryData = ArrayBuffer | ArrayBufferView; +export type EventHandler = (event: Event) => void; -interface FontFaceDescriptors { +export interface FontFaceDescriptors { style?: string; weight?: string; stretch?: string; @@ -17,7 +17,7 @@ interface FontFaceDescriptors { featureSettings?: string; } -interface FontFaceSet extends Set { +export interface FontFaceSet extends Set { // events for when loading state changes onloading: EventHandler; onloadingdone: EventHandler; @@ -57,5 +57,3 @@ declare global { fonts: FontFaceSet; } } - -export {}; diff --git a/types/css-font-loading-module/tslint.json b/types/css-font-loading-module/tslint.json index f9e30021f4..65c83fb1e3 100644 --- a/types/css-font-loading-module/tslint.json +++ b/types/css-font-loading-module/tslint.json @@ -1,3 +1,6 @@ { - "extends": "../tslint.json" + "extends": "dtslint/dt.json", + "rules": { + "dt-header": false + } } diff --git a/types/debessmann/tslint.json b/types/debessmann/tslint.json index 377cc837d4..3db14f85ea 100644 --- a/types/debessmann/tslint.json +++ b/types/debessmann/tslint.json @@ -1 +1 @@ -{ "extends": "../tslint.json" } +{ "extends": "dtslint/dt.json" } diff --git a/types/documentdb/index.d.ts b/types/documentdb/index.d.ts index a786cae614..7e73926c7f 100644 --- a/types/documentdb/index.d.ts +++ b/types/documentdb/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for DocumentDB 1.10.2 +// Type definitions for DocumentDB 1.10 // Project: https://github.com/Azure/azure-documentdb-node // Definitions by: Noel Abrahams , Brett Gutstein , Chris Stone // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped/documentdb @@ -6,7 +6,7 @@ /// /** The feed options and query methods. */ -interface FeedOptions extends RequestOptions { +export interface FeedOptions extends RequestOptions { /** Max number of items to be returned in the enumeration operation. */ maxItemCount?: number; @@ -21,7 +21,7 @@ interface FeedOptions extends RequestOptions { } /** Options that can be specified for a request issued to the DocumentDB servers. */ -interface RequestOptions { +export interface RequestOptions { /** Indicates what is the pre trigger to be invoked before the operation. */ preTriggerInclude?: string; @@ -86,13 +86,13 @@ interface RequestOptions { populateQuotaInfo?: boolean; } -interface DocumentOptions extends RequestOptions { +export interface DocumentOptions extends RequestOptions { /** Disables the automatic id generation. If id is missing in the body and this option is true, an error will be returned. */ disableAutomaticIdGeneration?: boolean; } /** The Sql query parameter. */ -interface SqlParameter { +export interface SqlParameter { /** The name of the parameter. */ name: string; @@ -101,7 +101,7 @@ interface SqlParameter { } /** The Sql query specification. */ -interface SqlQuerySpec { +export interface SqlQuerySpec { /** The body of the query. */ query: string; @@ -110,7 +110,7 @@ interface SqlQuerySpec { } /** Represents the error object returned from a failed query. */ -interface QueryError { +export interface QueryError { /** The response code corresponding to the error. */ code: number; @@ -119,16 +119,16 @@ interface QueryError { } /** The callback to execute after the request execution. */ -type RequestCallback = (error: QueryError, resource: TResult, responseHeaders: any) => void; +export type RequestCallback = (error: QueryError, resource: TResult, responseHeaders: any) => void; /** Reprents an object with a unique identifier. */ -interface UniqueId { +export interface UniqueId { /** The user-defined unique identifier for a document or other DocumentDB object (database, collection, procedure...) */ id: string; } /** Represents the common meta data for all DocumentDB objects. */ -interface AbstractMeta extends UniqueId { +export interface AbstractMeta extends UniqueId { /** The self link. */ _self: string; @@ -142,7 +142,7 @@ interface AbstractMeta extends UniqueId { } /** Represents a custom document for storing in DocumentDB */ -interface NewDocument extends UniqueId { +export interface NewDocument extends UniqueId { /** The time to live in seconds of the document. */ ttl?: number; @@ -151,31 +151,31 @@ interface NewDocument extends UniqueId { } /** Represents a document retrieved from storage. */ -interface RetrievedDocument extends NewDocument, AbstractMeta { +export interface RetrievedDocument extends NewDocument, AbstractMeta { } /** Represents the meta data for a database. */ // tslint:disable-next-line:no-empty-interface -interface DatabaseMeta extends AbstractMeta { +export interface DatabaseMeta extends AbstractMeta { } /** Represents the meta data for a collection. */ // tslint:disable-next-line:no-empty-interface -interface CollectionMeta extends Collection, AbstractMeta { +export interface CollectionMeta extends Collection, AbstractMeta { } /** Represents the meta data for a stored procedure. */ -interface ProcedureMeta extends AbstractMeta { +export interface ProcedureMeta extends AbstractMeta { body: string; } /** Represents the meta data for a user-defined function. */ // tslint:disable-next-line:no-empty-interface -interface UserDefinedFunctionMeta extends AbstractMeta { +export interface UserDefinedFunctionMeta extends AbstractMeta { } /** Represents the meta data for a trigger. */ -interface TriggerMeta extends AbstractMeta { +export interface TriggerMeta extends AbstractMeta { body: string; triggerType: string; triggerOperation: string; @@ -184,7 +184,7 @@ interface TriggerMeta extends AbstractMeta { /** A user-defined function may either be defined in string form or as a real function */ export type UserFunction = ((...params: any[]) => void) | string; -interface UserScriptable extends UniqueId { +export interface UserScriptable extends UniqueId { /** The user function. Must set one of body or serverscript */ body?: UserFunction; @@ -283,18 +283,18 @@ export interface IndexingPolicy { ExcludedPaths: ExcludedPath[]; } -interface ExcludedPath { +export interface ExcludedPath { Path: string; } -interface IncludedPath { +export interface IncludedPath { /** Path to be indexed */ Path: string; Indexes: Index[]; } /** Specifies the supported Index types. */ -interface Index { +export interface Index { Kind: IndexKind; DataType: string; Precision: number; diff --git a/types/documentdb/tslint.json b/types/documentdb/tslint.json index 2221e40e4a..2750cc0197 100644 --- a/types/documentdb/tslint.json +++ b/types/documentdb/tslint.json @@ -1 +1 @@ -{ "extends": "../tslint.json" } \ No newline at end of file +{ "extends": "dtslint/dt.json" } \ No newline at end of file diff --git a/types/electron-config/index.d.ts b/types/electron-config/index.d.ts index afb526d921..9c2e299651 100644 --- a/types/electron-config/index.d.ts +++ b/types/electron-config/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for electron-config 0.2.1 +// Type definitions for electron-config 0.2 // Project: https://github.com/sindresorhus/electron-config // Definitions by: Jose M. Medina , Daniel P. Alvarez // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/electron-config/tslint.json b/types/electron-config/tslint.json index 377cc837d4..3db14f85ea 100644 --- a/types/electron-config/tslint.json +++ b/types/electron-config/tslint.json @@ -1 +1 @@ -{ "extends": "../tslint.json" } +{ "extends": "dtslint/dt.json" } diff --git a/types/hapi/index.d.ts b/types/hapi/index.d.ts index 56399f1561..3715fef37c 100644 --- a/types/hapi/index.d.ts +++ b/types/hapi/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for hapi 16.0.1 +// Type definitions for hapi 16.0 // Project: http://github.com/spumko/hapi // Definitions by: Jason Swearingen // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped @@ -12,7 +12,7 @@ import stream = require("stream"); import Events = require("events"); import url = require("url"); -interface IDictionary { +export interface IDictionary { [key: string]: T; } @@ -257,7 +257,7 @@ export interface IServerViewsConfiguration extends IServerViewsAdditionalOptions defaultExtension?: string; } -interface IReplyMethods { +export interface IReplyMethods { /** Returns control back to the framework without setting a response. If called in the handler, the response defaults to an empty payload with status code 200. * The data argument is only used for passing back authentication data and is ignored elsewhere. */ continue(credentialData?: any): void; diff --git a/types/hapi/tslint.json b/types/hapi/tslint.json index 8e09f7c80b..56c322f9d7 100644 --- a/types/hapi/tslint.json +++ b/types/hapi/tslint.json @@ -1,5 +1,5 @@ { - "extends": "../tslint.json", + "extends": "dtslint/dt.json", "rules": { "indent": [true, "tabs"], diff --git a/types/hash-file/tslint.json b/types/hash-file/tslint.json index f9e30021f4..f93cf8562a 100644 --- a/types/hash-file/tslint.json +++ b/types/hash-file/tslint.json @@ -1,3 +1,3 @@ { - "extends": "../tslint.json" + "extends": "dtslint/dt.json" } diff --git a/types/masonry-layout/tslint.json b/types/masonry-layout/tslint.json index 2221e40e4a..2750cc0197 100644 --- a/types/masonry-layout/tslint.json +++ b/types/masonry-layout/tslint.json @@ -1 +1 @@ -{ "extends": "../tslint.json" } \ No newline at end of file +{ "extends": "dtslint/dt.json" } \ No newline at end of file diff --git a/types/mime-types/tslint.json b/types/mime-types/tslint.json index 377cc837d4..3db14f85ea 100644 --- a/types/mime-types/tslint.json +++ b/types/mime-types/tslint.json @@ -1 +1 @@ -{ "extends": "../tslint.json" } +{ "extends": "dtslint/dt.json" } diff --git a/types/moxios/index.d.ts b/types/moxios/index.d.ts index aa3b82e9f1..d3d6dd5b51 100644 --- a/types/moxios/index.d.ts +++ b/types/moxios/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for moxios v0.4.0 +// Type definitions for moxios 0.4 // Project: https://github.com/mzabriskie/moxios // Definitions by: Asuka Ito // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/moxios/tslint.json b/types/moxios/tslint.json index 377cc837d4..3db14f85ea 100644 --- a/types/moxios/tslint.json +++ b/types/moxios/tslint.json @@ -1 +1 @@ -{ "extends": "../tslint.json" } +{ "extends": "dtslint/dt.json" } diff --git a/types/multer-s3/index.d.ts b/types/multer-s3/index.d.ts index 667d264072..f2d336169f 100644 --- a/types/multer-s3/index.d.ts +++ b/types/multer-s3/index.d.ts @@ -1,9 +1,8 @@ -// Type definitions for multer-s3 +// Type definitions for multer-s3 2.7 // Project: https://github.com/badunk/multer-s3 // Definitions by: KIM Jaesuck a.k.a. gim tcaesvk // Definitions: https://github.com/DefinitelyType/DefinitelyTyped -/// import * as AWS from "aws-sdk"; import { StorageEngine } from "multer"; diff --git a/types/multer-s3/tslint.json b/types/multer-s3/tslint.json index 377cc837d4..3db14f85ea 100644 --- a/types/multer-s3/tslint.json +++ b/types/multer-s3/tslint.json @@ -1 +1 @@ -{ "extends": "../tslint.json" } +{ "extends": "dtslint/dt.json" } diff --git a/types/node-schedule/index.d.ts b/types/node-schedule/index.d.ts index 82c1a35541..5dbd4335e6 100644 --- a/types/node-schedule/index.d.ts +++ b/types/node-schedule/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for node-schedule +// Type definitions for node-schedule 1.2 // Project: https://github.com/tejasmanohar/node-schedule/ // Definitions by: Cyril Schumacher , Florian Plattner // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped @@ -10,7 +10,7 @@ import { EventEmitter } from 'events'; /** * The callback executed by a Job */ -type JobCallback = () => void; +export type JobCallback = () => void; /** * Scheduler jobs. @@ -138,8 +138,8 @@ export class Range { contains(value: number): boolean; } -type Recurrence = number | Range | string; -type RecurrenceSegment = Recurrence | Recurrence[]; +export type Recurrence = number | Range | string; +export type RecurrenceSegment = Recurrence | Recurrence[]; /** * Recurrence rules. diff --git a/types/node-schedule/tslint.json b/types/node-schedule/tslint.json index 377cc837d4..3db14f85ea 100644 --- a/types/node-schedule/tslint.json +++ b/types/node-schedule/tslint.json @@ -1 +1 @@ -{ "extends": "../tslint.json" } +{ "extends": "dtslint/dt.json" } diff --git a/types/node-sprite-generator/tslint.json b/types/node-sprite-generator/tslint.json index 377cc837d4..3db14f85ea 100644 --- a/types/node-sprite-generator/tslint.json +++ b/types/node-sprite-generator/tslint.json @@ -1 +1 @@ -{ "extends": "../tslint.json" } +{ "extends": "dtslint/dt.json" } diff --git a/types/nodemailer-ses-transport/index.d.ts b/types/nodemailer-ses-transport/index.d.ts index 6f8100f6ec..ecda97f189 100644 --- a/types/nodemailer-ses-transport/index.d.ts +++ b/types/nodemailer-ses-transport/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for nodemailer-ses-transport 1.4.0 +// Type definitions for nodemailer-ses-transport 1.4 // Project: https://github.com/andris9/nodemailer-ses-transport // Definitions by: Seth Westphal // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/nodemailer-ses-transport/tslint.json b/types/nodemailer-ses-transport/tslint.json index 2221e40e4a..2750cc0197 100644 --- a/types/nodemailer-ses-transport/tslint.json +++ b/types/nodemailer-ses-transport/tslint.json @@ -1 +1 @@ -{ "extends": "../tslint.json" } \ No newline at end of file +{ "extends": "dtslint/dt.json" } \ No newline at end of file diff --git a/types/pigpio/index.d.ts b/types/pigpio/index.d.ts index fa89bc56ea..ea9a312286 100644 --- a/types/pigpio/index.d.ts +++ b/types/pigpio/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for pigpio 0.4.0 +// Type definitions for pigpio 0.4 // Project: https://github.com/fivdi/pigpio // Definitions by: ManerFan // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/pigpio/tslint.json b/types/pigpio/tslint.json index 377cc837d4..3db14f85ea 100644 --- a/types/pigpio/tslint.json +++ b/types/pigpio/tslint.json @@ -1 +1 @@ -{ "extends": "../tslint.json" } +{ "extends": "dtslint/dt.json" } diff --git a/types/prop-types/index.d.ts b/types/prop-types/index.d.ts index 8449418fdf..6d6439cd27 100644 --- a/types/prop-types/index.d.ts +++ b/types/prop-types/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for prop-types v15.5.4 +// Type definitions for prop-types 15.5 // Project: https://github.com/reactjs/prop-types // Definitions by: DovydasNavickas // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/prop-types/tslint.json b/types/prop-types/tslint.json index f9e30021f4..f93cf8562a 100644 --- a/types/prop-types/tslint.json +++ b/types/prop-types/tslint.json @@ -1,3 +1,3 @@ { - "extends": "../tslint.json" + "extends": "dtslint/dt.json" } diff --git a/types/react-chartjs-2/tslint.json b/types/react-chartjs-2/tslint.json index 377cc837d4..3db14f85ea 100644 --- a/types/react-chartjs-2/tslint.json +++ b/types/react-chartjs-2/tslint.json @@ -1 +1 @@ -{ "extends": "../tslint.json" } +{ "extends": "dtslint/dt.json" } diff --git a/types/react-grid-layout/tslint.json b/types/react-grid-layout/tslint.json index 377cc837d4..3db14f85ea 100644 --- a/types/react-grid-layout/tslint.json +++ b/types/react-grid-layout/tslint.json @@ -1 +1 @@ -{ "extends": "../tslint.json" } +{ "extends": "dtslint/dt.json" } diff --git a/types/react-native-drawer/index.d.ts b/types/react-native-drawer/index.d.ts index 3bba3ebce8..eb5a8aa988 100644 --- a/types/react-native-drawer/index.d.ts +++ b/types/react-native-drawer/index.d.ts @@ -6,17 +6,17 @@ import * as React from 'react'; import { ViewStyle, ScaledSize } from 'react-native'; -interface NestedViewStyles { +export interface NestedViewStyles { main?: ViewStyle; drawerOverlay?: ViewStyle; mainOverlay?: ViewStyle; } -interface DrawerStyles extends NestedViewStyles { +export interface DrawerStyles extends NestedViewStyles { drawer?: ViewStyle; } -type TweenFunctions = 'linear' | +export type TweenFunctions = 'linear' | 'easeInQuad' | 'easeOutQuad' | 'easeInOutQuad' | diff --git a/types/react-native-drawer/tslint.json b/types/react-native-drawer/tslint.json index 377cc837d4..3db14f85ea 100644 --- a/types/react-native-drawer/tslint.json +++ b/types/react-native-drawer/tslint.json @@ -1 +1 @@ -{ "extends": "../tslint.json" } +{ "extends": "dtslint/dt.json" } diff --git a/types/react-native-fetch-blob/tslint.json b/types/react-native-fetch-blob/tslint.json index 377cc837d4..3db14f85ea 100644 --- a/types/react-native-fetch-blob/tslint.json +++ b/types/react-native-fetch-blob/tslint.json @@ -1 +1 @@ -{ "extends": "../tslint.json" } +{ "extends": "dtslint/dt.json" } diff --git a/types/react-native-snap-carousel/index.d.ts b/types/react-native-snap-carousel/index.d.ts index 8d08f3ff82..ff77486831 100644 --- a/types/react-native-snap-carousel/index.d.ts +++ b/types/react-native-snap-carousel/index.d.ts @@ -2,6 +2,7 @@ // Project: https://github.com/archriss/react-native-snap-carousel // Definitions by: jnbt // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.1 import * as React from 'react'; import { @@ -11,7 +12,7 @@ import { ViewStyle } from 'react-native'; -interface CarouselProps extends React.Props { +export interface CarouselProps extends React.Props { // Required /** diff --git a/types/react-native-snap-carousel/tslint.json b/types/react-native-snap-carousel/tslint.json index 377cc837d4..3db14f85ea 100644 --- a/types/react-native-snap-carousel/tslint.json +++ b/types/react-native-snap-carousel/tslint.json @@ -1 +1 @@ -{ "extends": "../tslint.json" } +{ "extends": "dtslint/dt.json" } diff --git a/types/react-widgets/index.d.ts b/types/react-widgets/index.d.ts index 6326212c63..13d6c6cbe8 100644 --- a/types/react-widgets/index.d.ts +++ b/types/react-widgets/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for react-widgets v3.2.1 +// Type definitions for react-widgets 3.2 // Project: https://github.com/jquense/react-widgets // Definitions by: Rogier Schouten , Balázs Sándor // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/react-widgets/tslint.json b/types/react-widgets/tslint.json index 2221e40e4a..2750cc0197 100644 --- a/types/react-widgets/tslint.json +++ b/types/react-widgets/tslint.json @@ -1 +1 @@ -{ "extends": "../tslint.json" } \ No newline at end of file +{ "extends": "dtslint/dt.json" } \ No newline at end of file diff --git a/types/rwlock/index.d.ts b/types/rwlock/index.d.ts index a7611f22da..2a034b78c3 100644 --- a/types/rwlock/index.d.ts +++ b/types/rwlock/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for RWLock v5.0.0 +// Type definitions for RWLock 5.0 // Project: https://github.com/71104/rwlock // Definitions by: Federico Caselli // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/rwlock/tslint.json b/types/rwlock/tslint.json index 377cc837d4..3db14f85ea 100644 --- a/types/rwlock/tslint.json +++ b/types/rwlock/tslint.json @@ -1 +1 @@ -{ "extends": "../tslint.json" } +{ "extends": "dtslint/dt.json" } diff --git a/types/s3-upload-stream/index.d.ts b/types/s3-upload-stream/index.d.ts index 0127e01ddd..0f98ab46b2 100644 --- a/types/s3-upload-stream/index.d.ts +++ b/types/s3-upload-stream/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for s3-upload-stream +// Type definitions for s3-upload-stream 1.0 // Project: https://github.com/nathanpeck/s3-upload-stream // Definitions by: Joshua DeVinney // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/s3-upload-stream/tslint.json b/types/s3-upload-stream/tslint.json index 2221e40e4a..2750cc0197 100644 --- a/types/s3-upload-stream/tslint.json +++ b/types/s3-upload-stream/tslint.json @@ -1 +1 @@ -{ "extends": "../tslint.json" } \ No newline at end of file +{ "extends": "dtslint/dt.json" } \ No newline at end of file diff --git a/types/sinon-test/index.d.ts b/types/sinon-test/index.d.ts index 01fe7cd484..151842cf8e 100644 --- a/types/sinon-test/index.d.ts +++ b/types/sinon-test/index.d.ts @@ -1,10 +1,8 @@ -// Type definitions for sinon-test v1.0.1 +// Type definitions for sinon-test 1.0 // Project: https://github.com/sinonjs/sinon-test // Definitions by: Francis Saul // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -/// - import * as Sinon from 'sinon'; interface Configuration { diff --git a/types/sinon-test/tslint.json b/types/sinon-test/tslint.json index 377cc837d4..3db14f85ea 100644 --- a/types/sinon-test/tslint.json +++ b/types/sinon-test/tslint.json @@ -1 +1 @@ -{ "extends": "../tslint.json" } +{ "extends": "dtslint/dt.json" } diff --git a/types/sqs-consumer/index.d.ts b/types/sqs-consumer/index.d.ts index dbcbaf4086..e567eb0211 100644 --- a/types/sqs-consumer/index.d.ts +++ b/types/sqs-consumer/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for sqs-consumer +// Type definitions for sqs-consumer 3.5 // Project: https://github.com/BBC/sqs-consumer // Definitions by: Daniel Chao // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped @@ -6,7 +6,7 @@ /// import { SQS } from "aws-sdk"; -interface Options { +export interface Options { queueUrl: string; handleMessage(message: SQS.Message, done: Function): any; region?: string; @@ -19,7 +19,7 @@ interface Options { sqs?: SQS; } -interface Consumer extends NodeJS.EventEmitter { +export interface Consumer extends NodeJS.EventEmitter { start(): void; stop(): void; } diff --git a/types/sqs-consumer/tslint.json b/types/sqs-consumer/tslint.json index b0e7084e94..a62d0d4e68 100644 --- a/types/sqs-consumer/tslint.json +++ b/types/sqs-consumer/tslint.json @@ -1,5 +1,5 @@ { - "extends": "../tslint.json", + "extends": "dtslint/dt.json", "rules": { "ban-types": false } diff --git a/types/sqs-producer/index.d.ts b/types/sqs-producer/index.d.ts index 1cbd429541..aaaa8d8d5b 100644 --- a/types/sqs-producer/index.d.ts +++ b/types/sqs-producer/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for sqs-producer +// Type definitions for sqs-producer 1.5 // Project: https://github.com/BBC/sqs-producer // Definitions by: Daniel Chao // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped @@ -6,29 +6,29 @@ /// import { SQS } from "aws-sdk"; -interface Options { +export interface Options { queueUrl: string; region?: string; batchSize?: number; sqs?: SQS; } -type ProducerCallback = (err?: Error, data?: T) => any; +export type ProducerCallback = (err?: Error, data?: T) => any; -interface ProducerMessageAttribute { +export interface ProducerMessageAttribute { DataType: "String" | "Binary"; StringValue?: string; BinaryValue?: Buffer; } -interface ProducerMessage { +export interface ProducerMessage { id: string; body: string; messageAttributes?: { [key: string]: ProducerMessageAttribute }; delaySeconds?: number; } -interface Producer { +export interface Producer { send(messages: string[] | ProducerMessage[], cb: ProducerCallback): void; queueSize(cb: ProducerCallback): void; } diff --git a/types/sqs-producer/tslint.json b/types/sqs-producer/tslint.json index 2221e40e4a..2750cc0197 100644 --- a/types/sqs-producer/tslint.json +++ b/types/sqs-producer/tslint.json @@ -1 +1 @@ -{ "extends": "../tslint.json" } \ No newline at end of file +{ "extends": "dtslint/dt.json" } \ No newline at end of file diff --git a/types/topojson/index.d.ts b/types/topojson/index.d.ts index 6e4f473b34..bafc431ea3 100644 --- a/types/topojson/index.d.ts +++ b/types/topojson/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for topojson 3.0.0 +// Type definitions for topojson 3.0 // Project: https://github.com/topojson/topojson // Definitions by: Ricardo Mello // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/topojson/tslint.json b/types/topojson/tslint.json index f9e30021f4..f93cf8562a 100644 --- a/types/topojson/tslint.json +++ b/types/topojson/tslint.json @@ -1,3 +1,3 @@ { - "extends": "../tslint.json" + "extends": "dtslint/dt.json" } diff --git a/types/webassembly-js-api/tslint.json b/types/webassembly-js-api/tslint.json index 377cc837d4..65c83fb1e3 100644 --- a/types/webassembly-js-api/tslint.json +++ b/types/webassembly-js-api/tslint.json @@ -1 +1,6 @@ -{ "extends": "../tslint.json" } +{ + "extends": "dtslint/dt.json", + "rules": { + "dt-header": false + } +} diff --git a/types/zen-observable/index.d.ts b/types/zen-observable/index.d.ts index 0ebb18ef37..1614c80c58 100644 --- a/types/zen-observable/index.d.ts +++ b/types/zen-observable/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for zen-observable v0.5.1 +// Type definitions for zen-observable 0.5 // Project: https://github.com/zenparsing/zen-observable // Definitions by: Kombu // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/zen-observable/tslint.json b/types/zen-observable/tslint.json index ec365f164b..d88586e5bd 100644 --- a/types/zen-observable/tslint.json +++ b/types/zen-observable/tslint.json @@ -1,3 +1,3 @@ { - "extends": "../tslint.json" + "extends": "dtslint/dt.json" }