Convert some things to index.d.ts and use 'types' references

This commit is contained in:
Andy Hanson
2016-09-23 07:31:47 -07:00
parent 04b4272974
commit b7882e2361
9 changed files with 64 additions and 7 deletions

View File

@@ -3,7 +3,7 @@
// Definitions by: Borislav Zhivkov <https://github.com/borislavjivkov/>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <reference path="../angularjs/angular.d.ts" />
/// <reference types="angularjs" />
declare namespace angular.featureflags {
export interface FlagData {

2
busboy/busboy.d.ts vendored
View File

@@ -2,7 +2,7 @@
// Project: https://www.npmjs.com/package/busboy
// Definitions by: Jacob Baskin <https://github.com/jacobbaskin>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <reference path="../node/node.d.ts" />
/// <reference types="node" />
declare namespace busboy {
interface Options {

View File

@@ -3,7 +3,7 @@
// Definitions by: Gert Braspenning <https://github.com/brspnnggrt>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <reference path="../d3/d3.d.ts" />
/// <reference types="d3" />
declare namespace d3 {
type TooltipDirection = ("n" | "s" | "e" | "w" | "nw" | "ne" | "sw" | "se");

19
d3-tip/tsconfig.json Normal file
View File

@@ -0,0 +1,19 @@
{
"compilerOptions": {
"module": "commonjs",
"target": "es6",
"noImplicitAny": true,
"strictNullChecks": false,
"baseUrl": "../",
"typeRoots": [
"../"
],
"types": [],
"noEmit": true,
"forceConsistentCasingInFileNames": true
},
"files": [
"index.d.ts",
"d3-tip-tests.ts"
]
}

View File

@@ -3,7 +3,7 @@
// Definitions by: Jeffery Grajkowski <https://github.com/pushplay/>
// Definitions: https://github.com/psnider/DefinitelyTyped/imap-simple
/// <reference path="../imap/imap.d.ts" />
/// <reference types="imap" />
declare namespace IMAPS {

19
imap-simple/tsconfig.json Normal file
View File

@@ -0,0 +1,19 @@
{
"compilerOptions": {
"module": "commonjs",
"target": "es6",
"noImplicitAny": true,
"strictNullChecks": false,
"baseUrl": "../",
"typeRoots": [
"../"
],
"types": [],
"noEmit": true,
"forceConsistentCasingInFileNames": true
},
"files": [
"index.d.ts",
"imap-simple-tests.ts"
]
}

View File

@@ -6,7 +6,7 @@
node locutus_print.js define
*/
/// <reference path="../node/node.d.ts" />
/// <reference types="node" />
/// <reference path="./locutus.d.ts" />
var locutus = require('locutus');

View File

@@ -3,7 +3,7 @@
// Definitions by: Dominik Bruderer <https://github.com/dobrud>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <reference path="../geojson/geojson.d.ts" />
/// <reference types="geojson" />
declare namespace mapboxgl {
let accessToken: string;
@@ -462,7 +462,7 @@ declare namespace mapboxgl {
*/
export class VideoSource implements Source, VideoSourceOptions {
type: "video";
constructor(options?: mapboxgl.VideoSourceOptions);
getVideo(): HTMLVideoElement;

19
mapbox-gl/tsconfig.json Normal file
View File

@@ -0,0 +1,19 @@
{
"compilerOptions": {
"module": "commonjs",
"target": "es6",
"noImplicitAny": true,
"strictNullChecks": false,
"baseUrl": "../",
"typeRoots": [
"../"
],
"types": [],
"noEmit": true,
"forceConsistentCasingInFileNames": true
},
"files": [
"index.d.ts",
"mapbox-gl-tests.ts"
]
}