Fix "../tslint.json" to "dtslint.json" (#15957)

* Fix "../tslint.json" to "dtslint.json"

* Fix errors
This commit is contained in:
Andy 2017-04-18 10:35:52 -07:00 committed by GitHub
parent 1254dcd7c0
commit dae4a527d7
53 changed files with 108 additions and 104 deletions

View File

@ -1,5 +1,5 @@
{
"extends": "../tslint.json",
"extends": "dtslint/dt.json",
"rules": {
"interface-name": false,
"max-line-length": false

View File

@ -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 <https://github.com/archiverjs/node-archiver>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

View File

@ -1,5 +1,5 @@
{
"extends": "../tslint.json",
"extends": "dtslint/dt.json",
"rules": {
"ban-types": false
}

View File

@ -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
}
}

View File

@ -3,12 +3,12 @@
// Definitions by: slikts <https://github.com/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<FontFace> {
export interface FontFaceSet extends Set<FontFace> {
// events for when loading state changes
onloading: EventHandler;
onloadingdone: EventHandler;
@ -57,5 +57,3 @@ declare global {
fonts: FontFaceSet;
}
}
export {};

View File

@ -1,3 +1,6 @@
{
"extends": "../tslint.json"
"extends": "dtslint/dt.json",
"rules": {
"dt-header": false
}
}

View File

@ -1 +1 @@
{ "extends": "../tslint.json" }
{ "extends": "dtslint/dt.json" }

View File

@ -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 <https://github.com/NoelAbrahams>, Brett Gutstein <https://github.com/brettferdosi>, Chris Stone <https://github.com/ctstone>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped/documentdb
@ -6,7 +6,7 @@
/// <reference types="node" />
/** 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<TResult> = (error: QueryError, resource: TResult, responseHeaders: any) => void;
export type RequestCallback<TResult> = (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;

View File

@ -1 +1 @@
{ "extends": "../tslint.json" }
{ "extends": "dtslint/dt.json" }

View File

@ -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 <https://github.com/mrfunkycold>, Daniel P. Alvarez <https://github.com/unindented>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

View File

@ -1 +1 @@
{ "extends": "../tslint.json" }
{ "extends": "dtslint/dt.json" }

View File

@ -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 <http://github.com/jasonswearingen>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
@ -12,7 +12,7 @@ import stream = require("stream");
import Events = require("events");
import url = require("url");
interface IDictionary<T> {
export interface IDictionary<T> {
[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;

View File

@ -1,5 +1,5 @@
{
"extends": "../tslint.json",
"extends": "dtslint/dt.json",
"rules": {
"indent": [true, "tabs"],

View File

@ -1,3 +1,3 @@
{
"extends": "../tslint.json"
"extends": "dtslint/dt.json"
}

View File

@ -1 +1 @@
{ "extends": "../tslint.json" }
{ "extends": "dtslint/dt.json" }

View File

@ -1 +1 @@
{ "extends": "../tslint.json" }
{ "extends": "dtslint/dt.json" }

View File

@ -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 <https://github.com/itoasuka/>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

View File

@ -1 +1 @@
{ "extends": "../tslint.json" }
{ "extends": "dtslint/dt.json" }

View File

@ -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 <http://github.com/tcaesvk/>
// Definitions: https://github.com/DefinitelyType/DefinitelyTyped
/// <reference types="multer" />
import * as AWS from "aws-sdk";
import { StorageEngine } from "multer";

View File

@ -1 +1 @@
{ "extends": "../tslint.json" }
{ "extends": "dtslint/dt.json" }

View File

@ -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 <https://github.com/cyrilschumacher>, Florian Plattner <https://github.com/flowpl>
// 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.

View File

@ -1 +1 @@
{ "extends": "../tslint.json" }
{ "extends": "dtslint/dt.json" }

View File

@ -1 +1 @@
{ "extends": "../tslint.json" }
{ "extends": "dtslint/dt.json" }

View File

@ -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 <https://github.com/westy92/>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

View File

@ -1 +1 @@
{ "extends": "../tslint.json" }
{ "extends": "dtslint/dt.json" }

View File

@ -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 <https://github.com/manerfan>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

View File

@ -1 +1 @@
{ "extends": "../tslint.json" }
{ "extends": "dtslint/dt.json" }

View File

@ -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 <https://github.com/DovydasNavickas>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

View File

@ -1,3 +1,3 @@
{
"extends": "../tslint.json"
"extends": "dtslint/dt.json"
}

View File

@ -1 +1 @@
{ "extends": "../tslint.json" }
{ "extends": "dtslint/dt.json" }

View File

@ -1 +1 @@
{ "extends": "../tslint.json" }
{ "extends": "dtslint/dt.json" }

View File

@ -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' |

View File

@ -1 +1 @@
{ "extends": "../tslint.json" }
{ "extends": "dtslint/dt.json" }

View File

@ -1 +1 @@
{ "extends": "../tslint.json" }
{ "extends": "dtslint/dt.json" }

View File

@ -2,6 +2,7 @@
// Project: https://github.com/archriss/react-native-snap-carousel
// Definitions by: jnbt <https://github.com/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<ScrollViewProperties> {
export interface CarouselProps extends React.Props<ScrollViewProperties> {
// Required
/**

View File

@ -1 +1 @@
{ "extends": "../tslint.json" }
{ "extends": "dtslint/dt.json" }

View File

@ -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 <https://github.com/rogierschouten/>, Balázs Sándor <https://github.com/sanyatuning>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

View File

@ -1 +1 @@
{ "extends": "../tslint.json" }
{ "extends": "dtslint/dt.json" }

View File

@ -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 <https://github.com/CaselIT/typings-rwlock>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

View File

@ -1 +1 @@
{ "extends": "../tslint.json" }
{ "extends": "dtslint/dt.json" }

View File

@ -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 <https://github.com/geoffreak>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

View File

@ -1 +1 @@
{ "extends": "../tslint.json" }
{ "extends": "dtslint/dt.json" }

View File

@ -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 <https://github.com/mummybot>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <reference types="sinon" />
import * as Sinon from 'sinon';
interface Configuration {

View File

@ -1 +1 @@
{ "extends": "../tslint.json" }
{ "extends": "dtslint/dt.json" }

View File

@ -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 <http://dchao.co/>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
@ -6,7 +6,7 @@
/// <reference types="node" />
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;
}

View File

@ -1,5 +1,5 @@
{
"extends": "../tslint.json",
"extends": "dtslint/dt.json",
"rules": {
"ban-types": false
}

View File

@ -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 <http://dchao.co/>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
@ -6,29 +6,29 @@
/// <reference types="node" />
import { SQS } from "aws-sdk";
interface Options {
export interface Options {
queueUrl: string;
region?: string;
batchSize?: number;
sqs?: SQS;
}
type ProducerCallback<T> = (err?: Error, data?: T) => any;
export type ProducerCallback<T> = (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>): void;
queueSize(cb: ProducerCallback<number>): void;
}

View File

@ -1 +1 @@
{ "extends": "../tslint.json" }
{ "extends": "dtslint/dt.json" }

View File

@ -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 <https://github.com/ricardo-mello>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

View File

@ -1,3 +1,3 @@
{
"extends": "../tslint.json"
"extends": "dtslint/dt.json"
}

View File

@ -1 +1,6 @@
{ "extends": "../tslint.json" }
{
"extends": "dtslint/dt.json",
"rules": {
"dt-header": false
}
}

View File

@ -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 <https://github.com/aicest>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped

View File

@ -1,3 +1,3 @@
{
"extends": "../tslint.json"
"extends": "dtslint/dt.json"
}