mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-06-28 14:20:12 +00:00
'merge'
This commit is contained in:
12
.gitignore
vendored
12
.gitignore
vendored
@@ -12,7 +12,6 @@
|
||||
*.map
|
||||
*.swp
|
||||
.DS_Store
|
||||
npm-debug.log
|
||||
|
||||
_Resharper.DefinitelyTyped
|
||||
bin
|
||||
@@ -25,19 +24,28 @@ Properties
|
||||
# test folder
|
||||
_infrastructure/tests/build
|
||||
|
||||
# IntelliJ based IDEs
|
||||
.idea
|
||||
*.iml
|
||||
|
||||
*.js.map
|
||||
!*.js/
|
||||
!scripts/new-package.js
|
||||
!scripts/not-needed.js
|
||||
!scripts/lint.js
|
||||
|
||||
# npm
|
||||
node_modules
|
||||
package-lock.json
|
||||
npm-debug.log
|
||||
|
||||
# Sublime
|
||||
.sublimets
|
||||
.settings/launch.json
|
||||
|
||||
# Visual Studio Code
|
||||
.settings/launch.json
|
||||
.vs
|
||||
.vscode
|
||||
|
||||
# yarn
|
||||
yarn.lock
|
||||
|
||||
@@ -54,6 +54,12 @@
|
||||
"sourceRepoURL": "http://www.babylonjs.com/",
|
||||
"asOfVersion": "2.4.1"
|
||||
},
|
||||
{
|
||||
"libraryName": "BigInteger.js",
|
||||
"typingsPackageName": "big-integer",
|
||||
"sourceRepoURL": "https://github.com/peterolson/BigInteger.js",
|
||||
"asOfVersion": "0.0.31"
|
||||
},
|
||||
{
|
||||
"libraryName": "Bugsnag Browser",
|
||||
"typingsPackageName": "bugsnag-js",
|
||||
@@ -120,6 +126,12 @@
|
||||
"sourceRepoURL": "https://github.com/bterlson/ecmarkup",
|
||||
"asOfVersion": "3.4.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "electron",
|
||||
"typingsPackageName": "electron",
|
||||
"sourceRepoURL": "https://github.com/electron/electron",
|
||||
"asOfVersion": "1.6.10"
|
||||
},
|
||||
{
|
||||
"libraryName": "electron-builder",
|
||||
"typingsPackageName": "electron-builder",
|
||||
@@ -132,6 +144,12 @@
|
||||
"sourceRepoURL": "https://github.com/primus/eventemitter3",
|
||||
"asOfVersion": "2.0.2"
|
||||
},
|
||||
{
|
||||
"libraryName": "express-validator",
|
||||
"typingsPackageName": "express-validator",
|
||||
"sourceRepoURL": "https://github.com/ctavan/express-validator",
|
||||
"asOfVersion": "3.0.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "JSON-Patch",
|
||||
"typingsPackageName": "fast-json-patch",
|
||||
@@ -222,6 +240,12 @@
|
||||
"sourceRepoURL": "https://github.com/blakeembrey/is-upper-case",
|
||||
"asOfVersion": "1.1.2"
|
||||
},
|
||||
{
|
||||
"libraryName": "jquery.ajaxfile",
|
||||
"typingsPackageName": "jquery.ajaxfile",
|
||||
"sourceRepoURL": "https://github.com/fpellet/jquery.ajaxFile",
|
||||
"asOfVersion": "0.2.29"
|
||||
},
|
||||
{
|
||||
"libraryName": "JSNLog",
|
||||
"typingsPackageName": "jsnlog",
|
||||
|
||||
3
types/acc-wizard/index.d.ts
vendored
3
types/acc-wizard/index.d.ts
vendored
@@ -2,6 +2,7 @@
|
||||
// Project: https://github.com/sathomas/acc-wizard
|
||||
// Definitions by: Cyril Schumacher <https://github.com/cyrilschumacher>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.3
|
||||
|
||||
interface AccWizardOptions {
|
||||
/**
|
||||
@@ -110,4 +111,4 @@ interface AccWizardOptions {
|
||||
*/
|
||||
interface JQuery {
|
||||
accwizard(options?: AccWizardOptions): void;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,6 +3,9 @@
|
||||
// Default usage:
|
||||
accounting.formatMoney(12345678); // $12,345,678.00
|
||||
|
||||
// Stringified usage:
|
||||
accounting.formatMoney('$4394958309392.9401'); // $4,394,958,309,392.94
|
||||
|
||||
// European formatting (custom symbol and separators), could also use options object as second param:
|
||||
accounting.formatMoney(4999.99, "€", 2, ".", ","); // €4.999,99
|
||||
|
||||
|
||||
11
types/accounting/index.d.ts
vendored
11
types/accounting/index.d.ts
vendored
@@ -1,6 +1,7 @@
|
||||
// Type definitions for accounting.js 0.3
|
||||
// Project: http://josscrowcroft.github.io/accounting.js/
|
||||
// Type definitions for accounting.js 0.4
|
||||
// Project: http://openexchangerates.github.io/accounting.js/
|
||||
// Definitions by: Sergey Gerasimov <https://github.com/gerich-home/>
|
||||
// Christopher Eck <https://github.com/chrisleck/>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
declare namespace accounting {
|
||||
@@ -30,9 +31,9 @@ declare namespace accounting {
|
||||
}
|
||||
|
||||
interface Static {
|
||||
// format any number into currency
|
||||
formatMoney(number: number, symbol?: string, precision?: number, thousand?: string, decimal?: string, format?: string): string;
|
||||
formatMoney(number: number, options: CurrencySettings<string> | CurrencySettings<CurrencyFormat>): string;
|
||||
// format any number or stringified number into currency
|
||||
formatMoney(number: number | string, symbol?: string, precision?: number, thousand?: string, decimal?: string, format?: string): string;
|
||||
formatMoney(number: number | string, options: CurrencySettings<string> | CurrencySettings<CurrencyFormat>): string;
|
||||
|
||||
formatMoney(numbers: number[], symbol?: string, precision?: number, thousand?: string, decimal?: string, format?: string): string[];
|
||||
formatMoney(numbers: number[], options: CurrencySettings<string> | CurrencySettings<CurrencyFormat>): string[];
|
||||
|
||||
4
types/ace/index.d.ts
vendored
4
types/ace/index.d.ts
vendored
@@ -2643,7 +2643,9 @@ declare namespace AceAjax {
|
||||
characterWidth: number;
|
||||
|
||||
lineHeight: number;
|
||||
|
||||
|
||||
setScrollMargin(top:number, bottom:number, left: number, right: number): void;
|
||||
|
||||
screenToTextCoordinates(left: number, top: number): void;
|
||||
|
||||
/**
|
||||
|
||||
@@ -15,6 +15,7 @@ const aceVirtualRendererTests = {
|
||||
|
||||
var renderer = new AceAjax.VirtualRenderer(el);
|
||||
renderer.setPadding(0);
|
||||
renderer.setScrollMargin(0,0,0,0)
|
||||
renderer.setSession(new AceAjax.EditSession("1234"));
|
||||
|
||||
var r = renderer.scroller.getBoundingClientRect();
|
||||
|
||||
1
types/acl/index.d.ts
vendored
1
types/acl/index.d.ts
vendored
@@ -2,6 +2,7 @@
|
||||
// Project: https://github.com/optimalbits/node_acl
|
||||
// Definitions by: Qubo <https://github.com/tkQubo>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.3
|
||||
|
||||
/// <reference types="bluebird" />
|
||||
/// <reference types="node"/>
|
||||
|
||||
1
types/adal/index.d.ts
vendored
1
types/adal/index.d.ts
vendored
@@ -2,6 +2,7 @@
|
||||
// Project: https://github.com/AzureAD/azure-activedirectory-library-for-js
|
||||
// Definitions by: mmaitre314 <https://github.com/mmaitre314>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.3
|
||||
|
||||
declare var AuthenticationContext: adal.AuthenticationContextStatic;
|
||||
declare var Logging: adal.Logging;
|
||||
|
||||
50
types/aframe/aframe-tests.ts
Normal file
50
types/aframe/aframe-tests.ts
Normal file
@@ -0,0 +1,50 @@
|
||||
// Global
|
||||
|
||||
const threeCamera = new AFRAME.THREE.Camera();
|
||||
AFRAME.TWEEN.Easing;
|
||||
|
||||
// Entity
|
||||
const entity = document.createElement('a-entity');
|
||||
entity.emit('rotate');
|
||||
entity.emit('collide', { target: entity });
|
||||
entity.emit('sink', null, false);
|
||||
|
||||
const position = entity.getAttribute('position');
|
||||
position.x;
|
||||
position.y;
|
||||
position.z;
|
||||
entity.setAttribute('material', 'color', 'red');
|
||||
|
||||
entity.components['geometry'].data;
|
||||
|
||||
type MyEntity = AFrame.Entity<{
|
||||
camera: THREE.Camera;
|
||||
material: THREE.Material;
|
||||
sound: { pause(): void };
|
||||
}>;
|
||||
const camera = document.querySelector<MyEntity>('a-entity[camera]').components.camera;
|
||||
const material = document.querySelector<MyEntity>('a-entity[material]').components.material;
|
||||
document.querySelector<MyEntity>('a-entity[sound]').components.sound.pause();
|
||||
|
||||
entity.getDOMAttribute('geometry').primitive;
|
||||
|
||||
entity.setAttribute('light', {
|
||||
type: 'spot',
|
||||
distance: 30,
|
||||
intensity: 2.0
|
||||
});
|
||||
|
||||
entity.addEventListener('child-detached', (event) => {
|
||||
event.detail;
|
||||
});
|
||||
|
||||
// Components
|
||||
const Component = AFRAME.registerComponent('test', {});
|
||||
|
||||
// Scene
|
||||
|
||||
const scene = document.querySelector('a-scene');
|
||||
scene.hasLoaded;
|
||||
|
||||
// System
|
||||
const system = scene.systems['systemName'];
|
||||
328
types/aframe/index.d.ts
vendored
Normal file
328
types/aframe/index.d.ts
vendored
Normal file
@@ -0,0 +1,328 @@
|
||||
// Type definitions for AFRAME 0.5
|
||||
// Project: https://aframe.io/
|
||||
// Definitions by: Paul Shannon <https://github.com/devpaul>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.3
|
||||
|
||||
/**
|
||||
* Extended tests available at https://github.com/devpaul/aframe-typings.git
|
||||
*/
|
||||
|
||||
/// <reference types="three" />
|
||||
/// <reference types="tween.js" />
|
||||
|
||||
// Globals
|
||||
declare var AFRAME: AFrame.AFrameGlobal;
|
||||
declare var hasNativeWebVRImplementation: boolean;
|
||||
|
||||
interface NodeSelector {
|
||||
querySelector(selectors: 'a-scene'): AFrame.Scene;
|
||||
querySelector<T extends AFrame.Entity<any>>(selectors: string): T;
|
||||
querySelectorAll(selectors: string): NodeListOf<AFrame.Entity<any> | Element>;
|
||||
}
|
||||
|
||||
interface Document {
|
||||
createElement(tagName: string): AFrame.Entity;
|
||||
}
|
||||
|
||||
// Interfaces
|
||||
declare namespace AFrame {
|
||||
interface ObjectMap<T = any> {
|
||||
[ key: string ]: T;
|
||||
}
|
||||
|
||||
interface AFrameGlobal {
|
||||
AEntity: Entity;
|
||||
ANode: ANode;
|
||||
AScene: Scene;
|
||||
components: { [ key: string ]: ComponentDescriptor };
|
||||
geometries: { [ key: string ]: GeometryDescriptor };
|
||||
primitives: { [ key: string ]: Entity };
|
||||
registerComponent(name: string, component: ComponentDefinition): ComponentConstructor;
|
||||
registerElement(name: string, element: ANode): void;
|
||||
registerGeometry(name: string, geometery: THREE.Geometry): Geometry;
|
||||
registerPrimitive(name: string, primitive: PrimitiveDefinition): void;
|
||||
registerShader(name: string, shader: any): void;
|
||||
registerSystem(name: string, definition: SystemDefinition): void;
|
||||
schema: SchemaUtils;
|
||||
shaders: { [ key: string ]: ShaderDescriptor };
|
||||
systems: { [key: string]: System };
|
||||
THREE: typeof THREE;
|
||||
TWEEN: typeof TWEEN;
|
||||
utils: Utils;
|
||||
version: string;
|
||||
}
|
||||
|
||||
interface Animation {
|
||||
attribute: string;
|
||||
begin: string | number;
|
||||
delay: number;
|
||||
direction: 'alternate' | 'alternateReverse' | 'normal' | 'reverse';
|
||||
dur: number;
|
||||
easing(): void;
|
||||
end: string;
|
||||
fill: 'backwards' | 'both' | 'forwards' | 'none';
|
||||
from: any; // TODO type
|
||||
repeat: number | 'indefinite';
|
||||
to: number;
|
||||
}
|
||||
|
||||
interface ANode extends HTMLElement {
|
||||
// Only public APIs added. Many methods intentionally left out.
|
||||
// createdCallback
|
||||
// attachedCallback
|
||||
// attributeChangedCallback
|
||||
closestScene(): Scene;
|
||||
closest(selector: string): ANode;
|
||||
// detachedCallback
|
||||
hasLoaded: boolean;
|
||||
load(cb?: () => void, childFilter?: (el: Element) => boolean): void;
|
||||
// updateMixins
|
||||
registerMixin(id: string): void;
|
||||
setAttribute(type: string, newValue: any): void;
|
||||
unregisterMixin(id: string): void;
|
||||
removeMixinListener(id: string): void;
|
||||
attachMixinListener(mixin: HTMLElement): void;
|
||||
emit(name: string, detail?: any, bubbles?: boolean): void;
|
||||
emitter(name: string, detail?: any, bubbles?: boolean): () => void;
|
||||
}
|
||||
|
||||
interface Behavior {
|
||||
tick(): void;
|
||||
}
|
||||
|
||||
interface Component {
|
||||
attrName?: string;
|
||||
data?: any;
|
||||
dependencies?: string[];
|
||||
el: Entity;
|
||||
id: string;
|
||||
multiple?: boolean;
|
||||
name: string;
|
||||
schema: Schema;
|
||||
|
||||
init(): void;
|
||||
pause(): void;
|
||||
play(): void;
|
||||
remove(): void;
|
||||
tick?(time: number, timeDelta: number): void;
|
||||
update(oldData: any): void;
|
||||
updateSchema?(): void;
|
||||
|
||||
extendSchema(update: Schema): void;
|
||||
flushToDOM(): void;
|
||||
}
|
||||
|
||||
interface ComponentConstructor {
|
||||
new (el: Entity, name: string, id: string): Component;
|
||||
}
|
||||
|
||||
interface ComponentDefinition {
|
||||
dependencies?: string[];
|
||||
el?: Entity;
|
||||
id?: string;
|
||||
multiple?: boolean;
|
||||
schema?: Schema;
|
||||
|
||||
init?(): void;
|
||||
pause?(): void;
|
||||
play?(): void;
|
||||
remove?(): void;
|
||||
tick?(time: number, timeDelta: number): void;
|
||||
update?(oldData: any): void;
|
||||
updateSchema?(): void;
|
||||
|
||||
[ key: string ]: any;
|
||||
}
|
||||
|
||||
interface ComponentDescriptor {
|
||||
Component: Component;
|
||||
dependencies: string[] | null;
|
||||
multiple: boolean | null;
|
||||
|
||||
// internal APIs2
|
||||
// parse
|
||||
// parseAttrValueForCache
|
||||
// schema
|
||||
// stringify
|
||||
// type
|
||||
[ key: string ]: any;
|
||||
}
|
||||
|
||||
interface Coordinate {
|
||||
x: number;
|
||||
y: number;
|
||||
z: number;
|
||||
}
|
||||
|
||||
interface Entity<C = ObjectMap<Component>> extends ANode {
|
||||
components: C;
|
||||
isPlaying: boolean;
|
||||
object3D: THREE.Object3D;
|
||||
object3DMap: ObjectMap<THREE.Object3D>;
|
||||
sceneEl?: Scene;
|
||||
|
||||
addState(name: string): void;
|
||||
flushToDOM(recursive?: boolean): void;
|
||||
/**
|
||||
* @deprecated since 0.4.0
|
||||
*/
|
||||
getComputedAttribute<T = Component>(attr: string): T;
|
||||
getDOMAttribute<T = any>(attr: string): T;
|
||||
getObject3D(type: string): THREE.Object3D;
|
||||
getOrCreateObject3D(type: string, construct: any): THREE.Object3D;
|
||||
is(stateName: string): boolean;
|
||||
pause(): void;
|
||||
play(): void;
|
||||
setObject3D(type: string, obj: THREE.Object3D): void;
|
||||
removeAttribute(attr: string, property?: string): void;
|
||||
removeObject3D(type: string): void;
|
||||
removeState(stateName: string): void;
|
||||
|
||||
// getAttribute specific usages
|
||||
getAttribute(type: string): any;
|
||||
getAttribute<T = Component>(attr: string): T;
|
||||
getAttribute(type: 'position' | 'rotation' | 'scale'): Coordinate;
|
||||
|
||||
// setAttribute specific usages
|
||||
setAttribute(attr: string, value: any): void;
|
||||
setAttribute(attr: string, property: string, componentAttrValue?: any): void;
|
||||
setAttribute(type: 'position' | 'rotation' | 'scale', value: Coordinate): void;
|
||||
|
||||
// addEventListener specific usages
|
||||
addEventListener<K extends keyof EntityEventMap>(type: K, listener: (event: Event & EntityEventMap[K]) => void, useCapture?: boolean): void;
|
||||
addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
|
||||
}
|
||||
|
||||
type DetailEvent<D> = Event & { detail: D };
|
||||
|
||||
interface EntityEventMap {
|
||||
'child-attached': DetailEvent<{ el: Element | Entity }>;
|
||||
'child-detached': DetailEvent<{ el: Element | Entity }>;
|
||||
'componentchanged': DetailEvent<{ name: string }>;
|
||||
'componentremoved': DetailEvent<{
|
||||
name: string,
|
||||
id: string,
|
||||
newData: any,
|
||||
oldData: any
|
||||
}>;
|
||||
'loaded': EventListener;
|
||||
'pause': EventListener;
|
||||
'play': EventListener;
|
||||
'stateadded': DetailEvent<{ state: string }>;
|
||||
'stateremoved': DetailEvent<{ state: string }>;
|
||||
'schemachanged': DetailEvent<{ componentName: string }>;
|
||||
}
|
||||
|
||||
interface Geometry {
|
||||
name: string;
|
||||
geometry: THREE.Geometry;
|
||||
schema: Schema;
|
||||
update(data: object): void;
|
||||
[ key: string ]: any;
|
||||
}
|
||||
|
||||
interface GeometryDescriptor {
|
||||
Geometry: Geometry;
|
||||
schema: Schema;
|
||||
}
|
||||
|
||||
interface MultiPropertySchema {
|
||||
[ key: string ]: SinglePropertySchema<any>;
|
||||
}
|
||||
|
||||
interface PrimitiveDefinition {
|
||||
defaultComponents?: any; // TODO cleanup type
|
||||
deprecated?: boolean;
|
||||
mappings?: any; // TODO cleanup type
|
||||
transforms?: any; // TODO cleanup type
|
||||
}
|
||||
|
||||
type PropertyTypes = 'array' | 'boolean' | 'color' | 'int' | 'number' | 'selector' |
|
||||
'selectorAll' | 'src' | 'string' | 'vec2' | 'vec3' | 'vec4';
|
||||
|
||||
type SceneEvents = 'enter-vr' | 'exit-vr' | 'loaded' | 'renderstart';
|
||||
|
||||
interface Scene extends Entity {
|
||||
behaviors: Behavior[];
|
||||
camera: THREE.Camera;
|
||||
canvas: HTMLCanvasElement;
|
||||
effect: THREE.VREffect;
|
||||
isMobile: boolean;
|
||||
object3D: THREE.Scene;
|
||||
renderer: THREE.WebGLRenderer;
|
||||
renderStarted: boolean;
|
||||
systems: ObjectMap<System>;
|
||||
time: number;
|
||||
|
||||
enterVR(): Promise<void> | void;
|
||||
exitVR(): Promise<void> | void;
|
||||
reload(): void;
|
||||
|
||||
addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void;
|
||||
addEventListener(type: SceneEvents, listener: EventListener, useCapture?: boolean): void;
|
||||
}
|
||||
|
||||
type Schema = SinglePropertySchema<any> | MultiPropertySchema;
|
||||
|
||||
interface SchemaUtils {
|
||||
isSingleProperty(schema: Schema): boolean;
|
||||
process(schema: Schema): boolean;
|
||||
}
|
||||
|
||||
interface Shader {
|
||||
name: string;
|
||||
schema: Schema;
|
||||
}
|
||||
|
||||
interface ShaderDescriptor {
|
||||
Shader: Shader;
|
||||
schema: Schema;
|
||||
}
|
||||
|
||||
interface SinglePropertySchema<T> {
|
||||
type?: PropertyTypes;
|
||||
'default'?: T;
|
||||
parse?(value: string): T;
|
||||
stringify?(value: T): string;
|
||||
[ key: string ]: any;
|
||||
}
|
||||
|
||||
interface System {
|
||||
data: any;
|
||||
schema: Schema;
|
||||
init(): void;
|
||||
pause(): void;
|
||||
play(): void;
|
||||
tick?(): void;
|
||||
}
|
||||
|
||||
interface SystemDefinition {
|
||||
schema?: Schema;
|
||||
init?(): void;
|
||||
pause?(): void;
|
||||
play?(): void;
|
||||
tick?(): void;
|
||||
[ key: string ]: any;
|
||||
}
|
||||
|
||||
interface Utils {
|
||||
coordinates: {
|
||||
isCoordinate(value: string): boolean;
|
||||
parse(value: string): Coordinate;
|
||||
stringify(coord: Coordinate): string;
|
||||
};
|
||||
entity: {
|
||||
getComponentProperty(entity: Entity, componentName: string, delimiter?: string): any;
|
||||
setComponentProperty(entity: Entity, componentName: string, value: any, delimiter?: string): void;
|
||||
};
|
||||
styleParser: {
|
||||
parse(value: string): object;
|
||||
stringify(data: object): string;
|
||||
};
|
||||
deepEqual(a: any, b: any): boolean;
|
||||
diff(a: object, b: object): object;
|
||||
extend(target: object, ... source: object[]): object;
|
||||
extendDeep(target: object, ... source: object[]): object;
|
||||
}
|
||||
}
|
||||
25
types/aframe/tsconfig.json
Executable file
25
types/aframe/tsconfig.json
Executable file
@@ -0,0 +1,25 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"baseUrl": "..",
|
||||
"lib": [
|
||||
"es5",
|
||||
"dom",
|
||||
"es2015.iterable",
|
||||
"es2015.promise"
|
||||
],
|
||||
"module": "commonjs",
|
||||
"noImplicitAny": true,
|
||||
"noImplicitThis": true,
|
||||
"removeComments": false,
|
||||
"sourceMap": true,
|
||||
"strictNullChecks": true,
|
||||
"noEmit": true,
|
||||
"forceConsistentCasingInFileNames": true,
|
||||
"typeRoots": [ "../" ],
|
||||
"types": [ ]
|
||||
},
|
||||
"files": [
|
||||
"index.d.ts",
|
||||
"aframe-tests.ts"
|
||||
]
|
||||
}
|
||||
3
types/aframe/tslint.json
Normal file
3
types/aframe/tslint.json
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"extends": "dtslint/dt.json"
|
||||
}
|
||||
1
types/agenda/index.d.ts
vendored
1
types/agenda/index.d.ts
vendored
@@ -2,6 +2,7 @@
|
||||
// Project: https://github.com/rschmukler/agenda
|
||||
// Definitions by: Meir Gottlieb <https://github.com/meirgottlieb>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.3
|
||||
|
||||
/// <reference types="node" />
|
||||
|
||||
|
||||
@@ -1,21 +1,19 @@
|
||||
/// <reference types="node"/>
|
||||
|
||||
import * as Alexa from "alexa-sdk";
|
||||
|
||||
exports.handler = function(event: Alexa.RequestBody, context: Alexa.Context, callback: Function) {
|
||||
const handler = (event: Alexa.RequestBody, context: Alexa.Context, callback: () => void) => {
|
||||
let alexa = Alexa.handler(event, context);
|
||||
alexa.registerHandlers(handlers);
|
||||
alexa.execute();
|
||||
};
|
||||
|
||||
let handlers: Alexa.Handlers = {
|
||||
'LaunchRequest': function () {
|
||||
'LaunchRequest': function() {
|
||||
this.emit('SayHello');
|
||||
},
|
||||
'HelloWorldIntent': function () {
|
||||
'HelloWorldIntent': function() {
|
||||
this.emit('SayHello');
|
||||
},
|
||||
'SayHello': function () {
|
||||
'SayHello': function() {
|
||||
this.emit(':tell', 'Hello World!');
|
||||
}
|
||||
};
|
||||
|
||||
65
types/alexa-sdk/index.d.ts
vendored
65
types/alexa-sdk/index.d.ts
vendored
@@ -1,13 +1,19 @@
|
||||
// Type definitions for Alexa SDK for Node.js v1.0.3
|
||||
// Type definitions for Alexa SDK for Node.js 1.0
|
||||
// Project: https://github.com/alexa/alexa-skills-kit-sdk-for-nodejs
|
||||
// Definitions by: Pete Beegle <https://github.com/petebeegle>
|
||||
// Definitions by: Pete Beegle <https://github.com/petebeegle>
|
||||
// Huw <https://github.com/hoo29>
|
||||
// pascalwhoop <https://github.com/pascalwhoop>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.2
|
||||
|
||||
export function handler(event: RequestBody, context: Context, callback?: Function): AlexaObject;
|
||||
export function handler(event: RequestBody, context: Context, callback?: (err: any, response: any) => void ): AlexaObject;
|
||||
export function CreateStateHandler(state: string, obj: any): any;
|
||||
export var StateString: string;
|
||||
export let StateString: string;
|
||||
|
||||
interface AlexaObject {
|
||||
export type ConfirmationStatuses = "NONE" | "DENIED" | "CONFIRMED";
|
||||
export type DialogStates = "STARTED" | "IN_PROGRESS" | "COMPLETED";
|
||||
|
||||
export interface AlexaObject extends Handler {
|
||||
_event: any;
|
||||
_context: any;
|
||||
_callback: any;
|
||||
@@ -20,11 +26,11 @@ interface AlexaObject {
|
||||
execute: () => void;
|
||||
}
|
||||
|
||||
interface Handlers {
|
||||
export interface Handlers {
|
||||
[intent: string]: (this: Handler) => void;
|
||||
}
|
||||
|
||||
interface Handler {
|
||||
export interface Handler {
|
||||
on: any;
|
||||
emit(event: string, ...args: any[]): boolean;
|
||||
emitWithState: any;
|
||||
@@ -35,9 +41,10 @@ interface Handler {
|
||||
context: any;
|
||||
name: any;
|
||||
isOverriden: any;
|
||||
t: (token: string) => void;
|
||||
}
|
||||
|
||||
interface Context {
|
||||
export interface Context {
|
||||
callbackWaitsForEmptyEventLoop: boolean;
|
||||
logGroupName: string;
|
||||
logStreamName: string;
|
||||
@@ -48,13 +55,13 @@ interface Context {
|
||||
awsRequestId: string;
|
||||
}
|
||||
|
||||
interface RequestBody {
|
||||
export interface RequestBody {
|
||||
version: string;
|
||||
session: Session;
|
||||
request: LaunchRequest | IntentRequest | SessionEndedRequest;
|
||||
}
|
||||
|
||||
interface Session {
|
||||
export interface Session {
|
||||
new: boolean;
|
||||
sessionId: string;
|
||||
attributes: any;
|
||||
@@ -62,56 +69,64 @@ interface Session {
|
||||
user: SessionUser;
|
||||
}
|
||||
|
||||
interface SessionApplication {
|
||||
export interface SessionApplication {
|
||||
applicationId: string;
|
||||
}
|
||||
|
||||
interface SessionUser {
|
||||
export interface SessionUser {
|
||||
userId: string;
|
||||
accessToken: string;
|
||||
}
|
||||
|
||||
interface LaunchRequest extends IRequest { }
|
||||
export interface LaunchRequest extends Request { }
|
||||
|
||||
interface IntentRequest extends IRequest {
|
||||
export interface IntentRequest extends Request {
|
||||
dialogState: DialogStates;
|
||||
intent: Intent;
|
||||
}
|
||||
|
||||
interface Intent {
|
||||
export interface SlotValue {
|
||||
confirmationStatus: ConfirmationStatuses;
|
||||
name: string;
|
||||
slots: any;
|
||||
value?: any;
|
||||
}
|
||||
|
||||
interface SessionEndedRequest extends IRequest {
|
||||
export interface Intent {
|
||||
confirmationStatus: ConfirmationStatuses;
|
||||
name: string;
|
||||
slots: Record<string, SlotValue>;
|
||||
}
|
||||
|
||||
export interface SessionEndedRequest extends Request {
|
||||
reason: string;
|
||||
}
|
||||
|
||||
interface IRequest {
|
||||
export interface Request {
|
||||
type: "LaunchRequest" | "IntentRequest" | "SessionEndedRequest";
|
||||
requestId: string;
|
||||
timeStamp: string;
|
||||
}
|
||||
|
||||
interface ResponseBody {
|
||||
export interface ResponseBody {
|
||||
version: string;
|
||||
sessionAttributes?: any;
|
||||
response: Response;
|
||||
}
|
||||
|
||||
interface Response {
|
||||
export interface Response {
|
||||
outputSpeech?: OutputSpeech;
|
||||
card?: Card;
|
||||
reprompt?: Reprompt;
|
||||
shouldEndSession: boolean;
|
||||
}
|
||||
|
||||
interface OutputSpeech {
|
||||
export interface OutputSpeech {
|
||||
type: "PlainText" | "SSML";
|
||||
text?: string;
|
||||
ssml?: string;
|
||||
}
|
||||
|
||||
interface Card {
|
||||
export interface Card {
|
||||
type: "Simple" | "Standard" | "LinkAccount";
|
||||
title?: string;
|
||||
content?: string;
|
||||
@@ -119,13 +134,11 @@ interface Card {
|
||||
image?: Image;
|
||||
}
|
||||
|
||||
interface Image {
|
||||
export interface Image {
|
||||
smallImageUrl: string;
|
||||
largeImageUrl: string;
|
||||
}
|
||||
|
||||
interface Reprompt {
|
||||
export interface Reprompt {
|
||||
outputSpeech: OutputSpeech;
|
||||
}
|
||||
|
||||
|
||||
|
||||
9
types/alexa-sdk/tslint.json
Normal file
9
types/alexa-sdk/tslint.json
Normal file
@@ -0,0 +1,9 @@
|
||||
{ "extends": "dtslint/dt.json",
|
||||
"rules": {
|
||||
"object-literal-shorthand": false,
|
||||
"object-literal-key-quote": false,
|
||||
"no-empty-interface": false,
|
||||
"prefer-method-signature": false,
|
||||
"object-literal-key-quotes": false
|
||||
}
|
||||
}
|
||||
34
types/alexa-voice-service/alexa-voice-service-tests.ts
Normal file
34
types/alexa-voice-service/alexa-voice-service-tests.ts
Normal file
@@ -0,0 +1,34 @@
|
||||
import * as AVS from "alexa-voice-service";
|
||||
|
||||
const options = {
|
||||
debug: true,
|
||||
clientId: "",
|
||||
clientSecret: "",
|
||||
deviceId: "",
|
||||
refreshToken: "",
|
||||
};
|
||||
|
||||
const avsInstance = new AVS(options);
|
||||
|
||||
avsInstance.on(AVS.EventTypes.RECORD_START, () => {
|
||||
});
|
||||
|
||||
avsInstance.on(AVS.EventTypes.RECORD_STOP, () => {
|
||||
});
|
||||
|
||||
avsInstance.player.on(AVS.Player.EventTypes.PLAY, () => {
|
||||
});
|
||||
|
||||
avsInstance.refreshToken().then((tokens) => {
|
||||
}).catch((error: Error) => {
|
||||
});
|
||||
|
||||
avsInstance.requestMic();
|
||||
|
||||
avsInstance.startRecording();
|
||||
|
||||
avsInstance.stopRecording().then((dataView: any) => { });
|
||||
|
||||
const dataView = new DataView(new ArrayBuffer(1));
|
||||
|
||||
avsInstance.sendAudio(dataView).then(({ xhr, response }: any) => { });
|
||||
60
types/alexa-voice-service/index.d.ts
vendored
Normal file
60
types/alexa-voice-service/index.d.ts
vendored
Normal file
@@ -0,0 +1,60 @@
|
||||
// Type definitions for alexa-voice-service 0.0
|
||||
// Project: https://github.com/miguelmota/alexa-voice-service.js
|
||||
// Definitions by: Dolan Miu <https://github.com/dolanmiu>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
export as namespace AVS;
|
||||
export = AVS;
|
||||
|
||||
declare namespace AVS {
|
||||
enum EventTypes {
|
||||
RECORD_STOP, RECORD_START, ERROR, TOKEN_INVALID, LOG, LOGIN, LOGOUT, TOKEN_SET, REFRESH_TOKEN_SET
|
||||
}
|
||||
|
||||
interface AVSParams {
|
||||
debug: boolean;
|
||||
clientId: string;
|
||||
clientSecret: string;
|
||||
deviceId: string;
|
||||
refreshToken: string;
|
||||
}
|
||||
|
||||
interface TokenResponse {
|
||||
token: string;
|
||||
refreshToken: string;
|
||||
}
|
||||
|
||||
class Player {
|
||||
on(eventType: Player.EventTypes, callback?: () => void): void;
|
||||
}
|
||||
|
||||
namespace Player {
|
||||
enum EventTypes {
|
||||
LOG, ERROR, PLAY, REPLAY, PAUSE, STOP, ENQUEUE, DEQUE
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
declare class AVS {
|
||||
player: AVS.Player;
|
||||
constructor(params: AVS.AVSParams);
|
||||
|
||||
on(eventType: AVS.EventTypes, callback?: () => void): void;
|
||||
refreshToken(): Promise<AVS.TokenResponse>;
|
||||
requestMic(): Promise<any>;
|
||||
startRecording(): Promise<void>;
|
||||
stopRecording(): Promise<DataView | undefined>;
|
||||
sendAudio(dataView: DataView): Promise<{
|
||||
xhr: any, response: {
|
||||
httpVersion: string,
|
||||
statusCode: string,
|
||||
statusMessage: string,
|
||||
method: string,
|
||||
url: string,
|
||||
headers: string,
|
||||
body: string,
|
||||
boundary: string,
|
||||
multipart: string
|
||||
}
|
||||
}>;
|
||||
}
|
||||
22
types/alexa-voice-service/tsconfig.json
Normal file
22
types/alexa-voice-service/tsconfig.json
Normal file
@@ -0,0 +1,22 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"lib": [
|
||||
"es6"
|
||||
],
|
||||
"noImplicitAny": true,
|
||||
"noImplicitThis": true,
|
||||
"strictNullChecks": true,
|
||||
"baseUrl": "../",
|
||||
"typeRoots": [
|
||||
"../"
|
||||
],
|
||||
"types": [],
|
||||
"noEmit": true,
|
||||
"forceConsistentCasingInFileNames": true
|
||||
},
|
||||
"files": [
|
||||
"index.d.ts",
|
||||
"alexa-voice-service-tests.ts"
|
||||
]
|
||||
}
|
||||
@@ -1,41 +1,52 @@
|
||||
import algoliasearch = require('algoliasearch');
|
||||
import { ClientOptions, SynonymOption, AlgoliaUserKeyOptions, SearchSynonymOptions,
|
||||
import * as algoliasearch from "algoliasearch";
|
||||
import { ClientOptions, SynonymOption, AlgoliaUserKeyOptions, SearchSynonymOptions, AlgoliaResponse,
|
||||
AlgoliaSecuredApiOptions, AlgoliaIndexSettings, AlgoliaQueryParameters, AlgoliaIndex } from "algoliasearch";
|
||||
|
||||
var _clientOptions: ClientOptions = {
|
||||
timeout : 12,
|
||||
let _algoliaResponse: AlgoliaResponse = {
|
||||
hits: [{}, {}],
|
||||
page: 0,
|
||||
nbHits: 12,
|
||||
nbPages: 6,
|
||||
hitsPerPage: 2,
|
||||
processingTimeMS: 32,
|
||||
query: "",
|
||||
params: "",
|
||||
};
|
||||
|
||||
let _clientOptions: ClientOptions = {
|
||||
timeout: 12,
|
||||
protocol: "",
|
||||
httpAgent: ""
|
||||
httpAgent: "",
|
||||
};
|
||||
|
||||
var _synonymOption: SynonymOption = {
|
||||
let _synonymOption: SynonymOption = {
|
||||
forwardToSlaves: false,
|
||||
replaceExistingSynonyms: false
|
||||
replaceExistingSynonyms: false,
|
||||
};
|
||||
|
||||
var _algoliaUserKeyOptions : AlgoliaUserKeyOptions = {
|
||||
let _algoliaUserKeyOptions: AlgoliaUserKeyOptions = {
|
||||
validity: 0,
|
||||
maxQueriesPerIPPerHour: 0,
|
||||
indexes: [""],
|
||||
queryParameters: { attributesToRetrieve: ["algolia"] },
|
||||
description: ""
|
||||
description: "",
|
||||
};
|
||||
|
||||
var _searchSynonymOptions : SearchSynonymOptions = {
|
||||
let _searchSynonymOptions: SearchSynonymOptions = {
|
||||
query: "",
|
||||
page: 0,
|
||||
type: "",
|
||||
hitsPerPage: 0
|
||||
hitsPerPage: 0,
|
||||
};
|
||||
|
||||
var _algoliaSecuredApiOptions: AlgoliaSecuredApiOptions = {
|
||||
let _algoliaSecuredApiOptions: AlgoliaSecuredApiOptions = {
|
||||
filters: "",
|
||||
validUntil: 0,
|
||||
restrictIndices: "",
|
||||
userToken: ""
|
||||
userToken: "",
|
||||
};
|
||||
|
||||
var _algoliaIndexSettings : AlgoliaIndexSettings = {
|
||||
let _algoliaIndexSettings: AlgoliaIndexSettings = {
|
||||
attributesToIndex: [""],
|
||||
attributesforFaceting: [""],
|
||||
unretrievableAttributes: [""],
|
||||
@@ -43,12 +54,12 @@ var _algoliaIndexSettings : AlgoliaIndexSettings = {
|
||||
ranking: [""],
|
||||
customRanking: [""],
|
||||
slaves: [""],
|
||||
maxValuesPerFacet: '',
|
||||
maxValuesPerFacet: "",
|
||||
attributesToHighlight: [""],
|
||||
attributesToSnippet: [""],
|
||||
highlightPreTag: '',
|
||||
highlightPostTag: '',
|
||||
snippetEllipsisText: '',
|
||||
highlightPreTag: "",
|
||||
highlightPostTag: "",
|
||||
snippetEllipsisText: "",
|
||||
restrictHighlightAndSnippetArrays: false,
|
||||
hitsPerPage: 0,
|
||||
minWordSizefor1Typo: 0,
|
||||
@@ -56,16 +67,16 @@ var _algoliaIndexSettings : AlgoliaIndexSettings = {
|
||||
typoTolerance: false,
|
||||
allowTyposOnNumericTokens: false,
|
||||
ignorePlurals: false,
|
||||
disableTypoToleranceOnAttributes: '',
|
||||
separatorsToIndex: '',
|
||||
queryType: '',
|
||||
removeWordsIfNoResults: '',
|
||||
disableTypoToleranceOnAttributes: "",
|
||||
separatorsToIndex: "",
|
||||
queryType: "",
|
||||
removeWordsIfNoResults: "",
|
||||
advancedSyntax: false,
|
||||
optionalWords: [""],
|
||||
removeStopWords: [""],
|
||||
disablePrefixOnAttributes: [""],
|
||||
disableExactOnAttributes: [""],
|
||||
exactOnSingleWordQuery: '',
|
||||
exactOnSingleWordQuery: "",
|
||||
alternativesAsExact: false,
|
||||
attributeForDistinct: "",
|
||||
distinct: false,
|
||||
@@ -73,21 +84,21 @@ var _algoliaIndexSettings : AlgoliaIndexSettings = {
|
||||
allowCompressionOfIntegerArray: false,
|
||||
altCorrections: [{}],
|
||||
minProximity: 0,
|
||||
placeholders: ''
|
||||
placeholders: "",
|
||||
};
|
||||
|
||||
var _algoliaQueryParameters : AlgoliaQueryParameters = {
|
||||
query: '',
|
||||
filters: '',
|
||||
let _algoliaQueryParameters: AlgoliaQueryParameters = {
|
||||
query: "",
|
||||
filters: "",
|
||||
attributesToRetrieve: [""],
|
||||
restrictSearchableAttributes: [""],
|
||||
facets: '',
|
||||
maxValuesPerFacet: '',
|
||||
attributesToHighlight: [''],
|
||||
attributesToSnippet: [''],
|
||||
highlightPreTag: '',
|
||||
highlightPostTag: '',
|
||||
snippetEllipsisText: '',
|
||||
facets: "",
|
||||
maxValuesPerFacet: "",
|
||||
attributesToHighlight: [""],
|
||||
attributesToSnippet: [""],
|
||||
highlightPreTag: "",
|
||||
highlightPostTag: "",
|
||||
snippetEllipsisText: "",
|
||||
restrictHighlightAndSnippetArrays: false,
|
||||
hitsPerPage: 0,
|
||||
page: 0,
|
||||
@@ -98,38 +109,36 @@ var _algoliaQueryParameters : AlgoliaQueryParameters = {
|
||||
typoTolerance: false,
|
||||
allowTyposOnNumericTokens: false,
|
||||
ignorePlurals: false,
|
||||
disableTypoToleranceOnAttributes: '',
|
||||
aroundLatLng: '',
|
||||
aroundLatLngViaIP: '',
|
||||
aroundRadius: '',
|
||||
disableTypoToleranceOnAttributes: "",
|
||||
aroundLatLng: "",
|
||||
aroundLatLngViaIP: "",
|
||||
aroundRadius: "",
|
||||
aroundPrecision: 0,
|
||||
minimumAroundRadius: 0,
|
||||
insideBoundingBox: '',
|
||||
queryType: '',
|
||||
insidePolygon: '',
|
||||
removeWordsIfNoResults: '',
|
||||
insideBoundingBox: "",
|
||||
queryType: "",
|
||||
insidePolygon: "",
|
||||
removeWordsIfNoResults: "",
|
||||
advancedSyntax: false,
|
||||
optionalWords: [''],
|
||||
removeStopWords: [''],
|
||||
disableExactOnAttributes: [''],
|
||||
exactOnSingleWordQuery: '',
|
||||
optionalWords: [""],
|
||||
removeStopWords: [""],
|
||||
disableExactOnAttributes: [""],
|
||||
exactOnSingleWordQuery: "",
|
||||
alternativesAsExact: true,
|
||||
distinct: 0,
|
||||
getRankingInfo: false,
|
||||
numericAttributesToIndex: [''],
|
||||
numericFilters: [''],
|
||||
tagFilters: '',
|
||||
facetFilters: '',
|
||||
numericAttributesToIndex: [""],
|
||||
numericFilters: [""],
|
||||
tagFilters: "",
|
||||
facetFilters: "",
|
||||
analytics: false,
|
||||
analyticsTags: [''],
|
||||
analyticsTags: [""],
|
||||
synonyms: true,
|
||||
replaceSynonymsInHighlight: false,
|
||||
minProximity: 0
|
||||
minProximity: 0,
|
||||
};
|
||||
|
||||
var index: AlgoliaIndex = algoliasearch('', '').initIndex('');
|
||||
|
||||
var search = index.search({query: ""});
|
||||
index.search({query: ""}, function(err, res){});
|
||||
|
||||
let index: AlgoliaIndex = algoliasearch("", "").initIndex("");
|
||||
|
||||
let search = index.search({query: ""});
|
||||
index.search({query: ""}, (err, res) => {});
|
||||
|
||||
6
types/algoliasearch/index.d.ts
vendored
6
types/algoliasearch/index.d.ts
vendored
@@ -24,7 +24,7 @@ declare namespace algoliasearch {
|
||||
* Number of pages
|
||||
* https://github.com/algolia/algoliasearch-client-js#response-format
|
||||
*/
|
||||
nbPage: number;
|
||||
nbPages: number;
|
||||
/**
|
||||
* Number of hits per pages
|
||||
* https://github.com/algolia/algoliasearch-client-js#response-format
|
||||
@@ -407,7 +407,7 @@ declare namespace algoliasearch {
|
||||
* @param cb(err, res)
|
||||
* https://github.com/algolia/algoliasearch-client-js#save-synonym---savesynonym
|
||||
*/
|
||||
saveSynonym(synonym: AlgoliaSynonym, option: SynonymOption, cb: (err: Error, res: any) => void): void;
|
||||
saveSynonym(synonym: AlgoliaSynonym, options: SynonymOption, cb: (err: Error, res: any) => void): void;
|
||||
/**
|
||||
* Save a synonym object
|
||||
* @param synonyms
|
||||
@@ -659,7 +659,7 @@ declare namespace algoliasearch {
|
||||
* return {Promise}
|
||||
* https://github.com/algolia/algoliasearch-client-js#save-synonym---savesynonym
|
||||
*/
|
||||
saveSynonym(synonym: AlgoliaSynonym, option: SynonymOption): Promise<any> ;
|
||||
saveSynonym(synonym: AlgoliaSynonym, options: SynonymOption): Promise<any> ;
|
||||
/**
|
||||
* Save a synonym object
|
||||
* @param synonyms
|
||||
|
||||
@@ -119,7 +119,7 @@ interface ExtendedTestStore extends AltJS.AltStore<AltTestState> {
|
||||
split():Array<string>;
|
||||
}
|
||||
|
||||
var testStore = <ExtendedTestStore>alt.createStore<AltTestState>(TestStore);
|
||||
var testStore = <ExtendedTestStore>alt.createStore<AltTestState>(new TestStore());
|
||||
|
||||
function testCallback(state:AltTestState) {
|
||||
console.log(state);
|
||||
|
||||
6
types/alt/index.d.ts
vendored
6
types/alt/index.d.ts
vendored
@@ -2,7 +2,7 @@
|
||||
// Project: https://github.com/goatslacker/alt
|
||||
// Definitions by: Michael Shearer <https://github.com/Shearerbeard>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.1
|
||||
// TypeScript Version: 2.3
|
||||
|
||||
///<reference types="react"/>
|
||||
|
||||
@@ -141,7 +141,7 @@ declare module "alt/utils/chromeDebug" {
|
||||
|
||||
declare module "alt/AltContainer" {
|
||||
|
||||
import React = require("react");
|
||||
import * as React from "react";
|
||||
|
||||
interface ContainerProps {
|
||||
store?:AltJS.AltStore<any>;
|
||||
@@ -152,7 +152,7 @@ declare module "alt/AltContainer" {
|
||||
flux?:AltJS.Alt;
|
||||
transform?:(store:AltJS.AltStore<any>, actions:any) => any;
|
||||
shouldComponentUpdate?:(props:any) => boolean;
|
||||
component?:React.Component<any, any>;
|
||||
component?:React.Component<any>;
|
||||
}
|
||||
|
||||
type AltContainer = React.ReactElement<ContainerProps>;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
|
||||
/// <reference types="node"/>
|
||||
declare var console: { log(s: string): void };
|
||||
declare var process: { env: any };
|
||||
|
||||
import amazon = require('amazon-product-api');
|
||||
|
||||
|
||||
4
types/amcharts/index.d.ts
vendored
4
types/amcharts/index.d.ts
vendored
@@ -2271,6 +2271,10 @@ If you do not set properties such as dashLength, lineAlpha, lineColor, etc - val
|
||||
hideBulletsCount: number;
|
||||
/** Name of the high field (used by candlesticks and ohlc) in your dataProvider. */
|
||||
highField: string;
|
||||
|
||||
/** Unique id of a graph. It is not required to set one, unless you want to use this graph for as your scrollbar's graph and need to indicate which graph should be used.*/
|
||||
id?: string;
|
||||
|
||||
/** Whether to include this graph when calculating min and max value of the axis.
|
||||
@default true
|
||||
*/
|
||||
|
||||
1
types/amplify-deferred/index.d.ts
vendored
1
types/amplify-deferred/index.d.ts
vendored
@@ -2,6 +2,7 @@
|
||||
// Project: http://amplifyjs.com/
|
||||
// Definitions by: Jonas Eriksson <https://github.com/joeriks/>, Laurentiu Stamate <https://github.com/laurentiustamate94>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.3
|
||||
|
||||
/// <reference types="jquery" />
|
||||
|
||||
|
||||
1
types/amplify/index.d.ts
vendored
1
types/amplify/index.d.ts
vendored
@@ -2,6 +2,7 @@
|
||||
// Project: http://amplifyjs.com/
|
||||
// Definitions by: Jonas Eriksson <https://github.com/joeriks/>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.3
|
||||
|
||||
/// <reference types="jquery" />
|
||||
|
||||
|
||||
69
types/amqp/amqp-tests.ts
Normal file
69
types/amqp/amqp-tests.ts
Normal file
@@ -0,0 +1,69 @@
|
||||
import * as amqp from 'amqp';
|
||||
|
||||
async function connect() {
|
||||
const promise = new Promise<amqp.AMQPClient>((resolve, reject) => {
|
||||
const client = amqp.createConnection({
|
||||
url: 'amqp://admin:password@localhost:5672'
|
||||
});
|
||||
|
||||
client.once('error', reject);
|
||||
client.once('ready', resolve);
|
||||
});
|
||||
|
||||
return promise;
|
||||
}
|
||||
|
||||
async function start() {
|
||||
try {
|
||||
const client = await connect();
|
||||
console.log('Connected');
|
||||
|
||||
const queue = client.queue('perth-now',
|
||||
{
|
||||
autoDelete: false,
|
||||
durable: true,
|
||||
}, q => {
|
||||
console.log('Queue opened');
|
||||
console.log('Name: %s Channel: %s', q.name, q.channel);
|
||||
|
||||
queue.bind('amq.fanout', '#', () => {
|
||||
queue.subscribe(
|
||||
{ ack: true },
|
||||
(msg, _, __, ack) => {
|
||||
ack.acknowledge(true);
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
const exchange = client.exchange('amq.fanout', { confirm: true });
|
||||
|
||||
exchange.once('open', () => {
|
||||
exchange.publish(
|
||||
'content',
|
||||
{ message: new Date().toLocaleTimeString() },
|
||||
{ deliveryMode: 2 },
|
||||
(err, msg) => {
|
||||
if (!err) {
|
||||
return;
|
||||
}
|
||||
throw new Error(`Failed to publish: ${msg}`);
|
||||
}
|
||||
);
|
||||
|
||||
exchange.publish('content', { message: 'content message' }, () => {
|
||||
console.log('Published');
|
||||
});
|
||||
});
|
||||
} catch (ex) {
|
||||
console.log(ex);
|
||||
process.exit(1);
|
||||
}
|
||||
}
|
||||
|
||||
async function wait(ms: number) {
|
||||
return new Promise(resolve => {
|
||||
setTimeout(resolve, ms);
|
||||
});
|
||||
}
|
||||
|
||||
start();
|
||||
419
types/amqp/index.d.ts
vendored
Normal file
419
types/amqp/index.d.ts
vendored
Normal file
@@ -0,0 +1,419 @@
|
||||
// Type definitions for amqp 0.2
|
||||
// Project: https://github.com/postwait/node-amqp
|
||||
// Definitions by: Carl Winkler <https://github.com/seikho>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
/// <reference types="node" />
|
||||
|
||||
import * as net from 'net';
|
||||
import * as events from 'events';
|
||||
|
||||
export type Callback<T> = (value: T) => void;
|
||||
export interface AMQPClient extends net.Socket {
|
||||
publish(routingKey: string, body: any, options: {}, callback: (err?: boolean, msg?: string) => void): void;
|
||||
|
||||
disconnect(): void;
|
||||
|
||||
queue(queueName: string, callback?: Callback<QueueCallback>): AMQPQueue;
|
||||
queue(queueName: string, options: QueueOptions, callback?: Callback<QueueCallback>): AMQPQueue;
|
||||
|
||||
exchange(callback?: Callback<void>): AMQPExchange;
|
||||
exchange(exchangeName: string, callback?: Callback<void>): AMQPExchange;
|
||||
exchange(exchangeName: string, options: ExchangeOptions, callback?: Callback<void>): AMQPExchange;
|
||||
}
|
||||
|
||||
export interface AMQPQueue extends events.EventEmitter {
|
||||
subscribe(callback: SubscribeCallback): void;
|
||||
subscribe(options: SubscribeOptions, callback: SubscribeCallback): void;
|
||||
|
||||
unsubscribe(consumerTag: string): void;
|
||||
|
||||
bind(exchangeName: string, routingKey: string, callback?: Callback<AMQPQueue>): void;
|
||||
bind(routingKey: string, callback?: Callback<AMQPQueue>): void;
|
||||
|
||||
unbind(exchangeName: string, routingKey: string): void;
|
||||
unbind(routingKey: string): void;
|
||||
|
||||
bind_headers(exchangeName: string, routingKey: string): void;
|
||||
bind_headers(routingKey: string): void;
|
||||
|
||||
unbind_headers(exchangeName: string, routingKey: string): void;
|
||||
unbind_headers(routingKey: string): void;
|
||||
|
||||
shift(reject: boolean): void;
|
||||
shift(reject: boolean, requeue: boolean): void;
|
||||
|
||||
destroy(options?: DestroyOptions): void;
|
||||
}
|
||||
|
||||
export interface AMQPExchange extends events.EventEmitter {
|
||||
on(event: 'open' | 'ack' | 'error' | 'exchangeBindOk' | 'exchangeUnbindOk', callback: Callback<void>): this;
|
||||
|
||||
publish(routingKey: string, message: Buffer | {}, options: ExchangePublishOptions, callback?: (err?: boolean, msg?: string) => void): void;
|
||||
|
||||
/**
|
||||
* ifUnused default: true
|
||||
*
|
||||
* Deletes an exchange.
|
||||
*
|
||||
* If the optional boolean second argument is set, the server will only delete the exchange if it has no queue bindings.
|
||||
*
|
||||
* If the exchange has queue bindings the server does not delete it but raises a channel exception instead
|
||||
*/
|
||||
destroy(ifUnused: boolean): void;
|
||||
|
||||
bind(sourceExchange: string, routingKey: string, callback?: Callback<void>): void;
|
||||
unbind(sourceExchange: string, routingKey: string, callback?: Callback<void>): void;
|
||||
bind_headers(exchange: string, routing: string, callback?: Callback<void>): void;
|
||||
}
|
||||
|
||||
export function createConnection(options: ConnectionOptions): AMQPClient;
|
||||
|
||||
export interface DeliveryInfo {
|
||||
contentType: string;
|
||||
consumerTag: string;
|
||||
deliveryTag: Uint8Array;
|
||||
exchange: string;
|
||||
queue: string;
|
||||
redelivered: boolean;
|
||||
routingKey: string;
|
||||
}
|
||||
|
||||
export interface Ack extends DeliveryInfo {
|
||||
acknowledge(all: boolean): void;
|
||||
reject(requeue: boolean): void;
|
||||
}
|
||||
|
||||
export interface ConnectionOptions {
|
||||
host?: string;
|
||||
url?: string;
|
||||
port?: number;
|
||||
login?: string;
|
||||
passowrd?: string;
|
||||
connectionTimeout?: number;
|
||||
authMechanism?: string;
|
||||
vhost?: string;
|
||||
noDelay?: boolean;
|
||||
ssl?: {
|
||||
enabled: boolean;
|
||||
keyFile?: string;
|
||||
certFile?: string;
|
||||
caFile?: string;
|
||||
rejectUnauthorized?: boolean;
|
||||
};
|
||||
|
||||
/** Default: 'node-amqp' */
|
||||
product?: string;
|
||||
|
||||
/** Default: 'node-{NODE_VERSION}' */
|
||||
platform?: string;
|
||||
|
||||
/** Default: node-amqp/package.json version */
|
||||
version?: string;
|
||||
|
||||
defaultExchangeName?: string;
|
||||
|
||||
/** Default: true */
|
||||
reconnect?: boolean;
|
||||
|
||||
/** Default: 'linear' */
|
||||
reconnectBackoffStrategy?: string;
|
||||
|
||||
/** Default: 120000 */
|
||||
reconnectExponentialLimit?: number;
|
||||
|
||||
/** Default: 1000 */
|
||||
reconnectBackoffTime?: number;
|
||||
}
|
||||
|
||||
export interface QueueOptions {
|
||||
/**
|
||||
* Default: false
|
||||
*
|
||||
* If set, the server will not create the queue.
|
||||
*
|
||||
* The client can use this to check whether a queue exists without modifying the server state
|
||||
*/
|
||||
passive?: boolean;
|
||||
|
||||
/**
|
||||
* Default: false
|
||||
*
|
||||
* Durable queues remain active when a server restarts.
|
||||
*
|
||||
* Non-durable queues (transient queues) are purged if/when a server restarts.
|
||||
*
|
||||
* Note that durable queues do not necessarily hold persistent messages,
|
||||
* although it does not make sense to send persistent messages to a transient queue
|
||||
*/
|
||||
durable?: boolean;
|
||||
|
||||
/**
|
||||
* Default: false
|
||||
*
|
||||
* Exclusive queues may only be consumed from by the current connection.
|
||||
*
|
||||
* Setting the 'exclusive' flag always implies 'autoDelete'
|
||||
*/
|
||||
exclusive?: boolean;
|
||||
|
||||
/**
|
||||
* Default: true
|
||||
*
|
||||
* If set, the queue is deleted when all consumers have finished using it.
|
||||
*
|
||||
* Last consumer can be cancelled either explicitly or because its channel is closed.
|
||||
*
|
||||
* If there was no consumer ever on the queue, it won't be deleted
|
||||
*/
|
||||
autoDelete?: boolean;
|
||||
|
||||
/**
|
||||
* Default: false
|
||||
*
|
||||
* If set, the queue will not be declared, this will allow a queue to be deleted if you don't know its previous options
|
||||
*/
|
||||
noDeclare?: boolean;
|
||||
|
||||
/**
|
||||
* a map of additional arguments to pass in when creating a queue
|
||||
*/
|
||||
arguments?: { [arg: string]: any };
|
||||
|
||||
/**
|
||||
* Default: false
|
||||
*
|
||||
* when true the channel will close on unsubscribe
|
||||
*/
|
||||
closeChannelOnUnsubscribe?: boolean;
|
||||
}
|
||||
|
||||
export interface ExchangeOptions {
|
||||
/**
|
||||
* Default: 'topic'
|
||||
*/
|
||||
type?: 'direct' | 'fanout' | 'topic';
|
||||
|
||||
/**
|
||||
* Default: false
|
||||
*
|
||||
* f set, the server will not create the exchange. The client can use this to check whether an exchange exists without modifying the server state
|
||||
*/
|
||||
passive?: boolean;
|
||||
|
||||
/**
|
||||
* Default: true
|
||||
*
|
||||
* If set when creating a new exchange, the exchange will be marked as durable.
|
||||
*
|
||||
* Durable exchanges remain active when a server restarts.
|
||||
*
|
||||
* Non-durable exchanges (transient exchanges) are purged if/when a server restarts
|
||||
*/
|
||||
durable?: boolean;
|
||||
|
||||
/**
|
||||
* Default: true
|
||||
*
|
||||
* If set, the exchange is deleted when there are no longer queues bound to it
|
||||
*/
|
||||
autoDelete?: boolean;
|
||||
|
||||
/**
|
||||
* Default: false
|
||||
*
|
||||
* If set, the exchange will not be declared,
|
||||
* this will allow the exchange to be deleted if you dont know its previous options
|
||||
*/
|
||||
noDeclare?: boolean;
|
||||
|
||||
/**
|
||||
* Default: false
|
||||
*
|
||||
* If set, the exchange will be in confirm mode, and you will get a 'ack'|'error' event emitted on a publish,
|
||||
* or the callback on the publish will be called
|
||||
*/
|
||||
confirm?: boolean;
|
||||
|
||||
/**
|
||||
* a map of additional arguments to pass in when creating an exchange
|
||||
*/
|
||||
arguments?: { [arg: string]: any };
|
||||
}
|
||||
|
||||
export interface SubscribeOptions {
|
||||
/**
|
||||
* Default: false
|
||||
*
|
||||
* If set to true, only one subscriber is allowed at a time
|
||||
*/
|
||||
exclusive?: boolean;
|
||||
|
||||
/**
|
||||
* Default: false
|
||||
*
|
||||
* Make it so that the AMQP server only delivers single messages at a time.
|
||||
* When you want the next message, call queue.shift()
|
||||
*
|
||||
* When false, you will receive messages as fast as they are emitted
|
||||
*/
|
||||
ack?: boolean;
|
||||
|
||||
/**
|
||||
* Default: 1
|
||||
*
|
||||
* Will only send you N messages before you 'ack'.
|
||||
*
|
||||
* Setting to zero will widen that window to 'unlimited'. If this is set, queue.shift() should not be used
|
||||
*/
|
||||
prefetchCount?: number;
|
||||
|
||||
/**
|
||||
* Default: undefined
|
||||
*
|
||||
* Will inject the routingKey into the payload received
|
||||
*/
|
||||
routingKeyInPayload?: boolean;
|
||||
|
||||
/**
|
||||
* Default: undefined
|
||||
*
|
||||
* Will inject the routingKey into the payload received
|
||||
*/
|
||||
deliveryKeyInPayload?: boolean;
|
||||
}
|
||||
|
||||
export interface DestroyOptions {
|
||||
/**
|
||||
* Default: false
|
||||
*
|
||||
* Will only destroy the queue if it has no consumers
|
||||
*/
|
||||
ifUnused?: boolean;
|
||||
|
||||
/**
|
||||
* Default: false
|
||||
*
|
||||
* Will ony be deleted if the queue has no messages
|
||||
*/
|
||||
ifEmpty?: boolean;
|
||||
}
|
||||
|
||||
export type SubscribeCallback = (
|
||||
message: any,
|
||||
headers: { [key: string]: any },
|
||||
deliveryInfo: DeliveryInfo,
|
||||
ack: Ack
|
||||
) => void;
|
||||
|
||||
export interface QueueCallback {
|
||||
name: string;
|
||||
consumerTagListeners: { [tag: string]: any };
|
||||
consumerTagOptions: { [option: string]: any };
|
||||
options: QueueOptions;
|
||||
state: string;
|
||||
channel: number;
|
||||
}
|
||||
|
||||
export interface ExchangePublishOptions {
|
||||
/**
|
||||
* Default: false
|
||||
*
|
||||
* This flag tells the server how to react if the message cannot be routed to a queue.
|
||||
*
|
||||
* If this flag is set, the server will return an unroutable message with a Return method.
|
||||
*
|
||||
* If this flag is false, the server silently drops the message
|
||||
*/
|
||||
mandatory?: boolean;
|
||||
|
||||
/**
|
||||
* Default: false
|
||||
*
|
||||
* This flag tells the server how to react if the message cannot be routed to a queue consumer immediately.
|
||||
*
|
||||
* If this flag is set, the server will return an undeliverable message with a Return method.
|
||||
*
|
||||
* If this flag is false, the server will queue the message, but with no guarantee that it will ever be consumed
|
||||
*/
|
||||
immediate?: boolean;
|
||||
|
||||
/**
|
||||
* Default: 'application/octet-stream'
|
||||
*/
|
||||
contentType?: string;
|
||||
|
||||
/**
|
||||
* Default: null
|
||||
*/
|
||||
contentEncoding?: string;
|
||||
|
||||
/**
|
||||
* Default: {}
|
||||
*
|
||||
* Arbitrary application-specific message headers
|
||||
*/
|
||||
headers?: any;
|
||||
|
||||
/**
|
||||
* 1: Non-persistent
|
||||
* 2: Persistent
|
||||
*/
|
||||
deliveryMode?: 1 | 2;
|
||||
|
||||
priority?: 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9;
|
||||
|
||||
/**
|
||||
* Application correlation identifier
|
||||
*/
|
||||
correlationId?: string;
|
||||
|
||||
/**
|
||||
* Usually used to name a reply queue for a request message
|
||||
*/
|
||||
replyTo?: string;
|
||||
|
||||
/**
|
||||
* Default: null
|
||||
*
|
||||
* Message expiration specification -- ISO date string?
|
||||
*/
|
||||
expiration?: string;
|
||||
|
||||
/**
|
||||
* Default: null
|
||||
*
|
||||
* Application message identifier
|
||||
*/
|
||||
messageId?: string;
|
||||
|
||||
/**
|
||||
* Default: null
|
||||
*
|
||||
* Message timestamp
|
||||
*
|
||||
* ISO date string?
|
||||
*/
|
||||
timestamp?: string;
|
||||
|
||||
/**
|
||||
* Default: null
|
||||
*
|
||||
* Message type name
|
||||
*/
|
||||
type?: string;
|
||||
|
||||
/**
|
||||
* Default: null
|
||||
*
|
||||
* Creating user id
|
||||
*/
|
||||
userId?: string;
|
||||
|
||||
/**
|
||||
* Default: null
|
||||
*
|
||||
* Creating application id
|
||||
*/
|
||||
appId?: string;
|
||||
}
|
||||
23
types/amqp/tsconfig.json
Normal file
23
types/amqp/tsconfig.json
Normal file
@@ -0,0 +1,23 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"target": "es6",
|
||||
"lib": [
|
||||
"es6"
|
||||
],
|
||||
"noImplicitAny": true,
|
||||
"noImplicitThis": true,
|
||||
"strictNullChecks": true,
|
||||
"baseUrl": "../",
|
||||
"typeRoots": [
|
||||
"../"
|
||||
],
|
||||
"types": [],
|
||||
"noEmit": true,
|
||||
"forceConsistentCasingInFileNames": true
|
||||
},
|
||||
"files": [
|
||||
"index.d.ts",
|
||||
"amqp-tests.ts"
|
||||
]
|
||||
}
|
||||
8
types/amqp/tslint.json
Normal file
8
types/amqp/tslint.json
Normal file
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"extends": "dtslint/dt.json",
|
||||
"rules": {
|
||||
"unified-signatures": [
|
||||
"false"
|
||||
]
|
||||
}
|
||||
}
|
||||
2
types/amqplib/callback_api.d.ts
vendored
2
types/amqplib/callback_api.d.ts
vendored
@@ -34,7 +34,7 @@ export interface Channel extends events.EventEmitter {
|
||||
consume(queue: string, onMessage: (msg: Message) => any, options?: Options.Consume, callback?: (err: any, ok: Replies.Consume) => void): void;
|
||||
|
||||
cancel(consumerTag: string, callback?: (err: any, ok: Replies.Empty) => void): void;
|
||||
get(queue: string, options?: Options.Get, callback?: (err: any, ok: Message | boolean) => void): void;
|
||||
get(queue: string, options?: Options.Get, callback?: (err: any, ok: Message | false) => void): void;
|
||||
|
||||
ack(message: Message, allUpTo?: boolean): void;
|
||||
ackAll(): void;
|
||||
|
||||
3
types/amqplib/index.d.ts
vendored
3
types/amqplib/index.d.ts
vendored
@@ -2,6 +2,7 @@
|
||||
// Project: https://github.com/squaremo/amqp.node
|
||||
// Definitions by: Michael Nahkies <https://github.com/mnahkies>, Ab Reitsma <https://github.com/abreits>, Nicolás Fantone <https://github.com/nfantone>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.3
|
||||
|
||||
/// <reference types="node" />
|
||||
|
||||
@@ -42,7 +43,7 @@ export interface Channel extends events.EventEmitter {
|
||||
consume(queue: string, onMessage: (msg: Message) => any, options?: Options.Consume): Promise<Replies.Consume>;
|
||||
|
||||
cancel(consumerTag: string): Promise<Replies.Empty>;
|
||||
get(queue: string, options?: Options.Get): Promise<Message | boolean>;
|
||||
get(queue: string, options?: Options.Get): Promise<Message | false>;
|
||||
|
||||
ack(message: Message, allUpTo?: boolean): void;
|
||||
ackAll(): void;
|
||||
|
||||
1
types/angular-agility/index.d.ts
vendored
1
types/angular-agility/index.d.ts
vendored
@@ -2,6 +2,7 @@
|
||||
// Project: https://github.com/AngularAgility/AngularAgility
|
||||
// Definitions by: Roland Zwaga <https://github.com/rolandzwaga>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.3
|
||||
|
||||
/// <reference types="angular" />
|
||||
|
||||
|
||||
1
types/angular-animate/index.d.ts
vendored
1
types/angular-animate/index.d.ts
vendored
@@ -2,6 +2,7 @@
|
||||
// Project: http://angularjs.org
|
||||
// Definitions by: Michel Salib <https://github.com/michelsalib>, Adi Dahiya <https://github.com/adidahiya>, Raphael Schweizer <https://github.com/rasch>, Cody Schaaf <https://github.com/codyschaaf>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.3
|
||||
|
||||
/// <reference types="jquery" />
|
||||
|
||||
|
||||
1
types/angular-block-ui/index.d.ts
vendored
1
types/angular-block-ui/index.d.ts
vendored
@@ -2,6 +2,7 @@
|
||||
// Project: https://github.com/McNull/angular-block-ui
|
||||
// Definitions by: Lasse Nørregaard <https://github.com/lassebn>, Stephan Classen <https://github.com/sclassen>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.3
|
||||
|
||||
import * as angular from "angular";
|
||||
|
||||
|
||||
1
types/angular-bootstrap-calendar/index.d.ts
vendored
1
types/angular-bootstrap-calendar/index.d.ts
vendored
@@ -2,6 +2,7 @@
|
||||
// Project: https://github.com/mattlewis92/angular-bootstrap-calendar
|
||||
// Definitions by: Egor Komarov <https://github.com/Odrin>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.3
|
||||
|
||||
import * as moment from 'moment';
|
||||
import * as angular from 'angular';
|
||||
|
||||
1
types/angular-breadcrumb/index.d.ts
vendored
1
types/angular-breadcrumb/index.d.ts
vendored
@@ -2,6 +2,7 @@
|
||||
// Project: https://github.com/ncuillery/angular-breadcrumb
|
||||
// Definitions by: Marc Talary <https://github.com/marctalary>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.3
|
||||
|
||||
/// <reference types="angular-ui-router" />
|
||||
|
||||
|
||||
1
types/angular-clipboard/index.d.ts
vendored
1
types/angular-clipboard/index.d.ts
vendored
@@ -2,6 +2,7 @@
|
||||
// Project: https://github.com/omichelsen/angular-clipboard
|
||||
// Definitions by: Bradford Wagner <https://github.com/bradfordwagner/>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.3
|
||||
|
||||
/**
|
||||
* Definition of the Clipboard Service
|
||||
|
||||
1
types/angular-cookie/index.d.ts
vendored
1
types/angular-cookie/index.d.ts
vendored
@@ -2,6 +2,7 @@
|
||||
// Project: https://github.com/ivpusic/angular-cookie
|
||||
// Definitions by: Borislav Zhivkov <https://github.com/borislavjivkov>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.3
|
||||
|
||||
/// <reference types="angular" />
|
||||
|
||||
|
||||
3
types/angular-cookies/index.d.ts
vendored
3
types/angular-cookies/index.d.ts
vendored
@@ -2,6 +2,7 @@
|
||||
// Project: http://angularjs.org
|
||||
// Definitions by: Diego Vilar <http://github.com/diegovilar>, Anthony Ciccarello <http://github.com/aciccarello>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.3
|
||||
|
||||
declare var _: string;
|
||||
export = _;
|
||||
@@ -87,4 +88,4 @@ declare module 'angular' {
|
||||
remove(key: string): void;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
3
types/angular-deferred-bootstrap/index.d.ts
vendored
3
types/angular-deferred-bootstrap/index.d.ts
vendored
@@ -2,6 +2,7 @@
|
||||
// Project: https://github.com/philippd/angular-deferred-bootstrap
|
||||
// Definitions by: Markus Wagner <https://github.com/Ritzlgrmft/>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.3
|
||||
|
||||
/// <reference types="angular" />
|
||||
|
||||
@@ -17,4 +18,4 @@ declare module angular {
|
||||
module?: string,
|
||||
resolve: any
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
1
types/angular-dialog-service/index.d.ts
vendored
1
types/angular-dialog-service/index.d.ts
vendored
@@ -2,6 +2,7 @@
|
||||
// Project: https://github.com/m-e-conroy/angular-dialog-service
|
||||
// Definitions by: William Comartin <https://github.com/wcomartin>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.3
|
||||
|
||||
/// <reference types="angular"/>
|
||||
/// <reference types="angular-ui-bootstrap"/>
|
||||
|
||||
1
types/angular-dynamic-locale/index.d.ts
vendored
1
types/angular-dynamic-locale/index.d.ts
vendored
@@ -2,6 +2,7 @@
|
||||
// Project: https://github.com/lgalfaso/angular-dynamic-locale
|
||||
// Definitions by: Stephen Lautier <https://github.com/stephenlautier>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.3
|
||||
|
||||
/// <reference types="angular" />
|
||||
|
||||
|
||||
3
types/angular-feature-flags/index.d.ts
vendored
3
types/angular-feature-flags/index.d.ts
vendored
@@ -2,6 +2,7 @@
|
||||
// Project: https://github.com/mjt01/angular-feature-flags
|
||||
// Definitions by: Borislav Zhivkov <https://github.com/borislavjivkov/>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.3
|
||||
|
||||
/// <reference types="angular" />
|
||||
|
||||
@@ -39,4 +40,4 @@ declare module "angular" {
|
||||
set(flagsPromise: angular.IPromise<FlagData> | angular.IHttpPromise<FlagData>): void;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
1
types/angular-file-saver/index.d.ts
vendored
1
types/angular-file-saver/index.d.ts
vendored
@@ -2,6 +2,7 @@
|
||||
// Project: https://github.com/alferov/angular-file-saver
|
||||
// Definitions by: Donald Nairn <https://github.com/deenairn/>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.3
|
||||
|
||||
import * as angular from 'angular';
|
||||
declare module 'angular' {
|
||||
|
||||
1
types/angular-formly/index.d.ts
vendored
1
types/angular-formly/index.d.ts
vendored
@@ -2,6 +2,7 @@
|
||||
// Project: https://github.com/formly-js/angular-formly
|
||||
// Definitions by: Scott Hatcher <https://github.com/scatcher>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.3
|
||||
|
||||
/// <reference types="angular" />
|
||||
|
||||
|
||||
1
types/angular-fullscreen/index.d.ts
vendored
1
types/angular-fullscreen/index.d.ts
vendored
@@ -2,6 +2,7 @@
|
||||
// Project: https://github.com/fabiobiondi/angular-fullscreen
|
||||
// Definitions by: Julien Paroche <https://github.com/julienpa>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/angular-fullscreen
|
||||
// TypeScript Version: 2.3
|
||||
|
||||
/// <reference types="angular" />
|
||||
|
||||
|
||||
1
types/angular-gettext/index.d.ts
vendored
1
types/angular-gettext/index.d.ts
vendored
@@ -2,6 +2,7 @@
|
||||
// Project: https://angular-gettext.rocketeer.be/
|
||||
// Definitions by: Ákos Lukács <https://github.com/AkosLukacs>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.3
|
||||
|
||||
/// <reference types="angular" />
|
||||
|
||||
|
||||
1
types/angular-google-analytics/index.d.ts
vendored
1
types/angular-google-analytics/index.d.ts
vendored
@@ -2,6 +2,7 @@
|
||||
// Project: https://github.com/revolunet/angular-google-analytics
|
||||
// Definitions by: Cyril Schumacher <https://github.com/cyrilschumacher>, Thomas Fuchs <https://github.com/Toxantron>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.3
|
||||
|
||||
/// <reference types="angular" />
|
||||
import * as angular from 'angular';
|
||||
|
||||
1
types/angular-gridster/index.d.ts
vendored
1
types/angular-gridster/index.d.ts
vendored
@@ -2,6 +2,7 @@
|
||||
// Project: https://github.com/ManifestWebDesign/angular-gridster
|
||||
// Definitions by: Joao Monteiro <https://github.com/jpmnteiro>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.3
|
||||
|
||||
import * as angular from "angular";
|
||||
|
||||
|
||||
1
types/angular-growl-v2/index.d.ts
vendored
1
types/angular-growl-v2/index.d.ts
vendored
@@ -2,6 +2,7 @@
|
||||
// Project: http://janstevens.github.io/angular-growl-2
|
||||
// Definitions by: Tadeusz Hucal <https://github.com/mkp05>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.3
|
||||
|
||||
/// <reference types="angular" />
|
||||
|
||||
|
||||
1
types/angular-hotkeys/index.d.ts
vendored
1
types/angular-hotkeys/index.d.ts
vendored
@@ -2,6 +2,7 @@
|
||||
// Project: https://github.com/chieffancypants/angular-hotkeys
|
||||
// Definitions by: Jason Zhao <https://github.com/jlz27>, Stefan Steinhart <https://github.com/reppners>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.3
|
||||
//readme written by David Valentine <https://github.com/dvalenti314/>
|
||||
|
||||
|
||||
|
||||
1
types/angular-http-auth/index.d.ts
vendored
1
types/angular-http-auth/index.d.ts
vendored
@@ -2,6 +2,7 @@
|
||||
// Project: https://github.com/witoldsz/angular-http-auth
|
||||
// Definitions by: vvakame <https://github.com/vvakame>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.3
|
||||
|
||||
/// <reference types="angular" />
|
||||
|
||||
|
||||
1
types/angular-httpi/index.d.ts
vendored
1
types/angular-httpi/index.d.ts
vendored
@@ -2,6 +2,7 @@
|
||||
// Project: https://github.com/bennadel/httpi
|
||||
// Definitions by: Andrew Camilleri <https://github.com/Kukks>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.3
|
||||
|
||||
/// <reference types="angular" />
|
||||
|
||||
|
||||
1
types/angular-idle/index.d.ts
vendored
1
types/angular-idle/index.d.ts
vendored
@@ -2,6 +2,7 @@
|
||||
// Project: http://hackedbychinese.github.io/ng-idle/
|
||||
// Definitions by: mthamil <https://github.com/mthamil>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.3
|
||||
|
||||
/// <reference types="angular" />
|
||||
|
||||
|
||||
1
types/angular-jwt/index.d.ts
vendored
1
types/angular-jwt/index.d.ts
vendored
@@ -2,6 +2,7 @@
|
||||
// Project: https://github.com/auth0/angular-jwt
|
||||
// Definitions by: Reto Rezzonico <https://github.com/rerezz>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.3
|
||||
|
||||
/// <reference types="angular" />
|
||||
|
||||
|
||||
1
types/angular-load/index.d.ts
vendored
1
types/angular-load/index.d.ts
vendored
@@ -2,6 +2,7 @@
|
||||
// Project: https://github.com/urish/angular-load
|
||||
// Definitions by: david-gang <https://github.com/david-gang>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.3
|
||||
|
||||
/// <reference types="angular" />
|
||||
|
||||
|
||||
1
types/angular-loading-bar/index.d.ts
vendored
1
types/angular-loading-bar/index.d.ts
vendored
@@ -2,6 +2,7 @@
|
||||
// Project: https://github.com/chieffancypants/angular-loading-bar
|
||||
// Definitions by: Stephen Lautier <https://github.com/stephenlautier>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.3
|
||||
|
||||
/// <reference types="angular" />
|
||||
|
||||
|
||||
1
types/angular-local-storage/index.d.ts
vendored
1
types/angular-local-storage/index.d.ts
vendored
@@ -2,6 +2,7 @@
|
||||
// Project: https://github.com/grevory/angular-local-storage
|
||||
// Definitions by: Ken Fukuyama <https://github.com/kenfdev>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.3
|
||||
|
||||
/// <reference types="angular" />
|
||||
|
||||
|
||||
1
types/angular-localforage/index.d.ts
vendored
1
types/angular-localforage/index.d.ts
vendored
@@ -2,6 +2,7 @@
|
||||
// Project: https://github.com/ocombe/angular-localForage
|
||||
// Definitions by: Stefan Steinhart <https://github.com/reppners>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.3
|
||||
|
||||
/// <reference types="localforage" />
|
||||
/// <reference types="angular" />
|
||||
|
||||
1
types/angular-locker/index.d.ts
vendored
1
types/angular-locker/index.d.ts
vendored
@@ -2,6 +2,7 @@
|
||||
// Project: https://github.com/tymondesigns/angular-locker
|
||||
// Definitions by: Niko Kovačič <https://github.com/nkovacic>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.3
|
||||
|
||||
/// <reference types="angular" />
|
||||
|
||||
|
||||
1
types/angular-material/index.d.ts
vendored
1
types/angular-material/index.d.ts
vendored
@@ -2,6 +2,7 @@
|
||||
// Project: https://github.com/angular/material
|
||||
// Definitions by: Blake Bigelow <https://github.com/blbigelow>, Peter Hajdu <https://github.com/PeterHajdu>, Davide Donadello <https://github.com/Dona278>, Geert Jansen <https://github.com/geertjansen>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.3
|
||||
|
||||
import * as angular from 'angular';
|
||||
|
||||
|
||||
3
types/angular-media-queries/index.d.ts
vendored
3
types/angular-media-queries/index.d.ts
vendored
@@ -2,6 +2,7 @@
|
||||
// Project: https://github.com/jacopotarantino/angular-match-media
|
||||
// Definitions by: Joao Monteiro <https://github.com/jpmnteiro>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.3
|
||||
|
||||
/// <reference types="angular" />
|
||||
|
||||
@@ -32,4 +33,4 @@ declare module 'angular' {
|
||||
when(list: Array<string> | string, callback: (result: boolean) => void, scope?: angular.IScope): boolean;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
1
types/angular-meteor/index.d.ts
vendored
1
types/angular-meteor/index.d.ts
vendored
@@ -2,6 +2,7 @@
|
||||
// Project: https://github.com/Urigo/angular-meteor
|
||||
// Definitions by: Peter Grman <https://github.com/pgrm>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.3
|
||||
|
||||
/// <reference types="meteor" />
|
||||
|
||||
|
||||
1
types/angular-mocks/index.d.ts
vendored
1
types/angular-mocks/index.d.ts
vendored
@@ -2,6 +2,7 @@
|
||||
// Project: http://angularjs.org
|
||||
// Definitions by: Diego Vilar <http://github.com/diegovilar>, Tony Curtis <http://github.com/daltin>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.3
|
||||
|
||||
/// <reference types="angular" />
|
||||
/// <reference path="mocks.d.ts" />
|
||||
|
||||
1
types/angular-modal/index.d.ts
vendored
1
types/angular-modal/index.d.ts
vendored
@@ -2,6 +2,7 @@
|
||||
// Project: https://github.com/btford/angular-modal
|
||||
// Definitions by: Paul Lessing <https://github.com/paullessing>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.3
|
||||
|
||||
/// <reference types="angular" />
|
||||
/// <reference types="jquery" />
|
||||
|
||||
1
types/angular-notifications/index.d.ts
vendored
1
types/angular-notifications/index.d.ts
vendored
@@ -2,6 +2,7 @@
|
||||
// Project: https://github.com/DerekRies/angular-notifications
|
||||
// Definitions by: Tomasz Ducin <https://github.com/ducin/DefinitelyTyped>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.3
|
||||
|
||||
/// <reference types="angular" />
|
||||
|
||||
|
||||
1
types/angular-notify/index.d.ts
vendored
1
types/angular-notify/index.d.ts
vendored
@@ -2,6 +2,7 @@
|
||||
// Project: https://github.com/cgross/angular-notify
|
||||
// Definitions by: Suwato <https://github.com/Suwato/DefinitelyTyped>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.3
|
||||
|
||||
///<reference types="angular" />
|
||||
|
||||
|
||||
1
types/angular-oauth2/index.d.ts
vendored
1
types/angular-oauth2/index.d.ts
vendored
@@ -2,6 +2,7 @@
|
||||
// Project: https://github.com/oauthjs/angular-oauth2
|
||||
// Definitions by: Antério Vieira <https://github.com/anteriovieira>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.3
|
||||
|
||||
import * as angular from 'angular';
|
||||
|
||||
|
||||
1
types/angular-odata-resources/index.d.ts
vendored
1
types/angular-odata-resources/index.d.ts
vendored
@@ -2,6 +2,7 @@
|
||||
// Project: https://github.com/devnixs/ODataAngularResources
|
||||
// Definitions by: Raphael ATALLAH <http://raphael.atallah.me>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.3
|
||||
|
||||
/// <reference types="angular" />
|
||||
|
||||
|
||||
1
types/angular-permission/index.d.ts
vendored
1
types/angular-permission/index.d.ts
vendored
@@ -2,6 +2,7 @@
|
||||
// Project: https://github.com/Narzerus/angular-permission
|
||||
// Definitions by: Voislav Mishevski <https://github.com/vmishevski>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.3
|
||||
|
||||
/// <reference types="angular" />
|
||||
/// <reference types="angular-ui-router" />
|
||||
|
||||
1
types/angular-promise-tracker/index.d.ts
vendored
1
types/angular-promise-tracker/index.d.ts
vendored
@@ -2,6 +2,7 @@
|
||||
// Project: https://github.com/ajoslin/angular-promise-tracker
|
||||
// Definitions by: Rufus Linke <https://github.com/rufusl/>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.3
|
||||
|
||||
/// <reference types="angular" />
|
||||
|
||||
|
||||
1
types/angular-q-spread/index.d.ts
vendored
1
types/angular-q-spread/index.d.ts
vendored
@@ -2,6 +2,7 @@
|
||||
// Project: https://www.npmjs.com/package/angular-q-spread
|
||||
// Definitions by: rafw87 <https://github.com/rafw87>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.3
|
||||
|
||||
import * as a from "angular";
|
||||
|
||||
|
||||
1
types/angular-resource/index.d.ts
vendored
1
types/angular-resource/index.d.ts
vendored
@@ -2,6 +2,7 @@
|
||||
// Project: http://angularjs.org
|
||||
// Definitions by: Diego Vilar <http://github.com/diegovilar>, Michael Jess <http://github.com/miffels>
|
||||
// Definitions: https://github.com/daptiv/DefinitelyTyped
|
||||
// TypeScript Version: 2.3
|
||||
|
||||
declare var _: string;
|
||||
export = _;
|
||||
|
||||
3
types/angular-route/index.d.ts
vendored
3
types/angular-route/index.d.ts
vendored
@@ -2,6 +2,7 @@
|
||||
// Project: http://angularjs.org
|
||||
// Definitions by: Jonathan Park <https://github.com/park9140>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.3
|
||||
|
||||
declare var _: string;
|
||||
export = _;
|
||||
@@ -154,4 +155,4 @@ declare module 'angular' {
|
||||
when(path: string, route: IRoute): IRouteProvider;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
3
types/angular-sanitize/index.d.ts
vendored
3
types/angular-sanitize/index.d.ts
vendored
@@ -2,6 +2,7 @@
|
||||
// Project: http://angularjs.org
|
||||
// Definitions by: Diego Vilar <http://github.com/diegovilar>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.3
|
||||
|
||||
declare var _: string;
|
||||
export = _;
|
||||
@@ -46,4 +47,4 @@ declare module 'angular' {
|
||||
(name: 'linky'): angular.sanitize.filter.ILinky;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
1
types/angular-scenario/index.d.ts
vendored
1
types/angular-scenario/index.d.ts
vendored
@@ -2,6 +2,7 @@
|
||||
// Project: http://angularjs.org
|
||||
// Definitions by: RomanoLindano <https://github.com/RomanoLindano>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.3
|
||||
|
||||
/// <reference types="jquery" />
|
||||
|
||||
|
||||
1
types/angular-scroll/index.d.ts
vendored
1
types/angular-scroll/index.d.ts
vendored
@@ -2,6 +2,7 @@
|
||||
// Project: https://github.com/oblador/angular-scroll
|
||||
// Definitions by: Sam Herrmann <https://github.com/samherrmann>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.3
|
||||
|
||||
|
||||
/// <reference types="angular" />
|
||||
|
||||
1
types/angular-signalr-hub/index.d.ts
vendored
1
types/angular-signalr-hub/index.d.ts
vendored
@@ -2,6 +2,7 @@
|
||||
// Project: https://github.com/JustMaier/angular-signalr-hub
|
||||
// Definitions by: Adam Santaniello <https://github.com/AdamSantaniello>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.3
|
||||
|
||||
/// <reference types="signalr" />
|
||||
/// <reference types="angular" />
|
||||
|
||||
1
types/angular-spinner/index.d.ts
vendored
1
types/angular-spinner/index.d.ts
vendored
@@ -2,6 +2,7 @@
|
||||
// Project: https://github.com/urish/angular-spinner
|
||||
// Definitions by: Marcin Biegała <https://github.com/Biegal>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.3
|
||||
|
||||
/**
|
||||
* SpinnerService
|
||||
|
||||
1
types/angular-storage/index.d.ts
vendored
1
types/angular-storage/index.d.ts
vendored
@@ -2,6 +2,7 @@
|
||||
// Project: https://github.com/auth0/angular-storage
|
||||
// Definitions by: Matthew DeKrey <https://github.com/mdekrey>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.3
|
||||
|
||||
/// <reference types="angular" />
|
||||
|
||||
|
||||
1
types/angular-strap/index.d.ts
vendored
1
types/angular-strap/index.d.ts
vendored
@@ -2,6 +2,7 @@
|
||||
// Project: http://mgcrea.github.io/angular-strap/
|
||||
// Definitions by: Sam Herrmann <https://github.com/samherrmann>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.3
|
||||
|
||||
|
||||
/// <reference types="angular" />
|
||||
|
||||
1
types/angular-toastr/index.d.ts
vendored
1
types/angular-toastr/index.d.ts
vendored
@@ -2,6 +2,7 @@
|
||||
// Project: https://github.com/Foxandxss/angular-toastr
|
||||
// Definitions by: Niko Kovačič <https://github.com/nkovacic>, Troy McKinnon <https://github.com/trodi>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.3
|
||||
|
||||
/// <reference types="angular" />
|
||||
|
||||
|
||||
1
types/angular-toasty/index.d.ts
vendored
1
types/angular-toasty/index.d.ts
vendored
@@ -2,6 +2,7 @@
|
||||
// Project: https://github.com/invertase/angular-toasty
|
||||
// Definitions by: Dominik Muench <https://github.com/muenchdo>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.3
|
||||
|
||||
/// <reference types="angular" />
|
||||
|
||||
|
||||
21
types/angular-tooltips/angular-tooltips-tests.ts
Normal file
21
types/angular-tooltips/angular-tooltips-tests.ts
Normal file
@@ -0,0 +1,21 @@
|
||||
import * as angular from 'angular';
|
||||
import * as angularTooltips from 'angular-tooltips';
|
||||
|
||||
angular
|
||||
.module('test.angular-tooltips', [
|
||||
angularTooltips
|
||||
])
|
||||
.config((tooltipsConfProvider: angularTooltips.TooltipsConfProvider) => {
|
||||
tooltipsConfProvider.configure({
|
||||
side: 'left',
|
||||
showTrigger: 'click',
|
||||
hideTrigger: 'click',
|
||||
class: 'class',
|
||||
smart: true,
|
||||
closeButton: false,
|
||||
size: 'small',
|
||||
speed: 'slow',
|
||||
tooltipTemplateUrlCache: true,
|
||||
show: false
|
||||
});
|
||||
});
|
||||
26
types/angular-tooltips/index.d.ts
vendored
Normal file
26
types/angular-tooltips/index.d.ts
vendored
Normal file
@@ -0,0 +1,26 @@
|
||||
// Type definitions for angular-tooltips 1.2
|
||||
// Project: http://720kb.github.io/angular-tooltips
|
||||
// Definitions by: Leonard Thieu <https://github.com/leonard-thieu>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
declare const AngularTooltips: '720kb.tooltips';
|
||||
export = AngularTooltips;
|
||||
|
||||
declare namespace AngularTooltips {
|
||||
interface TooltipsConfProvider {
|
||||
configure(options: TooltipsConfProviderOptions): void;
|
||||
}
|
||||
|
||||
interface TooltipsConfProviderOptions {
|
||||
side?: 'left' | 'right' | 'top' | 'bottom' | 'top left' | 'top right' | 'bottom left' | 'bottom right';
|
||||
showTrigger?: string;
|
||||
hideTrigger?: string;
|
||||
class?: string;
|
||||
smart?: boolean;
|
||||
closeButton?: boolean;
|
||||
size?: 'small' | 'medium' | 'large';
|
||||
speed?: 'slow' | 'medium' | 'fast';
|
||||
tooltipTemplateUrlCache?: boolean;
|
||||
show?: boolean;
|
||||
}
|
||||
}
|
||||
23
types/angular-tooltips/tsconfig.json
Normal file
23
types/angular-tooltips/tsconfig.json
Normal file
@@ -0,0 +1,23 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"lib": [
|
||||
"es6",
|
||||
"dom"
|
||||
],
|
||||
"noImplicitAny": true,
|
||||
"noImplicitThis": true,
|
||||
"strictNullChecks": true,
|
||||
"baseUrl": "../",
|
||||
"typeRoots": [
|
||||
"../"
|
||||
],
|
||||
"types": [],
|
||||
"noEmit": true,
|
||||
"forceConsistentCasingInFileNames": true
|
||||
},
|
||||
"files": [
|
||||
"index.d.ts",
|
||||
"angular-tooltips-tests.ts"
|
||||
]
|
||||
}
|
||||
3
types/angular-tooltips/tslint.json
Normal file
3
types/angular-tooltips/tslint.json
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"extends": "dtslint/dt.json"
|
||||
}
|
||||
3
types/angular-touchspin/index.d.ts
vendored
3
types/angular-touchspin/index.d.ts
vendored
@@ -2,6 +2,7 @@
|
||||
// Project: https://github.com/nkovacic/angular-touchspin
|
||||
// Definitions by: Niko Kovačič <https://github.com/nkovacic>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.3
|
||||
|
||||
/// <reference types="angular" />
|
||||
|
||||
@@ -39,4 +40,4 @@ declare module "angular" {
|
||||
defaults(touchSpinOptions: ITouchSpinOptions): void;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
1
types/angular-translate/index.d.ts
vendored
1
types/angular-translate/index.d.ts
vendored
@@ -2,6 +2,7 @@
|
||||
// Project: https://github.com/PascalPrecht/angular-translate
|
||||
// Definitions by: Michel Salib <https://github.com/michelsalib>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.3
|
||||
|
||||
/// <reference types="angular" />
|
||||
|
||||
|
||||
1
types/angular-ui-bootstrap/index.d.ts
vendored
1
types/angular-ui-bootstrap/index.d.ts
vendored
@@ -2,6 +2,7 @@
|
||||
// Project: https://github.com/angular-ui/bootstrap
|
||||
// Definitions by: Brian Surowiec <https://github.com/xt0rted>, Ryan Southgate <https://github.com/ry8806>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.3
|
||||
|
||||
/// <reference types="angular" />
|
||||
|
||||
|
||||
1
types/angular-ui-notification/index.d.ts
vendored
1
types/angular-ui-notification/index.d.ts
vendored
@@ -2,6 +2,7 @@
|
||||
// Project: https://github.com/alexcrack/angular-ui-notification
|
||||
// Definitions by: Kamil Rojewski <https://github.com/krojew/DefinitelyTyped>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.3
|
||||
|
||||
/// <reference types="angular" />
|
||||
|
||||
|
||||
1
types/angular-ui-router-default/index.d.ts
vendored
1
types/angular-ui-router-default/index.d.ts
vendored
@@ -2,6 +2,7 @@
|
||||
// Project: https://github.com/nonplus/angular-ui-router-default
|
||||
// Definitions by: Stepan Riha <https://github.com/nonplus>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.3
|
||||
|
||||
import * as aur from "angular-ui-router";
|
||||
|
||||
|
||||
1
types/angular-ui-router-uib-modal/index.d.ts
vendored
1
types/angular-ui-router-uib-modal/index.d.ts
vendored
@@ -2,6 +2,7 @@
|
||||
// Project: https://github.com/nonplus/angular-ui-router-uib-modal
|
||||
// Definitions by: Stepan Riha <https://github.com/nonplus>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.3
|
||||
|
||||
import * as auir from "angular-ui-router";
|
||||
|
||||
|
||||
1
types/angular-ui-router/index.d.ts
vendored
1
types/angular-ui-router/index.d.ts
vendored
@@ -2,6 +2,7 @@
|
||||
// Project: https://github.com/angular-ui/ui-router
|
||||
// Definitions by: Michel Salib <https://github.com/michelsalib>, Ivan Matiishyn <https://github.com/matiishyn>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.3
|
||||
|
||||
import * as angular from 'angular';
|
||||
|
||||
|
||||
1
types/angular-ui-scroll/index.d.ts
vendored
1
types/angular-ui-scroll/index.d.ts
vendored
@@ -2,6 +2,7 @@
|
||||
// Project: https://github.com/angular-ui/ui-scroll
|
||||
// Definitions by: Mark Nadig <https://github.com/marknadig>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.3
|
||||
|
||||
/// <reference types="angular" />
|
||||
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user