mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-03-29 00:18:20 +08:00
Do not use relative path in module references
This commit is contained in:
4
angular-bootstrap-calendar/index.d.ts
vendored
4
angular-bootstrap-calendar/index.d.ts
vendored
@@ -3,7 +3,9 @@
|
||||
// Definitions by: Egor Komarov <https://github.com/Odrin>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
import * as moment from '../moment';
|
||||
/// <reference types="moment" />
|
||||
|
||||
import * as moment from 'moment';
|
||||
import * as angular from 'angularjs';
|
||||
|
||||
declare module 'angularjs' {
|
||||
|
||||
@@ -10,8 +10,9 @@
|
||||
*/
|
||||
|
||||
/// <reference types="jquery"/>
|
||||
/// <reference types="moment" />
|
||||
|
||||
import * as moment from '../moment';
|
||||
import * as moment from 'moment';
|
||||
|
||||
export as namespace BootstrapV3DatetimePicker;
|
||||
|
||||
|
||||
3
bootstrap.v3.datetimepicker/index.d.ts
vendored
3
bootstrap.v3.datetimepicker/index.d.ts
vendored
@@ -11,8 +11,9 @@
|
||||
*/
|
||||
|
||||
/// <reference types="jquery"/>
|
||||
/// <reference types="moment"/>
|
||||
|
||||
import * as moment from '../moment';
|
||||
import * as moment from 'moment';
|
||||
|
||||
export as namespace BootstrapV3DatetimePicker;
|
||||
|
||||
|
||||
4
del/index.d.ts
vendored
4
del/index.d.ts
vendored
@@ -3,7 +3,9 @@
|
||||
// Definitions by: Asana <https://asana.com>, Aya Morisawa <https://github.com/AyaMorisawa>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
import glob = require("../glob");
|
||||
/// <reference types="glob" />
|
||||
|
||||
import glob = require("glob");
|
||||
|
||||
declare function Del(pattern: string): Promise<string[]>;
|
||||
declare function Del(pattern: string, options: Del.Options): Promise<string[]>;
|
||||
|
||||
3
eonasdan-bootstrap-datetimepicker/index.d.ts
vendored
3
eonasdan-bootstrap-datetimepicker/index.d.ts
vendored
@@ -4,8 +4,9 @@
|
||||
// Definitions: https://github.com/borisyankov/DefinitelyTyped
|
||||
|
||||
/// <reference types="jquery"/>
|
||||
/// <reference types="moment"/>
|
||||
|
||||
import * as moment from '../moment';
|
||||
import * as moment from 'moment';
|
||||
|
||||
export as namespace EonasdanBootstrapDatetimepicker;
|
||||
|
||||
|
||||
5
express-brute/index.d.ts
vendored
5
express-brute/index.d.ts
vendored
@@ -3,10 +3,9 @@
|
||||
// Definitions by: Cyril Schumacher <https://github.com/cyrilschumacher/>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
/// <reference types="express" />
|
||||
|
||||
|
||||
|
||||
import express = require("../express");
|
||||
import express = require("express");
|
||||
|
||||
/**
|
||||
* @summary Options for {@link MemoryStore} class.
|
||||
|
||||
3
fullCalendar/index.d.ts
vendored
3
fullCalendar/index.d.ts
vendored
@@ -4,8 +4,9 @@
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
/// <reference types="jquery"/>
|
||||
/// <reference types="moment" />
|
||||
|
||||
import * as moment from '../moment';
|
||||
import * as moment from 'moment';
|
||||
|
||||
export as namespace FC;
|
||||
|
||||
|
||||
4
glob-expand/index.d.ts
vendored
4
glob-expand/index.d.ts
vendored
@@ -3,7 +3,9 @@
|
||||
// Definitions by: vvakame <https://github.com/vvakame/>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
import * as glob from "../glob";
|
||||
/// <reference types="glob"/>
|
||||
|
||||
import * as glob from "glob";
|
||||
|
||||
interface Option {
|
||||
filter?: string | ((filePath: string) => boolean);
|
||||
|
||||
3
glob-stream/index.d.ts
vendored
3
glob-stream/index.d.ts
vendored
@@ -4,8 +4,9 @@
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
/// <reference types="node" />
|
||||
/// <reference types="glob" />
|
||||
|
||||
import glob = require('../glob');
|
||||
import glob = require('glob');
|
||||
|
||||
export interface Options extends glob.IOptions {
|
||||
cwd?: string;
|
||||
|
||||
3
glob/index.d.ts
vendored
3
glob/index.d.ts
vendored
@@ -4,10 +4,11 @@
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
/// <reference types="node" />
|
||||
/// <reference types="minimatch" />
|
||||
|
||||
import events = require("events");
|
||||
import fs = require('fs');
|
||||
import minimatch = require("../minimatch");
|
||||
import minimatch = require("minimatch");
|
||||
|
||||
declare function G(pattern: string, cb: (err: Error, matches: string[]) => void): void;
|
||||
declare function G(pattern: string, options: G.IOptions, cb: (err: Error, matches: string[]) => void): void;
|
||||
|
||||
3
gulp-changed/index.d.ts
vendored
3
gulp-changed/index.d.ts
vendored
@@ -4,9 +4,10 @@
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
/// <reference types="node"/>
|
||||
/// <reference types="vinyl" />
|
||||
|
||||
import { Transform } from "stream";
|
||||
import File = require("../vinyl");
|
||||
import File = require("vinyl");
|
||||
|
||||
interface IComparator {
|
||||
/**
|
||||
|
||||
3
gulp-cheerio/index.d.ts
vendored
3
gulp-cheerio/index.d.ts
vendored
@@ -5,8 +5,9 @@
|
||||
|
||||
/// <reference types="cheerio" />
|
||||
/// <reference types="node" />
|
||||
/// <reference types="vinyl" />
|
||||
|
||||
import Vinyl = require('../vinyl');
|
||||
import Vinyl = require('vinyl');
|
||||
|
||||
declare namespace cheerio {
|
||||
interface Cheerio {
|
||||
|
||||
3
gulp-if/index.d.ts
vendored
3
gulp-if/index.d.ts
vendored
@@ -4,9 +4,10 @@
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
/// <reference types="node"/>
|
||||
/// <reference types="vinyl" />
|
||||
|
||||
import fs = require('fs');
|
||||
import vinyl = require('../vinyl');
|
||||
import vinyl = require('vinyl');
|
||||
|
||||
interface GulpIf {
|
||||
/**
|
||||
|
||||
3
gulp-inject/index.d.ts
vendored
3
gulp-inject/index.d.ts
vendored
@@ -4,8 +4,9 @@
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
/// <reference types="node" />
|
||||
/// <reference types="vinyl" />
|
||||
|
||||
import File = require("../vinyl");
|
||||
import File = require("vinyl");
|
||||
|
||||
interface ITagFunction {
|
||||
(targetExt: string, sourceExt: string): string;
|
||||
|
||||
3
gulp-tslint/index.d.ts
vendored
3
gulp-tslint/index.d.ts
vendored
@@ -4,8 +4,9 @@
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
/// <reference types="node"/>
|
||||
/// <reference types="vinyl" />
|
||||
|
||||
import vinyl = require("../vinyl");
|
||||
import vinyl = require("vinyl");
|
||||
|
||||
declare namespace gulpTsLint {
|
||||
interface GulpTsLint {
|
||||
|
||||
3
gulp-util/index.d.ts
vendored
3
gulp-util/index.d.ts
vendored
@@ -5,8 +5,9 @@
|
||||
|
||||
/// <reference types="node" />
|
||||
/// <reference types="chalk" />
|
||||
/// <reference types="vinyl" />
|
||||
|
||||
import vinyl = require('../vinyl');
|
||||
import vinyl = require('vinyl');
|
||||
import chalk = require('chalk');
|
||||
import through2 = require('through2');
|
||||
|
||||
|
||||
4
html-minifier/index.d.ts
vendored
4
html-minifier/index.d.ts
vendored
@@ -3,7 +3,9 @@
|
||||
// Definitions by: Tanguy Krotoff <https://github.com/tkrotoff>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
import * as UglifyJS from '../uglify-js';
|
||||
/// <reference types="uglify-js" />
|
||||
|
||||
import * as UglifyJS from 'uglify-js';
|
||||
import * as CleanCSS from 'clean-css';
|
||||
import * as RelateUrl from 'relateurl';
|
||||
|
||||
|
||||
3
jquery.livestampjs/index.d.ts
vendored
3
jquery.livestampjs/index.d.ts
vendored
@@ -6,8 +6,9 @@
|
||||
// A simple, unobtrusive jQuery plugin that provides auto-updating timeago text to your timestamped HTML elements using Moment.js.
|
||||
|
||||
/// <reference types="jquery"/>
|
||||
/// <reference types="moment" />
|
||||
|
||||
import * as moment from '../moment';
|
||||
import * as moment from 'moment';
|
||||
|
||||
export as namespace LivestampGlobal;
|
||||
|
||||
|
||||
2
meteor-publish-composite/index.d.ts
vendored
2
meteor-publish-composite/index.d.ts
vendored
@@ -3,7 +3,7 @@
|
||||
// Definitions by: Robert Van Gorkom <https://github.com/vangorra>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
/// <reference types="../meteor" />
|
||||
/// <reference types="meteor" />
|
||||
|
||||
declare interface PublishCompositeConfigN {
|
||||
children? : PublishCompositeConfigN[];
|
||||
|
||||
6
moment-timezone/index.d.ts
vendored
6
moment-timezone/index.d.ts
vendored
@@ -3,7 +3,9 @@
|
||||
// Definitions by: Michel Salib <https://github.com/michelsalib>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
import * as moment from '../moment';
|
||||
/// <reference types="moment" />
|
||||
|
||||
import * as moment from 'moment';
|
||||
|
||||
export as namespace MomentTimezone;
|
||||
export = moment;
|
||||
@@ -56,7 +58,7 @@ declare namespace MomentTimezone {
|
||||
|
||||
}
|
||||
|
||||
declare module "../moment" {
|
||||
declare module "moment" {
|
||||
interface Moment {
|
||||
tz(): string;
|
||||
tz(timezone: string): Moment;
|
||||
|
||||
3
passport-http-bearer/index.d.ts
vendored
3
passport-http-bearer/index.d.ts
vendored
@@ -4,9 +4,10 @@
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
/// <reference types="passport"/>
|
||||
/// <reference types="express" />
|
||||
|
||||
import passport = require("passport");
|
||||
import express = require("../express");
|
||||
import express = require("express");
|
||||
|
||||
interface IStrategyOptions {
|
||||
scope: string | Array<string>;
|
||||
|
||||
4
passport-strategy/index.d.ts
vendored
4
passport-strategy/index.d.ts
vendored
@@ -10,10 +10,10 @@
|
||||
* inheriting the 'Strategy' class and reimplementing the 'authenticate' method.
|
||||
*/
|
||||
|
||||
|
||||
/// <reference types="express" />
|
||||
|
||||
import passport = require('passport');
|
||||
import express = require('../express');
|
||||
import express = require('express');
|
||||
|
||||
declare class Strategy implements passport.Strategy {
|
||||
/**
|
||||
|
||||
4
sequelize-fixtures/index.d.ts
vendored
4
sequelize-fixtures/index.d.ts
vendored
@@ -3,7 +3,9 @@
|
||||
// Definitions by: Christian Schwarz <https://github.com/cschwarz/>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
import * as Sequelize from "../sequelize";
|
||||
/// <reference types="sequelize" />
|
||||
|
||||
import * as Sequelize from "sequelize";
|
||||
|
||||
declare namespace SequelizeFixtures {
|
||||
interface Options {
|
||||
|
||||
3
svg-sprite/index.d.ts
vendored
3
svg-sprite/index.d.ts
vendored
@@ -4,8 +4,9 @@
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
/// <reference types="node" />
|
||||
/// <reference types="vinyl" />
|
||||
|
||||
import File = require('../vinyl');
|
||||
import File = require('vinyl');
|
||||
import winston = require('winston');
|
||||
|
||||
declare namespace sprite {
|
||||
|
||||
4
swig-email-templates/index.d.ts
vendored
4
swig-email-templates/index.d.ts
vendored
@@ -3,7 +3,9 @@
|
||||
// Definitions by: Adam Babcock <https://github.com/mrhen>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
import swig = require('../swig');
|
||||
/// <reference types="swig" />
|
||||
|
||||
import swig = require('swig');
|
||||
|
||||
interface SwigRender<T> {
|
||||
(file: string, context: T, callback: (err: any, html: string, text: string) => any): any;
|
||||
|
||||
4
tedious-connection-pool/index.d.ts
vendored
4
tedious-connection-pool/index.d.ts
vendored
@@ -3,7 +3,9 @@
|
||||
// Definitions by: Cyprien Autexier <https://github.com/sandorfr>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
import tedious = require('../tedious');
|
||||
/// <reference types="tedious" />
|
||||
|
||||
import tedious = require('tedious');
|
||||
|
||||
declare namespace tcp {
|
||||
|
||||
|
||||
6
twix/index.d.ts
vendored
6
twix/index.d.ts
vendored
@@ -3,7 +3,9 @@
|
||||
// Definitions by: j3ko <https://github.com/j3ko>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
import { Moment, Duration } from '../moment';
|
||||
/// <reference types="moment" />
|
||||
|
||||
import { Moment, Duration } from 'moment';
|
||||
|
||||
export interface TwixFormatOptions {
|
||||
groupMeridiems?: boolean;
|
||||
@@ -87,7 +89,7 @@ export interface TwixStatic {
|
||||
formatTemplate?: (left: any, right: any) => any;
|
||||
}
|
||||
|
||||
declare module "../moment" {
|
||||
declare module "moment" {
|
||||
interface Moment {
|
||||
twix(date: Date): Twix;
|
||||
twix(date: Date, allDay: boolean): Twix;
|
||||
|
||||
3
umzug/index.d.ts
vendored
3
umzug/index.d.ts
vendored
@@ -4,8 +4,9 @@
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
/// <reference types="bluebird" />
|
||||
/// <reference types="sequelize" />
|
||||
|
||||
import Sequelize = require("../sequelize");
|
||||
import Sequelize = require("sequelize");
|
||||
|
||||
declare namespace umzug {
|
||||
|
||||
|
||||
6
vinyl-fs/index.d.ts
vendored
6
vinyl-fs/index.d.ts
vendored
@@ -4,6 +4,8 @@
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
/// <reference types="node" />
|
||||
/// <reference types="vinyl" />
|
||||
/// <reference types="glob-stream" />
|
||||
|
||||
declare global {
|
||||
namespace NodeJS {
|
||||
@@ -14,8 +16,8 @@ declare global {
|
||||
}
|
||||
|
||||
import _events = require("events");
|
||||
import File = require("../vinyl");
|
||||
import globStream = require("../glob-stream");
|
||||
import File = require("vinyl");
|
||||
import globStream = require("glob-stream");
|
||||
|
||||
interface ISrcOptions extends globStream.Options {
|
||||
/** Specifies the working directory the folder is relative to */
|
||||
|
||||
4
webpack/index.d.ts
vendored
4
webpack/index.d.ts
vendored
@@ -3,7 +3,9 @@
|
||||
// Definitions by: Qubo <https://github.com/tkqubo>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
import * as UglifyJS from '../uglify-js';
|
||||
/// <reference types="uglify-js" />
|
||||
|
||||
import * as UglifyJS from 'uglify-js';
|
||||
|
||||
declare namespace webpack {
|
||||
interface Configuration {
|
||||
|
||||
Reference in New Issue
Block a user