mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 10:56:53 +00:00
FIx new lint errors (#18382)
This commit is contained in:
parent
e160492009
commit
af8b0d1294
@ -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;
|
||||
|
||||
2
types/angular/angular-component-router.d.ts
vendored
2
types/angular/angular-component-router.d.ts
vendored
@ -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';
|
||||
*
|
||||
|
||||
@ -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({
|
||||
|
||||
2
types/assert-plus/index.d.ts
vendored
2
types/assert-plus/index.d.ts
vendored
@ -5,7 +5,7 @@
|
||||
|
||||
/// <reference types="node" />
|
||||
|
||||
import {Stream} from 'stream';
|
||||
import { Stream } from 'stream';
|
||||
|
||||
export function array(arr: any[], message ?: string): void;
|
||||
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
import {nextTick} from 'async.nexttick';
|
||||
import { nextTick } from 'async.nexttick';
|
||||
|
||||
function calledOnNextTick(a: string): number {
|
||||
return parseInt(a, 10);
|
||||
|
||||
2
types/auto-sni/index.d.ts
vendored
2
types/auto-sni/index.d.ts
vendored
@ -5,7 +5,7 @@
|
||||
|
||||
/// <reference types="node" />
|
||||
|
||||
import {Server} from "https";
|
||||
import { Server } from "https";
|
||||
|
||||
declare namespace createServer {
|
||||
interface Options {
|
||||
|
||||
2
types/babel-core/index.d.ts
vendored
2
types/babel-core/index.d.ts
vendored
@ -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};
|
||||
|
||||
|
||||
|
||||
@ -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 {}';
|
||||
|
||||
2
types/babel-template/index.d.ts
vendored
2
types/babel-template/index.d.ts
vendored
@ -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;
|
||||
|
||||
|
||||
@ -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';
|
||||
|
||||
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
import {IncomingMessage} from 'http';
|
||||
import { IncomingMessage } from 'http';
|
||||
import auth = require('basic-auth');
|
||||
|
||||
const loginData = auth(undefined! as IncomingMessage);
|
||||
|
||||
@ -1 +1 @@
|
||||
{ "extends": "../tslint.json" }
|
||||
{ "extends": "dtslint/dt.json" }
|
||||
|
||||
2
types/blessed/index.d.ts
vendored
2
types/blessed/index.d.ts
vendored
@ -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";
|
||||
|
||||
|
||||
2
types/bwip-js/index.d.ts
vendored
2
types/bwip-js/index.d.ts
vendored
@ -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;
|
||||
|
||||
2
types/chokidar/index.d.ts
vendored
2
types/chokidar/index.d.ts
vendored
@ -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
|
||||
|
||||
@ -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 => {
|
||||
|
||||
2
types/consul/index.d.ts
vendored
2
types/consul/index.d.ts
vendored
@ -7,7 +7,7 @@
|
||||
|
||||
|
||||
|
||||
import {IncomingMessage as HttpIncomingMessage} from "http";
|
||||
import { IncomingMessage as HttpIncomingMessage } from "http";
|
||||
|
||||
declare namespace Consul {
|
||||
|
||||
|
||||
@ -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;
|
||||
|
||||
2
types/d3-hsv/index.d.ts
vendored
2
types/d3-hsv/index.d.ts
vendored
@ -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;
|
||||
|
||||
|
||||
4
types/d3-selection-multi/index.d.ts
vendored
4
types/d3-selection-multi/index.d.ts
vendored
@ -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
|
||||
|
||||
2
types/d3-tip/index.d.ts
vendored
2
types/d3-tip/index.d.ts
vendored
@ -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");
|
||||
|
||||
@ -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'}};
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
import {redditHot, hackerHot, wilsonScore} from 'decay';
|
||||
import { redditHot, hackerHot, wilsonScore } from 'decay';
|
||||
|
||||
const upvotes = 42;
|
||||
const downvotes = 12;
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
import {Required} from 'decorum';
|
||||
import { Required } from 'decorum';
|
||||
import {Email} from 'decorum';
|
||||
import {MinLength} from 'decorum';
|
||||
import {MaxLength} from 'decorum';
|
||||
|
||||
@ -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}]});
|
||||
|
||||
@ -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,
|
||||
|
||||
@ -1,3 +1,3 @@
|
||||
import {ROOT} from 'ebongarde-root';
|
||||
import { ROOT } from 'ebongarde-root';
|
||||
|
||||
console.log(ROOT);
|
||||
|
||||
@ -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;
|
||||
|
||||
2
types/epub/index.d.ts
vendored
2
types/epub/index.d.ts
vendored
@ -32,7 +32,7 @@
|
||||
**/
|
||||
declare module "epub" {
|
||||
|
||||
import {EventEmitter} from "events";
|
||||
import { EventEmitter } from "events";
|
||||
|
||||
interface TocElement {
|
||||
level: number;
|
||||
|
||||
@ -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', () => {
|
||||
|
||||
2
types/falcor-express/index.d.ts
vendored
2
types/falcor-express/index.d.ts
vendored
@ -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;
|
||||
|
||||
@ -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')
|
||||
|
||||
@ -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;
|
||||
|
||||
@ -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';
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
|
||||
import {ServerRequest, ServerResponse} from "http";
|
||||
import { ServerRequest, ServerResponse } from "http";
|
||||
import * as finalHandler from "finalhandler";
|
||||
|
||||
let req: ServerRequest;
|
||||
|
||||
2
types/finalhandler/index.d.ts
vendored
2
types/finalhandler/index.d.ts
vendored
@ -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;
|
||||
|
||||
|
||||
@ -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 {
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
|
||||
|
||||
import {flatten, unflatten} from "flat";
|
||||
import { flatten, unflatten } from "flat";
|
||||
|
||||
namespace TestFlatten {
|
||||
let options: {
|
||||
|
||||
2
types/geokdbush/index.d.ts
vendored
2
types/geokdbush/index.d.ts
vendored
@ -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>,
|
||||
|
||||
@ -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;
|
||||
|
||||
@ -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`.
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
import {GraphQLObjectType} from 'graphql';
|
||||
import { GraphQLObjectType } from 'graphql';
|
||||
import * as GraphQLDate from 'graphql-date';
|
||||
|
||||
const fooType = new GraphQLObjectType({
|
||||
|
||||
2
types/graphql-date/index.d.ts
vendored
2
types/graphql-date/index.d.ts
vendored
@ -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;
|
||||
|
||||
|
||||
@ -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({
|
||||
|
||||
2
types/graphql-type-json/index.d.ts
vendored
2
types/graphql-type-json/index.d.ts
vendored
@ -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;
|
||||
|
||||
2
types/gulp-watch/index.d.ts
vendored
2
types/gulp-watch/index.d.ts
vendored
@ -5,7 +5,7 @@
|
||||
|
||||
/// <reference types="node" />
|
||||
|
||||
import {SrcOptions} from "vinyl-fs";
|
||||
import { SrcOptions } from "vinyl-fs";
|
||||
|
||||
interface IOptions extends SrcOptions {
|
||||
ignoreInitial?: boolean;
|
||||
|
||||
2
types/hapi-auth-jwt2/index.d.ts
vendored
2
types/hapi-auth-jwt2/index.d.ts
vendored
@ -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 {
|
||||
/**
|
||||
|
||||
2
types/hapi/index.d.ts
vendored
2
types/hapi/index.d.ts
vendored
@ -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';
|
||||
|
||||
|
||||
@ -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");
|
||||
|
||||
2
types/inherits/index.d.ts
vendored
2
types/inherits/index.d.ts
vendored
@ -6,5 +6,5 @@
|
||||
/// <reference types="node" />
|
||||
|
||||
|
||||
import {inherits} from "util";
|
||||
import { inherits } from "util";
|
||||
export = inherits;
|
||||
|
||||
@ -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);
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
import {jdenticon} from "jdenticon";
|
||||
import { jdenticon } from "jdenticon";
|
||||
|
||||
function testJdenticon() {
|
||||
if (typeof jdenticon.version !== 'string') {
|
||||
|
||||
2
types/jest/index.d.ts
vendored
2
types/jest/index.d.ts
vendored
@ -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';
|
||||
|
||||
@ -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);
|
||||
}
|
||||
|
||||
2
types/json-socket/index.d.ts
vendored
2
types/json-socket/index.d.ts
vendored
@ -7,7 +7,7 @@
|
||||
|
||||
|
||||
|
||||
import {Socket} from "net";
|
||||
import { Socket } from "net";
|
||||
|
||||
declare class JsonSocket extends Socket {
|
||||
|
||||
|
||||
@ -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) => {});
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
import JSONEditor, {JSONEditorMode, JSONEditorNode, JSONEditorOptions} from 'jsoneditor';
|
||||
import JSONEditor, {JSONEditorMode, JSONEditorNode, JSONEditorOptions } from 'jsoneditor';
|
||||
|
||||
let options: JSONEditorOptions;
|
||||
options = {
|
||||
|
||||
@ -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"));
|
||||
|
||||
@ -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", {
|
||||
|
||||
@ -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
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
import * as kdbush from 'kdbush';
|
||||
import {KDBush} from 'kdbush';
|
||||
import { KDBush } from 'kdbush';
|
||||
|
||||
// API
|
||||
const points = [[110, 60], [130, 40]];
|
||||
|
||||
@ -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();
|
||||
|
||||
2
types/koa-helmet/index.d.ts
vendored
2
types/koa-helmet/index.d.ts
vendored
@ -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;
|
||||
|
||||
4
types/koa-redis/index.d.ts
vendored
4
types/koa-redis/index.d.ts
vendored
@ -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 {
|
||||
|
||||
@ -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");
|
||||
|
||||
|
||||
4
types/libpq/index.d.ts
vendored
4
types/libpq/index.d.ts
vendored
@ -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 {
|
||||
|
||||
@ -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';
|
||||
|
||||
2
types/ltx/index.d.ts
vendored
2
types/ltx/index.d.ts
vendored
@ -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';
|
||||
|
||||
2
types/ltx/lib/Parser.d.ts
vendored
2
types/ltx/lib/Parser.d.ts
vendored
@ -1,5 +1,5 @@
|
||||
/// <reference types="node" />
|
||||
import {EventEmitter} from 'events';
|
||||
import { EventEmitter } from 'events';
|
||||
export declare class Parser extends EventEmitter {
|
||||
constructor(options?: any);
|
||||
}
|
||||
|
||||
2
types/ltx/lib/createElement.d.ts
vendored
2
types/ltx/lib/createElement.d.ts
vendored
@ -1,2 +1,2 @@
|
||||
import {Element} from './Element';
|
||||
import { Element } from './Element';
|
||||
export declare function createElement(name: string, attrs: any): Element;
|
||||
|
||||
2
types/markdown-it-anchor/index.d.ts
vendored
2
types/markdown-it-anchor/index.d.ts
vendored
@ -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 {
|
||||
|
||||
2
types/mimos/index.d.ts
vendored
2
types/mimos/index.d.ts
vendored
@ -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';
|
||||
|
||||
/**
|
||||
*
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
import * as m from 'mithril';
|
||||
import {ClassComponent, Vnode, CVnode, CVnodeDOM} from 'mithril';
|
||||
import { ClassComponent, Vnode, CVnode, CVnodeDOM } from 'mithril';
|
||||
|
||||
///////////////////////////////////////////////////////////
|
||||
// 0.
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
import * as m from 'mithril';
|
||||
|
||||
import {Comp, Component} from 'mithril';
|
||||
import { Comp, Component } from 'mithril';
|
||||
|
||||
///////////////////////////////////////////////////////////
|
||||
// 0.
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
import * as m from 'mithril';
|
||||
import {Component, FactoryComponent, Vnode} from 'mithril';
|
||||
import { Component, FactoryComponent, Vnode } from 'mithril';
|
||||
|
||||
///////////////////////////////////////////////////////////
|
||||
// 0.
|
||||
|
||||
@ -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']);
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
import {jsonp} from 'mithril/request';
|
||||
import { jsonp } from 'mithril/request';
|
||||
|
||||
interface Result {
|
||||
id: number;
|
||||
|
||||
@ -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.');
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
import {request} from 'mithril/request';
|
||||
import { request } from 'mithril/request';
|
||||
|
||||
interface Result {
|
||||
id: number;
|
||||
|
||||
@ -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';
|
||||
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
import * as stream from 'mithril/stream';
|
||||
import {Stream} from 'mithril/stream';
|
||||
import { Stream } from 'mithril/stream';
|
||||
|
||||
{
|
||||
const s = stream(1);
|
||||
|
||||
@ -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(...):
|
||||
```
|
||||
|
||||
2
types/moxios/index.d.ts
vendored
2
types/moxios/index.d.ts
vendored
@ -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;
|
||||
|
||||
@ -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';
|
||||
|
||||
|
||||
6
types/multer-gridfs-storage/index.d.ts
vendored
6
types/multer-gridfs-storage/index.d.ts
vendored
@ -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';
|
||||
|
||||
|
||||
@ -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;
|
||||
|
||||
2
types/musicmetadata/index.d.ts
vendored
2
types/musicmetadata/index.d.ts
vendored
@ -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;
|
||||
|
||||
2
types/node-mysql-wrapper/index.d.ts
vendored
2
types/node-mysql-wrapper/index.d.ts
vendored
@ -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;
|
||||
|
||||
@ -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');
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
import {Client} from 'node-xmpp-client';
|
||||
import { Client } from 'node-xmpp-client';
|
||||
|
||||
const client = new Client({
|
||||
jid: 'user@example.com',
|
||||
|
||||
4
types/node-xmpp-core/index.d.ts
vendored
4
types/node-xmpp-core/index.d.ts
vendored
@ -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';
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
import {Connection} from 'node-xmpp-core';
|
||||
import { Connection } from 'node-xmpp-core';
|
||||
|
||||
const con = new Connection();
|
||||
con.on('online', () => {
|
||||
|
||||
@ -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 ///
|
||||
|
||||
@ -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 ///
|
||||
|
||||
@ -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 ///
|
||||
|
||||
@ -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 ///
|
||||
|
||||
2
types/nodegit/blame-options.d.ts
vendored
2
types/nodegit/blame-options.d.ts
vendored
@ -1,4 +1,4 @@
|
||||
import {Oid} from './oid';
|
||||
import { Oid } from './oid';
|
||||
|
||||
export class BlameOptions {
|
||||
/**
|
||||
|
||||
2
types/nodegit/blame.d.ts
vendored
2
types/nodegit/blame.d.ts
vendored
@ -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 {
|
||||
|
||||
2
types/nodegit/fetch-options.d.ts
vendored
2
types/nodegit/fetch-options.d.ts
vendored
@ -1,5 +1,5 @@
|
||||
import { RemoteCallbacks } from './remote-callbacks';
|
||||
import { Strarray} from './str-array';
|
||||
import { Strarray } from './str-array';
|
||||
|
||||
export interface FetchOptions {
|
||||
/**
|
||||
|
||||
6
types/nodegit/note.d.ts
vendored
6
types/nodegit/note.d.ts
vendored
@ -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
Loading…
Reference in New Issue
Block a user