mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-12-06 13:11:46 +00:00
Fix more reference paths
This commit is contained in:
@@ -1,5 +1,3 @@
|
||||
///<reference path='angular-bootstrap-lightbox.d.ts'/>
|
||||
|
||||
var imageList:angular.bootstrap.lightbox.ILightboxImageInfo[] = [];
|
||||
imageList.push({
|
||||
url: 'url1',
|
||||
|
||||
@@ -1,6 +1,3 @@
|
||||
|
||||
|
||||
|
||||
function ConfigurationMethodChaining(AnalyticsProvider: angular.google.analytics.AnalyticsProvider) {
|
||||
AnalyticsProvider
|
||||
.logAllCalls(true)
|
||||
|
||||
Vendored
+1
@@ -4,6 +4,7 @@
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
/// <reference types="angularjs" />
|
||||
/// <reference path="angular-google-analytics-service.d.ts" />
|
||||
|
||||
declare namespace angular.google.analytics {
|
||||
/**
|
||||
|
||||
@@ -1,6 +1,3 @@
|
||||
|
||||
/// <reference path='angular-localForage.d.ts' />
|
||||
|
||||
var app = angular.module('angular-localForage-tests', ['LocalForageModule']);
|
||||
app.config(function (localStorageServiceProvider:angular.localForage.ILocalForageProvider) {
|
||||
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
///<reference types="angularjs" />
|
||||
///<reference path="./angularLocalStorage.d.ts" />
|
||||
/// <reference types="angularjs" />
|
||||
|
||||
interface TestScope extends ng.IScope {
|
||||
viewType: string;
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
/// <reference path="animation-frame.d.ts"/>
|
||||
namespace AnimationFrameTests {
|
||||
var animation = new AnimationFrame();
|
||||
function frame() {
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
///<reference path='applicationinsights.d.ts' />
|
||||
import * as appInsights from "applicationinsights";
|
||||
|
||||
// basic use
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
/// <reference path="autobahn.d.ts"/>
|
||||
|
||||
import autobahn = require("autobahn");
|
||||
|
||||
class MyClass {
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
///<reference path="./autolinker.d.ts"/>
|
||||
|
||||
import AutolinkerCJS = require('autolinker');
|
||||
|
||||
() => {
|
||||
|
||||
Vendored
+2
-1
@@ -6,7 +6,8 @@
|
||||
import * as Backbone from 'backbone';
|
||||
|
||||
declare global {
|
||||
import Store = Backbone.LocalStorage;
|
||||
const Store = Backbone.LocalStorage;
|
||||
type Store = Backbone.LocalStorage;
|
||||
}
|
||||
|
||||
declare module 'backbone' {
|
||||
|
||||
@@ -1,8 +1,6 @@
|
||||
|
||||
/// <reference types="mocha" />
|
||||
/// <reference types="chai" />
|
||||
/// <reference types="angularjs" />
|
||||
/// <reference types="angular-mocks" />
|
||||
|
||||
namespace bardTests {
|
||||
var expect = chai.expect,
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
|
||||
|
||||
/// <reference types="Q" />
|
||||
import * as Validators from './node-validators';
|
||||
|
||||
export interface IPerson{
|
||||
Checked:boolean;
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
///<reference path="chartist.d.ts" />
|
||||
|
||||
Chartist.escapingMap = {
|
||||
'&': '&',
|
||||
'<': '<',
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
/// <reference types="jquery"/>
|
||||
/// <reference path="chui.d.ts"/>
|
||||
|
||||
$(function() {
|
||||
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
///<reference path='classnames.d.ts' />
|
||||
|
||||
import classNames = require('classnames')
|
||||
|
||||
classNames('foo', 'bar'); // => 'foo bar'
|
||||
|
||||
Vendored
+2
-2
@@ -3,8 +3,8 @@
|
||||
// Definitions by: Hendrik Maus <https://github.com/hendrikmaus>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
|
||||
/// <reference path="keyboard.d.ts" />
|
||||
|
||||
interface CordovaPlugins {
|
||||
Keyboard:Ionic.Keyboard;
|
||||
Keyboard: Ionic.Keyboard;
|
||||
}
|
||||
|
||||
@@ -1,7 +1,4 @@
|
||||
/// <reference path="./cordova-plugin-ms-adal.d.ts"/>
|
||||
|
||||
function test_cordova_plugin_ms_adal() {
|
||||
|
||||
var testConfiguration = {
|
||||
authority: 'https://login.microsoftonline.com/testtenant.onmicrosoft.com',
|
||||
resourceUrl: 'https://graph.windows.net/',
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
///<reference types="tether" />
|
||||
///<reference path="drop.d.ts" />
|
||||
|
||||
var yellowBox = document.querySelector(".yellow");
|
||||
var greenBox = document.querySelector(".green");
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
/// <reference path="./dropzone.d.ts"/>
|
||||
|
||||
const dropzoneFromString = new Dropzone(".test");
|
||||
const dropzoneFromElement = new Dropzone(document.getElementById("test"));
|
||||
const dropzoneRenameFunction = function (name:string):string {
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
/// <reference types="jquery"/>
|
||||
/// <reference path="dynatable.d.ts"/>
|
||||
|
||||
|
||||
// Using the global setup option
|
||||
// =============================
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
/// <reference path="fingerprint.d.ts"/>
|
||||
|
||||
function test_no_option() {
|
||||
var fingerprint = new Fingerprint().get();
|
||||
}
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
/// <reference path="flexSlider.d.ts"/>
|
||||
|
||||
// Can also be used with $(document).ready()
|
||||
$(window).load(function() {
|
||||
$('.flexslider').flexslider({
|
||||
|
||||
@@ -1,6 +1,3 @@
|
||||
///<reference types="i18next-2.0.17"/>
|
||||
///<reference path="i18next-express-middleware.d.ts"/>
|
||||
|
||||
import * as express from "express";
|
||||
import * as i18next from "i18next";
|
||||
import middleware = require("i18next-express-middleware");
|
||||
|
||||
+1
-1
@@ -3,7 +3,7 @@
|
||||
// Definitions by: Cyril Schumacher <https://github.com/cyrilschumacher>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
///<reference types="i18next-2.0.17"/>
|
||||
/// <reference types="i18next" />
|
||||
|
||||
declare namespace I18next {
|
||||
interface I18nextOptions extends i18nextExpressMiddleware.I18nextOptions { }
|
||||
|
||||
Vendored
+1
-1
@@ -3,7 +3,7 @@
|
||||
// Definitions by: Cyril Schumacher <https://github.com/cyrilschumacher>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
///<reference types="i18next-2.0.17"/>
|
||||
///<reference types="i18next" />
|
||||
|
||||
declare namespace I18next {
|
||||
interface I18nextOptions extends i18nextNodeFsBackEnd.I18nextOptions { }
|
||||
|
||||
Vendored
+5
-6
@@ -3,13 +3,12 @@
|
||||
// Definitions by: Michel Weststrate <https://github.com/mweststrate/>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
/// <reference types="react-global" />
|
||||
|
||||
import * as React from 'react';
|
||||
|
||||
/**
|
||||
* Turns a React component or stateless render function into a reactive component.
|
||||
*/
|
||||
export declare function reactiveComponent<P>(clazz: React.ClassicComponentClass<P>): React.ClassicComponentClass<P>;
|
||||
export declare function reactiveComponent<TFunction extends React.ComponentClass<any>>(target: TFunction): void; // decorator signature
|
||||
export declare function reactiveComponent<P>(clazz: React.ComponentClass<P>): React.ComponentClass<P>;
|
||||
export declare function reactiveComponent<P>(renderFunction: (props: P) => React.ReactElement<any>): React.ClassicComponentClass<P>;
|
||||
export function reactiveComponent<P>(clazz: React.ClassicComponentClass<P>): React.ClassicComponentClass<P>;
|
||||
export function reactiveComponent<TFunction extends React.ComponentClass<any>>(target: TFunction): void; // decorator signature
|
||||
export function reactiveComponent<P>(clazz: React.ComponentClass<P>): React.ComponentClass<P>;
|
||||
export function reactiveComponent<P>(renderFunction: (props: P) => React.ReactElement<any>): React.ClassicComponentClass<P>;
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
/// <reference types="react-global" />
|
||||
|
||||
import {reactiveComponent} from 'mobservable-react';
|
||||
import * as React from 'react';
|
||||
import * as ReactDOM from 'react-dom';
|
||||
|
||||
{
|
||||
let c1 = reactiveComponent(React.createClass({
|
||||
|
||||
Vendored
+1
-1
@@ -434,7 +434,7 @@ interface NodeBuffer extends Uint8Array {
|
||||
writeFloatBE(value: number, offset: number, noAssert?: boolean): number;
|
||||
writeDoubleLE(value: number, offset: number, noAssert?: boolean): number;
|
||||
writeDoubleBE(value: number, offset: number, noAssert?: boolean): number;
|
||||
fill(value: any, offset?: number, end?: number): Buffer;
|
||||
fill(value: any, offset?: number, end?: number): this;
|
||||
// TODO: encoding param
|
||||
indexOf(value: string | number | Buffer, byteOffset?: number): number;
|
||||
// TODO: entries
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
|
||||
/// <reference types="RTCPeerConnection" />
|
||||
/// <reference types="webrtc" />
|
||||
|
||||
var peerByOption: PeerJs.Peer = new Peer({
|
||||
key: 'peerKey',
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
/// <reference types="stats" />
|
||||
|
||||
/// <reference types="three-projector" />
|
||||
|
||||
Physijs.scripts.worker = '../physijs_worker.js';
|
||||
Physijs.scripts.ammo = 'examples/js/ammo.js';
|
||||
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
/// <reference types="stats" />
|
||||
|
||||
/// <reference types="three-projector" />
|
||||
|
||||
Physijs.scripts.worker = '../physijs_worker.js';
|
||||
Physijs.scripts.ammo = 'examples/js/ammo.js';
|
||||
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
/// <reference types="stats" />
|
||||
|
||||
/// <reference types="three-projector" />
|
||||
|
||||
Physijs.scripts.worker = '../physijs_worker.js';
|
||||
Physijs.scripts.ammo = 'examples/js/ammo.js';
|
||||
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
/// <reference types="stats" />
|
||||
|
||||
/// <reference types="three-projector" />
|
||||
|
||||
var TWEEN: any;
|
||||
var SimplexNoise: any;
|
||||
|
||||
|
||||
@@ -4,12 +4,9 @@
|
||||
|
||||
///<reference types="react" />
|
||||
|
||||
///<reference path="./react-intl.d.ts" />
|
||||
|
||||
|
||||
import * as React from "react"
|
||||
|
||||
import * as reactMixin from "react-mixin"
|
||||
|
||||
import {
|
||||
IntlProvider,
|
||||
InjectedIntlProps,
|
||||
@@ -26,6 +23,7 @@ FormattedPlural,
|
||||
FormattedDate,
|
||||
FormattedTime
|
||||
} from "react-intl"
|
||||
|
||||
import reactIntlEn = require("react-intl/locale-data/en");
|
||||
|
||||
addLocaleData(reactIntlEn);
|
||||
|
||||
@@ -1,8 +1,4 @@
|
||||
|
||||
/// <reference types="react"/>
|
||||
/// <reference types="react-dom"/>
|
||||
/// <reference types="redux" />
|
||||
/// <reference types="react-router-0.13.3" />
|
||||
|
||||
import { Component, ReactElement } from 'react';
|
||||
import * as React from 'react';
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
// ================================================================================
|
||||
///<reference types="react"/>
|
||||
///<reference types="react-bootstrap"/>
|
||||
///<reference path="react-router-bootstrap.d.ts"/>
|
||||
|
||||
// Imports
|
||||
// --------------------------------------------------------------------------------
|
||||
|
||||
@@ -543,8 +543,7 @@ TestUtils.Simulate.click(node);
|
||||
TestUtils.Simulate.change(node);
|
||||
TestUtils.Simulate.keyDown(node, { key: "Enter", cancelable: false });
|
||||
|
||||
var renderer: React.ShallowRenderer =
|
||||
TestUtils.createRenderer();
|
||||
var renderer: TestUtils.ShallowRenderer = TestUtils.createRenderer();
|
||||
renderer.render(React.createElement(Timer));
|
||||
var output: React.ReactElement<React.Props<Timer>> =
|
||||
renderer.getRenderOutput();
|
||||
|
||||
Vendored
+18
@@ -3,6 +3,24 @@
|
||||
// Definitions by: Kon <http://phyzkit.net/>, Satoru Kimura <https://github.com/gyohk>, Florent Poujol <https://github.com/florentpoujol>, SereznoKot <https://github.com/SereznoKot>
|
||||
// Definitions: https://github.com/borisyankov/DefinitelyTyped
|
||||
|
||||
/// <reference path="detector.d.ts" />
|
||||
/// <reference path="three-canvasrenderer.d.ts" />
|
||||
/// <reference path="three-copyshader.d.ts" />
|
||||
/// <reference path="three-css3drenderer.d.ts" />
|
||||
/// <reference path="three-editorcontrols.d.ts" />
|
||||
/// <reference path="three-effectcomposer.d.ts" />
|
||||
/// <reference path="three-FirstPersonControls.d.ts" />
|
||||
/// <reference path="three-maskpass.d.ts" />
|
||||
/// <reference path="three-orbitcontrols.d.ts" />
|
||||
/// <reference path="three-orthographictrackballcontrols.d.ts" />
|
||||
/// <reference path="three-projector.d.ts" />
|
||||
/// <reference path="three-renderpass.d.ts" />
|
||||
/// <reference path="three-shaderpass.d.ts" />
|
||||
/// <reference path="three-trackballcontrols.d.ts" />
|
||||
/// <reference path="three-transformcontrols.d.ts" />
|
||||
/// <reference path="three-vrcontrols.d.ts" />
|
||||
/// <reference path="three-vreffect.d.ts" />
|
||||
|
||||
declare namespace THREE {
|
||||
export const REVISION: string;
|
||||
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
/// <reference types="three" />
|
||||
/// <reference types="three-vrcontrols" />
|
||||
|
||||
var _vrControls = new THREE.VRControls(new THREE.Camera());
|
||||
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
/// <reference types="three" />
|
||||
/// <reference types="three-vreffect" />
|
||||
|
||||
var _vrEffect: THREE.VREffect;
|
||||
|
||||
|
||||
Vendored
-2
@@ -3,8 +3,6 @@
|
||||
// Definitions by: Satoru Kimura <https://github.com/gyohk>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
|
||||
|
||||
declare namespace THREE {
|
||||
export interface SpriteCanvasMaterialParameters extends MaterialParameters{
|
||||
color?: number;
|
||||
|
||||
Vendored
+1
-1
@@ -9967,7 +9967,7 @@ declare namespace WinJS.Utilities {
|
||||
* Sorts an array.
|
||||
* @param compareFn The name of the function used to determine the order of the elements. If omitted, the elements are sorted in ascending, ASCII character order.
|
||||
**/
|
||||
sort(compareFn?: (a: T, b: T) => number): T[];
|
||||
sort(compareFn?: (a: T, b: T) => number): this;
|
||||
|
||||
/**
|
||||
* Removes elements from an array and, if necessary, inserts new elements in their place, returning the deleted elements.
|
||||
|
||||
Reference in New Issue
Block a user