FIx new lint errors (#18382)

This commit is contained in:
Andy 2017-07-25 10:34:23 -07:00 committed by GitHub
parent e160492009
commit af8b0d1294
247 changed files with 263 additions and 263 deletions

View File

@ -1,5 +1,5 @@
import * as angular from "angular";
import {ClipboardService} from "angular-clipboard";
import { ClipboardService } from "angular-clipboard";
interface TestScope extends ng.IScope {
[index: string]: any;

View File

@ -15,7 +15,7 @@ declare namespace angular {
* ### Example
*
* ```
* import {Component} from 'angular2/core';
* import { Component } from 'angular2/core';
* import {bootstrap} from 'angular2/platform/browser';
* import {Router, ROUTER_DIRECTIVES, ROUTER_PROVIDERS, RouteConfig} from 'angular2/router';
*

View File

@ -1,7 +1,7 @@
// near copy of each of the tests from https://github.com/nodeca/argparse/tree/master/examples
import {ArgumentParser, RawDescriptionHelpFormatter} from 'argparse';
import { ArgumentParser, RawDescriptionHelpFormatter } from 'argparse';
var args: any;
var simpleExample = new ArgumentParser({

View File

@ -5,7 +5,7 @@
/// <reference types="node" />
import {Stream} from 'stream';
import { Stream } from 'stream';
export function array(arr: any[], message ?: string): void;

View File

@ -1,4 +1,4 @@
import {nextTick} from 'async.nexttick';
import { nextTick } from 'async.nexttick';
function calledOnNextTick(a: string): number {
return parseInt(a, 10);

View File

@ -5,7 +5,7 @@
/// <reference types="node" />
import {Server} from "https";
import { Server } from "https";
declare namespace createServer {
interface Options {

View File

@ -14,7 +14,7 @@ export {t as types};
type Node = t.Node;
export import template = require('babel-template');
export var version: string;
import traverse, {Visitor} from "babel-traverse";
import traverse, {Visitor } from "babel-traverse";
export {traverse, Visitor};

View File

@ -1,5 +1,5 @@
// Example from https://github.com/babel/babel/tree/master/packages/babel-generator
import {parse} from 'babylon';
import { parse } from 'babylon';
import generate from 'babel-generator';
const code = 'class Example {}';

View File

@ -9,7 +9,7 @@
/// <reference types="babel-types" />
import {BabylonOptions} from 'babylon';
import { BabylonOptions } from 'babylon';
import * as t from 'babel-types';
type Node = t.Node;

View File

@ -2,7 +2,7 @@
import * as babylon from "babylon";
import traverse, {Visitor} from 'babel-traverse';
import traverse, {Visitor } from 'babel-traverse';
import * as t from 'babel-types';

View File

@ -1,4 +1,4 @@
import {IncomingMessage} from 'http';
import { IncomingMessage } from 'http';
import auth = require('basic-auth');
const loginData = auth(undefined! as IncomingMessage);

View File

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

View File

@ -5,7 +5,7 @@
///<reference types="node"/>
import {EventEmitter} from 'events';
import { EventEmitter } from 'events';
import * as stream from "stream";
import * as child_process from "child_process";

View File

@ -5,7 +5,7 @@
/// <reference types="node" />
import {IncomingMessage as Request, ServerResponse as Response} from 'http';
import { IncomingMessage as Request, ServerResponse as Response } from 'http';
declare namespace BwipJs {
export function loadFont(fontName:string, sizeMulti: number, fontFile: string): void;

View File

@ -6,7 +6,7 @@
/// <reference types="node" />
import * as fs from 'fs';
import {EventEmitter} from 'events';
import { EventEmitter } from 'events';
/**
* The object's keys are all the directories (using absolute paths unless the `cwd` option was

View File

@ -1,4 +1,4 @@
import {compile} from 'closure-compiler';
import { compile } from 'closure-compiler';
compile('some.source()', {'check-only': null},
(err: Error, stdout: string, stderr: string): void => {

View File

@ -7,7 +7,7 @@
import {IncomingMessage as HttpIncomingMessage} from "http";
import { IncomingMessage as HttpIncomingMessage } from "http";
declare namespace Consul {

View File

@ -6,8 +6,8 @@
* are not intended as functional tests.
*/
import {hsv, HSVColor} from 'd3-hsv';
import {rgb, RGBColor} from 'd3-color';
import { hsv, HSVColor } from 'd3-hsv';
import { rgb, RGBColor } from 'd3-color';
let c: RGBColor;
let cHSV: HSVColor;

View File

@ -5,7 +5,7 @@
// Last module patch version validated against: 0.0.3
import {Color, RGBColor, ColorSpaceObject, ColorCommonInstance} from 'd3-color';
import { Color, RGBColor, ColorSpaceObject, ColorCommonInstance } from 'd3-color';
export type ColorSpaceObjectWithHSV = ColorSpaceObject | HSVColor;

View File

@ -5,8 +5,8 @@
// Last module patch version validated against: 1.0.0
import {Selection, BaseType, ArrayLike, ValueFn} from 'd3-selection';
import {Transition} from 'd3-transition';
import { Selection, BaseType, ArrayLike, ValueFn } from 'd3-selection';
import { Transition } from 'd3-transition';
/**
* An object mapping attribute (or style or property) names to value accessors

View File

@ -3,7 +3,7 @@
// Definitions by: Gert Braspenning <https://github.com/brspnnggrt>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
import {Primitive} from "d3";
import { Primitive } from "d3";
declare module "d3" {
type TooltipDirection = ("n" | "s" | "e" | "w" | "nw" | "ne" | "sw" | "se");

View File

@ -1,4 +1,4 @@
import {DM, Event, EventId} from 'debessmann';
import { DM, Event, EventId } from 'debessmann';
let eventId: EventId = {seq: 0, time: new Date()};
let e: Event = {_id: eventId, headers: {header1: 'header1Val'}};

View File

@ -1,4 +1,4 @@
import {redditHot, hackerHot, wilsonScore} from 'decay';
import { redditHot, hackerHot, wilsonScore } from 'decay';
const upvotes = 42;
const downvotes = 12;

View File

@ -1,4 +1,4 @@
import {Required} from 'decorum';
import { Required } from 'decorum';
import {Email} from 'decorum';
import {MinLength} from 'decorum';
import {MaxLength} from 'decorum';

View File

@ -1,4 +1,4 @@
import {push, pull} from 'dookie';
import { push, pull } from 'dookie';
(async () => {
await push('mongodb://localhost:27017/test', {test: [{ok: 1}, {ok: 2}]});

View File

@ -1,6 +1,6 @@
import * as React from "react";
import * as ReactDOM from "react-dom";
import {Map} from "immutable";
import { Map } from "immutable";
import {
ContentBlock,

View File

@ -1,3 +1,3 @@
import {ROOT} from 'ebongarde-root';
import { ROOT } from 'ebongarde-root';
console.log(ROOT);

View File

@ -1,6 +1,6 @@
import {app, BrowserWindow} from 'electron';
import { app, BrowserWindow } from 'electron';
import windowStateKeeper = require('electron-window-state');
let win: Electron.BrowserWindow = null;

View File

@ -32,7 +32,7 @@
**/
declare module "epub" {
import {EventEmitter} from "events";
import { EventEmitter } from "events";
interface TocElement {
level: number;

View File

@ -1,6 +1,6 @@
/// <reference types="mocha"" />
import {Expectation, Extension, Spy, createSpy, isSpy, assert, spyOn, extend, restoreSpies} from 'expect';
import { Expectation, Extension, Spy, createSpy, isSpy, assert, spyOn, extend, restoreSpies } from 'expect';
import * as expect from 'expect';
describe('chaining assertions', () => {

View File

@ -7,6 +7,6 @@
import {Request, Response, Handler} from 'express';
import { Request, Response, Handler } from 'express';
import {DataSource} from 'falcor';
declare function dataSourceRoute(getDataSource: (req: Request, res: Response) => DataSource): Handler;

View File

@ -1,5 +1,5 @@
import HttpDataSource from 'falcor-http-datasource';
import {Model} from 'falcor';
import { Model } from 'falcor';
const model = new Model({
source: new HttpDataSource('/model.json')

View File

@ -1,6 +1,6 @@
import {Key, KeySet, Path, PathSet, ref, atom, error, pathValue, pathInvalidation} from 'falcor-json-graph';
import { Key, KeySet, Path, PathSet, ref, atom, error, pathValue, pathInvalidation } from 'falcor-json-graph';
const stringKey: Key = "productsById";
const numberKey: Key = 10;

View File

@ -1,6 +1,6 @@
import {saveAs as importedSaveAs} from "file-saver";
import { saveAs as importedSaveAs } from "file-saver";
function testImportedSaveAs() {
var data: Blob = new Blob(["Hello, world!"], {type: "text/plain;charset=utf-8"});
var filename: string = 'hello world.txt';

View File

@ -1,5 +1,5 @@
import {ServerRequest, ServerResponse} from "http";
import { ServerRequest, ServerResponse } from "http";
import * as finalHandler from "finalhandler";
let req: ServerRequest;

View File

@ -5,7 +5,7 @@
/// <reference types="node" />
import {ServerRequest, ServerResponse} from "http";
import { ServerRequest, ServerResponse } from "http";
declare function finalHandler(req: ServerRequest, res: ServerResponse, options?: finalHandler.Options): (err: any) => void;

View File

@ -1,5 +1,5 @@
import * as React from "react";
import {Table, Cell, Column, CellProps} from "fixed-data-table";
import { Table, Cell, Column, CellProps } from "fixed-data-table";
// create your Table
class MyTable1 extends React.Component {

View File

@ -1,6 +1,6 @@
import {flatten, unflatten} from "flat";
import { flatten, unflatten } from "flat";
namespace TestFlatten {
let options: {

View File

@ -3,7 +3,7 @@
// Definitions by: Denis Carriere <https://github.com/DenisCarriere>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
import {KDBush} from 'kdbush';
import { KDBush } from 'kdbush';
export function around<T>(
index: KDBush<T>,

View File

@ -1,5 +1,5 @@
// common
import {vec2, mat2, mat3, mat4, vec3, vec4, mat2d, quat} from "gl-matrix";
import { vec2, mat2, mat3, mat4, vec3, vec4, mat2d, quat } from "gl-matrix";
var outVal: number;
var outBool: boolean;

View File

@ -1,6 +1,6 @@
import libphonenumber = require('google-libphonenumber');
import {PhoneNumberFormat, PhoneNumberUtil, AsYouTypeFormatter} from 'google-libphonenumber';
import { PhoneNumberFormat, PhoneNumberUtil, AsYouTypeFormatter } from 'google-libphonenumber';
() => {
// Require `PhoneNumberFormat`.

View File

@ -1,4 +1,4 @@
import {GraphQLObjectType} from 'graphql';
import { GraphQLObjectType } from 'graphql';
import * as GraphQLDate from 'graphql-date';
const fooType = new GraphQLObjectType({

View File

@ -3,7 +3,7 @@
// Definitions by: Eric Naeseth <https://github.com/enaeseth>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
import {GraphQLScalarType} from 'graphql';
import { GraphQLScalarType } from 'graphql';
declare const date: GraphQLScalarType;

View File

@ -1,4 +1,4 @@
import {GraphQLObjectType, GraphQLInputObjectType} from "graphql";
import { GraphQLObjectType, GraphQLInputObjectType } from "graphql";
import * as GraphQLJSON from "graphql-type-json";
const TestType = new GraphQLObjectType({

View File

@ -2,7 +2,7 @@
// Project: https://github.com/taion/graphql-type-json#readme
// Definitions by: Pavel Ivanov <https://github.com/schfkt>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
import {GraphQLScalarType} from "graphql";
import { GraphQLScalarType } from "graphql";
declare const GraphQLJSON: GraphQLScalarType;
export = GraphQLJSON;

View File

@ -5,7 +5,7 @@
/// <reference types="node" />
import {SrcOptions} from "vinyl-fs";
import { SrcOptions } from "vinyl-fs";
interface IOptions extends SrcOptions {
ignoreInitial?: boolean;

View File

@ -2,7 +2,7 @@
// Project: http://github.com/dwyl/hapi-auth-jwt2
// Definitions by: Warren Seymour <http://github.com/warrenseymour>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
import {Request, Response, PluginFunction} from 'hapi';
import { Request, Response, PluginFunction } from 'hapi';
declare namespace hapiAuthJwt2 {
/**

View File

@ -42,7 +42,7 @@ import {
type JoiValidationObject = JoiSchema | JoiSchemaMap | (JoiSchema | JoiSchemaMap)[];
import * as Catbox from 'catbox';
import {MimosOptions} from 'mimos';
import { MimosOptions } from 'mimos';
import Podium = require('podium');
import * as Shot from 'shot';

View File

@ -1,5 +1,5 @@
import Iconv = require("iconv");
import {Writable} from "stream";
import { Writable } from "stream";
const iconv: Iconv.Iconv = new Iconv("utf-8", "cp932");
const iconvFromFunction: Iconv.Iconv = Iconv("utf-8", "cp932");

View File

@ -6,5 +6,5 @@
/// <reference types="node" />
import {inherits} from "util";
import { inherits } from "util";
export = inherits;

View File

@ -1,4 +1,4 @@
import {isHoliday, isHolidayAt, getHolidaysOf} from 'japanese-holidays';
import { isHoliday, isHolidayAt, getHolidaysOf } from 'japanese-holidays';
const date = new Date(2017, 0, 9);
const h: string | undefined = isHoliday(date);

View File

@ -1,4 +1,4 @@
import {jdenticon} from "jdenticon";
import { jdenticon } from "jdenticon";
function testJdenticon() {
if (typeof jdenticon.version !== 'string') {

View File

@ -729,7 +729,7 @@ declare namespace jest {
type TestResultsProcessor = (testResult: AggregatedResult) => AggregatedResult;
type HasteResolver = any; // import HasteResolver from 'jest-resolve';
type ModuleMocker = any; // import {ModuleMocker} from 'jest-mock';
type ModuleMocker = any; // import { ModuleMocker } from 'jest-mock';
type ModuleMap = any; // import {ModuleMap} from 'jest-haste-map';
type HasteFS = any; // import {FS as HasteFS} from 'jest-haste-map';
type Runtime = any; // import Runtime from 'jest-runtime';

View File

@ -100,7 +100,7 @@ console.log(urls.toFilename(urls.URL("http://example.com")));
console.log(urls.DataURL("file:///my/path/file.txt").mimeType);
import * as windows from "sdk/windows";
import {stringify} from "sdk/querystring";
import { stringify } from "sdk/querystring";
for (let window of windows.browserWindows) {
console.info(window.title);
}

View File

@ -7,7 +7,7 @@
import {Socket} from "net";
import { Socket } from "net";
declare class JsonSocket extends Socket {

View File

@ -1,6 +1,6 @@
import JsonSocket = require("json-socket");
import {Socket} from "net";
import { Socket } from "net";
JsonSocket.sendSingleMessage(42, "localhost", {foo: "bar"}, (err: Error) => {});
JsonSocket.sendSingleMessageAndReceive(42, "localhost", {foo: "bar"}, (err: Error, message: any) => {});

View File

@ -1,4 +1,4 @@
import JSONEditor, {JSONEditorMode, JSONEditorNode, JSONEditorOptions} from 'jsoneditor';
import JSONEditor, {JSONEditorMode, JSONEditorNode, JSONEditorOptions } from 'jsoneditor';
let options: JSONEditorOptions;
options = {

View File

@ -1,4 +1,4 @@
import {jui, UtilColor, UtilBase} from "jui-core";
import { jui, UtilColor, UtilBase } from "jui-core";
jui.ready(["util.color"], (color: UtilColor) => {
console.log(color.rgb("#ff0000"));

View File

@ -1,7 +1,7 @@
/// <reference types="jquery" />
import {jui} from 'jui-core';
import {GridTable, GridXTable, GridRow} from "jui-grid";
import { jui } from 'jui-core';
import { GridTable, GridXTable, GridRow } from "jui-grid";
jui.ready([ "grid.table" ], (table: GridTable) => {
const table_1: GridTable = table("#table_1", {

View File

@ -1,4 +1,4 @@
import {jui} from 'jui-core';
import { jui } from 'jui-core';
import {
UIAccordion, UIAutoComplete, UIColorPicker, UICombo, UIDatePicker, UIDropdown, UIModal, UINotify,
UIPaging, UIProgress, UIProperty, UISelect

View File

@ -1,5 +1,5 @@
import * as kdbush from 'kdbush';
import {KDBush} from 'kdbush';
import { KDBush } from 'kdbush';
// API
const points = [[110, 60], [130, 40]];

View File

@ -1,5 +1,5 @@
import * as Koa from "koa";
import {MemoryStore, Session} from "koa-generic-session";
import { MemoryStore, Session } from "koa-generic-session";
import session = require("koa-generic-session");
const app = new Koa();

View File

@ -11,7 +11,7 @@ import {
IHelmetDnsPrefetchControlConfiguration,
IHelmetHpkpConfiguration,
IHelmetReferrerPolicyConfiguration } from 'helmet';
import {Middleware, Context} from 'koa';
import { Middleware, Context } from 'koa';
declare namespace koaHelmet {
type KoaHelmetContentSecurityPolicyDirectiveFunction = (ctx: Context) => string;

View File

@ -3,8 +3,8 @@
// Definitions by: Nick Simmons <https://github.com/nsimmons>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
import {ClientOpts} from 'redis';
import {SessionStore} from 'koa-generic-session';
import { ClientOpts } from 'redis';
import { SessionStore } from 'koa-generic-session';
declare namespace redisStore {
interface RedisOptions extends ClientOpts {

View File

@ -1,5 +1,5 @@
import * as Koa from "koa";
import {MemoryStore, Session} from "koa-generic-session";
import { MemoryStore, Session } from "koa-generic-session";
import session = require("koa-generic-session");
import redisStore = require("koa-redis");

View File

@ -6,8 +6,8 @@
/// <reference types="node" />
import {EventEmitter} from 'events';
import {Buffer} from 'buffer';
import { EventEmitter } from 'events';
import { Buffer } from 'buffer';
declare namespace Libpq {
interface NotifyMsg {

View File

@ -1,6 +1,6 @@
/// <reference types="mocha" />
import {Buffer} from 'buffer';
import { Buffer } from 'buffer';
import * as assert from 'assert';
import * as async from 'async';
import * as PQ from 'libpq';

View File

@ -4,7 +4,7 @@
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.1
export {Element} from './lib/Element';
export {Element } from './lib/Element';
export {nameEqual, attrsEqual, childrenEqual, equal} from './lib/equal';
export {isNode, isElement, isText} from './lib/is';
export {clone} from './lib/clone';

View File

@ -1,5 +1,5 @@
/// <reference types="node" />
import {EventEmitter} from 'events';
import { EventEmitter } from 'events';
export declare class Parser extends EventEmitter {
constructor(options?: any);
}

View File

@ -1,2 +1,2 @@
import {Element} from './Element';
import { Element } from './Element';
export declare function createElement(name: string, attrs: any): Element;

View File

@ -4,7 +4,7 @@
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.2
import {MarkdownIt, Core, Token} from 'markdown-it';
import { MarkdownIt, Core, Token } from 'markdown-it';
declare namespace anchor {
interface AnchorInfo {

View File

@ -4,7 +4,7 @@
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.2
import {DataStructure as MimeDbDataStructure} from 'mime-db';
import { DataStructure as MimeDbDataStructure } from 'mime-db';
/**
*

View File

@ -1,5 +1,5 @@
import * as m from 'mithril';
import {ClassComponent, Vnode, CVnode, CVnodeDOM} from 'mithril';
import { ClassComponent, Vnode, CVnode, CVnodeDOM } from 'mithril';
///////////////////////////////////////////////////////////
// 0.

View File

@ -1,6 +1,6 @@
import * as m from 'mithril';
import {Comp, Component} from 'mithril';
import { Comp, Component } from 'mithril';
///////////////////////////////////////////////////////////
// 0.

View File

@ -1,5 +1,5 @@
import * as m from 'mithril';
import {Component, FactoryComponent, Vnode} from 'mithril';
import { Component, FactoryComponent, Vnode } from 'mithril';
///////////////////////////////////////////////////////////
// 0.

View File

@ -1,5 +1,5 @@
import * as m from 'mithril';
import {Vnode} from 'mithril/';
import { Vnode } from 'mithril/';
import * as h from 'mithril/hyperscript';
const vnode = m.fragment({id: 'abc'}, ['test']);

View File

@ -1,4 +1,4 @@
import {jsonp} from 'mithril/request';
import { jsonp } from 'mithril/request';
interface Result {
id: number;

View File

@ -1,7 +1,7 @@
import {trust, parseQueryString, buildQueryString} from 'mithril';
import { trust, parseQueryString, buildQueryString } from 'mithril';
import * as h from 'mithril/hyperscript';
import {render} from 'mithril/render';
import {redraw} from 'mithril/redraw';
import { render } from 'mithril/render';
import { redraw } from 'mithril/redraw';
import * as withAttr from 'mithril/withAttr';
const vnode = trust('Some <strong>bold</strong> text.');

View File

@ -1,4 +1,4 @@
import {request} from 'mithril/request';
import { request } from 'mithril/request';
interface Result {
id: number;

View File

@ -1,4 +1,4 @@
import {Component, Comp, RouteResolver} from 'mithril';
import { Component, Comp, RouteResolver } from 'mithril';
import * as h from 'mithril/hyperscript';
import * as route from 'mithril/route';

View File

@ -1,5 +1,5 @@
import * as stream from 'mithril/stream';
import {Stream} from 'mithril/stream';
import { Stream } from 'mithril/stream';
{
const s = stream(1);

View File

@ -21,7 +21,7 @@ var MySchema: mongoose.Schema = new mongoose.Schema(...);
Alternatively, you can import individual names and call them:
```typescript
import {model, Schema} from 'mongoose';
import { model, Schema } from 'mongoose';
var MyModel = model(...);
var MySchema: Schema = new Schema(...):
```

View File

@ -3,7 +3,7 @@
// Definitions by: Asuka Ito <https://github.com/itoasuka/>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
import {AxiosInstance} from "axios";
import { AxiosInstance } from "axios";
interface Item {
response?: any;

View File

@ -1,5 +1,5 @@
// from https://github.com/mzabriskie/moxios/blob/master/test.js
import {equal, notEqual, deepEqual} from 'power-assert'; // compatible with 'assert';
import { equal, notEqual, deepEqual } from 'power-assert'; // compatible with 'assert';
import axios from 'axios';
import * as moxios from 'moxios';

View File

@ -3,10 +3,10 @@
// Definitions by: devconcept <https://github.com/devconcept/>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
import {EventEmitter} from 'events';
import {Express} from 'express';
import { EventEmitter } from 'events';
import { Express } from 'express';
import * as Multer from 'multer';
import {Grid} from 'gridfs-stream';
import { Grid } from 'gridfs-stream';
type logConfig = 'file' | 'all';

View File

@ -1,5 +1,5 @@
import * as MulterGridfsStorage from 'multer-gridfs-storage';
import {Grid} from "gridfs-stream";
import { Grid } from "gridfs-stream";
// Exported interfaces
let opt1: MulterGridfsStorage.GfsStorageOptions;

View File

@ -6,7 +6,7 @@
/// <reference types="node" />
declare module "musicmetadata" {
import {Readable} from "stream";
import { Readable } from "stream";
import {EventEmitter} from "events";
function mm(readStream: Readable, callback: (err: Error, metadata: MM.Metadata) => void): EventEmitter;

View File

@ -8,7 +8,7 @@
import * as Mysql from 'mysql';
import * as Promise from 'bluebird';
import {EventEmitter} from 'events';
import { EventEmitter } from 'events';
declare var EQUAL_TO_PROPERTY_SYMBOL: string;
declare var TABLE_RULES_PROPERTY: string;

View File

@ -1,4 +1,4 @@
import {Server, version, mime} from 'node-static';
import { Server, version, mime } from 'node-static';
let server = new Server(__dirname);
let pathname = server.resolve('./tsconfig.json');

View File

@ -1,4 +1,4 @@
import {Client} from 'node-xmpp-client';
import { Client } from 'node-xmpp-client';
const client = new Client({
jid: 'user@example.com',

View File

@ -4,8 +4,8 @@
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.1
/// <reference types="node" />
import {Element} from 'ltx';
import {EventEmitter} from 'events';
import { Element } from 'ltx';
import { EventEmitter } from 'events';
// fixme: not ideal
export {createElement, Element, escapeXML, escapeXMLText} from 'ltx';

View File

@ -1,4 +1,4 @@
import {Connection} from 'node-xmpp-core';
import { Connection } from 'node-xmpp-core';
const con = new Connection();
con.on('online', () => {

View File

@ -29,7 +29,7 @@ import * as dns from "dns";
import * as async_hooks from "async_hooks";
// Specifically test buffer module regression.
import {Buffer as ImportedBuffer, SlowBuffer as ImportedSlowBuffer} from "buffer";
import { Buffer as ImportedBuffer, SlowBuffer as ImportedSlowBuffer } from "buffer";
//////////////////////////////////////////////////////////
/// Global Tests : https://nodejs.org/api/global.html ///

View File

@ -22,7 +22,7 @@ import * as string_decoder from "string_decoder";
import * as dns from "dns";
// Specifically test buffer module regression.
import {Buffer as ImportedBuffer, SlowBuffer as ImportedSlowBuffer} from "buffer";
import { Buffer as ImportedBuffer, SlowBuffer as ImportedSlowBuffer } from "buffer";
//////////////////////////////////////////////////////////
/// Global Tests : https://nodejs.org/api/global.html ///

View File

@ -27,7 +27,7 @@ import * as repl from "repl";
import * as dns from "dns";
// Specifically test buffer module regression.
import {Buffer as ImportedBuffer, SlowBuffer as ImportedSlowBuffer} from "buffer";
import { Buffer as ImportedBuffer, SlowBuffer as ImportedSlowBuffer } from "buffer";
//////////////////////////////////////////////////////////
/// Global Tests : https://nodejs.org/api/global.html ///

View File

@ -28,7 +28,7 @@ import * as v8 from "v8";
import * as dns from "dns";
// Specifically test buffer module regression.
import {Buffer as ImportedBuffer, SlowBuffer as ImportedSlowBuffer} from "buffer";
import { Buffer as ImportedBuffer, SlowBuffer as ImportedSlowBuffer } from "buffer";
//////////////////////////////////////////////////////////
/// Global Tests : https://nodejs.org/api/global.html ///

View File

@ -1,4 +1,4 @@
import {Oid} from './oid';
import { Oid } from './oid';
export class BlameOptions {
/**

View File

@ -1,6 +1,6 @@
import { Repository } from './repository';
import { BlameOptions } from './blame-options';
import {BlameHunk} from './blame-hunk';
import { BlameHunk } from './blame-hunk';
export namespace Blame {
const enum FLAG {

View File

@ -1,5 +1,5 @@
import { RemoteCallbacks } from './remote-callbacks';
import { Strarray} from './str-array';
import { Strarray } from './str-array';
export interface FetchOptions {
/**

View File

@ -1,6 +1,6 @@
import {Repository} from './repository';
import {Signature} from './signature';
import {Oid} from './oid';
import { Repository } from './repository';
import { Signature } from './signature';
import { Oid } from './oid';
export class Note {
/**

Some files were not shown because too many files have changed in this diff Show More