Do not use relative path in module references

This commit is contained in:
Mohamed Hegazy
2016-07-07 17:36:44 -07:00
parent a36070aeff
commit 62adcdbd5f
30 changed files with 73 additions and 36 deletions

View File

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

View File

@@ -10,8 +10,9 @@
*/
/// <reference types="jquery"/>
/// <reference types="moment" />
import * as moment from '../moment';
import * as moment from 'moment';
export as namespace BootstrapV3DatetimePicker;

View File

@@ -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
View File

@@ -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[]>;

View File

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

View File

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

View File

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

View File

@@ -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);

View File

@@ -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
View File

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

View File

@@ -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 {
/**

View File

@@ -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
View File

@@ -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 {
/**

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@@ -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[];

View File

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

View File

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

View File

@@ -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 {
/**

View File

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

View File

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

View File

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

View File

@@ -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
View File

@@ -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
View File

@@ -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
View File

@@ -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
View File

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